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
28 TargetPlatform=alpha-dec-osf1;;
30 TargetPlatform=alpha-dec-osf3;;
32 TargetPlatform=hppa1.1-hp-hpux;;
33 i[[3456]]86-*-linuxaout*)
34 TargetPlatform=i386-unknown-linuxaout;;
36 TargetPlatform=i386-unknown-linux;;
37 i[[3456]]86-*-freebsd2*)
38 TargetPlatform=i386-unknown-freebsd2;;
39 i[[3456]]86-*-freebsd3*)
40 TargetPlatform=i386-unknown-freebsd3;;
41 i[[3456]]86-*-netbsd*)
42 TargetPlatform=i386-unknown-netbsd;;
43 i[[3456]]86-*-solaris2*)
44 TargetPlatform=i386-unknown-solaris2;;
45 i[[3456]]86-*-cygwin32*)
47 TargetPlatform=i386-unknown-cygwin32;;
49 TargetPlatform=m68k-next-nextstep2;;
51 TargetPlatform=m68k-next-nextstep3;;
52 i[[3456]]86-next-nextstep3)
53 TargetPlatform=i386-next-nextstep3;;
55 TargetPlatform=m68k-sun-sunos4;;
57 TargetPlaformP=mips-dec-ultrix;;
59 TargetPlatform=mips-sgi-irix;;
61 TargetPlatform=powerpc-ibm-aix;;
63 TargetPlatform=rs6000-ibm-aix;;
65 TargetPlatform=sparc-sun-sunos4;;
67 TargetPlatform=sparc-sun-solaris2;;
69 echo "Unrecognised platform: $TargetPlatform"
73 echo "Which we'll further canonicalise into: $TargetPlatform"
75 AC_SUBST(TargetPlatform)
78 AC_CHECK_PROG(PerlCmd,perl,$ac_dir/$ac_word)
79 if test -z "$PerlCmd"; then
80 echo "You must install perl before you can continue"
81 echo "Perhaps it is already installed, but not in your PATH?"
83 echo "Continuing, assuming perl will be available as: perl"
86 dnl ** does #!.../perl work? (sometimes it's too long...)
87 echo "checking if \`#!$PerlCmd' works in shell scripts"
92 (SHELL=/bin/sh; export SHELL; ./conftest 69 > /dev/null)
93 if test $? -ne 69; then
96 echo "It doesn't! Perhaps \`#!$PerlCmd' is too long (often 32 characters max).."
101 dnl ** figure out how to do a BSD-ish install **
106 dnl ** how to do symlinks **
111 dnl ** Find the path to sed **
113 AC_PATH_PROG(SedCmd,sed)
116 dnl ** How to invoke cpp directly **
125 echo "****************************************************"
126 echo "Configuration done, ready to either 'make install'"
127 echo "or 'make in-place', followed by 'make install-docs'."
128 echo "(see README and INSTALL files for more info.)"
129 echo "****************************************************"