Changeset 10852
- Timestamp:
- 2005-11-07T13:30:40+13:00 (18 years ago)
- Location:
- trunk/gsdl/packages/mg
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/packages/mg/aclocal.m4
r439 r10852 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/packages/mg/config.h.in
r439 r10852 170 170 /* Define if you have the m library (-lm). */ 171 171 #undef HAVE_LIBM 172 173 /* define if big endian */ 174 #undef WORDS_BIGENDIAN -
trunk/gsdl/packages/mg/configure
r3762 r10852 1 1 #! /bin/sh 2 3 2 # Guess values for system-dependent variables and create Makefiles. 4 # Generated automatically using autoconf version 2.12 5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 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 --with-dmalloc use dmalloc, as in 16 ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz" 17 ac_help="$ac_help 18 --with-regex use older regex in lieu of GNU rx for matching" 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="src/text/mgquery.c" 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_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 CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT AWK YACC CC CFLAGS ac_ct_CC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB CPP EGREP U ANSI2KNR ALLOCA LIBOBJS LTLIBOBJS' 313 ac_subst_files='' 19 314 20 315 # Initialize some variables set by options. 316 ac_init_help= 317 ac_init_version=false 21 318 # The variables have the same names as the options, with 22 319 # dashes changed to underlines. 23 build=NONE 24 cache_file=./config.cache 320 cache_file=/dev/null 25 321 exec_prefix=NONE 26 host=NONE27 322 no_create= 28 nonopt=NONE29 323 no_recursion= 30 324 prefix=NONE … … 35 329 site= 36 330 srcdir= 37 target=NONE38 331 verbose= 39 332 x_includes=NONE 40 333 x_libraries=NONE 334 335 # Installation directory options. 336 # These are left unexpanded so users can "make install exec_prefix=/foo" 337 # and all the variables that are supposed to be based on exec_prefix 338 # by default will actually change. 339 # Use braces instead of parens because sh, perl, etc. also accept them. 41 340 bindir='${exec_prefix}/bin' 42 341 sbindir='${exec_prefix}/sbin' … … 52 351 mandir='${prefix}/man' 53 352 54 # Initialize some other variables.55 subdirs=56 MFLAGS= MAKEFLAGS=57 # Maximum number of lines to put in a shell here document.58 ac_max_here_lines=1259 60 353 ac_prev= 61 354 for ac_option 62 355 do 63 64 356 # If the previous option needs an argument, assign it. 65 357 if test -n "$ac_prev"; then … … 69 361 fi 70 362 71 case "$ac_option" in 72 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 73 *) ac_optarg= ;; 74 esac 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 75 364 76 365 # Accept the important Cygnus configure options, so we can diagnose typos. 77 366 78 case "$ac_option"in367 case $ac_option in 79 368 80 369 -bindir | --bindir | --bindi | --bind | --bin | --bi) 81 370 ac_prev=bindir ;; 82 371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 83 bindir= "$ac_optarg";;372 bindir=$ac_optarg ;; 84 373 85 374 -build | --build | --buil | --bui | --bu) 86 ac_prev=build ;;375 ac_prev=build_alias ;; 87 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 88 build ="$ac_optarg";;377 build_alias=$ac_optarg ;; 89 378 90 379 -cache-file | --cache-file | --cache-fil | --cache-fi \ … … 93 382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 94 383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 95 cache_file="$ac_optarg" ;; 384 cache_file=$ac_optarg ;; 385 386 --config-cache | -C) 387 cache_file=config.cache ;; 96 388 97 389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) … … 99 391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 100 392 | --da=*) 101 datadir= "$ac_optarg";;393 datadir=$ac_optarg ;; 102 394 103 395 -disable-* | --disable-*) 104 ac_feature=`e cho $ac_option|sed -e 's/-*disable-//'`396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 105 397 # Reject names that are not valid shell variable names. 106 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then107 { echo " configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }108 fi109 ac_feature=`echo $ac_feature | sed 's/-/_/g'`110 eval "enable_$ {ac_feature}=no" ;;398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 400 { (exit 1); exit 1; }; } 401 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 402 eval "enable_$ac_feature=no" ;; 111 403 112 404 -enable-* | --enable-*) 113 ac_feature=`e cho $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 114 406 # 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 case "$ac_option"in120 *=*) ;;407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 409 { (exit 1); exit 1; }; } 410 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 411 case $ac_option in 412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 121 413 *) ac_optarg=yes ;; 122 414 esac 123 eval "enable_$ {ac_feature}='$ac_optarg'" ;;415 eval "enable_$ac_feature='$ac_optarg'" ;; 124 416 125 417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ … … 130 422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 131 423 | --exec=* | --exe=* | --ex=*) 132 exec_prefix= "$ac_optarg";;424 exec_prefix=$ac_optarg ;; 133 425 134 426 -gas | --gas | --ga | --g) … … 136 428 with_gas=yes ;; 137 429 138 -help | --help | --hel | --he) 139 # Omit some internal or obsolete options to make the list less imposing. 140 # This message is too long to be a string in the A/UX 3.1 sh. 141 cat << EOF 142 Usage: configure [options] [host] 143 Options: [defaults in brackets after descriptions] 144 Configuration: 145 --cache-file=FILE cache test results in FILE 146 --help print this message 147 --no-create do not create output files 148 --quiet, --silent do not print \`checking...' messages 149 --version print the version of autoconf that created configure 150 Directory and file names: 151 --prefix=PREFIX install architecture-independent files in PREFIX 152 [$ac_default_prefix] 153 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 154 [same as prefix] 155 --bindir=DIR user executables in DIR [EPREFIX/bin] 156 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 157 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 158 --datadir=DIR read-only architecture-independent data in DIR 159 [PREFIX/share] 160 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 161 --sharedstatedir=DIR modifiable architecture-independent data in DIR 162 [PREFIX/com] 163 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 164 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 165 --includedir=DIR C header files in DIR [PREFIX/include] 166 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 167 --infodir=DIR info documentation in DIR [PREFIX/info] 168 --mandir=DIR man documentation in DIR [PREFIX/man] 169 --srcdir=DIR find the sources in DIR [configure dir or ..] 170 --program-prefix=PREFIX prepend PREFIX to installed program names 171 --program-suffix=SUFFIX append SUFFIX to installed program names 172 --program-transform-name=PROGRAM 173 run sed PROGRAM on installed program names 174 EOF 175 cat << EOF 176 Host type: 177 --build=BUILD configure for building on BUILD [BUILD=HOST] 178 --host=HOST configure for HOST [guessed] 179 --target=TARGET configure for TARGET [TARGET=HOST] 180 Features and packages: 181 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 182 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 183 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 184 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 185 --x-includes=DIR X include files are in DIR 186 --x-libraries=DIR X library files are in DIR 187 EOF 188 if test -n "$ac_help"; then 189 echo "--enable and --with options recognized:$ac_help" 190 fi 191 exit 0 ;; 430 -help | --help | --hel | --he | -h) 431 ac_init_help=long ;; 432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 433 ac_init_help=recursive ;; 434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 435 ac_init_help=short ;; 192 436 193 437 -host | --host | --hos | --ho) 194 ac_prev=host ;;438 ac_prev=host_alias ;; 195 439 -host=* | --host=* | --hos=* | --ho=*) 196 host ="$ac_optarg";;440 host_alias=$ac_optarg ;; 197 441 198 442 -includedir | --includedir | --includedi | --included | --include \ … … 201 445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 202 446 | --includ=* | --inclu=* | --incl=* | --inc=*) 203 includedir= "$ac_optarg";;447 includedir=$ac_optarg ;; 204 448 205 449 -infodir | --infodir | --infodi | --infod | --info | --inf) 206 450 ac_prev=infodir ;; 207 451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 208 infodir= "$ac_optarg";;452 infodir=$ac_optarg ;; 209 453 210 454 -libdir | --libdir | --libdi | --libd) 211 455 ac_prev=libdir ;; 212 456 -libdir=* | --libdir=* | --libdi=* | --libd=*) 213 libdir= "$ac_optarg";;457 libdir=$ac_optarg ;; 214 458 215 459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ … … 218 462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 219 463 | --libexe=* | --libex=* | --libe=*) 220 libexecdir= "$ac_optarg";;464 libexecdir=$ac_optarg ;; 221 465 222 466 -localstatedir | --localstatedir | --localstatedi | --localstated \ … … 227 471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 228 472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 229 localstatedir= "$ac_optarg";;473 localstatedir=$ac_optarg ;; 230 474 231 475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 232 476 ac_prev=mandir ;; 233 477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 234 mandir= "$ac_optarg";;478 mandir=$ac_optarg ;; 235 479 236 480 -nfp | --nfp | --nf) … … 239 483 240 484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 241 | --no-cr | --no-c )485 | --no-cr | --no-c | -n) 242 486 no_create=yes ;; 243 487 … … 253 497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 254 498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 255 oldincludedir= "$ac_optarg";;499 oldincludedir=$ac_optarg ;; 256 500 257 501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 258 502 ac_prev=prefix ;; 259 503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 260 prefix= "$ac_optarg";;504 prefix=$ac_optarg ;; 261 505 262 506 -program-prefix | --program-prefix | --program-prefi | --program-pref \ … … 265 509 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 266 510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 267 program_prefix= "$ac_optarg";;511 program_prefix=$ac_optarg ;; 268 512 269 513 -program-suffix | --program-suffix | --program-suffi | --program-suff \ … … 272 516 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 273 517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 274 program_suffix= "$ac_optarg";;518 program_suffix=$ac_optarg ;; 275 519 276 520 -program-transform-name | --program-transform-name \ … … 289 533 | --program-trans=* | --program-tran=* \ 290 534 | --progr-tra=* | --program-tr=* | --program-t=*) 291 program_transform_name= "$ac_optarg";;535 program_transform_name=$ac_optarg ;; 292 536 293 537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ … … 299 543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 300 544 | --sbi=* | --sb=*) 301 sbindir= "$ac_optarg";;545 sbindir=$ac_optarg ;; 302 546 303 547 -sharedstatedir | --sharedstatedir | --sharedstatedi \ … … 310 554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 311 555 | --sha=* | --sh=*) 312 sharedstatedir= "$ac_optarg";;556 sharedstatedir=$ac_optarg ;; 313 557 314 558 -site | --site | --sit) 315 559 ac_prev=site ;; 316 560 -site=* | --site=* | --sit=*) 317 site= "$ac_optarg";;561 site=$ac_optarg ;; 318 562 319 563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 320 564 ac_prev=srcdir ;; 321 565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 322 srcdir= "$ac_optarg";;566 srcdir=$ac_optarg ;; 323 567 324 568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ … … 327 571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 328 572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 329 sysconfdir= "$ac_optarg";;573 sysconfdir=$ac_optarg ;; 330 574 331 575 -target | --target | --targe | --targ | --tar | --ta | --t) 332 ac_prev=target ;;576 ac_prev=target_alias ;; 333 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 334 target ="$ac_optarg";;578 target_alias=$ac_optarg ;; 335 579 336 580 -v | -verbose | --verbose | --verbos | --verbo | --verb) 337 581 verbose=yes ;; 338 582 339 -version | --version | --versio | --versi | --vers) 340 echo "configure generated by autoconf version 2.12" 341 exit 0 ;; 583 -version | --version | --versio | --versi | --vers | -V) 584 ac_init_version=: ;; 342 585 343 586 -with-* | --with-*) 344 ac_package=`e cho $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 345 588 # Reject names that are not valid shell variable names. 346 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then347 { echo " configure: error: $ac_package: invalid package name" 1>&2; exit 1; }348 fi589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 590 { echo "$as_me: error: invalid package name: $ac_package" >&2 591 { (exit 1); exit 1; }; } 349 592 ac_package=`echo $ac_package| sed 's/-/_/g'` 350 case "$ac_option"in351 *=*) ;;593 case $ac_option in 594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 352 595 *) ac_optarg=yes ;; 353 596 esac 354 eval "with_$ {ac_package}='$ac_optarg'" ;;597 eval "with_$ac_package='$ac_optarg'" ;; 355 598 356 599 -without-* | --without-*) 357 ac_package=`e cho $ac_option|sed -e 's/-*without-//'`600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 358 601 # Reject names that are not valid shell variable names. 359 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then360 { echo " configure: error: $ac_package: invalid package name" 1>&2; exit 1; }361 fi362 ac_package=`echo $ac_package | sed 's/-/_/g'`363 eval "with_$ {ac_package}=no" ;;602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 603 { echo "$as_me: error: invalid package name: $ac_package" >&2 604 { (exit 1); exit 1; }; } 605 ac_package=`echo $ac_package | sed 's/-/_/g'` 606 eval "with_$ac_package=no" ;; 364 607 365 608 --x) … … 372 615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 373 616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 374 x_includes= "$ac_optarg";;617 x_includes=$ac_optarg ;; 375 618 376 619 -x-libraries | --x-libraries | --x-librarie | --x-librari \ … … 379 622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 380 623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 381 x_libraries="$ac_optarg" ;; 382 383 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 624 x_libraries=$ac_optarg ;; 625 626 -*) { echo "$as_me: error: unrecognized option: $ac_option 627 Try \`$0 --help' for more information." >&2 628 { (exit 1); exit 1; }; } 384 629 ;; 385 630 631 *=*) 632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 633 # Reject names that are not valid shell variable names. 634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 636 { (exit 1); exit 1; }; } 637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 638 eval "$ac_envvar='$ac_optarg'" 639 export $ac_envvar ;; 640 386 641 *) 387 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 388 echo "configure: warning: $ac_option: invalid host type" 1>&2 389 fi 390 if test "x$nonopt" != xNONE; then 391 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 392 fi 393 nonopt="$ac_option" 642 # FIXME: should be removed in autoconf 3.0. 643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 394 647 ;; 395 648 … … 398 651 399 652 if test -n "$ac_prev"; then 400 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 401 fi 402 403 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 404 405 # File descriptor usage: 406 # 0 standard input 407 # 1 file creation 408 # 2 errors and warnings 409 # 3 some systems may open it to /dev/tty 410 # 4 used on the Kubota Titan 411 # 6 checking for... messages and results 412 # 5 compiler messages saved in config.log 413 if test "$silent" = yes; then 414 exec 6>/dev/null 415 else 416 exec 6>&1 417 fi 418 exec 5>./config.log 419 420 echo "\ 421 This file contains any messages produced by compilers while 422 running configure, to aid debugging if configure makes a mistake. 423 " 1>&5 424 425 # Strip out --no-create and --no-recursion so they do not pile up. 426 # Also quote any args containing shell metacharacters. 427 ac_configure_args= 428 for ac_arg 653 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 654 { echo "$as_me: error: missing argument to $ac_option" >&2 655 { (exit 1); exit 1; }; } 656 fi 657 658 # Be sure to have absolute paths. 659 for ac_var in exec_prefix prefix 429 660 do 430 case "$ac_arg" in 431 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 432 | --no-cr | --no-c) ;; 433 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 434 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 435 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 436 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 437 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 661 eval ac_val=$`echo $ac_var` 662 case $ac_val in 663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 665 { (exit 1); exit 1; }; };; 438 666 esac 439 667 done 440 668 441 # NLS nuisances. 442 # Only set these to C if already set. These must not be set unconditionally 443 # because not all systems understand e.g. LANG=C (notably SCO). 444 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 445 # Non-C LC_CTYPE values break the ctype check. 446 if test "${LANG+set}" = set; then LANG=C; export LANG; fi 447 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 448 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 449 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 450 451 # confdefs.h avoids OS command line length limits that DEFS can exceed. 452 rm -rf conftest* confdefs.h 453 # AIX cpp loses on an empty file, so make sure it contains at least a newline. 454 echo > confdefs.h 455 456 # A filename unique to this package, relative to the directory that 457 # configure is in, which we can look for to find out if srcdir is correct. 458 ac_unique_file=src/text/mgquery.c 669 # Be sure to have absolute paths. 670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 671 localstatedir libdir includedir oldincludedir infodir mandir 672 do 673 eval ac_val=$`echo $ac_var` 674 case $ac_val in 675 [\\/$]* | ?:[\\/]* ) ;; 676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 677 { (exit 1); exit 1; }; };; 678 esac 679 done 680 681 # There might be people who depend on the old broken behavior: `$host' 682 # used to hold the argument of --host etc. 683 # FIXME: To remove some day. 684 build=$build_alias 685 host=$host_alias 686 target=$target_alias 687 688 # FIXME: To remove some day. 689 if test "x$host_alias" != x; then 690 if test "x$build_alias" = x; then 691 cross_compiling=maybe 692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 693 If a cross compiler is detected then cross compile mode will be used." >&2 694 elif test "x$build_alias" != "x$host_alias"; then 695 cross_compiling=yes 696 fi 697 fi 698 699 ac_tool_prefix= 700 test -n "$host_alias" && ac_tool_prefix=$host_alias- 701 702 test "$silent" = yes && exec 6>/dev/null 703 459 704 460 705 # Find the source files, if location was not specified. … … 462 707 ac_srcdir_defaulted=yes 463 708 # Try the directory containing this script, then its parent. 464 ac_prog=$0 465 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 466 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 709 ac_confdir=`(dirname "$0") 2>/dev/null || 710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 711 X"$0" : 'X\(//\)[^/]' \| \ 712 X"$0" : 'X\(//\)$' \| \ 713 X"$0" : 'X\(/\)' \| \ 714 . : '\(.\)' 2>/dev/null || 715 echo X"$0" | 716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 717 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 718 /^X\(\/\/\)$/{ s//\1/; q; } 719 /^X\(\/\).*/{ s//\1/; q; } 720 s/.*/./; q'` 467 721 srcdir=$ac_confdir 468 722 if test ! -r $srcdir/$ac_unique_file; then … … 474 728 if test ! -r $srcdir/$ac_unique_file; then 475 729 if test "$ac_srcdir_defaulted" = yes; then 476 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 731 { (exit 1); exit 1; }; } 477 732 else 478 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 734 { (exit 1); exit 1; }; } 479 735 fi 480 736 fi 481 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 482 737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 739 { (exit 1); exit 1; }; } 740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 741 ac_env_build_alias_set=${build_alias+set} 742 ac_env_build_alias_value=$build_alias 743 ac_cv_env_build_alias_set=${build_alias+set} 744 ac_cv_env_build_alias_value=$build_alias 745 ac_env_host_alias_set=${host_alias+set} 746 ac_env_host_alias_value=$host_alias 747 ac_cv_env_host_alias_set=${host_alias+set} 748 ac_cv_env_host_alias_value=$host_alias 749 ac_env_target_alias_set=${target_alias+set} 750 ac_env_target_alias_value=$target_alias 751 ac_cv_env_target_alias_set=${target_alias+set} 752 ac_cv_env_target_alias_value=$target_alias 753 ac_env_CXX_set=${CXX+set} 754 ac_env_CXX_value=$CXX 755 ac_cv_env_CXX_set=${CXX+set} 756 ac_cv_env_CXX_value=$CXX 757 ac_env_CXXFLAGS_set=${CXXFLAGS+set} 758 ac_env_CXXFLAGS_value=$CXXFLAGS 759 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 760 ac_cv_env_CXXFLAGS_value=$CXXFLAGS 761 ac_env_LDFLAGS_set=${LDFLAGS+set} 762 ac_env_LDFLAGS_value=$LDFLAGS 763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 764 ac_cv_env_LDFLAGS_value=$LDFLAGS 765 ac_env_CPPFLAGS_set=${CPPFLAGS+set} 766 ac_env_CPPFLAGS_value=$CPPFLAGS 767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS 769 ac_env_CC_set=${CC+set} 770 ac_env_CC_value=$CC 771 ac_cv_env_CC_set=${CC+set} 772 ac_cv_env_CC_value=$CC 773 ac_env_CFLAGS_set=${CFLAGS+set} 774 ac_env_CFLAGS_value=$CFLAGS 775 ac_cv_env_CFLAGS_set=${CFLAGS+set} 776 ac_cv_env_CFLAGS_value=$CFLAGS 777 ac_env_CPP_set=${CPP+set} 778 ac_env_CPP_value=$CPP 779 ac_cv_env_CPP_set=${CPP+set} 780 ac_cv_env_CPP_value=$CPP 781 782 # 783 # Report the --help message. 784 # 785 if test "$ac_init_help" = "long"; then 786 # Omit some internal or obsolete options to make the list less imposing. 787 # This message is too long to be a string in the A/UX 3.1 sh. 788 cat <<_ACEOF 789 \`configure' configures this package to adapt to many kinds of systems. 790 791 Usage: $0 [OPTION]... [VAR=VALUE]... 792 793 To assign environment variables (e.g., CC, CFLAGS...), specify them as 794 VAR=VALUE. See below for descriptions of some of the useful variables. 795 796 Defaults for the options are specified in brackets. 797 798 Configuration: 799 -h, --help display this help and exit 800 --help=short display options specific to this package 801 --help=recursive display the short help of all the included packages 802 -V, --version display version information and exit 803 -q, --quiet, --silent do not print \`checking...' messages 804 --cache-file=FILE cache test results in FILE [disabled] 805 -C, --config-cache alias for \`--cache-file=config.cache' 806 -n, --no-create do not create output files 807 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 808 809 _ACEOF 810 811 cat <<_ACEOF 812 Installation directories: 813 --prefix=PREFIX install architecture-independent files in PREFIX 814 [$ac_default_prefix] 815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 816 [PREFIX] 817 818 By default, \`make install' will install all the files in 819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 820 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 821 for instance \`--prefix=\$HOME'. 822 823 For better control, use the options below. 824 825 Fine tuning of the installation directories: 826 --bindir=DIR user executables [EPREFIX/bin] 827 --sbindir=DIR system admin executables [EPREFIX/sbin] 828 --libexecdir=DIR program executables [EPREFIX/libexec] 829 --datadir=DIR read-only architecture-independent data [PREFIX/share] 830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 832 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 833 --libdir=DIR object code libraries [EPREFIX/lib] 834 --includedir=DIR C header files [PREFIX/include] 835 --oldincludedir=DIR C header files for non-gcc [/usr/include] 836 --infodir=DIR info documentation [PREFIX/info] 837 --mandir=DIR man documentation [PREFIX/man] 838 _ACEOF 839 840 cat <<\_ACEOF 841 842 Program names: 843 --program-prefix=PREFIX prepend PREFIX to installed program names 844 --program-suffix=SUFFIX append SUFFIX to installed program names 845 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 846 _ACEOF 847 fi 848 849 if test -n "$ac_init_help"; then 850 851 cat <<\_ACEOF 852 853 Optional Packages: 854 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 855 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 856 --with-dmalloc use dmalloc, as in 857 ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz 858 --with-regex use older regex in lieu of GNU rx for matching 859 860 Some influential environment variables: 861 CXX C++ compiler command 862 CXXFLAGS C++ compiler flags 863 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 864 nonstandard directory <lib dir> 865 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 866 headers in a nonstandard directory <include dir> 867 CC C compiler command 868 CFLAGS C compiler flags 869 CPP C preprocessor 870 871 Use these variables to override the choices made by `configure' or to help 872 it to find libraries and programs with nonstandard names/locations. 873 874 _ACEOF 875 fi 876 877 if test "$ac_init_help" = "recursive"; then 878 # If there are subdirs, report their specific --help. 879 ac_popdir=`pwd` 880 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 881 test -d $ac_dir || continue 882 ac_builddir=. 883 884 if test "$ac_dir" != .; then 885 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 886 # A "../" for each directory in $ac_dir_suffix. 887 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 888 else 889 ac_dir_suffix= ac_top_builddir= 890 fi 891 892 case $srcdir in 893 .) # No --srcdir option. We are building in place. 894 ac_srcdir=. 895 if test -z "$ac_top_builddir"; then 896 ac_top_srcdir=. 897 else 898 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 899 fi ;; 900 [\\/]* | ?:[\\/]* ) # Absolute path. 901 ac_srcdir=$srcdir$ac_dir_suffix; 902 ac_top_srcdir=$srcdir ;; 903 *) # Relative path. 904 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 905 ac_top_srcdir=$ac_top_builddir$srcdir ;; 906 esac 907 908 # Do not use `cd foo && pwd` to compute absolute paths, because 909 # the directories may not exist. 910 case `pwd` in 911 .) ac_abs_builddir="$ac_dir";; 912 *) 913 case "$ac_dir" in 914 .) ac_abs_builddir=`pwd`;; 915 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 916 *) ac_abs_builddir=`pwd`/"$ac_dir";; 917 esac;; 918 esac 919 case $ac_abs_builddir in 920 .) ac_abs_top_builddir=${ac_top_builddir}.;; 921 *) 922 case ${ac_top_builddir}. in 923 .) ac_abs_top_builddir=$ac_abs_builddir;; 924 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 925 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 926 esac;; 927 esac 928 case $ac_abs_builddir in 929 .) ac_abs_srcdir=$ac_srcdir;; 930 *) 931 case $ac_srcdir in 932 .) ac_abs_srcdir=$ac_abs_builddir;; 933 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 934 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 935 esac;; 936 esac 937 case $ac_abs_builddir in 938 .) ac_abs_top_srcdir=$ac_top_srcdir;; 939 *) 940 case $ac_top_srcdir in 941 .) ac_abs_top_srcdir=$ac_abs_builddir;; 942 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 943 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 944 esac;; 945 esac 946 947 cd $ac_dir 948 # Check for guested configure; otherwise get Cygnus style configure. 949 if test -f $ac_srcdir/configure.gnu; then 950 echo 951 $SHELL $ac_srcdir/configure.gnu --help=recursive 952 elif test -f $ac_srcdir/configure; then 953 echo 954 $SHELL $ac_srcdir/configure --help=recursive 955 elif test -f $ac_srcdir/configure.ac || 956 test -f $ac_srcdir/configure.in; then 957 echo 958 $ac_configure --help 959 else 960 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 961 fi 962 cd $ac_popdir 963 done 964 fi 965 966 test -n "$ac_init_help" && exit 0 967 if $ac_init_version; then 968 cat <<\_ACEOF 969 970 Copyright (C) 2003 Free Software Foundation, Inc. 971 This configure script is free software; the Free Software Foundation 972 gives unlimited permission to copy, distribute and modify it. 973 _ACEOF 974 exit 0 975 fi 976 exec 5>config.log 977 cat >&5 <<_ACEOF 978 This file contains any messages produced by compilers while 979 running configure, to aid debugging if configure makes a mistake. 980 981 It was created by $as_me, which was 982 generated by GNU Autoconf 2.59. Invocation command line was 983 984 $ $0 $@ 985 986 _ACEOF 987 { 988 cat <<_ASUNAME 989 ## --------- ## 990 ## Platform. ## 991 ## --------- ## 992 993 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 994 uname -m = `(uname -m) 2>/dev/null || echo unknown` 995 uname -r = `(uname -r) 2>/dev/null || echo unknown` 996 uname -s = `(uname -s) 2>/dev/null || echo unknown` 997 uname -v = `(uname -v) 2>/dev/null || echo unknown` 998 999 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1000 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1001 1002 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1003 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1004 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1005 hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1006 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1007 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1008 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1009 1010 _ASUNAME 1011 1012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1013 for as_dir in $PATH 1014 do 1015 IFS=$as_save_IFS 1016 test -z "$as_dir" && as_dir=. 1017 echo "PATH: $as_dir" 1018 done 1019 1020 } >&5 1021 1022 cat >&5 <<_ACEOF 1023 1024 1025 ## ----------- ## 1026 ## Core tests. ## 1027 ## ----------- ## 1028 1029 _ACEOF 1030 1031 1032 # Keep a trace of the command line. 1033 # Strip out --no-create and --no-recursion so they do not pile up. 1034 # Strip out --silent because we don't want to record it for future runs. 1035 # Also quote any args containing shell meta-characters. 1036 # Make two passes to allow for proper duplicate-argument suppression. 1037 ac_configure_args= 1038 ac_configure_args0= 1039 ac_configure_args1= 1040 ac_sep= 1041 ac_must_keep_next=false 1042 for ac_pass in 1 2 1043 do 1044 for ac_arg 1045 do 1046 case $ac_arg in 1047 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1049 | -silent | --silent | --silen | --sile | --sil) 1050 continue ;; 1051 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1052 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1053 esac 1054 case $ac_pass in 1055 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1056 2) 1057 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1058 if test $ac_must_keep_next = true; then 1059 ac_must_keep_next=false # Got value, back to normal. 1060 else 1061 case $ac_arg in 1062 *=* | --config-cache | -C | -disable-* | --disable-* \ 1063 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1064 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1065 | -with-* | --with-* | -without-* | --without-* | --x) 1066 case "$ac_configure_args0 " in 1067 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1068 esac 1069 ;; 1070 -* ) ac_must_keep_next=true ;; 1071 esac 1072 fi 1073 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1074 # Get rid of the leading space. 1075 ac_sep=" " 1076 ;; 1077 esac 1078 done 1079 done 1080 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1081 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1082 1083 # When interrupted or exit'd, cleanup temporary files, and complete 1084 # config.log. We remove comments because anyway the quotes in there 1085 # would cause problems or look ugly. 1086 # WARNING: Be sure not to use single quotes in there, as some shells, 1087 # such as our DU 5.0 friend, will then `close' the trap. 1088 trap 'exit_status=$? 1089 # Save into config.log some information that might help in debugging. 1090 { 1091 echo 1092 1093 cat <<\_ASBOX 1094 ## ---------------- ## 1095 ## Cache variables. ## 1096 ## ---------------- ## 1097 _ASBOX 1098 echo 1099 # The following way of writing the cache mishandles newlines in values, 1100 { 1101 (set) 2>&1 | 1102 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1103 *ac_space=\ *) 1104 sed -n \ 1105 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1106 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1107 ;; 1108 *) 1109 sed -n \ 1110 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1111 ;; 1112 esac; 1113 } 1114 echo 1115 1116 cat <<\_ASBOX 1117 ## ----------------- ## 1118 ## Output variables. ## 1119 ## ----------------- ## 1120 _ASBOX 1121 echo 1122 for ac_var in $ac_subst_vars 1123 do 1124 eval ac_val=$`echo $ac_var` 1125 echo "$ac_var='"'"'$ac_val'"'"'" 1126 done | sort 1127 echo 1128 1129 if test -n "$ac_subst_files"; then 1130 cat <<\_ASBOX 1131 ## ------------- ## 1132 ## Output files. ## 1133 ## ------------- ## 1134 _ASBOX 1135 echo 1136 for ac_var in $ac_subst_files 1137 do 1138 eval ac_val=$`echo $ac_var` 1139 echo "$ac_var='"'"'$ac_val'"'"'" 1140 done | sort 1141 echo 1142 fi 1143 1144 if test -s confdefs.h; then 1145 cat <<\_ASBOX 1146 ## ----------- ## 1147 ## confdefs.h. ## 1148 ## ----------- ## 1149 _ASBOX 1150 echo 1151 sed "/^$/d" confdefs.h | sort 1152 echo 1153 fi 1154 test "$ac_signal" != 0 && 1155 echo "$as_me: caught signal $ac_signal" 1156 echo "$as_me: exit $exit_status" 1157 } >&5 1158 rm -f core *.core && 1159 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1160 exit $exit_status 1161 ' 0 1162 for ac_signal in 1 2 13 15; do 1163 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1164 done 1165 ac_signal=0 1166 1167 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1168 rm -rf conftest* confdefs.h 1169 # AIX cpp loses on an empty file, so make sure it contains at least a newline. 1170 echo >confdefs.h 1171 1172 # Predefined preprocessor variables. 1173 1174 cat >>confdefs.h <<_ACEOF 1175 #define PACKAGE_NAME "$PACKAGE_NAME" 1176 _ACEOF 1177 1178 1179 cat >>confdefs.h <<_ACEOF 1180 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1181 _ACEOF 1182 1183 1184 cat >>confdefs.h <<_ACEOF 1185 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1186 _ACEOF 1187 1188 1189 cat >>confdefs.h <<_ACEOF 1190 #define PACKAGE_STRING "$PACKAGE_STRING" 1191 _ACEOF 1192 1193 1194 cat >>confdefs.h <<_ACEOF 1195 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1196 _ACEOF 1197 1198 1199 # Let the site file select an alternate cache file if it wants to. 483 1200 # Prefer explicitly selected file to automatically selected ones. 484 1201 if test -z "$CONFIG_SITE"; then … … 491 1208 for ac_site_file in $CONFIG_SITE; do 492 1209 if test -r "$ac_site_file"; then 493 echo "loading site script $ac_site_file" 1210 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1211 echo "$as_me: loading site script $ac_site_file" >&6;} 1212 sed 's/^/| /' "$ac_site_file" >&5 494 1213 . "$ac_site_file" 495 1214 fi … … 497 1216 498 1217 if test -r "$cache_file"; then 499 echo "loading cache $cache_file" 500 . $cache_file 501 else 502 echo "creating cache $cache_file" 503 > $cache_file 1218 # Some versions of bash will fail to source /dev/null (special 1219 # files actually), so we avoid doing that. 1220 if test -f "$cache_file"; then 1221 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1222 echo "$as_me: loading cache $cache_file" >&6;} 1223 case $cache_file in 1224 [\\/]* | ?:[\\/]* ) . $cache_file;; 1225 *) . ./$cache_file;; 1226 esac 1227 fi 1228 else 1229 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1230 echo "$as_me: creating cache $cache_file" >&6;} 1231 >$cache_file 1232 fi 1233 1234 # Check that the precious variables saved in the cache have kept the same 1235 # value. 1236 ac_cache_corrupted=false 1237 for ac_var in `(set) 2>&1 | 1238 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1239 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1240 eval ac_new_set=\$ac_env_${ac_var}_set 1241 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1242 eval ac_new_val="\$ac_env_${ac_var}_value" 1243 case $ac_old_set,$ac_new_set in 1244 set,) 1245 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1246 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1247 ac_cache_corrupted=: ;; 1248 ,set) 1249 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1250 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1251 ac_cache_corrupted=: ;; 1252 ,);; 1253 *) 1254 if test "x$ac_old_val" != "x$ac_new_val"; then 1255 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1256 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1257 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1258 echo "$as_me: former value: $ac_old_val" >&2;} 1259 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1260 echo "$as_me: current value: $ac_new_val" >&2;} 1261 ac_cache_corrupted=: 1262 fi;; 1263 esac 1264 # Pass precious variables to config.status. 1265 if test "$ac_new_set" = set; then 1266 case $ac_new_val in 1267 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1268 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1269 *) ac_arg=$ac_var=$ac_new_val ;; 1270 esac 1271 case " $ac_configure_args " in 1272 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1273 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1274 esac 1275 fi 1276 done 1277 if $ac_cache_corrupted; then 1278 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1279 echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1280 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1281 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1282 { (exit 1); exit 1; }; } 504 1283 fi 505 1284 506 1285 ac_ext=c 507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.508 1286 ac_cpp='$CPP $CPPFLAGS' 509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 510 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 511 cross_compiling=$ac_cv_prog_cc_cross 512 513 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 514 # Stardent Vistra SVR4 grep lacks -e, says [email protected]. 515 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 516 ac_n= ac_c=' 517 ' ac_t=' ' 518 else 519 ac_n=-n ac_c= ac_t= 520 fi 521 else 522 ac_n= ac_c='\c' ac_t= 523 fi 524 525 526 527 if test "$program_transform_name" = s,x,x,; then 528 program_transform_name= 529 else 530 # Double any \ or $. echo might interpret backslashes. 531 cat <<\EOF_SED > conftestsed 532 s,\\,\\\\,g; s,\$,$$,g 533 EOF_SED 534 program_transform_name="`echo $program_transform_name|sed -f conftestsed`" 535 rm -f conftestsed 536 fi 1287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1289 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 ac_config_headers="$ac_config_headers config.h" 1310 537 1311 test "$program_prefix" != NONE && 538 program_transform_name="s,^,$ {program_prefix},;$program_transform_name"1312 program_transform_name="s,^,$program_prefix,;$program_transform_name" 539 1313 # Use a double $ so make ignores it. 540 1314 test "$program_suffix" != NONE && 541 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 542 543 # sed with no file args requires a program. 544 test "$program_transform_name" = "" && program_transform_name="s,x,x," 1315 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1316 # Double any \ or $. echo might interpret backslashes. 1317 # By default was `s,x,x', remove it if useless. 1318 cat <<\_ACEOF >conftest.sed 1319 s/[\\$]/&&/g;s/;s,x,x,$// 1320 _ACEOF 1321 program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1322 rm conftest.sed 545 1323 546 1324 547 1325 PACKAGE=mg 548 VERSION=1. 3e549 550 cat >> confdefs.h <<EOF1326 VERSION=1.2 1327 1328 cat >>confdefs.h <<_ACEOF 551 1329 #define PACKAGE "$PACKAGE" 552 EOF553 554 cat >> confdefs.h <<EOF1330 _ACEOF 1331 1332 cat >>confdefs.h <<_ACEOF 555 1333 #define VERSION "$VERSION" 556 EOF 557 558 559 560 561 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ 562 do 563 # Extract the first word of "$ac_prog", so it can be a program name with args. 564 set dummy $ac_prog; ac_word=$2 565 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 566 echo "configure:567: checking for $ac_word" >&5 567 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then 568 echo $ac_n "(cached) $ac_c" 1>&6 1334 _ACEOF 1335 1336 1337 1338 1339 ac_ext=cc 1340 ac_cpp='$CXXCPP $CPPFLAGS' 1341 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1342 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1343 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 1344 if test -n "$ac_tool_prefix"; then 1345 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 1346 do 1347 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1348 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1349 echo "$as_me:$LINENO: checking for $ac_word" >&5 1350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1351 if test "${ac_cv_prog_CXX+set}" = set; then 1352 echo $ECHO_N "(cached) $ECHO_C" >&6 569 1353 else 570 1354 if test -n "$CXX"; then 571 1355 ac_cv_prog_CXX="$CXX" # Let the user override the test. 572 1356 else 573 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 574 for ac_dir in $PATH; do 575 test -z "$ac_dir" && ac_dir=. 576 if test -f $ac_dir/$ac_word; then 577 ac_cv_prog_CXX="$ac_prog" 578 break 1357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1358 for as_dir in $PATH 1359 do 1360 IFS=$as_save_IFS 1361 test -z "$as_dir" && as_dir=. 1362 for ac_exec_ext in '' $ac_executable_extensions; do 1363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1364 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 1365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1366 break 2 1367 fi 1368 done 1369 done 1370 1371 fi 1372 fi 1373 CXX=$ac_cv_prog_CXX 1374 if test -n "$CXX"; then 1375 echo "$as_me:$LINENO: result: $CXX" >&5 1376 echo "${ECHO_T}$CXX" >&6 1377 else 1378 echo "$as_me:$LINENO: result: no" >&5 1379 echo "${ECHO_T}no" >&6 1380 fi 1381 1382 test -n "$CXX" && break 1383 done 1384 fi 1385 if test -z "$CXX"; then 1386 ac_ct_CXX=$CXX 1387 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 1388 do 1389 # Extract the first word of "$ac_prog", so it can be a program name with args. 1390 set dummy $ac_prog; ac_word=$2 1391 echo "$as_me:$LINENO: checking for $ac_word" >&5 1392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1393 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 1394 echo $ECHO_N "(cached) $ECHO_C" >&6 1395 else 1396 if test -n "$ac_ct_CXX"; then 1397 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 1398 else 1399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1400 for as_dir in $PATH 1401 do 1402 IFS=$as_save_IFS 1403 test -z "$as_dir" && as_dir=. 1404 for ac_exec_ext in '' $ac_executable_extensions; do 1405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1406 ac_cv_prog_ac_ct_CXX="$ac_prog" 1407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1408 break 2 1409 fi 1410 done 1411 done 1412 1413 fi 1414 fi 1415 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 1416 if test -n "$ac_ct_CXX"; then 1417 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 1418 echo "${ECHO_T}$ac_ct_CXX" >&6 1419 else 1420 echo "$as_me:$LINENO: result: no" >&5 1421 echo "${ECHO_T}no" >&6 1422 fi 1423 1424 test -n "$ac_ct_CXX" && break 1425 done 1426 test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 1427 1428 CXX=$ac_ct_CXX 1429 fi 1430 1431 1432 # Provide some information about the compiler. 1433 echo "$as_me:$LINENO:" \ 1434 "checking for C++ compiler version" >&5 1435 ac_compiler=`set X $ac_compile; echo $2` 1436 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1437 (eval $ac_compiler --version </dev/null >&5) 2>&5 1438 ac_status=$? 1439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1440 (exit $ac_status); } 1441 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1442 (eval $ac_compiler -v </dev/null >&5) 2>&5 1443 ac_status=$? 1444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1445 (exit $ac_status); } 1446 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1447 (eval $ac_compiler -V </dev/null >&5) 2>&5 1448 ac_status=$? 1449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1450 (exit $ac_status); } 1451 1452 cat >conftest.$ac_ext <<_ACEOF 1453 /* confdefs.h. */ 1454 _ACEOF 1455 cat confdefs.h >>conftest.$ac_ext 1456 cat >>conftest.$ac_ext <<_ACEOF 1457 /* end confdefs.h. */ 1458 1459 int 1460 main () 1461 { 1462 1463 ; 1464 return 0; 1465 } 1466 _ACEOF 1467 ac_clean_files_save=$ac_clean_files 1468 ac_clean_files="$ac_clean_files a.out a.exe b.out" 1469 # Try to create an executable without -o first, disregard a.out. 1470 # It will help us diagnose broken compilers, and finding out an intuition 1471 # of exeext. 1472 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 1473 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6 1474 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1475 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1476 (eval $ac_link_default) 2>&5 1477 ac_status=$? 1478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1479 (exit $ac_status); }; then 1480 # Find the output, starting from the most likely. This scheme is 1481 # not robust to junk in `.', hence go to wildcards (a.*) only as a last 1482 # resort. 1483 1484 # Be careful to initialize this variable, since it used to be cached. 1485 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1486 ac_cv_exeext= 1487 # b.out is created by i960 compilers. 1488 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1489 do 1490 test -f "$ac_file" || continue 1491 case $ac_file in 1492 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1493 ;; 1494 conftest.$ac_ext ) 1495 # This is the source file. 1496 ;; 1497 [ab].out ) 1498 # We found the default executable, but exeext='' is most 1499 # certainly right. 1500 break;; 1501 *.* ) 1502 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1503 # FIXME: I believe we export ac_cv_exeext for Libtool, 1504 # but it would be cool to find out if it's true. Does anybody 1505 # maintain Libtool? --akim. 1506 export ac_cv_exeext 1507 break;; 1508 * ) 1509 break;; 1510 esac 1511 done 1512 else 1513 echo "$as_me: failed program was:" >&5 1514 sed 's/^/| /' conftest.$ac_ext >&5 1515 1516 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables 1517 See \`config.log' for more details." >&5 1518 echo "$as_me: error: C++ compiler cannot create executables 1519 See \`config.log' for more details." >&2;} 1520 { (exit 77); exit 77; }; } 1521 fi 1522 1523 ac_exeext=$ac_cv_exeext 1524 echo "$as_me:$LINENO: result: $ac_file" >&5 1525 echo "${ECHO_T}$ac_file" >&6 1526 1527 # Check the compiler produces executables we can run. If not, either 1528 # the compiler is broken, or we cross compile. 1529 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 1530 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 1531 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1532 # If not cross compiling, check that we can run a simple program. 1533 if test "$cross_compiling" != yes; then 1534 if { ac_try='./$ac_file' 1535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1536 (eval $ac_try) 2>&5 1537 ac_status=$? 1538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1539 (exit $ac_status); }; }; then 1540 cross_compiling=no 1541 else 1542 if test "$cross_compiling" = maybe; then 1543 cross_compiling=yes 1544 else 1545 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. 1546 If you meant to cross compile, use \`--host'. 1547 See \`config.log' for more details." >&5 1548 echo "$as_me: error: cannot run C++ compiled programs. 1549 If you meant to cross compile, use \`--host'. 1550 See \`config.log' for more details." >&2;} 1551 { (exit 1); exit 1; }; } 579 1552 fi 580 done 581 IFS="$ac_save_ifs" 582 fi 583 fi 584 CXX="$ac_cv_prog_CXX" 585 if test -n "$CXX"; then 586 echo "$ac_t""$CXX" 1>&6 587 else 588 echo "$ac_t""no" 1>&6 589 fi 590 591 test -n "$CXX" && break 1553 fi 1554 fi 1555 echo "$as_me:$LINENO: result: yes" >&5 1556 echo "${ECHO_T}yes" >&6 1557 1558 rm -f a.out a.exe conftest$ac_cv_exeext b.out 1559 ac_clean_files=$ac_clean_files_save 1560 # Check the compiler produces executables we can run. If not, either 1561 # the compiler is broken, or we cross compile. 1562 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1563 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1564 echo "$as_me:$LINENO: result: $cross_compiling" >&5 1565 echo "${ECHO_T}$cross_compiling" >&6 1566 1567 echo "$as_me:$LINENO: checking for suffix of executables" >&5 1568 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1570 (eval $ac_link) 2>&5 1571 ac_status=$? 1572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1573 (exit $ac_status); }; then 1574 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1575 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1576 # work properly (i.e., refer to `conftest.exe'), while it won't with 1577 # `rm'. 1578 for ac_file in conftest.exe conftest conftest.*; do 1579 test -f "$ac_file" || continue 1580 case $ac_file in 1581 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1582 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1583 export ac_cv_exeext 1584 break;; 1585 * ) break;; 1586 esac 592 1587 done 593 test -n "$CXX" || CXX="gcc" 594 595 596 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 597 echo "configure:598: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 598 599 ac_ext=C 600 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 601 ac_cpp='$CXXCPP $CPPFLAGS' 602 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 603 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 604 cross_compiling=$ac_cv_prog_cxx_cross 605 606 cat > conftest.$ac_ext <<EOF 607 #line 608 "configure" 608 #include "confdefs.h" 609 main(){return(0);} 610 EOF 611 if { (eval echo configure:612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 612 ac_cv_prog_cxx_works=yes 613 # If we can't run a trivial program, we are probably using a cross compiler. 614 if (./conftest; exit) 2>/dev/null; then 615 ac_cv_prog_cxx_cross=no 616 else 617 ac_cv_prog_cxx_cross=yes 618 fi 619 else 620 echo "configure: failed program was:" >&5 621 cat conftest.$ac_ext >&5 622 ac_cv_prog_cxx_works=no 623 fi 624 rm -fr conftest* 625 ac_ext=c 626 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 627 ac_cpp='$CPP $CPPFLAGS' 628 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 629 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 630 cross_compiling=$ac_cv_prog_cc_cross 631 632 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 633 if test $ac_cv_prog_cxx_works = no; then 634 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } 635 fi 636 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 637 echo "configure:638: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 638 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 639 cross_compiling=$ac_cv_prog_cxx_cross 640 641 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 642 echo "configure:643: checking whether we are using GNU C++" >&5 643 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then 644 echo $ac_n "(cached) $ac_c" 1>&6 645 else 646 cat > conftest.C <<EOF 647 #ifdef __GNUC__ 648 yes; 1588 else 1589 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1590 See \`config.log' for more details." >&5 1591 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 1592 See \`config.log' for more details." >&2;} 1593 { (exit 1); exit 1; }; } 1594 fi 1595 1596 rm -f conftest$ac_cv_exeext 1597 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1598 echo "${ECHO_T}$ac_cv_exeext" >&6 1599 1600 rm -f conftest.$ac_ext 1601 EXEEXT=$ac_cv_exeext 1602 ac_exeext=$EXEEXT 1603 echo "$as_me:$LINENO: checking for suffix of object files" >&5 1604 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1605 if test "${ac_cv_objext+set}" = set; then 1606 echo $ECHO_N "(cached) $ECHO_C" >&6 1607 else 1608 cat >conftest.$ac_ext <<_ACEOF 1609 /* confdefs.h. */ 1610 _ACEOF 1611 cat confdefs.h >>conftest.$ac_ext 1612 cat >>conftest.$ac_ext <<_ACEOF 1613 /* end confdefs.h. */ 1614 1615 int 1616 main () 1617 { 1618 1619 ; 1620 return 0; 1621 } 1622 _ACEOF 1623 rm -f conftest.o conftest.obj 1624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1625 (eval $ac_compile) 2>&5 1626 ac_status=$? 1627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1628 (exit $ac_status); }; then 1629 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1630 case $ac_file in 1631 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 1632 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1633 break;; 1634 esac 1635 done 1636 else 1637 echo "$as_me: failed program was:" >&5 1638 sed 's/^/| /' conftest.$ac_ext >&5 1639 1640 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 1641 See \`config.log' for more details." >&5 1642 echo "$as_me: error: cannot compute suffix of object files: cannot compile 1643 See \`config.log' for more details." >&2;} 1644 { (exit 1); exit 1; }; } 1645 fi 1646 1647 rm -f conftest.$ac_cv_objext conftest.$ac_ext 1648 fi 1649 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 1650 echo "${ECHO_T}$ac_cv_objext" >&6 1651 OBJEXT=$ac_cv_objext 1652 ac_objext=$OBJEXT 1653 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 1654 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 1655 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 1656 echo $ECHO_N "(cached) $ECHO_C" >&6 1657 else 1658 cat >conftest.$ac_ext <<_ACEOF 1659 /* confdefs.h. */ 1660 _ACEOF 1661 cat confdefs.h >>conftest.$ac_ext 1662 cat >>conftest.$ac_ext <<_ACEOF 1663 /* end confdefs.h. */ 1664 1665 int 1666 main () 1667 { 1668 #ifndef __GNUC__ 1669 choke me 649 1670 #endif 650 EOF 651 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 652 ac_cv_prog_gxx=yes 653 else 654 ac_cv_prog_gxx=no 655 fi 656 fi 657 658 echo "$ac_t""$ac_cv_prog_gxx" 1>&6 659 660 if test $ac_cv_prog_gxx = yes; then 661 GXX=yes 662 ac_test_CXXFLAGS="${CXXFLAGS+set}" 663 ac_save_CXXFLAGS="$CXXFLAGS" 664 CXXFLAGS= 665 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 666 echo "configure:667: checking whether ${CXX-g++} accepts -g" >&5 667 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then 668 echo $ac_n "(cached) $ac_c" 1>&6 669 else 670 echo 'void f(){}' > conftest.cc 671 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then 1671 1672 ; 1673 return 0; 1674 } 1675 _ACEOF 1676 rm -f conftest.$ac_objext 1677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1678 (eval $ac_compile) 2>conftest.er1 1679 ac_status=$? 1680 grep -v '^ *+' conftest.er1 >conftest.err 1681 rm -f conftest.er1 1682 cat conftest.err >&5 1683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1684 (exit $ac_status); } && 1685 { ac_try='test -z "$ac_cxx_werror_flag" 1686 || test ! -s conftest.err' 1687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1688 (eval $ac_try) 2>&5 1689 ac_status=$? 1690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1691 (exit $ac_status); }; } && 1692 { ac_try='test -s conftest.$ac_objext' 1693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1694 (eval $ac_try) 2>&5 1695 ac_status=$? 1696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1697 (exit $ac_status); }; }; then 1698 ac_compiler_gnu=yes 1699 else 1700 echo "$as_me: failed program was:" >&5 1701 sed 's/^/| /' conftest.$ac_ext >&5 1702 1703 ac_compiler_gnu=no 1704 fi 1705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1706 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 1707 1708 fi 1709 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 1710 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 1711 GXX=`test $ac_compiler_gnu = yes && echo yes` 1712 ac_test_CXXFLAGS=${CXXFLAGS+set} 1713 ac_save_CXXFLAGS=$CXXFLAGS 1714 CXXFLAGS="-g" 1715 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 1716 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 1717 if test "${ac_cv_prog_cxx_g+set}" = set; then 1718 echo $ECHO_N "(cached) $ECHO_C" >&6 1719 else 1720 cat >conftest.$ac_ext <<_ACEOF 1721 /* confdefs.h. */ 1722 _ACEOF 1723 cat confdefs.h >>conftest.$ac_ext 1724 cat >>conftest.$ac_ext <<_ACEOF 1725 /* end confdefs.h. */ 1726 1727 int 1728 main () 1729 { 1730 1731 ; 1732 return 0; 1733 } 1734 _ACEOF 1735 rm -f conftest.$ac_objext 1736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1737 (eval $ac_compile) 2>conftest.er1 1738 ac_status=$? 1739 grep -v '^ *+' conftest.er1 >conftest.err 1740 rm -f conftest.er1 1741 cat conftest.err >&5 1742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1743 (exit $ac_status); } && 1744 { ac_try='test -z "$ac_cxx_werror_flag" 1745 || test ! -s conftest.err' 1746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1747 (eval $ac_try) 2>&5 1748 ac_status=$? 1749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1750 (exit $ac_status); }; } && 1751 { ac_try='test -s conftest.$ac_objext' 1752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1753 (eval $ac_try) 2>&5 1754 ac_status=$? 1755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1756 (exit $ac_status); }; }; then 672 1757 ac_cv_prog_cxx_g=yes 673 1758 else 674 ac_cv_prog_cxx_g=no 675 fi 676 rm -f conftest* 677 678 fi 679 680 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 681 if test "$ac_test_CXXFLAGS" = set; then 682 CXXFLAGS="$ac_save_CXXFLAGS" 683 elif test $ac_cv_prog_cxx_g = yes; then 1759 echo "$as_me: failed program was:" >&5 1760 sed 's/^/| /' conftest.$ac_ext >&5 1761 1762 ac_cv_prog_cxx_g=no 1763 fi 1764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1765 fi 1766 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 1767 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 1768 if test "$ac_test_CXXFLAGS" = set; then 1769 CXXFLAGS=$ac_save_CXXFLAGS 1770 elif test $ac_cv_prog_cxx_g = yes; then 1771 if test "$GXX" = yes; then 684 1772 CXXFLAGS="-g -O2" 685 1773 else 1774 CXXFLAGS="-g" 1775 fi 1776 else 1777 if test "$GXX" = yes; then 686 1778 CXXFLAGS="-O2" 1779 else 1780 CXXFLAGS= 687 1781 fi 688 else 689 GXX= 690 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g" 691 fi 692 693 for ac_prog in mawk gawk nawk awk 1782 fi 1783 for ac_declaration in \ 1784 '' \ 1785 'extern "C" void std::exit (int) throw (); using std::exit;' \ 1786 'extern "C" void std::exit (int); using std::exit;' \ 1787 'extern "C" void exit (int) throw ();' \ 1788 'extern "C" void exit (int);' \ 1789 'void exit (int);' 694 1790 do 695 # Extract the first word of "$ac_prog", so it can be a program name with args. 1791 cat >conftest.$ac_ext <<_ACEOF 1792 /* confdefs.h. */ 1793 _ACEOF 1794 cat confdefs.h >>conftest.$ac_ext 1795 cat >>conftest.$ac_ext <<_ACEOF 1796 /* end confdefs.h. */ 1797 $ac_declaration 1798 #include <stdlib.h> 1799 int 1800 main () 1801 { 1802 exit (42); 1803 ; 1804 return 0; 1805 } 1806 _ACEOF 1807 rm -f conftest.$ac_objext 1808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1809 (eval $ac_compile) 2>conftest.er1 1810 ac_status=$? 1811 grep -v '^ *+' conftest.er1 >conftest.err 1812 rm -f conftest.er1 1813 cat conftest.err >&5 1814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1815 (exit $ac_status); } && 1816 { ac_try='test -z "$ac_cxx_werror_flag" 1817 || test ! -s conftest.err' 1818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1819 (eval $ac_try) 2>&5 1820 ac_status=$? 1821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1822 (exit $ac_status); }; } && 1823 { ac_try='test -s conftest.$ac_objext' 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 : 1830 else 1831 echo "$as_me: failed program was:" >&5 1832 sed 's/^/| /' conftest.$ac_ext >&5 1833 1834 continue 1835 fi 1836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1837 cat >conftest.$ac_ext <<_ACEOF 1838 /* confdefs.h. */ 1839 _ACEOF 1840 cat confdefs.h >>conftest.$ac_ext 1841 cat >>conftest.$ac_ext <<_ACEOF 1842 /* end confdefs.h. */ 1843 $ac_declaration 1844 int 1845 main () 1846 { 1847 exit (42); 1848 ; 1849 return 0; 1850 } 1851 _ACEOF 1852 rm -f conftest.$ac_objext 1853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1854 (eval $ac_compile) 2>conftest.er1 1855 ac_status=$? 1856 grep -v '^ *+' conftest.er1 >conftest.err 1857 rm -f conftest.er1 1858 cat conftest.err >&5 1859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1860 (exit $ac_status); } && 1861 { ac_try='test -z "$ac_cxx_werror_flag" 1862 || test ! -s conftest.err' 1863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1864 (eval $ac_try) 2>&5 1865 ac_status=$? 1866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1867 (exit $ac_status); }; } && 1868 { ac_try='test -s conftest.$ac_objext' 1869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1870 (eval $ac_try) 2>&5 1871 ac_status=$? 1872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1873 (exit $ac_status); }; }; then 1874 break 1875 else 1876 echo "$as_me: failed program was:" >&5 1877 sed 's/^/| /' conftest.$ac_ext >&5 1878 1879 fi 1880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1881 done 1882 rm -f conftest* 1883 if test -n "$ac_declaration"; then 1884 echo '#ifdef __cplusplus' >>confdefs.h 1885 echo $ac_declaration >>confdefs.h 1886 echo '#endif' >>confdefs.h 1887 fi 1888 1889 ac_ext=c 1890 ac_cpp='$CPP $CPPFLAGS' 1891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1893 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1894 1895 for ac_prog in gawk mawk nawk awk 1896 do 1897 # Extract the first word of "$ac_prog", so it can be a program name with args. 696 1898 set dummy $ac_prog; ac_word=$2 697 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6698 echo "configure:699: checking for $ac_word" >&5699 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then700 echo $ ac_n "(cached) $ac_c" 1>&61899 echo "$as_me:$LINENO: checking for $ac_word" >&5 1900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1901 if test "${ac_cv_prog_AWK+set}" = set; then 1902 echo $ECHO_N "(cached) $ECHO_C" >&6 701 1903 else 702 1904 if test -n "$AWK"; then 703 1905 ac_cv_prog_AWK="$AWK" # Let the user override the test. 704 1906 else 705 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 706 for ac_dir in $PATH; do 707 test -z "$ac_dir" && ac_dir=. 708 if test -f $ac_dir/$ac_word; then 709 ac_cv_prog_AWK="$ac_prog" 710 break 711 fi 712 done 713 IFS="$ac_save_ifs" 714 fi 715 fi 716 AWK="$ac_cv_prog_AWK" 1907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1908 for as_dir in $PATH 1909 do 1910 IFS=$as_save_IFS 1911 test -z "$as_dir" && as_dir=. 1912 for ac_exec_ext in '' $ac_executable_extensions; do 1913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1914 ac_cv_prog_AWK="$ac_prog" 1915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1916 break 2 1917 fi 1918 done 1919 done 1920 1921 fi 1922 fi 1923 AWK=$ac_cv_prog_AWK 717 1924 if test -n "$AWK"; then 718 echo "$ac_t""$AWK" 1>&6 719 else 720 echo "$ac_t""no" 1>&6 721 fi 722 723 test -n "$AWK" && break 1925 echo "$as_me:$LINENO: result: $AWK" >&5 1926 echo "${ECHO_T}$AWK" >&6 1927 else 1928 echo "$as_me:$LINENO: result: no" >&5 1929 echo "${ECHO_T}no" >&6 1930 fi 1931 1932 test -n "$AWK" && break 724 1933 done 725 1934 726 1935 for ac_prog in 'bison -y' byacc 727 1936 do 728 # Extract the first word of "$ac_prog", so it can be a program name with args.1937 # Extract the first word of "$ac_prog", so it can be a program name with args. 729 1938 set dummy $ac_prog; ac_word=$2 730 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6731 echo "configure:732: checking for $ac_word" >&5732 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then733 echo $ ac_n "(cached) $ac_c" 1>&61939 echo "$as_me:$LINENO: checking for $ac_word" >&5 1940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1941 if test "${ac_cv_prog_YACC+set}" = set; then 1942 echo $ECHO_N "(cached) $ECHO_C" >&6 734 1943 else 735 1944 if test -n "$YACC"; then 736 1945 ac_cv_prog_YACC="$YACC" # Let the user override the test. 737 1946 else 738 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 739 for ac_dir in $PATH; do 740 test -z "$ac_dir" && ac_dir=. 741 if test -f $ac_dir/$ac_word; then 742 ac_cv_prog_YACC="$ac_prog" 743 break 744 fi 745 done 746 IFS="$ac_save_ifs" 747 fi 748 fi 749 YACC="$ac_cv_prog_YACC" 1947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1948 for as_dir in $PATH 1949 do 1950 IFS=$as_save_IFS 1951 test -z "$as_dir" && as_dir=. 1952 for ac_exec_ext in '' $ac_executable_extensions; do 1953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1954 ac_cv_prog_YACC="$ac_prog" 1955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1956 break 2 1957 fi 1958 done 1959 done 1960 1961 fi 1962 fi 1963 YACC=$ac_cv_prog_YACC 750 1964 if test -n "$YACC"; then 751 echo "$ac_t""$YACC" 1>&6 752 else 753 echo "$ac_t""no" 1>&6 754 fi 755 756 test -n "$YACC" && break 1965 echo "$as_me:$LINENO: result: $YACC" >&5 1966 echo "${ECHO_T}$YACC" >&6 1967 else 1968 echo "$as_me:$LINENO: result: no" >&5 1969 echo "${ECHO_T}no" >&6 1970 fi 1971 1972 test -n "$YACC" && break 757 1973 done 758 1974 test -n "$YACC" || YACC="yacc" 759 1975 760 # Extract the first word of "gcc", so it can be a program name with args. 761 set dummy gcc; ac_word=$2 762 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 763 echo "configure:764: checking for $ac_word" >&5 764 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 765 echo $ac_n "(cached) $ac_c" 1>&6 1976 ac_ext=c 1977 ac_cpp='$CPP $CPPFLAGS' 1978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1980 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1981 if test -n "$ac_tool_prefix"; then 1982 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1983 set dummy ${ac_tool_prefix}gcc; ac_word=$2 1984 echo "$as_me:$LINENO: checking for $ac_word" >&5 1985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1986 if test "${ac_cv_prog_CC+set}" = set; then 1987 echo $ECHO_N "(cached) $ECHO_C" >&6 766 1988 else 767 1989 if test -n "$CC"; then 768 1990 ac_cv_prog_CC="$CC" # Let the user override the test. 769 1991 else 770 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 771 for ac_dir in $PATH; do 772 test -z "$ac_dir" && ac_dir=. 773 if test -f $ac_dir/$ac_word; then 774 ac_cv_prog_CC="gcc" 775 break 776 fi 777 done 778 IFS="$ac_save_ifs" 779 fi 780 fi 781 CC="$ac_cv_prog_CC" 1992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1993 for as_dir in $PATH 1994 do 1995 IFS=$as_save_IFS 1996 test -z "$as_dir" && as_dir=. 1997 for ac_exec_ext in '' $ac_executable_extensions; do 1998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1999 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2001 break 2 2002 fi 2003 done 2004 done 2005 2006 fi 2007 fi 2008 CC=$ac_cv_prog_CC 782 2009 if test -n "$CC"; then 783 echo "$ac_t""$CC" 1>&6 784 else 785 echo "$ac_t""no" 1>&6 786 fi 787 2010 echo "$as_me:$LINENO: result: $CC" >&5 2011 echo "${ECHO_T}$CC" >&6 2012 else 2013 echo "$as_me:$LINENO: result: no" >&5 2014 echo "${ECHO_T}no" >&6 2015 fi 2016 2017 fi 2018 if test -z "$ac_cv_prog_CC"; then 2019 ac_ct_CC=$CC 2020 # Extract the first word of "gcc", so it can be a program name with args. 2021 set dummy gcc; ac_word=$2 2022 echo "$as_me:$LINENO: checking for $ac_word" >&5 2023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2024 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2025 echo $ECHO_N "(cached) $ECHO_C" >&6 2026 else 2027 if test -n "$ac_ct_CC"; then 2028 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2029 else 2030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2031 for as_dir in $PATH 2032 do 2033 IFS=$as_save_IFS 2034 test -z "$as_dir" && as_dir=. 2035 for ac_exec_ext in '' $ac_executable_extensions; do 2036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2037 ac_cv_prog_ac_ct_CC="gcc" 2038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2039 break 2 2040 fi 2041 done 2042 done 2043 2044 fi 2045 fi 2046 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2047 if test -n "$ac_ct_CC"; then 2048 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2049 echo "${ECHO_T}$ac_ct_CC" >&6 2050 else 2051 echo "$as_me:$LINENO: result: no" >&5 2052 echo "${ECHO_T}no" >&6 2053 fi 2054 2055 CC=$ac_ct_CC 2056 else 2057 CC="$ac_cv_prog_CC" 2058 fi 2059 2060 if test -z "$CC"; then 2061 if test -n "$ac_tool_prefix"; then 2062 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2063 set dummy ${ac_tool_prefix}cc; ac_word=$2 2064 echo "$as_me:$LINENO: checking for $ac_word" >&5 2065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2066 if test "${ac_cv_prog_CC+set}" = set; then 2067 echo $ECHO_N "(cached) $ECHO_C" >&6 2068 else 2069 if test -n "$CC"; then 2070 ac_cv_prog_CC="$CC" # Let the user override the test. 2071 else 2072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2073 for as_dir in $PATH 2074 do 2075 IFS=$as_save_IFS 2076 test -z "$as_dir" && as_dir=. 2077 for ac_exec_ext in '' $ac_executable_extensions; do 2078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2079 ac_cv_prog_CC="${ac_tool_prefix}cc" 2080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2081 break 2 2082 fi 2083 done 2084 done 2085 2086 fi 2087 fi 2088 CC=$ac_cv_prog_CC 2089 if test -n "$CC"; then 2090 echo "$as_me:$LINENO: result: $CC" >&5 2091 echo "${ECHO_T}$CC" >&6 2092 else 2093 echo "$as_me:$LINENO: result: no" >&5 2094 echo "${ECHO_T}no" >&6 2095 fi 2096 2097 fi 2098 if test -z "$ac_cv_prog_CC"; then 2099 ac_ct_CC=$CC 2100 # Extract the first word of "cc", so it can be a program name with args. 2101 set dummy cc; ac_word=$2 2102 echo "$as_me:$LINENO: checking for $ac_word" >&5 2103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2104 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2105 echo $ECHO_N "(cached) $ECHO_C" >&6 2106 else 2107 if test -n "$ac_ct_CC"; then 2108 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2109 else 2110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2111 for as_dir in $PATH 2112 do 2113 IFS=$as_save_IFS 2114 test -z "$as_dir" && as_dir=. 2115 for ac_exec_ext in '' $ac_executable_extensions; do 2116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2117 ac_cv_prog_ac_ct_CC="cc" 2118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2119 break 2 2120 fi 2121 done 2122 done 2123 2124 fi 2125 fi 2126 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2127 if test -n "$ac_ct_CC"; then 2128 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2129 echo "${ECHO_T}$ac_ct_CC" >&6 2130 else 2131 echo "$as_me:$LINENO: result: no" >&5 2132 echo "${ECHO_T}no" >&6 2133 fi 2134 2135 CC=$ac_ct_CC 2136 else 2137 CC="$ac_cv_prog_CC" 2138 fi 2139 2140 fi 788 2141 if test -z "$CC"; then 789 2142 # Extract the first word of "cc", so it can be a program name with args. 790 2143 set dummy cc; ac_word=$2 791 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6792 echo "configure:793: checking for $ac_word" >&5793 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then794 echo $ ac_n "(cached) $ac_c" 1>&62144 echo "$as_me:$LINENO: checking for $ac_word" >&5 2145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2146 if test "${ac_cv_prog_CC+set}" = set; then 2147 echo $ECHO_N "(cached) $ECHO_C" >&6 795 2148 else 796 2149 if test -n "$CC"; then 797 2150 ac_cv_prog_CC="$CC" # Let the user override the test. 798 2151 else 799 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"800 2152 ac_prog_rejected=no 801 for ac_dir in $PATH; do 802 test -z "$ac_dir" && ac_dir=. 803 if test -f $ac_dir/$ac_word; then 804 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 805 ac_prog_rejected=yes 806 continue 807 fi 808 ac_cv_prog_CC="cc" 809 break 810 fi 811 done 812 IFS="$ac_save_ifs" 2153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2154 for as_dir in $PATH 2155 do 2156 IFS=$as_save_IFS 2157 test -z "$as_dir" && as_dir=. 2158 for ac_exec_ext in '' $ac_executable_extensions; do 2159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2160 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2161 ac_prog_rejected=yes 2162 continue 2163 fi 2164 ac_cv_prog_CC="cc" 2165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2166 break 2 2167 fi 2168 done 2169 done 2170 813 2171 if test $ac_prog_rejected = yes; then 814 2172 # We found a bogon in the path, so make sure we never use it. 815 2173 set dummy $ac_cv_prog_CC 816 2174 shift 817 if test $# -gt0; then2175 if test $# != 0; then 818 2176 # We chose a different compiler from the bogus one. 819 2177 # However, it has the same basename, so the bogon will be chosen 820 2178 # first if we set CC to just the basename; use the full file name. 821 2179 shift 822 set dummy "$ac_dir/$ac_word" "$@" 823 shift 824 ac_cv_prog_CC="$@" 2180 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 825 2181 fi 826 2182 fi 827 2183 fi 828 2184 fi 829 CC= "$ac_cv_prog_CC"2185 CC=$ac_cv_prog_CC 830 2186 if test -n "$CC"; then 831 echo "$ac_t""$CC" 1>&6 832 else 833 echo "$ac_t""no" 1>&6 834 fi 835 836 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 837 fi 838 839 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 840 echo "configure:841: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 841 842 ac_ext=c 843 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 844 ac_cpp='$CPP $CPPFLAGS' 845 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 846 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 847 cross_compiling=$ac_cv_prog_cc_cross 848 849 cat > conftest.$ac_ext <<EOF 850 #line 851 "configure" 851 #include "confdefs.h" 852 main(){return(0);} 853 EOF 854 if { (eval echo configure:855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 855 ac_cv_prog_cc_works=yes 856 # If we can't run a trivial program, we are probably using a cross compiler. 857 if (./conftest; exit) 2>/dev/null; then 858 ac_cv_prog_cc_cross=no 859 else 860 ac_cv_prog_cc_cross=yes 2187 echo "$as_me:$LINENO: result: $CC" >&5 2188 echo "${ECHO_T}$CC" >&6 2189 else 2190 echo "$as_me:$LINENO: result: no" >&5 2191 echo "${ECHO_T}no" >&6 2192 fi 2193 2194 fi 2195 if test -z "$CC"; then 2196 if test -n "$ac_tool_prefix"; then 2197 for ac_prog in cl 2198 do 2199 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2200 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2201 echo "$as_me:$LINENO: checking for $ac_word" >&5 2202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2203 if test "${ac_cv_prog_CC+set}" = set; then 2204 echo $ECHO_N "(cached) $ECHO_C" >&6 2205 else 2206 if test -n "$CC"; then 2207 ac_cv_prog_CC="$CC" # Let the user override the test. 2208 else 2209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2210 for as_dir in $PATH 2211 do 2212 IFS=$as_save_IFS 2213 test -z "$as_dir" && as_dir=. 2214 for ac_exec_ext in '' $ac_executable_extensions; do 2215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2216 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2218 break 2 861 2219 fi 862 else 863 echo "configure: failed program was:" >&5 864 cat conftest.$ac_ext >&5 865 ac_cv_prog_cc_works=no 866 fi 867 rm -fr conftest* 868 869 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 870 if test $ac_cv_prog_cc_works = no; then 871 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 872 fi 873 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 874 echo "configure:875: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 875 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 876 cross_compiling=$ac_cv_prog_cc_cross 877 878 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 879 echo "configure:880: checking whether we are using GNU C" >&5 880 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 881 echo $ac_n "(cached) $ac_c" 1>&6 882 else 883 cat > conftest.c <<EOF 884 #ifdef __GNUC__ 885 yes; 2220 done 2221 done 2222 2223 fi 2224 fi 2225 CC=$ac_cv_prog_CC 2226 if test -n "$CC"; then 2227 echo "$as_me:$LINENO: result: $CC" >&5 2228 echo "${ECHO_T}$CC" >&6 2229 else 2230 echo "$as_me:$LINENO: result: no" >&5 2231 echo "${ECHO_T}no" >&6 2232 fi 2233 2234 test -n "$CC" && break 2235 done 2236 fi 2237 if test -z "$CC"; then 2238 ac_ct_CC=$CC 2239 for ac_prog in cl 2240 do 2241 # Extract the first word of "$ac_prog", so it can be a program name with args. 2242 set dummy $ac_prog; ac_word=$2 2243 echo "$as_me:$LINENO: checking for $ac_word" >&5 2244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2245 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2246 echo $ECHO_N "(cached) $ECHO_C" >&6 2247 else 2248 if test -n "$ac_ct_CC"; then 2249 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2250 else 2251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2252 for as_dir in $PATH 2253 do 2254 IFS=$as_save_IFS 2255 test -z "$as_dir" && as_dir=. 2256 for ac_exec_ext in '' $ac_executable_extensions; do 2257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2258 ac_cv_prog_ac_ct_CC="$ac_prog" 2259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2260 break 2 2261 fi 2262 done 2263 done 2264 2265 fi 2266 fi 2267 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2268 if test -n "$ac_ct_CC"; then 2269 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2270 echo "${ECHO_T}$ac_ct_CC" >&6 2271 else 2272 echo "$as_me:$LINENO: result: no" >&5 2273 echo "${ECHO_T}no" >&6 2274 fi 2275 2276 test -n "$ac_ct_CC" && break 2277 done 2278 2279 CC=$ac_ct_CC 2280 fi 2281 2282 fi 2283 2284 2285 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2286 See \`config.log' for more details." >&5 2287 echo "$as_me: error: no acceptable C compiler found in \$PATH 2288 See \`config.log' for more details." >&2;} 2289 { (exit 1); exit 1; }; } 2290 2291 # Provide some information about the compiler. 2292 echo "$as_me:$LINENO:" \ 2293 "checking for C compiler version" >&5 2294 ac_compiler=`set X $ac_compile; echo $2` 2295 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2296 (eval $ac_compiler --version </dev/null >&5) 2>&5 2297 ac_status=$? 2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2299 (exit $ac_status); } 2300 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2301 (eval $ac_compiler -v </dev/null >&5) 2>&5 2302 ac_status=$? 2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2304 (exit $ac_status); } 2305 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2306 (eval $ac_compiler -V </dev/null >&5) 2>&5 2307 ac_status=$? 2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2309 (exit $ac_status); } 2310 2311 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2312 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2313 if test "${ac_cv_c_compiler_gnu+set}" = set; then 2314 echo $ECHO_N "(cached) $ECHO_C" >&6 2315 else 2316 cat >conftest.$ac_ext <<_ACEOF 2317 /* confdefs.h. */ 2318 _ACEOF 2319 cat confdefs.h >>conftest.$ac_ext 2320 cat >>conftest.$ac_ext <<_ACEOF 2321 /* end confdefs.h. */ 2322 2323 int 2324 main () 2325 { 2326 #ifndef __GNUC__ 2327 choke me 886 2328 #endif 887 EOF 888 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 889 ac_cv_prog_gcc=yes 890 else 891 ac_cv_prog_gcc=no 892 fi 893 fi 894 895 echo "$ac_t""$ac_cv_prog_gcc" 1>&6 896 897 if test $ac_cv_prog_gcc = yes; then 898 GCC=yes 899 ac_test_CFLAGS="${CFLAGS+set}" 900 ac_save_CFLAGS="$CFLAGS" 901 CFLAGS= 902 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 903 echo "configure:904: checking whether ${CC-cc} accepts -g" >&5 904 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 905 echo $ac_n "(cached) $ac_c" 1>&6 906 else 907 echo 'void f(){}' > conftest.c 908 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 2329 2330 ; 2331 return 0; 2332 } 2333 _ACEOF 2334 rm -f conftest.$ac_objext 2335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2336 (eval $ac_compile) 2>conftest.er1 2337 ac_status=$? 2338 grep -v '^ *+' conftest.er1 >conftest.err 2339 rm -f conftest.er1 2340 cat conftest.err >&5 2341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2342 (exit $ac_status); } && 2343 { ac_try='test -z "$ac_c_werror_flag" 2344 || test ! -s conftest.err' 2345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2346 (eval $ac_try) 2>&5 2347 ac_status=$? 2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2349 (exit $ac_status); }; } && 2350 { ac_try='test -s conftest.$ac_objext' 2351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2352 (eval $ac_try) 2>&5 2353 ac_status=$? 2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2355 (exit $ac_status); }; }; then 2356 ac_compiler_gnu=yes 2357 else 2358 echo "$as_me: failed program was:" >&5 2359 sed 's/^/| /' conftest.$ac_ext >&5 2360 2361 ac_compiler_gnu=no 2362 fi 2363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2364 ac_cv_c_compiler_gnu=$ac_compiler_gnu 2365 2366 fi 2367 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2368 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2369 GCC=`test $ac_compiler_gnu = yes && echo yes` 2370 ac_test_CFLAGS=${CFLAGS+set} 2371 ac_save_CFLAGS=$CFLAGS 2372 CFLAGS="-g" 2373 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2374 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2375 if test "${ac_cv_prog_cc_g+set}" = set; then 2376 echo $ECHO_N "(cached) $ECHO_C" >&6 2377 else 2378 cat >conftest.$ac_ext <<_ACEOF 2379 /* confdefs.h. */ 2380 _ACEOF 2381 cat confdefs.h >>conftest.$ac_ext 2382 cat >>conftest.$ac_ext <<_ACEOF 2383 /* end confdefs.h. */ 2384 2385 int 2386 main () 2387 { 2388 2389 ; 2390 return 0; 2391 } 2392 _ACEOF 2393 rm -f conftest.$ac_objext 2394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2395 (eval $ac_compile) 2>conftest.er1 2396 ac_status=$? 2397 grep -v '^ *+' conftest.er1 >conftest.err 2398 rm -f conftest.er1 2399 cat conftest.err >&5 2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2401 (exit $ac_status); } && 2402 { ac_try='test -z "$ac_c_werror_flag" 2403 || test ! -s conftest.err' 2404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2405 (eval $ac_try) 2>&5 2406 ac_status=$? 2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2408 (exit $ac_status); }; } && 2409 { ac_try='test -s conftest.$ac_objext' 2410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2411 (eval $ac_try) 2>&5 2412 ac_status=$? 2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2414 (exit $ac_status); }; }; then 909 2415 ac_cv_prog_cc_g=yes 910 2416 else 911 ac_cv_prog_cc_g=no 912 fi 913 rm -f conftest* 914 915 fi 916 917 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 918 if test "$ac_test_CFLAGS" = set; then 919 CFLAGS="$ac_save_CFLAGS" 920 elif test $ac_cv_prog_cc_g = yes; then 2417 echo "$as_me: failed program was:" >&5 2418 sed 's/^/| /' conftest.$ac_ext >&5 2419 2420 ac_cv_prog_cc_g=no 2421 fi 2422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2423 fi 2424 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2425 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2426 if test "$ac_test_CFLAGS" = set; then 2427 CFLAGS=$ac_save_CFLAGS 2428 elif test $ac_cv_prog_cc_g = yes; then 2429 if test "$GCC" = yes; then 921 2430 CFLAGS="-g -O2" 922 2431 else 2432 CFLAGS="-g" 2433 fi 2434 else 2435 if test "$GCC" = yes; then 923 2436 CFLAGS="-O2" 2437 else 2438 CFLAGS= 924 2439 fi 925 else 926 GCC= 927 test "${CFLAGS+set}" = set || CFLAGS="-g" 928 fi 2440 fi 2441 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2442 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2443 if test "${ac_cv_prog_cc_stdc+set}" = set; then 2444 echo $ECHO_N "(cached) $ECHO_C" >&6 2445 else 2446 ac_cv_prog_cc_stdc=no 2447 ac_save_CC=$CC 2448 cat >conftest.$ac_ext <<_ACEOF 2449 /* confdefs.h. */ 2450 _ACEOF 2451 cat confdefs.h >>conftest.$ac_ext 2452 cat >>conftest.$ac_ext <<_ACEOF 2453 /* end confdefs.h. */ 2454 #include <stdarg.h> 2455 #include <stdio.h> 2456 #include <sys/types.h> 2457 #include <sys/stat.h> 2458 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2459 struct buf { int x; }; 2460 FILE * (*rcsopen) (struct buf *, struct stat *, int); 2461 static char *e (p, i) 2462 char **p; 2463 int i; 2464 { 2465 return p[i]; 2466 } 2467 static char *f (char * (*g) (char **, int), char **p, ...) 2468 { 2469 char *s; 2470 va_list v; 2471 va_start (v,p); 2472 s = g (p, va_arg (v,int)); 2473 va_end (v); 2474 return s; 2475 } 2476 2477 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2478 function prototypes and stuff, but not '\xHH' hex character constants. 2479 These don't provoke an error unfortunately, instead are silently treated 2480 as 'x'. The following induces an error, until -std1 is added to get 2481 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2482 array size at least. It's necessary to write '\x00'==0 to get something 2483 that's true only with -std1. */ 2484 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2485 2486 int test (int i, double x); 2487 struct s1 {int (*f) (int a);}; 2488 struct s2 {int (*f) (double a);}; 2489 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2490 int argc; 2491 char **argv; 2492 int 2493 main () 2494 { 2495 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2496 ; 2497 return 0; 2498 } 2499 _ACEOF 2500 # Don't try gcc -ansi; that turns off useful extensions and 2501 # breaks some systems' header files. 2502 # AIX -qlanglvl=ansi 2503 # Ultrix and OSF/1 -std1 2504 # HP-UX 10.20 and later -Ae 2505 # HP-UX older versions -Aa -D_HPUX_SOURCE 2506 # SVR4 -Xc -D__EXTENSIONS__ 2507 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2508 do 2509 CC="$ac_save_CC $ac_arg" 2510 rm -f conftest.$ac_objext 2511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2512 (eval $ac_compile) 2>conftest.er1 2513 ac_status=$? 2514 grep -v '^ *+' conftest.er1 >conftest.err 2515 rm -f conftest.er1 2516 cat conftest.err >&5 2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2518 (exit $ac_status); } && 2519 { ac_try='test -z "$ac_c_werror_flag" 2520 || test ! -s conftest.err' 2521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2522 (eval $ac_try) 2>&5 2523 ac_status=$? 2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2525 (exit $ac_status); }; } && 2526 { ac_try='test -s conftest.$ac_objext' 2527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2528 (eval $ac_try) 2>&5 2529 ac_status=$? 2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2531 (exit $ac_status); }; }; then 2532 ac_cv_prog_cc_stdc=$ac_arg 2533 break 2534 else 2535 echo "$as_me: failed program was:" >&5 2536 sed 's/^/| /' conftest.$ac_ext >&5 2537 2538 fi 2539 rm -f conftest.err conftest.$ac_objext 2540 done 2541 rm -f conftest.$ac_ext conftest.$ac_objext 2542 CC=$ac_save_CC 2543 2544 fi 2545 2546 case "x$ac_cv_prog_cc_stdc" in 2547 x|xno) 2548 echo "$as_me:$LINENO: result: none needed" >&5 2549 echo "${ECHO_T}none needed" >&6 ;; 2550 *) 2551 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2552 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2553 CC="$CC $ac_cv_prog_cc_stdc" ;; 2554 esac 2555 2556 # Some people use a C++ compiler to compile C. Since we use `exit', 2557 # in C++ we need to declare it. In case someone uses the same compiler 2558 # for both compiling C and C++ we need to have the C++ compiler decide 2559 # the declaration of exit, since it's the most demanding environment. 2560 cat >conftest.$ac_ext <<_ACEOF 2561 #ifndef __cplusplus 2562 choke me 2563 #endif 2564 _ACEOF 2565 rm -f conftest.$ac_objext 2566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2567 (eval $ac_compile) 2>conftest.er1 2568 ac_status=$? 2569 grep -v '^ *+' conftest.er1 >conftest.err 2570 rm -f conftest.er1 2571 cat conftest.err >&5 2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2573 (exit $ac_status); } && 2574 { ac_try='test -z "$ac_c_werror_flag" 2575 || test ! -s conftest.err' 2576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2577 (eval $ac_try) 2>&5 2578 ac_status=$? 2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2580 (exit $ac_status); }; } && 2581 { ac_try='test -s conftest.$ac_objext' 2582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2583 (eval $ac_try) 2>&5 2584 ac_status=$? 2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2586 (exit $ac_status); }; }; then 2587 for ac_declaration in \ 2588 '' \ 2589 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2590 'extern "C" void std::exit (int); using std::exit;' \ 2591 'extern "C" void exit (int) throw ();' \ 2592 'extern "C" void exit (int);' \ 2593 'void exit (int);' 2594 do 2595 cat >conftest.$ac_ext <<_ACEOF 2596 /* confdefs.h. */ 2597 _ACEOF 2598 cat confdefs.h >>conftest.$ac_ext 2599 cat >>conftest.$ac_ext <<_ACEOF 2600 /* end confdefs.h. */ 2601 $ac_declaration 2602 #include <stdlib.h> 2603 int 2604 main () 2605 { 2606 exit (42); 2607 ; 2608 return 0; 2609 } 2610 _ACEOF 2611 rm -f conftest.$ac_objext 2612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2613 (eval $ac_compile) 2>conftest.er1 2614 ac_status=$? 2615 grep -v '^ *+' conftest.er1 >conftest.err 2616 rm -f conftest.er1 2617 cat conftest.err >&5 2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2619 (exit $ac_status); } && 2620 { ac_try='test -z "$ac_c_werror_flag" 2621 || test ! -s conftest.err' 2622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2623 (eval $ac_try) 2>&5 2624 ac_status=$? 2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2626 (exit $ac_status); }; } && 2627 { ac_try='test -s conftest.$ac_objext' 2628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2629 (eval $ac_try) 2>&5 2630 ac_status=$? 2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2632 (exit $ac_status); }; }; then 2633 : 2634 else 2635 echo "$as_me: failed program was:" >&5 2636 sed 's/^/| /' conftest.$ac_ext >&5 2637 2638 continue 2639 fi 2640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2641 cat >conftest.$ac_ext <<_ACEOF 2642 /* confdefs.h. */ 2643 _ACEOF 2644 cat confdefs.h >>conftest.$ac_ext 2645 cat >>conftest.$ac_ext <<_ACEOF 2646 /* end confdefs.h. */ 2647 $ac_declaration 2648 int 2649 main () 2650 { 2651 exit (42); 2652 ; 2653 return 0; 2654 } 2655 _ACEOF 2656 rm -f conftest.$ac_objext 2657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2658 (eval $ac_compile) 2>conftest.er1 2659 ac_status=$? 2660 grep -v '^ *+' conftest.er1 >conftest.err 2661 rm -f conftest.er1 2662 cat conftest.err >&5 2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2664 (exit $ac_status); } && 2665 { ac_try='test -z "$ac_c_werror_flag" 2666 || test ! -s conftest.err' 2667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2668 (eval $ac_try) 2>&5 2669 ac_status=$? 2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2671 (exit $ac_status); }; } && 2672 { ac_try='test -s conftest.$ac_objext' 2673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2674 (eval $ac_try) 2>&5 2675 ac_status=$? 2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2677 (exit $ac_status); }; }; then 2678 break 2679 else 2680 echo "$as_me: failed program was:" >&5 2681 sed 's/^/| /' conftest.$ac_ext >&5 2682 2683 fi 2684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2685 done 2686 rm -f conftest* 2687 if test -n "$ac_declaration"; then 2688 echo '#ifdef __cplusplus' >>confdefs.h 2689 echo $ac_declaration >>confdefs.h 2690 echo '#endif' >>confdefs.h 2691 fi 2692 2693 else 2694 echo "$as_me: failed program was:" >&5 2695 sed 's/^/| /' conftest.$ac_ext >&5 2696 2697 fi 2698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2699 ac_ext=c 2700 ac_cpp='$CPP $CPPFLAGS' 2701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2703 ac_compiler_gnu=$ac_cv_c_compiler_gnu 929 2704 930 2705 ac_aux_dir= … … 938 2713 ac_install_sh="$ac_aux_dir/install.sh -c" 939 2714 break 2715 elif test -f $ac_dir/shtool; then 2716 ac_aux_dir=$ac_dir 2717 ac_install_sh="$ac_aux_dir/shtool install -c" 2718 break 940 2719 fi 941 2720 done 942 2721 if test -z "$ac_aux_dir"; then 943 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 944 fi 945 ac_config_guess=$ac_aux_dir/config.guess 946 ac_config_sub=$ac_aux_dir/config.sub 947 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 2722 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 2723 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 2724 { (exit 1); exit 1; }; } 2725 fi 2726 ac_config_guess="$SHELL $ac_aux_dir/config.guess" 2727 ac_config_sub="$SHELL $ac_aux_dir/config.sub" 2728 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 948 2729 949 2730 # Find a good install program. We prefer a C program (faster), … … 954 2735 # IRIX /sbin/install 955 2736 # AIX /bin/install 2737 # AmigaOS /C/install, which installs bootblocks on floppy discs 2738 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 956 2739 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 957 2740 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2741 # OS/2's system install, which has a completely different semantic 958 2742 # ./install, which can be erroneously created by make from ./install.sh. 959 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6960 echo "configure:961: checking for a BSD compatible install" >&52743 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2744 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 961 2745 if test -z "$INSTALL"; then 962 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 963 echo $ac_n "(cached) $ac_c" 1>&6 964 else 965 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" 966 for ac_dir in $PATH; do 967 # Account for people who put trailing slashes in PATH elements. 968 case "$ac_dir/" in 969 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 970 *) 971 # OSF1 and SCO ODT 3.0 have their own names for install. 972 for ac_prog in ginstall installbsd scoinst install; do 973 if test -f $ac_dir/$ac_prog; then 2746 if test "${ac_cv_path_install+set}" = set; then 2747 echo $ECHO_N "(cached) $ECHO_C" >&6 2748 else 2749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2750 for as_dir in $PATH 2751 do 2752 IFS=$as_save_IFS 2753 test -z "$as_dir" && as_dir=. 2754 # Account for people who put trailing slashes in PATH elements. 2755 case $as_dir/ in 2756 ./ | .// | /cC/* | \ 2757 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2758 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2759 /usr/ucb/* ) ;; 2760 *) 2761 # OSF1 and SCO ODT 3.0 have their own names for install. 2762 # Don't use installbsd from OSF since it installs stuff as root 2763 # by default. 2764 for ac_prog in ginstall scoinst install; do 2765 for ac_exec_ext in '' $ac_executable_extensions; do 2766 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 974 2767 if test $ac_prog = install && 975 grep dspmsg $ac_dir/$ac_prog>/dev/null 2>&1; then2768 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 976 2769 # AIX install. It has an incompatible calling convention. 977 # OSF/1 installbsd also uses dspmsg, but is usable. 2770 : 2771 elif test $ac_prog = install && 2772 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2773 # program-specific install script used by HP pwplus--don't use. 978 2774 : 979 2775 else 980 ac_cv_path_install="$a c_dir/$ac_prog-c"981 break 22776 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2777 break 3 982 2778 fi 983 2779 fi 984 2780 done 985 ;; 986 esac 987 done 988 IFS="$ac_save_IFS" 2781 done 2782 ;; 2783 esac 2784 done 2785 989 2786 990 2787 fi 991 2788 if test "${ac_cv_path_install+set}" = set; then 992 INSTALL= "$ac_cv_path_install"2789 INSTALL=$ac_cv_path_install 993 2790 else 994 2791 # As a last resort, use the slow shell script. We don't cache a … … 996 2793 # break other packages using the cache if that directory is 997 2794 # removed, or if the path is relative. 998 INSTALL= "$ac_install_sh"2795 INSTALL=$ac_install_sh 999 2796 fi 1000 2797 fi 1001 echo "$ac_t""$INSTALL" 1>&6 2798 echo "$as_me:$LINENO: result: $INSTALL" >&5 2799 echo "${ECHO_T}$INSTALL" >&6 1002 2800 1003 2801 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. … … 1005 2803 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1006 2804 2805 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2806 1007 2807 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1008 2808 1009 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1010 echo "configure:1011: checking whether ln -s works" >&5 1011 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1012 echo $ac_n "(cached) $ac_c" 1>&6 1013 else 1014 rm -f conftestdata 1015 if ln -s X conftestdata 2>/dev/null 1016 then 1017 rm -f conftestdata 1018 ac_cv_prog_LN_S="ln -s" 1019 else 1020 ac_cv_prog_LN_S=ln 1021 fi 1022 fi 1023 LN_S="$ac_cv_prog_LN_S" 1024 if test "$ac_cv_prog_LN_S" = "ln -s"; then 1025 echo "$ac_t""yes" 1>&6 1026 else 1027 echo "$ac_t""no" 1>&6 1028 fi 1029 1030 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 1031 echo "configure:1032: checking whether ${MAKE-make} sets \${MAKE}" >&5 1032 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 1033 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 1034 echo $ac_n "(cached) $ac_c" 1>&6 1035 else 1036 cat > conftestmake <<\EOF 2809 echo "$as_me:$LINENO: checking whether ln -s works" >&5 2810 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 2811 LN_S=$as_ln_s 2812 if test "$LN_S" = "ln -s"; then 2813 echo "$as_me:$LINENO: result: yes" >&5 2814 echo "${ECHO_T}yes" >&6 2815 else 2816 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 2817 echo "${ECHO_T}no, using $LN_S" >&6 2818 fi 2819 2820 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2821 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 2822 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 2823 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 2824 echo $ECHO_N "(cached) $ECHO_C" >&6 2825 else 2826 cat >conftest.make <<\_ACEOF 1037 2827 all: 1038 @echo 'ac_maketemp="$ {MAKE}"'1039 EOF2828 @echo 'ac_maketemp="$(MAKE)"' 2829 _ACEOF 1040 2830 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1041 eval `${MAKE-make} -f conftest make 2>/dev/null | grep temp=`2831 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1042 2832 if test -n "$ac_maketemp"; then 1043 2833 eval ac_cv_prog_make_${ac_make}_set=yes … … 1045 2835 eval ac_cv_prog_make_${ac_make}_set=no 1046 2836 fi 1047 rm -f conftest make2837 rm -f conftest.make 1048 2838 fi 1049 2839 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1050 echo "$ac_t""yes" 1>&6 2840 echo "$as_me:$LINENO: result: yes" >&5 2841 echo "${ECHO_T}yes" >&6 1051 2842 SET_MAKE= 1052 2843 else 1053 echo "$ac_t""no" 1>&6 2844 echo "$as_me:$LINENO: result: no" >&5 2845 echo "${ECHO_T}no" >&6 1054 2846 SET_MAKE="MAKE=${MAKE-make}" 1055 2847 fi 1056 2848 1057 # Extract the first word of "ranlib", so it can be a program name with args. 1058 set dummy ranlib; ac_word=$2 1059 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1060 echo "configure:1061: checking for $ac_word" >&5 1061 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 1062 echo $ac_n "(cached) $ac_c" 1>&6 2849 if test -n "$ac_tool_prefix"; then 2850 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 2851 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 2852 echo "$as_me:$LINENO: checking for $ac_word" >&5 2853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2854 if test "${ac_cv_prog_RANLIB+set}" = set; then 2855 echo $ECHO_N "(cached) $ECHO_C" >&6 1063 2856 else 1064 2857 if test -n "$RANLIB"; then 1065 2858 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 1066 2859 else 1067 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1068 for ac_dir in $PATH; do 1069 test -z "$ac_dir" && ac_dir=. 1070 if test -f $ac_dir/$ac_word; then 1071 ac_cv_prog_RANLIB="ranlib" 1072 break 1073 fi 1074 done 1075 IFS="$ac_save_ifs" 1076 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 1077 fi 1078 fi 1079 RANLIB="$ac_cv_prog_RANLIB" 2860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2861 for as_dir in $PATH 2862 do 2863 IFS=$as_save_IFS 2864 test -z "$as_dir" && as_dir=. 2865 for ac_exec_ext in '' $ac_executable_extensions; do 2866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2867 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 2868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2869 break 2 2870 fi 2871 done 2872 done 2873 2874 fi 2875 fi 2876 RANLIB=$ac_cv_prog_RANLIB 1080 2877 if test -n "$RANLIB"; then 1081 echo "$ac_t""$RANLIB" 1>&6 1082 else 1083 echo "$ac_t""no" 1>&6 1084 fi 1085 1086 1087 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1088 echo "configure:1089: checking how to run the C preprocessor" >&5 2878 echo "$as_me:$LINENO: result: $RANLIB" >&5 2879 echo "${ECHO_T}$RANLIB" >&6 2880 else 2881 echo "$as_me:$LINENO: result: no" >&5 2882 echo "${ECHO_T}no" >&6 2883 fi 2884 2885 fi 2886 if test -z "$ac_cv_prog_RANLIB"; then 2887 ac_ct_RANLIB=$RANLIB 2888 # Extract the first word of "ranlib", so it can be a program name with args. 2889 set dummy ranlib; ac_word=$2 2890 echo "$as_me:$LINENO: checking for $ac_word" >&5 2891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2892 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 2893 echo $ECHO_N "(cached) $ECHO_C" >&6 2894 else 2895 if test -n "$ac_ct_RANLIB"; then 2896 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 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 for ac_exec_ext in '' $ac_executable_extensions; do 2904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2905 ac_cv_prog_ac_ct_RANLIB="ranlib" 2906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2907 break 2 2908 fi 2909 done 2910 done 2911 2912 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 2913 fi 2914 fi 2915 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 2916 if test -n "$ac_ct_RANLIB"; then 2917 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 2918 echo "${ECHO_T}$ac_ct_RANLIB" >&6 2919 else 2920 echo "$as_me:$LINENO: result: no" >&5 2921 echo "${ECHO_T}no" >&6 2922 fi 2923 2924 RANLIB=$ac_ct_RANLIB 2925 else 2926 RANLIB="$ac_cv_prog_RANLIB" 2927 fi 2928 2929 2930 2931 ac_ext=c 2932 ac_cpp='$CPP $CPPFLAGS' 2933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2935 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2936 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2937 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 1089 2938 # On Suns, sometimes $CPP names a directory. 1090 2939 if test -n "$CPP" && test -d "$CPP"; then … … 1092 2941 fi 1093 2942 if test -z "$CPP"; then 1094 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 1095 echo $ac_n "(cached) $ac_c" 1>&6 1096 else 1097 # This must be in double quotes, not single quotes, because CPP may get 1098 # substituted into the Makefile and "${CC-cc}" will confuse make. 1099 CPP="${CC-cc} -E" 2943 if test "${ac_cv_prog_CPP+set}" = set; then 2944 echo $ECHO_N "(cached) $ECHO_C" >&6 2945 else 2946 # Double quotes because CPP needs to be expanded 2947 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2948 do 2949 ac_preproc_ok=false 2950 for ac_c_preproc_warn_flag in '' yes 2951 do 2952 # Use a header file that comes with gcc, so configuring glibc 2953 # with a fresh cross-compiler works. 2954 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2955 # <limits.h> exists even on freestanding compilers. 1100 2956 # On the NeXT, cc -E runs the code through the compiler's parser, 1101 # not just through cpp. 1102 cat > conftest.$ac_ext <<EOF 1103 #line 1104 "configure" 1104 #include "confdefs.h" 1105 #include <assert.h> 1106 Syntax Error 1107 EOF 1108 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1109 { (eval echo configure:1110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1110 ac_err=`grep -v '^ *+' conftest.out` 1111 if test -z "$ac_err"; then 2957 # not just through cpp. "Syntax error" is here to catch this case. 2958 cat >conftest.$ac_ext <<_ACEOF 2959 /* confdefs.h. */ 2960 _ACEOF 2961 cat confdefs.h >>conftest.$ac_ext 2962 cat >>conftest.$ac_ext <<_ACEOF 2963 /* end confdefs.h. */ 2964 #ifdef __STDC__ 2965 # include <limits.h> 2966 #else 2967 # include <assert.h> 2968 #endif 2969 Syntax error 2970 _ACEOF 2971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2972 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2973 ac_status=$? 2974 grep -v '^ *+' conftest.er1 >conftest.err 2975 rm -f conftest.er1 2976 cat conftest.err >&5 2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2978 (exit $ac_status); } >/dev/null; then 2979 if test -s conftest.err; then 2980 ac_cpp_err=$ac_c_preproc_warn_flag 2981 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2982 else 2983 ac_cpp_err= 2984 fi 2985 else 2986 ac_cpp_err=yes 2987 fi 2988 if test -z "$ac_cpp_err"; then 1112 2989 : 1113 2990 else 1114 echo "$ac_err" >&5 1115 echo "configure: failed program was:" >&5 1116 cat conftest.$ac_ext >&5 1117 rm -rf conftest* 1118 CPP="${CC-cc} -E -traditional-cpp" 1119 cat > conftest.$ac_ext <<EOF 1120 #line 1121 "configure" 1121 #include "confdefs.h" 1122 #include <assert.h> 1123 Syntax Error 1124 EOF 1125 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1126 { (eval echo configure:1127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1127 ac_err=`grep -v '^ *+' conftest.out` 1128 if test -z "$ac_err"; then 2991 echo "$as_me: failed program was:" >&5 2992 sed 's/^/| /' conftest.$ac_ext >&5 2993 2994 # Broken: fails on valid input. 2995 continue 2996 fi 2997 rm -f conftest.err conftest.$ac_ext 2998 2999 # OK, works on sane cases. Now check whether non-existent headers 3000 # can be detected and how. 3001 cat >conftest.$ac_ext <<_ACEOF 3002 /* confdefs.h. */ 3003 _ACEOF 3004 cat confdefs.h >>conftest.$ac_ext 3005 cat >>conftest.$ac_ext <<_ACEOF 3006 /* end confdefs.h. */ 3007 #include <ac_nonexistent.h> 3008 _ACEOF 3009 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3010 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3011 ac_status=$? 3012 grep -v '^ *+' conftest.er1 >conftest.err 3013 rm -f conftest.er1 3014 cat conftest.err >&5 3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3016 (exit $ac_status); } >/dev/null; then 3017 if test -s conftest.err; then 3018 ac_cpp_err=$ac_c_preproc_warn_flag 3019 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3020 else 3021 ac_cpp_err= 3022 fi 3023 else 3024 ac_cpp_err=yes 3025 fi 3026 if test -z "$ac_cpp_err"; then 3027 # Broken: success on invalid input. 3028 continue 3029 else 3030 echo "$as_me: failed program was:" >&5 3031 sed 's/^/| /' conftest.$ac_ext >&5 3032 3033 # Passes both tests. 3034 ac_preproc_ok=: 3035 break 3036 fi 3037 rm -f conftest.err conftest.$ac_ext 3038 3039 done 3040 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3041 rm -f conftest.err conftest.$ac_ext 3042 if $ac_preproc_ok; then 3043 break 3044 fi 3045 3046 done 3047 ac_cv_prog_CPP=$CPP 3048 3049 fi 3050 CPP=$ac_cv_prog_CPP 3051 else 3052 ac_cv_prog_CPP=$CPP 3053 fi 3054 echo "$as_me:$LINENO: result: $CPP" >&5 3055 echo "${ECHO_T}$CPP" >&6 3056 ac_preproc_ok=false 3057 for ac_c_preproc_warn_flag in '' yes 3058 do 3059 # Use a header file that comes with gcc, so configuring glibc 3060 # with a fresh cross-compiler works. 3061 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3062 # <limits.h> exists even on freestanding compilers. 3063 # On the NeXT, cc -E runs the code through the compiler's parser, 3064 # not just through cpp. "Syntax error" is here to catch this case. 3065 cat >conftest.$ac_ext <<_ACEOF 3066 /* confdefs.h. */ 3067 _ACEOF 3068 cat confdefs.h >>conftest.$ac_ext 3069 cat >>conftest.$ac_ext <<_ACEOF 3070 /* end confdefs.h. */ 3071 #ifdef __STDC__ 3072 # include <limits.h> 3073 #else 3074 # include <assert.h> 3075 #endif 3076 Syntax error 3077 _ACEOF 3078 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3079 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3080 ac_status=$? 3081 grep -v '^ *+' conftest.er1 >conftest.err 3082 rm -f conftest.er1 3083 cat conftest.err >&5 3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3085 (exit $ac_status); } >/dev/null; then 3086 if test -s conftest.err; then 3087 ac_cpp_err=$ac_c_preproc_warn_flag 3088 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3089 else 3090 ac_cpp_err= 3091 fi 3092 else 3093 ac_cpp_err=yes 3094 fi 3095 if test -z "$ac_cpp_err"; then 1129 3096 : 1130 3097 else 1131 echo "$ac_err" >&5 1132 echo "configure: failed program was:" >&5 1133 cat conftest.$ac_ext >&5 1134 rm -rf conftest* 1135 CPP=/lib/cpp 1136 fi 1137 rm -f conftest* 1138 fi 1139 rm -f conftest* 1140 ac_cv_prog_CPP="$CPP" 1141 fi 1142 CPP="$ac_cv_prog_CPP" 1143 else 1144 ac_cv_prog_CPP="$CPP" 1145 fi 1146 echo "$ac_t""$CPP" 1>&6 1147 1148 echo $ac_n "checking for AIX""... $ac_c" 1>&6 1149 echo "configure:1150: checking for AIX" >&5 1150 cat > conftest.$ac_ext <<EOF 1151 #line 1152 "configure" 1152 #include "confdefs.h" 3098 echo "$as_me: failed program was:" >&5 3099 sed 's/^/| /' conftest.$ac_ext >&5 3100 3101 # Broken: fails on valid input. 3102 continue 3103 fi 3104 rm -f conftest.err conftest.$ac_ext 3105 3106 # OK, works on sane cases. Now check whether non-existent headers 3107 # can be detected and how. 3108 cat >conftest.$ac_ext <<_ACEOF 3109 /* confdefs.h. */ 3110 _ACEOF 3111 cat confdefs.h >>conftest.$ac_ext 3112 cat >>conftest.$ac_ext <<_ACEOF 3113 /* end confdefs.h. */ 3114 #include <ac_nonexistent.h> 3115 _ACEOF 3116 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3117 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3118 ac_status=$? 3119 grep -v '^ *+' conftest.er1 >conftest.err 3120 rm -f conftest.er1 3121 cat conftest.err >&5 3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3123 (exit $ac_status); } >/dev/null; then 3124 if test -s conftest.err; then 3125 ac_cpp_err=$ac_c_preproc_warn_flag 3126 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3127 else 3128 ac_cpp_err= 3129 fi 3130 else 3131 ac_cpp_err=yes 3132 fi 3133 if test -z "$ac_cpp_err"; then 3134 # Broken: success on invalid input. 3135 continue 3136 else 3137 echo "$as_me: failed program was:" >&5 3138 sed 's/^/| /' conftest.$ac_ext >&5 3139 3140 # Passes both tests. 3141 ac_preproc_ok=: 3142 break 3143 fi 3144 rm -f conftest.err conftest.$ac_ext 3145 3146 done 3147 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3148 rm -f conftest.err conftest.$ac_ext 3149 if $ac_preproc_ok; then 3150 : 3151 else 3152 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3153 See \`config.log' for more details." >&5 3154 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3155 See \`config.log' for more details." >&2;} 3156 { (exit 1); exit 1; }; } 3157 fi 3158 3159 ac_ext=c 3160 ac_cpp='$CPP $CPPFLAGS' 3161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3163 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3164 3165 3166 echo "$as_me:$LINENO: checking for egrep" >&5 3167 echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3168 if test "${ac_cv_prog_egrep+set}" = set; then 3169 echo $ECHO_N "(cached) $ECHO_C" >&6 3170 else 3171 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3172 then ac_cv_prog_egrep='grep -E' 3173 else ac_cv_prog_egrep='egrep' 3174 fi 3175 fi 3176 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3177 echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3178 EGREP=$ac_cv_prog_egrep 3179 3180 3181 3182 echo "$as_me:$LINENO: checking for AIX" >&5 3183 echo $ECHO_N "checking for AIX... $ECHO_C" >&6 3184 cat >conftest.$ac_ext <<_ACEOF 3185 /* confdefs.h. */ 3186 _ACEOF 3187 cat confdefs.h >>conftest.$ac_ext 3188 cat >>conftest.$ac_ext <<_ACEOF 3189 /* end confdefs.h. */ 1153 3190 #ifdef _AIX 1154 3191 yes 1155 3192 #endif 1156 3193 1157 EOF3194 _ACEOF 1158 3195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1159 egrep "yes" >/dev/null 2>&1; then 1160 rm -rf conftest* 1161 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 3196 $EGREP "yes" >/dev/null 2>&1; then 3197 echo "$as_me:$LINENO: result: yes" >&5 3198 echo "${ECHO_T}yes" >&6 3199 cat >>confdefs.h <<\_ACEOF 1162 3200 #define _ALL_SOURCE 1 1163 EOF1164 1165 else 1166 rm -rf conftest*1167 echo "$ac_t""no" 1>&63201 _ACEOF 3202 3203 else 3204 echo "$as_me:$LINENO: result: no" >&5 3205 echo "${ECHO_T}no" >&6 1168 3206 fi 1169 3207 rm -f conftest* 1170 3208 1171 3209 1172 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 1173 echo "configure:1174: checking for POSIXized ISC" >&5 1174 if test -d /etc/conf/kconfig.d && 1175 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 1176 then 1177 echo "$ac_t""yes" 1>&6 1178 ISC=yes # If later tests want to check for ISC. 1179 cat >> confdefs.h <<\EOF 3210 echo "$as_me:$LINENO: checking for library containing strerror" >&5 3211 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 3212 if test "${ac_cv_search_strerror+set}" = set; then 3213 echo $ECHO_N "(cached) $ECHO_C" >&6 3214 else 3215 ac_func_search_save_LIBS=$LIBS 3216 ac_cv_search_strerror=no 3217 cat >conftest.$ac_ext <<_ACEOF 3218 /* confdefs.h. */ 3219 _ACEOF 3220 cat confdefs.h >>conftest.$ac_ext 3221 cat >>conftest.$ac_ext <<_ACEOF 3222 /* end confdefs.h. */ 3223 3224 /* Override any gcc2 internal prototype to avoid an error. */ 3225 #ifdef __cplusplus 3226 extern "C" 3227 #endif 3228 /* We use char because int might match the return type of a gcc2 3229 builtin and then its argument prototype would still apply. */ 3230 char strerror (); 3231 int 3232 main () 3233 { 3234 strerror (); 3235 ; 3236 return 0; 3237 } 3238 _ACEOF 3239 rm -f conftest.$ac_objext conftest$ac_exeext 3240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3241 (eval $ac_link) 2>conftest.er1 3242 ac_status=$? 3243 grep -v '^ *+' conftest.er1 >conftest.err 3244 rm -f conftest.er1 3245 cat conftest.err >&5 3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3247 (exit $ac_status); } && 3248 { ac_try='test -z "$ac_c_werror_flag" 3249 || test ! -s conftest.err' 3250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3251 (eval $ac_try) 2>&5 3252 ac_status=$? 3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3254 (exit $ac_status); }; } && 3255 { ac_try='test -s conftest$ac_exeext' 3256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3257 (eval $ac_try) 2>&5 3258 ac_status=$? 3259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3260 (exit $ac_status); }; }; then 3261 ac_cv_search_strerror="none required" 3262 else 3263 echo "$as_me: failed program was:" >&5 3264 sed 's/^/| /' conftest.$ac_ext >&5 3265 3266 fi 3267 rm -f conftest.err conftest.$ac_objext \ 3268 conftest$ac_exeext conftest.$ac_ext 3269 if test "$ac_cv_search_strerror" = no; then 3270 for ac_lib in cposix; do 3271 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3272 cat >conftest.$ac_ext <<_ACEOF 3273 /* confdefs.h. */ 3274 _ACEOF 3275 cat confdefs.h >>conftest.$ac_ext 3276 cat >>conftest.$ac_ext <<_ACEOF 3277 /* end confdefs.h. */ 3278 3279 /* Override any gcc2 internal prototype to avoid an error. */ 3280 #ifdef __cplusplus 3281 extern "C" 3282 #endif 3283 /* We use char because int might match the return type of a gcc2 3284 builtin and then its argument prototype would still apply. */ 3285 char strerror (); 3286 int 3287 main () 3288 { 3289 strerror (); 3290 ; 3291 return 0; 3292 } 3293 _ACEOF 3294 rm -f conftest.$ac_objext conftest$ac_exeext 3295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3296 (eval $ac_link) 2>conftest.er1 3297 ac_status=$? 3298 grep -v '^ *+' conftest.er1 >conftest.err 3299 rm -f conftest.er1 3300 cat conftest.err >&5 3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3302 (exit $ac_status); } && 3303 { ac_try='test -z "$ac_c_werror_flag" 3304 || test ! -s conftest.err' 3305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3306 (eval $ac_try) 2>&5 3307 ac_status=$? 3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3309 (exit $ac_status); }; } && 3310 { ac_try='test -s conftest$ac_exeext' 3311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3312 (eval $ac_try) 2>&5 3313 ac_status=$? 3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3315 (exit $ac_status); }; }; then 3316 ac_cv_search_strerror="-l$ac_lib" 3317 break 3318 else 3319 echo "$as_me: failed program was:" >&5 3320 sed 's/^/| /' conftest.$ac_ext >&5 3321 3322 fi 3323 rm -f conftest.err conftest.$ac_objext \ 3324 conftest$ac_exeext conftest.$ac_ext 3325 done 3326 fi 3327 LIBS=$ac_func_search_save_LIBS 3328 fi 3329 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 3330 echo "${ECHO_T}$ac_cv_search_strerror" >&6 3331 if test "$ac_cv_search_strerror" != no; then 3332 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" 3333 3334 fi 3335 3336 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3337 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3338 if test "${ac_cv_header_stdc+set}" = set; then 3339 echo $ECHO_N "(cached) $ECHO_C" >&6 3340 else 3341 cat >conftest.$ac_ext <<_ACEOF 3342 /* confdefs.h. */ 3343 _ACEOF 3344 cat confdefs.h >>conftest.$ac_ext 3345 cat >>conftest.$ac_ext <<_ACEOF 3346 /* end confdefs.h. */ 3347 #include <stdlib.h> 3348 #include <stdarg.h> 3349 #include <string.h> 3350 #include <float.h> 3351 3352 int 3353 main () 3354 { 3355 3356 ; 3357 return 0; 3358 } 3359 _ACEOF 3360 rm -f conftest.$ac_objext 3361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3362 (eval $ac_compile) 2>conftest.er1 3363 ac_status=$? 3364 grep -v '^ *+' conftest.er1 >conftest.err 3365 rm -f conftest.er1 3366 cat conftest.err >&5 3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3368 (exit $ac_status); } && 3369 { ac_try='test -z "$ac_c_werror_flag" 3370 || test ! -s conftest.err' 3371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3372 (eval $ac_try) 2>&5 3373 ac_status=$? 3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3375 (exit $ac_status); }; } && 3376 { ac_try='test -s conftest.$ac_objext' 3377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3378 (eval $ac_try) 2>&5 3379 ac_status=$? 3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3381 (exit $ac_status); }; }; then 3382 ac_cv_header_stdc=yes 3383 else 3384 echo "$as_me: failed program was:" >&5 3385 sed 's/^/| /' conftest.$ac_ext >&5 3386 3387 ac_cv_header_stdc=no 3388 fi 3389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3390 3391 if test $ac_cv_header_stdc = yes; then 3392 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3393 cat >conftest.$ac_ext <<_ACEOF 3394 /* confdefs.h. */ 3395 _ACEOF 3396 cat confdefs.h >>conftest.$ac_ext 3397 cat >>conftest.$ac_ext <<_ACEOF 3398 /* end confdefs.h. */ 3399 #include <string.h> 3400 3401 _ACEOF 3402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3403 $EGREP "memchr" >/dev/null 2>&1; then 3404 : 3405 else 3406 ac_cv_header_stdc=no 3407 fi 3408 rm -f conftest* 3409 3410 fi 3411 3412 if test $ac_cv_header_stdc = yes; then 3413 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3414 cat >conftest.$ac_ext <<_ACEOF 3415 /* confdefs.h. */ 3416 _ACEOF 3417 cat confdefs.h >>conftest.$ac_ext 3418 cat >>conftest.$ac_ext <<_ACEOF 3419 /* end confdefs.h. */ 3420 #include <stdlib.h> 3421 3422 _ACEOF 3423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3424 $EGREP "free" >/dev/null 2>&1; then 3425 : 3426 else 3427 ac_cv_header_stdc=no 3428 fi 3429 rm -f conftest* 3430 3431 fi 3432 3433 if test $ac_cv_header_stdc = yes; then 3434 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3435 if test "$cross_compiling" = yes; then 3436 : 3437 else 3438 cat >conftest.$ac_ext <<_ACEOF 3439 /* confdefs.h. */ 3440 _ACEOF 3441 cat confdefs.h >>conftest.$ac_ext 3442 cat >>conftest.$ac_ext <<_ACEOF 3443 /* end confdefs.h. */ 3444 #include <ctype.h> 3445 #if ((' ' & 0x0FF) == 0x020) 3446 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3447 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3448 #else 3449 # define ISLOWER(c) \ 3450 (('a' <= (c) && (c) <= 'i') \ 3451 || ('j' <= (c) && (c) <= 'r') \ 3452 || ('s' <= (c) && (c) <= 'z')) 3453 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3454 #endif 3455 3456 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3457 int 3458 main () 3459 { 3460 int i; 3461 for (i = 0; i < 256; i++) 3462 if (XOR (islower (i), ISLOWER (i)) 3463 || toupper (i) != TOUPPER (i)) 3464 exit(2); 3465 exit (0); 3466 } 3467 _ACEOF 3468 rm -f conftest$ac_exeext 3469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3470 (eval $ac_link) 2>&5 3471 ac_status=$? 3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3473 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3475 (eval $ac_try) 2>&5 3476 ac_status=$? 3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3478 (exit $ac_status); }; }; then 3479 : 3480 else 3481 echo "$as_me: program exited with status $ac_status" >&5 3482 echo "$as_me: failed program was:" >&5 3483 sed 's/^/| /' conftest.$ac_ext >&5 3484 3485 ( exit $ac_status ) 3486 ac_cv_header_stdc=no 3487 fi 3488 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3489 fi 3490 fi 3491 fi 3492 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3493 echo "${ECHO_T}$ac_cv_header_stdc" >&6 3494 if test $ac_cv_header_stdc = yes; then 3495 3496 cat >>confdefs.h <<\_ACEOF 3497 #define STDC_HEADERS 1 3498 _ACEOF 3499 3500 fi 3501 3502 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3513 inttypes.h stdint.h unistd.h 3514 do 3515 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3516 echo "$as_me:$LINENO: checking for $ac_header" >&5 3517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3518 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3519 echo $ECHO_N "(cached) $ECHO_C" >&6 3520 else 3521 cat >conftest.$ac_ext <<_ACEOF 3522 /* confdefs.h. */ 3523 _ACEOF 3524 cat confdefs.h >>conftest.$ac_ext 3525 cat >>conftest.$ac_ext <<_ACEOF 3526 /* end confdefs.h. */ 3527 $ac_includes_default 3528 3529 #include <$ac_header> 3530 _ACEOF 3531 rm -f conftest.$ac_objext 3532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3533 (eval $ac_compile) 2>conftest.er1 3534 ac_status=$? 3535 grep -v '^ *+' conftest.er1 >conftest.err 3536 rm -f conftest.er1 3537 cat conftest.err >&5 3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3539 (exit $ac_status); } && 3540 { ac_try='test -z "$ac_c_werror_flag" 3541 || test ! -s conftest.err' 3542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3543 (eval $ac_try) 2>&5 3544 ac_status=$? 3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3546 (exit $ac_status); }; } && 3547 { ac_try='test -s conftest.$ac_objext' 3548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3549 (eval $ac_try) 2>&5 3550 ac_status=$? 3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3552 (exit $ac_status); }; }; then 3553 eval "$as_ac_Header=yes" 3554 else 3555 echo "$as_me: failed program was:" >&5 3556 sed 's/^/| /' conftest.$ac_ext >&5 3557 3558 eval "$as_ac_Header=no" 3559 fi 3560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3561 fi 3562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3563 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3564 if test `eval echo '${'$as_ac_Header'}'` = yes; then 3565 cat >>confdefs.h <<_ACEOF 3566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3567 _ACEOF 3568 3569 fi 3570 3571 done 3572 3573 3574 if test "${ac_cv_header_minix_config_h+set}" = set; then 3575 echo "$as_me:$LINENO: checking for minix/config.h" >&5 3576 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 3577 if test "${ac_cv_header_minix_config_h+set}" = set; then 3578 echo $ECHO_N "(cached) $ECHO_C" >&6 3579 fi 3580 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 3581 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 3582 else 3583 # Is the header compilable? 3584 echo "$as_me:$LINENO: checking minix/config.h usability" >&5 3585 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 3586 cat >conftest.$ac_ext <<_ACEOF 3587 /* confdefs.h. */ 3588 _ACEOF 3589 cat confdefs.h >>conftest.$ac_ext 3590 cat >>conftest.$ac_ext <<_ACEOF 3591 /* end confdefs.h. */ 3592 $ac_includes_default 3593 #include <minix/config.h> 3594 _ACEOF 3595 rm -f conftest.$ac_objext 3596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3597 (eval $ac_compile) 2>conftest.er1 3598 ac_status=$? 3599 grep -v '^ *+' conftest.er1 >conftest.err 3600 rm -f conftest.er1 3601 cat conftest.err >&5 3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3603 (exit $ac_status); } && 3604 { ac_try='test -z "$ac_c_werror_flag" 3605 || test ! -s conftest.err' 3606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3607 (eval $ac_try) 2>&5 3608 ac_status=$? 3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3610 (exit $ac_status); }; } && 3611 { ac_try='test -s conftest.$ac_objext' 3612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3613 (eval $ac_try) 2>&5 3614 ac_status=$? 3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3616 (exit $ac_status); }; }; then 3617 ac_header_compiler=yes 3618 else 3619 echo "$as_me: failed program was:" >&5 3620 sed 's/^/| /' conftest.$ac_ext >&5 3621 3622 ac_header_compiler=no 3623 fi 3624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3625 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3626 echo "${ECHO_T}$ac_header_compiler" >&6 3627 3628 # Is the header present? 3629 echo "$as_me:$LINENO: checking minix/config.h presence" >&5 3630 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 3631 cat >conftest.$ac_ext <<_ACEOF 3632 /* confdefs.h. */ 3633 _ACEOF 3634 cat confdefs.h >>conftest.$ac_ext 3635 cat >>conftest.$ac_ext <<_ACEOF 3636 /* end confdefs.h. */ 3637 #include <minix/config.h> 3638 _ACEOF 3639 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3640 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3641 ac_status=$? 3642 grep -v '^ *+' conftest.er1 >conftest.err 3643 rm -f conftest.er1 3644 cat conftest.err >&5 3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3646 (exit $ac_status); } >/dev/null; then 3647 if test -s conftest.err; then 3648 ac_cpp_err=$ac_c_preproc_warn_flag 3649 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3650 else 3651 ac_cpp_err= 3652 fi 3653 else 3654 ac_cpp_err=yes 3655 fi 3656 if test -z "$ac_cpp_err"; then 3657 ac_header_preproc=yes 3658 else 3659 echo "$as_me: failed program was:" >&5 3660 sed 's/^/| /' conftest.$ac_ext >&5 3661 3662 ac_header_preproc=no 3663 fi 3664 rm -f conftest.err conftest.$ac_ext 3665 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3666 echo "${ECHO_T}$ac_header_preproc" >&6 3667 3668 # So? What about this header? 3669 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3670 yes:no: ) 3671 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 3672 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 3673 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 3674 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} 3675 ac_header_preproc=yes 3676 ;; 3677 no:yes:* ) 3678 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 3679 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} 3680 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 3681 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} 3682 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 3683 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} 3684 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 3685 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} 3686 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 3687 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} 3688 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 3689 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} 3690 ( 3691 cat <<\_ASBOX 3692 ## ------------------------------------------ ## 3693 ## Report this to the AC_PACKAGE_NAME lists. ## 3694 ## ------------------------------------------ ## 3695 _ASBOX 3696 ) | 3697 sed "s/^/$as_me: WARNING: /" >&2 3698 ;; 3699 esac 3700 echo "$as_me:$LINENO: checking for minix/config.h" >&5 3701 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 3702 if test "${ac_cv_header_minix_config_h+set}" = set; then 3703 echo $ECHO_N "(cached) $ECHO_C" >&6 3704 else 3705 ac_cv_header_minix_config_h=$ac_header_preproc 3706 fi 3707 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 3708 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 3709 3710 fi 3711 if test $ac_cv_header_minix_config_h = yes; then 3712 MINIX=yes 3713 else 3714 MINIX= 3715 fi 3716 3717 3718 if test "$MINIX" = yes; then 3719 3720 cat >>confdefs.h <<\_ACEOF 1180 3721 #define _POSIX_SOURCE 1 1181 EOF 1182 1183 if test "$GCC" = yes; then 1184 CC="$CC -posix" 1185 else 1186 CC="$CC -Xp" 1187 fi 1188 else 1189 echo "$ac_t""no" 1>&6 1190 ISC= 1191 fi 1192 1193 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` 1194 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 1195 echo "configure:1196: checking for minix/config.h" >&5 1196 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1197 echo $ac_n "(cached) $ac_c" 1>&6 1198 else 1199 cat > conftest.$ac_ext <<EOF 1200 #line 1201 "configure" 1201 #include "confdefs.h" 1202 #include <minix/config.h> 1203 EOF 1204 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1205 { (eval echo configure:1206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1206 ac_err=`grep -v '^ *+' conftest.out` 1207 if test -z "$ac_err"; then 1208 rm -rf conftest* 1209 eval "ac_cv_header_$ac_safe=yes" 1210 else 1211 echo "$ac_err" >&5 1212 echo "configure: failed program was:" >&5 1213 cat conftest.$ac_ext >&5 1214 rm -rf conftest* 1215 eval "ac_cv_header_$ac_safe=no" 1216 fi 1217 rm -f conftest* 1218 fi 1219 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1220 echo "$ac_t""yes" 1>&6 1221 MINIX=yes 1222 else 1223 echo "$ac_t""no" 1>&6 1224 MINIX= 1225 fi 1226 1227 if test "$MINIX" = yes; then 1228 cat >> confdefs.h <<\EOF 1229 #define _POSIX_SOURCE 1 1230 EOF 1231 1232 cat >> confdefs.h <<\EOF 3722 _ACEOF 3723 3724 3725 cat >>confdefs.h <<\_ACEOF 1233 3726 #define _POSIX_1_SOURCE 2 1234 EOF 1235 1236 cat >> confdefs.h <<\EOF 3727 _ACEOF 3728 3729 3730 cat >>confdefs.h <<\_ACEOF 1237 3731 #define _MINIX 1 1238 EOF1239 1240 fi 1241 1242 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&61243 echo "configure:1244: checking for ${CC-cc} option to accept ANSI C" >&51244 if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then1245 echo $ ac_n "(cached) $ac_c" 1>&63732 _ACEOF 3733 3734 fi 3735 3736 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5 3737 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6 3738 if test "${ac_cv_prog_cc_stdc+set}" = set; then 3739 echo $ECHO_N "(cached) $ECHO_C" >&6 1246 3740 else 1247 3741 ac_cv_prog_cc_stdc=no … … 1256 3750 do 1257 3751 CFLAGS="$ac_save_CFLAGS $ac_arg" 1258 cat > conftest.$ac_ext <<EOF 1259 #line 1260 "configure" 1260 #include "confdefs.h" 3752 cat >conftest.$ac_ext <<_ACEOF 3753 /* confdefs.h. */ 3754 _ACEOF 3755 cat confdefs.h >>conftest.$ac_ext 3756 cat >>conftest.$ac_ext <<_ACEOF 3757 /* end confdefs.h. */ 1261 3758 #if !defined(__STDC__) || __STDC__ != 1 1262 3759 choke me 1263 #endif 1264 1265 int main() { 3760 #endif 3761 3762 int 3763 main () 3764 { 1266 3765 int test (int i, double x); 1267 3766 struct s1 {int (*f) (int a);}; 1268 3767 struct s2 {int (*f) (double a);}; 1269 ; return 0; } 1270 EOF 1271 if { (eval echo configure:1272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1272 rm -rf conftest* 3768 ; 3769 return 0; 3770 } 3771 _ACEOF 3772 rm -f conftest.$ac_objext 3773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3774 (eval $ac_compile) 2>conftest.er1 3775 ac_status=$? 3776 grep -v '^ *+' conftest.er1 >conftest.err 3777 rm -f conftest.er1 3778 cat conftest.err >&5 3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3780 (exit $ac_status); } && 3781 { ac_try='test -z "$ac_c_werror_flag" 3782 || test ! -s conftest.err' 3783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3784 (eval $ac_try) 2>&5 3785 ac_status=$? 3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3787 (exit $ac_status); }; } && 3788 { ac_try='test -s conftest.$ac_objext' 3789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3790 (eval $ac_try) 2>&5 3791 ac_status=$? 3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3793 (exit $ac_status); }; }; then 1273 3794 ac_cv_prog_cc_stdc="$ac_arg"; break 1274 3795 else 1275 echo "configure: failed program was:" >&5 1276 cat conftest.$ac_ext >&5 1277 fi 1278 rm -f conftest* 3796 echo "$as_me: failed program was:" >&5 3797 sed 's/^/| /' conftest.$ac_ext >&5 3798 3799 fi 3800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1279 3801 done 1280 3802 CFLAGS="$ac_save_CFLAGS" … … 1282 3804 fi 1283 3805 1284 echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6 3806 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 3807 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 1285 3808 case "x$ac_cv_prog_cc_stdc" in 1286 3809 x|xno) ;; … … 1289 3812 1290 3813 1291 echo $ac_n "checking for function prototypes""... $ac_c" 1>&61292 echo "configure:1293: checking for function prototypes" >&53814 echo "$as_me:$LINENO: checking for function prototypes" >&5 3815 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 1293 3816 if test "$ac_cv_prog_cc_stdc" != no; then 1294 echo "$ac_t""yes" 1>&6 1295 cat >> confdefs.h <<\EOF 3817 echo "$as_me:$LINENO: result: yes" >&5 3818 echo "${ECHO_T}yes" >&6 3819 cat >>confdefs.h <<\_ACEOF 1296 3820 #define PROTOTYPES 1 1297 EOF3821 _ACEOF 1298 3822 1299 3823 U= ANSI2KNR= 1300 3824 else 1301 echo "$ac_t""no" 1>&6 3825 echo "$as_me:$LINENO: result: no" >&5 3826 echo "${ECHO_T}no" >&6 1302 3827 U=_ ANSI2KNR=ansi2knr 1303 3828 fi 1304 3829 1305 echo $ac_n "checking for working const""... $ac_c" 1>&6 1306 echo "configure:1307: checking for working const" >&5 1307 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 1308 echo $ac_n "(cached) $ac_c" 1>&6 1309 else 1310 cat > conftest.$ac_ext <<EOF 1311 #line 1312 "configure" 1312 #include "confdefs.h" 1313 1314 int main() { 1315 1316 /* Ultrix mips cc rejects this. */ 1317 typedef int charset[2]; const charset x; 1318 /* SunOS 4.1.1 cc rejects this. */ 1319 char const *const *ccp; 1320 char **p; 1321 /* NEC SVR4.0.2 mips cc rejects this. */ 1322 struct point {int x, y;}; 1323 static struct point const zero = {0,0}; 1324 /* AIX XL C 1.02.0.0 rejects this. 1325 It does not let you subtract one const X* pointer from another in an arm 1326 of an if-expression whose if-part is not a constant expression */ 1327 const char *g = "string"; 1328 ccp = &g + (g ? g-g : 0); 1329 /* HPUX 7.0 cc rejects these. */ 1330 ++ccp; 1331 p = (char**) ccp; 1332 ccp = (char const *const *) p; 1333 { /* SCO 3.2v4 cc rejects this. */ 1334 char *t; 1335 char const *s = 0 ? (char *) 0 : (char const *) 0; 1336 1337 *t++ = 0; 3830 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 3831 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 3832 if test "${ac_cv_c_const+set}" = set; then 3833 echo $ECHO_N "(cached) $ECHO_C" >&6 3834 else 3835 cat >conftest.$ac_ext <<_ACEOF 3836 /* confdefs.h. */ 3837 _ACEOF 3838 cat confdefs.h >>conftest.$ac_ext 3839 cat >>conftest.$ac_ext <<_ACEOF 3840 /* end confdefs.h. */ 3841 3842 int 3843 main () 3844 { 3845 /* FIXME: Include the comments suggested by Paul. */ 3846 #ifndef __cplusplus 3847 /* Ultrix mips cc rejects this. */ 3848 typedef int charset[2]; 3849 const charset x; 3850 /* SunOS 4.1.1 cc rejects this. */ 3851 char const *const *ccp; 3852 char **p; 3853 /* NEC SVR4.0.2 mips cc rejects this. */ 3854 struct point {int x, y;}; 3855 static struct point const zero = {0,0}; 3856 /* AIX XL C 1.02.0.0 rejects this. 3857 It does not let you subtract one const X* pointer from another in 3858 an arm of an if-expression whose if-part is not a constant 3859 expression */ 3860 const char *g = "string"; 3861 ccp = &g + (g ? g-g : 0); 3862 /* HPUX 7.0 cc rejects these. */ 3863 ++ccp; 3864 p = (char**) ccp; 3865 ccp = (char const *const *) p; 3866 { /* SCO 3.2v4 cc rejects this. */ 3867 char *t; 3868 char const *s = 0 ? (char *) 0 : (char const *) 0; 3869 3870 *t++ = 0; 3871 } 3872 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 3873 int x[] = {25, 17}; 3874 const int *foo = &x[0]; 3875 ++foo; 3876 } 3877 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 3878 typedef const int *iptr; 3879 iptr p = 0; 3880 ++p; 3881 } 3882 { /* AIX XL C 1.02.0.0 rejects this saying 3883 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 3884 struct s { int j; const int *ap[3]; }; 3885 struct s *b; b->j = 5; 3886 } 3887 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 3888 const int foo = 10; 3889 } 3890 #endif 3891 3892 ; 3893 return 0; 1338 3894 } 1339 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 1340 int x[] = {25, 17}; 1341 const int *foo = &x[0]; 1342 ++foo; 3895 _ACEOF 3896 rm -f conftest.$ac_objext 3897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3898 (eval $ac_compile) 2>conftest.er1 3899 ac_status=$? 3900 grep -v '^ *+' conftest.er1 >conftest.err 3901 rm -f conftest.er1 3902 cat conftest.err >&5 3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3904 (exit $ac_status); } && 3905 { ac_try='test -z "$ac_c_werror_flag" 3906 || test ! -s conftest.err' 3907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3908 (eval $ac_try) 2>&5 3909 ac_status=$? 3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3911 (exit $ac_status); }; } && 3912 { ac_try='test -s conftest.$ac_objext' 3913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3914 (eval $ac_try) 2>&5 3915 ac_status=$? 3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3917 (exit $ac_status); }; }; then 3918 ac_cv_c_const=yes 3919 else 3920 echo "$as_me: failed program was:" >&5 3921 sed 's/^/| /' conftest.$ac_ext >&5 3922 3923 ac_cv_c_const=no 3924 fi 3925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3926 fi 3927 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 3928 echo "${ECHO_T}$ac_cv_c_const" >&6 3929 if test $ac_cv_c_const = no; then 3930 3931 cat >>confdefs.h <<\_ACEOF 3932 #define const 3933 _ACEOF 3934 3935 fi 3936 3937 echo "$as_me:$LINENO: checking for off_t" >&5 3938 echo $ECHO_N "checking for off_t... $ECHO_C" >&6 3939 if test "${ac_cv_type_off_t+set}" = set; then 3940 echo $ECHO_N "(cached) $ECHO_C" >&6 3941 else 3942 cat >conftest.$ac_ext <<_ACEOF 3943 /* confdefs.h. */ 3944 _ACEOF 3945 cat confdefs.h >>conftest.$ac_ext 3946 cat >>conftest.$ac_ext <<_ACEOF 3947 /* end confdefs.h. */ 3948 $ac_includes_default 3949 int 3950 main () 3951 { 3952 if ((off_t *) 0) 3953 return 0; 3954 if (sizeof (off_t)) 3955 return 0; 3956 ; 3957 return 0; 1343 3958 } 1344 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 1345 typedef const int *iptr; 1346 iptr p = 0; 1347 ++p; 3959 _ACEOF 3960 rm -f conftest.$ac_objext 3961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3962 (eval $ac_compile) 2>conftest.er1 3963 ac_status=$? 3964 grep -v '^ *+' conftest.er1 >conftest.err 3965 rm -f conftest.er1 3966 cat conftest.err >&5 3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3968 (exit $ac_status); } && 3969 { ac_try='test -z "$ac_c_werror_flag" 3970 || test ! -s conftest.err' 3971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3972 (eval $ac_try) 2>&5 3973 ac_status=$? 3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3975 (exit $ac_status); }; } && 3976 { ac_try='test -s conftest.$ac_objext' 3977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3978 (eval $ac_try) 2>&5 3979 ac_status=$? 3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3981 (exit $ac_status); }; }; then 3982 ac_cv_type_off_t=yes 3983 else 3984 echo "$as_me: failed program was:" >&5 3985 sed 's/^/| /' conftest.$ac_ext >&5 3986 3987 ac_cv_type_off_t=no 3988 fi 3989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3990 fi 3991 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 3992 echo "${ECHO_T}$ac_cv_type_off_t" >&6 3993 if test $ac_cv_type_off_t = yes; then 3994 : 3995 else 3996 3997 cat >>confdefs.h <<_ACEOF 3998 #define off_t long 3999 _ACEOF 4000 4001 fi 4002 4003 echo "$as_me:$LINENO: checking for size_t" >&5 4004 echo $ECHO_N "checking for size_t... $ECHO_C" >&6 4005 if test "${ac_cv_type_size_t+set}" = set; then 4006 echo $ECHO_N "(cached) $ECHO_C" >&6 4007 else 4008 cat >conftest.$ac_ext <<_ACEOF 4009 /* confdefs.h. */ 4010 _ACEOF 4011 cat confdefs.h >>conftest.$ac_ext 4012 cat >>conftest.$ac_ext <<_ACEOF 4013 /* end confdefs.h. */ 4014 $ac_includes_default 4015 int 4016 main () 4017 { 4018 if ((size_t *) 0) 4019 return 0; 4020 if (sizeof (size_t)) 4021 return 0; 4022 ; 4023 return 0; 1348 4024 } 1349 { /* AIX XL C 1.02.0.0 rejects this saying 1350 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 1351 struct s { int j; const int *ap[3]; }; 1352 struct s *b; b->j = 5; 4025 _ACEOF 4026 rm -f conftest.$ac_objext 4027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4028 (eval $ac_compile) 2>conftest.er1 4029 ac_status=$? 4030 grep -v '^ *+' conftest.er1 >conftest.err 4031 rm -f conftest.er1 4032 cat conftest.err >&5 4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4034 (exit $ac_status); } && 4035 { ac_try='test -z "$ac_c_werror_flag" 4036 || test ! -s conftest.err' 4037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4038 (eval $ac_try) 2>&5 4039 ac_status=$? 4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4041 (exit $ac_status); }; } && 4042 { ac_try='test -s conftest.$ac_objext' 4043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4044 (eval $ac_try) 2>&5 4045 ac_status=$? 4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4047 (exit $ac_status); }; }; then 4048 ac_cv_type_size_t=yes 4049 else 4050 echo "$as_me: failed program was:" >&5 4051 sed 's/^/| /' conftest.$ac_ext >&5 4052 4053 ac_cv_type_size_t=no 4054 fi 4055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4056 fi 4057 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 4058 echo "${ECHO_T}$ac_cv_type_size_t" >&6 4059 if test $ac_cv_type_size_t = yes; then 4060 : 4061 else 4062 4063 cat >>confdefs.h <<_ACEOF 4064 #define size_t unsigned 4065 _ACEOF 4066 4067 fi 4068 4069 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 4070 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 4071 if test "${ac_cv_header_time+set}" = set; then 4072 echo $ECHO_N "(cached) $ECHO_C" >&6 4073 else 4074 cat >conftest.$ac_ext <<_ACEOF 4075 /* confdefs.h. */ 4076 _ACEOF 4077 cat confdefs.h >>conftest.$ac_ext 4078 cat >>conftest.$ac_ext <<_ACEOF 4079 /* end confdefs.h. */ 4080 #include <sys/types.h> 4081 #include <sys/time.h> 4082 #include <time.h> 4083 4084 int 4085 main () 4086 { 4087 if ((struct tm *) 0) 4088 return 0; 4089 ; 4090 return 0; 1353 4091 } 1354 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 1355 const int foo = 10; 4092 _ACEOF 4093 rm -f conftest.$ac_objext 4094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4095 (eval $ac_compile) 2>conftest.er1 4096 ac_status=$? 4097 grep -v '^ *+' conftest.er1 >conftest.err 4098 rm -f conftest.er1 4099 cat conftest.err >&5 4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4101 (exit $ac_status); } && 4102 { ac_try='test -z "$ac_c_werror_flag" 4103 || test ! -s conftest.err' 4104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4105 (eval $ac_try) 2>&5 4106 ac_status=$? 4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4108 (exit $ac_status); }; } && 4109 { ac_try='test -s conftest.$ac_objext' 4110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4111 (eval $ac_try) 2>&5 4112 ac_status=$? 4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4114 (exit $ac_status); }; }; then 4115 ac_cv_header_time=yes 4116 else 4117 echo "$as_me: failed program was:" >&5 4118 sed 's/^/| /' conftest.$ac_ext >&5 4119 4120 ac_cv_header_time=no 4121 fi 4122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4123 fi 4124 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 4125 echo "${ECHO_T}$ac_cv_header_time" >&6 4126 if test $ac_cv_header_time = yes; then 4127 4128 cat >>confdefs.h <<\_ACEOF 4129 #define TIME_WITH_SYS_TIME 1 4130 _ACEOF 4131 4132 fi 4133 4134 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 4135 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 4136 if test "${ac_cv_struct_tm+set}" = set; then 4137 echo $ECHO_N "(cached) $ECHO_C" >&6 4138 else 4139 cat >conftest.$ac_ext <<_ACEOF 4140 /* confdefs.h. */ 4141 _ACEOF 4142 cat confdefs.h >>conftest.$ac_ext 4143 cat >>conftest.$ac_ext <<_ACEOF 4144 /* end confdefs.h. */ 4145 #include <sys/types.h> 4146 #include <time.h> 4147 4148 int 4149 main () 4150 { 4151 struct tm *tp; tp->tm_sec; 4152 ; 4153 return 0; 1356 4154 } 1357 1358 ; return 0; } 1359 EOF 1360 if { (eval echo configure:1361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1361 rm -rf conftest* 1362 ac_cv_c_const=yes 1363 else 1364 echo "configure: failed program was:" >&5 1365 cat conftest.$ac_ext >&5 1366 rm -rf conftest* 1367 ac_cv_c_const=no 1368 fi 1369 rm -f conftest* 1370 fi 1371 1372 echo "$ac_t""$ac_cv_c_const" 1>&6 1373 if test $ac_cv_c_const = no; then 1374 cat >> confdefs.h <<\EOF 1375 #define const 1376 EOF 1377 1378 fi 1379 1380 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1381 echo "configure:1382: checking for ANSI C header files" >&5 1382 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1383 echo $ac_n "(cached) $ac_c" 1>&6 1384 else 1385 cat > conftest.$ac_ext <<EOF 1386 #line 1387 "configure" 1387 #include "confdefs.h" 4155 _ACEOF 4156 rm -f conftest.$ac_objext 4157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4158 (eval $ac_compile) 2>conftest.er1 4159 ac_status=$? 4160 grep -v '^ *+' conftest.er1 >conftest.err 4161 rm -f conftest.er1 4162 cat conftest.err >&5 4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4164 (exit $ac_status); } && 4165 { ac_try='test -z "$ac_c_werror_flag" 4166 || test ! -s conftest.err' 4167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4168 (eval $ac_try) 2>&5 4169 ac_status=$? 4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4171 (exit $ac_status); }; } && 4172 { ac_try='test -s conftest.$ac_objext' 4173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4174 (eval $ac_try) 2>&5 4175 ac_status=$? 4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4177 (exit $ac_status); }; }; then 4178 ac_cv_struct_tm=time.h 4179 else 4180 echo "$as_me: failed program was:" >&5 4181 sed 's/^/| /' conftest.$ac_ext >&5 4182 4183 ac_cv_struct_tm=sys/time.h 4184 fi 4185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4186 fi 4187 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 4188 echo "${ECHO_T}$ac_cv_struct_tm" >&6 4189 if test $ac_cv_struct_tm = sys/time.h; then 4190 4191 cat >>confdefs.h <<\_ACEOF 4192 #define TM_IN_SYS_TIME 1 4193 _ACEOF 4194 4195 fi 4196 4197 4198 if test "$ac_cv_prog_cc_stdc" = '-Xc'; then 4199 cat >conftest.$ac_ext <<_ACEOF 4200 /* confdefs.h. */ 4201 _ACEOF 4202 cat confdefs.h >>conftest.$ac_ext 4203 cat >>conftest.$ac_ext <<_ACEOF 4204 /* end confdefs.h. */ 4205 #include <stdio.h> 4206 4207 int 4208 main () 4209 { 4210 FILE *rubbish = popen("yes", "r"); 4211 ; 4212 return 0; 4213 } 4214 _ACEOF 4215 rm -f conftest.$ac_objext 4216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4217 (eval $ac_compile) 2>conftest.er1 4218 ac_status=$? 4219 grep -v '^ *+' conftest.er1 >conftest.err 4220 rm -f conftest.er1 4221 cat conftest.err >&5 4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4223 (exit $ac_status); } && 4224 { ac_try='test -z "$ac_c_werror_flag" 4225 || test ! -s conftest.err' 4226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4227 (eval $ac_try) 2>&5 4228 ac_status=$? 4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4230 (exit $ac_status); }; } && 4231 { ac_try='test -s conftest.$ac_objext' 4232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4233 (eval $ac_try) 2>&5 4234 ac_status=$? 4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4236 (exit $ac_status); }; }; then 4237 : 4238 else 4239 echo "$as_me: failed program was:" >&5 4240 sed 's/^/| /' conftest.$ac_ext >&5 4241 4242 CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa' 4243 fi 4244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4245 fi 4246 4247 4248 4249 echo "$as_me:$LINENO: checking for main in -lm" >&5 4250 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 4251 if test "${ac_cv_lib_m_main+set}" = set; then 4252 echo $ECHO_N "(cached) $ECHO_C" >&6 4253 else 4254 ac_check_lib_save_LIBS=$LIBS 4255 LIBS="-lm $LIBS" 4256 cat >conftest.$ac_ext <<_ACEOF 4257 /* confdefs.h. */ 4258 _ACEOF 4259 cat confdefs.h >>conftest.$ac_ext 4260 cat >>conftest.$ac_ext <<_ACEOF 4261 /* end confdefs.h. */ 4262 4263 4264 int 4265 main () 4266 { 4267 main (); 4268 ; 4269 return 0; 4270 } 4271 _ACEOF 4272 rm -f conftest.$ac_objext conftest$ac_exeext 4273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4274 (eval $ac_link) 2>conftest.er1 4275 ac_status=$? 4276 grep -v '^ *+' conftest.er1 >conftest.err 4277 rm -f conftest.er1 4278 cat conftest.err >&5 4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4280 (exit $ac_status); } && 4281 { ac_try='test -z "$ac_c_werror_flag" 4282 || test ! -s conftest.err' 4283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4284 (eval $ac_try) 2>&5 4285 ac_status=$? 4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4287 (exit $ac_status); }; } && 4288 { ac_try='test -s conftest$ac_exeext' 4289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4290 (eval $ac_try) 2>&5 4291 ac_status=$? 4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4293 (exit $ac_status); }; }; then 4294 ac_cv_lib_m_main=yes 4295 else 4296 echo "$as_me: failed program was:" >&5 4297 sed 's/^/| /' conftest.$ac_ext >&5 4298 4299 ac_cv_lib_m_main=no 4300 fi 4301 rm -f conftest.err conftest.$ac_objext \ 4302 conftest$ac_exeext conftest.$ac_ext 4303 LIBS=$ac_check_lib_save_LIBS 4304 fi 4305 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 4306 echo "${ECHO_T}$ac_cv_lib_m_main" >&6 4307 if test $ac_cv_lib_m_main = yes; then 4308 cat >>confdefs.h <<_ACEOF 4309 #define HAVE_LIBM 1 4310 _ACEOF 4311 4312 LIBS="-lm $LIBS" 4313 4314 fi 4315 4316 4317 4318 4319 4320 4321 4322 ac_header_dirent=no 4323 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 4324 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 4325 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 4326 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 4327 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4328 echo $ECHO_N "(cached) $ECHO_C" >&6 4329 else 4330 cat >conftest.$ac_ext <<_ACEOF 4331 /* confdefs.h. */ 4332 _ACEOF 4333 cat confdefs.h >>conftest.$ac_ext 4334 cat >>conftest.$ac_ext <<_ACEOF 4335 /* end confdefs.h. */ 4336 #include <sys/types.h> 4337 #include <$ac_hdr> 4338 4339 int 4340 main () 4341 { 4342 if ((DIR *) 0) 4343 return 0; 4344 ; 4345 return 0; 4346 } 4347 _ACEOF 4348 rm -f conftest.$ac_objext 4349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4350 (eval $ac_compile) 2>conftest.er1 4351 ac_status=$? 4352 grep -v '^ *+' conftest.er1 >conftest.err 4353 rm -f conftest.er1 4354 cat conftest.err >&5 4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4356 (exit $ac_status); } && 4357 { ac_try='test -z "$ac_c_werror_flag" 4358 || test ! -s conftest.err' 4359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4360 (eval $ac_try) 2>&5 4361 ac_status=$? 4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4363 (exit $ac_status); }; } && 4364 { ac_try='test -s conftest.$ac_objext' 4365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4366 (eval $ac_try) 2>&5 4367 ac_status=$? 4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4369 (exit $ac_status); }; }; then 4370 eval "$as_ac_Header=yes" 4371 else 4372 echo "$as_me: failed program was:" >&5 4373 sed 's/^/| /' conftest.$ac_ext >&5 4374 4375 eval "$as_ac_Header=no" 4376 fi 4377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4378 fi 4379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4381 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4382 cat >>confdefs.h <<_ACEOF 4383 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 4384 _ACEOF 4385 4386 ac_header_dirent=$ac_hdr; break 4387 fi 4388 4389 done 4390 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 4391 if test $ac_header_dirent = dirent.h; then 4392 echo "$as_me:$LINENO: checking for library containing opendir" >&5 4393 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 4394 if test "${ac_cv_search_opendir+set}" = set; then 4395 echo $ECHO_N "(cached) $ECHO_C" >&6 4396 else 4397 ac_func_search_save_LIBS=$LIBS 4398 ac_cv_search_opendir=no 4399 cat >conftest.$ac_ext <<_ACEOF 4400 /* confdefs.h. */ 4401 _ACEOF 4402 cat confdefs.h >>conftest.$ac_ext 4403 cat >>conftest.$ac_ext <<_ACEOF 4404 /* end confdefs.h. */ 4405 4406 /* Override any gcc2 internal prototype to avoid an error. */ 4407 #ifdef __cplusplus 4408 extern "C" 4409 #endif 4410 /* We use char because int might match the return type of a gcc2 4411 builtin and then its argument prototype would still apply. */ 4412 char opendir (); 4413 int 4414 main () 4415 { 4416 opendir (); 4417 ; 4418 return 0; 4419 } 4420 _ACEOF 4421 rm -f conftest.$ac_objext conftest$ac_exeext 4422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4423 (eval $ac_link) 2>conftest.er1 4424 ac_status=$? 4425 grep -v '^ *+' conftest.er1 >conftest.err 4426 rm -f conftest.er1 4427 cat conftest.err >&5 4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4429 (exit $ac_status); } && 4430 { ac_try='test -z "$ac_c_werror_flag" 4431 || test ! -s conftest.err' 4432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4433 (eval $ac_try) 2>&5 4434 ac_status=$? 4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4436 (exit $ac_status); }; } && 4437 { ac_try='test -s conftest$ac_exeext' 4438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4439 (eval $ac_try) 2>&5 4440 ac_status=$? 4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4442 (exit $ac_status); }; }; then 4443 ac_cv_search_opendir="none required" 4444 else 4445 echo "$as_me: failed program was:" >&5 4446 sed 's/^/| /' conftest.$ac_ext >&5 4447 4448 fi 4449 rm -f conftest.err conftest.$ac_objext \ 4450 conftest$ac_exeext conftest.$ac_ext 4451 if test "$ac_cv_search_opendir" = no; then 4452 for ac_lib in dir; do 4453 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4454 cat >conftest.$ac_ext <<_ACEOF 4455 /* confdefs.h. */ 4456 _ACEOF 4457 cat confdefs.h >>conftest.$ac_ext 4458 cat >>conftest.$ac_ext <<_ACEOF 4459 /* end confdefs.h. */ 4460 4461 /* Override any gcc2 internal prototype to avoid an error. */ 4462 #ifdef __cplusplus 4463 extern "C" 4464 #endif 4465 /* We use char because int might match the return type of a gcc2 4466 builtin and then its argument prototype would still apply. */ 4467 char opendir (); 4468 int 4469 main () 4470 { 4471 opendir (); 4472 ; 4473 return 0; 4474 } 4475 _ACEOF 4476 rm -f conftest.$ac_objext conftest$ac_exeext 4477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4478 (eval $ac_link) 2>conftest.er1 4479 ac_status=$? 4480 grep -v '^ *+' conftest.er1 >conftest.err 4481 rm -f conftest.er1 4482 cat conftest.err >&5 4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4484 (exit $ac_status); } && 4485 { ac_try='test -z "$ac_c_werror_flag" 4486 || test ! -s conftest.err' 4487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4488 (eval $ac_try) 2>&5 4489 ac_status=$? 4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4491 (exit $ac_status); }; } && 4492 { ac_try='test -s conftest$ac_exeext' 4493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4494 (eval $ac_try) 2>&5 4495 ac_status=$? 4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4497 (exit $ac_status); }; }; then 4498 ac_cv_search_opendir="-l$ac_lib" 4499 break 4500 else 4501 echo "$as_me: failed program was:" >&5 4502 sed 's/^/| /' conftest.$ac_ext >&5 4503 4504 fi 4505 rm -f conftest.err conftest.$ac_objext \ 4506 conftest$ac_exeext conftest.$ac_ext 4507 done 4508 fi 4509 LIBS=$ac_func_search_save_LIBS 4510 fi 4511 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 4512 echo "${ECHO_T}$ac_cv_search_opendir" >&6 4513 if test "$ac_cv_search_opendir" != no; then 4514 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 4515 4516 fi 4517 4518 else 4519 echo "$as_me:$LINENO: checking for library containing opendir" >&5 4520 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 4521 if test "${ac_cv_search_opendir+set}" = set; then 4522 echo $ECHO_N "(cached) $ECHO_C" >&6 4523 else 4524 ac_func_search_save_LIBS=$LIBS 4525 ac_cv_search_opendir=no 4526 cat >conftest.$ac_ext <<_ACEOF 4527 /* confdefs.h. */ 4528 _ACEOF 4529 cat confdefs.h >>conftest.$ac_ext 4530 cat >>conftest.$ac_ext <<_ACEOF 4531 /* end confdefs.h. */ 4532 4533 /* Override any gcc2 internal prototype to avoid an error. */ 4534 #ifdef __cplusplus 4535 extern "C" 4536 #endif 4537 /* We use char because int might match the return type of a gcc2 4538 builtin and then its argument prototype would still apply. */ 4539 char opendir (); 4540 int 4541 main () 4542 { 4543 opendir (); 4544 ; 4545 return 0; 4546 } 4547 _ACEOF 4548 rm -f conftest.$ac_objext conftest$ac_exeext 4549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4550 (eval $ac_link) 2>conftest.er1 4551 ac_status=$? 4552 grep -v '^ *+' conftest.er1 >conftest.err 4553 rm -f conftest.er1 4554 cat conftest.err >&5 4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4556 (exit $ac_status); } && 4557 { ac_try='test -z "$ac_c_werror_flag" 4558 || test ! -s conftest.err' 4559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4560 (eval $ac_try) 2>&5 4561 ac_status=$? 4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4563 (exit $ac_status); }; } && 4564 { ac_try='test -s conftest$ac_exeext' 4565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4566 (eval $ac_try) 2>&5 4567 ac_status=$? 4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4569 (exit $ac_status); }; }; then 4570 ac_cv_search_opendir="none required" 4571 else 4572 echo "$as_me: failed program was:" >&5 4573 sed 's/^/| /' conftest.$ac_ext >&5 4574 4575 fi 4576 rm -f conftest.err conftest.$ac_objext \ 4577 conftest$ac_exeext conftest.$ac_ext 4578 if test "$ac_cv_search_opendir" = no; then 4579 for ac_lib in x; do 4580 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4581 cat >conftest.$ac_ext <<_ACEOF 4582 /* confdefs.h. */ 4583 _ACEOF 4584 cat confdefs.h >>conftest.$ac_ext 4585 cat >>conftest.$ac_ext <<_ACEOF 4586 /* end confdefs.h. */ 4587 4588 /* Override any gcc2 internal prototype to avoid an error. */ 4589 #ifdef __cplusplus 4590 extern "C" 4591 #endif 4592 /* We use char because int might match the return type of a gcc2 4593 builtin and then its argument prototype would still apply. */ 4594 char opendir (); 4595 int 4596 main () 4597 { 4598 opendir (); 4599 ; 4600 return 0; 4601 } 4602 _ACEOF 4603 rm -f conftest.$ac_objext conftest$ac_exeext 4604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4605 (eval $ac_link) 2>conftest.er1 4606 ac_status=$? 4607 grep -v '^ *+' conftest.er1 >conftest.err 4608 rm -f conftest.er1 4609 cat conftest.err >&5 4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4611 (exit $ac_status); } && 4612 { ac_try='test -z "$ac_c_werror_flag" 4613 || test ! -s conftest.err' 4614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4615 (eval $ac_try) 2>&5 4616 ac_status=$? 4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4618 (exit $ac_status); }; } && 4619 { ac_try='test -s conftest$ac_exeext' 4620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4621 (eval $ac_try) 2>&5 4622 ac_status=$? 4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4624 (exit $ac_status); }; }; then 4625 ac_cv_search_opendir="-l$ac_lib" 4626 break 4627 else 4628 echo "$as_me: failed program was:" >&5 4629 sed 's/^/| /' conftest.$ac_ext >&5 4630 4631 fi 4632 rm -f conftest.err conftest.$ac_objext \ 4633 conftest$ac_exeext conftest.$ac_ext 4634 done 4635 fi 4636 LIBS=$ac_func_search_save_LIBS 4637 fi 4638 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 4639 echo "${ECHO_T}$ac_cv_search_opendir" >&6 4640 if test "$ac_cv_search_opendir" != no; then 4641 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 4642 4643 fi 4644 4645 fi 4646 4647 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4648 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4649 if test "${ac_cv_header_stdc+set}" = set; then 4650 echo $ECHO_N "(cached) $ECHO_C" >&6 4651 else 4652 cat >conftest.$ac_ext <<_ACEOF 4653 /* confdefs.h. */ 4654 _ACEOF 4655 cat confdefs.h >>conftest.$ac_ext 4656 cat >>conftest.$ac_ext <<_ACEOF 4657 /* end confdefs.h. */ 1388 4658 #include <stdlib.h> 1389 4659 #include <stdarg.h> 1390 4660 #include <string.h> 1391 4661 #include <float.h> 1392 EOF 1393 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1394 { (eval echo configure:1395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1395 ac_err=`grep -v '^ *+' conftest.out` 1396 if test -z "$ac_err"; then 1397 rm -rf conftest* 4662 4663 int 4664 main () 4665 { 4666 4667 ; 4668 return 0; 4669 } 4670 _ACEOF 4671 rm -f conftest.$ac_objext 4672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4673 (eval $ac_compile) 2>conftest.er1 4674 ac_status=$? 4675 grep -v '^ *+' conftest.er1 >conftest.err 4676 rm -f conftest.er1 4677 cat conftest.err >&5 4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4679 (exit $ac_status); } && 4680 { ac_try='test -z "$ac_c_werror_flag" 4681 || test ! -s conftest.err' 4682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4683 (eval $ac_try) 2>&5 4684 ac_status=$? 4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4686 (exit $ac_status); }; } && 4687 { ac_try='test -s conftest.$ac_objext' 4688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4689 (eval $ac_try) 2>&5 4690 ac_status=$? 4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4692 (exit $ac_status); }; }; then 1398 4693 ac_cv_header_stdc=yes 1399 4694 else 1400 echo "$ac_err" >&5 1401 echo "configure: failed program was:" >&5 1402 cat conftest.$ac_ext >&5 1403 rm -rf conftest* 1404 ac_cv_header_stdc=no 1405 fi 1406 rm -f conftest* 4695 echo "$as_me: failed program was:" >&5 4696 sed 's/^/| /' conftest.$ac_ext >&5 4697 4698 ac_cv_header_stdc=no 4699 fi 4700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1407 4701 1408 4702 if test $ac_cv_header_stdc = yes; then 1409 4703 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1410 cat > conftest.$ac_ext <<EOF 1411 #line 1412 "configure" 1412 #include "confdefs.h" 4704 cat >conftest.$ac_ext <<_ACEOF 4705 /* confdefs.h. */ 4706 _ACEOF 4707 cat confdefs.h >>conftest.$ac_ext 4708 cat >>conftest.$ac_ext <<_ACEOF 4709 /* end confdefs.h. */ 1413 4710 #include <string.h> 1414 EOF 4711 4712 _ACEOF 1415 4713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1416 egrep"memchr" >/dev/null 2>&1; then4714 $EGREP "memchr" >/dev/null 2>&1; then 1417 4715 : 1418 4716 else 1419 rm -rf conftest*1420 4717 ac_cv_header_stdc=no 1421 4718 fi … … 1426 4723 if test $ac_cv_header_stdc = yes; then 1427 4724 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1428 cat > conftest.$ac_ext <<EOF 1429 #line 1430 "configure" 1430 #include "confdefs.h" 4725 cat >conftest.$ac_ext <<_ACEOF 4726 /* confdefs.h. */ 4727 _ACEOF 4728 cat confdefs.h >>conftest.$ac_ext 4729 cat >>conftest.$ac_ext <<_ACEOF 4730 /* end confdefs.h. */ 1431 4731 #include <stdlib.h> 1432 EOF 4732 4733 _ACEOF 1433 4734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1434 egrep"free" >/dev/null 2>&1; then4735 $EGREP "free" >/dev/null 2>&1; then 1435 4736 : 1436 4737 else 1437 rm -rf conftest*1438 4738 ac_cv_header_stdc=no 1439 4739 fi … … 1444 4744 if test $ac_cv_header_stdc = yes; then 1445 4745 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 1446 if test "$cross_compiling" = yes; then4746 if test "$cross_compiling" = yes; then 1447 4747 : 1448 4748 else 1449 cat > conftest.$ac_ext <<EOF 1450 #line 1451 "configure" 1451 #include "confdefs.h" 4749 cat >conftest.$ac_ext <<_ACEOF 4750 /* confdefs.h. */ 4751 _ACEOF 4752 cat confdefs.h >>conftest.$ac_ext 4753 cat >>conftest.$ac_ext <<_ACEOF 4754 /* end confdefs.h. */ 1452 4755 #include <ctype.h> 1453 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 1454 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4756 #if ((' ' & 0x0FF) == 0x020) 4757 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4758 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4759 #else 4760 # define ISLOWER(c) \ 4761 (('a' <= (c) && (c) <= 'i') \ 4762 || ('j' <= (c) && (c) <= 'r') \ 4763 || ('s' <= (c) && (c) <= 'z')) 4764 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4765 #endif 4766 1455 4767 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 1456 int main () { int i; for (i = 0; i < 256; i++) 1457 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 1458 exit (0); } 1459 1460 EOF 1461 if { (eval echo configure:1462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null 1462 then 4768 int 4769 main () 4770 { 4771 int i; 4772 for (i = 0; i < 256; i++) 4773 if (XOR (islower (i), ISLOWER (i)) 4774 || toupper (i) != TOUPPER (i)) 4775 exit(2); 4776 exit (0); 4777 } 4778 _ACEOF 4779 rm -f conftest$ac_exeext 4780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4781 (eval $ac_link) 2>&5 4782 ac_status=$? 4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4784 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4786 (eval $ac_try) 2>&5 4787 ac_status=$? 4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4789 (exit $ac_status); }; }; then 1463 4790 : 1464 4791 else 1465 echo "configure: failed program was:" >&5 1466 cat conftest.$ac_ext >&5 1467 rm -fr conftest* 1468 ac_cv_header_stdc=no 1469 fi 1470 rm -fr conftest* 1471 fi 1472 1473 fi 1474 fi 1475 1476 echo "$ac_t""$ac_cv_header_stdc" 1>&6 4792 echo "$as_me: program exited with status $ac_status" >&5 4793 echo "$as_me: failed program was:" >&5 4794 sed 's/^/| /' conftest.$ac_ext >&5 4795 4796 ( exit $ac_status ) 4797 ac_cv_header_stdc=no 4798 fi 4799 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4800 fi 4801 fi 4802 fi 4803 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4804 echo "${ECHO_T}$ac_cv_header_stdc" >&6 1477 4805 if test $ac_cv_header_stdc = yes; then 1478 cat >> confdefs.h <<\EOF 4806 4807 cat >>confdefs.h <<\_ACEOF 1479 4808 #define STDC_HEADERS 1 1480 EOF 1481 1482 fi 1483 1484 echo $ac_n "checking for off_t""... $ac_c" 1>&6 1485 echo "configure:1486: checking for off_t" >&5 1486 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then 1487 echo $ac_n "(cached) $ac_c" 1>&6 1488 else 1489 cat > conftest.$ac_ext <<EOF 1490 #line 1491 "configure" 1491 #include "confdefs.h" 1492 #include <sys/types.h> 1493 #if STDC_HEADERS 1494 #include <stdlib.h> 1495 #include <stddef.h> 1496 #endif 1497 EOF 4809 _ACEOF 4810 4811 fi 4812 4813 4814 4815 4816 4817 4818 4819 4820 for ac_header in fcntl.h limits.h sys/time.h unistd.h string.h memory.h sys/procfs.h 4821 do 4822 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4823 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4824 echo "$as_me:$LINENO: checking for $ac_header" >&5 4825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4826 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4827 echo $ECHO_N "(cached) $ECHO_C" >&6 4828 fi 4829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4830 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4831 else 4832 # Is the header compilable? 4833 echo "$as_me:$LINENO: checking $ac_header usability" >&5 4834 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4835 cat >conftest.$ac_ext <<_ACEOF 4836 /* confdefs.h. */ 4837 _ACEOF 4838 cat confdefs.h >>conftest.$ac_ext 4839 cat >>conftest.$ac_ext <<_ACEOF 4840 /* end confdefs.h. */ 4841 $ac_includes_default 4842 #include <$ac_header> 4843 _ACEOF 4844 rm -f conftest.$ac_objext 4845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4846 (eval $ac_compile) 2>conftest.er1 4847 ac_status=$? 4848 grep -v '^ *+' conftest.er1 >conftest.err 4849 rm -f conftest.er1 4850 cat conftest.err >&5 4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4852 (exit $ac_status); } && 4853 { ac_try='test -z "$ac_c_werror_flag" 4854 || test ! -s conftest.err' 4855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4856 (eval $ac_try) 2>&5 4857 ac_status=$? 4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4859 (exit $ac_status); }; } && 4860 { ac_try='test -s conftest.$ac_objext' 4861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4862 (eval $ac_try) 2>&5 4863 ac_status=$? 4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4865 (exit $ac_status); }; }; then 4866 ac_header_compiler=yes 4867 else 4868 echo "$as_me: failed program was:" >&5 4869 sed 's/^/| /' conftest.$ac_ext >&5 4870 4871 ac_header_compiler=no 4872 fi 4873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4874 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4875 echo "${ECHO_T}$ac_header_compiler" >&6 4876 4877 # Is the header present? 4878 echo "$as_me:$LINENO: checking $ac_header presence" >&5 4879 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4880 cat >conftest.$ac_ext <<_ACEOF 4881 /* confdefs.h. */ 4882 _ACEOF 4883 cat confdefs.h >>conftest.$ac_ext 4884 cat >>conftest.$ac_ext <<_ACEOF 4885 /* end confdefs.h. */ 4886 #include <$ac_header> 4887 _ACEOF 4888 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4889 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4890 ac_status=$? 4891 grep -v '^ *+' conftest.er1 >conftest.err 4892 rm -f conftest.er1 4893 cat conftest.err >&5 4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4895 (exit $ac_status); } >/dev/null; then 4896 if test -s conftest.err; then 4897 ac_cpp_err=$ac_c_preproc_warn_flag 4898 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4899 else 4900 ac_cpp_err= 4901 fi 4902 else 4903 ac_cpp_err=yes 4904 fi 4905 if test -z "$ac_cpp_err"; then 4906 ac_header_preproc=yes 4907 else 4908 echo "$as_me: failed program was:" >&5 4909 sed 's/^/| /' conftest.$ac_ext >&5 4910 4911 ac_header_preproc=no 4912 fi 4913 rm -f conftest.err conftest.$ac_ext 4914 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4915 echo "${ECHO_T}$ac_header_preproc" >&6 4916 4917 # So? What about this header? 4918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4919 yes:no: ) 4920 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4921 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4923 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4924 ac_header_preproc=yes 4925 ;; 4926 no:yes:* ) 4927 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4928 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4929 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4930 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4931 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4932 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4933 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4934 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4936 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4937 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4938 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4939 ( 4940 cat <<\_ASBOX 4941 ## ------------------------------------------ ## 4942 ## Report this to the AC_PACKAGE_NAME lists. ## 4943 ## ------------------------------------------ ## 4944 _ASBOX 4945 ) | 4946 sed "s/^/$as_me: WARNING: /" >&2 4947 ;; 4948 esac 4949 echo "$as_me:$LINENO: checking for $ac_header" >&5 4950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4951 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4952 echo $ECHO_N "(cached) $ECHO_C" >&6 4953 else 4954 eval "$as_ac_Header=\$ac_header_preproc" 4955 fi 4956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4957 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4958 4959 fi 4960 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4961 cat >>confdefs.h <<_ACEOF 4962 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4963 _ACEOF 4964 4965 fi 4966 4967 done 4968 4969 cat >conftest.$ac_ext <<_ACEOF 4970 /* confdefs.h. */ 4971 _ACEOF 4972 cat confdefs.h >>conftest.$ac_ext 4973 cat >>conftest.$ac_ext <<_ACEOF 4974 /* end confdefs.h. */ 4975 #include <stdio.h> 4976 4977 _ACEOF 1498 4978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1499 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 1500 rm -rf conftest* 1501 ac_cv_type_off_t=yes 1502 else 1503 rm -rf conftest* 1504 ac_cv_type_off_t=no 4979 $EGREP "fread" >/dev/null 2>&1; then 4980 cat >>confdefs.h <<\_ACEOF 4981 #define HAVE_FREAD_DECL 1 4982 _ACEOF 4983 1505 4984 fi 1506 4985 rm -f conftest* 1507 4986 1508 fi 1509 echo "$ac_t""$ac_cv_type_off_t" 1>&6 1510 if test $ac_cv_type_off_t = no; then 1511 cat >> confdefs.h <<\EOF 1512 #define off_t long 1513 EOF 1514 1515 fi 1516 1517 echo $ac_n "checking for size_t""... $ac_c" 1>&6 1518 echo "configure:1519: checking for size_t" >&5 1519 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 1520 echo $ac_n "(cached) $ac_c" 1>&6 1521 else 1522 cat > conftest.$ac_ext <<EOF 1523 #line 1524 "configure" 1524 #include "confdefs.h" 1525 #include <sys/types.h> 1526 #if STDC_HEADERS 1527 #include <stdlib.h> 1528 #include <stddef.h> 1529 #endif 1530 EOF 4987 cat >conftest.$ac_ext <<_ACEOF 4988 /* confdefs.h. */ 4989 _ACEOF 4990 cat confdefs.h >>conftest.$ac_ext 4991 cat >>conftest.$ac_ext <<_ACEOF 4992 /* end confdefs.h. */ 4993 #include <stdio.h> 4994 4995 _ACEOF 1531 4996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1532 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 1533 rm -rf conftest* 1534 ac_cv_type_size_t=yes 1535 else 1536 rm -rf conftest* 1537 ac_cv_type_size_t=no 4997 $EGREP "fgetc" >/dev/null 2>&1; then 4998 cat >>confdefs.h <<\_ACEOF 4999 #define HAVE_FGETC_DECL 1 5000 _ACEOF 5001 1538 5002 fi 1539 5003 rm -f conftest* 1540 5004 1541 fi 1542 echo "$ac_t""$ac_cv_type_size_t" 1>&6 1543 if test $ac_cv_type_size_t = no; then 1544 cat >> confdefs.h <<\EOF 1545 #define size_t unsigned 1546 EOF 1547 1548 fi 1549 1550 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 1551 echo "configure:1552: checking whether time.h and sys/time.h may both be included" >&5 1552 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 1553 echo $ac_n "(cached) $ac_c" 1>&6 1554 else 1555 cat > conftest.$ac_ext <<EOF 1556 #line 1557 "configure" 1557 #include "confdefs.h" 1558 #include <sys/types.h> 1559 #include <sys/time.h> 1560 #include <time.h> 1561 int main() { 1562 struct tm *tp; 1563 ; return 0; } 1564 EOF 1565 if { (eval echo configure:1566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1566 rm -rf conftest* 1567 ac_cv_header_time=yes 1568 else 1569 echo "configure: failed program was:" >&5 1570 cat conftest.$ac_ext >&5 1571 rm -rf conftest* 1572 ac_cv_header_time=no 1573 fi 1574 rm -f conftest* 1575 fi 1576 1577 echo "$ac_t""$ac_cv_header_time" 1>&6 1578 if test $ac_cv_header_time = yes; then 1579 cat >> confdefs.h <<\EOF 1580 #define TIME_WITH_SYS_TIME 1 1581 EOF 1582 1583 fi 1584 1585 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 1586 echo "configure:1587: checking whether struct tm is in sys/time.h or time.h" >&5 1587 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then 1588 echo $ac_n "(cached) $ac_c" 1>&6 1589 else 1590 cat > conftest.$ac_ext <<EOF 1591 #line 1592 "configure" 1592 #include "confdefs.h" 1593 #include <sys/types.h> 1594 #include <time.h> 1595 int main() { 1596 struct tm *tp; tp->tm_sec; 1597 ; return 0; } 1598 EOF 1599 if { (eval echo configure:1600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1600 rm -rf conftest* 1601 ac_cv_struct_tm=time.h 1602 else 1603 echo "configure: failed program was:" >&5 1604 cat conftest.$ac_ext >&5 1605 rm -rf conftest* 1606 ac_cv_struct_tm=sys/time.h 1607 fi 1608 rm -f conftest* 1609 fi 1610 1611 echo "$ac_t""$ac_cv_struct_tm" 1>&6 1612 if test $ac_cv_struct_tm = sys/time.h; then 1613 cat >> confdefs.h <<\EOF 1614 #define TM_IN_SYS_TIME 1 1615 EOF 1616 1617 fi 1618 1619 1620 if test "$ac_cv_prog_cc_stdc" = '-Xc'; then 1621 cat > conftest.$ac_ext <<EOF 1622 #line 1623 "configure" 1623 #include "confdefs.h" 1624 #include <stdio.h> 1625 1626 int main() { 1627 FILE *rubbish = popen("yes", "r"); 1628 ; return 0; } 1629 EOF 1630 if { (eval echo configure:1631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1631 : 1632 else 1633 echo "configure: failed program was:" >&5 1634 cat conftest.$ac_ext >&5 1635 rm -rf conftest* 1636 CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa' 1637 fi 1638 rm -f conftest* 1639 fi 1640 1641 1642 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6 1643 echo "configure:1644: checking for main in -lm" >&5 1644 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'` 1645 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1646 echo $ac_n "(cached) $ac_c" 1>&6 1647 else 1648 ac_save_LIBS="$LIBS" 1649 LIBS="-lm $LIBS" 1650 cat > conftest.$ac_ext <<EOF 1651 #line 1652 "configure" 1652 #include "confdefs.h" 1653 1654 int main() { 1655 main() 1656 ; return 0; } 1657 EOF 1658 if { (eval echo configure:1659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1659 rm -rf conftest* 1660 eval "ac_cv_lib_$ac_lib_var=yes" 1661 else 1662 echo "configure: failed program was:" >&5 1663 cat conftest.$ac_ext >&5 1664 rm -rf conftest* 1665 eval "ac_cv_lib_$ac_lib_var=no" 1666 fi 1667 rm -f conftest* 1668 LIBS="$ac_save_LIBS" 1669 1670 fi 1671 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1672 echo "$ac_t""yes" 1>&6 1673 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1674 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1675 cat >> confdefs.h <<EOF 1676 #define $ac_tr_lib 1 1677 EOF 1678 1679 LIBS="-lm $LIBS" 1680 1681 else 1682 echo "$ac_t""no" 1>&6 1683 fi 1684 1685 1686 ac_header_dirent=no 1687 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h 1688 do 1689 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1690 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 1691 echo "configure:1692: checking for $ac_hdr that defines DIR" >&5 1692 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then 1693 echo $ac_n "(cached) $ac_c" 1>&6 1694 else 1695 cat > conftest.$ac_ext <<EOF 1696 #line 1697 "configure" 1697 #include "confdefs.h" 1698 #include <sys/types.h> 1699 #include <$ac_hdr> 1700 int main() { 1701 DIR *dirp = 0; 1702 ; return 0; } 1703 EOF 1704 if { (eval echo configure:1705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1705 rm -rf conftest* 1706 eval "ac_cv_header_dirent_$ac_safe=yes" 1707 else 1708 echo "configure: failed program was:" >&5 1709 cat conftest.$ac_ext >&5 1710 rm -rf conftest* 1711 eval "ac_cv_header_dirent_$ac_safe=no" 1712 fi 1713 rm -f conftest* 1714 fi 1715 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then 1716 echo "$ac_t""yes" 1>&6 1717 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1718 cat >> confdefs.h <<EOF 1719 #define $ac_tr_hdr 1 1720 EOF 1721 ac_header_dirent=$ac_hdr; break 1722 else 1723 echo "$ac_t""no" 1>&6 1724 fi 1725 done 1726 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 1727 if test $ac_header_dirent = dirent.h; then 1728 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 1729 echo "configure:1730: checking for opendir in -ldir" >&5 1730 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` 1731 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1732 echo $ac_n "(cached) $ac_c" 1>&6 1733 else 1734 ac_save_LIBS="$LIBS" 1735 LIBS="-ldir $LIBS" 1736 cat > conftest.$ac_ext <<EOF 1737 #line 1738 "configure" 1738 #include "confdefs.h" 1739 /* Override any gcc2 internal prototype to avoid an error. */ 1740 /* We use char because int might match the return type of a gcc2 1741 builtin and then its argument prototype would still apply. */ 1742 char opendir(); 1743 1744 int main() { 1745 opendir() 1746 ; return 0; } 1747 EOF 1748 if { (eval echo configure:1749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1749 rm -rf conftest* 1750 eval "ac_cv_lib_$ac_lib_var=yes" 1751 else 1752 echo "configure: failed program was:" >&5 1753 cat conftest.$ac_ext >&5 1754 rm -rf conftest* 1755 eval "ac_cv_lib_$ac_lib_var=no" 1756 fi 1757 rm -f conftest* 1758 LIBS="$ac_save_LIBS" 1759 1760 fi 1761 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1762 echo "$ac_t""yes" 1>&6 1763 LIBS="$LIBS -ldir" 1764 else 1765 echo "$ac_t""no" 1>&6 1766 fi 1767 1768 else 1769 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 1770 echo "configure:1771: checking for opendir in -lx" >&5 1771 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` 1772 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1773 echo $ac_n "(cached) $ac_c" 1>&6 1774 else 1775 ac_save_LIBS="$LIBS" 1776 LIBS="-lx $LIBS" 1777 cat > conftest.$ac_ext <<EOF 1778 #line 1779 "configure" 1779 #include "confdefs.h" 1780 /* Override any gcc2 internal prototype to avoid an error. */ 1781 /* We use char because int might match the return type of a gcc2 1782 builtin and then its argument prototype would still apply. */ 1783 char opendir(); 1784 1785 int main() { 1786 opendir() 1787 ; return 0; } 1788 EOF 1789 if { (eval echo configure:1790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1790 rm -rf conftest* 1791 eval "ac_cv_lib_$ac_lib_var=yes" 1792 else 1793 echo "configure: failed program was:" >&5 1794 cat conftest.$ac_ext >&5 1795 rm -rf conftest* 1796 eval "ac_cv_lib_$ac_lib_var=no" 1797 fi 1798 rm -f conftest* 1799 LIBS="$ac_save_LIBS" 1800 1801 fi 1802 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1803 echo "$ac_t""yes" 1>&6 1804 LIBS="$LIBS -lx" 1805 else 1806 echo "$ac_t""no" 1>&6 1807 fi 1808 1809 fi 1810 1811 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1812 echo "configure:1813: checking for ANSI C header files" >&5 1813 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1814 echo $ac_n "(cached) $ac_c" 1>&6 1815 else 1816 cat > conftest.$ac_ext <<EOF 1817 #line 1818 "configure" 1818 #include "confdefs.h" 1819 #include <stdlib.h> 1820 #include <stdarg.h> 1821 #include <string.h> 1822 #include <float.h> 1823 EOF 1824 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1825 { (eval echo configure:1826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1826 ac_err=`grep -v '^ *+' conftest.out` 1827 if test -z "$ac_err"; then 1828 rm -rf conftest* 1829 ac_cv_header_stdc=yes 1830 else 1831 echo "$ac_err" >&5 1832 echo "configure: failed program was:" >&5 1833 cat conftest.$ac_ext >&5 1834 rm -rf conftest* 1835 ac_cv_header_stdc=no 1836 fi 1837 rm -f conftest* 1838 1839 if test $ac_cv_header_stdc = yes; then 1840 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1841 cat > conftest.$ac_ext <<EOF 1842 #line 1843 "configure" 1843 #include "confdefs.h" 1844 #include <string.h> 1845 EOF 5005 cat >conftest.$ac_ext <<_ACEOF 5006 /* confdefs.h. */ 5007 _ACEOF 5008 cat confdefs.h >>conftest.$ac_ext 5009 cat >>conftest.$ac_ext <<_ACEOF 5010 /* end confdefs.h. */ 5011 #include <sys/procfs.h> 5012 5013 _ACEOF 1846 5014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1847 egrep "memchr" >/dev/null 2>&1; then 1848 : 1849 else 1850 rm -rf conftest* 1851 ac_cv_header_stdc=no 1852 fi 1853 rm -f conftest* 1854 1855 fi 1856 1857 if test $ac_cv_header_stdc = yes; then 1858 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1859 cat > conftest.$ac_ext <<EOF 1860 #line 1861 "configure" 1861 #include "confdefs.h" 1862 #include <stdlib.h> 1863 EOF 1864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1865 egrep "free" >/dev/null 2>&1; then 1866 : 1867 else 1868 rm -rf conftest* 1869 ac_cv_header_stdc=no 1870 fi 1871 rm -f conftest* 1872 1873 fi 1874 1875 if test $ac_cv_header_stdc = yes; then 1876 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 1877 if test "$cross_compiling" = yes; then 1878 : 1879 else 1880 cat > conftest.$ac_ext <<EOF 1881 #line 1882 "configure" 1882 #include "confdefs.h" 1883 #include <ctype.h> 1884 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 1885 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 1886 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 1887 int main () { int i; for (i = 0; i < 256; i++) 1888 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 1889 exit (0); } 1890 1891 EOF 1892 if { (eval echo configure:1893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null 1893 then 1894 : 1895 else 1896 echo "configure: failed program was:" >&5 1897 cat conftest.$ac_ext >&5 1898 rm -fr conftest* 1899 ac_cv_header_stdc=no 1900 fi 1901 rm -fr conftest* 1902 fi 1903 1904 fi 1905 fi 1906 1907 echo "$ac_t""$ac_cv_header_stdc" 1>&6 1908 if test $ac_cv_header_stdc = yes; then 1909 cat >> confdefs.h <<\EOF 1910 #define STDC_HEADERS 1 1911 EOF 1912 1913 fi 1914 1915 for ac_hdr in fcntl.h limits.h sys/time.h unistd.h string.h memory.h sys/procfs.h 1916 do 1917 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1918 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1919 echo "configure:1920: checking for $ac_hdr" >&5 1920 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1921 echo $ac_n "(cached) $ac_c" 1>&6 1922 else 1923 cat > conftest.$ac_ext <<EOF 1924 #line 1925 "configure" 1925 #include "confdefs.h" 1926 #include <$ac_hdr> 1927 EOF 1928 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1929 { (eval echo configure:1930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1930 ac_err=`grep -v '^ *+' conftest.out` 1931 if test -z "$ac_err"; then 1932 rm -rf conftest* 1933 eval "ac_cv_header_$ac_safe=yes" 1934 else 1935 echo "$ac_err" >&5 1936 echo "configure: failed program was:" >&5 1937 cat conftest.$ac_ext >&5 1938 rm -rf conftest* 1939 eval "ac_cv_header_$ac_safe=no" 1940 fi 1941 rm -f conftest* 1942 fi 1943 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1944 echo "$ac_t""yes" 1>&6 1945 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1946 cat >> confdefs.h <<EOF 1947 #define $ac_tr_hdr 1 1948 EOF 1949 1950 else 1951 echo "$ac_t""no" 1>&6 1952 fi 1953 done 1954 1955 cat > conftest.$ac_ext <<EOF 1956 #line 1957 "configure" 1957 #include "confdefs.h" 1958 #include <stdio.h> 1959 EOF 1960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1961 egrep "fread" >/dev/null 2>&1; then 1962 rm -rf conftest* 1963 cat >> confdefs.h <<\EOF 1964 #define HAVE_FREAD_DECL 1 1965 EOF 1966 1967 fi 1968 rm -f conftest* 1969 1970 cat > conftest.$ac_ext <<EOF 1971 #line 1972 "configure" 1972 #include "confdefs.h" 1973 #include <stdio.h> 1974 EOF 1975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1976 egrep "fgetc" >/dev/null 2>&1; then 1977 rm -rf conftest* 1978 cat >> confdefs.h <<\EOF 1979 #define HAVE_FGETC_DECL 1 1980 EOF 1981 1982 fi 1983 rm -f conftest* 1984 1985 cat > conftest.$ac_ext <<EOF 1986 #line 1987 "configure" 1987 #include "confdefs.h" 1988 #include <sys/procfs.h> 1989 EOF 1990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1991 egrep "pr_brksize" >/dev/null 2>&1; then 1992 rm -rf conftest* 1993 cat >> confdefs.h <<\EOF 5015 $EGREP "pr_brksize" >/dev/null 2>&1; then 5016 cat >>confdefs.h <<\_ACEOF 1994 5017 #define HAVE_PR_BRKSIZE 1 1995 EOF5018 _ACEOF 1996 5019 1997 5020 fi … … 2001 5024 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 2002 5025 # for constant arguments. Useless! 2003 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 2004 echo "configure:2005: checking for working alloca.h" >&5 2005 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then 2006 echo $ac_n "(cached) $ac_c" 1>&6 2007 else 2008 cat > conftest.$ac_ext <<EOF 2009 #line 2010 "configure" 2010 #include "confdefs.h" 5026 echo "$as_me:$LINENO: checking for working alloca.h" >&5 5027 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 5028 if test "${ac_cv_working_alloca_h+set}" = set; then 5029 echo $ECHO_N "(cached) $ECHO_C" >&6 5030 else 5031 cat >conftest.$ac_ext <<_ACEOF 5032 /* confdefs.h. */ 5033 _ACEOF 5034 cat confdefs.h >>conftest.$ac_ext 5035 cat >>conftest.$ac_ext <<_ACEOF 5036 /* end confdefs.h. */ 2011 5037 #include <alloca.h> 2012 int main() { 2013 char *p = alloca(2 * sizeof(int)); 2014 ; return 0; } 2015 EOF 2016 if { (eval echo configure:2017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2017 rm -rf conftest* 2018 ac_cv_header_alloca_h=yes 2019 else 2020 echo "configure: failed program was:" >&5 2021 cat conftest.$ac_ext >&5 2022 rm -rf conftest* 2023 ac_cv_header_alloca_h=no 2024 fi 2025 rm -f conftest* 2026 fi 2027 2028 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 2029 if test $ac_cv_header_alloca_h = yes; then 2030 cat >> confdefs.h <<\EOF 5038 int 5039 main () 5040 { 5041 char *p = (char *) alloca (2 * sizeof (int)); 5042 ; 5043 return 0; 5044 } 5045 _ACEOF 5046 rm -f conftest.$ac_objext conftest$ac_exeext 5047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5048 (eval $ac_link) 2>conftest.er1 5049 ac_status=$? 5050 grep -v '^ *+' conftest.er1 >conftest.err 5051 rm -f conftest.er1 5052 cat conftest.err >&5 5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5054 (exit $ac_status); } && 5055 { ac_try='test -z "$ac_c_werror_flag" 5056 || test ! -s conftest.err' 5057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5058 (eval $ac_try) 2>&5 5059 ac_status=$? 5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5061 (exit $ac_status); }; } && 5062 { ac_try='test -s conftest$ac_exeext' 5063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5064 (eval $ac_try) 2>&5 5065 ac_status=$? 5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5067 (exit $ac_status); }; }; then 5068 ac_cv_working_alloca_h=yes 5069 else 5070 echo "$as_me: failed program was:" >&5 5071 sed 's/^/| /' conftest.$ac_ext >&5 5072 5073 ac_cv_working_alloca_h=no 5074 fi 5075 rm -f conftest.err conftest.$ac_objext \ 5076 conftest$ac_exeext conftest.$ac_ext 5077 fi 5078 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 5079 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 5080 if test $ac_cv_working_alloca_h = yes; then 5081 5082 cat >>confdefs.h <<\_ACEOF 2031 5083 #define HAVE_ALLOCA_H 1 2032 EOF 2033 2034 fi 2035 2036 echo $ac_n "checking for alloca""... $ac_c" 1>&6 2037 echo "configure:2038: checking for alloca" >&5 2038 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then 2039 echo $ac_n "(cached) $ac_c" 1>&6 2040 else 2041 cat > conftest.$ac_ext <<EOF 2042 #line 2043 "configure" 2043 #include "confdefs.h" 2044 5084 _ACEOF 5085 5086 fi 5087 5088 echo "$as_me:$LINENO: checking for alloca" >&5 5089 echo $ECHO_N "checking for alloca... $ECHO_C" >&6 5090 if test "${ac_cv_func_alloca_works+set}" = set; then 5091 echo $ECHO_N "(cached) $ECHO_C" >&6 5092 else 5093 cat >conftest.$ac_ext <<_ACEOF 5094 /* confdefs.h. */ 5095 _ACEOF 5096 cat confdefs.h >>conftest.$ac_ext 5097 cat >>conftest.$ac_ext <<_ACEOF 5098 /* end confdefs.h. */ 2045 5099 #ifdef __GNUC__ 2046 5100 # define alloca __builtin_alloca 2047 5101 #else 2048 # if HAVE_ALLOCA_H 2049 # include <alloca.h> 5102 # ifdef _MSC_VER 5103 # include <malloc.h> 5104 # define alloca _alloca 2050 5105 # else 2051 # ifdef _AIX 5106 # if HAVE_ALLOCA_H 5107 # include <alloca.h> 5108 # else 5109 # ifdef _AIX 2052 5110 #pragma alloca 2053 # else2054 # ifndef alloca /* predefined by HP cc +Olibcalls */5111 # else 5112 # ifndef alloca /* predefined by HP cc +Olibcalls */ 2055 5113 char *alloca (); 5114 # endif 2056 5115 # endif 2057 5116 # endif … … 2059 5118 #endif 2060 5119 2061 int main() { 2062 char *p = (char *) alloca(1); 2063 ; return 0; } 2064 EOF 2065 if { (eval echo configure:2066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2066 rm -rf conftest* 5120 int 5121 main () 5122 { 5123 char *p = (char *) alloca (1); 5124 ; 5125 return 0; 5126 } 5127 _ACEOF 5128 rm -f conftest.$ac_objext conftest$ac_exeext 5129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5130 (eval $ac_link) 2>conftest.er1 5131 ac_status=$? 5132 grep -v '^ *+' conftest.er1 >conftest.err 5133 rm -f conftest.er1 5134 cat conftest.err >&5 5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5136 (exit $ac_status); } && 5137 { ac_try='test -z "$ac_c_werror_flag" 5138 || test ! -s conftest.err' 5139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5140 (eval $ac_try) 2>&5 5141 ac_status=$? 5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5143 (exit $ac_status); }; } && 5144 { ac_try='test -s conftest$ac_exeext' 5145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5146 (eval $ac_try) 2>&5 5147 ac_status=$? 5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5149 (exit $ac_status); }; }; then 2067 5150 ac_cv_func_alloca_works=yes 2068 5151 else 2069 echo "configure: failed program was:" >&5 2070 cat conftest.$ac_ext >&5 2071 rm -rf conftest* 2072 ac_cv_func_alloca_works=no 2073 fi 2074 rm -f conftest* 2075 fi 2076 2077 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 5152 echo "$as_me: failed program was:" >&5 5153 sed 's/^/| /' conftest.$ac_ext >&5 5154 5155 ac_cv_func_alloca_works=no 5156 fi 5157 rm -f conftest.err conftest.$ac_objext \ 5158 conftest$ac_exeext conftest.$ac_ext 5159 fi 5160 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 5161 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 5162 2078 5163 if test $ac_cv_func_alloca_works = yes; then 2079 cat >> confdefs.h <<\EOF 5164 5165 cat >>confdefs.h <<\_ACEOF 2080 5166 #define HAVE_ALLOCA 1 2081 EOF 2082 2083 fi 2084 2085 if test $ac_cv_func_alloca_works = no; then 5167 _ACEOF 5168 5169 else 2086 5170 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 2087 # that cause trouble. Some versions do not even contain alloca or 2088 # contain a buggy version. If you still want to use their alloca, 2089 # use ar to extract alloca.o from them instead of compiling alloca.c. 2090 ALLOCA=alloca.o 2091 cat >> confdefs.h <<\EOF 5171 # that cause trouble. Some versions do not even contain alloca or 5172 # contain a buggy version. If you still want to use their alloca, 5173 # use ar to extract alloca.o from them instead of compiling alloca.c. 5174 5175 ALLOCA=alloca.$ac_objext 5176 5177 cat >>confdefs.h <<\_ACEOF 2092 5178 #define C_ALLOCA 1 2093 EOF 2094 2095 2096 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 2097 echo "configure:2098: checking whether alloca needs Cray hooks" >&5 2098 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 2099 echo $ac_n "(cached) $ac_c" 1>&6 2100 else 2101 cat > conftest.$ac_ext <<EOF 2102 #line 2103 "configure" 2103 #include "confdefs.h" 5179 _ACEOF 5180 5181 5182 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 5183 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 5184 if test "${ac_cv_os_cray+set}" = set; then 5185 echo $ECHO_N "(cached) $ECHO_C" >&6 5186 else 5187 cat >conftest.$ac_ext <<_ACEOF 5188 /* confdefs.h. */ 5189 _ACEOF 5190 cat confdefs.h >>conftest.$ac_ext 5191 cat >>conftest.$ac_ext <<_ACEOF 5192 /* end confdefs.h. */ 2104 5193 #if defined(CRAY) && ! defined(CRAY2) 2105 5194 webecray … … 2108 5197 #endif 2109 5198 2110 EOF5199 _ACEOF 2111 5200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2112 egrep "webecray" >/dev/null 2>&1; then 2113 rm -rf conftest* 5201 $EGREP "webecray" >/dev/null 2>&1; then 2114 5202 ac_cv_os_cray=yes 2115 5203 else 2116 rm -rf conftest*2117 5204 ac_cv_os_cray=no 2118 5205 fi … … 2120 5207 2121 5208 fi 2122 2123 echo "$ ac_t""$ac_cv_os_cray" 1>&65209 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 5210 echo "${ECHO_T}$ac_cv_os_cray" >&6 2124 5211 if test $ac_cv_os_cray = yes; then 2125 for ac_func in _getb67 GETB67 getb67; do 2126 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2127 echo "configure:2128: checking for $ac_func" >&5 2128 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2129 echo $ac_n "(cached) $ac_c" 1>&6 2130 else 2131 cat > conftest.$ac_ext <<EOF 2132 #line 2133 "configure" 2133 #include "confdefs.h" 5212 for ac_func in _getb67 GETB67 getb67; do 5213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5214 echo "$as_me:$LINENO: checking for $ac_func" >&5 5215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5216 if eval "test \"\${$as_ac_var+set}\" = set"; then 5217 echo $ECHO_N "(cached) $ECHO_C" >&6 5218 else 5219 cat >conftest.$ac_ext <<_ACEOF 5220 /* confdefs.h. */ 5221 _ACEOF 5222 cat confdefs.h >>conftest.$ac_ext 5223 cat >>conftest.$ac_ext <<_ACEOF 5224 /* end confdefs.h. */ 5225 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5226 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5227 #define $ac_func innocuous_$ac_func 5228 2134 5229 /* System header to define __stub macros and hopefully few prototypes, 2135 which can conflict with char $ac_func(); below. */ 2136 #include <assert.h> 5230 which can conflict with char $ac_func (); below. 5231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5232 <limits.h> exists even on freestanding compilers. */ 5233 5234 #ifdef __STDC__ 5235 # include <limits.h> 5236 #else 5237 # include <assert.h> 5238 #endif 5239 5240 #undef $ac_func 5241 2137 5242 /* Override any gcc2 internal prototype to avoid an error. */ 5243 #ifdef __cplusplus 5244 extern "C" 5245 { 5246 #endif 2138 5247 /* We use char because int might match the return type of a gcc2 2139 builtin and then its argument prototype would still apply. */ 2140 char $ac_func(); 2141 2142 int main() { 2143 5248 builtin and then its argument prototype would still apply. */ 5249 char $ac_func (); 2144 5250 /* The GNU C library defines this for functions which it implements 2145 5251 to always fail with ENOSYS. Some functions are actually named … … 2148 5254 choke me 2149 5255 #else 2150 $ac_func();5256 char (*f) () = $ac_func; 2151 5257 #endif 2152 2153 ; return 0; } 2154 EOF 2155 if { (eval echo configure:2156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2156 rm -rf conftest* 2157 eval "ac_cv_func_$ac_func=yes" 2158 else 2159 echo "configure: failed program was:" >&5 2160 cat conftest.$ac_ext >&5 2161 rm -rf conftest* 2162 eval "ac_cv_func_$ac_func=no" 2163 fi 2164 rm -f conftest* 2165 fi 2166 2167 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2168 echo "$ac_t""yes" 1>&6 2169 cat >> confdefs.h <<EOF 5258 #ifdef __cplusplus 5259 } 5260 #endif 5261 5262 int 5263 main () 5264 { 5265 return f != $ac_func; 5266 ; 5267 return 0; 5268 } 5269 _ACEOF 5270 rm -f conftest.$ac_objext conftest$ac_exeext 5271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5272 (eval $ac_link) 2>conftest.er1 5273 ac_status=$? 5274 grep -v '^ *+' conftest.er1 >conftest.err 5275 rm -f conftest.er1 5276 cat conftest.err >&5 5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5278 (exit $ac_status); } && 5279 { ac_try='test -z "$ac_c_werror_flag" 5280 || test ! -s conftest.err' 5281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5282 (eval $ac_try) 2>&5 5283 ac_status=$? 5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5285 (exit $ac_status); }; } && 5286 { ac_try='test -s conftest$ac_exeext' 5287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5288 (eval $ac_try) 2>&5 5289 ac_status=$? 5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5291 (exit $ac_status); }; }; then 5292 eval "$as_ac_var=yes" 5293 else 5294 echo "$as_me: failed program was:" >&5 5295 sed 's/^/| /' conftest.$ac_ext >&5 5296 5297 eval "$as_ac_var=no" 5298 fi 5299 rm -f conftest.err conftest.$ac_objext \ 5300 conftest$ac_exeext conftest.$ac_ext 5301 fi 5302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5303 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5304 if test `eval echo '${'$as_ac_var'}'` = yes; then 5305 5306 cat >>confdefs.h <<_ACEOF 2170 5307 #define CRAY_STACKSEG_END $ac_func 2171 EOF 2172 2173 break 2174 else 2175 echo "$ac_t""no" 1>&6 2176 fi 2177 2178 done 2179 fi 2180 2181 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 2182 echo "configure:2183: checking stack direction for C alloca" >&5 2183 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 2184 echo $ac_n "(cached) $ac_c" 1>&6 5308 _ACEOF 5309 5310 break 5311 fi 5312 5313 done 5314 fi 5315 5316 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 5317 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 5318 if test "${ac_cv_c_stack_direction+set}" = set; then 5319 echo $ECHO_N "(cached) $ECHO_C" >&6 2185 5320 else 2186 5321 if test "$cross_compiling" = yes; then 2187 5322 ac_cv_c_stack_direction=0 2188 5323 else 2189 cat > conftest.$ac_ext <<EOF 2190 #line 2191 "configure" 2191 #include "confdefs.h" 5324 cat >conftest.$ac_ext <<_ACEOF 5325 /* confdefs.h. */ 5326 _ACEOF 5327 cat confdefs.h >>conftest.$ac_ext 5328 cat >>conftest.$ac_ext <<_ACEOF 5329 /* end confdefs.h. */ 5330 int 2192 5331 find_stack_direction () 2193 5332 { … … 2202 5341 return (&dummy > addr) ? 1 : -1; 2203 5342 } 5343 5344 int 2204 5345 main () 2205 5346 { 2206 exit (find_stack_direction () < 0);5347 exit (find_stack_direction () < 0); 2207 5348 } 2208 EOF 2209 if { (eval echo configure:2210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null 2210 then 5349 _ACEOF 5350 rm -f conftest$ac_exeext 5351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5352 (eval $ac_link) 2>&5 5353 ac_status=$? 5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5355 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5357 (eval $ac_try) 2>&5 5358 ac_status=$? 5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5360 (exit $ac_status); }; }; then 2211 5361 ac_cv_c_stack_direction=1 2212 5362 else 2213 echo "configure: failed program was:" >&5 2214 cat conftest.$ac_ext >&5 2215 rm -fr conftest* 2216 ac_cv_c_stack_direction=-1 2217 fi 2218 rm -fr conftest* 2219 fi 2220 2221 fi 2222 2223 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 2224 cat >> confdefs.h <<EOF 5363 echo "$as_me: program exited with status $ac_status" >&5 5364 echo "$as_me: failed program was:" >&5 5365 sed 's/^/| /' conftest.$ac_ext >&5 5366 5367 ( exit $ac_status ) 5368 ac_cv_c_stack_direction=-1 5369 fi 5370 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5371 fi 5372 fi 5373 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 5374 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 5375 5376 cat >>confdefs.h <<_ACEOF 2225 5377 #define STACK_DIRECTION $ac_cv_c_stack_direction 2226 EOF 2227 2228 fi 2229 2230 if test $ac_cv_prog_gcc = yes; then 2231 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 2232 echo "configure:2233: checking whether ${CC-cc} needs -traditional" >&5 2233 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then 2234 echo $ac_n "(cached) $ac_c" 1>&6 5378 _ACEOF 5379 5380 5381 fi 5382 5383 if test $ac_cv_c_compiler_gnu = yes; then 5384 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 5385 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 5386 if test "${ac_cv_prog_gcc_traditional+set}" = set; then 5387 echo $ECHO_N "(cached) $ECHO_C" >&6 2235 5388 else 2236 5389 ac_pattern="Autoconf.*'x'" 2237 cat > conftest.$ac_ext <<EOF 2238 #line 2239 "configure" 2239 #include "confdefs.h" 5390 cat >conftest.$ac_ext <<_ACEOF 5391 /* confdefs.h. */ 5392 _ACEOF 5393 cat confdefs.h >>conftest.$ac_ext 5394 cat >>conftest.$ac_ext <<_ACEOF 5395 /* end confdefs.h. */ 2240 5396 #include <sgtty.h> 2241 5397 Autoconf TIOCGETP 2242 EOF5398 _ACEOF 2243 5399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2244 egrep "$ac_pattern" >/dev/null 2>&1; then 2245 rm -rf conftest* 5400 $EGREP "$ac_pattern" >/dev/null 2>&1; then 2246 5401 ac_cv_prog_gcc_traditional=yes 2247 5402 else 2248 rm -rf conftest*2249 5403 ac_cv_prog_gcc_traditional=no 2250 5404 fi … … 2253 5407 2254 5408 if test $ac_cv_prog_gcc_traditional = no; then 2255 cat > conftest.$ac_ext <<EOF 2256 #line 2257 "configure" 2257 #include "confdefs.h" 5409 cat >conftest.$ac_ext <<_ACEOF 5410 /* confdefs.h. */ 5411 _ACEOF 5412 cat confdefs.h >>conftest.$ac_ext 5413 cat >>conftest.$ac_ext <<_ACEOF 5414 /* end confdefs.h. */ 2258 5415 #include <termio.h> 2259 5416 Autoconf TCGETA 2260 EOF5417 _ACEOF 2261 5418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2262 egrep "$ac_pattern" >/dev/null 2>&1; then 2263 rm -rf conftest* 5419 $EGREP "$ac_pattern" >/dev/null 2>&1; then 2264 5420 ac_cv_prog_gcc_traditional=yes 2265 5421 fi … … 2268 5424 fi 2269 5425 fi 2270 2271 echo "$ ac_t""$ac_cv_prog_gcc_traditional" 1>&65426 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 5427 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 2272 5428 if test $ac_cv_prog_gcc_traditional = yes; then 2273 5429 CC="$CC -traditional" … … 2275 5431 fi 2276 5432 2277 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 2278 echo "configure:2279: checking return type of signal handlers" >&5 2279 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 2280 echo $ac_n "(cached) $ac_c" 1>&6 2281 else 2282 cat > conftest.$ac_ext <<EOF 2283 #line 2284 "configure" 2284 #include "confdefs.h" 5433 echo "$as_me:$LINENO: checking return type of signal handlers" >&5 5434 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 5435 if test "${ac_cv_type_signal+set}" = set; then 5436 echo $ECHO_N "(cached) $ECHO_C" >&6 5437 else 5438 cat >conftest.$ac_ext <<_ACEOF 5439 /* confdefs.h. */ 5440 _ACEOF 5441 cat confdefs.h >>conftest.$ac_ext 5442 cat >>conftest.$ac_ext <<_ACEOF 5443 /* end confdefs.h. */ 2285 5444 #include <sys/types.h> 2286 5445 #include <signal.h> 2287 5446 #ifdef signal 2288 # undef signal5447 # undef signal 2289 5448 #endif 2290 5449 #ifdef __cplusplus … … 2294 5453 #endif 2295 5454 2296 int main() { 5455 int 5456 main () 5457 { 2297 5458 int i; 2298 ; return 0; } 2299 EOF 2300 if { (eval echo configure:2301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2301 rm -rf conftest* 5459 ; 5460 return 0; 5461 } 5462 _ACEOF 5463 rm -f conftest.$ac_objext 5464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5465 (eval $ac_compile) 2>conftest.er1 5466 ac_status=$? 5467 grep -v '^ *+' conftest.er1 >conftest.err 5468 rm -f conftest.er1 5469 cat conftest.err >&5 5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5471 (exit $ac_status); } && 5472 { ac_try='test -z "$ac_c_werror_flag" 5473 || test ! -s conftest.err' 5474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5475 (eval $ac_try) 2>&5 5476 ac_status=$? 5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5478 (exit $ac_status); }; } && 5479 { ac_try='test -s conftest.$ac_objext' 5480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5481 (eval $ac_try) 2>&5 5482 ac_status=$? 5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5484 (exit $ac_status); }; }; then 2302 5485 ac_cv_type_signal=void 2303 5486 else 2304 echo "configure: failed program was:" >&5 2305 cat conftest.$ac_ext >&5 2306 rm -rf conftest* 2307 ac_cv_type_signal=int 2308 fi 2309 rm -f conftest* 2310 fi 2311 2312 echo "$ac_t""$ac_cv_type_signal" 1>&6 2313 cat >> confdefs.h <<EOF 5487 echo "$as_me: failed program was:" >&5 5488 sed 's/^/| /' conftest.$ac_ext >&5 5489 5490 ac_cv_type_signal=int 5491 fi 5492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5493 fi 5494 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 5495 echo "${ECHO_T}$ac_cv_type_signal" >&6 5496 5497 cat >>confdefs.h <<_ACEOF 2314 5498 #define RETSIGTYPE $ac_cv_type_signal 2315 EOF 2316 2317 2318 echo $ac_n "checking for vprintf""... $ac_c" 1>&6 2319 echo "configure:2320: checking for vprintf" >&5 2320 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then 2321 echo $ac_n "(cached) $ac_c" 1>&6 2322 else 2323 cat > conftest.$ac_ext <<EOF 2324 #line 2325 "configure" 2325 #include "confdefs.h" 5499 _ACEOF 5500 5501 5502 5503 for ac_func in vprintf 5504 do 5505 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5506 echo "$as_me:$LINENO: checking for $ac_func" >&5 5507 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5508 if eval "test \"\${$as_ac_var+set}\" = set"; then 5509 echo $ECHO_N "(cached) $ECHO_C" >&6 5510 else 5511 cat >conftest.$ac_ext <<_ACEOF 5512 /* confdefs.h. */ 5513 _ACEOF 5514 cat confdefs.h >>conftest.$ac_ext 5515 cat >>conftest.$ac_ext <<_ACEOF 5516 /* end confdefs.h. */ 5517 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5518 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5519 #define $ac_func innocuous_$ac_func 5520 2326 5521 /* System header to define __stub macros and hopefully few prototypes, 2327 which can conflict with char vprintf(); below. */ 2328 #include <assert.h> 5522 which can conflict with char $ac_func (); below. 5523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5524 <limits.h> exists even on freestanding compilers. */ 5525 5526 #ifdef __STDC__ 5527 # include <limits.h> 5528 #else 5529 # include <assert.h> 5530 #endif 5531 5532 #undef $ac_func 5533 2329 5534 /* Override any gcc2 internal prototype to avoid an error. */ 5535 #ifdef __cplusplus 5536 extern "C" 5537 { 5538 #endif 2330 5539 /* We use char because int might match the return type of a gcc2 2331 builtin and then its argument prototype would still apply. */ 2332 char vprintf(); 2333 2334 int main() { 2335 5540 builtin and then its argument prototype would still apply. */ 5541 char $ac_func (); 2336 5542 /* The GNU C library defines this for functions which it implements 2337 5543 to always fail with ENOSYS. Some functions are actually named 2338 5544 something starting with __ and the normal name is an alias. */ 2339 #if defined (__stub_ vprintf) || defined (__stub___vprintf)5545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2340 5546 choke me 2341 5547 #else 2342 vprintf();5548 char (*f) () = $ac_func; 2343 5549 #endif 2344 2345 ; return 0; } 2346 EOF 2347 if { (eval echo configure:2348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2348 rm -rf conftest* 2349 eval "ac_cv_func_vprintf=yes" 2350 else 2351 echo "configure: failed program was:" >&5 2352 cat conftest.$ac_ext >&5 2353 rm -rf conftest* 2354 eval "ac_cv_func_vprintf=no" 2355 fi 2356 rm -f conftest* 2357 fi 2358 2359 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then 2360 echo "$ac_t""yes" 1>&6 2361 cat >> confdefs.h <<\EOF 2362 #define HAVE_VPRINTF 1 2363 EOF 2364 2365 else 2366 echo "$ac_t""no" 1>&6 2367 fi 2368 2369 if test "$ac_cv_func_vprintf" != yes; then 2370 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 2371 echo "configure:2372: checking for _doprnt" >&5 2372 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then 2373 echo $ac_n "(cached) $ac_c" 1>&6 2374 else 2375 cat > conftest.$ac_ext <<EOF 2376 #line 2377 "configure" 2377 #include "confdefs.h" 5550 #ifdef __cplusplus 5551 } 5552 #endif 5553 5554 int 5555 main () 5556 { 5557 return f != $ac_func; 5558 ; 5559 return 0; 5560 } 5561 _ACEOF 5562 rm -f conftest.$ac_objext conftest$ac_exeext 5563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5564 (eval $ac_link) 2>conftest.er1 5565 ac_status=$? 5566 grep -v '^ *+' conftest.er1 >conftest.err 5567 rm -f conftest.er1 5568 cat conftest.err >&5 5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5570 (exit $ac_status); } && 5571 { ac_try='test -z "$ac_c_werror_flag" 5572 || test ! -s conftest.err' 5573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5574 (eval $ac_try) 2>&5 5575 ac_status=$? 5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5577 (exit $ac_status); }; } && 5578 { ac_try='test -s conftest$ac_exeext' 5579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5580 (eval $ac_try) 2>&5 5581 ac_status=$? 5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5583 (exit $ac_status); }; }; then 5584 eval "$as_ac_var=yes" 5585 else 5586 echo "$as_me: failed program was:" >&5 5587 sed 's/^/| /' conftest.$ac_ext >&5 5588 5589 eval "$as_ac_var=no" 5590 fi 5591 rm -f conftest.err conftest.$ac_objext \ 5592 conftest$ac_exeext conftest.$ac_ext 5593 fi 5594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5595 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5596 if test `eval echo '${'$as_ac_var'}'` = yes; then 5597 cat >>confdefs.h <<_ACEOF 5598 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5599 _ACEOF 5600 5601 echo "$as_me:$LINENO: checking for _doprnt" >&5 5602 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 5603 if test "${ac_cv_func__doprnt+set}" = set; then 5604 echo $ECHO_N "(cached) $ECHO_C" >&6 5605 else 5606 cat >conftest.$ac_ext <<_ACEOF 5607 /* confdefs.h. */ 5608 _ACEOF 5609 cat confdefs.h >>conftest.$ac_ext 5610 cat >>conftest.$ac_ext <<_ACEOF 5611 /* end confdefs.h. */ 5612 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. 5613 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5614 #define _doprnt innocuous__doprnt 5615 2378 5616 /* System header to define __stub macros and hopefully few prototypes, 2379 which can conflict with char _doprnt(); below. */ 2380 #include <assert.h> 5617 which can conflict with char _doprnt (); below. 5618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5619 <limits.h> exists even on freestanding compilers. */ 5620 5621 #ifdef __STDC__ 5622 # include <limits.h> 5623 #else 5624 # include <assert.h> 5625 #endif 5626 5627 #undef _doprnt 5628 2381 5629 /* Override any gcc2 internal prototype to avoid an error. */ 5630 #ifdef __cplusplus 5631 extern "C" 5632 { 5633 #endif 2382 5634 /* We use char because int might match the return type of a gcc2 2383 builtin and then its argument prototype would still apply. */ 2384 char _doprnt(); 2385 2386 int main() { 2387 5635 builtin and then its argument prototype would still apply. */ 5636 char _doprnt (); 2388 5637 /* The GNU C library defines this for functions which it implements 2389 5638 to always fail with ENOSYS. Some functions are actually named … … 2392 5641 choke me 2393 5642 #else 2394 _doprnt();5643 char (*f) () = _doprnt; 2395 5644 #endif 2396 2397 ; return 0; } 2398 EOF 2399 if { (eval echo configure:2400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2400 rm -rf conftest* 2401 eval "ac_cv_func__doprnt=yes" 2402 else 2403 echo "configure: failed program was:" >&5 2404 cat conftest.$ac_ext >&5 2405 rm -rf conftest* 2406 eval "ac_cv_func__doprnt=no" 2407 fi 2408 rm -f conftest* 2409 fi 2410 2411 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then 2412 echo "$ac_t""yes" 1>&6 2413 cat >> confdefs.h <<\EOF 5645 #ifdef __cplusplus 5646 } 5647 #endif 5648 5649 int 5650 main () 5651 { 5652 return f != _doprnt; 5653 ; 5654 return 0; 5655 } 5656 _ACEOF 5657 rm -f conftest.$ac_objext conftest$ac_exeext 5658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5659 (eval $ac_link) 2>conftest.er1 5660 ac_status=$? 5661 grep -v '^ *+' conftest.er1 >conftest.err 5662 rm -f conftest.er1 5663 cat conftest.err >&5 5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5665 (exit $ac_status); } && 5666 { ac_try='test -z "$ac_c_werror_flag" 5667 || test ! -s conftest.err' 5668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5669 (eval $ac_try) 2>&5 5670 ac_status=$? 5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5672 (exit $ac_status); }; } && 5673 { ac_try='test -s conftest$ac_exeext' 5674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5675 (eval $ac_try) 2>&5 5676 ac_status=$? 5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5678 (exit $ac_status); }; }; then 5679 ac_cv_func__doprnt=yes 5680 else 5681 echo "$as_me: failed program was:" >&5 5682 sed 's/^/| /' conftest.$ac_ext >&5 5683 5684 ac_cv_func__doprnt=no 5685 fi 5686 rm -f conftest.err conftest.$ac_objext \ 5687 conftest$ac_exeext conftest.$ac_ext 5688 fi 5689 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 5690 echo "${ECHO_T}$ac_cv_func__doprnt" >&6 5691 if test $ac_cv_func__doprnt = yes; then 5692 5693 cat >>confdefs.h <<\_ACEOF 2414 5694 #define HAVE_DOPRNT 1 2415 EOF 2416 2417 else 2418 echo "$ac_t""no" 1>&6 2419 fi 2420 2421 fi 5695 _ACEOF 5696 5697 fi 5698 5699 fi 5700 done 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 2422 5711 2423 5712 for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize 2424 5713 do 2425 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2426 echo "configure:2427: checking for $ac_func" >&5 2427 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2428 echo $ac_n "(cached) $ac_c" 1>&6 2429 else 2430 cat > conftest.$ac_ext <<EOF 2431 #line 2432 "configure" 2432 #include "confdefs.h" 5714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5715 echo "$as_me:$LINENO: checking for $ac_func" >&5 5716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5717 if eval "test \"\${$as_ac_var+set}\" = set"; then 5718 echo $ECHO_N "(cached) $ECHO_C" >&6 5719 else 5720 cat >conftest.$ac_ext <<_ACEOF 5721 /* confdefs.h. */ 5722 _ACEOF 5723 cat confdefs.h >>conftest.$ac_ext 5724 cat >>conftest.$ac_ext <<_ACEOF 5725 /* end confdefs.h. */ 5726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5727 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5728 #define $ac_func innocuous_$ac_func 5729 2433 5730 /* System header to define __stub macros and hopefully few prototypes, 2434 which can conflict with char $ac_func(); below. */ 2435 #include <assert.h> 5731 which can conflict with char $ac_func (); below. 5732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5733 <limits.h> exists even on freestanding compilers. */ 5734 5735 #ifdef __STDC__ 5736 # include <limits.h> 5737 #else 5738 # include <assert.h> 5739 #endif 5740 5741 #undef $ac_func 5742 2436 5743 /* Override any gcc2 internal prototype to avoid an error. */ 5744 #ifdef __cplusplus 5745 extern "C" 5746 { 5747 #endif 2437 5748 /* We use char because int might match the return type of a gcc2 2438 builtin and then its argument prototype would still apply. */ 2439 char $ac_func(); 2440 2441 int main() { 2442 5749 builtin and then its argument prototype would still apply. */ 5750 char $ac_func (); 2443 5751 /* The GNU C library defines this for functions which it implements 2444 5752 to always fail with ENOSYS. Some functions are actually named … … 2447 5755 choke me 2448 5756 #else 2449 $ac_func();5757 char (*f) () = $ac_func; 2450 5758 #endif 2451 2452 ; return 0; } 2453 EOF 2454 if { (eval echo configure:2455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2455 rm -rf conftest* 2456 eval "ac_cv_func_$ac_func=yes" 2457 else 2458 echo "configure: failed program was:" >&5 2459 cat conftest.$ac_ext >&5 2460 rm -rf conftest* 2461 eval "ac_cv_func_$ac_func=no" 2462 fi 2463 rm -f conftest* 2464 fi 2465 2466 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2467 echo "$ac_t""yes" 1>&6 2468 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2469 cat >> confdefs.h <<EOF 2470 #define $ac_tr_func 1 2471 EOF 2472 2473 else 2474 echo "$ac_t""no" 1>&6 5759 #ifdef __cplusplus 5760 } 5761 #endif 5762 5763 int 5764 main () 5765 { 5766 return f != $ac_func; 5767 ; 5768 return 0; 5769 } 5770 _ACEOF 5771 rm -f conftest.$ac_objext conftest$ac_exeext 5772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5773 (eval $ac_link) 2>conftest.er1 5774 ac_status=$? 5775 grep -v '^ *+' conftest.er1 >conftest.err 5776 rm -f conftest.er1 5777 cat conftest.err >&5 5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5779 (exit $ac_status); } && 5780 { ac_try='test -z "$ac_c_werror_flag" 5781 || test ! -s conftest.err' 5782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5783 (eval $ac_try) 2>&5 5784 ac_status=$? 5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5786 (exit $ac_status); }; } && 5787 { ac_try='test -s conftest$ac_exeext' 5788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5789 (eval $ac_try) 2>&5 5790 ac_status=$? 5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5792 (exit $ac_status); }; }; then 5793 eval "$as_ac_var=yes" 5794 else 5795 echo "$as_me: failed program was:" >&5 5796 sed 's/^/| /' conftest.$ac_ext >&5 5797 5798 eval "$as_ac_var=no" 5799 fi 5800 rm -f conftest.err conftest.$ac_objext \ 5801 conftest$ac_exeext conftest.$ac_ext 5802 fi 5803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5804 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5805 if test `eval echo '${'$as_ac_var'}'` = yes; then 5806 cat >>confdefs.h <<_ACEOF 5807 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5808 _ACEOF 5809 2475 5810 fi 2476 5811 done 5812 5813 5814 2477 5815 2478 5816 for ac_func in ftruncate strstr strcasecmp 2479 5817 do 2480 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2481 echo "configure:2482: checking for $ac_func" >&5 2482 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2483 echo $ac_n "(cached) $ac_c" 1>&6 2484 else 2485 cat > conftest.$ac_ext <<EOF 2486 #line 2487 "configure" 2487 #include "confdefs.h" 5818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5819 echo "$as_me:$LINENO: checking for $ac_func" >&5 5820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5821 if eval "test \"\${$as_ac_var+set}\" = set"; then 5822 echo $ECHO_N "(cached) $ECHO_C" >&6 5823 else 5824 cat >conftest.$ac_ext <<_ACEOF 5825 /* confdefs.h. */ 5826 _ACEOF 5827 cat confdefs.h >>conftest.$ac_ext 5828 cat >>conftest.$ac_ext <<_ACEOF 5829 /* end confdefs.h. */ 5830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5831 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5832 #define $ac_func innocuous_$ac_func 5833 2488 5834 /* System header to define __stub macros and hopefully few prototypes, 2489 which can conflict with char $ac_func(); below. */ 2490 #include <assert.h> 5835 which can conflict with char $ac_func (); below. 5836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5837 <limits.h> exists even on freestanding compilers. */ 5838 5839 #ifdef __STDC__ 5840 # include <limits.h> 5841 #else 5842 # include <assert.h> 5843 #endif 5844 5845 #undef $ac_func 5846 2491 5847 /* Override any gcc2 internal prototype to avoid an error. */ 5848 #ifdef __cplusplus 5849 extern "C" 5850 { 5851 #endif 2492 5852 /* We use char because int might match the return type of a gcc2 2493 builtin and then its argument prototype would still apply. */ 2494 char $ac_func(); 2495 2496 int main() { 2497 5853 builtin and then its argument prototype would still apply. */ 5854 char $ac_func (); 2498 5855 /* The GNU C library defines this for functions which it implements 2499 5856 to always fail with ENOSYS. Some functions are actually named … … 2502 5859 choke me 2503 5860 #else 2504 $ac_func();5861 char (*f) () = $ac_func; 2505 5862 #endif 2506 2507 ; return 0; } 2508 EOF 2509 if { (eval echo configure:2510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2510 rm -rf conftest* 2511 eval "ac_cv_func_$ac_func=yes" 2512 else 2513 echo "configure: failed program was:" >&5 2514 cat conftest.$ac_ext >&5 2515 rm -rf conftest* 2516 eval "ac_cv_func_$ac_func=no" 2517 fi 2518 rm -f conftest* 2519 fi 2520 2521 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2522 echo "$ac_t""yes" 1>&6 2523 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2524 cat >> confdefs.h <<EOF 2525 #define $ac_tr_func 1 2526 EOF 2527 2528 else 2529 echo "$ac_t""no" 1>&6 2530 LIBOBJS="$LIBOBJS ${ac_func}.o" 5863 #ifdef __cplusplus 5864 } 5865 #endif 5866 5867 int 5868 main () 5869 { 5870 return f != $ac_func; 5871 ; 5872 return 0; 5873 } 5874 _ACEOF 5875 rm -f conftest.$ac_objext conftest$ac_exeext 5876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5877 (eval $ac_link) 2>conftest.er1 5878 ac_status=$? 5879 grep -v '^ *+' conftest.er1 >conftest.err 5880 rm -f conftest.er1 5881 cat conftest.err >&5 5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5883 (exit $ac_status); } && 5884 { ac_try='test -z "$ac_c_werror_flag" 5885 || test ! -s conftest.err' 5886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5887 (eval $ac_try) 2>&5 5888 ac_status=$? 5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5890 (exit $ac_status); }; } && 5891 { ac_try='test -s conftest$ac_exeext' 5892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5893 (eval $ac_try) 2>&5 5894 ac_status=$? 5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5896 (exit $ac_status); }; }; then 5897 eval "$as_ac_var=yes" 5898 else 5899 echo "$as_me: failed program was:" >&5 5900 sed 's/^/| /' conftest.$ac_ext >&5 5901 5902 eval "$as_ac_var=no" 5903 fi 5904 rm -f conftest.err conftest.$ac_objext \ 5905 conftest$ac_exeext conftest.$ac_ext 5906 fi 5907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5908 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5909 if test `eval echo '${'$as_ac_var'}'` = yes; then 5910 cat >>confdefs.h <<_ACEOF 5911 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5912 _ACEOF 5913 5914 else 5915 case $LIBOBJS in 5916 "$ac_func.$ac_objext" | \ 5917 *" $ac_func.$ac_objext" | \ 5918 "$ac_func.$ac_objext "* | \ 5919 *" $ac_func.$ac_objext "* ) ;; 5920 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; 5921 esac 5922 2531 5923 fi 2532 5924 done … … 2537 5929 # *** Custom checking (based on GNU tar configure.in) *** 2538 5930 # --------------------------------------------------------------------------- 2539 echo $ac_n "checking for HP-UX needing gmalloc""... $ac_c" 1>&62540 echo "configure:2541: checking for HP-UX needing gmalloc" >&55931 echo "$as_me:$LINENO: checking for HP-UX needing gmalloc" >&5 5932 echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6 2541 5933 if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then 2542 echo "$ac_t""yes" 1>&6 2543 LIBOBJS="$LIBOBJS gmalloc.o" 2544 cat >> confdefs.h <<\EOF 5934 echo "$as_me:$LINENO: result: yes" >&5 5935 echo "${ECHO_T}yes" >&6 5936 case $LIBOBJS in 5937 "gmalloc.$ac_objext" | \ 5938 *" gmalloc.$ac_objext" | \ 5939 "gmalloc.$ac_objext "* | \ 5940 *" gmalloc.$ac_objext "* ) ;; 5941 *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext" ;; 5942 esac 5943 5944 cat >>confdefs.h <<\_ACEOF 2545 5945 #define HAVE_VALLOC 1 2546 EOF 2547 2548 else 2549 echo "$ac_t""no" 1>&6 2550 for ac_func in valloc 5946 _ACEOF 5947 5948 else 5949 echo "$as_me:$LINENO: result: no" >&5 5950 echo "${ECHO_T}no" >&6 5951 5952 for ac_func in valloc 2551 5953 do 2552 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2553 echo "configure:2554: checking for $ac_func" >&5 2554 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2555 echo $ac_n "(cached) $ac_c" 1>&6 2556 else 2557 cat > conftest.$ac_ext <<EOF 2558 #line 2559 "configure" 2559 #include "confdefs.h" 5954 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5955 echo "$as_me:$LINENO: checking for $ac_func" >&5 5956 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5957 if eval "test \"\${$as_ac_var+set}\" = set"; then 5958 echo $ECHO_N "(cached) $ECHO_C" >&6 5959 else 5960 cat >conftest.$ac_ext <<_ACEOF 5961 /* confdefs.h. */ 5962 _ACEOF 5963 cat confdefs.h >>conftest.$ac_ext 5964 cat >>conftest.$ac_ext <<_ACEOF 5965 /* end confdefs.h. */ 5966 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5967 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5968 #define $ac_func innocuous_$ac_func 5969 2560 5970 /* System header to define __stub macros and hopefully few prototypes, 2561 which can conflict with char $ac_func(); below. */ 2562 #include <assert.h> 5971 which can conflict with char $ac_func (); below. 5972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5973 <limits.h> exists even on freestanding compilers. */ 5974 5975 #ifdef __STDC__ 5976 # include <limits.h> 5977 #else 5978 # include <assert.h> 5979 #endif 5980 5981 #undef $ac_func 5982 2563 5983 /* Override any gcc2 internal prototype to avoid an error. */ 5984 #ifdef __cplusplus 5985 extern "C" 5986 { 5987 #endif 2564 5988 /* We use char because int might match the return type of a gcc2 2565 builtin and then its argument prototype would still apply. */ 2566 char $ac_func(); 2567 2568 int main() { 2569 5989 builtin and then its argument prototype would still apply. */ 5990 char $ac_func (); 2570 5991 /* The GNU C library defines this for functions which it implements 2571 5992 to always fail with ENOSYS. Some functions are actually named … … 2574 5995 choke me 2575 5996 #else 2576 $ac_func();5997 char (*f) () = $ac_func; 2577 5998 #endif 2578 2579 ; return 0; } 2580 EOF 2581 if { (eval echo configure:2582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2582 rm -rf conftest* 2583 eval "ac_cv_func_$ac_func=yes" 2584 else 2585 echo "configure: failed program was:" >&5 2586 cat conftest.$ac_ext >&5 2587 rm -rf conftest* 2588 eval "ac_cv_func_$ac_func=no" 2589 fi 2590 rm -f conftest* 2591 fi 2592 2593 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2594 echo "$ac_t""yes" 1>&6 2595 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2596 cat >> confdefs.h <<EOF 2597 #define $ac_tr_func 1 2598 EOF 2599 2600 else 2601 echo "$ac_t""no" 1>&6 5999 #ifdef __cplusplus 6000 } 6001 #endif 6002 6003 int 6004 main () 6005 { 6006 return f != $ac_func; 6007 ; 6008 return 0; 6009 } 6010 _ACEOF 6011 rm -f conftest.$ac_objext conftest$ac_exeext 6012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6013 (eval $ac_link) 2>conftest.er1 6014 ac_status=$? 6015 grep -v '^ *+' conftest.er1 >conftest.err 6016 rm -f conftest.er1 6017 cat conftest.err >&5 6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6019 (exit $ac_status); } && 6020 { ac_try='test -z "$ac_c_werror_flag" 6021 || test ! -s conftest.err' 6022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6023 (eval $ac_try) 2>&5 6024 ac_status=$? 6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6026 (exit $ac_status); }; } && 6027 { ac_try='test -s conftest$ac_exeext' 6028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6029 (eval $ac_try) 2>&5 6030 ac_status=$? 6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6032 (exit $ac_status); }; }; then 6033 eval "$as_ac_var=yes" 6034 else 6035 echo "$as_me: failed program was:" >&5 6036 sed 's/^/| /' conftest.$ac_ext >&5 6037 6038 eval "$as_ac_var=no" 6039 fi 6040 rm -f conftest.err conftest.$ac_objext \ 6041 conftest$ac_exeext conftest.$ac_ext 6042 fi 6043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6044 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6045 if test `eval echo '${'$as_ac_var'}'` = yes; then 6046 cat >>confdefs.h <<_ACEOF 6047 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6048 _ACEOF 6049 2602 6050 fi 2603 6051 done … … 2605 6053 fi 2606 6054 2607 echo $ac_n "checking if malloc debugging is wanted""... $ac_c" 1>&6 2608 echo "configure:2609: checking if malloc debugging is wanted" >&5 6055 echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5 6056 echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6 6057 2609 6058 # Check whether --with-dmalloc or --without-dmalloc was given. 2610 6059 if test "${with_dmalloc+set}" = set; then 2611 6060 withval="$with_dmalloc" 2612 6061 if test "$withval" = yes; then 2613 echo "$ac_t""yes" 1>&6 2614 cat >> confdefs.h <<\EOF 6062 echo "$as_me:$LINENO: result: yes" >&5 6063 echo "${ECHO_T}yes" >&6 6064 cat >>confdefs.h <<\_ACEOF 2615 6065 #define WITH_DMALLOC 1 2616 EOF6066 _ACEOF 2617 6067 2618 6068 LIBS="$LIBS -ldmalloc" 2619 6069 LDFLAGS="$LDFLAGS -g" 2620 6070 else 2621 echo "$ac_t""no" 1>&6 2622 fi 2623 else 2624 echo "$ac_t""no" 1>&6 2625 fi 2626 2627 2628 echo $ac_n "checking which of rx or regex is wanted""... $ac_c" 1>&6 2629 echo "configure:2630: checking which of rx or regex is wanted" >&5 6071 echo "$as_me:$LINENO: result: no" >&5 6072 echo "${ECHO_T}no" >&6 6073 fi 6074 else 6075 echo "$as_me:$LINENO: result: no" >&5 6076 echo "${ECHO_T}no" >&6 6077 fi; 6078 6079 echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5 6080 echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6 6081 2630 6082 # Check whether --with-regex or --without-regex was given. 2631 6083 if test "${with_regex+set}" = set; then … … 2633 6085 if test "$withval" = yes; then 2634 6086 ac_with_regex=1 2635 echo "$ac_t""regex" 1>&6 2636 cat >> confdefs.h <<\EOF 6087 echo "$as_me:$LINENO: result: regex" >&5 6088 echo "${ECHO_T}regex" >&6 6089 cat >>confdefs.h <<\_ACEOF 2637 6090 #define WITH_REGEX 1 2638 EOF 2639 2640 LIBOBJS="$LIBOBJS regex.o" 2641 fi 2642 fi 2643 6091 _ACEOF 6092 6093 case $LIBOBJS in 6094 "regex.$ac_objext" | \ 6095 *" regex.$ac_objext" | \ 6096 "regex.$ac_objext "* | \ 6097 *" regex.$ac_objext "* ) ;; 6098 *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;; 6099 esac 6100 6101 fi 6102 fi; 2644 6103 if test -z "$ac_with_regex"; then 2645 echo "$ac_t""rx" 1>&6 2646 echo $ac_n "checking for re_rx_search""... $ac_c" 1>&6 2647 echo "configure:2648: checking for re_rx_search" >&5 2648 if eval "test \"`echo '$''{'ac_cv_func_re_rx_search'+set}'`\" = set"; then 2649 echo $ac_n "(cached) $ac_c" 1>&6 2650 else 2651 cat > conftest.$ac_ext <<EOF 2652 #line 2653 "configure" 2653 #include "confdefs.h" 6104 echo "$as_me:$LINENO: result: rx" >&5 6105 echo "${ECHO_T}rx" >&6 6106 echo "$as_me:$LINENO: checking for re_rx_search" >&5 6107 echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6 6108 if test "${ac_cv_func_re_rx_search+set}" = set; then 6109 echo $ECHO_N "(cached) $ECHO_C" >&6 6110 else 6111 cat >conftest.$ac_ext <<_ACEOF 6112 /* confdefs.h. */ 6113 _ACEOF 6114 cat confdefs.h >>conftest.$ac_ext 6115 cat >>conftest.$ac_ext <<_ACEOF 6116 /* end confdefs.h. */ 6117 /* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search. 6118 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6119 #define re_rx_search innocuous_re_rx_search 6120 2654 6121 /* System header to define __stub macros and hopefully few prototypes, 2655 which can conflict with char re_rx_search(); below. */ 2656 #include <assert.h> 6122 which can conflict with char re_rx_search (); below. 6123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6124 <limits.h> exists even on freestanding compilers. */ 6125 6126 #ifdef __STDC__ 6127 # include <limits.h> 6128 #else 6129 # include <assert.h> 6130 #endif 6131 6132 #undef re_rx_search 6133 2657 6134 /* Override any gcc2 internal prototype to avoid an error. */ 6135 #ifdef __cplusplus 6136 extern "C" 6137 { 6138 #endif 2658 6139 /* We use char because int might match the return type of a gcc2 2659 builtin and then its argument prototype would still apply. */ 2660 char re_rx_search(); 2661 2662 int main() { 2663 6140 builtin and then its argument prototype would still apply. */ 6141 char re_rx_search (); 2664 6142 /* The GNU C library defines this for functions which it implements 2665 6143 to always fail with ENOSYS. Some functions are actually named … … 2668 6146 choke me 2669 6147 #else 2670 re_rx_search();6148 char (*f) () = re_rx_search; 2671 6149 #endif 2672 2673 ; return 0; } 2674 EOF 2675 if { (eval echo configure:2676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2676 rm -rf conftest* 2677 eval "ac_cv_func_re_rx_search=yes" 2678 else 2679 echo "configure: failed program was:" >&5 2680 cat conftest.$ac_ext >&5 2681 rm -rf conftest* 2682 eval "ac_cv_func_re_rx_search=no" 2683 fi 2684 rm -f conftest* 2685 fi 2686 2687 if eval "test \"`echo '$ac_cv_func_'re_rx_search`\" = yes"; then 2688 echo "$ac_t""yes" 1>&6 6150 #ifdef __cplusplus 6151 } 6152 #endif 6153 6154 int 6155 main () 6156 { 6157 return f != re_rx_search; 6158 ; 6159 return 0; 6160 } 6161 _ACEOF 6162 rm -f conftest.$ac_objext conftest$ac_exeext 6163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6164 (eval $ac_link) 2>conftest.er1 6165 ac_status=$? 6166 grep -v '^ *+' conftest.er1 >conftest.err 6167 rm -f conftest.er1 6168 cat conftest.err >&5 6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6170 (exit $ac_status); } && 6171 { ac_try='test -z "$ac_c_werror_flag" 6172 || test ! -s conftest.err' 6173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6174 (eval $ac_try) 2>&5 6175 ac_status=$? 6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6177 (exit $ac_status); }; } && 6178 { ac_try='test -s conftest$ac_exeext' 6179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6180 (eval $ac_try) 2>&5 6181 ac_status=$? 6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6183 (exit $ac_status); }; }; then 6184 ac_cv_func_re_rx_search=yes 6185 else 6186 echo "$as_me: failed program was:" >&5 6187 sed 's/^/| /' conftest.$ac_ext >&5 6188 6189 ac_cv_func_re_rx_search=no 6190 fi 6191 rm -f conftest.err conftest.$ac_objext \ 6192 conftest$ac_exeext conftest.$ac_ext 6193 fi 6194 echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5 6195 echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6 6196 if test $ac_cv_func_re_rx_search = yes; then 2689 6197 : 2690 6198 else 2691 echo "$ac_t""no" 1>&6 2692 LIBOBJS="$LIBOBJS rx.o" 2693 fi 2694 2695 fi 6199 case $LIBOBJS in 6200 "rx.$ac_objext" | \ 6201 *" rx.$ac_objext" | \ 6202 "rx.$ac_objext "* | \ 6203 *" rx.$ac_objext "* ) ;; 6204 *) LIBOBJS="$LIBOBJS rx.$ac_objext" ;; 6205 esac 6206 6207 fi 6208 6209 fi 6210 6211 6212 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 6213 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 6214 if test "${ac_cv_c_bigendian+set}" = set; then 6215 echo $ECHO_N "(cached) $ECHO_C" >&6 6216 else 6217 # See if sys/param.h defines the BYTE_ORDER macro. 6218 cat >conftest.$ac_ext <<_ACEOF 6219 /* confdefs.h. */ 6220 _ACEOF 6221 cat confdefs.h >>conftest.$ac_ext 6222 cat >>conftest.$ac_ext <<_ACEOF 6223 /* end confdefs.h. */ 6224 #include <sys/types.h> 6225 #include <sys/param.h> 6226 6227 int 6228 main () 6229 { 6230 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 6231 bogus endian macros 6232 #endif 6233 6234 ; 6235 return 0; 6236 } 6237 _ACEOF 6238 rm -f conftest.$ac_objext 6239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6240 (eval $ac_compile) 2>conftest.er1 6241 ac_status=$? 6242 grep -v '^ *+' conftest.er1 >conftest.err 6243 rm -f conftest.er1 6244 cat conftest.err >&5 6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6246 (exit $ac_status); } && 6247 { ac_try='test -z "$ac_c_werror_flag" 6248 || test ! -s conftest.err' 6249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6250 (eval $ac_try) 2>&5 6251 ac_status=$? 6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6253 (exit $ac_status); }; } && 6254 { ac_try='test -s conftest.$ac_objext' 6255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6256 (eval $ac_try) 2>&5 6257 ac_status=$? 6258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6259 (exit $ac_status); }; }; then 6260 # It does; now see whether it defined to BIG_ENDIAN or not. 6261 cat >conftest.$ac_ext <<_ACEOF 6262 /* confdefs.h. */ 6263 _ACEOF 6264 cat confdefs.h >>conftest.$ac_ext 6265 cat >>conftest.$ac_ext <<_ACEOF 6266 /* end confdefs.h. */ 6267 #include <sys/types.h> 6268 #include <sys/param.h> 6269 6270 int 6271 main () 6272 { 6273 #if BYTE_ORDER != BIG_ENDIAN 6274 not big endian 6275 #endif 6276 6277 ; 6278 return 0; 6279 } 6280 _ACEOF 6281 rm -f conftest.$ac_objext 6282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6283 (eval $ac_compile) 2>conftest.er1 6284 ac_status=$? 6285 grep -v '^ *+' conftest.er1 >conftest.err 6286 rm -f conftest.er1 6287 cat conftest.err >&5 6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6289 (exit $ac_status); } && 6290 { ac_try='test -z "$ac_c_werror_flag" 6291 || test ! -s conftest.err' 6292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6293 (eval $ac_try) 2>&5 6294 ac_status=$? 6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6296 (exit $ac_status); }; } && 6297 { ac_try='test -s conftest.$ac_objext' 6298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6299 (eval $ac_try) 2>&5 6300 ac_status=$? 6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6302 (exit $ac_status); }; }; then 6303 ac_cv_c_bigendian=yes 6304 else 6305 echo "$as_me: failed program was:" >&5 6306 sed 's/^/| /' conftest.$ac_ext >&5 6307 6308 ac_cv_c_bigendian=no 6309 fi 6310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6311 else 6312 echo "$as_me: failed program was:" >&5 6313 sed 's/^/| /' conftest.$ac_ext >&5 6314 6315 # It does not; compile a test program. 6316 if test "$cross_compiling" = yes; then 6317 # try to guess the endianness by grepping values into an object file 6318 ac_cv_c_bigendian=unknown 6319 cat >conftest.$ac_ext <<_ACEOF 6320 /* confdefs.h. */ 6321 _ACEOF 6322 cat confdefs.h >>conftest.$ac_ext 6323 cat >>conftest.$ac_ext <<_ACEOF 6324 /* end confdefs.h. */ 6325 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 6326 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 6327 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 6328 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 6329 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 6330 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 6331 int 6332 main () 6333 { 6334 _ascii (); _ebcdic (); 6335 ; 6336 return 0; 6337 } 6338 _ACEOF 6339 rm -f conftest.$ac_objext 6340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6341 (eval $ac_compile) 2>conftest.er1 6342 ac_status=$? 6343 grep -v '^ *+' conftest.er1 >conftest.err 6344 rm -f conftest.er1 6345 cat conftest.err >&5 6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6347 (exit $ac_status); } && 6348 { ac_try='test -z "$ac_c_werror_flag" 6349 || test ! -s conftest.err' 6350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6351 (eval $ac_try) 2>&5 6352 ac_status=$? 6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6354 (exit $ac_status); }; } && 6355 { ac_try='test -s conftest.$ac_objext' 6356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6357 (eval $ac_try) 2>&5 6358 ac_status=$? 6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6360 (exit $ac_status); }; }; then 6361 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 6362 ac_cv_c_bigendian=yes 6363 fi 6364 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 6365 if test "$ac_cv_c_bigendian" = unknown; then 6366 ac_cv_c_bigendian=no 6367 else 6368 # finding both strings is unlikely to happen, but who knows? 6369 ac_cv_c_bigendian=unknown 6370 fi 6371 fi 6372 else 6373 echo "$as_me: failed program was:" >&5 6374 sed 's/^/| /' conftest.$ac_ext >&5 6375 6376 fi 6377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6378 else 6379 cat >conftest.$ac_ext <<_ACEOF 6380 /* confdefs.h. */ 6381 _ACEOF 6382 cat confdefs.h >>conftest.$ac_ext 6383 cat >>conftest.$ac_ext <<_ACEOF 6384 /* end confdefs.h. */ 6385 int 6386 main () 6387 { 6388 /* Are we little or big endian? From Harbison&Steele. */ 6389 union 6390 { 6391 long l; 6392 char c[sizeof (long)]; 6393 } u; 6394 u.l = 1; 6395 exit (u.c[sizeof (long) - 1] == 1); 6396 } 6397 _ACEOF 6398 rm -f conftest$ac_exeext 6399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6400 (eval $ac_link) 2>&5 6401 ac_status=$? 6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6403 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6405 (eval $ac_try) 2>&5 6406 ac_status=$? 6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6408 (exit $ac_status); }; }; then 6409 ac_cv_c_bigendian=no 6410 else 6411 echo "$as_me: program exited with status $ac_status" >&5 6412 echo "$as_me: failed program was:" >&5 6413 sed 's/^/| /' conftest.$ac_ext >&5 6414 6415 ( exit $ac_status ) 6416 ac_cv_c_bigendian=yes 6417 fi 6418 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6419 fi 6420 fi 6421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6422 fi 6423 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 6424 echo "${ECHO_T}$ac_cv_c_bigendian" >&6 6425 case $ac_cv_c_bigendian in 6426 yes) 6427 6428 cat >>confdefs.h <<\_ACEOF 6429 #define WORDS_BIGENDIAN 1 6430 _ACEOF 6431 ;; 6432 no) 6433 ;; 6434 *) 6435 { { echo "$as_me:$LINENO: error: unknown endianness 6436 presetting ac_cv_c_bigendian=no (or yes) will help" >&5 6437 echo "$as_me: error: unknown endianness 6438 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 6439 { (exit 1); exit 1; }; } ;; 6440 esac 2696 6441 2697 6442 2698 6443 # --------------------------------------------------------------------------- 2699 6444 if test "$ac_cv_func_alloca" = 'no'; then 2700 LIBOBJS="$LIBOBJS xmalloc.o error.o" 6445 case $LIBOBJS in 6446 "xmalloc.$ac_objext" | \ 6447 *" xmalloc.$ac_objext" | \ 6448 "xmalloc.$ac_objext "* | \ 6449 *" xmalloc.$ac_objext "* ) ;; 6450 *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext" ;; 6451 esac 6452 6453 case $LIBOBJS in 6454 "error.$ac_objext" | \ 6455 *" error.$ac_objext" | \ 6456 "error.$ac_objext "* | \ 6457 *" error.$ac_objext "* ) ;; 6458 *) LIBOBJS="$LIBOBJS error.$ac_objext" ;; 6459 esac 6460 2701 6461 fi 2702 6462 … … 2704 6464 # --------------------------------------------------------------------------- 2705 6465 2706 trap '' 1 2 15 2707 cat > confcache <<\EOF 6466 ac_config_files="$ac_config_files Makefile src/text/Makefile src/images/Makefile src/scripts/Makefile lib/Makefile" 6467 ac_config_commands="$ac_config_commands default" 6468 cat >confcache <<\_ACEOF 2708 6469 # This file is a shell script that caches the results of configure 2709 6470 # tests run on this system so they can be shared between configure 2710 # scripts and configure runs. It is not useful on other systems. 2711 # If it contains results you don't want to keep, you may remove or edit it. 6471 # scripts and configure runs, see configure's option --config-cache. 6472 # It is not useful on other systems. If it contains results you don't 6473 # want to keep, you may remove or edit it. 2712 6474 # 2713 # By default, configure uses ./config.cache as the cache file, 2714 # creating it if it does not exist already. You can give configure 2715 # the --cache-file=FILE option to use a different cache file; that is 2716 # what configure does when it calls configure scripts in 2717 # subdirectories, so they share the cache. 2718 # Giving --cache-file=/dev/null disables caching, for debugging configure. 2719 # config.status only pays attention to the cache file if you give it the 2720 # --recheck option to rerun configure. 6475 # config.status only pays attention to the cache file if you give it 6476 # the --recheck option to rerun configure. 2721 6477 # 2722 EOF 6478 # `ac_cv_env_foo' variables (set or unset) will be overridden when 6479 # loading this file, other *unset* `ac_cv_foo' will be assigned the 6480 # following values. 6481 6482 _ACEOF 6483 2723 6484 # The following way of writing the cache mishandles newlines in values, 2724 6485 # but we know of no workaround that is simple, portable, and efficient. … … 2726 6487 # Ultrix sh set writes to stderr and can't be redirected directly, 2727 6488 # and sets the high bit in the cache file unless we assign to the vars. 2728 (set) 2>&1 | 2729 case `(ac_space=' '; set) 2>&1` in 2730 *ac_space=\ *) 2731 # `set' does not quote correctly, so add quotes (double-quote substitution 2732 # turns \\\\ into \\, and sed turns \\ into \). 2733 sed -n \ 2734 -e "s/'/'\\\\''/g" \ 2735 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 2736 ;; 2737 *) 2738 # `set' quotes correctly as required by POSIX, so do not add quotes. 2739 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 2740 ;; 2741 esac >> confcache 2742 if cmp -s $cache_file confcache; then 2743 : 2744 else 6489 { 6490 (set) 2>&1 | 6491 case `(ac_space=' '; set | grep ac_space) 2>&1` in 6492 *ac_space=\ *) 6493 # `set' does not quote correctly, so add quotes (double-quote 6494 # substitution turns \\\\ into \\, and sed turns \\ into \). 6495 sed -n \ 6496 "s/'/'\\\\''/g; 6497 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 6498 ;; 6499 *) 6500 # `set' quotes correctly as required by POSIX, so do not add quotes. 6501 sed -n \ 6502 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 6503 ;; 6504 esac; 6505 } | 6506 sed ' 6507 t clear 6508 : clear 6509 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 6510 t end 6511 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 6512 : end' >>confcache 6513 if diff $cache_file confcache >/dev/null 2>&1; then :; else 2745 6514 if test -w $cache_file; then 2746 echo "updating cache $cache_file"2747 cat confcache > 6515 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 6516 cat confcache >$cache_file 2748 6517 else 2749 6518 echo "not updating unwritable cache $cache_file" … … 2752 6521 rm -f confcache 2753 6522 2754 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 152755 2756 6523 test "x$prefix" = xNONE && prefix=$ac_default_prefix 2757 6524 # Let make expand exec_prefix. 2758 6525 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 2759 6526 2760 # Any assignment to VPATH causes Sun make to only execute 2761 # the first set of double-colon rules, so remove it if not needed. 2762 # If there is a colon in the path, we need to keep it. 6527 # VPATH may cause trouble with some makes, so we remove $(srcdir), 6528 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 6529 # trailing colons and then remove the whole line if VPATH becomes empty 6530 # (actually we leave an empty line to preserve line numbers). 2763 6531 if test "x$srcdir" = x.; then 2764 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 2765 fi 2766 2767 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 6532 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 6533 s/:*\$(srcdir):*/:/; 6534 s/:*\${srcdir}:*/:/; 6535 s/:*@srcdir@:*/:/; 6536 s/^\([^=]*=[ ]*\):*/\1/; 6537 s/:*$//; 6538 s/^[^=]*=[ ]*$//; 6539 }' 6540 fi 2768 6541 2769 6542 DEFS=-DHAVE_CONFIG_H 2770 6543 2771 # Without the "./", some shells look in PATH for config.status. 6544 ac_libobjs= 6545 ac_ltlibobjs= 6546 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 6547 # 1. Remove the extension, and $U if already installed. 6548 ac_i=`echo "$ac_i" | 6549 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 6550 # 2. Add them. 6551 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 6552 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 6553 done 6554 LIBOBJS=$ac_libobjs 6555 6556 LTLIBOBJS=$ac_ltlibobjs 6557 6558 6559 2772 6560 : ${CONFIG_STATUS=./config.status} 2773 2774 echo creating $CONFIG_STATUS 2775 rm -f $CONFIG_STATUS 2776 cat > $CONFIG_STATUS <<EOF 2777 #! /bin/sh 2778 # Generated automatically by configure. 6561 ac_clean_files_save=$ac_clean_files 6562 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 6563 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 6564 echo "$as_me: creating $CONFIG_STATUS" >&6;} 6565 cat >$CONFIG_STATUS <<_ACEOF 6566 #! $SHELL 6567 # Generated by $as_me. 2779 6568 # Run this file to recreate the current configuration. 2780 # This directory was configured as follows,2781 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:2782 #2783 # $0 $ac_configure_args2784 #2785 6569 # Compiler output produced by configure, useful for debugging 2786 # configure, is in ./config.log if it exists. 2787 2788 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 2789 for ac_option 6570 # configure, is in config.log if it exists. 6571 6572 debug=false 6573 ac_cs_recheck=false 6574 ac_cs_silent=false 6575 SHELL=\${CONFIG_SHELL-$SHELL} 6576 _ACEOF 6577 6578 cat >>$CONFIG_STATUS <<\_ACEOF 6579 ## --------------------- ## 6580 ## M4sh Initialization. ## 6581 ## --------------------- ## 6582 6583 # Be Bourne compatible 6584 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 6585 emulate sh 6586 NULLCMD=: 6587 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 6588 # is contrary to our usage. Disable this feature. 6589 alias -g '${1+"$@"}'='"$@"' 6590 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 6591 set -o posix 6592 fi 6593 DUALCASE=1; export DUALCASE # for MKS sh 6594 6595 # Support unset when possible. 6596 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6597 as_unset=unset 6598 else 6599 as_unset=false 6600 fi 6601 6602 6603 # Work around bugs in pre-3.0 UWIN ksh. 6604 $as_unset ENV MAIL MAILPATH 6605 PS1='$ ' 6606 PS2='> ' 6607 PS4='+ ' 6608 6609 # NLS nuisances. 6610 for as_var in \ 6611 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 6612 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 6613 LC_TELEPHONE LC_TIME 2790 6614 do 2791 case "\$ac_option" in 6615 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 6616 eval $as_var=C; export $as_var 6617 else 6618 $as_unset $as_var 6619 fi 6620 done 6621 6622 # Required to use basename. 6623 if expr a : '\(a\)' >/dev/null 2>&1; then 6624 as_expr=expr 6625 else 6626 as_expr=false 6627 fi 6628 6629 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 6630 as_basename=basename 6631 else 6632 as_basename=false 6633 fi 6634 6635 6636 # Name of the executable. 6637 as_me=`$as_basename "$0" || 6638 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 6639 X"$0" : 'X\(//\)$' \| \ 6640 X"$0" : 'X\(/\)$' \| \ 6641 . : '\(.\)' 2>/dev/null || 6642 echo X/"$0" | 6643 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 6644 /^X\/\(\/\/\)$/{ s//\1/; q; } 6645 /^X\/\(\/\).*/{ s//\1/; q; } 6646 s/.*/./; q'` 6647 6648 6649 # PATH needs CR, and LINENO needs CR and PATH. 6650 # Avoid depending upon Character Ranges. 6651 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 6652 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 6653 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 6654 as_cr_digits='0123456789' 6655 as_cr_alnum=$as_cr_Letters$as_cr_digits 6656 6657 # The user is always right. 6658 if test "${PATH_SEPARATOR+set}" != set; then 6659 echo "#! /bin/sh" >conf$$.sh 6660 echo "exit 0" >>conf$$.sh 6661 chmod +x conf$$.sh 6662 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 6663 PATH_SEPARATOR=';' 6664 else 6665 PATH_SEPARATOR=: 6666 fi 6667 rm -f conf$$.sh 6668 fi 6669 6670 6671 as_lineno_1=$LINENO 6672 as_lineno_2=$LINENO 6673 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 6674 test "x$as_lineno_1" != "x$as_lineno_2" && 6675 test "x$as_lineno_3" = "x$as_lineno_2" || { 6676 # Find who we are. Look in the path if we contain no path at all 6677 # relative or not. 6678 case $0 in 6679 *[\\/]* ) as_myself=$0 ;; 6680 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6681 for as_dir in $PATH 6682 do 6683 IFS=$as_save_IFS 6684 test -z "$as_dir" && as_dir=. 6685 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 6686 done 6687 6688 ;; 6689 esac 6690 # We did not find ourselves, most probably we were run as `sh COMMAND' 6691 # in which case we are not to be found in the path. 6692 if test "x$as_myself" = x; then 6693 as_myself=$0 6694 fi 6695 if test ! -f "$as_myself"; then 6696 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 6697 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 6698 { (exit 1); exit 1; }; } 6699 fi 6700 case $CONFIG_SHELL in 6701 '') 6702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6703 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 6704 do 6705 IFS=$as_save_IFS 6706 test -z "$as_dir" && as_dir=. 6707 for as_base in sh bash ksh sh5; do 6708 case $as_dir in 6709 /*) 6710 if ("$as_dir/$as_base" -c ' 6711 as_lineno_1=$LINENO 6712 as_lineno_2=$LINENO 6713 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 6714 test "x$as_lineno_1" != "x$as_lineno_2" && 6715 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 6716 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 6717 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 6718 CONFIG_SHELL=$as_dir/$as_base 6719 export CONFIG_SHELL 6720 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 6721 fi;; 6722 esac 6723 done 6724 done 6725 ;; 6726 esac 6727 6728 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 6729 # uniformly replaced by the line number. The first 'sed' inserts a 6730 # line-number line before each line; the second 'sed' does the real 6731 # work. The second script uses 'N' to pair each line-number line 6732 # with the numbered line, and appends trailing '-' during 6733 # substitution so that $LINENO is not a special case at line end. 6734 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 6735 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 6736 sed '=' <$as_myself | 6737 sed ' 6738 N 6739 s,$,-, 6740 : loop 6741 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 6742 t loop 6743 s,-$,, 6744 s,^['$as_cr_digits']*\n,, 6745 ' >$as_me.lineno && 6746 chmod +x $as_me.lineno || 6747 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 6748 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 6749 { (exit 1); exit 1; }; } 6750 6751 # Don't try to exec as it changes $[0], causing all sort of problems 6752 # (the dirname of $[0] is not the place where we might find the 6753 # original and so on. Autoconf is especially sensible to this). 6754 . ./$as_me.lineno 6755 # Exit status is that of the last command. 6756 exit 6757 } 6758 6759 6760 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 6761 *c*,-n*) ECHO_N= ECHO_C=' 6762 ' ECHO_T=' ' ;; 6763 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 6764 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 6765 esac 6766 6767 if expr a : '\(a\)' >/dev/null 2>&1; then 6768 as_expr=expr 6769 else 6770 as_expr=false 6771 fi 6772 6773 rm -f conf$$ conf$$.exe conf$$.file 6774 echo >conf$$.file 6775 if ln -s conf$$.file conf$$ 2>/dev/null; then 6776 # We could just check for DJGPP; but this test a) works b) is more generic 6777 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 6778 if test -f conf$$.exe; then 6779 # Don't use ln at all; we don't have any links 6780 as_ln_s='cp -p' 6781 else 6782 as_ln_s='ln -s' 6783 fi 6784 elif ln conf$$.file conf$$ 2>/dev/null; then 6785 as_ln_s=ln 6786 else 6787 as_ln_s='cp -p' 6788 fi 6789 rm -f conf$$ conf$$.exe conf$$.file 6790 6791 if mkdir -p . 2>/dev/null; then 6792 as_mkdir_p=: 6793 else 6794 test -d ./-p && rmdir ./-p 6795 as_mkdir_p=false 6796 fi 6797 6798 as_executable_p="test -f" 6799 6800 # Sed expression to map a string onto a valid CPP name. 6801 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 6802 6803 # Sed expression to map a string onto a valid variable name. 6804 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 6805 6806 6807 # IFS 6808 # We need space, tab and new line, in precisely that order. 6809 as_nl=' 6810 ' 6811 IFS=" $as_nl" 6812 6813 # CDPATH. 6814 $as_unset CDPATH 6815 6816 exec 6>&1 6817 6818 # Open the log real soon, to keep \$[0] and so on meaningful, and to 6819 # report actual input values of CONFIG_FILES etc. instead of their 6820 # values after options handling. Logging --version etc. is OK. 6821 exec 5>>config.log 6822 { 6823 echo 6824 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 6825 ## Running $as_me. ## 6826 _ASBOX 6827 } >&5 6828 cat >&5 <<_CSEOF 6829 6830 This file was extended by $as_me, which was 6831 generated by GNU Autoconf 2.59. Invocation command line was 6832 6833 CONFIG_FILES = $CONFIG_FILES 6834 CONFIG_HEADERS = $CONFIG_HEADERS 6835 CONFIG_LINKS = $CONFIG_LINKS 6836 CONFIG_COMMANDS = $CONFIG_COMMANDS 6837 $ $0 $@ 6838 6839 _CSEOF 6840 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 6841 echo >&5 6842 _ACEOF 6843 6844 # Files that config.status was made for. 6845 if test -n "$ac_config_files"; then 6846 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 6847 fi 6848 6849 if test -n "$ac_config_headers"; then 6850 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 6851 fi 6852 6853 if test -n "$ac_config_links"; then 6854 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 6855 fi 6856 6857 if test -n "$ac_config_commands"; then 6858 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 6859 fi 6860 6861 cat >>$CONFIG_STATUS <<\_ACEOF 6862 6863 ac_cs_usage="\ 6864 \`$as_me' instantiates files from templates according to the 6865 current configuration. 6866 6867 Usage: $0 [OPTIONS] [FILE]... 6868 6869 -h, --help print this help, then exit 6870 -V, --version print version number, then exit 6871 -q, --quiet do not print progress messages 6872 -d, --debug don't remove temporary files 6873 --recheck update $as_me by reconfiguring in the same conditions 6874 --file=FILE[:TEMPLATE] 6875 instantiate the configuration file FILE 6876 --header=FILE[:TEMPLATE] 6877 instantiate the configuration header FILE 6878 6879 Configuration files: 6880 $config_files 6881 6882 Configuration headers: 6883 $config_headers 6884 6885 Configuration commands: 6886 $config_commands 6887 6888 Report bugs to <[email protected]>." 6889 _ACEOF 6890 6891 cat >>$CONFIG_STATUS <<_ACEOF 6892 ac_cs_version="\\ 6893 config.status 6894 configured by $0, generated by GNU Autoconf 2.59, 6895 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 6896 6897 Copyright (C) 2003 Free Software Foundation, Inc. 6898 This config.status script is free software; the Free Software Foundation 6899 gives unlimited permission to copy, distribute and modify it." 6900 srcdir=$srcdir 6901 INSTALL="$INSTALL" 6902 _ACEOF 6903 6904 cat >>$CONFIG_STATUS <<\_ACEOF 6905 # If no file are specified by the user, then we need to provide default 6906 # value. By we need to know if files were specified by the user. 6907 ac_need_defaults=: 6908 while test $# != 0 6909 do 6910 case $1 in 6911 --*=*) 6912 ac_option=`expr "x$1" : 'x\([^=]*\)='` 6913 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 6914 ac_shift=: 6915 ;; 6916 -*) 6917 ac_option=$1 6918 ac_optarg=$2 6919 ac_shift=shift 6920 ;; 6921 *) # This is not an option, so the user has probably given explicit 6922 # arguments. 6923 ac_option=$1 6924 ac_need_defaults=false;; 6925 esac 6926 6927 case $ac_option in 6928 # Handling of the options. 6929 _ACEOF 6930 cat >>$CONFIG_STATUS <<\_ACEOF 2792 6931 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 2793 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 2794 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 2795 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 2796 echo "$CONFIG_STATUS generated by autoconf version 2.12" 2797 exit 0 ;; 2798 -help | --help | --hel | --he | --h) 2799 echo "\$ac_cs_usage"; exit 0 ;; 2800 *) echo "\$ac_cs_usage"; exit 1 ;; 6932 ac_cs_recheck=: ;; 6933 --version | --vers* | -V ) 6934 echo "$ac_cs_version"; exit 0 ;; 6935 --he | --h) 6936 # Conflict between --help and --header 6937 { { echo "$as_me:$LINENO: error: ambiguous option: $1 6938 Try \`$0 --help' for more information." >&5 6939 echo "$as_me: error: ambiguous option: $1 6940 Try \`$0 --help' for more information." >&2;} 6941 { (exit 1); exit 1; }; };; 6942 --help | --hel | -h ) 6943 echo "$ac_cs_usage"; exit 0 ;; 6944 --debug | --d* | -d ) 6945 debug=: ;; 6946 --file | --fil | --fi | --f ) 6947 $ac_shift 6948 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 6949 ac_need_defaults=false;; 6950 --header | --heade | --head | --hea ) 6951 $ac_shift 6952 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 6953 ac_need_defaults=false;; 6954 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 6955 | -silent | --silent | --silen | --sile | --sil | --si | --s) 6956 ac_cs_silent=: ;; 6957 6958 # This is an error. 6959 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 6960 Try \`$0 --help' for more information." >&5 6961 echo "$as_me: error: unrecognized option: $1 6962 Try \`$0 --help' for more information." >&2;} 6963 { (exit 1); exit 1; }; } ;; 6964 6965 *) ac_config_targets="$ac_config_targets $1" ;; 6966 6967 esac 6968 shift 6969 done 6970 6971 ac_configure_extra_args= 6972 6973 if $ac_cs_silent; then 6974 exec 6>/dev/null 6975 ac_configure_extra_args="$ac_configure_extra_args --silent" 6976 fi 6977 6978 _ACEOF 6979 cat >>$CONFIG_STATUS <<_ACEOF 6980 if \$ac_cs_recheck; then 6981 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 6982 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 6983 fi 6984 6985 _ACEOF 6986 6987 6988 6989 6990 6991 cat >>$CONFIG_STATUS <<\_ACEOF 6992 for ac_config_target in $ac_config_targets 6993 do 6994 case "$ac_config_target" in 6995 # Handling of arguments. 6996 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 6997 "src/text/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/text/Makefile" ;; 6998 "src/images/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/images/Makefile" ;; 6999 "src/scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/scripts/Makefile" ;; 7000 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 7001 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 7002 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 7003 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 7004 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 7005 { (exit 1); exit 1; }; };; 2801 7006 esac 2802 7007 done 2803 7008 2804 ac_given_srcdir=$srcdir 2805 ac_given_INSTALL="$INSTALL" 2806 2807 trap 'rm -fr `echo "Makefile src/text/Makefile src/images/Makefile 2808 src/scripts/Makefile lib/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 2809 EOF 2810 cat >> $CONFIG_STATUS <<EOF 2811 2812 # Protect against being on the right side of a sed subst in config.status. 2813 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 2814 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 2815 $ac_vpsub 7009 # If the user did not use the arguments to specify the items to instantiate, 7010 # then the envvar interface is used. Set only those that are not. 7011 # We use the long form for the default assignment because of an extremely 7012 # bizarre bug on SunOS 4.1.3. 7013 if $ac_need_defaults; then 7014 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 7015 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 7016 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 7017 fi 7018 7019 # Have a temporary directory for convenience. Make it in the build tree 7020 # simply because there is no reason to put it here, and in addition, 7021 # creating and moving files from /tmp can sometimes cause problems. 7022 # Create a temporary directory, and hook for its removal unless debugging. 7023 $debug || 7024 { 7025 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 7026 trap '{ (exit 1); exit 1; }' 1 2 13 15 7027 } 7028 7029 # Create a (secure) tmp directory for tmp files. 7030 7031 { 7032 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 7033 test -n "$tmp" && test -d "$tmp" 7034 } || 7035 { 7036 tmp=./confstat$$-$RANDOM 7037 (umask 077 && mkdir $tmp) 7038 } || 7039 { 7040 echo "$me: cannot create a temporary directory in ." >&2 7041 { (exit 1); exit 1; } 7042 } 7043 7044 _ACEOF 7045 7046 cat >>$CONFIG_STATUS <<_ACEOF 7047 7048 # 7049 # CONFIG_FILES section. 7050 # 7051 7052 # No need to generate the scripts if there are no CONFIG_FILES. 7053 # This happens for instance when ./config.status config.h 7054 if test -n "\$CONFIG_FILES"; then 7055 # Protect against being on the right side of a sed subst in config.status. 7056 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 7057 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 7058 s,@SHELL@,$SHELL,;t t 7059 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 7060 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 7061 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 7062 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 7063 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 7064 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 7065 s,@exec_prefix@,$exec_prefix,;t t 7066 s,@prefix@,$prefix,;t t 7067 s,@program_transform_name@,$program_transform_name,;t t 7068 s,@bindir@,$bindir,;t t 7069 s,@sbindir@,$sbindir,;t t 7070 s,@libexecdir@,$libexecdir,;t t 7071 s,@datadir@,$datadir,;t t 7072 s,@sysconfdir@,$sysconfdir,;t t 7073 s,@sharedstatedir@,$sharedstatedir,;t t 7074 s,@localstatedir@,$localstatedir,;t t 7075 s,@libdir@,$libdir,;t t 7076 s,@includedir@,$includedir,;t t 7077 s,@oldincludedir@,$oldincludedir,;t t 7078 s,@infodir@,$infodir,;t t 7079 s,@mandir@,$mandir,;t t 7080 s,@build_alias@,$build_alias,;t t 7081 s,@host_alias@,$host_alias,;t t 7082 s,@target_alias@,$target_alias,;t t 7083 s,@DEFS@,$DEFS,;t t 7084 s,@ECHO_C@,$ECHO_C,;t t 7085 s,@ECHO_N@,$ECHO_N,;t t 7086 s,@ECHO_T@,$ECHO_T,;t t 7087 s,@LIBS@,$LIBS,;t t 7088 s,@PACKAGE@,$PACKAGE,;t t 7089 s,@VERSION@,$VERSION,;t t 7090 s,@CXX@,$CXX,;t t 7091 s,@CXXFLAGS@,$CXXFLAGS,;t t 7092 s,@LDFLAGS@,$LDFLAGS,;t t 7093 s,@CPPFLAGS@,$CPPFLAGS,;t t 7094 s,@ac_ct_CXX@,$ac_ct_CXX,;t t 7095 s,@EXEEXT@,$EXEEXT,;t t 7096 s,@OBJEXT@,$OBJEXT,;t t 7097 s,@AWK@,$AWK,;t t 7098 s,@YACC@,$YACC,;t t 7099 s,@CC@,$CC,;t t 7100 s,@CFLAGS@,$CFLAGS,;t t 7101 s,@ac_ct_CC@,$ac_ct_CC,;t t 7102 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 7103 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 7104 s,@INSTALL_DATA@,$INSTALL_DATA,;t t 7105 s,@LN_S@,$LN_S,;t t 7106 s,@SET_MAKE@,$SET_MAKE,;t t 7107 s,@RANLIB@,$RANLIB,;t t 7108 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 7109 s,@CPP@,$CPP,;t t 7110 s,@EGREP@,$EGREP,;t t 7111 s,@U@,$U,;t t 7112 s,@ANSI2KNR@,$ANSI2KNR,;t t 7113 s,@ALLOCA@,$ALLOCA,;t t 7114 s,@LIBOBJS@,$LIBOBJS,;t t 7115 s,@LTLIBOBJS@,$LTLIBOBJS,;t t 7116 CEOF 7117 7118 _ACEOF 7119 7120 cat >>$CONFIG_STATUS <<\_ACEOF 7121 # Split the substitutions into bite-sized pieces for seds with 7122 # small command number limits, like on Digital OSF/1 and HP-UX. 7123 ac_max_sed_lines=48 7124 ac_sed_frag=1 # Number of current file. 7125 ac_beg=1 # First line for current file. 7126 ac_end=$ac_max_sed_lines # Line after last line for current file. 7127 ac_more_lines=: 7128 ac_sed_cmds= 7129 while $ac_more_lines; do 7130 if test $ac_beg -gt 1; then 7131 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 7132 else 7133 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 7134 fi 7135 if test ! -s $tmp/subs.frag; then 7136 ac_more_lines=false 7137 else 7138 # The purpose of the label and of the branching condition is to 7139 # speed up the sed processing (if there are no `@' at all, there 7140 # is no need to browse any of the substitutions). 7141 # These are the two extra sed commands mentioned above. 7142 (echo ':t 7143 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 7144 if test -z "$ac_sed_cmds"; then 7145 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 7146 else 7147 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 7148 fi 7149 ac_sed_frag=`expr $ac_sed_frag + 1` 7150 ac_beg=$ac_end 7151 ac_end=`expr $ac_end + $ac_max_sed_lines` 7152 fi 7153 done 7154 if test -z "$ac_sed_cmds"; then 7155 ac_sed_cmds=cat 7156 fi 7157 fi # test -n "$CONFIG_FILES" 7158 7159 _ACEOF 7160 cat >>$CONFIG_STATUS <<\_ACEOF 7161 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 7162 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 7163 case $ac_file in 7164 - | *:- | *:-:* ) # input from stdin 7165 cat >$tmp/stdin 7166 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 7167 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 7168 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 7169 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 7170 * ) ac_file_in=$ac_file.in ;; 7171 esac 7172 7173 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 7174 ac_dir=`(dirname "$ac_file") 2>/dev/null || 7175 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7176 X"$ac_file" : 'X\(//\)[^/]' \| \ 7177 X"$ac_file" : 'X\(//\)$' \| \ 7178 X"$ac_file" : 'X\(/\)' \| \ 7179 . : '\(.\)' 2>/dev/null || 7180 echo X"$ac_file" | 7181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 7182 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 7183 /^X\(\/\/\)$/{ s//\1/; q; } 7184 /^X\(\/\).*/{ s//\1/; q; } 7185 s/.*/./; q'` 7186 { if $as_mkdir_p; then 7187 mkdir -p "$ac_dir" 7188 else 7189 as_dir="$ac_dir" 7190 as_dirs= 7191 while test ! -d "$as_dir"; do 7192 as_dirs="$as_dir $as_dirs" 7193 as_dir=`(dirname "$as_dir") 2>/dev/null || 7194 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7195 X"$as_dir" : 'X\(//\)[^/]' \| \ 7196 X"$as_dir" : 'X\(//\)$' \| \ 7197 X"$as_dir" : 'X\(/\)' \| \ 7198 . : '\(.\)' 2>/dev/null || 7199 echo X"$as_dir" | 7200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 7201 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 7202 /^X\(\/\/\)$/{ s//\1/; q; } 7203 /^X\(\/\).*/{ s//\1/; q; } 7204 s/.*/./; q'` 7205 done 7206 test ! -n "$as_dirs" || mkdir $as_dirs 7207 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 7208 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 7209 { (exit 1); exit 1; }; }; } 7210 7211 ac_builddir=. 7212 7213 if test "$ac_dir" != .; then 7214 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 7215 # A "../" for each directory in $ac_dir_suffix. 7216 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 7217 else 7218 ac_dir_suffix= ac_top_builddir= 7219 fi 7220 7221 case $srcdir in 7222 .) # No --srcdir option. We are building in place. 7223 ac_srcdir=. 7224 if test -z "$ac_top_builddir"; then 7225 ac_top_srcdir=. 7226 else 7227 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 7228 fi ;; 7229 [\\/]* | ?:[\\/]* ) # Absolute path. 7230 ac_srcdir=$srcdir$ac_dir_suffix; 7231 ac_top_srcdir=$srcdir ;; 7232 *) # Relative path. 7233 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 7234 ac_top_srcdir=$ac_top_builddir$srcdir ;; 7235 esac 7236 7237 # Do not use `cd foo && pwd` to compute absolute paths, because 7238 # the directories may not exist. 7239 case `pwd` in 7240 .) ac_abs_builddir="$ac_dir";; 7241 *) 7242 case "$ac_dir" in 7243 .) ac_abs_builddir=`pwd`;; 7244 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 7245 *) ac_abs_builddir=`pwd`/"$ac_dir";; 7246 esac;; 7247 esac 7248 case $ac_abs_builddir in 7249 .) ac_abs_top_builddir=${ac_top_builddir}.;; 7250 *) 7251 case ${ac_top_builddir}. in 7252 .) ac_abs_top_builddir=$ac_abs_builddir;; 7253 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 7254 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 7255 esac;; 7256 esac 7257 case $ac_abs_builddir in 7258 .) ac_abs_srcdir=$ac_srcdir;; 7259 *) 7260 case $ac_srcdir in 7261 .) ac_abs_srcdir=$ac_abs_builddir;; 7262 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 7263 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 7264 esac;; 7265 esac 7266 case $ac_abs_builddir in 7267 .) ac_abs_top_srcdir=$ac_top_srcdir;; 7268 *) 7269 case $ac_top_srcdir in 7270 .) ac_abs_top_srcdir=$ac_abs_builddir;; 7271 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 7272 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 7273 esac;; 7274 esac 7275 7276 7277 case $INSTALL in 7278 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 7279 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 7280 esac 7281 7282 if test x"$ac_file" != x-; then 7283 { echo "$as_me:$LINENO: creating $ac_file" >&5 7284 echo "$as_me: creating $ac_file" >&6;} 7285 rm -f "$ac_file" 7286 fi 7287 # Let's still pretend it is `configure' which instantiates (i.e., don't 7288 # use $as_me), people would be surprised to read: 7289 # /* config.h. Generated by config.status. */ 7290 if test x"$ac_file" = x-; then 7291 configure_input= 7292 else 7293 configure_input="$ac_file. " 7294 fi 7295 configure_input=$configure_input"Generated from `echo $ac_file_in | 7296 sed 's,.*/,,'` by configure." 7297 7298 # First look for the input files in the build tree, otherwise in the 7299 # src tree. 7300 ac_file_inputs=`IFS=: 7301 for f in $ac_file_in; do 7302 case $f in 7303 -) echo $tmp/stdin ;; 7304 [\\/$]*) 7305 # Absolute (can't be DOS-style, as IFS=:) 7306 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 7307 echo "$as_me: error: cannot find input file: $f" >&2;} 7308 { (exit 1); exit 1; }; } 7309 echo "$f";; 7310 *) # Relative 7311 if test -f "$f"; then 7312 # Build tree 7313 echo "$f" 7314 elif test -f "$srcdir/$f"; then 7315 # Source tree 7316 echo "$srcdir/$f" 7317 else 7318 # /dev/null tree 7319 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 7320 echo "$as_me: error: cannot find input file: $f" >&2;} 7321 { (exit 1); exit 1; }; } 7322 fi;; 7323 esac 7324 done` || { (exit 1); exit 1; } 7325 _ACEOF 7326 cat >>$CONFIG_STATUS <<_ACEOF 7327 sed "$ac_vpsub 2816 7328 $extrasub 2817 s%@CFLAGS@%$CFLAGS%g 2818 s%@CPPFLAGS@%$CPPFLAGS%g 2819 s%@CXXFLAGS@%$CXXFLAGS%g 2820 s%@DEFS@%$DEFS%g 2821 s%@LDFLAGS@%$LDFLAGS%g 2822 s%@LIBS@%$LIBS%g 2823 s%@exec_prefix@%$exec_prefix%g 2824 s%@prefix@%$prefix%g 2825 s%@program_transform_name@%$program_transform_name%g 2826 s%@bindir@%$bindir%g 2827 s%@sbindir@%$sbindir%g 2828 s%@libexecdir@%$libexecdir%g 2829 s%@datadir@%$datadir%g 2830 s%@sysconfdir@%$sysconfdir%g 2831 s%@sharedstatedir@%$sharedstatedir%g 2832 s%@localstatedir@%$localstatedir%g 2833 s%@libdir@%$libdir%g 2834 s%@includedir@%$includedir%g 2835 s%@oldincludedir@%$oldincludedir%g 2836 s%@infodir@%$infodir%g 2837 s%@mandir@%$mandir%g 2838 s%@PACKAGE@%$PACKAGE%g 2839 s%@VERSION@%$VERSION%g 2840 s%@CXX@%$CXX%g 2841 s%@AWK@%$AWK%g 2842 s%@YACC@%$YACC%g 2843 s%@CC@%$CC%g 2844 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 2845 s%@INSTALL_DATA@%$INSTALL_DATA%g 2846 s%@LN_S@%$LN_S%g 2847 s%@SET_MAKE@%$SET_MAKE%g 2848 s%@RANLIB@%$RANLIB%g 2849 s%@CPP@%$CPP%g 2850 s%@U@%$U%g 2851 s%@ANSI2KNR@%$ANSI2KNR%g 2852 s%@ALLOCA@%$ALLOCA%g 2853 s%@LIBOBJS@%$LIBOBJS%g 2854 2855 CEOF 2856 EOF 2857 2858 cat >> $CONFIG_STATUS <<\EOF 2859 2860 # Split the substitutions into bite-sized pieces for seds with 2861 # small command number limits, like on Digital OSF/1 and HP-UX. 2862 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 2863 ac_file=1 # Number of current file. 2864 ac_beg=1 # First line for current file. 2865 ac_end=$ac_max_sed_cmds # Line after last line for current file. 2866 ac_more_lines=: 2867 ac_sed_cmds="" 2868 while $ac_more_lines; do 2869 if test $ac_beg -gt 1; then 2870 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 7329 _ACEOF 7330 cat >>$CONFIG_STATUS <<\_ACEOF 7331 :t 7332 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 7333 s,@configure_input@,$configure_input,;t t 7334 s,@srcdir@,$ac_srcdir,;t t 7335 s,@abs_srcdir@,$ac_abs_srcdir,;t t 7336 s,@top_srcdir@,$ac_top_srcdir,;t t 7337 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 7338 s,@builddir@,$ac_builddir,;t t 7339 s,@abs_builddir@,$ac_abs_builddir,;t t 7340 s,@top_builddir@,$ac_top_builddir,;t t 7341 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 7342 s,@INSTALL@,$ac_INSTALL,;t t 7343 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 7344 rm -f $tmp/stdin 7345 if test x"$ac_file" != x-; then 7346 mv $tmp/out $ac_file 2871 7347 else 2872 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 7348 cat $tmp/out 7349 rm -f $tmp/out 2873 7350 fi 2874 if test ! -s conftest.s$ac_file; then 2875 ac_more_lines=false 2876 rm -f conftest.s$ac_file 2877 else 2878 if test -z "$ac_sed_cmds"; then 2879 ac_sed_cmds="sed -f conftest.s$ac_file" 2880 else 2881 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 2882 fi 2883 ac_file=`expr $ac_file + 1` 2884 ac_beg=$ac_end 2885 ac_end=`expr $ac_end + $ac_max_sed_cmds` 2886 fi 7351 2887 7352 done 2888 if test -z "$ac_sed_cmds"; then 2889 ac_sed_cmds=cat 2890 fi 2891 EOF 2892 2893 cat >> $CONFIG_STATUS <<EOF 2894 2895 CONFIG_FILES=\${CONFIG_FILES-"Makefile src/text/Makefile src/images/Makefile 2896 src/scripts/Makefile lib/Makefile "} 2897 EOF 2898 cat >> $CONFIG_STATUS <<\EOF 2899 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 2900 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 2901 case "$ac_file" in 2902 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 2903 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 2904 *) ac_file_in="${ac_file}.in" ;; 2905 esac 2906 2907 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 2908 2909 # Remove last slash and all that follows it. Not all systems have dirname. 2910 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 2911 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 2912 # The file is in a subdirectory. 2913 test ! -d "$ac_dir" && mkdir "$ac_dir" 2914 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 2915 # A "../" for each directory in $ac_dir_suffix. 2916 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 2917 else 2918 ac_dir_suffix= ac_dots= 2919 fi 2920 2921 case "$ac_given_srcdir" in 2922 .) srcdir=. 2923 if test -z "$ac_dots"; then top_srcdir=. 2924 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 2925 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 2926 *) # Relative path. 2927 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 2928 top_srcdir="$ac_dots$ac_given_srcdir" ;; 2929 esac 2930 2931 case "$ac_given_INSTALL" in 2932 [/$]*) INSTALL="$ac_given_INSTALL" ;; 2933 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 2934 esac 2935 2936 echo creating "$ac_file" 2937 rm -f "$ac_file" 2938 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 2939 case "$ac_file" in 2940 *Makefile*) ac_comsub="1i\\ 2941 # $configure_input" ;; 2942 *) ac_comsub= ;; 2943 esac 2944 2945 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 2946 sed -e "$ac_comsub 2947 s%@configure_input@%$configure_input%g 2948 s%@srcdir@%$srcdir%g 2949 s%@top_srcdir@%$top_srcdir%g 2950 s%@INSTALL@%$INSTALL%g 2951 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 2952 fi; done 2953 rm -f conftest.s* 7353 _ACEOF 7354 cat >>$CONFIG_STATUS <<\_ACEOF 7355 7356 # 7357 # CONFIG_HEADER section. 7358 # 2954 7359 2955 7360 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where … … 2957 7362 # 2958 7363 # ac_d sets the value in "#define NAME VALUE" lines. 2959 ac_dA='s %^\([ ]*\)#\([ ]*define[ ][]*\)'2960 ac_dB=' \([ ][ ]*\)[^ ]*%\1#\2'2961 ac_dC=' \3'2962 ac_dD=' %g'2963 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".2964 ac_uA='s %^\([ ]*\)#\([ ]*\)undef\([ ][]*\)'2965 ac_uB=' \([ ]\)%\1#\2define\3'7364 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 7365 ac_dB='[ ].*$,\1#\2' 7366 ac_dC=' ' 7367 ac_dD=',;t' 7368 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 7369 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 7370 ac_uB='$,\1#\2define\3' 2966 7371 ac_uC=' ' 2967 ac_uD='\4%g' 2968 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 2969 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 2970 ac_eB='$%\1#\2define\3' 2971 ac_eC=' ' 2972 ac_eD='%g' 2973 2974 if test "${CONFIG_HEADERS+set}" != set; then 2975 EOF 2976 cat >> $CONFIG_STATUS <<EOF 2977 CONFIG_HEADERS="config.h" 2978 EOF 2979 cat >> $CONFIG_STATUS <<\EOF 2980 fi 2981 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 7372 ac_uD=',;t' 7373 7374 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 2982 7375 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 2983 case "$ac_file" in 2984 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 2985 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 2986 *) ac_file_in="${ac_file}.in" ;; 7376 case $ac_file in 7377 - | *:- | *:-:* ) # input from stdin 7378 cat >$tmp/stdin 7379 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 7380 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 7381 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 7382 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 7383 * ) ac_file_in=$ac_file.in ;; 2987 7384 esac 2988 7385 2989 echo creating $ac_file 2990 2991 rm -f conftest.frag conftest.in conftest.out 2992 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 2993 cat $ac_file_inputs > conftest.in 2994 2995 EOF 2996 2997 # Transform confdefs.h into a sed script conftest.vals that substitutes 2998 # the proper values into config.h.in to produce config.h. And first: 2999 # Protect against being on the right side of a sed subst in config.status. 3000 # Protect against being in an unquoted here document in config.status. 3001 rm -f conftest.vals 3002 cat > conftest.hdr <<\EOF 3003 s/[\\&%]/\\&/g 3004 s%[\\$`]%\\&%g 3005 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 3006 s%ac_d%ac_u%gp 3007 s%ac_u%ac_e%gp 3008 EOF 3009 sed -n -f conftest.hdr confdefs.h > conftest.vals 3010 rm -f conftest.hdr 7386 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 7387 echo "$as_me: creating $ac_file" >&6;} 7388 7389 # First look for the input files in the build tree, otherwise in the 7390 # src tree. 7391 ac_file_inputs=`IFS=: 7392 for f in $ac_file_in; do 7393 case $f in 7394 -) echo $tmp/stdin ;; 7395 [\\/$]*) 7396 # Absolute (can't be DOS-style, as IFS=:) 7397 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 7398 echo "$as_me: error: cannot find input file: $f" >&2;} 7399 { (exit 1); exit 1; }; } 7400 # Do quote $f, to prevent DOS paths from being IFS'd. 7401 echo "$f";; 7402 *) # Relative 7403 if test -f "$f"; then 7404 # Build tree 7405 echo "$f" 7406 elif test -f "$srcdir/$f"; then 7407 # Source tree 7408 echo "$srcdir/$f" 7409 else 7410 # /dev/null tree 7411 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 7412 echo "$as_me: error: cannot find input file: $f" >&2;} 7413 { (exit 1); exit 1; }; } 7414 fi;; 7415 esac 7416 done` || { (exit 1); exit 1; } 7417 # Remove the trailing spaces. 7418 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 7419 7420 _ACEOF 7421 7422 # Transform confdefs.h into two sed scripts, `conftest.defines' and 7423 # `conftest.undefs', that substitutes the proper values into 7424 # config.h.in to produce config.h. The first handles `#define' 7425 # templates, and the second `#undef' templates. 7426 # And first: Protect against being on the right side of a sed subst in 7427 # config.status. Protect against being in an unquoted here document 7428 # in config.status. 7429 rm -f conftest.defines conftest.undefs 7430 # Using a here document instead of a string reduces the quoting nightmare. 7431 # Putting comments in sed scripts is not portable. 7432 # 7433 # `end' is used to avoid that the second main sed command (meant for 7434 # 0-ary CPP macros) applies to n-ary macro definitions. 7435 # See the Autoconf documentation for `clear'. 7436 cat >confdef2sed.sed <<\_ACEOF 7437 s/[\\&,]/\\&/g 7438 s,[\\$`],\\&,g 7439 t clear 7440 : clear 7441 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 7442 t end 7443 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 7444 : end 7445 _ACEOF 7446 # If some macros were called several times there might be several times 7447 # the same #defines, which is useless. Nevertheless, we may not want to 7448 # sort them, since we want the *last* AC-DEFINE to be honored. 7449 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 7450 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 7451 rm -f confdef2sed.sed 3011 7452 3012 7453 # This sed command replaces #undef with comments. This is necessary, for 3013 7454 # example, in the case of _POSIX_SOURCE, which is predefined and required 3014 7455 # on some systems where configure will not decide to define it. 3015 cat >> conftest.vals <<\EOF 3016 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 3017 EOF 3018 3019 # Break up conftest.vals because some shells have a limit on 3020 # the size of here documents, and old seds have small limits too. 3021 7456 cat >>conftest.undefs <<\_ACEOF 7457 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 7458 _ACEOF 7459 7460 # Break up conftest.defines because some shells have a limit on the size 7461 # of here documents, and old seds have small limits too (100 cmds). 7462 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 7463 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 7464 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 7465 echo ' :' >>$CONFIG_STATUS 3022 7466 rm -f conftest.tail 3023 while :7467 while grep . conftest.defines >/dev/null 3024 7468 do 3025 ac_lines=`grep -c . conftest.vals` 3026 # grep -c gives empty output for an empty file on some AIX systems. 3027 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 3028 # Write a limited-size here document to conftest.frag. 3029 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 3030 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 7469 # Write a limited-size here document to $tmp/defines.sed. 7470 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 7471 # Speed up: don't consider the non `#define' lines. 7472 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 7473 # Work around the forget-to-reset-the-flag bug. 7474 echo 't clr' >>$CONFIG_STATUS 7475 echo ': clr' >>$CONFIG_STATUS 7476 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 3031 7477 echo 'CEOF 3032 sed -f conftest.frag conftest.in > conftest.out3033 rm -f conftest.in3034 mv conftest.out conftest.in3035 ' >> 3036 sed 1,${ac_max_here_lines}d conftest. vals >conftest.tail3037 rm -f conftest. vals3038 mv conftest.tail conftest. vals7478 sed -f $tmp/defines.sed $tmp/in >$tmp/out 7479 rm -f $tmp/in 7480 mv $tmp/out $tmp/in 7481 ' >>$CONFIG_STATUS 7482 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 7483 rm -f conftest.defines 7484 mv conftest.tail conftest.defines 3039 7485 done 3040 rm -f conftest.vals 3041 3042 cat >> $CONFIG_STATUS <<\EOF 3043 rm -f conftest.frag conftest.h 3044 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 3045 cat conftest.in >> conftest.h 3046 rm -f conftest.in 3047 if cmp -s $ac_file conftest.h 2>/dev/null; then 3048 echo "$ac_file is unchanged" 3049 rm -f conftest.h 7486 rm -f conftest.defines 7487 echo ' fi # grep' >>$CONFIG_STATUS 7488 echo >>$CONFIG_STATUS 7489 7490 # Break up conftest.undefs because some shells have a limit on the size 7491 # of here documents, and old seds have small limits too (100 cmds). 7492 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 7493 rm -f conftest.tail 7494 while grep . conftest.undefs >/dev/null 7495 do 7496 # Write a limited-size here document to $tmp/undefs.sed. 7497 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 7498 # Speed up: don't consider the non `#undef' 7499 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 7500 # Work around the forget-to-reset-the-flag bug. 7501 echo 't clr' >>$CONFIG_STATUS 7502 echo ': clr' >>$CONFIG_STATUS 7503 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 7504 echo 'CEOF 7505 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 7506 rm -f $tmp/in 7507 mv $tmp/out $tmp/in 7508 ' >>$CONFIG_STATUS 7509 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 7510 rm -f conftest.undefs 7511 mv conftest.tail conftest.undefs 7512 done 7513 rm -f conftest.undefs 7514 7515 cat >>$CONFIG_STATUS <<\_ACEOF 7516 # Let's still pretend it is `configure' which instantiates (i.e., don't 7517 # use $as_me), people would be surprised to read: 7518 # /* config.h. Generated by config.status. */ 7519 if test x"$ac_file" = x-; then 7520 echo "/* Generated by configure. */" >$tmp/config.h 3050 7521 else 3051 # Remove last slash and all that follows it. Not all systems have dirname. 3052 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 3053 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 3054 # The file is in a subdirectory. 3055 test ! -d "$ac_dir" && mkdir "$ac_dir" 7522 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 7523 fi 7524 cat $tmp/in >>$tmp/config.h 7525 rm -f $tmp/in 7526 if test x"$ac_file" != x-; then 7527 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 7528 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 7529 echo "$as_me: $ac_file is unchanged" >&6;} 7530 else 7531 ac_dir=`(dirname "$ac_file") 2>/dev/null || 7532 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7533 X"$ac_file" : 'X\(//\)[^/]' \| \ 7534 X"$ac_file" : 'X\(//\)$' \| \ 7535 X"$ac_file" : 'X\(/\)' \| \ 7536 . : '\(.\)' 2>/dev/null || 7537 echo X"$ac_file" | 7538 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 7539 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 7540 /^X\(\/\/\)$/{ s//\1/; q; } 7541 /^X\(\/\).*/{ s//\1/; q; } 7542 s/.*/./; q'` 7543 { if $as_mkdir_p; then 7544 mkdir -p "$ac_dir" 7545 else 7546 as_dir="$ac_dir" 7547 as_dirs= 7548 while test ! -d "$as_dir"; do 7549 as_dirs="$as_dir $as_dirs" 7550 as_dir=`(dirname "$as_dir") 2>/dev/null || 7551 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7552 X"$as_dir" : 'X\(//\)[^/]' \| \ 7553 X"$as_dir" : 'X\(//\)$' \| \ 7554 X"$as_dir" : 'X\(/\)' \| \ 7555 . : '\(.\)' 2>/dev/null || 7556 echo X"$as_dir" | 7557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 7558 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 7559 /^X\(\/\/\)$/{ s//\1/; q; } 7560 /^X\(\/\).*/{ s//\1/; q; } 7561 s/.*/./; q'` 7562 done 7563 test ! -n "$as_dirs" || mkdir $as_dirs 7564 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 7565 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 7566 { (exit 1); exit 1; }; }; } 7567 7568 rm -f $ac_file 7569 mv $tmp/config.h $ac_file 3056 7570 fi 3057 rm -f $ac_file 3058 mv conftest.h $ac_file 7571 else 7572 cat $tmp/config.h 7573 rm -f $tmp/config.h 3059 7574 fi 3060 fi; done 3061 3062 EOF 3063 cat >> $CONFIG_STATUS <<EOF 3064 3065 EOF 3066 cat >> $CONFIG_STATUS <<\EOF 3067 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h 3068 exit 0 3069 EOF 7575 done 7576 _ACEOF 7577 cat >>$CONFIG_STATUS <<\_ACEOF 7578 7579 # 7580 # CONFIG_COMMANDS section. 7581 # 7582 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 7583 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 7584 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 7585 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 7586 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7587 X"$ac_dest" : 'X\(//\)[^/]' \| \ 7588 X"$ac_dest" : 'X\(//\)$' \| \ 7589 X"$ac_dest" : 'X\(/\)' \| \ 7590 . : '\(.\)' 2>/dev/null || 7591 echo X"$ac_dest" | 7592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 7593 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 7594 /^X\(\/\/\)$/{ s//\1/; q; } 7595 /^X\(\/\).*/{ s//\1/; q; } 7596 s/.*/./; q'` 7597 { if $as_mkdir_p; then 7598 mkdir -p "$ac_dir" 7599 else 7600 as_dir="$ac_dir" 7601 as_dirs= 7602 while test ! -d "$as_dir"; do 7603 as_dirs="$as_dir $as_dirs" 7604 as_dir=`(dirname "$as_dir") 2>/dev/null || 7605 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7606 X"$as_dir" : 'X\(//\)[^/]' \| \ 7607 X"$as_dir" : 'X\(//\)$' \| \ 7608 X"$as_dir" : 'X\(/\)' \| \ 7609 . : '\(.\)' 2>/dev/null || 7610 echo X"$as_dir" | 7611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 7612 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 7613 /^X\(\/\/\)$/{ s//\1/; q; } 7614 /^X\(\/\).*/{ s//\1/; q; } 7615 s/.*/./; q'` 7616 done 7617 test ! -n "$as_dirs" || mkdir $as_dirs 7618 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 7619 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 7620 { (exit 1); exit 1; }; }; } 7621 7622 ac_builddir=. 7623 7624 if test "$ac_dir" != .; then 7625 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 7626 # A "../" for each directory in $ac_dir_suffix. 7627 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 7628 else 7629 ac_dir_suffix= ac_top_builddir= 7630 fi 7631 7632 case $srcdir in 7633 .) # No --srcdir option. We are building in place. 7634 ac_srcdir=. 7635 if test -z "$ac_top_builddir"; then 7636 ac_top_srcdir=. 7637 else 7638 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 7639 fi ;; 7640 [\\/]* | ?:[\\/]* ) # Absolute path. 7641 ac_srcdir=$srcdir$ac_dir_suffix; 7642 ac_top_srcdir=$srcdir ;; 7643 *) # Relative path. 7644 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 7645 ac_top_srcdir=$ac_top_builddir$srcdir ;; 7646 esac 7647 7648 # Do not use `cd foo && pwd` to compute absolute paths, because 7649 # the directories may not exist. 7650 case `pwd` in 7651 .) ac_abs_builddir="$ac_dir";; 7652 *) 7653 case "$ac_dir" in 7654 .) ac_abs_builddir=`pwd`;; 7655 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 7656 *) ac_abs_builddir=`pwd`/"$ac_dir";; 7657 esac;; 7658 esac 7659 case $ac_abs_builddir in 7660 .) ac_abs_top_builddir=${ac_top_builddir}.;; 7661 *) 7662 case ${ac_top_builddir}. in 7663 .) ac_abs_top_builddir=$ac_abs_builddir;; 7664 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 7665 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 7666 esac;; 7667 esac 7668 case $ac_abs_builddir in 7669 .) ac_abs_srcdir=$ac_srcdir;; 7670 *) 7671 case $ac_srcdir in 7672 .) ac_abs_srcdir=$ac_abs_builddir;; 7673 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 7674 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 7675 esac;; 7676 esac 7677 case $ac_abs_builddir in 7678 .) ac_abs_top_srcdir=$ac_top_srcdir;; 7679 *) 7680 case $ac_top_srcdir in 7681 .) ac_abs_top_srcdir=$ac_abs_builddir;; 7682 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 7683 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 7684 esac;; 7685 esac 7686 7687 7688 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 7689 echo "$as_me: executing $ac_dest commands" >&6;} 7690 case $ac_dest in 7691 default ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;; 7692 esac 7693 done 7694 _ACEOF 7695 7696 cat >>$CONFIG_STATUS <<\_ACEOF 7697 7698 { (exit 0); exit 0; } 7699 _ACEOF 3070 7700 chmod +x $CONFIG_STATUS 3071 rm -fr confdefs* $ac_clean_files 3072 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 3073 7701 ac_clean_files=$ac_clean_files_save 7702 7703 7704 # configure is writing to config.log, and then calls config.status. 7705 # config.status does its own redirection, appending to config.log. 7706 # Unfortunately, on DOS this fails, as config.log is still kept open 7707 # by configure, so config.status won't be able to write to it; its 7708 # output is simply discarded. So we exec the FD to /dev/null, 7709 # effectively closing config.log, so it can be properly (re)opened and 7710 # appended to by config.status. When coming back to configure, we 7711 # need to make the FD available again. 7712 if test "$no_create" != yes; then 7713 ac_cs_success=: 7714 ac_config_status_args= 7715 test "$silent" = yes && 7716 ac_config_status_args="$ac_config_status_args --quiet" 7717 exec 5>/dev/null 7718 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 7719 exec 5>>config.log 7720 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 7721 # would make configure fail if this is the last instruction. 7722 $ac_cs_success || { (exit 1); exit 1; } 7723 fi 7724 -
trunk/gsdl/packages/mg/configure.in
r3762 r10852 75 75 if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then 76 76 AC_MSG_RESULT(yes) 77 LIBOBJS="$LIBOBJS gmalloc.o"77 AC_LIBOBJ(gmalloc) 78 78 AC_DEFINE(HAVE_VALLOC) 79 79 else … … 85 85 fp_WITH_REGEX 86 86 87 AC_C_BIGENDIAN 88 87 89 # --------------------------------------------------------------------------- 88 90 if test "$ac_cv_func_alloca" = 'no'; then 89 91 dnl support functions for alloca.c 90 LIBOBJS="$LIBOBJS xmalloc.o error.o" 92 AC_LIBOBJ(xmalloc) 93 AC_LIBOBJ(error) 91 94 fi 92 95
Note:
See TracChangeset
for help on using the changeset viewer.