2 dnl Binary distribution configure script
8 AC_INIT(Makefile-vars.in)
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[[12]]*)
28 TargetPlatform=alpha-dec-osf1;;
29 alpha*-dec-osf[[345]]*)
30 TargetPlatform=alpha-dec-osf3;;
32 TargetPlatform=alpha-unknown-linux;;
33 alpha*-unknown-freebsd*)
34 TargetPlatform=alpha-unknown-freebsd;;
36 TargetPlatform=hppa1.1-hp-hpux;;
37 i[[3456]]86-*-linuxaout*)
38 TargetPlatform=i386-unknown-linuxaout;;
40 TargetPlatform=i386-unknown-linux;;
41 i[[3456]]86-*-freebsd2*)
42 TargetPlatform=i386-unknown-freebsd2;;
43 i[[3456]]86-*-freebsd[[3-9]]*)
44 TargetPlatform=i386-unknown-freebsd;;
45 i[[3456]]86-*-netbsd*)
46 TargetPlatform=i386-unknown-netbsd;;
47 i[[3456]]86-*-openbsd*)
48 TargetPlatform=i386-unknown-openbsd;;
49 i[[3456]]86-*-solaris2*)
50 TargetPlatform=i386-unknown-solaris2;;
51 i[[3456]]86-*-cygwin*)
53 TargetPlatform=i386-unknown-cygwin32;;
54 i[[3456]]86-*-mingw32*)
56 TargetPlatform=i386-unknown-mingw32
58 i[[3456]]86-apple-darwin*)
59 TargetPlatform=i386-apple-darwin;;
61 TargetPlatform=m68k-next-nextstep2;;
63 TargetPlatform=m68k-next-nextstep3;;
64 i[[3456]]86-next-nextstep3)
65 TargetPlatform=i386-next-nextstep3;;
67 TargetPlatform=m68k-sun-sunos4;;
69 TargetPlaformP=mips-dec-ultrix;;
71 TargetPlatform=mips-sgi-irix;;
73 TargetPlatform=powerpc-ibm-aix;;
75 TargetPlatform=rs6000-ibm-aix;;
76 powerpc-apple-darwin*)
77 TargetPlatform=powerpc-apple-darwin;;
79 TargetPlatform=powerpc-unknown-linux;;
81 TargetPlatform=powerpc64-unknown-linux;;
83 TargetPlatform=sparc-sun-sunos4;;
85 TargetPlatform=sparc-sun-solaris2;;
87 TargetPlatform=x86_64-unknown-linux;;
89 TargetPlatform=x86_64-unknown-freebsd;;
91 TargetPlatform=x86_64-unknown-openbsd;;
93 TargetPlatform=x86_64-unknown-netbsd;;
95 TargetPlatform=x86_64-apple-darwin;;
97 echo "Unrecognised platform: $TargetPlatform"
101 echo "Which we'll further canonicalise into: $TargetPlatform"
103 AC_SUBST(TargetPlatform)
109 dnl ** Check Perl installation **
111 AC_PATH_PROG(PerlCmd,perl)
112 if test -z "$PerlCmd"; then
113 echo "You must install perl before you can continue"
114 echo "Perhaps it is already installed, but not in your PATH?"
120 dnl ** figure out how to do a BSD-ish install **
125 dnl ** how to do symlinks **
130 dnl ** how to invoke `ar' and `ranlib'
132 FP_PROG_AR_NEEDS_RANLIB
135 dnl ** Find the path to sed **
137 AC_PATH_PROG(SedCmd,sed)
140 dnl ** How to invoke cpp directly **
146 dnl ** Check gcc version and flags we need to pass it **
151 AC_CONFIG_FILES(Makefile-vars extra-gcc-opts)
154 echo "****************************************************"
155 echo "Configuration done, ready to 'make install'"
156 echo "(see README and INSTALL files for more info.)"
157 echo "****************************************************"