| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2 |  | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3 | # From configure.in Revision: 1.300  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5 | # Guess values for system-dependent variables and create Makefiles. | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6 | # Generated automatically using autoconf version 2.13  | 
 | 7 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8 | # | 
 | 9 | # This configure script is free software; the Free Software Foundation | 
 | 10 | # gives unlimited permission to copy, distribute and modify it. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12 | # Defaults: | 
 | 13 | ac_help= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14 | ac_default_prefix=/usr/local | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15 | # Any additions from configure.in: | 
 | 16 | ac_help="$ac_help | 
 | 17 |   --enable-framework[=INSTALLDIR] Build (MacOSX|Darwin) framework" | 
 | 18 | ac_help="$ac_help | 
 | 19 |   --without-gcc                   never use gcc" | 
 | 20 | ac_help="$ac_help | 
 | 21 |   --with-cxx=<compiler>           enable C++ support" | 
 | 22 | ac_help="$ac_help | 
 | 23 |   --with-suffix=.exe              set executable suffix" | 
 | 24 | ac_help="$ac_help | 
 | 25 |   --with-pydebug                  build with Py_DEBUG defined" | 
 | 26 | ac_help="$ac_help | 
 | 27 |   --enable-toolbox-glue            disable/enable MacOSX glue code for extensions" | 
 | 28 | ac_help="$ac_help | 
 | 29 |   --with-libs='lib1 ...'          link against additional libs" | 
 | 30 | ac_help="$ac_help | 
 | 31 |   --with-signal-module            disable/enable signal module" | 
 | 32 | ac_help="$ac_help | 
 | 33 |   --with-dec-threads              use DEC Alpha/OSF1 thread-safe libraries" | 
 | 34 | ac_help="$ac_help | 
 | 35 |   --with(out)-threads[=DIRECTORY] disable/enable thread support" | 
 | 36 | ac_help="$ac_help | 
 | 37 |   --with(out)-thread[=DIRECTORY]  deprecated; use --with(out)-threads" | 
 | 38 | ac_help="$ac_help | 
 | 39 |   --with-pth                      use GNU pth threading libraries" | 
 | 40 | ac_help="$ac_help | 
 | 41 |   --enable-ipv6                   Enable ipv6 (with ipv4) support | 
 | 42 |   --disable-ipv6                  Disable ipv6 support" | 
 | 43 | ac_help="$ac_help | 
 | 44 |   --with(out)-cycle-gc            disable/enable garbage collection" | 
 | 45 | ac_help="$ac_help | 
 | 46 |   --with(out)-pymalloc            disable/enable specialized mallocs" | 
 | 47 | ac_help="$ac_help | 
 | 48 |   --with-wctype-functions         use wctype.h functions" | 
 | 49 | ac_help="$ac_help | 
 | 50 |   --with-sgi-dl=DIRECTORY         IRIX 4 dynamic linking" | 
 | 51 | ac_help="$ac_help | 
 | 52 |   --with-dl-dld=DL_DIR,DLD_DIR    GNU dynamic linking" | 
 | 53 | ac_help="$ac_help | 
 | 54 |   --with-fpectl                   enable SIGFPE catching" | 
 | 55 | ac_help="$ac_help | 
 | 56 |   --with-libm=STRING              math library" | 
 | 57 | ac_help="$ac_help | 
 | 58 |   --with-libc=STRING              C library" | 
 | 59 | ac_help="$ac_help | 
 | 60 |   --enable-unicode[=ucs2,ucs4]    Enable Unicode strings (default is yes)" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 61 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 62 | # Initialize some variables set by options. | 
 | 63 | # The variables have the same names as the options, with | 
 | 64 | # dashes changed to underlines. | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 65 | build=NONE | 
 | 66 | cache_file=./config.cache | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 67 | exec_prefix=NONE | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 68 | host=NONE | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 69 | no_create= | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 70 | nonopt=NONE | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 71 | no_recursion= | 
 | 72 | prefix=NONE | 
 | 73 | program_prefix=NONE | 
 | 74 | program_suffix=NONE | 
 | 75 | program_transform_name=s,x,x, | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 76 | silent= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 77 | site= | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 78 | srcdir= | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 79 | target=NONE | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 80 | verbose= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 81 | x_includes=NONE | 
 | 82 | x_libraries=NONE | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 83 | bindir='${exec_prefix}/bin' | 
 | 84 | sbindir='${exec_prefix}/sbin' | 
 | 85 | libexecdir='${exec_prefix}/libexec' | 
 | 86 | datadir='${prefix}/share' | 
 | 87 | sysconfdir='${prefix}/etc' | 
 | 88 | sharedstatedir='${prefix}/com' | 
 | 89 | localstatedir='${prefix}/var' | 
 | 90 | libdir='${exec_prefix}/lib' | 
 | 91 | includedir='${prefix}/include' | 
 | 92 | oldincludedir='/usr/include' | 
 | 93 | infodir='${prefix}/info' | 
 | 94 | mandir='${prefix}/man' | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 95 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 96 | # Initialize some other variables. | 
 | 97 | subdirs= | 
 | 98 | MFLAGS= MAKEFLAGS= | 
 | 99 | SHELL=${CONFIG_SHELL-/bin/sh} | 
 | 100 | # Maximum number of lines to put in a shell here document. | 
 | 101 | ac_max_here_lines=12 | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 102 |  | 
 | 103 | ac_prev= | 
 | 104 | for ac_option | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 105 | do | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 106 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 107 |   # If the previous option needs an argument, assign it. | 
 | 108 |   if test -n "$ac_prev"; then | 
 | 109 |     eval "$ac_prev=\$ac_option" | 
 | 110 |     ac_prev= | 
 | 111 |     continue | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 112 |   fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 113 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 114 |   case "$ac_option" in | 
 | 115 |   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | 
 | 116 |   *) ac_optarg= ;; | 
 | 117 |   esac | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 118 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 119 |   # Accept the important Cygnus configure options, so we can diagnose typos. | 
 | 120 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 121 |   case "$ac_option" in | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 122 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 123 |   -bindir | --bindir | --bindi | --bind | --bin | --bi) | 
 | 124 |     ac_prev=bindir ;; | 
 | 125 |   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 126 |     bindir="$ac_optarg" ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 127 |  | 
 | 128 |   -build | --build | --buil | --bui | --bu) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 129 |     ac_prev=build ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 130 |   -build=* | --build=* | --buil=* | --bui=* | --bu=*) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 131 |     build="$ac_optarg" ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 132 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 133 |   -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
 | 134 |   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
 | 135 |     ac_prev=cache_file ;; | 
 | 136 |   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
 | 137 |   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 138 |     cache_file="$ac_optarg" ;; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 139 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 140 |   -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | 
 | 141 |     ac_prev=datadir ;; | 
 | 142 |   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | 
 | 143 |   | --da=*) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 144 |     datadir="$ac_optarg" ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 145 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 146 |   -disable-* | --disable-*) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 147 |     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 148 |     # Reject names that are not valid shell variable names. | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 149 |     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | 
 | 150 |       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | 
 | 151 |     fi | 
 | 152 |     ac_feature=`echo $ac_feature| sed 's/-/_/g'` | 
 | 153 |     eval "enable_${ac_feature}=no" ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 154 |  | 
 | 155 |   -enable-* | --enable-*) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 156 |     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 157 |     # Reject names that are not valid shell variable names. | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 158 |     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | 
 | 159 |       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | 
 | 160 |     fi | 
 | 161 |     ac_feature=`echo $ac_feature| sed 's/-/_/g'` | 
 | 162 |     case "$ac_option" in | 
 | 163 |       *=*) ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 164 |       *) ac_optarg=yes ;; | 
 | 165 |     esac | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 166 |     eval "enable_${ac_feature}='$ac_optarg'" ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 167 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 168 |   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | 
 | 169 |   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | 
 | 170 |   | --exec | --exe | --ex) | 
 | 171 |     ac_prev=exec_prefix ;; | 
 | 172 |   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | 
 | 173 |   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | 
 | 174 |   | --exec=* | --exe=* | --ex=*) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 175 |     exec_prefix="$ac_optarg" ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 176 |  | 
 | 177 |   -gas | --gas | --ga | --g) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 178 |     # Obsolete; use --with-gas. | 
 | 179 |     with_gas=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 180 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 181 |   -help | --help | --hel | --he) | 
 | 182 |     # Omit some internal or obsolete options to make the list less imposing. | 
 | 183 |     # This message is too long to be a string in the A/UX 3.1 sh. | 
 | 184 |     cat << EOF | 
 | 185 | Usage: configure [options] [host] | 
 | 186 | Options: [defaults in brackets after descriptions] | 
 | 187 | Configuration: | 
 | 188 |   --cache-file=FILE       cache test results in FILE | 
 | 189 |   --help                  print this message | 
 | 190 |   --no-create             do not create output files | 
 | 191 |   --quiet, --silent       do not print \`checking...' messages | 
 | 192 |   --version               print the version of autoconf that created configure | 
 | 193 | Directory and file names: | 
 | 194 |   --prefix=PREFIX         install architecture-independent files in PREFIX | 
 | 195 |                           [$ac_default_prefix] | 
 | 196 |   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX | 
 | 197 |                           [same as prefix] | 
 | 198 |   --bindir=DIR            user executables in DIR [EPREFIX/bin] | 
 | 199 |   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin] | 
 | 200 |   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec] | 
 | 201 |   --datadir=DIR           read-only architecture-independent data in DIR | 
 | 202 |                           [PREFIX/share] | 
 | 203 |   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc] | 
 | 204 |   --sharedstatedir=DIR    modifiable architecture-independent data in DIR | 
 | 205 |                           [PREFIX/com] | 
 | 206 |   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var] | 
 | 207 |   --libdir=DIR            object code libraries in DIR [EPREFIX/lib] | 
 | 208 |   --includedir=DIR        C header files in DIR [PREFIX/include] | 
 | 209 |   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include] | 
 | 210 |   --infodir=DIR           info documentation in DIR [PREFIX/info] | 
 | 211 |   --mandir=DIR            man documentation in DIR [PREFIX/man] | 
 | 212 |   --srcdir=DIR            find the sources in DIR [configure dir or ..] | 
 | 213 |   --program-prefix=PREFIX prepend PREFIX to installed program names | 
 | 214 |   --program-suffix=SUFFIX append SUFFIX to installed program names | 
 | 215 |   --program-transform-name=PROGRAM | 
 | 216 |                           run sed PROGRAM on installed program names | 
 | 217 | EOF | 
 | 218 |     cat << EOF | 
 | 219 | Host type: | 
 | 220 |   --build=BUILD           configure for building on BUILD [BUILD=HOST] | 
 | 221 |   --host=HOST             configure for HOST [guessed] | 
 | 222 |   --target=TARGET         configure for TARGET [TARGET=HOST] | 
 | 223 | Features and packages: | 
 | 224 |   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no) | 
 | 225 |   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] | 
 | 226 |   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes] | 
 | 227 |   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) | 
 | 228 |   --x-includes=DIR        X include files are in DIR | 
 | 229 |   --x-libraries=DIR       X library files are in DIR | 
 | 230 | EOF | 
 | 231 |     if test -n "$ac_help"; then | 
 | 232 |       echo "--enable and --with options recognized:$ac_help" | 
 | 233 |     fi | 
 | 234 |     exit 0 ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 235 |  | 
 | 236 |   -host | --host | --hos | --ho) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 237 |     ac_prev=host ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 238 |   -host=* | --host=* | --hos=* | --ho=*) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 239 |     host="$ac_optarg" ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 240 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 241 |   -includedir | --includedir | --includedi | --included | --include \ | 
 | 242 |   | --includ | --inclu | --incl | --inc) | 
 | 243 |     ac_prev=includedir ;; | 
 | 244 |   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | 
 | 245 |   | --includ=* | --inclu=* | --incl=* | --inc=*) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 246 |     includedir="$ac_optarg" ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 247 |  | 
 | 248 |   -infodir | --infodir | --infodi | --infod | --info | --inf) | 
 | 249 |     ac_prev=infodir ;; | 
 | 250 |   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 251 |     infodir="$ac_optarg" ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 252 |  | 
 | 253 |   -libdir | --libdir | --libdi | --libd) | 
 | 254 |     ac_prev=libdir ;; | 
 | 255 |   -libdir=* | --libdir=* | --libdi=* | --libd=*) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 256 |     libdir="$ac_optarg" ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 257 |  | 
 | 258 |   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | 
 | 259 |   | --libexe | --libex | --libe) | 
 | 260 |     ac_prev=libexecdir ;; | 
 | 261 |   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | 
 | 262 |   | --libexe=* | --libex=* | --libe=*) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 263 |     libexecdir="$ac_optarg" ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 264 |  | 
 | 265 |   -localstatedir | --localstatedir | --localstatedi | --localstated \ | 
 | 266 |   | --localstate | --localstat | --localsta | --localst \ | 
 | 267 |   | --locals | --local | --loca | --loc | --lo) | 
 | 268 |     ac_prev=localstatedir ;; | 
 | 269 |   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | 
 | 270 |   | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | 
 | 271 |   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 272 |     localstatedir="$ac_optarg" ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 273 |  | 
 | 274 |   -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | 
 | 275 |     ac_prev=mandir ;; | 
 | 276 |   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 277 |     mandir="$ac_optarg" ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 278 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 279 |   -nfp | --nfp | --nf) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 280 |     # Obsolete; use --without-fp. | 
 | 281 |     with_fp=no ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 282 |  | 
 | 283 |   -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 
 | 284 |   | --no-cr | --no-c) | 
 | 285 |     no_create=yes ;; | 
 | 286 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 287 |   -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 
 | 288 |   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | 
 | 289 |     no_recursion=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 290 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 291 |   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | 
 | 292 |   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | 
 | 293 |   | --oldin | --oldi | --old | --ol | --o) | 
 | 294 |     ac_prev=oldincludedir ;; | 
 | 295 |   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | 
 | 296 |   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | 
 | 297 |   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 298 |     oldincludedir="$ac_optarg" ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 299 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 300 |   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
 | 301 |     ac_prev=prefix ;; | 
 | 302 |   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 303 |     prefix="$ac_optarg" ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 304 |  | 
 | 305 |   -program-prefix | --program-prefix | --program-prefi | --program-pref \ | 
 | 306 |   | --program-pre | --program-pr | --program-p) | 
 | 307 |     ac_prev=program_prefix ;; | 
 | 308 |   -program-prefix=* | --program-prefix=* | --program-prefi=* \ | 
 | 309 |   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 310 |     program_prefix="$ac_optarg" ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 311 |  | 
 | 312 |   -program-suffix | --program-suffix | --program-suffi | --program-suff \ | 
 | 313 |   | --program-suf | --program-su | --program-s) | 
 | 314 |     ac_prev=program_suffix ;; | 
 | 315 |   -program-suffix=* | --program-suffix=* | --program-suffi=* \ | 
 | 316 |   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 317 |     program_suffix="$ac_optarg" ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 318 |  | 
 | 319 |   -program-transform-name | --program-transform-name \ | 
 | 320 |   | --program-transform-nam | --program-transform-na \ | 
 | 321 |   | --program-transform-n | --program-transform- \ | 
 | 322 |   | --program-transform | --program-transfor \ | 
 | 323 |   | --program-transfo | --program-transf \ | 
 | 324 |   | --program-trans | --program-tran \ | 
 | 325 |   | --progr-tra | --program-tr | --program-t) | 
 | 326 |     ac_prev=program_transform_name ;; | 
 | 327 |   -program-transform-name=* | --program-transform-name=* \ | 
 | 328 |   | --program-transform-nam=* | --program-transform-na=* \ | 
 | 329 |   | --program-transform-n=* | --program-transform-=* \ | 
 | 330 |   | --program-transform=* | --program-transfor=* \ | 
 | 331 |   | --program-transfo=* | --program-transf=* \ | 
 | 332 |   | --program-trans=* | --program-tran=* \ | 
 | 333 |   | --progr-tra=* | --program-tr=* | --program-t=*) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 334 |     program_transform_name="$ac_optarg" ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 335 |  | 
 | 336 |   -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 337 |   | -silent | --silent | --silen | --sile | --sil) | 
 | 338 |     silent=yes ;; | 
 | 339 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 340 |   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | 
 | 341 |     ac_prev=sbindir ;; | 
 | 342 |   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | 
 | 343 |   | --sbi=* | --sb=*) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 344 |     sbindir="$ac_optarg" ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 345 |  | 
 | 346 |   -sharedstatedir | --sharedstatedir | --sharedstatedi \ | 
 | 347 |   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | 
 | 348 |   | --sharedst | --shareds | --shared | --share | --shar \ | 
 | 349 |   | --sha | --sh) | 
 | 350 |     ac_prev=sharedstatedir ;; | 
 | 351 |   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | 
 | 352 |   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | 
 | 353 |   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | 
 | 354 |   | --sha=* | --sh=*) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 355 |     sharedstatedir="$ac_optarg" ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 356 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 357 |   -site | --site | --sit) | 
 | 358 |     ac_prev=site ;; | 
 | 359 |   -site=* | --site=* | --sit=*) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 360 |     site="$ac_optarg" ;; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 361 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 362 |   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
 | 363 |     ac_prev=srcdir ;; | 
 | 364 |   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 365 |     srcdir="$ac_optarg" ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 366 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 367 |   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | 
 | 368 |   | --syscon | --sysco | --sysc | --sys | --sy) | 
 | 369 |     ac_prev=sysconfdir ;; | 
 | 370 |   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | 
 | 371 |   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 372 |     sysconfdir="$ac_optarg" ;; | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 373 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 374 |   -target | --target | --targe | --targ | --tar | --ta | --t) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 375 |     ac_prev=target ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 376 |   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 377 |     target="$ac_optarg" ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 378 |  | 
 | 379 |   -v | -verbose | --verbose | --verbos | --verbo | --verb) | 
 | 380 |     verbose=yes ;; | 
 | 381 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 382 |   -version | --version | --versio | --versi | --vers) | 
 | 383 |     echo "configure generated by autoconf version 2.13" | 
 | 384 |     exit 0 ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 385 |  | 
 | 386 |   -with-* | --with-*) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 387 |     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 388 |     # Reject names that are not valid shell variable names. | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 389 |     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | 
 | 390 |       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | 
 | 391 |     fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 392 |     ac_package=`echo $ac_package| sed 's/-/_/g'` | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 393 |     case "$ac_option" in | 
 | 394 |       *=*) ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 395 |       *) ac_optarg=yes ;; | 
 | 396 |     esac | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 397 |     eval "with_${ac_package}='$ac_optarg'" ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 398 |  | 
 | 399 |   -without-* | --without-*) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 400 |     ac_package=`echo $ac_option|sed -e 's/-*without-//'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 401 |     # Reject names that are not valid shell variable names. | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 402 |     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | 
 | 403 |       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | 
 | 404 |     fi | 
 | 405 |     ac_package=`echo $ac_package| sed 's/-/_/g'` | 
 | 406 |     eval "with_${ac_package}=no" ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 407 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 408 |   --x) | 
 | 409 |     # Obsolete; use --with-x. | 
 | 410 |     with_x=yes ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 411 |  | 
 | 412 |   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | 
 | 413 |   | --x-incl | --x-inc | --x-in | --x-i) | 
 | 414 |     ac_prev=x_includes ;; | 
 | 415 |   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | 
 | 416 |   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 417 |     x_includes="$ac_optarg" ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 418 |  | 
 | 419 |   -x-libraries | --x-libraries | --x-librarie | --x-librari \ | 
 | 420 |   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | 
 | 421 |     ac_prev=x_libraries ;; | 
 | 422 |   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | 
 | 423 |   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 424 |     x_libraries="$ac_optarg" ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 425 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 426 |   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 427 |     ;; | 
 | 428 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 429 |   *) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 430 |     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | 
 | 431 |       echo "configure: warning: $ac_option: invalid host type" 1>&2 | 
 | 432 |     fi | 
 | 433 |     if test "x$nonopt" != xNONE; then | 
 | 434 |       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | 
 | 435 |     fi | 
 | 436 |     nonopt="$ac_option" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 437 |     ;; | 
 | 438 |  | 
 | 439 |   esac | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 440 | done | 
 | 441 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 442 | if test -n "$ac_prev"; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 443 |   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 444 | fi | 
 | 445 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 446 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | 
 | 447 |  | 
 | 448 | # File descriptor usage: | 
 | 449 | # 0 standard input | 
 | 450 | # 1 file creation | 
 | 451 | # 2 errors and warnings | 
 | 452 | # 3 some systems may open it to /dev/tty | 
 | 453 | # 4 used on the Kubota Titan | 
 | 454 | # 6 checking for... messages and results | 
 | 455 | # 5 compiler messages saved in config.log | 
 | 456 | if test "$silent" = yes; then | 
 | 457 |   exec 6>/dev/null | 
 | 458 | else | 
 | 459 |   exec 6>&1 | 
 | 460 | fi | 
 | 461 | exec 5>./config.log | 
 | 462 |  | 
 | 463 | echo "\ | 
 | 464 | This file contains any messages produced by compilers while | 
 | 465 | running configure, to aid debugging if configure makes a mistake. | 
 | 466 | " 1>&5 | 
 | 467 |  | 
 | 468 | # Strip out --no-create and --no-recursion so they do not pile up. | 
 | 469 | # Also quote any args containing shell metacharacters. | 
 | 470 | ac_configure_args= | 
 | 471 | for ac_arg | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 472 | do | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 473 |   case "$ac_arg" in | 
 | 474 |   -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 
 | 475 |   | --no-cr | --no-c) ;; | 
 | 476 |   -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 
 | 477 |   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | 
 | 478 |   *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | 
 | 479 |   ac_configure_args="$ac_configure_args '$ac_arg'" ;; | 
 | 480 |   *) ac_configure_args="$ac_configure_args $ac_arg" ;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 481 |   esac | 
 | 482 | done | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 483 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 484 | # NLS nuisances. | 
 | 485 | # Only set these to C if already set.  These must not be set unconditionally | 
 | 486 | # because not all systems understand e.g. LANG=C (notably SCO). | 
 | 487 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | 
 | 488 | # Non-C LC_CTYPE values break the ctype check. | 
 | 489 | if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi | 
 | 490 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | 
 | 491 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | 
 | 492 | if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 493 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 494 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | 
 | 495 | rm -rf conftest* confdefs.h | 
 | 496 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | 
 | 497 | echo > confdefs.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 498 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 499 | # A filename unique to this package, relative to the directory that | 
 | 500 | # configure is in, which we can look for to find out if srcdir is correct. | 
 | 501 | ac_unique_file=Include/object.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 502 |  | 
 | 503 | # Find the source files, if location was not specified. | 
 | 504 | if test -z "$srcdir"; then | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 505 |   ac_srcdir_defaulted=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 506 |   # Try the directory containing this script, then its parent. | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 507 |   ac_prog=$0 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 508 |   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 509 |   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | 
 | 510 |   srcdir=$ac_confdir | 
 | 511 |   if test ! -r $srcdir/$ac_unique_file; then | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 512 |     srcdir=.. | 
 | 513 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 514 | else | 
 | 515 |   ac_srcdir_defaulted=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 516 | fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 517 | if test ! -r $srcdir/$ac_unique_file; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 518 |   if test "$ac_srcdir_defaulted" = yes; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 519 |     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 520 |   else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 521 |     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 522 |   fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 523 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 524 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 525 |  | 
 | 526 | # Prefer explicitly selected file to automatically selected ones. | 
 | 527 | if test -z "$CONFIG_SITE"; then | 
 | 528 |   if test "x$prefix" != xNONE; then | 
 | 529 |     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | 
 | 530 |   else | 
 | 531 |     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | 
 | 532 |   fi | 
 | 533 | fi | 
 | 534 | for ac_site_file in $CONFIG_SITE; do | 
 | 535 |   if test -r "$ac_site_file"; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 536 |     echo "loading site script $ac_site_file" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 537 |     . "$ac_site_file" | 
 | 538 |   fi | 
 | 539 | done | 
 | 540 |  | 
 | 541 | if test -r "$cache_file"; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 542 |   echo "loading cache $cache_file" | 
 | 543 |   . $cache_file | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 544 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 545 |   echo "creating cache $cache_file" | 
 | 546 |   > $cache_file | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 547 | fi | 
 | 548 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 549 | ac_ext=c | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 550 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 551 | ac_cpp='$CPP $CPPFLAGS' | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 552 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 
 | 553 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 
 | 554 | cross_compiling=$ac_cv_prog_cc_cross | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 555 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 556 | ac_exeext= | 
 | 557 | ac_objext=o | 
 | 558 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | 
 | 559 |   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | 
 | 560 |   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | 
 | 561 |     ac_n= ac_c=' | 
 | 562 | ' ac_t='	' | 
 | 563 |   else | 
 | 564 |     ac_n=-n ac_c= ac_t= | 
 | 565 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 566 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 567 |   ac_n= ac_c='\c' ac_t= | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 568 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 569 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 570 |  | 
 | 571 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 572 |  | 
| Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 573 | # Set VERSION so we only need to edit in one place (i.e., here) | 
 | 574 |  | 
| Andrew M. Kuchling | f2f219d | 2002-02-11 16:31:10 +0000 | [diff] [blame] | 575 | VERSION=2.3 | 
| Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 576 |  | 
| Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 577 | # Arguments passed to configure. | 
 | 578 |  | 
 | 579 | CONFIG_ARGS="$ac_configure_args" | 
 | 580 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 581 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 582 | # Check whether --enable-framework or --disable-framework was given. | 
 | 583 | if test "${enable_framework+set}" = set; then | 
 | 584 |   enableval="$enable_framework" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 585 |    | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 586 | 	case $enableval in | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 587 | 	yes)  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 588 | 		enableval=/Library/Frameworks | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 589 | 	esac | 
 | 590 | 	case $enableval in | 
 | 591 | 	no) | 
 | 592 | 		PYTHONFRAMEWORK= | 
 | 593 | 		PYTHONFRAMEWORKDIR=no-framework | 
 | 594 | 		PYTHONFRAMEWORKPREFIX= | 
 | 595 | 		PYTHONFRAMEWORKINSTALLDIR= | 
 | 596 | 		enable_framework= | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 597 | 		;; | 
 | 598 | 	*) | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 599 | 		PYTHONFRAMEWORK=Python | 
 | 600 | 		PYTHONFRAMEWORKDIR=Python.framework | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 601 | 		PYTHONFRAMEWORKPREFIX=$enableval | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 602 | 		PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR | 
 | 603 | 		prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 604 | 	esac | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 605 | 	 | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 606 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 607 |    | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 608 | 	PYTHONFRAMEWORK= | 
| Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 609 | 	PYTHONFRAMEWORKDIR=no-framework | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 610 | 	PYTHONFRAMEWORKPREFIX= | 
 | 611 | 	PYTHONFRAMEWORKINSTALLDIR= | 
 | 612 | 	enable_framework= | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 613 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 614 | fi | 
 | 615 |  | 
 | 616 |  | 
 | 617 |  | 
 | 618 |  | 
 | 619 |  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 620 |  | 
 | 621 | ##AC_ARG_WITH(dyld, | 
 | 622 | ##[  --with-dyld                     Use (OpenStep|Rhapsody) dynamic linker],,) | 
 | 623 | ## | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 624 | # Set name for machine-dependent library files | 
 | 625 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 626 | echo $ac_n "checking MACHDEP""... $ac_c" 1>&6 | 
 | 627 | echo "configure:628: checking MACHDEP" >&5 | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 628 | if test -z "$MACHDEP" | 
 | 629 | then | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 630 | 	ac_sys_system=`uname -s` | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 631 | 	if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64"; then | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 632 | 		ac_sys_release=`uname -v` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 633 | 	else | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 634 | 		ac_sys_release=`uname -r` | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 635 | 	fi | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 636 | 	ac_md_system=`echo $ac_sys_system | | 
 | 637 | 			   tr -d '/ ' | tr '[A-Z]' '[a-z]'` | 
 | 638 | 	ac_md_release=`echo $ac_sys_release | | 
| Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 639 | 			   tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` | 
| Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 640 | 	MACHDEP="$ac_md_system$ac_md_release" | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 641 |  | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 642 | 	case $MACHDEP in | 
| Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 643 | 	cygwin*) MACHDEP="cygwin";; | 
| Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 644 | 	darwin*) MACHDEP="darwin";; | 
| Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 645 | 	'')	MACHDEP="unknown";; | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 646 | 	esac | 
 | 647 | fi | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 648 |  | 
 | 649 | # | 
 | 650 | # SGI compilers allow the specification of the both the ABI and the | 
 | 651 | # ISA on the command line.  Depending on the values of these switches, | 
 | 652 | # different and often incompatable code will be generated. | 
 | 653 | # | 
 | 654 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and | 
 | 655 | # thus supply support for various ABI/ISA combinations.  The MACHDEP | 
 | 656 | # variable is also adjusted. | 
 | 657 | # | 
 | 658 |  | 
 | 659 | if test ! -z "$SGI_ABI" | 
 | 660 | then | 
 | 661 |         CC="cc $SGI_ABI" | 
 | 662 |         LDFLAGS="$SGI_ABI $LDFLAGS" | 
 | 663 |         MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` | 
 | 664 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 665 | echo "$ac_t""$MACHDEP" 1>&6 | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 666 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 667 | # checks for alternative programs | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 668 | echo $ac_n "checking for --without-gcc""... $ac_c" 1>&6 | 
 | 669 | echo "configure:670: checking for --without-gcc" >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 670 | # Check whether --with-gcc or --without-gcc was given. | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 671 | if test "${with_gcc+set}" = set; then | 
 | 672 |   withval="$with_gcc" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 673 |    | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 674 | 	case $withval in | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 675 | 	no)	CC=cc | 
 | 676 | 		without_gcc=yes;; | 
 | 677 | 	yes)	CC=gcc | 
 | 678 | 		without_gcc=no;; | 
 | 679 | 	*)	CC=$withval | 
 | 680 | 		without_gcc=$withval;; | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 681 | 	esac | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 682 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 683 |    | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 684 | 	case $ac_sys_system in | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 685 | 	AIX*)   CC=cc_r | 
 | 686 | 		without_gcc=;; | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 687 | 	BeOS*) | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 688 | 		case $BE_HOST_CPU in | 
 | 689 | 		ppc) | 
| Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 690 | 			CC=mwcc | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 691 | 			without_gcc=yes | 
| Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 692 | 			OPT="-O -D'DL_EXPORT(RTYPE)=__declspec(dllexport) RTYPE' -D'DL_IMPORT(RTYPE)=__declspec(dllexport) RTYPE' -export pragma" | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 693 | 			CCSHARED="-UDL_IMPORT -D'DL_IMPORT(RTYPE)=__declspec(dllimport) RTYPE'" | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 694 | 			LDFLAGS="$LDFLAGS -nodup" | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 695 | 			;; | 
 | 696 | 		x86) | 
| Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 697 | 			CC=gcc | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 698 | 			without_gcc=no | 
| Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 699 | 			OPT=-O | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 700 | 			;; | 
 | 701 | 		*) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 702 | 			{ echo "configure: error: Unknown BeOS platform \"$BE_HOST_CPU\"" 1>&2; exit 1; } | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 703 | 			;; | 
 | 704 | 		esac | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 705 | 		AR="\$(srcdir)/Modules/ar_beos" | 
 | 706 | 		RANLIB=: | 
| Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 707 | 		;; | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 708 |     Monterey*) | 
 | 709 |         RANLIB=: | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 710 |         without_gcc=;; | 
 | 711 | 	*)	without_gcc=no;; | 
| Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 712 | 	esac | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 713 | fi | 
 | 714 |  | 
 | 715 | echo "$ac_t""$without_gcc" 1>&6 | 
 | 716 |  | 
 | 717 |  | 
| Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 718 |  | 
| Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 719 | MAINOBJ=python.o | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 720 | echo $ac_n "checking for --with-cxx=<compiler>""... $ac_c" 1>&6 | 
 | 721 | echo "configure:722: checking for --with-cxx=<compiler>" >&5 | 
| Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 722 | # Check whether --with-cxx or --without-cxx was given. | 
 | 723 | if test "${with_cxx+set}" = set; then | 
 | 724 |   withval="$with_cxx" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 725 |    | 
| Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 726 | 	check_cxx=no | 
| Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 727 | 	case $withval in | 
 | 728 | 	no)	CXX= | 
 | 729 | 		with_cxx=no;; | 
 | 730 | 	*)	CXX=$withval | 
| Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 731 | 		MAINOBJ=ccpython.o | 
| Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 732 | 		with_cxx=$withval;; | 
 | 733 | 	esac | 
 | 734 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 735 |    | 
| Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 736 | 	with_cxx=no | 
| Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 737 | 	check_cxx=yes | 
| Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 738 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 739 | fi | 
| Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 740 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 741 | echo "$ac_t""$with_cxx" 1>&6 | 
 | 742 |  | 
 | 743 | if test "$with_cxx" = "yes" | 
 | 744 | then | 
 | 745 | 	{ echo "configure: error: must supply a compiler when using --with-cxx" 1>&2; exit 1; } | 
 | 746 | fi | 
 | 747 |  | 
 | 748 |  | 
 | 749 |  | 
 | 750 |  | 
 | 751 | if test "$check_cxx" = "yes"  | 
| Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 752 | then | 
 | 753 | 	for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | 
 | 754 | do | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 755 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
| Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 756 | set dummy $ac_prog; ac_word=$2 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 757 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
 | 758 | echo "configure:759: checking for $ac_word" >&5 | 
 | 759 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then | 
 | 760 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 761 | else | 
 | 762 |   if test -n "$CXX"; then | 
 | 763 |   ac_cv_prog_CXX="$CXX" # Let the user override the test. | 
 | 764 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 765 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
 | 766 |   ac_dummy="$PATH" | 
 | 767 |   for ac_dir in $ac_dummy; do | 
 | 768 |     test -z "$ac_dir" && ac_dir=. | 
 | 769 |     if test -f $ac_dir/$ac_word; then | 
 | 770 |       ac_cv_prog_CXX="$ac_prog" | 
 | 771 |       break | 
 | 772 |     fi | 
 | 773 |   done | 
 | 774 |   IFS="$ac_save_ifs" | 
| Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 775 | fi | 
 | 776 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 777 | CXX="$ac_cv_prog_CXX" | 
| Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 778 | if test -n "$CXX"; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 779 |   echo "$ac_t""$CXX" 1>&6 | 
| Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 780 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 781 |   echo "$ac_t""no" 1>&6 | 
| Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 782 | fi | 
 | 783 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 784 | test -n "$CXX" && break | 
| Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 785 | done | 
 | 786 | test -n "$CXX" || CXX="notfound" | 
 | 787 |  | 
 | 788 | 	if test "$CXX" = "notfound" | 
 | 789 | 	then | 
 | 790 | 		CXX= | 
 | 791 | 	else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 792 | 		echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | 
 | 793 | echo "configure:794: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 | 
 | 794 |  | 
 | 795 | ac_ext=C | 
 | 796 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 
| Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 797 | ac_cpp='$CXXCPP $CPPFLAGS' | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 798 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 
 | 799 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 
 | 800 | cross_compiling=$ac_cv_prog_cxx_cross | 
 | 801 |  | 
 | 802 | cat > conftest.$ac_ext << EOF | 
 | 803 |  | 
 | 804 | #line 805 "configure" | 
| Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 805 | #include "confdefs.h" | 
 | 806 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 807 | int main(){return(0);} | 
 | 808 | EOF | 
 | 809 | if { (eval echo configure:810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
 | 810 |   ac_cv_prog_cxx_works=yes | 
 | 811 |   # If we can't run a trivial program, we are probably using a cross compiler. | 
 | 812 |   if (./conftest; exit) 2>/dev/null; then | 
 | 813 |     ac_cv_prog_cxx_cross=no | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 814 |   else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 815 |     ac_cv_prog_cxx_cross=yes | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 816 |   fi | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 817 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 818 |   echo "configure: failed program was:" >&5 | 
 | 819 |   cat conftest.$ac_ext >&5 | 
 | 820 |   ac_cv_prog_cxx_works=no | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 821 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 822 | rm -fr conftest* | 
 | 823 | ac_ext=c | 
 | 824 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 825 | ac_cpp='$CPP $CPPFLAGS' | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 826 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 
 | 827 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 
 | 828 | cross_compiling=$ac_cv_prog_cc_cross | 
 | 829 |  | 
 | 830 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | 
 | 831 | if test $ac_cv_prog_cxx_works = no; then | 
 | 832 |   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | 
 | 833 | fi | 
 | 834 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | 
 | 835 | echo "configure:836: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 | 
 | 836 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 | 
 | 837 | cross_compiling=$ac_cv_prog_cxx_cross | 
| Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 838 |  | 
 | 839 | 	fi | 
 | 840 | fi | 
 | 841 |  | 
| Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 842 | # If the user switches compilers, we can't believe the cache | 
 | 843 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" | 
 | 844 | then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 845 |   { echo "configure: error: cached CC is different -- throw away $cache_file | 
 | 846 | (it is also a good idea to do 'make clean' before compiling)" 1>&2; exit 1; } | 
| Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 847 | fi | 
 | 848 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 849 | # Extract the first word of "gcc", so it can be a program name with args. | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 850 | set dummy gcc; ac_word=$2 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 851 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
 | 852 | echo "configure:853: checking for $ac_word" >&5 | 
 | 853 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | 
 | 854 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 855 | else | 
 | 856 |   if test -n "$CC"; then | 
 | 857 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 858 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 859 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
 | 860 |   ac_dummy="$PATH" | 
 | 861 |   for ac_dir in $ac_dummy; do | 
 | 862 |     test -z "$ac_dir" && ac_dir=. | 
 | 863 |     if test -f $ac_dir/$ac_word; then | 
 | 864 |       ac_cv_prog_CC="gcc" | 
 | 865 |       break | 
 | 866 |     fi | 
 | 867 |   done | 
 | 868 |   IFS="$ac_save_ifs" | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 869 | fi | 
 | 870 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 871 | CC="$ac_cv_prog_CC" | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 872 | if test -n "$CC"; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 873 |   echo "$ac_t""$CC" 1>&6 | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 874 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 875 |   echo "$ac_t""no" 1>&6 | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 876 | fi | 
 | 877 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 878 | if test -z "$CC"; then | 
 | 879 |   # Extract the first word of "cc", so it can be a program name with args. | 
 | 880 | set dummy cc; ac_word=$2 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 881 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
 | 882 | echo "configure:883: checking for $ac_word" >&5 | 
 | 883 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | 
 | 884 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 885 | else | 
 | 886 |   if test -n "$CC"; then | 
 | 887 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 888 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 889 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 890 |   ac_prog_rejected=no | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 891 |   ac_dummy="$PATH" | 
 | 892 |   for ac_dir in $ac_dummy; do | 
 | 893 |     test -z "$ac_dir" && ac_dir=. | 
 | 894 |     if test -f $ac_dir/$ac_word; then | 
 | 895 |       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | 
 | 896 |         ac_prog_rejected=yes | 
 | 897 | 	continue | 
 | 898 |       fi | 
 | 899 |       ac_cv_prog_CC="cc" | 
 | 900 |       break | 
 | 901 |     fi | 
 | 902 |   done | 
 | 903 |   IFS="$ac_save_ifs" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 904 | if test $ac_prog_rejected = yes; then | 
 | 905 |   # We found a bogon in the path, so make sure we never use it. | 
 | 906 |   set dummy $ac_cv_prog_CC | 
 | 907 |   shift | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 908 |   if test $# -gt 0; then | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 909 |     # We chose a different compiler from the bogus one. | 
 | 910 |     # However, it has the same basename, so the bogon will be chosen | 
 | 911 |     # first if we set CC to just the basename; use the full file name. | 
 | 912 |     shift | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 913 |     set dummy "$ac_dir/$ac_word" "$@" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 914 |     shift | 
 | 915 |     ac_cv_prog_CC="$@" | 
 | 916 |   fi | 
 | 917 | fi | 
 | 918 | fi | 
 | 919 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 920 | CC="$ac_cv_prog_CC" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 921 | if test -n "$CC"; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 922 |   echo "$ac_t""$CC" 1>&6 | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 923 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 924 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 925 | fi | 
 | 926 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 927 |   if test -z "$CC"; then | 
 | 928 |     case "`uname -s`" in | 
 | 929 |     *win32* | *WIN32*) | 
 | 930 |       # Extract the first word of "cl", so it can be a program name with args. | 
 | 931 | set dummy cl; ac_word=$2 | 
 | 932 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
 | 933 | echo "configure:934: checking for $ac_word" >&5 | 
 | 934 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | 
 | 935 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 936 | else | 
 | 937 |   if test -n "$CC"; then | 
 | 938 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 939 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 940 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
 | 941 |   ac_dummy="$PATH" | 
 | 942 |   for ac_dir in $ac_dummy; do | 
 | 943 |     test -z "$ac_dir" && ac_dir=. | 
 | 944 |     if test -f $ac_dir/$ac_word; then | 
 | 945 |       ac_cv_prog_CC="cl" | 
 | 946 |       break | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 947 |     fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 948 |   done | 
 | 949 |   IFS="$ac_save_ifs" | 
 | 950 | fi | 
 | 951 | fi | 
 | 952 | CC="$ac_cv_prog_CC" | 
 | 953 | if test -n "$CC"; then | 
 | 954 |   echo "$ac_t""$CC" 1>&6 | 
 | 955 | else | 
 | 956 |   echo "$ac_t""no" 1>&6 | 
 | 957 | fi | 
 | 958 |  ;; | 
 | 959 |     esac | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 960 |   fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 961 |   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 962 | fi | 
 | 963 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 964 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | 
 | 965 | echo "configure:966: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 966 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 967 | ac_ext=c | 
 | 968 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 
 | 969 | ac_cpp='$CPP $CPPFLAGS' | 
 | 970 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 
 | 971 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 
 | 972 | cross_compiling=$ac_cv_prog_cc_cross | 
 | 973 |  | 
 | 974 | cat > conftest.$ac_ext << EOF | 
 | 975 |  | 
 | 976 | #line 977 "configure" | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 977 | #include "confdefs.h" | 
 | 978 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 979 | main(){return(0);} | 
 | 980 | EOF | 
 | 981 | if { (eval echo configure:982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
 | 982 |   ac_cv_prog_cc_works=yes | 
 | 983 |   # If we can't run a trivial program, we are probably using a cross compiler. | 
 | 984 |   if (./conftest; exit) 2>/dev/null; then | 
 | 985 |     ac_cv_prog_cc_cross=no | 
 | 986 |   else | 
 | 987 |     ac_cv_prog_cc_cross=yes | 
 | 988 |   fi | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 989 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 990 |   echo "configure: failed program was:" >&5 | 
 | 991 |   cat conftest.$ac_ext >&5 | 
 | 992 |   ac_cv_prog_cc_works=no | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 993 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 994 | rm -fr conftest* | 
 | 995 | ac_ext=c | 
 | 996 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 
 | 997 | ac_cpp='$CPP $CPPFLAGS' | 
 | 998 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 
 | 999 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 
 | 1000 | cross_compiling=$ac_cv_prog_cc_cross | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1001 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1002 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | 
 | 1003 | if test $ac_cv_prog_cc_works = no; then | 
 | 1004 |   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1005 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1006 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | 
 | 1007 | echo "configure:1008: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | 
 | 1008 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | 
 | 1009 | cross_compiling=$ac_cv_prog_cc_cross | 
 | 1010 |  | 
 | 1011 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | 
 | 1012 | echo "configure:1013: checking whether we are using GNU C" >&5 | 
 | 1013 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then | 
 | 1014 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1015 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1016 |   cat > conftest.c <<EOF | 
 | 1017 | #ifdef __GNUC__ | 
 | 1018 |   yes; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1019 | #endif | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1020 | EOF | 
 | 1021 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | 
 | 1022 |   ac_cv_prog_gcc=yes | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1023 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1024 |   ac_cv_prog_gcc=no | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1025 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1026 | fi | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1027 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1028 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | 
 | 1029 |  | 
 | 1030 | if test $ac_cv_prog_gcc = yes; then | 
 | 1031 |   GCC=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1032 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1033 |   GCC= | 
 | 1034 | fi | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1035 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1036 | ac_test_CFLAGS="${CFLAGS+set}" | 
 | 1037 | ac_save_CFLAGS="$CFLAGS" | 
 | 1038 | CFLAGS= | 
 | 1039 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | 
 | 1040 | echo "configure:1041: checking whether ${CC-cc} accepts -g" >&5 | 
 | 1041 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then | 
 | 1042 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 1043 | else | 
 | 1044 |   echo 'void f(){}' > conftest.c | 
 | 1045 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1046 |   ac_cv_prog_cc_g=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1047 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1048 |   ac_cv_prog_cc_g=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1049 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1050 | rm -f conftest* | 
 | 1051 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1052 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1053 |  | 
 | 1054 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1055 | if test "$ac_test_CFLAGS" = set; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1056 |   CFLAGS="$ac_save_CFLAGS" | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1057 | elif test $ac_cv_prog_cc_g = yes; then | 
 | 1058 |   if test "$GCC" = yes; then | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1059 |     CFLAGS="-g -O2" | 
 | 1060 |   else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1061 |     CFLAGS="-g" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1062 |   fi | 
 | 1063 | else | 
| Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1064 |   if test "$GCC" = yes; then | 
 | 1065 |     CFLAGS="-O2" | 
 | 1066 |   else | 
 | 1067 |     CFLAGS= | 
 | 1068 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1069 | fi | 
 | 1070 |  | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1071 |  | 
 | 1072 | # checks for UNIX variants that set C preprocessor variables | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1073 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | 
 | 1074 | echo "configure:1075: checking how to run the C preprocessor" >&5 | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1075 | # On Suns, sometimes $CPP names a directory. | 
 | 1076 | if test -n "$CPP" && test -d "$CPP"; then | 
 | 1077 |   CPP= | 
 | 1078 | fi | 
 | 1079 | if test -z "$CPP"; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1080 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | 
 | 1081 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1082 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1083 |     # This must be in double quotes, not single quotes, because CPP may get | 
 | 1084 |   # substituted into the Makefile and "${CC-cc}" will confuse make. | 
 | 1085 |   CPP="${CC-cc} -E" | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1086 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1087 |   # not just through cpp. | 
 | 1088 |   cat > conftest.$ac_ext <<EOF | 
 | 1089 | #line 1090 "configure" | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1090 | #include "confdefs.h" | 
 | 1091 | #include <assert.h> | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1092 | Syntax Error | 
 | 1093 | EOF | 
 | 1094 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
 | 1095 | { (eval echo configure:1096: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
 | 1096 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
 | 1097 | if test -z "$ac_err"; then | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1098 |   : | 
 | 1099 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1100 |   echo "$ac_err" >&5 | 
 | 1101 |   echo "configure: failed program was:" >&5 | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1102 |   cat conftest.$ac_ext >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1103 |   rm -rf conftest* | 
 | 1104 |   CPP="${CC-cc} -E -traditional-cpp" | 
 | 1105 |   cat > conftest.$ac_ext <<EOF | 
 | 1106 | #line 1107 "configure" | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1107 | #include "confdefs.h" | 
 | 1108 | #include <assert.h> | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1109 | Syntax Error | 
 | 1110 | EOF | 
 | 1111 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
 | 1112 | { (eval echo configure:1113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
 | 1113 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
 | 1114 | if test -z "$ac_err"; then | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1115 |   : | 
 | 1116 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1117 |   echo "$ac_err" >&5 | 
 | 1118 |   echo "configure: failed program was:" >&5 | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1119 |   cat conftest.$ac_ext >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1120 |   rm -rf conftest* | 
 | 1121 |   CPP="${CC-cc} -nologo -E" | 
 | 1122 |   cat > conftest.$ac_ext <<EOF | 
 | 1123 | #line 1124 "configure" | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1124 | #include "confdefs.h" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1125 | #include <assert.h> | 
 | 1126 | Syntax Error | 
 | 1127 | EOF | 
 | 1128 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
 | 1129 | { (eval echo configure:1130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
 | 1130 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
 | 1131 | if test -z "$ac_err"; then | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1132 |   : | 
 | 1133 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1134 |   echo "$ac_err" >&5 | 
 | 1135 |   echo "configure: failed program was:" >&5 | 
 | 1136 |   cat conftest.$ac_ext >&5 | 
 | 1137 |   rm -rf conftest* | 
 | 1138 |   CPP=/lib/cpp | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1139 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1140 | rm -f conftest* | 
 | 1141 | fi | 
 | 1142 | rm -f conftest* | 
 | 1143 | fi | 
 | 1144 | rm -f conftest* | 
 | 1145 |   ac_cv_prog_CPP="$CPP" | 
 | 1146 | fi | 
 | 1147 |   CPP="$ac_cv_prog_CPP" | 
 | 1148 | else | 
 | 1149 |   ac_cv_prog_CPP="$CPP" | 
 | 1150 | fi | 
 | 1151 | echo "$ac_t""$CPP" 1>&6 | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1152 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1153 | echo $ac_n "checking for AIX""... $ac_c" 1>&6 | 
 | 1154 | echo "configure:1155: checking for AIX" >&5 | 
 | 1155 | cat > conftest.$ac_ext <<EOF | 
 | 1156 | #line 1157 "configure" | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1157 | #include "confdefs.h" | 
 | 1158 | #ifdef _AIX | 
 | 1159 |   yes | 
 | 1160 | #endif | 
 | 1161 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1162 | EOF | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1163 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 1164 |   egrep "yes" >/dev/null 2>&1; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1165 |   rm -rf conftest* | 
 | 1166 |   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1167 | #define _ALL_SOURCE 1 | 
 | 1168 | EOF | 
 | 1169 |  | 
 | 1170 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1171 |   rm -rf conftest* | 
 | 1172 |   echo "$ac_t""no" 1>&6 | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1173 | fi | 
 | 1174 | rm -f conftest* | 
 | 1175 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1176 |  | 
 | 1177 | ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` | 
 | 1178 | echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 | 
 | 1179 | echo "configure:1180: checking for minix/config.h" >&5 | 
 | 1180 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 
 | 1181 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1182 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1183 |   cat > conftest.$ac_ext <<EOF | 
 | 1184 | #line 1185 "configure" | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1185 | #include "confdefs.h" | 
 | 1186 | #include <minix/config.h> | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1187 | EOF | 
 | 1188 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
 | 1189 | { (eval echo configure:1190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
 | 1190 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
 | 1191 | if test -z "$ac_err"; then | 
 | 1192 |   rm -rf conftest* | 
 | 1193 |   eval "ac_cv_header_$ac_safe=yes" | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1194 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1195 |   echo "$ac_err" >&5 | 
 | 1196 |   echo "configure: failed program was:" >&5 | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1197 |   cat conftest.$ac_ext >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1198 |   rm -rf conftest* | 
 | 1199 |   eval "ac_cv_header_$ac_safe=no" | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1200 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1201 | rm -f conftest* | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1202 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1203 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 
 | 1204 |   echo "$ac_t""yes" 1>&6 | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1205 |   MINIX=yes | 
 | 1206 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1207 |   echo "$ac_t""no" 1>&6 | 
 | 1208 | MINIX= | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1209 | fi | 
 | 1210 |  | 
 | 1211 | if test "$MINIX" = yes; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1212 |   cat >> confdefs.h <<\EOF | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1213 | #define _POSIX_SOURCE 1 | 
 | 1214 | EOF | 
 | 1215 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1216 |   cat >> confdefs.h <<\EOF | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1217 | #define _POSIX_1_SOURCE 2 | 
 | 1218 | EOF | 
 | 1219 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1220 |   cat >> confdefs.h <<\EOF | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 1221 | #define _MINIX 1 | 
 | 1222 | EOF | 
 | 1223 |  | 
 | 1224 | fi | 
 | 1225 |  | 
 | 1226 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1227 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 | 
 | 1228 | echo "configure:1229: checking for Cygwin environment" >&5 | 
 | 1229 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then | 
 | 1230 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 1231 | else | 
 | 1232 |   cat > conftest.$ac_ext <<EOF | 
 | 1233 | #line 1234 "configure" | 
 | 1234 | #include "confdefs.h" | 
 | 1235 |  | 
 | 1236 | int main() { | 
 | 1237 |  | 
 | 1238 | #ifndef __CYGWIN__ | 
 | 1239 | #define __CYGWIN__ __CYGWIN32__ | 
 | 1240 | #endif | 
 | 1241 | return __CYGWIN__; | 
 | 1242 | ; return 0; } | 
 | 1243 | EOF | 
 | 1244 | if { (eval echo configure:1245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
 | 1245 |   rm -rf conftest* | 
 | 1246 |   ac_cv_cygwin=yes | 
 | 1247 | else | 
 | 1248 |   echo "configure: failed program was:" >&5 | 
 | 1249 |   cat conftest.$ac_ext >&5 | 
 | 1250 |   rm -rf conftest* | 
 | 1251 |   ac_cv_cygwin=no | 
 | 1252 | fi | 
 | 1253 | rm -f conftest* | 
 | 1254 | rm -f conftest* | 
 | 1255 | fi | 
 | 1256 |  | 
 | 1257 | echo "$ac_t""$ac_cv_cygwin" 1>&6 | 
 | 1258 | CYGWIN= | 
 | 1259 | test "$ac_cv_cygwin" = yes && CYGWIN=yes | 
 | 1260 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 | 
 | 1261 | echo "configure:1262: checking for mingw32 environment" >&5 | 
 | 1262 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then | 
 | 1263 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 1264 | else | 
 | 1265 |   cat > conftest.$ac_ext <<EOF | 
 | 1266 | #line 1267 "configure" | 
 | 1267 | #include "confdefs.h" | 
 | 1268 |  | 
 | 1269 | int main() { | 
 | 1270 | return __MINGW32__; | 
 | 1271 | ; return 0; } | 
 | 1272 | EOF | 
 | 1273 | if { (eval echo configure:1274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
 | 1274 |   rm -rf conftest* | 
 | 1275 |   ac_cv_mingw32=yes | 
 | 1276 | else | 
 | 1277 |   echo "configure: failed program was:" >&5 | 
 | 1278 |   cat conftest.$ac_ext >&5 | 
 | 1279 |   rm -rf conftest* | 
 | 1280 |   ac_cv_mingw32=no | 
 | 1281 | fi | 
 | 1282 | rm -f conftest* | 
 | 1283 | rm -f conftest* | 
 | 1284 | fi | 
 | 1285 |  | 
 | 1286 | echo "$ac_t""$ac_cv_mingw32" 1>&6 | 
 | 1287 | MINGW32= | 
 | 1288 | test "$ac_cv_mingw32" = yes && MINGW32=yes | 
 | 1289 |  | 
 | 1290 |  | 
 | 1291 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 | 
 | 1292 | echo "configure:1293: checking for executable suffix" >&5 | 
 | 1293 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then | 
 | 1294 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 1295 | else | 
 | 1296 |   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then | 
 | 1297 |   ac_cv_exeext=.exe | 
 | 1298 | else | 
 | 1299 |   rm -f conftest* | 
 | 1300 |   echo 'int main () { return 0; }' > conftest.$ac_ext | 
 | 1301 |   ac_cv_exeext= | 
 | 1302 |   if { (eval echo configure:1303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then | 
 | 1303 |     for file in conftest.*; do | 
 | 1304 |       case $file in | 
 | 1305 |       *.c | *.o | *.obj) ;; | 
 | 1306 |       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; | 
 | 1307 |       esac | 
 | 1308 |     done | 
 | 1309 |   else | 
 | 1310 |     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } | 
 | 1311 |   fi | 
 | 1312 |   rm -f conftest* | 
 | 1313 |   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no | 
 | 1314 | fi | 
 | 1315 | fi | 
 | 1316 |  | 
 | 1317 | EXEEXT="" | 
 | 1318 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} | 
 | 1319 | echo "$ac_t""${ac_cv_exeext}" 1>&6 | 
 | 1320 | ac_exeext=$EXEEXT | 
 | 1321 |  | 
 | 1322 | echo $ac_n "checking for --with-suffix""... $ac_c" 1>&6 | 
 | 1323 | echo "configure:1324: checking for --with-suffix" >&5 | 
| Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 1324 | # Check whether --with-suffix or --without-suffix was given. | 
 | 1325 | if test "${with_suffix+set}" = set; then | 
 | 1326 |   withval="$with_suffix" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1327 |    | 
| Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 1328 | 	case $withval in | 
 | 1329 | 	no)	EXEEXT=;; | 
 | 1330 | 	yes)	EXEEXT=.exe;; | 
 | 1331 | 	*)	EXEEXT=$withval;; | 
 | 1332 | 	esac | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1333 | fi | 
 | 1334 |  | 
 | 1335 | echo "$ac_t""$EXEEXT" 1>&6 | 
| Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 1336 |  | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 1337 | # Test whether we're running on a non-case-sensitive system, in which | 
 | 1338 | # case we give a warning if no ext is given | 
| Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 1339 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1340 | echo $ac_n "checking for case-insensitive build directory""... $ac_c" 1>&6 | 
 | 1341 | echo "configure:1342: checking for case-insensitive build directory" >&5 | 
| Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 1342 | if test -d "python" | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 1343 | then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1344 |     echo "$ac_t""yes" 1>&6 | 
| Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 1345 |     BUILDEXEEXT=.exe | 
 | 1346 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1347 | 	echo "$ac_t""no" 1>&6 | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1348 | 	BUILDEXEEXT=$EXEEXT | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 1349 | fi | 
| Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 1350 |  | 
| Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 1351 | case $MACHDEP in | 
 | 1352 | bsdos*) | 
 | 1353 |     case $CC in | 
 | 1354 |     gcc) CC="$CC -D_HAVE_BSDI";; | 
 | 1355 |     esac;; | 
 | 1356 | esac | 
 | 1357 |  | 
| Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1358 | case $ac_sys_system in | 
 | 1359 | hp*|HP*) | 
 | 1360 |     case $CC in | 
| Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 1361 |     cc|*/cc) CC="$CC -Ae";; | 
| Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1362 |     esac;; | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1363 | Monterey*) | 
 | 1364 |     case $CC in | 
 | 1365 |     cc) CC="$CC -Wl,-Bexport";; | 
 | 1366 |     esac;; | 
| Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 1367 | SunOS*) | 
 | 1368 |     # Some functions have a prototype only with that define, e.g. confstr | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1369 |     cat >> confdefs.h <<\EOF | 
| Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 1370 | #define __EXTENSIONS__ 1 | 
 | 1371 | EOF | 
 | 1372 |  | 
 | 1373 |     ;; | 
| Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 1374 | esac | 
 | 1375 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1376 |  | 
 | 1377 |  | 
 | 1378 | echo $ac_n "checking LIBRARY""... $ac_c" 1>&6 | 
 | 1379 | echo "configure:1380: checking LIBRARY" >&5 | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1380 | if test -z "$LIBRARY" | 
 | 1381 | then | 
 | 1382 | 	LIBRARY='libpython$(VERSION).a' | 
 | 1383 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1384 | echo "$ac_t""$LIBRARY" 1>&6 | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1385 |  | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1386 | # LDLIBRARY is the name of the library to link against (as opposed to the | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1387 | # name of the library into which to insert object files). BLDLIBRARY is also | 
 | 1388 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY | 
 | 1389 | # is blank as the main program is not linked directly against LDLIBRARY. | 
 | 1390 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On | 
 | 1391 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY | 
 | 1392 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, | 
 | 1393 | # DLLLIBRARY is the shared (i.e., DLL) library. | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1394 | #  | 
 | 1395 |  | 
 | 1396 |  | 
 | 1397 |  | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1398 |  | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 1399 | LDLIBRARY="$LIBRARY" | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1400 | BLDLIBRARY='$(LDLIBRARY)' | 
| Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 1401 | DLLLIBRARY='' | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1402 | LDLIBRARYDIR='' | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1403 |  | 
| Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1404 | # LINKCC is the command that links the python executable -- default is $(CC). | 
| Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 1405 | # If CXX is set, and if it is needed to link a main function that was | 
 | 1406 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: | 
 | 1407 | # python might then depend on the C++ runtime | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1408 | # This is altered for AIX in order to build the export list before  | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1409 | # linking. | 
| Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1410 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1411 | echo $ac_n "checking LINKCC""... $ac_c" 1>&6 | 
 | 1412 | echo "configure:1413: checking LINKCC" >&5 | 
| Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1413 | if test -z "$LINKCC" | 
 | 1414 | then | 
| Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 1415 |         if test -z "$CXX"; then | 
 | 1416 |               LINKCC="\$(PURIFY) \$(CC)" | 
 | 1417 |         else | 
 | 1418 |               echo 'int main(){return 0;}' > conftest.$ac_ext | 
 | 1419 |               $CXX -c conftest.$ac_ext 2>&5 | 
 | 1420 |               if $CC -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ | 
 | 1421 |                  && test -s conftest$ac_exeext && ./conftest$ac_exeext | 
 | 1422 |               then | 
 | 1423 |                  LINKCC="\$(PURIFY) \$(CC)" | 
 | 1424 |               else | 
 | 1425 |                  LINKCC="\$(PURIFY) \$(CXX)" | 
 | 1426 |               fi | 
 | 1427 |               rm -fr conftest* | 
 | 1428 |         fi | 
| Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1429 | 	case $ac_sys_system in | 
 | 1430 | 	AIX*) | 
| Jack Jansen | 524a098 | 2002-03-12 15:25:52 +0000 | [diff] [blame] | 1431 | 	   LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp \"\" \$(LIBRARY); $LINKCC";; | 
| Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 1432 | 	dgux*) | 
| Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 1433 | 	   LINKCC="LD_RUN_PATH=$libdir $LINKCC";; | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1434 | 	Monterey64*) | 
| Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 1435 | 	   LINKCC="$LINKCC -L/usr/lib/ia64l64";; | 
| Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1436 | 	esac | 
 | 1437 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1438 | echo "$ac_t""$LINKCC" 1>&6 | 
| Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 1439 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1440 | echo $ac_n "checking LDLIBRARY""... $ac_c" 1>&6 | 
 | 1441 | echo "configure:1442: checking LDLIBRARY" >&5 | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1442 |  | 
 | 1443 | # DG/UX requires some fancy ld contortions to produce a .so from an .a | 
| Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1444 | case $MACHDEP in | 
 | 1445 | dguxR4) | 
 | 1446 |       LDLIBRARY='libpython$(VERSION).so' | 
 | 1447 |       OPT="$OPT -pic" | 
 | 1448 |       ;; | 
 | 1449 | beos*) | 
 | 1450 |       LDLIBRARY='libpython$(VERSION).so' | 
 | 1451 |       ;; | 
| Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 1452 | cygwin*) | 
 | 1453 |       LDLIBRARY='libpython$(VERSION).dll.a' | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1454 |       DLLLIBRARY='libpython$(VERSION).dll' | 
| Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 1455 |       ;; | 
| Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1456 | esac | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1457 |  | 
| Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 1458 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic | 
 | 1459 | # library that we build, but we do not want to link against it (we | 
 | 1460 | # will find it with a -framework option). For this reason there is an | 
 | 1461 | # extra variable BLDLIBRARY against which Python and the extension | 
 | 1462 | # modules are linked, BLDLIBRARY. This is normally the same as | 
 | 1463 | # LDLIBRARY, but empty for MacOSX framework builds. | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1464 | if test "$enable_framework" | 
 | 1465 | then | 
 | 1466 |   LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' | 
 | 1467 |   LDLIBRARYDIR='$(PYTHONFRAMEWORKDIR)' | 
 | 1468 |   BLDLIBRARY='' | 
 | 1469 | else | 
 | 1470 |   BLDLIBRARY='$(LDLIBRARY)' | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1471 | fi   | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1472 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1473 | echo "$ac_t""$LDLIBRARY" 1>&6 | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 1474 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1475 | # Extract the first word of "ranlib", so it can be a program name with args. | 
 | 1476 | set dummy ranlib; ac_word=$2 | 
 | 1477 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
 | 1478 | echo "configure:1479: checking for $ac_word" >&5 | 
 | 1479 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | 
 | 1480 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1481 | else | 
 | 1482 |   if test -n "$RANLIB"; then | 
 | 1483 |   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
 | 1484 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1485 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
 | 1486 |   ac_dummy="$PATH" | 
 | 1487 |   for ac_dir in $ac_dummy; do | 
 | 1488 |     test -z "$ac_dir" && ac_dir=. | 
 | 1489 |     if test -f $ac_dir/$ac_word; then | 
 | 1490 |       ac_cv_prog_RANLIB="ranlib" | 
 | 1491 |       break | 
 | 1492 |     fi | 
 | 1493 |   done | 
 | 1494 |   IFS="$ac_save_ifs" | 
 | 1495 |   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1496 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1497 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1498 | RANLIB="$ac_cv_prog_RANLIB" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1499 | if test -n "$RANLIB"; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1500 |   echo "$ac_t""$RANLIB" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1501 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1502 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1503 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1504 |  | 
 | 1505 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1506 | for ac_prog in ar aal | 
 | 1507 | do | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1508 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1509 | set dummy $ac_prog; ac_word=$2 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1510 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
 | 1511 | echo "configure:1512: checking for $ac_word" >&5 | 
 | 1512 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then | 
 | 1513 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1514 | else | 
 | 1515 |   if test -n "$AR"; then | 
 | 1516 |   ac_cv_prog_AR="$AR" # Let the user override the test. | 
 | 1517 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1518 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
 | 1519 |   ac_dummy="$PATH" | 
 | 1520 |   for ac_dir in $ac_dummy; do | 
 | 1521 |     test -z "$ac_dir" && ac_dir=. | 
 | 1522 |     if test -f $ac_dir/$ac_word; then | 
 | 1523 |       ac_cv_prog_AR="$ac_prog" | 
 | 1524 |       break | 
 | 1525 |     fi | 
 | 1526 |   done | 
 | 1527 |   IFS="$ac_save_ifs" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1528 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1529 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1530 | AR="$ac_cv_prog_AR" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1531 | if test -n "$AR"; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1532 |   echo "$ac_t""$AR" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1533 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1534 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1535 | fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1536 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1537 | test -n "$AR" && break | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1538 | done | 
 | 1539 | test -n "$AR" || AR="ar" | 
 | 1540 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1541 |  | 
| Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 1542 | case $MACHDEP in | 
| Neil Schemenauer | af5567f | 2001-10-21 22:32:04 +0000 | [diff] [blame] | 1543 | bsdos*|hp*|HP*) | 
 | 1544 | 	# install -d does not work on BSDI or HP-UX | 
| Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 1545 | 	if test -z "$INSTALL" | 
 | 1546 | 	then | 
 | 1547 | 		INSTALL="${srcdir}/install-sh -c" | 
 | 1548 | 	fi | 
 | 1549 | esac | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1550 | ac_aux_dir= | 
 | 1551 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | 
 | 1552 |   if test -f $ac_dir/install-sh; then | 
 | 1553 |     ac_aux_dir=$ac_dir | 
 | 1554 |     ac_install_sh="$ac_aux_dir/install-sh -c" | 
 | 1555 |     break | 
 | 1556 |   elif test -f $ac_dir/install.sh; then | 
 | 1557 |     ac_aux_dir=$ac_dir | 
 | 1558 |     ac_install_sh="$ac_aux_dir/install.sh -c" | 
 | 1559 |     break | 
 | 1560 |   fi | 
 | 1561 | done | 
 | 1562 | if test -z "$ac_aux_dir"; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1563 |   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | 
| Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1564 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1565 | ac_config_guess=$ac_aux_dir/config.guess | 
 | 1566 | ac_config_sub=$ac_aux_dir/config.sub | 
 | 1567 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1568 |  | 
 | 1569 | # Find a good install program.  We prefer a C program (faster), | 
 | 1570 | # so one script is as good as another.  But avoid the broken or | 
 | 1571 | # incompatible versions: | 
 | 1572 | # SysV /etc/install, /usr/sbin/install | 
 | 1573 | # SunOS /usr/etc/install | 
 | 1574 | # IRIX /sbin/install | 
 | 1575 | # AIX /bin/install | 
 | 1576 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 
 | 1577 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 
 | 1578 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 
 | 1579 | # ./install, which can be erroneously created by make from ./install.sh. | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1580 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | 
 | 1581 | echo "configure:1582: checking for a BSD compatible install" >&5 | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1582 | if test -z "$INSTALL"; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1583 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | 
 | 1584 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1585 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1586 |     IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":" | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1587 |   for ac_dir in $PATH; do | 
 | 1588 |     # Account for people who put trailing slashes in PATH elements. | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1589 |     case "$ac_dir/" in | 
 | 1590 |     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1591 |     *) | 
 | 1592 |       # OSF1 and SCO ODT 3.0 have their own names for install. | 
 | 1593 |       # Don't use installbsd from OSF since it installs stuff as root | 
 | 1594 |       # by default. | 
 | 1595 |       for ac_prog in ginstall scoinst install; do | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1596 |         if test -f $ac_dir/$ac_prog; then | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1597 | 	  if test $ac_prog = install && | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1598 |             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1599 | 	    # AIX install.  It has an incompatible calling convention. | 
 | 1600 | 	    : | 
 | 1601 | 	  else | 
 | 1602 | 	    ac_cv_path_install="$ac_dir/$ac_prog -c" | 
 | 1603 | 	    break 2 | 
 | 1604 | 	  fi | 
 | 1605 | 	fi | 
 | 1606 |       done | 
 | 1607 |       ;; | 
 | 1608 |     esac | 
 | 1609 |   done | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1610 |   IFS="$ac_save_IFS" | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1611 |  | 
 | 1612 | fi | 
 | 1613 |   if test "${ac_cv_path_install+set}" = set; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1614 |     INSTALL="$ac_cv_path_install" | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1615 |   else | 
 | 1616 |     # As a last resort, use the slow shell script.  We don't cache a | 
 | 1617 |     # path for INSTALL within a source directory, because that will | 
 | 1618 |     # break other packages using the cache if that directory is | 
 | 1619 |     # removed, or if the path is relative. | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1620 |     INSTALL="$ac_install_sh" | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1621 |   fi | 
 | 1622 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1623 | echo "$ac_t""$INSTALL" 1>&6 | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1624 |  | 
 | 1625 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 
 | 1626 | # It thinks the first close brace ends the variable substitution. | 
 | 1627 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 
 | 1628 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1629 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1630 |  | 
 | 1631 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 
 | 1632 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1633 |  | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1634 | # Not every filesystem supports hard links | 
 | 1635 |  | 
 | 1636 | if test -z "$LN" ; then | 
 | 1637 | 	case $ac_sys_system in | 
 | 1638 | 		BeOS*) LN="ln -s";; | 
| Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 1639 | 		CYGWIN*) LN="ln -s";; | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 1640 | 		*) LN=ln;; | 
 | 1641 | 	esac | 
 | 1642 | fi | 
 | 1643 |  | 
| Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1644 | # Check for --with-pydebug | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1645 | echo $ac_n "checking for --with-pydebug""... $ac_c" 1>&6 | 
 | 1646 | echo "configure:1647: checking for --with-pydebug" >&5 | 
| Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1647 | # Check whether --with-pydebug or --without-pydebug was given. | 
 | 1648 | if test "${with_pydebug+set}" = set; then | 
 | 1649 |   withval="$with_pydebug" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1650 |    | 
| Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1651 | if test "$withval" != no | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1652 | then cat >> confdefs.h <<\EOF | 
| Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1653 | #define Py_DEBUG 1 | 
 | 1654 | EOF | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1655 |  echo "$ac_t""yes" 1>&6; Py_DEBUG='true' | 
 | 1656 | else echo "$ac_t""no" 1>&6; Py_DEBUG='false' | 
| Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1657 | fi | 
 | 1658 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1659 |   echo "$ac_t""no" 1>&6 | 
 | 1660 | fi | 
 | 1661 |  | 
| Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1662 |  | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 1663 | # Optimizer/debugger flags | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1664 |  | 
| Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1665 | if test -z "$OPT" | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1666 | then | 
| Guido van Rossum | edca74a | 1997-07-18 23:29:40 +0000 | [diff] [blame] | 1667 | 	case $GCC in | 
 | 1668 | 	yes) | 
 | 1669 | 		case $ac_cv_prog_cc_g in | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1670 | 	yes) | 
| Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1671 | 	    if test "$Py_DEBUG" = 'true' ; then | 
 | 1672 | 		# Optimization messes up debuggers, so turn it off for | 
 | 1673 | 		# debug builds. | 
 | 1674 | 		OPT="-g -Wall -Wstrict-prototypes" | 
 | 1675 | 	    else | 
 | 1676 | 		OPT="-g -O3 -Wall -Wstrict-prototypes" | 
 | 1677 | 	    fi;; | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1678 | 	*) | 
| Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 1679 | 	    OPT="-O3 -Wall -Wstrict-prototypes";; | 
 | 1680 | 	esac | 
 | 1681 | 	;; | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1682 |     *) | 
 | 1683 | 	case $ac_sys_system in | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 1684 | 	OpenUNIX*|UnixWare*) | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1685 | 	    OPT="-O -K pentium,host,inline,loop_unroll,alloca ";; | 
 | 1686 | 	*) | 
 | 1687 | 	    OPT="-O";; | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1688 | 	esac | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 1689 |     esac | 
| Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 1690 |     case $ac_sys_system in | 
 | 1691 |     Darwin*) | 
| Jack Jansen | 524a098 | 2002-03-12 15:25:52 +0000 | [diff] [blame] | 1692 |     	OPT="$OPT -Wno-long-double -no-cpp-precomp";; | 
| Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 1693 |     esac | 
| Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1694 | fi | 
 | 1695 |  | 
| Fred Drake | e1ceaa0 | 2001-12-04 20:55:47 +0000 | [diff] [blame] | 1696 | if test "$Py_DEBUG" = 'true'; then | 
 | 1697 |   : | 
 | 1698 | else | 
 | 1699 |   OPT="-DNDEBUG $OPT" | 
 | 1700 | fi | 
 | 1701 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1702 | # The current (beta) Monterey compiler dies with optimizations | 
 | 1703 | case $ac_sys_system in | 
 | 1704 | Monterey*) OPT="";; | 
 | 1705 | esac | 
 | 1706 |  | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1707 | if test "$ac_arch_flags" | 
| Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 1708 | then | 
 | 1709 | 	OPT="$OPT $ac_arch_flags" | 
 | 1710 | fi | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1711 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1712 | echo $ac_n "checking whether $CC accepts -OPT:Olimit=0""... $ac_c" 1>&6 | 
 | 1713 | echo "configure:1714: checking whether $CC accepts -OPT:Olimit=0" >&5 | 
 | 1714 | if eval "test \"`echo '$''{'ac_cv_opt_olimit_ok'+set}'`\" = set"; then | 
 | 1715 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1716 | else | 
 | 1717 |   ac_save_cc="$CC" | 
 | 1718 | CC="$CC -OPT:Olimit=0" | 
 | 1719 | if test "$cross_compiling" = yes; then | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 1720 |   ac_cv_opt_olimit_ok=no | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1721 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1722 |   cat > conftest.$ac_ext <<EOF | 
 | 1723 | #line 1724 "configure" | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1724 | #include "confdefs.h" | 
 | 1725 | int main() { return 0; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1726 | EOF | 
 | 1727 | if { (eval echo configure:1728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 
 | 1728 | then | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1729 |   ac_cv_opt_olimit_ok=yes | 
 | 1730 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1731 |   echo "configure: failed program was:" >&5 | 
 | 1732 |   cat conftest.$ac_ext >&5 | 
 | 1733 |   rm -fr conftest* | 
 | 1734 |   ac_cv_opt_olimit_ok=no | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1735 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1736 | rm -fr conftest* | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1737 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1738 |  | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1739 | CC="$ac_save_cc" | 
 | 1740 | fi | 
 | 1741 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1742 | echo "$ac_t""$ac_cv_opt_olimit_ok" 1>&6 | 
| Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 1743 | if test $ac_cv_opt_olimit_ok = yes; then | 
| Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 1744 |     case $ac_sys_system in | 
 | 1745 |       Darwin*) OPT="$OPT" ;; | 
 | 1746 |       *) OPT="$OPT -OPT:Olimit=0";; | 
 | 1747 |     esac | 
| Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1748 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1749 |   echo $ac_n "checking whether $CC accepts -Olimit 1500""... $ac_c" 1>&6 | 
 | 1750 | echo "configure:1751: checking whether $CC accepts -Olimit 1500" >&5 | 
 | 1751 |   if eval "test \"`echo '$''{'ac_cv_olimit_ok'+set}'`\" = set"; then | 
 | 1752 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1753 | else | 
 | 1754 |   ac_save_cc="$CC" | 
 | 1755 |   CC="$CC -Olimit 1500" | 
 | 1756 |   if test "$cross_compiling" = yes; then | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 1757 |   ac_cv_olimit_ok=no | 
| Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1758 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1759 |   cat > conftest.$ac_ext <<EOF | 
 | 1760 | #line 1761 "configure" | 
| Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1761 | #include "confdefs.h" | 
 | 1762 | int main() { return 0; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1763 | EOF | 
 | 1764 | if { (eval echo configure:1765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 
 | 1765 | then | 
| Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1766 |   ac_cv_olimit_ok=yes | 
 | 1767 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1768 |   echo "configure: failed program was:" >&5 | 
 | 1769 |   cat conftest.$ac_ext >&5 | 
 | 1770 |   rm -fr conftest* | 
 | 1771 |   ac_cv_olimit_ok=no | 
| Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 1772 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1773 | rm -fr conftest* | 
| Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1774 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1775 |  | 
| Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1776 |   CC="$ac_save_cc" | 
 | 1777 | fi | 
 | 1778 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1779 |   echo "$ac_t""$ac_cv_olimit_ok" 1>&6 | 
| Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 1780 |   if test $ac_cv_olimit_ok = yes; then | 
 | 1781 |     OPT="$OPT -Olimit 1500" | 
 | 1782 |   fi | 
 | 1783 | fi | 
 | 1784 |  | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1785 | # On some compilers, pthreads are available without further options | 
 | 1786 | # (e.g. MacOS X). On some of these systems, the compiler will not | 
 | 1787 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). | 
 | 1788 | # So we have to see first whether pthreads are available without | 
 | 1789 | # options before we can check whether -Kpthread improves anything. | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1790 | echo $ac_n "checking whether pthreads are available without options""... $ac_c" 1>&6 | 
 | 1791 | echo "configure:1792: checking whether pthreads are available without options" >&5 | 
 | 1792 | if eval "test \"`echo '$''{'ac_cv_pthread_is_default'+set}'`\" = set"; then | 
 | 1793 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1794 | else | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1795 |   if test "$cross_compiling" = yes; then | 
 | 1796 |   ac_cv_pthread_is_default=no | 
| Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 1797 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1798 |   cat > conftest.$ac_ext <<EOF | 
 | 1799 | #line 1800 "configure" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1800 | #include "confdefs.h" | 
| Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 1801 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1802 | #include <pthread.h> | 
| Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 1803 |  | 
 | 1804 | void* routine(void* p){return NULL;} | 
 | 1805 |  | 
 | 1806 | int main(){ | 
 | 1807 |   pthread_t p; | 
 | 1808 |   if(pthread_create(&p,NULL,routine,NULL)!=0) | 
 | 1809 |     return 1; | 
| Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 1810 |   (void)pthread_detach(p); | 
| Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 1811 |   return 0; | 
 | 1812 | } | 
 | 1813 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1814 | EOF | 
| Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 1815 | if { (eval echo configure:1816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1816 | then | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1817 |   ac_cv_pthread_is_default=yes | 
 | 1818 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1819 |   echo "configure: failed program was:" >&5 | 
 | 1820 |   cat conftest.$ac_ext >&5 | 
 | 1821 |   rm -fr conftest* | 
 | 1822 |   ac_cv_pthread_is_default=no | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1823 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1824 | rm -fr conftest* | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1825 | fi | 
 | 1826 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1827 |  | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1828 | fi | 
 | 1829 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1830 | echo "$ac_t""$ac_cv_pthread_is_default" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1831 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1832 |  | 
 | 1833 | if test $ac_cv_pthread_is_default = yes  | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1834 | then | 
 | 1835 |   ac_cv_kpthread=no | 
 | 1836 | else | 
 | 1837 | # -Kpthread, if available, provides the right #defines | 
 | 1838 | # and linker options to make pthread_create available | 
 | 1839 | # Some compilers won't report that they do not support -Kpthread, | 
 | 1840 | # so we need to run a program to see whether it really made the | 
 | 1841 | # function available. | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1842 | echo $ac_n "checking whether $CC accepts -Kpthread""... $ac_c" 1>&6 | 
| Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 1843 | echo "configure:1844: checking whether $CC accepts -Kpthread" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1844 | if eval "test \"`echo '$''{'ac_cv_kpthread'+set}'`\" = set"; then | 
 | 1845 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1846 | else | 
 | 1847 |   ac_save_cc="$CC" | 
 | 1848 | CC="$CC -Kpthread" | 
 | 1849 | if test "$cross_compiling" = yes; then | 
 | 1850 |   ac_cv_kpthread=no | 
 | 1851 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1852 |   cat > conftest.$ac_ext <<EOF | 
| Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 1853 | #line 1854 "configure" | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1854 | #include "confdefs.h" | 
 | 1855 |  | 
 | 1856 | #include <pthread.h> | 
 | 1857 |  | 
 | 1858 | void* routine(void* p){return NULL;} | 
 | 1859 |  | 
 | 1860 | int main(){ | 
 | 1861 |   pthread_t p; | 
 | 1862 |   if(pthread_create(&p,NULL,routine,NULL)!=0) | 
 | 1863 |     return 1; | 
| Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 1864 |   (void)pthread_detach(p); | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1865 |   return 0; | 
 | 1866 | } | 
 | 1867 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1868 | EOF | 
| Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 1869 | if { (eval echo configure:1870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1870 | then | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1871 |   ac_cv_kpthread=yes | 
 | 1872 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1873 |   echo "configure: failed program was:" >&5 | 
 | 1874 |   cat conftest.$ac_ext >&5 | 
 | 1875 |   rm -fr conftest* | 
 | 1876 |   ac_cv_kpthread=no | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1877 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1878 | rm -fr conftest* | 
| Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 1879 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1880 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1881 | CC="$ac_save_cc" | 
 | 1882 | fi | 
 | 1883 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1884 | echo "$ac_t""$ac_cv_kpthread" 1>&6 | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 1885 | fi | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1886 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1887 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1888 | # checks for header files | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1889 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | 
| Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 1890 | echo "configure:1891: checking for ANSI C header files" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1891 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then | 
 | 1892 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1893 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1894 |   cat > conftest.$ac_ext <<EOF | 
| Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 1895 | #line 1896 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1896 | #include "confdefs.h" | 
 | 1897 | #include <stdlib.h> | 
 | 1898 | #include <stdarg.h> | 
 | 1899 | #include <string.h> | 
 | 1900 | #include <float.h> | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1901 | EOF | 
 | 1902 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
| Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 1903 | { (eval echo configure:1904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1904 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
 | 1905 | if test -z "$ac_err"; then | 
 | 1906 |   rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1907 |   ac_cv_header_stdc=yes | 
 | 1908 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1909 |   echo "$ac_err" >&5 | 
 | 1910 |   echo "configure: failed program was:" >&5 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1911 |   cat conftest.$ac_ext >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1912 |   rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1913 |   ac_cv_header_stdc=no | 
 | 1914 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1915 | rm -f conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1916 |  | 
 | 1917 | if test $ac_cv_header_stdc = yes; then | 
 | 1918 |   # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1919 | cat > conftest.$ac_ext <<EOF | 
| Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 1920 | #line 1921 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1921 | #include "confdefs.h" | 
 | 1922 | #include <string.h> | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1923 | EOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1924 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 1925 |   egrep "memchr" >/dev/null 2>&1; then | 
 | 1926 |   : | 
 | 1927 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1928 |   rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1929 |   ac_cv_header_stdc=no | 
 | 1930 | fi | 
 | 1931 | rm -f conftest* | 
 | 1932 |  | 
 | 1933 | fi | 
 | 1934 |  | 
 | 1935 | if test $ac_cv_header_stdc = yes; then | 
 | 1936 |   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1937 | cat > conftest.$ac_ext <<EOF | 
| Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 1938 | #line 1939 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1939 | #include "confdefs.h" | 
 | 1940 | #include <stdlib.h> | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1941 | EOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1942 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 1943 |   egrep "free" >/dev/null 2>&1; then | 
 | 1944 |   : | 
 | 1945 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1946 |   rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1947 |   ac_cv_header_stdc=no | 
 | 1948 | fi | 
 | 1949 | rm -f conftest* | 
 | 1950 |  | 
 | 1951 | fi | 
 | 1952 |  | 
 | 1953 | if test $ac_cv_header_stdc = yes; then | 
 | 1954 |   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1955 | if test "$cross_compiling" = yes; then | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1956 |   : | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1957 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1958 |   cat > conftest.$ac_ext <<EOF | 
| Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 1959 | #line 1960 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1960 | #include "confdefs.h" | 
 | 1961 | #include <ctype.h> | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1962 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
 | 1963 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1964 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1965 | int main () { int i; for (i = 0; i < 256; i++) | 
 | 1966 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | 
 | 1967 | exit (0); } | 
 | 1968 |  | 
 | 1969 | EOF | 
| Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 1970 | if { (eval echo configure:1971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1971 | then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1972 |   : | 
 | 1973 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1974 |   echo "configure: failed program was:" >&5 | 
 | 1975 |   cat conftest.$ac_ext >&5 | 
 | 1976 |   rm -fr conftest* | 
 | 1977 |   ac_cv_header_stdc=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1978 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1979 | rm -fr conftest* | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1980 | fi | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1981 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1982 | fi | 
 | 1983 | fi | 
 | 1984 |  | 
 | 1985 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | 
 | 1986 | if test $ac_cv_header_stdc = yes; then | 
 | 1987 |   cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1988 | #define STDC_HEADERS 1 | 
 | 1989 | EOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1990 |  | 
 | 1991 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1992 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1993 | for ac_hdr in dlfcn.h fcntl.h grp.h limits.h langinfo.h locale.h \ | 
| Martin v. Löwis | 9b75dca | 2001-08-10 13:58:50 +0000 | [diff] [blame] | 1994 | ncurses.h poll.h pthread.h \ | 
| Eric S. Raymond | d2d75d3 | 2001-01-16 15:26:34 +0000 | [diff] [blame] | 1995 | signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h termios.h \ | 
| Fred Drake | bbc3c5a | 2001-05-11 16:11:25 +0000 | [diff] [blame] | 1996 | sys/audioio.h sys/file.h sys/lock.h sys/modem.h db_185.h db.h \ | 
| Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 1997 | sys/param.h sys/poll.h sys/select.h sys/socket.h sys/time.h sys/times.h \ | 
| Martin v. Löwis | 6953233 | 2001-10-13 09:12:41 +0000 | [diff] [blame] | 1998 | sys/un.h sys/utsname.h sys/wait.h pty.h term.h libutil.h \ | 
| Martin v. Löwis | f24b2f3 | 2001-08-10 20:29:40 +0000 | [diff] [blame] | 1999 | ndbm.h db1/ndbm.h gdbm/ndbm.h sys/resource.h netpacket/packet.h | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2000 | do | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2001 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 
 | 2002 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 
| Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 2003 | echo "configure:2004: checking for $ac_hdr" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2004 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 
 | 2005 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2006 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2007 |   cat > conftest.$ac_ext <<EOF | 
| Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 2008 | #line 2009 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2009 | #include "confdefs.h" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2010 | #include <$ac_hdr> | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2011 | EOF | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2012 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
| Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 2013 | { (eval echo configure:2014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2014 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
 | 2015 | if test -z "$ac_err"; then | 
 | 2016 |   rm -rf conftest* | 
 | 2017 |   eval "ac_cv_header_$ac_safe=yes" | 
 | 2018 | else | 
 | 2019 |   echo "$ac_err" >&5 | 
 | 2020 |   echo "configure: failed program was:" >&5 | 
 | 2021 |   cat conftest.$ac_ext >&5 | 
 | 2022 |   rm -rf conftest* | 
 | 2023 |   eval "ac_cv_header_$ac_safe=no" | 
 | 2024 | fi | 
 | 2025 | rm -f conftest* | 
 | 2026 | fi | 
 | 2027 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 
 | 2028 |   echo "$ac_t""yes" 1>&6 | 
 | 2029 |     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | 
 | 2030 |   cat >> confdefs.h <<EOF | 
 | 2031 | #define $ac_tr_hdr 1 | 
 | 2032 | EOF | 
 | 2033 |   | 
 | 2034 | else | 
 | 2035 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2036 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2037 | done | 
 | 2038 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2039 | ac_header_dirent=no | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2040 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h | 
 | 2041 | do | 
 | 2042 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 
 | 2043 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 | 
| Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 2044 | echo "configure:2045: checking for $ac_hdr that defines DIR" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2045 | if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then | 
 | 2046 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2047 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2048 |   cat > conftest.$ac_ext <<EOF | 
| Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 2049 | #line 2050 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2050 | #include "confdefs.h" | 
 | 2051 | #include <sys/types.h> | 
 | 2052 | #include <$ac_hdr> | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2053 | int main() { | 
 | 2054 | DIR *dirp = 0; | 
 | 2055 | ; return 0; } | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2056 | EOF | 
| Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 2057 | if { (eval echo configure:2058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2058 |   rm -rf conftest* | 
 | 2059 |   eval "ac_cv_header_dirent_$ac_safe=yes" | 
 | 2060 | else | 
 | 2061 |   echo "configure: failed program was:" >&5 | 
 | 2062 |   cat conftest.$ac_ext >&5 | 
 | 2063 |   rm -rf conftest* | 
 | 2064 |   eval "ac_cv_header_dirent_$ac_safe=no" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2065 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2066 | rm -f conftest* | 
 | 2067 | fi | 
 | 2068 | if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then | 
 | 2069 |   echo "$ac_t""yes" 1>&6 | 
 | 2070 |     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | 
 | 2071 |   cat >> confdefs.h <<EOF | 
 | 2072 | #define $ac_tr_hdr 1 | 
 | 2073 | EOF | 
 | 2074 |  ac_header_dirent=$ac_hdr; break | 
 | 2075 | else | 
 | 2076 |   echo "$ac_t""no" 1>&6 | 
 | 2077 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2078 | done | 
 | 2079 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | 
 | 2080 | if test $ac_header_dirent = dirent.h; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2081 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 | 
| Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 2082 | echo "configure:2083: checking for opendir in -ldir" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2083 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` | 
 | 2084 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
 | 2085 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2086 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2087 |   ac_save_LIBS="$LIBS" | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2088 | LIBS="-ldir  $LIBS" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2089 | cat > conftest.$ac_ext <<EOF | 
| Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 2090 | #line 2091 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2091 | #include "confdefs.h" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2092 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 2093 | /* We use char because int might match the return type of a gcc2 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2094 |     builtin and then its argument prototype would still apply.  */ | 
 | 2095 | char opendir(); | 
 | 2096 |  | 
 | 2097 | int main() { | 
 | 2098 | opendir() | 
 | 2099 | ; return 0; } | 
 | 2100 | EOF | 
| Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 2101 | if { (eval echo configure:2102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2102 |   rm -rf conftest* | 
 | 2103 |   eval "ac_cv_lib_$ac_lib_var=yes" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2104 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2105 |   echo "configure: failed program was:" >&5 | 
 | 2106 |   cat conftest.$ac_ext >&5 | 
 | 2107 |   rm -rf conftest* | 
 | 2108 |   eval "ac_cv_lib_$ac_lib_var=no" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2109 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2110 | rm -f conftest* | 
 | 2111 | LIBS="$ac_save_LIBS" | 
 | 2112 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2113 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2114 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
 | 2115 |   echo "$ac_t""yes" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2116 |   LIBS="$LIBS -ldir" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2117 | else | 
 | 2118 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2119 | fi | 
 | 2120 |  | 
 | 2121 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2122 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 | 
| Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 2123 | echo "configure:2124: checking for opendir in -lx" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2124 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` | 
 | 2125 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
 | 2126 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2127 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2128 |   ac_save_LIBS="$LIBS" | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2129 | LIBS="-lx  $LIBS" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2130 | cat > conftest.$ac_ext <<EOF | 
| Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 2131 | #line 2132 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2132 | #include "confdefs.h" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2133 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 2134 | /* We use char because int might match the return type of a gcc2 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2135 |     builtin and then its argument prototype would still apply.  */ | 
 | 2136 | char opendir(); | 
 | 2137 |  | 
 | 2138 | int main() { | 
 | 2139 | opendir() | 
 | 2140 | ; return 0; } | 
 | 2141 | EOF | 
| Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 2142 | if { (eval echo configure:2143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2143 |   rm -rf conftest* | 
 | 2144 |   eval "ac_cv_lib_$ac_lib_var=yes" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2145 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2146 |   echo "configure: failed program was:" >&5 | 
 | 2147 |   cat conftest.$ac_ext >&5 | 
 | 2148 |   rm -rf conftest* | 
 | 2149 |   eval "ac_cv_lib_$ac_lib_var=no" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2150 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2151 | rm -f conftest* | 
 | 2152 | LIBS="$ac_save_LIBS" | 
 | 2153 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2154 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2155 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
 | 2156 |   echo "$ac_t""yes" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2157 |   LIBS="$LIBS -lx" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2158 | else | 
 | 2159 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2160 | fi | 
 | 2161 |  | 
 | 2162 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2163 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2164 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2165 | # checks for typedefs | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2166 | was_it_defined=no | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2167 | echo $ac_n "checking for clock_t in time.h""... $ac_c" 1>&6 | 
| Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 2168 | echo "configure:2169: checking for clock_t in time.h" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2169 | cat > conftest.$ac_ext <<EOF | 
| Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 2170 | #line 2171 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2171 | #include "confdefs.h" | 
 | 2172 | #include <time.h> | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2173 | EOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2174 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 2175 |   egrep "clock_t" >/dev/null 2>&1; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2176 |   rm -rf conftest* | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2177 |   was_it_defined=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2178 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2179 |   rm -rf conftest* | 
 | 2180 |   cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2181 | #define clock_t long | 
 | 2182 | EOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2183 |  | 
 | 2184 | fi | 
 | 2185 | rm -f conftest* | 
 | 2186 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2187 | echo "$ac_t""$was_it_defined" 1>&6 | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2188 |  | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 2189 | # Two defines needed to enable largefile support on various platforms | 
 | 2190 | # These may affect some typedefs | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2191 | cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 2192 | #define _LARGEFILE_SOURCE 1 | 
 | 2193 | EOF | 
 | 2194 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2195 | cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 2196 | #define _FILE_OFFSET_BITS 64 | 
 | 2197 | EOF | 
 | 2198 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2199 |  | 
| Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 2200 | # Add some code to confdefs.h so that the test for off_t works on SCO | 
 | 2201 | cat >> confdefs.h <<\EOF | 
 | 2202 | #if defined(SCO_DS) | 
 | 2203 | #undef _OFF_T | 
 | 2204 | #endif | 
 | 2205 | EOF | 
 | 2206 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2207 | # Type availability checks | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2208 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 | 
| Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 2209 | echo "configure:2210: checking for mode_t" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2210 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then | 
 | 2211 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2212 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2213 |   cat > conftest.$ac_ext <<EOF | 
| Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 2214 | #line 2215 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2215 | #include "confdefs.h" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2216 | #include <sys/types.h> | 
 | 2217 | #if STDC_HEADERS | 
 | 2218 | #include <stdlib.h> | 
 | 2219 | #include <stddef.h> | 
 | 2220 | #endif | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2221 | EOF | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2222 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 2223 |   egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | 
 | 2224 |   rm -rf conftest* | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2225 |   ac_cv_type_mode_t=yes | 
 | 2226 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2227 |   rm -rf conftest* | 
 | 2228 |   ac_cv_type_mode_t=no | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2229 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2230 | rm -f conftest* | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2231 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2232 | fi | 
 | 2233 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | 
 | 2234 | if test $ac_cv_type_mode_t = no; then | 
 | 2235 |   cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2236 | #define mode_t int | 
 | 2237 | EOF | 
 | 2238 |  | 
 | 2239 | fi | 
 | 2240 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2241 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | 
| Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 2242 | echo "configure:2243: checking for off_t" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2243 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then | 
 | 2244 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2245 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2246 |   cat > conftest.$ac_ext <<EOF | 
| Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 2247 | #line 2248 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2248 | #include "confdefs.h" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2249 | #include <sys/types.h> | 
 | 2250 | #if STDC_HEADERS | 
 | 2251 | #include <stdlib.h> | 
 | 2252 | #include <stddef.h> | 
 | 2253 | #endif | 
 | 2254 | EOF | 
 | 2255 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 2256 |   egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | 
 | 2257 |   rm -rf conftest* | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2258 |   ac_cv_type_off_t=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2259 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2260 |   rm -rf conftest* | 
 | 2261 |   ac_cv_type_off_t=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2262 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2263 | rm -f conftest* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2264 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2265 | fi | 
 | 2266 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | 
 | 2267 | if test $ac_cv_type_off_t = no; then | 
 | 2268 |   cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2269 | #define off_t long | 
 | 2270 | EOF | 
 | 2271 |  | 
 | 2272 | fi | 
 | 2273 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2274 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 | 
| Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 2275 | echo "configure:2276: checking for pid_t" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2276 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then | 
 | 2277 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2278 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2279 |   cat > conftest.$ac_ext <<EOF | 
| Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 2280 | #line 2281 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2281 | #include "confdefs.h" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2282 | #include <sys/types.h> | 
 | 2283 | #if STDC_HEADERS | 
 | 2284 | #include <stdlib.h> | 
 | 2285 | #include <stddef.h> | 
 | 2286 | #endif | 
 | 2287 | EOF | 
 | 2288 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 2289 |   egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | 
 | 2290 |   rm -rf conftest* | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2291 |   ac_cv_type_pid_t=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2292 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2293 |   rm -rf conftest* | 
 | 2294 |   ac_cv_type_pid_t=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2295 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2296 | rm -f conftest* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2297 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2298 | fi | 
 | 2299 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | 
 | 2300 | if test $ac_cv_type_pid_t = no; then | 
 | 2301 |   cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2302 | #define pid_t int | 
 | 2303 | EOF | 
 | 2304 |  | 
 | 2305 | fi | 
 | 2306 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2307 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 | 
| Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 2308 | echo "configure:2309: checking return type of signal handlers" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2309 | if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then | 
 | 2310 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2311 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2312 |   cat > conftest.$ac_ext <<EOF | 
| Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 2313 | #line 2314 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2314 | #include "confdefs.h" | 
 | 2315 | #include <sys/types.h> | 
 | 2316 | #include <signal.h> | 
 | 2317 | #ifdef signal | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2318 | #undef signal | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2319 | #endif | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2320 | #ifdef __cplusplus | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2321 | extern "C" void (*signal (int, void (*)(int)))(int); | 
 | 2322 | #else | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2323 | void (*signal ()) (); | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2324 | #endif | 
 | 2325 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2326 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2327 | int i; | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2328 | ; return 0; } | 
 | 2329 | EOF | 
| Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 2330 | if { (eval echo configure:2331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2331 |   rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2332 |   ac_cv_type_signal=void | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2333 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2334 |   echo "configure: failed program was:" >&5 | 
 | 2335 |   cat conftest.$ac_ext >&5 | 
 | 2336 |   rm -rf conftest* | 
 | 2337 |   ac_cv_type_signal=int | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2338 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2339 | rm -f conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2340 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 2341 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2342 | echo "$ac_t""$ac_cv_type_signal" 1>&6 | 
 | 2343 | cat >> confdefs.h <<EOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2344 | #define RETSIGTYPE $ac_cv_type_signal | 
 | 2345 | EOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2346 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2347 |  | 
 | 2348 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | 
| Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 2349 | echo "configure:2350: checking for size_t" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2350 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then | 
 | 2351 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2352 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2353 |   cat > conftest.$ac_ext <<EOF | 
| Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 2354 | #line 2355 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2355 | #include "confdefs.h" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2356 | #include <sys/types.h> | 
 | 2357 | #if STDC_HEADERS | 
 | 2358 | #include <stdlib.h> | 
 | 2359 | #include <stddef.h> | 
 | 2360 | #endif | 
 | 2361 | EOF | 
 | 2362 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 2363 |   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | 
 | 2364 |   rm -rf conftest* | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 2365 |   ac_cv_type_size_t=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2366 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2367 |   rm -rf conftest* | 
 | 2368 |   ac_cv_type_size_t=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2369 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2370 | rm -f conftest* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2371 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2372 | fi | 
 | 2373 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | 
 | 2374 | if test $ac_cv_type_size_t = no; then | 
 | 2375 |   cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2376 | #define size_t unsigned | 
 | 2377 | EOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2378 |  | 
 | 2379 | fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2380 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2381 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 | 
| Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 2382 | echo "configure:2383: checking for uid_t in sys/types.h" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2383 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then | 
 | 2384 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2385 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2386 |   cat > conftest.$ac_ext <<EOF | 
| Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 2387 | #line 2388 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2388 | #include "confdefs.h" | 
 | 2389 | #include <sys/types.h> | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2390 | EOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2391 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 2392 |   egrep "uid_t" >/dev/null 2>&1; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2393 |   rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2394 |   ac_cv_type_uid_t=yes | 
 | 2395 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2396 |   rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2397 |   ac_cv_type_uid_t=no | 
 | 2398 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2399 | rm -f conftest* | 
 | 2400 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2401 | fi | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2402 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2403 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 | 
 | 2404 | if test $ac_cv_type_uid_t = no; then | 
 | 2405 |   cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2406 | #define uid_t int | 
 | 2407 | EOF | 
 | 2408 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2409 |   cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2410 | #define gid_t int | 
 | 2411 | EOF | 
 | 2412 |  | 
 | 2413 | fi | 
 | 2414 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2415 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2416 | # Sizes of various common basic types | 
 | 2417 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | 
| Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 2418 | echo "configure:2419: checking size of int" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2419 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then | 
 | 2420 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2421 | else | 
 | 2422 |   if test "$cross_compiling" = yes; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2423 |   ac_cv_sizeof_int=4 | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2424 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2425 |   cat > conftest.$ac_ext <<EOF | 
| Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 2426 | #line 2427 "configure" | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2427 | #include "confdefs.h" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2428 | #include <stdio.h> | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2429 | #include <sys/types.h> | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2430 | main() | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2431 | { | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2432 |   FILE *f=fopen("conftestval", "w"); | 
 | 2433 |   if (!f) exit(1); | 
 | 2434 |   fprintf(f, "%d\n", sizeof(int)); | 
 | 2435 |   exit(0); | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2436 | } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2437 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2438 | if { (eval echo configure:2439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2439 | then | 
 | 2440 |   ac_cv_sizeof_int=`cat conftestval` | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2441 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2442 |   echo "configure: failed program was:" >&5 | 
 | 2443 |   cat conftest.$ac_ext >&5 | 
 | 2444 |   rm -fr conftest* | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2445 |   ac_cv_sizeof_int=0 | 
 | 2446 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2447 | rm -fr conftest* | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2448 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2449 |  | 
 | 2450 | fi | 
 | 2451 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | 
 | 2452 | cat >> confdefs.h <<EOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2453 | #define SIZEOF_INT $ac_cv_sizeof_int | 
 | 2454 | EOF | 
 | 2455 |  | 
 | 2456 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2457 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2458 | echo "configure:2459: checking size of long" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2459 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then | 
 | 2460 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2461 | else | 
 | 2462 |   if test "$cross_compiling" = yes; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2463 |   ac_cv_sizeof_long=4 | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2464 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2465 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2466 | #line 2467 "configure" | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2467 | #include "confdefs.h" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2468 | #include <stdio.h> | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2469 | #include <sys/types.h> | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2470 | main() | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2471 | { | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2472 |   FILE *f=fopen("conftestval", "w"); | 
 | 2473 |   if (!f) exit(1); | 
 | 2474 |   fprintf(f, "%d\n", sizeof(long)); | 
 | 2475 |   exit(0); | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2476 | } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2477 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2478 | if { (eval echo configure:2479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2479 | then | 
 | 2480 |   ac_cv_sizeof_long=`cat conftestval` | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2481 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2482 |   echo "configure: failed program was:" >&5 | 
 | 2483 |   cat conftest.$ac_ext >&5 | 
 | 2484 |   rm -fr conftest* | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2485 |   ac_cv_sizeof_long=0 | 
 | 2486 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2487 | rm -fr conftest* | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2488 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2489 |  | 
 | 2490 | fi | 
 | 2491 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | 
 | 2492 | cat >> confdefs.h <<EOF | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 2493 | #define SIZEOF_LONG $ac_cv_sizeof_long | 
 | 2494 | EOF | 
 | 2495 |  | 
 | 2496 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2497 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2498 | echo "configure:2499: checking size of void *" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2499 | if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then | 
 | 2500 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2501 | else | 
 | 2502 |   if test "$cross_compiling" = yes; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2503 |   ac_cv_sizeof_void_p=4 | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2504 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2505 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2506 | #line 2507 "configure" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2507 | #include "confdefs.h" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2508 | #include <stdio.h> | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2509 | #include <sys/types.h> | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2510 | main() | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2511 | { | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2512 |   FILE *f=fopen("conftestval", "w"); | 
 | 2513 |   if (!f) exit(1); | 
 | 2514 |   fprintf(f, "%d\n", sizeof(void *)); | 
 | 2515 |   exit(0); | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2516 | } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2517 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2518 | if { (eval echo configure:2519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2519 | then | 
 | 2520 |   ac_cv_sizeof_void_p=`cat conftestval` | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2521 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2522 |   echo "configure: failed program was:" >&5 | 
 | 2523 |   cat conftest.$ac_ext >&5 | 
 | 2524 |   rm -fr conftest* | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2525 |   ac_cv_sizeof_void_p=0 | 
 | 2526 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2527 | rm -fr conftest* | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2528 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2529 |  | 
 | 2530 | fi | 
 | 2531 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 | 
 | 2532 | cat >> confdefs.h <<EOF | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 2533 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | 
 | 2534 | EOF | 
 | 2535 |  | 
 | 2536 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2537 | echo $ac_n "checking size of char""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2538 | echo "configure:2539: checking size of char" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2539 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then | 
 | 2540 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2541 | else | 
 | 2542 |   if test "$cross_compiling" = yes; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2543 |   ac_cv_sizeof_char=1 | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2544 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2545 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2546 | #line 2547 "configure" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2547 | #include "confdefs.h" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2548 | #include <stdio.h> | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2549 | #include <sys/types.h> | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2550 | main() | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2551 | { | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2552 |   FILE *f=fopen("conftestval", "w"); | 
 | 2553 |   if (!f) exit(1); | 
 | 2554 |   fprintf(f, "%d\n", sizeof(char)); | 
 | 2555 |   exit(0); | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2556 | } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2557 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2558 | if { (eval echo configure:2559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2559 | then | 
 | 2560 |   ac_cv_sizeof_char=`cat conftestval` | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2561 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2562 |   echo "configure: failed program was:" >&5 | 
 | 2563 |   cat conftest.$ac_ext >&5 | 
 | 2564 |   rm -fr conftest* | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2565 |   ac_cv_sizeof_char=0 | 
 | 2566 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2567 | rm -fr conftest* | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2568 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2569 |  | 
 | 2570 | fi | 
 | 2571 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 | 
 | 2572 | cat >> confdefs.h <<EOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2573 | #define SIZEOF_CHAR $ac_cv_sizeof_char | 
 | 2574 | EOF | 
 | 2575 |  | 
 | 2576 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2577 | echo $ac_n "checking size of short""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2578 | echo "configure:2579: checking size of short" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2579 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then | 
 | 2580 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2581 | else | 
 | 2582 |   if test "$cross_compiling" = yes; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2583 |   ac_cv_sizeof_short=2 | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2584 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2585 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2586 | #line 2587 "configure" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2587 | #include "confdefs.h" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2588 | #include <stdio.h> | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2589 | #include <sys/types.h> | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2590 | main() | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2591 | { | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2592 |   FILE *f=fopen("conftestval", "w"); | 
 | 2593 |   if (!f) exit(1); | 
 | 2594 |   fprintf(f, "%d\n", sizeof(short)); | 
 | 2595 |   exit(0); | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2596 | } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2597 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2598 | if { (eval echo configure:2599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2599 | then | 
 | 2600 |   ac_cv_sizeof_short=`cat conftestval` | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2601 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2602 |   echo "configure: failed program was:" >&5 | 
 | 2603 |   cat conftest.$ac_ext >&5 | 
 | 2604 |   rm -fr conftest* | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2605 |   ac_cv_sizeof_short=0 | 
 | 2606 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2607 | rm -fr conftest* | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2608 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2609 |  | 
 | 2610 | fi | 
 | 2611 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 | 
 | 2612 | cat >> confdefs.h <<EOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2613 | #define SIZEOF_SHORT $ac_cv_sizeof_short | 
 | 2614 | EOF | 
 | 2615 |  | 
 | 2616 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2617 | echo $ac_n "checking size of float""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2618 | echo "configure:2619: checking size of float" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2619 | if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then | 
 | 2620 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2621 | else | 
 | 2622 |   if test "$cross_compiling" = yes; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2623 |   ac_cv_sizeof_float=4 | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2624 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2625 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2626 | #line 2627 "configure" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2627 | #include "confdefs.h" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2628 | #include <stdio.h> | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2629 | #include <sys/types.h> | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2630 | main() | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2631 | { | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2632 |   FILE *f=fopen("conftestval", "w"); | 
 | 2633 |   if (!f) exit(1); | 
 | 2634 |   fprintf(f, "%d\n", sizeof(float)); | 
 | 2635 |   exit(0); | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2636 | } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2637 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2638 | if { (eval echo configure:2639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2639 | then | 
 | 2640 |   ac_cv_sizeof_float=`cat conftestval` | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2641 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2642 |   echo "configure: failed program was:" >&5 | 
 | 2643 |   cat conftest.$ac_ext >&5 | 
 | 2644 |   rm -fr conftest* | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2645 |   ac_cv_sizeof_float=0 | 
 | 2646 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2647 | rm -fr conftest* | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2648 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2649 |  | 
 | 2650 | fi | 
 | 2651 | echo "$ac_t""$ac_cv_sizeof_float" 1>&6 | 
 | 2652 | cat >> confdefs.h <<EOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2653 | #define SIZEOF_FLOAT $ac_cv_sizeof_float | 
 | 2654 | EOF | 
 | 2655 |  | 
 | 2656 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2657 | echo $ac_n "checking size of double""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2658 | echo "configure:2659: checking size of double" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2659 | if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then | 
 | 2660 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2661 | else | 
 | 2662 |   if test "$cross_compiling" = yes; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2663 |   ac_cv_sizeof_double=8 | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2664 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2665 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2666 | #line 2667 "configure" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2667 | #include "confdefs.h" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2668 | #include <stdio.h> | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2669 | #include <sys/types.h> | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2670 | main() | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2671 | { | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2672 |   FILE *f=fopen("conftestval", "w"); | 
 | 2673 |   if (!f) exit(1); | 
 | 2674 |   fprintf(f, "%d\n", sizeof(double)); | 
 | 2675 |   exit(0); | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2676 | } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2677 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2678 | if { (eval echo configure:2679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2679 | then | 
 | 2680 |   ac_cv_sizeof_double=`cat conftestval` | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2681 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2682 |   echo "configure: failed program was:" >&5 | 
 | 2683 |   cat conftest.$ac_ext >&5 | 
 | 2684 |   rm -fr conftest* | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2685 |   ac_cv_sizeof_double=0 | 
 | 2686 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2687 | rm -fr conftest* | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2688 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2689 |  | 
 | 2690 | fi | 
 | 2691 | echo "$ac_t""$ac_cv_sizeof_double" 1>&6 | 
 | 2692 | cat >> confdefs.h <<EOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 2693 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double | 
 | 2694 | EOF | 
 | 2695 |  | 
 | 2696 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2697 | echo $ac_n "checking size of fpos_t""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2698 | echo "configure:2699: checking size of fpos_t" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2699 | if eval "test \"`echo '$''{'ac_cv_sizeof_fpos_t'+set}'`\" = set"; then | 
 | 2700 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2701 | else | 
 | 2702 |   if test "$cross_compiling" = yes; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2703 |   ac_cv_sizeof_fpos_t=4 | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2704 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2705 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2706 | #line 2707 "configure" | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2707 | #include "confdefs.h" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2708 | #include <stdio.h> | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2709 | #include <sys/types.h> | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2710 | main() | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2711 | { | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2712 |   FILE *f=fopen("conftestval", "w"); | 
 | 2713 |   if (!f) exit(1); | 
 | 2714 |   fprintf(f, "%d\n", sizeof(fpos_t)); | 
 | 2715 |   exit(0); | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2716 | } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2717 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2718 | if { (eval echo configure:2719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2719 | then | 
 | 2720 |   ac_cv_sizeof_fpos_t=`cat conftestval` | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2721 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2722 |   echo "configure: failed program was:" >&5 | 
 | 2723 |   cat conftest.$ac_ext >&5 | 
 | 2724 |   rm -fr conftest* | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2725 |   ac_cv_sizeof_fpos_t=0 | 
 | 2726 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2727 | rm -fr conftest* | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2728 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2729 |  | 
 | 2730 | fi | 
 | 2731 | echo "$ac_t""$ac_cv_sizeof_fpos_t" 1>&6 | 
 | 2732 | cat >> confdefs.h <<EOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2733 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t | 
 | 2734 | EOF | 
 | 2735 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2736 |  | 
 | 2737 |  | 
 | 2738 | echo $ac_n "checking for long long support""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2739 | echo "configure:2740: checking for long long support" >&5 | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2740 | have_long_long=no | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2741 | cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2742 | #line 2743 "configure" | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2743 | #include "confdefs.h" | 
 | 2744 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2745 | int main() { | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2746 | long long x; x = (long long)0; | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2747 | ; return 0; } | 
 | 2748 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2749 | if { (eval echo configure:2750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2750 |   rm -rf conftest* | 
 | 2751 |   cat >> confdefs.h <<\EOF | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2752 | #define HAVE_LONG_LONG 1 | 
 | 2753 | EOF | 
 | 2754 |  have_long_long=yes | 
 | 2755 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2756 |   echo "configure: failed program was:" >&5 | 
 | 2757 |   cat conftest.$ac_ext >&5 | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2758 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2759 | rm -f conftest* | 
 | 2760 | echo "$ac_t""$have_long_long" 1>&6 | 
| Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 2761 | if test "$have_long_long" = yes ; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2762 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2763 | echo "configure:2764: checking size of long long" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2764 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then | 
 | 2765 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2766 | else | 
 | 2767 |   if test "$cross_compiling" = yes; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2768 |   ac_cv_sizeof_long_long=8 | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2769 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2770 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2771 | #line 2772 "configure" | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2772 | #include "confdefs.h" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2773 | #include <stdio.h> | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2774 | #include <sys/types.h> | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2775 | main() | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2776 | { | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2777 |   FILE *f=fopen("conftestval", "w"); | 
 | 2778 |   if (!f) exit(1); | 
 | 2779 |   fprintf(f, "%d\n", sizeof(long long)); | 
 | 2780 |   exit(0); | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2781 | } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2782 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2783 | if { (eval echo configure:2784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2784 | then | 
 | 2785 |   ac_cv_sizeof_long_long=`cat conftestval` | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2786 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2787 |   echo "configure: failed program was:" >&5 | 
 | 2788 |   cat conftest.$ac_ext >&5 | 
 | 2789 |   rm -fr conftest* | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2790 |   ac_cv_sizeof_long_long=0 | 
 | 2791 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2792 | rm -fr conftest* | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2793 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2794 |  | 
 | 2795 | fi | 
 | 2796 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | 
 | 2797 | cat >> confdefs.h <<EOF | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2798 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | 
 | 2799 | EOF | 
 | 2800 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2801 |  | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 2802 | fi | 
 | 2803 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2804 | echo $ac_n "checking for uintptr_t support""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2805 | echo "configure:2806: checking for uintptr_t support" >&5 | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2806 | have_uintptr_t=no | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2807 | cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2808 | #line 2809 "configure" | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2809 | #include "confdefs.h" | 
 | 2810 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2811 | int main() { | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2812 | uintptr_t x; x = (uintptr_t)0; | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2813 | ; return 0; } | 
 | 2814 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2815 | if { (eval echo configure:2816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2816 |   rm -rf conftest* | 
 | 2817 |   cat >> confdefs.h <<\EOF | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2818 | #define HAVE_UINTPTR_T 1 | 
 | 2819 | EOF | 
 | 2820 |  have_uintptr_t=yes | 
 | 2821 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2822 |   echo "configure: failed program was:" >&5 | 
 | 2823 |   cat conftest.$ac_ext >&5 | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2824 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2825 | rm -f conftest* | 
 | 2826 | echo "$ac_t""$have_uintptr_t" 1>&6 | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2827 | if test "$have_uintptr_t" = yes ; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2828 | echo $ac_n "checking size of uintptr_t""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2829 | echo "configure:2830: checking size of uintptr_t" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2830 | if eval "test \"`echo '$''{'ac_cv_sizeof_uintptr_t'+set}'`\" = set"; then | 
 | 2831 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2832 | else | 
 | 2833 |   if test "$cross_compiling" = yes; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2834 |   ac_cv_sizeof_uintptr_t=4 | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2835 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2836 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2837 | #line 2838 "configure" | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2838 | #include "confdefs.h" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2839 | #include <stdio.h> | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2840 | #include <sys/types.h> | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2841 | main() | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2842 | { | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2843 |   FILE *f=fopen("conftestval", "w"); | 
 | 2844 |   if (!f) exit(1); | 
 | 2845 |   fprintf(f, "%d\n", sizeof(uintptr_t)); | 
 | 2846 |   exit(0); | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2847 | } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2848 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2849 | if { (eval echo configure:2850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2850 | then | 
 | 2851 |   ac_cv_sizeof_uintptr_t=`cat conftestval` | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2852 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2853 |   echo "configure: failed program was:" >&5 | 
 | 2854 |   cat conftest.$ac_ext >&5 | 
 | 2855 |   rm -fr conftest* | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2856 |   ac_cv_sizeof_uintptr_t=0 | 
 | 2857 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2858 | rm -fr conftest* | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2859 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2860 |  | 
 | 2861 | fi | 
 | 2862 | echo "$ac_t""$ac_cv_sizeof_uintptr_t" 1>&6 | 
 | 2863 | cat >> confdefs.h <<EOF | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2864 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t | 
 | 2865 | EOF | 
 | 2866 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2867 |  | 
| Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 2868 | fi | 
 | 2869 |  | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2870 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2871 | echo $ac_n "checking size of off_t""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2872 | echo "configure:2873: checking size of off_t" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2873 | if eval "test \"`echo '$''{'ac_cv_sizeof_off_t'+set}'`\" = set"; then | 
 | 2874 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2875 | else | 
 | 2876 |   if test "$cross_compiling" = yes; then | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 2877 |   ac_cv_sizeof_off_t=4 | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2878 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2879 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2880 | #line 2881 "configure" | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2881 | #include "confdefs.h" | 
 | 2882 | #include <stdio.h> | 
 | 2883 | #include <sys/types.h> | 
 | 2884 | main() | 
 | 2885 | { | 
 | 2886 |   FILE *f=fopen("conftestval", "w"); | 
 | 2887 |   if (!f) exit(1); | 
 | 2888 |   fprintf(f, "%d\n", sizeof(off_t)); | 
 | 2889 |   exit(0); | 
 | 2890 | } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2891 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2892 | if { (eval echo configure:2893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2893 | then | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2894 |   ac_cv_sizeof_off_t=`cat conftestval` | 
 | 2895 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2896 |   echo "configure: failed program was:" >&5 | 
 | 2897 |   cat conftest.$ac_ext >&5 | 
 | 2898 |   rm -fr conftest* | 
 | 2899 |   ac_cv_sizeof_off_t=0 | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2900 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2901 | rm -fr conftest* | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2902 | fi | 
 | 2903 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2904 |  | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2905 | fi | 
 | 2906 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2907 | echo "$ac_t""$ac_cv_sizeof_off_t" 1>&6 | 
 | 2908 | cat >> confdefs.h <<EOF | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2909 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t | 
 | 2910 | EOF | 
 | 2911 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2912 |  | 
 | 2913 | echo $ac_n "checking whether to enable large file support""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2914 | echo "configure:2915: checking whether to enable large file support" >&5 | 
| Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 2915 | if test "$have_long_long" = yes -a \ | 
 | 2916 | 	"$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ | 
 | 2917 | 	"$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2918 |   cat >> confdefs.h <<\EOF | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2919 | #define HAVE_LARGEFILE_SUPPORT 1 | 
 | 2920 | EOF | 
 | 2921 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2922 |   echo "$ac_t""yes" 1>&6 | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2923 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2924 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 2925 | fi | 
 | 2926 |  | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2927 | # AC_CHECK_SIZEOF() doesn't include <time.h>. | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2928 | echo $ac_n "checking size of time_t""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2929 | echo "configure:2930: checking size of time_t" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2930 | if eval "test \"`echo '$''{'ac_cv_sizeof_time_t'+set}'`\" = set"; then | 
 | 2931 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2932 | else | 
 | 2933 |   if test "$cross_compiling" = yes; then | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 2934 |   ac_cv_sizeof_time_t=4 | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2935 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2936 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2937 | #line 2938 "configure" | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2938 | #include "confdefs.h" | 
 | 2939 | #include <stdio.h> | 
 | 2940 | #include <time.h> | 
 | 2941 | main() | 
 | 2942 | { | 
 | 2943 |   FILE *f=fopen("conftestval", "w"); | 
 | 2944 |   if (!f) exit(1); | 
 | 2945 |   fprintf(f, "%d\n", sizeof(time_t)); | 
 | 2946 |   exit(0); | 
 | 2947 | } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2948 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2949 | if { (eval echo configure:2950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2950 | then | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2951 |   ac_cv_sizeof_time_t=`cat conftestval` | 
 | 2952 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2953 |   echo "configure: failed program was:" >&5 | 
 | 2954 |   cat conftest.$ac_ext >&5 | 
 | 2955 |   rm -fr conftest* | 
 | 2956 |   ac_cv_sizeof_time_t=0 | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2957 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2958 | rm -fr conftest* | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2959 | fi | 
 | 2960 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2961 |  | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2962 | fi | 
 | 2963 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2964 | echo "$ac_t""$ac_cv_sizeof_time_t" 1>&6 | 
 | 2965 | cat >> confdefs.h <<EOF | 
| Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 2966 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t | 
 | 2967 | EOF | 
 | 2968 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2969 |  | 
 | 2970 |  | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2971 | # if have pthread_t then define SIZEOF_PTHREAD_T | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 2972 | ac_save_cc="$CC" | 
 | 2973 | if test "$ac_cv_kpthread" = "yes" | 
 | 2974 | then CC="$CC -Kpthread" | 
 | 2975 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2976 | echo $ac_n "checking for pthread_t""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2977 | echo "configure:2978: checking for pthread_t" >&5 | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2978 | have_pthread_t=no | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2979 | cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2980 | #line 2981 "configure" | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2981 | #include "confdefs.h" | 
 | 2982 | #include <pthread.h> | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2983 | int main() { | 
| Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 2984 | pthread_t x; x = *(pthread_t*)0; | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2985 | ; return 0; } | 
 | 2986 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2987 | if { (eval echo configure:2988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2988 |   rm -rf conftest* | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2989 |   have_pthread_t=yes | 
 | 2990 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2991 |   echo "configure: failed program was:" >&5 | 
 | 2992 |   cat conftest.$ac_ext >&5 | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2993 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2994 | rm -f conftest* | 
 | 2995 | echo "$ac_t""$have_pthread_t" 1>&6 | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2996 | if test "$have_pthread_t" = yes ; then | 
 | 2997 |   # AC_CHECK_SIZEOF() doesn't include <pthread.h>. | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2998 |   echo $ac_n "checking size of pthread_t""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 2999 | echo "configure:3000: checking size of pthread_t" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3000 |   if eval "test \"`echo '$''{'ac_cv_sizeof_pthread_t'+set}'`\" = set"; then | 
 | 3001 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3002 | else | 
 | 3003 |   if test "$cross_compiling" = yes; then | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3004 |   ac_cv_sizeof_pthread_t=4 | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3005 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3006 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3007 | #line 3008 "configure" | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3008 | #include "confdefs.h" | 
 | 3009 | #include <stdio.h> | 
 | 3010 |   #include <pthread.h> | 
 | 3011 |   main() | 
 | 3012 |   { | 
 | 3013 |     FILE *f=fopen("conftestval", "w"); | 
 | 3014 |     if (!f) exit(1); | 
 | 3015 |     fprintf(f, "%d\n", sizeof(pthread_t)); | 
 | 3016 |     exit(0); | 
 | 3017 |   } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3018 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3019 | if { (eval echo configure:3020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3020 | then | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3021 |   ac_cv_sizeof_pthread_t=`cat conftestval` | 
 | 3022 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3023 |   echo "configure: failed program was:" >&5 | 
 | 3024 |   cat conftest.$ac_ext >&5 | 
 | 3025 |   rm -fr conftest* | 
 | 3026 |   ac_cv_sizeof_pthread_t=0 | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3027 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3028 | rm -fr conftest* | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3029 | fi | 
 | 3030 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3031 |    | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3032 | fi | 
 | 3033 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3034 |   echo "$ac_t""$ac_cv_sizeof_pthread_t" 1>&6 | 
 | 3035 |   cat >> confdefs.h <<EOF | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3036 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t | 
 | 3037 | EOF | 
 | 3038 |  | 
 | 3039 | fi | 
| Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 3040 | CC="$ac_save_cc" | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3041 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3042 | echo $ac_n "checking for --enable-toolbox-glue""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3043 | echo "configure:3044: checking for --enable-toolbox-glue" >&5 | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3044 | # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given. | 
 | 3045 | if test "${enable_toolbox_glue+set}" = set; then | 
 | 3046 |   enableval="$enable_toolbox_glue" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3047 |   : | 
 | 3048 | fi | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3049 |  | 
 | 3050 |  | 
 | 3051 | if test -z "$enable_toolbox_glue" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3052 | then  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3053 | 	case $ac_sys_system/$ac_sys_release in | 
 | 3054 | 	Darwin/*) | 
 | 3055 | 		enable_toolbox_glue="yes";; | 
 | 3056 | 	*) | 
 | 3057 | 		enable_toolbox_glue="no";; | 
 | 3058 | 	esac | 
 | 3059 | fi | 
 | 3060 | case "$enable_toolbox_glue" in | 
 | 3061 | yes) | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 3062 | 	extra_frameworks="-framework CoreServices -framework Foundation" | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3063 | 	extra_machdep_objs="Python/mactoolboxglue.o" | 
| Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 3064 | 	extra_undefs="-u __dummy -u _PyMac_Error" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3065 | 	cat >> confdefs.h <<\EOF | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3066 | #define USE_TOOLBOX_OBJECT_GLUE 1 | 
 | 3067 | EOF | 
 | 3068 |  | 
 | 3069 | 	;; | 
 | 3070 | *) | 
 | 3071 | 	extra_frameworks="" | 
 | 3072 | 	extra_machdep_objs="" | 
| Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 3073 | 	extra_undefs="" | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3074 | 	;; | 
 | 3075 | esac | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3076 | echo "$ac_t""$enable_toolbox_glue" 1>&6 | 
 | 3077 |  | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3078 |  | 
 | 3079 | case $ac_sys_system/$ac_sys_release in | 
| Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 3080 |   Darwin/1.3*) | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 3081 |     ns_undef_sym='_environ' | 
| Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 3082 |     LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc -U $ns_undef_sym" | 
 | 3083 |    	LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 3084 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python' | 
 | 3085 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; | 
| Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3086 |   Darwin/*) | 
 | 3087 |     ns_undef_sym='_environ' | 
| Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 3088 |     LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc -flat_namespace -U $ns_undef_sym" | 
 | 3089 |       LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3090 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python' | 
 | 3091 |     LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3092 | esac | 
 | 3093 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3094 | echo $ac_n "checking for --enable-framework""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3095 | echo "configure:3096: checking for --enable-framework" >&5 | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3096 | if test "$enable_framework" | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3097 | then | 
| Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3098 | 	OPT="$OPT -fno-common -dynamic" | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3099 | 	# -U __environ is needed since bundles don't have access | 
 | 3100 | 	# to crt0 when built but will always be linked against it | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3101 | 	# -F. is needed to allow linking to the framework while  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3102 | 	# in the build location. | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3103 | 	 | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 3104 | 	case $ac_sys_system/$ac_sys_release in | 
| Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 3105 | 	    Darwin/1.3*)LDFLAGS="$LDFLAGS -Wl,-F. -Wl,-U,$ns_undef_sym";; | 
 | 3106 | 	    Darwin/*)LDFLAGS="$LDFLAGS -Wl,-F. -Wl,-flat_namespace,-U,$ns_undef_sym";; | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 3107 | 	esac | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3108 | 	cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3109 | #define WITH_NEXT_FRAMEWORK 1 | 
 | 3110 | EOF | 
 | 3111 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3112 | 	echo "$ac_t""yes" 1>&6 | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3113 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3114 | 	echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3115 | fi | 
 | 3116 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3117 | echo $ac_n "checking for dyld""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3118 | echo "configure:3119: checking for dyld" >&5 | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3119 | case $ac_sys_system/$ac_sys_release in | 
 | 3120 |   Darwin/*) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3121 |   	cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3122 | #define WITH_DYLD 1 | 
 | 3123 | EOF | 
 | 3124 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3125 |   	echo "$ac_t""always on for Darwin" 1>&6 | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3126 |   	;; | 
 | 3127 |   *) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3128 | 	echo "$ac_t""no" 1>&6 | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3129 | 	;; | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3130 | esac | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3131 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3132 | # Set info about shared libraries. | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3133 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3134 |  | 
 | 3135 |  | 
 | 3136 |  | 
 | 3137 |  | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3138 | # SO is the extension of shared libraries `(including the dot!) | 
| Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3139 | # -- usually .so, .sl on HP-UX, .dll on Cygwin | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3140 | echo $ac_n "checking SO""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3141 | echo "configure:3142: checking SO" >&5 | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3142 | if test -z "$SO" | 
 | 3143 | then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3144 | 	case $ac_sys_system in | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3145 | 	hp*|HP*)   SO=.sl;; | 
| Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3146 | 	CYGWIN*)   SO=.dll;; | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3147 | 	*)	   SO=.so;; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3148 | 	esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3149 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3150 | echo "$ac_t""$SO" 1>&6 | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3151 | # LDSHARED is the ld *command* used to create shared library | 
| Martin v. Löwis | 5b718fc | 2001-09-10 15:34:42 +0000 | [diff] [blame] | 3152 | # -- "ld" on SunOS 4.x.x, "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3153 | # (Shared libraries in this instance are shared modules to be loaded into | 
 | 3154 | # Python, as opposed to building Python itself as a shared library.) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3155 | echo $ac_n "checking LDSHARED""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3156 | echo "configure:3157: checking LDSHARED" >&5 | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3157 | if test -z "$LDSHARED" | 
 | 3158 | then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3159 | 	case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3160 | 	AIX*) | 
 | 3161 | 		BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" | 
| Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 3162 | 		LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3163 | 		;; | 
 | 3164 | 	BeOS*) | 
 | 3165 | 		BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" | 
| Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 3166 | 		LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3167 | 		;; | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 3168 | 	IRIX/5*) LDSHARED="ld -shared";; | 
| Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3169 | 	IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3170 | 	SunOS/4*) LDSHARED="ld";; | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3171 | 	SunOS/5*)  | 
| Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 3172 | 		if test "$GCC" = "yes" | 
| Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 3173 | 		then LDSHARED='$(CC) -shared' | 
| Martin v. Löwis | 5b718fc | 2001-09-10 15:34:42 +0000 | [diff] [blame] | 3174 | 		else LDSHARED="$(CC) -G"; | 
| Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 3175 | 		fi ;; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3176 | 	hp*|HP*) LDSHARED="ld -b";; | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3177 | 	OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; | 
 | 3178 | 	DYNIX/ptx*) LDSHARED="ld -G";; | 
| Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 3179 | 	Darwin/1.3*) | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 3180 | 		LDSHARED='$(CC) $(LDFLAGS) -bundle' | 
 | 3181 | 		if test "$enable_framework" ; then | 
 | 3182 | 			# Link against the framework. All externals should be defined. | 
 | 3183 | 			LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' | 
 | 3184 | 		else | 
 | 3185 | 			# No framework. Ignore undefined symbols, assuming they come from Python | 
| Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 3186 | 			LDSHARED="$LDSHARED -undefined suppress" | 
| Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 3187 | 		fi ;; | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3188 | 	Darwin/*) | 
 | 3189 | 		LDSHARED='$(CC) $(LDFLAGS) -bundle' | 
 | 3190 | 		if test "$enable_framework" ; then | 
 | 3191 | 			# Link against the framework. All externals should be defined. | 
 | 3192 | 			LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' | 
 | 3193 | 		else | 
| Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 3194 | 			# No framework, use the Python app as bundle-loader | 
 | 3195 | 			BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' | 
 | 3196 | 			LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/$(PYTHON)' | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3197 | 		fi ;; | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 3198 | 	Linux*|GNU*) LDSHARED="gcc -shared";; | 
| Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 3199 | 	dgux*) LDSHARED="ld -G";; | 
| Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 3200 | 	BSD/OS*/4*) LDSHARED="gcc -shared";; | 
| Martin v. Löwis | 36546db | 2001-09-05 14:24:43 +0000 | [diff] [blame] | 3201 | 	OpenBSD*|NetBSD*|FreeBSD*) | 
| Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 3202 | 		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
| Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 3203 | 		then | 
 | 3204 | 			LDSHARED="cc -shared ${LDFLAGS}" | 
 | 3205 | 		else | 
 | 3206 | 			LDSHARED="ld -Bshareable ${LDFLAGS}" | 
 | 3207 | 		fi;; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 3208 | 	OpenUNIX*|UnixWare*) | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 3209 | 		if test "$GCC" = "yes" | 
 | 3210 | 		then LDSHARED="$(CC) -shared" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3211 | 		else LDSHARED="$(CC) -G" | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 3212 | 		fi;; | 
| Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 3213 | 	SCO_SV*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";; | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3214 | 	Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; | 
| Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3215 | 	CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3216 | 	*)	LDSHARED="ld";; | 
 | 3217 | 	esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3218 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3219 | echo "$ac_t""$LDSHARED" 1>&6 | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3220 | BLDSHARED=${BLDSHARED-$LDSHARED} | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3221 | # CCSHARED are the C *flags* used to create objects to go into a shared | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3222 | # library (module) -- this is only needed for a few systems | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3223 | echo $ac_n "checking CCSHARED""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3224 | echo "configure:3225: checking CCSHARED" >&5 | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3225 | if test -z "$CCSHARED" | 
 | 3226 | then | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 3227 | 	case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 3228 | 	SunOS*) if test "$GCC" = yes; | 
 | 3229 | 	        then CCSHARED="-fPIC"; | 
 | 3230 | 	        fi;; | 
| Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 3231 | 	hp*|HP*) if test "$GCC" = yes; | 
| Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 3232 | 		 then CCSHARED="-fPIC"; | 
| Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 3233 | 		 else CCSHARED="+z"; | 
 | 3234 | 		 fi;; | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 3235 | 	Linux*|GNU*) CCSHARED="-fPIC";; | 
| Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 3236 | 	BSD/OS*/4*) CCSHARED="-fpic";; | 
| Martin v. Löwis | 36546db | 2001-09-05 14:24:43 +0000 | [diff] [blame] | 3237 | 	FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 3238 | 	OpenUNIX*|UnixWare*) | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 3239 | 		if test "$GCC" = "yes" | 
 | 3240 | 		then CCSHARED="-fPIC" | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3241 | 		else CCSHARED="-KPIC" | 
| Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 3242 | 		fi;; | 
| Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 3243 | 	SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";; | 
| Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3244 | 	Monterey*) CCSHARED="-G";; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 3245 | 	IRIX*/6*)  case $CC in | 
 | 3246 | 		   *gcc*) CCSHARED="-shared";; | 
| Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 3247 | 		   *) CCSHARED="";; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 3248 | 		   esac;; | 
| Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3249 | 	CYGWIN*) CCSHARED="-DUSE_DL_IMPORT";; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3250 | 	esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3251 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3252 | echo "$ac_t""$CCSHARED" 1>&6 | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3253 | # LINKFORSHARED are the flags passed to the $(CC) command that links | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3254 | # the python executable -- this is only needed for a few systems | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3255 | echo $ac_n "checking LINKFORSHARED""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3256 | echo "configure:3257: checking LINKFORSHARED" >&5 | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3257 | if test -z "$LINKFORSHARED" | 
 | 3258 | then | 
| Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 3259 | 	case $ac_sys_system/$ac_sys_release in | 
| Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 3260 | 	AIX*)	LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; | 
| Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 3261 | 	hp*|HP*) | 
| Guido van Rossum | 304dd2d | 1997-10-20 23:10:56 +0000 | [diff] [blame] | 3262 | 	    LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; | 
| Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 3263 | 	BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 3264 | 	Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; | 
| Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3265 | 	# -u libsys_s pulls in all symbols in libsys | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3266 | 	Darwin/*)  | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3267 | 		# -u __dummy makes the linker aware of the objc runtime | 
 | 3268 | 		# in System.framework; otherwise, __objcInit (referenced in | 
 | 3269 | 		# crt1.o) gets erroneously defined as common, which breaks dynamic | 
 | 3270 | 		# loading of any modules which reference it in System.framework. | 
 | 3271 | 		# -u _PyMac_Error is needed to pull in the mac toolbox glue, which is | 
 | 3272 | 		# not used by the core itself but which needs to be in the core so | 
 | 3273 | 		# that dynamically loaded extension modules have access to it. | 
| Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 3274 | 		LINKFORSHARED="$extra_undefs -framework System" | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3275 | 		if test "$enable_framework" | 
 | 3276 | 		then | 
 | 3277 | 			LINKFORSHARED="$LINKFORSHARED -framework Python" | 
 | 3278 | 		fi | 
 | 3279 | 		LINKFORSHARED="$LINKFORSHARED $extra_frameworks";; | 
| Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 3280 | 	OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; | 
| Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 3281 | 	SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";; | 
| Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 3282 | 	ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3283 | 	FreeBSD*|NetBSD*|OpenBSD*)  | 
| Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 3284 | 		if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] | 
 | 3285 | 		then | 
 | 3286 | 			LINKFORSHARED="-Wl,--export-dynamic" | 
 | 3287 | 		fi;; | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 3288 | 	SunOS/5*) case $CC in | 
 | 3289 | 		  *gcc*) | 
| Guido van Rossum | ff48418 | 2000-02-03 13:50:24 +0000 | [diff] [blame] | 3290 | 		    if $CC -Xlinker -V 2>&1 | grep BFD >/dev/null | 
| Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 3291 | 		    then | 
 | 3292 | 			LINKFORSHARED="-Xlinker --export-dynamic" | 
| Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 3293 | 		    fi;; | 
 | 3294 | 		  esac;; | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3295 | 	esac | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3296 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3297 | echo "$ac_t""$LINKFORSHARED" 1>&6 | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 3298 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3299 |  | 
 | 3300 | echo $ac_n "checking CFLAGSFORSHARED""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3301 | echo "configure:3302: checking CFLAGSFORSHARED" >&5 | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3302 | if test ! "$LIBRARY" = "$LDLIBRARY" | 
 | 3303 | then | 
| Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 3304 | 	case $ac_sys_system in | 
 | 3305 | 	CYGWIN*) | 
 | 3306 | 		# Cygwin needs CCSHARED when building extension DLLs | 
 | 3307 | 		# but not when building the interpreter DLL. | 
 | 3308 | 		CFLAGSFORSHARED='';; | 
 | 3309 | 	*) | 
 | 3310 | 		CFLAGSFORSHARED='$(CCSHARED)' | 
 | 3311 | 	esac | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3312 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3313 | echo "$ac_t""$CFLAGSFORSHARED" 1>&6 | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3314 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3315 | # checks for libraries | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3316 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3317 | echo "configure:3318: checking for dlopen in -ldl" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3318 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` | 
 | 3319 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
 | 3320 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3321 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3322 |   ac_save_LIBS="$LIBS" | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3323 | LIBS="-ldl  $LIBS" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3324 | cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3325 | #line 3326 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3326 | #include "confdefs.h" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3327 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 3328 | /* We use char because int might match the return type of a gcc2 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3329 |     builtin and then its argument prototype would still apply.  */ | 
 | 3330 | char dlopen(); | 
 | 3331 |  | 
 | 3332 | int main() { | 
 | 3333 | dlopen() | 
 | 3334 | ; return 0; } | 
 | 3335 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3336 | if { (eval echo configure:3337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3337 |   rm -rf conftest* | 
 | 3338 |   eval "ac_cv_lib_$ac_lib_var=yes" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3339 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3340 |   echo "configure: failed program was:" >&5 | 
 | 3341 |   cat conftest.$ac_ext >&5 | 
 | 3342 |   rm -rf conftest* | 
 | 3343 |   eval "ac_cv_lib_$ac_lib_var=no" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3344 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3345 | rm -f conftest* | 
 | 3346 | LIBS="$ac_save_LIBS" | 
 | 3347 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3348 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3349 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
 | 3350 |   echo "$ac_t""yes" 1>&6 | 
 | 3351 |     ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | 
 | 3352 |     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | 
 | 3353 |   cat >> confdefs.h <<EOF | 
 | 3354 | #define $ac_tr_lib 1 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3355 | EOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3356 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3357 |   LIBS="-ldl $LIBS" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3358 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3359 | else | 
 | 3360 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3361 | fi | 
 | 3362 | 	# Dynamic linking for SunOS/Solaris and SYSV | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3363 | echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3364 | echo "configure:3365: checking for shl_load in -ldld" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3365 | ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` | 
 | 3366 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
 | 3367 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3368 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3369 |   ac_save_LIBS="$LIBS" | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3370 | LIBS="-ldld  $LIBS" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3371 | cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3372 | #line 3373 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3373 | #include "confdefs.h" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3374 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 3375 | /* We use char because int might match the return type of a gcc2 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3376 |     builtin and then its argument prototype would still apply.  */ | 
 | 3377 | char shl_load(); | 
 | 3378 |  | 
 | 3379 | int main() { | 
 | 3380 | shl_load() | 
 | 3381 | ; return 0; } | 
 | 3382 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3383 | if { (eval echo configure:3384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3384 |   rm -rf conftest* | 
 | 3385 |   eval "ac_cv_lib_$ac_lib_var=yes" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3386 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3387 |   echo "configure: failed program was:" >&5 | 
 | 3388 |   cat conftest.$ac_ext >&5 | 
 | 3389 |   rm -rf conftest* | 
 | 3390 |   eval "ac_cv_lib_$ac_lib_var=no" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3391 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3392 | rm -f conftest* | 
 | 3393 | LIBS="$ac_save_LIBS" | 
 | 3394 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3395 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3396 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
 | 3397 |   echo "$ac_t""yes" 1>&6 | 
 | 3398 |     ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | 
 | 3399 |     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | 
 | 3400 |   cat >> confdefs.h <<EOF | 
 | 3401 | #define $ac_tr_lib 1 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3402 | EOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3403 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3404 |   LIBS="-ldld $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3405 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3406 | else | 
 | 3407 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3408 | fi | 
 | 3409 | 	# Dynamic linking for HP-UX | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 3410 | echo $ac_n "checking for sem_init in -lrt""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3411 | echo "configure:3412: checking for sem_init in -lrt" >&5 | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 3412 | ac_lib_var=`echo rt'_'sem_init | sed 'y%./+-%__p_%'` | 
 | 3413 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
 | 3414 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 3415 | else | 
 | 3416 |   ac_save_LIBS="$LIBS" | 
 | 3417 | LIBS="-lrt  $LIBS" | 
 | 3418 | cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3419 | #line 3420 "configure" | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 3420 | #include "confdefs.h" | 
 | 3421 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 3422 | /* We use char because int might match the return type of a gcc2 | 
 | 3423 |     builtin and then its argument prototype would still apply.  */ | 
 | 3424 | char sem_init(); | 
 | 3425 |  | 
 | 3426 | int main() { | 
 | 3427 | sem_init() | 
 | 3428 | ; return 0; } | 
 | 3429 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3430 | if { (eval echo configure:3431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 3431 |   rm -rf conftest* | 
 | 3432 |   eval "ac_cv_lib_$ac_lib_var=yes" | 
 | 3433 | else | 
 | 3434 |   echo "configure: failed program was:" >&5 | 
 | 3435 |   cat conftest.$ac_ext >&5 | 
 | 3436 |   rm -rf conftest* | 
 | 3437 |   eval "ac_cv_lib_$ac_lib_var=no" | 
 | 3438 | fi | 
 | 3439 | rm -f conftest* | 
 | 3440 | LIBS="$ac_save_LIBS" | 
 | 3441 |  | 
 | 3442 | fi | 
 | 3443 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
 | 3444 |   echo "$ac_t""yes" 1>&6 | 
 | 3445 |     ac_tr_lib=HAVE_LIB`echo rt | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | 
 | 3446 |     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | 
 | 3447 |   cat >> confdefs.h <<EOF | 
 | 3448 | #define $ac_tr_lib 1 | 
 | 3449 | EOF | 
 | 3450 |  | 
 | 3451 |   LIBS="-lrt $LIBS" | 
 | 3452 |  | 
 | 3453 | else | 
 | 3454 |   echo "$ac_t""no" 1>&6 | 
 | 3455 | fi | 
 | 3456 | 	# 'Real Time' functions on Solaris | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 3457 |  | 
 | 3458 | # checks for system dependent C++ extensions support | 
 | 3459 | case "$ac_sys_system" in | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3460 | 	AIX*)	echo $ac_n "checking for genuine AIX C++ extensions support""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3461 | echo "configure:3462: checking for genuine AIX C++ extensions support" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3462 | 		cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3463 | #line 3464 "configure" | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 3464 | #include "confdefs.h" | 
 | 3465 | #include "/usr/lpp/xlC/include/load.h" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3466 | int main() { | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 3467 | loadAndInit("", 0, "") | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3468 | ; return 0; } | 
 | 3469 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3470 | if { (eval echo configure:3471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3471 |   rm -rf conftest* | 
 | 3472 |   cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 3473 | #define AIX_GENUINE_CPLUSPLUS 1 | 
 | 3474 | EOF | 
 | 3475 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3476 | 			     echo "$ac_t""yes" 1>&6 | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 3477 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3478 |   echo "configure: failed program was:" >&5 | 
 | 3479 |   cat conftest.$ac_ext >&5 | 
 | 3480 |   rm -rf conftest* | 
 | 3481 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 3482 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3483 | rm -f conftest*;; | 
| Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 3484 | 	*) ;; | 
 | 3485 | esac | 
 | 3486 |  | 
| Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 3487 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. | 
 | 3488 | # However on SGI IRIX, these exist but are broken. | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3489 | # BeOS' sockets are stashed in libnet. | 
 | 3490 | case "$ac_sys_system" in | 
 | 3491 | IRIX*) ;; | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 3492 | *) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3493 | echo $ac_n "checking for t_open in -lnsl""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3494 | echo "configure:3495: checking for t_open in -lnsl" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3495 | ac_lib_var=`echo nsl'_'t_open | sed 'y%./+-%__p_%'` | 
 | 3496 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
 | 3497 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3498 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3499 |   ac_save_LIBS="$LIBS" | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3500 | LIBS="-lnsl  $LIBS" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3501 | cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3502 | #line 3503 "configure" | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3503 | #include "confdefs.h" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3504 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 3505 | /* We use char because int might match the return type of a gcc2 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3506 |     builtin and then its argument prototype would still apply.  */ | 
 | 3507 | char t_open(); | 
 | 3508 |  | 
 | 3509 | int main() { | 
 | 3510 | t_open() | 
 | 3511 | ; return 0; } | 
 | 3512 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3513 | if { (eval echo configure:3514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3514 |   rm -rf conftest* | 
 | 3515 |   eval "ac_cv_lib_$ac_lib_var=yes" | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3516 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3517 |   echo "configure: failed program was:" >&5 | 
 | 3518 |   cat conftest.$ac_ext >&5 | 
 | 3519 |   rm -rf conftest* | 
 | 3520 |   eval "ac_cv_lib_$ac_lib_var=no" | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3521 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3522 | rm -f conftest* | 
 | 3523 | LIBS="$ac_save_LIBS" | 
 | 3524 |  | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3525 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3526 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
 | 3527 |   echo "$ac_t""yes" 1>&6 | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3528 |   LIBS="-lnsl $LIBS" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3529 | else | 
 | 3530 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 3531 | fi | 
| Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 3532 |  # SVR4 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3533 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3534 | echo "configure:3535: checking for socket in -lsocket" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3535 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` | 
 | 3536 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
 | 3537 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3538 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3539 |   ac_save_LIBS="$LIBS" | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3540 | LIBS="-lsocket $LIBS $LIBS" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3541 | cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3542 | #line 3543 "configure" | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3543 | #include "confdefs.h" | 
 | 3544 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 3545 | /* We use char because int might match the return type of a gcc2 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3546 |     builtin and then its argument prototype would still apply.  */ | 
 | 3547 | char socket(); | 
 | 3548 |  | 
 | 3549 | int main() { | 
 | 3550 | socket() | 
 | 3551 | ; return 0; } | 
 | 3552 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3553 | if { (eval echo configure:3554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3554 |   rm -rf conftest* | 
 | 3555 |   eval "ac_cv_lib_$ac_lib_var=yes" | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3556 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3557 |   echo "configure: failed program was:" >&5 | 
 | 3558 |   cat conftest.$ac_ext >&5 | 
 | 3559 |   rm -rf conftest* | 
 | 3560 |   eval "ac_cv_lib_$ac_lib_var=no" | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3561 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3562 | rm -f conftest* | 
 | 3563 | LIBS="$ac_save_LIBS" | 
 | 3564 |  | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3565 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3566 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
 | 3567 |   echo "$ac_t""yes" 1>&6 | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3568 |   LIBS="-lsocket $LIBS" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3569 | else | 
 | 3570 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3571 | fi | 
 | 3572 |  # SVR4 sockets | 
| Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 3573 | ;; | 
 | 3574 | esac | 
 | 3575 | case "$ac_sys_system" in | 
 | 3576 | BeOS*) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3577 | echo $ac_n "checking for socket in -lnet""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3578 | echo "configure:3579: checking for socket in -lnet" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3579 | ac_lib_var=`echo net'_'socket | sed 'y%./+-%__p_%'` | 
 | 3580 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
 | 3581 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3582 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3583 |   ac_save_LIBS="$LIBS" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3584 | LIBS="-lnet $LIBS $LIBS" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3585 | cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3586 | #line 3587 "configure" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3587 | #include "confdefs.h" | 
 | 3588 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 3589 | /* We use char because int might match the return type of a gcc2 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3590 |     builtin and then its argument prototype would still apply.  */ | 
 | 3591 | char socket(); | 
 | 3592 |  | 
 | 3593 | int main() { | 
 | 3594 | socket() | 
 | 3595 | ; return 0; } | 
 | 3596 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3597 | if { (eval echo configure:3598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3598 |   rm -rf conftest* | 
 | 3599 |   eval "ac_cv_lib_$ac_lib_var=yes" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3600 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3601 |   echo "configure: failed program was:" >&5 | 
 | 3602 |   cat conftest.$ac_ext >&5 | 
 | 3603 |   rm -rf conftest* | 
 | 3604 |   eval "ac_cv_lib_$ac_lib_var=no" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3605 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3606 | rm -f conftest* | 
 | 3607 | LIBS="$ac_save_LIBS" | 
 | 3608 |  | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3609 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3610 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
 | 3611 |   echo "$ac_t""yes" 1>&6 | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3612 |   LIBS="-lnet $LIBS" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3613 | else | 
 | 3614 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3615 | fi | 
 | 3616 |  # BeOS | 
 | 3617 | ;; | 
 | 3618 | esac | 
| Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 3619 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3620 | echo $ac_n "checking for --with-libs""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3621 | echo "configure:3622: checking for --with-libs" >&5 | 
| Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3622 | # Check whether --with-libs or --without-libs was given. | 
 | 3623 | if test "${with_libs+set}" = set; then | 
 | 3624 |   withval="$with_libs" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3625 |    | 
 | 3626 | echo "$ac_t""$withval" 1>&6 | 
| Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3627 | LIBS="$withval $LIBS" | 
 | 3628 |  | 
 | 3629 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3630 |   echo "$ac_t""no" 1>&6 | 
 | 3631 | fi | 
 | 3632 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3633 |  | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3634 | # Determine if signalmodule should be used. | 
 | 3635 |  | 
 | 3636 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3637 | echo $ac_n "checking for --with-signal-module""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3638 | echo "configure:3639: checking for --with-signal-module" >&5 | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3639 | # Check whether --with-signal-module or --without-signal-module was given. | 
 | 3640 | if test "${with_signal_module+set}" = set; then | 
 | 3641 |   withval="$with_signal_module" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3642 |   : | 
 | 3643 | fi | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3644 |  | 
 | 3645 |  | 
 | 3646 | if test -z "$with_signal_module" | 
 | 3647 | then with_signal_module="yes" | 
 | 3648 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3649 | echo "$ac_t""$with_signal_module" 1>&6 | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3650 |  | 
 | 3651 | if test "${with_signal_module}" = "yes"; then | 
 | 3652 | 	USE_SIGNAL_MODULE="" | 
 | 3653 | 	SIGNAL_OBJS="" | 
 | 3654 | else | 
 | 3655 | 	USE_SIGNAL_MODULE="#" | 
 | 3656 | 	SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" | 
 | 3657 | fi | 
 | 3658 |  | 
| Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 3659 | # This is used to generate Setup.config | 
| Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 3660 |  | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3661 | USE_THREAD_MODULE="" | 
| Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 3662 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3663 | echo $ac_n "checking for --with-dec-threads""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3664 | echo "configure:3665: checking for --with-dec-threads" >&5 | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3665 |  | 
 | 3666 | # Check whether --with-dec-threads or --without-dec-threads was given. | 
 | 3667 | if test "${with_dec_threads+set}" = set; then | 
 | 3668 |   withval="$with_dec_threads" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3669 |    | 
 | 3670 | echo "$ac_t""$withval" 1>&6 | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3671 | LDLAST=-threads | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3672 | if test "${with_thread+set}" != set; then | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3673 |    with_thread="$withval"; | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3674 | fi | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3675 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3676 |   echo "$ac_t""no" 1>&6 | 
 | 3677 | fi | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3678 |  | 
 | 3679 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3680 | echo $ac_n "checking for --with-threads""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3681 | echo "configure:3682: checking for --with-threads" >&5 | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3682 | # Check whether --with-threads or --without-threads was given. | 
 | 3683 | if test "${with_threads+set}" = set; then | 
 | 3684 |   withval="$with_threads" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3685 |   : | 
 | 3686 | fi | 
| Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 3687 |  | 
 | 3688 |  | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3689 | # --with-thread is deprecated, but check for it anyway | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3690 | # Check whether --with-thread or --without-thread was given. | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3691 | if test "${with_thread+set}" = set; then | 
 | 3692 |   withval="$with_thread" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3693 |    | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3694 | with_threads=$with_thread | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3695 | fi | 
 | 3696 |  | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3697 |  | 
 | 3698 | if test -z "$with_threads" | 
 | 3699 | then with_threads="yes" | 
 | 3700 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3701 | echo "$ac_t""$with_threads" 1>&6 | 
| Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 3702 |  | 
 | 3703 | if test "$with_threads" = "no" | 
 | 3704 | then | 
 | 3705 |     USE_THREAD_MODULE="#" | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3706 | elif test "$ac_cv_pthread_is_default" = yes | 
 | 3707 | then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3708 |     cat >> confdefs.h <<\EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3709 | #define WITH_THREAD 1 | 
 | 3710 | EOF | 
 | 3711 |  | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3712 |     # Defining _REENTRANT on system with POSIX threads should not hurt. | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3713 |     cat >> confdefs.h <<\EOF | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3714 | #define _REENTRANT 1 | 
 | 3715 | EOF | 
 | 3716 |  | 
 | 3717 |     posix_threads=yes | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3718 |     LIBOBJS="$LIBOBJS thread.o"     | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3719 | elif test "$ac_cv_kpthread" = "yes" | 
 | 3720 | then | 
 | 3721 |     CC="$CC -Kpthread" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3722 |     cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3723 | #define WITH_THREAD 1 | 
 | 3724 | EOF | 
 | 3725 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 3726 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3727 |     LIBOBJS="$LIBOBJS thread.o" | 
 | 3728 | else | 
 | 3729 |     if test ! -z "$with_threads" -a -d "$with_threads" | 
 | 3730 |     then LDFLAGS="$LDFLAGS -L$with_threads" | 
 | 3731 |     fi | 
 | 3732 |     if test ! -z "$withval" -a -d "$withval" | 
 | 3733 |     then LDFLAGS="$LDFLAGS -L$withval" | 
 | 3734 |     fi | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 3735 |  | 
 | 3736 |     # According to the POSIX spec, a pthreads implementation must | 
 | 3737 |     # define _POSIX_THREADS in unistd.h. Some apparently don't (which ones?) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3738 |     echo $ac_n "checking for _POSIX_THREADS in unistd.h""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3739 | echo "configure:3740: checking for _POSIX_THREADS in unistd.h" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3740 |     cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3741 | #line 3742 "configure" | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 3742 | #include "confdefs.h" | 
 | 3743 | #include <unistd.h> | 
 | 3744 |      #ifdef _POSIX_THREADS | 
 | 3745 |      yes | 
 | 3746 |      #endif | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3747 |      | 
 | 3748 | EOF | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 3749 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 3750 |   egrep "yes" >/dev/null 2>&1; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3751 |   rm -rf conftest* | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 3752 |   unistd_defines_pthreads=yes | 
 | 3753 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3754 |   rm -rf conftest* | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 3755 |   unistd_defines_pthreads=no | 
 | 3756 | fi | 
 | 3757 | rm -f conftest* | 
 | 3758 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3759 |     echo "$ac_t""$unistd_defines_pthreads" 1>&6 | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 3760 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3761 |     cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 3762 | #define _REENTRANT 1 | 
 | 3763 | EOF | 
 | 3764 |  | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 3765 |     ac_safe=`echo "cthreads.h" | sed 'y%./+-%__p_%'` | 
 | 3766 | echo $ac_n "checking for cthreads.h""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3767 | echo "configure:3768: checking for cthreads.h" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3768 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 
 | 3769 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3770 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3771 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3772 | #line 3773 "configure" | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3773 | #include "confdefs.h" | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 3774 | #include <cthreads.h> | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3775 | EOF | 
 | 3776 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3777 | { (eval echo configure:3778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3778 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
 | 3779 | if test -z "$ac_err"; then | 
 | 3780 |   rm -rf conftest* | 
 | 3781 |   eval "ac_cv_header_$ac_safe=yes" | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3782 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3783 |   echo "$ac_err" >&5 | 
 | 3784 |   echo "configure: failed program was:" >&5 | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3785 |   cat conftest.$ac_ext >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3786 |   rm -rf conftest* | 
 | 3787 |   eval "ac_cv_header_$ac_safe=no" | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3788 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3789 | rm -f conftest* | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3790 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3791 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 
 | 3792 |   echo "$ac_t""yes" 1>&6 | 
 | 3793 |   cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3794 | #define WITH_THREAD 1 | 
 | 3795 | EOF | 
 | 3796 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3797 |     cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3798 | #define C_THREADS 1 | 
 | 3799 | EOF | 
 | 3800 |  | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 3801 |     cat >> confdefs.h <<\EOF | 
 | 3802 | #define HURD_C_THREADS 1 | 
 | 3803 | EOF | 
 | 3804 |  | 
 | 3805 |     LIBS="$LIBS -lthreads" | 
 | 3806 |     LIBOBJS="$LIBOBJS thread.o" | 
 | 3807 | else | 
 | 3808 |   echo "$ac_t""no" 1>&6 | 
 | 3809 |  | 
 | 3810 |     ac_safe=`echo "mach/cthreads.h" | sed 'y%./+-%__p_%'` | 
 | 3811 | echo $ac_n "checking for mach/cthreads.h""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3812 | echo "configure:3813: checking for mach/cthreads.h" >&5 | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 3813 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 
 | 3814 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 3815 | else | 
 | 3816 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3817 | #line 3818 "configure" | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 3818 | #include "confdefs.h" | 
 | 3819 | #include <mach/cthreads.h> | 
 | 3820 | EOF | 
 | 3821 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3822 | { (eval echo configure:3823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 3823 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
 | 3824 | if test -z "$ac_err"; then | 
 | 3825 |   rm -rf conftest* | 
 | 3826 |   eval "ac_cv_header_$ac_safe=yes" | 
 | 3827 | else | 
 | 3828 |   echo "$ac_err" >&5 | 
 | 3829 |   echo "configure: failed program was:" >&5 | 
 | 3830 |   cat conftest.$ac_ext >&5 | 
 | 3831 |   rm -rf conftest* | 
 | 3832 |   eval "ac_cv_header_$ac_safe=no" | 
 | 3833 | fi | 
 | 3834 | rm -f conftest* | 
 | 3835 | fi | 
 | 3836 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 
 | 3837 |   echo "$ac_t""yes" 1>&6 | 
 | 3838 |   cat >> confdefs.h <<\EOF | 
 | 3839 | #define WITH_THREAD 1 | 
 | 3840 | EOF | 
 | 3841 |  | 
 | 3842 |     cat >> confdefs.h <<\EOF | 
 | 3843 | #define C_THREADS 1 | 
 | 3844 | EOF | 
 | 3845 |  | 
 | 3846 |     cat >> confdefs.h <<\EOF | 
 | 3847 | #define MACH_C_THREADS 1 | 
 | 3848 | EOF | 
 | 3849 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3850 |     LIBOBJS="$LIBOBJS thread.o" | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3851 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3852 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3853 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3854 |     echo $ac_n "checking for --with-pth""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3855 | echo "configure:3856: checking for --with-pth" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3856 |     # Check whether --with-pth or --without-pth was given. | 
| Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 3857 | if test "${with_pth+set}" = set; then | 
 | 3858 |   withval="$with_pth" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3859 |    | 
 | 3860 |     echo "$ac_t""$withval" 1>&6 | 
 | 3861 |     cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 3862 | #define WITH_THREAD 1 | 
 | 3863 | EOF | 
 | 3864 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3865 |     cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 3866 | #define HAVE_PTH 1 | 
 | 3867 | EOF | 
 | 3868 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3869 |     LIBS="-lpth $LIBS" | 
 | 3870 |     LIBOBJS="$LIBOBJS thread.o" | 
| Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 3871 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3872 |    | 
 | 3873 |     echo "$ac_t""no" 1>&6 | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 3874 |  | 
 | 3875 |     # Just looking for pthread_create in libpthread is not enough: | 
 | 3876 |     # on HP/UX, pthread.h renames pthread_create to a different symbol name. | 
 | 3877 |     # So we really have to include pthread.h, and then link. | 
 | 3878 |     _libs=$LIBS | 
 | 3879 |     LIBS="$LIBS -lpthread" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3880 |     echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3881 | echo "configure:3882: checking for pthread_create in -lpthread" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3882 |     cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3883 | #line 3884 "configure" | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3884 | #include "confdefs.h" | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 3885 | #include <pthread.h> | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3886 |  | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 3887 | void * start_routine (void *arg) { exit (0); } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3888 | int main() { | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 3889 |  | 
 | 3890 | pthread_create (NULL, NULL, start_routine, NULL) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3891 | ; return 0; } | 
 | 3892 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3893 | if { (eval echo configure:3894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3894 |   rm -rf conftest* | 
 | 3895 |    | 
 | 3896 |     echo "$ac_t""yes" 1>&6 | 
 | 3897 |     cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3898 | #define WITH_THREAD 1 | 
 | 3899 | EOF | 
 | 3900 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 3901 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3902 |     LIBOBJS="$LIBOBJS thread.o" | 
| Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 3903 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3904 |   echo "configure: failed program was:" >&5 | 
 | 3905 |   cat conftest.$ac_ext >&5 | 
 | 3906 |   rm -rf conftest* | 
 | 3907 |    | 
| Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 3908 |     LIBS=$_libs | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3909 |     echo $ac_n "checking for pthread_detach""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3910 | echo "configure:3911: checking for pthread_detach" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3911 | if eval "test \"`echo '$''{'ac_cv_func_pthread_detach'+set}'`\" = set"; then | 
 | 3912 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3913 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3914 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3915 | #line 3916 "configure" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3916 | #include "confdefs.h" | 
 | 3917 | /* System header to define __stub macros and hopefully few prototypes, | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3918 |     which can conflict with char pthread_detach(); below.  */ | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3919 | #include <assert.h> | 
 | 3920 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 3921 | /* We use char because int might match the return type of a gcc2 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3922 |     builtin and then its argument prototype would still apply.  */ | 
 | 3923 | char pthread_detach(); | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3924 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3925 | int main() { | 
 | 3926 |  | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3927 | /* The GNU C library defines this for functions which it implements | 
 | 3928 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 3929 |     something starting with __ and the normal name is an alias.  */ | 
| Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 3930 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3931 | choke me | 
 | 3932 | #else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3933 | pthread_detach(); | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3934 | #endif | 
 | 3935 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3936 | ; return 0; } | 
 | 3937 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3938 | if { (eval echo configure:3939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3939 |   rm -rf conftest* | 
 | 3940 |   eval "ac_cv_func_pthread_detach=yes" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3941 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3942 |   echo "configure: failed program was:" >&5 | 
 | 3943 |   cat conftest.$ac_ext >&5 | 
 | 3944 |   rm -rf conftest* | 
 | 3945 |   eval "ac_cv_func_pthread_detach=no" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3946 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3947 | rm -f conftest* | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3948 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3949 |  | 
 | 3950 | if eval "test \"`echo '$ac_cv_func_'pthread_detach`\" = yes"; then | 
 | 3951 |   echo "$ac_t""yes" 1>&6 | 
 | 3952 |   cat >> confdefs.h <<\EOF | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3953 | #define WITH_THREAD 1 | 
 | 3954 | EOF | 
 | 3955 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 3956 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3957 |     LIBOBJS="$LIBOBJS thread.o" | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3958 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3959 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 3960 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3961 |     ac_safe=`echo "kernel/OS.h" | sed 'y%./+-%__p_%'` | 
 | 3962 | echo $ac_n "checking for kernel/OS.h""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3963 | echo "configure:3964: checking for kernel/OS.h" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3964 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 
 | 3965 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3966 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3967 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3968 | #line 3969 "configure" | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3969 | #include "confdefs.h" | 
 | 3970 | #include <kernel/OS.h> | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3971 | EOF | 
 | 3972 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 3973 | { (eval echo configure:3974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3974 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
 | 3975 | if test -z "$ac_err"; then | 
 | 3976 |   rm -rf conftest* | 
 | 3977 |   eval "ac_cv_header_$ac_safe=yes" | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3978 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3979 |   echo "$ac_err" >&5 | 
 | 3980 |   echo "configure: failed program was:" >&5 | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3981 |   cat conftest.$ac_ext >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3982 |   rm -rf conftest* | 
 | 3983 |   eval "ac_cv_header_$ac_safe=no" | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3984 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3985 | rm -f conftest* | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3986 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3987 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 
 | 3988 |   echo "$ac_t""yes" 1>&6 | 
 | 3989 |   cat >> confdefs.h <<\EOF | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3990 | #define WITH_THREAD 1 | 
 | 3991 | EOF | 
 | 3992 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3993 |     cat >> confdefs.h <<\EOF | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3994 | #define BEOS_THREADS 1 | 
 | 3995 | EOF | 
 | 3996 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3997 |     LIBOBJS="$LIBOBJS thread.o" | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3998 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3999 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 4000 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4001 |     echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4002 | echo "configure:4003: checking for pthread_create in -lpthreads" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4003 | ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'` | 
 | 4004 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
 | 4005 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4006 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4007 |   ac_save_LIBS="$LIBS" | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4008 | LIBS="-lpthreads  $LIBS" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4009 | cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4010 | #line 4011 "configure" | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 4011 | #include "confdefs.h" | 
 | 4012 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 4013 | /* We use char because int might match the return type of a gcc2 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4014 |     builtin and then its argument prototype would still apply.  */ | 
 | 4015 | char pthread_create(); | 
 | 4016 |  | 
 | 4017 | int main() { | 
 | 4018 | pthread_create() | 
 | 4019 | ; return 0; } | 
 | 4020 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4021 | if { (eval echo configure:4022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4022 |   rm -rf conftest* | 
 | 4023 |   eval "ac_cv_lib_$ac_lib_var=yes" | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 4024 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4025 |   echo "configure: failed program was:" >&5 | 
 | 4026 |   cat conftest.$ac_ext >&5 | 
 | 4027 |   rm -rf conftest* | 
 | 4028 |   eval "ac_cv_lib_$ac_lib_var=no" | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 4029 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4030 | rm -f conftest* | 
 | 4031 | LIBS="$ac_save_LIBS" | 
 | 4032 |  | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 4033 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4034 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
 | 4035 |   echo "$ac_t""yes" 1>&6 | 
 | 4036 |   cat >> confdefs.h <<\EOF | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 4037 | #define WITH_THREAD 1 | 
 | 4038 | EOF | 
 | 4039 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 4040 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4041 |     LIBS="$LIBS -lpthreads" | 
 | 4042 |     LIBOBJS="$LIBOBJS thread.o" | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 4043 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4044 |   echo "$ac_t""no" 1>&6 | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 4045 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4046 |     echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4047 | echo "configure:4048: checking for pthread_create in -lc_r" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4048 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` | 
 | 4049 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
 | 4050 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 4051 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4052 |   ac_save_LIBS="$LIBS" | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 4053 | LIBS="-lc_r  $LIBS" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4054 | cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4055 | #line 4056 "configure" | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 4056 | #include "confdefs.h" | 
 | 4057 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 4058 | /* We use char because int might match the return type of a gcc2 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4059 |     builtin and then its argument prototype would still apply.  */ | 
 | 4060 | char pthread_create(); | 
 | 4061 |  | 
 | 4062 | int main() { | 
 | 4063 | pthread_create() | 
 | 4064 | ; return 0; } | 
 | 4065 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4066 | if { (eval echo configure:4067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4067 |   rm -rf conftest* | 
 | 4068 |   eval "ac_cv_lib_$ac_lib_var=yes" | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 4069 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4070 |   echo "configure: failed program was:" >&5 | 
 | 4071 |   cat conftest.$ac_ext >&5 | 
 | 4072 |   rm -rf conftest* | 
 | 4073 |   eval "ac_cv_lib_$ac_lib_var=no" | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 4074 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4075 | rm -f conftest* | 
 | 4076 | LIBS="$ac_save_LIBS" | 
 | 4077 |  | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 4078 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4079 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
 | 4080 |   echo "$ac_t""yes" 1>&6 | 
 | 4081 |   cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 4082 | #define WITH_THREAD 1 | 
 | 4083 | EOF | 
 | 4084 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 4085 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4086 |     LIBS="$LIBS -lc_r" | 
 | 4087 |     LIBOBJS="$LIBOBJS thread.o" | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 4088 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4089 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 4090 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4091 |     echo $ac_n "checking for __d6_pthread_create in -lthread""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4092 | echo "configure:4093: checking for __d6_pthread_create in -lthread" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4093 | ac_lib_var=`echo thread'_'__d6_pthread_create | sed 'y%./+-%__p_%'` | 
 | 4094 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
 | 4095 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 4096 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4097 |   ac_save_LIBS="$LIBS" | 
| Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 4098 | LIBS="-lthread  $LIBS" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4099 | cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4100 | #line 4101 "configure" | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 4101 | #include "confdefs.h" | 
 | 4102 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 4103 | /* We use char because int might match the return type of a gcc2 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4104 |     builtin and then its argument prototype would still apply.  */ | 
 | 4105 | char __d6_pthread_create(); | 
 | 4106 |  | 
 | 4107 | int main() { | 
 | 4108 | __d6_pthread_create() | 
 | 4109 | ; return 0; } | 
 | 4110 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4111 | if { (eval echo configure:4112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4112 |   rm -rf conftest* | 
 | 4113 |   eval "ac_cv_lib_$ac_lib_var=yes" | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 4114 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4115 |   echo "configure: failed program was:" >&5 | 
 | 4116 |   cat conftest.$ac_ext >&5 | 
 | 4117 |   rm -rf conftest* | 
 | 4118 |   eval "ac_cv_lib_$ac_lib_var=no" | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 4119 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4120 | rm -f conftest* | 
 | 4121 | LIBS="$ac_save_LIBS" | 
 | 4122 |  | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 4123 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4124 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
 | 4125 |   echo "$ac_t""yes" 1>&6 | 
 | 4126 |   cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 4127 | #define WITH_THREAD 1 | 
 | 4128 | EOF | 
 | 4129 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 4130 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4131 |     LIBS="$LIBS -lthread" | 
 | 4132 |     LIBOBJS="$LIBOBJS thread.o" | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 4133 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4134 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 4135 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4136 |     echo $ac_n "checking for __pthread_create_system in -lpthread""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4137 | echo "configure:4138: checking for __pthread_create_system in -lpthread" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4138 | ac_lib_var=`echo pthread'_'__pthread_create_system | sed 'y%./+-%__p_%'` | 
 | 4139 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
 | 4140 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4141 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4142 |   ac_save_LIBS="$LIBS" | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4143 | LIBS="-lpthread  $LIBS" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4144 | cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4145 | #line 4146 "configure" | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4146 | #include "confdefs.h" | 
 | 4147 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 4148 | /* We use char because int might match the return type of a gcc2 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4149 |     builtin and then its argument prototype would still apply.  */ | 
 | 4150 | char __pthread_create_system(); | 
 | 4151 |  | 
 | 4152 | int main() { | 
 | 4153 | __pthread_create_system() | 
 | 4154 | ; return 0; } | 
 | 4155 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4156 | if { (eval echo configure:4157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4157 |   rm -rf conftest* | 
 | 4158 |   eval "ac_cv_lib_$ac_lib_var=yes" | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4159 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4160 |   echo "configure: failed program was:" >&5 | 
 | 4161 |   cat conftest.$ac_ext >&5 | 
 | 4162 |   rm -rf conftest* | 
 | 4163 |   eval "ac_cv_lib_$ac_lib_var=no" | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4164 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4165 | rm -f conftest* | 
 | 4166 | LIBS="$ac_save_LIBS" | 
 | 4167 |  | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4168 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4169 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
 | 4170 |   echo "$ac_t""yes" 1>&6 | 
 | 4171 |   cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4172 | #define WITH_THREAD 1 | 
 | 4173 | EOF | 
 | 4174 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 4175 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4176 |     LIBS="$LIBS -lpthread" | 
 | 4177 |     LIBOBJS="$LIBOBJS thread.o" | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4178 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4179 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4180 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4181 |     echo $ac_n "checking for pthread_create in -lcma""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4182 | echo "configure:4183: checking for pthread_create in -lcma" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4183 | ac_lib_var=`echo cma'_'pthread_create | sed 'y%./+-%__p_%'` | 
 | 4184 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
 | 4185 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 4186 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4187 |   ac_save_LIBS="$LIBS" | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 4188 | LIBS="-lcma  $LIBS" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4189 | cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4190 | #line 4191 "configure" | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 4191 | #include "confdefs.h" | 
 | 4192 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 4193 | /* We use char because int might match the return type of a gcc2 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4194 |     builtin and then its argument prototype would still apply.  */ | 
 | 4195 | char pthread_create(); | 
 | 4196 |  | 
 | 4197 | int main() { | 
 | 4198 | pthread_create() | 
 | 4199 | ; return 0; } | 
 | 4200 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4201 | if { (eval echo configure:4202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4202 |   rm -rf conftest* | 
 | 4203 |   eval "ac_cv_lib_$ac_lib_var=yes" | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 4204 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4205 |   echo "configure: failed program was:" >&5 | 
 | 4206 |   cat conftest.$ac_ext >&5 | 
 | 4207 |   rm -rf conftest* | 
 | 4208 |   eval "ac_cv_lib_$ac_lib_var=no" | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 4209 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4210 | rm -f conftest* | 
 | 4211 | LIBS="$ac_save_LIBS" | 
 | 4212 |  | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 4213 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4214 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
 | 4215 |   echo "$ac_t""yes" 1>&6 | 
 | 4216 |   cat >> confdefs.h <<\EOF | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 4217 | #define WITH_THREAD 1 | 
 | 4218 | EOF | 
 | 4219 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 4220 |     posix_threads=yes | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4221 |     LIBS="$LIBS -lcma" | 
 | 4222 |     LIBOBJS="$LIBOBJS thread.o" | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 4223 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4224 |   echo "$ac_t""no" 1>&6 | 
| Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 4225 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4226 |     USE_THREAD_MODULE="#" | 
| Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 4227 | fi | 
 | 4228 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4229 |      | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4230 | fi | 
 | 4231 |  | 
| Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 4232 | fi | 
 | 4233 |  | 
| Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 4234 | fi | 
 | 4235 |  | 
| Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 4236 | fi | 
 | 4237 |  | 
| Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 4238 | fi | 
 | 4239 |  | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 4240 | fi | 
 | 4241 |  | 
| Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 4242 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4243 | rm -f conftest* | 
| Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 4244 | fi | 
 | 4245 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4246 | fi | 
 | 4247 |  | 
| Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 4248 | fi | 
 | 4249 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4250 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 4251 |     if test "$posix_threads" = "yes"; then | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 4252 |       if test "$unistd_defines_pthreads" = "no"; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4253 |          cat >> confdefs.h <<\EOF | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 4254 | #define _POSIX_THREADS 1 | 
 | 4255 | EOF | 
 | 4256 |  | 
 | 4257 |       fi | 
 | 4258 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4259 |       echo $ac_n "checking if PTHREAD_SCOPE_SYSTEM is supported""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4260 | echo "configure:4261: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4261 |       if eval "test \"`echo '$''{'ac_cv_pthread_system_supported'+set}'`\" = set"; then | 
 | 4262 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 4263 | else | 
 | 4264 |   if test "$cross_compiling" = yes; then | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 4265 |   ac_cv_pthread_system_supported=no | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 4266 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4267 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4268 | #line 4269 "configure" | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 4269 | #include "confdefs.h" | 
 | 4270 | #include <pthread.h> | 
 | 4271 |       void *foo(void *parm) { | 
 | 4272 |         return NULL; | 
 | 4273 |       } | 
 | 4274 |       main() { | 
 | 4275 |         pthread_attr_t attr; | 
| Martin v. Löwis | a82d347 | 2002-02-24 16:05:05 +0000 | [diff] [blame] | 4276 |         pthread_t id; | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 4277 |         if (pthread_attr_init(&attr)) exit(-1); | 
 | 4278 |         if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); | 
| Martin v. Löwis | a82d347 | 2002-02-24 16:05:05 +0000 | [diff] [blame] | 4279 |         if (pthread_create(&id, &attr, foo, NULL)) exit(-1); | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 4280 |         exit(0); | 
 | 4281 |       } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4282 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4283 | if { (eval echo configure:4284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4284 | then | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 4285 |   ac_cv_pthread_system_supported=yes | 
 | 4286 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4287 |   echo "configure: failed program was:" >&5 | 
 | 4288 |   cat conftest.$ac_ext >&5 | 
 | 4289 |   rm -fr conftest* | 
 | 4290 |   ac_cv_pthread_system_supported=no | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 4291 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4292 | rm -fr conftest* | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 4293 | fi | 
 | 4294 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4295 |        | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 4296 | fi | 
 | 4297 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4298 |       echo "$ac_t""$ac_cv_pthread_system_supported" 1>&6 | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 4299 |       if test "$ac_cv_pthread_system_supported" = "yes"; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4300 |         cat >> confdefs.h <<\EOF | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 4301 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 | 
 | 4302 | EOF | 
 | 4303 |  | 
 | 4304 |       fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4305 |       for ac_func in pthread_sigmask | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 4306 | do | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4307 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4308 | echo "configure:4309: checking for $ac_func" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4309 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
 | 4310 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 4311 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4312 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4313 | #line 4314 "configure" | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 4314 | #include "confdefs.h" | 
 | 4315 | /* System header to define __stub macros and hopefully few prototypes, | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4316 |     which can conflict with char $ac_func(); below.  */ | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 4317 | #include <assert.h> | 
 | 4318 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 4319 | /* We use char because int might match the return type of a gcc2 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4320 |     builtin and then its argument prototype would still apply.  */ | 
 | 4321 | char $ac_func(); | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 4322 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4323 | int main() { | 
 | 4324 |  | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 4325 | /* The GNU C library defines this for functions which it implements | 
 | 4326 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 4327 |     something starting with __ and the normal name is an alias.  */ | 
 | 4328 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 4329 | choke me | 
 | 4330 | #else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4331 | $ac_func(); | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 4332 | #endif | 
 | 4333 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4334 | ; return 0; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4335 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4336 | if { (eval echo configure:4337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4337 |   rm -rf conftest* | 
 | 4338 |   eval "ac_cv_func_$ac_func=yes" | 
 | 4339 | else | 
 | 4340 |   echo "configure: failed program was:" >&5 | 
 | 4341 |   cat conftest.$ac_ext >&5 | 
 | 4342 |   rm -rf conftest* | 
 | 4343 |   eval "ac_cv_func_$ac_func=no" | 
 | 4344 | fi | 
 | 4345 | rm -f conftest* | 
 | 4346 | fi | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 4347 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4348 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
 | 4349 |   echo "$ac_t""yes" 1>&6 | 
 | 4350 |     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
 | 4351 |   cat >> confdefs.h <<EOF | 
 | 4352 | #define $ac_tr_func 1 | 
 | 4353 | EOF | 
 | 4354 |   | 
 | 4355 | else | 
 | 4356 |   echo "$ac_t""no" 1>&6 | 
| Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 4357 | fi | 
 | 4358 | done | 
 | 4359 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 4360 |     fi | 
 | 4361 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4362 |     echo $ac_n "checking for usconfig in -lmpc""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4363 | echo "configure:4364: checking for usconfig in -lmpc" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4364 | ac_lib_var=`echo mpc'_'usconfig | sed 'y%./+-%__p_%'` | 
 | 4365 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
 | 4366 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4367 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4368 |   ac_save_LIBS="$LIBS" | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4369 | LIBS="-lmpc  $LIBS" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4370 | cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4371 | #line 4372 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4372 | #include "confdefs.h" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4373 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 4374 | /* We use char because int might match the return type of a gcc2 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4375 |     builtin and then its argument prototype would still apply.  */ | 
 | 4376 | char usconfig(); | 
 | 4377 |  | 
 | 4378 | int main() { | 
 | 4379 | usconfig() | 
 | 4380 | ; return 0; } | 
 | 4381 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4382 | if { (eval echo configure:4383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4383 |   rm -rf conftest* | 
 | 4384 |   eval "ac_cv_lib_$ac_lib_var=yes" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4385 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4386 |   echo "configure: failed program was:" >&5 | 
 | 4387 |   cat conftest.$ac_ext >&5 | 
 | 4388 |   rm -rf conftest* | 
 | 4389 |   eval "ac_cv_lib_$ac_lib_var=no" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4390 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4391 | rm -f conftest* | 
 | 4392 | LIBS="$ac_save_LIBS" | 
 | 4393 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4394 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4395 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
 | 4396 |   echo "$ac_t""yes" 1>&6 | 
 | 4397 |   cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4398 | #define WITH_THREAD 1 | 
 | 4399 | EOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4400 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4401 |     LIBS="$LIBS -lmpc" | 
 | 4402 |     LIBOBJS="$LIBOBJS thread.o" | 
 | 4403 |     USE_THREAD_MODULE="" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4404 | else | 
 | 4405 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4406 | fi | 
 | 4407 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 4408 |  | 
 | 4409 |     if test $posix_threads != "yes"; then      | 
 | 4410 |       echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4411 | echo "configure:4412: checking for thr_create in -lthread" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4412 | ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-%__p_%'` | 
 | 4413 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
 | 4414 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4415 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4416 |   ac_save_LIBS="$LIBS" | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4417 | LIBS="-lthread  $LIBS" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4418 | cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4419 | #line 4420 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4420 | #include "confdefs.h" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4421 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 4422 | /* We use char because int might match the return type of a gcc2 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4423 |     builtin and then its argument prototype would still apply.  */ | 
 | 4424 | char thr_create(); | 
 | 4425 |  | 
 | 4426 | int main() { | 
 | 4427 | thr_create() | 
 | 4428 | ; return 0; } | 
 | 4429 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4430 | if { (eval echo configure:4431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4431 |   rm -rf conftest* | 
 | 4432 |   eval "ac_cv_lib_$ac_lib_var=yes" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4433 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4434 |   echo "configure: failed program was:" >&5 | 
 | 4435 |   cat conftest.$ac_ext >&5 | 
 | 4436 |   rm -rf conftest* | 
 | 4437 |   eval "ac_cv_lib_$ac_lib_var=no" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4438 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4439 | rm -f conftest* | 
 | 4440 | LIBS="$ac_save_LIBS" | 
 | 4441 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4442 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4443 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
 | 4444 |   echo "$ac_t""yes" 1>&6 | 
 | 4445 |   cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4446 | #define WITH_THREAD 1 | 
 | 4447 | EOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4448 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 4449 |       LIBS="$LIBS -lthread" | 
 | 4450 |       LIBOBJS="$LIBOBJS thread.o" | 
 | 4451 |       USE_THREAD_MODULE="" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4452 | else | 
 | 4453 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4454 | fi | 
 | 4455 |  | 
| Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 4456 |     fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4457 |  | 
| Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 4458 |     if test "$USE_THREAD_MODULE" != "#" | 
 | 4459 |     then | 
 | 4460 |         # If the above checks didn't disable threads, (at least) OSF1 | 
 | 4461 |         # needs this '-threads' argument during linking. | 
 | 4462 |         case $ac_sys_system in | 
 | 4463 |         OSF1) LDLAST=-threads;; | 
 | 4464 |         esac | 
| Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 4465 |     fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4466 | fi | 
 | 4467 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4468 | # Check for enable-ipv6 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4469 | echo $ac_n "checking if --enable-ipv6 is specified""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4470 | echo "configure:4471: checking if --enable-ipv6 is specified" >&5 | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4471 | # Check whether --enable-ipv6 or --disable-ipv6 was given. | 
 | 4472 | if test "${enable_ipv6+set}" = set; then | 
 | 4473 |   enableval="$enable_ipv6" | 
 | 4474 |    case "$enableval" in | 
 | 4475 |   no) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4476 |        echo "$ac_t""no" 1>&6 | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4477 |        ipv6=no | 
 | 4478 |        ;; | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4479 |   *)   echo "$ac_t""yes" 1>&6 | 
 | 4480 |        cat >> confdefs.h <<\EOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4481 | #define ENABLE_IPV6 1 | 
 | 4482 | EOF | 
 | 4483 |  | 
 | 4484 |        ipv6=yes | 
 | 4485 |        ;; | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4486 |   esac  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4487 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4488 |    | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4489 |   if test "$cross_compiling" = yes; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4490 |   echo "$ac_t""no" 1>&6 | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4491 |   ipv6=no | 
 | 4492 |  | 
 | 4493 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4494 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4495 | #line 4496 "configure" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4496 | #include "confdefs.h" | 
 | 4497 |  /* AF_INET6 available check */ | 
 | 4498 | #include <sys/types.h> | 
 | 4499 | #include <sys/socket.h> | 
 | 4500 | main() | 
 | 4501 | { | 
 | 4502 |  if (socket(AF_INET6, SOCK_STREAM, 0) < 0) | 
 | 4503 |    exit(1); | 
 | 4504 |  else | 
 | 4505 |    exit(0); | 
 | 4506 | } | 
 | 4507 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4508 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4509 | if { (eval echo configure:4510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4510 | then | 
 | 4511 |   echo "$ac_t""yes" 1>&6 | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4512 |   ipv6=yes | 
 | 4513 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4514 |   echo "configure: failed program was:" >&5 | 
 | 4515 |   cat conftest.$ac_ext >&5 | 
 | 4516 |   rm -fr conftest* | 
 | 4517 |   echo "$ac_t""no" 1>&6 | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4518 |   ipv6=no | 
 | 4519 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4520 | rm -fr conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4521 | fi | 
 | 4522 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4523 |  | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 4524 | if test "$ipv6" = "yes"; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4525 | 	echo $ac_n "checking if RFC2553 API is available""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4526 | echo "configure:4527: checking if RFC2553 API is available" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4527 | 	cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4528 | #line 4529 "configure" | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 4529 | #include "confdefs.h" | 
 | 4530 | #include <sys/types.h> | 
 | 4531 | #include <netinet/in.h> | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4532 | int main() { | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 4533 | struct sockaddr_in6 x; | 
 | 4534 | x.sin6_scope_id; | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4535 | ; return 0; } | 
 | 4536 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4537 | if { (eval echo configure:4538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4538 |   rm -rf conftest* | 
 | 4539 |   echo "$ac_t""yes" 1>&6 | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 4540 | 		ipv6=yes | 
 | 4541 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4542 |   echo "configure: failed program was:" >&5 | 
 | 4543 |   cat conftest.$ac_ext >&5 | 
 | 4544 |   rm -rf conftest* | 
 | 4545 |   echo "$ac_t""no" 1>&6 | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 4546 | 		ipv6=no | 
 | 4547 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4548 | rm -f conftest* | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 4549 | fi | 
 | 4550 |  | 
 | 4551 | if test "$ipv6" = "yes"; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4552 | 	cat >> confdefs.h <<\EOF | 
| Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 4553 | #define ENABLE_IPV6 1 | 
 | 4554 | EOF | 
 | 4555 |  | 
 | 4556 | fi | 
 | 4557 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4558 | fi | 
 | 4559 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4560 |  | 
 | 4561 | ipv6type=unknown | 
 | 4562 | ipv6lib=none | 
 | 4563 | ipv6trylibc=no | 
 | 4564 |  | 
 | 4565 | if test "$ipv6" = "yes"; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4566 | 	echo $ac_n "checking ipv6 stack type""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4567 | echo "configure:4568: checking ipv6 stack type" >&5 | 
| Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 4568 | 	for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; | 
 | 4569 | 	do | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4570 | 		case $i in | 
 | 4571 | 		inria) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4572 | 						cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4573 | #line 4574 "configure" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4574 | #include "confdefs.h" | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4575 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4576 | #include <netinet/in.h> | 
 | 4577 | #ifdef IPV6_INRIA_VERSION | 
 | 4578 | yes | 
 | 4579 | #endif | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4580 | EOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4581 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 4582 |   egrep "yes" >/dev/null 2>&1; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4583 |   rm -rf conftest* | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 4584 |   ipv6type=$i | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4585 | fi | 
 | 4586 | rm -f conftest* | 
 | 4587 |  | 
 | 4588 | 			;; | 
 | 4589 | 		kame) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4590 | 						cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4591 | #line 4592 "configure" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4592 | #include "confdefs.h" | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4593 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4594 | #include <netinet/in.h> | 
 | 4595 | #ifdef __KAME__ | 
 | 4596 | yes | 
 | 4597 | #endif | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4598 | EOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4599 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 4600 |   egrep "yes" >/dev/null 2>&1; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4601 |   rm -rf conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4602 |   ipv6type=$i; | 
 | 4603 | 				ipv6lib=inet6 | 
 | 4604 | 				ipv6libdir=/usr/local/v6/lib | 
 | 4605 | 				ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4606 | fi | 
 | 4607 | rm -f conftest* | 
 | 4608 |  | 
 | 4609 | 			;; | 
 | 4610 | 		linux-glibc) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4611 | 						cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4612 | #line 4613 "configure" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4613 | #include "confdefs.h" | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4614 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4615 | #include <features.h> | 
 | 4616 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) | 
 | 4617 | yes | 
 | 4618 | #endif | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4619 | EOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4620 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 4621 |   egrep "yes" >/dev/null 2>&1; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4622 |   rm -rf conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4623 |   ipv6type=$i; | 
 | 4624 | 				ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4625 | fi | 
 | 4626 | rm -f conftest* | 
 | 4627 |  | 
 | 4628 | 			;; | 
 | 4629 | 		linux-inet6) | 
 | 4630 | 						if test -d /usr/inet6; then | 
 | 4631 | 				ipv6type=$i | 
 | 4632 | 				ipv6lib=inet6 | 
 | 4633 | 				ipv6libdir=/usr/inet6/lib | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 4634 | 				OPT="-I/usr/inet6/include $OPT" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4635 | 			fi | 
 | 4636 | 			;; | 
 | 4637 | 		solaris) | 
 | 4638 | 			if test -f /etc/netconfig; then | 
 | 4639 |                           if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then | 
 | 4640 | 				ipv6type=$i | 
 | 4641 | 				ipv6trylibc=yes | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4642 |                           fi | 
 | 4643 |                         fi | 
 | 4644 | 			;; | 
 | 4645 | 		toshiba) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4646 | 			cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4647 | #line 4648 "configure" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4648 | #include "confdefs.h" | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4649 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4650 | #include <sys/param.h> | 
 | 4651 | #ifdef _TOSHIBA_INET6 | 
 | 4652 | yes | 
 | 4653 | #endif | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4654 | EOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4655 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 4656 |   egrep "yes" >/dev/null 2>&1; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4657 |   rm -rf conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4658 |   ipv6type=$i; | 
 | 4659 | 				ipv6lib=inet6; | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 4660 | 				ipv6libdir=/usr/local/v6/lib | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4661 | fi | 
 | 4662 | rm -f conftest* | 
 | 4663 |  | 
 | 4664 | 			;; | 
 | 4665 | 		v6d) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4666 | 			cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4667 | #line 4668 "configure" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4668 | #include "confdefs.h" | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4669 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4670 | #include </usr/local/v6/include/sys/v6config.h> | 
 | 4671 | #ifdef __V6D__ | 
 | 4672 | yes | 
 | 4673 | #endif | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4674 | EOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4675 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 4676 |   egrep "yes" >/dev/null 2>&1; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4677 |   rm -rf conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4678 |   ipv6type=$i; | 
 | 4679 | 				ipv6lib=v6; | 
 | 4680 | 				ipv6libdir=/usr/local/v6/lib; | 
 | 4681 | 				OPT="-I/usr/local/v6/include $OPT" | 
 | 4682 | fi | 
 | 4683 | rm -f conftest* | 
 | 4684 |  | 
 | 4685 | 			;; | 
 | 4686 | 		zeta) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4687 | 			cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4688 | #line 4689 "configure" | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4689 | #include "confdefs.h" | 
| Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 4690 |  | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4691 | #include <sys/param.h> | 
 | 4692 | #ifdef _ZETA_MINAMI_INET6 | 
 | 4693 | yes | 
 | 4694 | #endif | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4695 | EOF | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4696 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 4697 |   egrep "yes" >/dev/null 2>&1; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4698 |   rm -rf conftest* | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4699 |   ipv6type=$i; | 
 | 4700 | 				ipv6lib=inet6; | 
| Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 4701 | 				ipv6libdir=/usr/local/v6/lib | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4702 | fi | 
 | 4703 | rm -f conftest* | 
 | 4704 |  | 
 | 4705 | 			;; | 
 | 4706 | 		esac | 
 | 4707 | 		if test "$ipv6type" != "unknown"; then | 
 | 4708 | 			break | 
 | 4709 | 		fi | 
 | 4710 | 	done | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4711 | 	echo "$ac_t""$ipv6type" 1>&6 | 
| Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 4712 | fi | 
 | 4713 |  | 
 | 4714 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then | 
 | 4715 | 	if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then | 
 | 4716 | 		LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" | 
 | 4717 | 		echo "using lib$ipv6lib" | 
 | 4718 | 	else | 
 | 4719 | 		if test $ipv6trylibc = "yes"; then | 
 | 4720 | 			echo "using libc" | 
 | 4721 | 		else | 
 | 4722 | 			echo 'Fatal: no $ipv6lib library found.  cannot continue.' | 
 | 4723 | 			echo "You need to fetch lib$ipv6lib.a from appropriate" | 
 | 4724 | 			echo 'ipv6 kit and compile beforehand.' | 
 | 4725 | 			exit 1 | 
 | 4726 | 		fi | 
 | 4727 | 	fi | 
 | 4728 | fi | 
 | 4729 |  | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4730 | # Check for GC support | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4731 | echo $ac_n "checking for --with-cycle-gc""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4732 | echo "configure:4733: checking for --with-cycle-gc" >&5 | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4733 | # Check whether --with-cycle-gc or --without-cycle-gc was given. | 
 | 4734 | if test "${with_cycle_gc+set}" = set; then | 
 | 4735 |   withval="$with_cycle_gc" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4736 |   : | 
 | 4737 | fi | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4738 |  | 
 | 4739 |  | 
 | 4740 | if test -z "$with_cycle_gc" | 
 | 4741 | then with_cycle_gc="yes" | 
 | 4742 | fi | 
| Neil Schemenauer | cf22946 | 2001-08-29 23:58:47 +0000 | [diff] [blame] | 4743 | if test "$with_cycle_gc" != "no" | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4744 | then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4745 |     cat >> confdefs.h <<\EOF | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4746 | #define WITH_CYCLE_GC 1 | 
 | 4747 | EOF | 
 | 4748 |  | 
 | 4749 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4750 | echo "$ac_t""$with_cycle_gc" 1>&6 | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4751 |  | 
| Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4752 | # Check for Python-specific malloc support | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4753 | echo $ac_n "checking for --with-pymalloc""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4754 | echo "configure:4755: checking for --with-pymalloc" >&5 | 
| Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4755 | # Check whether --with-pymalloc or --without-pymalloc was given. | 
 | 4756 | if test "${with_pymalloc+set}" = set; then | 
 | 4757 |   withval="$with_pymalloc" | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4758 |   : | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4759 | fi | 
 | 4760 |  | 
| Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 4761 |  | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4762 | if test -z "$with_pymalloc" | 
 | 4763 | then with_pymalloc="yes" | 
 | 4764 | fi | 
 | 4765 | if test "$with_pymalloc" != "no" | 
 | 4766 | then | 
 | 4767 |     cat >> confdefs.h <<\EOF | 
 | 4768 | #define WITH_PYMALLOC 1 | 
 | 4769 | EOF | 
 | 4770 |  | 
 | 4771 | fi | 
 | 4772 | echo "$ac_t""$with_pymalloc" 1>&6 | 
 | 4773 |  | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4774 | # Check for --with-wctype-functions | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4775 | echo $ac_n "checking for --with-wctype-functions""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4776 | echo "configure:4777: checking for --with-wctype-functions" >&5 | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4777 | # Check whether --with-wctype-functions or --without-wctype-functions was given. | 
 | 4778 | if test "${with_wctype_functions+set}" = set; then | 
 | 4779 |   withval="$with_wctype_functions" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4780 |    | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4781 | if test "$withval" != no | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4782 | then cat >> confdefs.h <<\EOF | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4783 | #define WANT_WCTYPE_FUNCTIONS 1 | 
 | 4784 | EOF | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4785 |  echo "$ac_t""yes" 1>&6 | 
 | 4786 | else echo "$ac_t""no" 1>&6 | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4787 | fi | 
 | 4788 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4789 |   echo "$ac_t""no" 1>&6 | 
 | 4790 | fi | 
 | 4791 |  | 
| Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 4792 |  | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4793 | # -I${DLINCLDIR} is added to the compile rule for importdl.o | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4794 |  | 
| Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 4795 | DLINCLDIR=. | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4796 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4797 | echo $ac_n "checking for --with-sgi-dl""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4798 | echo "configure:4799: checking for --with-sgi-dl" >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4799 | # Check whether --with-sgi-dl or --without-sgi-dl was given. | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4800 | if test "${with_sgi_dl+set}" = set; then | 
 | 4801 |   withval="$with_sgi_dl" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4802 |    | 
 | 4803 | echo "$ac_t""$withval" 1>&6 | 
 | 4804 | cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4805 | #define WITH_SGI_DL 1 | 
 | 4806 | EOF | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4807 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4808 | DYNLOADFILE="dynload_dl.o" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4809 | dldir=$withval | 
| Guido van Rossum | 4095101 | 2000-10-07 16:21:27 +0000 | [diff] [blame] | 4810 | if test ! -z "$dldir" -a -d "$dldir" | 
| Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 4811 | then LDFLAGS="$LDFLAGS -L$dldir" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4812 | else { echo "configure: error: proper usage is --with-sgi-dl=DIRECTORY" 1>&2; exit 1; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4813 | fi | 
 | 4814 | DLINCLDIR=${dldir} | 
 | 4815 | LIBS="$LIBS -ldl -lmld" | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4816 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4817 |   echo "$ac_t""no" 1>&6 | 
 | 4818 | fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4819 |  | 
 | 4820 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4821 | echo $ac_n "checking for --with-dl-dld""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4822 | echo "configure:4823: checking for --with-dl-dld" >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4823 | # Check whether --with-dl-dld or --without-dl-dld was given. | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4824 | if test "${with_dl_dld+set}" = set; then | 
 | 4825 |   withval="$with_dl_dld" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4826 |    | 
 | 4827 | echo "$ac_t""$withval" 1>&6 | 
 | 4828 | cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4829 | #define WITH_DL_DLD 1 | 
 | 4830 | EOF | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4831 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4832 | DYNLOADFILE="dynload_dl.o" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4833 | dldir=`echo "$withval" | sed 's/,.*//'` | 
 | 4834 | dlddir=`echo "$withval" | sed 's/.*,//'` | 
| Barry Warsaw | 7d1219d | 2000-10-05 18:45:53 +0000 | [diff] [blame] | 4835 | if test ! -z "$dldir" -a -d "$dldir" -a ! -z "$dlddir" -a -d "$dlddir" | 
| Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 4836 | then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4837 | else { echo "configure: error: proper usage is --with-dl-dld=DL_DIRECTORY" 1>&2; exit 1; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4838 | fi | 
 | 4839 | DLINCLDIR=${dldir} | 
 | 4840 | LIBS="$LIBS -ldl -ldld" | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4841 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4842 |   echo "$ac_t""no" 1>&6 | 
 | 4843 | fi | 
 | 4844 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 4845 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4846 | # the dlopen() function means we might want to use dynload_shlib.o. some | 
 | 4847 | # platforms, such as AIX, have dlopen(), but don't want to use it. | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4848 | for ac_func in dlopen | 
 | 4849 | do | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4850 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4851 | echo "configure:4852: checking for $ac_func" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4852 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
 | 4853 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4854 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4855 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4856 | #line 4857 "configure" | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4857 | #include "confdefs.h" | 
 | 4858 | /* System header to define __stub macros and hopefully few prototypes, | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4859 |     which can conflict with char $ac_func(); below.  */ | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4860 | #include <assert.h> | 
 | 4861 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 4862 | /* We use char because int might match the return type of a gcc2 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4863 |     builtin and then its argument prototype would still apply.  */ | 
 | 4864 | char $ac_func(); | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4865 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4866 | int main() { | 
 | 4867 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4868 | /* The GNU C library defines this for functions which it implements | 
 | 4869 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 4870 |     something starting with __ and the normal name is an alias.  */ | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4871 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4872 | choke me | 
 | 4873 | #else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4874 | $ac_func(); | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4875 | #endif | 
 | 4876 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4877 | ; return 0; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4878 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4879 | if { (eval echo configure:4880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4880 |   rm -rf conftest* | 
 | 4881 |   eval "ac_cv_func_$ac_func=yes" | 
 | 4882 | else | 
 | 4883 |   echo "configure: failed program was:" >&5 | 
 | 4884 |   cat conftest.$ac_ext >&5 | 
 | 4885 |   rm -rf conftest* | 
 | 4886 |   eval "ac_cv_func_$ac_func=no" | 
 | 4887 | fi | 
 | 4888 | rm -f conftest* | 
 | 4889 | fi | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4890 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4891 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
 | 4892 |   echo "$ac_t""yes" 1>&6 | 
 | 4893 |     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
 | 4894 |   cat >> confdefs.h <<EOF | 
 | 4895 | #define $ac_tr_func 1 | 
 | 4896 | EOF | 
 | 4897 |   | 
 | 4898 | else | 
 | 4899 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4900 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 4901 | done | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4902 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4903 |  | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4904 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic | 
 | 4905 | # loading of modules. | 
 | 4906 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4907 | echo $ac_n "checking DYNLOADFILE""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4908 | echo "configure:4909: checking DYNLOADFILE" >&5 | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4909 | if test -z "$DYNLOADFILE" | 
 | 4910 | then | 
 | 4911 | 	case $ac_sys_system/$ac_sys_release in | 
 | 4912 | 	AIX*) DYNLOADFILE="dynload_aix.o";; | 
 | 4913 | 	BeOS*) DYNLOADFILE="dynload_beos.o";; | 
 | 4914 | 	hp*|HP*) DYNLOADFILE="dynload_hpux.o";; | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 4915 | 	Darwin/*) DYNLOADFILE="dynload_next.o";; | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4916 | 	*) | 
 | 4917 | 	# use dynload_shlib.c and dlopen() if we have it; otherwise stub | 
 | 4918 | 	# out any dynamic loading | 
 | 4919 | 	if test "$ac_cv_func_dlopen" = yes | 
 | 4920 | 	then DYNLOADFILE="dynload_shlib.o" | 
 | 4921 | 	else DYNLOADFILE="dynload_stub.o" | 
 | 4922 | 	fi | 
 | 4923 | 	;; | 
 | 4924 | 	esac | 
 | 4925 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4926 | echo "$ac_t""$DYNLOADFILE" 1>&6 | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4927 | if test "$DYNLOADFILE" != "dynload_stub.o" | 
 | 4928 | then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4929 | 	cat >> confdefs.h <<\EOF | 
| Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 4930 | #define HAVE_DYNAMIC_LOADING 1 | 
 | 4931 | EOF | 
 | 4932 |  | 
 | 4933 | fi | 
 | 4934 |  | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 4935 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python | 
 | 4936 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4937 |  | 
 | 4938 | echo $ac_n "checking MACHDEP_OBJS""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4939 | echo "configure:4940: checking MACHDEP_OBJS" >&5 | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 4940 | if test -z "$MACHDEP_OBJS" | 
 | 4941 | then | 
| Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 4942 | 	MACHDEP_OBJS=$extra_machdep_objs | 
 | 4943 | else | 
 | 4944 | 	MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 4945 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4946 | echo "$ac_t""MACHDEP_OBJS" 1>&6 | 
| Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 4947 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4948 | # checks for library functions | 
| Martin v. Löwis | 244edc8 | 2001-10-04 22:44:26 +0000 | [diff] [blame] | 4949 | for ac_func in alarm chown chroot clock confstr ctermid ctermid_r execv \ | 
| Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 4950 |  flock fork fsync fdatasync fpathconf ftime ftruncate \ | 
| Martin v. Löwis | f95dd0a | 2001-08-15 17:14:33 +0000 | [diff] [blame] | 4951 |  gai_strerror getgroups getlogin getpeername getpid getpwent getwd \ | 
| Martin v. Löwis | b2c92f4 | 2002-02-16 23:35:41 +0000 | [diff] [blame] | 4952 |  hstrerror inet_pton kill killpg link lstat mkfifo mktime mremap \ | 
| Andrew M. Kuchling | 5821b77 | 2000-08-25 01:14:08 +0000 | [diff] [blame] | 4953 |  nice pathconf pause plock poll pthread_init \ | 
| Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 4954 |  putenv readlink \ | 
| Martin v. Löwis | 61c5edf | 2001-10-18 04:06:00 +0000 | [diff] [blame] | 4955 |  select setegid seteuid setgid setgroups \ | 
| Martin v. Löwis | 791bfda | 2001-07-24 06:33:08 +0000 | [diff] [blame] | 4956 |  setlocale setregid setreuid setsid setpgid setuid setvbuf snprintf \ | 
| Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 4957 |  sigaction siginterrupt sigrelse strftime strptime symlink sysconf \ | 
| Fred Drake | 89143df | 1999-12-09 22:03:25 +0000 | [diff] [blame] | 4958 |  tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ | 
| Guido van Rossum | c524d95 | 2001-10-19 01:31:59 +0000 | [diff] [blame] | 4959 |  truncate uname unsetenv waitpid _getpty getpriority | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4960 | do | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4961 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4962 | echo "configure:4963: checking for $ac_func" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4963 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
 | 4964 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4965 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4966 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4967 | #line 4968 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4968 | #include "confdefs.h" | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4969 | /* System header to define __stub macros and hopefully few prototypes, | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4970 |     which can conflict with char $ac_func(); below.  */ | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4971 | #include <assert.h> | 
 | 4972 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4973 | /* We use char because int might match the return type of a gcc2 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4974 |     builtin and then its argument prototype would still apply.  */ | 
 | 4975 | char $ac_func(); | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4976 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4977 | int main() { | 
 | 4978 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4979 | /* The GNU C library defines this for functions which it implements | 
 | 4980 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 4981 |     something starting with __ and the normal name is an alias.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4982 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4983 | choke me | 
 | 4984 | #else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4985 | $ac_func(); | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4986 | #endif | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4987 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4988 | ; return 0; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4989 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 4990 | if { (eval echo configure:4991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4991 |   rm -rf conftest* | 
 | 4992 |   eval "ac_cv_func_$ac_func=yes" | 
 | 4993 | else | 
 | 4994 |   echo "configure: failed program was:" >&5 | 
 | 4995 |   cat conftest.$ac_ext >&5 | 
 | 4996 |   rm -rf conftest* | 
 | 4997 |   eval "ac_cv_func_$ac_func=no" | 
 | 4998 | fi | 
 | 4999 | rm -f conftest* | 
 | 5000 | fi | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 5001 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5002 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
 | 5003 |   echo "$ac_t""yes" 1>&6 | 
 | 5004 |     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
 | 5005 |   cat >> confdefs.h <<EOF | 
 | 5006 | #define $ac_tr_func 1 | 
 | 5007 | EOF | 
 | 5008 |   | 
 | 5009 | else | 
 | 5010 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 5011 | fi | 
 | 5012 | done | 
 | 5013 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5014 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 5015 | # check for openpty and forkpty | 
 | 5016 |  | 
 | 5017 | for ac_func in openpty | 
 | 5018 | do | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5019 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5020 | echo "configure:5021: checking for $ac_func" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5021 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
 | 5022 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 5023 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5024 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5025 | #line 5026 "configure" | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 5026 | #include "confdefs.h" | 
 | 5027 | /* System header to define __stub macros and hopefully few prototypes, | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5028 |     which can conflict with char $ac_func(); below.  */ | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 5029 | #include <assert.h> | 
 | 5030 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 5031 | /* We use char because int might match the return type of a gcc2 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5032 |     builtin and then its argument prototype would still apply.  */ | 
 | 5033 | char $ac_func(); | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 5034 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5035 | int main() { | 
 | 5036 |  | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 5037 | /* The GNU C library defines this for functions which it implements | 
 | 5038 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 5039 |     something starting with __ and the normal name is an alias.  */ | 
 | 5040 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 5041 | choke me | 
 | 5042 | #else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5043 | $ac_func(); | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 5044 | #endif | 
 | 5045 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5046 | ; return 0; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5047 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5048 | if { (eval echo configure:5049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5049 |   rm -rf conftest* | 
 | 5050 |   eval "ac_cv_func_$ac_func=yes" | 
 | 5051 | else | 
 | 5052 |   echo "configure: failed program was:" >&5 | 
 | 5053 |   cat conftest.$ac_ext >&5 | 
 | 5054 |   rm -rf conftest* | 
 | 5055 |   eval "ac_cv_func_$ac_func=no" | 
 | 5056 | fi | 
 | 5057 | rm -f conftest* | 
 | 5058 | fi | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 5059 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5060 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
 | 5061 |   echo "$ac_t""yes" 1>&6 | 
 | 5062 |     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
 | 5063 |   cat >> confdefs.h <<EOF | 
 | 5064 | #define $ac_tr_func 1 | 
 | 5065 | EOF | 
 | 5066 |   | 
| Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 5067 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5068 |   echo "$ac_t""no" 1>&6 | 
 | 5069 | echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5070 | echo "configure:5071: checking for openpty in -lutil" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5071 | ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'` | 
 | 5072 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
 | 5073 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 5074 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5075 |   ac_save_LIBS="$LIBS" | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 5076 | LIBS="-lutil  $LIBS" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5077 | cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5078 | #line 5079 "configure" | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 5079 | #include "confdefs.h" | 
 | 5080 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 5081 | /* We use char because int might match the return type of a gcc2 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5082 |     builtin and then its argument prototype would still apply.  */ | 
 | 5083 | char openpty(); | 
 | 5084 |  | 
 | 5085 | int main() { | 
 | 5086 | openpty() | 
 | 5087 | ; return 0; } | 
 | 5088 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5089 | if { (eval echo configure:5090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5090 |   rm -rf conftest* | 
 | 5091 |   eval "ac_cv_lib_$ac_lib_var=yes" | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 5092 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5093 |   echo "configure: failed program was:" >&5 | 
 | 5094 |   cat conftest.$ac_ext >&5 | 
 | 5095 |   rm -rf conftest* | 
 | 5096 |   eval "ac_cv_lib_$ac_lib_var=no" | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 5097 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5098 | rm -f conftest* | 
 | 5099 | LIBS="$ac_save_LIBS" | 
 | 5100 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 5101 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5102 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
 | 5103 |   echo "$ac_t""yes" 1>&6 | 
 | 5104 |   cat >> confdefs.h <<\EOF | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 5105 | #define HAVE_OPENPTY 1 | 
 | 5106 | EOF | 
 | 5107 |  LIBS="$LIBS -lutil" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5108 | else | 
 | 5109 |   echo "$ac_t""no" 1>&6 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 5110 | fi | 
 | 5111 |  | 
 | 5112 | fi | 
 | 5113 | done | 
 | 5114 |  | 
 | 5115 | for ac_func in forkpty | 
 | 5116 | do | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5117 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5118 | echo "configure:5119: checking for $ac_func" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5119 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
 | 5120 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 5121 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5122 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5123 | #line 5124 "configure" | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 5124 | #include "confdefs.h" | 
 | 5125 | /* System header to define __stub macros and hopefully few prototypes, | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5126 |     which can conflict with char $ac_func(); below.  */ | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 5127 | #include <assert.h> | 
 | 5128 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 5129 | /* We use char because int might match the return type of a gcc2 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5130 |     builtin and then its argument prototype would still apply.  */ | 
 | 5131 | char $ac_func(); | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 5132 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5133 | int main() { | 
 | 5134 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 5135 | /* The GNU C library defines this for functions which it implements | 
 | 5136 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 5137 |     something starting with __ and the normal name is an alias.  */ | 
 | 5138 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 5139 | choke me | 
 | 5140 | #else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5141 | $ac_func(); | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 5142 | #endif | 
 | 5143 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5144 | ; return 0; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5145 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5146 | if { (eval echo configure:5147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5147 |   rm -rf conftest* | 
 | 5148 |   eval "ac_cv_func_$ac_func=yes" | 
 | 5149 | else | 
 | 5150 |   echo "configure: failed program was:" >&5 | 
 | 5151 |   cat conftest.$ac_ext >&5 | 
 | 5152 |   rm -rf conftest* | 
 | 5153 |   eval "ac_cv_func_$ac_func=no" | 
 | 5154 | fi | 
 | 5155 | rm -f conftest* | 
 | 5156 | fi | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 5157 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5158 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
 | 5159 |   echo "$ac_t""yes" 1>&6 | 
 | 5160 |     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
 | 5161 |   cat >> confdefs.h <<EOF | 
 | 5162 | #define $ac_tr_func 1 | 
 | 5163 | EOF | 
 | 5164 |   | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 5165 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5166 |   echo "$ac_t""no" 1>&6 | 
 | 5167 | echo $ac_n "checking for forkpty in -lutil""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5168 | echo "configure:5169: checking for forkpty in -lutil" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5169 | ac_lib_var=`echo util'_'forkpty | sed 'y%./+-%__p_%'` | 
 | 5170 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
 | 5171 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 5172 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5173 |   ac_save_LIBS="$LIBS" | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 5174 | LIBS="-lutil  $LIBS" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5175 | cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5176 | #line 5177 "configure" | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 5177 | #include "confdefs.h" | 
 | 5178 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 5179 | /* We use char because int might match the return type of a gcc2 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5180 |     builtin and then its argument prototype would still apply.  */ | 
 | 5181 | char forkpty(); | 
 | 5182 |  | 
 | 5183 | int main() { | 
 | 5184 | forkpty() | 
 | 5185 | ; return 0; } | 
 | 5186 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5187 | if { (eval echo configure:5188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5188 |   rm -rf conftest* | 
 | 5189 |   eval "ac_cv_lib_$ac_lib_var=yes" | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 5190 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5191 |   echo "configure: failed program was:" >&5 | 
 | 5192 |   cat conftest.$ac_ext >&5 | 
 | 5193 |   rm -rf conftest* | 
 | 5194 |   eval "ac_cv_lib_$ac_lib_var=no" | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 5195 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5196 | rm -f conftest* | 
 | 5197 | LIBS="$ac_save_LIBS" | 
 | 5198 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 5199 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5200 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
 | 5201 |   echo "$ac_t""yes" 1>&6 | 
 | 5202 |   cat >> confdefs.h <<\EOF | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 5203 | #define HAVE_FORKPTY 1 | 
 | 5204 | EOF | 
 | 5205 |  LIBS="$LIBS -lutil" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5206 | else | 
 | 5207 |   echo "$ac_t""no" 1>&6 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 5208 | fi | 
 | 5209 |  | 
 | 5210 | fi | 
 | 5211 | done | 
 | 5212 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5213 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5214 | # check for long file support functions | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 5215 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs | 
 | 5216 | do | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5217 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5218 | echo "configure:5219: checking for $ac_func" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5219 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
 | 5220 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 5221 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5222 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5223 | #line 5224 "configure" | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 5224 | #include "confdefs.h" | 
 | 5225 | /* System header to define __stub macros and hopefully few prototypes, | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5226 |     which can conflict with char $ac_func(); below.  */ | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 5227 | #include <assert.h> | 
 | 5228 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 5229 | /* We use char because int might match the return type of a gcc2 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5230 |     builtin and then its argument prototype would still apply.  */ | 
 | 5231 | char $ac_func(); | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 5232 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5233 | int main() { | 
 | 5234 |  | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 5235 | /* The GNU C library defines this for functions which it implements | 
 | 5236 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 5237 |     something starting with __ and the normal name is an alias.  */ | 
 | 5238 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 5239 | choke me | 
 | 5240 | #else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5241 | $ac_func(); | 
| Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 5242 | #endif | 
 | 5243 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5244 | ; return 0; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5245 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5246 | if { (eval echo configure:5247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5247 |   rm -rf conftest* | 
 | 5248 |   eval "ac_cv_func_$ac_func=yes" | 
 | 5249 | else | 
 | 5250 |   echo "configure: failed program was:" >&5 | 
 | 5251 |   cat conftest.$ac_ext >&5 | 
 | 5252 |   rm -rf conftest* | 
 | 5253 |   eval "ac_cv_func_$ac_func=no" | 
 | 5254 | fi | 
 | 5255 | rm -f conftest* | 
 | 5256 | fi | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 5257 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5258 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
 | 5259 |   echo "$ac_t""yes" 1>&6 | 
 | 5260 |     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
 | 5261 |   cat >> confdefs.h <<EOF | 
 | 5262 | #define $ac_tr_func 1 | 
 | 5263 | EOF | 
 | 5264 |   | 
 | 5265 | else | 
 | 5266 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 5267 | fi | 
 | 5268 | done | 
 | 5269 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5270 |  | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 5271 | for ac_func in dup2 getcwd strdup strerror memmove | 
 | 5272 | do | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5273 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5274 | echo "configure:5275: checking for $ac_func" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5275 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
 | 5276 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 5277 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5278 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5279 | #line 5280 "configure" | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 5280 | #include "confdefs.h" | 
 | 5281 | /* System header to define __stub macros and hopefully few prototypes, | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5282 |     which can conflict with char $ac_func(); below.  */ | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 5283 | #include <assert.h> | 
 | 5284 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 5285 | /* We use char because int might match the return type of a gcc2 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5286 |     builtin and then its argument prototype would still apply.  */ | 
 | 5287 | char $ac_func(); | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 5288 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5289 | int main() { | 
 | 5290 |  | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 5291 | /* The GNU C library defines this for functions which it implements | 
 | 5292 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 5293 |     something starting with __ and the normal name is an alias.  */ | 
 | 5294 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 5295 | choke me | 
 | 5296 | #else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5297 | $ac_func(); | 
| Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 5298 | #endif | 
 | 5299 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5300 | ; return 0; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5301 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5302 | if { (eval echo configure:5303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5303 |   rm -rf conftest* | 
 | 5304 |   eval "ac_cv_func_$ac_func=yes" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5305 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5306 |   echo "configure: failed program was:" >&5 | 
 | 5307 |   cat conftest.$ac_ext >&5 | 
 | 5308 |   rm -rf conftest* | 
 | 5309 |   eval "ac_cv_func_$ac_func=no" | 
 | 5310 | fi | 
 | 5311 | rm -f conftest* | 
 | 5312 | fi | 
 | 5313 |  | 
 | 5314 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
 | 5315 |   echo "$ac_t""yes" 1>&6 | 
 | 5316 |     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
 | 5317 |   cat >> confdefs.h <<EOF | 
 | 5318 | #define $ac_tr_func 1 | 
 | 5319 | EOF | 
 | 5320 |   | 
 | 5321 | else | 
 | 5322 |   echo "$ac_t""no" 1>&6 | 
 | 5323 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5324 | fi | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5325 | done | 
 | 5326 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5327 |  | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5328 | for ac_func in getpgrp | 
 | 5329 | do | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5330 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5331 | echo "configure:5332: checking for $ac_func" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5332 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
 | 5333 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5334 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5335 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5336 | #line 5337 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5337 | #include "confdefs.h" | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5338 | /* System header to define __stub macros and hopefully few prototypes, | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5339 |     which can conflict with char $ac_func(); below.  */ | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5340 | #include <assert.h> | 
 | 5341 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5342 | /* We use char because int might match the return type of a gcc2 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5343 |     builtin and then its argument prototype would still apply.  */ | 
 | 5344 | char $ac_func(); | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5345 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5346 | int main() { | 
 | 5347 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5348 | /* The GNU C library defines this for functions which it implements | 
 | 5349 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 5350 |     something starting with __ and the normal name is an alias.  */ | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5351 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5352 | choke me | 
 | 5353 | #else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5354 | $ac_func(); | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5355 | #endif | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5356 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5357 | ; return 0; } | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5358 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5359 | if { (eval echo configure:5360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5360 |   rm -rf conftest* | 
 | 5361 |   eval "ac_cv_func_$ac_func=yes" | 
 | 5362 | else | 
 | 5363 |   echo "configure: failed program was:" >&5 | 
 | 5364 |   cat conftest.$ac_ext >&5 | 
 | 5365 |   rm -rf conftest* | 
 | 5366 |   eval "ac_cv_func_$ac_func=no" | 
 | 5367 | fi | 
 | 5368 | rm -f conftest* | 
 | 5369 | fi | 
 | 5370 |  | 
 | 5371 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
 | 5372 |   echo "$ac_t""yes" 1>&6 | 
 | 5373 |     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
 | 5374 |   cat >> confdefs.h <<EOF | 
 | 5375 | #define $ac_tr_func 1 | 
 | 5376 | EOF | 
 | 5377 |  cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5378 | #line 5379 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5379 | #include "confdefs.h" | 
 | 5380 | #include <unistd.h> | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5381 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5382 | getpgrp(0); | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5383 | ; return 0; } | 
 | 5384 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5385 | if { (eval echo configure:5386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5386 |   rm -rf conftest* | 
 | 5387 |   cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5388 | #define GETPGRP_HAVE_ARG 1 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5389 | EOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5390 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5391 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5392 |   echo "configure: failed program was:" >&5 | 
 | 5393 |   cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5394 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5395 | rm -f conftest* | 
 | 5396 | else | 
 | 5397 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5398 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5399 | done | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5400 |  | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5401 | for ac_func in setpgrp | 
 | 5402 | do | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5403 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5404 | echo "configure:5405: checking for $ac_func" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5405 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
 | 5406 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5407 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5408 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5409 | #line 5410 "configure" | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5410 | #include "confdefs.h" | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5411 | /* System header to define __stub macros and hopefully few prototypes, | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5412 |     which can conflict with char $ac_func(); below.  */ | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5413 | #include <assert.h> | 
 | 5414 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5415 | /* We use char because int might match the return type of a gcc2 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5416 |     builtin and then its argument prototype would still apply.  */ | 
 | 5417 | char $ac_func(); | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5418 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5419 | int main() { | 
 | 5420 |  | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5421 | /* The GNU C library defines this for functions which it implements | 
 | 5422 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 5423 |     something starting with __ and the normal name is an alias.  */ | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5424 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5425 | choke me | 
 | 5426 | #else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5427 | $ac_func(); | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5428 | #endif | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5429 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5430 | ; return 0; } | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5431 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5432 | if { (eval echo configure:5433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5433 |   rm -rf conftest* | 
 | 5434 |   eval "ac_cv_func_$ac_func=yes" | 
 | 5435 | else | 
 | 5436 |   echo "configure: failed program was:" >&5 | 
 | 5437 |   cat conftest.$ac_ext >&5 | 
 | 5438 |   rm -rf conftest* | 
 | 5439 |   eval "ac_cv_func_$ac_func=no" | 
 | 5440 | fi | 
 | 5441 | rm -f conftest* | 
 | 5442 | fi | 
 | 5443 |  | 
 | 5444 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
 | 5445 |   echo "$ac_t""yes" 1>&6 | 
 | 5446 |     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
 | 5447 |   cat >> confdefs.h <<EOF | 
 | 5448 | #define $ac_tr_func 1 | 
 | 5449 | EOF | 
 | 5450 |  cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5451 | #line 5452 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5452 | #include "confdefs.h" | 
 | 5453 | #include <unistd.h> | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5454 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5455 | setpgrp(0,0); | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5456 | ; return 0; } | 
 | 5457 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5458 | if { (eval echo configure:5459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5459 |   rm -rf conftest* | 
 | 5460 |   cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5461 | #define SETPGRP_HAVE_ARG 1 | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5462 | EOF | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5463 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 5464 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5465 |   echo "configure: failed program was:" >&5 | 
 | 5466 |   cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5467 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5468 | rm -f conftest* | 
 | 5469 | else | 
 | 5470 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5471 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5472 | done | 
| Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 5473 |  | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5474 | for ac_func in gettimeofday | 
 | 5475 | do | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5476 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5477 | echo "configure:5478: checking for $ac_func" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5478 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
 | 5479 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5480 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5481 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5482 | #line 5483 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5483 | #include "confdefs.h" | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5484 | /* System header to define __stub macros and hopefully few prototypes, | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5485 |     which can conflict with char $ac_func(); below.  */ | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5486 | #include <assert.h> | 
 | 5487 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5488 | /* We use char because int might match the return type of a gcc2 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5489 |     builtin and then its argument prototype would still apply.  */ | 
 | 5490 | char $ac_func(); | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5491 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5492 | int main() { | 
 | 5493 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5494 | /* The GNU C library defines this for functions which it implements | 
 | 5495 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 5496 |     something starting with __ and the normal name is an alias.  */ | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5497 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5498 | choke me | 
 | 5499 | #else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5500 | $ac_func(); | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5501 | #endif | 
 | 5502 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5503 | ; return 0; } | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5504 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5505 | if { (eval echo configure:5506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5506 |   rm -rf conftest* | 
 | 5507 |   eval "ac_cv_func_$ac_func=yes" | 
 | 5508 | else | 
 | 5509 |   echo "configure: failed program was:" >&5 | 
 | 5510 |   cat conftest.$ac_ext >&5 | 
 | 5511 |   rm -rf conftest* | 
 | 5512 |   eval "ac_cv_func_$ac_func=no" | 
 | 5513 | fi | 
 | 5514 | rm -f conftest* | 
 | 5515 | fi | 
 | 5516 |  | 
 | 5517 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
 | 5518 |   echo "$ac_t""yes" 1>&6 | 
 | 5519 |     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
 | 5520 |   cat >> confdefs.h <<EOF | 
 | 5521 | #define $ac_tr_func 1 | 
 | 5522 | EOF | 
 | 5523 |  cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5524 | #line 5525 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5525 | #include "confdefs.h" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5526 | #include <sys/time.h> | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5527 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5528 | gettimeofday((struct timeval*)0,(struct timezone*)0); | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5529 | ; return 0; } | 
 | 5530 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5531 | if { (eval echo configure:5532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5532 |   : | 
 | 5533 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5534 |   echo "configure: failed program was:" >&5 | 
 | 5535 |   cat conftest.$ac_ext >&5 | 
 | 5536 |   rm -rf conftest* | 
 | 5537 |   cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5538 | #define GETTIMEOFDAY_NO_TZ 1 | 
 | 5539 | EOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5540 |  | 
 | 5541 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5542 | rm -f conftest* | 
 | 5543 | else | 
 | 5544 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5545 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 5546 | done | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5547 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5548 |  | 
 | 5549 |  | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 5550 | # On OSF/1 V5.1, getaddrinfo is available, but a define | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5551 | # for [no]getaddrinfo in netdb.h.  | 
 | 5552 | echo $ac_n "checking for getaddrinfo""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5553 | echo "configure:5554: checking for getaddrinfo" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5554 | cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5555 | #line 5556 "configure" | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5556 | #include "confdefs.h" | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 5557 |  | 
| Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 5558 | #include <sys/types.h> | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 5559 | #include <sys/socket.h> | 
 | 5560 | #include <netdb.h> | 
| Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 5561 | #include <stdio.h> | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5562 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5563 | int main() { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5564 |  | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 5565 | getaddrinfo(NULL, NULL, NULL, NULL); | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5566 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5567 | ; return 0; } | 
 | 5568 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5569 | if { (eval echo configure:5570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5570 |   rm -rf conftest* | 
 | 5571 |    | 
 | 5572 | echo "$ac_t""yes" 1>&6 | 
 | 5573 | echo $ac_n "checking getaddrinfo bug""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5574 | echo "configure:5575: checking getaddrinfo bug" >&5 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5575 | if test "$cross_compiling" = yes; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5576 |   echo "$ac_t""buggy" 1>&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5577 | buggygetaddrinfo=yes | 
 | 5578 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5579 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5580 | #line 5581 "configure" | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5581 | #include "confdefs.h" | 
 | 5582 |  | 
 | 5583 | #include <sys/types.h> | 
 | 5584 | #include <netdb.h> | 
 | 5585 | #include <string.h> | 
 | 5586 | #include <sys/socket.h> | 
 | 5587 | #include <netinet/in.h> | 
 | 5588 |  | 
 | 5589 | main() | 
 | 5590 | { | 
 | 5591 |   int passive, gaierr, inet4 = 0, inet6 = 0; | 
 | 5592 |   struct addrinfo hints, *ai, *aitop; | 
 | 5593 |   char straddr[INET6_ADDRSTRLEN], strport[16]; | 
 | 5594 |  | 
 | 5595 |   for (passive = 0; passive <= 1; passive++) { | 
 | 5596 |     memset(&hints, 0, sizeof(hints)); | 
 | 5597 |     hints.ai_family = AF_UNSPEC; | 
 | 5598 |     hints.ai_flags = passive ? AI_PASSIVE : 0; | 
 | 5599 |     hints.ai_socktype = SOCK_STREAM; | 
 | 5600 |     if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { | 
 | 5601 |       (void)gai_strerror(gaierr); | 
 | 5602 |       goto bad; | 
 | 5603 |     } | 
 | 5604 |     for (ai = aitop; ai; ai = ai->ai_next) { | 
 | 5605 |       if (ai->ai_addr == NULL || | 
 | 5606 |           ai->ai_addrlen == 0 || | 
 | 5607 |           getnameinfo(ai->ai_addr, ai->ai_addrlen, | 
 | 5608 |                       straddr, sizeof(straddr), strport, sizeof(strport), | 
 | 5609 |                       NI_NUMERICHOST|NI_NUMERICSERV) != 0) { | 
 | 5610 |         goto bad; | 
 | 5611 |       } | 
 | 5612 |       switch (ai->ai_family) { | 
 | 5613 |       case AF_INET: | 
 | 5614 |         if (strcmp(strport, "54321") != 0) { | 
 | 5615 |           goto bad; | 
 | 5616 |         } | 
 | 5617 |         if (passive) { | 
 | 5618 |           if (strcmp(straddr, "0.0.0.0") != 0) { | 
 | 5619 |             goto bad; | 
 | 5620 |           } | 
 | 5621 |         } else { | 
 | 5622 |           if (strcmp(straddr, "127.0.0.1") != 0) { | 
 | 5623 |             goto bad; | 
 | 5624 |           } | 
 | 5625 |         } | 
 | 5626 |         inet4++; | 
 | 5627 |         break; | 
 | 5628 |       case AF_INET6: | 
 | 5629 |         if (strcmp(strport, "54321") != 0) { | 
 | 5630 |           goto bad; | 
 | 5631 |         } | 
 | 5632 |         if (passive) { | 
 | 5633 |           if (strcmp(straddr, "::") != 0) { | 
 | 5634 |             goto bad; | 
 | 5635 |           } | 
 | 5636 |         } else { | 
 | 5637 |           if (strcmp(straddr, "::1") != 0) { | 
 | 5638 |             goto bad; | 
 | 5639 |           } | 
 | 5640 |         } | 
 | 5641 |         inet6++; | 
 | 5642 |         break; | 
 | 5643 |       case AF_UNSPEC: | 
 | 5644 |         goto bad; | 
 | 5645 |         break; | 
 | 5646 |       default: | 
 | 5647 |         /* another family support? */ | 
 | 5648 |         break; | 
 | 5649 |       } | 
 | 5650 |     } | 
 | 5651 |   } | 
 | 5652 |  | 
 | 5653 |   if (!(inet4 == 0 || inet4 == 2)) | 
 | 5654 |     goto bad; | 
 | 5655 |   if (!(inet6 == 0 || inet6 == 2)) | 
 | 5656 |     goto bad; | 
 | 5657 |  | 
 | 5658 |   if (aitop) | 
 | 5659 |     freeaddrinfo(aitop); | 
 | 5660 |   exit(0); | 
 | 5661 |  | 
 | 5662 |  bad: | 
 | 5663 |   if (aitop) | 
 | 5664 |     freeaddrinfo(aitop); | 
 | 5665 |   exit(1); | 
 | 5666 | } | 
 | 5667 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5668 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5669 | if { (eval echo configure:5670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5670 | then | 
 | 5671 |   echo "$ac_t""good" 1>&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5672 | buggygetaddrinfo=no | 
 | 5673 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5674 |   echo "configure: failed program was:" >&5 | 
 | 5675 |   cat conftest.$ac_ext >&5 | 
 | 5676 |   rm -fr conftest* | 
 | 5677 |   echo "$ac_t""buggy" 1>&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5678 | buggygetaddrinfo=yes | 
 | 5679 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5680 | rm -fr conftest* | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5681 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5682 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5683 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5684 |   echo "configure: failed program was:" >&5 | 
 | 5685 |   cat conftest.$ac_ext >&5 | 
 | 5686 |   rm -rf conftest* | 
 | 5687 |    | 
 | 5688 | echo "$ac_t""no" 1>&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5689 | buggygetaddrinfo=yes | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5690 |  | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 5691 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5692 | rm -f conftest* | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5693 |  | 
 | 5694 | if test "$buggygetaddrinfo" = "yes"; then | 
 | 5695 | 	if test "$ipv6" = "yes"; then | 
 | 5696 | 		echo 'Fatal: You must get working getaddrinfo() function.' | 
 | 5697 | 		echo '       or you can specify "--disable-ipv6"'. | 
 | 5698 | 		exit 1 | 
 | 5699 | 	fi | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 5700 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5701 | 	cat >> confdefs.h <<\EOF | 
| Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 5702 | #define HAVE_GETADDRINFO 1 | 
 | 5703 | EOF | 
 | 5704 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5705 | fi | 
| Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 5706 | for ac_func in getnameinfo | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5707 | do | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5708 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5709 | echo "configure:5710: checking for $ac_func" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5710 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
 | 5711 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5712 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5713 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5714 | #line 5715 "configure" | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5715 | #include "confdefs.h" | 
 | 5716 | /* System header to define __stub macros and hopefully few prototypes, | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5717 |     which can conflict with char $ac_func(); below.  */ | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5718 | #include <assert.h> | 
 | 5719 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 5720 | /* We use char because int might match the return type of a gcc2 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5721 |     builtin and then its argument prototype would still apply.  */ | 
 | 5722 | char $ac_func(); | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5723 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5724 | int main() { | 
 | 5725 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5726 | /* The GNU C library defines this for functions which it implements | 
 | 5727 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 5728 |     something starting with __ and the normal name is an alias.  */ | 
 | 5729 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 5730 | choke me | 
 | 5731 | #else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5732 | $ac_func(); | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5733 | #endif | 
 | 5734 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5735 | ; return 0; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5736 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5737 | if { (eval echo configure:5738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5738 |   rm -rf conftest* | 
 | 5739 |   eval "ac_cv_func_$ac_func=yes" | 
 | 5740 | else | 
 | 5741 |   echo "configure: failed program was:" >&5 | 
 | 5742 |   cat conftest.$ac_ext >&5 | 
 | 5743 |   rm -rf conftest* | 
 | 5744 |   eval "ac_cv_func_$ac_func=no" | 
 | 5745 | fi | 
 | 5746 | rm -f conftest* | 
 | 5747 | fi | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5748 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5749 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
 | 5750 |   echo "$ac_t""yes" 1>&6 | 
 | 5751 |     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
 | 5752 |   cat >> confdefs.h <<EOF | 
 | 5753 | #define $ac_tr_func 1 | 
 | 5754 | EOF | 
 | 5755 |   | 
 | 5756 | else | 
 | 5757 |   echo "$ac_t""no" 1>&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 5758 | fi | 
 | 5759 | done | 
 | 5760 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5761 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5762 | # checks for structures | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5763 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5764 | echo "configure:5765: checking whether time.h and sys/time.h may both be included" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5765 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then | 
 | 5766 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5767 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5768 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5769 | #line 5770 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5770 | #include "confdefs.h" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5771 | #include <sys/types.h> | 
 | 5772 | #include <sys/time.h> | 
 | 5773 | #include <time.h> | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5774 | int main() { | 
 | 5775 | struct tm *tp; | 
 | 5776 | ; return 0; } | 
 | 5777 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5778 | if { (eval echo configure:5779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5779 |   rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5780 |   ac_cv_header_time=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5781 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5782 |   echo "configure: failed program was:" >&5 | 
 | 5783 |   cat conftest.$ac_ext >&5 | 
 | 5784 |   rm -rf conftest* | 
 | 5785 |   ac_cv_header_time=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5786 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5787 | rm -f conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5788 | fi | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5789 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5790 | echo "$ac_t""$ac_cv_header_time" 1>&6 | 
 | 5791 | if test $ac_cv_header_time = yes; then | 
 | 5792 |   cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5793 | #define TIME_WITH_SYS_TIME 1 | 
 | 5794 | EOF | 
 | 5795 |  | 
 | 5796 | fi | 
 | 5797 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5798 | echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5799 | echo "configure:5800: checking whether struct tm is in sys/time.h or time.h" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5800 | if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then | 
 | 5801 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5802 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5803 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5804 | #line 5805 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5805 | #include "confdefs.h" | 
 | 5806 | #include <sys/types.h> | 
 | 5807 | #include <time.h> | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5808 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5809 | struct tm *tp; tp->tm_sec; | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5810 | ; return 0; } | 
 | 5811 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5812 | if { (eval echo configure:5813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5813 |   rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5814 |   ac_cv_struct_tm=time.h | 
 | 5815 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5816 |   echo "configure: failed program was:" >&5 | 
 | 5817 |   cat conftest.$ac_ext >&5 | 
 | 5818 |   rm -rf conftest* | 
 | 5819 |   ac_cv_struct_tm=sys/time.h | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5820 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5821 | rm -f conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5822 | fi | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5823 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5824 | echo "$ac_t""$ac_cv_struct_tm" 1>&6 | 
 | 5825 | if test $ac_cv_struct_tm = sys/time.h; then | 
 | 5826 |   cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5827 | #define TM_IN_SYS_TIME 1 | 
 | 5828 | EOF | 
 | 5829 |  | 
 | 5830 | fi | 
 | 5831 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5832 | echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5833 | echo "configure:5834: checking for tm_zone in struct tm" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5834 | if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then | 
 | 5835 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5836 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5837 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5838 | #line 5839 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5839 | #include "confdefs.h" | 
 | 5840 | #include <sys/types.h> | 
 | 5841 | #include <$ac_cv_struct_tm> | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5842 | int main() { | 
 | 5843 | struct tm tm; tm.tm_zone; | 
 | 5844 | ; return 0; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5845 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5846 | if { (eval echo configure:5847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5847 |   rm -rf conftest* | 
 | 5848 |   ac_cv_struct_tm_zone=yes | 
 | 5849 | else | 
 | 5850 |   echo "configure: failed program was:" >&5 | 
 | 5851 |   cat conftest.$ac_ext >&5 | 
 | 5852 |   rm -rf conftest* | 
 | 5853 |   ac_cv_struct_tm_zone=no | 
 | 5854 | fi | 
 | 5855 | rm -f conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5856 | fi | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5857 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5858 | echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6 | 
 | 5859 | if test "$ac_cv_struct_tm_zone" = yes; then | 
 | 5860 |   cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5861 | #define HAVE_TM_ZONE 1 | 
 | 5862 | EOF | 
 | 5863 |  | 
 | 5864 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5865 |   echo $ac_n "checking for tzname""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5866 | echo "configure:5867: checking for tzname" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5867 | if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then | 
 | 5868 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5869 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5870 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5871 | #line 5872 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5872 | #include "confdefs.h" | 
 | 5873 | #include <time.h> | 
 | 5874 | #ifndef tzname /* For SGI.  */ | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5875 | extern char *tzname[]; /* RS6000 and others reject char **tzname.  */ | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5876 | #endif | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5877 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5878 | atoi(*tzname); | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5879 | ; return 0; } | 
 | 5880 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5881 | if { (eval echo configure:5882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5882 |   rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5883 |   ac_cv_var_tzname=yes | 
 | 5884 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5885 |   echo "configure: failed program was:" >&5 | 
 | 5886 |   cat conftest.$ac_ext >&5 | 
 | 5887 |   rm -rf conftest* | 
 | 5888 |   ac_cv_var_tzname=no | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5889 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5890 | rm -f conftest* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5891 | fi | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5892 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5893 | echo "$ac_t""$ac_cv_var_tzname" 1>&6 | 
 | 5894 |   if test $ac_cv_var_tzname = yes; then | 
 | 5895 |     cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5896 | #define HAVE_TZNAME 1 | 
 | 5897 | EOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5898 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5899 |   fi | 
 | 5900 | fi | 
 | 5901 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5902 | echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5903 | echo "configure:5904: checking for st_rdev in struct stat" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5904 | if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then | 
 | 5905 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 5906 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5907 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5908 | #line 5909 "configure" | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 5909 | #include "confdefs.h" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5910 | #include <sys/types.h> | 
 | 5911 | #include <sys/stat.h> | 
 | 5912 | int main() { | 
 | 5913 | struct stat s; s.st_rdev; | 
 | 5914 | ; return 0; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5915 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5916 | if { (eval echo configure:5917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5917 |   rm -rf conftest* | 
 | 5918 |   ac_cv_struct_st_rdev=yes | 
 | 5919 | else | 
 | 5920 |   echo "configure: failed program was:" >&5 | 
 | 5921 |   cat conftest.$ac_ext >&5 | 
 | 5922 |   rm -rf conftest* | 
 | 5923 |   ac_cv_struct_st_rdev=no | 
 | 5924 | fi | 
 | 5925 | rm -f conftest* | 
 | 5926 | fi | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5927 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5928 | echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6 | 
 | 5929 | if test $ac_cv_struct_st_rdev = yes; then | 
 | 5930 |   cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 5931 | #define HAVE_ST_RDEV 1 | 
 | 5932 | EOF | 
 | 5933 |  | 
 | 5934 | fi | 
 | 5935 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5936 | echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5937 | echo "configure:5938: checking for st_blksize in struct stat" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5938 | if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then | 
 | 5939 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 5940 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5941 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5942 | #line 5943 "configure" | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 5943 | #include "confdefs.h" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5944 | #include <sys/types.h> | 
 | 5945 | #include <sys/stat.h> | 
 | 5946 | int main() { | 
 | 5947 | struct stat s; s.st_blksize; | 
 | 5948 | ; return 0; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5949 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5950 | if { (eval echo configure:5951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5951 |   rm -rf conftest* | 
 | 5952 |   ac_cv_struct_st_blksize=yes | 
 | 5953 | else | 
 | 5954 |   echo "configure: failed program was:" >&5 | 
 | 5955 |   cat conftest.$ac_ext >&5 | 
 | 5956 |   rm -rf conftest* | 
 | 5957 |   ac_cv_struct_st_blksize=no | 
 | 5958 | fi | 
 | 5959 | rm -f conftest* | 
 | 5960 | fi | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5961 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5962 | echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6 | 
 | 5963 | if test $ac_cv_struct_st_blksize = yes; then | 
 | 5964 |   cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 5965 | #define HAVE_ST_BLKSIZE 1 | 
 | 5966 | EOF | 
 | 5967 |  | 
 | 5968 | fi | 
 | 5969 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5970 | echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5971 | echo "configure:5972: checking for st_blocks in struct stat" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5972 | if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then | 
 | 5973 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 5974 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5975 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5976 | #line 5977 "configure" | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 5977 | #include "confdefs.h" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5978 | #include <sys/types.h> | 
 | 5979 | #include <sys/stat.h> | 
 | 5980 | int main() { | 
 | 5981 | struct stat s; s.st_blocks; | 
 | 5982 | ; return 0; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5983 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 5984 | if { (eval echo configure:5985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5985 |   rm -rf conftest* | 
 | 5986 |   ac_cv_struct_st_blocks=yes | 
 | 5987 | else | 
 | 5988 |   echo "configure: failed program was:" >&5 | 
 | 5989 |   cat conftest.$ac_ext >&5 | 
 | 5990 |   rm -rf conftest* | 
 | 5991 |   ac_cv_struct_st_blocks=no | 
 | 5992 | fi | 
 | 5993 | rm -f conftest* | 
 | 5994 | fi | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5995 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5996 | echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6 | 
 | 5997 | if test $ac_cv_struct_st_blocks = yes; then | 
 | 5998 |   cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 5999 | #define HAVE_ST_BLOCKS 1 | 
 | 6000 | EOF | 
 | 6001 |  | 
 | 6002 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6003 |   LIBOBJS="$LIBOBJS fileblocks.${ac_objext}" | 
| Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 6004 | fi | 
 | 6005 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6006 |  | 
 | 6007 | echo $ac_n "checking for time.h that defines altzone""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6008 | echo "configure:6009: checking for time.h that defines altzone" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6009 | if eval "test \"`echo '$''{'ac_cv_header_time_altzone'+set}'`\" = set"; then | 
 | 6010 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6011 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6012 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6013 | #line 6014 "configure" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6014 | #include "confdefs.h" | 
 | 6015 | #include <time.h> | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6016 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6017 | return altzone; | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6018 | ; return 0; } | 
 | 6019 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6020 | if { (eval echo configure:6021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6021 |   rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6022 |   ac_cv_header_time_altzone=yes | 
 | 6023 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6024 |   echo "configure: failed program was:" >&5 | 
 | 6025 |   cat conftest.$ac_ext >&5 | 
 | 6026 |   rm -rf conftest* | 
 | 6027 |   ac_cv_header_time_altzone=no | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6028 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6029 | rm -f conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6030 | fi | 
 | 6031 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6032 | echo "$ac_t""$ac_cv_header_time_altzone" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6033 | if test $ac_cv_header_time_altzone = yes; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6034 |   cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6035 | #define HAVE_ALTZONE 1 | 
 | 6036 | EOF | 
 | 6037 |  | 
 | 6038 | fi | 
 | 6039 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6040 | was_it_defined=no | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6041 | echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6042 | echo "configure:6043: checking whether sys/select.h and sys/time.h may both be included" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6043 | cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6044 | #line 6045 "configure" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6045 | #include "confdefs.h" | 
 | 6046 |  | 
 | 6047 | #include <sys/types.h> | 
 | 6048 | #include <sys/select.h> | 
 | 6049 | #include <sys/time.h> | 
 | 6050 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6051 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6052 | ; | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6053 | ; return 0; } | 
 | 6054 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6055 | if { (eval echo configure:6056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6056 |   rm -rf conftest* | 
 | 6057 |   cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6058 | #define SYS_SELECT_WITH_SYS_TIME 1 | 
 | 6059 | EOF | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6060 |  was_it_defined=yes | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6061 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6062 |   echo "configure: failed program was:" >&5 | 
 | 6063 |   cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6064 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6065 | rm -f conftest* | 
 | 6066 | echo "$ac_t""$was_it_defined" 1>&6 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6067 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6068 | echo $ac_n "checking for addrinfo""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6069 | echo "configure:6070: checking for addrinfo" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6070 | if eval "test \"`echo '$''{'ac_cv_struct_addrinfo'+set}'`\" = set"; then | 
 | 6071 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 6072 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6073 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6074 | #line 6075 "configure" | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 6075 | #include "confdefs.h" | 
 | 6076 |  | 
 | 6077 | #		include <netdb.h> | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6078 | int main() { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 6079 | struct addrinfo a | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6080 | ; return 0; } | 
 | 6081 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6082 | if { (eval echo configure:6083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6083 |   rm -rf conftest* | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 6084 |   ac_cv_struct_addrinfo=yes | 
 | 6085 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6086 |   echo "configure: failed program was:" >&5 | 
 | 6087 |   cat conftest.$ac_ext >&5 | 
 | 6088 |   rm -rf conftest* | 
 | 6089 |   ac_cv_struct_addrinfo=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 6090 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6091 | rm -f conftest* | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 6092 | fi | 
 | 6093 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6094 | echo "$ac_t""$ac_cv_struct_addrinfo" 1>&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 6095 | if test $ac_cv_struct_addrinfo = yes; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6096 | 	cat >> confdefs.h <<\EOF | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 6097 | #define HAVE_ADDRINFO 1 | 
 | 6098 | EOF | 
 | 6099 |  | 
 | 6100 | fi | 
 | 6101 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6102 | echo $ac_n "checking for sockaddr_storage""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6103 | echo "configure:6104: checking for sockaddr_storage" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6104 | if eval "test \"`echo '$''{'ac_cv_struct_sockaddr_storage'+set}'`\" = set"; then | 
 | 6105 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 6106 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6107 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6108 | #line 6109 "configure" | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 6109 | #include "confdefs.h" | 
 | 6110 |  | 
 | 6111 | #		include <sys/types.h> | 
 | 6112 | #		include <sys/socket.h> | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6113 | int main() { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 6114 | struct sockaddr_storage s | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6115 | ; return 0; } | 
 | 6116 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6117 | if { (eval echo configure:6118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6118 |   rm -rf conftest* | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 6119 |   ac_cv_struct_sockaddr_storage=yes | 
 | 6120 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6121 |   echo "configure: failed program was:" >&5 | 
 | 6122 |   cat conftest.$ac_ext >&5 | 
 | 6123 |   rm -rf conftest* | 
 | 6124 |   ac_cv_struct_sockaddr_storage=no | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 6125 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6126 | rm -f conftest* | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 6127 | fi | 
 | 6128 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6129 | echo "$ac_t""$ac_cv_struct_sockaddr_storage" 1>&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 6130 | if test $ac_cv_struct_sockaddr_storage = yes; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6131 | 	cat >> confdefs.h <<\EOF | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 6132 | #define HAVE_SOCKADDR_STORAGE 1 | 
 | 6133 | EOF | 
 | 6134 |  | 
 | 6135 | fi | 
 | 6136 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6137 | # checks for compiler characteristics | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6138 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6139 | echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6140 | echo "configure:6141: checking whether char is unsigned" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6141 | if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then | 
 | 6142 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6143 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6144 |   if test "$GCC" = yes; then | 
 | 6145 |   # GCC predefines this symbol on systems where it applies. | 
 | 6146 | cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6147 | #line 6148 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6148 | #include "confdefs.h" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6149 | #ifdef __CHAR_UNSIGNED__ | 
 | 6150 |   yes | 
 | 6151 | #endif | 
 | 6152 |  | 
 | 6153 | EOF | 
 | 6154 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 6155 |   egrep "yes" >/dev/null 2>&1; then | 
 | 6156 |   rm -rf conftest* | 
 | 6157 |   ac_cv_c_char_unsigned=yes | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6158 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6159 |   rm -rf conftest* | 
 | 6160 |   ac_cv_c_char_unsigned=no | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6161 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6162 | rm -f conftest* | 
 | 6163 |  | 
 | 6164 | else | 
 | 6165 | if test "$cross_compiling" = yes; then | 
 | 6166 |     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | 
 | 6167 | else | 
 | 6168 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6169 | #line 6170 "configure" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6170 | #include "confdefs.h" | 
 | 6171 | /* volatile prevents gcc2 from optimizing the test away on sparcs.  */ | 
 | 6172 | #if !defined(__STDC__) || __STDC__ != 1 | 
 | 6173 | #define volatile | 
 | 6174 | #endif | 
 | 6175 | main() { | 
 | 6176 |   volatile char c = 255; exit(c < 0); | 
 | 6177 | } | 
 | 6178 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6179 | if { (eval echo configure:6180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6180 | then | 
 | 6181 |   ac_cv_c_char_unsigned=yes | 
 | 6182 | else | 
 | 6183 |   echo "configure: failed program was:" >&5 | 
 | 6184 |   cat conftest.$ac_ext >&5 | 
 | 6185 |   rm -fr conftest* | 
 | 6186 |   ac_cv_c_char_unsigned=no | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6187 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6188 | rm -fr conftest* | 
 | 6189 | fi | 
 | 6190 |  | 
 | 6191 | fi | 
 | 6192 | fi | 
 | 6193 |  | 
 | 6194 | echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6195 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6196 |   cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6197 | #define __CHAR_UNSIGNED__ 1 | 
 | 6198 | EOF | 
 | 6199 |  | 
 | 6200 | fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6201 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6202 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6203 | echo "configure:6204: checking for working const" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6204 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then | 
 | 6205 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6206 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6207 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6208 | #line 6209 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6209 | #include "confdefs.h" | 
 | 6210 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6211 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6212 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6213 | /* Ultrix mips cc rejects this.  */ | 
 | 6214 | typedef int charset[2]; const charset x; | 
 | 6215 | /* SunOS 4.1.1 cc rejects this.  */ | 
 | 6216 | char const *const *ccp; | 
 | 6217 | char **p; | 
 | 6218 | /* NEC SVR4.0.2 mips cc rejects this.  */ | 
 | 6219 | struct point {int x, y;}; | 
 | 6220 | static struct point const zero = {0,0}; | 
 | 6221 | /* AIX XL C 1.02.0.0 rejects this. | 
 | 6222 |    It does not let you subtract one const X* pointer from another in an arm | 
 | 6223 |    of an if-expression whose if-part is not a constant expression */ | 
 | 6224 | const char *g = "string"; | 
 | 6225 | ccp = &g + (g ? g-g : 0); | 
 | 6226 | /* HPUX 7.0 cc rejects these. */ | 
 | 6227 | ++ccp; | 
 | 6228 | p = (char**) ccp; | 
 | 6229 | ccp = (char const *const *) p; | 
 | 6230 | { /* SCO 3.2v4 cc rejects this.  */ | 
 | 6231 |   char *t; | 
 | 6232 |   char const *s = 0 ? (char *) 0 : (char const *) 0; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6233 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6234 |   *t++ = 0; | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6235 | } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6236 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */ | 
 | 6237 |   int x[] = {25, 17}; | 
 | 6238 |   const int *foo = &x[0]; | 
 | 6239 |   ++foo; | 
 | 6240 | } | 
 | 6241 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | 
 | 6242 |   typedef const int *iptr; | 
 | 6243 |   iptr p = 0; | 
 | 6244 |   ++p; | 
 | 6245 | } | 
 | 6246 | { /* AIX XL C 1.02.0.0 rejects this saying | 
 | 6247 |      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | 
 | 6248 |   struct s { int j; const int *ap[3]; }; | 
 | 6249 |   struct s *b; b->j = 5; | 
 | 6250 | } | 
 | 6251 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | 
 | 6252 |   const int foo = 10; | 
 | 6253 | } | 
 | 6254 |  | 
 | 6255 | ; return 0; } | 
 | 6256 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6257 | if { (eval echo configure:6258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6258 |   rm -rf conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6259 |   ac_cv_c_const=yes | 
 | 6260 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6261 |   echo "configure: failed program was:" >&5 | 
 | 6262 |   cat conftest.$ac_ext >&5 | 
 | 6263 |   rm -rf conftest* | 
 | 6264 |   ac_cv_c_const=no | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6265 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6266 | rm -f conftest* | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6267 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6268 |  | 
 | 6269 | echo "$ac_t""$ac_cv_c_const" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6270 | if test $ac_cv_c_const = no; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6271 |   cat >> confdefs.h <<\EOF | 
 | 6272 | #define const  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6273 | EOF | 
 | 6274 |  | 
 | 6275 | fi | 
 | 6276 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6277 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6278 | works=no | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6279 | echo $ac_n "checking for working volatile""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6280 | echo "configure:6281: checking for working volatile" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6281 | cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6282 | #line 6283 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6283 | #include "confdefs.h" | 
 | 6284 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6285 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6286 | volatile int x; x = 0; | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6287 | ; return 0; } | 
 | 6288 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6289 | if { (eval echo configure:6290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6290 |   rm -rf conftest* | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6291 |   works=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6292 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6293 |   echo "configure: failed program was:" >&5 | 
 | 6294 |   cat conftest.$ac_ext >&5 | 
 | 6295 |   rm -rf conftest* | 
 | 6296 |   cat >> confdefs.h <<\EOF | 
 | 6297 | #define volatile  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6298 | EOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6299 |  | 
 | 6300 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6301 | rm -f conftest* | 
 | 6302 | echo "$ac_t""$works" 1>&6 | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6303 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6304 | works=no | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6305 | echo $ac_n "checking for working signed char""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6306 | echo "configure:6307: checking for working signed char" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6307 | cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6308 | #line 6309 "configure" | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 6309 | #include "confdefs.h" | 
 | 6310 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6311 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6312 | signed char c; | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6313 | ; return 0; } | 
 | 6314 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6315 | if { (eval echo configure:6316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6316 |   rm -rf conftest* | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6317 |   works=yes | 
| Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 6318 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6319 |   echo "configure: failed program was:" >&5 | 
 | 6320 |   cat conftest.$ac_ext >&5 | 
 | 6321 |   rm -rf conftest* | 
 | 6322 |   cat >> confdefs.h <<\EOF | 
 | 6323 | #define signed  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6324 | EOF | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6325 |  | 
 | 6326 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6327 | rm -f conftest* | 
 | 6328 | echo "$ac_t""$works" 1>&6 | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6329 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6330 | have_prototypes=no | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6331 | echo $ac_n "checking for prototypes""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6332 | echo "configure:6333: checking for prototypes" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6333 | cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6334 | #line 6335 "configure" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6335 | #include "confdefs.h" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6336 | int foo(int x) { return 0; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6337 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6338 | return foo(10); | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6339 | ; return 0; } | 
 | 6340 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6341 | if { (eval echo configure:6342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6342 |   rm -rf conftest* | 
 | 6343 |   cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6344 | #define HAVE_PROTOTYPES 1 | 
 | 6345 | EOF | 
 | 6346 |  have_prototypes=yes | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6347 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6348 |   echo "configure: failed program was:" >&5 | 
 | 6349 |   cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6350 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6351 | rm -f conftest* | 
 | 6352 | echo "$ac_t""$have_prototypes" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6353 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6354 | works=no | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6355 | echo $ac_n "checking for variable length prototypes and stdarg.h""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6356 | echo "configure:6357: checking for variable length prototypes and stdarg.h" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6357 | cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6358 | #line 6359 "configure" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6359 | #include "confdefs.h" | 
 | 6360 |  | 
 | 6361 | #include <stdarg.h> | 
| Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 6362 | int foo(int x, ...) { | 
 | 6363 | 	va_list va; | 
 | 6364 | 	va_start(va, x); | 
 | 6365 | 	va_arg(va, int); | 
 | 6366 | 	va_arg(va, char *); | 
 | 6367 | 	va_arg(va, double); | 
 | 6368 | 	return 0; | 
 | 6369 | } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6370 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6371 | int main() { | 
| Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 6372 | return foo(10, "", 3.14); | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6373 | ; return 0; } | 
 | 6374 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6375 | if { (eval echo configure:6376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6376 |   rm -rf conftest* | 
 | 6377 |   cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6378 | #define HAVE_STDARG_PROTOTYPES 1 | 
 | 6379 | EOF | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6380 |  works=yes | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6381 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6382 |   echo "configure: failed program was:" >&5 | 
 | 6383 |   cat conftest.$ac_ext >&5 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6384 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6385 | rm -f conftest* | 
 | 6386 | echo "$ac_t""$works" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6387 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6388 | if test "$have_prototypes" = yes; then | 
 | 6389 | bad_prototypes=no | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6390 | echo $ac_n "checking for bad exec* prototypes""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6391 | echo "configure:6392: checking for bad exec* prototypes" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6392 | cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6393 | #line 6394 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6394 | #include "confdefs.h" | 
 | 6395 | #include <unistd.h> | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6396 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6397 | char **t;execve("@",t,t); | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6398 | ; return 0; } | 
 | 6399 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6400 | if { (eval echo configure:6401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6401 |   : | 
 | 6402 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6403 |   echo "configure: failed program was:" >&5 | 
 | 6404 |   cat conftest.$ac_ext >&5 | 
 | 6405 |   rm -rf conftest* | 
 | 6406 |   cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6407 | #define BAD_EXEC_PROTOTYPES 1 | 
 | 6408 | EOF | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6409 |  bad_prototypes=yes | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6410 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6411 | rm -f conftest* | 
 | 6412 | echo "$ac_t""$bad_prototypes" 1>&6 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6413 | fi | 
 | 6414 |  | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 6415 | # check if sockaddr has sa_len member | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6416 | echo $ac_n "checking if sockaddr has sa_len member""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6417 | echo "configure:6418: checking if sockaddr has sa_len member" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6418 | cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6419 | #line 6420 "configure" | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 6420 | #include "confdefs.h" | 
 | 6421 | #include <sys/types.h> | 
 | 6422 | #include <sys/socket.h> | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6423 | int main() { | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 6424 | struct sockaddr x; | 
 | 6425 | x.sa_len = 0; | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6426 | ; return 0; } | 
 | 6427 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6428 | if { (eval echo configure:6429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6429 |   rm -rf conftest* | 
 | 6430 |   echo "$ac_t""yes" 1>&6 | 
 | 6431 | 	cat >> confdefs.h <<\EOF | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 6432 | #define HAVE_SOCKADDR_SA_LEN 1 | 
 | 6433 | EOF | 
 | 6434 |  | 
 | 6435 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6436 |   echo "configure: failed program was:" >&5 | 
 | 6437 |   cat conftest.$ac_ext >&5 | 
 | 6438 |   rm -rf conftest* | 
 | 6439 |   echo "$ac_t""no" 1>&6 | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 6440 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6441 | rm -f conftest* | 
| Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 6442 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6443 | echo $ac_n "checking for bad static forward""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6444 | echo "configure:6445: checking for bad static forward" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6445 | if eval "test \"`echo '$''{'ac_cv_bad_static_forward'+set}'`\" = set"; then | 
 | 6446 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 6447 | else | 
 | 6448 |   if test "$cross_compiling" = yes; then | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 6449 |   ac_cv_bad_static_forward=no | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6450 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6451 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6452 | #line 6453 "configure" | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6453 | #include "confdefs.h" | 
 | 6454 |  | 
 | 6455 | struct s { int a; int b; }; | 
 | 6456 | static struct s foo; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6457 | int foobar() { | 
 | 6458 |  static int random; | 
 | 6459 |  random = (int) &foo; | 
 | 6460 |  return random; | 
 | 6461 | } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6462 | static struct s foo = { 1, 2 }; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6463 | main() { | 
 | 6464 |  exit(!((int)&foo == foobar())); | 
 | 6465 | } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6466 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6467 | if { (eval echo configure:6468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6468 | then | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 6469 |   ac_cv_bad_static_forward=no | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6470 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6471 |   echo "configure: failed program was:" >&5 | 
 | 6472 |   cat conftest.$ac_ext >&5 | 
 | 6473 |   rm -fr conftest* | 
 | 6474 |   ac_cv_bad_static_forward=yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6475 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6476 | rm -fr conftest* | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 6477 | fi | 
 | 6478 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6479 | fi | 
 | 6480 |  | 
 | 6481 | echo "$ac_t""$ac_cv_bad_static_forward" 1>&6 | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 6482 | if test "$ac_cv_bad_static_forward" = yes | 
 | 6483 | then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6484 |     cat >> confdefs.h <<\EOF | 
| Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 6485 | #define BAD_STATIC_FORWARD 1 | 
 | 6486 | EOF | 
 | 6487 |  | 
 | 6488 | fi | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6489 |  | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6490 | va_list_is_array=no | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6491 | echo $ac_n "checking whether va_list is an array""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6492 | echo "configure:6493: checking whether va_list is an array" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6493 | cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6494 | #line 6495 "configure" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6495 | #include "confdefs.h" | 
 | 6496 |  | 
 | 6497 | #ifdef HAVE_STDARG_PROTOTYPES | 
 | 6498 | #include <stdarg.h> | 
 | 6499 | #else | 
 | 6500 | #include <varargs.h> | 
 | 6501 | #endif | 
 | 6502 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6503 | int main() { | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6504 | va_list list1, list2; list1 = list2; | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6505 | ; return 0; } | 
 | 6506 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6507 | if { (eval echo configure:6508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6508 |   : | 
 | 6509 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6510 |   echo "configure: failed program was:" >&5 | 
 | 6511 |   cat conftest.$ac_ext >&5 | 
 | 6512 |   rm -rf conftest* | 
 | 6513 |   cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6514 | #define VA_LIST_IS_ARRAY 1 | 
 | 6515 | EOF | 
| Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 6516 |  va_list_is_array=yes | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6517 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6518 | rm -f conftest* | 
 | 6519 | echo "$ac_t""$va_list_is_array" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6520 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6521 | # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-( | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6522 | echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6523 | echo "configure:6524: checking for gethostbyname_r" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6524 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname_r'+set}'`\" = set"; then | 
 | 6525 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6526 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6527 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6528 | #line 6529 "configure" | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6529 | #include "confdefs.h" | 
 | 6530 | /* System header to define __stub macros and hopefully few prototypes, | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6531 |     which can conflict with char gethostbyname_r(); below.  */ | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6532 | #include <assert.h> | 
 | 6533 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 6534 | /* We use char because int might match the return type of a gcc2 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6535 |     builtin and then its argument prototype would still apply.  */ | 
 | 6536 | char gethostbyname_r(); | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6537 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6538 | int main() { | 
 | 6539 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6540 | /* The GNU C library defines this for functions which it implements | 
 | 6541 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 6542 |     something starting with __ and the normal name is an alias.  */ | 
 | 6543 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) | 
 | 6544 | choke me | 
 | 6545 | #else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6546 | gethostbyname_r(); | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6547 | #endif | 
 | 6548 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6549 | ; return 0; } | 
 | 6550 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6551 | if { (eval echo configure:6552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6552 |   rm -rf conftest* | 
 | 6553 |   eval "ac_cv_func_gethostbyname_r=yes" | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6554 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6555 |   echo "configure: failed program was:" >&5 | 
 | 6556 |   cat conftest.$ac_ext >&5 | 
 | 6557 |   rm -rf conftest* | 
 | 6558 |   eval "ac_cv_func_gethostbyname_r=no" | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6559 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6560 | rm -f conftest* | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6561 | fi | 
 | 6562 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6563 | if eval "test \"`echo '$ac_cv_func_'gethostbyname_r`\" = yes"; then | 
 | 6564 |   echo "$ac_t""yes" 1>&6 | 
 | 6565 |    | 
 | 6566 |   cat >> confdefs.h <<\EOF | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6567 | #define HAVE_GETHOSTBYNAME_R 1 | 
 | 6568 | EOF | 
 | 6569 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6570 |   echo $ac_n "checking gethostbyname_r with 6 args""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6571 | echo "configure:6572: checking gethostbyname_r with 6 args" >&5 | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6572 |   OLD_CFLAGS=$CFLAGS | 
 | 6573 |   CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6574 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6575 | #line 6576 "configure" | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6576 | #include "confdefs.h" | 
 | 6577 |  | 
 | 6578 | #   include <netdb.h> | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6579 |    | 
 | 6580 | int main() { | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6581 |  | 
 | 6582 |     char *name; | 
 | 6583 |     struct hostent *he, *res; | 
 | 6584 |     char buffer[2048]; | 
 | 6585 |     int buflen = 2048; | 
 | 6586 |     int h_errnop; | 
 | 6587 |  | 
 | 6588 |     (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6589 |    | 
 | 6590 | ; return 0; } | 
 | 6591 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6592 | if { (eval echo configure:6593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6593 |   rm -rf conftest* | 
 | 6594 |    | 
 | 6595 |     cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 6596 | #define HAVE_GETHOSTBYNAME_R 1 | 
 | 6597 | EOF | 
 | 6598 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6599 |     cat >> confdefs.h <<\EOF | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6600 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 | 
 | 6601 | EOF | 
 | 6602 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6603 |     echo "$ac_t""yes" 1>&6 | 
 | 6604 |    | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6605 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6606 |   echo "configure: failed program was:" >&5 | 
 | 6607 |   cat conftest.$ac_ext >&5 | 
 | 6608 |   rm -rf conftest* | 
 | 6609 |    | 
 | 6610 |     echo "$ac_t""no" 1>&6 | 
 | 6611 |     echo $ac_n "checking gethostbyname_r with 5 args""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6612 | echo "configure:6613: checking gethostbyname_r with 5 args" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6613 |     cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6614 | #line 6615 "configure" | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6615 | #include "confdefs.h" | 
 | 6616 |  | 
 | 6617 | #     include <netdb.h> | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6618 |      | 
 | 6619 | int main() { | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6620 |  | 
 | 6621 |       char *name; | 
 | 6622 |       struct hostent *he; | 
 | 6623 |       char buffer[2048]; | 
 | 6624 |       int buflen = 2048; | 
 | 6625 |       int h_errnop; | 
 | 6626 |  | 
 | 6627 |       (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6628 |      | 
 | 6629 | ; return 0; } | 
 | 6630 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6631 | if { (eval echo configure:6632: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6632 |   rm -rf conftest* | 
 | 6633 |    | 
 | 6634 |       cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 6635 | #define HAVE_GETHOSTBYNAME_R 1 | 
 | 6636 | EOF | 
 | 6637 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6638 |       cat >> confdefs.h <<\EOF | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6639 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 | 
 | 6640 | EOF | 
 | 6641 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6642 |       echo "$ac_t""yes" 1>&6 | 
 | 6643 |      | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6644 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6645 |   echo "configure: failed program was:" >&5 | 
 | 6646 |   cat conftest.$ac_ext >&5 | 
 | 6647 |   rm -rf conftest* | 
 | 6648 |    | 
 | 6649 |       echo "$ac_t""no" 1>&6 | 
 | 6650 |       echo $ac_n "checking gethostbyname_r with 3 args""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6651 | echo "configure:6652: checking gethostbyname_r with 3 args" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6652 |       cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6653 | #line 6654 "configure" | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6654 | #include "confdefs.h" | 
 | 6655 |  | 
 | 6656 | #       include <netdb.h> | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6657 |        | 
 | 6658 | int main() { | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6659 |  | 
 | 6660 |         char *name; | 
 | 6661 |         struct hostent *he; | 
 | 6662 |         struct hostent_data data; | 
 | 6663 |  | 
 | 6664 |         (void) gethostbyname_r(name, he, &data); | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6665 |        | 
 | 6666 | ; return 0; } | 
 | 6667 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6668 | if { (eval echo configure:6669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6669 |   rm -rf conftest* | 
 | 6670 |    | 
 | 6671 |         cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 6672 | #define HAVE_GETHOSTBYNAME_R 1 | 
 | 6673 | EOF | 
 | 6674 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6675 |         cat >> confdefs.h <<\EOF | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6676 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 | 
 | 6677 | EOF | 
 | 6678 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6679 |         echo "$ac_t""yes" 1>&6 | 
 | 6680 |        | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6681 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6682 |   echo "configure: failed program was:" >&5 | 
 | 6683 |   cat conftest.$ac_ext >&5 | 
 | 6684 |   rm -rf conftest* | 
 | 6685 |    | 
 | 6686 |         echo "$ac_t""no" 1>&6 | 
 | 6687 |        | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6688 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6689 | rm -f conftest* | 
 | 6690 |      | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6691 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6692 | rm -f conftest* | 
 | 6693 |    | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6694 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6695 | rm -f conftest* | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6696 |   CFLAGS=$OLD_CFLAGS | 
 | 6697 |  | 
 | 6698 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6699 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6700 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6701 |   for ac_func in gethostbyname | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6702 | do | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6703 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6704 | echo "configure:6705: checking for $ac_func" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6705 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
 | 6706 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6707 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6708 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6709 | #line 6710 "configure" | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6710 | #include "confdefs.h" | 
 | 6711 | /* System header to define __stub macros and hopefully few prototypes, | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6712 |     which can conflict with char $ac_func(); below.  */ | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6713 | #include <assert.h> | 
 | 6714 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 6715 | /* We use char because int might match the return type of a gcc2 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6716 |     builtin and then its argument prototype would still apply.  */ | 
 | 6717 | char $ac_func(); | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6718 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6719 | int main() { | 
 | 6720 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6721 | /* The GNU C library defines this for functions which it implements | 
 | 6722 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 6723 |     something starting with __ and the normal name is an alias.  */ | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6724 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6725 | choke me | 
 | 6726 | #else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6727 | $ac_func(); | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6728 | #endif | 
 | 6729 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6730 | ; return 0; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6731 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6732 | if { (eval echo configure:6733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6733 |   rm -rf conftest* | 
 | 6734 |   eval "ac_cv_func_$ac_func=yes" | 
 | 6735 | else | 
 | 6736 |   echo "configure: failed program was:" >&5 | 
 | 6737 |   cat conftest.$ac_ext >&5 | 
 | 6738 |   rm -rf conftest* | 
 | 6739 |   eval "ac_cv_func_$ac_func=no" | 
 | 6740 | fi | 
 | 6741 | rm -f conftest* | 
 | 6742 | fi | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6743 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6744 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
 | 6745 |   echo "$ac_t""yes" 1>&6 | 
 | 6746 |     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
 | 6747 |   cat >> confdefs.h <<EOF | 
 | 6748 | #define $ac_tr_func 1 | 
 | 6749 | EOF | 
 | 6750 |   | 
 | 6751 | else | 
 | 6752 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6753 | fi | 
| Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 6754 | done | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6755 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6756 |  | 
| Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 6757 | fi | 
 | 6758 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6759 |  | 
 | 6760 |  | 
 | 6761 |  | 
 | 6762 |  | 
 | 6763 |  | 
 | 6764 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6765 | # checks for system services | 
 | 6766 | # (none yet) | 
 | 6767 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6768 | # Linux requires this for correct f.p. operations | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6769 | echo $ac_n "checking for __fpu_control""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6770 | echo "configure:6771: checking for __fpu_control" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6771 | if eval "test \"`echo '$''{'ac_cv_func___fpu_control'+set}'`\" = set"; then | 
 | 6772 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 6773 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6774 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6775 | #line 6776 "configure" | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 6776 | #include "confdefs.h" | 
 | 6777 | /* System header to define __stub macros and hopefully few prototypes, | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6778 |     which can conflict with char __fpu_control(); below.  */ | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 6779 | #include <assert.h> | 
 | 6780 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 6781 | /* We use char because int might match the return type of a gcc2 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6782 |     builtin and then its argument prototype would still apply.  */ | 
 | 6783 | char __fpu_control(); | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 6784 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6785 | int main() { | 
 | 6786 |  | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 6787 | /* The GNU C library defines this for functions which it implements | 
 | 6788 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 6789 |     something starting with __ and the normal name is an alias.  */ | 
 | 6790 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) | 
 | 6791 | choke me | 
 | 6792 | #else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6793 | __fpu_control(); | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 6794 | #endif | 
 | 6795 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6796 | ; return 0; } | 
 | 6797 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6798 | if { (eval echo configure:6799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6799 |   rm -rf conftest* | 
 | 6800 |   eval "ac_cv_func___fpu_control=yes" | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 6801 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6802 |   echo "configure: failed program was:" >&5 | 
 | 6803 |   cat conftest.$ac_ext >&5 | 
 | 6804 |   rm -rf conftest* | 
 | 6805 |   eval "ac_cv_func___fpu_control=no" | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 6806 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6807 | rm -f conftest* | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 6808 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6809 |  | 
 | 6810 | if eval "test \"`echo '$ac_cv_func_'__fpu_control`\" = yes"; then | 
 | 6811 |   echo "$ac_t""yes" 1>&6 | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 6812 |   : | 
 | 6813 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6814 |   echo "$ac_t""no" 1>&6 | 
 | 6815 | echo $ac_n "checking for __fpu_control in -lieee""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6816 | echo "configure:6817: checking for __fpu_control in -lieee" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6817 | ac_lib_var=`echo ieee'_'__fpu_control | sed 'y%./+-%__p_%'` | 
 | 6818 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
 | 6819 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6820 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6821 |   ac_save_LIBS="$LIBS" | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6822 | LIBS="-lieee  $LIBS" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6823 | cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6824 | #line 6825 "configure" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6825 | #include "confdefs.h" | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6826 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 6827 | /* We use char because int might match the return type of a gcc2 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6828 |     builtin and then its argument prototype would still apply.  */ | 
 | 6829 | char __fpu_control(); | 
 | 6830 |  | 
 | 6831 | int main() { | 
 | 6832 | __fpu_control() | 
 | 6833 | ; return 0; } | 
 | 6834 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6835 | if { (eval echo configure:6836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6836 |   rm -rf conftest* | 
 | 6837 |   eval "ac_cv_lib_$ac_lib_var=yes" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6838 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6839 |   echo "configure: failed program was:" >&5 | 
 | 6840 |   cat conftest.$ac_ext >&5 | 
 | 6841 |   rm -rf conftest* | 
 | 6842 |   eval "ac_cv_lib_$ac_lib_var=no" | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6843 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6844 | rm -f conftest* | 
 | 6845 | LIBS="$ac_save_LIBS" | 
 | 6846 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6847 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6848 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
 | 6849 |   echo "$ac_t""yes" 1>&6 | 
 | 6850 |     ac_tr_lib=HAVE_LIB`echo ieee | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | 
 | 6851 |     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | 
 | 6852 |   cat >> confdefs.h <<EOF | 
 | 6853 | #define $ac_tr_lib 1 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6854 | EOF | 
 | 6855 |  | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6856 |   LIBS="-lieee $LIBS" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6857 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6858 | else | 
 | 6859 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 6860 | fi | 
 | 6861 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6862 |  | 
| Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 6863 | fi | 
 | 6864 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6865 |  | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6866 | # Check for --with-fpectl | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6867 | echo $ac_n "checking for --with-fpectl""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6868 | echo "configure:6869: checking for --with-fpectl" >&5 | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6869 | # Check whether --with-fpectl or --without-fpectl was given. | 
 | 6870 | if test "${with_fpectl+set}" = set; then | 
 | 6871 |   withval="$with_fpectl" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6872 |    | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6873 | if test "$withval" != no | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6874 | then cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6875 | #define WANT_SIGFPE_HANDLER 1 | 
 | 6876 | EOF | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6877 |  echo "$ac_t""yes" 1>&6 | 
 | 6878 | else echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6879 | fi | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6880 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6881 |   echo "$ac_t""no" 1>&6 | 
 | 6882 | fi | 
 | 6883 |  | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6884 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6885 | # check for --with-libm=... | 
 | 6886 |  | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 6887 | case $ac_sys_system in | 
| Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 6888 | Darwin) ;; | 
| Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 6889 | BeOS) ;; | 
| Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 6890 | *) LIBM=-lm | 
 | 6891 | esac | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6892 | echo $ac_n "checking for --with-libm=STRING""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6893 | echo "configure:6894: checking for --with-libm=STRING" >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6894 | # Check whether --with-libm or --without-libm was given. | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6895 | if test "${with_libm+set}" = set; then | 
 | 6896 |   withval="$with_libm" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6897 |    | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6898 | if test "$withval" = no | 
 | 6899 | then LIBM= | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6900 |      echo "$ac_t""force LIBM empty" 1>&6 | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6901 | elif test "$withval" != yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6902 | then LIBM=$withval | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6903 |      echo "$ac_t""set LIBM=\"$withval\"" 1>&6 | 
 | 6904 | else { echo "configure: error: proper usage is --with-libm=STRING" 1>&2; exit 1; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6905 | fi | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6906 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6907 |   echo "$ac_t""default LIBM=\"$LIBM\"" 1>&6 | 
 | 6908 | fi | 
 | 6909 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6910 |  | 
 | 6911 | # check for --with-libc=... | 
 | 6912 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6913 | echo $ac_n "checking for --with-libc=STRING""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6914 | echo "configure:6915: checking for --with-libc=STRING" >&5 | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 6915 | # Check whether --with-libc or --without-libc was given. | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6916 | if test "${with_libc+set}" = set; then | 
 | 6917 |   withval="$with_libc" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6918 |    | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6919 | if test "$withval" = no | 
 | 6920 | then LIBC= | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6921 |      echo "$ac_t""force LIBC empty" 1>&6 | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6922 | elif test "$withval" != yes | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6923 | then LIBC=$withval | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6924 |      echo "$ac_t""set LIBC=\"$withval\"" 1>&6 | 
 | 6925 | else { echo "configure: error: proper usage is --with-libc=STRING" 1>&2; exit 1; } | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6926 | fi | 
| Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 6927 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6928 |   echo "$ac_t""default LIBC=\"$LIBC\"" 1>&6 | 
 | 6929 | fi | 
 | 6930 |  | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 6931 |  | 
| Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 6932 | # check for hypot() in math library | 
 | 6933 | LIBS_SAVE=$LIBS | 
 | 6934 | LIBS="$LIBS $LIBM" | 
 | 6935 | for ac_func in hypot | 
 | 6936 | do | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6937 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6938 | echo "configure:6939: checking for $ac_func" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6939 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
 | 6940 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 6941 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6942 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6943 | #line 6944 "configure" | 
| Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 6944 | #include "confdefs.h" | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6945 | /* System header to define __stub macros and hopefully few prototypes, | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6946 |     which can conflict with char $ac_func(); below.  */ | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6947 | #include <assert.h> | 
 | 6948 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
| Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 6949 | /* We use char because int might match the return type of a gcc2 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6950 |     builtin and then its argument prototype would still apply.  */ | 
 | 6951 | char $ac_func(); | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6952 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6953 | int main() { | 
 | 6954 |  | 
| Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 6955 | /* The GNU C library defines this for functions which it implements | 
 | 6956 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 6957 |     something starting with __ and the normal name is an alias.  */ | 
 | 6958 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 6959 | choke me | 
 | 6960 | #else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6961 | $ac_func(); | 
| Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 6962 | #endif | 
 | 6963 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6964 | ; return 0; } | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 6965 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6966 | if { (eval echo configure:6967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6967 |   rm -rf conftest* | 
 | 6968 |   eval "ac_cv_func_$ac_func=yes" | 
| Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 6969 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6970 |   echo "configure: failed program was:" >&5 | 
 | 6971 |   cat conftest.$ac_ext >&5 | 
 | 6972 |   rm -rf conftest* | 
 | 6973 |   eval "ac_cv_func_$ac_func=no" | 
 | 6974 | fi | 
 | 6975 | rm -f conftest* | 
 | 6976 | fi | 
 | 6977 |  | 
 | 6978 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
 | 6979 |   echo "$ac_t""yes" 1>&6 | 
 | 6980 |     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
 | 6981 |   cat >> confdefs.h <<EOF | 
 | 6982 | #define $ac_tr_func 1 | 
 | 6983 | EOF | 
 | 6984 |   | 
 | 6985 | else | 
 | 6986 |   echo "$ac_t""no" 1>&6 | 
 | 6987 | LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" | 
| Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 6988 | fi | 
| Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 6989 | done | 
 | 6990 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6991 |  | 
| Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 6992 | LIBS=$LIBS_SAVE | 
 | 6993 |  | 
| Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 6994 | # check whether malloc(0) returns NULL or not | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6995 | echo $ac_n "checking what malloc(0) returns""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 6996 | echo "configure:6997: checking what malloc(0) returns" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6997 | if eval "test \"`echo '$''{'ac_cv_malloc_zero'+set}'`\" = set"; then | 
 | 6998 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 6999 | else | 
 | 7000 |   if test "$cross_compiling" = yes; then | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 7001 |   ac_cv_malloc_zero=nonnull | 
| Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 7002 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7003 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 7004 | #line 7005 "configure" | 
| Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 7005 | #include "confdefs.h" | 
 | 7006 | #include <stdio.h> | 
 | 7007 | #ifdef HAVE_STDLIB | 
 | 7008 | #include <stdlib.h> | 
 | 7009 | #else | 
 | 7010 | char *malloc(), *realloc(); | 
 | 7011 | int *free(); | 
 | 7012 | #endif | 
 | 7013 | main() { | 
 | 7014 | 	char *p; | 
 | 7015 | 	p = malloc(0); | 
 | 7016 | 	if (p == NULL) exit(1); | 
 | 7017 | 	p = realloc(p, 0); | 
 | 7018 | 	if (p == NULL) exit(1); | 
 | 7019 | 	free(p); | 
 | 7020 | 	exit(0); | 
 | 7021 | } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7022 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 7023 | if { (eval echo configure:7024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7024 | then | 
| Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 7025 |   ac_cv_malloc_zero=nonnull | 
 | 7026 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7027 |   echo "configure: failed program was:" >&5 | 
 | 7028 |   cat conftest.$ac_ext >&5 | 
 | 7029 |   rm -fr conftest* | 
 | 7030 |   ac_cv_malloc_zero=null | 
| Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 7031 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7032 | rm -fr conftest* | 
| Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 7033 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7034 |  | 
| Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 7035 | fi | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 7036 |  # XXX arm cross-compile? | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7037 | echo "$ac_t""$ac_cv_malloc_zero" 1>&6 | 
| Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 7038 | if test "$ac_cv_malloc_zero" = null | 
 | 7039 | then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7040 |   cat >> confdefs.h <<\EOF | 
| Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 7041 | #define MALLOC_ZERO_RETURNS_NULL 1 | 
 | 7042 | EOF | 
 | 7043 |  | 
 | 7044 | fi | 
 | 7045 |  | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7046 | # check for wchar.h | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7047 | ac_safe=`echo "wchar.h" | sed 'y%./+-%__p_%'` | 
 | 7048 | echo $ac_n "checking for wchar.h""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 7049 | echo "configure:7050: checking for wchar.h" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7050 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 
 | 7051 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7052 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7053 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 7054 | #line 7055 "configure" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7055 | #include "confdefs.h" | 
 | 7056 | #include <wchar.h> | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7057 | EOF | 
 | 7058 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 7059 | { (eval echo configure:7060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7060 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
 | 7061 | if test -z "$ac_err"; then | 
 | 7062 |   rm -rf conftest* | 
 | 7063 |   eval "ac_cv_header_$ac_safe=yes" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7064 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7065 |   echo "$ac_err" >&5 | 
 | 7066 |   echo "configure: failed program was:" >&5 | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7067 |   cat conftest.$ac_ext >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7068 |   rm -rf conftest* | 
 | 7069 |   eval "ac_cv_header_$ac_safe=no" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7070 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7071 | rm -f conftest* | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7072 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7073 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 
 | 7074 |   echo "$ac_t""yes" 1>&6 | 
 | 7075 |   cat >> confdefs.h <<\EOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7076 | #define HAVE_WCHAR_H 1 | 
 | 7077 | EOF | 
 | 7078 |  wchar_h="yes" | 
 | 7079 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7080 |   echo "$ac_t""no" 1>&6 | 
 | 7081 | wchar_h="no" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7082 |  | 
 | 7083 | fi | 
 | 7084 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7085 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 7086 | # determine wchar_t size | 
 | 7087 | if test "$wchar_h" = yes | 
 | 7088 | then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7089 |   echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 7090 | echo "configure:7091: checking size of wchar_t" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7091 | if eval "test \"`echo '$''{'ac_cv_sizeof_wchar_t'+set}'`\" = set"; then | 
 | 7092 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 7093 | else | 
 | 7094 |   if test "$cross_compiling" = yes; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7095 |   ac_cv_sizeof_wchar_t=4 | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7096 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7097 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 7098 | #line 7099 "configure" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7099 | #include "confdefs.h" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7100 | #include <stdio.h> | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 7101 | #include <sys/types.h> | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7102 | main() | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 7103 | { | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7104 |   FILE *f=fopen("conftestval", "w"); | 
 | 7105 |   if (!f) exit(1); | 
 | 7106 |   fprintf(f, "%d\n", sizeof(wchar_t)); | 
 | 7107 |   exit(0); | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7108 | } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7109 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 7110 | if { (eval echo configure:7111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7111 | then | 
 | 7112 |   ac_cv_sizeof_wchar_t=`cat conftestval` | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7113 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7114 |   echo "configure: failed program was:" >&5 | 
 | 7115 |   cat conftest.$ac_ext >&5 | 
 | 7116 |   rm -fr conftest* | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 7117 |   ac_cv_sizeof_wchar_t=0 | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7118 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7119 | rm -fr conftest* | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7120 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7121 |  | 
 | 7122 | fi | 
 | 7123 | echo "$ac_t""$ac_cv_sizeof_wchar_t" 1>&6 | 
 | 7124 | cat >> confdefs.h <<EOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 7125 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t | 
 | 7126 | EOF | 
 | 7127 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7128 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 7129 | fi | 
 | 7130 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7131 | echo $ac_n "checking what type to use for unicode""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 7132 | echo "configure:7133: checking what type to use for unicode" >&5 | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 7133 | # Check whether --enable-unicode or --disable-unicode was given. | 
 | 7134 | if test "${enable_unicode+set}" = set; then | 
 | 7135 |   enableval="$enable_unicode" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7136 |   : | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 7137 | else | 
 | 7138 |   enable_unicode=yes | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7139 | fi | 
 | 7140 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 7141 |  | 
 | 7142 | if test $enable_unicode = yes | 
 | 7143 | then | 
| Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 7144 |   # Without any arguments, Py_UNICODE defaults to two-byte mode | 
 | 7145 |   enable_unicode="ucs2" | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 7146 | fi | 
 | 7147 |  | 
 | 7148 | case "$enable_unicode" in | 
 | 7149 | ucs2) unicode_size="2" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7150 |       cat >> confdefs.h <<\EOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 7151 | #define Py_UNICODE_SIZE 2 | 
 | 7152 | EOF | 
 | 7153 |  | 
 | 7154 |       ;; | 
 | 7155 | ucs4) unicode_size="4" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7156 |       cat >> confdefs.h <<\EOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 7157 | #define Py_UNICODE_SIZE 4 | 
 | 7158 | EOF | 
 | 7159 |  | 
 | 7160 |       ;; | 
 | 7161 | esac | 
 | 7162 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7163 |  | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 7164 | if test "$enable_unicode" = "no" | 
 | 7165 | then | 
| Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 7166 |   UNICODE_OBJS="" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7167 |   echo "$ac_t""not used" 1>&6 | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 7168 | else | 
| Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 7169 |   UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7170 |   cat >> confdefs.h <<\EOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 7171 | #define Py_USING_UNICODE 1 | 
 | 7172 | EOF | 
 | 7173 |  | 
 | 7174 |   if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" | 
 | 7175 |   then | 
 | 7176 |     PY_UNICODE_TYPE="wchar_t" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7177 |     cat >> confdefs.h <<\EOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 7178 | #define HAVE_USABLE_WCHAR_T 1 | 
 | 7179 | EOF | 
 | 7180 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7181 |     cat >> confdefs.h <<\EOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 7182 | #define PY_UNICODE_TYPE wchar_t | 
 | 7183 | EOF | 
 | 7184 |  | 
 | 7185 |   elif test "$ac_cv_sizeof_short" = "$unicode_size" | 
 | 7186 |   then | 
 | 7187 |        PY_UNICODE_TYPE="unsigned short" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7188 |        cat >> confdefs.h <<\EOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 7189 | #define PY_UNICODE_TYPE unsigned short | 
 | 7190 | EOF | 
 | 7191 |  | 
 | 7192 |   elif test "$ac_cv_sizeof_long" = "$unicode_size" | 
 | 7193 |   then | 
 | 7194 |        PY_UNICODE_TYPE="unsigned long" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7195 |        cat >> confdefs.h <<\EOF | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 7196 | #define PY_UNICODE_TYPE unsigned long | 
 | 7197 | EOF | 
 | 7198 |  | 
 | 7199 |   else | 
 | 7200 |        PY_UNICODE_TYPE="no type found" | 
 | 7201 |   fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7202 |   echo "$ac_t""$PY_UNICODE_TYPE" 1>&6 | 
| Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 7203 | fi | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7204 |  | 
 | 7205 | # check for endianness | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7206 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 7207 | echo "configure:7208: checking whether byte ordering is bigendian" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7208 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then | 
 | 7209 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7210 | else | 
 | 7211 |   ac_cv_c_bigendian=unknown | 
 | 7212 | # See if sys/param.h defines the BYTE_ORDER macro. | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7213 | cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 7214 | #line 7215 "configure" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7215 | #include "confdefs.h" | 
 | 7216 | #include <sys/types.h> | 
 | 7217 | #include <sys/param.h> | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7218 | int main() { | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7219 |  | 
 | 7220 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | 
 | 7221 |  bogus endian macros | 
 | 7222 | #endif | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7223 | ; return 0; } | 
 | 7224 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 7225 | if { (eval echo configure:7226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7226 |   rm -rf conftest* | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7227 |   # It does; now see whether it defined to BIG_ENDIAN or not. | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7228 | cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 7229 | #line 7230 "configure" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7230 | #include "confdefs.h" | 
 | 7231 | #include <sys/types.h> | 
 | 7232 | #include <sys/param.h> | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7233 | int main() { | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7234 |  | 
 | 7235 | #if BYTE_ORDER != BIG_ENDIAN | 
 | 7236 |  not big endian | 
 | 7237 | #endif | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7238 | ; return 0; } | 
 | 7239 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 7240 | if { (eval echo configure:7241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7241 |   rm -rf conftest* | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7242 |   ac_cv_c_bigendian=yes | 
 | 7243 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7244 |   echo "configure: failed program was:" >&5 | 
 | 7245 |   cat conftest.$ac_ext >&5 | 
 | 7246 |   rm -rf conftest* | 
 | 7247 |   ac_cv_c_bigendian=no | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7248 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7249 | rm -f conftest* | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7250 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7251 |   echo "configure: failed program was:" >&5 | 
 | 7252 |   cat conftest.$ac_ext >&5 | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7253 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7254 | rm -f conftest* | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7255 | if test $ac_cv_c_bigendian = unknown; then | 
 | 7256 | if test "$cross_compiling" = yes; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7257 |     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7258 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7259 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 7260 | #line 7261 "configure" | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7261 | #include "confdefs.h" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7262 | main () { | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7263 |   /* Are we little or big endian?  From Harbison&Steele.  */ | 
 | 7264 |   union | 
 | 7265 |   { | 
 | 7266 |     long l; | 
 | 7267 |     char c[sizeof (long)]; | 
 | 7268 |   } u; | 
 | 7269 |   u.l = 1; | 
 | 7270 |   exit (u.c[sizeof (long) - 1] == 1); | 
 | 7271 | } | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7272 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 7273 | if { (eval echo configure:7274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7274 | then | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7275 |   ac_cv_c_bigendian=no | 
 | 7276 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7277 |   echo "configure: failed program was:" >&5 | 
 | 7278 |   cat conftest.$ac_ext >&5 | 
 | 7279 |   rm -fr conftest* | 
 | 7280 |   ac_cv_c_bigendian=yes | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7281 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7282 | rm -fr conftest* | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7283 | fi | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 7284 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7285 | fi | 
 | 7286 | fi | 
 | 7287 |  | 
 | 7288 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | 
 | 7289 | if test $ac_cv_c_bigendian = yes; then | 
 | 7290 |   cat >> confdefs.h <<\EOF | 
| Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7291 | #define WORDS_BIGENDIAN 1 | 
 | 7292 | EOF | 
 | 7293 |  | 
 | 7294 | fi | 
 | 7295 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7296 |  | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 7297 | # Check whether right shifting a negative integer extends the sign bit | 
 | 7298 | # or fills with zeros (like the Cray J90, according to Tim Peters). | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7299 | echo $ac_n "checking whether right shift extends the sign bit""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 7300 | echo "configure:7301: checking whether right shift extends the sign bit" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7301 | if eval "test \"`echo '$''{'ac_cv_rshift_extends_sign'+set}'`\" = set"; then | 
 | 7302 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 7303 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7304 |    | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 7305 | if test "$cross_compiling" = yes; then | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 7306 |   ac_cv_rshift_extends_sign=yes | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 7307 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7308 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 7309 | #line 7310 "configure" | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 7310 | #include "confdefs.h" | 
 | 7311 |  | 
 | 7312 | int main() | 
 | 7313 | { | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 7314 | 	exit(((-1)>>3 == -1) ? 0 : 1); | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 7315 | } | 
 | 7316 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7317 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 7318 | if { (eval echo configure:7319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7319 | then | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 7320 |   ac_cv_rshift_extends_sign=yes | 
 | 7321 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7322 |   echo "configure: failed program was:" >&5 | 
 | 7323 |   cat conftest.$ac_ext >&5 | 
 | 7324 |   rm -fr conftest* | 
 | 7325 |   ac_cv_rshift_extends_sign=no | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 7326 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7327 | rm -fr conftest* | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 7328 | fi | 
 | 7329 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7330 | fi | 
 | 7331 |  | 
 | 7332 | echo "$ac_t""$ac_cv_rshift_extends_sign" 1>&6 | 
| Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 7333 | if test "$ac_cv_rshift_extends_sign" = no | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 7334 | then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7335 |   cat >> confdefs.h <<\EOF | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 7336 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 | 
 | 7337 | EOF | 
 | 7338 |  | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 7339 | fi | 
 | 7340 |  | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 7341 | # check for getc_unlocked and related locking functions | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7342 | echo $ac_n "checking for getc_unlocked() and friends""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 7343 | echo "configure:7344: checking for getc_unlocked() and friends" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7344 | if eval "test \"`echo '$''{'ac_cv_have_getc_unlocked'+set}'`\" = set"; then | 
 | 7345 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 7346 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7347 |    | 
 | 7348 | cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 7349 | #line 7350 "configure" | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 7350 | #include "confdefs.h" | 
 | 7351 | #include <stdio.h> | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7352 | int main() { | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 7353 |  | 
 | 7354 | 	FILE *f = fopen("/dev/null", "r"); | 
 | 7355 | 	flockfile(f); | 
 | 7356 | 	getc_unlocked(f); | 
 | 7357 | 	funlockfile(f); | 
 | 7358 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7359 | ; return 0; } | 
 | 7360 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 7361 | if { (eval echo configure:7362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7362 |   rm -rf conftest* | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 7363 |   ac_cv_have_getc_unlocked=yes | 
 | 7364 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7365 |   echo "configure: failed program was:" >&5 | 
 | 7366 |   cat conftest.$ac_ext >&5 | 
 | 7367 |   rm -rf conftest* | 
 | 7368 |   ac_cv_have_getc_unlocked=no | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 7369 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7370 | rm -f conftest* | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 7371 | fi | 
 | 7372 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7373 | echo "$ac_t""$ac_cv_have_getc_unlocked" 1>&6 | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 7374 | if test "$ac_cv_have_getc_unlocked" = yes | 
 | 7375 | then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7376 |   cat >> confdefs.h <<\EOF | 
| Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 7377 | #define HAVE_GETC_UNLOCKED 1 | 
 | 7378 | EOF | 
 | 7379 |  | 
 | 7380 | fi | 
| Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 7381 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 7382 | # check for readline 4.0 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7383 | echo $ac_n "checking for rl_pre_input_hook in -lreadline""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 7384 | echo "configure:7385: checking for rl_pre_input_hook in -lreadline" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7385 | ac_lib_var=`echo readline'_'rl_pre_input_hook | sed 'y%./+-%__p_%'` | 
 | 7386 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
 | 7387 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 7388 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7389 |   ac_save_LIBS="$LIBS" | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 7390 | LIBS="-lreadline -ltermcap $LIBS" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7391 | cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 7392 | #line 7393 "configure" | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 7393 | #include "confdefs.h" | 
 | 7394 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 7395 | /* We use char because int might match the return type of a gcc2 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7396 |     builtin and then its argument prototype would still apply.  */ | 
 | 7397 | char rl_pre_input_hook(); | 
 | 7398 |  | 
 | 7399 | int main() { | 
 | 7400 | rl_pre_input_hook() | 
 | 7401 | ; return 0; } | 
 | 7402 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 7403 | if { (eval echo configure:7404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7404 |   rm -rf conftest* | 
 | 7405 |   eval "ac_cv_lib_$ac_lib_var=yes" | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 7406 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7407 |   echo "configure: failed program was:" >&5 | 
 | 7408 |   cat conftest.$ac_ext >&5 | 
 | 7409 |   rm -rf conftest* | 
 | 7410 |   eval "ac_cv_lib_$ac_lib_var=no" | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 7411 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7412 | rm -f conftest* | 
 | 7413 | LIBS="$ac_save_LIBS" | 
 | 7414 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 7415 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7416 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
 | 7417 |   echo "$ac_t""yes" 1>&6 | 
 | 7418 |   cat >> confdefs.h <<\EOF | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 7419 | #define HAVE_RL_PRE_INPUT_HOOK 1 | 
 | 7420 | EOF | 
 | 7421 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7422 | else | 
 | 7423 |   echo "$ac_t""no" 1>&6 | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 7424 | fi | 
 | 7425 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7426 |  | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 7427 | # check for readline 4.2 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7428 | echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 7429 | echo "configure:7430: checking for rl_completion_matches in -lreadline" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7430 | ac_lib_var=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'` | 
 | 7431 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
 | 7432 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 7433 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7434 |   ac_save_LIBS="$LIBS" | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 7435 | LIBS="-lreadline -ltermcap $LIBS" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7436 | cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 7437 | #line 7438 "configure" | 
| Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 7438 | #include "confdefs.h" | 
 | 7439 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 7440 | /* We use char because int might match the return type of a gcc2 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7441 |     builtin and then its argument prototype would still apply.  */ | 
 | 7442 | char rl_completion_matches(); | 
 | 7443 |  | 
 | 7444 | int main() { | 
 | 7445 | rl_completion_matches() | 
 | 7446 | ; return 0; } | 
 | 7447 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 7448 | if { (eval echo configure:7449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7449 |   rm -rf conftest* | 
 | 7450 |   eval "ac_cv_lib_$ac_lib_var=yes" | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 7451 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7452 |   echo "configure: failed program was:" >&5 | 
 | 7453 |   cat conftest.$ac_ext >&5 | 
 | 7454 |   rm -rf conftest* | 
 | 7455 |   eval "ac_cv_lib_$ac_lib_var=no" | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 7456 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7457 | rm -f conftest* | 
 | 7458 | LIBS="$ac_save_LIBS" | 
 | 7459 |  | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 7460 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7461 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
 | 7462 |   echo "$ac_t""yes" 1>&6 | 
 | 7463 |   cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 7464 | #define HAVE_RL_COMPLETION_MATCHES 1 | 
 | 7465 | EOF | 
 | 7466 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7467 | else | 
 | 7468 |   echo "$ac_t""no" 1>&6 | 
| Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 7469 | fi | 
 | 7470 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 7471 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7472 | echo $ac_n "checking for broken nice()""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 7473 | echo "configure:7474: checking for broken nice()" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7474 | if eval "test \"`echo '$''{'ac_cv_broken_nice'+set}'`\" = set"; then | 
 | 7475 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 7476 | else | 
 | 7477 |    | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 7478 | if test "$cross_compiling" = yes; then | 
| Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 7479 |   ac_cv_broken_nice=no | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 7480 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7481 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 7482 | #line 7483 "configure" | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 7483 | #include "confdefs.h" | 
 | 7484 |  | 
 | 7485 | int main() | 
 | 7486 | { | 
 | 7487 | 	int val1 = nice(1); | 
 | 7488 | 	if (val1 != -1 && val1 == nice(2)) | 
 | 7489 | 		exit(0); | 
 | 7490 | 	exit(1); | 
 | 7491 | } | 
 | 7492 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7493 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 7494 | if { (eval echo configure:7495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7495 | then | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 7496 |   ac_cv_broken_nice=yes | 
 | 7497 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7498 |   echo "configure: failed program was:" >&5 | 
 | 7499 |   cat conftest.$ac_ext >&5 | 
 | 7500 |   rm -fr conftest* | 
 | 7501 |   ac_cv_broken_nice=no | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 7502 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7503 | rm -fr conftest* | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 7504 | fi | 
 | 7505 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7506 | fi | 
 | 7507 |  | 
 | 7508 | echo "$ac_t""$ac_cv_broken_nice" 1>&6 | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 7509 | if test "$ac_cv_broken_nice" = yes | 
 | 7510 | then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7511 |   cat >> confdefs.h <<\EOF | 
| Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 7512 | #define HAVE_BROKEN_NICE 1 | 
 | 7513 | EOF | 
 | 7514 |  | 
 | 7515 | fi | 
 | 7516 |  | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 7517 | # On HP/UX 11.0, mvwdelch is a block with a return statement | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7518 | echo $ac_n "checking whether mvwdelch is an expression""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 7519 | echo "configure:7520: checking whether mvwdelch is an expression" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7520 | if eval "test \"`echo '$''{'ac_cv_mvwdelch_is_expression'+set}'`\" = set"; then | 
 | 7521 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 7522 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7523 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 7524 | #line 7525 "configure" | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 7525 | #include "confdefs.h" | 
 | 7526 | #include <curses.h> | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7527 | int main() { | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 7528 |  | 
 | 7529 |   int rtn; | 
 | 7530 |   rtn = mvwdelch(0,0,0); | 
 | 7531 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7532 | ; return 0; } | 
 | 7533 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 7534 | if { (eval echo configure:7535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7535 |   rm -rf conftest* | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 7536 |   ac_cv_mvwdelch_is_expression=yes | 
 | 7537 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7538 |   echo "configure: failed program was:" >&5 | 
 | 7539 |   cat conftest.$ac_ext >&5 | 
 | 7540 |   rm -rf conftest* | 
 | 7541 |   ac_cv_mvwdelch_is_expression=no | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 7542 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7543 | rm -f conftest* | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 7544 | fi | 
 | 7545 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7546 | echo "$ac_t""$ac_cv_mvwdelch_is_expression" 1>&6 | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 7547 |  | 
 | 7548 | if test "$ac_cv_mvwdelch_is_expression" = yes | 
 | 7549 | then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7550 |   cat >> confdefs.h <<\EOF | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 7551 | #define MVWDELCH_IS_EXPRESSION 1 | 
 | 7552 | EOF | 
 | 7553 |  | 
 | 7554 | fi | 
 | 7555 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7556 | echo $ac_n "checking whether WINDOW has _flags""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 7557 | echo "configure:7558: checking whether WINDOW has _flags" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7558 | if eval "test \"`echo '$''{'ac_cv_window_has_flags'+set}'`\" = set"; then | 
 | 7559 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 7560 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7561 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 7562 | #line 7563 "configure" | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 7563 | #include "confdefs.h" | 
 | 7564 | #include <curses.h> | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7565 | int main() { | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 7566 |  | 
 | 7567 |   WINDOW *w; | 
 | 7568 |   w->_flags = 0; | 
 | 7569 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7570 | ; return 0; } | 
 | 7571 | EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 7572 | if { (eval echo configure:7573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7573 |   rm -rf conftest* | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 7574 |   ac_cv_window_has_flags=yes | 
 | 7575 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7576 |   echo "configure: failed program was:" >&5 | 
 | 7577 |   cat conftest.$ac_ext >&5 | 
 | 7578 |   rm -rf conftest* | 
 | 7579 |   ac_cv_window_has_flags=no | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 7580 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7581 | rm -f conftest* | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 7582 | fi | 
 | 7583 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7584 | echo "$ac_t""$ac_cv_window_has_flags" 1>&6 | 
 | 7585 |  | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 7586 |  | 
 | 7587 | if test "$ac_cv_window_has_flags" = yes | 
 | 7588 | then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7589 |   cat >> confdefs.h <<\EOF | 
| Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 7590 | #define WINDOW_HAS_FLAGS 1 | 
 | 7591 | EOF | 
 | 7592 |  | 
 | 7593 | fi | 
 | 7594 |  | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 7595 | # THIS MUST BE LAST, IT CAN BREAK OTHER TESTS! | 
 | 7596 | # Add sys/socket.h to confdefs.h | 
 | 7597 | cat >> confdefs.h <<\EOF | 
 | 7598 | #ifdef HAVE_SYS_SOCKET_H | 
 | 7599 | #include <sys/socket.h> | 
 | 7600 | #endif | 
 | 7601 | EOF | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7602 | echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 7603 | echo "configure:7604: checking for socklen_t" >&5 | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7604 | if eval "test \"`echo '$''{'ac_cv_type_socklen_t'+set}'`\" = set"; then | 
 | 7605 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 7606 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7607 |   cat > conftest.$ac_ext <<EOF | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 7608 | #line 7609 "configure" | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 7609 | #include "confdefs.h" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7610 | #include <sys/types.h> | 
 | 7611 | #if STDC_HEADERS | 
 | 7612 | #include <stdlib.h> | 
 | 7613 | #include <stddef.h> | 
 | 7614 | #endif | 
 | 7615 | EOF | 
 | 7616 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 7617 |   egrep "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | 
 | 7618 |   rm -rf conftest* | 
| Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 7619 |   ac_cv_type_socklen_t=yes | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 7620 | else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7621 |   rm -rf conftest* | 
 | 7622 |   ac_cv_type_socklen_t=no | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 7623 | fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7624 | rm -f conftest* | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 7625 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7626 | fi | 
 | 7627 | echo "$ac_t""$ac_cv_type_socklen_t" 1>&6 | 
 | 7628 | if test $ac_cv_type_socklen_t = no; then | 
 | 7629 |   cat >> confdefs.h <<\EOF | 
| Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 7630 | #define socklen_t int | 
 | 7631 | EOF | 
 | 7632 |  | 
 | 7633 | fi | 
 | 7634 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7635 |  | 
| Neil Schemenauer | f25cf6c | 2001-03-04 06:39:33 +0000 | [diff] [blame] | 7636 | # Add Python/ prefix to LIBOBJS | 
 | 7637 | libobjs=$LIBOBJS | 
 | 7638 | LIBOBJS= | 
 | 7639 | for obj in $libobjs; do | 
 | 7640 |     LIBOBJS="$LIBOBJS Python/$obj" | 
 | 7641 | done | 
 | 7642 |  | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7643 | #AC_MSG_CHECKING(for Modules/Setup) | 
 | 7644 | #if test ! -f Modules/Setup ; then | 
 | 7645 | #    if test ! -d Modules ; then | 
 | 7646 | #        mkdir Modules | 
 | 7647 | #    fi | 
 | 7648 | #    cp "$srcdir/Modules/Setup.dist" Modules/Setup | 
 | 7649 | #    AC_MSG_RESULT(creating) | 
 | 7650 | #else | 
 | 7651 | #    AC_MSG_RESULT(already exists) | 
 | 7652 | #fi | 
 | 7653 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7654 |  | 
 | 7655 |  | 
| Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 7656 | for h in `(cd $srcdir;echo Python/thread_*.h)` | 
 | 7657 | do | 
 | 7658 |   THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" | 
 | 7659 | done | 
 | 7660 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7661 |  | 
| Neil Schemenauer | acbf9ef | 2001-02-27 02:15:14 +0000 | [diff] [blame] | 7662 | SRCDIRS="Parser Grammar Objects Python Modules" | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7663 | echo $ac_n "checking for build directories""... $ac_c" 1>&6 | 
| Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 7664 | echo "configure:7665: checking for build directories" >&5 | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7665 | for dir in $SRCDIRS; do | 
 | 7666 |     if test ! -d $dir; then | 
 | 7667 |         mkdir $dir | 
| Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 7668 |     fi | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7669 | done | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7670 | echo "$ac_t""done" 1>&6 | 
| Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 7671 |  | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7672 | # generate output files | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7673 | trap '' 1 2 15 | 
 | 7674 | cat > confcache <<\EOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7675 | # This file is a shell script that caches the results of configure | 
 | 7676 | # tests run on this system so they can be shared between configure | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7677 | # scripts and configure runs.  It is not useful on other systems. | 
 | 7678 | # If it contains results you don't want to keep, you may remove or edit it. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7679 | # | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7680 | # By default, configure uses ./config.cache as the cache file, | 
 | 7681 | # creating it if it does not exist already.  You can give configure | 
 | 7682 | # the --cache-file=FILE option to use a different cache file; that is | 
 | 7683 | # what configure does when it calls configure scripts in | 
 | 7684 | # subdirectories, so they share the cache. | 
 | 7685 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | 
 | 7686 | # config.status only pays attention to the cache file if you give it the | 
 | 7687 | # --recheck option to rerun configure. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7688 | # | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7689 | EOF | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7690 | # The following way of writing the cache mishandles newlines in values, | 
 | 7691 | # but we know of no workaround that is simple, portable, and efficient. | 
 | 7692 | # So, don't put newlines in cache variables' values. | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7693 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
 | 7694 | # and sets the high bit in the cache file unless we assign to the vars. | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7695 | (set) 2>&1 | | 
 | 7696 |   case `(ac_space=' '; set | grep ac_space) 2>&1` in | 
 | 7697 |   *ac_space=\ *) | 
 | 7698 |     # `set' does not quote correctly, so add quotes (double-quote substitution | 
 | 7699 |     # turns \\\\ into \\, and sed turns \\ into \). | 
 | 7700 |     sed -n \ | 
 | 7701 |       -e "s/'/'\\\\''/g" \ | 
 | 7702 |       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | 
 | 7703 |     ;; | 
 | 7704 |   *) | 
 | 7705 |     # `set' quotes correctly as required by POSIX, so do not add quotes. | 
 | 7706 |     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | 
 | 7707 |     ;; | 
 | 7708 |   esac >> confcache | 
 | 7709 | if cmp -s $cache_file confcache; then | 
 | 7710 |   : | 
 | 7711 | else | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7712 |   if test -w $cache_file; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7713 |     echo "updating cache $cache_file" | 
 | 7714 |     cat confcache > $cache_file | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7715 |   else | 
 | 7716 |     echo "not updating unwritable cache $cache_file" | 
 | 7717 |   fi | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7718 | fi | 
| Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 7719 | rm -f confcache | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7720 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7721 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | 
 | 7722 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7723 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | 
 | 7724 | # Let make expand exec_prefix. | 
 | 7725 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | 
| Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 7726 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7727 | # Any assignment to VPATH causes Sun make to only execute | 
 | 7728 | # the first set of double-colon rules, so remove it if not needed. | 
 | 7729 | # If there is a colon in the path, we need to keep it. | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7730 | if test "x$srcdir" = x.; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7731 |   ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d' | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7732 | fi | 
 | 7733 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7734 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | 
 | 7735 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7736 | DEFS=-DHAVE_CONFIG_H | 
 | 7737 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7738 | # Without the "./", some shells look in PATH for config.status. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7739 | : ${CONFIG_STATUS=./config.status} | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7740 |  | 
 | 7741 | echo creating $CONFIG_STATUS | 
 | 7742 | rm -f $CONFIG_STATUS | 
 | 7743 | cat > $CONFIG_STATUS <<EOF | 
 | 7744 | #! /bin/sh | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7745 | # Generated automatically by configure. | 
 | 7746 | # Run this file to recreate the current configuration. | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7747 | # This directory was configured as follows, | 
 | 7748 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
 | 7749 | # | 
 | 7750 | # $0 $ac_configure_args | 
 | 7751 | # | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7752 | # Compiler output produced by configure, useful for debugging | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7753 | # configure, is in ./config.log if it exists. | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7754 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7755 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | 
 | 7756 | for ac_option | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 7757 | do | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7758 |   case "\$ac_option" in | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 7759 |   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7760 |     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | 
 | 7761 |     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | 
 | 7762 |   -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | 
 | 7763 |     echo "$CONFIG_STATUS generated by autoconf version 2.13" | 
 | 7764 |     exit 0 ;; | 
 | 7765 |   -help | --help | --hel | --he | --h) | 
 | 7766 |     echo "\$ac_cs_usage"; exit 0 ;; | 
 | 7767 |   *) echo "\$ac_cs_usage"; exit 1 ;; | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 7768 |   esac | 
 | 7769 | done | 
 | 7770 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7771 | ac_given_srcdir=$srcdir | 
 | 7772 | ac_given_INSTALL="$INSTALL" | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 7773 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7774 | trap 'rm -fr `echo "Makefile.pre Modules/Setup.config pyconfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 7775 | EOF | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7776 | cat >> $CONFIG_STATUS <<EOF | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 7777 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7778 | # Protect against being on the right side of a sed subst in config.status. | 
 | 7779 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | 
 | 7780 |  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | 
 | 7781 | $ac_vpsub | 
 | 7782 | $extrasub | 
 | 7783 | s%@SHELL@%$SHELL%g | 
 | 7784 | s%@CFLAGS@%$CFLAGS%g | 
 | 7785 | s%@CPPFLAGS@%$CPPFLAGS%g | 
 | 7786 | s%@CXXFLAGS@%$CXXFLAGS%g | 
 | 7787 | s%@FFLAGS@%$FFLAGS%g | 
 | 7788 | s%@DEFS@%$DEFS%g | 
 | 7789 | s%@LDFLAGS@%$LDFLAGS%g | 
 | 7790 | s%@LIBS@%$LIBS%g | 
 | 7791 | s%@exec_prefix@%$exec_prefix%g | 
 | 7792 | s%@prefix@%$prefix%g | 
 | 7793 | s%@program_transform_name@%$program_transform_name%g | 
 | 7794 | s%@bindir@%$bindir%g | 
 | 7795 | s%@sbindir@%$sbindir%g | 
 | 7796 | s%@libexecdir@%$libexecdir%g | 
 | 7797 | s%@datadir@%$datadir%g | 
 | 7798 | s%@sysconfdir@%$sysconfdir%g | 
 | 7799 | s%@sharedstatedir@%$sharedstatedir%g | 
 | 7800 | s%@localstatedir@%$localstatedir%g | 
 | 7801 | s%@libdir@%$libdir%g | 
 | 7802 | s%@includedir@%$includedir%g | 
 | 7803 | s%@oldincludedir@%$oldincludedir%g | 
 | 7804 | s%@infodir@%$infodir%g | 
 | 7805 | s%@mandir@%$mandir%g | 
 | 7806 | s%@VERSION@%$VERSION%g | 
 | 7807 | s%@CONFIG_ARGS@%$CONFIG_ARGS%g | 
 | 7808 | s%@PYTHONFRAMEWORK@%$PYTHONFRAMEWORK%g | 
 | 7809 | s%@PYTHONFRAMEWORKDIR@%$PYTHONFRAMEWORKDIR%g | 
 | 7810 | s%@PYTHONFRAMEWORKPREFIX@%$PYTHONFRAMEWORKPREFIX%g | 
 | 7811 | s%@PYTHONFRAMEWORKINSTALLDIR@%$PYTHONFRAMEWORKINSTALLDIR%g | 
 | 7812 | s%@MACHDEP@%$MACHDEP%g | 
 | 7813 | s%@SGI_ABI@%$SGI_ABI%g | 
 | 7814 | s%@CXX@%$CXX%g | 
 | 7815 | s%@MAINOBJ@%$MAINOBJ%g | 
 | 7816 | s%@CC@%$CC%g | 
 | 7817 | s%@CPP@%$CPP%g | 
 | 7818 | s%@EXEEXT@%$EXEEXT%g | 
 | 7819 | s%@BUILDEXEEXT@%$BUILDEXEEXT%g | 
 | 7820 | s%@LIBRARY@%$LIBRARY%g | 
 | 7821 | s%@LDLIBRARY@%$LDLIBRARY%g | 
 | 7822 | s%@DLLLIBRARY@%$DLLLIBRARY%g | 
 | 7823 | s%@BLDLIBRARY@%$BLDLIBRARY%g | 
 | 7824 | s%@LDLIBRARYDIR@%$LDLIBRARYDIR%g | 
 | 7825 | s%@LINKCC@%$LINKCC%g | 
 | 7826 | s%@RANLIB@%$RANLIB%g | 
 | 7827 | s%@AR@%$AR%g | 
 | 7828 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | 
 | 7829 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | 
 | 7830 | s%@INSTALL_DATA@%$INSTALL_DATA%g | 
 | 7831 | s%@LN@%$LN%g | 
 | 7832 | s%@OPT@%$OPT%g | 
 | 7833 | s%@LIBTOOL_CRUFT@%$LIBTOOL_CRUFT%g | 
 | 7834 | s%@SO@%$SO%g | 
 | 7835 | s%@LDSHARED@%$LDSHARED%g | 
 | 7836 | s%@BLDSHARED@%$BLDSHARED%g | 
 | 7837 | s%@CCSHARED@%$CCSHARED%g | 
 | 7838 | s%@LINKFORSHARED@%$LINKFORSHARED%g | 
 | 7839 | s%@CFLAGSFORSHARED@%$CFLAGSFORSHARED%g | 
 | 7840 | s%@USE_SIGNAL_MODULE@%$USE_SIGNAL_MODULE%g | 
 | 7841 | s%@SIGNAL_OBJS@%$SIGNAL_OBJS%g | 
 | 7842 | s%@USE_THREAD_MODULE@%$USE_THREAD_MODULE%g | 
 | 7843 | s%@LDLAST@%$LDLAST%g | 
 | 7844 | s%@DLINCLDIR@%$DLINCLDIR%g | 
 | 7845 | s%@DYNLOADFILE@%$DYNLOADFILE%g | 
 | 7846 | s%@MACHDEP_OBJS@%$MACHDEP_OBJS%g | 
 | 7847 | s%@LIBOBJS@%$LIBOBJS%g | 
 | 7848 | s%@HAVE_GETHOSTBYNAME_R_6_ARG@%$HAVE_GETHOSTBYNAME_R_6_ARG%g | 
 | 7849 | s%@HAVE_GETHOSTBYNAME_R_5_ARG@%$HAVE_GETHOSTBYNAME_R_5_ARG%g | 
 | 7850 | s%@HAVE_GETHOSTBYNAME_R_3_ARG@%$HAVE_GETHOSTBYNAME_R_3_ARG%g | 
 | 7851 | s%@HAVE_GETHOSTBYNAME_R@%$HAVE_GETHOSTBYNAME_R%g | 
 | 7852 | s%@HAVE_GETHOSTBYNAME@%$HAVE_GETHOSTBYNAME%g | 
 | 7853 | s%@LIBM@%$LIBM%g | 
 | 7854 | s%@LIBC@%$LIBC%g | 
 | 7855 | s%@UNICODE_OBJS@%$UNICODE_OBJS%g | 
 | 7856 | s%@THREADHEADERS@%$THREADHEADERS%g | 
 | 7857 | s%@SRCDIRS@%$SRCDIRS%g | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 7858 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 7859 | CEOF | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 7860 | EOF | 
 | 7861 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7862 | cat >> $CONFIG_STATUS <<\EOF | 
 | 7863 |  | 
 | 7864 | # Split the substitutions into bite-sized pieces for seds with | 
 | 7865 | # small command number limits, like on Digital OSF/1 and HP-UX. | 
 | 7866 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | 
 | 7867 | ac_file=1 # Number of current file. | 
 | 7868 | ac_beg=1 # First line for current file. | 
 | 7869 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | 
 | 7870 | ac_more_lines=: | 
 | 7871 | ac_sed_cmds="" | 
 | 7872 | while $ac_more_lines; do | 
 | 7873 |   if test $ac_beg -gt 1; then | 
 | 7874 |     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | 
 | 7875 |   else | 
 | 7876 |     sed "${ac_end}q" conftest.subs > conftest.s$ac_file | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 7877 |   fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7878 |   if test ! -s conftest.s$ac_file; then | 
 | 7879 |     ac_more_lines=false | 
 | 7880 |     rm -f conftest.s$ac_file | 
 | 7881 |   else | 
 | 7882 |     if test -z "$ac_sed_cmds"; then | 
 | 7883 |       ac_sed_cmds="sed -f conftest.s$ac_file" | 
 | 7884 |     else | 
 | 7885 |       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | 
 | 7886 |     fi | 
 | 7887 |     ac_file=`expr $ac_file + 1` | 
 | 7888 |     ac_beg=$ac_end | 
 | 7889 |     ac_end=`expr $ac_end + $ac_max_sed_cmds` | 
 | 7890 |   fi | 
 | 7891 | done | 
 | 7892 | if test -z "$ac_sed_cmds"; then | 
 | 7893 |   ac_sed_cmds=cat | 
 | 7894 | fi | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 7895 | EOF | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7896 |  | 
 | 7897 | cat >> $CONFIG_STATUS <<EOF | 
 | 7898 |  | 
 | 7899 | CONFIG_FILES=\${CONFIG_FILES-"Makefile.pre Modules/Setup.config"} | 
 | 7900 | EOF | 
 | 7901 | cat >> $CONFIG_STATUS <<\EOF | 
 | 7902 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 7903 |   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7904 |   case "$ac_file" in | 
 | 7905 |   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | 
 | 7906 |        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | 
 | 7907 |   *) ac_file_in="${ac_file}.in" ;; | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 7908 |   esac | 
 | 7909 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7910 |   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | 
 | 7911 |  | 
 | 7912 |   # Remove last slash and all that follows it.  Not all systems have dirname. | 
 | 7913 |   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7914 |   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7915 |     # The file is in a subdirectory. | 
 | 7916 |     test ! -d "$ac_dir" && mkdir "$ac_dir" | 
 | 7917 |     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7918 |     # A "../" for each directory in $ac_dir_suffix. | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7919 |     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7920 |   else | 
 | 7921 |     ac_dir_suffix= ac_dots= | 
 | 7922 |   fi | 
 | 7923 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7924 |   case "$ac_given_srcdir" in | 
 | 7925 |   .)  srcdir=. | 
 | 7926 |       if test -z "$ac_dots"; then top_srcdir=. | 
 | 7927 |       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | 
 | 7928 |   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7929 |   *) # Relative path. | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7930 |     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | 
 | 7931 |     top_srcdir="$ac_dots$ac_given_srcdir" ;; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7932 |   esac | 
 | 7933 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7934 |   case "$ac_given_INSTALL" in | 
 | 7935 |   [/$]*) INSTALL="$ac_given_INSTALL" ;; | 
 | 7936 |   *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | 
| Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 7937 |   esac | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7938 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7939 |   echo creating "$ac_file" | 
 | 7940 |   rm -f "$ac_file" | 
 | 7941 |   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | 
 | 7942 |   case "$ac_file" in | 
 | 7943 |   *Makefile*) ac_comsub="1i\\ | 
 | 7944 | # $configure_input" ;; | 
 | 7945 |   *) ac_comsub= ;; | 
 | 7946 |   esac | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7947 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7948 |   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | 
 | 7949 |   sed -e "$ac_comsub | 
 | 7950 | s%@configure_input@%$configure_input%g | 
 | 7951 | s%@srcdir@%$srcdir%g | 
 | 7952 | s%@top_srcdir@%$top_srcdir%g | 
 | 7953 | s%@INSTALL@%$INSTALL%g | 
 | 7954 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | 
 | 7955 | fi; done | 
 | 7956 | rm -f conftest.s* | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 7957 |  | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7958 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | 
 | 7959 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7960 | # | 
 | 7961 | # ac_d sets the value in "#define NAME VALUE" lines. | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7962 | ac_dA='s%^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)' | 
 | 7963 | ac_dB='\([ 	][ 	]*\)[^ 	]*%\1#\2' | 
 | 7964 | ac_dC='\3' | 
 | 7965 | ac_dD='%g' | 
 | 7966 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | 
 | 7967 | ac_uA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)' | 
 | 7968 | ac_uB='\([ 	]\)%\1#\2define\3' | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7969 | ac_uC=' ' | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7970 | ac_uD='\4%g' | 
 | 7971 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | 
 | 7972 | ac_eA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)' | 
 | 7973 | ac_eB='$%\1#\2define\3' | 
 | 7974 | ac_eC=' ' | 
 | 7975 | ac_eD='%g' | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7976 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7977 | if test "${CONFIG_HEADERS+set}" != set; then | 
 | 7978 | EOF | 
 | 7979 | cat >> $CONFIG_STATUS <<EOF | 
 | 7980 |   CONFIG_HEADERS="pyconfig.h" | 
 | 7981 | EOF | 
 | 7982 | cat >> $CONFIG_STATUS <<\EOF | 
 | 7983 | fi | 
 | 7984 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 7985 |   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7986 |   case "$ac_file" in | 
 | 7987 |   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | 
 | 7988 |        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | 
 | 7989 |   *) ac_file_in="${ac_file}.in" ;; | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7990 |   esac | 
 | 7991 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7992 |   echo creating $ac_file | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 7993 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7994 |   rm -f conftest.frag conftest.in conftest.out | 
 | 7995 |   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | 
 | 7996 |   cat $ac_file_inputs > conftest.in | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7997 |  | 
 | 7998 | EOF | 
 | 7999 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8000 | # Transform confdefs.h into a sed script conftest.vals that substitutes | 
 | 8001 | # the proper values into config.h.in to produce config.h.  And first: | 
 | 8002 | # Protect against being on the right side of a sed subst in config.status. | 
 | 8003 | # Protect against being in an unquoted here document in config.status. | 
 | 8004 | rm -f conftest.vals | 
 | 8005 | cat > conftest.hdr <<\EOF | 
 | 8006 | s/[\\&%]/\\&/g | 
 | 8007 | s%[\\$`]%\\&%g | 
 | 8008 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | 
 | 8009 | s%ac_d%ac_u%gp | 
 | 8010 | s%ac_u%ac_e%gp | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8011 | EOF | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8012 | sed -n -f conftest.hdr confdefs.h > conftest.vals | 
 | 8013 | rm -f conftest.hdr | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8014 |  | 
 | 8015 | # This sed command replaces #undef with comments.  This is necessary, for | 
 | 8016 | # example, in the case of _POSIX_SOURCE, which is predefined and required | 
 | 8017 | # on some systems where configure will not decide to define it. | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8018 | cat >> conftest.vals <<\EOF | 
 | 8019 | s%^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8020 | EOF | 
 | 8021 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8022 | # Break up conftest.vals because some shells have a limit on | 
 | 8023 | # the size of here documents, and old seds have small limits too. | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8024 |  | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 8025 | rm -f conftest.tail | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8026 | while : | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 8027 | do | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8028 |   ac_lines=`grep -c . conftest.vals` | 
 | 8029 |   # grep -c gives empty output for an empty file on some AIX systems. | 
 | 8030 |   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | 
 | 8031 |   # Write a limited-size here document to conftest.frag. | 
 | 8032 |   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | 
 | 8033 |   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 8034 |   echo 'CEOF | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8035 |   sed -f conftest.frag conftest.in > conftest.out | 
 | 8036 |   rm -f conftest.in | 
 | 8037 |   mv conftest.out conftest.in | 
 | 8038 | ' >> $CONFIG_STATUS | 
 | 8039 |   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | 
 | 8040 |   rm -f conftest.vals | 
 | 8041 |   mv conftest.tail conftest.vals | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 8042 | done | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8043 | rm -f conftest.vals | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 8044 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8045 | cat >> $CONFIG_STATUS <<\EOF | 
 | 8046 |   rm -f conftest.frag conftest.h | 
 | 8047 |   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h | 
 | 8048 |   cat conftest.in >> conftest.h | 
 | 8049 |   rm -f conftest.in | 
 | 8050 |   if cmp -s $ac_file conftest.h 2>/dev/null; then | 
 | 8051 |     echo "$ac_file is unchanged" | 
 | 8052 |     rm -f conftest.h | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 8053 |   else | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8054 |     # Remove last slash and all that follows it.  Not all systems have dirname. | 
 | 8055 |       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 8056 |       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8057 |       # The file is in a subdirectory. | 
 | 8058 |       test ! -d "$ac_dir" && mkdir "$ac_dir" | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 8059 |     fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8060 |     rm -f $ac_file | 
 | 8061 |     mv conftest.h $ac_file | 
| Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 8062 |   fi | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8063 | fi; done | 
 | 8064 |  | 
| Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 8065 | EOF | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8066 | cat >> $CONFIG_STATUS <<EOF | 
| Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 8067 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8068 | EOF | 
 | 8069 | cat >> $CONFIG_STATUS <<\EOF | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8070 |  | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8071 | exit 0 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8072 | EOF | 
| Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8073 | chmod +x $CONFIG_STATUS | 
| Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8074 | rm -fr confdefs* $ac_clean_files | 
 | 8075 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | 
| Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8076 |  | 
| Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 8077 |  | 
 | 8078 | echo "creating Setup" | 
 | 8079 | if test ! -f Modules/Setup | 
 | 8080 | then | 
 | 8081 | 	cp $srcdir/Modules/Setup.dist Modules/Setup | 
 | 8082 | fi | 
 | 8083 |  | 
 | 8084 | echo "creating Setup.local" | 
 | 8085 | if test ! -f Modules/Setup.local | 
 | 8086 | then | 
 | 8087 | 	echo "# Edit this file for local setup changes" >Modules/Setup.local | 
 | 8088 | fi | 
 | 8089 |  | 
 | 8090 | echo "creating Makefile" | 
 | 8091 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ | 
 | 8092 | 			-s Modules Modules/Setup.config \ | 
| Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 8093 | 			Modules/Setup.local Modules/Setup | 
| Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 8094 | mv config.c Modules |