2 dnl Binary distribution configure script
13 # First off, what system are we running under?
17 dnl ** canonicalize platform names
18 # Canonicali[sz]e the platform name
19 TargetPlatform=`/bin/sh $srcdir/config.sub $target` || exit 1
22 # The following will be more difficult when we *are* cross-compiling.
23 # Suitable names to slam in *_CPP are in platform.h.in.
24 # We also record the architecture, vendor, and operating system (OS)
26 case $TargetPlatform in
27 alpha-dec-osf[[1234]]*)
28 TargetPlatform=alpha-dec-osf1;;
30 TargetPlatform=hppa1.1-hp-hpux;;
31 i[[3456]]86-*-linuxaout*)
32 TargetPlatform=i386-unknown-linuxaout;;
34 TargetPlatform=i386-unknown-linux;;
35 i[[3456]]86-*-freebsd*)
36 TargetPlatform=i386-unknown-freebsd;;
37 i[[3456]]86-*-netbsd*)
38 TargetPlatform=i386-unknown-netbsd;;
39 i[[3456]]86-*-solaris2*)
40 TargetPlatform=i386-unknown-solaris2;;
41 i[[3456]]86-*-cygwin32*)
43 TargetPlatform=i386-unknown-cygwin32;;
45 TargetPlatform=m68k-next-nextstep2;;
47 TargetPlatform=m68k-next-nextstep3;;
48 i[[3456]]86-next-nextstep3)
49 TargetPlatform=i386-next-nextstep3;;
51 TargetPlatform=m68k-sun-sunos4;;
53 TargetPlaformP=mips-dec-ultrix;;
55 TargetPlatform=mips-sgi-irix;;
57 TargetPlatform=powerpc-ibm-aix;;
59 TargetPlatform=rs6000-ibm-aix;;
61 TargetPlatform=sparc-sun-sunos4;;
63 TargetPlatform=sparc-sun-solaris2;;
65 echo "Unrecognised platform: $TargetPlatform"
69 echo "Which we'll further canonicalise into: $TargetPlatform"
71 AC_SUBST(TargetPlatform)
74 AC_CHECK_PROG(PerlCmd,perl,$ac_dir/$ac_word)
75 if test -z "$PerlCmd"; then
76 echo "You must install perl before you can continue"
77 echo "Perhaps it is already installed, but not in your PATH?"
79 echo "Continuing, assuming perl will be available as: perl"
82 dnl ** does #!.../perl work? (sometimes it's too long...)
83 echo "checking if \`#!$PerlCmd' works in shell scripts"
88 (SHELL=/bin/sh; export SHELL; ./conftest 69 > /dev/null)
89 if test $? -ne 69; then
92 echo "It doesn't! Perhaps \`#!$PerlCmd' is too long (often 32 characters max).."
97 dnl ** figure out how to do a BSD-ish install **
102 dnl ** how to do symlinks **
107 dnl ** Find the path to sed **
109 AC_PATH_PROG(SedCmd,sed)
112 dnl ** How to invoke cpp directly **
122 echo "****************************************************"
123 echo "Configuration done, ready to either 'make install'"
124 echo "or 'make in-place', followed by 'make install-docs'."
125 echo "(see README and INSTALL files for more info.)"
126 echo "****************************************************"