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