Changeset 8059 for trunk/indexers
- Timestamp:
- 2004-08-26T05:55:40+12:00 (20 years ago)
- Location:
- trunk/indexers/mgpp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/indexers/mgpp/configure
r3365 r8059 1 1 #! /bin/sh 2 2 3 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by Autoconf 2.50. 4 # Generated automatically using autoconf version 2.13 5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 4 6 # 5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 20016 # Free Software Foundation, Inc.7 7 # This configure script is free software; the Free Software Foundation 8 8 # gives unlimited permission to copy, distribute and modify it. 9 9 10 # Be Bourne compatible 11 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 12 emulate sh 13 NULLCMD=: 14 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 15 set -o posix 16 fi 17 18 # Name of the executable. 19 as_me=`echo "$0" |sed 's,.*[\\/],,'` 20 21 if expr a : '\(a\)' >/dev/null 2>&1; then 22 as_expr=expr 23 else 24 as_expr=false 25 fi 26 27 rm -f conf$$ conf$$.exe conf$$.file 28 echo >conf$$.file 29 if ln -s conf$$.file conf$$ 2>/dev/null; then 30 # We could just check for DJGPP; but this test a) works b) is more generic 31 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 32 if test -f conf$$.exe; then 33 # Don't use ln at all; we don't have any links 34 as_ln_s='cp -p' 35 else 36 as_ln_s='ln -s' 37 fi 38 elif ln conf$$.file conf$$ 2>/dev/null; then 39 as_ln_s=ln 40 else 41 as_ln_s='cp -p' 42 fi 43 rm -f conf$$ conf$$.exe conf$$.file 44 45 as_executable_p="test -f" 46 47 # Support unset when possible. 48 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 49 as_unset=unset 50 else 51 as_unset=false 52 fi 53 54 # NLS nuisances. 55 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 56 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 57 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 58 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 59 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 60 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 61 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 62 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 63 64 # IFS 65 # We need space, tab and new line, in precisely that order. 66 as_nl=' 67 ' 68 IFS=" $as_nl" 69 70 # CDPATH. 71 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 72 73 # Name of the host. 74 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 75 # so uname gets run too. 76 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 77 78 exec 6>&1 79 80 # 81 # Initializations. 82 # 10 # Defaults: 11 ac_help= 83 12 ac_default_prefix=/usr/local 84 cross_compiling=no 85 subdirs= 86 MFLAGS= MAKEFLAGS= 87 SHELL=${CONFIG_SHELL-/bin/sh} 88 89 # Maximum number of lines to put in a shell here document. 90 # This variable seems obsolete. It should probably be removed, and 91 # only ac_max_sed_lines should be used. 92 : ${ac_max_here_lines=38} 93 94 # Avoid depending upon Character Ranges. 95 ac_cr_az='abcdefghijklmnopqrstuvwxyz' 96 ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 97 ac_cr_09='0123456789' 98 ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09 99 100 # Sed expression to map a string onto a valid sh and CPP variable names. 101 ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g" 102 ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g" 103 104 ac_unique_file="text/MGQuery.cpp" 105 # Factoring default headers for most tests. 106 ac_includes_default="\ 107 #include <stdio.h> 108 #include <sys/types.h> 109 #include <sys/stat.h> 110 #if STDC_HEADERS 111 # include <stdlib.h> 112 # include <stddef.h> 113 #else 114 # if HAVE_STDLIB_H 115 # include <stdlib.h> 116 # endif 117 #endif 118 #if HAVE_STRING_H 119 # if !STDC_HEADERS && HAVE_MEMORY_H 120 # include <memory.h> 121 # endif 122 # include <string.h> 123 #else 124 # if HAVE_STRINGS_H 125 # include <strings.h> 126 # endif 127 #endif 128 #if HAVE_INTTYPES_H 129 # include <inttypes.h> 130 #endif 131 #if HAVE_UNISTD_H 132 # include <unistd.h> 133 #endif" 13 # Any additions from configure.in: 14 ac_help="$ac_help 15 --with-dmalloc use dmalloc, as in 16 ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz" 17 ac_help="$ac_help 18 --with-regex use older regex in lieu of GNU rx for matching" 19 ac_help="$ac_help 20 --with-gnu-readline compile with GNU readline support" 21 ac_help="$ac_help 22 --enable-override-longlong 23 overide use of long long with GCC" 134 24 135 25 # Initialize some variables set by options. 136 ac_init_help=137 ac_init_version=false138 26 # The variables have the same names as the options, with 139 27 # dashes changed to underlines. 140 cache_file=/dev/null 28 build=NONE 29 cache_file=./config.cache 141 30 exec_prefix=NONE 31 host=NONE 142 32 no_create= 33 nonopt=NONE 143 34 no_recursion= 144 35 prefix=NONE … … 149 40 site= 150 41 srcdir= 42 target=NONE 151 43 verbose= 152 44 x_includes=NONE 153 45 x_libraries=NONE 154 155 # Installation directory options.156 # These are left unexpanded so users can "make install exec_prefix=/foo"157 # and all the variables that are supposed to be based on exec_prefix158 # by default will actually change.159 # Use braces instead of parens because sh, perl, etc. also accept them.160 46 bindir='${exec_prefix}/bin' 161 47 sbindir='${exec_prefix}/sbin' … … 171 57 mandir='${prefix}/man' 172 58 173 # I dentity of this package.174 PACKAGE_NAME=175 PACKAGE_TARNAME=176 PACKAGE_VERSION= 177 PACKAGE_STRING= 178 PACKAGE_BUGREPORT= 59 # Initialize some other variables. 60 subdirs= 61 MFLAGS= MAKEFLAGS= 62 SHELL=${CONFIG_SHELL-/bin/sh} 63 # Maximum number of lines to put in a shell here document. 64 ac_max_here_lines=12 179 65 180 66 ac_prev= 181 67 for ac_option 182 68 do 69 183 70 # If the previous option needs an argument, assign it. 184 71 if test -n "$ac_prev"; then … … 188 75 fi 189 76 190 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 77 case "$ac_option" in 78 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 79 *) ac_optarg= ;; 80 esac 191 81 192 82 # Accept the important Cygnus configure options, so we can diagnose typos. 193 83 194 case $ac_optionin84 case "$ac_option" in 195 85 196 86 -bindir | --bindir | --bindi | --bind | --bin | --bi) 197 87 ac_prev=bindir ;; 198 88 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 199 bindir= $ac_optarg;;89 bindir="$ac_optarg" ;; 200 90 201 91 -build | --build | --buil | --bui | --bu) 202 ac_prev=build _alias;;92 ac_prev=build ;; 203 93 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 204 build _alias=$ac_optarg;;94 build="$ac_optarg" ;; 205 95 206 96 -cache-file | --cache-file | --cache-fil | --cache-fi \ … … 209 99 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 210 100 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 211 cache_file=$ac_optarg ;; 212 213 --config-cache | -C) 214 cache_file=config.cache ;; 101 cache_file="$ac_optarg" ;; 215 102 216 103 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) … … 218 105 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 219 106 | --da=*) 220 datadir= $ac_optarg;;107 datadir="$ac_optarg" ;; 221 108 222 109 -disable-* | --disable-*) 223 ac_feature=`e xpr "x$ac_option" : 'x-*disable-\(.*\)'`110 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 224 111 # Reject names that are not valid shell variable names. 225 expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&226 { echo " $as_me: error: invalid feature name: $ac_feature" >&2227 { (exit 1); exit 1; }; }228 ac_feature=`echo $ac_feature 229 eval "enable_$ ac_feature=no" ;;112 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 113 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 114 fi 115 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 116 eval "enable_${ac_feature}=no" ;; 230 117 231 118 -enable-* | --enable-*) 232 ac_feature=`e xpr "x$ac_option" : 'x-*enable-\([^=]*\)'`119 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 233 120 # Reject names that are not valid shell variable names. 234 expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&235 { echo " $as_me: error: invalid feature name: $ac_feature" >&2236 { (exit 1); exit 1; }; }237 ac_feature=`echo $ac_feature 238 case $ac_optionin239 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;121 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 122 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 123 fi 124 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 125 case "$ac_option" in 126 *=*) ;; 240 127 *) ac_optarg=yes ;; 241 128 esac 242 eval "enable_$ ac_feature='$ac_optarg'" ;;129 eval "enable_${ac_feature}='$ac_optarg'" ;; 243 130 244 131 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ … … 249 136 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 250 137 | --exec=* | --exe=* | --ex=*) 251 exec_prefix= $ac_optarg;;138 exec_prefix="$ac_optarg" ;; 252 139 253 140 -gas | --gas | --ga | --g) … … 255 142 with_gas=yes ;; 256 143 257 -help | --help | --hel | --he | -h) 258 ac_init_help=long ;; 259 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 260 ac_init_help=recursive ;; 261 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 262 ac_init_help=short ;; 144 -help | --help | --hel | --he) 145 # Omit some internal or obsolete options to make the list less imposing. 146 # This message is too long to be a string in the A/UX 3.1 sh. 147 cat << EOF 148 Usage: configure [options] [host] 149 Options: [defaults in brackets after descriptions] 150 Configuration: 151 --cache-file=FILE cache test results in FILE 152 --help print this message 153 --no-create do not create output files 154 --quiet, --silent do not print \`checking...' messages 155 --version print the version of autoconf that created configure 156 Directory and file names: 157 --prefix=PREFIX install architecture-independent files in PREFIX 158 [$ac_default_prefix] 159 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 160 [same as prefix] 161 --bindir=DIR user executables in DIR [EPREFIX/bin] 162 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 163 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 164 --datadir=DIR read-only architecture-independent data in DIR 165 [PREFIX/share] 166 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 167 --sharedstatedir=DIR modifiable architecture-independent data in DIR 168 [PREFIX/com] 169 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 170 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 171 --includedir=DIR C header files in DIR [PREFIX/include] 172 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 173 --infodir=DIR info documentation in DIR [PREFIX/info] 174 --mandir=DIR man documentation in DIR [PREFIX/man] 175 --srcdir=DIR find the sources in DIR [configure dir or ..] 176 --program-prefix=PREFIX prepend PREFIX to installed program names 177 --program-suffix=SUFFIX append SUFFIX to installed program names 178 --program-transform-name=PROGRAM 179 run sed PROGRAM on installed program names 180 EOF 181 cat << EOF 182 Host type: 183 --build=BUILD configure for building on BUILD [BUILD=HOST] 184 --host=HOST configure for HOST [guessed] 185 --target=TARGET configure for TARGET [TARGET=HOST] 186 Features and packages: 187 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 188 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 189 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 190 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 191 --x-includes=DIR X include files are in DIR 192 --x-libraries=DIR X library files are in DIR 193 EOF 194 if test -n "$ac_help"; then 195 echo "--enable and --with options recognized:$ac_help" 196 fi 197 exit 0 ;; 263 198 264 199 -host | --host | --hos | --ho) 265 ac_prev=host _alias;;200 ac_prev=host ;; 266 201 -host=* | --host=* | --hos=* | --ho=*) 267 host _alias=$ac_optarg;;202 host="$ac_optarg" ;; 268 203 269 204 -includedir | --includedir | --includedi | --included | --include \ … … 272 207 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 273 208 | --includ=* | --inclu=* | --incl=* | --inc=*) 274 includedir= $ac_optarg;;209 includedir="$ac_optarg" ;; 275 210 276 211 -infodir | --infodir | --infodi | --infod | --info | --inf) 277 212 ac_prev=infodir ;; 278 213 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 279 infodir= $ac_optarg;;214 infodir="$ac_optarg" ;; 280 215 281 216 -libdir | --libdir | --libdi | --libd) 282 217 ac_prev=libdir ;; 283 218 -libdir=* | --libdir=* | --libdi=* | --libd=*) 284 libdir= $ac_optarg;;219 libdir="$ac_optarg" ;; 285 220 286 221 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ … … 289 224 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 290 225 | --libexe=* | --libex=* | --libe=*) 291 libexecdir= $ac_optarg;;226 libexecdir="$ac_optarg" ;; 292 227 293 228 -localstatedir | --localstatedir | --localstatedi | --localstated \ … … 298 233 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 299 234 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 300 localstatedir= $ac_optarg;;235 localstatedir="$ac_optarg" ;; 301 236 302 237 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 303 238 ac_prev=mandir ;; 304 239 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 305 mandir= $ac_optarg;;240 mandir="$ac_optarg" ;; 306 241 307 242 -nfp | --nfp | --nf) … … 324 259 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 325 260 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 326 oldincludedir= $ac_optarg;;261 oldincludedir="$ac_optarg" ;; 327 262 328 263 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 329 264 ac_prev=prefix ;; 330 265 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 331 prefix= $ac_optarg;;266 prefix="$ac_optarg" ;; 332 267 333 268 -program-prefix | --program-prefix | --program-prefi | --program-pref \ … … 336 271 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 337 272 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 338 program_prefix= $ac_optarg;;273 program_prefix="$ac_optarg" ;; 339 274 340 275 -program-suffix | --program-suffix | --program-suffi | --program-suff \ … … 343 278 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 344 279 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 345 program_suffix= $ac_optarg;;280 program_suffix="$ac_optarg" ;; 346 281 347 282 -program-transform-name | --program-transform-name \ … … 360 295 | --program-trans=* | --program-tran=* \ 361 296 | --progr-tra=* | --program-tr=* | --program-t=*) 362 program_transform_name= $ac_optarg;;297 program_transform_name="$ac_optarg" ;; 363 298 364 299 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ … … 370 305 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 371 306 | --sbi=* | --sb=*) 372 sbindir= $ac_optarg;;307 sbindir="$ac_optarg" ;; 373 308 374 309 -sharedstatedir | --sharedstatedir | --sharedstatedi \ … … 381 316 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 382 317 | --sha=* | --sh=*) 383 sharedstatedir= $ac_optarg;;318 sharedstatedir="$ac_optarg" ;; 384 319 385 320 -site | --site | --sit) 386 321 ac_prev=site ;; 387 322 -site=* | --site=* | --sit=*) 388 site= $ac_optarg;;323 site="$ac_optarg" ;; 389 324 390 325 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 391 326 ac_prev=srcdir ;; 392 327 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 393 srcdir= $ac_optarg;;328 srcdir="$ac_optarg" ;; 394 329 395 330 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ … … 398 333 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 399 334 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 400 sysconfdir= $ac_optarg;;335 sysconfdir="$ac_optarg" ;; 401 336 402 337 -target | --target | --targe | --targ | --tar | --ta | --t) 403 ac_prev=target _alias;;338 ac_prev=target ;; 404 339 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 405 target _alias=$ac_optarg;;340 target="$ac_optarg" ;; 406 341 407 342 -v | -verbose | --verbose | --verbos | --verbo | --verb) 408 343 verbose=yes ;; 409 344 410 -version | --version | --versio | --versi | --vers | -V) 411 ac_init_version=: ;; 345 -version | --version | --versio | --versi | --vers) 346 echo "configure generated by autoconf version 2.13" 347 exit 0 ;; 412 348 413 349 -with-* | --with-*) 414 ac_package=`e xpr "x$ac_option" : 'x-*with-\([^=]*\)'`350 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 415 351 # Reject names that are not valid shell variable names. 416 expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&417 { echo " $as_me: error: invalid package name: $ac_package" >&2418 { (exit 1); exit 1; }; }352 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 353 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 354 fi 419 355 ac_package=`echo $ac_package| sed 's/-/_/g'` 420 case $ac_optionin421 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;356 case "$ac_option" in 357 *=*) ;; 422 358 *) ac_optarg=yes ;; 423 359 esac 424 eval "with_$ ac_package='$ac_optarg'" ;;360 eval "with_${ac_package}='$ac_optarg'" ;; 425 361 426 362 -without-* | --without-*) 427 ac_package=`e xpr "x$ac_option" : 'x-*without-\(.*\)'`363 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 428 364 # Reject names that are not valid shell variable names. 429 expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&430 { echo " $as_me: error: invalid package name: $ac_package" >&2431 { (exit 1); exit 1; }; }432 ac_package=`echo $ac_package 433 eval "with_$ ac_package=no" ;;365 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 366 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 367 fi 368 ac_package=`echo $ac_package| sed 's/-/_/g'` 369 eval "with_${ac_package}=no" ;; 434 370 435 371 --x) … … 442 378 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 443 379 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 444 x_includes= $ac_optarg;;380 x_includes="$ac_optarg" ;; 445 381 446 382 -x-libraries | --x-libraries | --x-librarie | --x-librari \ … … 449 385 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 450 386 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 451 x_libraries=$ac_optarg ;; 452 453 -*) { echo "$as_me: error: unrecognized option: $ac_option 454 Try \`$0 --help' for more information." >&2 455 { (exit 1); exit 1; }; } 387 x_libraries="$ac_optarg" ;; 388 389 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 456 390 ;; 457 391 458 *=*)459 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`460 # Reject names that are not valid shell variable names.461 expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null &&462 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2463 { (exit 1); exit 1; }; }464 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`465 eval "$ac_envvar='$ac_optarg'"466 export $ac_envvar ;;467 468 392 *) 469 # FIXME: should be removed in autoconf 3.0. 470 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 471 expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null && 472 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 473 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 393 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 394 echo "configure: warning: $ac_option: invalid host type" 1>&2 395 fi 396 if test "x$nonopt" != xNONE; then 397 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 398 fi 399 nonopt="$ac_option" 474 400 ;; 475 401 … … 478 404 479 405 if test -n "$ac_prev"; then 480 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 481 { echo "$as_me: error: missing argument to $ac_option" >&2 482 { (exit 1); exit 1; }; } 483 fi 484 485 # Be sure to have absolute paths. 486 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 487 localstatedir libdir includedir oldincludedir infodir mandir \ 488 exec_prefix prefix 406 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 407 fi 408 409 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 410 411 # File descriptor usage: 412 # 0 standard input 413 # 1 file creation 414 # 2 errors and warnings 415 # 3 some systems may open it to /dev/tty 416 # 4 used on the Kubota Titan 417 # 6 checking for... messages and results 418 # 5 compiler messages saved in config.log 419 if test "$silent" = yes; then 420 exec 6>/dev/null 421 else 422 exec 6>&1 423 fi 424 exec 5>./config.log 425 426 echo "\ 427 This file contains any messages produced by compilers while 428 running configure, to aid debugging if configure makes a mistake. 429 " 1>&5 430 431 # Strip out --no-create and --no-recursion so they do not pile up. 432 # Also quote any args containing shell metacharacters. 433 ac_configure_args= 434 for ac_arg 489 435 do 490 eval ac_val=$`echo $ac_var` 491 case $ac_val in 492 [\\/$]* | ?:[\\/]* ) ;; 493 NONE ) ;; 494 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 495 { (exit 1); exit 1; }; };; 436 case "$ac_arg" in 437 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 438 | --no-cr | --no-c) ;; 439 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 440 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 441 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 442 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 443 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 496 444 esac 497 445 done 498 446 499 # There might be people who depend on the old broken behavior: `$host' 500 # used to hold the argument of --host etc. 501 build=$build_alias 502 host=$host_alias 503 target=$target_alias 504 505 # FIXME: should be removed in autoconf 3.0. 506 if test "x$host_alias" != x; then 507 if test "x$build_alias" = x; then 508 cross_compiling=maybe 509 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 510 If a cross compiler is detected then cross compile mode will be used." >&2 511 elif test "x$build_alias" != "x$host_alias"; then 512 cross_compiling=yes 513 fi 514 fi 515 516 ac_tool_prefix= 517 test -n "$host_alias" && ac_tool_prefix=$host_alias- 518 519 test "$silent" = yes && exec 6>/dev/null 447 # NLS nuisances. 448 # Only set these to C if already set. These must not be set unconditionally 449 # because not all systems understand e.g. LANG=C (notably SCO). 450 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 451 # Non-C LC_CTYPE values break the ctype check. 452 if test "${LANG+set}" = set; then LANG=C; export LANG; fi 453 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 454 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 455 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 456 457 # confdefs.h avoids OS command line length limits that DEFS can exceed. 458 rm -rf conftest* confdefs.h 459 # AIX cpp loses on an empty file, so make sure it contains at least a newline. 460 echo > confdefs.h 461 462 # A filename unique to this package, relative to the directory that 463 # configure is in, which we can look for to find out if srcdir is correct. 464 ac_unique_file=text/MGQuery.cpp 520 465 521 466 # Find the source files, if location was not specified. … … 524 469 # Try the directory containing this script, then its parent. 525 470 ac_prog=$0 526 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`471 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 527 472 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 528 473 srcdir=$ac_confdir … … 535 480 if test ! -r $srcdir/$ac_unique_file; then 536 481 if test "$ac_srcdir_defaulted" = yes; then 537 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 538 { (exit 1); exit 1; }; } 482 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 539 483 else 540 { echo "$as_me: error: cannot find sources in $srcdir" >&2 541 { (exit 1); exit 1; }; } 484 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 542 485 fi 543 486 fi 544 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 545 ac_env_build_alias_set=${build_alias+set} 546 ac_env_build_alias_value=$build_alias 547 ac_cv_env_build_alias_set=${build_alias+set} 548 ac_cv_env_build_alias_value=$build_alias 549 ac_env_host_alias_set=${host_alias+set} 550 ac_env_host_alias_value=$host_alias 551 ac_cv_env_host_alias_set=${host_alias+set} 552 ac_cv_env_host_alias_value=$host_alias 553 ac_env_target_alias_set=${target_alias+set} 554 ac_env_target_alias_value=$target_alias 555 ac_cv_env_target_alias_set=${target_alias+set} 556 ac_cv_env_target_alias_value=$target_alias 557 ac_env_CXX_set=${CXX+set} 558 ac_env_CXX_value=$CXX 559 ac_cv_env_CXX_set=${CXX+set} 560 ac_cv_env_CXX_value=$CXX 561 ac_env_CXXFLAGS_set=${CXXFLAGS+set} 562 ac_env_CXXFLAGS_value=$CXXFLAGS 563 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 564 ac_cv_env_CXXFLAGS_value=$CXXFLAGS 565 ac_env_LDFLAGS_set=${LDFLAGS+set} 566 ac_env_LDFLAGS_value=$LDFLAGS 567 ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 568 ac_cv_env_LDFLAGS_value=$LDFLAGS 569 ac_env_CPPFLAGS_set=${CPPFLAGS+set} 570 ac_env_CPPFLAGS_value=$CPPFLAGS 571 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 572 ac_cv_env_CPPFLAGS_value=$CPPFLAGS 573 ac_env_CC_set=${CC+set} 574 ac_env_CC_value=$CC 575 ac_cv_env_CC_set=${CC+set} 576 ac_cv_env_CC_value=$CC 577 ac_env_CFLAGS_set=${CFLAGS+set} 578 ac_env_CFLAGS_value=$CFLAGS 579 ac_cv_env_CFLAGS_set=${CFLAGS+set} 580 ac_cv_env_CFLAGS_value=$CFLAGS 581 ac_env_CPP_set=${CPP+set} 582 ac_env_CPP_value=$CPP 583 ac_cv_env_CPP_set=${CPP+set} 584 ac_cv_env_CPP_value=$CPP 585 586 # 587 # Report the --help message. 588 # 589 if test "$ac_init_help" = "long"; then 590 # Omit some internal or obsolete options to make the list less imposing. 591 # This message is too long to be a string in the A/UX 3.1 sh. 592 cat <<EOF 593 \`configure' configures this package to adapt to many kinds of systems. 594 595 Usage: $0 [OPTION]... [VAR=VALUE]... 596 597 To assign environment variables (e.g., CC, CFLAGS...), specify them as 598 VAR=VALUE. See below for descriptions of some of the useful variables. 599 600 Defaults for the options are specified in brackets. 601 602 Configuration: 603 -h, --help display this help and exit 604 --help=short display options specific to this package 605 --help=recursive display the short help of all the included packages 606 -V, --version display version information and exit 607 -q, --quiet, --silent do not print \`checking...' messages 608 --cache-file=FILE cache test results in FILE [disabled] 609 -C, --config-cache alias for \`--cache-file=config.cache' 610 -n, --no-create do not create output files 611 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 612 613 EOF 614 615 cat <<EOF 616 Installation directories: 617 --prefix=PREFIX install architecture-independent files in PREFIX 618 [$ac_default_prefix] 619 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 620 [PREFIX] 621 622 By default, \`make install' will install all the files in 623 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 624 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 625 for instance \`--prefix=\$HOME'. 626 627 For better control, use the options below. 628 629 Fine tuning of the installation directories: 630 --bindir=DIR user executables [EPREFIX/bin] 631 --sbindir=DIR system admin executables [EPREFIX/sbin] 632 --libexecdir=DIR program executables [EPREFIX/libexec] 633 --datadir=DIR read-only architecture-independent data [PREFIX/share] 634 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 635 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 636 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 637 --libdir=DIR object code libraries [EPREFIX/lib] 638 --includedir=DIR C header files [PREFIX/include] 639 --oldincludedir=DIR C header files for non-gcc [/usr/include] 640 --infodir=DIR info documentation [PREFIX/info] 641 --mandir=DIR man documentation [PREFIX/man] 642 EOF 643 644 cat <<\EOF 645 646 Program names: 647 --program-prefix=PREFIX prepend PREFIX to installed program names 648 --program-suffix=SUFFIX append SUFFIX to installed program names 649 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 650 EOF 651 fi 652 653 if test -n "$ac_init_help"; then 654 655 cat <<\EOF 656 657 Optional Features: 658 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 659 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 660 --enable-override-longlong 661 overide use of long long with GCC 662 663 Optional Packages: 664 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 665 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 666 --with-dmalloc use dmalloc, as in 667 ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz 668 --with-regex use older regex in lieu of GNU rx for matching 669 --with-gnu-readline compile with GNU readline support 670 671 Some influential environment variables: 672 CXX C++ compiler command 673 CXXFLAGS C++ compiler flags 674 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 675 nonstandard directory <lib dir> 676 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 677 headers in a nonstandard directory <include dir> 678 CC C compiler command 679 CFLAGS C compiler flags 680 CPP C preprocessor 681 682 Use these variables to override the choices made by `configure' or to help 683 it to find libraries and programs with nonstandard names/locations. 684 685 EOF 686 fi 687 688 if test "$ac_init_help" = "recursive"; then 689 # If there are subdirs, report their specific --help. 690 ac_popdir=`pwd` 691 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue 692 cd $ac_subdir 693 # A "../" for each directory in /$ac_subdir. 694 ac_dots=`echo $ac_subdir | 695 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` 696 697 case $srcdir in 698 .) # No --srcdir option. We are building in place. 699 ac_sub_srcdir=$srcdir ;; 700 [\\/]* | ?:[\\/]* ) # Absolute path. 701 ac_sub_srcdir=$srcdir/$ac_subdir ;; 702 *) # Relative path. 703 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; 704 esac 705 706 # Check for guested configure; otherwise get Cygnus style configure. 707 if test -f $ac_sub_srcdir/configure.gnu; then 708 echo 709 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive 710 elif test -f $ac_sub_srcdir/configure; then 711 echo 712 $SHELL $ac_sub_srcdir/configure --help=recursive 713 elif test -f $ac_sub_srcdir/configure.ac || 714 test -f $ac_sub_srcdir/configure.in; then 715 echo 716 $ac_configure --help 717 else 718 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 719 fi 720 cd $ac_popdir 721 done 722 fi 723 724 test -n "$ac_init_help" && exit 0 725 if $ac_init_version; then 726 cat <<\EOF 727 728 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 729 Free Software Foundation, Inc. 730 This configure script is free software; the Free Software Foundation 731 gives unlimited permission to copy, distribute and modify it. 732 EOF 733 exit 0 734 fi 735 exec 5>config.log 736 cat >&5 <<EOF 737 This file contains any messages produced by compilers while 738 running configure, to aid debugging if configure makes a mistake. 739 740 It was created by $as_me, which was 741 generated by GNU Autoconf 2.50. Invocation command line was 742 743 $ $0 $@ 744 745 EOF 746 { 747 cat <<_ASUNAME 748 ## ---------- ## 749 ## Platform. ## 750 ## ---------- ## 751 752 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 753 uname -m = `(uname -m) 2>/dev/null || echo unknown` 754 uname -r = `(uname -r) 2>/dev/null || echo unknown` 755 uname -s = `(uname -s) 2>/dev/null || echo unknown` 756 uname -v = `(uname -v) 2>/dev/null || echo unknown` 757 758 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 759 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 760 761 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 762 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 763 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 764 hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 765 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 766 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 767 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 768 769 PATH = $PATH 770 771 _ASUNAME 772 } >&5 773 774 cat >&5 <<EOF 775 ## ------------ ## 776 ## Core tests. ## 777 ## ------------ ## 778 779 EOF 780 781 # Keep a trace of the command line. 782 # Strip out --no-create and --no-recursion so they do not pile up. 783 # Also quote any args containing shell meta-characters. 784 ac_configure_args= 785 ac_sep= 786 for ac_arg 787 do 788 case $ac_arg in 789 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 790 | --no-cr | --no-c) ;; 791 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 792 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 793 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 794 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` 795 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 796 ac_sep=" " ;; 797 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" 798 ac_sep=" " ;; 799 esac 800 # Get rid of the leading space. 801 done 802 803 # When interrupted or exit'd, cleanup temporary files, and complete 804 # config.log. We remove comments because anyway the quotes in there 805 # would cause problems or look ugly. 806 trap 'exit_status=$? 807 # Save into config.log some information that might help in debugging. 808 echo >&5 809 echo "## ----------------- ##" >&5 810 echo "## Cache variables. ##" >&5 811 echo "## ----------------- ##" >&5 812 echo >&5 813 # The following way of writing the cache mishandles newlines in values, 814 { 815 (set) 2>&1 | 816 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 817 *ac_space=\ *) 818 sed -n \ 819 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 820 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 821 ;; 822 *) 823 sed -n \ 824 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 825 ;; 826 esac; 827 } >&5 828 sed "/^$/d" confdefs.h >conftest.log 829 if test -s conftest.log; then 830 echo >&5 831 echo "## ------------ ##" >&5 832 echo "## confdefs.h. ##" >&5 833 echo "## ------------ ##" >&5 834 echo >&5 835 cat conftest.log >&5 836 fi 837 (echo; echo) >&5 838 test "$ac_signal" != 0 && 839 echo "$as_me: caught signal $ac_signal" >&5 840 echo "$as_me: exit $exit_status" >&5 841 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && 842 exit $exit_status 843 ' 0 844 for ac_signal in 1 2 13 15; do 845 trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal 846 done 847 ac_signal=0 848 849 # confdefs.h avoids OS command line length limits that DEFS can exceed. 850 rm -rf conftest* confdefs.h 851 # AIX cpp loses on an empty file, so make sure it contains at least a newline. 852 echo >confdefs.h 853 854 # Let the site file select an alternate cache file if it wants to. 487 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 488 855 489 # Prefer explicitly selected file to automatically selected ones. 856 490 if test -z "$CONFIG_SITE"; then … … 863 497 for ac_site_file in $CONFIG_SITE; do 864 498 if test -r "$ac_site_file"; then 865 { echo "$as_me:865: loading site script $ac_site_file" >&5 866 echo "$as_me: loading site script $ac_site_file" >&6;} 867 cat "$ac_site_file" >&5 499 echo "loading site script $ac_site_file" 868 500 . "$ac_site_file" 869 501 fi … … 871 503 872 504 if test -r "$cache_file"; then 873 # Some versions of bash will fail to source /dev/null (special 874 # files actually), so we avoid doing that. 875 if test -f "$cache_file"; then 876 { echo "$as_me:876: loading cache $cache_file" >&5 877 echo "$as_me: loading cache $cache_file" >&6;} 878 case $cache_file in 879 [\\/]* | ?:[\\/]* ) . $cache_file;; 880 *) . ./$cache_file;; 881 esac 505 echo "loading cache $cache_file" 506 . $cache_file 507 else 508 echo "creating cache $cache_file" 509 > $cache_file 510 fi 511 512 ac_ext=c 513 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 514 ac_cpp='$CPP $CPPFLAGS' 515 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 516 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 517 cross_compiling=$ac_cv_prog_cc_cross 518 519 ac_exeext= 520 ac_objext=o 521 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 522 # Stardent Vistra SVR4 grep lacks -e, says [email protected]. 523 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 524 ac_n= ac_c=' 525 ' ac_t=' ' 526 else 527 ac_n=-n ac_c= ac_t= 882 528 fi 883 529 else 884 { echo "$as_me:884: creating cache $cache_file" >&5 885 echo "$as_me: creating cache $cache_file" >&6;} 886 >$cache_file 887 fi 888 889 # Check that the precious variables saved in the cache have kept the same 890 # value. 891 ac_suggest_removing_cache=false 892 for ac_var in `(set) 2>&1 | 893 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 894 eval ac_old_set=\$ac_cv_env_${ac_var}_set 895 eval ac_new_set=\$ac_env_${ac_var}_set 896 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 897 eval ac_new_val="\$ac_env_${ac_var}_value" 898 case $ac_old_set,$ac_new_set in 899 set,) 900 { echo "$as_me:900: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 901 echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 902 ac_suggest_removing_cache=: ;; 903 ,set) 904 { echo "$as_me:904: WARNING: \`$ac_var' was not set in the previous run" >&5 905 echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;} 906 ac_suggest_removing_cache=: ;; 907 ,);; 908 *) 909 if test "x$ac_old_val" != "x$ac_new_val"; then 910 { echo "$as_me:910: WARNING: \`$ac_var' has changed since the previous run:" >&5 911 echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;} 912 { echo "$as_me:912: WARNING: former value: $ac_old_val" >&5 913 echo "$as_me: WARNING: former value: $ac_old_val" >&2;} 914 { echo "$as_me:914: WARNING: current value: $ac_new_val" >&5 915 echo "$as_me: WARNING: current value: $ac_new_val" >&2;} 916 ac_suggest_removing_cache=: 917 fi;; 918 esac 919 done 920 if $ac_suggest_removing_cache; then 921 { echo "$as_me:921: WARNING: changes in the environment can compromise the build" >&5 922 echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;} 923 { echo "$as_me:923: WARNING: consider removing $cache_file and starting over" >&5 924 echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;} 925 fi 926 927 ac_ext=c 928 ac_cpp='$CPP $CPPFLAGS' 929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 931 ac_compiler_gnu=$ac_cv_c_compiler_gnu 932 933 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 934 *c*,-n*) ECHO_N= ECHO_C=' 935 ' ECHO_T=' ' ;; 936 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 937 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 938 esac 939 echo "#! $SHELL" >conftest.sh 940 echo "exit 0" >>conftest.sh 941 chmod +x conftest.sh 942 if { (echo "$as_me:942: PATH=\".;.\"; conftest.sh") >&5 943 (PATH=".;."; conftest.sh) 2>&5 944 ac_status=$? 945 echo "$as_me:945: \$? = $ac_status" >&5 946 (exit $ac_status); }; then 947 ac_path_separator=';' 948 else 949 ac_path_separator=: 950 fi 951 PATH_SEPARATOR="$ac_path_separator" 952 rm -f conftest.sh 953 954 ac_config_headers="$ac_config_headers config.h" 530 ac_n= ac_c='\c' ac_t= 531 fi 532 533 955 534 956 535 if test "$program_transform_name" = s,x,x,; then … … 958 537 else 959 538 # Double any \ or $. echo might interpret backslashes. 960 cat <<\EOF >conftest.sed539 cat <<\EOF_SED > conftestsed 961 540 s,\\,\\\\,g; s,\$,$$,g 962 EOF 963 program_transform_name= `echo $program_transform_name | sed -f conftest.sed`964 rm -f conftest .sed541 EOF_SED 542 program_transform_name="`echo $program_transform_name|sed -f conftestsed`" 543 rm -f conftestsed 965 544 fi 966 545 test "$program_prefix" != NONE && 967 program_transform_name="s,^,${program_prefix},; $program_transform_name"546 program_transform_name="s,^,${program_prefix},; $program_transform_name" 968 547 # Use a double $ so make ignores it. 969 548 test "$program_suffix" != NONE && 970 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"549 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 971 550 972 551 # sed with no file args requires a program. 973 test -z "$program_transform_name" && program_transform_name="s,x,x," 552 test "$program_transform_name" = "" && program_transform_name="s,x,x," 553 974 554 975 555 PACKAGE=mgpp 976 556 VERSION=1.3 977 557 978 cat >>confdefs.h <<EOF 558 LDFLAGS= 559 560 cat >> confdefs.h <<EOF 979 561 #define PACKAGE "$PACKAGE" 980 562 EOF 981 563 982 cat >> confdefs.h <<EOF564 cat >> confdefs.h <<EOF 983 565 #define VERSION "$VERSION" 984 566 EOF 985 567 986 ac_ext=cc 987 ac_cpp='$CXXCPP $CPPFLAGS' 988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 991 if test -n "$ac_tool_prefix"; then 992 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC 993 do 994 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 995 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 996 echo "$as_me:996: checking for $ac_word" >&5 997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 998 if test "${ac_cv_prog_CXX+set}" = set; then 999 echo $ECHO_N "(cached) $ECHO_C" >&6 568 569 570 571 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl 572 do 573 # Extract the first word of "$ac_prog", so it can be a program name with args. 574 set dummy $ac_prog; ac_word=$2 575 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 576 echo "configure:577: checking for $ac_word" >&5 577 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then 578 echo $ac_n "(cached) $ac_c" 1>&6 1000 579 else 1001 580 if test -n "$CXX"; then 1002 581 ac_cv_prog_CXX="$CXX" # Let the user override the test. 1003 582 else 1004 ac_save_IFS=$IFS; IFS=$ac_path_separator 1005 ac_dummy="$PATH" 1006 for ac_dir in $ac_dummy; do 1007 IFS=$ac_save_IFS 1008 test -z "$ac_dir" && ac_dir=. 1009 $as_executable_p "$ac_dir/$ac_word" || continue 1010 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 1011 echo "$as_me:1011: found $ac_dir/$ac_word" >&5 1012 break 583 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 584 ac_dummy="$PATH" 585 for ac_dir in $ac_dummy; do 586 test -z "$ac_dir" && ac_dir=. 587 if test -f $ac_dir/$ac_word; then 588 ac_cv_prog_CXX="$ac_prog" 589 break 590 fi 591 done 592 IFS="$ac_save_ifs" 593 fi 594 fi 595 CXX="$ac_cv_prog_CXX" 596 if test -n "$CXX"; then 597 echo "$ac_t""$CXX" 1>&6 598 else 599 echo "$ac_t""no" 1>&6 600 fi 601 602 test -n "$CXX" && break 1013 603 done 1014 1015 fi 1016 fi 1017 CXX=$ac_cv_prog_CXX 1018 if test -n "$CXX"; then 1019 echo "$as_me:1019: result: $CXX" >&5 1020 echo "${ECHO_T}$CXX" >&6 1021 else 1022 echo "$as_me:1022: result: no" >&5 1023 echo "${ECHO_T}no" >&6 1024 fi 1025 1026 test -n "$CXX" && break 1027 done 1028 fi 1029 if test -z "$CXX"; then 1030 ac_ct_CXX=$CXX 1031 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl KCC RCC xlC_r xlC 1032 do 1033 # Extract the first word of "$ac_prog", so it can be a program name with args. 1034 set dummy $ac_prog; ac_word=$2 1035 echo "$as_me:1035: checking for $ac_word" >&5 1036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1037 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 1038 echo $ECHO_N "(cached) $ECHO_C" >&6 1039 else 1040 if test -n "$ac_ct_CXX"; then 1041 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 1042 else 1043 ac_save_IFS=$IFS; IFS=$ac_path_separator 1044 ac_dummy="$PATH" 1045 for ac_dir in $ac_dummy; do 1046 IFS=$ac_save_IFS 1047 test -z "$ac_dir" && ac_dir=. 1048 $as_executable_p "$ac_dir/$ac_word" || continue 1049 ac_cv_prog_ac_ct_CXX="$ac_prog" 1050 echo "$as_me:1050: found $ac_dir/$ac_word" >&5 1051 break 1052 done 1053 1054 fi 1055 fi 1056 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 1057 if test -n "$ac_ct_CXX"; then 1058 echo "$as_me:1058: result: $ac_ct_CXX" >&5 1059 echo "${ECHO_T}$ac_ct_CXX" >&6 1060 else 1061 echo "$as_me:1061: result: no" >&5 1062 echo "${ECHO_T}no" >&6 1063 fi 1064 1065 test -n "$ac_ct_CXX" && break 1066 done 1067 test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 1068 1069 CXX=$ac_ct_CXX 1070 fi 1071 1072 cat >conftest.$ac_ext <<_ACEOF 1073 #line 1073 "configure" 1074 #include "confdefs.h" 1075 1076 int 1077 main () 1078 { 1079 1080 ; 1081 return 0; 1082 } 1083 _ACEOF 1084 ac_clean_files_save=$ac_clean_files 1085 ac_clean_files="$ac_clean_files a.out a.exe" 1086 # Try to create an executable without -o first, disregard a.out. 1087 # It will help us diagnose broken compiler, and finding out an intuition 1088 # of exeext. 1089 echo "$as_me:1089: checking for C++ compiler default output" >&5 1090 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6 1091 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1092 if { (eval echo "$as_me:1092: \"$ac_link_default\"") >&5 1093 (eval $ac_link_default) 2>&5 1094 ac_status=$? 1095 echo "$as_me:1095: \$? = $ac_status" >&5 1096 (exit $ac_status); }; then 1097 for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do 1098 case $ac_file in 1099 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; 1100 a.out ) # We found the default executable, but exeext='' is most 1101 # certainly right. 1102 break;; 1103 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1104 export ac_cv_exeext 1105 break;; 1106 * ) break;; 1107 esac 1108 done 1109 else 1110 echo "$as_me: failed program was:" >&5 1111 cat conftest.$ac_ext >&5 1112 { { echo "$as_me:1112: error: C++ compiler cannot create executables" >&5 1113 echo "$as_me: error: C++ compiler cannot create executables" >&2;} 1114 { (exit 77); exit 77; }; } 1115 fi 1116 1117 ac_exeext=$ac_cv_exeext 1118 echo "$as_me:1118: result: $ac_file" >&5 1119 echo "${ECHO_T}$ac_file" >&6 1120 1121 # Check the compiler produces executables we can run. If not, either 1122 # the compiler is broken, or we cross compile. 1123 echo "$as_me:1123: checking whether the C++ compiler works" >&5 1124 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 1125 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1126 # If not cross compiling, check that we can run a simple program. 1127 if test "$cross_compiling" != yes; then 1128 if { ac_try='./$ac_file' 1129 { (eval echo "$as_me:1129: \"$ac_try\"") >&5 1130 (eval $ac_try) 2>&5 1131 ac_status=$? 1132 echo "$as_me:1132: \$? = $ac_status" >&5 1133 (exit $ac_status); }; }; then 1134 cross_compiling=no 604 test -n "$CXX" || CXX="gcc" 605 606 607 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 608 echo "configure:609: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 609 610 ac_ext=C 611 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 612 ac_cpp='$CXXCPP $CPPFLAGS' 613 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 614 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 615 cross_compiling=$ac_cv_prog_cxx_cross 616 617 cat > conftest.$ac_ext << EOF 618 619 #line 620 "configure" 620 #include "confdefs.h" 621 622 int main(){return(0);} 623 EOF 624 if { (eval echo configure:625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 625 ac_cv_prog_cxx_works=yes 626 # If we can't run a trivial program, we are probably using a cross compiler. 627 if (./conftest; exit) 2>/dev/null; then 628 ac_cv_prog_cxx_cross=no 1135 629 else 1136 if test "$cross_compiling" = maybe; then 1137 cross_compiling=yes 1138 else 1139 { { echo "$as_me:1139: error: cannot run C++ compiled programs. 1140 If you meant to cross compile, use \`--host'." >&5 1141 echo "$as_me: error: cannot run C++ compiled programs. 1142 If you meant to cross compile, use \`--host'." >&2;} 1143 { (exit 1); exit 1; }; } 1144 fi 630 ac_cv_prog_cxx_cross=yes 1145 631 fi 1146 fi 1147 echo "$as_me:1147: result: yes" >&5 1148 echo "${ECHO_T}yes" >&6 1149 1150 rm -f a.out a.exe conftest$ac_cv_exeext 1151 ac_clean_files=$ac_clean_files_save 1152 # Check the compiler produces executables we can run. If not, either 1153 # the compiler is broken, or we cross compile. 1154 echo "$as_me:1154: checking whether we are cross compiling" >&5 1155 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1156 echo "$as_me:1156: result: $cross_compiling" >&5 1157 echo "${ECHO_T}$cross_compiling" >&6 1158 1159 echo "$as_me:1159: checking for executable suffix" >&5 1160 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 1161 if { (eval echo "$as_me:1161: \"$ac_link\"") >&5 1162 (eval $ac_link) 2>&5 1163 ac_status=$? 1164 echo "$as_me:1164: \$? = $ac_status" >&5 1165 (exit $ac_status); }; then 1166 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1167 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1168 # work properly (i.e., refer to `conftest.exe'), while it won't with 1169 # `rm'. 1170 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do 1171 case $ac_file in 1172 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; 1173 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1174 export ac_cv_exeext 1175 break;; 1176 * ) break;; 1177 esac 1178 done 1179 else 1180 { { echo "$as_me:1180: error: cannot compute EXEEXT: cannot compile and link" >&5 1181 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} 1182 { (exit 1); exit 1; }; } 1183 fi 1184 1185 rm -f conftest$ac_cv_exeext 1186 echo "$as_me:1186: result: $ac_cv_exeext" >&5 1187 echo "${ECHO_T}$ac_cv_exeext" >&6 1188 1189 rm -f conftest.$ac_ext 1190 EXEEXT=$ac_cv_exeext 1191 ac_exeext=$EXEEXT 1192 echo "$as_me:1192: checking for object suffix" >&5 1193 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 1194 if test "${ac_cv_objext+set}" = set; then 1195 echo $ECHO_N "(cached) $ECHO_C" >&6 1196 else 1197 cat >conftest.$ac_ext <<_ACEOF 1198 #line 1198 "configure" 1199 #include "confdefs.h" 1200 1201 int 1202 main () 1203 { 1204 1205 ; 1206 return 0; 1207 } 1208 _ACEOF 1209 rm -f conftest.o conftest.obj 1210 if { (eval echo "$as_me:1210: \"$ac_compile\"") >&5 1211 (eval $ac_compile) 2>&5 1212 ac_status=$? 1213 echo "$as_me:1213: \$? = $ac_status" >&5 1214 (exit $ac_status); }; then 1215 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1216 case $ac_file in 1217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; 1218 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1219 break;; 1220 esac 1221 done 1222 else 1223 echo "$as_me: failed program was:" >&5 1224 cat conftest.$ac_ext >&5 1225 { { echo "$as_me:1225: error: cannot compute OBJEXT: cannot compile" >&5 1226 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} 1227 { (exit 1); exit 1; }; } 1228 fi 1229 1230 rm -f conftest.$ac_cv_objext conftest.$ac_ext 1231 fi 1232 echo "$as_me:1232: result: $ac_cv_objext" >&5 1233 echo "${ECHO_T}$ac_cv_objext" >&6 1234 OBJEXT=$ac_cv_objext 1235 ac_objext=$OBJEXT 1236 echo "$as_me:1236: checking whether we are using the GNU C++ compiler" >&5 1237 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 1238 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 1239 echo $ECHO_N "(cached) $ECHO_C" >&6 1240 else 1241 cat >conftest.$ac_ext <<_ACEOF 1242 #line 1242 "configure" 1243 #include "confdefs.h" 1244 1245 int 1246 main () 1247 { 1248 #ifndef __GNUC__ 1249 choke me 632 else 633 echo "configure: failed program was:" >&5 634 cat conftest.$ac_ext >&5 635 ac_cv_prog_cxx_works=no 636 fi 637 rm -fr conftest* 638 ac_ext=c 639 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 640 ac_cpp='$CPP $CPPFLAGS' 641 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 642 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 643 cross_compiling=$ac_cv_prog_cc_cross 644 645 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 646 if test $ac_cv_prog_cxx_works = no; then 647 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } 648 fi 649 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 650 echo "configure:651: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 651 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 652 cross_compiling=$ac_cv_prog_cxx_cross 653 654 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 655 echo "configure:656: checking whether we are using GNU C++" >&5 656 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then 657 echo $ac_n "(cached) $ac_c" 1>&6 658 else 659 cat > conftest.C <<EOF 660 #ifdef __GNUC__ 661 yes; 1250 662 #endif 1251 1252 ; 1253 return 0; 1254 } 1255 _ACEOF 1256 rm -f conftest.$ac_objext 1257 if { (eval echo "$as_me:1257: \"$ac_compile\"") >&5 1258 (eval $ac_compile) 2>&5 1259 ac_status=$? 1260 echo "$as_me:1260: \$? = $ac_status" >&5 1261 (exit $ac_status); } && 1262 { ac_try='test -s conftest.$ac_objext' 1263 { (eval echo "$as_me:1263: \"$ac_try\"") >&5 1264 (eval $ac_try) 2>&5 1265 ac_status=$? 1266 echo "$as_me:1266: \$? = $ac_status" >&5 1267 (exit $ac_status); }; }; then 1268 ac_compiler_gnu=yes 1269 else 1270 echo "$as_me: failed program was:" >&5 1271 cat conftest.$ac_ext >&5 1272 ac_compiler_gnu=no 1273 fi 1274 rm -f conftest.$ac_objext conftest.$ac_ext 1275 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 1276 1277 fi 1278 echo "$as_me:1278: result: $ac_cv_cxx_compiler_gnu" >&5 1279 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 1280 GXX=`test $ac_compiler_gnu = yes && echo yes` 1281 ac_test_CXXFLAGS=${CXXFLAGS+set} 1282 ac_save_CXXFLAGS=$CXXFLAGS 1283 CXXFLAGS="-g" 1284 echo "$as_me:1284: checking whether $CXX accepts -g" >&5 1285 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 1286 if test "${ac_cv_prog_cxx_g+set}" = set; then 1287 echo $ECHO_N "(cached) $ECHO_C" >&6 1288 else 1289 cat >conftest.$ac_ext <<_ACEOF 1290 #line 1290 "configure" 1291 #include "confdefs.h" 1292 1293 int 1294 main () 1295 { 1296 1297 ; 1298 return 0; 1299 } 1300 _ACEOF 1301 rm -f conftest.$ac_objext 1302 if { (eval echo "$as_me:1302: \"$ac_compile\"") >&5 1303 (eval $ac_compile) 2>&5 1304 ac_status=$? 1305 echo "$as_me:1305: \$? = $ac_status" >&5 1306 (exit $ac_status); } && 1307 { ac_try='test -s conftest.$ac_objext' 1308 { (eval echo "$as_me:1308: \"$ac_try\"") >&5 1309 (eval $ac_try) 2>&5 1310 ac_status=$? 1311 echo "$as_me:1311: \$? = $ac_status" >&5 1312 (exit $ac_status); }; }; then 663 EOF 664 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 665 ac_cv_prog_gxx=yes 666 else 667 ac_cv_prog_gxx=no 668 fi 669 fi 670 671 echo "$ac_t""$ac_cv_prog_gxx" 1>&6 672 673 if test $ac_cv_prog_gxx = yes; then 674 GXX=yes 675 else 676 GXX= 677 fi 678 679 ac_test_CXXFLAGS="${CXXFLAGS+set}" 680 ac_save_CXXFLAGS="$CXXFLAGS" 681 CXXFLAGS= 682 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 683 echo "configure:684: checking whether ${CXX-g++} accepts -g" >&5 684 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then 685 echo $ac_n "(cached) $ac_c" 1>&6 686 else 687 echo 'void f(){}' > conftest.cc 688 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then 1313 689 ac_cv_prog_cxx_g=yes 1314 690 else 1315 echo "$as_me: failed program was:" >&5 1316 cat conftest.$ac_ext >&5 1317 ac_cv_prog_cxx_g=no 1318 fi 1319 rm -f conftest.$ac_objext conftest.$ac_ext 1320 fi 1321 echo "$as_me:1321: result: $ac_cv_prog_cxx_g" >&5 1322 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 691 ac_cv_prog_cxx_g=no 692 fi 693 rm -f conftest* 694 695 fi 696 697 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 1323 698 if test "$ac_test_CXXFLAGS" = set; then 1324 CXXFLAGS= $ac_save_CXXFLAGS699 CXXFLAGS="$ac_save_CXXFLAGS" 1325 700 elif test $ac_cv_prog_cxx_g = yes; then 1326 701 if test "$GXX" = yes; then … … 1336 711 fi 1337 712 fi 1338 for ac_declaration in \1339 ''\1340 '#include <stdlib.h>' \1341 'extern "C" void std::exit (int) throw (); using std::exit;' \1342 'extern "C" void std::exit (int); using std::exit;' \1343 'extern "C" void exit (int) throw ();' \1344 'extern "C" void exit (int);' \1345 'void exit (int);'1346 do1347 cat >conftest.$ac_ext <<_ACEOF1348 #line 1348 "configure"1349 #include "confdefs.h"1350 #include <stdlib.h>1351 $ac_declaration1352 int1353 main ()1354 {1355 exit (42);1356 ;1357 return 0;1358 }1359 _ACEOF1360 rm -f conftest.$ac_objext1361 if { (eval echo "$as_me:1361: \"$ac_compile\"") >&51362 (eval $ac_compile) 2>&51363 ac_status=$?1364 echo "$as_me:1364: \$? = $ac_status" >&51365 (exit $ac_status); } &&1366 { ac_try='test -s conftest.$ac_objext'1367 { (eval echo "$as_me:1367: \"$ac_try\"") >&51368 (eval $ac_try) 2>&51369 ac_status=$?1370 echo "$as_me:1370: \$? = $ac_status" >&51371 (exit $ac_status); }; }; then1372 :1373 else1374 echo "$as_me: failed program was:" >&51375 cat conftest.$ac_ext >&51376 continue1377 fi1378 rm -f conftest.$ac_objext conftest.$ac_ext1379 cat >conftest.$ac_ext <<_ACEOF1380 #line 1380 "configure"1381 #include "confdefs.h"1382 $ac_declaration1383 int1384 main ()1385 {1386 exit (42);1387 ;1388 return 0;1389 }1390 _ACEOF1391 rm -f conftest.$ac_objext1392 if { (eval echo "$as_me:1392: \"$ac_compile\"") >&51393 (eval $ac_compile) 2>&51394 ac_status=$?1395 echo "$as_me:1395: \$? = $ac_status" >&51396 (exit $ac_status); } &&1397 { ac_try='test -s conftest.$ac_objext'1398 { (eval echo "$as_me:1398: \"$ac_try\"") >&51399 (eval $ac_try) 2>&51400 ac_status=$?1401 echo "$as_me:1401: \$? = $ac_status" >&51402 (exit $ac_status); }; }; then1403 break1404 else1405 echo "$as_me: failed program was:" >&51406 cat conftest.$ac_ext >&51407 fi1408 rm -f conftest.$ac_objext conftest.$ac_ext1409 done1410 echo '#ifdef __cplusplus' >>confdefs.h1411 echo $ac_declaration >>confdefs.h1412 echo '#endif' >>confdefs.h1413 1414 ac_ext=c1415 ac_cpp='$CPP $CPPFLAGS'1416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'1417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'1418 ac_compiler_gnu=$ac_cv_c_compiler_gnu1419 713 1420 714 for ac_prog in mawk gawk nawk awk 1421 715 do 1422 716 # Extract the first word of "$ac_prog", so it can be a program name with args. 1423 717 set dummy $ac_prog; ac_word=$2 1424 echo "$as_me:1424: checking for $ac_word" >&51425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&61426 if test "${ac_cv_prog_AWK+set}" = set; then1427 echo $ ECHO_N "(cached) $ECHO_C">&6718 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 719 echo "configure:720: checking for $ac_word" >&5 720 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then 721 echo $ac_n "(cached) $ac_c" 1>&6 1428 722 else 1429 723 if test -n "$AWK"; then 1430 724 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1431 725 else 1432 ac_save_IFS=$IFS; IFS=$ac_path_separator 1433 ac_dummy="$PATH" 1434 for ac_dir in $ac_dummy; do 1435 IFS=$ac_save_IFS 1436 test -z "$ac_dir" && ac_dir=. 1437 $as_executable_p "$ac_dir/$ac_word" || continue 1438 ac_cv_prog_AWK="$ac_prog" 1439 echo "$as_me:1439: found $ac_dir/$ac_word" >&5 1440 break 1441 done 1442 1443 fi 1444 fi 1445 AWK=$ac_cv_prog_AWK 726 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 727 ac_dummy="$PATH" 728 for ac_dir in $ac_dummy; do 729 test -z "$ac_dir" && ac_dir=. 730 if test -f $ac_dir/$ac_word; then 731 ac_cv_prog_AWK="$ac_prog" 732 break 733 fi 734 done 735 IFS="$ac_save_ifs" 736 fi 737 fi 738 AWK="$ac_cv_prog_AWK" 1446 739 if test -n "$AWK"; then 1447 echo "$as_me:1447: result: $AWK" >&5 1448 echo "${ECHO_T}$AWK" >&6 1449 else 1450 echo "$as_me:1450: result: no" >&5 1451 echo "${ECHO_T}no" >&6 1452 fi 1453 1454 test -n "$AWK" && break 740 echo "$ac_t""$AWK" 1>&6 741 else 742 echo "$ac_t""no" 1>&6 743 fi 744 745 test -n "$AWK" && break 1455 746 done 1456 747 1457 748 for ac_prog in 'bison -y' byacc 1458 749 do 1459 750 # Extract the first word of "$ac_prog", so it can be a program name with args. 1460 751 set dummy $ac_prog; ac_word=$2 1461 echo "$as_me:1461: checking for $ac_word" >&51462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&61463 if test "${ac_cv_prog_YACC+set}" = set; then1464 echo $ ECHO_N "(cached) $ECHO_C">&6752 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 753 echo "configure:754: checking for $ac_word" >&5 754 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then 755 echo $ac_n "(cached) $ac_c" 1>&6 1465 756 else 1466 757 if test -n "$YACC"; then 1467 758 ac_cv_prog_YACC="$YACC" # Let the user override the test. 1468 759 else 1469 ac_save_IFS=$IFS; IFS=$ac_path_separator 1470 ac_dummy="$PATH" 1471 for ac_dir in $ac_dummy; do 1472 IFS=$ac_save_IFS 1473 test -z "$ac_dir" && ac_dir=. 1474 $as_executable_p "$ac_dir/$ac_word" || continue 1475 ac_cv_prog_YACC="$ac_prog" 1476 echo "$as_me:1476: found $ac_dir/$ac_word" >&5 1477 break 1478 done 1479 1480 fi 1481 fi 1482 YACC=$ac_cv_prog_YACC 760 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 761 ac_dummy="$PATH" 762 for ac_dir in $ac_dummy; do 763 test -z "$ac_dir" && ac_dir=. 764 if test -f $ac_dir/$ac_word; then 765 ac_cv_prog_YACC="$ac_prog" 766 break 767 fi 768 done 769 IFS="$ac_save_ifs" 770 fi 771 fi 772 YACC="$ac_cv_prog_YACC" 1483 773 if test -n "$YACC"; then 1484 echo "$as_me:1484: result: $YACC" >&5 1485 echo "${ECHO_T}$YACC" >&6 1486 else 1487 echo "$as_me:1487: result: no" >&5 1488 echo "${ECHO_T}no" >&6 1489 fi 1490 1491 test -n "$YACC" && break 774 echo "$ac_t""$YACC" 1>&6 775 else 776 echo "$ac_t""no" 1>&6 777 fi 778 779 test -n "$YACC" && break 1492 780 done 1493 781 test -n "$YACC" || YACC="yacc" 1494 782 1495 ac_ext=c 1496 ac_cpp='$CPP $CPPFLAGS' 1497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1499 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1500 if test -n "$ac_tool_prefix"; then 1501 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1502 set dummy ${ac_tool_prefix}gcc; ac_word=$2 1503 echo "$as_me:1503: checking for $ac_word" >&5 1504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1505 if test "${ac_cv_prog_CC+set}" = set; then 1506 echo $ECHO_N "(cached) $ECHO_C" >&6 783 # Extract the first word of "gcc", so it can be a program name with args. 784 set dummy gcc; ac_word=$2 785 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 786 echo "configure:787: checking for $ac_word" >&5 787 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 788 echo $ac_n "(cached) $ac_c" 1>&6 1507 789 else 1508 790 if test -n "$CC"; then 1509 791 ac_cv_prog_CC="$CC" # Let the user override the test. 1510 792 else 1511 ac_save_IFS=$IFS; IFS=$ac_path_separator 1512 ac_dummy="$PATH" 1513 for ac_dir in $ac_dummy; do 1514 IFS=$ac_save_IFS 1515 test -z "$ac_dir" && ac_dir=. 1516 $as_executable_p "$ac_dir/$ac_word" || continue 1517 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1518 echo "$as_me:1518: found $ac_dir/$ac_word" >&5 1519 break 1520 done 1521 1522 fi 1523 fi 1524 CC=$ac_cv_prog_CC 793 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 794 ac_dummy="$PATH" 795 for ac_dir in $ac_dummy; do 796 test -z "$ac_dir" && ac_dir=. 797 if test -f $ac_dir/$ac_word; then 798 ac_cv_prog_CC="gcc" 799 break 800 fi 801 done 802 IFS="$ac_save_ifs" 803 fi 804 fi 805 CC="$ac_cv_prog_CC" 1525 806 if test -n "$CC"; then 1526 echo "$as_me:1526: result: $CC" >&5 1527 echo "${ECHO_T}$CC" >&6 1528 else 1529 echo "$as_me:1529: result: no" >&5 1530 echo "${ECHO_T}no" >&6 1531 fi 1532 1533 fi 1534 if test -z "$ac_cv_prog_CC"; then 1535 ac_ct_CC=$CC 1536 # Extract the first word of "gcc", so it can be a program name with args. 1537 set dummy gcc; ac_word=$2 1538 echo "$as_me:1538: checking for $ac_word" >&5 1539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1540 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1541 echo $ECHO_N "(cached) $ECHO_C" >&6 1542 else 1543 if test -n "$ac_ct_CC"; then 1544 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1545 else 1546 ac_save_IFS=$IFS; IFS=$ac_path_separator 1547 ac_dummy="$PATH" 1548 for ac_dir in $ac_dummy; do 1549 IFS=$ac_save_IFS 1550 test -z "$ac_dir" && ac_dir=. 1551 $as_executable_p "$ac_dir/$ac_word" || continue 1552 ac_cv_prog_ac_ct_CC="gcc" 1553 echo "$as_me:1553: found $ac_dir/$ac_word" >&5 1554 break 1555 done 1556 1557 fi 1558 fi 1559 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1560 if test -n "$ac_ct_CC"; then 1561 echo "$as_me:1561: result: $ac_ct_CC" >&5 1562 echo "${ECHO_T}$ac_ct_CC" >&6 1563 else 1564 echo "$as_me:1564: result: no" >&5 1565 echo "${ECHO_T}no" >&6 1566 fi 1567 1568 CC=$ac_ct_CC 1569 else 1570 CC="$ac_cv_prog_CC" 1571 fi 1572 1573 if test -z "$CC"; then 1574 if test -n "$ac_tool_prefix"; then 1575 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1576 set dummy ${ac_tool_prefix}cc; ac_word=$2 1577 echo "$as_me:1577: checking for $ac_word" >&5 1578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1579 if test "${ac_cv_prog_CC+set}" = set; then 1580 echo $ECHO_N "(cached) $ECHO_C" >&6 1581 else 1582 if test -n "$CC"; then 1583 ac_cv_prog_CC="$CC" # Let the user override the test. 1584 else 1585 ac_save_IFS=$IFS; IFS=$ac_path_separator 1586 ac_dummy="$PATH" 1587 for ac_dir in $ac_dummy; do 1588 IFS=$ac_save_IFS 1589 test -z "$ac_dir" && ac_dir=. 1590 $as_executable_p "$ac_dir/$ac_word" || continue 1591 ac_cv_prog_CC="${ac_tool_prefix}cc" 1592 echo "$as_me:1592: found $ac_dir/$ac_word" >&5 1593 break 1594 done 1595 1596 fi 1597 fi 1598 CC=$ac_cv_prog_CC 1599 if test -n "$CC"; then 1600 echo "$as_me:1600: result: $CC" >&5 1601 echo "${ECHO_T}$CC" >&6 1602 else 1603 echo "$as_me:1603: result: no" >&5 1604 echo "${ECHO_T}no" >&6 1605 fi 1606 1607 fi 1608 if test -z "$ac_cv_prog_CC"; then 1609 ac_ct_CC=$CC 1610 # Extract the first word of "cc", so it can be a program name with args. 1611 set dummy cc; ac_word=$2 1612 echo "$as_me:1612: checking for $ac_word" >&5 1613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1614 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1615 echo $ECHO_N "(cached) $ECHO_C" >&6 1616 else 1617 if test -n "$ac_ct_CC"; then 1618 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1619 else 1620 ac_save_IFS=$IFS; IFS=$ac_path_separator 1621 ac_dummy="$PATH" 1622 for ac_dir in $ac_dummy; do 1623 IFS=$ac_save_IFS 1624 test -z "$ac_dir" && ac_dir=. 1625 $as_executable_p "$ac_dir/$ac_word" || continue 1626 ac_cv_prog_ac_ct_CC="cc" 1627 echo "$as_me:1627: found $ac_dir/$ac_word" >&5 1628 break 1629 done 1630 1631 fi 1632 fi 1633 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1634 if test -n "$ac_ct_CC"; then 1635 echo "$as_me:1635: result: $ac_ct_CC" >&5 1636 echo "${ECHO_T}$ac_ct_CC" >&6 1637 else 1638 echo "$as_me:1638: result: no" >&5 1639 echo "${ECHO_T}no" >&6 1640 fi 1641 1642 CC=$ac_ct_CC 1643 else 1644 CC="$ac_cv_prog_CC" 1645 fi 1646 1647 fi 807 echo "$ac_t""$CC" 1>&6 808 else 809 echo "$ac_t""no" 1>&6 810 fi 811 1648 812 if test -z "$CC"; then 1649 813 # Extract the first word of "cc", so it can be a program name with args. 1650 814 set dummy cc; ac_word=$2 1651 echo "$as_me:1651: checking for $ac_word" >&51652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&61653 if test "${ac_cv_prog_CC+set}" = set; then1654 echo $ ECHO_N "(cached) $ECHO_C">&6815 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 816 echo "configure:817: checking for $ac_word" >&5 817 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 818 echo $ac_n "(cached) $ac_c" 1>&6 1655 819 else 1656 820 if test -n "$CC"; then 1657 821 ac_cv_prog_CC="$CC" # Let the user override the test. 1658 822 else 823 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1659 824 ac_prog_rejected=no 1660 ac_save_IFS=$IFS; IFS=$ac_path_separator 1661 ac_dummy="$PATH" 1662 for ac_dir in $ac_dummy; do 1663 IFS=$ac_save_IFS 1664 test -z "$ac_dir" && ac_dir=. 1665 $as_executable_p "$ac_dir/$ac_word" || continue 1666 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1667 ac_prog_rejected=yes 1668 continue 1669 fi 1670 ac_cv_prog_CC="cc" 1671 echo "$as_me:1671: found $ac_dir/$ac_word" >&5 1672 break 1673 done 1674 825 ac_dummy="$PATH" 826 for ac_dir in $ac_dummy; do 827 test -z "$ac_dir" && ac_dir=. 828 if test -f $ac_dir/$ac_word; then 829 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 830 ac_prog_rejected=yes 831 continue 832 fi 833 ac_cv_prog_CC="cc" 834 break 835 fi 836 done 837 IFS="$ac_save_ifs" 1675 838 if test $ac_prog_rejected = yes; then 1676 839 # We found a bogon in the path, so make sure we never use it. 1677 840 set dummy $ac_cv_prog_CC 1678 841 shift 1679 if test $# !=0; then842 if test $# -gt 0; then 1680 843 # We chose a different compiler from the bogus one. 1681 844 # However, it has the same basename, so the bogon will be chosen 1682 845 # first if we set CC to just the basename; use the full file name. 1683 846 shift 1684 set dummy "$ac_dir/$ac_word" ${1+"$@"}847 set dummy "$ac_dir/$ac_word" "$@" 1685 848 shift 1686 849 ac_cv_prog_CC="$@" … … 1689 852 fi 1690 853 fi 1691 CC= $ac_cv_prog_CC854 CC="$ac_cv_prog_CC" 1692 855 if test -n "$CC"; then 1693 echo "$as_me:1693: result: $CC" >&5 1694 echo "${ECHO_T}$CC" >&6 1695 else 1696 echo "$as_me:1696: result: no" >&5 1697 echo "${ECHO_T}no" >&6 1698 fi 1699 1700 fi 1701 if test -z "$CC"; then 1702 if test -n "$ac_tool_prefix"; then 1703 for ac_prog in cl 1704 do 1705 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1706 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1707 echo "$as_me:1707: checking for $ac_word" >&5 1708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1709 if test "${ac_cv_prog_CC+set}" = set; then 1710 echo $ECHO_N "(cached) $ECHO_C" >&6 856 echo "$ac_t""$CC" 1>&6 857 else 858 echo "$ac_t""no" 1>&6 859 fi 860 861 if test -z "$CC"; then 862 case "`uname -s`" in 863 *win32* | *WIN32*) 864 # Extract the first word of "cl", so it can be a program name with args. 865 set dummy cl; ac_word=$2 866 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 867 echo "configure:868: checking for $ac_word" >&5 868 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 869 echo $ac_n "(cached) $ac_c" 1>&6 1711 870 else 1712 871 if test -n "$CC"; then 1713 872 ac_cv_prog_CC="$CC" # Let the user override the test. 1714 873 else 1715 ac_save_IFS=$IFS; IFS=$ac_path_separator 1716 ac_dummy="$PATH" 1717 for ac_dir in $ac_dummy; do 1718 IFS=$ac_save_IFS 1719 test -z "$ac_dir" && ac_dir=. 1720 $as_executable_p "$ac_dir/$ac_word" || continue 1721 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1722 echo "$as_me:1722: found $ac_dir/$ac_word" >&5 1723 break 1724 done 1725 1726 fi 1727 fi 1728 CC=$ac_cv_prog_CC 874 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 875 ac_dummy="$PATH" 876 for ac_dir in $ac_dummy; do 877 test -z "$ac_dir" && ac_dir=. 878 if test -f $ac_dir/$ac_word; then 879 ac_cv_prog_CC="cl" 880 break 881 fi 882 done 883 IFS="$ac_save_ifs" 884 fi 885 fi 886 CC="$ac_cv_prog_CC" 1729 887 if test -n "$CC"; then 1730 echo "$as_me:1730: result: $CC" >&5 1731 echo "${ECHO_T}$CC" >&6 1732 else 1733 echo "$as_me:1733: result: no" >&5 1734 echo "${ECHO_T}no" >&6 1735 fi 1736 1737 test -n "$CC" && break 1738 done 1739 fi 1740 if test -z "$CC"; then 1741 ac_ct_CC=$CC 1742 for ac_prog in cl 1743 do 1744 # Extract the first word of "$ac_prog", so it can be a program name with args. 1745 set dummy $ac_prog; ac_word=$2 1746 echo "$as_me:1746: checking for $ac_word" >&5 1747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1748 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1749 echo $ECHO_N "(cached) $ECHO_C" >&6 1750 else 1751 if test -n "$ac_ct_CC"; then 1752 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1753 else 1754 ac_save_IFS=$IFS; IFS=$ac_path_separator 1755 ac_dummy="$PATH" 1756 for ac_dir in $ac_dummy; do 1757 IFS=$ac_save_IFS 1758 test -z "$ac_dir" && ac_dir=. 1759 $as_executable_p "$ac_dir/$ac_word" || continue 1760 ac_cv_prog_ac_ct_CC="$ac_prog" 1761 echo "$as_me:1761: found $ac_dir/$ac_word" >&5 1762 break 1763 done 1764 1765 fi 1766 fi 1767 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1768 if test -n "$ac_ct_CC"; then 1769 echo "$as_me:1769: result: $ac_ct_CC" >&5 1770 echo "${ECHO_T}$ac_ct_CC" >&6 1771 else 1772 echo "$as_me:1772: result: no" >&5 1773 echo "${ECHO_T}no" >&6 1774 fi 1775 1776 test -n "$ac_ct_CC" && break 1777 done 1778 1779 CC=$ac_ct_CC 1780 fi 1781 1782 fi 1783 1784 test -z "$CC" && { { echo "$as_me:1784: error: no acceptable cc found in \$PATH" >&5 1785 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} 1786 { (exit 1); exit 1; }; } 1787 1788 echo "$as_me:1788: checking whether we are using the GNU C compiler" >&5 1789 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1790 if test "${ac_cv_c_compiler_gnu+set}" = set; then 1791 echo $ECHO_N "(cached) $ECHO_C" >&6 1792 else 1793 cat >conftest.$ac_ext <<_ACEOF 1794 #line 1794 "configure" 1795 #include "confdefs.h" 1796 1797 int 1798 main () 1799 { 1800 #ifndef __GNUC__ 1801 choke me 888 echo "$ac_t""$CC" 1>&6 889 else 890 echo "$ac_t""no" 1>&6 891 fi 892 ;; 893 esac 894 fi 895 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 896 fi 897 898 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 899 echo "configure:900: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 900 901 ac_ext=c 902 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 903 ac_cpp='$CPP $CPPFLAGS' 904 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 905 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 906 cross_compiling=$ac_cv_prog_cc_cross 907 908 cat > conftest.$ac_ext << EOF 909 910 #line 911 "configure" 911 #include "confdefs.h" 912 913 main(){return(0);} 914 EOF 915 if { (eval echo configure:916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 916 ac_cv_prog_cc_works=yes 917 # If we can't run a trivial program, we are probably using a cross compiler. 918 if (./conftest; exit) 2>/dev/null; then 919 ac_cv_prog_cc_cross=no 920 else 921 ac_cv_prog_cc_cross=yes 922 fi 923 else 924 echo "configure: failed program was:" >&5 925 cat conftest.$ac_ext >&5 926 ac_cv_prog_cc_works=no 927 fi 928 rm -fr conftest* 929 ac_ext=c 930 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 931 ac_cpp='$CPP $CPPFLAGS' 932 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 933 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 934 cross_compiling=$ac_cv_prog_cc_cross 935 936 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 937 if test $ac_cv_prog_cc_works = no; then 938 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 939 fi 940 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 941 echo "configure:942: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 942 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 943 cross_compiling=$ac_cv_prog_cc_cross 944 945 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 946 echo "configure:947: checking whether we are using GNU C" >&5 947 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 948 echo $ac_n "(cached) $ac_c" 1>&6 949 else 950 cat > conftest.c <<EOF 951 #ifdef __GNUC__ 952 yes; 1802 953 #endif 1803 1804 ; 1805 return 0; 1806 } 1807 _ACEOF 1808 rm -f conftest.$ac_objext 1809 if { (eval echo "$as_me:1809: \"$ac_compile\"") >&5 1810 (eval $ac_compile) 2>&5 1811 ac_status=$? 1812 echo "$as_me:1812: \$? = $ac_status" >&5 1813 (exit $ac_status); } && 1814 { ac_try='test -s conftest.$ac_objext' 1815 { (eval echo "$as_me:1815: \"$ac_try\"") >&5 1816 (eval $ac_try) 2>&5 1817 ac_status=$? 1818 echo "$as_me:1818: \$? = $ac_status" >&5 1819 (exit $ac_status); }; }; then 1820 ac_compiler_gnu=yes 1821 else 1822 echo "$as_me: failed program was:" >&5 1823 cat conftest.$ac_ext >&5 1824 ac_compiler_gnu=no 1825 fi 1826 rm -f conftest.$ac_objext conftest.$ac_ext 1827 ac_cv_c_compiler_gnu=$ac_compiler_gnu 1828 1829 fi 1830 echo "$as_me:1830: result: $ac_cv_c_compiler_gnu" >&5 1831 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1832 GCC=`test $ac_compiler_gnu = yes && echo yes` 1833 ac_test_CFLAGS=${CFLAGS+set} 1834 ac_save_CFLAGS=$CFLAGS 1835 CFLAGS="-g" 1836 echo "$as_me:1836: checking whether $CC accepts -g" >&5 1837 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1838 if test "${ac_cv_prog_cc_g+set}" = set; then 1839 echo $ECHO_N "(cached) $ECHO_C" >&6 1840 else 1841 cat >conftest.$ac_ext <<_ACEOF 1842 #line 1842 "configure" 1843 #include "confdefs.h" 1844 1845 int 1846 main () 1847 { 1848 1849 ; 1850 return 0; 1851 } 1852 _ACEOF 1853 rm -f conftest.$ac_objext 1854 if { (eval echo "$as_me:1854: \"$ac_compile\"") >&5 1855 (eval $ac_compile) 2>&5 1856 ac_status=$? 1857 echo "$as_me:1857: \$? = $ac_status" >&5 1858 (exit $ac_status); } && 1859 { ac_try='test -s conftest.$ac_objext' 1860 { (eval echo "$as_me:1860: \"$ac_try\"") >&5 1861 (eval $ac_try) 2>&5 1862 ac_status=$? 1863 echo "$as_me:1863: \$? = $ac_status" >&5 1864 (exit $ac_status); }; }; then 954 EOF 955 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 956 ac_cv_prog_gcc=yes 957 else 958 ac_cv_prog_gcc=no 959 fi 960 fi 961 962 echo "$ac_t""$ac_cv_prog_gcc" 1>&6 963 964 if test $ac_cv_prog_gcc = yes; then 965 GCC=yes 966 else 967 GCC= 968 fi 969 970 ac_test_CFLAGS="${CFLAGS+set}" 971 ac_save_CFLAGS="$CFLAGS" 972 CFLAGS= 973 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 974 echo "configure:975: checking whether ${CC-cc} accepts -g" >&5 975 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 976 echo $ac_n "(cached) $ac_c" 1>&6 977 else 978 echo 'void f(){}' > conftest.c 979 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1865 980 ac_cv_prog_cc_g=yes 1866 981 else 1867 echo "$as_me: failed program was:" >&5 1868 cat conftest.$ac_ext >&5 1869 ac_cv_prog_cc_g=no 1870 fi 1871 rm -f conftest.$ac_objext conftest.$ac_ext 1872 fi 1873 echo "$as_me:1873: result: $ac_cv_prog_cc_g" >&5 1874 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 982 ac_cv_prog_cc_g=no 983 fi 984 rm -f conftest* 985 986 fi 987 988 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 1875 989 if test "$ac_test_CFLAGS" = set; then 1876 CFLAGS= $ac_save_CFLAGS990 CFLAGS="$ac_save_CFLAGS" 1877 991 elif test $ac_cv_prog_cc_g = yes; then 1878 992 if test "$GCC" = yes; then … … 1888 1002 fi 1889 1003 fi 1890 # Some people use a C++ compiler to compile C. Since we use `exit',1891 # in C++ we need to declare it. In case someone uses the same compiler1892 # for both compiling C and C++ we need to have the C++ compiler decide1893 # the declaration of exit, since it's the most demanding environment.1894 cat >conftest.$ac_ext <<_ACEOF1895 #ifndef __cplusplus1896 choke me1897 #endif1898 _ACEOF1899 rm -f conftest.$ac_objext1900 if { (eval echo "$as_me:1900: \"$ac_compile\"") >&51901 (eval $ac_compile) 2>&51902 ac_status=$?1903 echo "$as_me:1903: \$? = $ac_status" >&51904 (exit $ac_status); } &&1905 { ac_try='test -s conftest.$ac_objext'1906 { (eval echo "$as_me:1906: \"$ac_try\"") >&51907 (eval $ac_try) 2>&51908 ac_status=$?1909 echo "$as_me:1909: \$? = $ac_status" >&51910 (exit $ac_status); }; }; then1911 for ac_declaration in \1912 ''\1913 '#include <stdlib.h>' \1914 'extern "C" void std::exit (int) throw (); using std::exit;' \1915 'extern "C" void std::exit (int); using std::exit;' \1916 'extern "C" void exit (int) throw ();' \1917 'extern "C" void exit (int);' \1918 'void exit (int);'1919 do1920 cat >conftest.$ac_ext <<_ACEOF1921 #line 1921 "configure"1922 #include "confdefs.h"1923 #include <stdlib.h>1924 $ac_declaration1925 int1926 main ()1927 {1928 exit (42);1929 ;1930 return 0;1931 }1932 _ACEOF1933 rm -f conftest.$ac_objext1934 if { (eval echo "$as_me:1934: \"$ac_compile\"") >&51935 (eval $ac_compile) 2>&51936 ac_status=$?1937 echo "$as_me:1937: \$? = $ac_status" >&51938 (exit $ac_status); } &&1939 { ac_try='test -s conftest.$ac_objext'1940 { (eval echo "$as_me:1940: \"$ac_try\"") >&51941 (eval $ac_try) 2>&51942 ac_status=$?1943 echo "$as_me:1943: \$? = $ac_status" >&51944 (exit $ac_status); }; }; then1945 :1946 else1947 echo "$as_me: failed program was:" >&51948 cat conftest.$ac_ext >&51949 continue1950 fi1951 rm -f conftest.$ac_objext conftest.$ac_ext1952 cat >conftest.$ac_ext <<_ACEOF1953 #line 1953 "configure"1954 #include "confdefs.h"1955 $ac_declaration1956 int1957 main ()1958 {1959 exit (42);1960 ;1961 return 0;1962 }1963 _ACEOF1964 rm -f conftest.$ac_objext1965 if { (eval echo "$as_me:1965: \"$ac_compile\"") >&51966 (eval $ac_compile) 2>&51967 ac_status=$?1968 echo "$as_me:1968: \$? = $ac_status" >&51969 (exit $ac_status); } &&1970 { ac_try='test -s conftest.$ac_objext'1971 { (eval echo "$as_me:1971: \"$ac_try\"") >&51972 (eval $ac_try) 2>&51973 ac_status=$?1974 echo "$as_me:1974: \$? = $ac_status" >&51975 (exit $ac_status); }; }; then1976 break1977 else1978 echo "$as_me: failed program was:" >&51979 cat conftest.$ac_ext >&51980 fi1981 rm -f conftest.$ac_objext conftest.$ac_ext1982 done1983 echo '#ifdef __cplusplus' >>confdefs.h1984 echo $ac_declaration >>confdefs.h1985 echo '#endif' >>confdefs.h1986 1987 else1988 echo "$as_me: failed program was:" >&51989 cat conftest.$ac_ext >&51990 fi1991 rm -f conftest.$ac_objext conftest.$ac_ext1992 ac_ext=c1993 ac_cpp='$CPP $CPPFLAGS'1994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'1995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'1996 ac_compiler_gnu=$ac_cv_c_compiler_gnu1997 1004 1998 1005 ac_aux_dir= … … 2006 1013 ac_install_sh="$ac_aux_dir/install.sh -c" 2007 1014 break 2008 elif test -f $ac_dir/shtool; then2009 ac_aux_dir=$ac_dir2010 ac_install_sh="$ac_aux_dir/shtool install -c"2011 break2012 1015 fi 2013 1016 done 2014 1017 if test -z "$ac_aux_dir"; then 2015 { { echo "$as_me:2015: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 2016 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 2017 { (exit 1); exit 1; }; } 2018 fi 2019 ac_config_guess="$SHELL $ac_aux_dir/config.guess" 2020 ac_config_sub="$SHELL $ac_aux_dir/config.sub" 2021 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1018 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 1019 fi 1020 ac_config_guess=$ac_aux_dir/config.guess 1021 ac_config_sub=$ac_aux_dir/config.sub 1022 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 2022 1023 2023 1024 # Find a good install program. We prefer a C program (faster), … … 2028 1029 # IRIX /sbin/install 2029 1030 # AIX /bin/install 2030 # AmigaOS /C/install, which installs bootblocks on floppy discs2031 1031 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2032 1032 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2033 1033 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2034 1034 # ./install, which can be erroneously created by make from ./install.sh. 2035 echo "$as_me:2035: checking for a BSD compatible install" >&52036 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&61035 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 1036 echo "configure:1037: checking for a BSD compatible install" >&5 2037 1037 if test -z "$INSTALL"; then 2038 if test "${ac_cv_path_install+set}" = set; then2039 echo $ ECHO_N "(cached) $ECHO_C">&62040 else 2041 ac_save_IFS=$IFS; IFS=$ac_path_separator1038 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 1039 echo $ac_n "(cached) $ac_c" 1>&6 1040 else 1041 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 2042 1042 for ac_dir in $PATH; do 2043 IFS=$ac_save_IFS2044 1043 # Account for people who put trailing slashes in PATH elements. 2045 case $ac_dir/ in 2046 / | ./ | .// | /cC/* \ 2047 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ 2048 | /usr/ucb/* ) ;; 1044 case "$ac_dir/" in 1045 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 2049 1046 *) 2050 1047 # OSF1 and SCO ODT 3.0 have their own names for install. … … 2052 1049 # by default. 2053 1050 for ac_prog in ginstall scoinst install; do 2054 if $as_executable_p "$ac_dir/$ac_prog"; then1051 if test -f $ac_dir/$ac_prog; then 2055 1052 if test $ac_prog = install && 2056 grep dspmsg "$ac_dir/$ac_prog">/dev/null 2>&1; then1053 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 2057 1054 # AIX install. It has an incompatible calling convention. 2058 :2059 elif test $ac_prog = install &&2060 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then2061 # program-specific install script used by HP pwplus--don't use.2062 1055 : 2063 1056 else … … 2070 1063 esac 2071 1064 done 1065 IFS="$ac_save_IFS" 2072 1066 2073 1067 fi 2074 1068 if test "${ac_cv_path_install+set}" = set; then 2075 INSTALL= $ac_cv_path_install1069 INSTALL="$ac_cv_path_install" 2076 1070 else 2077 1071 # As a last resort, use the slow shell script. We don't cache a … … 2079 1073 # break other packages using the cache if that directory is 2080 1074 # removed, or if the path is relative. 2081 INSTALL= $ac_install_sh1075 INSTALL="$ac_install_sh" 2082 1076 fi 2083 1077 fi 2084 echo "$as_me:2084: result: $INSTALL" >&5 2085 echo "${ECHO_T}$INSTALL" >&6 1078 echo "$ac_t""$INSTALL" 1>&6 2086 1079 2087 1080 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. … … 2089 1082 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2090 1083 2091 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL }'1084 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 2092 1085 2093 1086 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2094 1087 2095 echo "$as_me:2095: checking whether ln -s works" >&5 2096 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 2097 LN_S=$as_ln_s 2098 if test "$LN_S" = "ln -s"; then 2099 echo "$as_me:2099: result: yes" >&5 2100 echo "${ECHO_T}yes" >&6 2101 else 2102 echo "$as_me:2102: result: no, using $LN_S" >&5 2103 echo "${ECHO_T}no, using $LN_S" >&6 2104 fi 2105 2106 echo "$as_me:2106: checking whether ${MAKE-make} sets \${MAKE}" >&5 2107 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 2108 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 2109 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 2110 echo $ECHO_N "(cached) $ECHO_C" >&6 2111 else 2112 cat >conftest.make <<\EOF 1088 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1089 echo "configure:1090: checking whether ln -s works" >&5 1090 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1091 echo $ac_n "(cached) $ac_c" 1>&6 1092 else 1093 rm -f conftestdata 1094 if ln -s X conftestdata 2>/dev/null 1095 then 1096 rm -f conftestdata 1097 ac_cv_prog_LN_S="ln -s" 1098 else 1099 ac_cv_prog_LN_S=ln 1100 fi 1101 fi 1102 LN_S="$ac_cv_prog_LN_S" 1103 if test "$ac_cv_prog_LN_S" = "ln -s"; then 1104 echo "$ac_t""yes" 1>&6 1105 else 1106 echo "$ac_t""no" 1>&6 1107 fi 1108 1109 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 1110 echo "configure:1111: checking whether ${MAKE-make} sets \${MAKE}" >&5 1111 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 1112 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 1113 echo $ac_n "(cached) $ac_c" 1>&6 1114 else 1115 cat > conftestmake <<\EOF 2113 1116 all: 2114 1117 @echo 'ac_maketemp="${MAKE}"' 2115 1118 EOF 2116 1119 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2117 eval `${MAKE-make} -f conftest .make 2>/dev/null | grep temp=`1120 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 2118 1121 if test -n "$ac_maketemp"; then 2119 1122 eval ac_cv_prog_make_${ac_make}_set=yes … … 2121 1124 eval ac_cv_prog_make_${ac_make}_set=no 2122 1125 fi 2123 rm -f conftest .make1126 rm -f conftestmake 2124 1127 fi 2125 1128 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 2126 echo "$as_me:2126: result: yes" >&5 2127 echo "${ECHO_T}yes" >&6 1129 echo "$ac_t""yes" 1>&6 2128 1130 SET_MAKE= 2129 1131 else 2130 echo "$as_me:2130: result: no" >&5 2131 echo "${ECHO_T}no" >&6 1132 echo "$ac_t""no" 1>&6 2132 1133 SET_MAKE="MAKE=${MAKE-make}" 2133 1134 fi 2134 1135 2135 if test -n "$ac_tool_prefix"; then 2136 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 2137 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 2138 echo "$as_me:2138: checking for $ac_word" >&5 2139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2140 if test "${ac_cv_prog_RANLIB+set}" = set; then 2141 echo $ECHO_N "(cached) $ECHO_C" >&6 1136 # Extract the first word of "ranlib", so it can be a program name with args. 1137 set dummy ranlib; ac_word=$2 1138 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1139 echo "configure:1140: checking for $ac_word" >&5 1140 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 1141 echo $ac_n "(cached) $ac_c" 1>&6 2142 1142 else 2143 1143 if test -n "$RANLIB"; then 2144 1144 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2145 1145 else 2146 ac_save_IFS=$IFS; IFS=$ac_path_separator2147 ac_dummy="$PATH"2148 for ac_dir in $ac_dummy; do2149 IFS=$ac_save_IFS2150 test -z "$ac_dir" && ac_dir=.2151 $as_executable_p "$ac_dir/$ac_word" || continue2152 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 2153 echo "$as_me:2153: found $ac_dir/$ac_word" >&5 2154 break 2155 done 2156 2157 fi 2158 fi 2159 RANLIB= $ac_cv_prog_RANLIB1146 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1147 ac_dummy="$PATH" 1148 for ac_dir in $ac_dummy; do 1149 test -z "$ac_dir" && ac_dir=. 1150 if test -f $ac_dir/$ac_word; then 1151 ac_cv_prog_RANLIB="ranlib" 1152 break 1153 fi 1154 done 1155 IFS="$ac_save_ifs" 1156 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 1157 fi 1158 fi 1159 RANLIB="$ac_cv_prog_RANLIB" 2160 1160 if test -n "$RANLIB"; then 2161 echo "$as_me:2161: result: $RANLIB" >&5 2162 echo "${ECHO_T}$RANLIB" >&6 2163 else 2164 echo "$as_me:2164: result: no" >&5 2165 echo "${ECHO_T}no" >&6 2166 fi 2167 2168 fi 2169 if test -z "$ac_cv_prog_RANLIB"; then 2170 ac_ct_RANLIB=$RANLIB 2171 # Extract the first word of "ranlib", so it can be a program name with args. 2172 set dummy ranlib; ac_word=$2 2173 echo "$as_me:2173: checking for $ac_word" >&5 2174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2175 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 2176 echo $ECHO_N "(cached) $ECHO_C" >&6 2177 else 2178 if test -n "$ac_ct_RANLIB"; then 2179 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 2180 else 2181 ac_save_IFS=$IFS; IFS=$ac_path_separator 2182 ac_dummy="$PATH" 2183 for ac_dir in $ac_dummy; do 2184 IFS=$ac_save_IFS 2185 test -z "$ac_dir" && ac_dir=. 2186 $as_executable_p "$ac_dir/$ac_word" || continue 2187 ac_cv_prog_ac_ct_RANLIB="ranlib" 2188 echo "$as_me:2188: found $ac_dir/$ac_word" >&5 2189 break 2190 done 2191 2192 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 2193 fi 2194 fi 2195 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 2196 if test -n "$ac_ct_RANLIB"; then 2197 echo "$as_me:2197: result: $ac_ct_RANLIB" >&5 2198 echo "${ECHO_T}$ac_ct_RANLIB" >&6 2199 else 2200 echo "$as_me:2200: result: no" >&5 2201 echo "${ECHO_T}no" >&6 2202 fi 2203 2204 RANLIB=$ac_ct_RANLIB 2205 else 2206 RANLIB="$ac_cv_prog_RANLIB" 2207 fi 2208 2209 ac_ext=c 2210 ac_cpp='$CPP $CPPFLAGS' 2211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2213 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2214 echo "$as_me:2214: checking how to run the C preprocessor" >&5 2215 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 1161 echo "$ac_t""$RANLIB" 1>&6 1162 else 1163 echo "$ac_t""no" 1>&6 1164 fi 1165 1166 1167 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1168 echo "configure:1169: checking how to run the C preprocessor" >&5 2216 1169 # On Suns, sometimes $CPP names a directory. 2217 1170 if test -n "$CPP" && test -d "$CPP"; then … … 2219 1172 fi 2220 1173 if test -z "$CPP"; then 2221 if test "${ac_cv_prog_CPP+set}" = set; then 2222 echo $ECHO_N "(cached) $ECHO_C" >&6 2223 else 2224 # Double quotes because CPP needs to be expanded 2225 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2226 do 2227 # break 2 since there is a loop in there. 2228 ac_preproc_ok=false 2229 for ac_c_preproc_warn_flag in '' yes 2230 do 2231 # Use a header file that comes with gcc, so configuring glibc 2232 # with a fresh cross-compiler works. 1174 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 1175 echo $ac_n "(cached) $ac_c" 1>&6 1176 else 1177 # This must be in double quotes, not single quotes, because CPP may get 1178 # substituted into the Makefile and "${CC-cc}" will confuse make. 1179 CPP="${CC-cc} -E" 2233 1180 # On the NeXT, cc -E runs the code through the compiler's parser, 2234 # not just through cpp. "Syntax error" is here to catch this case.2235 cat > conftest.$ac_ext <<_ACEOF2236 #line 2236"configure"1181 # not just through cpp. 1182 cat > conftest.$ac_ext <<EOF 1183 #line 1184 "configure" 2237 1184 #include "confdefs.h" 2238 1185 #include <assert.h> 2239 Syntax error 2240 _ACEOF 2241 if { (eval echo "$as_me:2241: \"$ac_cpp conftest.$ac_ext\"") >&5 2242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2243 ac_status=$? 2244 egrep -v '^ *\+' conftest.er1 >conftest.err 2245 rm -f conftest.er1 2246 cat conftest.err >&5 2247 echo "$as_me:2247: \$? = $ac_status" >&5 2248 (exit $ac_status); } >/dev/null; then 2249 if test -s conftest.err; then 2250 ac_cpp_err=$ac_c_preproc_warn_flag 2251 else 2252 ac_cpp_err= 2253 fi 2254 else 2255 ac_cpp_err=yes 2256 fi 2257 if test -z "$ac_cpp_err"; then 1186 Syntax Error 1187 EOF 1188 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1189 { (eval echo configure:1190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1190 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1191 if test -z "$ac_err"; then 2258 1192 : 2259 1193 else 2260 echo "$as_me: failed program was:" >&5 2261 cat conftest.$ac_ext >&5 2262 # Broken: fails on valid input. 2263 continue 2264 fi 2265 rm -f conftest.err conftest.$ac_ext 2266 2267 # OK, works on sane cases. Now check whether non-existent headers 2268 # can be detected and how. 2269 cat >conftest.$ac_ext <<_ACEOF 2270 #line 2270 "configure" 2271 #include "confdefs.h" 2272 #include <ac_nonexistent.h> 2273 _ACEOF 2274 if { (eval echo "$as_me:2274: \"$ac_cpp conftest.$ac_ext\"") >&5 2275 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2276 ac_status=$? 2277 egrep -v '^ *\+' conftest.er1 >conftest.err 2278 rm -f conftest.er1 2279 cat conftest.err >&5 2280 echo "$as_me:2280: \$? = $ac_status" >&5 2281 (exit $ac_status); } >/dev/null; then 2282 if test -s conftest.err; then 2283 ac_cpp_err=$ac_c_preproc_warn_flag 2284 else 2285 ac_cpp_err= 2286 fi 2287 else 2288 ac_cpp_err=yes 2289 fi 2290 if test -z "$ac_cpp_err"; then 2291 # Broken: success on invalid input. 2292 continue 2293 else 2294 echo "$as_me: failed program was:" >&5 2295 cat conftest.$ac_ext >&5 2296 # Passes both tests. 2297 ac_preproc_ok=: 2298 break 2299 fi 2300 rm -f conftest.err conftest.$ac_ext 2301 2302 done 2303 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2304 rm -f conftest.err conftest.$ac_ext 2305 if $ac_preproc_ok; then 2306 break 2 2307 fi 2308 2309 done 2310 ac_cv_prog_CPP=$CPP 2311 2312 fi 2313 CPP=$ac_cv_prog_CPP 2314 else 2315 ac_cv_prog_CPP=$CPP 2316 fi 2317 echo "$as_me:2317: result: $CPP" >&5 2318 echo "${ECHO_T}$CPP" >&6 2319 ac_preproc_ok=false 2320 for ac_c_preproc_warn_flag in '' yes 2321 do 2322 # Use a header file that comes with gcc, so configuring glibc 2323 # with a fresh cross-compiler works. 2324 # On the NeXT, cc -E runs the code through the compiler's parser, 2325 # not just through cpp. "Syntax error" is here to catch this case. 2326 cat >conftest.$ac_ext <<_ACEOF 2327 #line 2327 "configure" 1194 echo "$ac_err" >&5 1195 echo "configure: failed program was:" >&5 1196 cat conftest.$ac_ext >&5 1197 rm -rf conftest* 1198 CPP="${CC-cc} -E -traditional-cpp" 1199 cat > conftest.$ac_ext <<EOF 1200 #line 1201 "configure" 2328 1201 #include "confdefs.h" 2329 1202 #include <assert.h> 2330 Syntax error 2331 _ACEOF 2332 if { (eval echo "$as_me:2332: \"$ac_cpp conftest.$ac_ext\"") >&5 2333 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2334 ac_status=$? 2335 egrep -v '^ *\+' conftest.er1 >conftest.err 2336 rm -f conftest.er1 2337 cat conftest.err >&5 2338 echo "$as_me:2338: \$? = $ac_status" >&5 2339 (exit $ac_status); } >/dev/null; then 2340 if test -s conftest.err; then 2341 ac_cpp_err=$ac_c_preproc_warn_flag 2342 else 2343 ac_cpp_err= 2344 fi 2345 else 2346 ac_cpp_err=yes 2347 fi 2348 if test -z "$ac_cpp_err"; then 1203 Syntax Error 1204 EOF 1205 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1206 { (eval echo configure:1207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1207 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1208 if test -z "$ac_err"; then 2349 1209 : 2350 1210 else 2351 echo "$as_me: failed program was:" >&5 2352 cat conftest.$ac_ext >&5 2353 # Broken: fails on valid input. 2354 continue 2355 fi 2356 rm -f conftest.err conftest.$ac_ext 2357 2358 # OK, works on sane cases. Now check whether non-existent headers 2359 # can be detected and how. 2360 cat >conftest.$ac_ext <<_ACEOF 2361 #line 2361 "configure" 2362 #include "confdefs.h" 2363 #include <ac_nonexistent.h> 2364 _ACEOF 2365 if { (eval echo "$as_me:2365: \"$ac_cpp conftest.$ac_ext\"") >&5 2366 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2367 ac_status=$? 2368 egrep -v '^ *\+' conftest.er1 >conftest.err 2369 rm -f conftest.er1 2370 cat conftest.err >&5 2371 echo "$as_me:2371: \$? = $ac_status" >&5 2372 (exit $ac_status); } >/dev/null; then 2373 if test -s conftest.err; then 2374 ac_cpp_err=$ac_c_preproc_warn_flag 2375 else 2376 ac_cpp_err= 2377 fi 2378 else 2379 ac_cpp_err=yes 2380 fi 2381 if test -z "$ac_cpp_err"; then 2382 # Broken: success on invalid input. 2383 continue 2384 else 2385 echo "$as_me: failed program was:" >&5 2386 cat conftest.$ac_ext >&5 2387 # Passes both tests. 2388 ac_preproc_ok=: 2389 break 2390 fi 2391 rm -f conftest.err conftest.$ac_ext 2392 2393 done 2394 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2395 rm -f conftest.err conftest.$ac_ext 2396 if $ac_preproc_ok; then 1211 echo "$ac_err" >&5 1212 echo "configure: failed program was:" >&5 1213 cat conftest.$ac_ext >&5 1214 rm -rf conftest* 1215 CPP="${CC-cc} -nologo -E" 1216 cat > conftest.$ac_ext <<EOF 1217 #line 1218 "configure" 1218 #include "confdefs.h" 1219 #include <assert.h> 1220 Syntax Error 1221 EOF 1222 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1223 { (eval echo configure:1224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1224 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1225 if test -z "$ac_err"; then 2397 1226 : 2398 1227 else 2399 { { echo "$as_me:2399: error: C preprocessor \"$CPP\" fails sanity check" >&5 2400 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} 2401 { (exit 1); exit 1; }; } 2402 fi 2403 2404 ac_ext=c 2405 ac_cpp='$CPP $CPPFLAGS' 2406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2408 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2409 2410 echo "$as_me:2410: checking for AIX" >&5 2411 echo $ECHO_N "checking for AIX... $ECHO_C" >&6 2412 cat >conftest.$ac_ext <<_ACEOF 2413 #line 2413 "configure" 1228 echo "$ac_err" >&5 1229 echo "configure: failed program was:" >&5 1230 cat conftest.$ac_ext >&5 1231 rm -rf conftest* 1232 CPP=/lib/cpp 1233 fi 1234 rm -f conftest* 1235 fi 1236 rm -f conftest* 1237 fi 1238 rm -f conftest* 1239 ac_cv_prog_CPP="$CPP" 1240 fi 1241 CPP="$ac_cv_prog_CPP" 1242 else 1243 ac_cv_prog_CPP="$CPP" 1244 fi 1245 echo "$ac_t""$CPP" 1>&6 1246 1247 echo $ac_n "checking for AIX""... $ac_c" 1>&6 1248 echo "configure:1249: checking for AIX" >&5 1249 cat > conftest.$ac_ext <<EOF 1250 #line 1251 "configure" 2414 1251 #include "confdefs.h" 2415 1252 #ifdef _AIX … … 2417 1254 #endif 2418 1255 2419 _ACEOF1256 EOF 2420 1257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2421 1258 egrep "yes" >/dev/null 2>&1; then 2422 echo "$as_me:2422: result: yes" >&5 2423 echo "${ECHO_T}yes" >&6 2424 cat >>confdefs.h <<\EOF 1259 rm -rf conftest* 1260 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 2425 1261 #define _ALL_SOURCE 1 2426 1262 EOF 2427 1263 2428 1264 else 2429 echo "$as_me:2429: result: no" >&5 2430 echo "${ECHO_T}no" >&6 2431 fi 2432 rm -f conftest* 2433 2434 echo "$as_me:2434: checking for POSIXized ISC" >&5 2435 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6 1265 rm -rf conftest* 1266 echo "$ac_t""no" 1>&6 1267 fi 1268 rm -f conftest* 1269 1270 1271 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 1272 echo "configure:1273: checking for POSIXized ISC" >&5 2436 1273 if test -d /etc/conf/kconfig.d && 2437 1274 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 2438 1275 then 2439 echo "$as_me:2439: result: yes" >&5 2440 echo "${ECHO_T}yes" >&6 1276 echo "$ac_t""yes" 1>&6 2441 1277 ISC=yes # If later tests want to check for ISC. 2442 2443 cat >>confdefs.h <<\EOF 1278 cat >> confdefs.h <<\EOF 2444 1279 #define _POSIX_SOURCE 1 2445 1280 EOF … … 2451 1286 fi 2452 1287 else 2453 echo "$as_me:2453: result: no" >&5 2454 echo "${ECHO_T}no" >&6 1288 echo "$ac_t""no" 1>&6 2455 1289 ISC= 2456 1290 fi 2457 1291 2458 echo "$as_me:2458: checking for minix/config.h" >&5 2459 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 2460 if test "${ac_cv_header_minix_config_h+set}" = set; then 2461 echo $ECHO_N "(cached) $ECHO_C" >&6 2462 else 2463 cat >conftest.$ac_ext <<_ACEOF 2464 #line 2464 "configure" 1292 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` 1293 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 1294 echo "configure:1295: checking for minix/config.h" >&5 1295 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1296 echo $ac_n "(cached) $ac_c" 1>&6 1297 else 1298 cat > conftest.$ac_ext <<EOF 1299 #line 1300 "configure" 2465 1300 #include "confdefs.h" 2466 1301 #include <minix/config.h> 2467 _ACEOF 2468 if { (eval echo "$as_me:2468: \"$ac_cpp conftest.$ac_ext\"") >&5 2469 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2470 ac_status=$? 2471 egrep -v '^ *\+' conftest.er1 >conftest.err 2472 rm -f conftest.er1 2473 cat conftest.err >&5 2474 echo "$as_me:2474: \$? = $ac_status" >&5 2475 (exit $ac_status); } >/dev/null; then 2476 if test -s conftest.err; then 2477 ac_cpp_err=$ac_c_preproc_warn_flag 2478 else 2479 ac_cpp_err= 2480 fi 2481 else 2482 ac_cpp_err=yes 2483 fi 2484 if test -z "$ac_cpp_err"; then 2485 ac_cv_header_minix_config_h=yes 2486 else 2487 echo "$as_me: failed program was:" >&5 2488 cat conftest.$ac_ext >&5 2489 ac_cv_header_minix_config_h=no 2490 fi 2491 rm -f conftest.err conftest.$ac_ext 2492 fi 2493 echo "$as_me:2493: result: $ac_cv_header_minix_config_h" >&5 2494 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 2495 if test $ac_cv_header_minix_config_h = yes; then 1302 EOF 1303 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1304 { (eval echo configure:1305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1305 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1306 if test -z "$ac_err"; then 1307 rm -rf conftest* 1308 eval "ac_cv_header_$ac_safe=yes" 1309 else 1310 echo "$ac_err" >&5 1311 echo "configure: failed program was:" >&5 1312 cat conftest.$ac_ext >&5 1313 rm -rf conftest* 1314 eval "ac_cv_header_$ac_safe=no" 1315 fi 1316 rm -f conftest* 1317 fi 1318 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1319 echo "$ac_t""yes" 1>&6 2496 1320 MINIX=yes 2497 1321 else 2498 MINIX= 1322 echo "$ac_t""no" 1>&6 1323 MINIX= 2499 1324 fi 2500 1325 2501 1326 if test "$MINIX" = yes; then 2502 2503 cat >>confdefs.h <<\EOF 1327 cat >> confdefs.h <<\EOF 2504 1328 #define _POSIX_SOURCE 1 2505 1329 EOF 2506 1330 2507 cat >>confdefs.h <<\EOF1331 cat >> confdefs.h <<\EOF 2508 1332 #define _POSIX_1_SOURCE 2 2509 1333 EOF 2510 1334 2511 cat >>confdefs.h <<\EOF1335 cat >> confdefs.h <<\EOF 2512 1336 #define _MINIX 1 2513 1337 EOF … … 2515 1339 fi 2516 1340 2517 echo "$as_me:2517: checking for ${CC-cc} option to accept ANSI C" >&52518 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&62519 if test "${ac_cv_prog_cc_stdc+set}" = set; then2520 echo $ ECHO_N "(cached) $ECHO_C">&61341 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6 1342 echo "configure:1343: checking for ${CC-cc} option to accept ANSI C" >&5 1343 if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then 1344 echo $ac_n "(cached) $ac_c" 1>&6 2521 1345 else 2522 1346 ac_cv_prog_cc_stdc=no … … 2531 1355 do 2532 1356 CFLAGS="$ac_save_CFLAGS $ac_arg" 2533 cat > conftest.$ac_ext <<_ACEOF2534 #line 2534"configure"1357 cat > conftest.$ac_ext <<EOF 1358 #line 1359 "configure" 2535 1359 #include "confdefs.h" 2536 1360 #if !defined(__STDC__) || __STDC__ != 1 2537 1361 choke me 2538 #endif 2539 2540 int 2541 main () 2542 { 1362 #endif 1363 1364 int main() { 2543 1365 int test (int i, double x); 2544 1366 struct s1 {int (*f) (int a);}; 2545 1367 struct s2 {int (*f) (double a);}; 2546 ; 2547 return 0; 2548 } 2549 _ACEOF 2550 rm -f conftest.$ac_objext 2551 if { (eval echo "$as_me:2551: \"$ac_compile\"") >&5 2552 (eval $ac_compile) 2>&5 2553 ac_status=$? 2554 echo "$as_me:2554: \$? = $ac_status" >&5 2555 (exit $ac_status); } && 2556 { ac_try='test -s conftest.$ac_objext' 2557 { (eval echo "$as_me:2557: \"$ac_try\"") >&5 2558 (eval $ac_try) 2>&5 2559 ac_status=$? 2560 echo "$as_me:2560: \$? = $ac_status" >&5 2561 (exit $ac_status); }; }; then 1368 ; return 0; } 1369 EOF 1370 if { (eval echo configure:1371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1371 rm -rf conftest* 2562 1372 ac_cv_prog_cc_stdc="$ac_arg"; break 2563 1373 else 2564 echo " $as_me: failed program was:" >&52565 cat conftest.$ac_ext >&52566 fi 2567 rm -f conftest .$ac_objext conftest.$ac_ext1374 echo "configure: failed program was:" >&5 1375 cat conftest.$ac_ext >&5 1376 fi 1377 rm -f conftest* 2568 1378 done 2569 1379 CFLAGS="$ac_save_CFLAGS" … … 2571 1381 fi 2572 1382 2573 echo "$as_me:2573: result: $ac_cv_prog_cc_stdc" >&5 2574 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 1383 echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6 2575 1384 case "x$ac_cv_prog_cc_stdc" in 2576 1385 x|xno) ;; … … 2578 1387 esac 2579 1388 2580 echo "$as_me:2580: checking for function prototypes" >&5 2581 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 1389 1390 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6 1391 echo "configure:1392: checking for function prototypes" >&5 2582 1392 if test "$ac_cv_prog_cc_stdc" != no; then 2583 echo "$as_me:2583: result: yes" >&5 2584 echo "${ECHO_T}yes" >&6 2585 cat >>confdefs.h <<\EOF 1393 echo "$ac_t""yes" 1>&6 1394 cat >> confdefs.h <<\EOF 2586 1395 #define PROTOTYPES 1 2587 1396 EOF … … 2589 1398 U= ANSI2KNR= 2590 1399 else 2591 echo "$as_me:2591: result: no" >&5 2592 echo "${ECHO_T}no" >&6 1400 echo "$ac_t""no" 1>&6 2593 1401 U=_ ANSI2KNR=ansi2knr 2594 1402 fi 2595 1403 2596 echo "$as_me:2596: checking for $CC option to accept ANSI C" >&5 2597 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2598 if test "${ac_cv_prog_cc_stdc+set}" = set; then 2599 echo $ECHO_N "(cached) $ECHO_C" >&6 2600 else 2601 ac_cv_prog_cc_stdc=no 2602 ac_save_CC=$CC 2603 cat >conftest.$ac_ext <<_ACEOF 2604 #line 2604 "configure" 2605 #include "confdefs.h" 2606 #include <stdarg.h> 2607 #include <stdio.h> 2608 #include <sys/types.h> 2609 #include <sys/stat.h> 2610 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2611 struct buf { int x; }; 2612 FILE * (*rcsopen) (struct buf *, struct stat *, int); 2613 static char *e (p, i) 2614 char **p; 2615 int i; 2616 { 2617 return p[i]; 1404 echo $ac_n "checking for working const""... $ac_c" 1>&6 1405 echo "configure:1406: checking for working const" >&5 1406 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 1407 echo $ac_n "(cached) $ac_c" 1>&6 1408 else 1409 cat > conftest.$ac_ext <<EOF 1410 #line 1411 "configure" 1411 #include "confdefs.h" 1412 1413 int main() { 1414 1415 /* Ultrix mips cc rejects this. */ 1416 typedef int charset[2]; const charset x; 1417 /* SunOS 4.1.1 cc rejects this. */ 1418 char const *const *ccp; 1419 char **p; 1420 /* NEC SVR4.0.2 mips cc rejects this. */ 1421 struct point {int x, y;}; 1422 static struct point const zero = {0,0}; 1423 /* AIX XL C 1.02.0.0 rejects this. 1424 It does not let you subtract one const X* pointer from another in an arm 1425 of an if-expression whose if-part is not a constant expression */ 1426 const char *g = "string"; 1427 ccp = &g + (g ? g-g : 0); 1428 /* HPUX 7.0 cc rejects these. */ 1429 ++ccp; 1430 p = (char**) ccp; 1431 ccp = (char const *const *) p; 1432 { /* SCO 3.2v4 cc rejects this. */ 1433 char *t; 1434 char const *s = 0 ? (char *) 0 : (char const *) 0; 1435 1436 *t++ = 0; 2618 1437 } 2619 static char *f (char * (*g) (char **, int), char **p, ...) 2620 { 2621 char *s; 2622 va_list v; 2623 va_start (v,p); 2624 s = g (p, va_arg (v,int)); 2625 va_end (v); 2626 return s; 1438 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 1439 int x[] = {25, 17}; 1440 const int *foo = &x[0]; 1441 ++foo; 2627 1442 } 2628 int test (int i, double x); 2629 struct s1 {int (*f) (int a);}; 2630 struct s2 {int (*f) (double a);}; 2631 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2632 int argc; 2633 char **argv; 2634 int 2635 main () 2636 { 2637 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2638 ; 2639 return 0; 1443 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 1444 typedef const int *iptr; 1445 iptr p = 0; 1446 ++p; 2640 1447 } 2641 _ACEOF 2642 # Don't try gcc -ansi; that turns off useful extensions and 2643 # breaks some systems' header files. 2644 # AIX -qlanglvl=ansi 2645 # Ultrix and OSF/1 -std1 2646 # HP-UX 10.20 and later -Ae 2647 # HP-UX older versions -Aa -D_HPUX_SOURCE 2648 # SVR4 -Xc -D__EXTENSIONS__ 2649 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2650 do 2651 CC="$ac_save_CC $ac_arg" 2652 rm -f conftest.$ac_objext 2653 if { (eval echo "$as_me:2653: \"$ac_compile\"") >&5 2654 (eval $ac_compile) 2>&5 2655 ac_status=$? 2656 echo "$as_me:2656: \$? = $ac_status" >&5 2657 (exit $ac_status); } && 2658 { ac_try='test -s conftest.$ac_objext' 2659 { (eval echo "$as_me:2659: \"$ac_try\"") >&5 2660 (eval $ac_try) 2>&5 2661 ac_status=$? 2662 echo "$as_me:2662: \$? = $ac_status" >&5 2663 (exit $ac_status); }; }; then 2664 ac_cv_prog_cc_stdc=$ac_arg 2665 break 2666 else 2667 echo "$as_me: failed program was:" >&5 2668 cat conftest.$ac_ext >&5 2669 fi 2670 rm -f conftest.$ac_objext 2671 done 2672 rm -f conftest.$ac_ext conftest.$ac_objext 2673 CC=$ac_save_CC 2674 2675 fi 2676 2677 case "x$ac_cv_prog_cc_stdc" in 2678 x|xno) 2679 echo "$as_me:2679: result: none needed" >&5 2680 echo "${ECHO_T}none needed" >&6 ;; 2681 *) 2682 echo "$as_me:2682: result: $ac_cv_prog_cc_stdc" >&5 2683 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2684 CC="$CC $ac_cv_prog_cc_stdc" ;; 2685 esac 2686 2687 echo "$as_me:2687: checking for an ANSI C-conforming const" >&5 2688 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 2689 if test "${ac_cv_c_const+set}" = set; then 2690 echo $ECHO_N "(cached) $ECHO_C" >&6 2691 else 2692 cat >conftest.$ac_ext <<_ACEOF 2693 #line 2693 "configure" 2694 #include "confdefs.h" 2695 2696 int 2697 main () 2698 { 2699 /* FIXME: Include the comments suggested by Paul. */ 2700 #ifndef __cplusplus 2701 /* Ultrix mips cc rejects this. */ 2702 typedef int charset[2]; 2703 const charset x; 2704 /* SunOS 4.1.1 cc rejects this. */ 2705 char const *const *ccp; 2706 char **p; 2707 /* NEC SVR4.0.2 mips cc rejects this. */ 2708 struct point {int x, y;}; 2709 static struct point const zero = {0,0}; 2710 /* AIX XL C 1.02.0.0 rejects this. 2711 It does not let you subtract one const X* pointer from another in 2712 an arm of an if-expression whose if-part is not a constant 2713 expression */ 2714 const char *g = "string"; 2715 ccp = &g + (g ? g-g : 0); 2716 /* HPUX 7.0 cc rejects these. */ 2717 ++ccp; 2718 p = (char**) ccp; 2719 ccp = (char const *const *) p; 2720 { /* SCO 3.2v4 cc rejects this. */ 2721 char *t; 2722 char const *s = 0 ? (char *) 0 : (char const *) 0; 2723 2724 *t++ = 0; 2725 } 2726 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 2727 int x[] = {25, 17}; 2728 const int *foo = &x[0]; 2729 ++foo; 2730 } 2731 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 2732 typedef const int *iptr; 2733 iptr p = 0; 2734 ++p; 2735 } 2736 { /* AIX XL C 1.02.0.0 rejects this saying 2737 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 2738 struct s { int j; const int *ap[3]; }; 2739 struct s *b; b->j = 5; 2740 } 2741 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 2742 const int foo = 10; 2743 } 2744 #endif 2745 2746 ; 2747 return 0; 1448 { /* AIX XL C 1.02.0.0 rejects this saying 1449 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 1450 struct s { int j; const int *ap[3]; }; 1451 struct s *b; b->j = 5; 2748 1452 } 2749 _ACEOF 2750 rm -f conftest.$ac_objext 2751 if { (eval echo "$as_me:2751: \"$ac_compile\"") >&5 2752 (eval $ac_compile) 2>&5 2753 ac_status=$? 2754 echo "$as_me:2754: \$? = $ac_status" >&5 2755 (exit $ac_status); } && 2756 { ac_try='test -s conftest.$ac_objext' 2757 { (eval echo "$as_me:2757: \"$ac_try\"") >&5 2758 (eval $ac_try) 2>&5 2759 ac_status=$? 2760 echo "$as_me:2760: \$? = $ac_status" >&5 2761 (exit $ac_status); }; }; then 1453 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 1454 const int foo = 10; 1455 } 1456 1457 ; return 0; } 1458 EOF 1459 if { (eval echo configure:1460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1460 rm -rf conftest* 2762 1461 ac_cv_c_const=yes 2763 1462 else 2764 echo "$as_me: failed program was:" >&5 2765 cat conftest.$ac_ext >&5 2766 ac_cv_c_const=no 2767 fi 2768 rm -f conftest.$ac_objext conftest.$ac_ext 2769 fi 2770 echo "$as_me:2770: result: $ac_cv_c_const" >&5 2771 echo "${ECHO_T}$ac_cv_c_const" >&6 1463 echo "configure: failed program was:" >&5 1464 cat conftest.$ac_ext >&5 1465 rm -rf conftest* 1466 ac_cv_c_const=no 1467 fi 1468 rm -f conftest* 1469 fi 1470 1471 echo "$ac_t""$ac_cv_c_const" 1>&6 2772 1472 if test $ac_cv_c_const = no; then 2773 2774 cat >>confdefs.h <<\EOF 2775 #define const 2776 EOF 2777 2778 fi 2779 2780 echo "$as_me:2780: checking for ANSI C header files" >&5 2781 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 2782 if test "${ac_cv_header_stdc+set}" = set; then 2783 echo $ECHO_N "(cached) $ECHO_C" >&6 2784 else 2785 cat >conftest.$ac_ext <<_ACEOF 2786 #line 2786 "configure" 1473 cat >> confdefs.h <<\EOF 1474 #define const 1475 EOF 1476 1477 fi 1478 1479 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1480 echo "configure:1481: checking for ANSI C header files" >&5 1481 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1482 echo $ac_n "(cached) $ac_c" 1>&6 1483 else 1484 cat > conftest.$ac_ext <<EOF 1485 #line 1486 "configure" 2787 1486 #include "confdefs.h" 2788 1487 #include <stdlib.h> … … 2790 1489 #include <string.h> 2791 1490 #include <float.h> 2792 2793 _ACEOF 2794 if { (eval echo "$as_me:2794: \"$ac_cpp conftest.$ac_ext\"") >&5 2795 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2796 ac_status=$? 2797 egrep -v '^ *\+' conftest.er1 >conftest.err 2798 rm -f conftest.er1 2799 cat conftest.err >&5 2800 echo "$as_me:2800: \$? = $ac_status" >&5 2801 (exit $ac_status); } >/dev/null; then 2802 if test -s conftest.err; then 2803 ac_cpp_err=$ac_c_preproc_warn_flag 2804 else 2805 ac_cpp_err= 2806 fi 2807 else 2808 ac_cpp_err=yes 2809 fi 2810 if test -z "$ac_cpp_err"; then 1491 EOF 1492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1493 { (eval echo configure:1494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1494 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1495 if test -z "$ac_err"; then 1496 rm -rf conftest* 2811 1497 ac_cv_header_stdc=yes 2812 1498 else 2813 echo "$as_me: failed program was:" >&5 2814 cat conftest.$ac_ext >&5 1499 echo "$ac_err" >&5 1500 echo "configure: failed program was:" >&5 1501 cat conftest.$ac_ext >&5 1502 rm -rf conftest* 2815 1503 ac_cv_header_stdc=no 2816 1504 fi 2817 rm -f conftest .err conftest.$ac_ext1505 rm -f conftest* 2818 1506 2819 1507 if test $ac_cv_header_stdc = yes; then 2820 1508 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2821 cat >conftest.$ac_ext <<_ACEOF2822 #line 2822"configure"1509 cat > conftest.$ac_ext <<EOF 1510 #line 1511 "configure" 2823 1511 #include "confdefs.h" 2824 1512 #include <string.h> 2825 2826 _ACEOF 1513 EOF 2827 1514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2828 1515 egrep "memchr" >/dev/null 2>&1; then 2829 1516 : 2830 1517 else 1518 rm -rf conftest* 2831 1519 ac_cv_header_stdc=no 2832 1520 fi … … 2837 1525 if test $ac_cv_header_stdc = yes; then 2838 1526 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2839 cat >conftest.$ac_ext <<_ACEOF2840 #line 2840"configure"1527 cat > conftest.$ac_ext <<EOF 1528 #line 1529 "configure" 2841 1529 #include "confdefs.h" 2842 1530 #include <stdlib.h> 2843 2844 _ACEOF 1531 EOF 2845 1532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2846 1533 egrep "free" >/dev/null 2>&1; then 2847 1534 : 2848 1535 else 1536 rm -rf conftest* 2849 1537 ac_cv_header_stdc=no 2850 1538 fi … … 2855 1543 if test $ac_cv_header_stdc = yes; then 2856 1544 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2857 1545 if test "$cross_compiling" = yes; then 2858 1546 : 2859 1547 else 2860 cat > conftest.$ac_ext <<_ACEOF2861 #line 2861"configure"1548 cat > conftest.$ac_ext <<EOF 1549 #line 1550 "configure" 2862 1550 #include "confdefs.h" 2863 1551 #include <ctype.h> 2864 #if ((' ' & 0x0FF) == 0x020) 2865 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2866 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2867 #else 2868 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 2869 || ('j' <= (c) && (c) <= 'r') \ 2870 || ('s' <= (c) && (c) <= 'z')) 2871 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 1552 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 1553 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 1554 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 1555 int main () { int i; for (i = 0; i < 256; i++) 1556 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 1557 exit (0); } 1558 1559 EOF 1560 if { (eval echo configure:1561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1561 then 1562 : 1563 else 1564 echo "configure: failed program was:" >&5 1565 cat conftest.$ac_ext >&5 1566 rm -fr conftest* 1567 ac_cv_header_stdc=no 1568 fi 1569 rm -fr conftest* 1570 fi 1571 1572 fi 1573 fi 1574 1575 echo "$ac_t""$ac_cv_header_stdc" 1>&6 1576 if test $ac_cv_header_stdc = yes; then 1577 cat >> confdefs.h <<\EOF 1578 #define STDC_HEADERS 1 1579 EOF 1580 1581 fi 1582 1583 echo $ac_n "checking for off_t""... $ac_c" 1>&6 1584 echo "configure:1585: checking for off_t" >&5 1585 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then 1586 echo $ac_n "(cached) $ac_c" 1>&6 1587 else 1588 cat > conftest.$ac_ext <<EOF 1589 #line 1590 "configure" 1590 #include "confdefs.h" 1591 #include <sys/types.h> 1592 #if STDC_HEADERS 1593 #include <stdlib.h> 1594 #include <stddef.h> 2872 1595 #endif 2873 2874 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2875 int 2876 main () 2877 { 2878 int i; 2879 for (i = 0; i < 256; i++) 2880 if (XOR (islower (i), ISLOWER (i)) 2881 || toupper (i) != TOUPPER (i)) 2882 exit(2); 2883 exit (0); 2884 } 2885 _ACEOF 2886 rm -f conftest$ac_exeext 2887 if { (eval echo "$as_me:2887: \"$ac_link\"") >&5 2888 (eval $ac_link) 2>&5 2889 ac_status=$? 2890 echo "$as_me:2890: \$? = $ac_status" >&5 2891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 2892 { (eval echo "$as_me:2892: \"$ac_try\"") >&5 2893 (eval $ac_try) 2>&5 2894 ac_status=$? 2895 echo "$as_me:2895: \$? = $ac_status" >&5 2896 (exit $ac_status); }; }; then 2897 : 2898 else 2899 echo "$as_me: program exited with status $ac_status" >&5 2900 echo "$as_me: failed program was:" >&5 2901 cat conftest.$ac_ext >&5 2902 ac_cv_header_stdc=no 2903 fi 2904 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext 2905 fi 2906 fi 2907 fi 2908 echo "$as_me:2908: result: $ac_cv_header_stdc" >&5 2909 echo "${ECHO_T}$ac_cv_header_stdc" >&6 2910 if test $ac_cv_header_stdc = yes; then 2911 2912 cat >>confdefs.h <<\EOF 2913 #define STDC_HEADERS 1 2914 EOF 2915 2916 fi 2917 2918 for ac_header in stdlib.h string.h memory.h strings.h inttypes.h unistd.h 2919 do 2920 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 2921 echo "$as_me:2921: checking for $ac_header" >&5 2922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 2923 if eval "test \"\${$ac_ac_Header+set}\" = set"; then 2924 echo $ECHO_N "(cached) $ECHO_C" >&6 2925 else 2926 cat >conftest.$ac_ext <<_ACEOF 2927 #line 2927 "configure" 2928 #include "confdefs.h" 2929 #include <$ac_header> 2930 _ACEOF 2931 if { (eval echo "$as_me:2931: \"$ac_cpp conftest.$ac_ext\"") >&5 2932 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2933 ac_status=$? 2934 egrep -v '^ *\+' conftest.er1 >conftest.err 2935 rm -f conftest.er1 2936 cat conftest.err >&5 2937 echo "$as_me:2937: \$? = $ac_status" >&5 2938 (exit $ac_status); } >/dev/null; then 2939 if test -s conftest.err; then 2940 ac_cpp_err=$ac_c_preproc_warn_flag 2941 else 2942 ac_cpp_err= 2943 fi 2944 else 2945 ac_cpp_err=yes 2946 fi 2947 if test -z "$ac_cpp_err"; then 2948 eval "$ac_ac_Header=yes" 2949 else 2950 echo "$as_me: failed program was:" >&5 2951 cat conftest.$ac_ext >&5 2952 eval "$ac_ac_Header=no" 2953 fi 2954 rm -f conftest.err conftest.$ac_ext 2955 fi 2956 echo "$as_me:2956: result: `eval echo '${'$ac_ac_Header'}'`" >&5 2957 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 2958 if test `eval echo '${'$ac_ac_Header'}'` = yes; then 2959 cat >>confdefs.h <<EOF 2960 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 2961 EOF 2962 2963 fi 2964 done 2965 2966 echo "$as_me:2966: checking for off_t" >&5 2967 echo $ECHO_N "checking for off_t... $ECHO_C" >&6 2968 if test "${ac_cv_type_off_t+set}" = set; then 2969 echo $ECHO_N "(cached) $ECHO_C" >&6 2970 else 2971 cat >conftest.$ac_ext <<_ACEOF 2972 #line 2972 "configure" 2973 #include "confdefs.h" 2974 $ac_includes_default 2975 int 2976 main () 2977 { 2978 if ((off_t *) 0) 2979 return 0; 2980 if (sizeof (off_t)) 2981 return 0; 2982 ; 2983 return 0; 2984 } 2985 _ACEOF 2986 rm -f conftest.$ac_objext 2987 if { (eval echo "$as_me:2987: \"$ac_compile\"") >&5 2988 (eval $ac_compile) 2>&5 2989 ac_status=$? 2990 echo "$as_me:2990: \$? = $ac_status" >&5 2991 (exit $ac_status); } && 2992 { ac_try='test -s conftest.$ac_objext' 2993 { (eval echo "$as_me:2993: \"$ac_try\"") >&5 2994 (eval $ac_try) 2>&5 2995 ac_status=$? 2996 echo "$as_me:2996: \$? = $ac_status" >&5 2997 (exit $ac_status); }; }; then 1596 EOF 1597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1598 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 1599 rm -rf conftest* 2998 1600 ac_cv_type_off_t=yes 2999 1601 else 3000 echo "$as_me: failed program was:" >&5 3001 cat conftest.$ac_ext >&5 3002 ac_cv_type_off_t=no 3003 fi 3004 rm -f conftest.$ac_objext conftest.$ac_ext 3005 fi 3006 echo "$as_me:3006: result: $ac_cv_type_off_t" >&5 3007 echo "${ECHO_T}$ac_cv_type_off_t" >&6 3008 if test $ac_cv_type_off_t = yes; then 3009 : 3010 else 3011 3012 cat >>confdefs.h <<EOF 1602 rm -rf conftest* 1603 ac_cv_type_off_t=no 1604 fi 1605 rm -f conftest* 1606 1607 fi 1608 echo "$ac_t""$ac_cv_type_off_t" 1>&6 1609 if test $ac_cv_type_off_t = no; then 1610 cat >> confdefs.h <<\EOF 3013 1611 #define off_t long 3014 1612 EOF … … 3016 1614 fi 3017 1615 3018 echo "$as_me:3018: checking for size_t" >&5 3019 echo $ECHO_N "checking for size_t... $ECHO_C" >&6 3020 if test "${ac_cv_type_size_t+set}" = set; then 3021 echo $ECHO_N "(cached) $ECHO_C" >&6 3022 else 3023 cat >conftest.$ac_ext <<_ACEOF 3024 #line 3024 "configure" 3025 #include "confdefs.h" 3026 $ac_includes_default 3027 int 3028 main () 3029 { 3030 if ((size_t *) 0) 3031 return 0; 3032 if (sizeof (size_t)) 3033 return 0; 3034 ; 3035 return 0; 3036 } 3037 _ACEOF 3038 rm -f conftest.$ac_objext 3039 if { (eval echo "$as_me:3039: \"$ac_compile\"") >&5 3040 (eval $ac_compile) 2>&5 3041 ac_status=$? 3042 echo "$as_me:3042: \$? = $ac_status" >&5 3043 (exit $ac_status); } && 3044 { ac_try='test -s conftest.$ac_objext' 3045 { (eval echo "$as_me:3045: \"$ac_try\"") >&5 3046 (eval $ac_try) 2>&5 3047 ac_status=$? 3048 echo "$as_me:3048: \$? = $ac_status" >&5 3049 (exit $ac_status); }; }; then 1616 echo $ac_n "checking for size_t""... $ac_c" 1>&6 1617 echo "configure:1618: checking for size_t" >&5 1618 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 1619 echo $ac_n "(cached) $ac_c" 1>&6 1620 else 1621 cat > conftest.$ac_ext <<EOF 1622 #line 1623 "configure" 1623 #include "confdefs.h" 1624 #include <sys/types.h> 1625 #if STDC_HEADERS 1626 #include <stdlib.h> 1627 #include <stddef.h> 1628 #endif 1629 EOF 1630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1631 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 1632 rm -rf conftest* 3050 1633 ac_cv_type_size_t=yes 3051 1634 else 3052 echo "$as_me: failed program was:" >&5 3053 cat conftest.$ac_ext >&5 3054 ac_cv_type_size_t=no 3055 fi 3056 rm -f conftest.$ac_objext conftest.$ac_ext 3057 fi 3058 echo "$as_me:3058: result: $ac_cv_type_size_t" >&5 3059 echo "${ECHO_T}$ac_cv_type_size_t" >&6 3060 if test $ac_cv_type_size_t = yes; then 3061 : 3062 else 3063 3064 cat >>confdefs.h <<EOF 1635 rm -rf conftest* 1636 ac_cv_type_size_t=no 1637 fi 1638 rm -f conftest* 1639 1640 fi 1641 echo "$ac_t""$ac_cv_type_size_t" 1>&6 1642 if test $ac_cv_type_size_t = no; then 1643 cat >> confdefs.h <<\EOF 3065 1644 #define size_t unsigned 3066 1645 EOF … … 3068 1647 fi 3069 1648 3070 echo "$as_me:3070: checking whether time.h and sys/time.h may both be included" >&53071 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&63072 if test "${ac_cv_header_time+set}" = set; then3073 echo $ ECHO_N "(cached) $ECHO_C">&63074 else 3075 cat > conftest.$ac_ext <<_ACEOF3076 #line 3076 "configure"1649 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 1650 echo "configure:1651: checking whether time.h and sys/time.h may both be included" >&5 1651 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 1652 echo $ac_n "(cached) $ac_c" 1>&6 1653 else 1654 cat > conftest.$ac_ext <<EOF 1655 #line 1656 "configure" 3077 1656 #include "confdefs.h" 3078 1657 #include <sys/types.h> 3079 1658 #include <sys/time.h> 3080 1659 #include <time.h> 3081 3082 int 3083 main () 3084 { 1660 int main() { 3085 1661 struct tm *tp; 3086 ; 3087 return 0; 3088 } 3089 _ACEOF 3090 rm -f conftest.$ac_objext 3091 if { (eval echo "$as_me:3091: \"$ac_compile\"") >&5 3092 (eval $ac_compile) 2>&5 3093 ac_status=$? 3094 echo "$as_me:3094: \$? = $ac_status" >&5 3095 (exit $ac_status); } && 3096 { ac_try='test -s conftest.$ac_objext' 3097 { (eval echo "$as_me:3097: \"$ac_try\"") >&5 3098 (eval $ac_try) 2>&5 3099 ac_status=$? 3100 echo "$as_me:3100: \$? = $ac_status" >&5 3101 (exit $ac_status); }; }; then 1662 ; return 0; } 1663 EOF 1664 if { (eval echo configure:1665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1665 rm -rf conftest* 3102 1666 ac_cv_header_time=yes 3103 1667 else 3104 echo "$as_me: failed program was:" >&5 3105 cat conftest.$ac_ext >&5 3106 ac_cv_header_time=no 3107 fi 3108 rm -f conftest.$ac_objext conftest.$ac_ext 3109 fi 3110 echo "$as_me:3110: result: $ac_cv_header_time" >&5 3111 echo "${ECHO_T}$ac_cv_header_time" >&6 1668 echo "configure: failed program was:" >&5 1669 cat conftest.$ac_ext >&5 1670 rm -rf conftest* 1671 ac_cv_header_time=no 1672 fi 1673 rm -f conftest* 1674 fi 1675 1676 echo "$ac_t""$ac_cv_header_time" 1>&6 3112 1677 if test $ac_cv_header_time = yes; then 3113 3114 cat >>confdefs.h <<\EOF 1678 cat >> confdefs.h <<\EOF 3115 1679 #define TIME_WITH_SYS_TIME 1 3116 1680 EOF … … 3118 1682 fi 3119 1683 3120 echo "$as_me:3120: checking whether struct tm is in sys/time.h or time.h" >&53121 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&63122 if test "${ac_cv_struct_tm+set}" = set; then3123 echo $ ECHO_N "(cached) $ECHO_C">&63124 else 3125 cat > conftest.$ac_ext <<_ACEOF3126 #line 3126"configure"1684 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 1685 echo "configure:1686: checking whether struct tm is in sys/time.h or time.h" >&5 1686 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then 1687 echo $ac_n "(cached) $ac_c" 1>&6 1688 else 1689 cat > conftest.$ac_ext <<EOF 1690 #line 1691 "configure" 3127 1691 #include "confdefs.h" 3128 1692 #include <sys/types.h> 3129 1693 #include <time.h> 3130 3131 int 3132 main () 3133 { 1694 int main() { 3134 1695 struct tm *tp; tp->tm_sec; 3135 ; 3136 return 0; 3137 } 3138 _ACEOF 3139 rm -f conftest.$ac_objext 3140 if { (eval echo "$as_me:3140: \"$ac_compile\"") >&5 3141 (eval $ac_compile) 2>&5 3142 ac_status=$? 3143 echo "$as_me:3143: \$? = $ac_status" >&5 3144 (exit $ac_status); } && 3145 { ac_try='test -s conftest.$ac_objext' 3146 { (eval echo "$as_me:3146: \"$ac_try\"") >&5 3147 (eval $ac_try) 2>&5 3148 ac_status=$? 3149 echo "$as_me:3149: \$? = $ac_status" >&5 3150 (exit $ac_status); }; }; then 1696 ; return 0; } 1697 EOF 1698 if { (eval echo configure:1699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1699 rm -rf conftest* 3151 1700 ac_cv_struct_tm=time.h 3152 1701 else 3153 echo "$as_me: failed program was:" >&5 3154 cat conftest.$ac_ext >&5 3155 ac_cv_struct_tm=sys/time.h 3156 fi 3157 rm -f conftest.$ac_objext conftest.$ac_ext 3158 fi 3159 echo "$as_me:3159: result: $ac_cv_struct_tm" >&5 3160 echo "${ECHO_T}$ac_cv_struct_tm" >&6 1702 echo "configure: failed program was:" >&5 1703 cat conftest.$ac_ext >&5 1704 rm -rf conftest* 1705 ac_cv_struct_tm=sys/time.h 1706 fi 1707 rm -f conftest* 1708 fi 1709 1710 echo "$ac_t""$ac_cv_struct_tm" 1>&6 3161 1711 if test $ac_cv_struct_tm = sys/time.h; then 3162 3163 cat >>confdefs.h <<\EOF 1712 cat >> confdefs.h <<\EOF 3164 1713 #define TM_IN_SYS_TIME 1 3165 1714 EOF … … 3167 1716 fi 3168 1717 1718 3169 1719 if test "$ac_cv_prog_cc_stdc" = '-Xc'; then 3170 cat > conftest.$ac_ext <<_ACEOF3171 #line 3171"configure"1720 cat > conftest.$ac_ext <<EOF 1721 #line 1722 "configure" 3172 1722 #include "confdefs.h" 3173 1723 #include <stdio.h> 3174 1724 3175 int 3176 main () 3177 { 3178 FILE *rubbish = popen("yes", "r"); 3179 ; 3180 return 0; 3181 } 3182 _ACEOF 3183 rm -f conftest.$ac_objext 3184 if { (eval echo "$as_me:3184: \"$ac_compile\"") >&5 3185 (eval $ac_compile) 2>&5 3186 ac_status=$? 3187 echo "$as_me:3187: \$? = $ac_status" >&5 3188 (exit $ac_status); } && 3189 { ac_try='test -s conftest.$ac_objext' 3190 { (eval echo "$as_me:3190: \"$ac_try\"") >&5 3191 (eval $ac_try) 2>&5 3192 ac_status=$? 3193 echo "$as_me:3193: \$? = $ac_status" >&5 3194 (exit $ac_status); }; }; then 1725 int main() { 1726 FILE *rubbish = popen("yes", "r"); 1727 ; return 0; } 1728 EOF 1729 if { (eval echo configure:1730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3195 1730 : 3196 1731 else 3197 echo "$as_me: failed program was:" >&5 3198 cat conftest.$ac_ext >&5 3199 CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa' 3200 fi 3201 rm -f conftest.$ac_objext conftest.$ac_ext 3202 fi 3203 3204 echo "$as_me:3204: checking for main in -lm" >&5 3205 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 3206 if test "${ac_cv_lib_m_main+set}" = set; then 3207 echo $ECHO_N "(cached) $ECHO_C" >&6 3208 else 3209 ac_check_lib_save_LIBS=$LIBS 1732 echo "configure: failed program was:" >&5 1733 cat conftest.$ac_ext >&5 1734 rm -rf conftest* 1735 CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa' 1736 fi 1737 rm -f conftest* 1738 fi 1739 1740 1741 echo $ac_n "checking for main in -lg""... $ac_c" 1>&6 1742 echo "configure:1743: checking for main in -lg" >&5 1743 ac_lib_var=`echo g'_'main | sed 'y%./+-%__p_%'` 1744 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1745 echo $ac_n "(cached) $ac_c" 1>&6 1746 else 1747 ac_save_LIBS="$LIBS" 1748 LIBS="-lg $LIBS" 1749 cat > conftest.$ac_ext <<EOF 1750 #line 1751 "configure" 1751 #include "confdefs.h" 1752 1753 int main() { 1754 main() 1755 ; return 0; } 1756 EOF 1757 if { (eval echo configure:1758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1758 rm -rf conftest* 1759 eval "ac_cv_lib_$ac_lib_var=yes" 1760 else 1761 echo "configure: failed program was:" >&5 1762 cat conftest.$ac_ext >&5 1763 rm -rf conftest* 1764 eval "ac_cv_lib_$ac_lib_var=no" 1765 fi 1766 rm -f conftest* 1767 LIBS="$ac_save_LIBS" 1768 1769 fi 1770 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1771 echo "$ac_t""yes" 1>&6 1772 ac_tr_lib=HAVE_LIB`echo g | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1773 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1774 cat >> confdefs.h <<EOF 1775 #define $ac_tr_lib 1 1776 EOF 1777 1778 LIBS="-lg $LIBS" 1779 1780 else 1781 echo "$ac_t""no" 1>&6 1782 fi 1783 1784 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6 1785 echo "configure:1786: checking for main in -lm" >&5 1786 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'` 1787 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1788 echo $ac_n "(cached) $ac_c" 1>&6 1789 else 1790 ac_save_LIBS="$LIBS" 3210 1791 LIBS="-lm $LIBS" 3211 cat >conftest.$ac_ext <<_ACEOF 3212 #line 3212 "configure" 3213 #include "confdefs.h" 3214 3215 int 3216 main () 3217 { 3218 main (); 3219 ; 3220 return 0; 3221 } 3222 _ACEOF 3223 rm -f conftest.$ac_objext conftest$ac_exeext 3224 if { (eval echo "$as_me:3224: \"$ac_link\"") >&5 3225 (eval $ac_link) 2>&5 3226 ac_status=$? 3227 echo "$as_me:3227: \$? = $ac_status" >&5 3228 (exit $ac_status); } && 3229 { ac_try='test -s conftest$ac_exeext' 3230 { (eval echo "$as_me:3230: \"$ac_try\"") >&5 3231 (eval $ac_try) 2>&5 3232 ac_status=$? 3233 echo "$as_me:3233: \$? = $ac_status" >&5 3234 (exit $ac_status); }; }; then 3235 ac_cv_lib_m_main=yes 3236 else 3237 echo "$as_me: failed program was:" >&5 3238 cat conftest.$ac_ext >&5 3239 ac_cv_lib_m_main=no 3240 fi 3241 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3242 LIBS=$ac_check_lib_save_LIBS 3243 fi 3244 echo "$as_me:3244: result: $ac_cv_lib_m_main" >&5 3245 echo "${ECHO_T}$ac_cv_lib_m_main" >&6 3246 if test $ac_cv_lib_m_main = yes; then 3247 cat >>confdefs.h <<EOF 3248 #define HAVE_LIBM 1 1792 cat > conftest.$ac_ext <<EOF 1793 #line 1794 "configure" 1794 #include "confdefs.h" 1795 1796 int main() { 1797 main() 1798 ; return 0; } 1799 EOF 1800 if { (eval echo configure:1801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1801 rm -rf conftest* 1802 eval "ac_cv_lib_$ac_lib_var=yes" 1803 else 1804 echo "configure: failed program was:" >&5 1805 cat conftest.$ac_ext >&5 1806 rm -rf conftest* 1807 eval "ac_cv_lib_$ac_lib_var=no" 1808 fi 1809 rm -f conftest* 1810 LIBS="$ac_save_LIBS" 1811 1812 fi 1813 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1814 echo "$ac_t""yes" 1>&6 1815 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1816 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1817 cat >> confdefs.h <<EOF 1818 #define $ac_tr_lib 1 3249 1819 EOF 3250 1820 3251 1821 LIBS="-lm $LIBS" 3252 1822 3253 fi 1823 else 1824 echo "$ac_t""no" 1>&6 1825 fi 1826 1827 echo $ac_n "checking for main in -lstdc++""... $ac_c" 1>&6 1828 echo "configure:1829: checking for main in -lstdc++" >&5 1829 ac_lib_var=`echo stdc++'_'main | sed 'y%./+-%__p_%'` 1830 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1831 echo $ac_n "(cached) $ac_c" 1>&6 1832 else 1833 ac_save_LIBS="$LIBS" 1834 LIBS="-lstdc++ $LIBS" 1835 cat > conftest.$ac_ext <<EOF 1836 #line 1837 "configure" 1837 #include "confdefs.h" 1838 1839 int main() { 1840 main() 1841 ; return 0; } 1842 EOF 1843 if { (eval echo configure:1844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1844 rm -rf conftest* 1845 eval "ac_cv_lib_$ac_lib_var=yes" 1846 else 1847 echo "configure: failed program was:" >&5 1848 cat conftest.$ac_ext >&5 1849 rm -rf conftest* 1850 eval "ac_cv_lib_$ac_lib_var=no" 1851 fi 1852 rm -f conftest* 1853 LIBS="$ac_save_LIBS" 1854 1855 fi 1856 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1857 echo "$ac_t""yes" 1>&6 1858 ac_tr_lib=HAVE_LIB`echo stdc++ | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1859 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1860 cat >> confdefs.h <<EOF 1861 #define $ac_tr_lib 1 1862 EOF 1863 1864 LIBS="-lstdc++ $LIBS" 1865 1866 else 1867 echo "$ac_t""no" 1>&6 1868 fi 1869 1870 echo $ac_n "checking for main in -lcrypt""... $ac_c" 1>&6 1871 echo "configure:1872: checking for main in -lcrypt" >&5 1872 ac_lib_var=`echo crypt'_'main | sed 'y%./+-%__p_%'` 1873 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1874 echo $ac_n "(cached) $ac_c" 1>&6 1875 else 1876 ac_save_LIBS="$LIBS" 1877 LIBS="-lcrypt $LIBS" 1878 cat > conftest.$ac_ext <<EOF 1879 #line 1880 "configure" 1880 #include "confdefs.h" 1881 1882 int main() { 1883 main() 1884 ; return 0; } 1885 EOF 1886 if { (eval echo configure:1887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1887 rm -rf conftest* 1888 eval "ac_cv_lib_$ac_lib_var=yes" 1889 else 1890 echo "configure: failed program was:" >&5 1891 cat conftest.$ac_ext >&5 1892 rm -rf conftest* 1893 eval "ac_cv_lib_$ac_lib_var=no" 1894 fi 1895 rm -f conftest* 1896 LIBS="$ac_save_LIBS" 1897 1898 fi 1899 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1900 echo "$ac_t""yes" 1>&6 1901 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1902 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1903 cat >> confdefs.h <<EOF 1904 #define $ac_tr_lib 1 1905 EOF 1906 1907 LIBS="-lcrypt $LIBS" 1908 1909 else 1910 echo "$ac_t""no" 1>&6 1911 fi 1912 3254 1913 3255 1914 ac_header_dirent=no 3256 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 3257 ac_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $ac_tr_sh` 3258 echo "$as_me:3258: checking for $ac_hdr that defines DIR" >&5 3259 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 3260 if eval "test \"\${$ac_ac_Header+set}\" = set"; then 3261 echo $ECHO_N "(cached) $ECHO_C" >&6 3262 else 3263 cat >conftest.$ac_ext <<_ACEOF 3264 #line 3264 "configure" 1915 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h 1916 do 1917 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1918 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 1919 echo "configure:1920: checking for $ac_hdr that defines DIR" >&5 1920 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then 1921 echo $ac_n "(cached) $ac_c" 1>&6 1922 else 1923 cat > conftest.$ac_ext <<EOF 1924 #line 1925 "configure" 3265 1925 #include "confdefs.h" 3266 1926 #include <sys/types.h> 3267 1927 #include <$ac_hdr> 3268 3269 int 3270 main () 3271 { 1928 int main() { 3272 1929 DIR *dirp = 0; 3273 ; 3274 return 0; 3275 } 3276 _ACEOF 3277 rm -f conftest.$ac_objext 3278 if { (eval echo "$as_me:3278: \"$ac_compile\"") >&5 3279 (eval $ac_compile) 2>&5 3280 ac_status=$? 3281 echo "$as_me:3281: \$? = $ac_status" >&5 3282 (exit $ac_status); } && 3283 { ac_try='test -s conftest.$ac_objext' 3284 { (eval echo "$as_me:3284: \"$ac_try\"") >&5 3285 (eval $ac_try) 2>&5 3286 ac_status=$? 3287 echo "$as_me:3287: \$? = $ac_status" >&5 3288 (exit $ac_status); }; }; then 3289 eval "$ac_ac_Header=yes" 3290 else 3291 echo "$as_me: failed program was:" >&5 3292 cat conftest.$ac_ext >&5 3293 eval "$ac_ac_Header=no" 3294 fi 3295 rm -f conftest.$ac_objext conftest.$ac_ext 3296 fi 3297 echo "$as_me:3297: result: `eval echo '${'$ac_ac_Header'}'`" >&5 3298 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 3299 if test `eval echo '${'$ac_ac_Header'}'` = yes; then 3300 cat >>confdefs.h <<EOF 3301 #define `echo "HAVE_$ac_hdr" | $ac_tr_cpp` 1 3302 EOF 3303 3304 ac_header_dirent=$ac_hdr; break 3305 fi 3306 1930 ; return 0; } 1931 EOF 1932 if { (eval echo configure:1933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1933 rm -rf conftest* 1934 eval "ac_cv_header_dirent_$ac_safe=yes" 1935 else 1936 echo "configure: failed program was:" >&5 1937 cat conftest.$ac_ext >&5 1938 rm -rf conftest* 1939 eval "ac_cv_header_dirent_$ac_safe=no" 1940 fi 1941 rm -f conftest* 1942 fi 1943 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then 1944 echo "$ac_t""yes" 1>&6 1945 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1946 cat >> confdefs.h <<EOF 1947 #define $ac_tr_hdr 1 1948 EOF 1949 ac_header_dirent=$ac_hdr; break 1950 else 1951 echo "$ac_t""no" 1>&6 1952 fi 3307 1953 done 3308 1954 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 3309 1955 if test $ac_header_dirent = dirent.h; then 3310 echo "$as_me:3310: checking for opendir in -ldir" >&5 3311 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6 3312 if test "${ac_cv_lib_dir_opendir+set}" = set; then 3313 echo $ECHO_N "(cached) $ECHO_C" >&6 3314 else 3315 ac_check_lib_save_LIBS=$LIBS 1956 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 1957 echo "configure:1958: checking for opendir in -ldir" >&5 1958 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` 1959 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1960 echo $ac_n "(cached) $ac_c" 1>&6 1961 else 1962 ac_save_LIBS="$LIBS" 3316 1963 LIBS="-ldir $LIBS" 3317 cat >conftest.$ac_ext <<_ACEOF 3318 #line 3318 "configure" 3319 #include "confdefs.h" 3320 1964 cat > conftest.$ac_ext <<EOF 1965 #line 1966 "configure" 1966 #include "confdefs.h" 3321 1967 /* Override any gcc2 internal prototype to avoid an error. */ 3322 #ifdef __cplusplus3323 extern "C"3324 #endif3325 1968 /* We use char because int might match the return type of a gcc2 3326 builtin and then its argument prototype would still apply. */ 3327 char opendir (); 3328 int 3329 main () 3330 { 3331 opendir (); 3332 ; 3333 return 0; 3334 } 3335 _ACEOF 3336 rm -f conftest.$ac_objext conftest$ac_exeext 3337 if { (eval echo "$as_me:3337: \"$ac_link\"") >&5 3338 (eval $ac_link) 2>&5 3339 ac_status=$? 3340 echo "$as_me:3340: \$? = $ac_status" >&5 3341 (exit $ac_status); } && 3342 { ac_try='test -s conftest$ac_exeext' 3343 { (eval echo "$as_me:3343: \"$ac_try\"") >&5 3344 (eval $ac_try) 2>&5 3345 ac_status=$? 3346 echo "$as_me:3346: \$? = $ac_status" >&5 3347 (exit $ac_status); }; }; then 3348 ac_cv_lib_dir_opendir=yes 3349 else 3350 echo "$as_me: failed program was:" >&5 3351 cat conftest.$ac_ext >&5 3352 ac_cv_lib_dir_opendir=no 3353 fi 3354 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3355 LIBS=$ac_check_lib_save_LIBS 3356 fi 3357 echo "$as_me:3357: result: $ac_cv_lib_dir_opendir" >&5 3358 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6 3359 if test $ac_cv_lib_dir_opendir = yes; then 1969 builtin and then its argument prototype would still apply. */ 1970 char opendir(); 1971 1972 int main() { 1973 opendir() 1974 ; return 0; } 1975 EOF 1976 if { (eval echo configure:1977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1977 rm -rf conftest* 1978 eval "ac_cv_lib_$ac_lib_var=yes" 1979 else 1980 echo "configure: failed program was:" >&5 1981 cat conftest.$ac_ext >&5 1982 rm -rf conftest* 1983 eval "ac_cv_lib_$ac_lib_var=no" 1984 fi 1985 rm -f conftest* 1986 LIBS="$ac_save_LIBS" 1987 1988 fi 1989 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1990 echo "$ac_t""yes" 1>&6 3360 1991 LIBS="$LIBS -ldir" 3361 fi 3362 3363 else 3364 echo "$as_me:3364: checking for opendir in -lx" >&5 3365 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6 3366 if test "${ac_cv_lib_x_opendir+set}" = set; then 3367 echo $ECHO_N "(cached) $ECHO_C" >&6 3368 else 3369 ac_check_lib_save_LIBS=$LIBS 1992 else 1993 echo "$ac_t""no" 1>&6 1994 fi 1995 1996 else 1997 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 1998 echo "configure:1999: checking for opendir in -lx" >&5 1999 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` 2000 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2001 echo $ac_n "(cached) $ac_c" 1>&6 2002 else 2003 ac_save_LIBS="$LIBS" 3370 2004 LIBS="-lx $LIBS" 3371 cat >conftest.$ac_ext <<_ACEOF 3372 #line 3372 "configure" 3373 #include "confdefs.h" 3374 2005 cat > conftest.$ac_ext <<EOF 2006 #line 2007 "configure" 2007 #include "confdefs.h" 3375 2008 /* Override any gcc2 internal prototype to avoid an error. */ 3376 #ifdef __cplusplus3377 extern "C"3378 #endif3379 2009 /* We use char because int might match the return type of a gcc2 3380 builtin and then its argument prototype would still apply. */ 3381 char opendir (); 3382 int 3383 main () 3384 { 3385 opendir (); 3386 ; 3387 return 0; 3388 } 3389 _ACEOF 3390 rm -f conftest.$ac_objext conftest$ac_exeext 3391 if { (eval echo "$as_me:3391: \"$ac_link\"") >&5 3392 (eval $ac_link) 2>&5 3393 ac_status=$? 3394 echo "$as_me:3394: \$? = $ac_status" >&5 3395 (exit $ac_status); } && 3396 { ac_try='test -s conftest$ac_exeext' 3397 { (eval echo "$as_me:3397: \"$ac_try\"") >&5 3398 (eval $ac_try) 2>&5 3399 ac_status=$? 3400 echo "$as_me:3400: \$? = $ac_status" >&5 3401 (exit $ac_status); }; }; then 3402 ac_cv_lib_x_opendir=yes 3403 else 3404 echo "$as_me: failed program was:" >&5 3405 cat conftest.$ac_ext >&5 3406 ac_cv_lib_x_opendir=no 3407 fi 3408 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3409 LIBS=$ac_check_lib_save_LIBS 3410 fi 3411 echo "$as_me:3411: result: $ac_cv_lib_x_opendir" >&5 3412 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6 3413 if test $ac_cv_lib_x_opendir = yes; then 2010 builtin and then its argument prototype would still apply. */ 2011 char opendir(); 2012 2013 int main() { 2014 opendir() 2015 ; return 0; } 2016 EOF 2017 if { (eval echo configure:2018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2018 rm -rf conftest* 2019 eval "ac_cv_lib_$ac_lib_var=yes" 2020 else 2021 echo "configure: failed program was:" >&5 2022 cat conftest.$ac_ext >&5 2023 rm -rf conftest* 2024 eval "ac_cv_lib_$ac_lib_var=no" 2025 fi 2026 rm -f conftest* 2027 LIBS="$ac_save_LIBS" 2028 2029 fi 2030 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2031 echo "$ac_t""yes" 1>&6 3414 2032 LIBS="$LIBS -lx" 3415 fi 3416 3417 fi 3418 3419 echo "$as_me:3419: checking for ANSI C header files" >&5 3420 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3421 if test "${ac_cv_header_stdc+set}" = set; then 3422 echo $ECHO_N "(cached) $ECHO_C" >&6 3423 else 3424 cat >conftest.$ac_ext <<_ACEOF 3425 #line 3425 "configure" 2033 else 2034 echo "$ac_t""no" 1>&6 2035 fi 2036 2037 fi 2038 2039 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 2040 echo "configure:2041: checking for ANSI C header files" >&5 2041 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 2042 echo $ac_n "(cached) $ac_c" 1>&6 2043 else 2044 cat > conftest.$ac_ext <<EOF 2045 #line 2046 "configure" 3426 2046 #include "confdefs.h" 3427 2047 #include <stdlib.h> … … 3429 2049 #include <string.h> 3430 2050 #include <float.h> 3431 3432 _ACEOF 3433 if { (eval echo "$as_me:3433: \"$ac_cpp conftest.$ac_ext\"") >&5 3434 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3435 ac_status=$? 3436 egrep -v '^ *\+' conftest.er1 >conftest.err 3437 rm -f conftest.er1 3438 cat conftest.err >&5 3439 echo "$as_me:3439: \$? = $ac_status" >&5 3440 (exit $ac_status); } >/dev/null; then 3441 if test -s conftest.err; then 3442 ac_cpp_err=$ac_c_preproc_warn_flag 3443 else 3444 ac_cpp_err= 3445 fi 3446 else 3447 ac_cpp_err=yes 3448 fi 3449 if test -z "$ac_cpp_err"; then 2051 EOF 2052 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2053 { (eval echo configure:2054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2054 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2055 if test -z "$ac_err"; then 2056 rm -rf conftest* 3450 2057 ac_cv_header_stdc=yes 3451 2058 else 3452 echo "$as_me: failed program was:" >&5 3453 cat conftest.$ac_ext >&5 2059 echo "$ac_err" >&5 2060 echo "configure: failed program was:" >&5 2061 cat conftest.$ac_ext >&5 2062 rm -rf conftest* 3454 2063 ac_cv_header_stdc=no 3455 2064 fi 3456 rm -f conftest .err conftest.$ac_ext2065 rm -f conftest* 3457 2066 3458 2067 if test $ac_cv_header_stdc = yes; then 3459 2068 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3460 cat >conftest.$ac_ext <<_ACEOF3461 #line 3461 "configure"2069 cat > conftest.$ac_ext <<EOF 2070 #line 2071 "configure" 3462 2071 #include "confdefs.h" 3463 2072 #include <string.h> 3464 3465 _ACEOF 2073 EOF 3466 2074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3467 2075 egrep "memchr" >/dev/null 2>&1; then 3468 2076 : 3469 2077 else 2078 rm -rf conftest* 3470 2079 ac_cv_header_stdc=no 3471 2080 fi … … 3476 2085 if test $ac_cv_header_stdc = yes; then 3477 2086 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3478 cat >conftest.$ac_ext <<_ACEOF3479 #line 3479 "configure"2087 cat > conftest.$ac_ext <<EOF 2088 #line 2089 "configure" 3480 2089 #include "confdefs.h" 3481 2090 #include <stdlib.h> 3482 3483 _ACEOF 2091 EOF 3484 2092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3485 2093 egrep "free" >/dev/null 2>&1; then 3486 2094 : 3487 2095 else 2096 rm -rf conftest* 3488 2097 ac_cv_header_stdc=no 3489 2098 fi … … 3494 2103 if test $ac_cv_header_stdc = yes; then 3495 2104 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3496 2105 if test "$cross_compiling" = yes; then 3497 2106 : 3498 2107 else 3499 cat > conftest.$ac_ext <<_ACEOF3500 #line 3500 "configure"2108 cat > conftest.$ac_ext <<EOF 2109 #line 2110 "configure" 3501 2110 #include "confdefs.h" 3502 2111 #include <ctype.h> 3503 #if ((' ' & 0x0FF) == 0x020) 3504 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3505 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3506 #else 3507 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 3508 || ('j' <= (c) && (c) <= 'r') \ 3509 || ('s' <= (c) && (c) <= 'z')) 3510 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3511 #endif 3512 2112 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2113 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3513 2114 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3514 int 3515 main () 3516 { 3517 int i; 3518 for (i = 0; i < 256; i++) 3519 if (XOR (islower (i), ISLOWER (i)) 3520 || toupper (i) != TOUPPER (i)) 3521 exit(2); 3522 exit (0); 3523 } 3524 _ACEOF 3525 rm -f conftest$ac_exeext 3526 if { (eval echo "$as_me:3526: \"$ac_link\"") >&5 3527 (eval $ac_link) 2>&5 3528 ac_status=$? 3529 echo "$as_me:3529: \$? = $ac_status" >&5 3530 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3531 { (eval echo "$as_me:3531: \"$ac_try\"") >&5 3532 (eval $ac_try) 2>&5 3533 ac_status=$? 3534 echo "$as_me:3534: \$? = $ac_status" >&5 3535 (exit $ac_status); }; }; then 2115 int main () { int i; for (i = 0; i < 256; i++) 2116 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 2117 exit (0); } 2118 2119 EOF 2120 if { (eval echo configure:2121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2121 then 3536 2122 : 3537 2123 else 3538 echo "$as_me: program exited with status $ac_status" >&5 3539 echo "$as_me: failed program was:" >&5 3540 cat conftest.$ac_ext >&5 3541 ac_cv_header_stdc=no 3542 fi 3543 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext 3544 fi 3545 fi 3546 fi 3547 echo "$as_me:3547: result: $ac_cv_header_stdc" >&5 3548 echo "${ECHO_T}$ac_cv_header_stdc" >&6 2124 echo "configure: failed program was:" >&5 2125 cat conftest.$ac_ext >&5 2126 rm -fr conftest* 2127 ac_cv_header_stdc=no 2128 fi 2129 rm -fr conftest* 2130 fi 2131 2132 fi 2133 fi 2134 2135 echo "$ac_t""$ac_cv_header_stdc" 1>&6 3549 2136 if test $ac_cv_header_stdc = yes; then 3550 3551 cat >>confdefs.h <<\EOF 2137 cat >> confdefs.h <<\EOF 3552 2138 #define STDC_HEADERS 1 3553 2139 EOF … … 3555 2141 fi 3556 2142 3557 for ac_h eader in fcntl.h limits.h sys/time.h unistd.h string.h memory.h sys/procfs.h2143 for ac_hdr in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h 3558 2144 do 3559 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` 3560 echo "$as_me:3560: checking for $ac_header" >&5 3561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3562 if eval "test \"\${$ac_ac_Header+set}\" = set"; then 3563 echo $ECHO_N "(cached) $ECHO_C" >&6 3564 else 3565 cat >conftest.$ac_ext <<_ACEOF 3566 #line 3566 "configure" 3567 #include "confdefs.h" 3568 #include <$ac_header> 3569 _ACEOF 3570 if { (eval echo "$as_me:3570: \"$ac_cpp conftest.$ac_ext\"") >&5 3571 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3572 ac_status=$? 3573 egrep -v '^ *\+' conftest.er1 >conftest.err 3574 rm -f conftest.er1 3575 cat conftest.err >&5 3576 echo "$as_me:3576: \$? = $ac_status" >&5 3577 (exit $ac_status); } >/dev/null; then 3578 if test -s conftest.err; then 3579 ac_cpp_err=$ac_c_preproc_warn_flag 3580 else 3581 ac_cpp_err= 3582 fi 3583 else 3584 ac_cpp_err=yes 3585 fi 3586 if test -z "$ac_cpp_err"; then 3587 eval "$ac_ac_Header=yes" 3588 else 3589 echo "$as_me: failed program was:" >&5 3590 cat conftest.$ac_ext >&5 3591 eval "$ac_ac_Header=no" 3592 fi 3593 rm -f conftest.err conftest.$ac_ext 3594 fi 3595 echo "$as_me:3595: result: `eval echo '${'$ac_ac_Header'}'`" >&5 3596 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 3597 if test `eval echo '${'$ac_ac_Header'}'` = yes; then 3598 cat >>confdefs.h <<EOF 3599 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 3600 EOF 3601 2145 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2146 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2147 echo "configure:2148: checking for $ac_hdr" >&5 2148 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2149 echo $ac_n "(cached) $ac_c" 1>&6 2150 else 2151 cat > conftest.$ac_ext <<EOF 2152 #line 2153 "configure" 2153 #include "confdefs.h" 2154 #include <$ac_hdr> 2155 EOF 2156 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2157 { (eval echo configure:2158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2158 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2159 if test -z "$ac_err"; then 2160 rm -rf conftest* 2161 eval "ac_cv_header_$ac_safe=yes" 2162 else 2163 echo "$ac_err" >&5 2164 echo "configure: failed program was:" >&5 2165 cat conftest.$ac_ext >&5 2166 rm -rf conftest* 2167 eval "ac_cv_header_$ac_safe=no" 2168 fi 2169 rm -f conftest* 2170 fi 2171 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2172 echo "$ac_t""yes" 1>&6 2173 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2174 cat >> confdefs.h <<EOF 2175 #define $ac_tr_hdr 1 2176 EOF 2177 2178 else 2179 echo "$ac_t""no" 1>&6 3602 2180 fi 3603 2181 done 3604 2182 3605 cat > conftest.$ac_ext <<_ACEOF3606 #line 3606"configure"2183 cat > conftest.$ac_ext <<EOF 2184 #line 2185 "configure" 3607 2185 #include "confdefs.h" 3608 2186 #include <stdio.h> 3609 3610 _ACEOF 2187 EOF 3611 2188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3612 2189 egrep "fread" >/dev/null 2>&1; then 3613 cat >>confdefs.h <<\EOF 2190 rm -rf conftest* 2191 cat >> confdefs.h <<\EOF 3614 2192 #define HAVE_FREAD_DECL 1 3615 2193 EOF … … 3618 2196 rm -f conftest* 3619 2197 3620 cat > conftest.$ac_ext <<_ACEOF3621 #line 3621"configure"2198 cat > conftest.$ac_ext <<EOF 2199 #line 2200 "configure" 3622 2200 #include "confdefs.h" 3623 2201 #include <stdio.h> 3624 3625 _ACEOF 2202 EOF 3626 2203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3627 2204 egrep "fgetc" >/dev/null 2>&1; then 3628 cat >>confdefs.h <<\EOF 2205 rm -rf conftest* 2206 cat >> confdefs.h <<\EOF 3629 2207 #define HAVE_FGETC_DECL 1 3630 2208 EOF … … 3633 2211 rm -f conftest* 3634 2212 3635 cat > conftest.$ac_ext <<_ACEOF3636 #line 3636"configure"2213 cat > conftest.$ac_ext <<EOF 2214 #line 2215 "configure" 3637 2215 #include "confdefs.h" 3638 2216 #include <sys/procfs.h> 3639 3640 _ACEOF 2217 EOF 3641 2218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3642 2219 egrep "pr_brksize" >/dev/null 2>&1; then 3643 cat >>confdefs.h <<\EOF 2220 rm -rf conftest* 2221 cat >> confdefs.h <<\EOF 3644 2222 #define HAVE_PR_BRKSIZE 1 3645 2223 EOF … … 3647 2225 fi 3648 2226 rm -f conftest* 2227 3649 2228 3650 2229 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 3651 2230 # for constant arguments. Useless! 3652 echo "$as_me:3652: checking for working alloca.h" >&53653 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&63654 if test "${ac_cv_working_alloca_h+set}" = set; then3655 echo $ ECHO_N "(cached) $ECHO_C">&63656 else 3657 cat > conftest.$ac_ext <<_ACEOF3658 #line 3658 "configure"2231 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 2232 echo "configure:2233: checking for working alloca.h" >&5 2233 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then 2234 echo $ac_n "(cached) $ac_c" 1>&6 2235 else 2236 cat > conftest.$ac_ext <<EOF 2237 #line 2238 "configure" 3659 2238 #include "confdefs.h" 3660 2239 #include <alloca.h> 3661 int 3662 main () 3663 { 3664 char *p = (char *) alloca (2 * sizeof (int)); 3665 ; 3666 return 0; 3667 } 3668 _ACEOF 3669 rm -f conftest.$ac_objext conftest$ac_exeext 3670 if { (eval echo "$as_me:3670: \"$ac_link\"") >&5 3671 (eval $ac_link) 2>&5 3672 ac_status=$? 3673 echo "$as_me:3673: \$? = $ac_status" >&5 3674 (exit $ac_status); } && 3675 { ac_try='test -s conftest$ac_exeext' 3676 { (eval echo "$as_me:3676: \"$ac_try\"") >&5 3677 (eval $ac_try) 2>&5 3678 ac_status=$? 3679 echo "$as_me:3679: \$? = $ac_status" >&5 3680 (exit $ac_status); }; }; then 3681 ac_cv_working_alloca_h=yes 3682 else 3683 echo "$as_me: failed program was:" >&5 3684 cat conftest.$ac_ext >&5 3685 ac_cv_working_alloca_h=no 3686 fi 3687 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3688 fi 3689 echo "$as_me:3689: result: $ac_cv_working_alloca_h" >&5 3690 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 3691 if test $ac_cv_working_alloca_h = yes; then 3692 3693 cat >>confdefs.h <<\EOF 2240 int main() { 2241 char *p = alloca(2 * sizeof(int)); 2242 ; return 0; } 2243 EOF 2244 if { (eval echo configure:2245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2245 rm -rf conftest* 2246 ac_cv_header_alloca_h=yes 2247 else 2248 echo "configure: failed program was:" >&5 2249 cat conftest.$ac_ext >&5 2250 rm -rf conftest* 2251 ac_cv_header_alloca_h=no 2252 fi 2253 rm -f conftest* 2254 fi 2255 2256 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 2257 if test $ac_cv_header_alloca_h = yes; then 2258 cat >> confdefs.h <<\EOF 3694 2259 #define HAVE_ALLOCA_H 1 3695 2260 EOF … … 3697 2262 fi 3698 2263 3699 echo "$as_me:3699: checking for alloca" >&5 3700 echo $ECHO_N "checking for alloca... $ECHO_C" >&6 3701 if test "${ac_cv_func_alloca_works+set}" = set; then 3702 echo $ECHO_N "(cached) $ECHO_C" >&6 3703 else 3704 cat >conftest.$ac_ext <<_ACEOF 3705 #line 3705 "configure" 3706 #include "confdefs.h" 2264 echo $ac_n "checking for alloca""... $ac_c" 1>&6 2265 echo "configure:2266: checking for alloca" >&5 2266 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then 2267 echo $ac_n "(cached) $ac_c" 1>&6 2268 else 2269 cat > conftest.$ac_ext <<EOF 2270 #line 2271 "configure" 2271 #include "confdefs.h" 2272 3707 2273 #ifdef __GNUC__ 3708 2274 # define alloca __builtin_alloca … … 3726 2292 #endif 3727 2293 3728 int 3729 main () 3730 { 3731 char *p = (char *) alloca (1); 3732 ; 3733 return 0; 3734 } 3735 _ACEOF 3736 rm -f conftest.$ac_objext conftest$ac_exeext 3737 if { (eval echo "$as_me:3737: \"$ac_link\"") >&5 3738 (eval $ac_link) 2>&5 3739 ac_status=$? 3740 echo "$as_me:3740: \$? = $ac_status" >&5 3741 (exit $ac_status); } && 3742 { ac_try='test -s conftest$ac_exeext' 3743 { (eval echo "$as_me:3743: \"$ac_try\"") >&5 3744 (eval $ac_try) 2>&5 3745 ac_status=$? 3746 echo "$as_me:3746: \$? = $ac_status" >&5 3747 (exit $ac_status); }; }; then 2294 int main() { 2295 char *p = (char *) alloca(1); 2296 ; return 0; } 2297 EOF 2298 if { (eval echo configure:2299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2299 rm -rf conftest* 3748 2300 ac_cv_func_alloca_works=yes 3749 2301 else 3750 echo " $as_me: failed program was:" >&53751 cat conftest.$ac_ext >&53752 ac_cv_func_alloca_works=no 3753 fi 3754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3755 fi 3756 echo "$as_me:3756: result: $ac_cv_func_alloca_works" >&5 3757 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 3758 2302 echo "configure: failed program was:" >&5 2303 cat conftest.$ac_ext >&5 2304 rm -rf conftest* 2305 ac_cv_func_alloca_works=no 2306 fi 2307 rm -f conftest* 2308 fi 2309 2310 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 3759 2311 if test $ac_cv_func_alloca_works = yes; then 3760 3761 cat >>confdefs.h <<\EOF 2312 cat >> confdefs.h <<\EOF 3762 2313 #define HAVE_ALLOCA 1 3763 2314 EOF 3764 2315 3765 else 2316 fi 2317 2318 if test $ac_cv_func_alloca_works = no; then 3766 2319 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 3767 # that cause trouble. Some versions do not even contain alloca or 3768 # contain a buggy version. If you still want to use their alloca, 3769 # use ar to extract alloca.o from them instead of compiling alloca.c. 3770 3771 ALLOCA=alloca.$ac_objext 3772 3773 cat >>confdefs.h <<\EOF 2320 # that cause trouble. Some versions do not even contain alloca or 2321 # contain a buggy version. If you still want to use their alloca, 2322 # use ar to extract alloca.o from them instead of compiling alloca.c. 2323 ALLOCA=alloca.${ac_objext} 2324 cat >> confdefs.h <<\EOF 3774 2325 #define C_ALLOCA 1 3775 2326 EOF 3776 2327 3777 echo "$as_me:3777: checking whether \`alloca.c' needs Cray hooks" >&5 3778 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 3779 if test "${ac_cv_os_cray+set}" = set; then 3780 echo $ECHO_N "(cached) $ECHO_C" >&6 3781 else 3782 cat >conftest.$ac_ext <<_ACEOF 3783 #line 3783 "configure" 2328 2329 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 2330 echo "configure:2331: checking whether alloca needs Cray hooks" >&5 2331 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 2332 echo $ac_n "(cached) $ac_c" 1>&6 2333 else 2334 cat > conftest.$ac_ext <<EOF 2335 #line 2336 "configure" 3784 2336 #include "confdefs.h" 3785 2337 #if defined(CRAY) && ! defined(CRAY2) … … 3789 2341 #endif 3790 2342 3791 _ACEOF2343 EOF 3792 2344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3793 2345 egrep "webecray" >/dev/null 2>&1; then 2346 rm -rf conftest* 3794 2347 ac_cv_os_cray=yes 3795 2348 else 2349 rm -rf conftest* 3796 2350 ac_cv_os_cray=no 3797 2351 fi … … 3799 2353 3800 2354 fi 3801 echo "$as_me:3801: result: $ac_cv_os_cray" >&5 3802 echo "$ {ECHO_T}$ac_cv_os_cray">&62355 2356 echo "$ac_t""$ac_cv_os_cray" 1>&6 3803 2357 if test $ac_cv_os_cray = yes; then 3804 for ac_func in _getb67 GETB67 getb67; do 3805 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 3806 echo "$as_me:3806: checking for $ac_func" >&5 3807 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 3808 if eval "test \"\${$ac_ac_var+set}\" = set"; then 3809 echo $ECHO_N "(cached) $ECHO_C" >&6 3810 else 3811 cat >conftest.$ac_ext <<_ACEOF 3812 #line 3812 "configure" 2358 for ac_func in _getb67 GETB67 getb67; do 2359 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2360 echo "configure:2361: checking for $ac_func" >&5 2361 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2362 echo $ac_n "(cached) $ac_c" 1>&6 2363 else 2364 cat > conftest.$ac_ext <<EOF 2365 #line 2366 "configure" 3813 2366 #include "confdefs.h" 3814 2367 /* System header to define __stub macros and hopefully few prototypes, 3815 which can conflict with char $ac_func 2368 which can conflict with char $ac_func(); below. */ 3816 2369 #include <assert.h> 3817 2370 /* Override any gcc2 internal prototype to avoid an error. */ 3818 #ifdef __cplusplus3819 extern "C"3820 #endif3821 2371 /* We use char because int might match the return type of a gcc2 3822 builtin and then its argument prototype would still apply. */ 3823 char $ac_func (); 3824 char (*f) (); 3825 3826 int 3827 main () 3828 { 2372 builtin and then its argument prototype would still apply. */ 2373 char $ac_func(); 2374 2375 int main() { 2376 3829 2377 /* The GNU C library defines this for functions which it implements 3830 2378 to always fail with ENOSYS. Some functions are actually named … … 3833 2381 choke me 3834 2382 #else 3835 f = $ac_func;2383 $ac_func(); 3836 2384 #endif 3837 2385 3838 ; 3839 return 0; 3840 } 3841 _ACEOF 3842 rm -f conftest.$ac_objext conftest$ac_exeext 3843 if { (eval echo "$as_me:3843: \"$ac_link\"") >&5 3844 (eval $ac_link) 2>&5 3845 ac_status=$? 3846 echo "$as_me:3846: \$? = $ac_status" >&5 3847 (exit $ac_status); } && 3848 { ac_try='test -s conftest$ac_exeext' 3849 { (eval echo "$as_me:3849: \"$ac_try\"") >&5 3850 (eval $ac_try) 2>&5 3851 ac_status=$? 3852 echo "$as_me:3852: \$? = $ac_status" >&5 3853 (exit $ac_status); }; }; then 3854 eval "$ac_ac_var=yes" 3855 else 3856 echo "$as_me: failed program was:" >&5 3857 cat conftest.$ac_ext >&5 3858 eval "$ac_ac_var=no" 3859 fi 3860 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3861 fi 3862 echo "$as_me:3862: result: `eval echo '${'$ac_ac_var'}'`" >&5 3863 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 3864 if test `eval echo '${'$ac_ac_var'}'` = yes; then 3865 3866 cat >>confdefs.h <<EOF 2386 ; return 0; } 2387 EOF 2388 if { (eval echo configure:2389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2389 rm -rf conftest* 2390 eval "ac_cv_func_$ac_func=yes" 2391 else 2392 echo "configure: failed program was:" >&5 2393 cat conftest.$ac_ext >&5 2394 rm -rf conftest* 2395 eval "ac_cv_func_$ac_func=no" 2396 fi 2397 rm -f conftest* 2398 fi 2399 2400 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2401 echo "$ac_t""yes" 1>&6 2402 cat >> confdefs.h <<EOF 3867 2403 #define CRAY_STACKSEG_END $ac_func 3868 2404 EOF 3869 2405 3870 break 3871 fi 3872 3873 done 3874 fi 3875 3876 echo "$as_me:3876: checking stack direction for C alloca" >&5 3877 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 3878 if test "${ac_cv_c_stack_direction+set}" = set; then 3879 echo $ECHO_N "(cached) $ECHO_C" >&6 2406 break 2407 else 2408 echo "$ac_t""no" 1>&6 2409 fi 2410 2411 done 2412 fi 2413 2414 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 2415 echo "configure:2416: checking stack direction for C alloca" >&5 2416 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 2417 echo $ac_n "(cached) $ac_c" 1>&6 3880 2418 else 3881 2419 if test "$cross_compiling" = yes; then 3882 2420 ac_cv_c_stack_direction=0 3883 2421 else 3884 cat >conftest.$ac_ext <<_ACEOF 3885 #line 3885 "configure" 3886 #include "confdefs.h" 3887 int 2422 cat > conftest.$ac_ext <<EOF 2423 #line 2424 "configure" 2424 #include "confdefs.h" 3888 2425 find_stack_direction () 3889 2426 { … … 3898 2435 return (&dummy > addr) ? 1 : -1; 3899 2436 } 3900 3901 int3902 2437 main () 3903 2438 { 3904 exit (find_stack_direction 2439 exit (find_stack_direction() < 0); 3905 2440 } 3906 _ACEOF 3907 rm -f conftest$ac_exeext 3908 if { (eval echo "$as_me:3908: \"$ac_link\"") >&5 3909 (eval $ac_link) 2>&5 3910 ac_status=$? 3911 echo "$as_me:3911: \$? = $ac_status" >&5 3912 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3913 { (eval echo "$as_me:3913: \"$ac_try\"") >&5 3914 (eval $ac_try) 2>&5 3915 ac_status=$? 3916 echo "$as_me:3916: \$? = $ac_status" >&5 3917 (exit $ac_status); }; }; then 2441 EOF 2442 if { (eval echo configure:2443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2443 then 3918 2444 ac_cv_c_stack_direction=1 3919 2445 else 3920 echo " $as_me: program exited with status $ac_status" >&53921 echo "$as_me: failed program was:">&53922 cat conftest.$ac_ext >&5 3923 ac_cv_c_stack_direction=-13924 fi 3925 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext3926 fi 3927 fi 3928 echo "$as_me:3928: result: $ac_cv_c_stack_direction" >&5 3929 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 3930 3931 cat >> confdefs.h <<EOF2446 echo "configure: failed program was:" >&5 2447 cat conftest.$ac_ext >&5 2448 rm -fr conftest* 2449 ac_cv_c_stack_direction=-1 2450 fi 2451 rm -fr conftest* 2452 fi 2453 2454 fi 2455 2456 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 2457 cat >> confdefs.h <<EOF 3932 2458 #define STACK_DIRECTION $ac_cv_c_stack_direction 3933 2459 EOF … … 3935 2461 fi 3936 2462 3937 if test $ac_cv_ c_compiler_gnu= yes; then3938 echo "$as_me:3938: checking whether $CC needs -traditional" >&53939 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&63940 if test "${ac_cv_prog_gcc_traditional+set}" = set; then3941 echo $ ECHO_N "(cached) $ECHO_C">&62463 if test $ac_cv_prog_gcc = yes; then 2464 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 2465 echo "configure:2466: checking whether ${CC-cc} needs -traditional" >&5 2466 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then 2467 echo $ac_n "(cached) $ac_c" 1>&6 3942 2468 else 3943 2469 ac_pattern="Autoconf.*'x'" 3944 cat > conftest.$ac_ext <<_ACEOF3945 #line 3945"configure"2470 cat > conftest.$ac_ext <<EOF 2471 #line 2472 "configure" 3946 2472 #include "confdefs.h" 3947 2473 #include <sgtty.h> 3948 2474 Autoconf TIOCGETP 3949 _ACEOF2475 EOF 3950 2476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3951 2477 egrep "$ac_pattern" >/dev/null 2>&1; then 2478 rm -rf conftest* 3952 2479 ac_cv_prog_gcc_traditional=yes 3953 2480 else 2481 rm -rf conftest* 3954 2482 ac_cv_prog_gcc_traditional=no 3955 2483 fi 3956 2484 rm -f conftest* 3957 2485 2486 3958 2487 if test $ac_cv_prog_gcc_traditional = no; then 3959 cat > conftest.$ac_ext <<_ACEOF3960 #line 3960 "configure"2488 cat > conftest.$ac_ext <<EOF 2489 #line 2490 "configure" 3961 2490 #include "confdefs.h" 3962 2491 #include <termio.h> 3963 2492 Autoconf TCGETA 3964 _ACEOF2493 EOF 3965 2494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3966 2495 egrep "$ac_pattern" >/dev/null 2>&1; then 2496 rm -rf conftest* 3967 2497 ac_cv_prog_gcc_traditional=yes 3968 2498 fi … … 3971 2501 fi 3972 2502 fi 3973 echo "$as_me:3973: result: $ac_cv_prog_gcc_traditional" >&5 3974 echo "$ {ECHO_T}$ac_cv_prog_gcc_traditional">&62503 2504 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 3975 2505 if test $ac_cv_prog_gcc_traditional = yes; then 3976 2506 CC="$CC -traditional" … … 3978 2508 fi 3979 2509 3980 echo "$as_me:3980: checking return type of signal handlers" >&53981 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&63982 if test "${ac_cv_type_signal+set}" = set; then3983 echo $ ECHO_N "(cached) $ECHO_C">&63984 else 3985 cat > conftest.$ac_ext <<_ACEOF3986 #line 3986"configure"2510 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 2511 echo "configure:2512: checking return type of signal handlers" >&5 2512 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 2513 echo $ac_n "(cached) $ac_c" 1>&6 2514 else 2515 cat > conftest.$ac_ext <<EOF 2516 #line 2517 "configure" 3987 2517 #include "confdefs.h" 3988 2518 #include <sys/types.h> 3989 2519 #include <signal.h> 3990 2520 #ifdef signal 3991 # 2521 #undef signal 3992 2522 #endif 3993 2523 #ifdef __cplusplus … … 3997 2527 #endif 3998 2528 3999 int 4000 main () 4001 { 2529 int main() { 4002 2530 int i; 4003 ; 4004 return 0; 4005 } 4006 _ACEOF 4007 rm -f conftest.$ac_objext 4008 if { (eval echo "$as_me:4008: \"$ac_compile\"") >&5 4009 (eval $ac_compile) 2>&5 4010 ac_status=$? 4011 echo "$as_me:4011: \$? = $ac_status" >&5 4012 (exit $ac_status); } && 4013 { ac_try='test -s conftest.$ac_objext' 4014 { (eval echo "$as_me:4014: \"$ac_try\"") >&5 4015 (eval $ac_try) 2>&5 4016 ac_status=$? 4017 echo "$as_me:4017: \$? = $ac_status" >&5 4018 (exit $ac_status); }; }; then 2531 ; return 0; } 2532 EOF 2533 if { (eval echo configure:2534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2534 rm -rf conftest* 4019 2535 ac_cv_type_signal=void 4020 2536 else 4021 echo " $as_me: failed program was:" >&54022 cat conftest.$ac_ext >&54023 ac_cv_type_signal=int 4024 fi 4025 rm -f conftest.$ac_objext conftest.$ac_ext 4026 fi 4027 echo "$as_me:4027: result: $ac_cv_type_signal" >&5 4028 echo "${ECHO_T}$ac_cv_type_signal" >&6 4029 4030 cat >> confdefs.h <<EOF2537 echo "configure: failed program was:" >&5 2538 cat conftest.$ac_ext >&5 2539 rm -rf conftest* 2540 ac_cv_type_signal=int 2541 fi 2542 rm -f conftest* 2543 fi 2544 2545 echo "$ac_t""$ac_cv_type_signal" 1>&6 2546 cat >> confdefs.h <<EOF 4031 2547 #define RETSIGTYPE $ac_cv_type_signal 4032 2548 EOF 4033 2549 4034 for ac_func in vprintf 4035 do 4036 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 4037 echo "$as_me:4037: checking for $ac_func" >&5 4038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4039 if eval "test \"\${$ac_ac_var+set}\" = set"; then 4040 echo $ECHO_N "(cached) $ECHO_C" >&6 4041 else 4042 cat >conftest.$ac_ext <<_ACEOF 4043 #line 4043 "configure" 2550 2551 echo $ac_n "checking for vprintf""... $ac_c" 1>&6 2552 echo "configure:2553: checking for vprintf" >&5 2553 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then 2554 echo $ac_n "(cached) $ac_c" 1>&6 2555 else 2556 cat > conftest.$ac_ext <<EOF 2557 #line 2558 "configure" 4044 2558 #include "confdefs.h" 4045 2559 /* System header to define __stub macros and hopefully few prototypes, 4046 which can conflict with char $ac_func(); below. */2560 which can conflict with char vprintf(); below. */ 4047 2561 #include <assert.h> 4048 2562 /* Override any gcc2 internal prototype to avoid an error. */ 4049 #ifdef __cplusplus 4050 extern "C" 2563 /* We use char because int might match the return type of a gcc2 2564 builtin and then its argument prototype would still apply. */ 2565 char vprintf(); 2566 2567 int main() { 2568 2569 /* The GNU C library defines this for functions which it implements 2570 to always fail with ENOSYS. Some functions are actually named 2571 something starting with __ and the normal name is an alias. */ 2572 #if defined (__stub_vprintf) || defined (__stub___vprintf) 2573 choke me 2574 #else 2575 vprintf(); 4051 2576 #endif 2577 2578 ; return 0; } 2579 EOF 2580 if { (eval echo configure:2581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2581 rm -rf conftest* 2582 eval "ac_cv_func_vprintf=yes" 2583 else 2584 echo "configure: failed program was:" >&5 2585 cat conftest.$ac_ext >&5 2586 rm -rf conftest* 2587 eval "ac_cv_func_vprintf=no" 2588 fi 2589 rm -f conftest* 2590 fi 2591 2592 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then 2593 echo "$ac_t""yes" 1>&6 2594 cat >> confdefs.h <<\EOF 2595 #define HAVE_VPRINTF 1 2596 EOF 2597 2598 else 2599 echo "$ac_t""no" 1>&6 2600 fi 2601 2602 if test "$ac_cv_func_vprintf" != yes; then 2603 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 2604 echo "configure:2605: checking for _doprnt" >&5 2605 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then 2606 echo $ac_n "(cached) $ac_c" 1>&6 2607 else 2608 cat > conftest.$ac_ext <<EOF 2609 #line 2610 "configure" 2610 #include "confdefs.h" 2611 /* System header to define __stub macros and hopefully few prototypes, 2612 which can conflict with char _doprnt(); below. */ 2613 #include <assert.h> 2614 /* Override any gcc2 internal prototype to avoid an error. */ 4052 2615 /* We use char because int might match the return type of a gcc2 4053 builtin and then its argument prototype would still apply. */ 4054 char $ac_func (); 4055 char (*f) (); 4056 4057 int 4058 main () 4059 { 2616 builtin and then its argument prototype would still apply. */ 2617 char _doprnt(); 2618 2619 int main() { 2620 2621 /* The GNU C library defines this for functions which it implements 2622 to always fail with ENOSYS. Some functions are actually named 2623 something starting with __ and the normal name is an alias. */ 2624 #if defined (__stub__doprnt) || defined (__stub____doprnt) 2625 choke me 2626 #else 2627 _doprnt(); 2628 #endif 2629 2630 ; return 0; } 2631 EOF 2632 if { (eval echo configure:2633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2633 rm -rf conftest* 2634 eval "ac_cv_func__doprnt=yes" 2635 else 2636 echo "configure: failed program was:" >&5 2637 cat conftest.$ac_ext >&5 2638 rm -rf conftest* 2639 eval "ac_cv_func__doprnt=no" 2640 fi 2641 rm -f conftest* 2642 fi 2643 2644 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then 2645 echo "$ac_t""yes" 1>&6 2646 cat >> confdefs.h <<\EOF 2647 #define HAVE_DOPRNT 1 2648 EOF 2649 2650 else 2651 echo "$ac_t""no" 1>&6 2652 fi 2653 2654 fi 2655 2656 for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror 2657 do 2658 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2659 echo "configure:2660: checking for $ac_func" >&5 2660 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2661 echo $ac_n "(cached) $ac_c" 1>&6 2662 else 2663 cat > conftest.$ac_ext <<EOF 2664 #line 2665 "configure" 2665 #include "confdefs.h" 2666 /* System header to define __stub macros and hopefully few prototypes, 2667 which can conflict with char $ac_func(); below. */ 2668 #include <assert.h> 2669 /* Override any gcc2 internal prototype to avoid an error. */ 2670 /* We use char because int might match the return type of a gcc2 2671 builtin and then its argument prototype would still apply. */ 2672 char $ac_func(); 2673 2674 int main() { 2675 4060 2676 /* The GNU C library defines this for functions which it implements 4061 2677 to always fail with ENOSYS. Some functions are actually named … … 4064 2680 choke me 4065 2681 #else 4066 f = $ac_func;2682 $ac_func(); 4067 2683 #endif 4068 2684 4069 ; 4070 return 0; 4071 } 4072 _ACEOF 4073 rm -f conftest.$ac_objext conftest$ac_exeext 4074 if { (eval echo "$as_me:4074: \"$ac_link\"") >&5 4075 (eval $ac_link) 2>&5 4076 ac_status=$? 4077 echo "$as_me:4077: \$? = $ac_status" >&5 4078 (exit $ac_status); } && 4079 { ac_try='test -s conftest$ac_exeext' 4080 { (eval echo "$as_me:4080: \"$ac_try\"") >&5 4081 (eval $ac_try) 2>&5 4082 ac_status=$? 4083 echo "$as_me:4083: \$? = $ac_status" >&5 4084 (exit $ac_status); }; }; then 4085 eval "$ac_ac_var=yes" 4086 else 4087 echo "$as_me: failed program was:" >&5 4088 cat conftest.$ac_ext >&5 4089 eval "$ac_ac_var=no" 4090 fi 4091 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4092 fi 4093 echo "$as_me:4093: result: `eval echo '${'$ac_ac_var'}'`" >&5 4094 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 4095 if test `eval echo '${'$ac_ac_var'}'` = yes; then 4096 cat >>confdefs.h <<EOF 4097 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 4098 EOF 4099 4100 echo "$as_me:4100: checking for _doprnt" >&5 4101 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 4102 if test "${ac_cv_func__doprnt+set}" = set; then 4103 echo $ECHO_N "(cached) $ECHO_C" >&6 4104 else 4105 cat >conftest.$ac_ext <<_ACEOF 4106 #line 4106 "configure" 2685 ; return 0; } 2686 EOF 2687 if { (eval echo configure:2688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2688 rm -rf conftest* 2689 eval "ac_cv_func_$ac_func=yes" 2690 else 2691 echo "configure: failed program was:" >&5 2692 cat conftest.$ac_ext >&5 2693 rm -rf conftest* 2694 eval "ac_cv_func_$ac_func=no" 2695 fi 2696 rm -f conftest* 2697 fi 2698 2699 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2700 echo "$ac_t""yes" 1>&6 2701 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2702 cat >> confdefs.h <<EOF 2703 #define $ac_tr_func 1 2704 EOF 2705 2706 else 2707 echo "$ac_t""no" 1>&6 2708 fi 2709 done 2710 2711 for ac_func in ftruncate strstr strcasecmp 2712 do 2713 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2714 echo "configure:2715: checking for $ac_func" >&5 2715 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2716 echo $ac_n "(cached) $ac_c" 1>&6 2717 else 2718 cat > conftest.$ac_ext <<EOF 2719 #line 2720 "configure" 4107 2720 #include "confdefs.h" 4108 2721 /* System header to define __stub macros and hopefully few prototypes, 4109 which can conflict with char _doprnt(); below. */2722 which can conflict with char $ac_func(); below. */ 4110 2723 #include <assert.h> 4111 2724 /* Override any gcc2 internal prototype to avoid an error. */ 4112 #ifdef __cplusplus4113 extern "C"4114 #endif4115 2725 /* We use char because int might match the return type of a gcc2 4116 builtin and then its argument prototype would still apply. */ 4117 char _doprnt (); 4118 char (*f) (); 4119 4120 int 4121 main () 4122 { 4123 /* The GNU C library defines this for functions which it implements 4124 to always fail with ENOSYS. Some functions are actually named 4125 something starting with __ and the normal name is an alias. */ 4126 #if defined (__stub__doprnt) || defined (__stub____doprnt) 4127 choke me 4128 #else 4129 f = _doprnt; 4130 #endif 4131 4132 ; 4133 return 0; 4134 } 4135 _ACEOF 4136 rm -f conftest.$ac_objext conftest$ac_exeext 4137 if { (eval echo "$as_me:4137: \"$ac_link\"") >&5 4138 (eval $ac_link) 2>&5 4139 ac_status=$? 4140 echo "$as_me:4140: \$? = $ac_status" >&5 4141 (exit $ac_status); } && 4142 { ac_try='test -s conftest$ac_exeext' 4143 { (eval echo "$as_me:4143: \"$ac_try\"") >&5 4144 (eval $ac_try) 2>&5 4145 ac_status=$? 4146 echo "$as_me:4146: \$? = $ac_status" >&5 4147 (exit $ac_status); }; }; then 4148 ac_cv_func__doprnt=yes 4149 else 4150 echo "$as_me: failed program was:" >&5 4151 cat conftest.$ac_ext >&5 4152 ac_cv_func__doprnt=no 4153 fi 4154 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4155 fi 4156 echo "$as_me:4156: result: $ac_cv_func__doprnt" >&5 4157 echo "${ECHO_T}$ac_cv_func__doprnt" >&6 4158 if test $ac_cv_func__doprnt = yes; then 4159 4160 cat >>confdefs.h <<\EOF 4161 #define HAVE_DOPRNT 1 4162 EOF 4163 4164 fi 4165 4166 fi 4167 done 4168 4169 for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror 4170 do 4171 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 4172 echo "$as_me:4172: checking for $ac_func" >&5 4173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4174 if eval "test \"\${$ac_ac_var+set}\" = set"; then 4175 echo $ECHO_N "(cached) $ECHO_C" >&6 4176 else 4177 cat >conftest.$ac_ext <<_ACEOF 4178 #line 4178 "configure" 4179 #include "confdefs.h" 4180 /* System header to define __stub macros and hopefully few prototypes, 4181 which can conflict with char $ac_func (); below. */ 4182 #include <assert.h> 4183 /* Override any gcc2 internal prototype to avoid an error. */ 4184 #ifdef __cplusplus 4185 extern "C" 4186 #endif 4187 /* We use char because int might match the return type of a gcc2 4188 builtin and then its argument prototype would still apply. */ 4189 char $ac_func (); 4190 char (*f) (); 4191 4192 int 4193 main () 4194 { 2726 builtin and then its argument prototype would still apply. */ 2727 char $ac_func(); 2728 2729 int main() { 2730 4195 2731 /* The GNU C library defines this for functions which it implements 4196 2732 to always fail with ENOSYS. Some functions are actually named … … 4199 2735 choke me 4200 2736 #else 4201 f = $ac_func;2737 $ac_func(); 4202 2738 #endif 4203 2739 4204 ; 4205 return 0; 4206 } 4207 _ACEOF 4208 rm -f conftest.$ac_objext conftest$ac_exeext 4209 if { (eval echo "$as_me:4209: \"$ac_link\"") >&5 4210 (eval $ac_link) 2>&5 4211 ac_status=$? 4212 echo "$as_me:4212: \$? = $ac_status" >&5 4213 (exit $ac_status); } && 4214 { ac_try='test -s conftest$ac_exeext' 4215 { (eval echo "$as_me:4215: \"$ac_try\"") >&5 4216 (eval $ac_try) 2>&5 4217 ac_status=$? 4218 echo "$as_me:4218: \$? = $ac_status" >&5 4219 (exit $ac_status); }; }; then 4220 eval "$ac_ac_var=yes" 4221 else 4222 echo "$as_me: failed program was:" >&5 4223 cat conftest.$ac_ext >&5 4224 eval "$ac_ac_var=no" 4225 fi 4226 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4227 fi 4228 echo "$as_me:4228: result: `eval echo '${'$ac_ac_var'}'`" >&5 4229 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 4230 if test `eval echo '${'$ac_ac_var'}'` = yes; then 4231 cat >>confdefs.h <<EOF 4232 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 4233 EOF 4234 2740 ; return 0; } 2741 EOF 2742 if { (eval echo configure:2743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2743 rm -rf conftest* 2744 eval "ac_cv_func_$ac_func=yes" 2745 else 2746 echo "configure: failed program was:" >&5 2747 cat conftest.$ac_ext >&5 2748 rm -rf conftest* 2749 eval "ac_cv_func_$ac_func=no" 2750 fi 2751 rm -f conftest* 2752 fi 2753 2754 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2755 echo "$ac_t""yes" 1>&6 2756 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2757 cat >> confdefs.h <<EOF 2758 #define $ac_tr_func 1 2759 EOF 2760 2761 else 2762 echo "$ac_t""no" 1>&6 2763 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" 4235 2764 fi 4236 2765 done 4237 2766 4238 for ac_func in ftruncate strstr strcasecmp 4239 do 4240 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 4241 echo "$as_me:4241: checking for $ac_func" >&54242 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&64243 if eval "test \" \${$ac_ac_var+set}\" = set"; then4244 echo $ ECHO_N "(cached) $ECHO_C">&64245 else 4246 cat > conftest.$ac_ext <<_ACEOF4247 #line 4247 "configure"2767 2768 2769 2770 echo $ac_n "checking for textdomain ""... $ac_c" 1>&6 2771 echo "configure:2772: checking for textdomain " >&5 2772 if eval "test \"`echo '$''{'ac_cv_func_textdomain '+set}'`\" = set"; then 2773 echo $ac_n "(cached) $ac_c" 1>&6 2774 else 2775 cat > conftest.$ac_ext <<EOF 2776 #line 2777 "configure" 4248 2777 #include "confdefs.h" 4249 2778 /* System header to define __stub macros and hopefully few prototypes, 4250 which can conflict with char $ac_func(); below. */2779 which can conflict with char textdomain (); below. */ 4251 2780 #include <assert.h> 4252 2781 /* Override any gcc2 internal prototype to avoid an error. */ 4253 #ifdef __cplusplus 4254 extern "C" 2782 /* We use char because int might match the return type of a gcc2 2783 builtin and then its argument prototype would still apply. */ 2784 char textdomain (); 2785 2786 int main() { 2787 2788 /* The GNU C library defines this for functions which it implements 2789 to always fail with ENOSYS. Some functions are actually named 2790 something starting with __ and the normal name is an alias. */ 2791 #if defined (__stub_textdomain ) || defined (__stub___textdomain ) 2792 choke me 2793 #else 2794 textdomain (); 4255 2795 #endif 2796 2797 ; return 0; } 2798 EOF 2799 if { (eval echo configure:2800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2800 rm -rf conftest* 2801 eval "ac_cv_func_textdomain =yes" 2802 else 2803 echo "configure: failed program was:" >&5 2804 cat conftest.$ac_ext >&5 2805 rm -rf conftest* 2806 eval "ac_cv_func_textdomain =no" 2807 fi 2808 rm -f conftest* 2809 fi 2810 2811 if eval "test \"`echo '$ac_cv_func_'textdomain `\" = yes"; then 2812 echo "$ac_t""yes" 1>&6 2813 cat >> confdefs.h <<\EOF 2814 #define ENABLE_NLS 1 2815 EOF 2816 2817 else 2818 echo "$ac_t""no" 1>&6 2819 fi 2820 2821 2822 # *** Custom checking (based on GNU tar configure.in) *** 2823 # --------------------------------------------------------------------------- 2824 echo $ac_n "checking for HP-UX needing gmalloc""... $ac_c" 1>&6 2825 echo "configure:2826: checking for HP-UX needing gmalloc" >&5 2826 if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then 2827 echo "$ac_t""yes" 1>&6 2828 LIBOBJS="$LIBOBJS gmalloc.o" 2829 cat >> confdefs.h <<\EOF 2830 #define HAVE_VALLOC 1 2831 EOF 2832 2833 else 2834 echo "$ac_t""no" 1>&6 2835 for ac_func in valloc 2836 do 2837 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2838 echo "configure:2839: checking for $ac_func" >&5 2839 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2840 echo $ac_n "(cached) $ac_c" 1>&6 2841 else 2842 cat > conftest.$ac_ext <<EOF 2843 #line 2844 "configure" 2844 #include "confdefs.h" 2845 /* System header to define __stub macros and hopefully few prototypes, 2846 which can conflict with char $ac_func(); below. */ 2847 #include <assert.h> 2848 /* Override any gcc2 internal prototype to avoid an error. */ 4256 2849 /* We use char because int might match the return type of a gcc2 4257 builtin and then its argument prototype would still apply. */ 4258 char $ac_func (); 4259 char (*f) (); 4260 4261 int 4262 main () 4263 { 2850 builtin and then its argument prototype would still apply. */ 2851 char $ac_func(); 2852 2853 int main() { 2854 4264 2855 /* The GNU C library defines this for functions which it implements 4265 2856 to always fail with ENOSYS. Some functions are actually named … … 4268 2859 choke me 4269 2860 #else 4270 f = $ac_func;2861 $ac_func(); 4271 2862 #endif 4272 2863 4273 ; 4274 return 0; 4275 } 4276 _ACEOF 4277 rm -f conftest.$ac_objext conftest$ac_exeext 4278 if { (eval echo "$as_me:4278: \"$ac_link\"") >&5 4279 (eval $ac_link) 2>&5 4280 ac_status=$? 4281 echo "$as_me:4281: \$? = $ac_status" >&5 4282 (exit $ac_status); } && 4283 { ac_try='test -s conftest$ac_exeext' 4284 { (eval echo "$as_me:4284: \"$ac_try\"") >&5 4285 (eval $ac_try) 2>&5 4286 ac_status=$? 4287 echo "$as_me:4287: \$? = $ac_status" >&5 4288 (exit $ac_status); }; }; then 4289 eval "$ac_ac_var=yes" 4290 else 4291 echo "$as_me: failed program was:" >&5 4292 cat conftest.$ac_ext >&5 4293 eval "$ac_ac_var=no" 4294 fi 4295 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4296 fi 4297 echo "$as_me:4297: result: `eval echo '${'$ac_ac_var'}'`" >&5 4298 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 4299 if test `eval echo '${'$ac_ac_var'}'` = yes; then 4300 cat >>confdefs.h <<EOF 4301 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 4302 EOF 4303 4304 else 4305 LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 2864 ; return 0; } 2865 EOF 2866 if { (eval echo configure:2867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2867 rm -rf conftest* 2868 eval "ac_cv_func_$ac_func=yes" 2869 else 2870 echo "configure: failed program was:" >&5 2871 cat conftest.$ac_ext >&5 2872 rm -rf conftest* 2873 eval "ac_cv_func_$ac_func=no" 2874 fi 2875 rm -f conftest* 2876 fi 2877 2878 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2879 echo "$ac_t""yes" 1>&6 2880 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2881 cat >> confdefs.h <<EOF 2882 #define $ac_tr_func 1 2883 EOF 2884 2885 else 2886 echo "$ac_t""no" 1>&6 4306 2887 fi 4307 2888 done 4308 2889 4309 # *** Custom checking (based on GNU tar configure.in) *** 4310 # --------------------------------------------------------------------------- 4311 echo "$as_me:4311: checking for HP-UX needing gmalloc" >&5 4312 echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6 4313 if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then 4314 echo "$as_me:4314: result: yes" >&5 4315 echo "${ECHO_T}yes" >&6 4316 LIBOBJS="$LIBOBJS gmalloc.o" 4317 cat >>confdefs.h <<\EOF 4318 #define HAVE_VALLOC 1 4319 EOF 4320 4321 else 4322 echo "$as_me:4322: result: no" >&5 4323 echo "${ECHO_T}no" >&6 4324 4325 for ac_func in valloc 4326 do 4327 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` 4328 echo "$as_me:4328: checking for $ac_func" >&5 4329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4330 if eval "test \"\${$ac_ac_var+set}\" = set"; then 4331 echo $ECHO_N "(cached) $ECHO_C" >&6 4332 else 4333 cat >conftest.$ac_ext <<_ACEOF 4334 #line 4334 "configure" 4335 #include "confdefs.h" 4336 /* System header to define __stub macros and hopefully few prototypes, 4337 which can conflict with char $ac_func (); below. */ 4338 #include <assert.h> 4339 /* Override any gcc2 internal prototype to avoid an error. */ 4340 #ifdef __cplusplus 4341 extern "C" 4342 #endif 4343 /* We use char because int might match the return type of a gcc2 4344 builtin and then its argument prototype would still apply. */ 4345 char $ac_func (); 4346 char (*f) (); 4347 4348 int 4349 main () 4350 { 4351 /* The GNU C library defines this for functions which it implements 4352 to always fail with ENOSYS. Some functions are actually named 4353 something starting with __ and the normal name is an alias. */ 4354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4355 choke me 4356 #else 4357 f = $ac_func; 4358 #endif 4359 4360 ; 4361 return 0; 4362 } 4363 _ACEOF 4364 rm -f conftest.$ac_objext conftest$ac_exeext 4365 if { (eval echo "$as_me:4365: \"$ac_link\"") >&5 4366 (eval $ac_link) 2>&5 4367 ac_status=$? 4368 echo "$as_me:4368: \$? = $ac_status" >&5 4369 (exit $ac_status); } && 4370 { ac_try='test -s conftest$ac_exeext' 4371 { (eval echo "$as_me:4371: \"$ac_try\"") >&5 4372 (eval $ac_try) 2>&5 4373 ac_status=$? 4374 echo "$as_me:4374: \$? = $ac_status" >&5 4375 (exit $ac_status); }; }; then 4376 eval "$ac_ac_var=yes" 4377 else 4378 echo "$as_me: failed program was:" >&5 4379 cat conftest.$ac_ext >&5 4380 eval "$ac_ac_var=no" 4381 fi 4382 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4383 fi 4384 echo "$as_me:4384: result: `eval echo '${'$ac_ac_var'}'`" >&5 4385 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 4386 if test `eval echo '${'$ac_ac_var'}'` = yes; then 4387 cat >>confdefs.h <<EOF 4388 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 4389 EOF 4390 4391 fi 4392 done 4393 4394 fi 4395 4396 echo "$as_me:4396: checking if malloc debugging is wanted" >&5 4397 echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6 4398 2890 fi 2891 2892 echo $ac_n "checking if malloc debugging is wanted""... $ac_c" 1>&6 2893 echo "configure:2894: checking if malloc debugging is wanted" >&5 4399 2894 # Check whether --with-dmalloc or --without-dmalloc was given. 4400 2895 if test "${with_dmalloc+set}" = set; then 4401 2896 withval="$with_dmalloc" 4402 2897 if test "$withval" = yes; then 4403 echo "$as_me:4403: result: yes" >&5 4404 echo "${ECHO_T}yes" >&6 4405 cat >>confdefs.h <<\EOF 2898 echo "$ac_t""yes" 1>&6 2899 cat >> confdefs.h <<\EOF 4406 2900 #define WITH_DMALLOC 1 4407 2901 EOF … … 4410 2904 LDFLAGS="$LDFLAGS -g" 4411 2905 else 4412 echo "$as_me:4412: result: no" >&5 4413 echo "${ECHO_T}no" >&6 4414 fi 4415 else 4416 echo "$as_me:4416: result: no" >&5 4417 echo "${ECHO_T}no" >&6 4418 fi; 4419 4420 echo "$as_me:4420: checking which of rx or regex is wanted" >&5 4421 echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6 4422 2906 echo "$ac_t""no" 1>&6 2907 fi 2908 else 2909 echo "$ac_t""no" 1>&6 2910 fi 2911 2912 2913 echo $ac_n "checking which of rx or regex is wanted""... $ac_c" 1>&6 2914 echo "configure:2915: checking which of rx or regex is wanted" >&5 4423 2915 # Check whether --with-regex or --without-regex was given. 4424 2916 if test "${with_regex+set}" = set; then … … 4426 2918 if test "$withval" = yes; then 4427 2919 ac_with_regex=1 4428 echo "$as_me:4428: result: regex" >&5 4429 echo "${ECHO_T}regex" >&6 4430 cat >>confdefs.h <<\EOF 2920 echo "$ac_t""regex" 1>&6 2921 cat >> confdefs.h <<\EOF 4431 2922 #define WITH_REGEX 1 4432 2923 EOF … … 4434 2925 LIBOBJS="$LIBOBJS regex.o" 4435 2926 fi 4436 fi; 2927 fi 2928 4437 2929 if test -z "$ac_with_regex"; then 4438 echo "$as_me:4438: result: rx" >&5 4439 echo "${ECHO_T}rx" >&6 4440 echo "$as_me:4440: checking for re_rx_search" >&5 4441 echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6 4442 if test "${ac_cv_func_re_rx_search+set}" = set; then 4443 echo $ECHO_N "(cached) $ECHO_C" >&6 4444 else 4445 cat >conftest.$ac_ext <<_ACEOF 4446 #line 4446 "configure" 2930 echo "$ac_t""rx" 1>&6 2931 echo $ac_n "checking for re_rx_search""... $ac_c" 1>&6 2932 echo "configure:2933: checking for re_rx_search" >&5 2933 if eval "test \"`echo '$''{'ac_cv_func_re_rx_search'+set}'`\" = set"; then 2934 echo $ac_n "(cached) $ac_c" 1>&6 2935 else 2936 cat > conftest.$ac_ext <<EOF 2937 #line 2938 "configure" 4447 2938 #include "confdefs.h" 4448 2939 /* System header to define __stub macros and hopefully few prototypes, 4449 which can conflict with char re_rx_search 2940 which can conflict with char re_rx_search(); below. */ 4450 2941 #include <assert.h> 4451 2942 /* Override any gcc2 internal prototype to avoid an error. */ 4452 #ifdef __cplusplus4453 extern "C"4454 #endif4455 2943 /* We use char because int might match the return type of a gcc2 4456 builtin and then its argument prototype would still apply. */ 4457 char re_rx_search (); 4458 char (*f) (); 4459 4460 int 4461 main () 4462 { 2944 builtin and then its argument prototype would still apply. */ 2945 char re_rx_search(); 2946 2947 int main() { 2948 4463 2949 /* The GNU C library defines this for functions which it implements 4464 2950 to always fail with ENOSYS. Some functions are actually named … … 4467 2953 choke me 4468 2954 #else 4469 f = re_rx_search;2955 re_rx_search(); 4470 2956 #endif 4471 2957 4472 ; 4473 return 0; 2958 ; return 0; } 2959 EOF 2960 if { (eval echo configure:2961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2961 rm -rf conftest* 2962 eval "ac_cv_func_re_rx_search=yes" 2963 else 2964 echo "configure: failed program was:" >&5 2965 cat conftest.$ac_ext >&5 2966 rm -rf conftest* 2967 eval "ac_cv_func_re_rx_search=no" 2968 fi 2969 rm -f conftest* 2970 fi 2971 2972 if eval "test \"`echo '$ac_cv_func_'re_rx_search`\" = yes"; then 2973 echo "$ac_t""yes" 1>&6 2974 : 2975 else 2976 echo "$ac_t""no" 1>&6 2977 echo $ac_n "checking size of unsigned char *""... $ac_c" 1>&6 2978 echo "configure:2979: checking size of unsigned char *" >&5 2979 if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_char_p'+set}'`\" = set"; then 2980 echo $ac_n "(cached) $ac_c" 1>&6 2981 else 2982 if test "$cross_compiling" = yes; then 2983 ac_cv_sizeof_unsigned_char_p=unsigned char * 2984 else 2985 cat > conftest.$ac_ext <<EOF 2986 #line 2987 "configure" 2987 #include "confdefs.h" 2988 #include <stdio.h> 2989 main() 2990 { 2991 FILE *f=fopen("conftestval", "w"); 2992 if (!f) exit(1); 2993 fprintf(f, "%d\n", sizeof(unsigned char *)); 2994 exit(0); 4474 2995 } 4475 _ACEOF 4476 rm -f conftest.$ac_objext conftest$ac_exeext 4477 if { (eval echo "$as_me:4477: \"$ac_link\"") >&5 4478 (eval $ac_link) 2>&5 4479 ac_status=$? 4480 echo "$as_me:4480: \$? = $ac_status" >&5 4481 (exit $ac_status); } && 4482 { ac_try='test -s conftest$ac_exeext' 4483 { (eval echo "$as_me:4483: \"$ac_try\"") >&5 4484 (eval $ac_try) 2>&5 4485 ac_status=$? 4486 echo "$as_me:4486: \$? = $ac_status" >&5 4487 (exit $ac_status); }; }; then 4488 ac_cv_func_re_rx_search=yes 4489 else 4490 echo "$as_me: failed program was:" >&5 4491 cat conftest.$ac_ext >&5 4492 ac_cv_func_re_rx_search=no 4493 fi 4494 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4495 fi 4496 echo "$as_me:4496: result: $ac_cv_func_re_rx_search" >&5 4497 echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6 4498 if test $ac_cv_func_re_rx_search = yes; then 4499 : 4500 else 4501 echo "$as_me:4501: checking for unsigned char *" >&5 4502 echo $ECHO_N "checking for unsigned char *... $ECHO_C" >&6 4503 if test "${ac_cv_type_unsigned_char_p+set}" = set; then 4504 echo $ECHO_N "(cached) $ECHO_C" >&6 4505 else 4506 cat >conftest.$ac_ext <<_ACEOF 4507 #line 4507 "configure" 4508 #include "confdefs.h" 4509 $ac_includes_default 4510 int 4511 main () 4512 { 4513 if ((unsigned char * *) 0) 4514 return 0; 4515 if (sizeof (unsigned char *)) 4516 return 0; 4517 ; 4518 return 0; 4519 } 4520 _ACEOF 4521 rm -f conftest.$ac_objext 4522 if { (eval echo "$as_me:4522: \"$ac_compile\"") >&5 4523 (eval $ac_compile) 2>&5 4524 ac_status=$? 4525 echo "$as_me:4525: \$? = $ac_status" >&5 4526 (exit $ac_status); } && 4527 { ac_try='test -s conftest.$ac_objext' 4528 { (eval echo "$as_me:4528: \"$ac_try\"") >&5 4529 (eval $ac_try) 2>&5 4530 ac_status=$? 4531 echo "$as_me:4531: \$? = $ac_status" >&5 4532 (exit $ac_status); }; }; then 4533 ac_cv_type_unsigned_char_p=yes 4534 else 4535 echo "$as_me: failed program was:" >&5 4536 cat conftest.$ac_ext >&5 4537 ac_cv_type_unsigned_char_p=no 4538 fi 4539 rm -f conftest.$ac_objext conftest.$ac_ext 4540 fi 4541 echo "$as_me:4541: result: $ac_cv_type_unsigned_char_p" >&5 4542 echo "${ECHO_T}$ac_cv_type_unsigned_char_p" >&6 4543 4544 echo "$as_me:4544: checking size of unsigned char *" >&5 4545 echo $ECHO_N "checking size of unsigned char *... $ECHO_C" >&6 4546 if test "${ac_cv_sizeof_unsigned_char_p+set}" = set; then 4547 echo $ECHO_N "(cached) $ECHO_C" >&6 4548 else 4549 if test "$ac_cv_type_unsigned_char_p" = yes; then 4550 if test "$cross_compiling" = yes; then 4551 # Depending upon the size, compute the lo and hi bounds. 4552 cat >conftest.$ac_ext <<_ACEOF 4553 #line 4553 "configure" 4554 #include "confdefs.h" 4555 $ac_includes_default 4556 int 4557 main () 4558 { 4559 int _array_ [1 - 2 * !((sizeof (unsigned char *)) >= 0)] 4560 ; 4561 return 0; 4562 } 4563 _ACEOF 4564 rm -f conftest.$ac_objext 4565 if { (eval echo "$as_me:4565: \"$ac_compile\"") >&5 4566 (eval $ac_compile) 2>&5 4567 ac_status=$? 4568 echo "$as_me:4568: \$? = $ac_status" >&5 4569 (exit $ac_status); } && 4570 { ac_try='test -s conftest.$ac_objext' 4571 { (eval echo "$as_me:4571: \"$ac_try\"") >&5 4572 (eval $ac_try) 2>&5 4573 ac_status=$? 4574 echo "$as_me:4574: \$? = $ac_status" >&5 4575 (exit $ac_status); }; }; then 4576 ac_lo=0 ac_mid=0 4577 while :; do 4578 cat >conftest.$ac_ext <<_ACEOF 4579 #line 4579 "configure" 4580 #include "confdefs.h" 4581 $ac_includes_default 4582 int 4583 main () 4584 { 4585 int _array_ [1 - 2 * !((sizeof (unsigned char *)) <= $ac_mid)] 4586 ; 4587 return 0; 4588 } 4589 _ACEOF 4590 rm -f conftest.$ac_objext 4591 if { (eval echo "$as_me:4591: \"$ac_compile\"") >&5 4592 (eval $ac_compile) 2>&5 4593 ac_status=$? 4594 echo "$as_me:4594: \$? = $ac_status" >&5 4595 (exit $ac_status); } && 4596 { ac_try='test -s conftest.$ac_objext' 4597 { (eval echo "$as_me:4597: \"$ac_try\"") >&5 4598 (eval $ac_try) 2>&5 4599 ac_status=$? 4600 echo "$as_me:4600: \$? = $ac_status" >&5 4601 (exit $ac_status); }; }; then 4602 ac_hi=$ac_mid; break 4603 else 4604 echo "$as_me: failed program was:" >&5 4605 cat conftest.$ac_ext >&5 4606 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1` 4607 fi 4608 rm -f conftest.$ac_objext conftest.$ac_ext 4609 done 4610 else 4611 echo "$as_me: failed program was:" >&5 4612 cat conftest.$ac_ext >&5 4613 ac_hi=-1 ac_mid=-1 4614 while :; do 4615 cat >conftest.$ac_ext <<_ACEOF 4616 #line 4616 "configure" 4617 #include "confdefs.h" 4618 $ac_includes_default 4619 int 4620 main () 4621 { 4622 int _array_ [1 - 2 * !((sizeof (unsigned char *)) >= $ac_mid)] 4623 ; 4624 return 0; 4625 } 4626 _ACEOF 4627 rm -f conftest.$ac_objext 4628 if { (eval echo "$as_me:4628: \"$ac_compile\"") >&5 4629 (eval $ac_compile) 2>&5 4630 ac_status=$? 4631 echo "$as_me:4631: \$? = $ac_status" >&5 4632 (exit $ac_status); } && 4633 { ac_try='test -s conftest.$ac_objext' 4634 { (eval echo "$as_me:4634: \"$ac_try\"") >&5 4635 (eval $ac_try) 2>&5 4636 ac_status=$? 4637 echo "$as_me:4637: \$? = $ac_status" >&5 4638 (exit $ac_status); }; }; then 4639 ac_lo=$ac_mid; break 4640 else 4641 echo "$as_me: failed program was:" >&5 4642 cat conftest.$ac_ext >&5 4643 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid` 4644 fi 4645 rm -f conftest.$ac_objext conftest.$ac_ext 4646 done 4647 fi 4648 rm -f conftest.$ac_objext conftest.$ac_ext 4649 # Binary search between lo and hi bounds. 4650 while test "x$ac_lo" != "x$ac_hi"; do 4651 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 4652 cat >conftest.$ac_ext <<_ACEOF 4653 #line 4653 "configure" 4654 #include "confdefs.h" 4655 $ac_includes_default 4656 int 4657 main () 4658 { 4659 int _array_ [1 - 2 * !((sizeof (unsigned char *)) <= $ac_mid)] 4660 ; 4661 return 0; 4662 } 4663 _ACEOF 4664 rm -f conftest.$ac_objext 4665 if { (eval echo "$as_me:4665: \"$ac_compile\"") >&5 4666 (eval $ac_compile) 2>&5 4667 ac_status=$? 4668 echo "$as_me:4668: \$? = $ac_status" >&5 4669 (exit $ac_status); } && 4670 { ac_try='test -s conftest.$ac_objext' 4671 { (eval echo "$as_me:4671: \"$ac_try\"") >&5 4672 (eval $ac_try) 2>&5 4673 ac_status=$? 4674 echo "$as_me:4674: \$? = $ac_status" >&5 4675 (exit $ac_status); }; }; then 4676 ac_hi=$ac_mid 4677 else 4678 echo "$as_me: failed program was:" >&5 4679 cat conftest.$ac_ext >&5 4680 ac_lo=`expr $ac_mid + 1` 4681 fi 4682 rm -f conftest.$ac_objext conftest.$ac_ext 4683 done 4684 ac_cv_sizeof_unsigned_char_p=$ac_lo 4685 else 4686 if test "$cross_compiling" = yes; then 4687 { { echo "$as_me:4687: error: cannot run test program while cross compiling" >&5 4688 echo "$as_me: error: cannot run test program while cross compiling" >&2;} 4689 { (exit 1); exit 1; }; } 4690 else 4691 cat >conftest.$ac_ext <<_ACEOF 4692 #line 4692 "configure" 4693 #include "confdefs.h" 4694 $ac_includes_default 4695 int 4696 main () 4697 { 4698 FILE *f = fopen ("conftest.val", "w"); 4699 if (!f) 4700 exit (1); 4701 fprintf (f, "%d", (sizeof (unsigned char *))); 4702 fclose (f); 4703 ; 4704 return 0; 4705 } 4706 _ACEOF 4707 rm -f conftest$ac_exeext 4708 if { (eval echo "$as_me:4708: \"$ac_link\"") >&5 4709 (eval $ac_link) 2>&5 4710 ac_status=$? 4711 echo "$as_me:4711: \$? = $ac_status" >&5 4712 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4713 { (eval echo "$as_me:4713: \"$ac_try\"") >&5 4714 (eval $ac_try) 2>&5 4715 ac_status=$? 4716 echo "$as_me:4716: \$? = $ac_status" >&5 4717 (exit $ac_status); }; }; then 4718 ac_cv_sizeof_unsigned_char_p=`cat conftest.val` 4719 else 4720 echo "$as_me: program exited with status $ac_status" >&5 4721 echo "$as_me: failed program was:" >&5 4722 cat conftest.$ac_ext >&5 4723 fi 4724 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext 4725 fi 4726 fi 4727 rm -f conftest.val 4728 else 2996 EOF 2997 if { (eval echo configure:2998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2998 then 2999 ac_cv_sizeof_unsigned_char_p=`cat conftestval` 3000 else 3001 echo "configure: failed program was:" >&5 3002 cat conftest.$ac_ext >&5 3003 rm -fr conftest* 4729 3004 ac_cv_sizeof_unsigned_char_p=0 4730 3005 fi 4731 fi 4732 echo "$as_me:4732: result: $ac_cv_sizeof_unsigned_char_p" >&5 4733 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char_p" >&6 4734 cat >>confdefs.h <<EOF 3006 rm -fr conftest* 3007 fi 3008 3009 fi 3010 echo "$ac_t""$ac_cv_sizeof_unsigned_char_p" 1>&6 3011 cat >> confdefs.h <<EOF 4735 3012 #define SIZEOF_UNSIGNED_CHAR_P $ac_cv_sizeof_unsigned_char_p 4736 3013 EOF 4737 3014 3015 4738 3016 if test "$ac_cv_sizeof_unsigned_char_p" = 8 4739 3017 then 4740 { echo "$as_me:4740: WARNING: I'm forcing you to use regex because I can't 4741 find a local rx library and the one included with this 4742 distribution doesn't work on 64-bit machines like yours" >&5 4743 echo "$as_me: WARNING: I'm forcing you to use regex because I can't 4744 find a local rx library and the one included with this 4745 distribution doesn't work on 64-bit machines like yours" >&2;} 3018 echo "configure: warning: I'm forcing you to use regex because I can't 3019 find a local rx library and the one included with this 3020 distribution doesn't work on 64-bit machines like yours" 1>&2 4746 3021 LIBOBJS="$LIBOBJS regex.o" 4747 3022 else 4748 3023 LIBOBJS="$LIBOBJS rx.o" 4749 3024 fi 4750 4751 fi 4752 4753 fi 4754 4755 echo "$as_me:4755: checking whether GNU readline requested" >&5 4756 echo $ECHO_N "checking whether GNU readline requested... $ECHO_C" >&6 4757 4758 # Check whether --with-gnu_readline or --without-gnu_readline was given. 3025 3026 fi 3027 3028 fi 3029 3030 echo $ac_n "checking whether GNU readline requested""... $ac_c" 1>&6 3031 echo "configure:3032: checking whether GNU readline requested" >&5 3032 # Check whether --with-gnu_readline or --without-gnu_readline was given. 4759 3033 if test "${with_gnu_readline+set}" = set; then 4760 3034 withval="$with_gnu_readline" 4761 3035 if test "$withval" = yes; then 4762 echo "$as_me:4762: result: yes" >&5 4763 echo "${ECHO_T}yes" >&6 3036 echo "$ac_t""yes" 1>&6 4764 3037 ac_with_gnu_readline=1 4765 3038 else 4766 echo "$as_me:4766: result: no" >&5 4767 echo "${ECHO_T}no" >&6 3039 echo "$ac_t""no" 1>&6 4768 3040 fi 4769 3041 else 4770 echo "$a s_me:4770: result: no" >&54771 echo "${ECHO_T}no" >&6 4772 fi; 3042 echo "$ac_t""no" 1>&6 3043 fi 3044 4773 3045 4774 3046 if test -n "$ac_with_gnu_readline"; then 4775 echo "$as_me:4775: checking for readline/readline.h" >&5 4776 echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6 4777 if test "${ac_cv_header_readline_readline_h+set}" = set; then 4778 echo $ECHO_N "(cached) $ECHO_C" >&6 4779 else 4780 cat >conftest.$ac_ext <<_ACEOF 4781 #line 4781 "configure" 3047 ac_safe=`echo "readline/readline.h" | sed 'y%./+-%__p_%'` 3048 echo $ac_n "checking for readline/readline.h""... $ac_c" 1>&6 3049 echo "configure:3050: checking for readline/readline.h" >&5 3050 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3051 echo $ac_n "(cached) $ac_c" 1>&6 3052 else 3053 cat > conftest.$ac_ext <<EOF 3054 #line 3055 "configure" 4782 3055 #include "confdefs.h" 4783 3056 #include <readline/readline.h> 4784 _ACEOF 4785 if { (eval echo "$as_me:4785: \"$ac_cpp conftest.$ac_ext\"") >&5 4786 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4787 ac_status=$? 4788 egrep -v '^ *\+' conftest.er1 >conftest.err 4789 rm -f conftest.er1 4790 cat conftest.err >&5 4791 echo "$as_me:4791: \$? = $ac_status" >&5 4792 (exit $ac_status); } >/dev/null; then 4793 if test -s conftest.err; then 4794 ac_cpp_err=$ac_c_preproc_warn_flag 4795 else 4796 ac_cpp_err= 4797 fi 4798 else 4799 ac_cpp_err=yes 4800 fi 4801 if test -z "$ac_cpp_err"; then 4802 ac_cv_header_readline_readline_h=yes 4803 else 4804 echo "$as_me: failed program was:" >&5 4805 cat conftest.$ac_ext >&5 4806 ac_cv_header_readline_readline_h=no 4807 fi 4808 rm -f conftest.err conftest.$ac_ext 4809 fi 4810 echo "$as_me:4810: result: $ac_cv_header_readline_readline_h" >&5 4811 echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6 4812 if test $ac_cv_header_readline_readline_h = yes; then 3057 EOF 3058 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3059 { (eval echo configure:3060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3060 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3061 if test -z "$ac_err"; then 3062 rm -rf conftest* 3063 eval "ac_cv_header_$ac_safe=yes" 3064 else 3065 echo "$ac_err" >&5 3066 echo "configure: failed program was:" >&5 3067 cat conftest.$ac_ext >&5 3068 rm -rf conftest* 3069 eval "ac_cv_header_$ac_safe=no" 3070 fi 3071 rm -f conftest* 3072 fi 3073 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3074 echo "$ac_t""yes" 1>&6 4813 3075 ac_mg_readline_header_found=1 4814 3076 else 4815 { echo "$as_me:4815: WARNING: Can't find GNU readline headers; configuring without \ 4816 GNU readline support" >&5 4817 echo "$as_me: WARNING: Can't find GNU readline headers; configuring without \ 4818 GNU readline support" >&2;} 3077 echo "$ac_t""no" 1>&6 3078 echo "configure: warning: Can't find GNU readline headers; configuring without \ 3079 GNU readline support" 1>&2 4819 3080 fi 4820 3081 4821 3082 if test -n "$ac_mg_readline_header_found"; then 4822 3083 # first check whether we can find the readline library itself 4823 echo "$as_me:4823: checking for main in -lreadline" >&5 4824 echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6 4825 if test "${ac_cv_lib_readline_main+set}" = set; then 4826 echo $ECHO_N "(cached) $ECHO_C" >&6 4827 else 4828 ac_check_lib_save_LIBS=$LIBS 3084 echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6 3085 echo "configure:3086: checking for main in -lreadline" >&5 3086 ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'` 3087 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3088 echo $ac_n "(cached) $ac_c" 1>&6 3089 else 3090 ac_save_LIBS="$LIBS" 4829 3091 LIBS="-lreadline $LIBS" 4830 cat >conftest.$ac_ext <<_ACEOF 4831 #line 4831 "configure" 4832 #include "confdefs.h" 4833 4834 int 4835 main () 4836 { 4837 main (); 4838 ; 4839 return 0; 4840 } 4841 _ACEOF 4842 rm -f conftest.$ac_objext conftest$ac_exeext 4843 if { (eval echo "$as_me:4843: \"$ac_link\"") >&5 4844 (eval $ac_link) 2>&5 4845 ac_status=$? 4846 echo "$as_me:4846: \$? = $ac_status" >&5 4847 (exit $ac_status); } && 4848 { ac_try='test -s conftest$ac_exeext' 4849 { (eval echo "$as_me:4849: \"$ac_try\"") >&5 4850 (eval $ac_try) 2>&5 4851 ac_status=$? 4852 echo "$as_me:4852: \$? = $ac_status" >&5 4853 (exit $ac_status); }; }; then 4854 ac_cv_lib_readline_main=yes 4855 else 4856 echo "$as_me: failed program was:" >&5 4857 cat conftest.$ac_ext >&5 4858 ac_cv_lib_readline_main=no 4859 fi 4860 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4861 LIBS=$ac_check_lib_save_LIBS 4862 fi 4863 echo "$as_me:4863: result: $ac_cv_lib_readline_main" >&5 4864 echo "${ECHO_T}$ac_cv_lib_readline_main" >&6 4865 if test $ac_cv_lib_readline_main = yes; then 3092 cat > conftest.$ac_ext <<EOF 3093 #line 3094 "configure" 3094 #include "confdefs.h" 3095 3096 int main() { 3097 main() 3098 ; return 0; } 3099 EOF 3100 if { (eval echo configure:3101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3101 rm -rf conftest* 3102 eval "ac_cv_lib_$ac_lib_var=yes" 3103 else 3104 echo "configure: failed program was:" >&5 3105 cat conftest.$ac_ext >&5 3106 rm -rf conftest* 3107 eval "ac_cv_lib_$ac_lib_var=no" 3108 fi 3109 rm -f conftest* 3110 LIBS="$ac_save_LIBS" 3111 3112 fi 3113 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3114 echo "$ac_t""yes" 1>&6 4866 3115 ac_mg_readline_lib_found=1 4867 cat >> confdefs.h <<\EOF3116 cat >> confdefs.h <<\EOF 4868 3117 #define WITH_GNU_READLINE 1 4869 3118 EOF … … 4871 3120 LIBS="$LIBS -lreadline" 4872 3121 else 4873 { echo "$as_me:4873: WARNING: Can't find GNU readline library; configuring without \ 4874 GNU readline support" >&5 4875 echo "$as_me: WARNING: Can't find GNU readline library; configuring without \ 4876 GNU readline support" >&2;} 3122 echo "$ac_t""no" 1>&6 3123 echo "configure: warning: Can't find GNU readline library; configuring without \ 3124 GNU readline support" 1>&2 4877 3125 fi 4878 3126 4879 3127 if test -n "$ac_mg_readline_lib_found"; then 4880 # on some systems, readline needs curses. It is difficult to 3128 # on some systems, readline needs curses. It is difficult to 4881 3129 # determine whether this is necessary on the current system, 4882 3130 # since other undefined symbols can be turned up by an … … 4884 3132 # by mg itself (e.g. xmalloc, xrealloc). So, if we find libcurses, 4885 3133 # we just bung it on and hope for the best. 4886 echo "$as_me:4886: checking for main in -lcurses" >&5 4887 echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6 4888 if test "${ac_cv_lib_curses_main+set}" = set; then 4889 echo $ECHO_N "(cached) $ECHO_C" >&6 4890 else 4891 ac_check_lib_save_LIBS=$LIBS 3134 echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6 3135 echo "configure:3136: checking for main in -lcurses" >&5 3136 ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'` 3137 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3138 echo $ac_n "(cached) $ac_c" 1>&6 3139 else 3140 ac_save_LIBS="$LIBS" 4892 3141 LIBS="-lcurses $LIBS" 4893 cat >conftest.$ac_ext <<_ACEOF 4894 #line 4894 "configure" 4895 #include "confdefs.h" 4896 4897 int 4898 main () 4899 { 4900 main (); 4901 ; 4902 return 0; 4903 } 4904 _ACEOF 4905 rm -f conftest.$ac_objext conftest$ac_exeext 4906 if { (eval echo "$as_me:4906: \"$ac_link\"") >&5 4907 (eval $ac_link) 2>&5 4908 ac_status=$? 4909 echo "$as_me:4909: \$? = $ac_status" >&5 4910 (exit $ac_status); } && 4911 { ac_try='test -s conftest$ac_exeext' 4912 { (eval echo "$as_me:4912: \"$ac_try\"") >&5 4913 (eval $ac_try) 2>&5 4914 ac_status=$? 4915 echo "$as_me:4915: \$? = $ac_status" >&5 4916 (exit $ac_status); }; }; then 4917 ac_cv_lib_curses_main=yes 4918 else 4919 echo "$as_me: failed program was:" >&5 4920 cat conftest.$ac_ext >&5 4921 ac_cv_lib_curses_main=no 4922 fi 4923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4924 LIBS=$ac_check_lib_save_LIBS 4925 fi 4926 echo "$as_me:4926: result: $ac_cv_lib_curses_main" >&5 4927 echo "${ECHO_T}$ac_cv_lib_curses_main" >&6 4928 if test $ac_cv_lib_curses_main = yes; then 3142 cat > conftest.$ac_ext <<EOF 3143 #line 3144 "configure" 3144 #include "confdefs.h" 3145 3146 int main() { 3147 main() 3148 ; return 0; } 3149 EOF 3150 if { (eval echo configure:3151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3151 rm -rf conftest* 3152 eval "ac_cv_lib_$ac_lib_var=yes" 3153 else 3154 echo "configure: failed program was:" >&5 3155 cat conftest.$ac_ext >&5 3156 rm -rf conftest* 3157 eval "ac_cv_lib_$ac_lib_var=no" 3158 fi 3159 rm -f conftest* 3160 LIBS="$ac_save_LIBS" 3161 3162 fi 3163 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3164 echo "$ac_t""yes" 1>&6 4929 3165 LIBS="$LIBS -lcurses" 3166 else 3167 echo "$ac_t""no" 1>&6 4930 3168 fi 4931 3169 … … 4934 3172 fi 4935 3173 3174 4936 3175 # --------------------------------------------------------------------------- 4937 3176 if test "$ac_cv_func_alloca" = 'no'; then 4938 3177 LIBOBJS="$LIBOBJS xmalloc.o error.o" 4939 3178 fi 3179 4940 3180 4941 3181 # --------------------------------------------------------------------------- … … 4944 3184 if test "${enable_override_longlong+set}" = set; then 4945 3185 enableval="$enable_override_longlong" 4946 cat >> confdefs.h <<\EOF3186 cat >> confdefs.h <<\EOF 4947 3187 #define DISABLE_LONG_LONG 1 4948 3188 EOF 4949 3189 4950 fi; 3190 fi 3191 4951 3192 4952 3193 # --------------------------------------------------------------------------- 4953 3194 4954 ac_config_files="$ac_config_files Makefile text/Makefile lib/Makefile jni/Makefile java/org/greenstone/mgpp/Makefile" 4955 ac_config_commands="$ac_config_commands default" 4956 cat >confcache <<\_ACEOF 3195 trap '' 1 2 15 3196 cat > confcache <<\EOF 4957 3197 # This file is a shell script that caches the results of configure 4958 3198 # tests run on this system so they can be shared between configure 4959 # scripts and configure runs, see configure's option --config-cache. 4960 # It is not useful on other systems. If it contains results you don't 4961 # want to keep, you may remove or edit it. 3199 # scripts and configure runs. It is not useful on other systems. 3200 # If it contains results you don't want to keep, you may remove or edit it. 4962 3201 # 4963 # config.status only pays attention to the cache file if you give it 4964 # the --recheck option to rerun configure. 3202 # By default, configure uses ./config.cache as the cache file, 3203 # creating it if it does not exist already. You can give configure 3204 # the --cache-file=FILE option to use a different cache file; that is 3205 # what configure does when it calls configure scripts in 3206 # subdirectories, so they share the cache. 3207 # Giving --cache-file=/dev/null disables caching, for debugging configure. 3208 # config.status only pays attention to the cache file if you give it the 3209 # --recheck option to rerun configure. 4965 3210 # 4966 # `ac_cv_env_foo' variables (set or unset) will be overriden when 4967 # loading this file, other *unset* `ac_cv_foo' will be assigned the 4968 # following values. 4969 4970 _ACEOF 4971 3211 EOF 4972 3212 # The following way of writing the cache mishandles newlines in values, 4973 3213 # but we know of no workaround that is simple, portable, and efficient. … … 4975 3215 # Ultrix sh set writes to stderr and can't be redirected directly, 4976 3216 # and sets the high bit in the cache file unless we assign to the vars. 4977 { 4978 (set) 2>&1 | 4979 case `(ac_space=' '; set | grep ac_space) 2>&1` in 4980 *ac_space=\ *) 4981 # `set' does not quote correctly, so add quotes (double-quote 4982 # substitution turns \\\\ into \\, and sed turns \\ into \). 4983 sed -n \ 4984 "s/'/'\\\\''/g; 4985 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 4986 ;; 4987 *) 4988 # `set' quotes correctly as required by POSIX, so do not add quotes. 4989 sed -n \ 4990 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 4991 ;; 4992 esac; 4993 } | 4994 sed ' 4995 t clear 4996 : clear 4997 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 4998 t end 4999 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 5000 : end' >>confcache 5001 if cmp -s $cache_file confcache; then :; else 3217 (set) 2>&1 | 3218 case `(ac_space=' '; set | grep ac_space) 2>&1` in 3219 *ac_space=\ *) 3220 # `set' does not quote correctly, so add quotes (double-quote substitution 3221 # turns \\\\ into \\, and sed turns \\ into \). 3222 sed -n \ 3223 -e "s/'/'\\\\''/g" \ 3224 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 3225 ;; 3226 *) 3227 # `set' quotes correctly as required by POSIX, so do not add quotes. 3228 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 3229 ;; 3230 esac >> confcache 3231 if cmp -s $cache_file confcache; then 3232 : 3233 else 5002 3234 if test -w $cache_file; then 5003 test "x$cache_file" != "x/dev/null" &&echo "updating cache $cache_file"5004 cat confcache > $cache_file3235 echo "updating cache $cache_file" 3236 cat confcache > $cache_file 5005 3237 else 5006 3238 echo "not updating unwritable cache $cache_file" … … 5009 3241 rm -f confcache 5010 3242 3243 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 3244 5011 3245 test "x$prefix" = xNONE && prefix=$ac_default_prefix 5012 3246 # Let make expand exec_prefix. 5013 3247 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 5014 3248 5015 # VPATH may cause trouble with some makes, so we remove $(srcdir), 5016 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 5017 # trailing colons and then remove the whole line if VPATH becomes empty 5018 # (actually we leave an empty line to preserve line numbers). 3249 # Any assignment to VPATH causes Sun make to only execute 3250 # the first set of double-colon rules, so remove it if not needed. 3251 # If there is a colon in the path, we need to keep it. 5019 3252 if test "x$srcdir" = x.; then 5020 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 5021 s/:*\$(srcdir):*/:/; 5022 s/:*\${srcdir}:*/:/; 5023 s/:*@srcdir@:*/:/; 5024 s/^\([^=]*=[ ]*\):*/\1/; 5025 s/:*$//; 5026 s/^[^=]*=[ ]*$//; 5027 }' 5028 fi 3253 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 3254 fi 3255 3256 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 5029 3257 5030 3258 DEFS=-DHAVE_CONFIG_H 5031 3259 3260 # Without the "./", some shells look in PATH for config.status. 5032 3261 : ${CONFIG_STATUS=./config.status} 5033 ac_clean_files_save=$ac_clean_files 5034 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 5035 { echo "$as_me:5035: creating $CONFIG_STATUS" >&5 5036 echo "$as_me: creating $CONFIG_STATUS" >&6;} 5037 cat >$CONFIG_STATUS <<_ACEOF 5038 #! $SHELL 3262 3263 echo creating $CONFIG_STATUS 3264 rm -f $CONFIG_STATUS 3265 cat > $CONFIG_STATUS <<EOF 3266 #! /bin/sh 5039 3267 # Generated automatically by configure. 5040 3268 # Run this file to recreate the current configuration. 3269 # This directory was configured as follows, 3270 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 3271 # 3272 # $0 $ac_configure_args 3273 # 5041 3274 # Compiler output produced by configure, useful for debugging 5042 # configure, is in config.log if it exists. 5043 5044 debug=false 5045 SHELL=\${CONFIG_SHELL-$SHELL} 5046 ac_cs_invocation="\$0 \$@" 5047 5048 _ACEOF 5049 5050 cat >>$CONFIG_STATUS <<\_ACEOF 5051 # Be Bourne compatible 5052 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 5053 emulate sh 5054 NULLCMD=: 5055 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 5056 set -o posix 5057 fi 5058 5059 # Name of the executable. 5060 as_me=`echo "$0" |sed 's,.*[\\/],,'` 5061 5062 if expr a : '\(a\)' >/dev/null 2>&1; then 5063 as_expr=expr 5064 else 5065 as_expr=false 5066 fi 5067 5068 rm -f conf$$ conf$$.exe conf$$.file 5069 echo >conf$$.file 5070 if ln -s conf$$.file conf$$ 2>/dev/null; then 5071 # We could just check for DJGPP; but this test a) works b) is more generic 5072 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 5073 if test -f conf$$.exe; then 5074 # Don't use ln at all; we don't have any links 5075 as_ln_s='cp -p' 3275 # configure, is in ./config.log if it exists. 3276 3277 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 3278 for ac_option 3279 do 3280 case "\$ac_option" in 3281 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 3282 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 3283 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 3284 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 3285 echo "$CONFIG_STATUS generated by autoconf version 2.13" 3286 exit 0 ;; 3287 -help | --help | --hel | --he | --h) 3288 echo "\$ac_cs_usage"; exit 0 ;; 3289 *) echo "\$ac_cs_usage"; exit 1 ;; 3290 esac 3291 done 3292 3293 ac_given_srcdir=$srcdir 3294 ac_given_INSTALL="$INSTALL" 3295 3296 trap 'rm -fr `echo "Makefile text/Makefile lib/Makefile 3297 jni/Makefile java/org/greenstone/mgpp/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 3298 EOF 3299 cat >> $CONFIG_STATUS <<EOF 3300 3301 # Protect against being on the right side of a sed subst in config.status. 3302 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 3303 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 3304 $ac_vpsub 3305 $extrasub 3306 s%@SHELL@%$SHELL%g 3307 s%@CFLAGS@%$CFLAGS%g 3308 s%@CPPFLAGS@%$CPPFLAGS%g 3309 s%@CXXFLAGS@%$CXXFLAGS%g 3310 s%@FFLAGS@%$FFLAGS%g 3311 s%@DEFS@%$DEFS%g 3312 s%@LDFLAGS@%$LDFLAGS%g 3313 s%@LIBS@%$LIBS%g 3314 s%@exec_prefix@%$exec_prefix%g 3315 s%@prefix@%$prefix%g 3316 s%@program_transform_name@%$program_transform_name%g 3317 s%@bindir@%$bindir%g 3318 s%@sbindir@%$sbindir%g 3319 s%@libexecdir@%$libexecdir%g 3320 s%@datadir@%$datadir%g 3321 s%@sysconfdir@%$sysconfdir%g 3322 s%@sharedstatedir@%$sharedstatedir%g 3323 s%@localstatedir@%$localstatedir%g 3324 s%@libdir@%$libdir%g 3325 s%@includedir@%$includedir%g 3326 s%@oldincludedir@%$oldincludedir%g 3327 s%@infodir@%$infodir%g 3328 s%@mandir@%$mandir%g 3329 s%@PACKAGE@%$PACKAGE%g 3330 s%@VERSION@%$VERSION%g 3331 s%@CXX@%$CXX%g 3332 s%@AWK@%$AWK%g 3333 s%@YACC@%$YACC%g 3334 s%@CC@%$CC%g 3335 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 3336 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 3337 s%@INSTALL_DATA@%$INSTALL_DATA%g 3338 s%@LN_S@%$LN_S%g 3339 s%@SET_MAKE@%$SET_MAKE%g 3340 s%@RANLIB@%$RANLIB%g 3341 s%@CPP@%$CPP%g 3342 s%@U@%$U%g 3343 s%@ANSI2KNR@%$ANSI2KNR%g 3344 s%@ALLOCA@%$ALLOCA%g 3345 s%@LIBOBJS@%$LIBOBJS%g 3346 3347 CEOF 3348 EOF 3349 3350 cat >> $CONFIG_STATUS <<\EOF 3351 3352 # Split the substitutions into bite-sized pieces for seds with 3353 # small command number limits, like on Digital OSF/1 and HP-UX. 3354 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 3355 ac_file=1 # Number of current file. 3356 ac_beg=1 # First line for current file. 3357 ac_end=$ac_max_sed_cmds # Line after last line for current file. 3358 ac_more_lines=: 3359 ac_sed_cmds="" 3360 while $ac_more_lines; do 3361 if test $ac_beg -gt 1; then 3362 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 5076 3363 else 5077 as_ln_s='ln -s'3364 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 5078 3365 fi 5079 elif ln conf$$.file conf$$ 2>/dev/null; then 5080 as_ln_s=ln 5081 else 5082 as_ln_s='cp -p' 5083 fi 5084 rm -f conf$$ conf$$.exe conf$$.file 5085 5086 as_executable_p="test -f" 5087 5088 # Support unset when possible. 5089 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 5090 as_unset=unset 5091 else 5092 as_unset=false 5093 fi 5094 5095 # NLS nuisances. 5096 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 5097 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 5098 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 5099 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 5100 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 5101 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 5102 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 5103 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 5104 5105 # IFS 5106 # We need space, tab and new line, in precisely that order. 5107 as_nl=' 5108 ' 5109 IFS=" $as_nl" 5110 5111 # CDPATH. 5112 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 5113 5114 exec 6>&1 5115 5116 _ACEOF 5117 5118 # Files that config.status was made for. 5119 if test -n "$ac_config_files"; then 5120 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 5121 fi 5122 5123 if test -n "$ac_config_headers"; then 5124 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 5125 fi 5126 5127 if test -n "$ac_config_links"; then 5128 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 5129 fi 5130 5131 if test -n "$ac_config_commands"; then 5132 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 5133 fi 5134 5135 cat >>$CONFIG_STATUS <<\EOF 5136 5137 ac_cs_usage="\ 5138 \`$as_me' instantiates files from templates according to the 5139 current configuration. 5140 5141 Usage: $0 [OPTIONS] [FILE]... 5142 5143 -h, --help print this help, then exit 5144 -V, --version print version number, then exit 5145 -d, --debug don't remove temporary files 5146 --recheck update $as_me by reconfiguring in the same conditions 5147 --file=FILE[:TEMPLATE] 5148 instantiate the configuration file FILE 5149 --header=FILE[:TEMPLATE] 5150 instantiate the configuration header FILE 5151 5152 Configuration files: 5153 $config_files 5154 5155 Configuration headers: 5156 $config_headers 5157 5158 Configuration commands: 5159 $config_commands 5160 5161 Report bugs to <[email protected]>." 5162 EOF 5163 5164 cat >>$CONFIG_STATUS <<EOF 5165 ac_cs_version="\\ 5166 config.status 5167 configured by $0, generated by GNU Autoconf 2.50, 5168 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 5169 5170 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 5171 Free Software Foundation, Inc. 5172 This config.status script is free software; the Free Software Foundation 5173 gives unlimited permission to copy, distribute and modify it." 5174 srcdir=$srcdir 5175 INSTALL="$INSTALL" 5176 EOF 5177 5178 cat >>$CONFIG_STATUS <<\EOF 5179 # If no file are specified by the user, then we need to provide default 5180 # value. By we need to know if files were specified by the user. 5181 ac_need_defaults=: 5182 while test $# != 0 5183 do 5184 case $1 in 5185 --*=*) 5186 ac_option=`expr "x$1" : 'x\([^=]*\)='` 5187 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 5188 shift 5189 set dummy "$ac_option" "$ac_optarg" ${1+"$@"} 5190 shift 5191 ;; 5192 -*);; 5193 *) # This is not an option, so the user has probably given explicit 5194 # arguments. 5195 ac_need_defaults=false;; 3366 if test ! -s conftest.s$ac_file; then 3367 ac_more_lines=false 3368 rm -f conftest.s$ac_file 3369 else 3370 if test -z "$ac_sed_cmds"; then 3371 ac_sed_cmds="sed -f conftest.s$ac_file" 3372 else 3373 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 3374 fi 3375 ac_file=`expr $ac_file + 1` 3376 ac_beg=$ac_end 3377 ac_end=`expr $ac_end + $ac_max_sed_cmds` 3378 fi 3379 done 3380 if test -z "$ac_sed_cmds"; then 3381 ac_sed_cmds=cat 3382 fi 3383 EOF 3384 3385 cat >> $CONFIG_STATUS <<EOF 3386 3387 CONFIG_FILES=\${CONFIG_FILES-"Makefile text/Makefile lib/Makefile 3388 jni/Makefile java/org/greenstone/mgpp/Makefile"} 3389 EOF 3390 cat >> $CONFIG_STATUS <<\EOF 3391 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 3392 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 3393 case "$ac_file" in 3394 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 3395 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 3396 *) ac_file_in="${ac_file}.in" ;; 5196 3397 esac 5197 3398 5198 case $1 in 5199 # Handling of the options. 5200 EOF 5201 cat >>$CONFIG_STATUS <<EOF 5202 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 5203 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" 5204 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; 5205 EOF 5206 cat >>$CONFIG_STATUS <<\EOF 5207 --version | --vers* | -V ) 5208 echo "$ac_cs_version"; exit 0 ;; 5209 --he | --h) 5210 # Conflict between --help and --header 5211 { { echo "$as_me:5211: error: ambiguous option: $1 5212 Try \`$0 --help' for more information." >&5 5213 echo "$as_me: error: ambiguous option: $1 5214 Try \`$0 --help' for more information." >&2;} 5215 { (exit 1); exit 1; }; };; 5216 --help | --hel | -h ) 5217 echo "$ac_cs_usage"; exit 0 ;; 5218 --debug | --d* | -d ) 5219 debug=: ;; 5220 --file | --fil | --fi | --f ) 5221 shift 5222 CONFIG_FILES="$CONFIG_FILES $1" 5223 ac_need_defaults=false;; 5224 --header | --heade | --head | --hea ) 5225 shift 5226 CONFIG_HEADERS="$CONFIG_HEADERS $1" 5227 ac_need_defaults=false;; 5228 5229 # Handling of arguments. 5230 'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 5231 'text/Makefile' ) CONFIG_FILES="$CONFIG_FILES text/Makefile" ;; 5232 'lib/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 5233 'jni/Makefile' ) CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;; 5234 'java/org/greenstone/mgpp/Makefile' ) CONFIG_FILES="$CONFIG_FILES java/org/greenstone/mgpp/Makefile" ;; 5235 'default' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 5236 'config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 5237 5238 # This is an error. 5239 -*) { { echo "$as_me:5239: error: unrecognized option: $1 5240 Try \`$0 --help' for more information." >&5 5241 echo "$as_me: error: unrecognized option: $1 5242 Try \`$0 --help' for more information." >&2;} 5243 { (exit 1); exit 1; }; } ;; 5244 *) { { echo "$as_me:5244: error: invalid argument: $1" >&5 5245 echo "$as_me: error: invalid argument: $1" >&2;} 5246 { (exit 1); exit 1; }; };; 5247 esac 5248 shift 5249 done 5250 5251 exec 5>>config.log 5252 cat >&5 << _ACEOF 5253 5254 ## ----------------------- ## 5255 ## Running config.status. ## 5256 ## ----------------------- ## 5257 5258 This file was extended by $as_me 2.50, executed with 5259 > $ac_cs_invocation 5260 on `(hostname || uname -n) 2>/dev/null | sed 1q` 5261 5262 _ACEOF 5263 EOF 5264 5265 cat >>$CONFIG_STATUS <<\EOF 5266 # If the user did not use the arguments to specify the items to instantiate, 5267 # then the envvar interface is used. Set only those that are not. 5268 # We use the long form for the default assignment because of an extremely 5269 # bizarre bug on SunOS 4.1.3. 5270 if $ac_need_defaults; then 5271 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 5272 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 5273 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 5274 fi 5275 5276 # Create a temporary directory, and hook for its removal unless debugging. 5277 $debug || 5278 { 5279 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 5280 trap '{ (exit $?); exit $?; }' 1 2 13 15 5281 } 5282 5283 # Create a (secure) tmp directory for tmp files. 5284 : ${TMPDIR=/tmp} 5285 { 5286 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && 5287 test -n "$tmp" && test -d "$tmp" 5288 } || 5289 { 5290 tmp=$TMPDIR/cs$$-$RANDOM 5291 (umask 077 && mkdir $tmp) 5292 } || 5293 { 5294 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 5295 { (exit 1); exit 1; } 5296 } 5297 5298 EOF 5299 5300 cat >>$CONFIG_STATUS <<EOF 5301 5302 # 5303 # CONFIG_FILES section. 5304 # 5305 5306 # No need to generate the scripts if there are no CONFIG_FILES. 5307 # This happens for instance when ./config.status config.h 5308 if test -n "\$CONFIG_FILES"; then 5309 # Protect against being on the right side of a sed subst in config.status. 5310 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 5311 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 5312 s,@SHELL@,$SHELL,;t t 5313 s,@exec_prefix@,$exec_prefix,;t t 5314 s,@prefix@,$prefix,;t t 5315 s,@program_transform_name@,$program_transform_name,;t t 5316 s,@bindir@,$bindir,;t t 5317 s,@sbindir@,$sbindir,;t t 5318 s,@libexecdir@,$libexecdir,;t t 5319 s,@datadir@,$datadir,;t t 5320 s,@sysconfdir@,$sysconfdir,;t t 5321 s,@sharedstatedir@,$sharedstatedir,;t t 5322 s,@localstatedir@,$localstatedir,;t t 5323 s,@libdir@,$libdir,;t t 5324 s,@includedir@,$includedir,;t t 5325 s,@oldincludedir@,$oldincludedir,;t t 5326 s,@infodir@,$infodir,;t t 5327 s,@mandir@,$mandir,;t t 5328 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 5329 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 5330 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 5331 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 5332 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 5333 s,@ECHO_C@,$ECHO_C,;t t 5334 s,@ECHO_N@,$ECHO_N,;t t 5335 s,@ECHO_T@,$ECHO_T,;t t 5336 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 5337 s,@DEFS@,$DEFS,;t t 5338 s,@LIBS@,$LIBS,;t t 5339 s,@PACKAGE@,$PACKAGE,;t t 5340 s,@VERSION@,$VERSION,;t t 5341 s,@CXX@,$CXX,;t t 5342 s,@CXXFLAGS@,$CXXFLAGS,;t t 5343 s,@LDFLAGS@,$LDFLAGS,;t t 5344 s,@CPPFLAGS@,$CPPFLAGS,;t t 5345 s,@ac_ct_CXX@,$ac_ct_CXX,;t t 5346 s,@EXEEXT@,$EXEEXT,;t t 5347 s,@OBJEXT@,$OBJEXT,;t t 5348 s,@AWK@,$AWK,;t t 5349 s,@YACC@,$YACC,;t t 5350 s,@CC@,$CC,;t t 5351 s,@CFLAGS@,$CFLAGS,;t t 5352 s,@ac_ct_CC@,$ac_ct_CC,;t t 5353 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 5354 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 5355 s,@INSTALL_DATA@,$INSTALL_DATA,;t t 5356 s,@LN_S@,$LN_S,;t t 5357 s,@SET_MAKE@,$SET_MAKE,;t t 5358 s,@RANLIB@,$RANLIB,;t t 5359 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 5360 s,@CPP@,$CPP,;t t 5361 s,@U@,$U,;t t 5362 s,@ANSI2KNR@,$ANSI2KNR,;t t 5363 s,@ALLOCA@,$ALLOCA,;t t 5364 s,@LIBOBJS@,$LIBOBJS,;t t 5365 CEOF 5366 5367 EOF 5368 5369 cat >>$CONFIG_STATUS <<\EOF 5370 # Split the substitutions into bite-sized pieces for seds with 5371 # small command number limits, like on Digital OSF/1 and HP-UX. 5372 ac_max_sed_lines=48 5373 ac_sed_frag=1 # Number of current file. 5374 ac_beg=1 # First line for current file. 5375 ac_end=$ac_max_sed_lines # Line after last line for current file. 5376 ac_more_lines=: 5377 ac_sed_cmds= 5378 while $ac_more_lines; do 5379 if test $ac_beg -gt 1; then 5380 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 5381 else 5382 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 5383 fi 5384 if test ! -s $tmp/subs.frag; then 5385 ac_more_lines=false 5386 else 5387 # The purpose of the label and of the branching condition is to 5388 # speed up the sed processing (if there are no `@' at all, there 5389 # is no need to browse any of the substitutions). 5390 # These are the two extra sed commands mentioned above. 5391 (echo ':t 5392 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 5393 if test -z "$ac_sed_cmds"; then 5394 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 5395 else 5396 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 5397 fi 5398 ac_sed_frag=`expr $ac_sed_frag + 1` 5399 ac_beg=$ac_end 5400 ac_end=`expr $ac_end + $ac_max_sed_lines` 5401 fi 5402 done 5403 if test -z "$ac_sed_cmds"; then 5404 ac_sed_cmds=cat 5405 fi 5406 fi # test -n "$CONFIG_FILES" 5407 5408 EOF 5409 cat >>$CONFIG_STATUS <<\EOF 5410 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 5411 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 5412 case $ac_file in 5413 - | *:- | *:-:* ) # input from stdin 5414 cat >$tmp/stdin 5415 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5416 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5417 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5418 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5419 * ) ac_file_in=$ac_file.in ;; 5420 esac 5421 5422 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 5423 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5424 X"$ac_file" : 'X\(//\)[^/]' \| \ 5425 X"$ac_file" : 'X\(//\)$' \| \ 5426 X"$ac_file" : 'X\(/\)' \| \ 5427 . : '\(.\)' 2>/dev/null || 5428 echo X"$ac_file" | 5429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 5430 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 5431 /^X\(\/\/\)$/{ s//\1/; q; } 5432 /^X\(\/\).*/{ s//\1/; q; } 5433 s/.*/./; q'` 3399 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 3400 3401 # Remove last slash and all that follows it. Not all systems have dirname. 3402 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 5434 3403 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 5435 { case "$ac_dir" in 5436 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 5437 *) as_incr_dir=.;; 5438 esac 5439 as_dummy="$ac_dir" 5440 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 5441 case $as_mkdir_dir in 5442 # Skip DOS drivespec 5443 ?:) as_incr_dir=$as_mkdir_dir ;; 5444 *) 5445 as_incr_dir=$as_incr_dir/$as_mkdir_dir 5446 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 5447 ;; 5448 esac 5449 done; } 5450 5451 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" 3404 # The file is in a subdirectory. 3405 test ! -d "$ac_dir" && mkdir "$ac_dir" 3406 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 5452 3407 # A "../" for each directory in $ac_dir_suffix. 5453 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`3408 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 5454 3409 else 5455 3410 ac_dir_suffix= ac_dots= 5456 3411 fi 5457 3412 5458 case $srcdir in 5459 .) ac_srcdir=. 5460 if test -z "$ac_dots"; then 5461 ac_top_srcdir=. 5462 else 5463 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` 5464 fi ;; 5465 [\\/]* | ?:[\\/]* ) 5466 ac_srcdir=$srcdir$ac_dir_suffix; 5467 ac_top_srcdir=$srcdir ;; 3413 case "$ac_given_srcdir" in 3414 .) srcdir=. 3415 if test -z "$ac_dots"; then top_srcdir=. 3416 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 3417 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 5468 3418 *) # Relative path. 5469 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix5470 ac_top_srcdir=$ac_dots$srcdir;;3419 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 3420 top_srcdir="$ac_dots$ac_given_srcdir" ;; 5471 3421 esac 5472 3422 5473 case $INSTALLin5474 [ \\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL;;5475 *) ac_INSTALL=$ac_dots$INSTALL;;3423 case "$ac_given_INSTALL" in 3424 [/$]*) INSTALL="$ac_given_INSTALL" ;; 3425 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 5476 3426 esac 5477 3427 5478 if test x"$ac_file" != x-; then 5479 { echo "$as_me:5479: creating $ac_file" >&5 5480 echo "$as_me: creating $ac_file" >&6;} 5481 rm -f "$ac_file" 5482 fi 5483 # Let's still pretend it is `configure' which instantiates (i.e., don't 5484 # use $as_me), people would be surprised to read: 5485 # /* config.h. Generated automatically by config.status. */ 5486 configure_input="Generated automatically from `echo $ac_file_in | 5487 sed 's,.*/,,'` by configure." 5488 5489 # First look for the input files in the build tree, otherwise in the 5490 # src tree. 5491 ac_file_inputs=`IFS=: 5492 for f in $ac_file_in; do 5493 case $f in 5494 -) echo $tmp/stdin ;; 5495 [\\/$]*) 5496 # Absolute (can't be DOS-style, as IFS=:) 5497 test -f "$f" || { { echo "$as_me:5497: error: cannot find input file: $f" >&5 5498 echo "$as_me: error: cannot find input file: $f" >&2;} 5499 { (exit 1); exit 1; }; } 5500 echo $f;; 5501 *) # Relative 5502 if test -f "$f"; then 5503 # Build tree 5504 echo $f 5505 elif test -f "$srcdir/$f"; then 5506 # Source tree 5507 echo $srcdir/$f 5508 else 5509 # /dev/null tree 5510 { { echo "$as_me:5510: error: cannot find input file: $f" >&5 5511 echo "$as_me: error: cannot find input file: $f" >&2;} 5512 { (exit 1); exit 1; }; } 5513 fi;; 5514 esac 5515 done` || { (exit 1); exit 1; } 5516 EOF 5517 cat >>$CONFIG_STATUS <<EOF 5518 sed "$ac_vpsub 5519 $extrasub 5520 EOF 5521 cat >>$CONFIG_STATUS <<\EOF 5522 :t 5523 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 5524 s,@configure_input@,$configure_input,;t t 5525 s,@srcdir@,$ac_srcdir,;t t 5526 s,@top_srcdir@,$ac_top_srcdir,;t t 5527 s,@INSTALL@,$ac_INSTALL,;t t 5528 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 5529 rm -f $tmp/stdin 5530 if test x"$ac_file" != x-; then 5531 mv $tmp/out $ac_file 5532 else 5533 cat $tmp/out 5534 rm -f $tmp/out 5535 fi 5536 5537 done 5538 EOF 5539 cat >>$CONFIG_STATUS <<\EOF 5540 5541 # 5542 # CONFIG_HEADER section. 5543 # 3428 echo creating "$ac_file" 3429 rm -f "$ac_file" 3430 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 3431 case "$ac_file" in 3432 *Makefile*) ac_comsub="1i\\ 3433 # $configure_input" ;; 3434 *) ac_comsub= ;; 3435 esac 3436 3437 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 3438 sed -e "$ac_comsub 3439 s%@configure_input@%$configure_input%g 3440 s%@srcdir@%$srcdir%g 3441 s%@top_srcdir@%$top_srcdir%g 3442 s%@INSTALL@%$INSTALL%g 3443 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 3444 fi; done 3445 rm -f conftest.s* 5544 3446 5545 3447 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where … … 5547 3449 # 5548 3450 # ac_d sets the value in "#define NAME VALUE" lines. 5549 ac_dA='s ,^\([ ]*\)#\([ ]*define[ ][ ]*\)'5550 ac_dB=' [ ].*$,\1#\2'5551 ac_dC=' 5552 ac_dD=' ,;t'5553 # ac_u turns "#undef NAME" with outtrailing blanks into "#define NAME VALUE".5554 ac_uA='s ,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'5555 ac_uB=' $,\1#\2define\3'3451 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 3452 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 3453 ac_dC='\3' 3454 ac_dD='%g' 3455 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 3456 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 3457 ac_uB='\([ ]\)%\1#\2define\3' 5556 3458 ac_uC=' ' 5557 ac_uD=',;t' 5558 5559 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 3459 ac_uD='\4%g' 3460 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 3461 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 3462 ac_eB='$%\1#\2define\3' 3463 ac_eC=' ' 3464 ac_eD='%g' 3465 3466 if test "${CONFIG_HEADERS+set}" != set; then 3467 EOF 3468 cat >> $CONFIG_STATUS <<EOF 3469 CONFIG_HEADERS="config.h" 3470 EOF 3471 cat >> $CONFIG_STATUS <<\EOF 3472 fi 3473 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 5560 3474 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 5561 case $ac_file in 5562 - | *:- | *:-:* ) # input from stdin 5563 cat >$tmp/stdin 5564 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5565 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5566 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5567 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5568 * ) ac_file_in=$ac_file.in ;; 3475 case "$ac_file" in 3476 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 3477 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 3478 *) ac_file_in="${ac_file}.in" ;; 5569 3479 esac 5570 3480 5571 test x"$ac_file" != x- && { echo "$as_me:5571: creating $ac_file" >&5 5572 echo "$as_me: creating $ac_file" >&6;} 5573 5574 # First look for the input files in the build tree, otherwise in the 5575 # src tree. 5576 ac_file_inputs=`IFS=: 5577 for f in $ac_file_in; do 5578 case $f in 5579 -) echo $tmp/stdin ;; 5580 [\\/$]*) 5581 # Absolute (can't be DOS-style, as IFS=:) 5582 test -f "$f" || { { echo "$as_me:5582: error: cannot find input file: $f" >&5 5583 echo "$as_me: error: cannot find input file: $f" >&2;} 5584 { (exit 1); exit 1; }; } 5585 echo $f;; 5586 *) # Relative 5587 if test -f "$f"; then 5588 # Build tree 5589 echo $f 5590 elif test -f "$srcdir/$f"; then 5591 # Source tree 5592 echo $srcdir/$f 5593 else 5594 # /dev/null tree 5595 { { echo "$as_me:5595: error: cannot find input file: $f" >&5 5596 echo "$as_me: error: cannot find input file: $f" >&2;} 5597 { (exit 1); exit 1; }; } 5598 fi;; 5599 esac 5600 done` || { (exit 1); exit 1; } 5601 # Remove the trailing spaces. 5602 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 5603 5604 EOF 5605 5606 # Transform confdefs.h into two sed scripts, `conftest.defines' and 5607 # `conftest.undefs', that substitutes the proper values into 5608 # config.h.in to produce config.h. The first handles `#define' 5609 # templates, and the second `#undef' templates. 5610 # And first: Protect against being on the right side of a sed subst in 5611 # config.status. Protect against being in an unquoted here document 5612 # in config.status. 5613 rm -f conftest.defines conftest.undefs 5614 # Using a here document instead of a string reduces the quoting nightmare. 5615 # Putting comments in sed scripts is not portable. 5616 # 5617 # `end' is used to avoid that the second main sed command (meant for 5618 # 0-ary CPP macros) applies to n-ary macro definitions. 5619 # See the Autoconf documentation for `clear'. 5620 cat >confdef2sed.sed <<\EOF 5621 s/[\\&,]/\\&/g 5622 s,[\\$`],\\&,g 5623 t clear 5624 : clear 5625 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp 5626 t end 5627 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 5628 : end 5629 EOF 5630 # If some macros were called several times there might be several times 5631 # the same #defines, which is useless. Nevertheless, we may not want to 5632 # sort them, since we want the *last* AC-DEFINE to be honored. 5633 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 5634 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 5635 rm -f confdef2sed.sed 3481 echo creating $ac_file 3482 3483 rm -f conftest.frag conftest.in conftest.out 3484 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 3485 cat $ac_file_inputs > conftest.in 3486 3487 EOF 3488 3489 # Transform confdefs.h into a sed script conftest.vals that substitutes 3490 # the proper values into config.h.in to produce config.h. And first: 3491 # Protect against being on the right side of a sed subst in config.status. 3492 # Protect against being in an unquoted here document in config.status. 3493 rm -f conftest.vals 3494 cat > conftest.hdr <<\EOF 3495 s/[\\&%]/\\&/g 3496 s%[\\$`]%\\&%g 3497 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 3498 s%ac_d%ac_u%gp 3499 s%ac_u%ac_e%gp 3500 EOF 3501 sed -n -f conftest.hdr confdefs.h > conftest.vals 3502 rm -f conftest.hdr 5636 3503 5637 3504 # This sed command replaces #undef with comments. This is necessary, for 5638 3505 # example, in the case of _POSIX_SOURCE, which is predefined and required 5639 3506 # on some systems where configure will not decide to define it. 5640 cat >>conftest.undefs <<\EOF 5641 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 5642 EOF 5643 5644 # Break up conftest.defines because some shells have a limit on the size 5645 # of here documents, and old seds have small limits too (100 cmds). 5646 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 5647 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 5648 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 5649 echo ' :' >>$CONFIG_STATUS 3507 cat >> conftest.vals <<\EOF 3508 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 3509 EOF 3510 3511 # Break up conftest.vals because some shells have a limit on 3512 # the size of here documents, and old seds have small limits too. 3513 5650 3514 rm -f conftest.tail 5651 while grep . conftest.defines >/dev/null3515 while : 5652 3516 do 5653 # Write a limited-size here document to $tmp/defines.sed. 5654 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 5655 # Speed up: don't consider the non `#define' lines. 5656 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 5657 # Work around the forget-to-reset-the-flag bug. 5658 echo 't clr' >>$CONFIG_STATUS 5659 echo ': clr' >>$CONFIG_STATUS 5660 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 3517 ac_lines=`grep -c . conftest.vals` 3518 # grep -c gives empty output for an empty file on some AIX systems. 3519 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 3520 # Write a limited-size here document to conftest.frag. 3521 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 3522 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 5661 3523 echo 'CEOF 5662 sed -f $tmp/defines.sed $tmp/in >$tmp/out5663 rm -f $tmp/in5664 mv $tmp/out $tmp/in5665 ' >> $CONFIG_STATUS5666 sed 1,${ac_max_here_lines}d conftest. defines >conftest.tail5667 rm -f conftest. defines5668 mv conftest.tail conftest. defines3524 sed -f conftest.frag conftest.in > conftest.out 3525 rm -f conftest.in 3526 mv conftest.out conftest.in 3527 ' >> $CONFIG_STATUS 3528 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 3529 rm -f conftest.vals 3530 mv conftest.tail conftest.vals 5669 3531 done 5670 rm -f conftest.defines 5671 echo ' fi # egrep' >>$CONFIG_STATUS 5672 echo >>$CONFIG_STATUS 5673 5674 # Break up conftest.undefs because some shells have a limit on the size 5675 # of here documents, and old seds have small limits too (100 cmds). 5676 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 5677 rm -f conftest.tail 5678 while grep . conftest.undefs >/dev/null 5679 do 5680 # Write a limited-size here document to $tmp/undefs.sed. 5681 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 5682 # Speed up: don't consider the non `#undef' 5683 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 5684 # Work around the forget-to-reset-the-flag bug. 5685 echo 't clr' >>$CONFIG_STATUS 5686 echo ': clr' >>$CONFIG_STATUS 5687 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 5688 echo 'CEOF 5689 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 5690 rm -f $tmp/in 5691 mv $tmp/out $tmp/in 5692 ' >>$CONFIG_STATUS 5693 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 5694 rm -f conftest.undefs 5695 mv conftest.tail conftest.undefs 5696 done 5697 rm -f conftest.undefs 5698 5699 cat >>$CONFIG_STATUS <<\EOF 5700 # Let's still pretend it is `configure' which instantiates (i.e., don't 5701 # use $as_me), people would be surprised to read: 5702 # /* config.h. Generated automatically by config.status. */ 5703 if test x"$ac_file" = x-; then 5704 echo "/* Generated automatically by configure. */" >$tmp/config.h 3532 rm -f conftest.vals 3533 3534 cat >> $CONFIG_STATUS <<\EOF 3535 rm -f conftest.frag conftest.h 3536 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 3537 cat conftest.in >> conftest.h 3538 rm -f conftest.in 3539 if cmp -s $ac_file conftest.h 2>/dev/null; then 3540 echo "$ac_file is unchanged" 3541 rm -f conftest.h 5705 3542 else 5706 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h 3543 # Remove last slash and all that follows it. Not all systems have dirname. 3544 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 3545 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 3546 # The file is in a subdirectory. 3547 test ! -d "$ac_dir" && mkdir "$ac_dir" 3548 fi 3549 rm -f $ac_file 3550 mv conftest.h $ac_file 5707 3551 fi 5708 cat $tmp/in >>$tmp/config.h 5709 rm -f $tmp/in 5710 if test x"$ac_file" != x-; then 5711 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then 5712 { echo "$as_me:5712: $ac_file is unchanged" >&5 5713 echo "$as_me: $ac_file is unchanged" >&6;} 5714 else 5715 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5716 X"$ac_file" : 'X\(//\)[^/]' \| \ 5717 X"$ac_file" : 'X\(//\)$' \| \ 5718 X"$ac_file" : 'X\(/\)' \| \ 5719 . : '\(.\)' 2>/dev/null || 5720 echo X"$ac_file" | 5721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 5722 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 5723 /^X\(\/\/\)$/{ s//\1/; q; } 5724 /^X\(\/\).*/{ s//\1/; q; } 5725 s/.*/./; q'` 5726 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 5727 { case "$ac_dir" in 5728 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 5729 *) as_incr_dir=.;; 5730 esac 5731 as_dummy="$ac_dir" 5732 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 5733 case $as_mkdir_dir in 5734 # Skip DOS drivespec 5735 ?:) as_incr_dir=$as_mkdir_dir ;; 5736 *) 5737 as_incr_dir=$as_incr_dir/$as_mkdir_dir 5738 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 5739 ;; 5740 esac 5741 done; } 5742 5743 fi 5744 rm -f $ac_file 5745 mv $tmp/config.h $ac_file 5746 fi 5747 else 5748 cat $tmp/config.h 5749 rm -f $tmp/config.h 5750 fi 5751 done 5752 EOF 5753 cat >>$CONFIG_STATUS <<\EOF 5754 5755 # 5756 # CONFIG_COMMANDS section. 5757 # 5758 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 5759 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 5760 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 5761 5762 case $ac_dest in 5763 default ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;; 5764 esac 5765 done 5766 EOF 5767 5768 cat >>$CONFIG_STATUS <<\EOF 5769 5770 { (exit 0); exit 0; } 3552 fi; done 3553 3554 EOF 3555 cat >> $CONFIG_STATUS <<EOF 3556 3557 EOF 3558 cat >> $CONFIG_STATUS <<\EOF 3559 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h 3560 exit 0 5771 3561 EOF 5772 3562 chmod +x $CONFIG_STATUS 5773 ac_clean_files=$ac_clean_files_save 5774 5775 # configure is writing to config.log, and then calls config.status. 5776 # config.status does its own redirection, appending to config.log. 5777 # Unfortunately, on DOS this fails, as config.log is still kept open 5778 # by configure, so config.status won't be able to write to it; its 5779 # output is simply discarded. So we exec the FD to /dev/null, 5780 # effectively closing config.log, so it can be properly (re)opened and 5781 # appended to by config.status. When coming back to configure, we 5782 # need to make the FD available again. 5783 if test "$no_create" != yes; then 5784 ac_cs_success=: 5785 exec 5>/dev/null 5786 $SHELL $CONFIG_STATUS || ac_cs_success=false 5787 exec 5>>config.log 5788 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 5789 # would make configure fail if this is the last instruction. 5790 $ac_cs_success || { (exit 1); exit 1; } 5791 fi 5792 3563 rm -fr confdefs* $ac_clean_files 3564 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 3565 -
trunk/indexers/mgpp/configure.in
r7882 r8059 52 52 53 53 dnl Checks for libraries. 54 dnl Replace `main' with a function in -lg: 55 AC_CHECK_LIB(g, main) 54 56 dnl Replace `main' with a function in -lm: 55 57 AC_CHECK_LIB(m, main) 58 dnl Replace `main' with a function in -lstdc++: 59 AC_CHECK_LIB(stdc++, main) 60 dnl Replace `main' with a function in -lcrypt: 61 AC_CHECK_LIB(crypt, main) 56 62 57 63 dnl Checks for header files. 58 64 AC_HEADER_DIRENT 59 65 AC_HEADER_STDC 60 AC_CHECK_HEADERS(fcntl.h limits.h sys/time.h unistd.h string.h memory.h sys/procfs.h)66 AC_CHECK_HEADERS(fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h) 61 67 AC_EGREP_HEADER(fread, stdio.h, AC_DEFINE(HAVE_FREAD_DECL)) 62 68 AC_EGREP_HEADER(fgetc, stdio.h, AC_DEFINE(HAVE_FGETC_DECL)) … … 71 77 AC_REPLACE_FUNCS(ftruncate strstr strcasecmp) 72 78 79 80 dnl see if gettext is in libc. (try the textdomain() function). 81 AC_CHECK_FUNC( textdomain , AC_DEFINE(ENABLE_NLS ,1) ) 73 82 74 83 # *** Custom checking (based on GNU tar configure.in) ***
Note:
See TracChangeset
for help on using the changeset viewer.