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