Mercurial > hg > xemacs-beta
comparison configure.in @ 400:a86b2b5e0111 r21-2-30
Import from CVS: tag r21-2-30
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:14:34 +0200 |
parents | 74fd4e045ea6 |
children | 2f8bb876ab1d |
comparison
equal
deleted
inserted
replaced
399:376370fb5946 | 400:a86b2b5e0111 |
---|---|
12 ### Don't edit this script! | 12 ### Don't edit this script! |
13 ### This script was automatically generated by the `autoconf' program | 13 ### This script was automatically generated by the `autoconf' program |
14 ### from the file `./configure.in'. | 14 ### from the file `./configure.in'. |
15 ### To rebuild it, execute the command | 15 ### To rebuild it, execute the command |
16 ### autoconf | 16 ### autoconf |
17 ### in the this directory. You must have autoconf version 2.12 or later. | 17 ### in the this directory. You must have autoconf version 2.13 or later. |
18 | 18 |
19 ### This file is part of XEmacs. | 19 ### This file is part of XEmacs. |
20 | 20 |
21 ### XEmacs is free software; you can redistribute it and/or modify it | 21 ### XEmacs is free software; you can redistribute it and/or modify it |
22 ### under the terms of the GNU General Public License as published by | 22 ### under the terms of the GNU General Public License as published by |
48 dnl configuration code and autoconf macros. | 48 dnl configuration code and autoconf macros. |
49 | 49 |
50 dnl We use the m4 quoting characters [ ] (as established by the | 50 dnl We use the m4 quoting characters [ ] (as established by the |
51 dnl autoconf system), so quote them like this: [[foo]] | 51 dnl autoconf system), so quote them like this: [[foo]] |
52 | 52 |
53 AC_PREREQ(2.12)dnl | 53 AC_PREREQ(2.13)dnl |
54 dnl Redefine some standard autoconf macros | 54 dnl Redefine some standard autoconf macros |
55 dnl here is how XEmacs is different: | 55 dnl here is how XEmacs is different: |
56 dnl - no cache file | 56 dnl - no cache file |
57 dnl - non-standard options | 57 dnl - non-standard options |
58 dnl - suport for extra-verbosity | 58 dnl - suport for extra-verbosity |
1081 hppa-*-* ) machine=hp800 ;; | 1081 hppa-*-* ) machine=hp800 ;; |
1082 m88k-dg-* ) machine=aviion ;; | 1082 m88k-dg-* ) machine=aviion ;; |
1083 m68*-sony-* ) machine=news ;; | 1083 m68*-sony-* ) machine=news ;; |
1084 mips-sony-* ) machine=news-risc ;; | 1084 mips-sony-* ) machine=news-risc ;; |
1085 clipper-* ) machine=clipper ;; | 1085 clipper-* ) machine=clipper ;; |
1086 arm-* ) machine=arm ;; | 1086 arm* ) machine=arm ;; |
1087 armv[34][lb]-* ) machine=arm ;; | |
1088 ns32k-* ) machine=ns32000 ;; | 1087 ns32k-* ) machine=ns32000 ;; |
1089 esac | 1088 esac |
1090 | 1089 |
1091 dnl Straightforward OS determination | 1090 dnl Straightforward OS determination |
1092 case "$canonical" in | 1091 case "$canonical" in |
1859 else | 1858 else |
1860 CFLAGS="-O" ;dnl The only POSIX-approved flag | 1859 CFLAGS="-O" ;dnl The only POSIX-approved flag |
1861 fi | 1860 fi |
1862 fi | 1861 fi |
1863 | 1862 |
1863 dnl Search for GCC specific build problems we know about | |
1864 if test "$GCC" = "yes"; then | |
1865 AC_MSG_CHECKING(for buggy gcc versions) | |
1866 GCC_VERSION=`$CC --version` | |
1867 case `uname -s`:`uname -m`:$GCC_VERSION in | |
1868 dnl egcs 2.90.21 (egcs-1.00 release) | |
1869 dnl egcs 2.90.29 (egcs-1.0.3 release) | |
1870 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*) | |
1871 dnl Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures | |
1872 dnl without also using `-fno-schedule-insns'. | |
1873 case "$CFLAGS" in | |
1874 *-O2*|*-O3*) | |
1875 case "$CFLAGS" in | |
1876 *-fno-schedule-insns*) ;; | |
1877 *) | |
1878 AC_MSG_RESULT(Yes) | |
1879 AC_MSG_WARN(Don't use -O2 with gcc 2.8.1 and egcs 1.0 under SPARC architectures) | |
1880 AC_MSG_WARN(without also using -fno-schedule-insns.) | |
1881 AC_MSG_ERROR(Aborting due to known problem) | |
1882 ;; | |
1883 esac | |
1884 ;; | |
1885 esac | |
1886 ;; | |
1887 dnl egcs-2.91.57 (egcs-1.1 release) | |
1888 dnl egcs-2.91.66 (egcs-1.1.2 release) | |
1889 Linux:alpha:egcs-2.91.*) | |
1890 AC_MSG_RESULT(Yes) | |
1891 AC_MSG_WARN(There have been reports of egcs-1.1 not compiling XEmacs correctly on) | |
1892 AC_MSG_WARN(Alpha Linux. There have also been reports that egcs-1.0.3a is O.K.) | |
1893 AC_MSG_ERROR(Aborting due to known problem) | |
1894 ;; | |
1895 *:i*86*:2.7.2*) | |
1896 case "$GCC_VERSION" in | |
1897 2.7.2) | |
1898 case "$CFLAGS" in | |
1899 *-O2*|*-O3*) | |
1900 case "$CFLAGS" in | |
1901 *-fno-strength-reduce*) ;; | |
1902 *) | |
1903 AC_MSG_RESULT(Yes) | |
1904 AC_MSG_WARN(Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using) | |
1905 AC_MSG_WARN(-fno-strength-reduce.) | |
1906 AC_MSG_ERROR(Aborting due to known problem) | |
1907 ;; | |
1908 esac | |
1909 ;; | |
1910 esac | |
1911 ;; | |
1912 esac | |
1913 case "$CFLAGS" in | |
1914 *-fno-caller-saves*) ;; | |
1915 *) | |
1916 AC_MSG_RESULT(Yes) | |
1917 AC_MSG_WARN(Don't use -O2 with gcc 2.7.2 under Intel/XXX without also using) | |
1918 AC_MSG_WARN(-fno-caller-saves.) | |
1919 AC_MSG_ERROR(Aborting due to known problem) | |
1920 ;; | |
1921 esac | |
1922 ;; | |
1923 esac | |
1924 fi | |
1925 AC_MSG_RESULT(No) | |
1926 | |
1864 dnl Inform compiler that certain flags are meant for the linker | 1927 dnl Inform compiler that certain flags are meant for the linker |
1865 dnl XE_PROTECT_LINKER_FLAGS(shell_var) | 1928 dnl XE_PROTECT_LINKER_FLAGS(shell_var) |
1866 define([XE_PROTECT_LINKER_FLAGS], [ | 1929 define([XE_PROTECT_LINKER_FLAGS], [ |
1867 if test "$GCC" = "yes"; then | 1930 if test "$GCC" = "yes"; then |
1868 set x $[$1]; shift; [$1]="" | 1931 set x $[$1]; shift; [$1]="" |
2215 AC_PROG_RANLIB | 2278 AC_PROG_RANLIB |
2216 AC_PROG_INSTALL | 2279 AC_PROG_INSTALL |
2217 AC_PROG_YACC | 2280 AC_PROG_YACC |
2218 | 2281 |
2219 dnl checks for header files | 2282 dnl checks for header files |
2220 AC_CHECK_HEADERS(mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h) | 2283 AC_CHECK_HEADERS(dnl |
2221 AC_CHECK_HEADERS(utime.h locale.h libgen.h fcntl.h ulimit.h cygwin/version.h) | 2284 a.out.h dnl |
2222 AC_CHECK_HEADERS(kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h) | 2285 cygwin/version.h dnl |
2286 fcntl.h dnl | |
2287 inttypes.h dnl | |
2288 libgen.h dnl | |
2289 locale.h dnl | |
2290 mach/mach.h dnl | |
2291 sys/param.h dnl | |
2292 sys/pstat.h dnl | |
2293 sys/stropts.h dnl | |
2294 sys/time.h dnl | |
2295 sys/timeb.h dnl | |
2296 sys/un.h dnl | |
2297 kstat.h dnl | |
2298 ulimit.h dnl | |
2299 unistd.h dnl | |
2300 utime.h dnl | |
2301 ) | |
2223 AC_HEADER_SYS_WAIT | 2302 AC_HEADER_SYS_WAIT |
2224 AC_HEADER_STDC | 2303 AC_HEADER_STDC |
2225 AC_HEADER_TIME | 2304 AC_HEADER_TIME |
2226 AC_DECL_SYS_SIGLIST | 2305 AC_DECL_SYS_SIGLIST |
2227 | 2306 |
2342 fi | 2421 fi |
2343 else AC_MSG_RESULT(no) | 2422 else AC_MSG_RESULT(no) |
2344 fi | 2423 fi |
2345 | 2424 |
2346 dnl Link with "-z ignore" on Solaris if supported | 2425 dnl Link with "-z ignore" on Solaris if supported |
2347 if test "$opsys" = "sol2" -a "$os_release" -ge 56; then | 2426 if test "$opsys" = "sol2"; then |
2348 AC_MSG_CHECKING(for \"-z ignore\" linker flag) | 2427 if test "$os_release" -ge 56; then |
2349 case "`ld -h 2>&1`" in | 2428 AC_MSG_CHECKING(for \"-z ignore\" linker flag) |
2350 *-z\ ignore\|record* ) AC_MSG_RESULT(yes) | 2429 case "`ld -h 2>&1`" in |
2351 XE_PREPEND(-z ignore, ld_switch_site) ;; | 2430 *-z\ ignore\|record* ) AC_MSG_RESULT(yes) |
2352 *) AC_MSG_RESULT(no) ;; | 2431 XE_PREPEND(-z ignore, ld_switch_site) ;; |
2353 esac | 2432 *) AC_MSG_RESULT(no) ;; |
2433 esac | |
2434 fi | |
2354 fi | 2435 fi |
2355 | 2436 |
2356 dnl ---------------------- | 2437 dnl ---------------------- |
2357 dnl Choose a window system | 2438 dnl Choose a window system |
2358 dnl ---------------------- | 2439 dnl ---------------------- |