Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3 | # From configure.in Revision: 1.21 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +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. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 6 | # Generated automatically using autoconf version 2.3 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 7 | # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc. |
| 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 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12 | # Defaults: |
| 13 | ac_help= |
| 14 | ac_default_prefix=/usr/local |
| 15 | # Any additions from configure.in: |
| 16 | ac_help="$ac_help |
| 17 | --without-gcc never use gcc" |
| 18 | ac_help="$ac_help |
| 19 | --with-readline=DIRECTORY GNU readline" |
| 20 | ac_help="$ac_help |
| 21 | --with-thread[=DIRECTORY] make interpreter thread-safe" |
| 22 | ac_help="$ac_help |
| 23 | --with-sgi-dl=DIRECTORY IRIX 4 dynamic linking" |
| 24 | ac_help="$ac_help |
| 25 | --with-dl-dld=DL_DIR,DLD_DIR GNU dynamic linking" |
| 26 | ac_help="$ac_help |
| 27 | --with-libm=STRING math library" |
| 28 | ac_help="$ac_help |
| 29 | --with-libc=STRING C library" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 30 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 31 | # Initialize some variables set by options. |
| 32 | # The variables have the same names as the options, with |
| 33 | # dashes changed to underlines. |
| 34 | build=NONE |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 35 | cache_file=./config.cache |
| 36 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 37 | host=NONE |
| 38 | no_create= |
| 39 | nonopt=NONE |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 40 | no_recursion= |
| 41 | prefix=NONE |
| 42 | program_prefix=NONE |
| 43 | program_suffix=NONE |
| 44 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 45 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 46 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 47 | srcdir= |
| 48 | target=NONE |
| 49 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 50 | x_includes=NONE |
| 51 | x_libraries=NONE |
| 52 | |
| 53 | # Initialize some other variables. |
| 54 | subdirs= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 55 | |
| 56 | ac_prev= |
| 57 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 58 | do |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 59 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 60 | # If the previous option needs an argument, assign it. |
| 61 | if test -n "$ac_prev"; then |
| 62 | eval "$ac_prev=\$ac_option" |
| 63 | ac_prev= |
| 64 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 65 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 66 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 67 | case "$ac_option" in |
| 68 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
| 69 | *) ac_optarg= ;; |
| 70 | esac |
| 71 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 72 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 73 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 74 | case "$ac_option" in |
| 75 | |
| 76 | -build | --build | --buil | --bui | --bu | --b) |
| 77 | ac_prev=build ;; |
| 78 | -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*) |
| 79 | build="$ac_optarg" ;; |
| 80 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 81 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 82 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 83 | ac_prev=cache_file ;; |
| 84 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 85 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 86 | cache_file="$ac_optarg" ;; |
| 87 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 88 | -disable-* | --disable-*) |
| 89 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 90 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 91 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 92 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 93 | fi |
| 94 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 95 | eval "enable_${ac_feature}=no" ;; |
| 96 | |
| 97 | -enable-* | --enable-*) |
| 98 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 99 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 100 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 101 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 102 | fi |
| 103 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 104 | case "$ac_option" in |
| 105 | *=*) ;; |
| 106 | *) ac_optarg=yes ;; |
| 107 | esac |
| 108 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
| 109 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 110 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 111 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 112 | | --exec | --exe | --ex) |
| 113 | ac_prev=exec_prefix ;; |
| 114 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 115 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 116 | | --exec=* | --exe=* | --ex=*) |
| 117 | exec_prefix="$ac_optarg" ;; |
| 118 | |
| 119 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 120 | # Obsolete; use --with-gas. |
| 121 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 122 | |
| 123 | -help | --help | --hel | --he) |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 124 | # Omit some internal or obsolete options to make the list less imposing. |
| 125 | # This message is too long to be a string in the A/UX 3.1 sh. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 126 | cat << EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 127 | Usage: configure [options] [host] |
| 128 | Options: [defaults in brackets after descriptions] |
| 129 | Configuration: |
| 130 | --cache-file=FILE cache test results in FILE |
| 131 | --help print this message |
| 132 | --no-create do not create output files |
| 133 | --quiet, --silent do not print \`checking...' messages |
| 134 | --version print the version of autoconf that created configure |
| 135 | Directory and file names: |
| 136 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 137 | [$ac_default_prefix] |
| 138 | --exec-prefix=PREFIX install architecture-dependent files in PREFIX |
| 139 | [same as prefix] |
| 140 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
| 141 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 142 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 143 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 144 | Host type: |
| 145 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
| 146 | --host=HOST configure for HOST [guessed] |
| 147 | --target=TARGET configure for TARGET [TARGET=HOST] |
| 148 | Features and packages: |
| 149 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 150 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 151 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 152 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 153 | --x-includes=DIR X include files are in DIR |
| 154 | --x-libraries=DIR X library files are in DIR |
| 155 | --enable and --with options recognized:$ac_help |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 156 | EOF |
| 157 | exit 0 ;; |
| 158 | |
| 159 | -host | --host | --hos | --ho) |
| 160 | ac_prev=host ;; |
| 161 | -host=* | --host=* | --hos=* | --ho=*) |
| 162 | host="$ac_optarg" ;; |
| 163 | |
| 164 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 165 | # Obsolete; use --without-fp. |
| 166 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 167 | |
| 168 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 169 | | --no-cr | --no-c) |
| 170 | no_create=yes ;; |
| 171 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 172 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 173 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 174 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 175 | |
| 176 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 177 | ac_prev=prefix ;; |
| 178 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 179 | prefix="$ac_optarg" ;; |
| 180 | |
| 181 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 182 | | --program-pre | --program-pr | --program-p) |
| 183 | ac_prev=program_prefix ;; |
| 184 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 185 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 186 | program_prefix="$ac_optarg" ;; |
| 187 | |
| 188 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 189 | | --program-suf | --program-su | --program-s) |
| 190 | ac_prev=program_suffix ;; |
| 191 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 192 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 193 | program_suffix="$ac_optarg" ;; |
| 194 | |
| 195 | -program-transform-name | --program-transform-name \ |
| 196 | | --program-transform-nam | --program-transform-na \ |
| 197 | | --program-transform-n | --program-transform- \ |
| 198 | | --program-transform | --program-transfor \ |
| 199 | | --program-transfo | --program-transf \ |
| 200 | | --program-trans | --program-tran \ |
| 201 | | --progr-tra | --program-tr | --program-t) |
| 202 | ac_prev=program_transform_name ;; |
| 203 | -program-transform-name=* | --program-transform-name=* \ |
| 204 | | --program-transform-nam=* | --program-transform-na=* \ |
| 205 | | --program-transform-n=* | --program-transform-=* \ |
| 206 | | --program-transform=* | --program-transfor=* \ |
| 207 | | --program-transfo=* | --program-transf=* \ |
| 208 | | --program-trans=* | --program-tran=* \ |
| 209 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 210 | program_transform_name="$ac_optarg" ;; |
| 211 | |
| 212 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 213 | | -silent | --silent | --silen | --sile | --sil) |
| 214 | silent=yes ;; |
| 215 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 216 | -site | --site | --sit) |
| 217 | ac_prev=site ;; |
| 218 | -site=* | --site=* | --sit=*) |
| 219 | site="$ac_optarg" ;; |
| 220 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 221 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 222 | ac_prev=srcdir ;; |
| 223 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 224 | srcdir="$ac_optarg" ;; |
| 225 | |
| 226 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 227 | ac_prev=target ;; |
| 228 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 229 | target="$ac_optarg" ;; |
| 230 | |
| 231 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 232 | verbose=yes ;; |
| 233 | |
| 234 | -version | --version | --versio | --versi | --vers) |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 235 | echo "configure generated by autoconf version 2.3" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 236 | exit 0 ;; |
| 237 | |
| 238 | -with-* | --with-*) |
| 239 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 240 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 241 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 242 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 243 | fi |
| 244 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 245 | case "$ac_option" in |
| 246 | *=*) ;; |
| 247 | *) ac_optarg=yes ;; |
| 248 | esac |
| 249 | eval "with_${ac_package}='$ac_optarg'" ;; |
| 250 | |
| 251 | -without-* | --without-*) |
| 252 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 253 | # Reject names that are not valid shell variable names. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 254 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 255 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 256 | fi |
| 257 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 258 | eval "with_${ac_package}=no" ;; |
| 259 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 260 | --x) |
| 261 | # Obsolete; use --with-x. |
| 262 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 263 | |
| 264 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 265 | | --x-incl | --x-inc | --x-in | --x-i) |
| 266 | ac_prev=x_includes ;; |
| 267 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 268 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 269 | x_includes="$ac_optarg" ;; |
| 270 | |
| 271 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 272 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 273 | ac_prev=x_libraries ;; |
| 274 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 275 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 276 | x_libraries="$ac_optarg" ;; |
| 277 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 278 | -*) { 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] | 279 | ;; |
| 280 | |
| 281 | *) |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 282 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 283 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 284 | fi |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 285 | if test "x$nonopt" != xNONE; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 286 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 287 | fi |
| 288 | nonopt="$ac_option" |
| 289 | ;; |
| 290 | |
| 291 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 292 | done |
| 293 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 294 | if test -n "$ac_prev"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 295 | { 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] | 296 | fi |
| 297 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 298 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 299 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 300 | # File descriptor usage: |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 301 | # 0 standard input |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 302 | # 1 file creation |
| 303 | # 2 errors and warnings |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 304 | # 3 some systems may open it to /dev/tty |
| 305 | # 4 used on the Kubota Titan |
| 306 | # 6 checking for... messages and results |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 307 | # 5 compiler messages saved in config.log |
| 308 | if test "$silent" = yes; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 309 | exec 6>/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 310 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 311 | exec 6>&1 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 312 | fi |
| 313 | exec 5>./config.log |
| 314 | |
| 315 | echo "\ |
| 316 | This file contains any messages produced by compilers while |
| 317 | running configure, to aid debugging if configure makes a mistake. |
| 318 | " 1>&5 |
| 319 | |
| 320 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 321 | # Also quote any args containing shell metacharacters. |
| 322 | ac_configure_args= |
| 323 | for ac_arg |
| 324 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 325 | case "$ac_arg" in |
| 326 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 327 | | --no-cr | --no-c) ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 328 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 329 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 330 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
| 331 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 332 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 333 | esac |
| 334 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 335 | |
| 336 | # NLS nuisances. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 337 | # Only set LANG and LC_ALL to C if already set. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 338 | # These must not be set unconditionally because not all systems understand |
| 339 | # e.g. LANG=C (notably SCO). |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 340 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
| 341 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 342 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 343 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 344 | rm -rf conftest* confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 345 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 346 | echo > confdefs.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 347 | |
| 348 | # A filename unique to this package, relative to the directory that |
| 349 | # configure is in, which we can look for to find out if srcdir is correct. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 350 | ac_unique_file=Include/object.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 351 | |
| 352 | # Find the source files, if location was not specified. |
| 353 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 354 | ac_srcdir_defaulted=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 355 | # Try the directory containing this script, then its parent. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 356 | ac_prog=$0 |
| 357 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
| 358 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| 359 | srcdir=$ac_confdir |
| 360 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 361 | srcdir=.. |
| 362 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 363 | else |
| 364 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 365 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 366 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 367 | if test "$ac_srcdir_defaulted" = yes; then |
| 368 | { 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] | 369 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 370 | { 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] | 371 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 372 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 373 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
| 374 | |
| 375 | # Prefer explicitly selected file to automatically selected ones. |
| 376 | if test -z "$CONFIG_SITE"; then |
| 377 | if test "x$prefix" != xNONE; then |
| 378 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 379 | else |
| 380 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 381 | fi |
| 382 | fi |
| 383 | for ac_site_file in $CONFIG_SITE; do |
| 384 | if test -r "$ac_site_file"; then |
| 385 | echo "loading site script $ac_site_file" |
| 386 | . "$ac_site_file" |
| 387 | fi |
| 388 | done |
| 389 | |
| 390 | if test -r "$cache_file"; then |
| 391 | echo "loading cache $cache_file" |
| 392 | . $cache_file |
| 393 | else |
| 394 | echo "creating cache $cache_file" |
| 395 | > $cache_file |
| 396 | fi |
| 397 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 398 | ac_ext=c |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 399 | # 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] | 400 | ac_cpp='$CPP $CPPFLAGS' |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 401 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5' |
| 402 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 403 | |
| 404 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
| 405 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
| 406 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
| 407 | ac_n= ac_c=' |
| 408 | ' ac_t=' ' |
| 409 | else |
| 410 | ac_n=-n ac_c= ac_t= |
| 411 | fi |
| 412 | else |
| 413 | ac_n= ac_c='\c' ac_t= |
| 414 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 415 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 416 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 417 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 418 | |
| 419 | # checks for alternative programs |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 420 | echo $ac_n "checking for --without-gcc""... $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 421 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 422 | withval="$with_gcc" |
| 423 | if test -n "$withval"; then |
| 424 | |
| 425 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 426 | no) CC=cc |
| 427 | without_gcc=yes;; |
| 428 | yes) CC=gcc |
| 429 | without_gcc=no;; |
| 430 | *) CC=$withval |
| 431 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 432 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 433 | else |
| 434 | without_gcc=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 435 | fi |
| 436 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 437 | echo "$ac_t""$without_gcc" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 438 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 439 | # If the user switches compilers, we can't believe the cache |
| 440 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 441 | then |
| 442 | { echo "configure: error: cached CC is different -- throw away $cache_file |
| 443 | (it is also a good idea to do 'make clean' before compiling)" 1>&2; exit 1; } |
| 444 | fi |
| 445 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 446 | # Extract the first word of "gcc", so it can be a program name with args. |
| 447 | set dummy gcc; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 448 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 449 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 450 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 451 | else |
| 452 | if test -n "$CC"; then |
| 453 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 454 | else |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 455 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 456 | for ac_dir in $PATH; do |
| 457 | test -z "$ac_dir" && ac_dir=. |
| 458 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 459 | ac_cv_prog_CC="gcc" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 460 | break |
| 461 | fi |
| 462 | done |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 463 | IFS="$ac_save_ifs" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 464 | test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 465 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 466 | fi |
| 467 | CC="$ac_cv_prog_CC" |
| 468 | if test -n "$CC"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 469 | echo "$ac_t""$CC" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 470 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 471 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 472 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 473 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 474 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 475 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
| 476 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
| 477 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 478 | else |
| 479 | cat > conftest.c <<EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 480 | #ifdef __GNUC__ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 481 | yes; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 482 | #endif |
| 483 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 484 | if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then |
| 485 | ac_cv_prog_gcc=yes |
| 486 | else |
| 487 | ac_cv_prog_gcc=no |
| 488 | fi |
| 489 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 490 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 491 | if test $ac_cv_prog_gcc = yes; then |
| 492 | GCC=yes |
| 493 | if test "${CFLAGS+set}" != set; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 494 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
| 495 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then |
| 496 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 497 | else |
| 498 | echo 'void f(){}' > conftest.c |
| 499 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
| 500 | ac_cv_prog_gcc_g=yes |
| 501 | else |
| 502 | ac_cv_prog_gcc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 503 | fi |
| 504 | rm -f conftest* |
| 505 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 506 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 507 | echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 508 | if test $ac_cv_prog_gcc_g = yes; then |
| 509 | CFLAGS="-g -O" |
| 510 | else |
| 511 | CFLAGS="-O" |
| 512 | fi |
| 513 | fi |
| 514 | else |
| 515 | GCC= |
| 516 | test "${CFLAGS+set}" = set || CFLAGS="-g" |
| 517 | fi |
| 518 | |
| 519 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 520 | set dummy ranlib; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 521 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 522 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 523 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 524 | else |
| 525 | if test -n "$RANLIB"; then |
| 526 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 527 | else |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 528 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 529 | for ac_dir in $PATH; do |
| 530 | test -z "$ac_dir" && ac_dir=. |
| 531 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 532 | ac_cv_prog_RANLIB="ranlib" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 533 | break |
| 534 | fi |
| 535 | done |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 536 | IFS="$ac_save_ifs" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 537 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 538 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 539 | fi |
| 540 | RANLIB="$ac_cv_prog_RANLIB" |
| 541 | if test -n "$RANLIB"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 542 | echo "$ac_t""$RANLIB" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 543 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 544 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 545 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 546 | |
| 547 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 548 | for ac_prog in ar aal |
| 549 | do |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 550 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 551 | set dummy $ac_prog; ac_word=$2 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 552 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 553 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
| 554 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 555 | else |
| 556 | if test -n "$AR"; then |
| 557 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 558 | else |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 559 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 560 | for ac_dir in $PATH; do |
| 561 | test -z "$ac_dir" && ac_dir=. |
| 562 | if test -f $ac_dir/$ac_word; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 563 | ac_cv_prog_AR="$ac_prog" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 564 | break |
| 565 | fi |
| 566 | done |
| 567 | IFS="$ac_save_ifs" |
| 568 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 569 | fi |
| 570 | AR="$ac_cv_prog_AR" |
| 571 | if test -n "$AR"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 572 | echo "$ac_t""$AR" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 573 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 574 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 575 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 576 | |
| 577 | test -n "$AR" && break |
| 578 | done |
| 579 | test -n "$AR" || AR="ar" |
| 580 | |
| 581 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 582 | |
| 583 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 584 | # Install just never works :-( |
| 585 | if test -z "$INSTALL" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 586 | then |
| 587 | INSTALL=cp |
| 588 | INSTALL_PROGRAM=cp |
| 589 | INSTALL_DATA=cp |
| 590 | else |
| 591 | INSTALL_PROGRAM="$INSTALL" |
| 592 | INSTALL_DATA="$INSTALL -m 644" |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 593 | fi |
| 594 | |
| 595 | # Optimizer/debugger flags passed between Makefiles |
| 596 | if test -z "$OPT" |
| 597 | then OPT=-O |
| 598 | fi |
| 599 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 600 | # checks for UNIX variants that set C preprocessor variables |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 601 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 602 | # On Suns, sometimes $CPP names a directory. |
| 603 | if test -n "$CPP" && test -d "$CPP"; then |
| 604 | CPP= |
| 605 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 606 | if test -z "$CPP"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 607 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
| 608 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 609 | else |
| 610 | # This must be in double quotes, not single quotes, because CPP may get |
| 611 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 612 | CPP="${CC-cc} -E" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 613 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 614 | # not just through cpp. |
| 615 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 616 | #line 617 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 617 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 618 | #include <assert.h> |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 619 | Syntax Error |
| 620 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 621 | eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 622 | ac_err=`grep -v '^ *+' conftest.out` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 623 | if test -z "$ac_err"; then |
| 624 | : |
| 625 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 626 | echo "$ac_err" >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 627 | rm -rf conftest* |
| 628 | CPP="${CC-cc} -E -traditional-cpp" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 629 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 630 | #line 631 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 631 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 632 | #include <assert.h> |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 633 | Syntax Error |
| 634 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 635 | eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 636 | ac_err=`grep -v '^ *+' conftest.out` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 637 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 638 | : |
| 639 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 640 | echo "$ac_err" >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 641 | rm -rf conftest* |
| 642 | CPP=/lib/cpp |
| 643 | fi |
| 644 | rm -f conftest* |
| 645 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 646 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 647 | ac_cv_prog_CPP="$CPP" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 648 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 649 | fi |
| 650 | CPP="$ac_cv_prog_CPP" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 651 | echo "$ac_t""$CPP" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 652 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 653 | echo $ac_n "checking for AIX""... $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 654 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 655 | #line 656 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 656 | #include "confdefs.h" |
| 657 | #ifdef _AIX |
| 658 | yes |
| 659 | #endif |
| 660 | |
| 661 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 662 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 663 | egrep "yes" >/dev/null 2>&1; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 664 | rm -rf conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 665 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 666 | #define _ALL_SOURCE 1 |
| 667 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 668 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 669 | else |
| 670 | rm -rf conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 671 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 672 | fi |
| 673 | rm -f conftest* |
| 674 | |
| 675 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 676 | ac_safe=`echo "minix/config.h" | tr './\055' '___'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 677 | echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 |
| 678 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 679 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 680 | else |
| 681 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 682 | #line 683 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 683 | #include "confdefs.h" |
| 684 | #include <minix/config.h> |
| 685 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 686 | eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 687 | ac_err=`grep -v '^ *+' conftest.out` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 688 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 689 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 690 | eval "ac_cv_header_$ac_safe=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 691 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 692 | echo "$ac_err" >&5 |
| 693 | rm -rf conftest* |
| 694 | eval "ac_cv_header_$ac_safe=no" |
| 695 | fi |
| 696 | rm -f conftest* |
| 697 | fi |
| 698 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 699 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 700 | MINIX=yes |
| 701 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 702 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 703 | MINIX= |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 704 | fi |
| 705 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 706 | if test "$MINIX" = yes; then |
| 707 | cat >> confdefs.h <<\EOF |
| 708 | #define _POSIX_SOURCE 1 |
| 709 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 710 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 711 | cat >> confdefs.h <<\EOF |
| 712 | #define _POSIX_1_SOURCE 2 |
| 713 | EOF |
| 714 | |
| 715 | cat >> confdefs.h <<\EOF |
| 716 | #define _MINIX 1 |
| 717 | EOF |
| 718 | |
| 719 | fi |
| 720 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 721 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 722 | # checks for header files |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 723 | # If we cannot run a trivial program, we must be cross compiling. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 724 | echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6 |
| 725 | if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then |
| 726 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 727 | else |
| 728 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 729 | ac_cv_c_cross=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 730 | else |
| 731 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 732 | #line 733 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 733 | #include "confdefs.h" |
| 734 | main(){return(0);} |
| 735 | EOF |
| 736 | eval $ac_link |
| 737 | if test -s conftest && (./conftest; exit) 2>/dev/null; then |
| 738 | ac_cv_c_cross=no |
| 739 | else |
| 740 | ac_cv_c_cross=yes |
| 741 | fi |
| 742 | fi |
| 743 | rm -fr conftest* |
| 744 | fi |
| 745 | cross_compiling=$ac_cv_c_cross |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 746 | echo "$ac_t""$ac_cv_c_cross" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 747 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 748 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
| 749 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
| 750 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 751 | else |
| 752 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 753 | #line 754 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 754 | #include "confdefs.h" |
| 755 | #include <stdlib.h> |
| 756 | #include <stdarg.h> |
| 757 | #include <string.h> |
| 758 | #include <float.h> |
| 759 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 760 | eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 761 | ac_err=`grep -v '^ *+' conftest.out` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 762 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 763 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 764 | ac_cv_header_stdc=yes |
| 765 | else |
| 766 | echo "$ac_err" >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 767 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 768 | ac_cv_header_stdc=no |
| 769 | fi |
| 770 | rm -f conftest* |
| 771 | |
| 772 | if test $ac_cv_header_stdc = yes; then |
| 773 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 774 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 775 | #line 776 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 776 | #include "confdefs.h" |
| 777 | #include <string.h> |
| 778 | EOF |
| 779 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 780 | egrep "memchr" >/dev/null 2>&1; then |
| 781 | : |
| 782 | else |
| 783 | rm -rf conftest* |
| 784 | ac_cv_header_stdc=no |
| 785 | fi |
| 786 | rm -f conftest* |
| 787 | |
| 788 | fi |
| 789 | |
| 790 | if test $ac_cv_header_stdc = yes; then |
| 791 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 792 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 793 | #line 794 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 794 | #include "confdefs.h" |
| 795 | #include <stdlib.h> |
| 796 | EOF |
| 797 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 798 | egrep "free" >/dev/null 2>&1; then |
| 799 | : |
| 800 | else |
| 801 | rm -rf conftest* |
| 802 | ac_cv_header_stdc=no |
| 803 | fi |
| 804 | rm -f conftest* |
| 805 | |
| 806 | fi |
| 807 | |
| 808 | if test $ac_cv_header_stdc = yes; then |
| 809 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 810 | if test "$cross_compiling" = yes; then |
| 811 | ac_cv_header_stdc=no |
| 812 | else |
| 813 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 814 | #line 815 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 815 | #include "confdefs.h" |
| 816 | #include <ctype.h> |
| 817 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 818 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 819 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 820 | int main () { int i; for (i = 0; i < 256; i++) |
| 821 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
| 822 | exit (0); } |
| 823 | |
| 824 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 825 | eval $ac_link |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 826 | if test -s conftest && (./conftest; exit) 2>/dev/null; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 827 | : |
| 828 | else |
| 829 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 830 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 831 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 832 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 833 | fi |
| 834 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 835 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 836 | if test $ac_cv_header_stdc = yes; then |
| 837 | cat >> confdefs.h <<\EOF |
| 838 | #define STDC_HEADERS 1 |
| 839 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 840 | |
| 841 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 842 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 843 | for ac_hdr in dlfcn.h fcntl.h limits.h signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h sys/audioio.h sys/param.h sys/select.h sys/time.h sys/times.h sys/un.h sys/utsname.h sys/wait.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 844 | do |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 845 | ac_safe=`echo "$ac_hdr" | tr './\055' '___'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 846 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 847 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 848 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 849 | else |
| 850 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 851 | #line 852 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 852 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 853 | #include <$ac_hdr> |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 854 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 855 | eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 856 | ac_err=`grep -v '^ *+' conftest.out` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 857 | if test -z "$ac_err"; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 858 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 859 | eval "ac_cv_header_$ac_safe=yes" |
| 860 | else |
| 861 | echo "$ac_err" >&5 |
| 862 | rm -rf conftest* |
| 863 | eval "ac_cv_header_$ac_safe=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 864 | fi |
| 865 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 866 | fi |
| 867 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 868 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 869 | ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'` |
| 870 | cat >> confdefs.h <<EOF |
| 871 | #define $ac_tr_hdr 1 |
| 872 | EOF |
| 873 | |
| 874 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 875 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 876 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 877 | done |
| 878 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 879 | ac_header_dirent=no |
| 880 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h |
| 881 | do |
| 882 | ac_safe=`echo "$ac_hdr" | tr './\055' '___'` |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 883 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 |
| 884 | if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then |
| 885 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 886 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 887 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 888 | #line 889 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 889 | #include "confdefs.h" |
| 890 | #include <sys/types.h> |
| 891 | #include <$ac_hdr> |
| 892 | int main() { return 0; } |
| 893 | int t() { |
| 894 | DIR *dirp = 0; |
| 895 | ; return 0; } |
| 896 | EOF |
| 897 | if eval $ac_compile; then |
| 898 | rm -rf conftest* |
| 899 | eval "ac_cv_header_dirent_$ac_safe=yes" |
| 900 | else |
| 901 | rm -rf conftest* |
| 902 | eval "ac_cv_header_dirent_$ac_safe=no" |
| 903 | fi |
| 904 | rm -f conftest* |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 905 | |
| 906 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 907 | if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 908 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 909 | ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'` |
| 910 | cat >> confdefs.h <<EOF |
| 911 | #define $ac_tr_hdr 1 |
| 912 | EOF |
| 913 | ac_header_dirent=$ac_hdr; break |
| 914 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 915 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 916 | fi |
| 917 | done |
| 918 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 919 | if test $ac_header_dirent = dirent.h; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 920 | echo $ac_n "checking for -ldir""... $ac_c" 1>&6 |
| 921 | if eval "test \"`echo '$''{'ac_cv_lib_dir'+set}'`\" = set"; then |
| 922 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 923 | else |
| 924 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 925 | LIBS="-ldir $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 926 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 927 | #line 928 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 928 | #include "confdefs.h" |
| 929 | |
| 930 | int main() { return 0; } |
| 931 | int t() { |
| 932 | opendir() |
| 933 | ; return 0; } |
| 934 | EOF |
| 935 | if eval $ac_link; then |
| 936 | rm -rf conftest* |
| 937 | eval "ac_cv_lib_dir=yes" |
| 938 | else |
| 939 | rm -rf conftest* |
| 940 | eval "ac_cv_lib_dir=no" |
| 941 | fi |
| 942 | rm -f conftest* |
| 943 | LIBS="$ac_save_LIBS" |
| 944 | |
| 945 | fi |
| 946 | if eval "test \"`echo '$ac_cv_lib_'dir`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 947 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 948 | LIBS="$LIBS -ldir" |
| 949 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 950 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 951 | fi |
| 952 | |
| 953 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 954 | echo $ac_n "checking for -lx""... $ac_c" 1>&6 |
| 955 | if eval "test \"`echo '$''{'ac_cv_lib_x'+set}'`\" = set"; then |
| 956 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 957 | else |
| 958 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 959 | LIBS="-lx $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 960 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 961 | #line 962 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 962 | #include "confdefs.h" |
| 963 | |
| 964 | int main() { return 0; } |
| 965 | int t() { |
| 966 | opendir() |
| 967 | ; return 0; } |
| 968 | EOF |
| 969 | if eval $ac_link; then |
| 970 | rm -rf conftest* |
| 971 | eval "ac_cv_lib_x=yes" |
| 972 | else |
| 973 | rm -rf conftest* |
| 974 | eval "ac_cv_lib_x=no" |
| 975 | fi |
| 976 | rm -f conftest* |
| 977 | LIBS="$ac_save_LIBS" |
| 978 | |
| 979 | fi |
| 980 | if eval "test \"`echo '$ac_cv_lib_'x`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 981 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 982 | LIBS="$LIBS -lx" |
| 983 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 984 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 985 | fi |
| 986 | |
| 987 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 988 | |
| 989 | |
| 990 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 991 | was_it_defined=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 992 | echo $ac_n "checking for clock_t in time.h""... $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 993 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 994 | #line 995 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 995 | #include "confdefs.h" |
| 996 | #include <time.h> |
| 997 | EOF |
| 998 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 999 | egrep "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1000 | rm -rf conftest* |
| 1001 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1002 | else |
| 1003 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1004 | cat >> confdefs.h <<\EOF |
| 1005 | #define clock_t long |
| 1006 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1007 | |
| 1008 | fi |
| 1009 | rm -f conftest* |
| 1010 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1011 | echo "$ac_t""$was_it_defined" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1012 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1013 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
| 1014 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
| 1015 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1016 | else |
| 1017 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1018 | #line 1019 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1019 | #include "confdefs.h" |
| 1020 | #include <sys/types.h> |
| 1021 | #if STDC_HEADERS |
| 1022 | #include <stdlib.h> |
| 1023 | #endif |
| 1024 | EOF |
| 1025 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1026 | egrep "mode_t" >/dev/null 2>&1; then |
| 1027 | rm -rf conftest* |
| 1028 | ac_cv_type_mode_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1029 | else |
| 1030 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1031 | ac_cv_type_mode_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1032 | fi |
| 1033 | rm -f conftest* |
| 1034 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1035 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1036 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1037 | if test $ac_cv_type_mode_t = no; then |
| 1038 | cat >> confdefs.h <<\EOF |
| 1039 | #define mode_t int |
| 1040 | EOF |
| 1041 | |
| 1042 | fi |
| 1043 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1044 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
| 1045 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
| 1046 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1047 | else |
| 1048 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1049 | #line 1050 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1050 | #include "confdefs.h" |
| 1051 | #include <sys/types.h> |
| 1052 | #if STDC_HEADERS |
| 1053 | #include <stdlib.h> |
| 1054 | #endif |
| 1055 | EOF |
| 1056 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1057 | egrep "off_t" >/dev/null 2>&1; then |
| 1058 | rm -rf conftest* |
| 1059 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1060 | else |
| 1061 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1062 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1063 | fi |
| 1064 | rm -f conftest* |
| 1065 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1066 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1067 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1068 | if test $ac_cv_type_off_t = no; then |
| 1069 | cat >> confdefs.h <<\EOF |
| 1070 | #define off_t long |
| 1071 | EOF |
| 1072 | |
| 1073 | fi |
| 1074 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1075 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
| 1076 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
| 1077 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1078 | else |
| 1079 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1080 | #line 1081 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1081 | #include "confdefs.h" |
| 1082 | #include <sys/types.h> |
| 1083 | #if STDC_HEADERS |
| 1084 | #include <stdlib.h> |
| 1085 | #endif |
| 1086 | EOF |
| 1087 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1088 | egrep "pid_t" >/dev/null 2>&1; then |
| 1089 | rm -rf conftest* |
| 1090 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1091 | else |
| 1092 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1093 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1094 | fi |
| 1095 | rm -f conftest* |
| 1096 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1097 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1098 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1099 | if test $ac_cv_type_pid_t = no; then |
| 1100 | cat >> confdefs.h <<\EOF |
| 1101 | #define pid_t int |
| 1102 | EOF |
| 1103 | |
| 1104 | fi |
| 1105 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1106 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 |
| 1107 | if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
| 1108 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1109 | else |
| 1110 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1111 | #line 1112 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1112 | #include "confdefs.h" |
| 1113 | #include <sys/types.h> |
| 1114 | #include <signal.h> |
| 1115 | #ifdef signal |
| 1116 | #undef signal |
| 1117 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1118 | #ifdef __cplusplus |
| 1119 | extern "C" |
| 1120 | #endif |
| 1121 | void (*signal ()) (); |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1122 | int main() { return 0; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1123 | int t() { |
| 1124 | int i; |
| 1125 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1126 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1127 | if eval $ac_compile; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1128 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1129 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1130 | else |
| 1131 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1132 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1133 | fi |
| 1134 | rm -f conftest* |
| 1135 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1136 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1137 | echo "$ac_t""$ac_cv_type_signal" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1138 | cat >> confdefs.h <<EOF |
| 1139 | #define RETSIGTYPE $ac_cv_type_signal |
| 1140 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1141 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1142 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1143 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
| 1144 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
| 1145 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1146 | else |
| 1147 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1148 | #line 1149 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1149 | #include "confdefs.h" |
| 1150 | #include <sys/types.h> |
| 1151 | #if STDC_HEADERS |
| 1152 | #include <stdlib.h> |
| 1153 | #endif |
| 1154 | EOF |
| 1155 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1156 | egrep "size_t" >/dev/null 2>&1; then |
| 1157 | rm -rf conftest* |
| 1158 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1159 | else |
| 1160 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1161 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1162 | fi |
| 1163 | rm -f conftest* |
| 1164 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1165 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1166 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1167 | if test $ac_cv_type_size_t = no; then |
| 1168 | cat >> confdefs.h <<\EOF |
| 1169 | #define size_t unsigned |
| 1170 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1171 | |
| 1172 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1173 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1174 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
| 1175 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
| 1176 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1177 | else |
| 1178 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1179 | #line 1180 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1180 | #include "confdefs.h" |
| 1181 | #include <sys/types.h> |
| 1182 | EOF |
| 1183 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1184 | egrep "uid_t" >/dev/null 2>&1; then |
| 1185 | rm -rf conftest* |
| 1186 | ac_cv_type_uid_t=yes |
| 1187 | else |
| 1188 | rm -rf conftest* |
| 1189 | ac_cv_type_uid_t=no |
| 1190 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1191 | rm -f conftest* |
| 1192 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1193 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1194 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1195 | if test $ac_cv_type_uid_t = no; then |
| 1196 | cat >> confdefs.h <<\EOF |
| 1197 | #define uid_t int |
| 1198 | EOF |
| 1199 | |
| 1200 | cat >> confdefs.h <<\EOF |
| 1201 | #define gid_t int |
| 1202 | EOF |
| 1203 | |
| 1204 | fi |
| 1205 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1206 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 1207 | # Set name for machine-dependent library files |
| 1208 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1209 | echo $ac_n "checking MACHDEP""... $ac_c" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 1210 | if test -z "$MACHDEP" |
| 1211 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1212 | ac_sys_system=`uname -s | tr -d ' ' | tr '[A-Z]' '[a-z]'` |
| 1213 | ac_sys_release=`uname -r | tr -d ' ' | sed 's/\..*//'` |
| 1214 | MACHDEP="$ac_sys_system$ac_sys_release" |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 1215 | case MACHDEP in |
| 1216 | '') MACHDEP=unknown;; |
| 1217 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 1218 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1219 | echo "$ac_t""$MACHDEP" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 1220 | |
| 1221 | # Set info about shared libraries. |
| 1222 | # XXX This should try things out instead of testing uname! |
| 1223 | |
| 1224 | |
| 1225 | |
| 1226 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1227 | ac_sys_system=`uname -s` |
| 1228 | ac_sys_release=`uname -r` |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 1229 | # SO is the extension of shared libraries `(including the dot!) |
| 1230 | # -- usually .so, .sl on HP-UX |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1231 | echo $ac_n "checking SO""... $ac_c" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 1232 | if test -z "$SO" |
| 1233 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1234 | case $ac_sys_system in |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 1235 | hp*|HP*) SO=.sl;; |
| 1236 | *) SO=.so;; |
| 1237 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 1238 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1239 | echo "$ac_t""$SO" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 1240 | # LDSHARED is the ld *command* used to create shared library |
| 1241 | # -- "ld" on SunOS 4.x.x, "ld -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1242 | echo $ac_n "checking LDSHARED""... $ac_c" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 1243 | if test -z "$LDSHARED" |
| 1244 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1245 | case $ac_sys_system/$ac_sys_release in |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 1246 | IRIX*) LDSHARED="ld -shared";; |
| 1247 | SunOS/4*) LDSHARED="ld";; |
| 1248 | SunOS/5*) LDSHARED="ld -G";; |
| 1249 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1250 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
| 1251 | DYNIX/ptx*) LDSHARED="ld -G";; |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1252 | Linux*) LDSHARED="gcc-elf -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 1253 | *) LDSHARED="ld";; |
| 1254 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 1255 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1256 | echo "$ac_t""$LDSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 1257 | # CCSHARED are the C *flags* used to create objects to go into a shared |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1258 | # library -- this is only needed for a few systems |
| 1259 | echo $ac_n "checking CCSHARED""... $ac_c" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 1260 | if test -z "$CCSHARED" |
| 1261 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1262 | case $ac_sys_system in |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 1263 | hp*|HP*) if test "$GCC" = yes; |
| 1264 | then CCSHARED="-fpic"; |
| 1265 | else CCSHARED="+z"; |
| 1266 | fi;; |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1267 | Linux*) CCSHARED="-fpic";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 1268 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 1269 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1270 | echo "$ac_t""$CCSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 1271 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1272 | # the python executable -- this is only needed for a few systems |
| 1273 | echo $ac_n "checking LINKFORSHARED""... $ac_c" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 1274 | if test -z "$LINKFORSHARED" |
| 1275 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1276 | case $ac_sys_system in |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 1277 | hp*|HP*) LINKFORSHARED="-Wl,-E";; |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1278 | Linux*) LINKFORSHARED="-rdynamic";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 1279 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 1280 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1281 | echo "$ac_t""$LINKFORSHARED" 1>&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 1282 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1283 | # checks for libraries |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1284 | echo $ac_n "checking for -ldl""... $ac_c" 1>&6 |
| 1285 | if eval "test \"`echo '$''{'ac_cv_lib_dl'+set}'`\" = set"; then |
| 1286 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1287 | else |
| 1288 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1289 | LIBS="-ldl $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1290 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1291 | #line 1292 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1292 | #include "confdefs.h" |
| 1293 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1294 | int main() { return 0; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1295 | int t() { |
| 1296 | dlopen() |
| 1297 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1298 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1299 | if eval $ac_link; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1300 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1301 | eval "ac_cv_lib_dl=yes" |
| 1302 | else |
| 1303 | rm -rf conftest* |
| 1304 | eval "ac_cv_lib_dl=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1305 | fi |
| 1306 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1307 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1308 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1309 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1310 | if eval "test \"`echo '$ac_cv_lib_'dl`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1311 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1312 | ac_tr_lib=HAVE_LIB`echo dl | tr '[a-z]' '[A-Z]'` |
| 1313 | cat >> confdefs.h <<EOF |
| 1314 | #define $ac_tr_lib 1 |
| 1315 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1316 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1317 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1318 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1319 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1320 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1321 | fi |
| 1322 | # Dynamic linking for SunOS/Solaris and SYSV |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1323 | echo $ac_n "checking for -ldld""... $ac_c" 1>&6 |
| 1324 | if eval "test \"`echo '$''{'ac_cv_lib_dld'+set}'`\" = set"; then |
| 1325 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1326 | else |
| 1327 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1328 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1329 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1330 | #line 1331 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1331 | #include "confdefs.h" |
| 1332 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1333 | int main() { return 0; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1334 | int t() { |
| 1335 | shl_load() |
| 1336 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1337 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1338 | if eval $ac_link; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1339 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1340 | eval "ac_cv_lib_dld=yes" |
| 1341 | else |
| 1342 | rm -rf conftest* |
| 1343 | eval "ac_cv_lib_dld=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1344 | fi |
| 1345 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1346 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1347 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1348 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1349 | if eval "test \"`echo '$ac_cv_lib_'dld`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1350 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1351 | ac_tr_lib=HAVE_LIB`echo dld | tr '[a-z]' '[A-Z]'` |
| 1352 | cat >> confdefs.h <<EOF |
| 1353 | #define $ac_tr_lib 1 |
| 1354 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1355 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1356 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1357 | |
| 1358 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1359 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1360 | fi |
| 1361 | # Dynamic linking for HP-UX |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1362 | echo $ac_n "checking for -lsun""... $ac_c" 1>&6 |
| 1363 | if eval "test \"`echo '$''{'ac_cv_lib_sun'+set}'`\" = set"; then |
| 1364 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1365 | else |
| 1366 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1367 | LIBS="-lsun $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1368 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1369 | #line 1370 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1370 | #include "confdefs.h" |
| 1371 | |
| 1372 | int main() { return 0; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1373 | int t() { |
| 1374 | getpwnam() |
| 1375 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1376 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1377 | if eval $ac_link; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1378 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1379 | eval "ac_cv_lib_sun=yes" |
| 1380 | else |
| 1381 | rm -rf conftest* |
| 1382 | eval "ac_cv_lib_sun=no" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1383 | fi |
| 1384 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1385 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1386 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1387 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1388 | if eval "test \"`echo '$ac_cv_lib_'sun`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1389 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1390 | ac_tr_lib=HAVE_LIB`echo sun | tr '[a-z]' '[A-Z]'` |
| 1391 | cat >> confdefs.h <<EOF |
| 1392 | #define $ac_tr_lib 1 |
| 1393 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1394 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1395 | LIBS="-lsun $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1396 | |
| 1397 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1398 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1399 | fi |
| 1400 | # NIS (== YP) interface for IRIX 4 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1401 | # The following three (nsl,inet,socket) are needed on Sequent; |
| 1402 | # the order of checking must be this. Most SVR4 platforms will |
| 1403 | # need -lsocket and -lnsl. However on SGI IRIX 5, these exist but |
| 1404 | # broken. I see no elegant solution (probably CHECK_LIB should be |
| 1405 | # fixed to only add the library if the given entry point is not |
| 1406 | # satisfied without it). |
| 1407 | if test "`uname -s`" != IRIX |
| 1408 | then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1409 | echo $ac_n "checking for -lnsl""... $ac_c" 1>&6 |
| 1410 | if eval "test \"`echo '$''{'ac_cv_lib_nsl'+set}'`\" = set"; then |
| 1411 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 1412 | else |
| 1413 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1414 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 1415 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1416 | #line 1417 "configure" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 1417 | #include "confdefs.h" |
| 1418 | |
| 1419 | int main() { return 0; } |
| 1420 | int t() { |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 1421 | t_open() |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 1422 | ; return 0; } |
| 1423 | EOF |
| 1424 | if eval $ac_link; then |
| 1425 | rm -rf conftest* |
| 1426 | eval "ac_cv_lib_nsl=yes" |
| 1427 | else |
| 1428 | rm -rf conftest* |
| 1429 | eval "ac_cv_lib_nsl=no" |
| 1430 | fi |
| 1431 | rm -f conftest* |
| 1432 | LIBS="$ac_save_LIBS" |
| 1433 | |
| 1434 | fi |
| 1435 | if eval "test \"`echo '$ac_cv_lib_'nsl`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1436 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 1437 | LIBS="-lnsl $LIBS" |
| 1438 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1439 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 1440 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 1441 | # SVR4 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1442 | echo $ac_n "checking for -linet""... $ac_c" 1>&6 |
| 1443 | if eval "test \"`echo '$''{'ac_cv_lib_inet'+set}'`\" = set"; then |
| 1444 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 1445 | else |
| 1446 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1447 | LIBS="-linet -lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 1448 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1449 | #line 1450 "configure" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 1450 | #include "confdefs.h" |
| 1451 | |
| 1452 | int main() { return 0; } |
| 1453 | int t() { |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 1454 | gethostbyname() |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 1455 | ; return 0; } |
| 1456 | EOF |
| 1457 | if eval $ac_link; then |
| 1458 | rm -rf conftest* |
| 1459 | eval "ac_cv_lib_inet=yes" |
| 1460 | else |
| 1461 | rm -rf conftest* |
| 1462 | eval "ac_cv_lib_inet=no" |
| 1463 | fi |
| 1464 | rm -f conftest* |
| 1465 | LIBS="$ac_save_LIBS" |
| 1466 | |
| 1467 | fi |
| 1468 | if eval "test \"`echo '$ac_cv_lib_'inet`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1469 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 1470 | LIBS="-linet $LIBS" |
| 1471 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1472 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 1473 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 1474 | # Sequent |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1475 | echo $ac_n "checking for -lsocket""... $ac_c" 1>&6 |
| 1476 | if eval "test \"`echo '$''{'ac_cv_lib_socket'+set}'`\" = set"; then |
| 1477 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1478 | else |
| 1479 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1480 | LIBS="-lsocket $LIBS $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1481 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1482 | #line 1483 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1483 | #include "confdefs.h" |
| 1484 | |
| 1485 | int main() { return 0; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1486 | int t() { |
| 1487 | socket() |
| 1488 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1489 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1490 | if eval $ac_link; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1491 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1492 | eval "ac_cv_lib_socket=yes" |
| 1493 | else |
| 1494 | rm -rf conftest* |
| 1495 | eval "ac_cv_lib_socket=no" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1496 | fi |
| 1497 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1498 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1499 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1500 | fi |
| 1501 | if eval "test \"`echo '$ac_cv_lib_'socket`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1502 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 1503 | LIBS="-lsocket $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1504 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1505 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1506 | fi |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 1507 | # SVR4 sockets |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1508 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1509 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1510 | echo $ac_n "checking for --with-readline""... $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1511 | # Check whether --with-readline or --without-readline was given. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1512 | withval="$with_readline" |
| 1513 | if test -n "$withval"; then |
| 1514 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1515 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1516 | cat >> confdefs.h <<\EOF |
| 1517 | #define WITH_READLINE 1 |
| 1518 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1519 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1520 | if test ! -d "$withval" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1521 | then { echo "configure: error: proper usage is --with-readline=DIRECTORY" 1>&2; exit 1; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1522 | fi |
| 1523 | termcap= |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1524 | echo $ac_n "checking for -ltermcap""... $ac_c" 1>&6 |
| 1525 | if eval "test \"`echo '$''{'ac_cv_lib_termcap'+set}'`\" = set"; then |
| 1526 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1527 | else |
| 1528 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1529 | LIBS="-ltermcap $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1530 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1531 | #line 1532 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1532 | #include "confdefs.h" |
| 1533 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1534 | int main() { return 0; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1535 | int t() { |
| 1536 | tgetent() |
| 1537 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1538 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1539 | if eval $ac_link; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1540 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1541 | eval "ac_cv_lib_termcap=yes" |
| 1542 | else |
| 1543 | rm -rf conftest* |
| 1544 | eval "ac_cv_lib_termcap=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1545 | fi |
| 1546 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1547 | LIBS="$ac_save_LIBS" |
| 1548 | |
| 1549 | fi |
| 1550 | if eval "test \"`echo '$ac_cv_lib_'termcap`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1551 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1552 | termcap=termcap |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1553 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1554 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1555 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1556 | echo $ac_n "checking for -ltermlib""... $ac_c" 1>&6 |
| 1557 | if eval "test \"`echo '$''{'ac_cv_lib_termlib'+set}'`\" = set"; then |
| 1558 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1559 | else |
| 1560 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1561 | LIBS="-ltermlib $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1562 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1563 | #line 1564 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1564 | #include "confdefs.h" |
| 1565 | |
| 1566 | int main() { return 0; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1567 | int t() { |
| 1568 | tgetent() |
| 1569 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1570 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1571 | if eval $ac_link; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1572 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1573 | eval "ac_cv_lib_termlib=yes" |
| 1574 | else |
| 1575 | rm -rf conftest* |
| 1576 | eval "ac_cv_lib_termlib=no" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1577 | fi |
| 1578 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1579 | LIBS="$ac_save_LIBS" |
| 1580 | |
| 1581 | fi |
| 1582 | if eval "test \"`echo '$ac_cv_lib_'termlib`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1583 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1584 | termcap=termlib |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1585 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1586 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1587 | fi |
| 1588 | |
| 1589 | fi |
| 1590 | |
| 1591 | if test ! -z "$termcap" |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 1592 | then LIBS="$LIBS $withval/libreadline.a" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1593 | # Avoid possible conflict between shared libraries termcap and gl |
| 1594 | # on IRIX 5: both contain a routine called clear. |
| 1595 | if test -f /usr/lib/lib$termcap.a |
| 1596 | then LIBS="$LIBS /usr/lib/lib$termcap.a" |
| 1597 | else LIBS="$LIBS -l$termcap" |
| 1598 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1599 | else { echo "configure: error: no working termcap/termlib" 1>&2; exit 1; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1600 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1601 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1602 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1603 | fi |
| 1604 | |
| 1605 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1606 | echo $ac_n "checking for --with-thread""... $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1607 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1608 | withval="$with_thread" |
| 1609 | if test -n "$withval"; then |
| 1610 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1611 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1612 | if test -d "$withval" |
| 1613 | then LIBS="$LIBS -L$withval" |
| 1614 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1615 | echo $ac_n "checking for -lpthreads""... $ac_c" 1>&6 |
| 1616 | if eval "test \"`echo '$''{'ac_cv_lib_pthreads'+set}'`\" = set"; then |
| 1617 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1618 | else |
| 1619 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1620 | LIBS="-lpthreads $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1621 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1622 | #line 1623 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1623 | #include "confdefs.h" |
| 1624 | |
| 1625 | int main() { return 0; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1626 | int t() { |
| 1627 | pthread_create() |
| 1628 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1629 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1630 | if eval $ac_link; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1631 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1632 | eval "ac_cv_lib_pthreads=yes" |
| 1633 | else |
| 1634 | rm -rf conftest* |
| 1635 | eval "ac_cv_lib_pthreads=no" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1636 | fi |
| 1637 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1638 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1639 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1640 | fi |
| 1641 | if eval "test \"`echo '$ac_cv_lib_'pthreads`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1642 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1643 | cat >> confdefs.h <<\EOF |
| 1644 | #define WITH_THREAD 1 |
| 1645 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1646 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1647 | cat >> confdefs.h <<\EOF |
| 1648 | #define _POSIX_THREADS 1 |
| 1649 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1650 | |
| 1651 | LIBS="$LIBS -lpthreads" |
| 1652 | LIBOBJS="$LIBOBJS thread.o" |
| 1653 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1654 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1655 | fi |
| 1656 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1657 | echo $ac_n "checking for -lmpc""... $ac_c" 1>&6 |
| 1658 | if eval "test \"`echo '$''{'ac_cv_lib_mpc'+set}'`\" = set"; then |
| 1659 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1660 | else |
| 1661 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1662 | LIBS="-lmpc $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1663 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1664 | #line 1665 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1665 | #include "confdefs.h" |
| 1666 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1667 | int main() { return 0; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1668 | int t() { |
| 1669 | usconfig() |
| 1670 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1671 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1672 | if eval $ac_link; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1673 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1674 | eval "ac_cv_lib_mpc=yes" |
| 1675 | else |
| 1676 | rm -rf conftest* |
| 1677 | eval "ac_cv_lib_mpc=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1678 | fi |
| 1679 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1680 | LIBS="$ac_save_LIBS" |
| 1681 | |
| 1682 | fi |
| 1683 | if eval "test \"`echo '$ac_cv_lib_'mpc`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1684 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1685 | cat >> confdefs.h <<\EOF |
| 1686 | #define WITH_THREAD 1 |
| 1687 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1688 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1689 | LIBS="$LIBS -lmpc" |
| 1690 | LIBOBJS="$LIBOBJS thread.o" |
| 1691 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1692 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1693 | fi |
| 1694 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1695 | echo $ac_n "checking for -lthread""... $ac_c" 1>&6 |
| 1696 | if eval "test \"`echo '$''{'ac_cv_lib_thread'+set}'`\" = set"; then |
| 1697 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1698 | else |
| 1699 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1700 | LIBS="-lthread $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1701 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1702 | #line 1703 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1703 | #include "confdefs.h" |
| 1704 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1705 | int main() { return 0; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1706 | int t() { |
| 1707 | thr_create() |
| 1708 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1709 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1710 | if eval $ac_link; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1711 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1712 | eval "ac_cv_lib_thread=yes" |
| 1713 | else |
| 1714 | rm -rf conftest* |
| 1715 | eval "ac_cv_lib_thread=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1716 | fi |
| 1717 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1718 | LIBS="$ac_save_LIBS" |
| 1719 | |
| 1720 | fi |
| 1721 | if eval "test \"`echo '$ac_cv_lib_'thread`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1722 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1723 | cat >> confdefs.h <<\EOF |
| 1724 | #define WITH_THREAD 1 |
| 1725 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1726 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1727 | LIBS="$LIBS -lthread" |
| 1728 | LIBOBJS="$LIBOBJS thread.o" |
| 1729 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1730 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1731 | fi |
| 1732 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1733 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1734 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1735 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1736 | fi |
| 1737 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1738 | |
| 1739 | # -I${DLINCLDIR} is added to the compile rule for import.o |
| 1740 | |
| 1741 | DLINCLDIR=/ |
| 1742 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1743 | echo $ac_n "checking for --with-sgi-dl""... $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1744 | # Check whether --with-sgi-dl or --without-sgi-dl was given. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1745 | withval="$with_sgi_dl" |
| 1746 | if test -n "$withval"; then |
| 1747 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1748 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1749 | cat >> confdefs.h <<\EOF |
| 1750 | #define WITH_SGI_DL 1 |
| 1751 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1752 | |
| 1753 | dldir=$withval |
| 1754 | if test -d "$dldir" |
| 1755 | then LIBS="$LIBS -L$dldir" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1756 | 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] | 1757 | fi |
| 1758 | DLINCLDIR=${dldir} |
| 1759 | LIBS="$LIBS -ldl -lmld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1760 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1761 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1762 | fi |
| 1763 | |
| 1764 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1765 | echo $ac_n "checking for --with-dl-dld""... $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1766 | # Check whether --with-dl-dld or --without-dl-dld was given. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1767 | withval="$with_dl_dld" |
| 1768 | if test -n "$withval"; then |
| 1769 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1770 | echo "$ac_t""$withval" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1771 | cat >> confdefs.h <<\EOF |
| 1772 | #define WITH_DL_DLD 1 |
| 1773 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1774 | |
| 1775 | dldir=`echo "$withval" | sed 's/,.*//'` |
| 1776 | dlddir=`echo "$withval" | sed 's/.*,//'` |
| 1777 | if test -d "$dldir" -a -d "$dlddir" |
| 1778 | then LIBS="$LIBS -L$dldir -L$dlddir" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1779 | 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] | 1780 | fi |
| 1781 | DLINCLDIR=${dldir} |
| 1782 | LIBS="$LIBS -ldl -ldld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1783 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1784 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1785 | fi |
| 1786 | |
| 1787 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1788 | # checks for library functions |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1789 | for ac_func in chown clock dlopen ftime ftruncate gethostname_r gettimeofday getpeername getpgrp getpid getwd link lstat nice readlink select setgid setuid setsid setpgid setpgrp setvbuf siginterrupt symlink tcgetpgrp tcsetpgrp times truncate uname waitpid |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1790 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1791 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 1792 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 1793 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1794 | else |
| 1795 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1796 | #line 1797 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1797 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1798 | /* System header to define __stub macros and hopefully few prototypes, |
| 1799 | which can conflict with char $ac_func(); below. */ |
| 1800 | #include <assert.h> |
| 1801 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1802 | char $ac_func(); |
| 1803 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1804 | int main() { return 0; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1805 | int t() { |
| 1806 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1807 | /* The GNU C library defines this for functions which it implements |
| 1808 | to always fail with ENOSYS. Some functions are actually named |
| 1809 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1810 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1811 | choke me |
| 1812 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1813 | $ac_func(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1814 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1815 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1816 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1817 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1818 | if eval $ac_link; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1819 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1820 | eval "ac_cv_func_$ac_func=yes" |
| 1821 | else |
| 1822 | rm -rf conftest* |
| 1823 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1824 | fi |
| 1825 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1826 | |
| 1827 | fi |
| 1828 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1829 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1830 | ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'` |
| 1831 | cat >> confdefs.h <<EOF |
| 1832 | #define $ac_tr_func 1 |
| 1833 | EOF |
| 1834 | |
| 1835 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1836 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1837 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1838 | done |
| 1839 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1840 | for ac_func in dup2 getcwd strerror memmove |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1841 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1842 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 1843 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 1844 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1845 | else |
| 1846 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1847 | #line 1848 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1848 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1849 | /* System header to define __stub macros and hopefully few prototypes, |
| 1850 | which can conflict with char $ac_func(); below. */ |
| 1851 | #include <assert.h> |
| 1852 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1853 | char $ac_func(); |
| 1854 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1855 | int main() { return 0; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1856 | int t() { |
| 1857 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1858 | /* The GNU C library defines this for functions which it implements |
| 1859 | to always fail with ENOSYS. Some functions are actually named |
| 1860 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1861 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1862 | choke me |
| 1863 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1864 | $ac_func(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1865 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1866 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1867 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1868 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1869 | if eval $ac_link; then |
| 1870 | rm -rf conftest* |
| 1871 | eval "ac_cv_func_$ac_func=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1872 | else |
| 1873 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1874 | eval "ac_cv_func_$ac_func=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1875 | fi |
| 1876 | rm -f conftest* |
| 1877 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1878 | fi |
| 1879 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1880 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1881 | : |
| 1882 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1883 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1884 | LIBOBJS="$LIBOBJS ${ac_func}.o" |
| 1885 | fi |
| 1886 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1887 | done |
| 1888 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1889 | echo $ac_n "checking for getpgrp""... $ac_c" 1>&6 |
| 1890 | if eval "test \"`echo '$''{'ac_cv_func_getpgrp'+set}'`\" = set"; then |
| 1891 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1892 | else |
| 1893 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1894 | #line 1895 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1895 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1896 | /* System header to define __stub macros and hopefully few prototypes, |
| 1897 | which can conflict with char getpgrp(); below. */ |
| 1898 | #include <assert.h> |
| 1899 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1900 | char getpgrp(); |
| 1901 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1902 | int main() { return 0; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1903 | int t() { |
| 1904 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1905 | /* The GNU C library defines this for functions which it implements |
| 1906 | to always fail with ENOSYS. Some functions are actually named |
| 1907 | something starting with __ and the normal name is an alias. */ |
| 1908 | #if defined (__stub_getpgrp) || defined (__stub___getpgrp) |
| 1909 | choke me |
| 1910 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1911 | getpgrp(); |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1912 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1913 | |
| 1914 | ; return 0; } |
| 1915 | EOF |
| 1916 | if eval $ac_link; then |
| 1917 | rm -rf conftest* |
| 1918 | eval "ac_cv_func_getpgrp=yes" |
| 1919 | else |
| 1920 | rm -rf conftest* |
| 1921 | eval "ac_cv_func_getpgrp=no" |
| 1922 | fi |
| 1923 | rm -f conftest* |
| 1924 | |
| 1925 | fi |
| 1926 | if eval "test \"`echo '$ac_cv_func_'getpgrp`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1927 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1928 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1929 | #line 1930 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1930 | #include "confdefs.h" |
| 1931 | #include <unistd.h> |
| 1932 | int main() { return 0; } |
| 1933 | int t() { |
| 1934 | getpgrp(0); |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1935 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1936 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1937 | if eval $ac_compile; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1938 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1939 | cat >> confdefs.h <<\EOF |
| 1940 | #define GETPGRP_HAVE_ARG 1 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1941 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1942 | |
| 1943 | fi |
| 1944 | rm -f conftest* |
| 1945 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1946 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1947 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1948 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1949 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1950 | echo $ac_n "checking for setpgrp""... $ac_c" 1>&6 |
| 1951 | if eval "test \"`echo '$''{'ac_cv_func_setpgrp'+set}'`\" = set"; then |
| 1952 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1953 | else |
| 1954 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1955 | #line 1956 "configure" |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 1956 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1957 | /* System header to define __stub macros and hopefully few prototypes, |
| 1958 | which can conflict with char setpgrp(); below. */ |
| 1959 | #include <assert.h> |
| 1960 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1961 | char setpgrp(); |
| 1962 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 1963 | int main() { return 0; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1964 | int t() { |
| 1965 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 1966 | /* The GNU C library defines this for functions which it implements |
| 1967 | to always fail with ENOSYS. Some functions are actually named |
| 1968 | something starting with __ and the normal name is an alias. */ |
| 1969 | #if defined (__stub_setpgrp) || defined (__stub___setpgrp) |
| 1970 | choke me |
| 1971 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1972 | setpgrp(); |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 1973 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1974 | |
| 1975 | ; return 0; } |
| 1976 | EOF |
| 1977 | if eval $ac_link; then |
| 1978 | rm -rf conftest* |
| 1979 | eval "ac_cv_func_setpgrp=yes" |
| 1980 | else |
| 1981 | rm -rf conftest* |
| 1982 | eval "ac_cv_func_setpgrp=no" |
| 1983 | fi |
| 1984 | rm -f conftest* |
| 1985 | |
| 1986 | fi |
| 1987 | if eval "test \"`echo '$ac_cv_func_'setpgrp`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1988 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1989 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1990 | #line 1991 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1991 | #include "confdefs.h" |
| 1992 | #include <unistd.h> |
| 1993 | int main() { return 0; } |
| 1994 | int t() { |
| 1995 | setpgrp(0,0); |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 1996 | ; return 0; } |
| 1997 | EOF |
| 1998 | if eval $ac_compile; then |
| 1999 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2000 | cat >> confdefs.h <<\EOF |
| 2001 | #define SETPGRP_HAVE_ARG 1 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 2002 | EOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 2003 | |
| 2004 | fi |
| 2005 | rm -f conftest* |
| 2006 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2007 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2008 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 2009 | fi |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 2010 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2011 | echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6 |
| 2012 | if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then |
| 2013 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2014 | else |
| 2015 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2016 | #line 2017 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2017 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2018 | /* System header to define __stub macros and hopefully few prototypes, |
| 2019 | which can conflict with char gettimeofday(); below. */ |
| 2020 | #include <assert.h> |
| 2021 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2022 | char gettimeofday(); |
| 2023 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2024 | int main() { return 0; } |
| 2025 | int t() { |
| 2026 | |
| 2027 | /* The GNU C library defines this for functions which it implements |
| 2028 | to always fail with ENOSYS. Some functions are actually named |
| 2029 | something starting with __ and the normal name is an alias. */ |
| 2030 | #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday) |
| 2031 | choke me |
| 2032 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2033 | gettimeofday(); |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2034 | #endif |
| 2035 | |
| 2036 | ; return 0; } |
| 2037 | EOF |
| 2038 | if eval $ac_link; then |
| 2039 | rm -rf conftest* |
| 2040 | eval "ac_cv_func_gettimeofday=yes" |
| 2041 | else |
| 2042 | rm -rf conftest* |
| 2043 | eval "ac_cv_func_gettimeofday=no" |
| 2044 | fi |
| 2045 | rm -f conftest* |
| 2046 | |
| 2047 | fi |
| 2048 | if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2049 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2050 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2051 | #line 2052 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2052 | #include "confdefs.h" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2053 | #include <sys/time.h> |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2054 | int main() { return 0; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2055 | int t() { |
| 2056 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
| 2057 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2058 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2059 | if eval $ac_compile; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2060 | : |
| 2061 | else |
| 2062 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2063 | cat >> confdefs.h <<\EOF |
| 2064 | #define GETTIMEOFDAY_NO_TZ 1 |
| 2065 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2066 | |
| 2067 | fi |
| 2068 | rm -f conftest* |
| 2069 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2070 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2071 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2072 | fi |
| 2073 | |
| 2074 | |
| 2075 | # checks for structures |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2076 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
| 2077 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
| 2078 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2079 | else |
| 2080 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2081 | #line 2082 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2082 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2083 | #include <sys/types.h> |
| 2084 | #include <sys/time.h> |
| 2085 | #include <time.h> |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2086 | int main() { return 0; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2087 | int t() { |
| 2088 | struct tm *tp; |
| 2089 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2090 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2091 | if eval $ac_compile; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2092 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2093 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2094 | else |
| 2095 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2096 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2097 | fi |
| 2098 | rm -f conftest* |
| 2099 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2100 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2101 | echo "$ac_t""$ac_cv_header_time" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2102 | if test $ac_cv_header_time = yes; then |
| 2103 | cat >> confdefs.h <<\EOF |
| 2104 | #define TIME_WITH_SYS_TIME 1 |
| 2105 | EOF |
| 2106 | |
| 2107 | fi |
| 2108 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2109 | echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 |
| 2110 | if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then |
| 2111 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2112 | else |
| 2113 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2114 | #line 2115 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2115 | #include "confdefs.h" |
| 2116 | #include <sys/types.h> |
| 2117 | #include <time.h> |
| 2118 | int main() { return 0; } |
| 2119 | int t() { |
| 2120 | struct tm *tp; tp->tm_sec; |
| 2121 | ; return 0; } |
| 2122 | EOF |
| 2123 | if eval $ac_compile; then |
| 2124 | rm -rf conftest* |
| 2125 | ac_cv_struct_tm=time.h |
| 2126 | else |
| 2127 | rm -rf conftest* |
| 2128 | ac_cv_struct_tm=sys/time.h |
| 2129 | fi |
| 2130 | rm -f conftest* |
| 2131 | |
| 2132 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2133 | echo "$ac_t""$ac_cv_struct_tm" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2134 | if test $ac_cv_struct_tm = sys/time.h; then |
| 2135 | cat >> confdefs.h <<\EOF |
| 2136 | #define TM_IN_SYS_TIME 1 |
| 2137 | EOF |
| 2138 | |
| 2139 | fi |
| 2140 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2141 | echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 |
| 2142 | if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then |
| 2143 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2144 | else |
| 2145 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2146 | #line 2147 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2147 | #include "confdefs.h" |
| 2148 | #include <sys/types.h> |
| 2149 | #include <$ac_cv_struct_tm> |
| 2150 | int main() { return 0; } |
| 2151 | int t() { |
| 2152 | struct tm tm; tm.tm_zone; |
| 2153 | ; return 0; } |
| 2154 | EOF |
| 2155 | if eval $ac_compile; then |
| 2156 | rm -rf conftest* |
| 2157 | ac_cv_struct_tm_zone=yes |
| 2158 | else |
| 2159 | rm -rf conftest* |
| 2160 | ac_cv_struct_tm_zone=no |
| 2161 | fi |
| 2162 | rm -f conftest* |
| 2163 | |
| 2164 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2165 | echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2166 | if test "$ac_cv_struct_tm_zone" = yes; then |
| 2167 | cat >> confdefs.h <<\EOF |
| 2168 | #define HAVE_TM_ZONE 1 |
| 2169 | EOF |
| 2170 | |
| 2171 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2172 | echo $ac_n "checking for tzname""... $ac_c" 1>&6 |
| 2173 | if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then |
| 2174 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2175 | else |
| 2176 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2177 | #line 2178 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2178 | #include "confdefs.h" |
| 2179 | #include <time.h> |
| 2180 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2181 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2182 | #endif |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2183 | int main() { return 0; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2184 | int t() { |
| 2185 | atoi(*tzname); |
| 2186 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2187 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2188 | if eval $ac_link; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2189 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2190 | ac_cv_var_tzname=yes |
| 2191 | else |
| 2192 | rm -rf conftest* |
| 2193 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2194 | fi |
| 2195 | rm -f conftest* |
| 2196 | |
| 2197 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2198 | echo "$ac_t""$ac_cv_var_tzname" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2199 | if test $ac_cv_var_tzname = yes; then |
| 2200 | cat >> confdefs.h <<\EOF |
| 2201 | #define HAVE_TZNAME 1 |
| 2202 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2203 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2204 | fi |
| 2205 | fi |
| 2206 | |
| 2207 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2208 | echo $ac_n "checking for time.h that defines altzone""... $ac_c" 1>&6 |
| 2209 | if eval "test \"`echo '$''{'ac_cv_header_time_altzone'+set}'`\" = set"; then |
| 2210 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2211 | else |
| 2212 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2213 | #line 2214 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2214 | #include "confdefs.h" |
| 2215 | #include <time.h> |
| 2216 | int main() { return 0; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2217 | int t() { |
| 2218 | return altzone; |
| 2219 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2220 | EOF |
| 2221 | if eval $ac_compile; then |
| 2222 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2223 | ac_cv_header_time_altzone=yes |
| 2224 | else |
| 2225 | rm -rf conftest* |
| 2226 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2227 | fi |
| 2228 | rm -f conftest* |
| 2229 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2230 | fi |
| 2231 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2232 | echo "$ac_t""$ac_cv_header_time_altzone" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2233 | if test $ac_cv_header_time_altzone = yes; then |
| 2234 | cat >> confdefs.h <<\EOF |
| 2235 | #define HAVE_ALTZONE 1 |
| 2236 | EOF |
| 2237 | |
| 2238 | fi |
| 2239 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2240 | was_it_defined=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2241 | echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2242 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2243 | #line 2244 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2244 | #include "confdefs.h" |
| 2245 | |
| 2246 | #include <sys/types.h> |
| 2247 | #include <sys/select.h> |
| 2248 | #include <sys/time.h> |
| 2249 | |
| 2250 | int main() { return 0; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2251 | int t() { |
| 2252 | ; |
| 2253 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2254 | EOF |
| 2255 | if eval $ac_compile; then |
| 2256 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2257 | cat >> confdefs.h <<\EOF |
| 2258 | #define SYS_SELECT_WITH_SYS_TIME 1 |
| 2259 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2260 | was_it_defined=yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2261 | fi |
| 2262 | rm -f conftest* |
| 2263 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2264 | echo "$ac_t""$was_it_defined" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2265 | |
| 2266 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2267 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2268 | echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6 |
| 2269 | if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then |
| 2270 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2271 | else |
| 2272 | if test "$GCC" = yes; then |
| 2273 | # GCC predefines this symbol on systems where it applies. |
| 2274 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2275 | #line 2276 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2276 | #include "confdefs.h" |
| 2277 | #ifdef __CHAR_UNSIGNED__ |
| 2278 | yes |
| 2279 | #endif |
| 2280 | |
| 2281 | EOF |
| 2282 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2283 | egrep "yes" >/dev/null 2>&1; then |
| 2284 | rm -rf conftest* |
| 2285 | ac_cv_c_char_unsigned=yes |
| 2286 | else |
| 2287 | rm -rf conftest* |
| 2288 | ac_cv_c_char_unsigned=no |
| 2289 | fi |
| 2290 | rm -f conftest* |
| 2291 | |
| 2292 | else |
| 2293 | if test "$cross_compiling" = yes; then |
| 2294 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2295 | else |
| 2296 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2297 | #line 2298 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2298 | #include "confdefs.h" |
| 2299 | /* volatile prevents gcc2 from optimizing the test away on sparcs. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2300 | #if !defined(__STDC__) || __STDC__ != 1 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2301 | #define volatile |
| 2302 | #endif |
| 2303 | main() { |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2304 | volatile char c = 255; exit(c < 0); |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2305 | } |
| 2306 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2307 | eval $ac_link |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2308 | if test -s conftest && (./conftest; exit) 2>/dev/null; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2309 | ac_cv_c_char_unsigned=yes |
| 2310 | else |
| 2311 | ac_cv_c_char_unsigned=no |
| 2312 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2313 | fi |
| 2314 | rm -fr conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2315 | fi |
| 2316 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2317 | echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2318 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
| 2319 | cat >> confdefs.h <<\EOF |
| 2320 | #define __CHAR_UNSIGNED__ 1 |
| 2321 | EOF |
| 2322 | |
| 2323 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2324 | |
| 2325 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2326 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
| 2327 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
| 2328 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2329 | else |
| 2330 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2331 | #line 2332 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2332 | #include "confdefs.h" |
| 2333 | |
| 2334 | int main() { return 0; } |
| 2335 | int t() { |
| 2336 | |
| 2337 | /* Ultrix mips cc rejects this. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2338 | typedef int charset[2]; const charset x; |
| 2339 | /* SunOS 4.1.1 cc rejects this. */ |
| 2340 | char const *const *ccp; |
| 2341 | char **p; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2342 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 2343 | struct point {int x, y;}; |
| 2344 | static struct point const zero; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2345 | /* AIX XL C 1.02.0.0 rejects this. |
| 2346 | It does not let you subtract one const X* pointer from another in an arm |
| 2347 | of an if-expression whose if-part is not a constant expression */ |
| 2348 | const char *g = "string"; |
| 2349 | ccp = &g + (g ? g-g : 0); |
| 2350 | /* HPUX 7.0 cc rejects these. */ |
| 2351 | ++ccp; |
| 2352 | p = (char**) ccp; |
| 2353 | ccp = (char const *const *) p; |
| 2354 | { /* SCO 3.2v4 cc rejects this. */ |
| 2355 | char *t; |
| 2356 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 2357 | |
| 2358 | *t++ = 0; |
| 2359 | } |
| 2360 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2361 | int x[] = {25, 17}; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2362 | const int *foo = &x[0]; |
| 2363 | ++foo; |
| 2364 | } |
| 2365 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 2366 | typedef const int *iptr; |
| 2367 | iptr p = 0; |
| 2368 | ++p; |
| 2369 | } |
| 2370 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 2371 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 2372 | struct s { int j; const int *ap[3]; }; |
| 2373 | struct s *b; b->j = 5; |
| 2374 | } |
| 2375 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 2376 | const int foo = 10; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2377 | } |
| 2378 | |
| 2379 | ; return 0; } |
| 2380 | EOF |
| 2381 | if eval $ac_compile; then |
| 2382 | rm -rf conftest* |
| 2383 | ac_cv_c_const=yes |
| 2384 | else |
| 2385 | rm -rf conftest* |
| 2386 | ac_cv_c_const=no |
| 2387 | fi |
| 2388 | rm -f conftest* |
| 2389 | |
| 2390 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2391 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2392 | if test $ac_cv_c_const = no; then |
| 2393 | cat >> confdefs.h <<\EOF |
| 2394 | #define const |
| 2395 | EOF |
| 2396 | |
| 2397 | fi |
| 2398 | |
| 2399 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2400 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2401 | echo $ac_n "checking for working volatile""... $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2402 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2403 | #line 2404 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2404 | #include "confdefs.h" |
| 2405 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2406 | int main() { return 0; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2407 | int t() { |
| 2408 | volatile int x; x = 0; |
| 2409 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2410 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2411 | if eval $ac_compile; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2412 | rm -rf conftest* |
| 2413 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2414 | else |
| 2415 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2416 | cat >> confdefs.h <<\EOF |
| 2417 | #define volatile |
| 2418 | EOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2419 | |
| 2420 | fi |
| 2421 | rm -f conftest* |
| 2422 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2423 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2424 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2425 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2426 | echo $ac_n "checking for working signed char""... $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2427 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2428 | #line 2429 "configure" |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 2429 | #include "confdefs.h" |
| 2430 | |
| 2431 | int main() { return 0; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2432 | int t() { |
| 2433 | signed char c; |
| 2434 | ; return 0; } |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 2435 | EOF |
| 2436 | if eval $ac_compile; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2437 | rm -rf conftest* |
| 2438 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 2439 | else |
| 2440 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2441 | cat >> confdefs.h <<\EOF |
| 2442 | #define signed |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2443 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2444 | |
| 2445 | fi |
| 2446 | rm -f conftest* |
| 2447 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2448 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2449 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2450 | have_prototypes=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2451 | echo $ac_n "checking for prototypes""... $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2452 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2453 | #line 2454 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2454 | #include "confdefs.h" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2455 | int foo(int x) { return 0; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2456 | int main() { return 0; } |
| 2457 | int t() { |
| 2458 | return foo(10); |
| 2459 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2460 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2461 | if eval $ac_compile; then |
| 2462 | rm -rf conftest* |
| 2463 | cat >> confdefs.h <<\EOF |
| 2464 | #define HAVE_PROTOTYPES 1 |
| 2465 | EOF |
| 2466 | have_prototypes=yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2467 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2468 | rm -f conftest* |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2469 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2470 | echo "$ac_t""$have_prototypes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2471 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2472 | works=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2473 | echo $ac_n "checking for variable length prototypes and stdarg.h""... $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2474 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2475 | #line 2476 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2476 | #include "confdefs.h" |
| 2477 | |
| 2478 | #include <stdarg.h> |
| 2479 | int foo(int x, ...) { return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2480 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2481 | int main() { return 0; } |
| 2482 | int t() { |
| 2483 | return foo(10, 11, 12); |
| 2484 | ; return 0; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2485 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2486 | if eval $ac_compile; then |
| 2487 | rm -rf conftest* |
| 2488 | cat >> confdefs.h <<\EOF |
| 2489 | #define HAVE_STDARG_PROTOTYPES 1 |
| 2490 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2491 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2492 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2493 | rm -f conftest* |
| 2494 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2495 | echo "$ac_t""$works" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2496 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2497 | if test "$have_prototypes" = yes; then |
| 2498 | bad_prototypes=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2499 | echo $ac_n "checking for bad exec* prototypes""... $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2500 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2501 | #line 2502 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2502 | #include "confdefs.h" |
| 2503 | #include <unistd.h> |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2504 | int main() { return 0; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2505 | int t() { |
| 2506 | char **t;execve("@",t,t); |
| 2507 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2508 | EOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2509 | if eval $ac_compile; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2510 | : |
| 2511 | else |
| 2512 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2513 | cat >> confdefs.h <<\EOF |
| 2514 | #define BAD_EXEC_PROTOTYPES 1 |
| 2515 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2516 | bad_prototypes=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2517 | fi |
| 2518 | rm -f conftest* |
| 2519 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2520 | echo "$ac_t""$bad_prototypes" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2521 | fi |
| 2522 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2523 | bad_forward=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2524 | echo $ac_n "checking for bad static forward""... $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2525 | if test "$cross_compiling" = yes; then |
| 2526 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2527 | else |
| 2528 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2529 | #line 2530 "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2530 | #include "confdefs.h" |
| 2531 | |
| 2532 | struct s { int a; int b; }; |
| 2533 | static struct s foo; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2534 | int foobar() { |
| 2535 | static int random; |
| 2536 | random = (int) &foo; |
| 2537 | return random; |
| 2538 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2539 | static struct s foo = { 1, 2 }; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2540 | main() { |
| 2541 | exit(!((int)&foo == foobar())); |
| 2542 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2543 | |
| 2544 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2545 | eval $ac_link |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2546 | if test -s conftest && (./conftest; exit) 2>/dev/null; then |
| 2547 | : |
| 2548 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2549 | cat >> confdefs.h <<\EOF |
| 2550 | #define BAD_STATIC_FORWARD 1 |
| 2551 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2552 | bad_forward=yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2553 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2554 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2555 | rm -fr conftest* |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2556 | echo "$ac_t""$bad_forward" 1>&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2557 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2558 | va_list_is_array=no |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2559 | echo $ac_n "checking whether va_list is an array""... $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2560 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2561 | #line 2562 "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2562 | #include "confdefs.h" |
| 2563 | |
| 2564 | #ifdef HAVE_STDARG_PROTOTYPES |
| 2565 | #include <stdarg.h> |
| 2566 | #else |
| 2567 | #include <varargs.h> |
| 2568 | #endif |
| 2569 | |
| 2570 | int main() { return 0; } |
| 2571 | int t() { |
| 2572 | va_list list1, list2; list1 = list2; |
| 2573 | ; return 0; } |
| 2574 | EOF |
| 2575 | if eval $ac_compile; then |
| 2576 | : |
| 2577 | else |
| 2578 | rm -rf conftest* |
| 2579 | cat >> confdefs.h <<\EOF |
| 2580 | #define VA_LIST_IS_ARRAY 1 |
| 2581 | EOF |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2582 | va_list_is_array=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2583 | fi |
| 2584 | rm -f conftest* |
| 2585 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2586 | echo "$ac_t""$va_list_is_array" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2587 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2588 | # checks for system services |
| 2589 | # (none yet) |
| 2590 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2591 | # Linux requires this for correct f.p. operations |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2592 | echo $ac_n "checking for -lieee""... $ac_c" 1>&6 |
| 2593 | if eval "test \"`echo '$''{'ac_cv_lib_ieee'+set}'`\" = set"; then |
| 2594 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2595 | else |
| 2596 | ac_save_LIBS="$LIBS" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2597 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2598 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2599 | #line 2600 "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2600 | #include "confdefs.h" |
| 2601 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2602 | int main() { return 0; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2603 | int t() { |
| 2604 | __fpu_control() |
| 2605 | ; return 0; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2606 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2607 | if eval $ac_link; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2608 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2609 | eval "ac_cv_lib_ieee=yes" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2610 | else |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2611 | rm -rf conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2612 | eval "ac_cv_lib_ieee=no" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2613 | fi |
| 2614 | rm -f conftest* |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2615 | LIBS="$ac_save_LIBS" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2616 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2617 | fi |
| 2618 | if eval "test \"`echo '$ac_cv_lib_'ieee`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2619 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2620 | ac_tr_lib=HAVE_LIB`echo ieee | tr '[a-z]' '[A-Z]'` |
| 2621 | cat >> confdefs.h <<EOF |
| 2622 | #define $ac_tr_lib 1 |
| 2623 | EOF |
| 2624 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2625 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2626 | |
| 2627 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2628 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2629 | fi |
| 2630 | |
| 2631 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2632 | # check for --with-libm=... |
| 2633 | |
| 2634 | LIBM=-lm |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2635 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2636 | withval="$with_libm" |
| 2637 | if test -n "$withval"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2638 | |
| 2639 | if test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2640 | then LIBM=$withval |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2641 | 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] | 2642 | fi |
| 2643 | fi |
| 2644 | |
| 2645 | |
| 2646 | # check for --with-libc=... |
| 2647 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2648 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2649 | withval="$with_libc" |
| 2650 | if test -n "$withval"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2651 | |
| 2652 | if test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2653 | then LIBC=$withval |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2654 | 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] | 2655 | fi |
| 2656 | fi |
| 2657 | |
| 2658 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 2659 | # check for hypot() in math library |
| 2660 | LIBS_SAVE=$LIBS |
| 2661 | LIBS="$LIBS $LIBM" |
| 2662 | for ac_func in hypot |
| 2663 | do |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2664 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 2665 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 2666 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 2667 | else |
| 2668 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2669 | #line 2670 "configure" |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 2670 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2671 | /* System header to define __stub macros and hopefully few prototypes, |
| 2672 | which can conflict with char $ac_func(); below. */ |
| 2673 | #include <assert.h> |
| 2674 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2675 | char $ac_func(); |
| 2676 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 2677 | int main() { return 0; } |
| 2678 | int t() { |
| 2679 | |
| 2680 | /* The GNU C library defines this for functions which it implements |
| 2681 | to always fail with ENOSYS. Some functions are actually named |
| 2682 | something starting with __ and the normal name is an alias. */ |
| 2683 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 2684 | choke me |
| 2685 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2686 | $ac_func(); |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 2687 | #endif |
| 2688 | |
| 2689 | ; return 0; } |
| 2690 | EOF |
| 2691 | if eval $ac_link; then |
| 2692 | rm -rf conftest* |
| 2693 | eval "ac_cv_func_$ac_func=yes" |
| 2694 | else |
| 2695 | rm -rf conftest* |
| 2696 | eval "ac_cv_func_$ac_func=no" |
| 2697 | fi |
| 2698 | rm -f conftest* |
| 2699 | |
| 2700 | fi |
| 2701 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2702 | echo "$ac_t""yes" 1>&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 2703 | ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'` |
| 2704 | cat >> confdefs.h <<EOF |
| 2705 | #define $ac_tr_func 1 |
| 2706 | EOF |
| 2707 | |
| 2708 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2709 | echo "$ac_t""no" 1>&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 2710 | fi |
| 2711 | done |
| 2712 | |
| 2713 | LIBS=$LIBS_SAVE |
| 2714 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2715 | # check for getopt |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2716 | echo $ac_n "checking for genuine getopt""... $ac_c" 1>&6 |
| 2717 | if eval "test \"`echo '$''{'ac_cv_func_getopt'+set}'`\" = set"; then |
| 2718 | echo $ac_n "(cached) $ac_c" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2719 | else |
| 2720 | if test "$cross_compiling" = yes; then |
| 2721 | ac_cv_func_getopt=no |
| 2722 | else |
| 2723 | cat > conftest.$ac_ext <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2724 | #line 2725 "configure" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2725 | #include "confdefs.h" |
| 2726 | #include <stdio.h> |
| 2727 | extern int optind, opterr, getopt(); |
| 2728 | extern char* optarg; |
| 2729 | int main() { |
| 2730 | char* av[] = { "testprog", "parameter", "-fFlag", NULL }; |
| 2731 | opterr = 0; |
| 2732 | if (getopt(3, av, "f:") == 'f') { exit(1); } |
| 2733 | exit(0); |
| 2734 | } |
| 2735 | EOF |
| 2736 | eval $ac_link |
| 2737 | if test -s conftest && (./conftest; exit) 2>/dev/null; then |
| 2738 | ac_cv_func_getopt=yes |
| 2739 | else |
| 2740 | ac_cv_func_getopt=no |
| 2741 | fi |
| 2742 | fi |
| 2743 | rm -fr conftest* |
| 2744 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2745 | echo "$ac_t""$ac_cv_func_getopt" 1>&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2746 | test $ac_cv_func_getopt = no && LIBOBJS="$LIBOBJS getopt.o" |
| 2747 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2748 | # generate output files |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2749 | trap '' 1 2 15 |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2750 | cat > confcache <<\EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2751 | # This file is a shell script that caches the results of configure |
| 2752 | # tests run on this system so they can be shared between configure |
| 2753 | # scripts and configure runs. It is not useful on other systems. |
| 2754 | # If it contains results you don't want to keep, you may remove or edit it. |
| 2755 | # |
| 2756 | # By default, configure uses ./config.cache as the cache file, |
| 2757 | # creating it if it does not exist already. You can give configure |
| 2758 | # the --cache-file=FILE option to use a different cache file; that is |
| 2759 | # what configure does when it calls configure scripts in |
| 2760 | # subdirectories, so they share the cache. |
| 2761 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
| 2762 | # config.status only pays attention to the cache file if you give it the |
| 2763 | # --recheck option to rerun configure. |
| 2764 | # |
| 2765 | EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2766 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 2767 | # and sets the high bit in the cache file unless we assign to the vars. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2768 | (set) 2>&1 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2769 | sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \ |
| 2770 | >> confcache |
| 2771 | if cmp -s $cache_file confcache; then |
| 2772 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2773 | else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2774 | if test -w $cache_file; then |
| 2775 | echo "updating cache $cache_file" |
| 2776 | cat confcache > $cache_file |
| 2777 | else |
| 2778 | echo "not updating unwritable cache $cache_file" |
| 2779 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2780 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2781 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2782 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2783 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2784 | |
| 2785 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 2786 | # Let make expand exec_prefix. |
| 2787 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2788 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2789 | # Any assignment to VPATH causes Sun make to only execute |
| 2790 | # the first set of double-colon rules, so remove it if not needed. |
| 2791 | # If there is a colon in the path, we need to keep it. |
| 2792 | if test "x$srcdir" = x.; then |
| 2793 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
| 2794 | fi |
| 2795 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2796 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2797 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2798 | DEFS=-DHAVE_CONFIG_H |
| 2799 | |
| 2800 | # Without the "./", some shells look in PATH for config.status. |
| 2801 | : ${CONFIG_STATUS=./config.status} |
| 2802 | |
| 2803 | echo creating $CONFIG_STATUS |
| 2804 | rm -f $CONFIG_STATUS |
| 2805 | cat > $CONFIG_STATUS <<EOF |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2806 | #! /bin/sh |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2807 | # Generated automatically by configure. |
| 2808 | # Run this file to recreate the current configuration. |
| 2809 | # This directory was configured as follows, |
| 2810 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 2811 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2812 | # $0 $ac_configure_args |
| 2813 | # |
| 2814 | # Compiler output produced by configure, useful for debugging |
| 2815 | # configure, is in ./config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2816 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2817 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2818 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2819 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2820 | case "\$ac_option" in |
| 2821 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2822 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 2823 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2824 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2825 | echo "$CONFIG_STATUS generated by autoconf version 2.3" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2826 | exit 0 ;; |
| 2827 | -help | --help | --hel | --he | --h) |
| 2828 | echo "\$ac_cs_usage"; exit 0 ;; |
| 2829 | *) echo "\$ac_cs_usage"; exit 1 ;; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2830 | esac |
| 2831 | done |
| 2832 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2833 | ac_given_srcdir=$srcdir |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2834 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2835 | trap 'rm -fr `echo "Makefile Objects/Makefile Parser/Makefile Python/Makefile Modules/Makefile.pre config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2836 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2837 | # Protect against being on the right side of a sed subst in config.status. |
| 2838 | sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; |
| 2839 | s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2840 | $ac_vpsub |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2841 | $extrasub |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2842 | s%@CFLAGS@%$CFLAGS%g |
| 2843 | s%@CPPFLAGS@%$CPPFLAGS%g |
| 2844 | s%@CXXFLAGS@%$CXXFLAGS%g |
| 2845 | s%@DEFS@%$DEFS%g |
| 2846 | s%@LDFLAGS@%$LDFLAGS%g |
| 2847 | s%@LIBS@%$LIBS%g |
| 2848 | s%@exec_prefix@%$exec_prefix%g |
| 2849 | s%@prefix@%$prefix%g |
| 2850 | s%@program_transform_name@%$program_transform_name%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2851 | s%@CC@%$CC%g |
| 2852 | s%@RANLIB@%$RANLIB%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2853 | s%@AR@%$AR%g |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 2854 | s%@INSTALL@%$INSTALL%g |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 2855 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
| 2856 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 2857 | s%@OPT@%$OPT%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2858 | s%@CPP@%$CPP%g |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 2859 | s%@MACHDEP@%$MACHDEP%g |
| 2860 | s%@SO@%$SO%g |
| 2861 | s%@LDSHARED@%$LDSHARED%g |
| 2862 | s%@CCSHARED@%$CCSHARED%g |
| 2863 | s%@LINKFORSHARED@%$LINKFORSHARED%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2864 | s%@DLINCLDIR@%$DLINCLDIR%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2865 | s%@LIBOBJS@%$LIBOBJS%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2866 | s%@LIBM@%$LIBM%g |
| 2867 | s%@LIBC@%$LIBC%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2868 | |
| 2869 | CEOF |
| 2870 | EOF |
| 2871 | cat >> $CONFIG_STATUS <<EOF |
| 2872 | |
| 2873 | CONFIG_FILES=\${CONFIG_FILES-"Makefile Objects/Makefile Parser/Makefile Python/Makefile Modules/Makefile.pre"} |
| 2874 | EOF |
| 2875 | cat >> $CONFIG_STATUS <<\EOF |
| 2876 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
| 2877 | # Support "outfile[:infile]", defaulting infile="outfile.in". |
| 2878 | case "$ac_file" in |
| 2879 | *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'` |
| 2880 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 2881 | *) ac_file_in="${ac_file}.in" ;; |
| 2882 | esac |
| 2883 | |
| 2884 | # Adjust relative srcdir, etc. for subdirectories. |
| 2885 | |
| 2886 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 2887 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 2888 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 2889 | # The file is in a subdirectory. |
| 2890 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 2891 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2892 | # A "../" for each directory in $ac_dir_suffix. |
| 2893 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
| 2894 | else |
| 2895 | ac_dir_suffix= ac_dots= |
| 2896 | fi |
| 2897 | |
| 2898 | case "$ac_given_srcdir" in |
| 2899 | .) srcdir=. |
| 2900 | if test -z "$ac_dots"; then top_srcdir=. |
| 2901 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
| 2902 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
| 2903 | *) # Relative path. |
| 2904 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
| 2905 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 2906 | esac |
| 2907 | |
| 2908 | echo creating "$ac_file" |
| 2909 | rm -f "$ac_file" |
| 2910 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
| 2911 | case "$ac_file" in |
| 2912 | *Makefile*) ac_comsub="1i\\ |
| 2913 | # $configure_input" ;; |
| 2914 | *) ac_comsub= ;; |
| 2915 | esac |
| 2916 | sed -e "$ac_comsub |
| 2917 | s%@configure_input@%$configure_input%g |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2918 | s%@srcdir@%$srcdir%g |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2919 | s%@top_srcdir@%$top_srcdir%g |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2920 | " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2921 | fi; done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2922 | rm -f conftest.subs |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2923 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2924 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 2925 | # 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] | 2926 | # |
| 2927 | # ac_d sets the value in "#define NAME VALUE" lines. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2928 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 2929 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2930 | ac_dC='\3' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2931 | ac_dD='%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2932 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2933 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 2934 | ac_uB='\([ ]\)%\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2935 | ac_uC=' ' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2936 | ac_uD='\4%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2937 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2938 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 2939 | ac_eB='$%\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2940 | ac_eC=' ' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2941 | ac_eD='%g' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2942 | |
| 2943 | CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"} |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2944 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
| 2945 | # Support "outfile[:infile]", defaulting infile="outfile.in". |
| 2946 | case "$ac_file" in |
| 2947 | *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'` |
| 2948 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 2949 | *) ac_file_in="${ac_file}.in" ;; |
| 2950 | esac |
| 2951 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 2952 | echo creating $ac_file |
| 2953 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2954 | rm -f conftest.frag conftest.in conftest.out |
| 2955 | cp $ac_given_srcdir/$ac_file_in conftest.in |
| 2956 | |
| 2957 | EOF |
| 2958 | |
| 2959 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
| 2960 | # the proper values into config.h.in to produce config.h. And first: |
| 2961 | # Protect against being on the right side of a sed subst in config.status. |
| 2962 | # Protect against being in an unquoted here document in config.status. |
| 2963 | rm -f conftest.vals |
| 2964 | cat > conftest.hdr <<\EOF |
| 2965 | s/[\\&%]/\\&/g |
| 2966 | s%[\\$`]%\\&%g |
| 2967 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
| 2968 | s%ac_d%ac_u%gp |
| 2969 | s%ac_u%ac_e%gp |
| 2970 | EOF |
| 2971 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
| 2972 | rm -f conftest.hdr |
| 2973 | |
| 2974 | # This sed command replaces #undef with comments. This is necessary, for |
| 2975 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 2976 | # on some systems where configure will not decide to define it. |
| 2977 | cat >> conftest.vals <<\EOF |
| 2978 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
| 2979 | EOF |
| 2980 | |
| 2981 | # Break up conftest.vals because some shells have a limit on |
| 2982 | # the size of here documents, and old seds have small limits too. |
| 2983 | # Maximum number of lines to put in a single here document. |
| 2984 | ac_max_here_lines=12 |
| 2985 | |
| 2986 | rm -f conftest.tail |
| 2987 | while : |
| 2988 | do |
| 2989 | ac_lines=`grep -c . conftest.vals` |
| 2990 | # grep -c gives empty output for an empty file on some AIX systems. |
| 2991 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
| 2992 | # Write a limited-size here document to conftest.frag. |
| 2993 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
| 2994 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
| 2995 | echo 'CEOF |
| 2996 | sed -f conftest.frag conftest.in > conftest.out |
| 2997 | rm -f conftest.in |
| 2998 | mv conftest.out conftest.in |
| 2999 | ' >> $CONFIG_STATUS |
| 3000 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
| 3001 | rm -f conftest.vals |
| 3002 | mv conftest.tail conftest.vals |
| 3003 | done |
| 3004 | rm -f conftest.vals |
| 3005 | |
| 3006 | cat >> $CONFIG_STATUS <<\EOF |
| 3007 | rm -f conftest.frag conftest.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3008 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3009 | cat conftest.in >> conftest.h |
| 3010 | rm -f conftest.in |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3011 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3012 | echo "$ac_file is unchanged" |
| 3013 | rm -f conftest.h |
| 3014 | else |
| 3015 | rm -f $ac_file |
| 3016 | mv conftest.h $ac_file |
| 3017 | fi |
| 3018 | fi; done |
| 3019 | |
| 3020 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3021 | |
| 3022 | exit 0 |
| 3023 | EOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3024 | chmod +x $CONFIG_STATUS |
| 3025 | rm -fr confdefs* $ac_clean_files |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3026 | 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] | 3027 | |