Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | |
| 3 | # Guess values for system-dependent variables and create Makefiles. |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 4 | # Generated automatically using autoconf version 2.13 |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
| 6 | # |
| 7 | # This configure script is free software; the Free Software Foundation |
| 8 | # gives unlimited permission to copy, distribute and modify it. |
| 9 | |
| 10 | # Defaults: |
| 11 | ac_help= |
| 12 | ac_default_prefix=/usr/local |
| 13 | # Any additions from configure.in: |
| 14 | |
| 15 | # Initialize some variables set by options. |
| 16 | # The variables have the same names as the options, with |
| 17 | # dashes changed to underlines. |
| 18 | build=NONE |
| 19 | cache_file=./config.cache |
| 20 | exec_prefix=NONE |
| 21 | host=NONE |
| 22 | no_create= |
| 23 | nonopt=NONE |
| 24 | no_recursion= |
| 25 | prefix=NONE |
| 26 | program_prefix=NONE |
| 27 | program_suffix=NONE |
| 28 | program_transform_name=s,x,x, |
| 29 | silent= |
| 30 | site= |
| 31 | srcdir= |
| 32 | target=NONE |
| 33 | verbose= |
| 34 | x_includes=NONE |
| 35 | x_libraries=NONE |
| 36 | bindir='${exec_prefix}/bin' |
| 37 | sbindir='${exec_prefix}/sbin' |
| 38 | libexecdir='${exec_prefix}/libexec' |
| 39 | datadir='${prefix}/share' |
| 40 | sysconfdir='${prefix}/etc' |
| 41 | sharedstatedir='${prefix}/com' |
| 42 | localstatedir='${prefix}/var' |
| 43 | libdir='${exec_prefix}/lib' |
| 44 | includedir='${prefix}/include' |
| 45 | oldincludedir='/usr/include' |
| 46 | infodir='${prefix}/info' |
| 47 | mandir='${prefix}/man' |
| 48 | |
| 49 | # Initialize some other variables. |
| 50 | subdirs= |
| 51 | MFLAGS= MAKEFLAGS= |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 52 | SHELL=${CONFIG_SHELL-/bin/sh} |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 53 | # Maximum number of lines to put in a shell here document. |
| 54 | ac_max_here_lines=12 |
| 55 | |
| 56 | ac_prev= |
| 57 | for ac_option |
| 58 | do |
| 59 | |
| 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 |
| 65 | fi |
| 66 | |
| 67 | case "$ac_option" in |
| 68 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
| 69 | *) ac_optarg= ;; |
| 70 | esac |
| 71 | |
| 72 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 73 | |
| 74 | case "$ac_option" in |
| 75 | |
| 76 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 77 | ac_prev=bindir ;; |
| 78 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 79 | bindir="$ac_optarg" ;; |
| 80 | |
| 81 | -build | --build | --buil | --bui | --bu) |
| 82 | ac_prev=build ;; |
| 83 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 84 | build="$ac_optarg" ;; |
| 85 | |
| 86 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 87 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 88 | ac_prev=cache_file ;; |
| 89 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 90 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 91 | cache_file="$ac_optarg" ;; |
| 92 | |
| 93 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 94 | ac_prev=datadir ;; |
| 95 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 96 | | --da=*) |
| 97 | datadir="$ac_optarg" ;; |
| 98 | |
| 99 | -disable-* | --disable-*) |
| 100 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
| 101 | # Reject names that are not valid shell variable names. |
| 102 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 103 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 104 | fi |
| 105 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 106 | eval "enable_${ac_feature}=no" ;; |
| 107 | |
| 108 | -enable-* | --enable-*) |
| 109 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
| 110 | # Reject names that are not valid shell variable names. |
| 111 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 112 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 113 | fi |
| 114 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 115 | case "$ac_option" in |
| 116 | *=*) ;; |
| 117 | *) ac_optarg=yes ;; |
| 118 | esac |
| 119 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
| 120 | |
| 121 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 122 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 123 | | --exec | --exe | --ex) |
| 124 | ac_prev=exec_prefix ;; |
| 125 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 126 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 127 | | --exec=* | --exe=* | --ex=*) |
| 128 | exec_prefix="$ac_optarg" ;; |
| 129 | |
| 130 | -gas | --gas | --ga | --g) |
| 131 | # Obsolete; use --with-gas. |
| 132 | with_gas=yes ;; |
| 133 | |
| 134 | -help | --help | --hel | --he) |
| 135 | # Omit some internal or obsolete options to make the list less imposing. |
| 136 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 137 | cat << EOF |
| 138 | Usage: configure [options] [host] |
| 139 | Options: [defaults in brackets after descriptions] |
| 140 | Configuration: |
| 141 | --cache-file=FILE cache test results in FILE |
| 142 | --help print this message |
| 143 | --no-create do not create output files |
| 144 | --quiet, --silent do not print \`checking...' messages |
| 145 | --version print the version of autoconf that created configure |
| 146 | Directory and file names: |
| 147 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 148 | [$ac_default_prefix] |
| 149 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 150 | [same as prefix] |
| 151 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
| 152 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
| 153 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
| 154 | --datadir=DIR read-only architecture-independent data in DIR |
| 155 | [PREFIX/share] |
| 156 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
| 157 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
| 158 | [PREFIX/com] |
| 159 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
| 160 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
| 161 | --includedir=DIR C header files in DIR [PREFIX/include] |
| 162 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
| 163 | --infodir=DIR info documentation in DIR [PREFIX/info] |
| 164 | --mandir=DIR man documentation in DIR [PREFIX/man] |
| 165 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
| 166 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 167 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 168 | --program-transform-name=PROGRAM |
| 169 | run sed PROGRAM on installed program names |
| 170 | EOF |
| 171 | cat << EOF |
| 172 | Host type: |
| 173 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
| 174 | --host=HOST configure for HOST [guessed] |
| 175 | --target=TARGET configure for TARGET [TARGET=HOST] |
| 176 | Features and packages: |
| 177 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 178 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 179 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 180 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 181 | --x-includes=DIR X include files are in DIR |
| 182 | --x-libraries=DIR X library files are in DIR |
| 183 | EOF |
| 184 | if test -n "$ac_help"; then |
| 185 | echo "--enable and --with options recognized:$ac_help" |
| 186 | fi |
| 187 | exit 0 ;; |
| 188 | |
| 189 | -host | --host | --hos | --ho) |
| 190 | ac_prev=host ;; |
| 191 | -host=* | --host=* | --hos=* | --ho=*) |
| 192 | host="$ac_optarg" ;; |
| 193 | |
| 194 | -includedir | --includedir | --includedi | --included | --include \ |
| 195 | | --includ | --inclu | --incl | --inc) |
| 196 | ac_prev=includedir ;; |
| 197 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 198 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 199 | includedir="$ac_optarg" ;; |
| 200 | |
| 201 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 202 | ac_prev=infodir ;; |
| 203 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 204 | infodir="$ac_optarg" ;; |
| 205 | |
| 206 | -libdir | --libdir | --libdi | --libd) |
| 207 | ac_prev=libdir ;; |
| 208 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 209 | libdir="$ac_optarg" ;; |
| 210 | |
| 211 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 212 | | --libexe | --libex | --libe) |
| 213 | ac_prev=libexecdir ;; |
| 214 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 215 | | --libexe=* | --libex=* | --libe=*) |
| 216 | libexecdir="$ac_optarg" ;; |
| 217 | |
| 218 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 219 | | --localstate | --localstat | --localsta | --localst \ |
| 220 | | --locals | --local | --loca | --loc | --lo) |
| 221 | ac_prev=localstatedir ;; |
| 222 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 223 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 224 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 225 | localstatedir="$ac_optarg" ;; |
| 226 | |
| 227 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 228 | ac_prev=mandir ;; |
| 229 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 230 | mandir="$ac_optarg" ;; |
| 231 | |
| 232 | -nfp | --nfp | --nf) |
| 233 | # Obsolete; use --without-fp. |
| 234 | with_fp=no ;; |
| 235 | |
| 236 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 237 | | --no-cr | --no-c) |
| 238 | no_create=yes ;; |
| 239 | |
| 240 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 241 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 242 | no_recursion=yes ;; |
| 243 | |
| 244 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 245 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 246 | | --oldin | --oldi | --old | --ol | --o) |
| 247 | ac_prev=oldincludedir ;; |
| 248 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 249 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 250 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 251 | oldincludedir="$ac_optarg" ;; |
| 252 | |
| 253 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 254 | ac_prev=prefix ;; |
| 255 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 256 | prefix="$ac_optarg" ;; |
| 257 | |
| 258 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 259 | | --program-pre | --program-pr | --program-p) |
| 260 | ac_prev=program_prefix ;; |
| 261 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 262 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 263 | program_prefix="$ac_optarg" ;; |
| 264 | |
| 265 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 266 | | --program-suf | --program-su | --program-s) |
| 267 | ac_prev=program_suffix ;; |
| 268 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 269 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 270 | program_suffix="$ac_optarg" ;; |
| 271 | |
| 272 | -program-transform-name | --program-transform-name \ |
| 273 | | --program-transform-nam | --program-transform-na \ |
| 274 | | --program-transform-n | --program-transform- \ |
| 275 | | --program-transform | --program-transfor \ |
| 276 | | --program-transfo | --program-transf \ |
| 277 | | --program-trans | --program-tran \ |
| 278 | | --progr-tra | --program-tr | --program-t) |
| 279 | ac_prev=program_transform_name ;; |
| 280 | -program-transform-name=* | --program-transform-name=* \ |
| 281 | | --program-transform-nam=* | --program-transform-na=* \ |
| 282 | | --program-transform-n=* | --program-transform-=* \ |
| 283 | | --program-transform=* | --program-transfor=* \ |
| 284 | | --program-transfo=* | --program-transf=* \ |
| 285 | | --program-trans=* | --program-tran=* \ |
| 286 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 287 | program_transform_name="$ac_optarg" ;; |
| 288 | |
| 289 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 290 | | -silent | --silent | --silen | --sile | --sil) |
| 291 | silent=yes ;; |
| 292 | |
| 293 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 294 | ac_prev=sbindir ;; |
| 295 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 296 | | --sbi=* | --sb=*) |
| 297 | sbindir="$ac_optarg" ;; |
| 298 | |
| 299 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 300 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 301 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 302 | | --sha | --sh) |
| 303 | ac_prev=sharedstatedir ;; |
| 304 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 305 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 306 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 307 | | --sha=* | --sh=*) |
| 308 | sharedstatedir="$ac_optarg" ;; |
| 309 | |
| 310 | -site | --site | --sit) |
| 311 | ac_prev=site ;; |
| 312 | -site=* | --site=* | --sit=*) |
| 313 | site="$ac_optarg" ;; |
| 314 | |
| 315 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 316 | ac_prev=srcdir ;; |
| 317 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 318 | srcdir="$ac_optarg" ;; |
| 319 | |
| 320 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 321 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 322 | ac_prev=sysconfdir ;; |
| 323 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 324 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 325 | sysconfdir="$ac_optarg" ;; |
| 326 | |
| 327 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 328 | ac_prev=target ;; |
| 329 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 330 | target="$ac_optarg" ;; |
| 331 | |
| 332 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 333 | verbose=yes ;; |
| 334 | |
| 335 | -version | --version | --versio | --versi | --vers) |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 336 | echo "configure generated by autoconf version 2.13" |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 337 | exit 0 ;; |
| 338 | |
| 339 | -with-* | --with-*) |
| 340 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
| 341 | # Reject names that are not valid shell variable names. |
| 342 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 343 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 344 | fi |
| 345 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 346 | case "$ac_option" in |
| 347 | *=*) ;; |
| 348 | *) ac_optarg=yes ;; |
| 349 | esac |
| 350 | eval "with_${ac_package}='$ac_optarg'" ;; |
| 351 | |
| 352 | -without-* | --without-*) |
| 353 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
| 354 | # Reject names that are not valid shell variable names. |
| 355 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 356 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 357 | fi |
| 358 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 359 | eval "with_${ac_package}=no" ;; |
| 360 | |
| 361 | --x) |
| 362 | # Obsolete; use --with-x. |
| 363 | with_x=yes ;; |
| 364 | |
| 365 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 366 | | --x-incl | --x-inc | --x-in | --x-i) |
| 367 | ac_prev=x_includes ;; |
| 368 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 369 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 370 | x_includes="$ac_optarg" ;; |
| 371 | |
| 372 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 373 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 374 | ac_prev=x_libraries ;; |
| 375 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 376 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 377 | x_libraries="$ac_optarg" ;; |
| 378 | |
| 379 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
| 380 | ;; |
| 381 | |
| 382 | *) |
| 383 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
| 384 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
| 385 | fi |
| 386 | if test "x$nonopt" != xNONE; then |
| 387 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
| 388 | fi |
| 389 | nonopt="$ac_option" |
| 390 | ;; |
| 391 | |
| 392 | esac |
| 393 | done |
| 394 | |
| 395 | if test -n "$ac_prev"; then |
| 396 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
| 397 | fi |
| 398 | |
| 399 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 400 | |
| 401 | # File descriptor usage: |
| 402 | # 0 standard input |
| 403 | # 1 file creation |
| 404 | # 2 errors and warnings |
| 405 | # 3 some systems may open it to /dev/tty |
| 406 | # 4 used on the Kubota Titan |
| 407 | # 6 checking for... messages and results |
| 408 | # 5 compiler messages saved in config.log |
| 409 | if test "$silent" = yes; then |
| 410 | exec 6>/dev/null |
| 411 | else |
| 412 | exec 6>&1 |
| 413 | fi |
| 414 | exec 5>./config.log |
| 415 | |
| 416 | echo "\ |
| 417 | This file contains any messages produced by compilers while |
| 418 | running configure, to aid debugging if configure makes a mistake. |
| 419 | " 1>&5 |
| 420 | |
| 421 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 422 | # Also quote any args containing shell metacharacters. |
| 423 | ac_configure_args= |
| 424 | for ac_arg |
| 425 | do |
| 426 | case "$ac_arg" in |
| 427 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 428 | | --no-cr | --no-c) ;; |
| 429 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 430 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 431 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
| 432 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 433 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
| 434 | esac |
| 435 | done |
| 436 | |
| 437 | # NLS nuisances. |
| 438 | # Only set these to C if already set. These must not be set unconditionally |
| 439 | # because not all systems understand e.g. LANG=C (notably SCO). |
| 440 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
| 441 | # Non-C LC_CTYPE values break the ctype check. |
| 442 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
| 443 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
| 444 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
| 445 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
| 446 | |
| 447 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 448 | rm -rf conftest* confdefs.h |
| 449 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 450 | echo > confdefs.h |
| 451 | |
| 452 | # A filename unique to this package, relative to the directory that |
| 453 | # configure is in, which we can look for to find out if srcdir is correct. |
| 454 | ac_unique_file=strace.c |
| 455 | |
| 456 | # Find the source files, if location was not specified. |
| 457 | if test -z "$srcdir"; then |
| 458 | ac_srcdir_defaulted=yes |
| 459 | # Try the directory containing this script, then its parent. |
| 460 | ac_prog=$0 |
| 461 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
| 462 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| 463 | srcdir=$ac_confdir |
| 464 | if test ! -r $srcdir/$ac_unique_file; then |
| 465 | srcdir=.. |
| 466 | fi |
| 467 | else |
| 468 | ac_srcdir_defaulted=no |
| 469 | fi |
| 470 | if test ! -r $srcdir/$ac_unique_file; then |
| 471 | if test "$ac_srcdir_defaulted" = yes; then |
| 472 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
| 473 | else |
| 474 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
| 475 | fi |
| 476 | fi |
| 477 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
| 478 | |
| 479 | # Prefer explicitly selected file to automatically selected ones. |
| 480 | if test -z "$CONFIG_SITE"; then |
| 481 | if test "x$prefix" != xNONE; then |
| 482 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 483 | else |
| 484 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 485 | fi |
| 486 | fi |
| 487 | for ac_site_file in $CONFIG_SITE; do |
| 488 | if test -r "$ac_site_file"; then |
| 489 | echo "loading site script $ac_site_file" |
| 490 | . "$ac_site_file" |
| 491 | fi |
| 492 | done |
| 493 | |
| 494 | if test -r "$cache_file"; then |
| 495 | echo "loading cache $cache_file" |
| 496 | . $cache_file |
| 497 | else |
| 498 | echo "creating cache $cache_file" |
| 499 | > $cache_file |
| 500 | fi |
| 501 | |
| 502 | ac_ext=c |
| 503 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 504 | ac_cpp='$CPP $CPPFLAGS' |
| 505 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 506 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 507 | cross_compiling=$ac_cv_prog_cc_cross |
| 508 | |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 509 | ac_exeext= |
| 510 | ac_objext=o |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 511 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
| 512 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
| 513 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
| 514 | ac_n= ac_c=' |
| 515 | ' ac_t=' ' |
| 516 | else |
| 517 | ac_n=-n ac_c= ac_t= |
| 518 | fi |
| 519 | else |
| 520 | ac_n= ac_c='\c' ac_t= |
| 521 | fi |
| 522 | |
| 523 | |
| 524 | ac_aux_dir= |
| 525 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 526 | if test -f $ac_dir/install-sh; then |
| 527 | ac_aux_dir=$ac_dir |
| 528 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 529 | break |
| 530 | elif test -f $ac_dir/install.sh; then |
| 531 | ac_aux_dir=$ac_dir |
| 532 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 533 | break |
| 534 | fi |
| 535 | done |
| 536 | if test -z "$ac_aux_dir"; then |
| 537 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
| 538 | fi |
| 539 | ac_config_guess=$ac_aux_dir/config.guess |
| 540 | ac_config_sub=$ac_aux_dir/config.sub |
| 541 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
| 542 | |
| 543 | |
| 544 | # Make sure we can run config.sub. |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 545 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 546 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
| 547 | fi |
| 548 | |
| 549 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 550 | echo "configure:551: checking host system type" >&5 |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 551 | |
| 552 | host_alias=$host |
| 553 | case "$host_alias" in |
| 554 | NONE) |
| 555 | case $nonopt in |
| 556 | NONE) |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 557 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 558 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
| 559 | fi ;; |
| 560 | *) host_alias=$nonopt ;; |
| 561 | esac ;; |
| 562 | esac |
| 563 | |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 564 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 565 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 566 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 567 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 568 | echo "$ac_t""$host" 1>&6 |
| 569 | |
| 570 | echo $ac_n "checking for supported operating system""... $ac_c" 1>&6 |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 571 | echo "configure:572: checking for supported operating system" >&5 |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 572 | |
| 573 | case "$host_os" in |
| 574 | linux*) |
| 575 | opsys=linux |
| 576 | ;; |
| 577 | sunos4*) |
| 578 | opsys=sunos4 |
| 579 | ;; |
| 580 | solaris2*) |
| 581 | opsys=svr4 |
| 582 | ;; |
| 583 | sysv4*) |
| 584 | opsys=svr4 |
| 585 | ;; |
| 586 | irix5*) |
| 587 | opsys=svr4 |
| 588 | ;; |
| 589 | *) |
| 590 | { echo "configure: error: this operating system is not yet supported by strace" 1>&2; exit 1; } |
| 591 | ;; |
| 592 | esac |
| 593 | echo "$ac_t""$opsys" 1>&6 |
| 594 | |
| 595 | # Autoheader trick. Heh, heh. |
| 596 | opsys_list=' |
| 597 | @@@syms="$syms LINUX SUNOS4 SVR4"@@@ |
| 598 | ' |
| 599 | |
| 600 | echo $ac_n "checking for supported architecture""... $ac_c" 1>&6 |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 601 | echo "configure:602: checking for supported architecture" >&5 |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 602 | case "$host_cpu" in |
| 603 | i[3456]86|pentium) |
| 604 | arch=i386 |
| 605 | ;; |
| 606 | m68k) |
| 607 | arch=m68k |
| 608 | ;; |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 609 | sparc) |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 610 | arch=sparc |
| 611 | ;; |
| 612 | mips) |
| 613 | arch=mips |
| 614 | ;; |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 615 | alpha*) |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 616 | arch=alpha |
| 617 | ;; |
| 618 | ppc|powerpc) |
| 619 | arch=powerpc |
| 620 | ;; |
| 621 | arm) |
| 622 | arch=arm |
| 623 | ;; |
| 624 | *) |
| 625 | { echo "configure: error: this architecture is not yet supported by strace" 1>&2; exit 1; } |
| 626 | ;; |
| 627 | esac |
| 628 | echo "$ac_t""$arch" 1>&6 |
| 629 | |
| 630 | # Autoheader trick. Heh, heh. |
| 631 | arch_list=' |
| 632 | @@@syms="$syms I386 M68K SPARC MIPS ALPHA ARM"@@@ |
| 633 | ' |
| 634 | |
| 635 | osarch="$opsys" |
| 636 | if [ -d "$srcdir/$opsys/$arch" ]; then |
| 637 | osarch="$opsys/$arch" |
| 638 | fi |
| 639 | |
| 640 | OPSYS=`echo $opsys | tr '[a-z]' '[A-Z]'` |
| 641 | ARCH=`echo $arch | tr '[a-z]' '[A-Z]'` |
| 642 | |
| 643 | |
| 644 | |
| 645 | cat >> confdefs.h <<EOF |
| 646 | #define $OPSYS 1 |
| 647 | EOF |
| 648 | |
| 649 | |
| 650 | cat >> confdefs.h <<EOF |
| 651 | #define $ARCH 1 |
| 652 | EOF |
| 653 | |
| 654 | |
| 655 | # Extract the first word of "gcc", so it can be a program name with args. |
| 656 | set dummy gcc; ac_word=$2 |
| 657 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 658 | echo "configure:659: checking for $ac_word" >&5 |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 659 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 660 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 661 | else |
| 662 | if test -n "$CC"; then |
| 663 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 664 | else |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 665 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 666 | ac_dummy="$PATH" |
| 667 | for ac_dir in $ac_dummy; do |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 668 | test -z "$ac_dir" && ac_dir=. |
| 669 | if test -f $ac_dir/$ac_word; then |
| 670 | ac_cv_prog_CC="gcc" |
| 671 | break |
| 672 | fi |
| 673 | done |
| 674 | IFS="$ac_save_ifs" |
| 675 | fi |
| 676 | fi |
| 677 | CC="$ac_cv_prog_CC" |
| 678 | if test -n "$CC"; then |
| 679 | echo "$ac_t""$CC" 1>&6 |
| 680 | else |
| 681 | echo "$ac_t""no" 1>&6 |
| 682 | fi |
| 683 | |
| 684 | if test -z "$CC"; then |
| 685 | # Extract the first word of "cc", so it can be a program name with args. |
| 686 | set dummy cc; ac_word=$2 |
| 687 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 688 | echo "configure:689: checking for $ac_word" >&5 |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 689 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 690 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 691 | else |
| 692 | if test -n "$CC"; then |
| 693 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 694 | else |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 695 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 696 | ac_prog_rejected=no |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 697 | ac_dummy="$PATH" |
| 698 | for ac_dir in $ac_dummy; do |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 699 | test -z "$ac_dir" && ac_dir=. |
| 700 | if test -f $ac_dir/$ac_word; then |
| 701 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 702 | ac_prog_rejected=yes |
| 703 | continue |
| 704 | fi |
| 705 | ac_cv_prog_CC="cc" |
| 706 | break |
| 707 | fi |
| 708 | done |
| 709 | IFS="$ac_save_ifs" |
| 710 | if test $ac_prog_rejected = yes; then |
| 711 | # We found a bogon in the path, so make sure we never use it. |
| 712 | set dummy $ac_cv_prog_CC |
| 713 | shift |
| 714 | if test $# -gt 0; then |
| 715 | # We chose a different compiler from the bogus one. |
| 716 | # However, it has the same basename, so the bogon will be chosen |
| 717 | # first if we set CC to just the basename; use the full file name. |
| 718 | shift |
| 719 | set dummy "$ac_dir/$ac_word" "$@" |
| 720 | shift |
| 721 | ac_cv_prog_CC="$@" |
| 722 | fi |
| 723 | fi |
| 724 | fi |
| 725 | fi |
| 726 | CC="$ac_cv_prog_CC" |
| 727 | if test -n "$CC"; then |
| 728 | echo "$ac_t""$CC" 1>&6 |
| 729 | else |
| 730 | echo "$ac_t""no" 1>&6 |
| 731 | fi |
| 732 | |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 733 | if test -z "$CC"; then |
| 734 | case "`uname -s`" in |
| 735 | *win32* | *WIN32*) |
| 736 | # Extract the first word of "cl", so it can be a program name with args. |
| 737 | set dummy cl; ac_word=$2 |
| 738 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 739 | echo "configure:740: checking for $ac_word" >&5 |
| 740 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 741 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 742 | else |
| 743 | if test -n "$CC"; then |
| 744 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 745 | else |
| 746 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 747 | ac_dummy="$PATH" |
| 748 | for ac_dir in $ac_dummy; do |
| 749 | test -z "$ac_dir" && ac_dir=. |
| 750 | if test -f $ac_dir/$ac_word; then |
| 751 | ac_cv_prog_CC="cl" |
| 752 | break |
| 753 | fi |
| 754 | done |
| 755 | IFS="$ac_save_ifs" |
| 756 | fi |
| 757 | fi |
| 758 | CC="$ac_cv_prog_CC" |
| 759 | if test -n "$CC"; then |
| 760 | echo "$ac_t""$CC" 1>&6 |
| 761 | else |
| 762 | echo "$ac_t""no" 1>&6 |
| 763 | fi |
| 764 | ;; |
| 765 | esac |
| 766 | fi |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 767 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
| 768 | fi |
| 769 | |
| 770 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 771 | echo "configure:772: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 772 | |
| 773 | ac_ext=c |
| 774 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 775 | ac_cpp='$CPP $CPPFLAGS' |
| 776 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 777 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 778 | cross_compiling=$ac_cv_prog_cc_cross |
| 779 | |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 780 | cat > conftest.$ac_ext << EOF |
| 781 | |
| 782 | #line 783 "configure" |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 783 | #include "confdefs.h" |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 784 | |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 785 | main(){return(0);} |
| 786 | EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 787 | if { (eval echo configure:788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 788 | ac_cv_prog_cc_works=yes |
| 789 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 790 | if (./conftest; exit) 2>/dev/null; then |
| 791 | ac_cv_prog_cc_cross=no |
| 792 | else |
| 793 | ac_cv_prog_cc_cross=yes |
| 794 | fi |
| 795 | else |
| 796 | echo "configure: failed program was:" >&5 |
| 797 | cat conftest.$ac_ext >&5 |
| 798 | ac_cv_prog_cc_works=no |
| 799 | fi |
| 800 | rm -fr conftest* |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 801 | ac_ext=c |
| 802 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 803 | ac_cpp='$CPP $CPPFLAGS' |
| 804 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 805 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 806 | cross_compiling=$ac_cv_prog_cc_cross |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 807 | |
| 808 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| 809 | if test $ac_cv_prog_cc_works = no; then |
| 810 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
| 811 | fi |
| 812 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 813 | echo "configure:814: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 814 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| 815 | cross_compiling=$ac_cv_prog_cc_cross |
| 816 | |
| 817 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 818 | echo "configure:819: checking whether we are using GNU C" >&5 |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 819 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
| 820 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 821 | else |
| 822 | cat > conftest.c <<EOF |
| 823 | #ifdef __GNUC__ |
| 824 | yes; |
| 825 | #endif |
| 826 | EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 827 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 828 | ac_cv_prog_gcc=yes |
| 829 | else |
| 830 | ac_cv_prog_gcc=no |
| 831 | fi |
| 832 | fi |
| 833 | |
| 834 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
| 835 | |
| 836 | if test $ac_cv_prog_gcc = yes; then |
| 837 | GCC=yes |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 838 | else |
| 839 | GCC= |
| 840 | fi |
| 841 | |
| 842 | ac_test_CFLAGS="${CFLAGS+set}" |
| 843 | ac_save_CFLAGS="$CFLAGS" |
| 844 | CFLAGS= |
| 845 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
| 846 | echo "configure:847: checking whether ${CC-cc} accepts -g" >&5 |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 847 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
| 848 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 849 | else |
| 850 | echo 'void f(){}' > conftest.c |
| 851 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
| 852 | ac_cv_prog_cc_g=yes |
| 853 | else |
| 854 | ac_cv_prog_cc_g=no |
| 855 | fi |
| 856 | rm -f conftest* |
| 857 | |
| 858 | fi |
| 859 | |
| 860 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 861 | if test "$ac_test_CFLAGS" = set; then |
| 862 | CFLAGS="$ac_save_CFLAGS" |
| 863 | elif test $ac_cv_prog_cc_g = yes; then |
| 864 | if test "$GCC" = yes; then |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 865 | CFLAGS="-g -O2" |
| 866 | else |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 867 | CFLAGS="-g" |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 868 | fi |
| 869 | else |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 870 | if test "$GCC" = yes; then |
| 871 | CFLAGS="-O2" |
| 872 | else |
| 873 | CFLAGS= |
| 874 | fi |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 875 | fi |
| 876 | |
| 877 | if test -z "$HOSTCC" |
| 878 | then |
| 879 | HOSTCC="$CC" |
| 880 | if test -n "$GCC" |
| 881 | then |
| 882 | # Find out if gcc groks our host. |
| 883 | worked= |
| 884 | last= |
| 885 | for i in $host_alias $host |
| 886 | do |
| 887 | test "x$i" = "x$last" && continue |
| 888 | last="$i" |
| 889 | CC="$HOSTCC -b $i" |
| 890 | echo $ac_n "checking for working $CC""... $ac_c" 1>&6 |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 891 | echo "configure:892: checking for working $CC" >&5 |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 892 | cat > conftest.$ac_ext <<EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 893 | #line 894 "configure" |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 894 | #include "confdefs.h" |
| 895 | |
| 896 | int main() { |
| 897 | |
| 898 | ; return 0; } |
| 899 | EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 900 | if { (eval echo configure:901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 901 | rm -rf conftest* |
| 902 | worked=1 |
| 903 | break |
| 904 | |
| 905 | else |
| 906 | echo "configure: failed program was:" >&5 |
| 907 | cat conftest.$ac_ext >&5 |
| 908 | fi |
| 909 | rm -f conftest* |
| 910 | echo "$ac_t""no" 1>&6 |
| 911 | done |
| 912 | if test -z "$worked" |
| 913 | then |
| 914 | CC="$HOSTCC" |
| 915 | else |
| 916 | echo "$ac_t""yes" 1>&6 |
| 917 | fi |
| 918 | fi |
| 919 | fi |
| 920 | |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 921 | echo $ac_n "checking for pollable procfs""... $ac_c" 1>&6 |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 922 | echo "configure:923: checking for pollable procfs" >&5 |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 923 | if eval "test \"`echo '$''{'ac_cv_pollable_procfs'+set}'`\" = set"; then |
| 924 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 925 | else |
| 926 | if test "$cross_compiling" = yes; then |
| 927 | |
| 928 | # Guess or punt. |
| 929 | case "$host_os" in |
| 930 | solaris2*|irix5*) |
| 931 | ac_cv_pollable_procfs=yes |
| 932 | ;; |
| 933 | *) |
| 934 | ac_cv_pollable_procfs=no |
| 935 | ;; |
| 936 | esac |
| 937 | |
| 938 | else |
| 939 | cat > conftest.$ac_ext <<EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 940 | #line 941 "configure" |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 941 | #include "confdefs.h" |
| 942 | |
| 943 | #include <stdio.h> |
| 944 | #include <signal.h> |
| 945 | #include <sys/procfs.h> |
| 946 | #include <sys/stropts.h> |
| 947 | #include <poll.h> |
| 948 | |
| 949 | main() |
| 950 | { |
| 951 | int pid; |
| 952 | char proc[32]; |
| 953 | FILE *pfp; |
| 954 | struct pollfd pfd; |
| 955 | |
| 956 | if ((pid = fork()) == 0) { |
| 957 | pause(); |
| 958 | exit(0); |
| 959 | } |
| 960 | sprintf(proc, "/proc/%d", pid); |
| 961 | if ((pfp = fopen(proc, "r+")) == NULL) |
| 962 | goto fail; |
| 963 | if (ioctl(fileno(pfp), PIOCSTOP, NULL) < 0) |
| 964 | goto fail; |
| 965 | pfd.fd = fileno(pfp); |
| 966 | pfd.events = POLLPRI; |
| 967 | if (poll(&pfd, 1, 0) < 0) |
| 968 | goto fail; |
| 969 | if (!(pfd.revents & POLLPRI)) |
| 970 | goto fail; |
| 971 | kill(pid, SIGKILL); |
| 972 | exit(0); |
| 973 | fail: |
| 974 | kill(pid, SIGKILL); |
| 975 | exit(1); |
| 976 | } |
| 977 | |
| 978 | EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 979 | if { (eval echo configure:980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 980 | then |
| 981 | ac_cv_pollable_procfs=yes |
| 982 | else |
| 983 | echo "configure: failed program was:" >&5 |
| 984 | cat conftest.$ac_ext >&5 |
| 985 | rm -fr conftest* |
| 986 | ac_cv_pollable_procfs=no |
| 987 | fi |
| 988 | rm -fr conftest* |
| 989 | fi |
| 990 | |
| 991 | fi |
| 992 | |
| 993 | echo "$ac_t""$ac_cv_pollable_procfs" 1>&6 |
| 994 | if test "$ac_cv_pollable_procfs" = yes |
| 995 | then |
| 996 | cat >> confdefs.h <<\EOF |
| 997 | #define HAVE_POLLABLE_PROCFS 1 |
| 998 | EOF |
| 999 | |
| 1000 | fi |
| 1001 | |
| 1002 | echo $ac_n "checking for pr_syscall in struct prstatus""... $ac_c" 1>&6 |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1003 | echo "configure:1004: checking for pr_syscall in struct prstatus" >&5 |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1004 | if eval "test \"`echo '$''{'ac_cv_struct_pr_syscall'+set}'`\" = set"; then |
| 1005 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1006 | else |
| 1007 | cat > conftest.$ac_ext <<EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1008 | #line 1009 "configure" |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1009 | #include "confdefs.h" |
| 1010 | #include <sys/procfs.h> |
| 1011 | int main() { |
| 1012 | struct prstatus s; s.pr_syscall; |
| 1013 | ; return 0; } |
| 1014 | EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1015 | if { (eval echo configure:1016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1016 | rm -rf conftest* |
| 1017 | ac_cv_struct_pr_syscall=yes |
| 1018 | else |
| 1019 | echo "configure: failed program was:" >&5 |
| 1020 | cat conftest.$ac_ext >&5 |
| 1021 | rm -rf conftest* |
| 1022 | ac_cv_struct_pr_syscall=no |
| 1023 | fi |
| 1024 | rm -f conftest* |
| 1025 | fi |
| 1026 | |
| 1027 | echo "$ac_t""$ac_cv_struct_pr_syscall" 1>&6 |
| 1028 | if test "$ac_cv_struct_pr_syscall" = yes |
| 1029 | then |
| 1030 | cat >> confdefs.h <<\EOF |
| 1031 | #define HAVE_PR_SYSCALL 1 |
| 1032 | EOF |
| 1033 | |
| 1034 | fi |
| 1035 | |
| 1036 | echo $ac_n "checking for msg_control in struct msghdr""... $ac_c" 1>&6 |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1037 | echo "configure:1038: checking for msg_control in struct msghdr" >&5 |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1038 | if eval "test \"`echo '$''{'ac_cv_struct_msg_control'+set}'`\" = set"; then |
| 1039 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1040 | else |
| 1041 | cat > conftest.$ac_ext <<EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1042 | #line 1043 "configure" |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1043 | #include "confdefs.h" |
| 1044 | #include <sys/types.h> |
| 1045 | #include <sys/socket.h> |
| 1046 | int main() { |
| 1047 | #undef msg_control |
| 1048 | struct msghdr m; m.msg_control; |
| 1049 | ; return 0; } |
| 1050 | EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1051 | if { (eval echo configure:1052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1052 | rm -rf conftest* |
| 1053 | ac_cv_struct_msg_control=yes |
| 1054 | else |
| 1055 | echo "configure: failed program was:" >&5 |
| 1056 | cat conftest.$ac_ext >&5 |
| 1057 | rm -rf conftest* |
| 1058 | ac_cv_struct_msg_control=no |
| 1059 | fi |
| 1060 | rm -f conftest* |
| 1061 | fi |
| 1062 | |
| 1063 | echo "$ac_t""$ac_cv_struct_msg_control" 1>&6 |
| 1064 | if test "$ac_cv_struct_msg_control" = yes |
| 1065 | then |
| 1066 | cat >> confdefs.h <<\EOF |
| 1067 | #define HAVE_MSG_CONTROL 1 |
| 1068 | EOF |
| 1069 | |
| 1070 | fi |
| 1071 | |
| 1072 | for ac_prog in mawk gawk nawk awk |
| 1073 | do |
| 1074 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1075 | set dummy $ac_prog; ac_word=$2 |
| 1076 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1077 | echo "configure:1078: checking for $ac_word" >&5 |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1078 | if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then |
| 1079 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1080 | else |
| 1081 | if test -n "$AWK"; then |
| 1082 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 1083 | else |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1084 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1085 | ac_dummy="$PATH" |
| 1086 | for ac_dir in $ac_dummy; do |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1087 | test -z "$ac_dir" && ac_dir=. |
| 1088 | if test -f $ac_dir/$ac_word; then |
| 1089 | ac_cv_prog_AWK="$ac_prog" |
| 1090 | break |
| 1091 | fi |
| 1092 | done |
| 1093 | IFS="$ac_save_ifs" |
| 1094 | fi |
| 1095 | fi |
| 1096 | AWK="$ac_cv_prog_AWK" |
| 1097 | if test -n "$AWK"; then |
| 1098 | echo "$ac_t""$AWK" 1>&6 |
| 1099 | else |
| 1100 | echo "$ac_t""no" 1>&6 |
| 1101 | fi |
| 1102 | |
| 1103 | test -n "$AWK" && break |
| 1104 | done |
| 1105 | |
| 1106 | |
| 1107 | echo $ac_n "checking for primary include directory""... $ac_c" 1>&6 |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1108 | echo "configure:1109: checking for primary include directory" >&5 |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1109 | includedir=/usr/include |
| 1110 | if test -n "$GCC" |
| 1111 | then |
| 1112 | >conftest.c |
| 1113 | new_includedir=` |
| 1114 | $CC -v -E conftest.c 2>&1 | $AWK ' |
| 1115 | /^End of search list/ { print last; exit } |
| 1116 | { last = $1 } |
| 1117 | ' |
| 1118 | ` |
| 1119 | rm -f conftest.c |
| 1120 | if test -n "$new_includedir" && test -d "$new_includedir" |
| 1121 | then |
| 1122 | includedir=$new_includedir |
| 1123 | fi |
| 1124 | fi |
| 1125 | echo "$ac_t""$includedir" 1>&6 |
| 1126 | |
| 1127 | if test "x$OPSYS" = "xSUNOS4" && test "x$ARCH" = "xSPARC" |
| 1128 | then |
| 1129 | echo $ac_n "checking for valid machine include directory""... $ac_c" 1>&6 |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1130 | echo "configure:1131: checking for valid machine include directory" >&5 |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1131 | if test -d "$includedir/sun4" |
| 1132 | then |
| 1133 | rm -f machine |
| 1134 | ln -s $includedir/sun4 machine |
| 1135 | echo "$ac_t""yes" 1>&6 |
| 1136 | cat >> confdefs.h <<\EOF |
| 1137 | #define SUNOS4_KERNEL_ARCH_KLUDGE 1 |
| 1138 | EOF |
| 1139 | |
| 1140 | else |
| 1141 | echo "$ac_t""no" 1>&6 |
| 1142 | fi |
| 1143 | fi |
| 1144 | |
| 1145 | if test -z "$WARNFLAGS" |
| 1146 | then |
| 1147 | if test -n "$GCC" |
| 1148 | then |
| 1149 | # If we're using gcc we want warning flags. |
| 1150 | WARNFLAGS=-Wall |
| 1151 | fi |
| 1152 | fi |
| 1153 | |
| 1154 | if test "x$OPSYS" = "xSUNOS4" |
| 1155 | then |
| 1156 | if test -n "$GCC" |
| 1157 | then |
| 1158 | # SunOS 4.x header files don't declare int functions. |
| 1159 | WARNFLAGS="$WARNFLAGS -Wno-implicit" |
| 1160 | fi |
| 1161 | fi |
| 1162 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1163 | echo "configure:1164: checking how to run the C preprocessor" >&5 |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1164 | # On Suns, sometimes $CPP names a directory. |
| 1165 | if test -n "$CPP" && test -d "$CPP"; then |
| 1166 | CPP= |
| 1167 | fi |
| 1168 | if test -z "$CPP"; then |
| 1169 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
| 1170 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1171 | else |
| 1172 | # This must be in double quotes, not single quotes, because CPP may get |
| 1173 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
| 1174 | CPP="${CC-cc} -E" |
| 1175 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 1176 | # not just through cpp. |
| 1177 | cat > conftest.$ac_ext <<EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1178 | #line 1179 "configure" |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1179 | #include "confdefs.h" |
| 1180 | #include <assert.h> |
| 1181 | Syntax Error |
| 1182 | EOF |
| 1183 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1184 | { (eval echo configure:1185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1185 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1186 | if test -z "$ac_err"; then |
| 1187 | : |
| 1188 | else |
| 1189 | echo "$ac_err" >&5 |
| 1190 | echo "configure: failed program was:" >&5 |
| 1191 | cat conftest.$ac_ext >&5 |
| 1192 | rm -rf conftest* |
| 1193 | CPP="${CC-cc} -E -traditional-cpp" |
| 1194 | cat > conftest.$ac_ext <<EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1195 | #line 1196 "configure" |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1196 | #include "confdefs.h" |
| 1197 | #include <assert.h> |
| 1198 | Syntax Error |
| 1199 | EOF |
| 1200 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1201 | { (eval echo configure:1202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1202 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1203 | if test -z "$ac_err"; then |
| 1204 | : |
| 1205 | else |
| 1206 | echo "$ac_err" >&5 |
| 1207 | echo "configure: failed program was:" >&5 |
| 1208 | cat conftest.$ac_ext >&5 |
| 1209 | rm -rf conftest* |
| 1210 | CPP="${CC-cc} -nologo -E" |
| 1211 | cat > conftest.$ac_ext <<EOF |
| 1212 | #line 1213 "configure" |
| 1213 | #include "confdefs.h" |
| 1214 | #include <assert.h> |
| 1215 | Syntax Error |
| 1216 | EOF |
| 1217 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1218 | { (eval echo configure:1219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1219 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1220 | if test -z "$ac_err"; then |
| 1221 | : |
| 1222 | else |
| 1223 | echo "$ac_err" >&5 |
| 1224 | echo "configure: failed program was:" >&5 |
| 1225 | cat conftest.$ac_ext >&5 |
| 1226 | rm -rf conftest* |
| 1227 | CPP=/lib/cpp |
| 1228 | fi |
| 1229 | rm -f conftest* |
| 1230 | fi |
| 1231 | rm -f conftest* |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1232 | fi |
| 1233 | rm -f conftest* |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1234 | ac_cv_prog_CPP="$CPP" |
| 1235 | fi |
| 1236 | CPP="$ac_cv_prog_CPP" |
| 1237 | else |
| 1238 | ac_cv_prog_CPP="$CPP" |
| 1239 | fi |
| 1240 | echo "$ac_t""$CPP" 1>&6 |
| 1241 | |
| 1242 | if test $ac_cv_prog_gcc = yes; then |
| 1243 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1244 | echo "configure:1245: checking whether ${CC-cc} needs -traditional" >&5 |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1245 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
| 1246 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1247 | else |
| 1248 | ac_pattern="Autoconf.*'x'" |
| 1249 | cat > conftest.$ac_ext <<EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1250 | #line 1251 "configure" |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1251 | #include "confdefs.h" |
| 1252 | #include <sgtty.h> |
| 1253 | Autoconf TIOCGETP |
| 1254 | EOF |
| 1255 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1256 | egrep "$ac_pattern" >/dev/null 2>&1; then |
| 1257 | rm -rf conftest* |
| 1258 | ac_cv_prog_gcc_traditional=yes |
| 1259 | else |
| 1260 | rm -rf conftest* |
| 1261 | ac_cv_prog_gcc_traditional=no |
| 1262 | fi |
| 1263 | rm -f conftest* |
| 1264 | |
| 1265 | |
| 1266 | if test $ac_cv_prog_gcc_traditional = no; then |
| 1267 | cat > conftest.$ac_ext <<EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1268 | #line 1269 "configure" |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1269 | #include "confdefs.h" |
| 1270 | #include <termio.h> |
| 1271 | Autoconf TCGETA |
| 1272 | EOF |
| 1273 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1274 | egrep "$ac_pattern" >/dev/null 2>&1; then |
| 1275 | rm -rf conftest* |
| 1276 | ac_cv_prog_gcc_traditional=yes |
| 1277 | fi |
| 1278 | rm -f conftest* |
| 1279 | |
| 1280 | fi |
| 1281 | fi |
| 1282 | |
| 1283 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 |
| 1284 | if test $ac_cv_prog_gcc_traditional = yes; then |
| 1285 | CC="$CC -traditional" |
| 1286 | fi |
| 1287 | fi |
| 1288 | |
| 1289 | # Find a good install program. We prefer a C program (faster), |
| 1290 | # so one script is as good as another. But avoid the broken or |
| 1291 | # incompatible versions: |
| 1292 | # SysV /etc/install, /usr/sbin/install |
| 1293 | # SunOS /usr/etc/install |
| 1294 | # IRIX /sbin/install |
| 1295 | # AIX /bin/install |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1296 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1297 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1298 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1299 | # ./install, which can be erroneously created by make from ./install.sh. |
| 1300 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1301 | echo "configure:1302: checking for a BSD compatible install" >&5 |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1302 | if test -z "$INSTALL"; then |
| 1303 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
| 1304 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1305 | else |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1306 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1307 | for ac_dir in $PATH; do |
| 1308 | # Account for people who put trailing slashes in PATH elements. |
| 1309 | case "$ac_dir/" in |
| 1310 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
| 1311 | *) |
| 1312 | # OSF1 and SCO ODT 3.0 have their own names for install. |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1313 | # Don't use installbsd from OSF since it installs stuff as root |
| 1314 | # by default. |
| 1315 | for ac_prog in ginstall scoinst install; do |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1316 | if test -f $ac_dir/$ac_prog; then |
| 1317 | if test $ac_prog = install && |
| 1318 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
| 1319 | # AIX install. It has an incompatible calling convention. |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1320 | : |
| 1321 | else |
| 1322 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
| 1323 | break 2 |
| 1324 | fi |
| 1325 | fi |
| 1326 | done |
| 1327 | ;; |
| 1328 | esac |
| 1329 | done |
| 1330 | IFS="$ac_save_IFS" |
| 1331 | |
| 1332 | fi |
| 1333 | if test "${ac_cv_path_install+set}" = set; then |
| 1334 | INSTALL="$ac_cv_path_install" |
| 1335 | else |
| 1336 | # As a last resort, use the slow shell script. We don't cache a |
| 1337 | # path for INSTALL within a source directory, because that will |
| 1338 | # break other packages using the cache if that directory is |
| 1339 | # removed, or if the path is relative. |
| 1340 | INSTALL="$ac_install_sh" |
| 1341 | fi |
| 1342 | fi |
| 1343 | echo "$ac_t""$INSTALL" 1>&6 |
| 1344 | |
| 1345 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 1346 | # It thinks the first close brace ends the variable substitution. |
| 1347 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 1348 | |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1349 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
| 1350 | |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1351 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 1352 | |
| 1353 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1354 | echo "configure:1355: checking for working const" >&5 |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1355 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
| 1356 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1357 | else |
| 1358 | cat > conftest.$ac_ext <<EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1359 | #line 1360 "configure" |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1360 | #include "confdefs.h" |
| 1361 | |
| 1362 | int main() { |
| 1363 | |
| 1364 | /* Ultrix mips cc rejects this. */ |
| 1365 | typedef int charset[2]; const charset x; |
| 1366 | /* SunOS 4.1.1 cc rejects this. */ |
| 1367 | char const *const *ccp; |
| 1368 | char **p; |
| 1369 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 1370 | struct point {int x, y;}; |
| 1371 | static struct point const zero = {0,0}; |
| 1372 | /* AIX XL C 1.02.0.0 rejects this. |
| 1373 | It does not let you subtract one const X* pointer from another in an arm |
| 1374 | of an if-expression whose if-part is not a constant expression */ |
| 1375 | const char *g = "string"; |
| 1376 | ccp = &g + (g ? g-g : 0); |
| 1377 | /* HPUX 7.0 cc rejects these. */ |
| 1378 | ++ccp; |
| 1379 | p = (char**) ccp; |
| 1380 | ccp = (char const *const *) p; |
| 1381 | { /* SCO 3.2v4 cc rejects this. */ |
| 1382 | char *t; |
| 1383 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 1384 | |
| 1385 | *t++ = 0; |
| 1386 | } |
| 1387 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 1388 | int x[] = {25, 17}; |
| 1389 | const int *foo = &x[0]; |
| 1390 | ++foo; |
| 1391 | } |
| 1392 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 1393 | typedef const int *iptr; |
| 1394 | iptr p = 0; |
| 1395 | ++p; |
| 1396 | } |
| 1397 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 1398 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 1399 | struct s { int j; const int *ap[3]; }; |
| 1400 | struct s *b; b->j = 5; |
| 1401 | } |
| 1402 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 1403 | const int foo = 10; |
| 1404 | } |
| 1405 | |
| 1406 | ; return 0; } |
| 1407 | EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1408 | if { (eval echo configure:1409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1409 | rm -rf conftest* |
| 1410 | ac_cv_c_const=yes |
| 1411 | else |
| 1412 | echo "configure: failed program was:" >&5 |
| 1413 | cat conftest.$ac_ext >&5 |
| 1414 | rm -rf conftest* |
| 1415 | ac_cv_c_const=no |
| 1416 | fi |
| 1417 | rm -f conftest* |
| 1418 | fi |
| 1419 | |
| 1420 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
| 1421 | if test $ac_cv_c_const = no; then |
| 1422 | cat >> confdefs.h <<\EOF |
| 1423 | #define const |
| 1424 | EOF |
| 1425 | |
| 1426 | fi |
| 1427 | |
| 1428 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1429 | echo "configure:1430: checking for ANSI C header files" >&5 |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1430 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
| 1431 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1432 | else |
| 1433 | cat > conftest.$ac_ext <<EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1434 | #line 1435 "configure" |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1435 | #include "confdefs.h" |
| 1436 | #include <stdlib.h> |
| 1437 | #include <stdarg.h> |
| 1438 | #include <string.h> |
| 1439 | #include <float.h> |
| 1440 | EOF |
| 1441 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1442 | { (eval echo configure:1443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1443 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1444 | if test -z "$ac_err"; then |
| 1445 | rm -rf conftest* |
| 1446 | ac_cv_header_stdc=yes |
| 1447 | else |
| 1448 | echo "$ac_err" >&5 |
| 1449 | echo "configure: failed program was:" >&5 |
| 1450 | cat conftest.$ac_ext >&5 |
| 1451 | rm -rf conftest* |
| 1452 | ac_cv_header_stdc=no |
| 1453 | fi |
| 1454 | rm -f conftest* |
| 1455 | |
| 1456 | if test $ac_cv_header_stdc = yes; then |
| 1457 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 1458 | cat > conftest.$ac_ext <<EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1459 | #line 1460 "configure" |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1460 | #include "confdefs.h" |
| 1461 | #include <string.h> |
| 1462 | EOF |
| 1463 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1464 | egrep "memchr" >/dev/null 2>&1; then |
| 1465 | : |
| 1466 | else |
| 1467 | rm -rf conftest* |
| 1468 | ac_cv_header_stdc=no |
| 1469 | fi |
| 1470 | rm -f conftest* |
| 1471 | |
| 1472 | fi |
| 1473 | |
| 1474 | if test $ac_cv_header_stdc = yes; then |
| 1475 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 1476 | cat > conftest.$ac_ext <<EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1477 | #line 1478 "configure" |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1478 | #include "confdefs.h" |
| 1479 | #include <stdlib.h> |
| 1480 | EOF |
| 1481 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1482 | egrep "free" >/dev/null 2>&1; then |
| 1483 | : |
| 1484 | else |
| 1485 | rm -rf conftest* |
| 1486 | ac_cv_header_stdc=no |
| 1487 | fi |
| 1488 | rm -f conftest* |
| 1489 | |
| 1490 | fi |
| 1491 | |
| 1492 | if test $ac_cv_header_stdc = yes; then |
| 1493 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 1494 | if test "$cross_compiling" = yes; then |
| 1495 | : |
| 1496 | else |
| 1497 | cat > conftest.$ac_ext <<EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1498 | #line 1499 "configure" |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1499 | #include "confdefs.h" |
| 1500 | #include <ctype.h> |
| 1501 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 1502 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 1503 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 1504 | int main () { int i; for (i = 0; i < 256; i++) |
| 1505 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
| 1506 | exit (0); } |
| 1507 | |
| 1508 | EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1509 | if { (eval echo configure:1510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1510 | then |
| 1511 | : |
| 1512 | else |
| 1513 | echo "configure: failed program was:" >&5 |
| 1514 | cat conftest.$ac_ext >&5 |
| 1515 | rm -fr conftest* |
| 1516 | ac_cv_header_stdc=no |
| 1517 | fi |
| 1518 | rm -fr conftest* |
| 1519 | fi |
| 1520 | |
| 1521 | fi |
| 1522 | fi |
| 1523 | |
| 1524 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
| 1525 | if test $ac_cv_header_stdc = yes; then |
| 1526 | cat >> confdefs.h <<\EOF |
| 1527 | #define STDC_HEADERS 1 |
| 1528 | EOF |
| 1529 | |
| 1530 | fi |
| 1531 | |
| 1532 | ac_header_dirent=no |
| 1533 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h |
| 1534 | do |
| 1535 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 1536 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1537 | echo "configure:1538: checking for $ac_hdr that defines DIR" >&5 |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1538 | if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then |
| 1539 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1540 | else |
| 1541 | cat > conftest.$ac_ext <<EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1542 | #line 1543 "configure" |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1543 | #include "confdefs.h" |
| 1544 | #include <sys/types.h> |
| 1545 | #include <$ac_hdr> |
| 1546 | int main() { |
| 1547 | DIR *dirp = 0; |
| 1548 | ; return 0; } |
| 1549 | EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1550 | if { (eval echo configure:1551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1551 | rm -rf conftest* |
| 1552 | eval "ac_cv_header_dirent_$ac_safe=yes" |
| 1553 | else |
| 1554 | echo "configure: failed program was:" >&5 |
| 1555 | cat conftest.$ac_ext >&5 |
| 1556 | rm -rf conftest* |
| 1557 | eval "ac_cv_header_dirent_$ac_safe=no" |
| 1558 | fi |
| 1559 | rm -f conftest* |
| 1560 | fi |
| 1561 | if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then |
| 1562 | echo "$ac_t""yes" 1>&6 |
| 1563 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 1564 | cat >> confdefs.h <<EOF |
| 1565 | #define $ac_tr_hdr 1 |
| 1566 | EOF |
| 1567 | ac_header_dirent=$ac_hdr; break |
| 1568 | else |
| 1569 | echo "$ac_t""no" 1>&6 |
| 1570 | fi |
| 1571 | done |
| 1572 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 1573 | if test $ac_header_dirent = dirent.h; then |
| 1574 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1575 | echo "configure:1576: checking for opendir in -ldir" >&5 |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1576 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` |
| 1577 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 1578 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1579 | else |
| 1580 | ac_save_LIBS="$LIBS" |
| 1581 | LIBS="-ldir $LIBS" |
| 1582 | cat > conftest.$ac_ext <<EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1583 | #line 1584 "configure" |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1584 | #include "confdefs.h" |
| 1585 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1586 | /* We use char because int might match the return type of a gcc2 |
| 1587 | builtin and then its argument prototype would still apply. */ |
| 1588 | char opendir(); |
| 1589 | |
| 1590 | int main() { |
| 1591 | opendir() |
| 1592 | ; return 0; } |
| 1593 | EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1594 | if { (eval echo configure:1595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1595 | rm -rf conftest* |
| 1596 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 1597 | else |
| 1598 | echo "configure: failed program was:" >&5 |
| 1599 | cat conftest.$ac_ext >&5 |
| 1600 | rm -rf conftest* |
| 1601 | eval "ac_cv_lib_$ac_lib_var=no" |
| 1602 | fi |
| 1603 | rm -f conftest* |
| 1604 | LIBS="$ac_save_LIBS" |
| 1605 | |
| 1606 | fi |
| 1607 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 1608 | echo "$ac_t""yes" 1>&6 |
| 1609 | LIBS="$LIBS -ldir" |
| 1610 | else |
| 1611 | echo "$ac_t""no" 1>&6 |
| 1612 | fi |
| 1613 | |
| 1614 | else |
| 1615 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1616 | echo "configure:1617: checking for opendir in -lx" >&5 |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1617 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` |
| 1618 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 1619 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1620 | else |
| 1621 | ac_save_LIBS="$LIBS" |
| 1622 | LIBS="-lx $LIBS" |
| 1623 | cat > conftest.$ac_ext <<EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1624 | #line 1625 "configure" |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1625 | #include "confdefs.h" |
| 1626 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1627 | /* We use char because int might match the return type of a gcc2 |
| 1628 | builtin and then its argument prototype would still apply. */ |
| 1629 | char opendir(); |
| 1630 | |
| 1631 | int main() { |
| 1632 | opendir() |
| 1633 | ; return 0; } |
| 1634 | EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1635 | if { (eval echo configure:1636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1636 | rm -rf conftest* |
| 1637 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 1638 | else |
| 1639 | echo "configure: failed program was:" >&5 |
| 1640 | cat conftest.$ac_ext >&5 |
| 1641 | rm -rf conftest* |
| 1642 | eval "ac_cv_lib_$ac_lib_var=no" |
| 1643 | fi |
| 1644 | rm -f conftest* |
| 1645 | LIBS="$ac_save_LIBS" |
| 1646 | |
| 1647 | fi |
| 1648 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 1649 | echo "$ac_t""yes" 1>&6 |
| 1650 | LIBS="$LIBS -lx" |
| 1651 | else |
| 1652 | echo "$ac_t""no" 1>&6 |
| 1653 | fi |
| 1654 | |
| 1655 | fi |
| 1656 | |
| 1657 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1658 | echo "configure:1659: checking return type of signal handlers" >&5 |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1659 | if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
| 1660 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1661 | else |
| 1662 | cat > conftest.$ac_ext <<EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1663 | #line 1664 "configure" |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1664 | #include "confdefs.h" |
| 1665 | #include <sys/types.h> |
| 1666 | #include <signal.h> |
| 1667 | #ifdef signal |
| 1668 | #undef signal |
| 1669 | #endif |
| 1670 | #ifdef __cplusplus |
| 1671 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 1672 | #else |
| 1673 | void (*signal ()) (); |
| 1674 | #endif |
| 1675 | |
| 1676 | int main() { |
| 1677 | int i; |
| 1678 | ; return 0; } |
| 1679 | EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1680 | if { (eval echo configure:1681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1681 | rm -rf conftest* |
| 1682 | ac_cv_type_signal=void |
| 1683 | else |
| 1684 | echo "configure: failed program was:" >&5 |
| 1685 | cat conftest.$ac_ext >&5 |
| 1686 | rm -rf conftest* |
| 1687 | ac_cv_type_signal=int |
| 1688 | fi |
| 1689 | rm -f conftest* |
| 1690 | fi |
| 1691 | |
| 1692 | echo "$ac_t""$ac_cv_type_signal" 1>&6 |
| 1693 | cat >> confdefs.h <<EOF |
| 1694 | #define RETSIGTYPE $ac_cv_type_signal |
| 1695 | EOF |
| 1696 | |
| 1697 | |
| 1698 | echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6 |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1699 | echo "configure:1700: checking for st_blksize in struct stat" >&5 |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1700 | if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then |
| 1701 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1702 | else |
| 1703 | cat > conftest.$ac_ext <<EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1704 | #line 1705 "configure" |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1705 | #include "confdefs.h" |
| 1706 | #include <sys/types.h> |
| 1707 | #include <sys/stat.h> |
| 1708 | int main() { |
| 1709 | struct stat s; s.st_blksize; |
| 1710 | ; return 0; } |
| 1711 | EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1712 | if { (eval echo configure:1713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1713 | rm -rf conftest* |
| 1714 | ac_cv_struct_st_blksize=yes |
| 1715 | else |
| 1716 | echo "configure: failed program was:" >&5 |
| 1717 | cat conftest.$ac_ext >&5 |
| 1718 | rm -rf conftest* |
| 1719 | ac_cv_struct_st_blksize=no |
| 1720 | fi |
| 1721 | rm -f conftest* |
| 1722 | fi |
| 1723 | |
| 1724 | echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6 |
| 1725 | if test $ac_cv_struct_st_blksize = yes; then |
| 1726 | cat >> confdefs.h <<\EOF |
| 1727 | #define HAVE_ST_BLKSIZE 1 |
| 1728 | EOF |
| 1729 | |
| 1730 | fi |
| 1731 | |
| 1732 | echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6 |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1733 | echo "configure:1734: checking for st_blocks in struct stat" >&5 |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1734 | if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then |
| 1735 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1736 | else |
| 1737 | cat > conftest.$ac_ext <<EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1738 | #line 1739 "configure" |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1739 | #include "confdefs.h" |
| 1740 | #include <sys/types.h> |
| 1741 | #include <sys/stat.h> |
| 1742 | int main() { |
| 1743 | struct stat s; s.st_blocks; |
| 1744 | ; return 0; } |
| 1745 | EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1746 | if { (eval echo configure:1747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1747 | rm -rf conftest* |
| 1748 | ac_cv_struct_st_blocks=yes |
| 1749 | else |
| 1750 | echo "configure: failed program was:" >&5 |
| 1751 | cat conftest.$ac_ext >&5 |
| 1752 | rm -rf conftest* |
| 1753 | ac_cv_struct_st_blocks=no |
| 1754 | fi |
| 1755 | rm -f conftest* |
| 1756 | fi |
| 1757 | |
| 1758 | echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6 |
| 1759 | if test $ac_cv_struct_st_blocks = yes; then |
| 1760 | cat >> confdefs.h <<\EOF |
| 1761 | #define HAVE_ST_BLOCKS 1 |
| 1762 | EOF |
| 1763 | |
| 1764 | else |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1765 | LIBOBJS="$LIBOBJS fileblocks.${ac_objext}" |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1766 | fi |
| 1767 | |
| 1768 | echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6 |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1769 | echo "configure:1770: checking for st_rdev in struct stat" >&5 |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1770 | if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then |
| 1771 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1772 | else |
| 1773 | cat > conftest.$ac_ext <<EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1774 | #line 1775 "configure" |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1775 | #include "confdefs.h" |
| 1776 | #include <sys/types.h> |
| 1777 | #include <sys/stat.h> |
| 1778 | int main() { |
| 1779 | struct stat s; s.st_rdev; |
| 1780 | ; return 0; } |
| 1781 | EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1782 | if { (eval echo configure:1783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1783 | rm -rf conftest* |
| 1784 | ac_cv_struct_st_rdev=yes |
| 1785 | else |
| 1786 | echo "configure: failed program was:" >&5 |
| 1787 | cat conftest.$ac_ext >&5 |
| 1788 | rm -rf conftest* |
| 1789 | ac_cv_struct_st_rdev=no |
| 1790 | fi |
| 1791 | rm -f conftest* |
| 1792 | fi |
| 1793 | |
| 1794 | echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6 |
| 1795 | if test $ac_cv_struct_st_rdev = yes; then |
| 1796 | cat >> confdefs.h <<\EOF |
| 1797 | #define HAVE_ST_RDEV 1 |
| 1798 | EOF |
| 1799 | |
| 1800 | fi |
| 1801 | |
| 1802 | echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6 |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1803 | echo "configure:1804: checking whether stat file-mode macros are broken" >&5 |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1804 | if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then |
| 1805 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1806 | else |
| 1807 | cat > conftest.$ac_ext <<EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1808 | #line 1809 "configure" |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1809 | #include "confdefs.h" |
| 1810 | #include <sys/types.h> |
| 1811 | #include <sys/stat.h> |
| 1812 | |
| 1813 | #if defined(S_ISBLK) && defined(S_IFDIR) |
| 1814 | # if S_ISBLK (S_IFDIR) |
| 1815 | You lose. |
| 1816 | # endif |
| 1817 | #endif |
| 1818 | |
| 1819 | #if defined(S_ISBLK) && defined(S_IFCHR) |
| 1820 | # if S_ISBLK (S_IFCHR) |
| 1821 | You lose. |
| 1822 | # endif |
| 1823 | #endif |
| 1824 | |
| 1825 | #if defined(S_ISLNK) && defined(S_IFREG) |
| 1826 | # if S_ISLNK (S_IFREG) |
| 1827 | You lose. |
| 1828 | # endif |
| 1829 | #endif |
| 1830 | |
| 1831 | #if defined(S_ISSOCK) && defined(S_IFREG) |
| 1832 | # if S_ISSOCK (S_IFREG) |
| 1833 | You lose. |
| 1834 | # endif |
| 1835 | #endif |
| 1836 | |
| 1837 | EOF |
| 1838 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1839 | egrep "You lose" >/dev/null 2>&1; then |
| 1840 | rm -rf conftest* |
| 1841 | ac_cv_header_stat_broken=yes |
| 1842 | else |
| 1843 | rm -rf conftest* |
| 1844 | ac_cv_header_stat_broken=no |
| 1845 | fi |
| 1846 | rm -f conftest* |
| 1847 | |
| 1848 | fi |
| 1849 | |
| 1850 | echo "$ac_t""$ac_cv_header_stat_broken" 1>&6 |
| 1851 | if test $ac_cv_header_stat_broken = yes; then |
| 1852 | cat >> confdefs.h <<\EOF |
| 1853 | #define STAT_MACROS_BROKEN 1 |
| 1854 | EOF |
| 1855 | |
| 1856 | fi |
| 1857 | |
| 1858 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1859 | echo "configure:1860: checking for uid_t in sys/types.h" >&5 |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1860 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
| 1861 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1862 | else |
| 1863 | cat > conftest.$ac_ext <<EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1864 | #line 1865 "configure" |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1865 | #include "confdefs.h" |
| 1866 | #include <sys/types.h> |
| 1867 | EOF |
| 1868 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1869 | egrep "uid_t" >/dev/null 2>&1; then |
| 1870 | rm -rf conftest* |
| 1871 | ac_cv_type_uid_t=yes |
| 1872 | else |
| 1873 | rm -rf conftest* |
| 1874 | ac_cv_type_uid_t=no |
| 1875 | fi |
| 1876 | rm -f conftest* |
| 1877 | |
| 1878 | fi |
| 1879 | |
| 1880 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
| 1881 | if test $ac_cv_type_uid_t = no; then |
| 1882 | cat >> confdefs.h <<\EOF |
| 1883 | #define uid_t int |
| 1884 | EOF |
| 1885 | |
| 1886 | cat >> confdefs.h <<\EOF |
| 1887 | #define gid_t int |
| 1888 | EOF |
| 1889 | |
| 1890 | fi |
| 1891 | |
| 1892 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1893 | echo "configure:1894: checking for mode_t" >&5 |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1894 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
| 1895 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1896 | else |
| 1897 | cat > conftest.$ac_ext <<EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1898 | #line 1899 "configure" |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1899 | #include "confdefs.h" |
| 1900 | #include <sys/types.h> |
| 1901 | #if STDC_HEADERS |
| 1902 | #include <stdlib.h> |
| 1903 | #include <stddef.h> |
| 1904 | #endif |
| 1905 | EOF |
| 1906 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1907 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1908 | rm -rf conftest* |
| 1909 | ac_cv_type_mode_t=yes |
| 1910 | else |
| 1911 | rm -rf conftest* |
| 1912 | ac_cv_type_mode_t=no |
| 1913 | fi |
| 1914 | rm -f conftest* |
| 1915 | |
| 1916 | fi |
| 1917 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 |
| 1918 | if test $ac_cv_type_mode_t = no; then |
| 1919 | cat >> confdefs.h <<\EOF |
| 1920 | #define mode_t int |
| 1921 | EOF |
| 1922 | |
| 1923 | fi |
| 1924 | |
| 1925 | echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6 |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1926 | echo "configure:1927: checking type of array argument to getgroups" >&5 |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1927 | if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then |
| 1928 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1929 | else |
| 1930 | if test "$cross_compiling" = yes; then |
| 1931 | ac_cv_type_getgroups=cross |
| 1932 | else |
| 1933 | cat > conftest.$ac_ext <<EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1934 | #line 1935 "configure" |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1935 | #include "confdefs.h" |
| 1936 | |
| 1937 | /* Thanks to Mike Rendell for this test. */ |
| 1938 | #include <sys/types.h> |
| 1939 | #define NGID 256 |
| 1940 | #undef MAX |
| 1941 | #define MAX(x, y) ((x) > (y) ? (x) : (y)) |
| 1942 | main() |
| 1943 | { |
| 1944 | gid_t gidset[NGID]; |
| 1945 | int i, n; |
| 1946 | union { gid_t gval; long lval; } val; |
| 1947 | |
| 1948 | val.lval = -1; |
| 1949 | for (i = 0; i < NGID; i++) |
| 1950 | gidset[i] = val.gval; |
| 1951 | n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1, |
| 1952 | gidset); |
| 1953 | /* Exit non-zero if getgroups seems to require an array of ints. This |
| 1954 | happens when gid_t is short but getgroups modifies an array of ints. */ |
| 1955 | exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0); |
| 1956 | } |
| 1957 | |
| 1958 | EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1959 | if { (eval echo configure:1960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1960 | then |
| 1961 | ac_cv_type_getgroups=gid_t |
| 1962 | else |
| 1963 | echo "configure: failed program was:" >&5 |
| 1964 | cat conftest.$ac_ext >&5 |
| 1965 | rm -fr conftest* |
| 1966 | ac_cv_type_getgroups=int |
| 1967 | fi |
| 1968 | rm -fr conftest* |
| 1969 | fi |
| 1970 | |
| 1971 | if test $ac_cv_type_getgroups = cross; then |
| 1972 | cat > conftest.$ac_ext <<EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1973 | #line 1974 "configure" |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1974 | #include "confdefs.h" |
| 1975 | #include <unistd.h> |
| 1976 | EOF |
| 1977 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1978 | egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then |
| 1979 | rm -rf conftest* |
| 1980 | ac_cv_type_getgroups=gid_t |
| 1981 | else |
| 1982 | rm -rf conftest* |
| 1983 | ac_cv_type_getgroups=int |
| 1984 | fi |
| 1985 | rm -f conftest* |
| 1986 | |
| 1987 | fi |
| 1988 | fi |
| 1989 | |
| 1990 | echo "$ac_t""$ac_cv_type_getgroups" 1>&6 |
| 1991 | cat >> confdefs.h <<EOF |
| 1992 | #define GETGROUPS_T $ac_cv_type_getgroups |
| 1993 | EOF |
| 1994 | |
| 1995 | |
| 1996 | echo $ac_n "checking whether sys/types.h defines makedev""... $ac_c" 1>&6 |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 1997 | echo "configure:1998: checking whether sys/types.h defines makedev" >&5 |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 1998 | if eval "test \"`echo '$''{'ac_cv_header_sys_types_h_makedev'+set}'`\" = set"; then |
| 1999 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2000 | else |
| 2001 | cat > conftest.$ac_ext <<EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 2002 | #line 2003 "configure" |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 2003 | #include "confdefs.h" |
| 2004 | #include <sys/types.h> |
| 2005 | int main() { |
| 2006 | return makedev(0, 0); |
| 2007 | ; return 0; } |
| 2008 | EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 2009 | if { (eval echo configure:2010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 2010 | rm -rf conftest* |
| 2011 | ac_cv_header_sys_types_h_makedev=yes |
| 2012 | else |
| 2013 | echo "configure: failed program was:" >&5 |
| 2014 | cat conftest.$ac_ext >&5 |
| 2015 | rm -rf conftest* |
| 2016 | ac_cv_header_sys_types_h_makedev=no |
| 2017 | fi |
| 2018 | rm -f conftest* |
| 2019 | |
| 2020 | fi |
| 2021 | |
| 2022 | echo "$ac_t""$ac_cv_header_sys_types_h_makedev" 1>&6 |
| 2023 | |
| 2024 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 2025 | ac_safe=`echo "sys/mkdev.h" | sed 'y%./+-%__p_%'` |
| 2026 | echo $ac_n "checking for sys/mkdev.h""... $ac_c" 1>&6 |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 2027 | echo "configure:2028: checking for sys/mkdev.h" >&5 |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 2028 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 2029 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2030 | else |
| 2031 | cat > conftest.$ac_ext <<EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 2032 | #line 2033 "configure" |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 2033 | #include "confdefs.h" |
| 2034 | #include <sys/mkdev.h> |
| 2035 | EOF |
| 2036 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 2037 | { (eval echo configure:2038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 2038 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 2039 | if test -z "$ac_err"; then |
| 2040 | rm -rf conftest* |
| 2041 | eval "ac_cv_header_$ac_safe=yes" |
| 2042 | else |
| 2043 | echo "$ac_err" >&5 |
| 2044 | echo "configure: failed program was:" >&5 |
| 2045 | cat conftest.$ac_ext >&5 |
| 2046 | rm -rf conftest* |
| 2047 | eval "ac_cv_header_$ac_safe=no" |
| 2048 | fi |
| 2049 | rm -f conftest* |
| 2050 | fi |
| 2051 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 2052 | echo "$ac_t""yes" 1>&6 |
| 2053 | cat >> confdefs.h <<\EOF |
| 2054 | #define MAJOR_IN_MKDEV 1 |
| 2055 | EOF |
| 2056 | |
| 2057 | else |
| 2058 | echo "$ac_t""no" 1>&6 |
| 2059 | fi |
| 2060 | |
| 2061 | |
| 2062 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 2063 | ac_safe=`echo "sys/sysmacros.h" | sed 'y%./+-%__p_%'` |
| 2064 | echo $ac_n "checking for sys/sysmacros.h""... $ac_c" 1>&6 |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 2065 | echo "configure:2066: checking for sys/sysmacros.h" >&5 |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 2066 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 2067 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2068 | else |
| 2069 | cat > conftest.$ac_ext <<EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 2070 | #line 2071 "configure" |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 2071 | #include "confdefs.h" |
| 2072 | #include <sys/sysmacros.h> |
| 2073 | EOF |
| 2074 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 2075 | { (eval echo configure:2076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 2076 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 2077 | if test -z "$ac_err"; then |
| 2078 | rm -rf conftest* |
| 2079 | eval "ac_cv_header_$ac_safe=yes" |
| 2080 | else |
| 2081 | echo "$ac_err" >&5 |
| 2082 | echo "configure: failed program was:" >&5 |
| 2083 | cat conftest.$ac_ext >&5 |
| 2084 | rm -rf conftest* |
| 2085 | eval "ac_cv_header_$ac_safe=no" |
| 2086 | fi |
| 2087 | rm -f conftest* |
| 2088 | fi |
| 2089 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 2090 | echo "$ac_t""yes" 1>&6 |
| 2091 | cat >> confdefs.h <<\EOF |
| 2092 | #define MAJOR_IN_SYSMACROS 1 |
| 2093 | EOF |
| 2094 | |
| 2095 | else |
| 2096 | echo "$ac_t""no" 1>&6 |
| 2097 | fi |
| 2098 | |
| 2099 | fi |
| 2100 | fi |
| 2101 | |
| 2102 | echo $ac_n "checking for sig_atomic_t in signal.h""... $ac_c" 1>&6 |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 2103 | echo "configure:2104: checking for sig_atomic_t in signal.h" >&5 |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 2104 | if eval "test \"`echo '$''{'ac_cv_sig_atomic_t'+set}'`\" = set"; then |
| 2105 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2106 | else |
| 2107 | cat > conftest.$ac_ext <<EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 2108 | #line 2109 "configure" |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 2109 | #include "confdefs.h" |
| 2110 | #include <signal.h> |
| 2111 | int main() { |
| 2112 | sig_atomic_t x; |
| 2113 | ; return 0; } |
| 2114 | EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 2115 | if { (eval echo configure:2116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 2116 | rm -rf conftest* |
| 2117 | ac_cv_sig_atomic_t=yes |
| 2118 | else |
| 2119 | echo "configure: failed program was:" >&5 |
| 2120 | cat conftest.$ac_ext >&5 |
| 2121 | rm -rf conftest* |
| 2122 | ac_cv_sig_atomic_t=no |
| 2123 | fi |
| 2124 | rm -f conftest* |
| 2125 | fi |
| 2126 | |
| 2127 | echo "$ac_t""$ac_cv_sig_atomic_t" 1>&6 |
| 2128 | if test "$ac_cv_sig_atomic_t" = yes |
| 2129 | then |
| 2130 | cat >> confdefs.h <<\EOF |
| 2131 | #define HAVE_SIG_ATOMIC_T 1 |
| 2132 | EOF |
| 2133 | |
| 2134 | fi |
| 2135 | |
| 2136 | echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6 |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 2137 | echo "configure:2138: checking for main in -lnsl" >&5 |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 2138 | ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'` |
| 2139 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2140 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2141 | else |
| 2142 | ac_save_LIBS="$LIBS" |
| 2143 | LIBS="-lnsl $LIBS" |
| 2144 | cat > conftest.$ac_ext <<EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 2145 | #line 2146 "configure" |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 2146 | #include "confdefs.h" |
| 2147 | |
| 2148 | int main() { |
| 2149 | main() |
| 2150 | ; return 0; } |
| 2151 | EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 2152 | if { (eval echo configure:2153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 2153 | rm -rf conftest* |
| 2154 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2155 | else |
| 2156 | echo "configure: failed program was:" >&5 |
| 2157 | cat conftest.$ac_ext >&5 |
| 2158 | rm -rf conftest* |
| 2159 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2160 | fi |
| 2161 | rm -f conftest* |
| 2162 | LIBS="$ac_save_LIBS" |
| 2163 | |
| 2164 | fi |
| 2165 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2166 | echo "$ac_t""yes" 1>&6 |
| 2167 | ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 2168 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 2169 | cat >> confdefs.h <<EOF |
| 2170 | #define $ac_tr_lib 1 |
| 2171 | EOF |
| 2172 | |
| 2173 | LIBS="-lnsl $LIBS" |
| 2174 | |
| 2175 | else |
| 2176 | echo "$ac_t""no" 1>&6 |
| 2177 | fi |
| 2178 | |
| 2179 | for ac_func in sigaction strerror strsignal pread sys_siglist _sys_siglist getdents mctl putpmsg prctl sendmsg |
| 2180 | do |
| 2181 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 2182 | echo "configure:2183: checking for $ac_func" >&5 |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 2183 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 2184 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2185 | else |
| 2186 | cat > conftest.$ac_ext <<EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 2187 | #line 2188 "configure" |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 2188 | #include "confdefs.h" |
| 2189 | /* System header to define __stub macros and hopefully few prototypes, |
| 2190 | which can conflict with char $ac_func(); below. */ |
| 2191 | #include <assert.h> |
| 2192 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2193 | /* We use char because int might match the return type of a gcc2 |
| 2194 | builtin and then its argument prototype would still apply. */ |
| 2195 | char $ac_func(); |
| 2196 | |
| 2197 | int main() { |
| 2198 | |
| 2199 | /* The GNU C library defines this for functions which it implements |
| 2200 | to always fail with ENOSYS. Some functions are actually named |
| 2201 | something starting with __ and the normal name is an alias. */ |
| 2202 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 2203 | choke me |
| 2204 | #else |
| 2205 | $ac_func(); |
| 2206 | #endif |
| 2207 | |
| 2208 | ; return 0; } |
| 2209 | EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 2210 | if { (eval echo configure:2211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 2211 | rm -rf conftest* |
| 2212 | eval "ac_cv_func_$ac_func=yes" |
| 2213 | else |
| 2214 | echo "configure: failed program was:" >&5 |
| 2215 | cat conftest.$ac_ext >&5 |
| 2216 | rm -rf conftest* |
| 2217 | eval "ac_cv_func_$ac_func=no" |
| 2218 | fi |
| 2219 | rm -f conftest* |
| 2220 | fi |
| 2221 | |
| 2222 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 2223 | echo "$ac_t""yes" 1>&6 |
| 2224 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 2225 | cat >> confdefs.h <<EOF |
| 2226 | #define $ac_tr_func 1 |
| 2227 | EOF |
| 2228 | |
| 2229 | else |
| 2230 | echo "$ac_t""no" 1>&6 |
| 2231 | fi |
| 2232 | done |
| 2233 | |
| 2234 | for ac_hdr in sys/filio.h sys/asynch.h sys/stream.h sys/tiuser.h sys/sysconfig.h asm/sigcontext.h |
| 2235 | do |
| 2236 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 2237 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 2238 | echo "configure:2239: checking for $ac_hdr" >&5 |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 2239 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 2240 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2241 | else |
| 2242 | cat > conftest.$ac_ext <<EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 2243 | #line 2244 "configure" |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 2244 | #include "confdefs.h" |
| 2245 | #include <$ac_hdr> |
| 2246 | EOF |
| 2247 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 2248 | { (eval echo configure:2249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 2249 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 2250 | if test -z "$ac_err"; then |
| 2251 | rm -rf conftest* |
| 2252 | eval "ac_cv_header_$ac_safe=yes" |
| 2253 | else |
| 2254 | echo "$ac_err" >&5 |
| 2255 | echo "configure: failed program was:" >&5 |
| 2256 | cat conftest.$ac_ext >&5 |
| 2257 | rm -rf conftest* |
| 2258 | eval "ac_cv_header_$ac_safe=no" |
| 2259 | fi |
| 2260 | rm -f conftest* |
| 2261 | fi |
| 2262 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 2263 | echo "$ac_t""yes" 1>&6 |
| 2264 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 2265 | cat >> confdefs.h <<EOF |
| 2266 | #define $ac_tr_hdr 1 |
| 2267 | EOF |
| 2268 | |
| 2269 | else |
| 2270 | echo "$ac_t""no" 1>&6 |
| 2271 | fi |
| 2272 | done |
| 2273 | |
| 2274 | echo $ac_n "checking for sys_errlist declaration""... $ac_c" 1>&6 |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 2275 | echo "configure:2276: checking for sys_errlist declaration" >&5 |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 2276 | if eval "test \"`echo '$''{'ac_cv_decl_sys_errlist'+set}'`\" = set"; then |
| 2277 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2278 | else |
| 2279 | cat > conftest.$ac_ext <<EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 2280 | #line 2281 "configure" |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 2281 | #include "confdefs.h" |
| 2282 | #include <sys/types.h> |
| 2283 | #include <errno.h> |
| 2284 | #include <stdio.h> |
| 2285 | /* Somebody might declare sys_errlist in unistd.h. */ |
| 2286 | #ifdef HAVE_UNISTD_H |
| 2287 | #include <unistd.h> |
| 2288 | #endif |
| 2289 | int main() { |
| 2290 | char *msg = *(sys_errlist + 1); |
| 2291 | ; return 0; } |
| 2292 | EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 2293 | if { (eval echo configure:2294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 2294 | rm -rf conftest* |
| 2295 | ac_cv_decl_sys_errlist=yes |
| 2296 | else |
| 2297 | echo "configure: failed program was:" >&5 |
| 2298 | cat conftest.$ac_ext >&5 |
| 2299 | rm -rf conftest* |
| 2300 | ac_cv_decl_sys_errlist=no |
| 2301 | fi |
| 2302 | rm -f conftest* |
| 2303 | fi |
| 2304 | echo "$ac_t""$ac_cv_decl_sys_errlist" 1>&6 |
| 2305 | if test $ac_cv_decl_sys_errlist = yes; then |
| 2306 | cat >> confdefs.h <<\EOF |
| 2307 | #define SYS_ERRLIST_DECLARED 1 |
| 2308 | EOF |
| 2309 | |
| 2310 | fi |
| 2311 | |
| 2312 | echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 2313 | echo "configure:2314: checking for sys_siglist declaration in signal.h or unistd.h" >&5 |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 2314 | if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then |
| 2315 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2316 | else |
| 2317 | cat > conftest.$ac_ext <<EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 2318 | #line 2319 "configure" |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 2319 | #include "confdefs.h" |
| 2320 | #include <sys/types.h> |
| 2321 | #include <signal.h> |
| 2322 | /* NetBSD declares sys_siglist in unistd.h. */ |
| 2323 | #ifdef HAVE_UNISTD_H |
| 2324 | #include <unistd.h> |
| 2325 | #endif |
| 2326 | int main() { |
| 2327 | char *msg = *(sys_siglist + 1); |
| 2328 | ; return 0; } |
| 2329 | EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 2330 | if { (eval echo configure:2331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 2331 | rm -rf conftest* |
| 2332 | ac_cv_decl_sys_siglist=yes |
| 2333 | else |
| 2334 | echo "configure: failed program was:" >&5 |
| 2335 | cat conftest.$ac_ext >&5 |
| 2336 | rm -rf conftest* |
| 2337 | ac_cv_decl_sys_siglist=no |
| 2338 | fi |
| 2339 | rm -f conftest* |
| 2340 | fi |
| 2341 | |
| 2342 | echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6 |
| 2343 | if test $ac_cv_decl_sys_siglist = yes; then |
| 2344 | cat >> confdefs.h <<\EOF |
| 2345 | #define SYS_SIGLIST_DECLARED 1 |
| 2346 | EOF |
| 2347 | |
| 2348 | fi |
| 2349 | |
| 2350 | echo $ac_n "checking for _sys_siglist declaration""... $ac_c" 1>&6 |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 2351 | echo "configure:2352: checking for _sys_siglist declaration" >&5 |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 2352 | if eval "test \"`echo '$''{'ac_cv_decl__sys_siglist'+set}'`\" = set"; then |
| 2353 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2354 | else |
| 2355 | cat > conftest.$ac_ext <<EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 2356 | #line 2357 "configure" |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 2357 | #include "confdefs.h" |
| 2358 | #include <sys/types.h> |
| 2359 | #include <signal.h> |
| 2360 | /* Somebody might declare _sys_siglist in unistd.h. */ |
| 2361 | #ifdef HAVE_UNISTD_H |
| 2362 | #include <unistd.h> |
| 2363 | #endif |
| 2364 | int main() { |
| 2365 | char *msg = *(_sys_siglist + 1); |
| 2366 | ; return 0; } |
| 2367 | EOF |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 2368 | if { (eval echo configure:2369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 2369 | rm -rf conftest* |
| 2370 | ac_cv_decl__sys_siglist=yes |
| 2371 | else |
| 2372 | echo "configure: failed program was:" >&5 |
| 2373 | cat conftest.$ac_ext >&5 |
| 2374 | rm -rf conftest* |
| 2375 | ac_cv_decl__sys_siglist=no |
| 2376 | fi |
| 2377 | rm -f conftest* |
| 2378 | fi |
| 2379 | echo "$ac_t""$ac_cv_decl__sys_siglist" 1>&6 |
| 2380 | if test $ac_cv_decl__sys_siglist = yes; then |
| 2381 | cat >> confdefs.h <<\EOF |
| 2382 | #define SYS_SIGLIST_DECLARED 1 |
| 2383 | EOF |
| 2384 | |
| 2385 | fi |
| 2386 | |
| 2387 | trap '' 1 2 15 |
| 2388 | cat > confcache <<\EOF |
| 2389 | # This file is a shell script that caches the results of configure |
| 2390 | # tests run on this system so they can be shared between configure |
| 2391 | # scripts and configure runs. It is not useful on other systems. |
| 2392 | # If it contains results you don't want to keep, you may remove or edit it. |
| 2393 | # |
| 2394 | # By default, configure uses ./config.cache as the cache file, |
| 2395 | # creating it if it does not exist already. You can give configure |
| 2396 | # the --cache-file=FILE option to use a different cache file; that is |
| 2397 | # what configure does when it calls configure scripts in |
| 2398 | # subdirectories, so they share the cache. |
| 2399 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
| 2400 | # config.status only pays attention to the cache file if you give it the |
| 2401 | # --recheck option to rerun configure. |
| 2402 | # |
| 2403 | EOF |
| 2404 | # The following way of writing the cache mishandles newlines in values, |
| 2405 | # but we know of no workaround that is simple, portable, and efficient. |
| 2406 | # So, don't put newlines in cache variables' values. |
| 2407 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 2408 | # and sets the high bit in the cache file unless we assign to the vars. |
| 2409 | (set) 2>&1 | |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 2410 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 2411 | *ac_space=\ *) |
| 2412 | # `set' does not quote correctly, so add quotes (double-quote substitution |
| 2413 | # turns \\\\ into \\, and sed turns \\ into \). |
| 2414 | sed -n \ |
| 2415 | -e "s/'/'\\\\''/g" \ |
| 2416 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
| 2417 | ;; |
| 2418 | *) |
| 2419 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 2420 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
| 2421 | ;; |
| 2422 | esac >> confcache |
| 2423 | if cmp -s $cache_file confcache; then |
| 2424 | : |
| 2425 | else |
| 2426 | if test -w $cache_file; then |
| 2427 | echo "updating cache $cache_file" |
| 2428 | cat confcache > $cache_file |
| 2429 | else |
| 2430 | echo "not updating unwritable cache $cache_file" |
| 2431 | fi |
| 2432 | fi |
| 2433 | rm -f confcache |
| 2434 | |
| 2435 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 2436 | |
| 2437 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 2438 | # Let make expand exec_prefix. |
| 2439 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 2440 | |
| 2441 | # Any assignment to VPATH causes Sun make to only execute |
| 2442 | # the first set of double-colon rules, so remove it if not needed. |
| 2443 | # If there is a colon in the path, we need to keep it. |
| 2444 | if test "x$srcdir" = x.; then |
| 2445 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
| 2446 | fi |
| 2447 | |
| 2448 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
| 2449 | |
| 2450 | DEFS=-DHAVE_CONFIG_H |
| 2451 | |
| 2452 | # Without the "./", some shells look in PATH for config.status. |
| 2453 | : ${CONFIG_STATUS=./config.status} |
| 2454 | |
| 2455 | echo creating $CONFIG_STATUS |
| 2456 | rm -f $CONFIG_STATUS |
| 2457 | cat > $CONFIG_STATUS <<EOF |
| 2458 | #! /bin/sh |
| 2459 | # Generated automatically by configure. |
| 2460 | # Run this file to recreate the current configuration. |
| 2461 | # This directory was configured as follows, |
| 2462 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 2463 | # |
| 2464 | # $0 $ac_configure_args |
| 2465 | # |
| 2466 | # Compiler output produced by configure, useful for debugging |
| 2467 | # configure, is in ./config.log if it exists. |
| 2468 | |
| 2469 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
| 2470 | for ac_option |
| 2471 | do |
| 2472 | case "\$ac_option" in |
| 2473 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 2474 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 2475 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
| 2476 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 2477 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 2478 | exit 0 ;; |
| 2479 | -help | --help | --hel | --he | --h) |
| 2480 | echo "\$ac_cs_usage"; exit 0 ;; |
| 2481 | *) echo "\$ac_cs_usage"; exit 1 ;; |
| 2482 | esac |
| 2483 | done |
| 2484 | |
| 2485 | ac_given_srcdir=$srcdir |
| 2486 | ac_given_INSTALL="$INSTALL" |
| 2487 | |
| 2488 | trap 'rm -fr `echo "Makefile $osarch/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
| 2489 | EOF |
| 2490 | cat >> $CONFIG_STATUS <<EOF |
| 2491 | |
| 2492 | # Protect against being on the right side of a sed subst in config.status. |
| 2493 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
| 2494 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
| 2495 | $ac_vpsub |
| 2496 | $extrasub |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 2497 | s%@SHELL@%$SHELL%g |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 2498 | s%@CFLAGS@%$CFLAGS%g |
| 2499 | s%@CPPFLAGS@%$CPPFLAGS%g |
| 2500 | s%@CXXFLAGS@%$CXXFLAGS%g |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 2501 | s%@FFLAGS@%$FFLAGS%g |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 2502 | s%@DEFS@%$DEFS%g |
| 2503 | s%@LDFLAGS@%$LDFLAGS%g |
| 2504 | s%@LIBS@%$LIBS%g |
| 2505 | s%@exec_prefix@%$exec_prefix%g |
| 2506 | s%@prefix@%$prefix%g |
| 2507 | s%@program_transform_name@%$program_transform_name%g |
| 2508 | s%@bindir@%$bindir%g |
| 2509 | s%@sbindir@%$sbindir%g |
| 2510 | s%@libexecdir@%$libexecdir%g |
| 2511 | s%@datadir@%$datadir%g |
| 2512 | s%@sysconfdir@%$sysconfdir%g |
| 2513 | s%@sharedstatedir@%$sharedstatedir%g |
| 2514 | s%@localstatedir@%$localstatedir%g |
| 2515 | s%@libdir@%$libdir%g |
| 2516 | s%@includedir@%$includedir%g |
| 2517 | s%@oldincludedir@%$oldincludedir%g |
| 2518 | s%@infodir@%$infodir%g |
| 2519 | s%@mandir@%$mandir%g |
| 2520 | s%@host@%$host%g |
| 2521 | s%@host_alias@%$host_alias%g |
| 2522 | s%@host_cpu@%$host_cpu%g |
| 2523 | s%@host_vendor@%$host_vendor%g |
| 2524 | s%@host_os@%$host_os%g |
| 2525 | s%@opsys@%$opsys%g |
| 2526 | s%@arch@%$arch%g |
| 2527 | s%@osarch@%$osarch%g |
| 2528 | s%@CC@%$CC%g |
| 2529 | s%@HOSTCC@%$HOSTCC%g |
| 2530 | s%@AWK@%$AWK%g |
| 2531 | s%@WARNFLAGS@%$WARNFLAGS%g |
| 2532 | s%@CPP@%$CPP%g |
| 2533 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
Wichert Akkerman | 1786d81 | 1999-04-15 20:34:14 +0000 | [diff] [blame] | 2534 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
Wichert Akkerman | 76baf7c | 1999-02-19 00:21:36 +0000 | [diff] [blame] | 2535 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
| 2536 | s%@LIBOBJS@%$LIBOBJS%g |
| 2537 | |
| 2538 | CEOF |
| 2539 | EOF |
| 2540 | |
| 2541 | cat >> $CONFIG_STATUS <<\EOF |
| 2542 | |
| 2543 | # Split the substitutions into bite-sized pieces for seds with |
| 2544 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 2545 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
| 2546 | ac_file=1 # Number of current file. |
| 2547 | ac_beg=1 # First line for current file. |
| 2548 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
| 2549 | ac_more_lines=: |
| 2550 | ac_sed_cmds="" |
| 2551 | while $ac_more_lines; do |
| 2552 | if test $ac_beg -gt 1; then |
| 2553 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
| 2554 | else |
| 2555 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
| 2556 | fi |
| 2557 | if test ! -s conftest.s$ac_file; then |
| 2558 | ac_more_lines=false |
| 2559 | rm -f conftest.s$ac_file |
| 2560 | else |
| 2561 | if test -z "$ac_sed_cmds"; then |
| 2562 | ac_sed_cmds="sed -f conftest.s$ac_file" |
| 2563 | else |
| 2564 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
| 2565 | fi |
| 2566 | ac_file=`expr $ac_file + 1` |
| 2567 | ac_beg=$ac_end |
| 2568 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
| 2569 | fi |
| 2570 | done |
| 2571 | if test -z "$ac_sed_cmds"; then |
| 2572 | ac_sed_cmds=cat |
| 2573 | fi |
| 2574 | EOF |
| 2575 | |
| 2576 | cat >> $CONFIG_STATUS <<EOF |
| 2577 | |
| 2578 | CONFIG_FILES=\${CONFIG_FILES-"Makefile $osarch/Makefile"} |
| 2579 | EOF |
| 2580 | cat >> $CONFIG_STATUS <<\EOF |
| 2581 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
| 2582 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 2583 | case "$ac_file" in |
| 2584 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
| 2585 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 2586 | *) ac_file_in="${ac_file}.in" ;; |
| 2587 | esac |
| 2588 | |
| 2589 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
| 2590 | |
| 2591 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 2592 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 2593 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 2594 | # The file is in a subdirectory. |
| 2595 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 2596 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
| 2597 | # A "../" for each directory in $ac_dir_suffix. |
| 2598 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
| 2599 | else |
| 2600 | ac_dir_suffix= ac_dots= |
| 2601 | fi |
| 2602 | |
| 2603 | case "$ac_given_srcdir" in |
| 2604 | .) srcdir=. |
| 2605 | if test -z "$ac_dots"; then top_srcdir=. |
| 2606 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
| 2607 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
| 2608 | *) # Relative path. |
| 2609 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
| 2610 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 2611 | esac |
| 2612 | |
| 2613 | case "$ac_given_INSTALL" in |
| 2614 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
| 2615 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
| 2616 | esac |
| 2617 | |
| 2618 | echo creating "$ac_file" |
| 2619 | rm -f "$ac_file" |
| 2620 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
| 2621 | case "$ac_file" in |
| 2622 | *Makefile*) ac_comsub="1i\\ |
| 2623 | # $configure_input" ;; |
| 2624 | *) ac_comsub= ;; |
| 2625 | esac |
| 2626 | |
| 2627 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 2628 | sed -e "$ac_comsub |
| 2629 | s%@configure_input@%$configure_input%g |
| 2630 | s%@srcdir@%$srcdir%g |
| 2631 | s%@top_srcdir@%$top_srcdir%g |
| 2632 | s%@INSTALL@%$INSTALL%g |
| 2633 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
| 2634 | fi; done |
| 2635 | rm -f conftest.s* |
| 2636 | |
| 2637 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 2638 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 2639 | # |
| 2640 | # ac_d sets the value in "#define NAME VALUE" lines. |
| 2641 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 2642 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
| 2643 | ac_dC='\3' |
| 2644 | ac_dD='%g' |
| 2645 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
| 2646 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 2647 | ac_uB='\([ ]\)%\1#\2define\3' |
| 2648 | ac_uC=' ' |
| 2649 | ac_uD='\4%g' |
| 2650 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 2651 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 2652 | ac_eB='$%\1#\2define\3' |
| 2653 | ac_eC=' ' |
| 2654 | ac_eD='%g' |
| 2655 | |
| 2656 | if test "${CONFIG_HEADERS+set}" != set; then |
| 2657 | EOF |
| 2658 | cat >> $CONFIG_STATUS <<EOF |
| 2659 | CONFIG_HEADERS="config.h" |
| 2660 | EOF |
| 2661 | cat >> $CONFIG_STATUS <<\EOF |
| 2662 | fi |
| 2663 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
| 2664 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 2665 | case "$ac_file" in |
| 2666 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
| 2667 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 2668 | *) ac_file_in="${ac_file}.in" ;; |
| 2669 | esac |
| 2670 | |
| 2671 | echo creating $ac_file |
| 2672 | |
| 2673 | rm -f conftest.frag conftest.in conftest.out |
| 2674 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 2675 | cat $ac_file_inputs > conftest.in |
| 2676 | |
| 2677 | EOF |
| 2678 | |
| 2679 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
| 2680 | # the proper values into config.h.in to produce config.h. And first: |
| 2681 | # Protect against being on the right side of a sed subst in config.status. |
| 2682 | # Protect against being in an unquoted here document in config.status. |
| 2683 | rm -f conftest.vals |
| 2684 | cat > conftest.hdr <<\EOF |
| 2685 | s/[\\&%]/\\&/g |
| 2686 | s%[\\$`]%\\&%g |
| 2687 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
| 2688 | s%ac_d%ac_u%gp |
| 2689 | s%ac_u%ac_e%gp |
| 2690 | EOF |
| 2691 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
| 2692 | rm -f conftest.hdr |
| 2693 | |
| 2694 | # This sed command replaces #undef with comments. This is necessary, for |
| 2695 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 2696 | # on some systems where configure will not decide to define it. |
| 2697 | cat >> conftest.vals <<\EOF |
| 2698 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
| 2699 | EOF |
| 2700 | |
| 2701 | # Break up conftest.vals because some shells have a limit on |
| 2702 | # the size of here documents, and old seds have small limits too. |
| 2703 | |
| 2704 | rm -f conftest.tail |
| 2705 | while : |
| 2706 | do |
| 2707 | ac_lines=`grep -c . conftest.vals` |
| 2708 | # grep -c gives empty output for an empty file on some AIX systems. |
| 2709 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
| 2710 | # Write a limited-size here document to conftest.frag. |
| 2711 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
| 2712 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
| 2713 | echo 'CEOF |
| 2714 | sed -f conftest.frag conftest.in > conftest.out |
| 2715 | rm -f conftest.in |
| 2716 | mv conftest.out conftest.in |
| 2717 | ' >> $CONFIG_STATUS |
| 2718 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
| 2719 | rm -f conftest.vals |
| 2720 | mv conftest.tail conftest.vals |
| 2721 | done |
| 2722 | rm -f conftest.vals |
| 2723 | |
| 2724 | cat >> $CONFIG_STATUS <<\EOF |
| 2725 | rm -f conftest.frag conftest.h |
| 2726 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
| 2727 | cat conftest.in >> conftest.h |
| 2728 | rm -f conftest.in |
| 2729 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
| 2730 | echo "$ac_file is unchanged" |
| 2731 | rm -f conftest.h |
| 2732 | else |
| 2733 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 2734 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 2735 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 2736 | # The file is in a subdirectory. |
| 2737 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 2738 | fi |
| 2739 | rm -f $ac_file |
| 2740 | mv conftest.h $ac_file |
| 2741 | fi |
| 2742 | fi; done |
| 2743 | |
| 2744 | EOF |
| 2745 | cat >> $CONFIG_STATUS <<EOF |
| 2746 | |
| 2747 | EOF |
| 2748 | cat >> $CONFIG_STATUS <<\EOF |
| 2749 | |
| 2750 | exit 0 |
| 2751 | EOF |
| 2752 | chmod +x $CONFIG_STATUS |
| 2753 | rm -fr confdefs* $ac_clean_files |
| 2754 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
| 2755 | |