- Timestamp:
- May 12, 2005, 4:23:20 PM (19 years ago)
- Branches:
- (u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'd08f5f0bb3329b8ca19f23b74cb1473686415c3a')
- Children:
- 3696d3a9d806261f711f9891ec0836cbbd14669a
- Parents:
- d6d3b9f3c9d5e213c1f49ad4143c6404b07a02f4
- Location:
- Singular
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/configure
rd6d3b9 r145917 1 1 #! /bin/sh 2 2 3 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.57. 4 # Generated automatically using autoconf version 2.13 5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 4 6 # 5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 20026 # Free Software Foundation, Inc.7 7 # This configure script is free software; the Free Software Foundation 8 8 # gives unlimited permission to copy, distribute and modify it. 9 ## --------------------- ## 10 ## M4sh Initialization. ## 11 ## --------------------- ## 12 13 # Be Bourne compatible 14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 15 emulate sh 16 NULLCMD=: 17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 18 # is contrary to our usage. Disable this feature. 19 alias -g '${1+"$@"}'='"$@"' 20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 21 set -o posix 22 fi 23 24 # Support unset when possible. 25 if (FOO=FOO; unset FOO) >/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 -n "`(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 as_mkdir_p=false 222 fi 223 224 as_executable_p="test -f" 225 226 # Sed expression to map a string onto a valid CPP name. 227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 228 229 # Sed expression to map a string onto a valid variable name. 230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 231 232 233 # IFS 234 # We need space, tab and new line, in precisely that order. 235 as_nl=' 236 ' 237 IFS=" $as_nl" 238 239 # CDPATH. 240 $as_unset CDPATH 241 242 243 # Name of the host. 244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 245 # so uname gets run too. 246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 247 248 exec 6>&1 249 250 # 251 # Initializations. 252 # 9 10 # Defaults: 11 ac_help= 253 12 ac_default_prefix=/usr/local 254 ac_config_libobj_dir=. 255 cross_compiling=no 256 subdirs= 257 MFLAGS= 258 MAKEFLAGS= 259 SHELL=${CONFIG_SHELL-/bin/sh} 260 261 # Maximum number of lines to put in a shell here document. 262 # This variable seems obsolete. It should probably be removed, and 263 # only ac_max_sed_lines should be used. 264 : ${ac_max_here_lines=38} 265 266 # Identity of this package. 267 PACKAGE_NAME= 268 PACKAGE_TARNAME= 269 PACKAGE_VERSION= 270 PACKAGE_STRING= 271 PACKAGE_BUGREPORT= 272 273 ac_unique_file="mmalloc.cc" 13 # Any additions from configure.in: 274 14 ac_default_prefix=`pwd`/.. 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 SINGUNAME EXEC_EXT SING_UNAME SINGULAR_VERSION VERSION_DATE SINGULAR_MAJOR_VERSION SINGULAR_MINOR_VERSION SINGULAR_SUB_VERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP CXX CXXFLAGS ac_ct_CXX INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA EGREP PIPE CXXTEMPLFLAGS CXXNOOPTFLAGS STATIC_LDFLAGS SET_MAKE SINGULAR LEX BISON LN_S PERL LD_DYN_FLAGS SFLAGS SLDFLAGS LD ALLOCA CXXCPP HAVE_MPSR MP_LIBS NEED_LIBS DL_KERNEL PLURAL LIBOBJS LTLIBOBJS' 313 ac_subst_files='' 15 ac_help="$ac_help 16 --with-rootdir=DIR use DIR ass compiled-in root directory 17 (default is PREFIX)" 18 ac_help="$ac_help 19 --with-lex=[LEX,no] uses LEX as lex program, default is flex" 20 ac_help="$ac_help 21 --with-readline=[dynamic,static,no] 22 do use dynamic/static/no readline for fancy display" 23 ac_help="$ac_help 24 --without-MP do not use MP (no MP links)" 25 ac_help="$ac_help 26 --without-dbm do not use dbm (no DBM links)" 27 ac_help="$ac_help 28 --without-factory do not use factory (no poly factorization)" 29 ac_help="$ac_help 30 --without-libfac do not use libfac (no primary decompositions)" 31 ac_help="$ac_help 32 --with-namespaces do compile namespace support" 33 ac_help="$ac_help 34 --without-dl do not use dynamic linking, modules, and kernel" 35 ac_help="$ac_help 36 --with-dynamic-modules do compile with dynamic modules support" 37 ac_help="$ac_help 38 --without-dynamic-kernel 39 do not compile with dynamic kernel parts" 40 ac_help="$ac_help 41 --with-apint=PACKAGE use PACKAGE for arbitary integer arithmetic" 42 ac_help="$ac_help 43 --with-Plural do compile with Plural support" 44 ac_help="$ac_help 45 --with-NTL build for use with NTL." 314 46 315 47 # Initialize some variables set by options. 316 ac_init_help=317 ac_init_version=false318 48 # The variables have the same names as the options, with 319 49 # dashes changed to underlines. 320 cache_file=/dev/null 50 build=NONE 51 cache_file=./config.cache 321 52 exec_prefix=NONE 53 host=NONE 322 54 no_create= 55 nonopt=NONE 323 56 no_recursion= 324 57 prefix=NONE … … 329 62 site= 330 63 srcdir= 64 target=NONE 331 65 verbose= 332 66 x_includes=NONE 333 67 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_prefix338 # by default will actually change.339 # Use braces instead of parens because sh, perl, etc. also accept them.340 68 bindir='${exec_prefix}/bin' 341 69 sbindir='${exec_prefix}/sbin' … … 351 79 mandir='${prefix}/man' 352 80 81 # Initialize some other variables. 82 subdirs= 83 MFLAGS= MAKEFLAGS= 84 SHELL=${CONFIG_SHELL-/bin/sh} 85 # Maximum number of lines to put in a shell here document. 86 ac_max_here_lines=12 87 353 88 ac_prev= 354 89 for ac_option 355 90 do 91 356 92 # If the previous option needs an argument, assign it. 357 93 if test -n "$ac_prev"; then … … 361 97 fi 362 98 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 99 case "$ac_option" in 100 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 101 *) ac_optarg= ;; 102 esac 364 103 365 104 # Accept the important Cygnus configure options, so we can diagnose typos. 366 105 367 case $ac_optionin106 case "$ac_option" in 368 107 369 108 -bindir | --bindir | --bindi | --bind | --bin | --bi) 370 109 ac_prev=bindir ;; 371 110 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 372 bindir= $ac_optarg;;111 bindir="$ac_optarg" ;; 373 112 374 113 -build | --build | --buil | --bui | --bu) 375 ac_prev=build _alias;;114 ac_prev=build ;; 376 115 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 377 build _alias=$ac_optarg;;116 build="$ac_optarg" ;; 378 117 379 118 -cache-file | --cache-file | --cache-fil | --cache-fi \ … … 382 121 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 383 122 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 384 cache_file=$ac_optarg ;; 385 386 --config-cache | -C) 387 cache_file=config.cache ;; 123 cache_file="$ac_optarg" ;; 388 124 389 125 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) … … 391 127 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 392 128 | --da=*) 393 datadir= $ac_optarg;;129 datadir="$ac_optarg" ;; 394 130 395 131 -disable-* | --disable-*) 396 ac_feature=`e xpr "x$ac_option" : 'x-*disable-\(.*\)'`132 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 397 133 # Reject names that are not valid shell variable names. 398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&399 { echo " $as_me: error: invalid feature name: $ac_feature" >&2400 { (exit 1); exit 1; }; }401 ac_feature=`echo $ac_feature 402 eval "enable_$ ac_feature=no" ;;134 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 135 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 136 fi 137 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 138 eval "enable_${ac_feature}=no" ;; 403 139 404 140 -enable-* | --enable-*) 405 ac_feature=`e xpr "x$ac_option" : 'x-*enable-\([^=]*\)'`141 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 406 142 # Reject names that are not valid shell variable names. 407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&408 { echo " $as_me: error: invalid feature name: $ac_feature" >&2409 { (exit 1); exit 1; }; }410 ac_feature=`echo $ac_feature 411 case $ac_optionin412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;143 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 144 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 145 fi 146 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 147 case "$ac_option" in 148 *=*) ;; 413 149 *) ac_optarg=yes ;; 414 150 esac 415 eval "enable_$ ac_feature='$ac_optarg'" ;;151 eval "enable_${ac_feature}='$ac_optarg'" ;; 416 152 417 153 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ … … 422 158 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 423 159 | --exec=* | --exe=* | --ex=*) 424 exec_prefix= $ac_optarg;;160 exec_prefix="$ac_optarg" ;; 425 161 426 162 -gas | --gas | --ga | --g) … … 428 164 with_gas=yes ;; 429 165 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 ;; 166 -help | --help | --hel | --he) 167 # Omit some internal or obsolete options to make the list less imposing. 168 # This message is too long to be a string in the A/UX 3.1 sh. 169 cat << EOF 170 Usage: configure [options] [host] 171 Options: [defaults in brackets after descriptions] 172 Configuration: 173 --cache-file=FILE cache test results in FILE 174 --help print this message 175 --no-create do not create output files 176 --quiet, --silent do not print \`checking...' messages 177 --version print the version of autoconf that created configure 178 Directory and file names: 179 --prefix=PREFIX install architecture-independent files in PREFIX 180 [$ac_default_prefix] 181 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 182 [same as prefix] 183 --bindir=DIR user executables in DIR [EPREFIX/bin] 184 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 185 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 186 --datadir=DIR read-only architecture-independent data in DIR 187 [PREFIX/share] 188 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 189 --sharedstatedir=DIR modifiable architecture-independent data in DIR 190 [PREFIX/com] 191 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 192 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 193 --includedir=DIR C header files in DIR [PREFIX/include] 194 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 195 --infodir=DIR info documentation in DIR [PREFIX/info] 196 --mandir=DIR man documentation in DIR [PREFIX/man] 197 --srcdir=DIR find the sources in DIR [configure dir or ..] 198 --program-prefix=PREFIX prepend PREFIX to installed program names 199 --program-suffix=SUFFIX append SUFFIX to installed program names 200 --program-transform-name=PROGRAM 201 run sed PROGRAM on installed program names 202 EOF 203 cat << EOF 204 Host type: 205 --build=BUILD configure for building on BUILD [BUILD=HOST] 206 --host=HOST configure for HOST [guessed] 207 --target=TARGET configure for TARGET [TARGET=HOST] 208 Features and packages: 209 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 210 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 211 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 212 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 213 --x-includes=DIR X include files are in DIR 214 --x-libraries=DIR X library files are in DIR 215 EOF 216 if test -n "$ac_help"; then 217 echo "--enable and --with options recognized:$ac_help" 218 fi 219 exit 0 ;; 436 220 437 221 -host | --host | --hos | --ho) 438 ac_prev=host _alias;;222 ac_prev=host ;; 439 223 -host=* | --host=* | --hos=* | --ho=*) 440 host _alias=$ac_optarg;;224 host="$ac_optarg" ;; 441 225 442 226 -includedir | --includedir | --includedi | --included | --include \ … … 445 229 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 446 230 | --includ=* | --inclu=* | --incl=* | --inc=*) 447 includedir= $ac_optarg;;231 includedir="$ac_optarg" ;; 448 232 449 233 -infodir | --infodir | --infodi | --infod | --info | --inf) 450 234 ac_prev=infodir ;; 451 235 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 452 infodir= $ac_optarg;;236 infodir="$ac_optarg" ;; 453 237 454 238 -libdir | --libdir | --libdi | --libd) 455 239 ac_prev=libdir ;; 456 240 -libdir=* | --libdir=* | --libdi=* | --libd=*) 457 libdir= $ac_optarg;;241 libdir="$ac_optarg" ;; 458 242 459 243 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ … … 462 246 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 463 247 | --libexe=* | --libex=* | --libe=*) 464 libexecdir= $ac_optarg;;248 libexecdir="$ac_optarg" ;; 465 249 466 250 -localstatedir | --localstatedir | --localstatedi | --localstated \ … … 471 255 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 472 256 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 473 localstatedir= $ac_optarg;;257 localstatedir="$ac_optarg" ;; 474 258 475 259 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 476 260 ac_prev=mandir ;; 477 261 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 478 mandir= $ac_optarg;;262 mandir="$ac_optarg" ;; 479 263 480 264 -nfp | --nfp | --nf) … … 483 267 484 268 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 485 | --no-cr | --no-c | -n)269 | --no-cr | --no-c) 486 270 no_create=yes ;; 487 271 … … 497 281 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 498 282 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 499 oldincludedir= $ac_optarg;;283 oldincludedir="$ac_optarg" ;; 500 284 501 285 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 502 286 ac_prev=prefix ;; 503 287 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 504 prefix= $ac_optarg;;288 prefix="$ac_optarg" ;; 505 289 506 290 -program-prefix | --program-prefix | --program-prefi | --program-pref \ … … 509 293 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 510 294 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 511 program_prefix= $ac_optarg;;295 program_prefix="$ac_optarg" ;; 512 296 513 297 -program-suffix | --program-suffix | --program-suffi | --program-suff \ … … 516 300 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 517 301 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 518 program_suffix= $ac_optarg;;302 program_suffix="$ac_optarg" ;; 519 303 520 304 -program-transform-name | --program-transform-name \ … … 533 317 | --program-trans=* | --program-tran=* \ 534 318 | --progr-tra=* | --program-tr=* | --program-t=*) 535 program_transform_name= $ac_optarg;;319 program_transform_name="$ac_optarg" ;; 536 320 537 321 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ … … 543 327 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 544 328 | --sbi=* | --sb=*) 545 sbindir= $ac_optarg;;329 sbindir="$ac_optarg" ;; 546 330 547 331 -sharedstatedir | --sharedstatedir | --sharedstatedi \ … … 554 338 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 555 339 | --sha=* | --sh=*) 556 sharedstatedir= $ac_optarg;;340 sharedstatedir="$ac_optarg" ;; 557 341 558 342 -site | --site | --sit) 559 343 ac_prev=site ;; 560 344 -site=* | --site=* | --sit=*) 561 site= $ac_optarg;;345 site="$ac_optarg" ;; 562 346 563 347 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 564 348 ac_prev=srcdir ;; 565 349 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 566 srcdir= $ac_optarg;;350 srcdir="$ac_optarg" ;; 567 351 568 352 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ … … 571 355 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 572 356 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 573 sysconfdir= $ac_optarg;;357 sysconfdir="$ac_optarg" ;; 574 358 575 359 -target | --target | --targe | --targ | --tar | --ta | --t) 576 ac_prev=target _alias;;360 ac_prev=target ;; 577 361 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 578 target _alias=$ac_optarg;;362 target="$ac_optarg" ;; 579 363 580 364 -v | -verbose | --verbose | --verbos | --verbo | --verb) 581 365 verbose=yes ;; 582 366 583 -version | --version | --versio | --versi | --vers | -V) 584 ac_init_version=: ;; 367 -version | --version | --versio | --versi | --vers) 368 echo "configure generated by autoconf version 2.13" 369 exit 0 ;; 585 370 586 371 -with-* | --with-*) 587 ac_package=`e xpr "x$ac_option" : 'x-*with-\([^=]*\)'`372 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 588 373 # Reject names that are not valid shell variable names. 589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&590 { echo " $as_me: error: invalid package name: $ac_package" >&2591 { (exit 1); exit 1; }; }374 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 375 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 376 fi 592 377 ac_package=`echo $ac_package| sed 's/-/_/g'` 593 case $ac_optionin594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;378 case "$ac_option" in 379 *=*) ;; 595 380 *) ac_optarg=yes ;; 596 381 esac 597 eval "with_$ ac_package='$ac_optarg'" ;;382 eval "with_${ac_package}='$ac_optarg'" ;; 598 383 599 384 -without-* | --without-*) 600 ac_package=`e xpr "x$ac_option" : 'x-*without-\(.*\)'`385 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 601 386 # Reject names that are not valid shell variable names. 602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&603 { echo " $as_me: error: invalid package name: $ac_package" >&2604 { (exit 1); exit 1; }; }605 ac_package=`echo $ac_package 606 eval "with_$ ac_package=no" ;;387 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 388 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 389 fi 390 ac_package=`echo $ac_package| sed 's/-/_/g'` 391 eval "with_${ac_package}=no" ;; 607 392 608 393 --x) … … 615 400 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 616 401 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 617 x_includes= $ac_optarg;;402 x_includes="$ac_optarg" ;; 618 403 619 404 -x-libraries | --x-libraries | --x-librarie | --x-librari \ … … 622 407 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 623 408 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 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; }; } 409 x_libraries="$ac_optarg" ;; 410 411 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 629 412 ;; 630 413 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" >&2636 { (exit 1); exit 1; }; }637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`638 eval "$ac_envvar='$ac_optarg'"639 export $ac_envvar ;;640 641 414 *) 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} 415 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 416 echo "configure: warning: $ac_option: invalid host type" 1>&2 417 fi 418 if test "x$nonopt" != xNONE; then 419 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 420 fi 421 nonopt="$ac_option" 647 422 ;; 648 423 … … 651 426 652 427 if test -n "$ac_prev"; then 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 428 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 429 fi 430 431 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 432 433 # File descriptor usage: 434 # 0 standard input 435 # 1 file creation 436 # 2 errors and warnings 437 # 3 some systems may open it to /dev/tty 438 # 4 used on the Kubota Titan 439 # 6 checking for... messages and results 440 # 5 compiler messages saved in config.log 441 if test "$silent" = yes; then 442 exec 6>/dev/null 443 else 444 exec 6>&1 445 fi 446 exec 5>./config.log 447 448 echo "\ 449 This file contains any messages produced by compilers while 450 running configure, to aid debugging if configure makes a mistake. 451 " 1>&5 452 453 # Strip out --no-create and --no-recursion so they do not pile up. 454 # Also quote any args containing shell metacharacters. 455 ac_configure_args= 456 for ac_arg 660 457 do 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; }; };; 458 case "$ac_arg" in 459 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 460 | --no-cr | --no-c) ;; 461 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 462 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 463 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 464 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 465 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 666 466 esac 667 467 done 668 468 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 469 # NLS nuisances. 470 # Only set these to C if already set. These must not be set unconditionally 471 # because not all systems understand e.g. LANG=C (notably SCO). 472 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 473 # Non-C LC_CTYPE values break the ctype check. 474 if test "${LANG+set}" = set; then LANG=C; export LANG; fi 475 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 476 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 477 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 478 479 # confdefs.h avoids OS command line length limits that DEFS can exceed. 480 rm -rf conftest* confdefs.h 481 # AIX cpp loses on an empty file, so make sure it contains at least a newline. 482 echo > confdefs.h 483 484 # A filename unique to this package, relative to the directory that 485 # configure is in, which we can look for to find out if srcdir is correct. 486 ac_unique_file=mmalloc.cc 704 487 705 488 # Find the source files, if location was not specified. … … 707 490 ac_srcdir_defaulted=yes 708 491 # Try the directory containing this script, then its parent. 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'` 492 ac_prog=$0 493 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 494 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 721 495 srcdir=$ac_confdir 722 496 if test ! -r $srcdir/$ac_unique_file; then … … 728 502 if test ! -r $srcdir/$ac_unique_file; then 729 503 if test "$ac_srcdir_defaulted" = yes; then 730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 731 { (exit 1); exit 1; }; } 504 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 732 505 else 733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 734 { (exit 1); exit 1; }; } 506 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 735 507 fi 736 508 fi 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_CC_set=${CC+set} 754 ac_env_CC_value=$CC 755 ac_cv_env_CC_set=${CC+set} 756 ac_cv_env_CC_value=$CC 757 ac_env_CFLAGS_set=${CFLAGS+set} 758 ac_env_CFLAGS_value=$CFLAGS 759 ac_cv_env_CFLAGS_set=${CFLAGS+set} 760 ac_cv_env_CFLAGS_value=$CFLAGS 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_CPP_set=${CPP+set} 770 ac_env_CPP_value=$CPP 771 ac_cv_env_CPP_set=${CPP+set} 772 ac_cv_env_CPP_value=$CPP 773 ac_env_CXX_set=${CXX+set} 774 ac_env_CXX_value=$CXX 775 ac_cv_env_CXX_set=${CXX+set} 776 ac_cv_env_CXX_value=$CXX 777 ac_env_CXXFLAGS_set=${CXXFLAGS+set} 778 ac_env_CXXFLAGS_value=$CXXFLAGS 779 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 780 ac_cv_env_CXXFLAGS_value=$CXXFLAGS 781 ac_env_CXXCPP_set=${CXXCPP+set} 782 ac_env_CXXCPP_value=$CXXCPP 783 ac_cv_env_CXXCPP_set=${CXXCPP+set} 784 ac_cv_env_CXXCPP_value=$CXXCPP 785 786 # 787 # Report the --help message. 788 # 789 if test "$ac_init_help" = "long"; then 790 # Omit some internal or obsolete options to make the list less imposing. 791 # This message is too long to be a string in the A/UX 3.1 sh. 792 cat <<_ACEOF 793 \`configure' configures this package to adapt to many kinds of systems. 794 795 Usage: $0 [OPTION]... [VAR=VALUE]... 796 797 To assign environment variables (e.g., CC, CFLAGS...), specify them as 798 VAR=VALUE. See below for descriptions of some of the useful variables. 799 800 Defaults for the options are specified in brackets. 801 802 Configuration: 803 -h, --help display this help and exit 804 --help=short display options specific to this package 805 --help=recursive display the short help of all the included packages 806 -V, --version display version information and exit 807 -q, --quiet, --silent do not print \`checking...' messages 808 --cache-file=FILE cache test results in FILE [disabled] 809 -C, --config-cache alias for \`--cache-file=config.cache' 810 -n, --no-create do not create output files 811 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 812 813 _ACEOF 814 815 cat <<_ACEOF 816 Installation directories: 817 --prefix=PREFIX install architecture-independent files in PREFIX 818 [$ac_default_prefix] 819 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 820 [PREFIX] 821 822 By default, \`make install' will install all the files in 823 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 824 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 825 for instance \`--prefix=\$HOME'. 826 827 For better control, use the options below. 828 829 Fine tuning of the installation directories: 830 --bindir=DIR user executables [EPREFIX/bin] 831 --sbindir=DIR system admin executables [EPREFIX/sbin] 832 --libexecdir=DIR program executables [EPREFIX/libexec] 833 --datadir=DIR read-only architecture-independent data [PREFIX/share] 834 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 835 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 836 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 837 --libdir=DIR object code libraries [EPREFIX/lib] 838 --includedir=DIR C header files [PREFIX/include] 839 --oldincludedir=DIR C header files for non-gcc [/usr/include] 840 --infodir=DIR info documentation [PREFIX/info] 841 --mandir=DIR man documentation [PREFIX/man] 842 _ACEOF 843 844 cat <<\_ACEOF 845 _ACEOF 846 fi 847 848 if test -n "$ac_init_help"; then 849 850 cat <<\_ACEOF 851 852 Optional Packages: 853 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 854 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 855 --with-rootdir=DIR use DIR ass compiled-in root directory 856 (default is PREFIX) 857 --with-lex=LEX,no uses LEX as lex program, default is flex 858 --with-readline=dynamic,static,no 859 do use dynamic/static/no readline for fancy display 860 --without-MP do not use MP (no MP links) 861 --without-dbm do not use dbm (no DBM links) 862 --without-factory do not use factory (no poly factorization) 863 --without-libfac do not use libfac (no primary decompositions) 864 --with-namespaces do compile namespace support 865 --without-dl do not use dynamic linking, modules, and kernel 866 --with-dynamic-modules do compile with dynamic modules support 867 --without-dynamic-kernel 868 do not compile with dynamic kernel parts 869 --with-apint=PACKAGE use PACKAGE for arbitary integer arithmetic 870 --with-Plural do compile with Plural support 871 --with-NTL build for use with NTL. 872 873 Some influential environment variables: 874 CC C compiler command 875 CFLAGS C compiler flags 876 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 877 nonstandard directory <lib dir> 878 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 879 headers in a nonstandard directory <include dir> 880 CPP C preprocessor 881 CXX C++ compiler command 882 CXXFLAGS C++ compiler flags 883 CXXCPP C++ preprocessor 884 885 Use these variables to override the choices made by `configure' or to help 886 it to find libraries and programs with nonstandard names/locations. 887 888 _ACEOF 889 fi 890 891 if test "$ac_init_help" = "recursive"; then 892 # If there are subdirs, report their specific --help. 893 ac_popdir=`pwd` 894 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 895 test -d $ac_dir || continue 896 ac_builddir=. 897 898 if test "$ac_dir" != .; then 899 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 900 # A "../" for each directory in $ac_dir_suffix. 901 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 902 else 903 ac_dir_suffix= ac_top_builddir= 904 fi 905 906 case $srcdir in 907 .) # No --srcdir option. We are building in place. 908 ac_srcdir=. 909 if test -z "$ac_top_builddir"; then 910 ac_top_srcdir=. 911 else 912 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 913 fi ;; 914 [\\/]* | ?:[\\/]* ) # Absolute path. 915 ac_srcdir=$srcdir$ac_dir_suffix; 916 ac_top_srcdir=$srcdir ;; 917 *) # Relative path. 918 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 919 ac_top_srcdir=$ac_top_builddir$srcdir ;; 920 esac 921 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 922 # absolute. 923 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 924 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 925 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 926 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 927 928 cd $ac_dir 929 # Check for guested configure; otherwise get Cygnus style configure. 930 if test -f $ac_srcdir/configure.gnu; then 931 echo 932 $SHELL $ac_srcdir/configure.gnu --help=recursive 933 elif test -f $ac_srcdir/configure; then 934 echo 935 $SHELL $ac_srcdir/configure --help=recursive 936 elif test -f $ac_srcdir/configure.ac || 937 test -f $ac_srcdir/configure.in; then 938 echo 939 $ac_configure --help 940 else 941 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 942 fi 943 cd $ac_popdir 944 done 945 fi 946 947 test -n "$ac_init_help" && exit 0 948 if $ac_init_version; then 949 cat <<\_ACEOF 950 951 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 952 Free Software Foundation, Inc. 953 This configure script is free software; the Free Software Foundation 954 gives unlimited permission to copy, distribute and modify it. 955 _ACEOF 956 exit 0 957 fi 958 exec 5>config.log 959 cat >&5 <<_ACEOF 960 This file contains any messages produced by compilers while 961 running configure, to aid debugging if configure makes a mistake. 962 963 It was created by $as_me, which was 964 generated by GNU Autoconf 2.57. Invocation command line was 965 966 $ $0 $@ 967 968 _ACEOF 969 { 970 cat <<_ASUNAME 971 ## --------- ## 972 ## Platform. ## 973 ## --------- ## 974 975 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 976 uname -m = `(uname -m) 2>/dev/null || echo unknown` 977 uname -r = `(uname -r) 2>/dev/null || echo unknown` 978 uname -s = `(uname -s) 2>/dev/null || echo unknown` 979 uname -v = `(uname -v) 2>/dev/null || echo unknown` 980 981 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 982 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 983 984 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 985 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 986 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 987 hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 988 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 989 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 990 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 991 992 _ASUNAME 993 994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 995 for as_dir in $PATH 996 do 997 IFS=$as_save_IFS 998 test -z "$as_dir" && as_dir=. 999 echo "PATH: $as_dir" 1000 done 1001 1002 } >&5 1003 1004 cat >&5 <<_ACEOF 1005 1006 1007 ## ----------- ## 1008 ## Core tests. ## 1009 ## ----------- ## 1010 1011 _ACEOF 1012 1013 1014 # Keep a trace of the command line. 1015 # Strip out --no-create and --no-recursion so they do not pile up. 1016 # Strip out --silent because we don't want to record it for future runs. 1017 # Also quote any args containing shell meta-characters. 1018 # Make two passes to allow for proper duplicate-argument suppression. 1019 ac_configure_args= 1020 ac_configure_args0= 1021 ac_configure_args1= 1022 ac_sep= 1023 ac_must_keep_next=false 1024 for ac_pass in 1 2 1025 do 1026 for ac_arg 1027 do 1028 case $ac_arg in 1029 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1030 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1031 | -silent | --silent | --silen | --sile | --sil) 1032 continue ;; 1033 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1034 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1035 esac 1036 case $ac_pass in 1037 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1038 2) 1039 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1040 if test $ac_must_keep_next = true; then 1041 ac_must_keep_next=false # Got value, back to normal. 1042 else 1043 case $ac_arg in 1044 *=* | --config-cache | -C | -disable-* | --disable-* \ 1045 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1046 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1047 | -with-* | --with-* | -without-* | --without-* | --x) 1048 case "$ac_configure_args0 " in 1049 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1050 esac 1051 ;; 1052 -* ) ac_must_keep_next=true ;; 1053 esac 1054 fi 1055 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1056 # Get rid of the leading space. 1057 ac_sep=" " 1058 ;; 1059 esac 1060 done 1061 done 1062 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1063 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1064 1065 # When interrupted or exit'd, cleanup temporary files, and complete 1066 # config.log. We remove comments because anyway the quotes in there 1067 # would cause problems or look ugly. 1068 # WARNING: Be sure not to use single quotes in there, as some shells, 1069 # such as our DU 5.0 friend, will then `close' the trap. 1070 trap 'exit_status=$? 1071 # Save into config.log some information that might help in debugging. 1072 { 1073 echo 1074 1075 cat <<\_ASBOX 1076 ## ---------------- ## 1077 ## Cache variables. ## 1078 ## ---------------- ## 1079 _ASBOX 1080 echo 1081 # The following way of writing the cache mishandles newlines in values, 1082 { 1083 (set) 2>&1 | 1084 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1085 *ac_space=\ *) 1086 sed -n \ 1087 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1088 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1089 ;; 1090 *) 1091 sed -n \ 1092 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1093 ;; 1094 esac; 1095 } 1096 echo 1097 1098 cat <<\_ASBOX 1099 ## ----------------- ## 1100 ## Output variables. ## 1101 ## ----------------- ## 1102 _ASBOX 1103 echo 1104 for ac_var in $ac_subst_vars 1105 do 1106 eval ac_val=$`echo $ac_var` 1107 echo "$ac_var='"'"'$ac_val'"'"'" 1108 done | sort 1109 echo 1110 1111 if test -n "$ac_subst_files"; then 1112 cat <<\_ASBOX 1113 ## ------------- ## 1114 ## Output files. ## 1115 ## ------------- ## 1116 _ASBOX 1117 echo 1118 for ac_var in $ac_subst_files 1119 do 1120 eval ac_val=$`echo $ac_var` 1121 echo "$ac_var='"'"'$ac_val'"'"'" 1122 done | sort 1123 echo 1124 fi 1125 1126 if test -s confdefs.h; then 1127 cat <<\_ASBOX 1128 ## ----------- ## 1129 ## confdefs.h. ## 1130 ## ----------- ## 1131 _ASBOX 1132 echo 1133 sed "/^$/d" confdefs.h | sort 1134 echo 1135 fi 1136 test "$ac_signal" != 0 && 1137 echo "$as_me: caught signal $ac_signal" 1138 echo "$as_me: exit $exit_status" 1139 } >&5 1140 rm -f core core.* *.core && 1141 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1142 exit $exit_status 1143 ' 0 1144 for ac_signal in 1 2 13 15; do 1145 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1146 done 1147 ac_signal=0 1148 1149 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1150 rm -rf conftest* confdefs.h 1151 # AIX cpp loses on an empty file, so make sure it contains at least a newline. 1152 echo >confdefs.h 1153 1154 # Predefined preprocessor variables. 1155 1156 cat >>confdefs.h <<_ACEOF 1157 #define PACKAGE_NAME "$PACKAGE_NAME" 1158 _ACEOF 1159 1160 1161 cat >>confdefs.h <<_ACEOF 1162 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1163 _ACEOF 1164 1165 1166 cat >>confdefs.h <<_ACEOF 1167 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1168 _ACEOF 1169 1170 1171 cat >>confdefs.h <<_ACEOF 1172 #define PACKAGE_STRING "$PACKAGE_STRING" 1173 _ACEOF 1174 1175 1176 cat >>confdefs.h <<_ACEOF 1177 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1178 _ACEOF 1179 1180 1181 # Let the site file select an alternate cache file if it wants to. 509 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 510 1182 511 # Prefer explicitly selected file to automatically selected ones. 1183 512 if test -z "$CONFIG_SITE"; then … … 1190 519 for ac_site_file in $CONFIG_SITE; do 1191 520 if test -r "$ac_site_file"; then 1192 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1193 echo "$as_me: loading site script $ac_site_file" >&6;} 1194 sed 's/^/| /' "$ac_site_file" >&5 521 echo "loading site script $ac_site_file" 1195 522 . "$ac_site_file" 1196 523 fi … … 1198 525 1199 526 if test -r "$cache_file"; then 1200 # Some versions of bash will fail to source /dev/null (special 1201 # files actually), so we avoid doing that. 1202 if test -f "$cache_file"; then 1203 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1204 echo "$as_me: loading cache $cache_file" >&6;} 1205 case $cache_file in 1206 [\\/]* | ?:[\\/]* ) . $cache_file;; 1207 *) . ./$cache_file;; 1208 esac 527 echo "loading cache $cache_file" 528 . $cache_file 529 else 530 echo "creating cache $cache_file" 531 > $cache_file 532 fi 533 534 ac_ext=c 535 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 536 ac_cpp='$CPP $CPPFLAGS' 537 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 538 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 539 cross_compiling=$ac_cv_prog_cc_cross 540 541 ac_exeext= 542 ac_objext=o 543 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 544 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 545 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 546 ac_n= ac_c=' 547 ' ac_t=' ' 548 else 549 ac_n=-n ac_c= ac_t= 1209 550 fi 1210 551 else 1211 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1212 echo "$as_me: creating cache $cache_file" >&6;} 1213 >$cache_file 1214 fi 1215 1216 # Check that the precious variables saved in the cache have kept the same 1217 # value. 1218 ac_cache_corrupted=false 1219 for ac_var in `(set) 2>&1 | 1220 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1221 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1222 eval ac_new_set=\$ac_env_${ac_var}_set 1223 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1224 eval ac_new_val="\$ac_env_${ac_var}_value" 1225 case $ac_old_set,$ac_new_set in 1226 set,) 1227 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1228 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1229 ac_cache_corrupted=: ;; 1230 ,set) 1231 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1232 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1233 ac_cache_corrupted=: ;; 1234 ,);; 1235 *) 1236 if test "x$ac_old_val" != "x$ac_new_val"; then 1237 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1238 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1239 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1240 echo "$as_me: former value: $ac_old_val" >&2;} 1241 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1242 echo "$as_me: current value: $ac_new_val" >&2;} 1243 ac_cache_corrupted=: 1244 fi;; 1245 esac 1246 # Pass precious variables to config.status. 1247 if test "$ac_new_set" = set; then 1248 case $ac_new_val in 1249 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1250 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1251 *) ac_arg=$ac_var=$ac_new_val ;; 1252 esac 1253 case " $ac_configure_args " in 1254 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1255 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1256 esac 1257 fi 1258 done 1259 if $ac_cache_corrupted; then 1260 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1261 echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1262 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1263 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1264 { (exit 1); exit 1; }; } 1265 fi 1266 1267 ac_ext=c 1268 ac_cpp='$CPP $CPPFLAGS' 1269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1271 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 ac_config_headers="$ac_config_headers mod2.h" 1292 1293 ac_config_headers="$ac_config_headers ../kernel/mod2.h" 1294 1295 1296 1297 echo "$as_me:$LINENO: checking uname for singular" >&5 1298 echo $ECHO_N "checking uname for singular... $ECHO_C" >&6 1299 if test "${ac_cv_singuname+set}" = set; then 1300 echo $ECHO_N "(cached) $ECHO_C" >&6 552 ac_n= ac_c='\c' ac_t= 553 fi 554 555 556 557 558 559 560 echo $ac_n "checking uname for singular""... $ac_c" 1>&6 561 echo "configure:562: checking uname for singular" >&5 562 if eval "test \"`echo '$''{'ac_cv_singuname'+set}'`\" = set"; then 563 echo $ac_n "(cached) $ac_c" 1>&6 1301 564 else 1302 565 ac_cv_singuname="unknown" … … 1314 577 fi 1315 578 1316 echo "$as_me:$LINENO: result: $ac_cv_singuname" >&5 1317 echo "${ECHO_T}$ac_cv_singuname" >&6 579 echo "$ac_t""$ac_cv_singuname" 1>&6 1318 580 if test "$ac_cv_singuname" = unknown; then 1319 { echo "$as_me:$LINENO: WARNING: Unknown architecture: Check singuname.sh" >&5 1320 echo "$as_me: WARNING: Unknown architecture: Check singuname.sh" >&2;} 581 echo "configure: warning: Unknown architecture: Check singuname.sh" 1>&2 1321 582 ac_cv_singuname="unknown" 1322 583 fi 1323 cat >> confdefs.h <<_ACEOF584 cat >> confdefs.h <<EOF 1324 585 #define S_UNAME "$ac_cv_singuname" 1325 _ACEOF586 EOF 1326 587 1327 588 SINGUNAME=$ac_cv_singuname … … 1351 612 1352 613 1353 cat >> confdefs.h <<_ACEOF614 cat >> confdefs.h <<EOF 1354 615 #define SINGULAR_MAJOR_VERSION ${SINGULAR_MAJOR_VERSION} 1355 _ACEOF1356 1357 cat >> confdefs.h <<_ACEOF616 EOF 617 618 cat >> confdefs.h <<EOF 1358 619 #define SINGULAR_MINOR_VERSION ${SINGULAR_MINOR_VERSION} 1359 _ACEOF1360 1361 cat >> confdefs.h <<_ACEOF620 EOF 621 622 cat >> confdefs.h <<EOF 1362 623 #define SINGULAR_SUB_VERSION ${SINGULAR_SUB_VERSION} 1363 _ACEOF1364 1365 cat >> confdefs.h <<_ACEOF624 EOF 625 626 cat >> confdefs.h <<EOF 1366 627 #define S_VERSION1 "${SINGULAR_MAJOR_VERSION}${VERSION_SEP}${SINGULAR_MINOR_VERSION}${VERSION_SEP}${SINGULAR_SUB_VERSION}" 1367 _ACEOF1368 1369 cat >> confdefs.h <<_ACEOF628 EOF 629 630 cat >> confdefs.h <<EOF 1370 631 #define S_VERSION2 "${VERSION_DATE}" 1371 _ACEOF1372 1373 cat >> confdefs.h <<_ACEOF632 EOF 633 634 cat >> confdefs.h <<EOF 1374 635 #define SINGULAR_SUB_VERSION ${SINGULAR_SUB_VERSION} 1375 _ACEOF636 EOF 1376 637 1377 638 … … 1392 653 ac_cxx_set=yes 1393 654 fi 1394 ac_ext=c 1395 ac_cpp='$CPP $CPPFLAGS' 1396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1398 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1399 if test -n "$ac_tool_prefix"; then 1400 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1401 set dummy ${ac_tool_prefix}gcc; ac_word=$2 1402 echo "$as_me:$LINENO: checking for $ac_word" >&5 1403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1404 if test "${ac_cv_prog_CC+set}" = set; then 1405 echo $ECHO_N "(cached) $ECHO_C" >&6 655 # Extract the first word of "gcc", so it can be a program name with args. 656 set dummy gcc; ac_word=$2 657 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 658 echo "configure:659: checking for $ac_word" >&5 659 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 660 echo $ac_n "(cached) $ac_c" 1>&6 1406 661 else 1407 662 if test -n "$CC"; then 1408 663 ac_cv_prog_CC="$CC" # Let the user override the test. 1409 664 else 1410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1411 for as_dir in $PATH 1412 do 1413 IFS=$as_save_IFS 1414 test -z "$as_dir" && as_dir=. 1415 for ac_exec_ext in '' $ac_executable_extensions; do 1416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1417 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1419 break 2 1420 fi 1421 done 1422 done 1423 1424 fi 1425 fi 1426 CC=$ac_cv_prog_CC 665 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 666 ac_dummy="$PATH" 667 for ac_dir in $ac_dummy; do 668 test -z "$ac_dir" && ac_dir=. 669 if test -f $ac_dir/$ac_word; then 670 ac_cv_prog_CC="gcc" 671 break 672 fi 673 done 674 IFS="$ac_save_ifs" 675 fi 676 fi 677 CC="$ac_cv_prog_CC" 1427 678 if test -n "$CC"; then 1428 echo "$as_me:$LINENO: result: $CC" >&5 1429 echo "${ECHO_T}$CC" >&6 1430 else 1431 echo "$as_me:$LINENO: result: no" >&5 1432 echo "${ECHO_T}no" >&6 1433 fi 1434 1435 fi 1436 if test -z "$ac_cv_prog_CC"; then 1437 ac_ct_CC=$CC 1438 # Extract the first word of "gcc", so it can be a program name with args. 1439 set dummy gcc; ac_word=$2 1440 echo "$as_me:$LINENO: checking for $ac_word" >&5 1441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1442 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1443 echo $ECHO_N "(cached) $ECHO_C" >&6 1444 else 1445 if test -n "$ac_ct_CC"; then 1446 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1447 else 1448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1449 for as_dir in $PATH 1450 do 1451 IFS=$as_save_IFS 1452 test -z "$as_dir" && as_dir=. 1453 for ac_exec_ext in '' $ac_executable_extensions; do 1454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1455 ac_cv_prog_ac_ct_CC="gcc" 1456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1457 break 2 1458 fi 1459 done 1460 done 1461 1462 fi 1463 fi 1464 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1465 if test -n "$ac_ct_CC"; then 1466 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1467 echo "${ECHO_T}$ac_ct_CC" >&6 1468 else 1469 echo "$as_me:$LINENO: result: no" >&5 1470 echo "${ECHO_T}no" >&6 1471 fi 1472 1473 CC=$ac_ct_CC 1474 else 1475 CC="$ac_cv_prog_CC" 1476 fi 1477 1478 if test -z "$CC"; then 1479 if test -n "$ac_tool_prefix"; then 1480 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1481 set dummy ${ac_tool_prefix}cc; ac_word=$2 1482 echo "$as_me:$LINENO: checking for $ac_word" >&5 1483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1484 if test "${ac_cv_prog_CC+set}" = set; then 1485 echo $ECHO_N "(cached) $ECHO_C" >&6 1486 else 1487 if test -n "$CC"; then 1488 ac_cv_prog_CC="$CC" # Let the user override the test. 1489 else 1490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1491 for as_dir in $PATH 1492 do 1493 IFS=$as_save_IFS 1494 test -z "$as_dir" && as_dir=. 1495 for ac_exec_ext in '' $ac_executable_extensions; do 1496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1497 ac_cv_prog_CC="${ac_tool_prefix}cc" 1498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1499 break 2 1500 fi 1501 done 1502 done 1503 1504 fi 1505 fi 1506 CC=$ac_cv_prog_CC 1507 if test -n "$CC"; then 1508 echo "$as_me:$LINENO: result: $CC" >&5 1509 echo "${ECHO_T}$CC" >&6 1510 else 1511 echo "$as_me:$LINENO: result: no" >&5 1512 echo "${ECHO_T}no" >&6 1513 fi 1514 1515 fi 1516 if test -z "$ac_cv_prog_CC"; then 1517 ac_ct_CC=$CC 1518 # Extract the first word of "cc", so it can be a program name with args. 1519 set dummy cc; ac_word=$2 1520 echo "$as_me:$LINENO: checking for $ac_word" >&5 1521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1522 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1523 echo $ECHO_N "(cached) $ECHO_C" >&6 1524 else 1525 if test -n "$ac_ct_CC"; then 1526 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1527 else 1528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1529 for as_dir in $PATH 1530 do 1531 IFS=$as_save_IFS 1532 test -z "$as_dir" && as_dir=. 1533 for ac_exec_ext in '' $ac_executable_extensions; do 1534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1535 ac_cv_prog_ac_ct_CC="cc" 1536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1537 break 2 1538 fi 1539 done 1540 done 1541 1542 fi 1543 fi 1544 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1545 if test -n "$ac_ct_CC"; then 1546 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1547 echo "${ECHO_T}$ac_ct_CC" >&6 1548 else 1549 echo "$as_me:$LINENO: result: no" >&5 1550 echo "${ECHO_T}no" >&6 1551 fi 1552 1553 CC=$ac_ct_CC 1554 else 1555 CC="$ac_cv_prog_CC" 1556 fi 1557 1558 fi 679 echo "$ac_t""$CC" 1>&6 680 else 681 echo "$ac_t""no" 1>&6 682 fi 683 1559 684 if test -z "$CC"; then 1560 685 # Extract the first word of "cc", so it can be a program name with args. 1561 686 set dummy cc; ac_word=$2 1562 echo "$as_me:$LINENO: checking for $ac_word" >&51563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&61564 if test "${ac_cv_prog_CC+set}" = set; then1565 echo $ ECHO_N "(cached) $ECHO_C">&6687 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 688 echo "configure:689: checking for $ac_word" >&5 689 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 690 echo $ac_n "(cached) $ac_c" 1>&6 1566 691 else 1567 692 if test -n "$CC"; then 1568 693 ac_cv_prog_CC="$CC" # Let the user override the test. 1569 694 else 695 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1570 696 ac_prog_rejected=no 1571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1572 for as_dir in $PATH 1573 do 1574 IFS=$as_save_IFS 1575 test -z "$as_dir" && as_dir=. 1576 for ac_exec_ext in '' $ac_executable_extensions; do 1577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1578 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1579 ac_prog_rejected=yes 1580 continue 1581 fi 1582 ac_cv_prog_CC="cc" 1583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1584 break 2 1585 fi 1586 done 1587 done 1588 697 ac_dummy="$PATH" 698 for ac_dir in $ac_dummy; do 699 test -z "$ac_dir" && ac_dir=. 700 if test -f $ac_dir/$ac_word; then 701 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 702 ac_prog_rejected=yes 703 continue 704 fi 705 ac_cv_prog_CC="cc" 706 break 707 fi 708 done 709 IFS="$ac_save_ifs" 1589 710 if test $ac_prog_rejected = yes; then 1590 711 # We found a bogon in the path, so make sure we never use it. 1591 712 set dummy $ac_cv_prog_CC 1592 713 shift 1593 if test $# !=0; then714 if test $# -gt 0; then 1594 715 # We chose a different compiler from the bogus one. 1595 716 # However, it has the same basename, so the bogon will be chosen 1596 717 # first if we set CC to just the basename; use the full file name. 1597 718 shift 1598 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 719 set dummy "$ac_dir/$ac_word" "$@" 720 shift 721 ac_cv_prog_CC="$@" 1599 722 fi 1600 723 fi 1601 724 fi 1602 725 fi 1603 CC= $ac_cv_prog_CC726 CC="$ac_cv_prog_CC" 1604 727 if test -n "$CC"; then 1605 echo "$as_me:$LINENO: result: $CC" >&5 1606 echo "${ECHO_T}$CC" >&6 1607 else 1608 echo "$as_me:$LINENO: result: no" >&5 1609 echo "${ECHO_T}no" >&6 1610 fi 1611 1612 fi 1613 if test -z "$CC"; then 1614 if test -n "$ac_tool_prefix"; then 1615 for ac_prog in cl 1616 do 1617 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1618 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1619 echo "$as_me:$LINENO: checking for $ac_word" >&5 1620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1621 if test "${ac_cv_prog_CC+set}" = set; then 1622 echo $ECHO_N "(cached) $ECHO_C" >&6 728 echo "$ac_t""$CC" 1>&6 729 else 730 echo "$ac_t""no" 1>&6 731 fi 732 733 if test -z "$CC"; then 734 case "`uname -s`" in 735 *win32* | *WIN32*) 736 # Extract the first word of "cl", so it can be a program name with args. 737 set dummy cl; ac_word=$2 738 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 739 echo "configure:740: checking for $ac_word" >&5 740 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 741 echo $ac_n "(cached) $ac_c" 1>&6 1623 742 else 1624 743 if test -n "$CC"; then 1625 744 ac_cv_prog_CC="$CC" # Let the user override the test. 1626 745 else 1627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1628 for as_dir in $PATH 1629 do 1630 IFS=$as_save_IFS 1631 test -z "$as_dir" && as_dir=. 1632 for ac_exec_ext in '' $ac_executable_extensions; do 1633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1634 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1636 break 2 746 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 747 ac_dummy="$PATH" 748 for ac_dir in $ac_dummy; do 749 test -z "$ac_dir" && ac_dir=. 750 if test -f $ac_dir/$ac_word; then 751 ac_cv_prog_CC="cl" 752 break 753 fi 754 done 755 IFS="$ac_save_ifs" 756 fi 757 fi 758 CC="$ac_cv_prog_CC" 759 if test -n "$CC"; then 760 echo "$ac_t""$CC" 1>&6 761 else 762 echo "$ac_t""no" 1>&6 763 fi 764 ;; 765 esac 1637 766 fi 1638 done 1639 done 1640 1641 fi 1642 fi 1643 CC=$ac_cv_prog_CC 1644 if test -n "$CC"; then 1645 echo "$as_me:$LINENO: result: $CC" >&5 1646 echo "${ECHO_T}$CC" >&6 1647 else 1648 echo "$as_me:$LINENO: result: no" >&5 1649 echo "${ECHO_T}no" >&6 1650 fi 1651 1652 test -n "$CC" && break 1653 done 1654 fi 1655 if test -z "$CC"; then 1656 ac_ct_CC=$CC 1657 for ac_prog in cl 1658 do 1659 # Extract the first word of "$ac_prog", so it can be a program name with args. 1660 set dummy $ac_prog; ac_word=$2 1661 echo "$as_me:$LINENO: checking for $ac_word" >&5 1662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1663 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1664 echo $ECHO_N "(cached) $ECHO_C" >&6 1665 else 1666 if test -n "$ac_ct_CC"; then 1667 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1668 else 1669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1670 for as_dir in $PATH 1671 do 1672 IFS=$as_save_IFS 1673 test -z "$as_dir" && as_dir=. 1674 for ac_exec_ext in '' $ac_executable_extensions; do 1675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1676 ac_cv_prog_ac_ct_CC="$ac_prog" 1677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1678 break 2 767 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 768 fi 769 770 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 771 echo "configure:772: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 772 773 ac_ext=c 774 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 775 ac_cpp='$CPP $CPPFLAGS' 776 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 777 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 778 cross_compiling=$ac_cv_prog_cc_cross 779 780 cat > conftest.$ac_ext << EOF 781 782 #line 783 "configure" 783 #include "confdefs.h" 784 785 main(){return(0);} 786 EOF 787 if { (eval echo configure:788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 788 ac_cv_prog_cc_works=yes 789 # If we can't run a trivial program, we are probably using a cross compiler. 790 if (./conftest; exit) 2>/dev/null; then 791 ac_cv_prog_cc_cross=no 792 else 793 ac_cv_prog_cc_cross=yes 1679 794 fi 1680 done 1681 done 1682 1683 fi 1684 fi 1685 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1686 if test -n "$ac_ct_CC"; then 1687 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1688 echo "${ECHO_T}$ac_ct_CC" >&6 1689 else 1690 echo "$as_me:$LINENO: result: no" >&5 1691 echo "${ECHO_T}no" >&6 1692 fi 1693 1694 test -n "$ac_ct_CC" && break 1695 done 1696 1697 CC=$ac_ct_CC 1698 fi 1699 1700 fi 1701 1702 1703 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1704 See \`config.log' for more details." >&5 1705 echo "$as_me: error: no acceptable C compiler found in \$PATH 1706 See \`config.log' for more details." >&2;} 1707 { (exit 1); exit 1; }; } 1708 1709 # Provide some information about the compiler. 1710 echo "$as_me:$LINENO:" \ 1711 "checking for C compiler version" >&5 1712 ac_compiler=`set X $ac_compile; echo $2` 1713 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1714 (eval $ac_compiler --version </dev/null >&5) 2>&5 1715 ac_status=$? 1716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1717 (exit $ac_status); } 1718 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1719 (eval $ac_compiler -v </dev/null >&5) 2>&5 1720 ac_status=$? 1721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1722 (exit $ac_status); } 1723 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1724 (eval $ac_compiler -V </dev/null >&5) 2>&5 1725 ac_status=$? 1726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1727 (exit $ac_status); } 1728 1729 cat >conftest.$ac_ext <<_ACEOF 1730 #line $LINENO "configure" 1731 /* confdefs.h. */ 1732 _ACEOF 1733 cat confdefs.h >>conftest.$ac_ext 1734 cat >>conftest.$ac_ext <<_ACEOF 1735 /* end confdefs.h. */ 1736 1737 int 1738 main () 1739 { 1740 1741 ; 1742 return 0; 1743 } 1744 _ACEOF 1745 ac_clean_files_save=$ac_clean_files 1746 ac_clean_files="$ac_clean_files a.out a.exe b.out" 1747 # Try to create an executable without -o first, disregard a.out. 1748 # It will help us diagnose broken compilers, and finding out an intuition 1749 # of exeext. 1750 echo "$as_me:$LINENO: checking for C compiler default output" >&5 1751 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 1752 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1753 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1754 (eval $ac_link_default) 2>&5 1755 ac_status=$? 1756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1757 (exit $ac_status); }; then 1758 # Find the output, starting from the most likely. This scheme is 1759 # not robust to junk in `.', hence go to wildcards (a.*) only as a last 1760 # resort. 1761 1762 # Be careful to initialize this variable, since it used to be cached. 1763 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1764 ac_cv_exeext= 1765 # b.out is created by i960 compilers. 1766 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1767 do 1768 test -f "$ac_file" || continue 1769 case $ac_file in 1770 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1771 ;; 1772 conftest.$ac_ext ) 1773 # This is the source file. 1774 ;; 1775 [ab].out ) 1776 # We found the default executable, but exeext='' is most 1777 # certainly right. 1778 break;; 1779 *.* ) 1780 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1781 # FIXME: I believe we export ac_cv_exeext for Libtool, 1782 # but it would be cool to find out if it's true. Does anybody 1783 # maintain Libtool? --akim. 1784 export ac_cv_exeext 1785 break;; 1786 * ) 1787 break;; 1788 esac 1789 done 1790 else 1791 echo "$as_me: failed program was:" >&5 1792 sed 's/^/| /' conftest.$ac_ext >&5 1793 1794 { { echo "$as_me:$LINENO: error: C compiler cannot create executables 1795 See \`config.log' for more details." >&5 1796 echo "$as_me: error: C compiler cannot create executables 1797 See \`config.log' for more details." >&2;} 1798 { (exit 77); exit 77; }; } 1799 fi 1800 1801 ac_exeext=$ac_cv_exeext 1802 echo "$as_me:$LINENO: result: $ac_file" >&5 1803 echo "${ECHO_T}$ac_file" >&6 1804 1805 # Check the compiler produces executables we can run. If not, either 1806 # the compiler is broken, or we cross compile. 1807 echo "$as_me:$LINENO: checking whether the C compiler works" >&5 1808 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1809 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1810 # If not cross compiling, check that we can run a simple program. 1811 if test "$cross_compiling" != yes; then 1812 if { ac_try='./$ac_file' 1813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1814 (eval $ac_try) 2>&5 1815 ac_status=$? 1816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1817 (exit $ac_status); }; }; then 1818 cross_compiling=no 1819 else 1820 if test "$cross_compiling" = maybe; then 1821 cross_compiling=yes 1822 else 1823 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 1824 If you meant to cross compile, use \`--host'. 1825 See \`config.log' for more details." >&5 1826 echo "$as_me: error: cannot run C compiled programs. 1827 If you meant to cross compile, use \`--host'. 1828 See \`config.log' for more details." >&2;} 1829 { (exit 1); exit 1; }; } 1830 fi 1831 fi 1832 fi 1833 echo "$as_me:$LINENO: result: yes" >&5 1834 echo "${ECHO_T}yes" >&6 1835 1836 rm -f a.out a.exe conftest$ac_cv_exeext b.out 1837 ac_clean_files=$ac_clean_files_save 1838 # Check the compiler produces executables we can run. If not, either 1839 # the compiler is broken, or we cross compile. 1840 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1841 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1842 echo "$as_me:$LINENO: result: $cross_compiling" >&5 1843 echo "${ECHO_T}$cross_compiling" >&6 1844 1845 echo "$as_me:$LINENO: checking for suffix of executables" >&5 1846 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1848 (eval $ac_link) 2>&5 1849 ac_status=$? 1850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1851 (exit $ac_status); }; then 1852 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1853 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1854 # work properly (i.e., refer to `conftest.exe'), while it won't with 1855 # `rm'. 1856 for ac_file in conftest.exe conftest conftest.*; do 1857 test -f "$ac_file" || continue 1858 case $ac_file in 1859 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1860 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1861 export ac_cv_exeext 1862 break;; 1863 * ) break;; 1864 esac 1865 done 1866 else 1867 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1868 See \`config.log' for more details." >&5 1869 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 1870 See \`config.log' for more details." >&2;} 1871 { (exit 1); exit 1; }; } 1872 fi 1873 1874 rm -f conftest$ac_cv_exeext 1875 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1876 echo "${ECHO_T}$ac_cv_exeext" >&6 1877 1878 rm -f conftest.$ac_ext 1879 EXEEXT=$ac_cv_exeext 1880 ac_exeext=$EXEEXT 1881 echo "$as_me:$LINENO: checking for suffix of object files" >&5 1882 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1883 if test "${ac_cv_objext+set}" = set; then 1884 echo $ECHO_N "(cached) $ECHO_C" >&6 1885 else 1886 cat >conftest.$ac_ext <<_ACEOF 1887 #line $LINENO "configure" 1888 /* confdefs.h. */ 1889 _ACEOF 1890 cat confdefs.h >>conftest.$ac_ext 1891 cat >>conftest.$ac_ext <<_ACEOF 1892 /* end confdefs.h. */ 1893 1894 int 1895 main () 1896 { 1897 1898 ; 1899 return 0; 1900 } 1901 _ACEOF 1902 rm -f conftest.o conftest.obj 1903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1904 (eval $ac_compile) 2>&5 1905 ac_status=$? 1906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1907 (exit $ac_status); }; then 1908 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1909 case $ac_file in 1910 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 1911 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1912 break;; 1913 esac 1914 done 1915 else 1916 echo "$as_me: failed program was:" >&5 1917 sed 's/^/| /' conftest.$ac_ext >&5 1918 1919 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 1920 See \`config.log' for more details." >&5 1921 echo "$as_me: error: cannot compute suffix of object files: cannot compile 1922 See \`config.log' for more details." >&2;} 1923 { (exit 1); exit 1; }; } 1924 fi 1925 1926 rm -f conftest.$ac_cv_objext conftest.$ac_ext 1927 fi 1928 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 1929 echo "${ECHO_T}$ac_cv_objext" >&6 1930 OBJEXT=$ac_cv_objext 1931 ac_objext=$OBJEXT 1932 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 1933 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1934 if test "${ac_cv_c_compiler_gnu+set}" = set; then 1935 echo $ECHO_N "(cached) $ECHO_C" >&6 1936 else 1937 cat >conftest.$ac_ext <<_ACEOF 1938 #line $LINENO "configure" 1939 /* confdefs.h. */ 1940 _ACEOF 1941 cat confdefs.h >>conftest.$ac_ext 1942 cat >>conftest.$ac_ext <<_ACEOF 1943 /* end confdefs.h. */ 1944 1945 int 1946 main () 1947 { 1948 #ifndef __GNUC__ 1949 choke me 795 else 796 echo "configure: failed program was:" >&5 797 cat conftest.$ac_ext >&5 798 ac_cv_prog_cc_works=no 799 fi 800 rm -fr conftest* 801 ac_ext=c 802 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 803 ac_cpp='$CPP $CPPFLAGS' 804 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 805 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 806 cross_compiling=$ac_cv_prog_cc_cross 807 808 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 809 if test $ac_cv_prog_cc_works = no; then 810 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 811 fi 812 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 813 echo "configure:814: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 814 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 815 cross_compiling=$ac_cv_prog_cc_cross 816 817 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 818 echo "configure:819: checking whether we are using GNU C" >&5 819 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 820 echo $ac_n "(cached) $ac_c" 1>&6 821 else 822 cat > conftest.c <<EOF 823 #ifdef __GNUC__ 824 yes; 1950 825 #endif 1951 1952 ; 1953 return 0; 1954 } 1955 _ACEOF 1956 rm -f conftest.$ac_objext 1957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1958 (eval $ac_compile) 2>&5 1959 ac_status=$? 1960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1961 (exit $ac_status); } && 1962 { ac_try='test -s conftest.$ac_objext' 1963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1964 (eval $ac_try) 2>&5 1965 ac_status=$? 1966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1967 (exit $ac_status); }; }; then 1968 ac_compiler_gnu=yes 1969 else 1970 echo "$as_me: failed program was:" >&5 1971 sed 's/^/| /' conftest.$ac_ext >&5 1972 1973 ac_compiler_gnu=no 1974 fi 1975 rm -f conftest.$ac_objext conftest.$ac_ext 1976 ac_cv_c_compiler_gnu=$ac_compiler_gnu 1977 1978 fi 1979 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 1980 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1981 GCC=`test $ac_compiler_gnu = yes && echo yes` 1982 ac_test_CFLAGS=${CFLAGS+set} 1983 ac_save_CFLAGS=$CFLAGS 1984 CFLAGS="-g" 1985 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 1986 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1987 if test "${ac_cv_prog_cc_g+set}" = set; then 1988 echo $ECHO_N "(cached) $ECHO_C" >&6 1989 else 1990 cat >conftest.$ac_ext <<_ACEOF 1991 #line $LINENO "configure" 1992 /* confdefs.h. */ 1993 _ACEOF 1994 cat confdefs.h >>conftest.$ac_ext 1995 cat >>conftest.$ac_ext <<_ACEOF 1996 /* end confdefs.h. */ 1997 1998 int 1999 main () 2000 { 2001 2002 ; 2003 return 0; 2004 } 2005 _ACEOF 2006 rm -f conftest.$ac_objext 2007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2008 (eval $ac_compile) 2>&5 2009 ac_status=$? 2010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2011 (exit $ac_status); } && 2012 { ac_try='test -s conftest.$ac_objext' 2013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2014 (eval $ac_try) 2>&5 2015 ac_status=$? 2016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2017 (exit $ac_status); }; }; then 826 EOF 827 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 828 ac_cv_prog_gcc=yes 829 else 830 ac_cv_prog_gcc=no 831 fi 832 fi 833 834 echo "$ac_t""$ac_cv_prog_gcc" 1>&6 835 836 if test $ac_cv_prog_gcc = yes; then 837 GCC=yes 838 else 839 GCC= 840 fi 841 842 ac_test_CFLAGS="${CFLAGS+set}" 843 ac_save_CFLAGS="$CFLAGS" 844 CFLAGS= 845 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 846 echo "configure:847: checking whether ${CC-cc} accepts -g" >&5 847 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 848 echo $ac_n "(cached) $ac_c" 1>&6 849 else 850 echo 'void f(){}' > conftest.c 851 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 2018 852 ac_cv_prog_cc_g=yes 2019 853 else 2020 echo "$as_me: failed program was:" >&5 2021 sed 's/^/| /' conftest.$ac_ext >&5 2022 2023 ac_cv_prog_cc_g=no 2024 fi 2025 rm -f conftest.$ac_objext conftest.$ac_ext 2026 fi 2027 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2028 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 854 ac_cv_prog_cc_g=no 855 fi 856 rm -f conftest* 857 858 fi 859 860 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 2029 861 if test "$ac_test_CFLAGS" = set; then 2030 CFLAGS= $ac_save_CFLAGS862 CFLAGS="$ac_save_CFLAGS" 2031 863 elif test $ac_cv_prog_cc_g = yes; then 2032 864 if test "$GCC" = yes; then … … 2042 874 fi 2043 875 fi 2044 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2045 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2046 if test "${ac_cv_prog_cc_stdc+set}" = set; then 2047 echo $ECHO_N "(cached) $ECHO_C" >&6 2048 else 2049 ac_cv_prog_cc_stdc=no 2050 ac_save_CC=$CC 2051 cat >conftest.$ac_ext <<_ACEOF 2052 #line $LINENO "configure" 2053 /* confdefs.h. */ 2054 _ACEOF 2055 cat confdefs.h >>conftest.$ac_ext 2056 cat >>conftest.$ac_ext <<_ACEOF 2057 /* end confdefs.h. */ 2058 #include <stdarg.h> 2059 #include <stdio.h> 2060 #include <sys/types.h> 2061 #include <sys/stat.h> 2062 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2063 struct buf { int x; }; 2064 FILE * (*rcsopen) (struct buf *, struct stat *, int); 2065 static char *e (p, i) 2066 char **p; 2067 int i; 2068 { 2069 return p[i]; 2070 } 2071 static char *f (char * (*g) (char **, int), char **p, ...) 2072 { 2073 char *s; 2074 va_list v; 2075 va_start (v,p); 2076 s = g (p, va_arg (v,int)); 2077 va_end (v); 2078 return s; 2079 } 2080 int test (int i, double x); 2081 struct s1 {int (*f) (int a);}; 2082 struct s2 {int (*f) (double a);}; 2083 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2084 int argc; 2085 char **argv; 2086 int 2087 main () 2088 { 2089 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2090 ; 2091 return 0; 2092 } 2093 _ACEOF 2094 # Don't try gcc -ansi; that turns off useful extensions and 2095 # breaks some systems' header files. 2096 # AIX -qlanglvl=ansi 2097 # Ultrix and OSF/1 -std1 2098 # HP-UX 10.20 and later -Ae 2099 # HP-UX older versions -Aa -D_HPUX_SOURCE 2100 # SVR4 -Xc -D__EXTENSIONS__ 2101 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2102 do 2103 CC="$ac_save_CC $ac_arg" 2104 rm -f conftest.$ac_objext 2105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2106 (eval $ac_compile) 2>&5 2107 ac_status=$? 2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2109 (exit $ac_status); } && 2110 { ac_try='test -s conftest.$ac_objext' 2111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2112 (eval $ac_try) 2>&5 2113 ac_status=$? 2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2115 (exit $ac_status); }; }; then 2116 ac_cv_prog_cc_stdc=$ac_arg 2117 break 2118 else 2119 echo "$as_me: failed program was:" >&5 2120 sed 's/^/| /' conftest.$ac_ext >&5 2121 2122 fi 2123 rm -f conftest.$ac_objext 2124 done 2125 rm -f conftest.$ac_ext conftest.$ac_objext 2126 CC=$ac_save_CC 2127 2128 fi 2129 2130 case "x$ac_cv_prog_cc_stdc" in 2131 x|xno) 2132 echo "$as_me:$LINENO: result: none needed" >&5 2133 echo "${ECHO_T}none needed" >&6 ;; 2134 *) 2135 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2136 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2137 CC="$CC $ac_cv_prog_cc_stdc" ;; 2138 esac 2139 2140 # Some people use a C++ compiler to compile C. Since we use `exit', 2141 # in C++ we need to declare it. In case someone uses the same compiler 2142 # for both compiling C and C++ we need to have the C++ compiler decide 2143 # the declaration of exit, since it's the most demanding environment. 2144 cat >conftest.$ac_ext <<_ACEOF 2145 #ifndef __cplusplus 2146 choke me 2147 #endif 2148 _ACEOF 2149 rm -f conftest.$ac_objext 2150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2151 (eval $ac_compile) 2>&5 2152 ac_status=$? 2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2154 (exit $ac_status); } && 2155 { ac_try='test -s conftest.$ac_objext' 2156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2157 (eval $ac_try) 2>&5 2158 ac_status=$? 2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2160 (exit $ac_status); }; }; then 2161 for ac_declaration in \ 2162 ''\ 2163 '#include <stdlib.h>' \ 2164 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2165 'extern "C" void std::exit (int); using std::exit;' \ 2166 'extern "C" void exit (int) throw ();' \ 2167 'extern "C" void exit (int);' \ 2168 'void exit (int);' 2169 do 2170 cat >conftest.$ac_ext <<_ACEOF 2171 #line $LINENO "configure" 2172 /* confdefs.h. */ 2173 _ACEOF 2174 cat confdefs.h >>conftest.$ac_ext 2175 cat >>conftest.$ac_ext <<_ACEOF 2176 /* end confdefs.h. */ 2177 #include <stdlib.h> 2178 $ac_declaration 2179 int 2180 main () 2181 { 2182 exit (42); 2183 ; 2184 return 0; 2185 } 2186 _ACEOF 2187 rm -f conftest.$ac_objext 2188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2189 (eval $ac_compile) 2>&5 2190 ac_status=$? 2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2192 (exit $ac_status); } && 2193 { ac_try='test -s conftest.$ac_objext' 2194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2195 (eval $ac_try) 2>&5 2196 ac_status=$? 2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2198 (exit $ac_status); }; }; then 2199 : 2200 else 2201 echo "$as_me: failed program was:" >&5 2202 sed 's/^/| /' conftest.$ac_ext >&5 2203 2204 continue 2205 fi 2206 rm -f conftest.$ac_objext conftest.$ac_ext 2207 cat >conftest.$ac_ext <<_ACEOF 2208 #line $LINENO "configure" 2209 /* confdefs.h. */ 2210 _ACEOF 2211 cat confdefs.h >>conftest.$ac_ext 2212 cat >>conftest.$ac_ext <<_ACEOF 2213 /* end confdefs.h. */ 2214 $ac_declaration 2215 int 2216 main () 2217 { 2218 exit (42); 2219 ; 2220 return 0; 2221 } 2222 _ACEOF 2223 rm -f conftest.$ac_objext 2224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2225 (eval $ac_compile) 2>&5 2226 ac_status=$? 2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2228 (exit $ac_status); } && 2229 { ac_try='test -s conftest.$ac_objext' 2230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2231 (eval $ac_try) 2>&5 2232 ac_status=$? 2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2234 (exit $ac_status); }; }; then 2235 break 2236 else 2237 echo "$as_me: failed program was:" >&5 2238 sed 's/^/| /' conftest.$ac_ext >&5 2239 2240 fi 2241 rm -f conftest.$ac_objext conftest.$ac_ext 2242 done 2243 rm -f conftest* 2244 if test -n "$ac_declaration"; then 2245 echo '#ifdef __cplusplus' >>confdefs.h 2246 echo $ac_declaration >>confdefs.h 2247 echo '#endif' >>confdefs.h 2248 fi 2249 2250 else 2251 echo "$as_me: failed program was:" >&5 2252 sed 's/^/| /' conftest.$ac_ext >&5 2253 2254 fi 2255 rm -f conftest.$ac_objext conftest.$ac_ext 2256 ac_ext=c 2257 ac_cpp='$CPP $CPPFLAGS' 2258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2260 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2261 2262 ac_ext=c 2263 ac_cpp='$CPP $CPPFLAGS' 2264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2266 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2267 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2268 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 876 877 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 878 echo "configure:879: checking how to run the C preprocessor" >&5 2269 879 # On Suns, sometimes $CPP names a directory. 2270 880 if test -n "$CPP" && test -d "$CPP"; then … … 2272 882 fi 2273 883 if test -z "$CPP"; then 2274 if test "${ac_cv_prog_CPP+set}" = set; then 2275 echo $ECHO_N "(cached) $ECHO_C" >&6 2276 else 2277 # Double quotes because CPP needs to be expanded 2278 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2279 do 2280 ac_preproc_ok=false 2281 for ac_c_preproc_warn_flag in '' yes 884 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 885 echo $ac_n "(cached) $ac_c" 1>&6 886 else 887 # This must be in double quotes, not single quotes, because CPP may get 888 # substituted into the Makefile and "${CC-cc}" will confuse make. 889 CPP="${CC-cc} -E" 890 # On the NeXT, cc -E runs the code through the compiler's parser, 891 # not just through cpp. 892 cat > conftest.$ac_ext <<EOF 893 #line 894 "configure" 894 #include "confdefs.h" 895 #include <assert.h> 896 Syntax Error 897 EOF 898 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 899 { (eval echo configure:900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 900 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 901 if test -z "$ac_err"; then 902 : 903 else 904 echo "$ac_err" >&5 905 echo "configure: failed program was:" >&5 906 cat conftest.$ac_ext >&5 907 rm -rf conftest* 908 CPP="${CC-cc} -E -traditional-cpp" 909 cat > conftest.$ac_ext <<EOF 910 #line 911 "configure" 911 #include "confdefs.h" 912 #include <assert.h> 913 Syntax Error 914 EOF 915 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 916 { (eval echo configure:917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 917 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 918 if test -z "$ac_err"; then 919 : 920 else 921 echo "$ac_err" >&5 922 echo "configure: failed program was:" >&5 923 cat conftest.$ac_ext >&5 924 rm -rf conftest* 925 CPP="${CC-cc} -nologo -E" 926 cat > conftest.$ac_ext <<EOF 927 #line 928 "configure" 928 #include "confdefs.h" 929 #include <assert.h> 930 Syntax Error 931 EOF 932 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 933 { (eval echo configure:934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 934 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 935 if test -z "$ac_err"; then 936 : 937 else 938 echo "$ac_err" >&5 939 echo "configure: failed program was:" >&5 940 cat conftest.$ac_ext >&5 941 rm -rf conftest* 942 CPP=/lib/cpp 943 fi 944 rm -f conftest* 945 fi 946 rm -f conftest* 947 fi 948 rm -f conftest* 949 ac_cv_prog_CPP="$CPP" 950 fi 951 CPP="$ac_cv_prog_CPP" 952 else 953 ac_cv_prog_CPP="$CPP" 954 fi 955 echo "$ac_t""$CPP" 1>&6 956 957 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl 2282 958 do 2283 # Use a header file that comes with gcc, so configuring glibc 2284 # with a fresh cross-compiler works. 2285 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2286 # <limits.h> exists even on freestanding compilers. 2287 # On the NeXT, cc -E runs the code through the compiler's parser, 2288 # not just through cpp. "Syntax error" is here to catch this case. 2289 cat >conftest.$ac_ext <<_ACEOF 2290 #line $LINENO "configure" 2291 /* confdefs.h. */ 2292 _ACEOF 2293 cat confdefs.h >>conftest.$ac_ext 2294 cat >>conftest.$ac_ext <<_ACEOF 2295 /* end confdefs.h. */ 2296 #ifdef __STDC__ 2297 # include <limits.h> 2298 #else 2299 # include <assert.h> 2300 #endif 2301 Syntax error 2302 _ACEOF 2303 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2304 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2305 ac_status=$? 2306 grep -v '^ *+' conftest.er1 >conftest.err 2307 rm -f conftest.er1 2308 cat conftest.err >&5 2309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2310 (exit $ac_status); } >/dev/null; then 2311 if test -s conftest.err; then 2312 ac_cpp_err=$ac_c_preproc_warn_flag 2313 else 2314 ac_cpp_err= 2315 fi 2316 else 2317 ac_cpp_err=yes 2318 fi 2319 if test -z "$ac_cpp_err"; then 2320 : 2321 else 2322 echo "$as_me: failed program was:" >&5 2323 sed 's/^/| /' conftest.$ac_ext >&5 2324 2325 # Broken: fails on valid input. 2326 continue 2327 fi 2328 rm -f conftest.err conftest.$ac_ext 2329 2330 # OK, works on sane cases. Now check whether non-existent headers 2331 # can be detected and how. 2332 cat >conftest.$ac_ext <<_ACEOF 2333 #line $LINENO "configure" 2334 /* confdefs.h. */ 2335 _ACEOF 2336 cat confdefs.h >>conftest.$ac_ext 2337 cat >>conftest.$ac_ext <<_ACEOF 2338 /* end confdefs.h. */ 2339 #include <ac_nonexistent.h> 2340 _ACEOF 2341 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2342 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2343 ac_status=$? 2344 grep -v '^ *+' conftest.er1 >conftest.err 2345 rm -f conftest.er1 2346 cat conftest.err >&5 2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2348 (exit $ac_status); } >/dev/null; then 2349 if test -s conftest.err; then 2350 ac_cpp_err=$ac_c_preproc_warn_flag 2351 else 2352 ac_cpp_err= 2353 fi 2354 else 2355 ac_cpp_err=yes 2356 fi 2357 if test -z "$ac_cpp_err"; then 2358 # Broken: success on invalid input. 2359 continue 2360 else 2361 echo "$as_me: failed program was:" >&5 2362 sed 's/^/| /' conftest.$ac_ext >&5 2363 2364 # Passes both tests. 2365 ac_preproc_ok=: 2366 break 2367 fi 2368 rm -f conftest.err conftest.$ac_ext 2369 2370 done 2371 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2372 rm -f conftest.err conftest.$ac_ext 2373 if $ac_preproc_ok; then 2374 break 2375 fi 2376 2377 done 2378 ac_cv_prog_CPP=$CPP 2379 2380 fi 2381 CPP=$ac_cv_prog_CPP 2382 else 2383 ac_cv_prog_CPP=$CPP 2384 fi 2385 echo "$as_me:$LINENO: result: $CPP" >&5 2386 echo "${ECHO_T}$CPP" >&6 2387 ac_preproc_ok=false 2388 for ac_c_preproc_warn_flag in '' yes 2389 do 2390 # Use a header file that comes with gcc, so configuring glibc 2391 # with a fresh cross-compiler works. 2392 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2393 # <limits.h> exists even on freestanding compilers. 2394 # On the NeXT, cc -E runs the code through the compiler's parser, 2395 # not just through cpp. "Syntax error" is here to catch this case. 2396 cat >conftest.$ac_ext <<_ACEOF 2397 #line $LINENO "configure" 2398 /* confdefs.h. */ 2399 _ACEOF 2400 cat confdefs.h >>conftest.$ac_ext 2401 cat >>conftest.$ac_ext <<_ACEOF 2402 /* end confdefs.h. */ 2403 #ifdef __STDC__ 2404 # include <limits.h> 2405 #else 2406 # include <assert.h> 2407 #endif 2408 Syntax error 2409 _ACEOF 2410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2412 ac_status=$? 2413 grep -v '^ *+' conftest.er1 >conftest.err 2414 rm -f conftest.er1 2415 cat conftest.err >&5 2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2417 (exit $ac_status); } >/dev/null; then 2418 if test -s conftest.err; then 2419 ac_cpp_err=$ac_c_preproc_warn_flag 2420 else 2421 ac_cpp_err= 2422 fi 2423 else 2424 ac_cpp_err=yes 2425 fi 2426 if test -z "$ac_cpp_err"; then 2427 : 2428 else 2429 echo "$as_me: failed program was:" >&5 2430 sed 's/^/| /' conftest.$ac_ext >&5 2431 2432 # Broken: fails on valid input. 2433 continue 2434 fi 2435 rm -f conftest.err conftest.$ac_ext 2436 2437 # OK, works on sane cases. Now check whether non-existent headers 2438 # can be detected and how. 2439 cat >conftest.$ac_ext <<_ACEOF 2440 #line $LINENO "configure" 2441 /* confdefs.h. */ 2442 _ACEOF 2443 cat confdefs.h >>conftest.$ac_ext 2444 cat >>conftest.$ac_ext <<_ACEOF 2445 /* end confdefs.h. */ 2446 #include <ac_nonexistent.h> 2447 _ACEOF 2448 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2449 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2450 ac_status=$? 2451 grep -v '^ *+' conftest.er1 >conftest.err 2452 rm -f conftest.er1 2453 cat conftest.err >&5 2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2455 (exit $ac_status); } >/dev/null; then 2456 if test -s conftest.err; then 2457 ac_cpp_err=$ac_c_preproc_warn_flag 2458 else 2459 ac_cpp_err= 2460 fi 2461 else 2462 ac_cpp_err=yes 2463 fi 2464 if test -z "$ac_cpp_err"; then 2465 # Broken: success on invalid input. 2466 continue 2467 else 2468 echo "$as_me: failed program was:" >&5 2469 sed 's/^/| /' conftest.$ac_ext >&5 2470 2471 # Passes both tests. 2472 ac_preproc_ok=: 2473 break 2474 fi 2475 rm -f conftest.err conftest.$ac_ext 2476 2477 done 2478 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2479 rm -f conftest.err conftest.$ac_ext 2480 if $ac_preproc_ok; then 2481 : 2482 else 2483 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 2484 See \`config.log' for more details." >&5 2485 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 2486 See \`config.log' for more details." >&2;} 2487 { (exit 1); exit 1; }; } 2488 fi 2489 2490 ac_ext=c 2491 ac_cpp='$CPP $CPPFLAGS' 2492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2494 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2495 2496 ac_ext=cc 2497 ac_cpp='$CXXCPP $CPPFLAGS' 2498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2501 if test -n "$ac_tool_prefix"; then 2502 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 2503 do 2504 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2505 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2506 echo "$as_me:$LINENO: checking for $ac_word" >&5 2507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2508 if test "${ac_cv_prog_CXX+set}" = set; then 2509 echo $ECHO_N "(cached) $ECHO_C" >&6 959 # Extract the first word of "$ac_prog", so it can be a program name with args. 960 set dummy $ac_prog; ac_word=$2 961 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 962 echo "configure:963: checking for $ac_word" >&5 963 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then 964 echo $ac_n "(cached) $ac_c" 1>&6 2510 965 else 2511 966 if test -n "$CXX"; then 2512 967 ac_cv_prog_CXX="$CXX" # Let the user override the test. 2513 968 else 2514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2515 for as_dir in $PATH 2516 do 2517 IFS=$as_save_IFS 2518 test -z "$as_dir" && as_dir=. 2519 for ac_exec_ext in '' $ac_executable_extensions; do 2520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2521 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 2522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2523 break 2 969 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 970 ac_dummy="$PATH" 971 for ac_dir in $ac_dummy; do 972 test -z "$ac_dir" && ac_dir=. 973 if test -f $ac_dir/$ac_word; then 974 ac_cv_prog_CXX="$ac_prog" 975 break 976 fi 977 done 978 IFS="$ac_save_ifs" 979 fi 980 fi 981 CXX="$ac_cv_prog_CXX" 982 if test -n "$CXX"; then 983 echo "$ac_t""$CXX" 1>&6 984 else 985 echo "$ac_t""no" 1>&6 986 fi 987 988 test -n "$CXX" && break 989 done 990 test -n "$CXX" || CXX="gcc" 991 992 993 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 994 echo "configure:995: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 995 996 ac_ext=C 997 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 998 ac_cpp='$CXXCPP $CPPFLAGS' 999 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1000 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1001 cross_compiling=$ac_cv_prog_cxx_cross 1002 1003 cat > conftest.$ac_ext << EOF 1004 1005 #line 1006 "configure" 1006 #include "confdefs.h" 1007 1008 int main(){return(0);} 1009 EOF 1010 if { (eval echo configure:1011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1011 ac_cv_prog_cxx_works=yes 1012 # If we can't run a trivial program, we are probably using a cross compiler. 1013 if (./conftest; exit) 2>/dev/null; then 1014 ac_cv_prog_cxx_cross=no 1015 else 1016 ac_cv_prog_cxx_cross=yes 2524 1017 fi 2525 done 2526 done 2527 2528 fi 2529 fi 2530 CXX=$ac_cv_prog_CXX 2531 if test -n "$CXX"; then 2532 echo "$as_me:$LINENO: result: $CXX" >&5 2533 echo "${ECHO_T}$CXX" >&6 2534 else 2535 echo "$as_me:$LINENO: result: no" >&5 2536 echo "${ECHO_T}no" >&6 2537 fi 2538 2539 test -n "$CXX" && break 2540 done 2541 fi 2542 if test -z "$CXX"; then 2543 ac_ct_CXX=$CXX 2544 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 2545 do 2546 # Extract the first word of "$ac_prog", so it can be a program name with args. 2547 set dummy $ac_prog; ac_word=$2 2548 echo "$as_me:$LINENO: checking for $ac_word" >&5 2549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2550 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 2551 echo $ECHO_N "(cached) $ECHO_C" >&6 2552 else 2553 if test -n "$ac_ct_CXX"; then 2554 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 2555 else 2556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2557 for as_dir in $PATH 2558 do 2559 IFS=$as_save_IFS 2560 test -z "$as_dir" && as_dir=. 2561 for ac_exec_ext in '' $ac_executable_extensions; do 2562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2563 ac_cv_prog_ac_ct_CXX="$ac_prog" 2564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2565 break 2 2566 fi 2567 done 2568 done 2569 2570 fi 2571 fi 2572 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2573 if test -n "$ac_ct_CXX"; then 2574 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 2575 echo "${ECHO_T}$ac_ct_CXX" >&6 2576 else 2577 echo "$as_me:$LINENO: result: no" >&5 2578 echo "${ECHO_T}no" >&6 2579 fi 2580 2581 test -n "$ac_ct_CXX" && break 2582 done 2583 test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 2584 2585 CXX=$ac_ct_CXX 2586 fi 2587 2588 2589 # Provide some information about the compiler. 2590 echo "$as_me:$LINENO:" \ 2591 "checking for C++ compiler version" >&5 2592 ac_compiler=`set X $ac_compile; echo $2` 2593 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2594 (eval $ac_compiler --version </dev/null >&5) 2>&5 2595 ac_status=$? 2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2597 (exit $ac_status); } 2598 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2599 (eval $ac_compiler -v </dev/null >&5) 2>&5 2600 ac_status=$? 2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2602 (exit $ac_status); } 2603 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2604 (eval $ac_compiler -V </dev/null >&5) 2>&5 2605 ac_status=$? 2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2607 (exit $ac_status); } 2608 2609 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 2610 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 2611 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 2612 echo $ECHO_N "(cached) $ECHO_C" >&6 2613 else 2614 cat >conftest.$ac_ext <<_ACEOF 2615 #line $LINENO "configure" 2616 /* confdefs.h. */ 2617 _ACEOF 2618 cat confdefs.h >>conftest.$ac_ext 2619 cat >>conftest.$ac_ext <<_ACEOF 2620 /* end confdefs.h. */ 2621 2622 int 2623 main () 2624 { 2625 #ifndef __GNUC__ 2626 choke me 1018 else 1019 echo "configure: failed program was:" >&5 1020 cat conftest.$ac_ext >&5 1021 ac_cv_prog_cxx_works=no 1022 fi 1023 rm -fr conftest* 1024 ac_ext=c 1025 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1026 ac_cpp='$CPP $CPPFLAGS' 1027 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1028 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1029 cross_compiling=$ac_cv_prog_cc_cross 1030 1031 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 1032 if test $ac_cv_prog_cxx_works = no; then 1033 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } 1034 fi 1035 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1036 echo "configure:1037: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 1037 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 1038 cross_compiling=$ac_cv_prog_cxx_cross 1039 1040 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 1041 echo "configure:1042: checking whether we are using GNU C++" >&5 1042 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then 1043 echo $ac_n "(cached) $ac_c" 1>&6 1044 else 1045 cat > conftest.C <<EOF 1046 #ifdef __GNUC__ 1047 yes; 2627 1048 #endif 2628 2629 ; 2630 return 0; 2631 } 2632 _ACEOF 2633 rm -f conftest.$ac_objext 2634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2635 (eval $ac_compile) 2>&5 2636 ac_status=$? 2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2638 (exit $ac_status); } && 2639 { ac_try='test -s conftest.$ac_objext' 2640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2641 (eval $ac_try) 2>&5 2642 ac_status=$? 2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2644 (exit $ac_status); }; }; then 2645 ac_compiler_gnu=yes 2646 else 2647 echo "$as_me: failed program was:" >&5 2648 sed 's/^/| /' conftest.$ac_ext >&5 2649 2650 ac_compiler_gnu=no 2651 fi 2652 rm -f conftest.$ac_objext conftest.$ac_ext 2653 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 2654 2655 fi 2656 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 2657 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 2658 GXX=`test $ac_compiler_gnu = yes && echo yes` 2659 ac_test_CXXFLAGS=${CXXFLAGS+set} 2660 ac_save_CXXFLAGS=$CXXFLAGS 2661 CXXFLAGS="-g" 2662 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 2663 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 2664 if test "${ac_cv_prog_cxx_g+set}" = set; then 2665 echo $ECHO_N "(cached) $ECHO_C" >&6 2666 else 2667 cat >conftest.$ac_ext <<_ACEOF 2668 #line $LINENO "configure" 2669 /* confdefs.h. */ 2670 _ACEOF 2671 cat confdefs.h >>conftest.$ac_ext 2672 cat >>conftest.$ac_ext <<_ACEOF 2673 /* end confdefs.h. */ 2674 2675 int 2676 main () 2677 { 2678 2679 ; 2680 return 0; 2681 } 2682 _ACEOF 2683 rm -f conftest.$ac_objext 2684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2685 (eval $ac_compile) 2>&5 2686 ac_status=$? 2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2688 (exit $ac_status); } && 2689 { ac_try='test -s conftest.$ac_objext' 2690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2691 (eval $ac_try) 2>&5 2692 ac_status=$? 2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2694 (exit $ac_status); }; }; then 1049 EOF 1050 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1051 ac_cv_prog_gxx=yes 1052 else 1053 ac_cv_prog_gxx=no 1054 fi 1055 fi 1056 1057 echo "$ac_t""$ac_cv_prog_gxx" 1>&6 1058 1059 if test $ac_cv_prog_gxx = yes; then 1060 GXX=yes 1061 else 1062 GXX= 1063 fi 1064 1065 ac_test_CXXFLAGS="${CXXFLAGS+set}" 1066 ac_save_CXXFLAGS="$CXXFLAGS" 1067 CXXFLAGS= 1068 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 1069 echo "configure:1070: checking whether ${CXX-g++} accepts -g" >&5 1070 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then 1071 echo $ac_n "(cached) $ac_c" 1>&6 1072 else 1073 echo 'void f(){}' > conftest.cc 1074 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then 2695 1075 ac_cv_prog_cxx_g=yes 2696 1076 else 2697 echo "$as_me: failed program was:" >&5 2698 sed 's/^/| /' conftest.$ac_ext >&5 2699 2700 ac_cv_prog_cxx_g=no 2701 fi 2702 rm -f conftest.$ac_objext conftest.$ac_ext 2703 fi 2704 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 2705 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 1077 ac_cv_prog_cxx_g=no 1078 fi 1079 rm -f conftest* 1080 1081 fi 1082 1083 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 2706 1084 if test "$ac_test_CXXFLAGS" = set; then 2707 CXXFLAGS= $ac_save_CXXFLAGS1085 CXXFLAGS="$ac_save_CXXFLAGS" 2708 1086 elif test $ac_cv_prog_cxx_g = yes; then 2709 1087 if test "$GXX" = yes; then … … 2719 1097 fi 2720 1098 fi 2721 for ac_declaration in \2722 ''\2723 '#include <stdlib.h>' \2724 'extern "C" void std::exit (int) throw (); using std::exit;' \2725 'extern "C" void std::exit (int); using std::exit;' \2726 'extern "C" void exit (int) throw ();' \2727 'extern "C" void exit (int);' \2728 'void exit (int);'2729 do2730 cat >conftest.$ac_ext <<_ACEOF2731 #line $LINENO "configure"2732 /* confdefs.h. */2733 _ACEOF2734 cat confdefs.h >>conftest.$ac_ext2735 cat >>conftest.$ac_ext <<_ACEOF2736 /* end confdefs.h. */2737 #include <stdlib.h>2738 $ac_declaration2739 int2740 main ()2741 {2742 exit (42);2743 ;2744 return 0;2745 }2746 _ACEOF2747 rm -f conftest.$ac_objext2748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&52749 (eval $ac_compile) 2>&52750 ac_status=$?2751 echo "$as_me:$LINENO: \$? = $ac_status" >&52752 (exit $ac_status); } &&2753 { ac_try='test -s conftest.$ac_objext'2754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&52755 (eval $ac_try) 2>&52756 ac_status=$?2757 echo "$as_me:$LINENO: \$? = $ac_status" >&52758 (exit $ac_status); }; }; then2759 :2760 else2761 echo "$as_me: failed program was:" >&52762 sed 's/^/| /' conftest.$ac_ext >&52763 2764 continue2765 fi2766 rm -f conftest.$ac_objext conftest.$ac_ext2767 cat >conftest.$ac_ext <<_ACEOF2768 #line $LINENO "configure"2769 /* confdefs.h. */2770 _ACEOF2771 cat confdefs.h >>conftest.$ac_ext2772 cat >>conftest.$ac_ext <<_ACEOF2773 /* end confdefs.h. */2774 $ac_declaration2775 int2776 main ()2777 {2778 exit (42);2779 ;2780 return 0;2781 }2782 _ACEOF2783 rm -f conftest.$ac_objext2784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&52785 (eval $ac_compile) 2>&52786 ac_status=$?2787 echo "$as_me:$LINENO: \$? = $ac_status" >&52788 (exit $ac_status); } &&2789 { ac_try='test -s conftest.$ac_objext'2790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&52791 (eval $ac_try) 2>&52792 ac_status=$?2793 echo "$as_me:$LINENO: \$? = $ac_status" >&52794 (exit $ac_status); }; }; then2795 break2796 else2797 echo "$as_me: failed program was:" >&52798 sed 's/^/| /' conftest.$ac_ext >&52799 2800 fi2801 rm -f conftest.$ac_objext conftest.$ac_ext2802 done2803 rm -f conftest*2804 if test -n "$ac_declaration"; then2805 echo '#ifdef __cplusplus' >>confdefs.h2806 echo $ac_declaration >>confdefs.h2807 echo '#endif' >>confdefs.h2808 fi2809 2810 ac_ext=c2811 ac_cpp='$CPP $CPPFLAGS'2812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'2813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'2814 ac_compiler_gnu=$ac_cv_c_compiler_gnu2815 1099 2816 1100 ac_aux_dir= … … 2824 1108 ac_install_sh="$ac_aux_dir/install.sh -c" 2825 1109 break 2826 elif test -f $ac_dir/shtool; then2827 ac_aux_dir=$ac_dir2828 ac_install_sh="$ac_aux_dir/shtool install -c"2829 break2830 1110 fi 2831 1111 done 2832 1112 if test -z "$ac_aux_dir"; then 2833 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 2834 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 2835 { (exit 1); exit 1; }; } 2836 fi 2837 ac_config_guess="$SHELL $ac_aux_dir/config.guess" 2838 ac_config_sub="$SHELL $ac_aux_dir/config.sub" 2839 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1113 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 1114 fi 1115 ac_config_guess=$ac_aux_dir/config.guess 1116 ac_config_sub=$ac_aux_dir/config.sub 1117 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 2840 1118 2841 1119 # Find a good install program. We prefer a C program (faster), … … 2846 1124 # IRIX /sbin/install 2847 1125 # AIX /bin/install 2848 # AmigaOS /C/install, which installs bootblocks on floppy discs2849 1126 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2850 1127 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2851 1128 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2852 1129 # ./install, which can be erroneously created by make from ./install.sh. 2853 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&52854 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&61130 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 1131 echo "configure:1132: checking for a BSD compatible install" >&5 2855 1132 if test -z "$INSTALL"; then 2856 if test "${ac_cv_path_install+set}" = set; then 2857 echo $ECHO_N "(cached) $ECHO_C" >&6 2858 else 2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2860 for as_dir in $PATH 2861 do 2862 IFS=$as_save_IFS 2863 test -z "$as_dir" && as_dir=. 2864 # Account for people who put trailing slashes in PATH elements. 2865 case $as_dir/ in 2866 ./ | .// | /cC/* | \ 2867 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2868 /usr/ucb/* ) ;; 2869 *) 2870 # OSF1 and SCO ODT 3.0 have their own names for install. 2871 # Don't use installbsd from OSF since it installs stuff as root 2872 # by default. 2873 for ac_prog in ginstall scoinst install; do 2874 for ac_exec_ext in '' $ac_executable_extensions; do 2875 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2876 if test $ac_prog = install && 2877 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2878 # AIX install. It has an incompatible calling convention. 2879 : 2880 elif test $ac_prog = install && 2881 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2882 # program-specific install script used by HP pwplus--don't use. 2883 : 2884 else 2885 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2886 break 3 2887 fi 2888 fi 1133 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 1134 echo $ac_n "(cached) $ac_c" 1>&6 1135 else 1136 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 1137 for ac_dir in $PATH; do 1138 # Account for people who put trailing slashes in PATH elements. 1139 case "$ac_dir/" in 1140 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 1141 *) 1142 # OSF1 and SCO ODT 3.0 have their own names for install. 1143 # Don't use installbsd from OSF since it installs stuff as root 1144 # by default. 1145 for ac_prog in ginstall scoinst install; do 1146 if test -f $ac_dir/$ac_prog; then 1147 if test $ac_prog = install && 1148 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 1149 # AIX install. It has an incompatible calling convention. 1150 : 1151 else 1152 ac_cv_path_install="$ac_dir/$ac_prog -c" 1153 break 2 1154 fi 1155 fi 2889 1156 done 2890 done 2891 ;; 2892 esac 2893 done 2894 1157 ;; 1158 esac 1159 done 1160 IFS="$ac_save_IFS" 2895 1161 2896 1162 fi 2897 1163 if test "${ac_cv_path_install+set}" = set; then 2898 INSTALL= $ac_cv_path_install1164 INSTALL="$ac_cv_path_install" 2899 1165 else 2900 1166 # As a last resort, use the slow shell script. We don't cache a … … 2902 1168 # break other packages using the cache if that directory is 2903 1169 # removed, or if the path is relative. 2904 INSTALL= $ac_install_sh1170 INSTALL="$ac_install_sh" 2905 1171 fi 2906 1172 fi 2907 echo "$as_me:$LINENO: result: $INSTALL" >&5 2908 echo "${ECHO_T}$INSTALL" >&6 1173 echo "$ac_t""$INSTALL" 1>&6 2909 1174 2910 1175 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. … … 2912 1177 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2913 1178 2914 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL }'1179 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 2915 1180 2916 1181 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2917 1182 2918 2919 2920 echo "$as_me:$LINENO: checking for egrep" >&5 2921 echo $ECHO_N "checking for egrep... $ECHO_C" >&6 2922 if test "${ac_cv_prog_egrep+set}" = set; then 2923 echo $ECHO_N "(cached) $ECHO_C" >&6 2924 else 2925 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 2926 then ac_cv_prog_egrep='grep -E' 2927 else ac_cv_prog_egrep='egrep' 2928 fi 2929 fi 2930 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 2931 echo "${ECHO_T}$ac_cv_prog_egrep" >&6 2932 EGREP=$ac_cv_prog_egrep 2933 2934 2935 2936 echo "$as_me:$LINENO: checking for AIX" >&5 2937 echo $ECHO_N "checking for AIX... $ECHO_C" >&6 2938 cat >conftest.$ac_ext <<_ACEOF 2939 #line $LINENO "configure" 2940 /* confdefs.h. */ 2941 _ACEOF 2942 cat confdefs.h >>conftest.$ac_ext 2943 cat >>conftest.$ac_ext <<_ACEOF 2944 /* end confdefs.h. */ 1183 echo $ac_n "checking for AIX""... $ac_c" 1>&6 1184 echo "configure:1185: checking for AIX" >&5 1185 cat > conftest.$ac_ext <<EOF 1186 #line 1187 "configure" 1187 #include "confdefs.h" 2945 1188 #ifdef _AIX 2946 1189 yes 2947 1190 #endif 2948 1191 2949 _ACEOF1192 EOF 2950 1193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2951 $EGREP "yes" >/dev/null 2>&1; then 2952 echo "$as_me:$LINENO: result: yes" >&5 2953 echo "${ECHO_T}yes" >&6 2954 cat >>confdefs.h <<\_ACEOF 1194 egrep "yes" >/dev/null 2>&1; then 1195 rm -rf conftest* 1196 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 2955 1197 #define _ALL_SOURCE 1 2956 _ACEOF2957 2958 else 2959 echo "$as_me:$LINENO: result: no" >&52960 echo "${ECHO_T}no">&61198 EOF 1199 1200 else 1201 rm -rf conftest* 1202 echo "$ac_t""no" 1>&6 2961 1203 fi 2962 1204 rm -f conftest* … … 2967 1209 # gcc3: CC=gcc CXX=g++ 2968 1210 # other: CC=cc CXX=c++ 2969 echo "$as_me:$LINENO: checking gcc version" >&52970 echo $ECHO_N "checking gcc version... $ECHO_C" >&62971 if test "${ac_cv_c_cpp+set}" = set; then2972 echo $ ECHO_N "(cached) $ECHO_C">&61211 echo $ac_n "checking gcc version""... $ac_c" 1>&6 1212 echo "configure:1213: checking gcc version" >&5 1213 if eval "test \"`echo '$''{'ac_cv_c_cpp'+set}'`\" = set"; then 1214 echo $ac_n "(cached) $ac_c" 1>&6 2973 1215 else 2974 1216 ac_cv_c_cp="unknown" … … 2979 1221 fi 2980 1222 2981 echo "$as_me:$LINENO: result: $ac_cv_c_cpp" >&5 2982 echo "${ECHO_T}$ac_cv_c_cpp" >&6 1223 echo "$ac_t""$ac_cv_c_cpp" 1>&6 2983 1224 2984 1225 # we prefer using gcc for compiling C++ files, provided the user did … … 2991 1232 fi 2992 1233 temp_cflags=${CXXFLAGS} 2993 2994 2995 ac_ext=cc 1234 1235 ac_ext=C 1236 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 2996 1237 ac_cpp='$CXXCPP $CPPFLAGS' 2997 ac_compile='$ CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext>&5'2998 ac_link='$ CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS>&5'2999 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 1238 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1239 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1240 cross_compiling=$ac_cv_prog_cxx_cross 3000 1241 3001 1242 # check whether gcc accepts --no-rtti 3002 echo "$as_me:$LINENO: checking whether gcc accepts --no-rtti" >&53003 echo $ECHO_N "checking whether gcc accepts --no-rtti... $ECHO_C" >&61243 echo $ac_n "checking whether gcc accepts --no-rtti""... $ac_c" 1>&6 1244 echo "configure:1245: checking whether gcc accepts --no-rtti" >&5 3004 1245 CXXFLAGS="${CXXFLAGS} --no-rtti" 3005 if test "${ac_cv_cxx_have_rtti+set}" = set; then 3006 echo $ECHO_N "(cached) $ECHO_C" >&6 3007 else 3008 3009 cat >conftest.$ac_ext <<_ACEOF 3010 #line $LINENO "configure" 3011 /* confdefs.h. */ 3012 _ACEOF 3013 cat confdefs.h >>conftest.$ac_ext 3014 cat >>conftest.$ac_ext <<_ACEOF 3015 /* end confdefs.h. */ 3016 3017 int 3018 main () 3019 { 3020 3021 ; 3022 return 0; 3023 } 3024 _ACEOF 3025 rm -f conftest.$ac_objext 3026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3027 (eval $ac_compile) 2>&5 3028 ac_status=$? 3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3030 (exit $ac_status); } && 3031 { ac_try='test -s conftest.$ac_objext' 3032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3033 (eval $ac_try) 2>&5 3034 ac_status=$? 3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3036 (exit $ac_status); }; }; then 1246 if eval "test \"`echo '$''{'ac_cv_cxx_have_rtti'+set}'`\" = set"; then 1247 echo $ac_n "(cached) $ac_c" 1>&6 1248 else 1249 cat > conftest.$ac_ext <<EOF 1250 #line 1251 "configure" 1251 #include "confdefs.h" 1252 1253 int main() { 1254 1255 ; return 0; } 1256 EOF 1257 if { (eval echo configure:1258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1258 rm -rf conftest* 3037 1259 ac_cv_cxx_have_rtti=yes 3038 1260 else 3039 echo "$as_me: failed program was:" >&5 3040 sed 's/^/| /' conftest.$ac_ext >&5 3041 3042 ac_cv_cxx_have_rtti=no 3043 fi 3044 rm -f conftest.$ac_objext conftest.$ac_ext 3045 3046 fi 3047 3048 echo "$as_me:$LINENO: result: ${ac_cv_cxx_have_rtti}" >&5 3049 echo "${ECHO_T}${ac_cv_cxx_have_rtti}" >&6 1261 echo "configure: failed program was:" >&5 1262 cat conftest.$ac_ext >&5 1263 rm -rf conftest* 1264 ac_cv_cxx_have_rtti=no 1265 fi 1266 rm -f conftest* 1267 1268 fi 1269 1270 echo "$ac_t""${ac_cv_cxx_have_rtti}" 1>&6 3050 1271 if test "${ac_cv_cxx_have_rtti}" != yes; then 3051 1272 CXXFLAGS=$temp_flags … … 3055 1276 3056 1277 # check whether gcc accepts --no-exceptions 3057 echo "$as_me:$LINENO: checking whether gcc accepts --no-exceptions" >&53058 echo $ECHO_N "checking whether gcc accepts --no-exceptions... $ECHO_C" >&61278 echo $ac_n "checking whether gcc accepts --no-exceptions""... $ac_c" 1>&6 1279 echo "configure:1280: checking whether gcc accepts --no-exceptions" >&5 3059 1280 CXXFLAGS="${CXXFLAGS} --no-exceptions" 3060 if test "${ac_cv_cxx_have_exceptions+set}" = set; then 3061 echo $ECHO_N "(cached) $ECHO_C" >&6 3062 else 3063 cat >conftest.$ac_ext <<_ACEOF 3064 #line $LINENO "configure" 3065 /* confdefs.h. */ 3066 _ACEOF 3067 cat confdefs.h >>conftest.$ac_ext 3068 cat >>conftest.$ac_ext <<_ACEOF 3069 /* end confdefs.h. */ 3070 3071 int 3072 main () 3073 { 3074 3075 ; 3076 return 0; 3077 } 3078 _ACEOF 3079 rm -f conftest.$ac_objext conftest$ac_exeext 3080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3081 (eval $ac_link) 2>&5 3082 ac_status=$? 3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3084 (exit $ac_status); } && 3085 { ac_try='test -s conftest$ac_exeext' 3086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3087 (eval $ac_try) 2>&5 3088 ac_status=$? 3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3090 (exit $ac_status); }; }; then 1281 if eval "test \"`echo '$''{'ac_cv_cxx_have_exceptions'+set}'`\" = set"; then 1282 echo $ac_n "(cached) $ac_c" 1>&6 1283 else 1284 cat > conftest.$ac_ext <<EOF 1285 #line 1286 "configure" 1286 #include "confdefs.h" 1287 1288 int main() { 1289 1290 ; return 0; } 1291 EOF 1292 if { (eval echo configure:1293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1293 rm -rf conftest* 3091 1294 ac_cv_cxx_have_exceptions=yes 3092 1295 else 3093 echo "$as_me: failed program was:" >&5 3094 sed 's/^/| /' conftest.$ac_ext >&5 3095 3096 ac_cv_cxx_have_exceptions=no 3097 fi 3098 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3099 3100 fi 3101 3102 echo "$as_me:$LINENO: result: ${ac_cv_cxx_have_exceptions}" >&5 3103 echo "${ECHO_T}${ac_cv_cxx_have_exceptions}" >&6 1296 echo "configure: failed program was:" >&5 1297 cat conftest.$ac_ext >&5 1298 rm -rf conftest* 1299 ac_cv_cxx_have_exceptions=no 1300 fi 1301 rm -f conftest* 1302 1303 fi 1304 1305 echo "$ac_t""${ac_cv_cxx_have_exceptions}" 1>&6 3104 1306 if test "${ac_cv_cxx_have_exceptions}" != yes; then 3105 1307 CXXFLAGS=$temp_flags … … 3109 1311 3110 1312 ac_ext=c 1313 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 3111 1314 ac_cpp='$CPP $CPPFLAGS' 3112 ac_compile='$ CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext>&5'3113 ac_link='$ CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS>&5'3114 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1315 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1316 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1317 cross_compiling=$ac_cv_prog_cc_cross 3115 1318 3116 1319 #CXXFLAGS=$temp_flags … … 3121 1324 3122 1325 # check whether the compiler accepts -pipe 3123 echo "$as_me:$LINENO: checking whether compiler accepts -pipe" >&53124 echo $ECHO_N "checking whether compiler accepts -pipe... $ECHO_C" >&61326 echo $ac_n "checking whether compiler accepts -pipe""... $ac_c" 1>&6 1327 echo "configure:1328: checking whether compiler accepts -pipe" >&5 3125 1328 temp_cflags=${CFLAGS} 3126 1329 CFLAGS="${CFLAGS} -pipe" 3127 if test "${ac_cv_cxx_have_pipe+set}" = set; then 3128 echo $ECHO_N "(cached) $ECHO_C" >&6 3129 else 3130 cat >conftest.$ac_ext <<_ACEOF 3131 #line $LINENO "configure" 3132 /* confdefs.h. */ 3133 _ACEOF 3134 cat confdefs.h >>conftest.$ac_ext 3135 cat >>conftest.$ac_ext <<_ACEOF 3136 /* end confdefs.h. */ 3137 3138 int 3139 main () 3140 { 3141 3142 ; 3143 return 0; 3144 } 3145 _ACEOF 3146 rm -f conftest.$ac_objext 3147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3148 (eval $ac_compile) 2>&5 3149 ac_status=$? 3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3151 (exit $ac_status); } && 3152 { ac_try='test -s conftest.$ac_objext' 3153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3154 (eval $ac_try) 2>&5 3155 ac_status=$? 3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3157 (exit $ac_status); }; }; then 1330 if eval "test \"`echo '$''{'ac_cv_cxx_have_pipe'+set}'`\" = set"; then 1331 echo $ac_n "(cached) $ac_c" 1>&6 1332 else 1333 cat > conftest.$ac_ext <<EOF 1334 #line 1335 "configure" 1335 #include "confdefs.h" 1336 1337 int main() { 1338 1339 ; return 0; } 1340 EOF 1341 if { (eval echo configure:1342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1342 rm -rf conftest* 3158 1343 ac_cv_cxx_have_pipe=yes 3159 1344 else 3160 echo "$as_me: failed program was:" >&5 3161 sed 's/^/| /' conftest.$ac_ext >&5 3162 3163 ac_cv_cxx_have_pipe=no 3164 fi 3165 rm -f conftest.$ac_objext conftest.$ac_ext 3166 3167 fi 3168 3169 echo "$as_me:$LINENO: result: ${ac_cv_cxx_have_pipe}" >&5 3170 echo "${ECHO_T}${ac_cv_cxx_have_pipe}" >&6 1345 echo "configure: failed program was:" >&5 1346 cat conftest.$ac_ext >&5 1347 rm -rf conftest* 1348 ac_cv_cxx_have_pipe=no 1349 fi 1350 rm -f conftest* 1351 1352 fi 1353 1354 echo "$ac_t""${ac_cv_cxx_have_pipe}" 1>&6 3171 1355 CFLAGS=${temp_cflags} 3172 1356 if test "${ac_cv_cxx_have_pipe}" != yes; then … … 3178 1362 3179 1363 # Customize CFLAGS 3180 echo "$as_me:$LINENO: checking whether _AIX is defined" >&5 3181 echo $ECHO_N "checking whether _AIX is defined... $ECHO_C" >&6 3182 if test "${ac_cv_is_aix+set}" = set; then 3183 echo $ECHO_N "(cached) $ECHO_C" >&6 3184 else 3185 cat >conftest.$ac_ext <<_ACEOF 3186 #line $LINENO "configure" 3187 /* confdefs.h. */ 3188 _ACEOF 3189 cat confdefs.h >>conftest.$ac_ext 3190 cat >>conftest.$ac_ext <<_ACEOF 3191 /* end confdefs.h. */ 1364 echo $ac_n "checking whether _AIX is defined""... $ac_c" 1>&6 1365 echo "configure:1366: checking whether _AIX is defined" >&5 1366 if eval "test \"`echo '$''{'ac_cv_is_aix'+set}'`\" = set"; then 1367 echo $ac_n "(cached) $ac_c" 1>&6 1368 else 1369 cat > conftest.$ac_ext <<EOF 1370 #line 1371 "configure" 1371 #include "confdefs.h" 3192 1372 #ifdef _AIX 3193 1373 yes 3194 1374 #endif 3195 1375 3196 _ACEOF1376 EOF 3197 1377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3198 $EGREP "yes" >/dev/null 2>&1; then 1378 egrep "yes" >/dev/null 2>&1; then 1379 rm -rf conftest* 3199 1380 ac_cv_is_aix=yes 3200 1381 else 1382 rm -rf conftest* 3201 1383 ac_cv_is_aix=no 3202 1384 fi … … 3206 1388 3207 1389 if test "$ac_cv_is_aix" = yes; then 3208 echo "$as_me:$LINENO: result: yes" >&5 3209 echo "${ECHO_T}yes" >&6 3210 else 3211 echo "$as_me:$LINENO: result: no" >&5 3212 echo "${ECHO_T}no" >&6 1390 echo "$ac_t""yes" 1>&6 1391 else 1392 echo "$ac_t""no" 1>&6 3213 1393 fi 3214 1394 … … 3238 1418 fi 3239 1419 3240 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&53241 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&63242 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y ,./+-,__p_,'`3243 if eval "test \" \${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then3244 echo $ ECHO_N "(cached) $ECHO_C">&63245 else 3246 cat > conftest.make <<\_ACEOF1420 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 1421 echo "configure:1422: checking whether ${MAKE-make} sets \${MAKE}" >&5 1422 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 1423 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 1424 echo $ac_n "(cached) $ac_c" 1>&6 1425 else 1426 cat > conftestmake <<\EOF 3247 1427 all: 3248 @echo 'ac_maketemp="$ (MAKE)"'3249 _ACEOF1428 @echo 'ac_maketemp="${MAKE}"' 1429 EOF 3250 1430 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3251 eval `${MAKE-make} -f conftest .make 2>/dev/null | grep temp=`1431 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 3252 1432 if test -n "$ac_maketemp"; then 3253 1433 eval ac_cv_prog_make_${ac_make}_set=yes … … 3255 1435 eval ac_cv_prog_make_${ac_make}_set=no 3256 1436 fi 3257 rm -f conftest .make1437 rm -f conftestmake 3258 1438 fi 3259 1439 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 3260 echo "$as_me:$LINENO: result: yes" >&5 3261 echo "${ECHO_T}yes" >&6 1440 echo "$ac_t""yes" 1>&6 3262 1441 SET_MAKE= 3263 1442 else 3264 echo "$as_me:$LINENO: result: no" >&5 3265 echo "${ECHO_T}no" >&6 1443 echo "$ac_t""no" 1>&6 3266 1444 SET_MAKE="MAKE=${MAKE-make}" 3267 1445 fi … … 3274 1452 test "x$prefix" = xNONE && prefix=$ac_default_prefix 3275 1453 if test "${with_rootdir+set}" != set; then 3276 cat >> confdefs.h <<_ACEOF1454 cat >> confdefs.h <<EOF 3277 1455 #define S_ROOT_DIR "${prefix}" 3278 _ACEOF3279 3280 else 3281 cat >> confdefs.h <<_ACEOF1456 EOF 1457 1458 else 1459 cat >> confdefs.h <<EOF 3282 1460 #define S_ROOT_DIR "${with_rootdir}" 3283 _ACEOF1461 EOF 3284 1462 3285 1463 fi … … 3294 1472 SINGULAR=${SINGULAR:-$bindir/Singular-$SINGULAR_MAJOR_VERSION${VERSION_SEP}$SINGULAR_MINOR_VERSION${VERSION_SEP}$SINGULAR_SUB_VERSION} 3295 1473 3296 cat >> confdefs.h <<_ACEOF1474 cat >> confdefs.h <<EOF 3297 1475 #define S_BIN_DIR "${bindir}" 3298 _ACEOF1476 EOF 3299 1477 3300 1478 … … 3323 1501 # lex 3324 1502 if test "${with_lex+set}" != set; then 3325 echo "$as_me:$LINENO: checking for flex" >&53326 echo $ECHO_N "checking for flex... $ECHO_C" >&61503 echo $ac_n "checking for flex""... $ac_c" 1>&6 1504 echo "configure:1505: checking for flex" >&5 3327 1505 cmd="egrep [2-9]\.[5-9]" 3328 if test "${ac_cv_prog_flex+set}" = set; then3329 echo $ ECHO_N "(cached) $ECHO_C">&61506 if eval "test \"`echo '$''{'ac_cv_prog_flex'+set}'`\" = set"; then 1507 echo $ac_n "(cached) $ac_c" 1>&6 3330 1508 else 3331 1509 if (flex --version >/dev/null 2>&1) … … 3336 1514 fi 3337 1515 fi 3338 1516 3339 1517 fi 3340 1518 3341 1519 if test "${ac_cv_prog_flex+set}" = set; then 3342 echo "$as_me:$LINENO: result: flex" >&5 3343 echo "${ECHO_T}flex" >&6 1520 echo "$ac_t""flex" 1>&6 3344 1521 LEX=flex 3345 1522 3346 1523 else 3347 { { echo "$as_me:$LINENO: error: can not find flex with version greater 2.4" >&5 3348 echo "$as_me: error: can not find flex with version greater 2.4" >&2;} 3349 { (exit 1); exit 1; }; } 1524 { echo "configure: error: can not find flex with version greater 2.4" 1>&2; exit 1; } 3350 1525 fi 3351 1526 elif test "${with_lex}" = no; then 3352 { echo "$as_me:$LINENO: WARNING: building without lex -- make might fail" >&5 3353 echo "$as_me: WARNING: building without lex -- make might fail" >&2;} 1527 echo "configure: warning: building without lex -- make might fail" 1>&2 3354 1528 else 3355 1529 unset LEX … … 3357 1531 for ac_prog in ${with_lex} 3358 1532 do 3359 1533 # Extract the first word of "$ac_prog", so it can be a program name with args. 3360 1534 set dummy $ac_prog; ac_word=$2 3361 echo "$as_me:$LINENO: checking for $ac_word" >&53362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&63363 if test "${ac_cv_prog_LEX+set}" = set; then3364 echo $ ECHO_N "(cached) $ECHO_C">&61535 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1536 echo "configure:1537: checking for $ac_word" >&5 1537 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then 1538 echo $ac_n "(cached) $ac_c" 1>&6 3365 1539 else 3366 1540 if test -n "$LEX"; then 3367 1541 ac_cv_prog_LEX="$LEX" # Let the user override the test. 3368 1542 else 3369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3370 for as_dir in $PATH 3371 do 3372 IFS=$as_save_IFS 3373 test -z "$as_dir" && as_dir=. 3374 for ac_exec_ext in '' $ac_executable_extensions; do 3375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3376 ac_cv_prog_LEX="$ac_prog" 3377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3378 break 2 3379 fi 1543 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1544 ac_dummy="$PATH" 1545 for ac_dir in $ac_dummy; do 1546 test -z "$ac_dir" && ac_dir=. 1547 if test -f $ac_dir/$ac_word; then 1548 ac_cv_prog_LEX="$ac_prog" 1549 break 1550 fi 1551 done 1552 IFS="$ac_save_ifs" 1553 fi 1554 fi 1555 LEX="$ac_cv_prog_LEX" 1556 if test -n "$LEX"; then 1557 echo "$ac_t""$LEX" 1>&6 1558 else 1559 echo "$ac_t""no" 1>&6 1560 fi 1561 1562 test -n "$LEX" && break 3380 1563 done 3381 done3382 3383 fi3384 fi3385 LEX=$ac_cv_prog_LEX3386 if test -n "$LEX"; then3387 echo "$as_me:$LINENO: result: $LEX" >&53388 echo "${ECHO_T}$LEX" >&63389 else3390 echo "$as_me:$LINENO: result: no" >&53391 echo "${ECHO_T}no" >&63392 fi3393 3394 test -n "$LEX" && break3395 done3396 1564 3397 1565 if test "x${LEX}" = x; then 3398 { echo "$as_me:$LINENO: WARNING: building without lex -- make might fail" >&5 3399 echo "$as_me: WARNING: building without lex -- make might fail" >&2;} 1566 echo "configure: warning: building without lex -- make might fail" 1>&2 3400 1567 fi 3401 1568 fi … … 3404 1571 for ac_prog in bison 3405 1572 do 3406 1573 # Extract the first word of "$ac_prog", so it can be a program name with args. 3407 1574 set dummy $ac_prog; ac_word=$2 3408 echo "$as_me:$LINENO: checking for $ac_word" >&53409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&63410 if test "${ac_cv_prog_BISON+set}" = set; then3411 echo $ ECHO_N "(cached) $ECHO_C">&61575 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1576 echo "configure:1577: checking for $ac_word" >&5 1577 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then 1578 echo $ac_n "(cached) $ac_c" 1>&6 3412 1579 else 3413 1580 if test -n "$BISON"; then 3414 1581 ac_cv_prog_BISON="$BISON" # Let the user override the test. 3415 1582 else 3416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3417 for as_dir in $PATH 3418 do 3419 IFS=$as_save_IFS 3420 test -z "$as_dir" && as_dir=. 3421 for ac_exec_ext in '' $ac_executable_extensions; do 3422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3423 ac_cv_prog_BISON="$ac_prog" 3424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3425 break 2 3426 fi 1583 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1584 ac_dummy="$PATH" 1585 for ac_dir in $ac_dummy; do 1586 test -z "$ac_dir" && ac_dir=. 1587 if test -f $ac_dir/$ac_word; then 1588 ac_cv_prog_BISON="$ac_prog" 1589 break 1590 fi 1591 done 1592 IFS="$ac_save_ifs" 1593 fi 1594 fi 1595 BISON="$ac_cv_prog_BISON" 1596 if test -n "$BISON"; then 1597 echo "$ac_t""$BISON" 1>&6 1598 else 1599 echo "$ac_t""no" 1>&6 1600 fi 1601 1602 test -n "$BISON" && break 3427 1603 done 3428 done3429 3430 fi3431 fi3432 BISON=$ac_cv_prog_BISON3433 if test -n "$BISON"; then3434 echo "$as_me:$LINENO: result: $BISON" >&53435 echo "${ECHO_T}$BISON" >&63436 else3437 echo "$as_me:$LINENO: result: no" >&53438 echo "${ECHO_T}no" >&63439 fi3440 3441 test -n "$BISON" && break3442 done3443 1604 3444 1605 if test "${BISON+set}" != set; then 3445 { echo "$as_me:$LINENO: WARNING: did not find bison -- make might fail" >&5 3446 echo "$as_me: WARNING: did not find bison -- make might fail" >&2;} 1606 echo "configure: warning: did not find bison -- make might fail" 1>&2 3447 1607 fi 3448 1608 3449 1609 # ln -s 3450 echo "$as_me:$LINENO: checking whether ln -s works" >&5 3451 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3452 LN_S=$as_ln_s 3453 if test "$LN_S" = "ln -s"; then 3454 echo "$as_me:$LINENO: result: yes" >&5 3455 echo "${ECHO_T}yes" >&6 3456 else 3457 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3458 echo "${ECHO_T}no, using $LN_S" >&6 1610 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1611 echo "configure:1612: checking whether ln -s works" >&5 1612 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1613 echo $ac_n "(cached) $ac_c" 1>&6 1614 else 1615 rm -f conftestdata 1616 if ln -s X conftestdata 2>/dev/null 1617 then 1618 rm -f conftestdata 1619 ac_cv_prog_LN_S="ln -s" 1620 else 1621 ac_cv_prog_LN_S=ln 1622 fi 1623 fi 1624 LN_S="$ac_cv_prog_LN_S" 1625 if test "$ac_cv_prog_LN_S" = "ln -s"; then 1626 echo "$ac_t""yes" 1>&6 1627 else 1628 echo "$ac_t""no" 1>&6 3459 1629 fi 3460 1630 … … 3462 1632 for ac_prog in perl5 perl 3463 1633 do 3464 1634 # Extract the first word of "$ac_prog", so it can be a program name with args. 3465 1635 set dummy $ac_prog; ac_word=$2 3466 echo "$as_me:$LINENO: checking for $ac_word" >&53467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&63468 if test "${ac_cv_prog_PERL+set}" = set; then3469 echo $ ECHO_N "(cached) $ECHO_C">&61636 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1637 echo "configure:1638: checking for $ac_word" >&5 1638 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then 1639 echo $ac_n "(cached) $ac_c" 1>&6 3470 1640 else 3471 1641 if test -n "$PERL"; then 3472 1642 ac_cv_prog_PERL="$PERL" # Let the user override the test. 3473 1643 else 3474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3475 for as_dir in $PATH 3476 do 3477 IFS=$as_save_IFS 3478 test -z "$as_dir" && as_dir=. 3479 for ac_exec_ext in '' $ac_executable_extensions; do 3480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3481 ac_cv_prog_PERL="$ac_prog" 3482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3483 break 2 3484 fi 3485 done 3486 done 3487 3488 fi 3489 fi 3490 PERL=$ac_cv_prog_PERL 1644 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1645 ac_dummy="$PATH" 1646 for ac_dir in $ac_dummy; do 1647 test -z "$ac_dir" && ac_dir=. 1648 if test -f $ac_dir/$ac_word; then 1649 ac_cv_prog_PERL="$ac_prog" 1650 break 1651 fi 1652 done 1653 IFS="$ac_save_ifs" 1654 fi 1655 fi 1656 PERL="$ac_cv_prog_PERL" 3491 1657 if test -n "$PERL"; then 3492 echo "$as_me:$LINENO: result: $PERL" >&5 3493 echo "${ECHO_T}$PERL" >&6 3494 else 3495 echo "$as_me:$LINENO: result: no" >&5 3496 echo "${ECHO_T}no" >&6 3497 fi 3498 3499 test -n "$PERL" && break 1658 echo "$ac_t""$PERL" 1>&6 1659 else 1660 echo "$ac_t""no" 1>&6 1661 fi 1662 1663 test -n "$PERL" && break 3500 1664 done 3501 1665 … … 3505 1669 # it really is the last thing to link with 3506 1670 if test "$ac_cv_singuname" != ix86-Win; then 3507 3508 echo " $as_me:$LINENO: checking for atof in -lm" >&53509 echo $ECHO_N "checking for atof in -lm... $ECHO_C" >&6 3510 if test "${ac_cv_lib_m_atof+set}" = set; then3511 echo $ ECHO_N "(cached) $ECHO_C">&63512 else 3513 ac_ check_lib_save_LIBS=$LIBS1671 echo $ac_n "checking for atof in -lm""... $ac_c" 1>&6 1672 echo "configure:1673: checking for atof in -lm" >&5 1673 ac_lib_var=`echo m'_'atof | sed 'y%./+-%__p_%'` 1674 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1675 echo $ac_n "(cached) $ac_c" 1>&6 1676 else 1677 ac_save_LIBS="$LIBS" 3514 1678 LIBS="-lm $LIBS" 3515 cat >conftest.$ac_ext <<_ACEOF 3516 #line $LINENO "configure" 3517 /* confdefs.h. */ 3518 _ACEOF 3519 cat confdefs.h >>conftest.$ac_ext 3520 cat >>conftest.$ac_ext <<_ACEOF 3521 /* end confdefs.h. */ 3522 1679 cat > conftest.$ac_ext <<EOF 1680 #line 1681 "configure" 1681 #include "confdefs.h" 3523 1682 /* Override any gcc2 internal prototype to avoid an error. */ 3524 #ifdef __cplusplus3525 extern "C"3526 #endif3527 1683 /* We use char because int might match the return type of a gcc2 3528 builtin and then its argument prototype would still apply. */ 3529 char atof (); 3530 int 3531 main () 3532 { 3533 atof (); 3534 ; 3535 return 0; 3536 } 3537 _ACEOF 3538 rm -f conftest.$ac_objext conftest$ac_exeext 3539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3540 (eval $ac_link) 2>&5 3541 ac_status=$? 3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3543 (exit $ac_status); } && 3544 { ac_try='test -s conftest$ac_exeext' 3545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3546 (eval $ac_try) 2>&5 3547 ac_status=$? 3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3549 (exit $ac_status); }; }; then 3550 ac_cv_lib_m_atof=yes 3551 else 3552 echo "$as_me: failed program was:" >&5 3553 sed 's/^/| /' conftest.$ac_ext >&5 3554 3555 ac_cv_lib_m_atof=no 3556 fi 3557 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3558 LIBS=$ac_check_lib_save_LIBS 3559 fi 3560 echo "$as_me:$LINENO: result: $ac_cv_lib_m_atof" >&5 3561 echo "${ECHO_T}$ac_cv_lib_m_atof" >&6 3562 if test $ac_cv_lib_m_atof = yes; then 3563 cat >>confdefs.h <<_ACEOF 3564 #define HAVE_LIBM 1 3565 _ACEOF 1684 builtin and then its argument prototype would still apply. */ 1685 char atof(); 1686 1687 int main() { 1688 atof() 1689 ; return 0; } 1690 EOF 1691 if { (eval echo configure:1692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1692 rm -rf conftest* 1693 eval "ac_cv_lib_$ac_lib_var=yes" 1694 else 1695 echo "configure: failed program was:" >&5 1696 cat conftest.$ac_ext >&5 1697 rm -rf conftest* 1698 eval "ac_cv_lib_$ac_lib_var=no" 1699 fi 1700 rm -f conftest* 1701 LIBS="$ac_save_LIBS" 1702 1703 fi 1704 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1705 echo "$ac_t""yes" 1>&6 1706 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1707 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1708 cat >> confdefs.h <<EOF 1709 #define $ac_tr_lib 1 1710 EOF 3566 1711 3567 1712 LIBS="-lm $LIBS" 3568 1713 1714 else 1715 echo "$ac_t""no" 1>&6 3569 1716 fi 3570 1717 … … 3573 1720 LIBS= 3574 1721 3575 3576 echo " $as_me:$LINENO: checking for setenv in -lbsd" >&53577 echo $ECHO_N "checking for setenv in -lbsd... $ECHO_C" >&6 3578 if test "${ac_cv_lib_bsd_setenv+set}" = set; then3579 echo $ ECHO_N "(cached) $ECHO_C">&63580 else 3581 ac_ check_lib_save_LIBS=$LIBS1722 echo $ac_n "checking for setenv in -lbsd""... $ac_c" 1>&6 1723 echo "configure:1724: checking for setenv in -lbsd" >&5 1724 ac_lib_var=`echo bsd'_'setenv | sed 'y%./+-%__p_%'` 1725 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1726 echo $ac_n "(cached) $ac_c" 1>&6 1727 else 1728 ac_save_LIBS="$LIBS" 3582 1729 LIBS="-lbsd $LIBS" 3583 cat >conftest.$ac_ext <<_ACEOF 3584 #line $LINENO "configure" 3585 /* confdefs.h. */ 3586 _ACEOF 3587 cat confdefs.h >>conftest.$ac_ext 3588 cat >>conftest.$ac_ext <<_ACEOF 3589 /* end confdefs.h. */ 3590 1730 cat > conftest.$ac_ext <<EOF 1731 #line 1732 "configure" 1732 #include "confdefs.h" 3591 1733 /* Override any gcc2 internal prototype to avoid an error. */ 3592 #ifdef __cplusplus3593 extern "C"3594 #endif3595 1734 /* We use char because int might match the return type of a gcc2 3596 builtin and then its argument prototype would still apply. */ 3597 char setenv (); 3598 int 3599 main () 3600 { 3601 setenv (); 3602 ; 3603 return 0; 3604 } 3605 _ACEOF 3606 rm -f conftest.$ac_objext conftest$ac_exeext 3607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3608 (eval $ac_link) 2>&5 3609 ac_status=$? 3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3611 (exit $ac_status); } && 3612 { ac_try='test -s conftest$ac_exeext' 3613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3614 (eval $ac_try) 2>&5 3615 ac_status=$? 3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3617 (exit $ac_status); }; }; then 3618 ac_cv_lib_bsd_setenv=yes 3619 else 3620 echo "$as_me: failed program was:" >&5 3621 sed 's/^/| /' conftest.$ac_ext >&5 3622 3623 ac_cv_lib_bsd_setenv=no 3624 fi 3625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3626 LIBS=$ac_check_lib_save_LIBS 3627 fi 3628 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_setenv" >&5 3629 echo "${ECHO_T}$ac_cv_lib_bsd_setenv" >&6 3630 if test $ac_cv_lib_bsd_setenv = yes; then 3631 cat >>confdefs.h <<_ACEOF 3632 #define HAVE_LIBBSD 1 3633 _ACEOF 1735 builtin and then its argument prototype would still apply. */ 1736 char setenv(); 1737 1738 int main() { 1739 setenv() 1740 ; return 0; } 1741 EOF 1742 if { (eval echo configure:1743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1743 rm -rf conftest* 1744 eval "ac_cv_lib_$ac_lib_var=yes" 1745 else 1746 echo "configure: failed program was:" >&5 1747 cat conftest.$ac_ext >&5 1748 rm -rf conftest* 1749 eval "ac_cv_lib_$ac_lib_var=no" 1750 fi 1751 rm -f conftest* 1752 LIBS="$ac_save_LIBS" 1753 1754 fi 1755 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1756 echo "$ac_t""yes" 1>&6 1757 ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1758 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1759 cat >> confdefs.h <<EOF 1760 #define $ac_tr_lib 1 1761 EOF 3634 1762 3635 1763 LIBS="-lbsd $LIBS" 3636 1764 1765 else 1766 echo "$ac_t""no" 1>&6 3637 1767 fi 3638 1768 … … 3640 1770 case "$ac_cv_singuname" in 3641 1771 HPUX*) 3642 3643 echo " $as_me:$LINENO: checking for shl_load in -ldld" >&53644 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 3645 if test "${ac_cv_lib_dld_shl_load+set}" = set; then3646 echo $ ECHO_N "(cached) $ECHO_C">&63647 else 3648 ac_ check_lib_save_LIBS=$LIBS1772 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 1773 echo "configure:1774: checking for shl_load in -ldld" >&5 1774 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` 1775 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1776 echo $ac_n "(cached) $ac_c" 1>&6 1777 else 1778 ac_save_LIBS="$LIBS" 3649 1779 LIBS="-ldld $LIBS" 3650 cat >conftest.$ac_ext <<_ACEOF 3651 #line $LINENO "configure" 3652 /* confdefs.h. */ 3653 _ACEOF 3654 cat confdefs.h >>conftest.$ac_ext 3655 cat >>conftest.$ac_ext <<_ACEOF 3656 /* end confdefs.h. */ 3657 1780 cat > conftest.$ac_ext <<EOF 1781 #line 1782 "configure" 1782 #include "confdefs.h" 3658 1783 /* Override any gcc2 internal prototype to avoid an error. */ 3659 #ifdef __cplusplus3660 extern "C"3661 #endif3662 1784 /* We use char because int might match the return type of a gcc2 3663 builtin and then its argument prototype would still apply. */ 3664 char shl_load (); 3665 int 3666 main () 3667 { 3668 shl_load (); 3669 ; 3670 return 0; 3671 } 3672 _ACEOF 3673 rm -f conftest.$ac_objext conftest$ac_exeext 3674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3675 (eval $ac_link) 2>&5 3676 ac_status=$? 3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3678 (exit $ac_status); } && 3679 { ac_try='test -s conftest$ac_exeext' 3680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3681 (eval $ac_try) 2>&5 3682 ac_status=$? 3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3684 (exit $ac_status); }; }; then 3685 ac_cv_lib_dld_shl_load=yes 3686 else 3687 echo "$as_me: failed program was:" >&5 3688 sed 's/^/| /' conftest.$ac_ext >&5 3689 3690 ac_cv_lib_dld_shl_load=no 3691 fi 3692 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3693 LIBS=$ac_check_lib_save_LIBS 3694 fi 3695 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 3696 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 3697 if test $ac_cv_lib_dld_shl_load = yes; then 3698 cat >>confdefs.h <<_ACEOF 3699 #define HAVE_LIBDLD 1 3700 _ACEOF 1785 builtin and then its argument prototype would still apply. */ 1786 char shl_load(); 1787 1788 int main() { 1789 shl_load() 1790 ; return 0; } 1791 EOF 1792 if { (eval echo configure:1793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1793 rm -rf conftest* 1794 eval "ac_cv_lib_$ac_lib_var=yes" 1795 else 1796 echo "configure: failed program was:" >&5 1797 cat conftest.$ac_ext >&5 1798 rm -rf conftest* 1799 eval "ac_cv_lib_$ac_lib_var=no" 1800 fi 1801 rm -f conftest* 1802 LIBS="$ac_save_LIBS" 1803 1804 fi 1805 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1806 echo "$ac_t""yes" 1>&6 1807 ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1808 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1809 cat >> confdefs.h <<EOF 1810 #define $ac_tr_lib 1 1811 EOF 3701 1812 3702 1813 LIBS="-ldld $LIBS" 3703 1814 1815 else 1816 echo "$ac_t""no" 1>&6 3704 1817 fi 3705 1818 … … 3713 1826 ;; 3714 1827 *Linux*) 3715 3716 echo " $as_me:$LINENO: checking for dlopen in -ldl" >&53717 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 3718 if test "${ac_cv_lib_dl_dlopen+set}" = set; then3719 echo $ ECHO_N "(cached) $ECHO_C">&63720 else 3721 ac_ check_lib_save_LIBS=$LIBS1828 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 1829 echo "configure:1830: checking for dlopen in -ldl" >&5 1830 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` 1831 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1832 echo $ac_n "(cached) $ac_c" 1>&6 1833 else 1834 ac_save_LIBS="$LIBS" 3722 1835 LIBS="-ldl $LIBS" 3723 cat >conftest.$ac_ext <<_ACEOF 3724 #line $LINENO "configure" 3725 /* confdefs.h. */ 3726 _ACEOF 3727 cat confdefs.h >>conftest.$ac_ext 3728 cat >>conftest.$ac_ext <<_ACEOF 3729 /* end confdefs.h. */ 3730 1836 cat > conftest.$ac_ext <<EOF 1837 #line 1838 "configure" 1838 #include "confdefs.h" 3731 1839 /* Override any gcc2 internal prototype to avoid an error. */ 3732 #ifdef __cplusplus3733 extern "C"3734 #endif3735 1840 /* We use char because int might match the return type of a gcc2 3736 builtin and then its argument prototype would still apply. */ 3737 char dlopen (); 3738 int 3739 main () 3740 { 3741 dlopen (); 3742 ; 3743 return 0; 3744 } 3745 _ACEOF 3746 rm -f conftest.$ac_objext conftest$ac_exeext 3747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3748 (eval $ac_link) 2>&5 3749 ac_status=$? 3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3751 (exit $ac_status); } && 3752 { ac_try='test -s conftest$ac_exeext' 3753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3754 (eval $ac_try) 2>&5 3755 ac_status=$? 3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3757 (exit $ac_status); }; }; then 3758 ac_cv_lib_dl_dlopen=yes 3759 else 3760 echo "$as_me: failed program was:" >&5 3761 sed 's/^/| /' conftest.$ac_ext >&5 3762 3763 ac_cv_lib_dl_dlopen=no 3764 fi 3765 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3766 LIBS=$ac_check_lib_save_LIBS 3767 fi 3768 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 3769 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 3770 if test $ac_cv_lib_dl_dlopen = yes; then 3771 cat >>confdefs.h <<_ACEOF 3772 #define HAVE_LIBDL 1 3773 _ACEOF 1841 builtin and then its argument prototype would still apply. */ 1842 char dlopen(); 1843 1844 int main() { 1845 dlopen() 1846 ; return 0; } 1847 EOF 1848 if { (eval echo configure:1849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1849 rm -rf conftest* 1850 eval "ac_cv_lib_$ac_lib_var=yes" 1851 else 1852 echo "configure: failed program was:" >&5 1853 cat conftest.$ac_ext >&5 1854 rm -rf conftest* 1855 eval "ac_cv_lib_$ac_lib_var=no" 1856 fi 1857 rm -f conftest* 1858 LIBS="$ac_save_LIBS" 1859 1860 fi 1861 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1862 echo "$ac_t""yes" 1>&6 1863 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1864 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1865 cat >> confdefs.h <<EOF 1866 #define $ac_tr_lib 1 1867 EOF 3774 1868 3775 1869 LIBS="-ldl $LIBS" 3776 1870 3777 fi 3778 3779 if test "$ac_cv_lib_dl_dlopen" = yes; then 1871 else 1872 echo "$ac_t""no" 1>&6 1873 fi 1874 1875 if test "$ac_cv_lib_c_dlopen" = yes; then 3780 1876 LD_DYN_FLAGS="-ldl -rdynamic" 3781 1877 SFLAGS="-fpic -DPIC" 3782 SLDFLAGS=-shared 1878 SLDFLAGS=-shared 3783 1879 LD=ld 3784 1880 ac_lib_dl=yes … … 3793 1889 ;; 3794 1890 SunOS-5) 3795 3796 echo " $as_me:$LINENO: checking for dlopen in -ldl" >&53797 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 3798 if test "${ac_cv_lib_dl_dlopen+set}" = set; then3799 echo $ ECHO_N "(cached) $ECHO_C">&63800 else 3801 ac_ check_lib_save_LIBS=$LIBS1891 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 1892 echo "configure:1893: checking for dlopen in -ldl" >&5 1893 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` 1894 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1895 echo $ac_n "(cached) $ac_c" 1>&6 1896 else 1897 ac_save_LIBS="$LIBS" 3802 1898 LIBS="-ldl $LIBS" 3803 cat >conftest.$ac_ext <<_ACEOF 3804 #line $LINENO "configure" 3805 /* confdefs.h. */ 3806 _ACEOF 3807 cat confdefs.h >>conftest.$ac_ext 3808 cat >>conftest.$ac_ext <<_ACEOF 3809 /* end confdefs.h. */ 3810 1899 cat > conftest.$ac_ext <<EOF 1900 #line 1901 "configure" 1901 #include "confdefs.h" 3811 1902 /* Override any gcc2 internal prototype to avoid an error. */ 3812 #ifdef __cplusplus3813 extern "C"3814 #endif3815 1903 /* We use char because int might match the return type of a gcc2 3816 builtin and then its argument prototype would still apply. */ 3817 char dlopen (); 3818 int 3819 main () 3820 { 3821 dlopen (); 3822 ; 3823 return 0; 3824 } 3825 _ACEOF 3826 rm -f conftest.$ac_objext conftest$ac_exeext 3827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3828 (eval $ac_link) 2>&5 3829 ac_status=$? 3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3831 (exit $ac_status); } && 3832 { ac_try='test -s conftest$ac_exeext' 3833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3834 (eval $ac_try) 2>&5 3835 ac_status=$? 3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3837 (exit $ac_status); }; }; then 3838 ac_cv_lib_dl_dlopen=yes 3839 else 3840 echo "$as_me: failed program was:" >&5 3841 sed 's/^/| /' conftest.$ac_ext >&5 3842 3843 ac_cv_lib_dl_dlopen=no 3844 fi 3845 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3846 LIBS=$ac_check_lib_save_LIBS 3847 fi 3848 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 3849 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 3850 if test $ac_cv_lib_dl_dlopen = yes; then 3851 cat >>confdefs.h <<_ACEOF 3852 #define HAVE_LIBDL 1 3853 _ACEOF 1904 builtin and then its argument prototype would still apply. */ 1905 char dlopen(); 1906 1907 int main() { 1908 dlopen() 1909 ; return 0; } 1910 EOF 1911 if { (eval echo configure:1912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1912 rm -rf conftest* 1913 eval "ac_cv_lib_$ac_lib_var=yes" 1914 else 1915 echo "configure: failed program was:" >&5 1916 cat conftest.$ac_ext >&5 1917 rm -rf conftest* 1918 eval "ac_cv_lib_$ac_lib_var=no" 1919 fi 1920 rm -f conftest* 1921 LIBS="$ac_save_LIBS" 1922 1923 fi 1924 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1925 echo "$ac_t""yes" 1>&6 1926 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1927 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1928 cat >> confdefs.h <<EOF 1929 #define $ac_tr_lib 1 1930 EOF 3854 1931 3855 1932 LIBS="-ldl $LIBS" 3856 1933 1934 else 1935 echo "$ac_t""no" 1>&6 3857 1936 fi 3858 1937 … … 3866 1945 ;; 3867 1946 ppcMac-darwin) 3868 3869 echo " $as_me:$LINENO: checking for dlopen in -ldl" >&53870 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 3871 if test "${ac_cv_lib_dl_dlopen+set}" = set; then3872 echo $ ECHO_N "(cached) $ECHO_C">&63873 else 3874 ac_ check_lib_save_LIBS=$LIBS1947 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 1948 echo "configure:1949: checking for dlopen in -ldl" >&5 1949 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` 1950 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1951 echo $ac_n "(cached) $ac_c" 1>&6 1952 else 1953 ac_save_LIBS="$LIBS" 3875 1954 LIBS="-ldl $LIBS" 3876 cat >conftest.$ac_ext <<_ACEOF 3877 #line $LINENO "configure" 3878 /* confdefs.h. */ 3879 _ACEOF 3880 cat confdefs.h >>conftest.$ac_ext 3881 cat >>conftest.$ac_ext <<_ACEOF 3882 /* end confdefs.h. */ 3883 1955 cat > conftest.$ac_ext <<EOF 1956 #line 1957 "configure" 1957 #include "confdefs.h" 3884 1958 /* Override any gcc2 internal prototype to avoid an error. */ 3885 #ifdef __cplusplus3886 extern "C"3887 #endif3888 1959 /* We use char because int might match the return type of a gcc2 3889 builtin and then its argument prototype would still apply. */ 3890 char dlopen (); 3891 int 3892 main () 3893 { 3894 dlopen (); 3895 ; 3896 return 0; 3897 } 3898 _ACEOF 3899 rm -f conftest.$ac_objext conftest$ac_exeext 3900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3901 (eval $ac_link) 2>&5 3902 ac_status=$? 3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3904 (exit $ac_status); } && 3905 { ac_try='test -s conftest$ac_exeext' 3906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3907 (eval $ac_try) 2>&5 3908 ac_status=$? 3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3910 (exit $ac_status); }; }; then 3911 ac_cv_lib_dl_dlopen=yes 3912 else 3913 echo "$as_me: failed program was:" >&5 3914 sed 's/^/| /' conftest.$ac_ext >&5 3915 3916 ac_cv_lib_dl_dlopen=no 3917 fi 3918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3919 LIBS=$ac_check_lib_save_LIBS 3920 fi 3921 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 3922 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 3923 if test $ac_cv_lib_dl_dlopen = yes; then 3924 cat >>confdefs.h <<_ACEOF 3925 #define HAVE_LIBDL 1 3926 _ACEOF 1960 builtin and then its argument prototype would still apply. */ 1961 char dlopen(); 1962 1963 int main() { 1964 dlopen() 1965 ; return 0; } 1966 EOF 1967 if { (eval echo configure:1968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1968 rm -rf conftest* 1969 eval "ac_cv_lib_$ac_lib_var=yes" 1970 else 1971 echo "configure: failed program was:" >&5 1972 cat conftest.$ac_ext >&5 1973 rm -rf conftest* 1974 eval "ac_cv_lib_$ac_lib_var=no" 1975 fi 1976 rm -f conftest* 1977 LIBS="$ac_save_LIBS" 1978 1979 fi 1980 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1981 echo "$ac_t""yes" 1>&6 1982 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1983 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1984 cat >> confdefs.h <<EOF 1985 #define $ac_tr_lib 1 1986 EOF 3927 1987 3928 1988 LIBS="-ldl $LIBS" 3929 1989 1990 else 1991 echo "$ac_t""no" 1>&6 3930 1992 fi 3931 1993 … … 3938 2000 fi 3939 2001 ;; 2002 ix86-freebsd) 2003 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6 2004 echo "configure:2005: checking for dlopen in -lc" >&5 2005 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'` 2006 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2007 echo $ac_n "(cached) $ac_c" 1>&6 2008 else 2009 ac_save_LIBS="$LIBS" 2010 LIBS="-lc $LIBS" 2011 cat > conftest.$ac_ext <<EOF 2012 #line 2013 "configure" 2013 #include "confdefs.h" 2014 /* Override any gcc2 internal prototype to avoid an error. */ 2015 /* We use char because int might match the return type of a gcc2 2016 builtin and then its argument prototype would still apply. */ 2017 char dlopen(); 2018 2019 int main() { 2020 dlopen() 2021 ; return 0; } 2022 EOF 2023 if { (eval echo configure:2024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2024 rm -rf conftest* 2025 eval "ac_cv_lib_$ac_lib_var=yes" 2026 else 2027 echo "configure: failed program was:" >&5 2028 cat conftest.$ac_ext >&5 2029 rm -rf conftest* 2030 eval "ac_cv_lib_$ac_lib_var=no" 2031 fi 2032 rm -f conftest* 2033 LIBS="$ac_save_LIBS" 2034 2035 fi 2036 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2037 echo "$ac_t""yes" 1>&6 2038 ac_tr_lib=HAVE_LIB`echo c | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 2039 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 2040 cat >> confdefs.h <<EOF 2041 #define $ac_tr_lib 1 2042 EOF 2043 2044 LIBS="-lc $LIBS" 2045 2046 else 2047 echo "$ac_t""no" 1>&6 2048 fi 2049 2050 if test "$ac_cv_lib_c_dlopen" = yes; then 2051 LD_DYN_FLAGS="-dynamic" 2052 SFLAGS="-fpic -DPIC" 2053 SLDFLAGS=-shared 2054 LD=ld 2055 ac_lib_dl=yes 2056 fi 2057 ;; 3940 2058 esac 3941 2059 … … 3947 2065 3948 2066 # heder file checks 3949 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3950 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3951 if test "${ac_cv_header_stdc+set}" = set; then 3952 echo $ECHO_N "(cached) $ECHO_C" >&6 3953 else 3954 cat >conftest.$ac_ext <<_ACEOF 3955 #line $LINENO "configure" 3956 /* confdefs.h. */ 3957 _ACEOF 3958 cat confdefs.h >>conftest.$ac_ext 3959 cat >>conftest.$ac_ext <<_ACEOF 3960 /* end confdefs.h. */ 2067 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 2068 echo "configure:2069: checking for ANSI C header files" >&5 2069 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 2070 echo $ac_n "(cached) $ac_c" 1>&6 2071 else 2072 cat > conftest.$ac_ext <<EOF 2073 #line 2074 "configure" 2074 #include "confdefs.h" 3961 2075 #include <stdlib.h> 3962 2076 #include <stdarg.h> 3963 2077 #include <string.h> 3964 2078 #include <float.h> 3965 3966 int 3967 main () 3968 { 3969 3970 ; 3971 return 0; 3972 } 3973 _ACEOF 3974 rm -f conftest.$ac_objext 3975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3976 (eval $ac_compile) 2>&5 3977 ac_status=$? 3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3979 (exit $ac_status); } && 3980 { ac_try='test -s conftest.$ac_objext' 3981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3982 (eval $ac_try) 2>&5 3983 ac_status=$? 3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3985 (exit $ac_status); }; }; then 2079 EOF 2080 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2081 { (eval echo configure:2082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2082 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2083 if test -z "$ac_err"; then 2084 rm -rf conftest* 3986 2085 ac_cv_header_stdc=yes 3987 2086 else 3988 echo "$as_me: failed program was:" >&5 3989 sed 's/^/| /' conftest.$ac_ext >&5 3990 3991 ac_cv_header_stdc=no 3992 fi 3993 rm -f conftest.$ac_objext conftest.$ac_ext 2087 echo "$ac_err" >&5 2088 echo "configure: failed program was:" >&5 2089 cat conftest.$ac_ext >&5 2090 rm -rf conftest* 2091 ac_cv_header_stdc=no 2092 fi 2093 rm -f conftest* 3994 2094 3995 2095 if test $ac_cv_header_stdc = yes; then 3996 2096 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3997 cat >conftest.$ac_ext <<_ACEOF 3998 #line $LINENO "configure" 3999 /* confdefs.h. */ 4000 _ACEOF 4001 cat confdefs.h >>conftest.$ac_ext 4002 cat >>conftest.$ac_ext <<_ACEOF 4003 /* end confdefs.h. */ 2097 cat > conftest.$ac_ext <<EOF 2098 #line 2099 "configure" 2099 #include "confdefs.h" 4004 2100 #include <string.h> 4005 4006 _ACEOF 2101 EOF 4007 2102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4008 $EGREP"memchr" >/dev/null 2>&1; then2103 egrep "memchr" >/dev/null 2>&1; then 4009 2104 : 4010 2105 else 2106 rm -rf conftest* 4011 2107 ac_cv_header_stdc=no 4012 2108 fi … … 4017 2113 if test $ac_cv_header_stdc = yes; then 4018 2114 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4019 cat >conftest.$ac_ext <<_ACEOF 4020 #line $LINENO "configure" 4021 /* confdefs.h. */ 4022 _ACEOF 4023 cat confdefs.h >>conftest.$ac_ext 4024 cat >>conftest.$ac_ext <<_ACEOF 4025 /* end confdefs.h. */ 2115 cat > conftest.$ac_ext <<EOF 2116 #line 2117 "configure" 2117 #include "confdefs.h" 4026 2118 #include <stdlib.h> 4027 4028 _ACEOF 2119 EOF 4029 2120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4030 $EGREP"free" >/dev/null 2>&1; then2121 egrep "free" >/dev/null 2>&1; then 4031 2122 : 4032 2123 else 2124 rm -rf conftest* 4033 2125 ac_cv_header_stdc=no 4034 2126 fi … … 4039 2131 if test $ac_cv_header_stdc = yes; then 4040 2132 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4041 2133 if test "$cross_compiling" = yes; then 4042 2134 : 4043 2135 else 4044 cat >conftest.$ac_ext <<_ACEOF 4045 #line $LINENO "configure" 4046 /* confdefs.h. */ 4047 _ACEOF 4048 cat confdefs.h >>conftest.$ac_ext 4049 cat >>conftest.$ac_ext <<_ACEOF 4050 /* end confdefs.h. */ 2136 cat > conftest.$ac_ext <<EOF 2137 #line 2138 "configure" 2138 #include "confdefs.h" 4051 2139 #include <ctype.h> 4052 #if ((' ' & 0x0FF) == 0x020) 4053 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4054 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4055 #else 4056 # define ISLOWER(c) \ 4057 (('a' <= (c) && (c) <= 'i') \ 4058 || ('j' <= (c) && (c) <= 'r') \ 4059 || ('s' <= (c) && (c) <= 'z')) 4060 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4061 #endif 4062 2140 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2141 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4063 2142 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4064 int 4065 main () 4066 { 4067 int i; 4068 for (i = 0; i < 256; i++) 4069 if (XOR (islower (i), ISLOWER (i)) 4070 || toupper (i) != TOUPPER (i)) 4071 exit(2); 4072 exit (0); 4073 } 4074 _ACEOF 4075 rm -f conftest$ac_exeext 4076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4077 (eval $ac_link) 2>&5 4078 ac_status=$? 4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4080 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4082 (eval $ac_try) 2>&5 4083 ac_status=$? 4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4085 (exit $ac_status); }; }; then 2143 int main () { int i; for (i = 0; i < 256; i++) 2144 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 2145 exit (0); } 2146 2147 EOF 2148 if { (eval echo configure:2149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2149 then 4086 2150 : 4087 2151 else 4088 echo "$as_me: program exited with status $ac_status" >&5 4089 echo "$as_me: failed program was:" >&5 4090 sed 's/^/| /' conftest.$ac_ext >&5 4091 4092 ( exit $ac_status ) 4093 ac_cv_header_stdc=no 4094 fi 4095 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4096 fi 4097 fi 4098 fi 4099 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4100 echo "${ECHO_T}$ac_cv_header_stdc" >&6 2152 echo "configure: failed program was:" >&5 2153 cat conftest.$ac_ext >&5 2154 rm -fr conftest* 2155 ac_cv_header_stdc=no 2156 fi 2157 rm -fr conftest* 2158 fi 2159 2160 fi 2161 fi 2162 2163 echo "$ac_t""$ac_cv_header_stdc" 1>&6 4101 2164 if test $ac_cv_header_stdc = yes; then 4102 4103 cat >>confdefs.h <<\_ACEOF 2165 cat >> confdefs.h <<\EOF 4104 2166 #define STDC_HEADERS 1 4105 _ACEOF 4106 4107 fi 4108 4109 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4120 inttypes.h stdint.h unistd.h 2167 EOF 2168 2169 fi 2170 2171 for ac_hdr in limits.h unistd.h 4121 2172 do 4122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4123 echo "$as_me:$LINENO: checking for $ac_header" >&5 4124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4125 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4126 echo $ECHO_N "(cached) $ECHO_C" >&6 4127 else 4128 cat >conftest.$ac_ext <<_ACEOF 4129 #line $LINENO "configure" 4130 /* confdefs.h. */ 4131 _ACEOF 4132 cat confdefs.h >>conftest.$ac_ext 4133 cat >>conftest.$ac_ext <<_ACEOF 4134 /* end confdefs.h. */ 4135 $ac_includes_default 4136 4137 #include <$ac_header> 4138 _ACEOF 4139 rm -f conftest.$ac_objext 4140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4141 (eval $ac_compile) 2>&5 4142 ac_status=$? 4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4144 (exit $ac_status); } && 4145 { ac_try='test -s conftest.$ac_objext' 4146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4147 (eval $ac_try) 2>&5 4148 ac_status=$? 4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4150 (exit $ac_status); }; }; then 4151 eval "$as_ac_Header=yes" 4152 else 4153 echo "$as_me: failed program was:" >&5 4154 sed 's/^/| /' conftest.$ac_ext >&5 4155 4156 eval "$as_ac_Header=no" 4157 fi 4158 rm -f conftest.$ac_objext conftest.$ac_ext 4159 fi 4160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4161 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4162 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4163 cat >>confdefs.h <<_ACEOF 4164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4165 _ACEOF 4166 4167 fi 4168 2173 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2174 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2175 echo "configure:2176: checking for $ac_hdr" >&5 2176 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2177 echo $ac_n "(cached) $ac_c" 1>&6 2178 else 2179 cat > conftest.$ac_ext <<EOF 2180 #line 2181 "configure" 2181 #include "confdefs.h" 2182 #include <$ac_hdr> 2183 EOF 2184 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2185 { (eval echo configure:2186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2186 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2187 if test -z "$ac_err"; then 2188 rm -rf conftest* 2189 eval "ac_cv_header_$ac_safe=yes" 2190 else 2191 echo "$ac_err" >&5 2192 echo "configure: failed program was:" >&5 2193 cat conftest.$ac_ext >&5 2194 rm -rf conftest* 2195 eval "ac_cv_header_$ac_safe=no" 2196 fi 2197 rm -f conftest* 2198 fi 2199 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2200 echo "$ac_t""yes" 1>&6 2201 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2202 cat >> confdefs.h <<EOF 2203 #define $ac_tr_hdr 1 2204 EOF 2205 2206 else 2207 echo "$ac_t""no" 1>&6 2208 { echo "configure: error: Can not compile without limits.h unistd.h" 1>&2; exit 1; } 2209 fi 4169 2210 done 4170 2211 4171 2212 4172 4173 4174 for ac_header in limits.h unistd.h 4175 do 4176 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4177 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4178 echo "$as_me:$LINENO: checking for $ac_header" >&5 4179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4180 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4181 echo $ECHO_N "(cached) $ECHO_C" >&6 4182 fi 4183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4185 else 4186 # Is the header compilable? 4187 echo "$as_me:$LINENO: checking $ac_header usability" >&5 4188 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4189 cat >conftest.$ac_ext <<_ACEOF 4190 #line $LINENO "configure" 4191 /* confdefs.h. */ 4192 _ACEOF 4193 cat confdefs.h >>conftest.$ac_ext 4194 cat >>conftest.$ac_ext <<_ACEOF 4195 /* end confdefs.h. */ 4196 $ac_includes_default 4197 #include <$ac_header> 4198 _ACEOF 4199 rm -f conftest.$ac_objext 4200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4201 (eval $ac_compile) 2>&5 4202 ac_status=$? 4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4204 (exit $ac_status); } && 4205 { ac_try='test -s conftest.$ac_objext' 4206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4207 (eval $ac_try) 2>&5 4208 ac_status=$? 4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4210 (exit $ac_status); }; }; then 4211 ac_header_compiler=yes 4212 else 4213 echo "$as_me: failed program was:" >&5 4214 sed 's/^/| /' conftest.$ac_ext >&5 4215 4216 ac_header_compiler=no 4217 fi 4218 rm -f conftest.$ac_objext conftest.$ac_ext 4219 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4220 echo "${ECHO_T}$ac_header_compiler" >&6 4221 4222 # Is the header present? 4223 echo "$as_me:$LINENO: checking $ac_header presence" >&5 4224 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4225 cat >conftest.$ac_ext <<_ACEOF 4226 #line $LINENO "configure" 4227 /* confdefs.h. */ 4228 _ACEOF 4229 cat confdefs.h >>conftest.$ac_ext 4230 cat >>conftest.$ac_ext <<_ACEOF 4231 /* end confdefs.h. */ 4232 #include <$ac_header> 4233 _ACEOF 4234 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4235 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4236 ac_status=$? 4237 grep -v '^ *+' conftest.er1 >conftest.err 4238 rm -f conftest.er1 4239 cat conftest.err >&5 4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4241 (exit $ac_status); } >/dev/null; then 4242 if test -s conftest.err; then 4243 ac_cpp_err=$ac_c_preproc_warn_flag 4244 else 4245 ac_cpp_err= 4246 fi 4247 else 4248 ac_cpp_err=yes 4249 fi 4250 if test -z "$ac_cpp_err"; then 4251 ac_header_preproc=yes 4252 else 4253 echo "$as_me: failed program was:" >&5 4254 sed 's/^/| /' conftest.$ac_ext >&5 4255 4256 ac_header_preproc=no 4257 fi 4258 rm -f conftest.err conftest.$ac_ext 4259 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4260 echo "${ECHO_T}$ac_header_preproc" >&6 4261 4262 # So? What about this header? 4263 case $ac_header_compiler:$ac_header_preproc in 4264 yes:no ) 4265 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4266 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4268 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4269 ( 4270 cat <<\_ASBOX 4271 ## ------------------------------------ ## 4272 ## Report this to bug-autoconf@gnu.org. ## 4273 ## ------------------------------------ ## 4274 _ASBOX 4275 ) | 4276 sed "s/^/$as_me: WARNING: /" >&2 4277 ;; 4278 no:yes ) 4279 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4280 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4281 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4282 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4284 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4285 ( 4286 cat <<\_ASBOX 4287 ## ------------------------------------ ## 4288 ## Report this to bug-autoconf@gnu.org. ## 4289 ## ------------------------------------ ## 4290 _ASBOX 4291 ) | 4292 sed "s/^/$as_me: WARNING: /" >&2 4293 ;; 4294 esac 4295 echo "$as_me:$LINENO: checking for $ac_header" >&5 4296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4297 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4298 echo $ECHO_N "(cached) $ECHO_C" >&6 4299 else 4300 eval "$as_ac_Header=$ac_header_preproc" 4301 fi 4302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4304 4305 fi 4306 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4307 cat >>confdefs.h <<_ACEOF 4308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4309 _ACEOF 4310 4311 else 4312 { { echo "$as_me:$LINENO: error: Can not compile without limits.h unistd.h" >&5 4313 echo "$as_me: error: Can not compile without limits.h unistd.h" >&2;} 4314 { (exit 1); exit 1; }; } 4315 fi 4316 4317 done 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 for ac_header in sys/file.h sys/ioctl.h sys/time.h sys/times.h sys/types.h \ 2213 for ac_hdr in sys/file.h sys/ioctl.h sys/time.h sys/times.h sys/types.h \ 4336 2214 sys/stat.h fcntl.h sys/param.h pwd.h asm/sigcontext.h pwd.h termcap.h \ 4337 2215 termios.h term.h readline/readline.h 4338 2216 do 4339 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4340 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4341 echo "$as_me:$LINENO: checking for $ac_header" >&5 4342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4343 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4344 echo $ECHO_N "(cached) $ECHO_C" >&6 4345 fi 4346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4347 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4348 else 4349 # Is the header compilable? 4350 echo "$as_me:$LINENO: checking $ac_header usability" >&5 4351 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4352 cat >conftest.$ac_ext <<_ACEOF 4353 #line $LINENO "configure" 4354 /* confdefs.h. */ 4355 _ACEOF 4356 cat confdefs.h >>conftest.$ac_ext 4357 cat >>conftest.$ac_ext <<_ACEOF 4358 /* end confdefs.h. */ 4359 $ac_includes_default 4360 #include <$ac_header> 4361 _ACEOF 4362 rm -f conftest.$ac_objext 4363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4364 (eval $ac_compile) 2>&5 4365 ac_status=$? 4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4367 (exit $ac_status); } && 4368 { ac_try='test -s conftest.$ac_objext' 4369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4370 (eval $ac_try) 2>&5 4371 ac_status=$? 4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4373 (exit $ac_status); }; }; then 4374 ac_header_compiler=yes 4375 else 4376 echo "$as_me: failed program was:" >&5 4377 sed 's/^/| /' conftest.$ac_ext >&5 4378 4379 ac_header_compiler=no 4380 fi 4381 rm -f conftest.$ac_objext conftest.$ac_ext 4382 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4383 echo "${ECHO_T}$ac_header_compiler" >&6 4384 4385 # Is the header present? 4386 echo "$as_me:$LINENO: checking $ac_header presence" >&5 4387 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4388 cat >conftest.$ac_ext <<_ACEOF 4389 #line $LINENO "configure" 4390 /* confdefs.h. */ 4391 _ACEOF 4392 cat confdefs.h >>conftest.$ac_ext 4393 cat >>conftest.$ac_ext <<_ACEOF 4394 /* end confdefs.h. */ 4395 #include <$ac_header> 4396 _ACEOF 4397 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4398 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4399 ac_status=$? 4400 grep -v '^ *+' conftest.er1 >conftest.err 4401 rm -f conftest.er1 4402 cat conftest.err >&5 4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4404 (exit $ac_status); } >/dev/null; then 4405 if test -s conftest.err; then 4406 ac_cpp_err=$ac_c_preproc_warn_flag 4407 else 4408 ac_cpp_err= 4409 fi 4410 else 4411 ac_cpp_err=yes 4412 fi 4413 if test -z "$ac_cpp_err"; then 4414 ac_header_preproc=yes 4415 else 4416 echo "$as_me: failed program was:" >&5 4417 sed 's/^/| /' conftest.$ac_ext >&5 4418 4419 ac_header_preproc=no 4420 fi 4421 rm -f conftest.err conftest.$ac_ext 4422 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4423 echo "${ECHO_T}$ac_header_preproc" >&6 4424 4425 # So? What about this header? 4426 case $ac_header_compiler:$ac_header_preproc in 4427 yes:no ) 4428 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4429 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4431 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4432 ( 4433 cat <<\_ASBOX 4434 ## ------------------------------------ ## 4435 ## Report this to bug-autoconf@gnu.org. ## 4436 ## ------------------------------------ ## 4437 _ASBOX 4438 ) | 4439 sed "s/^/$as_me: WARNING: /" >&2 4440 ;; 4441 no:yes ) 4442 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4444 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4445 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4448 ( 4449 cat <<\_ASBOX 4450 ## ------------------------------------ ## 4451 ## Report this to bug-autoconf@gnu.org. ## 4452 ## ------------------------------------ ## 4453 _ASBOX 4454 ) | 4455 sed "s/^/$as_me: WARNING: /" >&2 4456 ;; 4457 esac 4458 echo "$as_me:$LINENO: checking for $ac_header" >&5 4459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4460 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4461 echo $ECHO_N "(cached) $ECHO_C" >&6 4462 else 4463 eval "$as_ac_Header=$ac_header_preproc" 4464 fi 4465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4466 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4467 4468 fi 4469 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4470 cat >>confdefs.h <<_ACEOF 4471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4472 _ACEOF 4473 4474 fi 4475 2217 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2218 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2219 echo "configure:2220: checking for $ac_hdr" >&5 2220 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2221 echo $ac_n "(cached) $ac_c" 1>&6 2222 else 2223 cat > conftest.$ac_ext <<EOF 2224 #line 2225 "configure" 2225 #include "confdefs.h" 2226 #include <$ac_hdr> 2227 EOF 2228 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2229 { (eval echo configure:2230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2230 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2231 if test -z "$ac_err"; then 2232 rm -rf conftest* 2233 eval "ac_cv_header_$ac_safe=yes" 2234 else 2235 echo "$ac_err" >&5 2236 echo "configure: failed program was:" >&5 2237 cat conftest.$ac_ext >&5 2238 rm -rf conftest* 2239 eval "ac_cv_header_$ac_safe=no" 2240 fi 2241 rm -f conftest* 2242 fi 2243 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2244 echo "$ac_t""yes" 1>&6 2245 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2246 cat >> confdefs.h <<EOF 2247 #define $ac_tr_hdr 1 2248 EOF 2249 2250 else 2251 echo "$ac_t""no" 1>&6 2252 fi 4476 2253 done 4477 2254 4478 2255 4479 2256 # typedefs, structures 4480 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 4481 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 4482 if test "${ac_cv_c_const+set}" = set; then 4483 echo $ECHO_N "(cached) $ECHO_C" >&6 4484 else 4485 cat >conftest.$ac_ext <<_ACEOF 4486 #line $LINENO "configure" 4487 /* confdefs.h. */ 4488 _ACEOF 4489 cat confdefs.h >>conftest.$ac_ext 4490 cat >>conftest.$ac_ext <<_ACEOF 4491 /* end confdefs.h. */ 4492 4493 int 4494 main () 4495 { 4496 /* FIXME: Include the comments suggested by Paul. */ 4497 #ifndef __cplusplus 4498 /* Ultrix mips cc rejects this. */ 4499 typedef int charset[2]; 4500 const charset x; 4501 /* SunOS 4.1.1 cc rejects this. */ 4502 char const *const *ccp; 4503 char **p; 4504 /* NEC SVR4.0.2 mips cc rejects this. */ 4505 struct point {int x, y;}; 4506 static struct point const zero = {0,0}; 4507 /* AIX XL C 1.02.0.0 rejects this. 4508 It does not let you subtract one const X* pointer from another in 4509 an arm of an if-expression whose if-part is not a constant 4510 expression */ 4511 const char *g = "string"; 4512 ccp = &g + (g ? g-g : 0); 4513 /* HPUX 7.0 cc rejects these. */ 4514 ++ccp; 4515 p = (char**) ccp; 4516 ccp = (char const *const *) p; 4517 { /* SCO 3.2v4 cc rejects this. */ 4518 char *t; 4519 char const *s = 0 ? (char *) 0 : (char const *) 0; 4520 4521 *t++ = 0; 4522 } 4523 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4524 int x[] = {25, 17}; 4525 const int *foo = &x[0]; 4526 ++foo; 4527 } 4528 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4529 typedef const int *iptr; 4530 iptr p = 0; 4531 ++p; 4532 } 4533 { /* AIX XL C 1.02.0.0 rejects this saying 4534 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4535 struct s { int j; const int *ap[3]; }; 4536 struct s *b; b->j = 5; 4537 } 4538 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4539 const int foo = 10; 4540 } 4541 #endif 4542 4543 ; 4544 return 0; 2257 echo $ac_n "checking for working const""... $ac_c" 1>&6 2258 echo "configure:2259: checking for working const" >&5 2259 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 2260 echo $ac_n "(cached) $ac_c" 1>&6 2261 else 2262 cat > conftest.$ac_ext <<EOF 2263 #line 2264 "configure" 2264 #include "confdefs.h" 2265 2266 int main() { 2267 2268 /* Ultrix mips cc rejects this. */ 2269 typedef int charset[2]; const charset x; 2270 /* SunOS 4.1.1 cc rejects this. */ 2271 char const *const *ccp; 2272 char **p; 2273 /* NEC SVR4.0.2 mips cc rejects this. */ 2274 struct point {int x, y;}; 2275 static struct point const zero = {0,0}; 2276 /* AIX XL C 1.02.0.0 rejects this. 2277 It does not let you subtract one const X* pointer from another in an arm 2278 of an if-expression whose if-part is not a constant expression */ 2279 const char *g = "string"; 2280 ccp = &g + (g ? g-g : 0); 2281 /* HPUX 7.0 cc rejects these. */ 2282 ++ccp; 2283 p = (char**) ccp; 2284 ccp = (char const *const *) p; 2285 { /* SCO 3.2v4 cc rejects this. */ 2286 char *t; 2287 char const *s = 0 ? (char *) 0 : (char const *) 0; 2288 2289 *t++ = 0; 4545 2290 } 4546 _ACEOF 4547 rm -f conftest.$ac_objext 4548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4549 (eval $ac_compile) 2>&5 4550 ac_status=$? 4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4552 (exit $ac_status); } && 4553 { ac_try='test -s conftest.$ac_objext' 4554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4555 (eval $ac_try) 2>&5 4556 ac_status=$? 4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4558 (exit $ac_status); }; }; then 2291 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 2292 int x[] = {25, 17}; 2293 const int *foo = &x[0]; 2294 ++foo; 2295 } 2296 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 2297 typedef const int *iptr; 2298 iptr p = 0; 2299 ++p; 2300 } 2301 { /* AIX XL C 1.02.0.0 rejects this saying 2302 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 2303 struct s { int j; const int *ap[3]; }; 2304 struct s *b; b->j = 5; 2305 } 2306 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 2307 const int foo = 10; 2308 } 2309 2310 ; return 0; } 2311 EOF 2312 if { (eval echo configure:2313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2313 rm -rf conftest* 4559 2314 ac_cv_c_const=yes 4560 2315 else 4561 echo " $as_me: failed program was:" >&54562 sed 's/^/| /'conftest.$ac_ext >&54563 4564 ac_cv_c_const=no4565 fi 4566 rm -f conftest .$ac_objext conftest.$ac_ext4567 fi 4568 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 4569 echo "$ {ECHO_T}$ac_cv_c_const">&62316 echo "configure: failed program was:" >&5 2317 cat conftest.$ac_ext >&5 2318 rm -rf conftest* 2319 ac_cv_c_const=no 2320 fi 2321 rm -f conftest* 2322 fi 2323 2324 echo "$ac_t""$ac_cv_c_const" 1>&6 4570 2325 if test $ac_cv_c_const = no; then 4571 4572 cat >>confdefs.h <<\_ACEOF 4573 #define const 4574 _ACEOF 4575 4576 fi 4577 4578 echo "$as_me:$LINENO: checking for inline" >&5 4579 echo $ECHO_N "checking for inline... $ECHO_C" >&6 4580 if test "${ac_cv_c_inline+set}" = set; then 4581 echo $ECHO_N "(cached) $ECHO_C" >&6 2326 cat >> confdefs.h <<\EOF 2327 #define const 2328 EOF 2329 2330 fi 2331 2332 echo $ac_n "checking for inline""... $ac_c" 1>&6 2333 echo "configure:2334: checking for inline" >&5 2334 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then 2335 echo $ac_n "(cached) $ac_c" 1>&6 4582 2336 else 4583 2337 ac_cv_c_inline=no 4584 2338 for ac_kw in inline __inline__ __inline; do 4585 cat >conftest.$ac_ext <<_ACEOF 4586 #line $LINENO "configure" 4587 /* confdefs.h. */ 4588 _ACEOF 4589 cat confdefs.h >>conftest.$ac_ext 4590 cat >>conftest.$ac_ext <<_ACEOF 4591 /* end confdefs.h. */ 4592 #ifndef __cplusplus 4593 typedef int foo_t; 4594 static $ac_kw foo_t static_foo () {return 0; } 4595 $ac_kw foo_t foo () {return 0; } 4596 #endif 4597 4598 _ACEOF 4599 rm -f conftest.$ac_objext 4600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4601 (eval $ac_compile) 2>&5 4602 ac_status=$? 4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4604 (exit $ac_status); } && 4605 { ac_try='test -s conftest.$ac_objext' 4606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4607 (eval $ac_try) 2>&5 4608 ac_status=$? 4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4610 (exit $ac_status); }; }; then 2339 cat > conftest.$ac_ext <<EOF 2340 #line 2341 "configure" 2341 #include "confdefs.h" 2342 2343 int main() { 2344 } $ac_kw foo() { 2345 ; return 0; } 2346 EOF 2347 if { (eval echo configure:2348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2348 rm -rf conftest* 4611 2349 ac_cv_c_inline=$ac_kw; break 4612 2350 else 4613 echo "$as_me: failed program was:" >&5 4614 sed 's/^/| /' conftest.$ac_ext >&5 4615 4616 fi 4617 rm -f conftest.$ac_objext conftest.$ac_ext 2351 echo "configure: failed program was:" >&5 2352 cat conftest.$ac_ext >&5 2353 fi 2354 rm -f conftest* 4618 2355 done 4619 2356 4620 2357 fi 4621 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 4622 echo "$ {ECHO_T}$ac_cv_c_inline">&64623 case $ac_cv_c_inlinein2358 2359 echo "$ac_t""$ac_cv_c_inline" 1>&6 2360 case "$ac_cv_c_inline" in 4624 2361 inline | yes) ;; 4625 no) 4626 cat >>confdefs.h <<\_ACEOF 4627 #define inline 4628 _ACEOF 2362 no) cat >> confdefs.h <<\EOF 2363 #define inline 2364 EOF 4629 2365 ;; 4630 *) cat >> confdefs.h <<_ACEOF2366 *) cat >> confdefs.h <<EOF 4631 2367 #define inline $ac_cv_c_inline 4632 _ACEOF2368 EOF 4633 2369 ;; 4634 2370 esac 4635 2371 4636 echo "$as_me:$LINENO: checking for size_t" >&5 4637 echo $ECHO_N "checking for size_t... $ECHO_C" >&6 4638 if test "${ac_cv_type_size_t+set}" = set; then 4639 echo $ECHO_N "(cached) $ECHO_C" >&6 4640 else 4641 cat >conftest.$ac_ext <<_ACEOF 4642 #line $LINENO "configure" 4643 /* confdefs.h. */ 4644 _ACEOF 4645 cat confdefs.h >>conftest.$ac_ext 4646 cat >>conftest.$ac_ext <<_ACEOF 4647 /* end confdefs.h. */ 4648 $ac_includes_default 4649 int 4650 main () 4651 { 4652 if ((size_t *) 0) 4653 return 0; 4654 if (sizeof (size_t)) 4655 return 0; 4656 ; 4657 return 0; 4658 } 4659 _ACEOF 4660 rm -f conftest.$ac_objext 4661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4662 (eval $ac_compile) 2>&5 4663 ac_status=$? 4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4665 (exit $ac_status); } && 4666 { ac_try='test -s conftest.$ac_objext' 4667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4668 (eval $ac_try) 2>&5 4669 ac_status=$? 4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4671 (exit $ac_status); }; }; then 2372 echo $ac_n "checking for size_t""... $ac_c" 1>&6 2373 echo "configure:2374: checking for size_t" >&5 2374 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 2375 echo $ac_n "(cached) $ac_c" 1>&6 2376 else 2377 cat > conftest.$ac_ext <<EOF 2378 #line 2379 "configure" 2379 #include "confdefs.h" 2380 #include <sys/types.h> 2381 #if STDC_HEADERS 2382 #include <stdlib.h> 2383 #include <stddef.h> 2384 #endif 2385 EOF 2386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2387 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 2388 rm -rf conftest* 4672 2389 ac_cv_type_size_t=yes 4673 2390 else 4674 echo "$as_me: failed program was:" >&5 4675 sed 's/^/| /' conftest.$ac_ext >&5 4676 4677 ac_cv_type_size_t=no 4678 fi 4679 rm -f conftest.$ac_objext conftest.$ac_ext 4680 fi 4681 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 4682 echo "${ECHO_T}$ac_cv_type_size_t" >&6 4683 if test $ac_cv_type_size_t = yes; then 4684 : 4685 else 4686 4687 cat >>confdefs.h <<_ACEOF 2391 rm -rf conftest* 2392 ac_cv_type_size_t=no 2393 fi 2394 rm -f conftest* 2395 2396 fi 2397 echo "$ac_t""$ac_cv_type_size_t" 1>&6 2398 if test $ac_cv_type_size_t = no; then 2399 cat >> confdefs.h <<\EOF 4688 2400 #define size_t unsigned 4689 _ACEOF 4690 4691 fi 4692 4693 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 4694 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 4695 if test "${ac_cv_struct_tm+set}" = set; then 4696 echo $ECHO_N "(cached) $ECHO_C" >&6 4697 else 4698 cat >conftest.$ac_ext <<_ACEOF 4699 #line $LINENO "configure" 4700 /* confdefs.h. */ 4701 _ACEOF 4702 cat confdefs.h >>conftest.$ac_ext 4703 cat >>conftest.$ac_ext <<_ACEOF 4704 /* end confdefs.h. */ 2401 EOF 2402 2403 fi 2404 2405 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 2406 echo "configure:2407: checking whether struct tm is in sys/time.h or time.h" >&5 2407 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then 2408 echo $ac_n "(cached) $ac_c" 1>&6 2409 else 2410 cat > conftest.$ac_ext <<EOF 2411 #line 2412 "configure" 2412 #include "confdefs.h" 4705 2413 #include <sys/types.h> 4706 2414 #include <time.h> 4707 4708 int 4709 main () 4710 { 2415 int main() { 4711 2416 struct tm *tp; tp->tm_sec; 4712 ; 4713 return 0; 4714 } 4715 _ACEOF 4716 rm -f conftest.$ac_objext 4717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4718 (eval $ac_compile) 2>&5 4719 ac_status=$? 4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4721 (exit $ac_status); } && 4722 { ac_try='test -s conftest.$ac_objext' 4723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4724 (eval $ac_try) 2>&5 4725 ac_status=$? 4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4727 (exit $ac_status); }; }; then 2417 ; return 0; } 2418 EOF 2419 if { (eval echo configure:2420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2420 rm -rf conftest* 4728 2421 ac_cv_struct_tm=time.h 4729 2422 else 4730 echo " $as_me: failed program was:" >&54731 sed 's/^/| /'conftest.$ac_ext >&54732 4733 ac_cv_struct_tm=sys/time.h4734 fi 4735 rm -f conftest .$ac_objext conftest.$ac_ext4736 fi 4737 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 4738 echo "$ {ECHO_T}$ac_cv_struct_tm">&62423 echo "configure: failed program was:" >&5 2424 cat conftest.$ac_ext >&5 2425 rm -rf conftest* 2426 ac_cv_struct_tm=sys/time.h 2427 fi 2428 rm -f conftest* 2429 fi 2430 2431 echo "$ac_t""$ac_cv_struct_tm" 1>&6 4739 2432 if test $ac_cv_struct_tm = sys/time.h; then 4740 4741 cat >>confdefs.h <<\_ACEOF 2433 cat >> confdefs.h <<\EOF 4742 2434 #define TM_IN_SYS_TIME 1 4743 _ACEOF 4744 4745 fi 4746 4747 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 4748 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 4749 if test "${ac_cv_header_time+set}" = set; then 4750 echo $ECHO_N "(cached) $ECHO_C" >&6 4751 else 4752 cat >conftest.$ac_ext <<_ACEOF 4753 #line $LINENO "configure" 4754 /* confdefs.h. */ 4755 _ACEOF 4756 cat confdefs.h >>conftest.$ac_ext 4757 cat >>conftest.$ac_ext <<_ACEOF 4758 /* end confdefs.h. */ 2435 EOF 2436 2437 fi 2438 2439 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 2440 echo "configure:2441: checking whether time.h and sys/time.h may both be included" >&5 2441 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 2442 echo $ac_n "(cached) $ac_c" 1>&6 2443 else 2444 cat > conftest.$ac_ext <<EOF 2445 #line 2446 "configure" 2446 #include "confdefs.h" 4759 2447 #include <sys/types.h> 4760 2448 #include <sys/time.h> 4761 2449 #include <time.h> 4762 4763 int 4764 main () 4765 { 4766 if ((struct tm *) 0) 4767 return 0; 4768 ; 4769 return 0; 4770 } 4771 _ACEOF 4772 rm -f conftest.$ac_objext 4773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4774 (eval $ac_compile) 2>&5 4775 ac_status=$? 4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4777 (exit $ac_status); } && 4778 { ac_try='test -s conftest.$ac_objext' 4779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4780 (eval $ac_try) 2>&5 4781 ac_status=$? 4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4783 (exit $ac_status); }; }; then 2450 int main() { 2451 struct tm *tp; 2452 ; return 0; } 2453 EOF 2454 if { (eval echo configure:2455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2455 rm -rf conftest* 4784 2456 ac_cv_header_time=yes 4785 2457 else 4786 echo " $as_me: failed program was:" >&54787 sed 's/^/| /'conftest.$ac_ext >&54788 4789 ac_cv_header_time=no4790 fi 4791 rm -f conftest .$ac_objext conftest.$ac_ext4792 fi 4793 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 4794 echo "$ {ECHO_T}$ac_cv_header_time">&62458 echo "configure: failed program was:" >&5 2459 cat conftest.$ac_ext >&5 2460 rm -rf conftest* 2461 ac_cv_header_time=no 2462 fi 2463 rm -f conftest* 2464 fi 2465 2466 echo "$ac_t""$ac_cv_header_time" 1>&6 4795 2467 if test $ac_cv_header_time = yes; then 4796 4797 cat >>confdefs.h <<\_ACEOF 2468 cat >> confdefs.h <<\EOF 4798 2469 #define TIME_WITH_SYS_TIME 1 4799 _ACEOF2470 EOF 4800 2471 4801 2472 fi … … 4805 2476 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 4806 2477 # for constant arguments. Useless! 4807 echo "$as_me:$LINENO: checking for working alloca.h" >&5 4808 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 4809 if test "${ac_cv_working_alloca_h+set}" = set; then 4810 echo $ECHO_N "(cached) $ECHO_C" >&6 4811 else 4812 cat >conftest.$ac_ext <<_ACEOF 4813 #line $LINENO "configure" 4814 /* confdefs.h. */ 4815 _ACEOF 4816 cat confdefs.h >>conftest.$ac_ext 4817 cat >>conftest.$ac_ext <<_ACEOF 4818 /* end confdefs.h. */ 2478 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 2479 echo "configure:2480: checking for working alloca.h" >&5 2480 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then 2481 echo $ac_n "(cached) $ac_c" 1>&6 2482 else 2483 cat > conftest.$ac_ext <<EOF 2484 #line 2485 "configure" 2485 #include "confdefs.h" 4819 2486 #include <alloca.h> 4820 int 4821 main () 4822 { 4823 char *p = (char *) alloca (2 * sizeof (int)); 4824 ; 4825 return 0; 4826 } 4827 _ACEOF 4828 rm -f conftest.$ac_objext conftest$ac_exeext 4829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4830 (eval $ac_link) 2>&5 4831 ac_status=$? 4832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4833 (exit $ac_status); } && 4834 { ac_try='test -s conftest$ac_exeext' 4835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4836 (eval $ac_try) 2>&5 4837 ac_status=$? 4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4839 (exit $ac_status); }; }; then 4840 ac_cv_working_alloca_h=yes 4841 else 4842 echo "$as_me: failed program was:" >&5 4843 sed 's/^/| /' conftest.$ac_ext >&5 4844 4845 ac_cv_working_alloca_h=no 4846 fi 4847 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4848 fi 4849 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 4850 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 4851 if test $ac_cv_working_alloca_h = yes; then 4852 4853 cat >>confdefs.h <<\_ACEOF 2487 int main() { 2488 char *p = alloca(2 * sizeof(int)); 2489 ; return 0; } 2490 EOF 2491 if { (eval echo configure:2492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2492 rm -rf conftest* 2493 ac_cv_header_alloca_h=yes 2494 else 2495 echo "configure: failed program was:" >&5 2496 cat conftest.$ac_ext >&5 2497 rm -rf conftest* 2498 ac_cv_header_alloca_h=no 2499 fi 2500 rm -f conftest* 2501 fi 2502 2503 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 2504 if test $ac_cv_header_alloca_h = yes; then 2505 cat >> confdefs.h <<\EOF 4854 2506 #define HAVE_ALLOCA_H 1 4855 _ACEOF 4856 4857 fi 4858 4859 echo "$as_me:$LINENO: checking for alloca" >&5 4860 echo $ECHO_N "checking for alloca... $ECHO_C" >&6 4861 if test "${ac_cv_func_alloca_works+set}" = set; then 4862 echo $ECHO_N "(cached) $ECHO_C" >&6 4863 else 4864 cat >conftest.$ac_ext <<_ACEOF 4865 #line $LINENO "configure" 4866 /* confdefs.h. */ 4867 _ACEOF 4868 cat confdefs.h >>conftest.$ac_ext 4869 cat >>conftest.$ac_ext <<_ACEOF 4870 /* end confdefs.h. */ 2507 EOF 2508 2509 fi 2510 2511 echo $ac_n "checking for alloca""... $ac_c" 1>&6 2512 echo "configure:2513: checking for alloca" >&5 2513 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then 2514 echo $ac_n "(cached) $ac_c" 1>&6 2515 else 2516 cat > conftest.$ac_ext <<EOF 2517 #line 2518 "configure" 2518 #include "confdefs.h" 2519 4871 2520 #ifdef __GNUC__ 4872 2521 # define alloca __builtin_alloca … … 4890 2539 #endif 4891 2540 4892 int 4893 main () 4894 { 4895 char *p = (char *) alloca (1); 4896 ; 4897 return 0; 4898 } 4899 _ACEOF 4900 rm -f conftest.$ac_objext conftest$ac_exeext 4901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4902 (eval $ac_link) 2>&5 4903 ac_status=$? 4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4905 (exit $ac_status); } && 4906 { ac_try='test -s conftest$ac_exeext' 4907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4908 (eval $ac_try) 2>&5 4909 ac_status=$? 4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4911 (exit $ac_status); }; }; then 2541 int main() { 2542 char *p = (char *) alloca(1); 2543 ; return 0; } 2544 EOF 2545 if { (eval echo configure:2546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2546 rm -rf conftest* 4912 2547 ac_cv_func_alloca_works=yes 4913 2548 else 4914 echo "$as_me: failed program was:" >&5 4915 sed 's/^/| /' conftest.$ac_ext >&5 4916 4917 ac_cv_func_alloca_works=no 4918 fi 4919 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4920 fi 4921 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 4922 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 4923 2549 echo "configure: failed program was:" >&5 2550 cat conftest.$ac_ext >&5 2551 rm -rf conftest* 2552 ac_cv_func_alloca_works=no 2553 fi 2554 rm -f conftest* 2555 fi 2556 2557 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 4924 2558 if test $ac_cv_func_alloca_works = yes; then 4925 4926 cat >>confdefs.h <<\_ACEOF 2559 cat >> confdefs.h <<\EOF 4927 2560 #define HAVE_ALLOCA 1 4928 _ACEOF 4929 4930 else 2561 EOF 2562 2563 fi 2564 2565 if test $ac_cv_func_alloca_works = no; then 4931 2566 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 4932 # that cause trouble. Some versions do not even contain alloca or 4933 # contain a buggy version. If you still want to use their alloca, 4934 # use ar to extract alloca.o from them instead of compiling alloca.c. 4935 4936 ALLOCA=alloca.$ac_objext 4937 4938 cat >>confdefs.h <<\_ACEOF 2567 # that cause trouble. Some versions do not even contain alloca or 2568 # contain a buggy version. If you still want to use their alloca, 2569 # use ar to extract alloca.o from them instead of compiling alloca.c. 2570 ALLOCA=alloca.${ac_objext} 2571 cat >> confdefs.h <<\EOF 4939 2572 #define C_ALLOCA 1 4940 _ACEOF 4941 4942 4943 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 4944 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 4945 if test "${ac_cv_os_cray+set}" = set; then 4946 echo $ECHO_N "(cached) $ECHO_C" >&6 4947 else 4948 cat >conftest.$ac_ext <<_ACEOF 4949 #line $LINENO "configure" 4950 /* confdefs.h. */ 4951 _ACEOF 4952 cat confdefs.h >>conftest.$ac_ext 4953 cat >>conftest.$ac_ext <<_ACEOF 4954 /* end confdefs.h. */ 2573 EOF 2574 2575 2576 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 2577 echo "configure:2578: checking whether alloca needs Cray hooks" >&5 2578 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 2579 echo $ac_n "(cached) $ac_c" 1>&6 2580 else 2581 cat > conftest.$ac_ext <<EOF 2582 #line 2583 "configure" 2583 #include "confdefs.h" 4955 2584 #if defined(CRAY) && ! defined(CRAY2) 4956 2585 webecray … … 4959 2588 #endif 4960 2589 4961 _ACEOF2590 EOF 4962 2591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4963 $EGREP "webecray" >/dev/null 2>&1; then 2592 egrep "webecray" >/dev/null 2>&1; then 2593 rm -rf conftest* 4964 2594 ac_cv_os_cray=yes 4965 2595 else 2596 rm -rf conftest* 4966 2597 ac_cv_os_cray=no 4967 2598 fi … … 4969 2600 4970 2601 fi 4971 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 4972 echo "$ {ECHO_T}$ac_cv_os_cray">&62602 2603 echo "$ac_t""$ac_cv_os_cray" 1>&6 4973 2604 if test $ac_cv_os_cray = yes; then 4974 for ac_func in _getb67 GETB67 getb67; do 4975 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 4976 echo "$as_me:$LINENO: checking for $ac_func" >&5 4977 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 4978 if eval "test \"\${$as_ac_var+set}\" = set"; then 4979 echo $ECHO_N "(cached) $ECHO_C" >&6 4980 else 4981 cat >conftest.$ac_ext <<_ACEOF 4982 #line $LINENO "configure" 4983 /* confdefs.h. */ 4984 _ACEOF 4985 cat confdefs.h >>conftest.$ac_ext 4986 cat >>conftest.$ac_ext <<_ACEOF 4987 /* end confdefs.h. */ 2605 for ac_func in _getb67 GETB67 getb67; do 2606 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2607 echo "configure:2608: checking for $ac_func" >&5 2608 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2609 echo $ac_n "(cached) $ac_c" 1>&6 2610 else 2611 cat > conftest.$ac_ext <<EOF 2612 #line 2613 "configure" 2613 #include "confdefs.h" 4988 2614 /* System header to define __stub macros and hopefully few prototypes, 4989 which can conflict with char $ac_func (); below. 4990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4991 <limits.h> exists even on freestanding compilers. */ 4992 #ifdef __STDC__ 4993 # include <limits.h> 4994 #else 4995 # include <assert.h> 4996 #endif 2615 which can conflict with char $ac_func(); below. */ 2616 #include <assert.h> 4997 2617 /* Override any gcc2 internal prototype to avoid an error. */ 4998 #ifdef __cplusplus4999 extern "C"5000 {5001 #endif5002 2618 /* We use char because int might match the return type of a gcc2 5003 builtin and then its argument prototype would still apply. */ 5004 char $ac_func (); 2619 builtin and then its argument prototype would still apply. */ 2620 char $ac_func(); 2621 2622 int main() { 2623 5005 2624 /* The GNU C library defines this for functions which it implements 5006 2625 to always fail with ENOSYS. Some functions are actually named … … 5009 2628 choke me 5010 2629 #else 5011 char (*f) () = $ac_func;2630 $ac_func(); 5012 2631 #endif 5013 #ifdef __cplusplus 5014 } 5015 #endif 5016 5017 int 5018 main () 5019 { 5020 return f != $ac_func; 5021 ; 5022 return 0; 5023 } 5024 _ACEOF 5025 rm -f conftest.$ac_objext conftest$ac_exeext 5026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5027 (eval $ac_link) 2>&5 5028 ac_status=$? 5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5030 (exit $ac_status); } && 5031 { ac_try='test -s conftest$ac_exeext' 5032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5033 (eval $ac_try) 2>&5 5034 ac_status=$? 5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5036 (exit $ac_status); }; }; then 5037 eval "$as_ac_var=yes" 5038 else 5039 echo "$as_me: failed program was:" >&5 5040 sed 's/^/| /' conftest.$ac_ext >&5 5041 5042 eval "$as_ac_var=no" 5043 fi 5044 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5045 fi 5046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5047 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5048 if test `eval echo '${'$as_ac_var'}'` = yes; then 5049 5050 cat >>confdefs.h <<_ACEOF 2632 2633 ; return 0; } 2634 EOF 2635 if { (eval echo configure:2636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2636 rm -rf conftest* 2637 eval "ac_cv_func_$ac_func=yes" 2638 else 2639 echo "configure: failed program was:" >&5 2640 cat conftest.$ac_ext >&5 2641 rm -rf conftest* 2642 eval "ac_cv_func_$ac_func=no" 2643 fi 2644 rm -f conftest* 2645 fi 2646 2647 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2648 echo "$ac_t""yes" 1>&6 2649 cat >> confdefs.h <<EOF 5051 2650 #define CRAY_STACKSEG_END $ac_func 5052 _ACEOF 5053 5054 break 5055 fi 5056 5057 done 5058 fi 5059 5060 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 5061 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 5062 if test "${ac_cv_c_stack_direction+set}" = set; then 5063 echo $ECHO_N "(cached) $ECHO_C" >&6 2651 EOF 2652 2653 break 2654 else 2655 echo "$ac_t""no" 1>&6 2656 fi 2657 2658 done 2659 fi 2660 2661 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 2662 echo "configure:2663: checking stack direction for C alloca" >&5 2663 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 2664 echo $ac_n "(cached) $ac_c" 1>&6 5064 2665 else 5065 2666 if test "$cross_compiling" = yes; then 5066 2667 ac_cv_c_stack_direction=0 5067 2668 else 5068 cat >conftest.$ac_ext <<_ACEOF 5069 #line $LINENO "configure" 5070 /* confdefs.h. */ 5071 _ACEOF 5072 cat confdefs.h >>conftest.$ac_ext 5073 cat >>conftest.$ac_ext <<_ACEOF 5074 /* end confdefs.h. */ 5075 int 2669 cat > conftest.$ac_ext <<EOF 2670 #line 2671 "configure" 2671 #include "confdefs.h" 5076 2672 find_stack_direction () 5077 2673 { … … 5086 2682 return (&dummy > addr) ? 1 : -1; 5087 2683 } 5088 5089 int5090 2684 main () 5091 2685 { 5092 exit (find_stack_direction 2686 exit (find_stack_direction() < 0); 5093 2687 } 5094 _ACEOF 5095 rm -f conftest$ac_exeext 5096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5097 (eval $ac_link) 2>&5 5098 ac_status=$? 5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5102 (eval $ac_try) 2>&5 5103 ac_status=$? 5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5105 (exit $ac_status); }; }; then 2688 EOF 2689 if { (eval echo configure:2690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2690 then 5106 2691 ac_cv_c_stack_direction=1 5107 2692 else 5108 echo "$as_me: program exited with status $ac_status" >&5 5109 echo "$as_me: failed program was:" >&5 5110 sed 's/^/| /' conftest.$ac_ext >&5 5111 5112 ( exit $ac_status ) 5113 ac_cv_c_stack_direction=-1 5114 fi 5115 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5116 fi 5117 fi 5118 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 5119 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 5120 5121 cat >>confdefs.h <<_ACEOF 2693 echo "configure: failed program was:" >&5 2694 cat conftest.$ac_ext >&5 2695 rm -fr conftest* 2696 ac_cv_c_stack_direction=-1 2697 fi 2698 rm -fr conftest* 2699 fi 2700 2701 fi 2702 2703 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 2704 cat >> confdefs.h <<EOF 5122 2705 #define STACK_DIRECTION $ac_cv_c_stack_direction 5123 _ACEOF 5124 5125 5126 fi 5127 5128 if test $ac_cv_c_compiler_gnu = yes; then 5129 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 5130 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 5131 if test "${ac_cv_prog_gcc_traditional+set}" = set; then 5132 echo $ECHO_N "(cached) $ECHO_C" >&6 2706 EOF 2707 2708 fi 2709 2710 if test $ac_cv_prog_gcc = yes; then 2711 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 2712 echo "configure:2713: checking whether ${CC-cc} needs -traditional" >&5 2713 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then 2714 echo $ac_n "(cached) $ac_c" 1>&6 5133 2715 else 5134 2716 ac_pattern="Autoconf.*'x'" 5135 cat >conftest.$ac_ext <<_ACEOF 5136 #line $LINENO "configure" 5137 /* confdefs.h. */ 5138 _ACEOF 5139 cat confdefs.h >>conftest.$ac_ext 5140 cat >>conftest.$ac_ext <<_ACEOF 5141 /* end confdefs.h. */ 2717 cat > conftest.$ac_ext <<EOF 2718 #line 2719 "configure" 2719 #include "confdefs.h" 5142 2720 #include <sgtty.h> 5143 2721 Autoconf TIOCGETP 5144 _ACEOF2722 EOF 5145 2723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5146 $EGREP "$ac_pattern" >/dev/null 2>&1; then 2724 egrep "$ac_pattern" >/dev/null 2>&1; then 2725 rm -rf conftest* 5147 2726 ac_cv_prog_gcc_traditional=yes 5148 2727 else 2728 rm -rf conftest* 5149 2729 ac_cv_prog_gcc_traditional=no 5150 2730 fi … … 5153 2733 5154 2734 if test $ac_cv_prog_gcc_traditional = no; then 5155 cat >conftest.$ac_ext <<_ACEOF 5156 #line $LINENO "configure" 5157 /* confdefs.h. */ 5158 _ACEOF 5159 cat confdefs.h >>conftest.$ac_ext 5160 cat >>conftest.$ac_ext <<_ACEOF 5161 /* end confdefs.h. */ 2735 cat > conftest.$ac_ext <<EOF 2736 #line 2737 "configure" 2737 #include "confdefs.h" 5162 2738 #include <termio.h> 5163 2739 Autoconf TCGETA 5164 _ACEOF2740 EOF 5165 2741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5166 $EGREP "$ac_pattern" >/dev/null 2>&1; then 2742 egrep "$ac_pattern" >/dev/null 2>&1; then 2743 rm -rf conftest* 5167 2744 ac_cv_prog_gcc_traditional=yes 5168 2745 fi … … 5171 2748 fi 5172 2749 fi 5173 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 5174 echo "$ {ECHO_T}$ac_cv_prog_gcc_traditional">&62750 2751 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 5175 2752 if test $ac_cv_prog_gcc_traditional = yes; then 5176 2753 CC="$CC -traditional" … … 5178 2755 fi 5179 2756 5180 5181 5182 for ac_header in stdlib.h unistd.h 2757 for ac_hdr in unistd.h 5183 2758 do 5184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5185 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5186 echo "$as_me:$LINENO: checking for $ac_header" >&5 5187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5188 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5189 echo $ECHO_N "(cached) $ECHO_C" >&6 5190 fi 5191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5193 else 5194 # Is the header compilable? 5195 echo "$as_me:$LINENO: checking $ac_header usability" >&5 5196 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 5197 cat >conftest.$ac_ext <<_ACEOF 5198 #line $LINENO "configure" 5199 /* confdefs.h. */ 5200 _ACEOF 5201 cat confdefs.h >>conftest.$ac_ext 5202 cat >>conftest.$ac_ext <<_ACEOF 5203 /* end confdefs.h. */ 5204 $ac_includes_default 5205 #include <$ac_header> 5206 _ACEOF 5207 rm -f conftest.$ac_objext 5208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5209 (eval $ac_compile) 2>&5 5210 ac_status=$? 5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5212 (exit $ac_status); } && 5213 { ac_try='test -s conftest.$ac_objext' 5214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5215 (eval $ac_try) 2>&5 5216 ac_status=$? 5217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5218 (exit $ac_status); }; }; then 5219 ac_header_compiler=yes 5220 else 5221 echo "$as_me: failed program was:" >&5 5222 sed 's/^/| /' conftest.$ac_ext >&5 5223 5224 ac_header_compiler=no 5225 fi 5226 rm -f conftest.$ac_objext conftest.$ac_ext 5227 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5228 echo "${ECHO_T}$ac_header_compiler" >&6 5229 5230 # Is the header present? 5231 echo "$as_me:$LINENO: checking $ac_header presence" >&5 5232 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5233 cat >conftest.$ac_ext <<_ACEOF 5234 #line $LINENO "configure" 5235 /* confdefs.h. */ 5236 _ACEOF 5237 cat confdefs.h >>conftest.$ac_ext 5238 cat >>conftest.$ac_ext <<_ACEOF 5239 /* end confdefs.h. */ 5240 #include <$ac_header> 5241 _ACEOF 5242 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5243 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5244 ac_status=$? 5245 grep -v '^ *+' conftest.er1 >conftest.err 5246 rm -f conftest.er1 5247 cat conftest.err >&5 5248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5249 (exit $ac_status); } >/dev/null; then 5250 if test -s conftest.err; then 5251 ac_cpp_err=$ac_c_preproc_warn_flag 5252 else 5253 ac_cpp_err= 5254 fi 5255 else 5256 ac_cpp_err=yes 5257 fi 5258 if test -z "$ac_cpp_err"; then 5259 ac_header_preproc=yes 5260 else 5261 echo "$as_me: failed program was:" >&5 5262 sed 's/^/| /' conftest.$ac_ext >&5 5263 5264 ac_header_preproc=no 5265 fi 5266 rm -f conftest.err conftest.$ac_ext 5267 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5268 echo "${ECHO_T}$ac_header_preproc" >&6 5269 5270 # So? What about this header? 5271 case $ac_header_compiler:$ac_header_preproc in 5272 yes:no ) 5273 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5274 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5276 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5277 ( 5278 cat <<\_ASBOX 5279 ## ------------------------------------ ## 5280 ## Report this to bug-autoconf@gnu.org. ## 5281 ## ------------------------------------ ## 5282 _ASBOX 5283 ) | 5284 sed "s/^/$as_me: WARNING: /" >&2 5285 ;; 5286 no:yes ) 5287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5290 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5293 ( 5294 cat <<\_ASBOX 5295 ## ------------------------------------ ## 5296 ## Report this to bug-autoconf@gnu.org. ## 5297 ## ------------------------------------ ## 5298 _ASBOX 5299 ) | 5300 sed "s/^/$as_me: WARNING: /" >&2 5301 ;; 5302 esac 5303 echo "$as_me:$LINENO: checking for $ac_header" >&5 5304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5305 if eval "test \"\${$as_ac_Header+set}\" = set"; then 5306 echo $ECHO_N "(cached) $ECHO_C" >&6 5307 else 5308 eval "$as_ac_Header=$ac_header_preproc" 5309 fi 5310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5312 5313 fi 5314 if test `eval echo '${'$as_ac_Header'}'` = yes; then 5315 cat >>confdefs.h <<_ACEOF 5316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5317 _ACEOF 5318 5319 fi 5320 2759 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2760 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2761 echo "configure:2762: checking for $ac_hdr" >&5 2762 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2763 echo $ac_n "(cached) $ac_c" 1>&6 2764 else 2765 cat > conftest.$ac_ext <<EOF 2766 #line 2767 "configure" 2767 #include "confdefs.h" 2768 #include <$ac_hdr> 2769 EOF 2770 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2771 { (eval echo configure:2772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2772 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2773 if test -z "$ac_err"; then 2774 rm -rf conftest* 2775 eval "ac_cv_header_$ac_safe=yes" 2776 else 2777 echo "$ac_err" >&5 2778 echo "configure: failed program was:" >&5 2779 cat conftest.$ac_ext >&5 2780 rm -rf conftest* 2781 eval "ac_cv_header_$ac_safe=no" 2782 fi 2783 rm -f conftest* 2784 fi 2785 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2786 echo "$ac_t""yes" 1>&6 2787 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2788 cat >> confdefs.h <<EOF 2789 #define $ac_tr_hdr 1 2790 EOF 2791 2792 else 2793 echo "$ac_t""no" 1>&6 2794 fi 5321 2795 done 5322 5323 2796 5324 2797 for ac_func in getpagesize 5325 2798 do 5326 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5327 echo "$as_me:$LINENO: checking for $ac_func" >&5 5328 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5329 if eval "test \"\${$as_ac_var+set}\" = set"; then 5330 echo $ECHO_N "(cached) $ECHO_C" >&6 5331 else 5332 cat >conftest.$ac_ext <<_ACEOF 5333 #line $LINENO "configure" 5334 /* confdefs.h. */ 5335 _ACEOF 5336 cat confdefs.h >>conftest.$ac_ext 5337 cat >>conftest.$ac_ext <<_ACEOF 5338 /* end confdefs.h. */ 2799 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2800 echo "configure:2801: checking for $ac_func" >&5 2801 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2802 echo $ac_n "(cached) $ac_c" 1>&6 2803 else 2804 cat > conftest.$ac_ext <<EOF 2805 #line 2806 "configure" 2806 #include "confdefs.h" 5339 2807 /* System header to define __stub macros and hopefully few prototypes, 5340 which can conflict with char $ac_func (); below. 5341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5342 <limits.h> exists even on freestanding compilers. */ 5343 #ifdef __STDC__ 5344 # include <limits.h> 5345 #else 5346 # include <assert.h> 5347 #endif 2808 which can conflict with char $ac_func(); below. */ 2809 #include <assert.h> 5348 2810 /* Override any gcc2 internal prototype to avoid an error. */ 5349 #ifdef __cplusplus5350 extern "C"5351 {5352 #endif5353 2811 /* We use char because int might match the return type of a gcc2 5354 builtin and then its argument prototype would still apply. */ 5355 char $ac_func (); 2812 builtin and then its argument prototype would still apply. */ 2813 char $ac_func(); 2814 2815 int main() { 2816 5356 2817 /* The GNU C library defines this for functions which it implements 5357 2818 to always fail with ENOSYS. Some functions are actually named … … 5360 2821 choke me 5361 2822 #else 5362 char (*f) () = $ac_func;2823 $ac_func(); 5363 2824 #endif 5364 #ifdef __cplusplus 5365 } 5366 #endif 5367 5368 int 5369 main () 5370 { 5371 return f != $ac_func; 5372 ; 5373 return 0; 5374 } 5375 _ACEOF 5376 rm -f conftest.$ac_objext conftest$ac_exeext 5377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5378 (eval $ac_link) 2>&5 5379 ac_status=$? 5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5381 (exit $ac_status); } && 5382 { ac_try='test -s conftest$ac_exeext' 5383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5384 (eval $ac_try) 2>&5 5385 ac_status=$? 5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5387 (exit $ac_status); }; }; then 5388 eval "$as_ac_var=yes" 5389 else 5390 echo "$as_me: failed program was:" >&5 5391 sed 's/^/| /' conftest.$ac_ext >&5 5392 5393 eval "$as_ac_var=no" 5394 fi 5395 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5396 fi 5397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5398 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5399 if test `eval echo '${'$as_ac_var'}'` = yes; then 5400 cat >>confdefs.h <<_ACEOF 5401 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5402 _ACEOF 5403 2825 2826 ; return 0; } 2827 EOF 2828 if { (eval echo configure:2829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2829 rm -rf conftest* 2830 eval "ac_cv_func_$ac_func=yes" 2831 else 2832 echo "configure: failed program was:" >&5 2833 cat conftest.$ac_ext >&5 2834 rm -rf conftest* 2835 eval "ac_cv_func_$ac_func=no" 2836 fi 2837 rm -f conftest* 2838 fi 2839 2840 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2841 echo "$ac_t""yes" 1>&6 2842 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2843 cat >> confdefs.h <<EOF 2844 #define $ac_tr_func 1 2845 EOF 2846 2847 else 2848 echo "$ac_t""no" 1>&6 5404 2849 fi 5405 2850 done 5406 2851 5407 echo "$as_me:$LINENO: checking for working mmap" >&55408 echo $ECHO_N "checking for working mmap... $ECHO_C" >&65409 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then5410 echo $ ECHO_N "(cached) $ECHO_C">&62852 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 2853 echo "configure:2854: checking for working mmap" >&5 2854 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then 2855 echo $ac_n "(cached) $ac_c" 1>&6 5411 2856 else 5412 2857 if test "$cross_compiling" = yes; then 5413 2858 ac_cv_func_mmap_fixed_mapped=no 5414 2859 else 5415 cat >conftest.$ac_ext <<_ACEOF 5416 #line $LINENO "configure" 5417 /* confdefs.h. */ 5418 _ACEOF 5419 cat confdefs.h >>conftest.$ac_ext 5420 cat >>conftest.$ac_ext <<_ACEOF 5421 /* end confdefs.h. */ 5422 $ac_includes_default 5423 /* malloc might have been renamed as rpl_malloc. */ 5424 #undef malloc 2860 cat > conftest.$ac_ext <<EOF 2861 #line 2862 "configure" 2862 #include "confdefs.h" 5425 2863 5426 2864 /* Thanks to Mike Haertel and Jim Avera for this test. … … 5436 2874 address. (There have been systems where private was not correctly 5437 2875 implemented like the infamous i386 svr4.0, and systems where the 5438 VM page cache was not coherent with the file 2876 VM page cache was not coherent with the filesystem buffer cache 5439 2877 like early versions of FreeBSD and possibly contemporary NetBSD.) 5440 2878 For shared mappings, we should conversely verify that changes get 5441 prop agated back to all the places they're supposed to be.2879 propogated back to all the places they're supposed to be. 5442 2880 5443 2881 Grep wants private fixed already mapped. … … 5445 2883 * does it exist and is it safe to write into the mmap'd area 5446 2884 * how to use it (BSD variants) */ 5447 2885 #include <sys/types.h> 5448 2886 #include <fcntl.h> 5449 2887 #include <sys/mman.h> 5450 2888 5451 #if !STDC_HEADERS && !HAVE_STDLIB_H5452 char *malloc ();5453 #endif5454 5455 2889 /* This mess was copied from the GNU getpagesize.h. */ 5456 #if !HAVE_GETPAGESIZE 2890 #ifndef HAVE_GETPAGESIZE 2891 # ifdef HAVE_UNISTD_H 2892 # include <unistd.h> 2893 # endif 2894 5457 2895 /* Assume that all systems that can run configure have sys/param.h. */ 5458 # if !HAVE_SYS_PARAM_H2896 # ifndef HAVE_SYS_PARAM_H 5459 2897 # define HAVE_SYS_PARAM_H 1 5460 2898 # endif … … 5463 2901 # define getpagesize() sysconf(_SC_PAGESIZE) 5464 2902 # else /* no _SC_PAGESIZE */ 5465 # if HAVE_SYS_PARAM_H2903 # ifdef HAVE_SYS_PARAM_H 5466 2904 # include <sys/param.h> 5467 2905 # ifdef EXEC_PAGESIZE … … 5490 2928 #endif /* no HAVE_GETPAGESIZE */ 5491 2929 2930 #ifdef __cplusplus 2931 extern "C" { void *malloc(unsigned); } 2932 #else 2933 char *malloc(); 2934 #endif 2935 5492 2936 int 5493 main 2937 main() 5494 2938 { 5495 char *data, *data2, *data3; 5496 int i, pagesize; 5497 int fd; 5498 5499 pagesize = getpagesize (); 5500 5501 /* First, make a file with some known garbage in it. */ 5502 data = (char *) malloc (pagesize); 5503 if (!data) 5504 exit (1); 5505 for (i = 0; i < pagesize; ++i) 5506 *(data + i) = rand (); 5507 umask (0); 5508 fd = creat ("conftest.mmap", 0600); 5509 if (fd < 0) 5510 exit (1); 5511 if (write (fd, data, pagesize) != pagesize) 5512 exit (1); 5513 close (fd); 5514 5515 /* Next, try to mmap the file at a fixed address which already has 5516 something else allocated at it. If we can, also make sure that 5517 we see the same garbage. */ 5518 fd = open ("conftest.mmap", O_RDWR); 5519 if (fd < 0) 5520 exit (1); 5521 data2 = (char *) malloc (2 * pagesize); 5522 if (!data2) 5523 exit (1); 5524 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); 5525 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 5526 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 5527 exit (1); 5528 for (i = 0; i < pagesize; ++i) 5529 if (*(data + i) != *(data2 + i)) 5530 exit (1); 5531 5532 /* Finally, make sure that changes to the mapped area do not 5533 percolate back to the file as seen by read(). (This is a bug on 5534 some variants of i386 svr4.0.) */ 5535 for (i = 0; i < pagesize; ++i) 5536 *(data2 + i) = *(data2 + i) + 1; 5537 data3 = (char *) malloc (pagesize); 5538 if (!data3) 5539 exit (1); 5540 if (read (fd, data3, pagesize) != pagesize) 5541 exit (1); 5542 for (i = 0; i < pagesize; ++i) 5543 if (*(data + i) != *(data3 + i)) 5544 exit (1); 5545 close (fd); 5546 exit (0); 2939 char *data, *data2, *data3; 2940 int i, pagesize; 2941 int fd; 2942 2943 pagesize = getpagesize(); 2944 2945 /* 2946 * First, make a file with some known garbage in it. 2947 */ 2948 data = malloc(pagesize); 2949 if (!data) 2950 exit(1); 2951 for (i = 0; i < pagesize; ++i) 2952 *(data + i) = rand(); 2953 umask(0); 2954 fd = creat("conftestmmap", 0600); 2955 if (fd < 0) 2956 exit(1); 2957 if (write(fd, data, pagesize) != pagesize) 2958 exit(1); 2959 close(fd); 2960 2961 /* 2962 * Next, try to mmap the file at a fixed address which 2963 * already has something else allocated at it. If we can, 2964 * also make sure that we see the same garbage. 2965 */ 2966 fd = open("conftestmmap", O_RDWR); 2967 if (fd < 0) 2968 exit(1); 2969 data2 = malloc(2 * pagesize); 2970 if (!data2) 2971 exit(1); 2972 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); 2973 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, 2974 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 2975 exit(1); 2976 for (i = 0; i < pagesize; ++i) 2977 if (*(data + i) != *(data2 + i)) 2978 exit(1); 2979 2980 /* 2981 * Finally, make sure that changes to the mapped area 2982 * do not percolate back to the file as seen by read(). 2983 * (This is a bug on some variants of i386 svr4.0.) 2984 */ 2985 for (i = 0; i < pagesize; ++i) 2986 *(data2 + i) = *(data2 + i) + 1; 2987 data3 = malloc(pagesize); 2988 if (!data3) 2989 exit(1); 2990 if (read(fd, data3, pagesize) != pagesize) 2991 exit(1); 2992 for (i = 0; i < pagesize; ++i) 2993 if (*(data + i) != *(data3 + i)) 2994 exit(1); 2995 close(fd); 2996 unlink("conftestmmap"); 2997 exit(0); 5547 2998 } 5548 _ACEOF 5549 rm -f conftest$ac_exeext 5550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5551 (eval $ac_link) 2>&5 5552 ac_status=$? 5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5554 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5556 (eval $ac_try) 2>&5 5557 ac_status=$? 5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5559 (exit $ac_status); }; }; then 2999 3000 EOF 3001 if { (eval echo configure:3002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3002 then 5560 3003 ac_cv_func_mmap_fixed_mapped=yes 5561 3004 else 5562 echo "$as_me: program exited with status $ac_status" >&5 5563 echo "$as_me: failed program was:" >&5 5564 sed 's/^/| /' conftest.$ac_ext >&5 5565 5566 ( exit $ac_status ) 5567 ac_cv_func_mmap_fixed_mapped=no 5568 fi 5569 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5570 fi 5571 fi 5572 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 5573 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 3005 echo "configure: failed program was:" >&5 3006 cat conftest.$ac_ext >&5 3007 rm -fr conftest* 3008 ac_cv_func_mmap_fixed_mapped=no 3009 fi 3010 rm -fr conftest* 3011 fi 3012 3013 fi 3014 3015 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 5574 3016 if test $ac_cv_func_mmap_fixed_mapped = yes; then 5575 5576 cat >>confdefs.h <<\_ACEOF 3017 cat >> confdefs.h <<\EOF 5577 3018 #define HAVE_MMAP 1 5578 _ACEOF 5579 5580 fi 5581 rm -f conftest.mmap 5582 5583 echo "$as_me:$LINENO: checking return type of signal handlers" >&5 5584 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 5585 if test "${ac_cv_type_signal+set}" = set; then 5586 echo $ECHO_N "(cached) $ECHO_C" >&6 5587 else 5588 cat >conftest.$ac_ext <<_ACEOF 5589 #line $LINENO "configure" 5590 /* confdefs.h. */ 5591 _ACEOF 5592 cat confdefs.h >>conftest.$ac_ext 5593 cat >>conftest.$ac_ext <<_ACEOF 5594 /* end confdefs.h. */ 3019 EOF 3020 3021 fi 3022 3023 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 3024 echo "configure:3025: checking return type of signal handlers" >&5 3025 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 3026 echo $ac_n "(cached) $ac_c" 1>&6 3027 else 3028 cat > conftest.$ac_ext <<EOF 3029 #line 3030 "configure" 3030 #include "confdefs.h" 5595 3031 #include <sys/types.h> 5596 3032 #include <signal.h> 5597 3033 #ifdef signal 5598 # 3034 #undef signal 5599 3035 #endif 5600 3036 #ifdef __cplusplus … … 5604 3040 #endif 5605 3041 5606 int 5607 main () 5608 { 3042 int main() { 5609 3043 int i; 5610 ; 5611 return 0; 5612 } 5613 _ACEOF 5614 rm -f conftest.$ac_objext 5615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5616 (eval $ac_compile) 2>&5 5617 ac_status=$? 5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5619 (exit $ac_status); } && 5620 { ac_try='test -s conftest.$ac_objext' 5621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5622 (eval $ac_try) 2>&5 5623 ac_status=$? 5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5625 (exit $ac_status); }; }; then 3044 ; return 0; } 3045 EOF 3046 if { (eval echo configure:3047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3047 rm -rf conftest* 5626 3048 ac_cv_type_signal=void 5627 3049 else 5628 echo "$as_me: failed program was:" >&5 5629 sed 's/^/| /' conftest.$ac_ext >&5 5630 5631 ac_cv_type_signal=int 5632 fi 5633 rm -f conftest.$ac_objext conftest.$ac_ext 5634 fi 5635 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 5636 echo "${ECHO_T}$ac_cv_type_signal" >&6 5637 5638 cat >>confdefs.h <<_ACEOF 3050 echo "configure: failed program was:" >&5 3051 cat conftest.$ac_ext >&5 3052 rm -rf conftest* 3053 ac_cv_type_signal=int 3054 fi 3055 rm -f conftest* 3056 fi 3057 3058 echo "$ac_t""$ac_cv_type_signal" 1>&6 3059 cat >> confdefs.h <<EOF 5639 3060 #define RETSIGTYPE $ac_cv_type_signal 5640 _ACEOF 5641 5642 5643 5644 for ac_func in vprintf 3061 EOF 3062 3063 3064 echo $ac_n "checking for vprintf""... $ac_c" 1>&6 3065 echo "configure:3066: checking for vprintf" >&5 3066 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then 3067 echo $ac_n "(cached) $ac_c" 1>&6 3068 else 3069 cat > conftest.$ac_ext <<EOF 3070 #line 3071 "configure" 3071 #include "confdefs.h" 3072 /* System header to define __stub macros and hopefully few prototypes, 3073 which can conflict with char vprintf(); below. */ 3074 #include <assert.h> 3075 /* Override any gcc2 internal prototype to avoid an error. */ 3076 /* We use char because int might match the return type of a gcc2 3077 builtin and then its argument prototype would still apply. */ 3078 char vprintf(); 3079 3080 int main() { 3081 3082 /* The GNU C library defines this for functions which it implements 3083 to always fail with ENOSYS. Some functions are actually named 3084 something starting with __ and the normal name is an alias. */ 3085 #if defined (__stub_vprintf) || defined (__stub___vprintf) 3086 choke me 3087 #else 3088 vprintf(); 3089 #endif 3090 3091 ; return 0; } 3092 EOF 3093 if { (eval echo configure:3094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3094 rm -rf conftest* 3095 eval "ac_cv_func_vprintf=yes" 3096 else 3097 echo "configure: failed program was:" >&5 3098 cat conftest.$ac_ext >&5 3099 rm -rf conftest* 3100 eval "ac_cv_func_vprintf=no" 3101 fi 3102 rm -f conftest* 3103 fi 3104 3105 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then 3106 echo "$ac_t""yes" 1>&6 3107 cat >> confdefs.h <<\EOF 3108 #define HAVE_VPRINTF 1 3109 EOF 3110 3111 else 3112 echo "$ac_t""no" 1>&6 3113 fi 3114 3115 if test "$ac_cv_func_vprintf" != yes; then 3116 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 3117 echo "configure:3118: checking for _doprnt" >&5 3118 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then 3119 echo $ac_n "(cached) $ac_c" 1>&6 3120 else 3121 cat > conftest.$ac_ext <<EOF 3122 #line 3123 "configure" 3123 #include "confdefs.h" 3124 /* System header to define __stub macros and hopefully few prototypes, 3125 which can conflict with char _doprnt(); below. */ 3126 #include <assert.h> 3127 /* Override any gcc2 internal prototype to avoid an error. */ 3128 /* We use char because int might match the return type of a gcc2 3129 builtin and then its argument prototype would still apply. */ 3130 char _doprnt(); 3131 3132 int main() { 3133 3134 /* The GNU C library defines this for functions which it implements 3135 to always fail with ENOSYS. Some functions are actually named 3136 something starting with __ and the normal name is an alias. */ 3137 #if defined (__stub__doprnt) || defined (__stub____doprnt) 3138 choke me 3139 #else 3140 _doprnt(); 3141 #endif 3142 3143 ; return 0; } 3144 EOF 3145 if { (eval echo configure:3146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3146 rm -rf conftest* 3147 eval "ac_cv_func__doprnt=yes" 3148 else 3149 echo "configure: failed program was:" >&5 3150 cat conftest.$ac_ext >&5 3151 rm -rf conftest* 3152 eval "ac_cv_func__doprnt=no" 3153 fi 3154 rm -f conftest* 3155 fi 3156 3157 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then 3158 echo "$ac_t""yes" 1>&6 3159 cat >> confdefs.h <<\EOF 3160 #define HAVE_DOPRNT 1 3161 EOF 3162 3163 else 3164 echo "$ac_t""no" 1>&6 3165 fi 3166 3167 fi 3168 3169 3170 echo $ac_n "checking for library containing setenv""... $ac_c" 1>&6 3171 echo "configure:3172: checking for library containing setenv" >&5 3172 if eval "test \"`echo '$''{'ac_cv_search_setenv'+set}'`\" = set"; then 3173 echo $ac_n "(cached) $ac_c" 1>&6 3174 else 3175 ac_func_search_save_LIBS="$LIBS" 3176 ac_cv_search_setenv="no" 3177 cat > conftest.$ac_ext <<EOF 3178 #line 3179 "configure" 3179 #include "confdefs.h" 3180 /* Override any gcc2 internal prototype to avoid an error. */ 3181 /* We use char because int might match the return type of a gcc2 3182 builtin and then its argument prototype would still apply. */ 3183 char setenv(); 3184 3185 int main() { 3186 setenv() 3187 ; return 0; } 3188 EOF 3189 if { (eval echo configure:3190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3190 rm -rf conftest* 3191 ac_cv_search_setenv="none required" 3192 else 3193 echo "configure: failed program was:" >&5 3194 cat conftest.$ac_ext >&5 3195 fi 3196 rm -f conftest* 3197 test "$ac_cv_search_setenv" = "no" && for i in bsd; do 3198 LIBS="-l$i $ac_func_search_save_LIBS" 3199 cat > conftest.$ac_ext <<EOF 3200 #line 3201 "configure" 3201 #include "confdefs.h" 3202 /* Override any gcc2 internal prototype to avoid an error. */ 3203 /* We use char because int might match the return type of a gcc2 3204 builtin and then its argument prototype would still apply. */ 3205 char setenv(); 3206 3207 int main() { 3208 setenv() 3209 ; return 0; } 3210 EOF 3211 if { (eval echo configure:3212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3212 rm -rf conftest* 3213 ac_cv_search_setenv="-l$i" 3214 break 3215 else 3216 echo "configure: failed program was:" >&5 3217 cat conftest.$ac_ext >&5 3218 fi 3219 rm -f conftest* 3220 done 3221 LIBS="$ac_func_search_save_LIBS" 3222 fi 3223 3224 echo "$ac_t""$ac_cv_search_setenv" 1>&6 3225 if test "$ac_cv_search_setenv" != "no"; then 3226 test "$ac_cv_search_setenv" = "none required" || LIBS="$ac_cv_search_setenv $LIBS" 3227 3228 else : 3229 3230 fi 3231 for ac_func in gettimeofday atexit bcopy getcwd getwd vsnprintf readlink \ 3232 sleep usleep getpwnam popen setenv siginterrupt 5645 3233 do 5646 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5647 echo "$as_me:$LINENO: checking for $ac_func" >&5 5648 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5649 if eval "test \"\${$as_ac_var+set}\" = set"; then 5650 echo $ECHO_N "(cached) $ECHO_C" >&6 5651 else 5652 cat >conftest.$ac_ext <<_ACEOF 5653 #line $LINENO "configure" 5654 /* confdefs.h. */ 5655 _ACEOF 5656 cat confdefs.h >>conftest.$ac_ext 5657 cat >>conftest.$ac_ext <<_ACEOF 5658 /* end confdefs.h. */ 3234 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3235 echo "configure:3236: checking for $ac_func" >&5 3236 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3237 echo $ac_n "(cached) $ac_c" 1>&6 3238 else 3239 cat > conftest.$ac_ext <<EOF 3240 #line 3241 "configure" 3241 #include "confdefs.h" 5659 3242 /* System header to define __stub macros and hopefully few prototypes, 5660 which can conflict with char $ac_func (); below. 5661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5662 <limits.h> exists even on freestanding compilers. */ 5663 #ifdef __STDC__ 5664 # include <limits.h> 5665 #else 5666 # include <assert.h> 5667 #endif 3243 which can conflict with char $ac_func(); below. */ 3244 #include <assert.h> 5668 3245 /* Override any gcc2 internal prototype to avoid an error. */ 5669 #ifdef __cplusplus5670 extern "C"5671 {5672 #endif5673 3246 /* We use char because int might match the return type of a gcc2 5674 builtin and then its argument prototype would still apply. */ 5675 char $ac_func (); 3247 builtin and then its argument prototype would still apply. */ 3248 char $ac_func(); 3249 3250 int main() { 3251 5676 3252 /* The GNU C library defines this for functions which it implements 5677 3253 to always fail with ENOSYS. Some functions are actually named … … 5680 3256 choke me 5681 3257 #else 5682 char (*f) () = $ac_func;3258 $ac_func(); 5683 3259 #endif 5684 #ifdef __cplusplus 5685 } 5686 #endif 5687 5688 int 5689 main () 5690 { 5691 return f != $ac_func; 5692 ; 5693 return 0; 5694 } 5695 _ACEOF 5696 rm -f conftest.$ac_objext conftest$ac_exeext 5697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5698 (eval $ac_link) 2>&5 5699 ac_status=$? 5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5701 (exit $ac_status); } && 5702 { ac_try='test -s conftest$ac_exeext' 5703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5704 (eval $ac_try) 2>&5 5705 ac_status=$? 5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5707 (exit $ac_status); }; }; then 5708 eval "$as_ac_var=yes" 5709 else 5710 echo "$as_me: failed program was:" >&5 5711 sed 's/^/| /' conftest.$ac_ext >&5 5712 5713 eval "$as_ac_var=no" 5714 fi 5715 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5716 fi 5717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5718 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5719 if test `eval echo '${'$as_ac_var'}'` = yes; then 5720 cat >>confdefs.h <<_ACEOF 5721 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5722 _ACEOF 5723 5724 echo "$as_me:$LINENO: checking for _doprnt" >&5 5725 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 5726 if test "${ac_cv_func__doprnt+set}" = set; then 5727 echo $ECHO_N "(cached) $ECHO_C" >&6 5728 else 5729 cat >conftest.$ac_ext <<_ACEOF 5730 #line $LINENO "configure" 5731 /* confdefs.h. */ 5732 _ACEOF 5733 cat confdefs.h >>conftest.$ac_ext 5734 cat >>conftest.$ac_ext <<_ACEOF 5735 /* end confdefs.h. */ 5736 /* System header to define __stub macros and hopefully few prototypes, 5737 which can conflict with char _doprnt (); below. 5738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5739 <limits.h> exists even on freestanding compilers. */ 5740 #ifdef __STDC__ 5741 # include <limits.h> 5742 #else 5743 # include <assert.h> 5744 #endif 5745 /* Override any gcc2 internal prototype to avoid an error. */ 5746 #ifdef __cplusplus 5747 extern "C" 5748 { 5749 #endif 5750 /* We use char because int might match the return type of a gcc2 5751 builtin and then its argument prototype would still apply. */ 5752 char _doprnt (); 5753 /* The GNU C library defines this for functions which it implements 5754 to always fail with ENOSYS. Some functions are actually named 5755 something starting with __ and the normal name is an alias. */ 5756 #if defined (__stub__doprnt) || defined (__stub____doprnt) 5757 choke me 5758 #else 5759 char (*f) () = _doprnt; 5760 #endif 5761 #ifdef __cplusplus 5762 } 5763 #endif 5764 5765 int 5766 main () 5767 { 5768 return f != _doprnt; 5769 ; 5770 return 0; 5771 } 5772 _ACEOF 5773 rm -f conftest.$ac_objext conftest$ac_exeext 5774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5775 (eval $ac_link) 2>&5 5776 ac_status=$? 5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5778 (exit $ac_status); } && 5779 { ac_try='test -s conftest$ac_exeext' 5780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5781 (eval $ac_try) 2>&5 5782 ac_status=$? 5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5784 (exit $ac_status); }; }; then 5785 ac_cv_func__doprnt=yes 5786 else 5787 echo "$as_me: failed program was:" >&5 5788 sed 's/^/| /' conftest.$ac_ext >&5 5789 5790 ac_cv_func__doprnt=no 5791 fi 5792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5793 fi 5794 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 5795 echo "${ECHO_T}$ac_cv_func__doprnt" >&6 5796 if test $ac_cv_func__doprnt = yes; then 5797 5798 cat >>confdefs.h <<\_ACEOF 5799 #define HAVE_DOPRNT 1 5800 _ACEOF 5801 5802 fi 5803 3260 3261 ; return 0; } 3262 EOF 3263 if { (eval echo configure:3264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3264 rm -rf conftest* 3265 eval "ac_cv_func_$ac_func=yes" 3266 else 3267 echo "configure: failed program was:" >&5 3268 cat conftest.$ac_ext >&5 3269 rm -rf conftest* 3270 eval "ac_cv_func_$ac_func=no" 3271 fi 3272 rm -f conftest* 3273 fi 3274 3275 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3276 echo "$ac_t""yes" 1>&6 3277 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3278 cat >> confdefs.h <<EOF 3279 #define $ac_tr_func 1 3280 EOF 3281 3282 else 3283 echo "$ac_t""no" 1>&6 5804 3284 fi 5805 3285 done 5806 3286 5807 3287 5808 echo "$as_me:$LINENO: checking for library containing setenv" >&55809 echo $ECHO_N "checking for library containing setenv... $ECHO_C" >&65810 if test "${ac_cv_search_setenv+set}" = set; then5811 echo $ECHO_N "(cached) $ECHO_C" >&65812 else5813 ac_func_search_save_LIBS=$LIBS5814 ac_cv_search_setenv=no5815 cat >conftest.$ac_ext <<_ACEOF5816 #line $LINENO "configure"5817 /* confdefs.h. */5818 _ACEOF5819 cat confdefs.h >>conftest.$ac_ext5820 cat >>conftest.$ac_ext <<_ACEOF5821 /* end confdefs.h. */5822 5823 /* Override any gcc2 internal prototype to avoid an error. */5824 #ifdef __cplusplus5825 extern "C"5826 #endif5827 /* We use char because int might match the return type of a gcc25828 builtin and then its argument prototype would still apply. */5829 char setenv ();5830 int5831 main ()5832 {5833 setenv ();5834 ;5835 return 0;5836 }5837 _ACEOF5838 rm -f conftest.$ac_objext conftest$ac_exeext5839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&55840 (eval $ac_link) 2>&55841 ac_status=$?5842 echo "$as_me:$LINENO: \$? = $ac_status" >&55843 (exit $ac_status); } &&5844 { ac_try='test -s conftest$ac_exeext'5845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&55846 (eval $ac_try) 2>&55847 ac_status=$?5848 echo "$as_me:$LINENO: \$? = $ac_status" >&55849 (exit $ac_status); }; }; then5850 ac_cv_search_setenv="none required"5851 else5852 echo "$as_me: failed program was:" >&55853 sed 's/^/| /' conftest.$ac_ext >&55854 5855 fi5856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext5857 if test "$ac_cv_search_setenv" = no; then5858 for ac_lib in bsd; do5859 LIBS="-l$ac_lib $ac_func_search_save_LIBS"5860 cat >conftest.$ac_ext <<_ACEOF5861 #line $LINENO "configure"5862 /* confdefs.h. */5863 _ACEOF5864 cat confdefs.h >>conftest.$ac_ext5865 cat >>conftest.$ac_ext <<_ACEOF5866 /* end confdefs.h. */5867 5868 /* Override any gcc2 internal prototype to avoid an error. */5869 #ifdef __cplusplus5870 extern "C"5871 #endif5872 /* We use char because int might match the return type of a gcc25873 builtin and then its argument prototype would still apply. */5874 char setenv ();5875 int5876 main ()5877 {5878 setenv ();5879 ;5880 return 0;5881 }5882 _ACEOF5883 rm -f conftest.$ac_objext conftest$ac_exeext5884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&55885 (eval $ac_link) 2>&55886 ac_status=$?5887 echo "$as_me:$LINENO: \$? = $ac_status" >&55888 (exit $ac_status); } &&5889 { ac_try='test -s conftest$ac_exeext'5890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&55891 (eval $ac_try) 2>&55892 ac_status=$?5893 echo "$as_me:$LINENO: \$? = $ac_status" >&55894 (exit $ac_status); }; }; then5895 ac_cv_search_setenv="-l$ac_lib"5896 break5897 else5898 echo "$as_me: failed program was:" >&55899 sed 's/^/| /' conftest.$ac_ext >&55900 5901 fi5902 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext5903 done5904 fi5905 LIBS=$ac_func_search_save_LIBS5906 fi5907 echo "$as_me:$LINENO: result: $ac_cv_search_setenv" >&55908 echo "${ECHO_T}$ac_cv_search_setenv" >&65909 if test "$ac_cv_search_setenv" != no; then5910 test "$ac_cv_search_setenv" = "none required" || LIBS="$ac_cv_search_setenv $LIBS"5911 5912 fi5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 for ac_func in gettimeofday atexit bcopy getcwd getwd vsnprintf readlink \5928 sleep usleep getpwnam popen setenv siginterrupt5929 do5930 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`5931 echo "$as_me:$LINENO: checking for $ac_func" >&55932 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&65933 if eval "test \"\${$as_ac_var+set}\" = set"; then5934 echo $ECHO_N "(cached) $ECHO_C" >&65935 else5936 cat >conftest.$ac_ext <<_ACEOF5937 #line $LINENO "configure"5938 /* confdefs.h. */5939 _ACEOF5940 cat confdefs.h >>conftest.$ac_ext5941 cat >>conftest.$ac_ext <<_ACEOF5942 /* end confdefs.h. */5943 /* System header to define __stub macros and hopefully few prototypes,5944 which can conflict with char $ac_func (); below.5945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since5946 <limits.h> exists even on freestanding compilers. */5947 #ifdef __STDC__5948 # include <limits.h>5949 #else5950 # include <assert.h>5951 #endif5952 /* Override any gcc2 internal prototype to avoid an error. */5953 #ifdef __cplusplus5954 extern "C"5955 {5956 #endif5957 /* We use char because int might match the return type of a gcc25958 builtin and then its argument prototype would still apply. */5959 char $ac_func ();5960 /* The GNU C library defines this for functions which it implements5961 to always fail with ENOSYS. Some functions are actually named5962 something starting with __ and the normal name is an alias. */5963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)5964 choke me5965 #else5966 char (*f) () = $ac_func;5967 #endif5968 #ifdef __cplusplus5969 }5970 #endif5971 5972 int5973 main ()5974 {5975 return f != $ac_func;5976 ;5977 return 0;5978 }5979 _ACEOF5980 rm -f conftest.$ac_objext conftest$ac_exeext5981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&55982 (eval $ac_link) 2>&55983 ac_status=$?5984 echo "$as_me:$LINENO: \$? = $ac_status" >&55985 (exit $ac_status); } &&5986 { ac_try='test -s conftest$ac_exeext'5987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&55988 (eval $ac_try) 2>&55989 ac_status=$?5990 echo "$as_me:$LINENO: \$? = $ac_status" >&55991 (exit $ac_status); }; }; then5992 eval "$as_ac_var=yes"5993 else5994 echo "$as_me: failed program was:" >&55995 sed 's/^/| /' conftest.$ac_ext >&55996 5997 eval "$as_ac_var=no"5998 fi5999 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext6000 fi6001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&56002 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&66003 if test `eval echo '${'$as_ac_var'}'` = yes; then6004 cat >>confdefs.h <<_ACEOF6005 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 16006 _ACEOF6007 6008 fi6009 done6010 6011 6012 3288 6013 3289 6014 3290 # arithmetic shifts 6015 echo "$as_me:$LINENO: checking whether your machine has correct arithmetic shifts" >&56016 echo $ECHO_N "checking whether your machine has correct arithmetic shifts... $ECHO_C" >&66017 if test "${ac_cv_shift+set}" = set; then6018 echo $ ECHO_N "(cached) $ECHO_C">&63291 echo $ac_n "checking whether your machine has correct arithmetic shifts""... $ac_c" 1>&6 3292 echo "configure:3293: checking whether your machine has correct arithmetic shifts" >&5 3293 if eval "test \"`echo '$''{'ac_cv_shift'+set}'`\" = set"; then 3294 echo $ac_n "(cached) $ac_c" 1>&6 6019 3295 else 6020 3296 if test "$cross_compiling" = yes; then … … 6022 3298 ac_cv_shift=yes; 6023 3299 else 6024 echo "$as_me:$LINENO: result: no" >&5 6025 echo "${ECHO_T}no" >&6 6026 { { echo "$as_me:$LINENO: error: cross compilation without default value" >&5 6027 echo "$as_me: error: cross compilation without default value" >&2;} 6028 { (exit 1); exit 1; }; } 3300 echo "$ac_t""no" 1>&6 3301 { echo "configure: error: cross compilation without default value" 1>&2; exit 1; } 6029 3302 fi 6030 3303 else 6031 cat >conftest.$ac_ext <<_ACEOF 6032 #line $LINENO "configure" 6033 /* confdefs.h. */ 6034 _ACEOF 6035 cat confdefs.h >>conftest.$ac_ext 6036 cat >>conftest.$ac_ext <<_ACEOF 6037 /* end confdefs.h. */ 6038 int main() { if (-2 >> 1 == -1) return(0); else return(1); } 6039 _ACEOF 6040 rm -f conftest$ac_exeext 6041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6042 (eval $ac_link) 2>&5 6043 ac_status=$? 6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6045 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6047 (eval $ac_try) 2>&5 6048 ac_status=$? 6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6050 (exit $ac_status); }; }; then 3304 cat > conftest.$ac_ext <<EOF 3305 #line 3306 "configure" 3306 #include "confdefs.h" 3307 int main() { if (-2 >> 1 == -1) return(0); else return(1); } 3308 EOF 3309 if { (eval echo configure:3310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3310 then 6051 3311 ac_cv_shift=yes 6052 3312 else 6053 echo "$as_me: program exited with status $ac_status" >&5 6054 echo "$as_me: failed program was:" >&5 6055 sed 's/^/| /' conftest.$ac_ext >&5 6056 6057 ( exit $ac_status ) 6058 ac_cv_shift=no 6059 fi 6060 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6061 fi 3313 echo "configure: failed program was:" >&5 3314 cat conftest.$ac_ext >&5 3315 rm -fr conftest* 3316 ac_cv_shift=no 3317 fi 3318 rm -fr conftest* 3319 fi 3320 6062 3321 fi 6063 3322 6064 3323 6065 3324 if test "$ac_cv_shift" = yes; then 6066 echo "$as_me:$LINENO: result: yes" >&5 6067 echo "${ECHO_T}yes" >&6 6068 else 6069 echo "$as_me:$LINENO: result: no" >&5 6070 echo "${ECHO_T}no" >&6 6071 { { echo "$as_me:$LINENO: error: need -2 >> 1 == -1" >&5 6072 echo "$as_me: error: need -2 >> 1 == -1" >&2;} 6073 { (exit 1); exit 1; }; } 3325 echo "$ac_t""yes" 1>&6 3326 else 3327 echo "$ac_t""no" 1>&6 3328 { echo "configure: error: need -2 >> 1 == -1" 1>&2; exit 1; } 6074 3329 fi 6075 3330 6076 3331 6077 3332 # check for a peculiar constructor initialization 6078 echo "$as_me:$LINENO: checking whether explicit C++ constructor calls are allowed" >&56079 echo $ECHO_N "checking whether explicit C++ constructor calls are allowed... $ECHO_C" >&66080 6081 6082 ac_ext=cc 3333 echo $ac_n "checking whether explicit C++ constructor calls are allowed""... $ac_c" 1>&6 3334 echo "configure:3335: checking whether explicit C++ constructor calls are allowed" >&5 3335 3336 ac_ext=C 3337 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 6083 3338 ac_cpp='$CXXCPP $CPPFLAGS' 6084 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6085 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6086 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6087 6088 if test "${ac_cv_explicit_const+set}" = set; then 6089 echo $ECHO_N "(cached) $ECHO_C" >&6 6090 else 6091 cat >conftest.$ac_ext <<_ACEOF 6092 #line $LINENO "configure" 6093 /* confdefs.h. */ 6094 _ACEOF 6095 cat confdefs.h >>conftest.$ac_ext 6096 cat >>conftest.$ac_ext <<_ACEOF 6097 /* end confdefs.h. */ 6098 6099 int 6100 main () 6101 { 3339 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 3340 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 3341 cross_compiling=$ac_cv_prog_cxx_cross 3342 3343 if eval "test \"`echo '$''{'ac_cv_explicit_const'+set}'`\" = set"; then 3344 echo $ac_n "(cached) $ac_c" 1>&6 3345 else 3346 cat > conftest.$ac_ext <<EOF 3347 #line 3348 "configure" 3348 #include "confdefs.h" 3349 3350 int main() { 6102 3351 class testclass 6103 3352 { … … 6112 3361 ptr.testclass(1); 6113 3362 6114 ; 6115 return 0; 6116 } 6117 _ACEOF 6118 rm -f conftest.$ac_objext 6119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6120 (eval $ac_compile) 2>&5 6121 ac_status=$? 6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6123 (exit $ac_status); } && 6124 { ac_try='test -s conftest.$ac_objext' 6125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6126 (eval $ac_try) 2>&5 6127 ac_status=$? 6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6129 (exit $ac_status); }; }; then 3363 ; return 0; } 3364 EOF 3365 if { (eval echo configure:3366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3366 rm -rf conftest* 6130 3367 ac_cv_explicit_const=yes 6131 3368 else 6132 echo " $as_me: failed program was:" >&56133 sed 's/^/| /'conftest.$ac_ext >&56134 6135 ac_cv_explicit_const=no6136 fi 6137 rm -f conftest .$ac_objext conftest.$ac_ext3369 echo "configure: failed program was:" >&5 3370 cat conftest.$ac_ext >&5 3371 rm -rf conftest* 3372 ac_cv_explicit_const=no 3373 fi 3374 rm -f conftest* 6138 3375 fi 6139 3376 6140 3377 ac_ext=c 3378 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 6141 3379 ac_cpp='$CPP $CPPFLAGS' 6142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6144 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6145 6146 echo "$as_me:$LINENO: result: $ac_cv_explicit_const" >&5 6147 echo "${ECHO_T}$ac_cv_explicit_const" >&6 3380 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 3381 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 3382 cross_compiling=$ac_cv_prog_cc_cross 3383 3384 echo "$ac_t""$ac_cv_explicit_const" 1>&6 6148 3385 if test "$ac_cv_explicit_const" = yes; then 6149 cat >> confdefs.h <<\_ACEOF3386 cat >> confdefs.h <<\EOF 6150 3387 #define HAVE_EXPLICIT_CONSTR 1 6151 _ACEOF3388 EOF 6152 3389 6153 3390 fi 6154 3391 6155 3392 # sprintf returns number of printed chars 6156 echo "$as_me:$LINENO: checking whether vsprintf returns number of printed chars" >&56157 echo $ECHO_N "checking whether vsprintf returns number of printed chars... $ECHO_C" >&66158 if test "${ac_cv_returns_n_of_chars+set}" = set; then6159 echo $ ECHO_N "(cached) $ECHO_C">&63393 echo $ac_n "checking whether vsprintf returns number of printed chars""... $ac_c" 1>&6 3394 echo "configure:3395: checking whether vsprintf returns number of printed chars" >&5 3395 if eval "test \"`echo '$''{'ac_cv_returns_n_of_chars'+set}'`\" = set"; then 3396 echo $ac_n "(cached) $ac_c" 1>&6 6160 3397 else 6161 3398 if test "$cross_compiling" = yes; then 6162 3399 ac_cv_returns_n_of_chars=no 6163 3400 else 6164 cat >conftest.$ac_ext <<_ACEOF 6165 #line $LINENO "configure" 6166 /* confdefs.h. */ 6167 _ACEOF 6168 cat confdefs.h >>conftest.$ac_ext 6169 cat >>conftest.$ac_ext <<_ACEOF 6170 /* end confdefs.h. */ 3401 cat > conftest.$ac_ext <<EOF 3402 #line 3403 "configure" 3403 #include "confdefs.h" 6171 3404 #include <stdio.h> 6172 3405 main() { char *str=(char*)malloc(20); if (((int) sprintf(str,"123456789")) == 9) exit(0); else exit(1); } 6173 _ACEOF 6174 rm -f conftest$ac_exeext 6175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6176 (eval $ac_link) 2>&5 6177 ac_status=$? 6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6181 (eval $ac_try) 2>&5 6182 ac_status=$? 6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6184 (exit $ac_status); }; }; then 3406 EOF 3407 if { (eval echo configure:3408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3408 then 6185 3409 ac_cv_returns_n_of_chars=yes 6186 3410 else 6187 echo "$as_me: program exited with status $ac_status" >&5 6188 echo "$as_me: failed program was:" >&5 6189 sed 's/^/| /' conftest.$ac_ext >&5 6190 6191 ( exit $ac_status ) 6192 ac_cv_returns_n_of_chars=no 6193 fi 6194 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6195 fi 3411 echo "configure: failed program was:" >&5 3412 cat conftest.$ac_ext >&5 3413 rm -fr conftest* 3414 ac_cv_returns_n_of_chars=no 3415 fi 3416 rm -fr conftest* 3417 fi 3418 6196 3419 fi 6197 3420 6198 3421 if test "$ac_cv_returns_n_of_chars" = yes; then 6199 echo "$as_me:$LINENO: result: yes" >&5 6200 echo "${ECHO_T}yes" >&6 6201 else 6202 echo "$as_me:$LINENO: result: no" >&5 6203 echo "${ECHO_T}no" >&6 6204 cat >>confdefs.h <<\_ACEOF 3422 echo "$ac_t""yes" 1>&6 3423 else 3424 echo "$ac_t""no" 1>&6 3425 cat >> confdefs.h <<\EOF 6205 3426 #define BSD_SPRINTF 1 6206 _ACEOF3427 EOF 6207 3428 6208 3429 fi 6209 3430 6210 3431 # determine ALIGN_8 6211 echo "$as_me:$LINENO: checking for char" >&5 6212 echo $ECHO_N "checking for char... $ECHO_C" >&6 6213 if test "${ac_cv_type_char+set}" = set; then 6214 echo $ECHO_N "(cached) $ECHO_C" >&6 6215 else 6216 cat >conftest.$ac_ext <<_ACEOF 6217 #line $LINENO "configure" 6218 /* confdefs.h. */ 6219 _ACEOF 6220 cat confdefs.h >>conftest.$ac_ext 6221 cat >>conftest.$ac_ext <<_ACEOF 6222 /* end confdefs.h. */ 6223 $ac_includes_default 6224 int 6225 main () 3432 echo $ac_n "checking size of char""... $ac_c" 1>&6 3433 echo "configure:3434: checking size of char" >&5 3434 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then 3435 echo $ac_n "(cached) $ac_c" 1>&6 3436 else 3437 if test "$cross_compiling" = yes; then 3438 ac_cv_sizeof_char=1 3439 else 3440 cat > conftest.$ac_ext <<EOF 3441 #line 3442 "configure" 3442 #include "confdefs.h" 3443 #include <stdio.h> 3444 main() 6226 3445 { 6227 if ((char *) 0) 6228 return 0; 6229 if (sizeof (char)) 6230 return 0; 6231 ; 6232 return 0; 3446 FILE *f=fopen("conftestval", "w"); 3447 if (!f) exit(1); 3448 fprintf(f, "%d\n", sizeof(char)); 3449 exit(0); 6233 3450 } 6234 _ACEOF 6235 rm -f conftest.$ac_objext 6236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6237 (eval $ac_compile) 2>&5 6238 ac_status=$? 6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6240 (exit $ac_status); } && 6241 { ac_try='test -s conftest.$ac_objext' 6242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6243 (eval $ac_try) 2>&5 6244 ac_status=$? 6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6246 (exit $ac_status); }; }; then 6247 ac_cv_type_char=yes 6248 else 6249 echo "$as_me: failed program was:" >&5 6250 sed 's/^/| /' conftest.$ac_ext >&5 6251 6252 ac_cv_type_char=no 6253 fi 6254 rm -f conftest.$ac_objext conftest.$ac_ext 6255 fi 6256 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 6257 echo "${ECHO_T}$ac_cv_type_char" >&6 6258 6259 echo "$as_me:$LINENO: checking size of char" >&5 6260 echo $ECHO_N "checking size of char... $ECHO_C" >&6 6261 if test "${ac_cv_sizeof_char+set}" = set; then 6262 echo $ECHO_N "(cached) $ECHO_C" >&6 6263 else 6264 if test "$ac_cv_type_char" = yes; then 6265 # The cast to unsigned long works around a bug in the HP C Compiler 6266 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6267 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6268 # This bug is HP SR number 8606223364. 3451 EOF 3452 if { (eval echo configure:3453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3453 then 3454 ac_cv_sizeof_char=`cat conftestval` 3455 else 3456 echo "configure: failed program was:" >&5 3457 cat conftest.$ac_ext >&5 3458 rm -fr conftest* 3459 ac_cv_sizeof_char=0 3460 fi 3461 rm -fr conftest* 3462 fi 3463 3464 fi 3465 echo "$ac_t""$ac_cv_sizeof_char" 1>&6 3466 cat >> confdefs.h <<EOF 3467 #define SIZEOF_CHAR $ac_cv_sizeof_char 3468 EOF 3469 3470 3471 echo $ac_n "checking size of short""... $ac_c" 1>&6 3472 echo "configure:3473: checking size of short" >&5 3473 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then 3474 echo $ac_n "(cached) $ac_c" 1>&6 3475 else 6269 3476 if test "$cross_compiling" = yes; then 6270 # Depending upon the size, compute the lo and hi bounds. 6271 cat >conftest.$ac_ext <<_ACEOF 6272 #line $LINENO "configure" 6273 /* confdefs.h. */ 6274 _ACEOF 6275 cat confdefs.h >>conftest.$ac_ext 6276 cat >>conftest.$ac_ext <<_ACEOF 6277 /* end confdefs.h. */ 6278 $ac_includes_default 6279 int 6280 main () 3477 ac_cv_sizeof_short=2 3478 else 3479 cat > conftest.$ac_ext <<EOF 3480 #line 3481 "configure" 3481 #include "confdefs.h" 3482 #include <stdio.h> 3483 main() 6281 3484 { 6282 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; 6283 test_array [0] = 0 6284 6285 ; 6286 return 0; 3485 FILE *f=fopen("conftestval", "w"); 3486 if (!f) exit(1); 3487 fprintf(f, "%d\n", sizeof(short)); 3488 exit(0); 6287 3489 } 6288 _ACEOF 6289 rm -f conftest.$ac_objext 6290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6291 (eval $ac_compile) 2>&5 6292 ac_status=$? 6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6294 (exit $ac_status); } && 6295 { ac_try='test -s conftest.$ac_objext' 6296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6297 (eval $ac_try) 2>&5 6298 ac_status=$? 6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6300 (exit $ac_status); }; }; then 6301 ac_lo=0 ac_mid=0 6302 while :; do 6303 cat >conftest.$ac_ext <<_ACEOF 6304 #line $LINENO "configure" 6305 /* confdefs.h. */ 6306 _ACEOF 6307 cat confdefs.h >>conftest.$ac_ext 6308 cat >>conftest.$ac_ext <<_ACEOF 6309 /* end confdefs.h. */ 6310 $ac_includes_default 6311 int 6312 main () 3490 EOF 3491 if { (eval echo configure:3492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3492 then 3493 ac_cv_sizeof_short=`cat conftestval` 3494 else 3495 echo "configure: failed program was:" >&5 3496 cat conftest.$ac_ext >&5 3497 rm -fr conftest* 3498 ac_cv_sizeof_short=0 3499 fi 3500 rm -fr conftest* 3501 fi 3502 3503 fi 3504 echo "$ac_t""$ac_cv_sizeof_short" 1>&6 3505 cat >> confdefs.h <<EOF 3506 #define SIZEOF_SHORT $ac_cv_sizeof_short 3507 EOF 3508 3509 3510 echo $ac_n "checking size of int""... $ac_c" 1>&6 3511 echo "configure:3512: checking size of int" >&5 3512 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then 3513 echo $ac_n "(cached) $ac_c" 1>&6 3514 else 3515 if test "$cross_compiling" = yes; then 3516 ac_cv_sizeof_int=4 3517 else 3518 cat > conftest.$ac_ext <<EOF 3519 #line 3520 "configure" 3520 #include "confdefs.h" 3521 #include <stdio.h> 3522 main() 6313 3523 { 6314 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; 6315 test_array [0] = 0 6316 6317 ; 6318 return 0; 3524 FILE *f=fopen("conftestval", "w"); 3525 if (!f) exit(1); 3526 fprintf(f, "%d\n", sizeof(int)); 3527 exit(0); 6319 3528 } 6320 _ACEOF 6321 rm -f conftest.$ac_objext 6322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6323 (eval $ac_compile) 2>&5 6324 ac_status=$? 6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6326 (exit $ac_status); } && 6327 { ac_try='test -s conftest.$ac_objext' 6328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6329 (eval $ac_try) 2>&5 6330 ac_status=$? 6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6332 (exit $ac_status); }; }; then 6333 ac_hi=$ac_mid; break 6334 else 6335 echo "$as_me: failed program was:" >&5 6336 sed 's/^/| /' conftest.$ac_ext >&5 6337 6338 ac_lo=`expr $ac_mid + 1` 6339 if test $ac_lo -le $ac_mid; then 6340 ac_lo= ac_hi= 6341 break 6342 fi 6343 ac_mid=`expr 2 '*' $ac_mid + 1` 6344 fi 6345 rm -f conftest.$ac_objext conftest.$ac_ext 6346 done 6347 else 6348 echo "$as_me: failed program was:" >&5 6349 sed 's/^/| /' conftest.$ac_ext >&5 6350 6351 cat >conftest.$ac_ext <<_ACEOF 6352 #line $LINENO "configure" 6353 /* confdefs.h. */ 6354 _ACEOF 6355 cat confdefs.h >>conftest.$ac_ext 6356 cat >>conftest.$ac_ext <<_ACEOF 6357 /* end confdefs.h. */ 6358 $ac_includes_default 6359 int 6360 main () 3529 EOF 3530 if { (eval echo configure:3531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3531 then 3532 ac_cv_sizeof_int=`cat conftestval` 3533 else 3534 echo "configure: failed program was:" >&5 3535 cat conftest.$ac_ext >&5 3536 rm -fr conftest* 3537 ac_cv_sizeof_int=0 3538 fi 3539 rm -fr conftest* 3540 fi 3541 3542 fi 3543 echo "$ac_t""$ac_cv_sizeof_int" 1>&6 3544 cat >> confdefs.h <<EOF 3545 #define SIZEOF_INT $ac_cv_sizeof_int 3546 EOF 3547 3548 3549 echo $ac_n "checking size of long""... $ac_c" 1>&6 3550 echo "configure:3551: checking size of long" >&5 3551 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then 3552 echo $ac_n "(cached) $ac_c" 1>&6 3553 else 3554 if test "$cross_compiling" = yes; then 3555 ac_cv_sizeof_long=4 3556 else 3557 cat > conftest.$ac_ext <<EOF 3558 #line 3559 "configure" 3559 #include "confdefs.h" 3560 #include <stdio.h> 3561 main() 6361 3562 { 6362 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; 6363 test_array [0] = 0 6364 6365 ; 6366 return 0; 3563 FILE *f=fopen("conftestval", "w"); 3564 if (!f) exit(1); 3565 fprintf(f, "%d\n", sizeof(long)); 3566 exit(0); 6367 3567 } 6368 _ACEOF 6369 rm -f conftest.$ac_objext 6370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6371 (eval $ac_compile) 2>&5 6372 ac_status=$? 6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6374 (exit $ac_status); } && 6375 { ac_try='test -s conftest.$ac_objext' 6376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6377 (eval $ac_try) 2>&5 6378 ac_status=$? 6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6380 (exit $ac_status); }; }; then 6381 ac_hi=-1 ac_mid=-1 6382 while :; do 6383 cat >conftest.$ac_ext <<_ACEOF 6384 #line $LINENO "configure" 6385 /* confdefs.h. */ 6386 _ACEOF 6387 cat confdefs.h >>conftest.$ac_ext 6388 cat >>conftest.$ac_ext <<_ACEOF 6389 /* end confdefs.h. */ 6390 $ac_includes_default 6391 int 6392 main () 3568 EOF 3569 if { (eval echo configure:3570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3570 then 3571 ac_cv_sizeof_long=`cat conftestval` 3572 else 3573 echo "configure: failed program was:" >&5 3574 cat conftest.$ac_ext >&5 3575 rm -fr conftest* 3576 ac_cv_sizeof_long=0 3577 fi 3578 rm -fr conftest* 3579 fi 3580 3581 fi 3582 echo "$ac_t""$ac_cv_sizeof_long" 1>&6 3583 cat >> confdefs.h <<EOF 3584 #define SIZEOF_LONG $ac_cv_sizeof_long 3585 EOF 3586 3587 3588 echo $ac_n "checking size of void*""... $ac_c" 1>&6 3589 echo "configure:3590: checking size of void*" >&5 3590 if eval "test \"`echo '$''{'ac_cv_sizeof_voidp'+set}'`\" = set"; then 3591 echo $ac_n "(cached) $ac_c" 1>&6 3592 else 3593 if test "$cross_compiling" = yes; then 3594 ac_cv_sizeof_voidp=4 3595 else 3596 cat > conftest.$ac_ext <<EOF 3597 #line 3598 "configure" 3598 #include "confdefs.h" 3599 #include <stdio.h> 3600 main() 6393 3601 { 6394 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; 6395 test_array [0] = 0 6396 6397 ; 6398 return 0; 3602 FILE *f=fopen("conftestval", "w"); 3603 if (!f) exit(1); 3604 fprintf(f, "%d\n", sizeof(void*)); 3605 exit(0); 6399 3606 } 6400 _ACEOF 6401 rm -f conftest.$ac_objext 6402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6403 (eval $ac_compile) 2>&5 6404 ac_status=$? 6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6406 (exit $ac_status); } && 6407 { ac_try='test -s conftest.$ac_objext' 6408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6409 (eval $ac_try) 2>&5 6410 ac_status=$? 6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6412 (exit $ac_status); }; }; then 6413 ac_lo=$ac_mid; break 6414 else 6415 echo "$as_me: failed program was:" >&5 6416 sed 's/^/| /' conftest.$ac_ext >&5 6417 6418 ac_hi=`expr '(' $ac_mid ')' - 1` 6419 if test $ac_mid -le $ac_hi; then 6420 ac_lo= ac_hi= 6421 break 6422 fi 6423 ac_mid=`expr 2 '*' $ac_mid` 6424 fi 6425 rm -f conftest.$ac_objext conftest.$ac_ext 6426 done 6427 else 6428 echo "$as_me: failed program was:" >&5 6429 sed 's/^/| /' conftest.$ac_ext >&5 6430 6431 ac_lo= ac_hi= 6432 fi 6433 rm -f conftest.$ac_objext conftest.$ac_ext 6434 fi 6435 rm -f conftest.$ac_objext conftest.$ac_ext 6436 # Binary search between lo and hi bounds. 6437 while test "x$ac_lo" != "x$ac_hi"; do 6438 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 6439 cat >conftest.$ac_ext <<_ACEOF 6440 #line $LINENO "configure" 6441 /* confdefs.h. */ 6442 _ACEOF 6443 cat confdefs.h >>conftest.$ac_ext 6444 cat >>conftest.$ac_ext <<_ACEOF 6445 /* end confdefs.h. */ 6446 $ac_includes_default 6447 int 6448 main () 3607 EOF 3608 if { (eval echo configure:3609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3609 then 3610 ac_cv_sizeof_voidp=`cat conftestval` 3611 else 3612 echo "configure: failed program was:" >&5 3613 cat conftest.$ac_ext >&5 3614 rm -fr conftest* 3615 ac_cv_sizeof_voidp=0 3616 fi 3617 rm -fr conftest* 3618 fi 3619 3620 fi 3621 echo "$ac_t""$ac_cv_sizeof_voidp" 1>&6 3622 cat >> confdefs.h <<EOF 3623 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp 3624 EOF 3625 3626 3627 echo $ac_n "checking size of double""... $ac_c" 1>&6 3628 echo "configure:3629: checking size of double" >&5 3629 if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then 3630 echo $ac_n "(cached) $ac_c" 1>&6 3631 else 3632 if test "$cross_compiling" = yes; then 3633 ac_cv_sizeof_double=8 3634 else 3635 cat > conftest.$ac_ext <<EOF 3636 #line 3637 "configure" 3637 #include "confdefs.h" 3638 #include <stdio.h> 3639 main() 6449 3640 { 6450 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; 6451 test_array [0] = 0 6452 6453 ; 6454 return 0; 3641 FILE *f=fopen("conftestval", "w"); 3642 if (!f) exit(1); 3643 fprintf(f, "%d\n", sizeof(double)); 3644 exit(0); 6455 3645 } 6456 _ACEOF 6457 rm -f conftest.$ac_objext 6458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6459 (eval $ac_compile) 2>&5 6460 ac_status=$? 6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6462 (exit $ac_status); } && 6463 { ac_try='test -s conftest.$ac_objext' 6464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6465 (eval $ac_try) 2>&5 6466 ac_status=$? 6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6468 (exit $ac_status); }; }; then 6469 ac_hi=$ac_mid 6470 else 6471 echo "$as_me: failed program was:" >&5 6472 sed 's/^/| /' conftest.$ac_ext >&5 6473 6474 ac_lo=`expr '(' $ac_mid ')' + 1` 6475 fi 6476 rm -f conftest.$ac_objext conftest.$ac_ext 6477 done 6478 case $ac_lo in 6479 ?*) ac_cv_sizeof_char=$ac_lo;; 6480 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 6481 See \`config.log' for more details." >&5 6482 echo "$as_me: error: cannot compute sizeof (char), 77 6483 See \`config.log' for more details." >&2;} 6484 { (exit 1); exit 1; }; } ;; 6485 esac 6486 else 6487 if test "$cross_compiling" = yes; then 6488 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 6489 See \`config.log' for more details." >&5 6490 echo "$as_me: error: cannot run test program while cross compiling 6491 See \`config.log' for more details." >&2;} 6492 { (exit 1); exit 1; }; } 6493 else 6494 cat >conftest.$ac_ext <<_ACEOF 6495 #line $LINENO "configure" 6496 /* confdefs.h. */ 6497 _ACEOF 6498 cat confdefs.h >>conftest.$ac_ext 6499 cat >>conftest.$ac_ext <<_ACEOF 6500 /* end confdefs.h. */ 6501 $ac_includes_default 6502 long longval () { return (long) (sizeof (char)); } 6503 unsigned long ulongval () { return (long) (sizeof (char)); } 6504 #include <stdio.h> 6505 #include <stdlib.h> 6506 int 6507 main () 6508 { 6509 6510 FILE *f = fopen ("conftest.val", "w"); 6511 if (! f) 6512 exit (1); 6513 if (((long) (sizeof (char))) < 0) 6514 { 6515 long i = longval (); 6516 if (i != ((long) (sizeof (char)))) 6517 exit (1); 6518 fprintf (f, "%ld\n", i); 6519 } 6520 else 6521 { 6522 unsigned long i = ulongval (); 6523 if (i != ((long) (sizeof (char)))) 6524 exit (1); 6525 fprintf (f, "%lu\n", i); 6526 } 6527 exit (ferror (f) || fclose (f) != 0); 6528 6529 ; 6530 return 0; 6531 } 6532 _ACEOF 6533 rm -f conftest$ac_exeext 6534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6535 (eval $ac_link) 2>&5 6536 ac_status=$? 6537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6538 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6540 (eval $ac_try) 2>&5 6541 ac_status=$? 6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6543 (exit $ac_status); }; }; then 6544 ac_cv_sizeof_char=`cat conftest.val` 6545 else 6546 echo "$as_me: program exited with status $ac_status" >&5 6547 echo "$as_me: failed program was:" >&5 6548 sed 's/^/| /' conftest.$ac_ext >&5 6549 6550 ( exit $ac_status ) 6551 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 6552 See \`config.log' for more details." >&5 6553 echo "$as_me: error: cannot compute sizeof (char), 77 6554 See \`config.log' for more details." >&2;} 6555 { (exit 1); exit 1; }; } 6556 fi 6557 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6558 fi 6559 fi 6560 rm -f conftest.val 6561 else 6562 ac_cv_sizeof_char=0 6563 fi 6564 fi 6565 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 6566 echo "${ECHO_T}$ac_cv_sizeof_char" >&6 6567 cat >>confdefs.h <<_ACEOF 6568 #define SIZEOF_CHAR $ac_cv_sizeof_char 6569 _ACEOF 6570 6571 6572 echo "$as_me:$LINENO: checking for short" >&5 6573 echo $ECHO_N "checking for short... $ECHO_C" >&6 6574 if test "${ac_cv_type_short+set}" = set; then 6575 echo $ECHO_N "(cached) $ECHO_C" >&6 6576 else 6577 cat >conftest.$ac_ext <<_ACEOF 6578 #line $LINENO "configure" 6579 /* confdefs.h. */ 6580 _ACEOF 6581 cat confdefs.h >>conftest.$ac_ext 6582 cat >>conftest.$ac_ext <<_ACEOF 6583 /* end confdefs.h. */ 6584 $ac_includes_default 6585 int 6586 main () 6587 { 6588 if ((short *) 0) 6589 return 0; 6590 if (sizeof (short)) 6591 return 0; 6592 ; 6593 return 0; 6594 } 6595 _ACEOF 6596 rm -f conftest.$ac_objext 6597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6598 (eval $ac_compile) 2>&5 6599 ac_status=$? 6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6601 (exit $ac_status); } && 6602 { ac_try='test -s conftest.$ac_objext' 6603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6604 (eval $ac_try) 2>&5 6605 ac_status=$? 6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6607 (exit $ac_status); }; }; then 6608 ac_cv_type_short=yes 6609 else 6610 echo "$as_me: failed program was:" >&5 6611 sed 's/^/| /' conftest.$ac_ext >&5 6612 6613 ac_cv_type_short=no 6614 fi 6615 rm -f conftest.$ac_objext conftest.$ac_ext 6616 fi 6617 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 6618 echo "${ECHO_T}$ac_cv_type_short" >&6 6619 6620 echo "$as_me:$LINENO: checking size of short" >&5 6621 echo $ECHO_N "checking size of short... $ECHO_C" >&6 6622 if test "${ac_cv_sizeof_short+set}" = set; then 6623 echo $ECHO_N "(cached) $ECHO_C" >&6 6624 else 6625 if test "$ac_cv_type_short" = yes; then 6626 # The cast to unsigned long works around a bug in the HP C Compiler 6627 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6628 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6629 # This bug is HP SR number 8606223364. 6630 if test "$cross_compiling" = yes; then 6631 # Depending upon the size, compute the lo and hi bounds. 6632 cat >conftest.$ac_ext <<_ACEOF 6633 #line $LINENO "configure" 6634 /* confdefs.h. */ 6635 _ACEOF 6636 cat confdefs.h >>conftest.$ac_ext 6637 cat >>conftest.$ac_ext <<_ACEOF 6638 /* end confdefs.h. */ 6639 $ac_includes_default 6640 int 6641 main () 6642 { 6643 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; 6644 test_array [0] = 0 6645 6646 ; 6647 return 0; 6648 } 6649 _ACEOF 6650 rm -f conftest.$ac_objext 6651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6652 (eval $ac_compile) 2>&5 6653 ac_status=$? 6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6655 (exit $ac_status); } && 6656 { ac_try='test -s conftest.$ac_objext' 6657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6658 (eval $ac_try) 2>&5 6659 ac_status=$? 6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6661 (exit $ac_status); }; }; then 6662 ac_lo=0 ac_mid=0 6663 while :; do 6664 cat >conftest.$ac_ext <<_ACEOF 6665 #line $LINENO "configure" 6666 /* confdefs.h. */ 6667 _ACEOF 6668 cat confdefs.h >>conftest.$ac_ext 6669 cat >>conftest.$ac_ext <<_ACEOF 6670 /* end confdefs.h. */ 6671 $ac_includes_default 6672 int 6673 main () 6674 { 6675 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 6676 test_array [0] = 0 6677 6678 ; 6679 return 0; 6680 } 6681 _ACEOF 6682 rm -f conftest.$ac_objext 6683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6684 (eval $ac_compile) 2>&5 6685 ac_status=$? 6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6687 (exit $ac_status); } && 6688 { ac_try='test -s conftest.$ac_objext' 6689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6690 (eval $ac_try) 2>&5 6691 ac_status=$? 6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6693 (exit $ac_status); }; }; then 6694 ac_hi=$ac_mid; break 6695 else 6696 echo "$as_me: failed program was:" >&5 6697 sed 's/^/| /' conftest.$ac_ext >&5 6698 6699 ac_lo=`expr $ac_mid + 1` 6700 if test $ac_lo -le $ac_mid; then 6701 ac_lo= ac_hi= 6702 break 6703 fi 6704 ac_mid=`expr 2 '*' $ac_mid + 1` 6705 fi 6706 rm -f conftest.$ac_objext conftest.$ac_ext 6707 done 6708 else 6709 echo "$as_me: failed program was:" >&5 6710 sed 's/^/| /' conftest.$ac_ext >&5 6711 6712 cat >conftest.$ac_ext <<_ACEOF 6713 #line $LINENO "configure" 6714 /* confdefs.h. */ 6715 _ACEOF 6716 cat confdefs.h >>conftest.$ac_ext 6717 cat >>conftest.$ac_ext <<_ACEOF 6718 /* end confdefs.h. */ 6719 $ac_includes_default 6720 int 6721 main () 6722 { 6723 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; 6724 test_array [0] = 0 6725 6726 ; 6727 return 0; 6728 } 6729 _ACEOF 6730 rm -f conftest.$ac_objext 6731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6732 (eval $ac_compile) 2>&5 6733 ac_status=$? 6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6735 (exit $ac_status); } && 6736 { ac_try='test -s conftest.$ac_objext' 6737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6738 (eval $ac_try) 2>&5 6739 ac_status=$? 6740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6741 (exit $ac_status); }; }; then 6742 ac_hi=-1 ac_mid=-1 6743 while :; do 6744 cat >conftest.$ac_ext <<_ACEOF 6745 #line $LINENO "configure" 6746 /* confdefs.h. */ 6747 _ACEOF 6748 cat confdefs.h >>conftest.$ac_ext 6749 cat >>conftest.$ac_ext <<_ACEOF 6750 /* end confdefs.h. */ 6751 $ac_includes_default 6752 int 6753 main () 6754 { 6755 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; 6756 test_array [0] = 0 6757 6758 ; 6759 return 0; 6760 } 6761 _ACEOF 6762 rm -f conftest.$ac_objext 6763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6764 (eval $ac_compile) 2>&5 6765 ac_status=$? 6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6767 (exit $ac_status); } && 6768 { ac_try='test -s conftest.$ac_objext' 6769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6770 (eval $ac_try) 2>&5 6771 ac_status=$? 6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6773 (exit $ac_status); }; }; then 6774 ac_lo=$ac_mid; break 6775 else 6776 echo "$as_me: failed program was:" >&5 6777 sed 's/^/| /' conftest.$ac_ext >&5 6778 6779 ac_hi=`expr '(' $ac_mid ')' - 1` 6780 if test $ac_mid -le $ac_hi; then 6781 ac_lo= ac_hi= 6782 break 6783 fi 6784 ac_mid=`expr 2 '*' $ac_mid` 6785 fi 6786 rm -f conftest.$ac_objext conftest.$ac_ext 6787 done 6788 else 6789 echo "$as_me: failed program was:" >&5 6790 sed 's/^/| /' conftest.$ac_ext >&5 6791 6792 ac_lo= ac_hi= 6793 fi 6794 rm -f conftest.$ac_objext conftest.$ac_ext 6795 fi 6796 rm -f conftest.$ac_objext conftest.$ac_ext 6797 # Binary search between lo and hi bounds. 6798 while test "x$ac_lo" != "x$ac_hi"; do 6799 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 6800 cat >conftest.$ac_ext <<_ACEOF 6801 #line $LINENO "configure" 6802 /* confdefs.h. */ 6803 _ACEOF 6804 cat confdefs.h >>conftest.$ac_ext 6805 cat >>conftest.$ac_ext <<_ACEOF 6806 /* end confdefs.h. */ 6807 $ac_includes_default 6808 int 6809 main () 6810 { 6811 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 6812 test_array [0] = 0 6813 6814 ; 6815 return 0; 6816 } 6817 _ACEOF 6818 rm -f conftest.$ac_objext 6819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6820 (eval $ac_compile) 2>&5 6821 ac_status=$? 6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6823 (exit $ac_status); } && 6824 { ac_try='test -s conftest.$ac_objext' 6825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6826 (eval $ac_try) 2>&5 6827 ac_status=$? 6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6829 (exit $ac_status); }; }; then 6830 ac_hi=$ac_mid 6831 else 6832 echo "$as_me: failed program was:" >&5 6833 sed 's/^/| /' conftest.$ac_ext >&5 6834 6835 ac_lo=`expr '(' $ac_mid ')' + 1` 6836 fi 6837 rm -f conftest.$ac_objext conftest.$ac_ext 6838 done 6839 case $ac_lo in 6840 ?*) ac_cv_sizeof_short=$ac_lo;; 6841 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 6842 See \`config.log' for more details." >&5 6843 echo "$as_me: error: cannot compute sizeof (short), 77 6844 See \`config.log' for more details." >&2;} 6845 { (exit 1); exit 1; }; } ;; 6846 esac 6847 else 6848 if test "$cross_compiling" = yes; then 6849 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 6850 See \`config.log' for more details." >&5 6851 echo "$as_me: error: cannot run test program while cross compiling 6852 See \`config.log' for more details." >&2;} 6853 { (exit 1); exit 1; }; } 6854 else 6855 cat >conftest.$ac_ext <<_ACEOF 6856 #line $LINENO "configure" 6857 /* confdefs.h. */ 6858 _ACEOF 6859 cat confdefs.h >>conftest.$ac_ext 6860 cat >>conftest.$ac_ext <<_ACEOF 6861 /* end confdefs.h. */ 6862 $ac_includes_default 6863 long longval () { return (long) (sizeof (short)); } 6864 unsigned long ulongval () { return (long) (sizeof (short)); } 6865 #include <stdio.h> 6866 #include <stdlib.h> 6867 int 6868 main () 6869 { 6870 6871 FILE *f = fopen ("conftest.val", "w"); 6872 if (! f) 6873 exit (1); 6874 if (((long) (sizeof (short))) < 0) 6875 { 6876 long i = longval (); 6877 if (i != ((long) (sizeof (short)))) 6878 exit (1); 6879 fprintf (f, "%ld\n", i); 6880 } 6881 else 6882 { 6883 unsigned long i = ulongval (); 6884 if (i != ((long) (sizeof (short)))) 6885 exit (1); 6886 fprintf (f, "%lu\n", i); 6887 } 6888 exit (ferror (f) || fclose (f) != 0); 6889 6890 ; 6891 return 0; 6892 } 6893 _ACEOF 6894 rm -f conftest$ac_exeext 6895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6896 (eval $ac_link) 2>&5 6897 ac_status=$? 6898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6899 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6901 (eval $ac_try) 2>&5 6902 ac_status=$? 6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6904 (exit $ac_status); }; }; then 6905 ac_cv_sizeof_short=`cat conftest.val` 6906 else 6907 echo "$as_me: program exited with status $ac_status" >&5 6908 echo "$as_me: failed program was:" >&5 6909 sed 's/^/| /' conftest.$ac_ext >&5 6910 6911 ( exit $ac_status ) 6912 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 6913 See \`config.log' for more details." >&5 6914 echo "$as_me: error: cannot compute sizeof (short), 77 6915 See \`config.log' for more details." >&2;} 6916 { (exit 1); exit 1; }; } 6917 fi 6918 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6919 fi 6920 fi 6921 rm -f conftest.val 6922 else 6923 ac_cv_sizeof_short=0 6924 fi 6925 fi 6926 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 6927 echo "${ECHO_T}$ac_cv_sizeof_short" >&6 6928 cat >>confdefs.h <<_ACEOF 6929 #define SIZEOF_SHORT $ac_cv_sizeof_short 6930 _ACEOF 6931 6932 6933 echo "$as_me:$LINENO: checking for int" >&5 6934 echo $ECHO_N "checking for int... $ECHO_C" >&6 6935 if test "${ac_cv_type_int+set}" = set; then 6936 echo $ECHO_N "(cached) $ECHO_C" >&6 6937 else 6938 cat >conftest.$ac_ext <<_ACEOF 6939 #line $LINENO "configure" 6940 /* confdefs.h. */ 6941 _ACEOF 6942 cat confdefs.h >>conftest.$ac_ext 6943 cat >>conftest.$ac_ext <<_ACEOF 6944 /* end confdefs.h. */ 6945 $ac_includes_default 6946 int 6947 main () 6948 { 6949 if ((int *) 0) 6950 return 0; 6951 if (sizeof (int)) 6952 return 0; 6953 ; 6954 return 0; 6955 } 6956 _ACEOF 6957 rm -f conftest.$ac_objext 6958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6959 (eval $ac_compile) 2>&5 6960 ac_status=$? 6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6962 (exit $ac_status); } && 6963 { ac_try='test -s conftest.$ac_objext' 6964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6965 (eval $ac_try) 2>&5 6966 ac_status=$? 6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6968 (exit $ac_status); }; }; then 6969 ac_cv_type_int=yes 6970 else 6971 echo "$as_me: failed program was:" >&5 6972 sed 's/^/| /' conftest.$ac_ext >&5 6973 6974 ac_cv_type_int=no 6975 fi 6976 rm -f conftest.$ac_objext conftest.$ac_ext 6977 fi 6978 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 6979 echo "${ECHO_T}$ac_cv_type_int" >&6 6980 6981 echo "$as_me:$LINENO: checking size of int" >&5 6982 echo $ECHO_N "checking size of int... $ECHO_C" >&6 6983 if test "${ac_cv_sizeof_int+set}" = set; then 6984 echo $ECHO_N "(cached) $ECHO_C" >&6 6985 else 6986 if test "$ac_cv_type_int" = yes; then 6987 # The cast to unsigned long works around a bug in the HP C Compiler 6988 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6989 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6990 # This bug is HP SR number 8606223364. 6991 if test "$cross_compiling" = yes; then 6992 # Depending upon the size, compute the lo and hi bounds. 6993 cat >conftest.$ac_ext <<_ACEOF 6994 #line $LINENO "configure" 6995 /* confdefs.h. */ 6996 _ACEOF 6997 cat confdefs.h >>conftest.$ac_ext 6998 cat >>conftest.$ac_ext <<_ACEOF 6999 /* end confdefs.h. */ 7000 $ac_includes_default 7001 int 7002 main () 7003 { 7004 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; 7005 test_array [0] = 0 7006 7007 ; 7008 return 0; 7009 } 7010 _ACEOF 7011 rm -f conftest.$ac_objext 7012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7013 (eval $ac_compile) 2>&5 7014 ac_status=$? 7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7016 (exit $ac_status); } && 7017 { ac_try='test -s conftest.$ac_objext' 7018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7019 (eval $ac_try) 2>&5 7020 ac_status=$? 7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7022 (exit $ac_status); }; }; then 7023 ac_lo=0 ac_mid=0 7024 while :; do 7025 cat >conftest.$ac_ext <<_ACEOF 7026 #line $LINENO "configure" 7027 /* confdefs.h. */ 7028 _ACEOF 7029 cat confdefs.h >>conftest.$ac_ext 7030 cat >>conftest.$ac_ext <<_ACEOF 7031 /* end confdefs.h. */ 7032 $ac_includes_default 7033 int 7034 main () 7035 { 7036 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 7037 test_array [0] = 0 7038 7039 ; 7040 return 0; 7041 } 7042 _ACEOF 7043 rm -f conftest.$ac_objext 7044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7045 (eval $ac_compile) 2>&5 7046 ac_status=$? 7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7048 (exit $ac_status); } && 7049 { ac_try='test -s conftest.$ac_objext' 7050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7051 (eval $ac_try) 2>&5 7052 ac_status=$? 7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7054 (exit $ac_status); }; }; then 7055 ac_hi=$ac_mid; break 7056 else 7057 echo "$as_me: failed program was:" >&5 7058 sed 's/^/| /' conftest.$ac_ext >&5 7059 7060 ac_lo=`expr $ac_mid + 1` 7061 if test $ac_lo -le $ac_mid; then 7062 ac_lo= ac_hi= 7063 break 7064 fi 7065 ac_mid=`expr 2 '*' $ac_mid + 1` 7066 fi 7067 rm -f conftest.$ac_objext conftest.$ac_ext 7068 done 7069 else 7070 echo "$as_me: failed program was:" >&5 7071 sed 's/^/| /' conftest.$ac_ext >&5 7072 7073 cat >conftest.$ac_ext <<_ACEOF 7074 #line $LINENO "configure" 7075 /* confdefs.h. */ 7076 _ACEOF 7077 cat confdefs.h >>conftest.$ac_ext 7078 cat >>conftest.$ac_ext <<_ACEOF 7079 /* end confdefs.h. */ 7080 $ac_includes_default 7081 int 7082 main () 7083 { 7084 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; 7085 test_array [0] = 0 7086 7087 ; 7088 return 0; 7089 } 7090 _ACEOF 7091 rm -f conftest.$ac_objext 7092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7093 (eval $ac_compile) 2>&5 7094 ac_status=$? 7095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7096 (exit $ac_status); } && 7097 { ac_try='test -s conftest.$ac_objext' 7098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7099 (eval $ac_try) 2>&5 7100 ac_status=$? 7101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7102 (exit $ac_status); }; }; then 7103 ac_hi=-1 ac_mid=-1 7104 while :; do 7105 cat >conftest.$ac_ext <<_ACEOF 7106 #line $LINENO "configure" 7107 /* confdefs.h. */ 7108 _ACEOF 7109 cat confdefs.h >>conftest.$ac_ext 7110 cat >>conftest.$ac_ext <<_ACEOF 7111 /* end confdefs.h. */ 7112 $ac_includes_default 7113 int 7114 main () 7115 { 7116 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; 7117 test_array [0] = 0 7118 7119 ; 7120 return 0; 7121 } 7122 _ACEOF 7123 rm -f conftest.$ac_objext 7124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7125 (eval $ac_compile) 2>&5 7126 ac_status=$? 7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7128 (exit $ac_status); } && 7129 { ac_try='test -s conftest.$ac_objext' 7130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7131 (eval $ac_try) 2>&5 7132 ac_status=$? 7133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7134 (exit $ac_status); }; }; then 7135 ac_lo=$ac_mid; break 7136 else 7137 echo "$as_me: failed program was:" >&5 7138 sed 's/^/| /' conftest.$ac_ext >&5 7139 7140 ac_hi=`expr '(' $ac_mid ')' - 1` 7141 if test $ac_mid -le $ac_hi; then 7142 ac_lo= ac_hi= 7143 break 7144 fi 7145 ac_mid=`expr 2 '*' $ac_mid` 7146 fi 7147 rm -f conftest.$ac_objext conftest.$ac_ext 7148 done 7149 else 7150 echo "$as_me: failed program was:" >&5 7151 sed 's/^/| /' conftest.$ac_ext >&5 7152 7153 ac_lo= ac_hi= 7154 fi 7155 rm -f conftest.$ac_objext conftest.$ac_ext 7156 fi 7157 rm -f conftest.$ac_objext conftest.$ac_ext 7158 # Binary search between lo and hi bounds. 7159 while test "x$ac_lo" != "x$ac_hi"; do 7160 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 7161 cat >conftest.$ac_ext <<_ACEOF 7162 #line $LINENO "configure" 7163 /* confdefs.h. */ 7164 _ACEOF 7165 cat confdefs.h >>conftest.$ac_ext 7166 cat >>conftest.$ac_ext <<_ACEOF 7167 /* end confdefs.h. */ 7168 $ac_includes_default 7169 int 7170 main () 7171 { 7172 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 7173 test_array [0] = 0 7174 7175 ; 7176 return 0; 7177 } 7178 _ACEOF 7179 rm -f conftest.$ac_objext 7180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7181 (eval $ac_compile) 2>&5 7182 ac_status=$? 7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7184 (exit $ac_status); } && 7185 { ac_try='test -s conftest.$ac_objext' 7186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7187 (eval $ac_try) 2>&5 7188 ac_status=$? 7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7190 (exit $ac_status); }; }; then 7191 ac_hi=$ac_mid 7192 else 7193 echo "$as_me: failed program was:" >&5 7194 sed 's/^/| /' conftest.$ac_ext >&5 7195 7196 ac_lo=`expr '(' $ac_mid ')' + 1` 7197 fi 7198 rm -f conftest.$ac_objext conftest.$ac_ext 7199 done 7200 case $ac_lo in 7201 ?*) ac_cv_sizeof_int=$ac_lo;; 7202 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 7203 See \`config.log' for more details." >&5 7204 echo "$as_me: error: cannot compute sizeof (int), 77 7205 See \`config.log' for more details." >&2;} 7206 { (exit 1); exit 1; }; } ;; 7207 esac 7208 else 7209 if test "$cross_compiling" = yes; then 7210 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 7211 See \`config.log' for more details." >&5 7212 echo "$as_me: error: cannot run test program while cross compiling 7213 See \`config.log' for more details." >&2;} 7214 { (exit 1); exit 1; }; } 7215 else 7216 cat >conftest.$ac_ext <<_ACEOF 7217 #line $LINENO "configure" 7218 /* confdefs.h. */ 7219 _ACEOF 7220 cat confdefs.h >>conftest.$ac_ext 7221 cat >>conftest.$ac_ext <<_ACEOF 7222 /* end confdefs.h. */ 7223 $ac_includes_default 7224 long longval () { return (long) (sizeof (int)); } 7225 unsigned long ulongval () { return (long) (sizeof (int)); } 7226 #include <stdio.h> 7227 #include <stdlib.h> 7228 int 7229 main () 7230 { 7231 7232 FILE *f = fopen ("conftest.val", "w"); 7233 if (! f) 7234 exit (1); 7235 if (((long) (sizeof (int))) < 0) 7236 { 7237 long i = longval (); 7238 if (i != ((long) (sizeof (int)))) 7239 exit (1); 7240 fprintf (f, "%ld\n", i); 7241 } 7242 else 7243 { 7244 unsigned long i = ulongval (); 7245 if (i != ((long) (sizeof (int)))) 7246 exit (1); 7247 fprintf (f, "%lu\n", i); 7248 } 7249 exit (ferror (f) || fclose (f) != 0); 7250 7251 ; 7252 return 0; 7253 } 7254 _ACEOF 7255 rm -f conftest$ac_exeext 7256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7257 (eval $ac_link) 2>&5 7258 ac_status=$? 7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7260 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7262 (eval $ac_try) 2>&5 7263 ac_status=$? 7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7265 (exit $ac_status); }; }; then 7266 ac_cv_sizeof_int=`cat conftest.val` 7267 else 7268 echo "$as_me: program exited with status $ac_status" >&5 7269 echo "$as_me: failed program was:" >&5 7270 sed 's/^/| /' conftest.$ac_ext >&5 7271 7272 ( exit $ac_status ) 7273 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 7274 See \`config.log' for more details." >&5 7275 echo "$as_me: error: cannot compute sizeof (int), 77 7276 See \`config.log' for more details." >&2;} 7277 { (exit 1); exit 1; }; } 7278 fi 7279 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7280 fi 7281 fi 7282 rm -f conftest.val 7283 else 7284 ac_cv_sizeof_int=0 7285 fi 7286 fi 7287 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 7288 echo "${ECHO_T}$ac_cv_sizeof_int" >&6 7289 cat >>confdefs.h <<_ACEOF 7290 #define SIZEOF_INT $ac_cv_sizeof_int 7291 _ACEOF 7292 7293 7294 echo "$as_me:$LINENO: checking for long" >&5 7295 echo $ECHO_N "checking for long... $ECHO_C" >&6 7296 if test "${ac_cv_type_long+set}" = set; then 7297 echo $ECHO_N "(cached) $ECHO_C" >&6 7298 else 7299 cat >conftest.$ac_ext <<_ACEOF 7300 #line $LINENO "configure" 7301 /* confdefs.h. */ 7302 _ACEOF 7303 cat confdefs.h >>conftest.$ac_ext 7304 cat >>conftest.$ac_ext <<_ACEOF 7305 /* end confdefs.h. */ 7306 $ac_includes_default 7307 int 7308 main () 7309 { 7310 if ((long *) 0) 7311 return 0; 7312 if (sizeof (long)) 7313 return 0; 7314 ; 7315 return 0; 7316 } 7317 _ACEOF 7318 rm -f conftest.$ac_objext 7319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7320 (eval $ac_compile) 2>&5 7321 ac_status=$? 7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7323 (exit $ac_status); } && 7324 { ac_try='test -s conftest.$ac_objext' 7325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7326 (eval $ac_try) 2>&5 7327 ac_status=$? 7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7329 (exit $ac_status); }; }; then 7330 ac_cv_type_long=yes 7331 else 7332 echo "$as_me: failed program was:" >&5 7333 sed 's/^/| /' conftest.$ac_ext >&5 7334 7335 ac_cv_type_long=no 7336 fi 7337 rm -f conftest.$ac_objext conftest.$ac_ext 7338 fi 7339 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 7340 echo "${ECHO_T}$ac_cv_type_long" >&6 7341 7342 echo "$as_me:$LINENO: checking size of long" >&5 7343 echo $ECHO_N "checking size of long... $ECHO_C" >&6 7344 if test "${ac_cv_sizeof_long+set}" = set; then 7345 echo $ECHO_N "(cached) $ECHO_C" >&6 7346 else 7347 if test "$ac_cv_type_long" = yes; then 7348 # The cast to unsigned long works around a bug in the HP C Compiler 7349 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7350 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7351 # This bug is HP SR number 8606223364. 7352 if test "$cross_compiling" = yes; then 7353 # Depending upon the size, compute the lo and hi bounds. 7354 cat >conftest.$ac_ext <<_ACEOF 7355 #line $LINENO "configure" 7356 /* confdefs.h. */ 7357 _ACEOF 7358 cat confdefs.h >>conftest.$ac_ext 7359 cat >>conftest.$ac_ext <<_ACEOF 7360 /* end confdefs.h. */ 7361 $ac_includes_default 7362 int 7363 main () 7364 { 7365 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; 7366 test_array [0] = 0 7367 7368 ; 7369 return 0; 7370 } 7371 _ACEOF 7372 rm -f conftest.$ac_objext 7373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7374 (eval $ac_compile) 2>&5 7375 ac_status=$? 7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7377 (exit $ac_status); } && 7378 { ac_try='test -s conftest.$ac_objext' 7379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7380 (eval $ac_try) 2>&5 7381 ac_status=$? 7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7383 (exit $ac_status); }; }; then 7384 ac_lo=0 ac_mid=0 7385 while :; do 7386 cat >conftest.$ac_ext <<_ACEOF 7387 #line $LINENO "configure" 7388 /* confdefs.h. */ 7389 _ACEOF 7390 cat confdefs.h >>conftest.$ac_ext 7391 cat >>conftest.$ac_ext <<_ACEOF 7392 /* end confdefs.h. */ 7393 $ac_includes_default 7394 int 7395 main () 7396 { 7397 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 7398 test_array [0] = 0 7399 7400 ; 7401 return 0; 7402 } 7403 _ACEOF 7404 rm -f conftest.$ac_objext 7405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7406 (eval $ac_compile) 2>&5 7407 ac_status=$? 7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7409 (exit $ac_status); } && 7410 { ac_try='test -s conftest.$ac_objext' 7411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7412 (eval $ac_try) 2>&5 7413 ac_status=$? 7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7415 (exit $ac_status); }; }; then 7416 ac_hi=$ac_mid; break 7417 else 7418 echo "$as_me: failed program was:" >&5 7419 sed 's/^/| /' conftest.$ac_ext >&5 7420 7421 ac_lo=`expr $ac_mid + 1` 7422 if test $ac_lo -le $ac_mid; then 7423 ac_lo= ac_hi= 7424 break 7425 fi 7426 ac_mid=`expr 2 '*' $ac_mid + 1` 7427 fi 7428 rm -f conftest.$ac_objext conftest.$ac_ext 7429 done 7430 else 7431 echo "$as_me: failed program was:" >&5 7432 sed 's/^/| /' conftest.$ac_ext >&5 7433 7434 cat >conftest.$ac_ext <<_ACEOF 7435 #line $LINENO "configure" 7436 /* confdefs.h. */ 7437 _ACEOF 7438 cat confdefs.h >>conftest.$ac_ext 7439 cat >>conftest.$ac_ext <<_ACEOF 7440 /* end confdefs.h. */ 7441 $ac_includes_default 7442 int 7443 main () 7444 { 7445 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; 7446 test_array [0] = 0 7447 7448 ; 7449 return 0; 7450 } 7451 _ACEOF 7452 rm -f conftest.$ac_objext 7453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7454 (eval $ac_compile) 2>&5 7455 ac_status=$? 7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7457 (exit $ac_status); } && 7458 { ac_try='test -s conftest.$ac_objext' 7459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7460 (eval $ac_try) 2>&5 7461 ac_status=$? 7462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7463 (exit $ac_status); }; }; then 7464 ac_hi=-1 ac_mid=-1 7465 while :; do 7466 cat >conftest.$ac_ext <<_ACEOF 7467 #line $LINENO "configure" 7468 /* confdefs.h. */ 7469 _ACEOF 7470 cat confdefs.h >>conftest.$ac_ext 7471 cat >>conftest.$ac_ext <<_ACEOF 7472 /* end confdefs.h. */ 7473 $ac_includes_default 7474 int 7475 main () 7476 { 7477 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; 7478 test_array [0] = 0 7479 7480 ; 7481 return 0; 7482 } 7483 _ACEOF 7484 rm -f conftest.$ac_objext 7485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7486 (eval $ac_compile) 2>&5 7487 ac_status=$? 7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7489 (exit $ac_status); } && 7490 { ac_try='test -s conftest.$ac_objext' 7491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7492 (eval $ac_try) 2>&5 7493 ac_status=$? 7494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7495 (exit $ac_status); }; }; then 7496 ac_lo=$ac_mid; break 7497 else 7498 echo "$as_me: failed program was:" >&5 7499 sed 's/^/| /' conftest.$ac_ext >&5 7500 7501 ac_hi=`expr '(' $ac_mid ')' - 1` 7502 if test $ac_mid -le $ac_hi; then 7503 ac_lo= ac_hi= 7504 break 7505 fi 7506 ac_mid=`expr 2 '*' $ac_mid` 7507 fi 7508 rm -f conftest.$ac_objext conftest.$ac_ext 7509 done 7510 else 7511 echo "$as_me: failed program was:" >&5 7512 sed 's/^/| /' conftest.$ac_ext >&5 7513 7514 ac_lo= ac_hi= 7515 fi 7516 rm -f conftest.$ac_objext conftest.$ac_ext 7517 fi 7518 rm -f conftest.$ac_objext conftest.$ac_ext 7519 # Binary search between lo and hi bounds. 7520 while test "x$ac_lo" != "x$ac_hi"; do 7521 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 7522 cat >conftest.$ac_ext <<_ACEOF 7523 #line $LINENO "configure" 7524 /* confdefs.h. */ 7525 _ACEOF 7526 cat confdefs.h >>conftest.$ac_ext 7527 cat >>conftest.$ac_ext <<_ACEOF 7528 /* end confdefs.h. */ 7529 $ac_includes_default 7530 int 7531 main () 7532 { 7533 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 7534 test_array [0] = 0 7535 7536 ; 7537 return 0; 7538 } 7539 _ACEOF 7540 rm -f conftest.$ac_objext 7541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7542 (eval $ac_compile) 2>&5 7543 ac_status=$? 7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7545 (exit $ac_status); } && 7546 { ac_try='test -s conftest.$ac_objext' 7547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7548 (eval $ac_try) 2>&5 7549 ac_status=$? 7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7551 (exit $ac_status); }; }; then 7552 ac_hi=$ac_mid 7553 else 7554 echo "$as_me: failed program was:" >&5 7555 sed 's/^/| /' conftest.$ac_ext >&5 7556 7557 ac_lo=`expr '(' $ac_mid ')' + 1` 7558 fi 7559 rm -f conftest.$ac_objext conftest.$ac_ext 7560 done 7561 case $ac_lo in 7562 ?*) ac_cv_sizeof_long=$ac_lo;; 7563 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 7564 See \`config.log' for more details." >&5 7565 echo "$as_me: error: cannot compute sizeof (long), 77 7566 See \`config.log' for more details." >&2;} 7567 { (exit 1); exit 1; }; } ;; 7568 esac 7569 else 7570 if test "$cross_compiling" = yes; then 7571 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 7572 See \`config.log' for more details." >&5 7573 echo "$as_me: error: cannot run test program while cross compiling 7574 See \`config.log' for more details." >&2;} 7575 { (exit 1); exit 1; }; } 7576 else 7577 cat >conftest.$ac_ext <<_ACEOF 7578 #line $LINENO "configure" 7579 /* confdefs.h. */ 7580 _ACEOF 7581 cat confdefs.h >>conftest.$ac_ext 7582 cat >>conftest.$ac_ext <<_ACEOF 7583 /* end confdefs.h. */ 7584 $ac_includes_default 7585 long longval () { return (long) (sizeof (long)); } 7586 unsigned long ulongval () { return (long) (sizeof (long)); } 7587 #include <stdio.h> 7588 #include <stdlib.h> 7589 int 7590 main () 7591 { 7592 7593 FILE *f = fopen ("conftest.val", "w"); 7594 if (! f) 7595 exit (1); 7596 if (((long) (sizeof (long))) < 0) 7597 { 7598 long i = longval (); 7599 if (i != ((long) (sizeof (long)))) 7600 exit (1); 7601 fprintf (f, "%ld\n", i); 7602 } 7603 else 7604 { 7605 unsigned long i = ulongval (); 7606 if (i != ((long) (sizeof (long)))) 7607 exit (1); 7608 fprintf (f, "%lu\n", i); 7609 } 7610 exit (ferror (f) || fclose (f) != 0); 7611 7612 ; 7613 return 0; 7614 } 7615 _ACEOF 7616 rm -f conftest$ac_exeext 7617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7618 (eval $ac_link) 2>&5 7619 ac_status=$? 7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7621 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7623 (eval $ac_try) 2>&5 7624 ac_status=$? 7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7626 (exit $ac_status); }; }; then 7627 ac_cv_sizeof_long=`cat conftest.val` 7628 else 7629 echo "$as_me: program exited with status $ac_status" >&5 7630 echo "$as_me: failed program was:" >&5 7631 sed 's/^/| /' conftest.$ac_ext >&5 7632 7633 ( exit $ac_status ) 7634 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 7635 See \`config.log' for more details." >&5 7636 echo "$as_me: error: cannot compute sizeof (long), 77 7637 See \`config.log' for more details." >&2;} 7638 { (exit 1); exit 1; }; } 7639 fi 7640 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7641 fi 7642 fi 7643 rm -f conftest.val 7644 else 7645 ac_cv_sizeof_long=0 7646 fi 7647 fi 7648 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 7649 echo "${ECHO_T}$ac_cv_sizeof_long" >&6 7650 cat >>confdefs.h <<_ACEOF 7651 #define SIZEOF_LONG $ac_cv_sizeof_long 7652 _ACEOF 7653 7654 7655 echo "$as_me:$LINENO: checking for void*" >&5 7656 echo $ECHO_N "checking for void*... $ECHO_C" >&6 7657 if test "${ac_cv_type_voidp+set}" = set; then 7658 echo $ECHO_N "(cached) $ECHO_C" >&6 7659 else 7660 cat >conftest.$ac_ext <<_ACEOF 7661 #line $LINENO "configure" 7662 /* confdefs.h. */ 7663 _ACEOF 7664 cat confdefs.h >>conftest.$ac_ext 7665 cat >>conftest.$ac_ext <<_ACEOF 7666 /* end confdefs.h. */ 7667 $ac_includes_default 7668 int 7669 main () 7670 { 7671 if ((void* *) 0) 7672 return 0; 7673 if (sizeof (void*)) 7674 return 0; 7675 ; 7676 return 0; 7677 } 7678 _ACEOF 7679 rm -f conftest.$ac_objext 7680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7681 (eval $ac_compile) 2>&5 7682 ac_status=$? 7683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7684 (exit $ac_status); } && 7685 { ac_try='test -s conftest.$ac_objext' 7686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7687 (eval $ac_try) 2>&5 7688 ac_status=$? 7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7690 (exit $ac_status); }; }; then 7691 ac_cv_type_voidp=yes 7692 else 7693 echo "$as_me: failed program was:" >&5 7694 sed 's/^/| /' conftest.$ac_ext >&5 7695 7696 ac_cv_type_voidp=no 7697 fi 7698 rm -f conftest.$ac_objext conftest.$ac_ext 7699 fi 7700 echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5 7701 echo "${ECHO_T}$ac_cv_type_voidp" >&6 7702 7703 echo "$as_me:$LINENO: checking size of void*" >&5 7704 echo $ECHO_N "checking size of void*... $ECHO_C" >&6 7705 if test "${ac_cv_sizeof_voidp+set}" = set; then 7706 echo $ECHO_N "(cached) $ECHO_C" >&6 7707 else 7708 if test "$ac_cv_type_voidp" = yes; then 7709 # The cast to unsigned long works around a bug in the HP C Compiler 7710 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7711 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7712 # This bug is HP SR number 8606223364. 7713 if test "$cross_compiling" = yes; then 7714 # Depending upon the size, compute the lo and hi bounds. 7715 cat >conftest.$ac_ext <<_ACEOF 7716 #line $LINENO "configure" 7717 /* confdefs.h. */ 7718 _ACEOF 7719 cat confdefs.h >>conftest.$ac_ext 7720 cat >>conftest.$ac_ext <<_ACEOF 7721 /* end confdefs.h. */ 7722 $ac_includes_default 7723 int 7724 main () 7725 { 7726 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= 0)]; 7727 test_array [0] = 0 7728 7729 ; 7730 return 0; 7731 } 7732 _ACEOF 7733 rm -f conftest.$ac_objext 7734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7735 (eval $ac_compile) 2>&5 7736 ac_status=$? 7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7738 (exit $ac_status); } && 7739 { ac_try='test -s conftest.$ac_objext' 7740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7741 (eval $ac_try) 2>&5 7742 ac_status=$? 7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7744 (exit $ac_status); }; }; then 7745 ac_lo=0 ac_mid=0 7746 while :; do 7747 cat >conftest.$ac_ext <<_ACEOF 7748 #line $LINENO "configure" 7749 /* confdefs.h. */ 7750 _ACEOF 7751 cat confdefs.h >>conftest.$ac_ext 7752 cat >>conftest.$ac_ext <<_ACEOF 7753 /* end confdefs.h. */ 7754 $ac_includes_default 7755 int 7756 main () 7757 { 7758 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)]; 7759 test_array [0] = 0 7760 7761 ; 7762 return 0; 7763 } 7764 _ACEOF 7765 rm -f conftest.$ac_objext 7766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7767 (eval $ac_compile) 2>&5 7768 ac_status=$? 7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7770 (exit $ac_status); } && 7771 { ac_try='test -s conftest.$ac_objext' 7772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7773 (eval $ac_try) 2>&5 7774 ac_status=$? 7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7776 (exit $ac_status); }; }; then 7777 ac_hi=$ac_mid; break 7778 else 7779 echo "$as_me: failed program was:" >&5 7780 sed 's/^/| /' conftest.$ac_ext >&5 7781 7782 ac_lo=`expr $ac_mid + 1` 7783 if test $ac_lo -le $ac_mid; then 7784 ac_lo= ac_hi= 7785 break 7786 fi 7787 ac_mid=`expr 2 '*' $ac_mid + 1` 7788 fi 7789 rm -f conftest.$ac_objext conftest.$ac_ext 7790 done 7791 else 7792 echo "$as_me: failed program was:" >&5 7793 sed 's/^/| /' conftest.$ac_ext >&5 7794 7795 cat >conftest.$ac_ext <<_ACEOF 7796 #line $LINENO "configure" 7797 /* confdefs.h. */ 7798 _ACEOF 7799 cat confdefs.h >>conftest.$ac_ext 7800 cat >>conftest.$ac_ext <<_ACEOF 7801 /* end confdefs.h. */ 7802 $ac_includes_default 7803 int 7804 main () 7805 { 7806 static int test_array [1 - 2 * !(((long) (sizeof (void*))) < 0)]; 7807 test_array [0] = 0 7808 7809 ; 7810 return 0; 7811 } 7812 _ACEOF 7813 rm -f conftest.$ac_objext 7814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7815 (eval $ac_compile) 2>&5 7816 ac_status=$? 7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7818 (exit $ac_status); } && 7819 { ac_try='test -s conftest.$ac_objext' 7820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7821 (eval $ac_try) 2>&5 7822 ac_status=$? 7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7824 (exit $ac_status); }; }; then 7825 ac_hi=-1 ac_mid=-1 7826 while :; do 7827 cat >conftest.$ac_ext <<_ACEOF 7828 #line $LINENO "configure" 7829 /* confdefs.h. */ 7830 _ACEOF 7831 cat confdefs.h >>conftest.$ac_ext 7832 cat >>conftest.$ac_ext <<_ACEOF 7833 /* end confdefs.h. */ 7834 $ac_includes_default 7835 int 7836 main () 7837 { 7838 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= $ac_mid)]; 7839 test_array [0] = 0 7840 7841 ; 7842 return 0; 7843 } 7844 _ACEOF 7845 rm -f conftest.$ac_objext 7846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7847 (eval $ac_compile) 2>&5 7848 ac_status=$? 7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7850 (exit $ac_status); } && 7851 { ac_try='test -s conftest.$ac_objext' 7852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7853 (eval $ac_try) 2>&5 7854 ac_status=$? 7855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7856 (exit $ac_status); }; }; then 7857 ac_lo=$ac_mid; break 7858 else 7859 echo "$as_me: failed program was:" >&5 7860 sed 's/^/| /' conftest.$ac_ext >&5 7861 7862 ac_hi=`expr '(' $ac_mid ')' - 1` 7863 if test $ac_mid -le $ac_hi; then 7864 ac_lo= ac_hi= 7865 break 7866 fi 7867 ac_mid=`expr 2 '*' $ac_mid` 7868 fi 7869 rm -f conftest.$ac_objext conftest.$ac_ext 7870 done 7871 else 7872 echo "$as_me: failed program was:" >&5 7873 sed 's/^/| /' conftest.$ac_ext >&5 7874 7875 ac_lo= ac_hi= 7876 fi 7877 rm -f conftest.$ac_objext conftest.$ac_ext 7878 fi 7879 rm -f conftest.$ac_objext conftest.$ac_ext 7880 # Binary search between lo and hi bounds. 7881 while test "x$ac_lo" != "x$ac_hi"; do 7882 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 7883 cat >conftest.$ac_ext <<_ACEOF 7884 #line $LINENO "configure" 7885 /* confdefs.h. */ 7886 _ACEOF 7887 cat confdefs.h >>conftest.$ac_ext 7888 cat >>conftest.$ac_ext <<_ACEOF 7889 /* end confdefs.h. */ 7890 $ac_includes_default 7891 int 7892 main () 7893 { 7894 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)]; 7895 test_array [0] = 0 7896 7897 ; 7898 return 0; 7899 } 7900 _ACEOF 7901 rm -f conftest.$ac_objext 7902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7903 (eval $ac_compile) 2>&5 7904 ac_status=$? 7905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7906 (exit $ac_status); } && 7907 { ac_try='test -s conftest.$ac_objext' 7908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7909 (eval $ac_try) 2>&5 7910 ac_status=$? 7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7912 (exit $ac_status); }; }; then 7913 ac_hi=$ac_mid 7914 else 7915 echo "$as_me: failed program was:" >&5 7916 sed 's/^/| /' conftest.$ac_ext >&5 7917 7918 ac_lo=`expr '(' $ac_mid ')' + 1` 7919 fi 7920 rm -f conftest.$ac_objext conftest.$ac_ext 7921 done 7922 case $ac_lo in 7923 ?*) ac_cv_sizeof_voidp=$ac_lo;; 7924 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77 7925 See \`config.log' for more details." >&5 7926 echo "$as_me: error: cannot compute sizeof (void*), 77 7927 See \`config.log' for more details." >&2;} 7928 { (exit 1); exit 1; }; } ;; 7929 esac 7930 else 7931 if test "$cross_compiling" = yes; then 7932 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 7933 See \`config.log' for more details." >&5 7934 echo "$as_me: error: cannot run test program while cross compiling 7935 See \`config.log' for more details." >&2;} 7936 { (exit 1); exit 1; }; } 7937 else 7938 cat >conftest.$ac_ext <<_ACEOF 7939 #line $LINENO "configure" 7940 /* confdefs.h. */ 7941 _ACEOF 7942 cat confdefs.h >>conftest.$ac_ext 7943 cat >>conftest.$ac_ext <<_ACEOF 7944 /* end confdefs.h. */ 7945 $ac_includes_default 7946 long longval () { return (long) (sizeof (void*)); } 7947 unsigned long ulongval () { return (long) (sizeof (void*)); } 7948 #include <stdio.h> 7949 #include <stdlib.h> 7950 int 7951 main () 7952 { 7953 7954 FILE *f = fopen ("conftest.val", "w"); 7955 if (! f) 7956 exit (1); 7957 if (((long) (sizeof (void*))) < 0) 7958 { 7959 long i = longval (); 7960 if (i != ((long) (sizeof (void*)))) 7961 exit (1); 7962 fprintf (f, "%ld\n", i); 7963 } 7964 else 7965 { 7966 unsigned long i = ulongval (); 7967 if (i != ((long) (sizeof (void*)))) 7968 exit (1); 7969 fprintf (f, "%lu\n", i); 7970 } 7971 exit (ferror (f) || fclose (f) != 0); 7972 7973 ; 7974 return 0; 7975 } 7976 _ACEOF 7977 rm -f conftest$ac_exeext 7978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7979 (eval $ac_link) 2>&5 7980 ac_status=$? 7981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7982 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7984 (eval $ac_try) 2>&5 7985 ac_status=$? 7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7987 (exit $ac_status); }; }; then 7988 ac_cv_sizeof_voidp=`cat conftest.val` 7989 else 7990 echo "$as_me: program exited with status $ac_status" >&5 7991 echo "$as_me: failed program was:" >&5 7992 sed 's/^/| /' conftest.$ac_ext >&5 7993 7994 ( exit $ac_status ) 7995 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77 7996 See \`config.log' for more details." >&5 7997 echo "$as_me: error: cannot compute sizeof (void*), 77 7998 See \`config.log' for more details." >&2;} 7999 { (exit 1); exit 1; }; } 8000 fi 8001 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8002 fi 8003 fi 8004 rm -f conftest.val 8005 else 8006 ac_cv_sizeof_voidp=0 8007 fi 8008 fi 8009 echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5 8010 echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6 8011 cat >>confdefs.h <<_ACEOF 8012 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp 8013 _ACEOF 8014 8015 8016 echo "$as_me:$LINENO: checking for double" >&5 8017 echo $ECHO_N "checking for double... $ECHO_C" >&6 8018 if test "${ac_cv_type_double+set}" = set; then 8019 echo $ECHO_N "(cached) $ECHO_C" >&6 8020 else 8021 cat >conftest.$ac_ext <<_ACEOF 8022 #line $LINENO "configure" 8023 /* confdefs.h. */ 8024 _ACEOF 8025 cat confdefs.h >>conftest.$ac_ext 8026 cat >>conftest.$ac_ext <<_ACEOF 8027 /* end confdefs.h. */ 8028 $ac_includes_default 8029 int 8030 main () 8031 { 8032 if ((double *) 0) 8033 return 0; 8034 if (sizeof (double)) 8035 return 0; 8036 ; 8037 return 0; 8038 } 8039 _ACEOF 8040 rm -f conftest.$ac_objext 8041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8042 (eval $ac_compile) 2>&5 8043 ac_status=$? 8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8045 (exit $ac_status); } && 8046 { ac_try='test -s conftest.$ac_objext' 8047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8048 (eval $ac_try) 2>&5 8049 ac_status=$? 8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8051 (exit $ac_status); }; }; then 8052 ac_cv_type_double=yes 8053 else 8054 echo "$as_me: failed program was:" >&5 8055 sed 's/^/| /' conftest.$ac_ext >&5 8056 8057 ac_cv_type_double=no 8058 fi 8059 rm -f conftest.$ac_objext conftest.$ac_ext 8060 fi 8061 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 8062 echo "${ECHO_T}$ac_cv_type_double" >&6 8063 8064 echo "$as_me:$LINENO: checking size of double" >&5 8065 echo $ECHO_N "checking size of double... $ECHO_C" >&6 8066 if test "${ac_cv_sizeof_double+set}" = set; then 8067 echo $ECHO_N "(cached) $ECHO_C" >&6 8068 else 8069 if test "$ac_cv_type_double" = yes; then 8070 # The cast to unsigned long works around a bug in the HP C Compiler 8071 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8072 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8073 # This bug is HP SR number 8606223364. 8074 if test "$cross_compiling" = yes; then 8075 # Depending upon the size, compute the lo and hi bounds. 8076 cat >conftest.$ac_ext <<_ACEOF 8077 #line $LINENO "configure" 8078 /* confdefs.h. */ 8079 _ACEOF 8080 cat confdefs.h >>conftest.$ac_ext 8081 cat >>conftest.$ac_ext <<_ACEOF 8082 /* end confdefs.h. */ 8083 $ac_includes_default 8084 int 8085 main () 8086 { 8087 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)]; 8088 test_array [0] = 0 8089 8090 ; 8091 return 0; 8092 } 8093 _ACEOF 8094 rm -f conftest.$ac_objext 8095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8096 (eval $ac_compile) 2>&5 8097 ac_status=$? 8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8099 (exit $ac_status); } && 8100 { ac_try='test -s conftest.$ac_objext' 8101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8102 (eval $ac_try) 2>&5 8103 ac_status=$? 8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8105 (exit $ac_status); }; }; then 8106 ac_lo=0 ac_mid=0 8107 while :; do 8108 cat >conftest.$ac_ext <<_ACEOF 8109 #line $LINENO "configure" 8110 /* confdefs.h. */ 8111 _ACEOF 8112 cat confdefs.h >>conftest.$ac_ext 8113 cat >>conftest.$ac_ext <<_ACEOF 8114 /* end confdefs.h. */ 8115 $ac_includes_default 8116 int 8117 main () 8118 { 8119 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; 8120 test_array [0] = 0 8121 8122 ; 8123 return 0; 8124 } 8125 _ACEOF 8126 rm -f conftest.$ac_objext 8127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8128 (eval $ac_compile) 2>&5 8129 ac_status=$? 8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8131 (exit $ac_status); } && 8132 { ac_try='test -s conftest.$ac_objext' 8133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8134 (eval $ac_try) 2>&5 8135 ac_status=$? 8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8137 (exit $ac_status); }; }; then 8138 ac_hi=$ac_mid; break 8139 else 8140 echo "$as_me: failed program was:" >&5 8141 sed 's/^/| /' conftest.$ac_ext >&5 8142 8143 ac_lo=`expr $ac_mid + 1` 8144 if test $ac_lo -le $ac_mid; then 8145 ac_lo= ac_hi= 8146 break 8147 fi 8148 ac_mid=`expr 2 '*' $ac_mid + 1` 8149 fi 8150 rm -f conftest.$ac_objext conftest.$ac_ext 8151 done 8152 else 8153 echo "$as_me: failed program was:" >&5 8154 sed 's/^/| /' conftest.$ac_ext >&5 8155 8156 cat >conftest.$ac_ext <<_ACEOF 8157 #line $LINENO "configure" 8158 /* confdefs.h. */ 8159 _ACEOF 8160 cat confdefs.h >>conftest.$ac_ext 8161 cat >>conftest.$ac_ext <<_ACEOF 8162 /* end confdefs.h. */ 8163 $ac_includes_default 8164 int 8165 main () 8166 { 8167 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)]; 8168 test_array [0] = 0 8169 8170 ; 8171 return 0; 8172 } 8173 _ACEOF 8174 rm -f conftest.$ac_objext 8175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8176 (eval $ac_compile) 2>&5 8177 ac_status=$? 8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8179 (exit $ac_status); } && 8180 { ac_try='test -s conftest.$ac_objext' 8181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8182 (eval $ac_try) 2>&5 8183 ac_status=$? 8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8185 (exit $ac_status); }; }; then 8186 ac_hi=-1 ac_mid=-1 8187 while :; do 8188 cat >conftest.$ac_ext <<_ACEOF 8189 #line $LINENO "configure" 8190 /* confdefs.h. */ 8191 _ACEOF 8192 cat confdefs.h >>conftest.$ac_ext 8193 cat >>conftest.$ac_ext <<_ACEOF 8194 /* end confdefs.h. */ 8195 $ac_includes_default 8196 int 8197 main () 8198 { 8199 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)]; 8200 test_array [0] = 0 8201 8202 ; 8203 return 0; 8204 } 8205 _ACEOF 8206 rm -f conftest.$ac_objext 8207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8208 (eval $ac_compile) 2>&5 8209 ac_status=$? 8210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8211 (exit $ac_status); } && 8212 { ac_try='test -s conftest.$ac_objext' 8213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8214 (eval $ac_try) 2>&5 8215 ac_status=$? 8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8217 (exit $ac_status); }; }; then 8218 ac_lo=$ac_mid; break 8219 else 8220 echo "$as_me: failed program was:" >&5 8221 sed 's/^/| /' conftest.$ac_ext >&5 8222 8223 ac_hi=`expr '(' $ac_mid ')' - 1` 8224 if test $ac_mid -le $ac_hi; then 8225 ac_lo= ac_hi= 8226 break 8227 fi 8228 ac_mid=`expr 2 '*' $ac_mid` 8229 fi 8230 rm -f conftest.$ac_objext conftest.$ac_ext 8231 done 8232 else 8233 echo "$as_me: failed program was:" >&5 8234 sed 's/^/| /' conftest.$ac_ext >&5 8235 8236 ac_lo= ac_hi= 8237 fi 8238 rm -f conftest.$ac_objext conftest.$ac_ext 8239 fi 8240 rm -f conftest.$ac_objext conftest.$ac_ext 8241 # Binary search between lo and hi bounds. 8242 while test "x$ac_lo" != "x$ac_hi"; do 8243 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 8244 cat >conftest.$ac_ext <<_ACEOF 8245 #line $LINENO "configure" 8246 /* confdefs.h. */ 8247 _ACEOF 8248 cat confdefs.h >>conftest.$ac_ext 8249 cat >>conftest.$ac_ext <<_ACEOF 8250 /* end confdefs.h. */ 8251 $ac_includes_default 8252 int 8253 main () 8254 { 8255 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; 8256 test_array [0] = 0 8257 8258 ; 8259 return 0; 8260 } 8261 _ACEOF 8262 rm -f conftest.$ac_objext 8263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8264 (eval $ac_compile) 2>&5 8265 ac_status=$? 8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8267 (exit $ac_status); } && 8268 { ac_try='test -s conftest.$ac_objext' 8269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8270 (eval $ac_try) 2>&5 8271 ac_status=$? 8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8273 (exit $ac_status); }; }; then 8274 ac_hi=$ac_mid 8275 else 8276 echo "$as_me: failed program was:" >&5 8277 sed 's/^/| /' conftest.$ac_ext >&5 8278 8279 ac_lo=`expr '(' $ac_mid ')' + 1` 8280 fi 8281 rm -f conftest.$ac_objext conftest.$ac_ext 8282 done 8283 case $ac_lo in 8284 ?*) ac_cv_sizeof_double=$ac_lo;; 8285 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77 8286 See \`config.log' for more details." >&5 8287 echo "$as_me: error: cannot compute sizeof (double), 77 8288 See \`config.log' for more details." >&2;} 8289 { (exit 1); exit 1; }; } ;; 8290 esac 8291 else 8292 if test "$cross_compiling" = yes; then 8293 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 8294 See \`config.log' for more details." >&5 8295 echo "$as_me: error: cannot run test program while cross compiling 8296 See \`config.log' for more details." >&2;} 8297 { (exit 1); exit 1; }; } 8298 else 8299 cat >conftest.$ac_ext <<_ACEOF 8300 #line $LINENO "configure" 8301 /* confdefs.h. */ 8302 _ACEOF 8303 cat confdefs.h >>conftest.$ac_ext 8304 cat >>conftest.$ac_ext <<_ACEOF 8305 /* end confdefs.h. */ 8306 $ac_includes_default 8307 long longval () { return (long) (sizeof (double)); } 8308 unsigned long ulongval () { return (long) (sizeof (double)); } 8309 #include <stdio.h> 8310 #include <stdlib.h> 8311 int 8312 main () 8313 { 8314 8315 FILE *f = fopen ("conftest.val", "w"); 8316 if (! f) 8317 exit (1); 8318 if (((long) (sizeof (double))) < 0) 8319 { 8320 long i = longval (); 8321 if (i != ((long) (sizeof (double)))) 8322 exit (1); 8323 fprintf (f, "%ld\n", i); 8324 } 8325 else 8326 { 8327 unsigned long i = ulongval (); 8328 if (i != ((long) (sizeof (double)))) 8329 exit (1); 8330 fprintf (f, "%lu\n", i); 8331 } 8332 exit (ferror (f) || fclose (f) != 0); 8333 8334 ; 8335 return 0; 8336 } 8337 _ACEOF 8338 rm -f conftest$ac_exeext 8339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8340 (eval $ac_link) 2>&5 8341 ac_status=$? 8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8343 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8345 (eval $ac_try) 2>&5 8346 ac_status=$? 8347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8348 (exit $ac_status); }; }; then 8349 ac_cv_sizeof_double=`cat conftest.val` 8350 else 8351 echo "$as_me: program exited with status $ac_status" >&5 8352 echo "$as_me: failed program was:" >&5 8353 sed 's/^/| /' conftest.$ac_ext >&5 8354 8355 ( exit $ac_status ) 8356 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77 8357 See \`config.log' for more details." >&5 8358 echo "$as_me: error: cannot compute sizeof (double), 77 8359 See \`config.log' for more details." >&2;} 8360 { (exit 1); exit 1; }; } 8361 fi 8362 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8363 fi 8364 fi 8365 rm -f conftest.val 8366 else 3646 EOF 3647 if { (eval echo configure:3648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3648 then 3649 ac_cv_sizeof_double=`cat conftestval` 3650 else 3651 echo "configure: failed program was:" >&5 3652 cat conftest.$ac_ext >&5 3653 rm -fr conftest* 8367 3654 ac_cv_sizeof_double=0 8368 3655 fi 8369 fi 8370 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 8371 echo "${ECHO_T}$ac_cv_sizeof_double" >&6 8372 cat >>confdefs.h <<_ACEOF 3656 rm -fr conftest* 3657 fi 3658 3659 fi 3660 echo "$ac_t""$ac_cv_sizeof_double" 1>&6 3661 cat >> confdefs.h <<EOF 8373 3662 #define SIZEOF_DOUBLE $ac_cv_sizeof_double 8374 _ACEOF 8375 8376 8377 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 8378 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 8379 if test "${ac_cv_c_bigendian+set}" = set; then 8380 echo $ECHO_N "(cached) $ECHO_C" >&6 8381 else 8382 # See if sys/param.h defines the BYTE_ORDER macro. 8383 cat >conftest.$ac_ext <<_ACEOF 8384 #line $LINENO "configure" 8385 /* confdefs.h. */ 8386 _ACEOF 8387 cat confdefs.h >>conftest.$ac_ext 8388 cat >>conftest.$ac_ext <<_ACEOF 8389 /* end confdefs.h. */ 3663 EOF 3664 3665 3666 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 3667 echo "configure:3668: checking whether byte ordering is bigendian" >&5 3668 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then 3669 echo $ac_n "(cached) $ac_c" 1>&6 3670 else 3671 ac_cv_c_bigendian=unknown 3672 # See if sys/param.h defines the BYTE_ORDER macro. 3673 cat > conftest.$ac_ext <<EOF 3674 #line 3675 "configure" 3675 #include "confdefs.h" 8390 3676 #include <sys/types.h> 8391 3677 #include <sys/param.h> 8392 8393 int 8394 main () 8395 { 3678 int main() { 3679 8396 3680 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 8397 3681 bogus endian macros 8398 3682 #endif 8399 8400 ; 8401 return 0; 8402 } 8403 _ACEOF 8404 rm -f conftest.$ac_objext 8405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8406 (eval $ac_compile) 2>&5 8407 ac_status=$? 8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8409 (exit $ac_status); } && 8410 { ac_try='test -s conftest.$ac_objext' 8411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8412 (eval $ac_try) 2>&5 8413 ac_status=$? 8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8415 (exit $ac_status); }; }; then 3683 ; return 0; } 3684 EOF 3685 if { (eval echo configure:3686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3686 rm -rf conftest* 8416 3687 # It does; now see whether it defined to BIG_ENDIAN or not. 8417 cat >conftest.$ac_ext <<_ACEOF 8418 #line $LINENO "configure" 8419 /* confdefs.h. */ 8420 _ACEOF 8421 cat confdefs.h >>conftest.$ac_ext 8422 cat >>conftest.$ac_ext <<_ACEOF 8423 /* end confdefs.h. */ 3688 cat > conftest.$ac_ext <<EOF 3689 #line 3690 "configure" 3690 #include "confdefs.h" 8424 3691 #include <sys/types.h> 8425 3692 #include <sys/param.h> 8426 8427 int 8428 main () 8429 { 3693 int main() { 3694 8430 3695 #if BYTE_ORDER != BIG_ENDIAN 8431 3696 not big endian 8432 3697 #endif 8433 8434 ; 8435 return 0; 8436 } 8437 _ACEOF 8438 rm -f conftest.$ac_objext 8439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8440 (eval $ac_compile) 2>&5 8441 ac_status=$? 8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8443 (exit $ac_status); } && 8444 { ac_try='test -s conftest.$ac_objext' 8445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8446 (eval $ac_try) 2>&5 8447 ac_status=$? 8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8449 (exit $ac_status); }; }; then 3698 ; return 0; } 3699 EOF 3700 if { (eval echo configure:3701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3701 rm -rf conftest* 8450 3702 ac_cv_c_bigendian=yes 8451 3703 else 8452 echo "$as_me: failed program was:" >&5 8453 sed 's/^/| /' conftest.$ac_ext >&5 8454 8455 ac_cv_c_bigendian=no 8456 fi 8457 rm -f conftest.$ac_objext conftest.$ac_ext 8458 else 8459 echo "$as_me: failed program was:" >&5 8460 sed 's/^/| /' conftest.$ac_ext >&5 8461 8462 # It does not; compile a test program. 3704 echo "configure: failed program was:" >&5 3705 cat conftest.$ac_ext >&5 3706 rm -rf conftest* 3707 ac_cv_c_bigendian=no 3708 fi 3709 rm -f conftest* 3710 else 3711 echo "configure: failed program was:" >&5 3712 cat conftest.$ac_ext >&5 3713 fi 3714 rm -f conftest* 3715 if test $ac_cv_c_bigendian = unknown; then 8463 3716 if test "$cross_compiling" = yes; then 8464 # try to guess the endianness by grepping values into an object file 8465 ac_cv_c_bigendian=unknown 8466 cat >conftest.$ac_ext <<_ACEOF 8467 #line $LINENO "configure" 8468 /* confdefs.h. */ 8469 _ACEOF 8470 cat confdefs.h >>conftest.$ac_ext 8471 cat >>conftest.$ac_ext <<_ACEOF 8472 /* end confdefs.h. */ 8473 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 8474 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 8475 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 8476 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 8477 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 8478 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 8479 int 8480 main () 8481 { 8482 _ascii (); _ebcdic (); 8483 ; 8484 return 0; 8485 } 8486 _ACEOF 8487 rm -f conftest.$ac_objext 8488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8489 (eval $ac_compile) 2>&5 8490 ac_status=$? 8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8492 (exit $ac_status); } && 8493 { ac_try='test -s conftest.$ac_objext' 8494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8495 (eval $ac_try) 2>&5 8496 ac_status=$? 8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8498 (exit $ac_status); }; }; then 8499 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 8500 ac_cv_c_bigendian=yes 8501 fi 8502 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 8503 if test "$ac_cv_c_bigendian" = unknown; then 8504 ac_cv_c_bigendian=no 8505 else 8506 # finding both strings is unlikely to happen, but who knows? 8507 ac_cv_c_bigendian=unknown 8508 fi 8509 fi 8510 else 8511 echo "$as_me: failed program was:" >&5 8512 sed 's/^/| /' conftest.$ac_ext >&5 8513 8514 fi 8515 rm -f conftest.$ac_objext conftest.$ac_ext 8516 else 8517 cat >conftest.$ac_ext <<_ACEOF 8518 #line $LINENO "configure" 8519 /* confdefs.h. */ 8520 _ACEOF 8521 cat confdefs.h >>conftest.$ac_ext 8522 cat >>conftest.$ac_ext <<_ACEOF 8523 /* end confdefs.h. */ 8524 int 8525 main () 8526 { 3717 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 3718 else 3719 cat > conftest.$ac_ext <<EOF 3720 #line 3721 "configure" 3721 #include "confdefs.h" 3722 main () { 8527 3723 /* Are we little or big endian? From Harbison&Steele. */ 8528 3724 union … … 8534 3730 exit (u.c[sizeof (long) - 1] == 1); 8535 3731 } 8536 _ACEOF 8537 rm -f conftest$ac_exeext 8538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8539 (eval $ac_link) 2>&5 8540 ac_status=$? 8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8542 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8544 (eval $ac_try) 2>&5 8545 ac_status=$? 8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8547 (exit $ac_status); }; }; then 3732 EOF 3733 if { (eval echo configure:3734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3734 then 8548 3735 ac_cv_c_bigendian=no 8549 3736 else 8550 echo "$as_me: program exited with status $ac_status" >&5 8551 echo "$as_me: failed program was:" >&5 8552 sed 's/^/| /' conftest.$ac_ext >&5 8553 8554 ( exit $ac_status ) 8555 ac_cv_c_bigendian=yes 8556 fi 8557 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8558 fi 8559 fi 8560 rm -f conftest.$ac_objext conftest.$ac_ext 8561 fi 8562 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 8563 echo "${ECHO_T}$ac_cv_c_bigendian" >&6 8564 case $ac_cv_c_bigendian in 8565 yes) 8566 8567 cat >>confdefs.h <<\_ACEOF 3737 echo "configure: failed program was:" >&5 3738 cat conftest.$ac_ext >&5 3739 rm -fr conftest* 3740 ac_cv_c_bigendian=yes 3741 fi 3742 rm -fr conftest* 3743 fi 3744 3745 fi 3746 fi 3747 3748 echo "$ac_t""$ac_cv_c_bigendian" 1>&6 3749 if test $ac_cv_c_bigendian = yes; then 3750 cat >> confdefs.h <<\EOF 8568 3751 #define WORDS_BIGENDIAN 1 8569 _ACEOF 8570 ;; 8571 no) 8572 ;; 8573 *) 8574 { { echo "$as_me:$LINENO: error: unknown endianness 8575 presetting ac_cv_c_bigendian=no (or yes) will help" >&5 8576 echo "$as_me: error: unknown endianness 8577 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 8578 { (exit 1); exit 1; }; } ;; 8579 esac 3752 EOF 3753 3754 fi 8580 3755 8581 3756 if test "$ac_cv_sizeof_int" != 4; then 8582 { { echo "$as_me:$LINENO: error: need int to be four bytes long" >&5 8583 echo "$as_me: error: need int to be four bytes long" >&2;} 8584 { (exit 1); exit 1; }; } 3757 { echo "configure: error: need int to be four bytes long" 1>&2; exit 1; } 8585 3758 fi 8586 3759 if test "$ac_cv_sizeof_long" != "$ac_cv_sizeof_voidp"; then 8587 { { echo "$as_me:$LINENO: error: need equal sizes for long and void*" >&5 8588 echo "$as_me: error: need equal sizes for long and void*" >&2;} 8589 { (exit 1); exit 1; }; } 3760 { echo "configure: error: need equal sizes for long and void*" 1>&2; exit 1; } 8590 3761 fi 8591 3762 if test "$ac_cv_sizeof_double" != 8; then 8592 { { echo "$as_me:$LINENO: error: need double to b 8 bytes long" >&5 8593 echo "$as_me: error: need double to b 8 bytes long" >&2;} 8594 { (exit 1); exit 1; }; } 3763 { echo "configure: error: need double to b 8 bytes long" 1>&2; exit 1; } 8595 3764 fi 8596 3765 if test "$ac_cv_sizeof_voidp" != 4 && test "$ac_cv_sizeof_voidp" != 8; then 8597 { { echo "$as_me:$LINENO: error: need void* to be 4 or 8 bytes long" >&5 8598 echo "$as_me: error: need void* to be 4 or 8 bytes long" >&2;} 8599 { (exit 1); exit 1; }; } 3766 { echo "configure: error: need void* to be 4 or 8 bytes long" 1>&2; exit 1; } 8600 3767 fi 8601 3768 if test "$ac_cv_sizeof_voidp" != 4; then 8602 3769 DEFS="-UOM_NDEBUG" 8603 8604 fi 8605 3770 3771 fi 8606 3772 8607 3773 # Check whether --with-rootdir or --without-rootdir was given. 8608 3774 if test "${with_rootdir+set}" = set; then 8609 3775 withval="$with_rootdir" 8610 8611 fi ;3776 : 3777 fi 8612 3778 8613 3779 # Check whether --with-lex or --without-lex was given. 8614 3780 if test "${with_lex+set}" = set; then 8615 3781 withval="$with_lex" 8616 8617 fi ;3782 : 3783 fi 8618 3784 8619 3785 # Check whether --with-readline or --without-readline was given. 8620 3786 if test "${with_readline+set}" = set; then 8621 3787 withval="$with_readline" 8622 8623 fi ;3788 : 3789 fi 8624 3790 8625 3791 # Check whether --with-MP or --without-MP was given. 8626 3792 if test "${with_MP+set}" = set; then 8627 3793 withval="$with_MP" 8628 8629 fi ;3794 : 3795 fi 8630 3796 8631 3797 # Check whether --with-dbm or --without-dbm was given. 8632 3798 if test "${with_dbm+set}" = set; then 8633 3799 withval="$with_dbm" 8634 8635 fi ;3800 : 3801 fi 8636 3802 8637 3803 # Check whether --with-factory or --without-factory was given. 8638 3804 if test "${with_factory+set}" = set; then 8639 3805 withval="$with_factory" 8640 8641 fi ;3806 : 3807 fi 8642 3808 8643 3809 # Check whether --with-libfac or --without-libfac was given. 8644 3810 if test "${with_libfac+set}" = set; then 8645 3811 withval="$with_libfac" 8646 8647 fi ;3812 : 3813 fi 8648 3814 8649 3815 # Check whether --with-namespaces or --without-namespaces was given. 8650 3816 if test "${with_namespaces+set}" = set; then 8651 3817 withval="$with_namespaces" 8652 8653 fi ;3818 : 3819 fi 8654 3820 8655 3821 # Check whether --with-dl or --without-dl was given. 8656 3822 if test "${with_dl+set}" = set; then 8657 3823 withval="$with_dl" 8658 8659 fi ;3824 : 3825 fi 8660 3826 8661 3827 # Check whether --with-dynamic-modules or --without-dynamic-modules was given. 8662 3828 if test "${with_dynamic_modules+set}" = set; then 8663 3829 withval="$with_dynamic_modules" 8664 8665 fi ;8666 3830 : 3831 fi 3832 8667 3833 # Check whether --with-dynamic-kernel or --without-dynamic-kernel was given. 8668 3834 if test "${with_dynamic_kernel+set}" = set; then 8669 3835 withval="$with_dynamic_kernel" 8670 8671 fi ;3836 : 3837 fi 8672 3838 8673 3839 # Check whether --with-apint or --without-apint was given. 8674 3840 if test "${with_apint+set}" = set; then 8675 3841 withval="$with_apint" 8676 8677 fi ;3842 : 3843 fi 8678 3844 8679 3845 # Check whether --with-Plural or --without-Plural was given. 8680 3846 if test "${with_Plural+set}" = set; then 8681 3847 withval="$with_Plural" 8682 8683 fi ;3848 : 3849 fi 8684 3850 8685 3851 # Check whether --with-NTL or --without-NTL was given. 8686 3852 if test "${with_NTL+set}" = set; then 8687 3853 withval="$with_NTL" 8688 3854 : 8689 3855 else 8690 3856 with_NTL=yes 8691 fi; 8692 8693 8694 8695 echo "$as_me:$LINENO: checking whether to use dynamic linking" >&5 8696 echo $ECHO_N "checking whether to use dynamic linking... $ECHO_C" >&6 3857 fi 3858 3859 3860 3861 3862 echo $ac_n "checking whether to use dynamic linking""... $ac_c" 1>&6 3863 echo "configure:3864: checking whether to use dynamic linking" >&5 8697 3864 if test "$with_dl" != no && test "$ac_lib_dl" = yes; then 8698 cat >> confdefs.h <<\_ACEOF3865 cat >> confdefs.h <<\EOF 8699 3866 #define HAVE_DL 1 8700 _ACEOF3867 EOF 8701 3868 8702 3869 ac_have_dl=yes 8703 echo "$as_me:$LINENO: result: yes" >&5 8704 echo "${ECHO_T}yes" >&6 8705 else 8706 echo "$as_me:$LINENO: result: no" >&5 8707 echo "${ECHO_T}no" >&6 8708 fi 8709 8710 8711 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5 8712 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6 8713 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then 8714 echo $ECHO_N "(cached) $ECHO_C" >&6 8715 else 8716 ac_check_lib_save_LIBS=$LIBS 3870 echo "$ac_t""yes" 1>&6 3871 else 3872 echo "$ac_t""no" 1>&6 3873 fi 3874 3875 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 3876 echo "configure:3877: checking for tgetent in -lncurses" >&5 3877 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 3878 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3879 echo $ac_n "(cached) $ac_c" 1>&6 3880 else 3881 ac_save_LIBS="$LIBS" 8717 3882 LIBS="-lncurses $LIBS" 8718 cat >conftest.$ac_ext <<_ACEOF 8719 #line $LINENO "configure" 8720 /* confdefs.h. */ 8721 _ACEOF 8722 cat confdefs.h >>conftest.$ac_ext 8723 cat >>conftest.$ac_ext <<_ACEOF 8724 /* end confdefs.h. */ 8725 3883 cat > conftest.$ac_ext <<EOF 3884 #line 3885 "configure" 3885 #include "confdefs.h" 3886 /* Override any gcc2 internal prototype to avoid an error. */ 3887 /* We use char because int might match the return type of a gcc2 3888 builtin and then its argument prototype would still apply. */ 3889 char tgetent(); 3890 3891 int main() { 3892 tgetent() 3893 ; return 0; } 3894 EOF 3895 if { (eval echo configure:3896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3896 rm -rf conftest* 3897 eval "ac_cv_lib_$ac_lib_var=yes" 3898 else 3899 echo "configure: failed program was:" >&5 3900 cat conftest.$ac_ext >&5 3901 rm -rf conftest* 3902 eval "ac_cv_lib_$ac_lib_var=no" 3903 fi 3904 rm -f conftest* 3905 LIBS="$ac_save_LIBS" 3906 3907 fi 3908 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3909 echo "$ac_t""yes" 1>&6 3910 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 3911 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 3912 cat >> confdefs.h <<EOF 3913 #define $ac_tr_lib 1 3914 EOF 3915 3916 LIBS="-lncurses $LIBS" 3917 3918 else 3919 echo "$ac_t""no" 1>&6 3920 \ 3921 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 3922 echo "configure:3923: checking for tgetent in -lcurses" >&5 3923 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 3924 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3925 echo $ac_n "(cached) $ac_c" 1>&6 3926 else 3927 ac_save_LIBS="$LIBS" 3928 LIBS="-lcurses $LIBS" 3929 cat > conftest.$ac_ext <<EOF 3930 #line 3931 "configure" 3931 #include "confdefs.h" 3932 /* Override any gcc2 internal prototype to avoid an error. */ 3933 /* We use char because int might match the return type of a gcc2 3934 builtin and then its argument prototype would still apply. */ 3935 char tgetent(); 3936 3937 int main() { 3938 tgetent() 3939 ; return 0; } 3940 EOF 3941 if { (eval echo configure:3942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3942 rm -rf conftest* 3943 eval "ac_cv_lib_$ac_lib_var=yes" 3944 else 3945 echo "configure: failed program was:" >&5 3946 cat conftest.$ac_ext >&5 3947 rm -rf conftest* 3948 eval "ac_cv_lib_$ac_lib_var=no" 3949 fi 3950 rm -f conftest* 3951 LIBS="$ac_save_LIBS" 3952 3953 fi 3954 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3955 echo "$ac_t""yes" 1>&6 3956 ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/^a-zA-Z0-9_/_/g' \ 3957 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 3958 cat >> confdefs.h <<EOF 3959 #define $ac_tr_lib 1 3960 EOF 3961 3962 LIBS="-lcurses $LIBS" 3963 3964 else 3965 echo "$ac_t""no" 1>&6 3966 \ 3967 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 3968 echo "configure:3969: checking for tgetent in -ltermcap" >&5 3969 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 3970 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3971 echo $ac_n "(cached) $ac_c" 1>&6 3972 else 3973 ac_save_LIBS="$LIBS" 3974 LIBS="-ltermcap $LIBS" 3975 cat > conftest.$ac_ext <<EOF 3976 #line 3977 "configure" 3977 #include "confdefs.h" 3978 /* Override any gcc2 internal prototype to avoid an error. */ 3979 /* We use char because int might match the return type of a gcc2 3980 builtin and then its argument prototype would still apply. */ 3981 char tgetent(); 3982 3983 int main() { 3984 tgetent() 3985 ; return 0; } 3986 EOF 3987 if { (eval echo configure:3988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3988 rm -rf conftest* 3989 eval "ac_cv_lib_$ac_lib_var=yes" 3990 else 3991 echo "configure: failed program was:" >&5 3992 cat conftest.$ac_ext >&5 3993 rm -rf conftest* 3994 eval "ac_cv_lib_$ac_lib_var=no" 3995 fi 3996 rm -f conftest* 3997 LIBS="$ac_save_LIBS" 3998 3999 fi 4000 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4001 echo "$ac_t""yes" 1>&6 4002 ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/^a-zA-Z0-9_/_/g' \ 4003 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 4004 cat >> confdefs.h <<EOF 4005 #define $ac_tr_lib 1 4006 EOF 4007 4008 LIBS="-ltermcap $LIBS" 4009 4010 else 4011 echo "$ac_t""no" 1>&6 4012 fi 4013 4014 fi 4015 4016 fi 4017 4018 4019 # readline 4020 if test "$with_readline" = dynamic && test "$ac_have_dl" != yes; then 4021 echo "configure: warning: can not build dynamic readline without dynamic linking" 1>&2 4022 with_readline=static 4023 fi 4024 4025 4026 if test "$with_readline" != dynamic && test "$with_readline" != no; then 4027 4028 ac_ext=C 4029 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 4030 ac_cpp='$CXXCPP $CPPFLAGS' 4031 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 4032 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 4033 cross_compiling=$ac_cv_prog_cxx_cross 4034 4035 echo $ac_n "checking for rl_abort in -lreadline""... $ac_c" 1>&6 4036 echo "configure:4037: checking for rl_abort in -lreadline" >&5 4037 ac_lib_var=`echo readline'_'rl_abort | sed 'y%./+-%__p_%'` 4038 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4039 echo $ac_n "(cached) $ac_c" 1>&6 4040 else 4041 ac_save_LIBS="$LIBS" 4042 LIBS="-lreadline $LIBS" 4043 cat > conftest.$ac_ext <<EOF 4044 #line 4045 "configure" 4045 #include "confdefs.h" 8726 4046 /* Override any gcc2 internal prototype to avoid an error. */ 8727 4047 #ifdef __cplusplus … … 8729 4049 #endif 8730 4050 /* We use char because int might match the return type of a gcc2 8731 builtin and then its argument prototype would still apply. */ 8732 char tgetent (); 8733 int 8734 main () 8735 { 8736 tgetent (); 8737 ; 8738 return 0; 8739 } 8740 _ACEOF 8741 rm -f conftest.$ac_objext conftest$ac_exeext 8742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8743 (eval $ac_link) 2>&5 8744 ac_status=$? 8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8746 (exit $ac_status); } && 8747 { ac_try='test -s conftest$ac_exeext' 8748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8749 (eval $ac_try) 2>&5 8750 ac_status=$? 8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8752 (exit $ac_status); }; }; then 8753 ac_cv_lib_ncurses_tgetent=yes 8754 else 8755 echo "$as_me: failed program was:" >&5 8756 sed 's/^/| /' conftest.$ac_ext >&5 8757 8758 ac_cv_lib_ncurses_tgetent=no 8759 fi 8760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8761 LIBS=$ac_check_lib_save_LIBS 8762 fi 8763 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5 8764 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6 8765 if test $ac_cv_lib_ncurses_tgetent = yes; then 8766 cat >>confdefs.h <<_ACEOF 8767 #define HAVE_LIBNCURSES 1 8768 _ACEOF 8769 8770 LIBS="-lncurses $LIBS" 8771 8772 else 8773 \ 8774 8775 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5 8776 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6 8777 if test "${ac_cv_lib_curses_tgetent+set}" = set; then 8778 echo $ECHO_N "(cached) $ECHO_C" >&6 8779 else 8780 ac_check_lib_save_LIBS=$LIBS 8781 LIBS="-lcurses $LIBS" 8782 cat >conftest.$ac_ext <<_ACEOF 8783 #line $LINENO "configure" 8784 /* confdefs.h. */ 8785 _ACEOF 8786 cat confdefs.h >>conftest.$ac_ext 8787 cat >>conftest.$ac_ext <<_ACEOF 8788 /* end confdefs.h. */ 8789 8790 /* Override any gcc2 internal prototype to avoid an error. */ 8791 #ifdef __cplusplus 8792 extern "C" 8793 #endif 8794 /* We use char because int might match the return type of a gcc2 8795 builtin and then its argument prototype would still apply. */ 8796 char tgetent (); 8797 int 8798 main () 8799 { 8800 tgetent (); 8801 ; 8802 return 0; 8803 } 8804 _ACEOF 8805 rm -f conftest.$ac_objext conftest$ac_exeext 8806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8807 (eval $ac_link) 2>&5 8808 ac_status=$? 8809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8810 (exit $ac_status); } && 8811 { ac_try='test -s conftest$ac_exeext' 8812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8813 (eval $ac_try) 2>&5 8814 ac_status=$? 8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8816 (exit $ac_status); }; }; then 8817 ac_cv_lib_curses_tgetent=yes 8818 else 8819 echo "$as_me: failed program was:" >&5 8820 sed 's/^/| /' conftest.$ac_ext >&5 8821 8822 ac_cv_lib_curses_tgetent=no 8823 fi 8824 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8825 LIBS=$ac_check_lib_save_LIBS 8826 fi 8827 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5 8828 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6 8829 if test $ac_cv_lib_curses_tgetent = yes; then 8830 cat >>confdefs.h <<_ACEOF 8831 #define HAVE_LIBCURSES 1 8832 _ACEOF 8833 8834 LIBS="-lcurses $LIBS" 8835 8836 else 8837 \ 8838 8839 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5 8840 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6 8841 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then 8842 echo $ECHO_N "(cached) $ECHO_C" >&6 8843 else 8844 ac_check_lib_save_LIBS=$LIBS 8845 LIBS="-ltermcap $LIBS" 8846 cat >conftest.$ac_ext <<_ACEOF 8847 #line $LINENO "configure" 8848 /* confdefs.h. */ 8849 _ACEOF 8850 cat confdefs.h >>conftest.$ac_ext 8851 cat >>conftest.$ac_ext <<_ACEOF 8852 /* end confdefs.h. */ 8853 8854 /* Override any gcc2 internal prototype to avoid an error. */ 8855 #ifdef __cplusplus 8856 extern "C" 8857 #endif 8858 /* We use char because int might match the return type of a gcc2 8859 builtin and then its argument prototype would still apply. */ 8860 char tgetent (); 8861 int 8862 main () 8863 { 8864 tgetent (); 8865 ; 8866 return 0; 8867 } 8868 _ACEOF 8869 rm -f conftest.$ac_objext conftest$ac_exeext 8870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8871 (eval $ac_link) 2>&5 8872 ac_status=$? 8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8874 (exit $ac_status); } && 8875 { ac_try='test -s conftest$ac_exeext' 8876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8877 (eval $ac_try) 2>&5 8878 ac_status=$? 8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8880 (exit $ac_status); }; }; then 8881 ac_cv_lib_termcap_tgetent=yes 8882 else 8883 echo "$as_me: failed program was:" >&5 8884 sed 's/^/| /' conftest.$ac_ext >&5 8885 8886 ac_cv_lib_termcap_tgetent=no 8887 fi 8888 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8889 LIBS=$ac_check_lib_save_LIBS 8890 fi 8891 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5 8892 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6 8893 if test $ac_cv_lib_termcap_tgetent = yes; then 8894 cat >>confdefs.h <<_ACEOF 8895 #define HAVE_LIBTERMCAP 1 8896 _ACEOF 8897 8898 LIBS="-ltermcap $LIBS" 8899 8900 fi 8901 8902 fi 8903 8904 fi 8905 8906 8907 # readline 8908 if test "$with_readline" = dynamic && test "$ac_have_dl" != yes; then 8909 { echo "$as_me:$LINENO: WARNING: can not build dynamic readline without dynamic linking" >&5 8910 echo "$as_me: WARNING: can not build dynamic readline without dynamic linking" >&2;} 8911 with_readline=static 8912 fi 8913 8914 8915 if test "$with_readline" != dynamic && test "$with_readline" != no; then 8916 8917 8918 ac_ext=cc 4051 builtin and then its argument prototype would still apply. */ 4052 char rl_abort(); 4053 4054 int main() { 4055 rl_abort() 4056 ; return 0; } 4057 EOF 4058 if { (eval echo configure:4059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4059 rm -rf conftest* 4060 eval "ac_cv_lib_$ac_lib_var=yes" 4061 else 4062 echo "configure: failed program was:" >&5 4063 cat conftest.$ac_ext >&5 4064 rm -rf conftest* 4065 eval "ac_cv_lib_$ac_lib_var=no" 4066 fi 4067 rm -f conftest* 4068 LIBS="$ac_save_LIBS" 4069 4070 fi 4071 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4072 echo "$ac_t""yes" 1>&6 4073 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 4074 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 4075 cat >> confdefs.h <<EOF 4076 #define $ac_tr_lib 1 4077 EOF 4078 4079 LIBS="-lreadline $LIBS" 4080 4081 else 4082 echo "$ac_t""no" 1>&6 4083 fi 4084 4085 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 4086 echo "configure:4087: checking how to run the C++ preprocessor" >&5 4087 if test -z "$CXXCPP"; then 4088 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then 4089 echo $ac_n "(cached) $ac_c" 1>&6 4090 else 4091 ac_ext=C 4092 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 8919 4093 ac_cpp='$CXXCPP $CPPFLAGS' 8920 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8921 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8922 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8923 8924 8925 echo "$as_me:$LINENO: checking for rl_abort in -lreadline" >&5 8926 echo $ECHO_N "checking for rl_abort in -lreadline... $ECHO_C" >&6 8927 if test "${ac_cv_lib_readline_rl_abort+set}" = set; then 8928 echo $ECHO_N "(cached) $ECHO_C" >&6 8929 else 8930 ac_check_lib_save_LIBS=$LIBS 8931 LIBS="-lreadline $LIBS" 8932 cat >conftest.$ac_ext <<_ACEOF 8933 #line $LINENO "configure" 8934 /* confdefs.h. */ 8935 _ACEOF 8936 cat confdefs.h >>conftest.$ac_ext 8937 cat >>conftest.$ac_ext <<_ACEOF 8938 /* end confdefs.h. */ 8939 8940 /* Override any gcc2 internal prototype to avoid an error. */ 8941 #ifdef __cplusplus 8942 extern "C" 8943 #endif 8944 /* We use char because int might match the return type of a gcc2 8945 builtin and then its argument prototype would still apply. */ 8946 char rl_abort (); 8947 int 8948 main () 8949 { 8950 rl_abort (); 8951 ; 8952 return 0; 8953 } 8954 _ACEOF 8955 rm -f conftest.$ac_objext conftest$ac_exeext 8956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8957 (eval $ac_link) 2>&5 8958 ac_status=$? 8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8960 (exit $ac_status); } && 8961 { ac_try='test -s conftest$ac_exeext' 8962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8963 (eval $ac_try) 2>&5 8964 ac_status=$? 8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8966 (exit $ac_status); }; }; then 8967 ac_cv_lib_readline_rl_abort=yes 8968 else 8969 echo "$as_me: failed program was:" >&5 8970 sed 's/^/| /' conftest.$ac_ext >&5 8971 8972 ac_cv_lib_readline_rl_abort=no 8973 fi 8974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8975 LIBS=$ac_check_lib_save_LIBS 8976 fi 8977 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_abort" >&5 8978 echo "${ECHO_T}$ac_cv_lib_readline_rl_abort" >&6 8979 if test $ac_cv_lib_readline_rl_abort = yes; then 8980 cat >>confdefs.h <<_ACEOF 8981 #define HAVE_LIBREADLINE 1 8982 _ACEOF 8983 8984 LIBS="-lreadline $LIBS" 8985 8986 fi 8987 8988 ac_ext=cc 4094 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 4095 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 4096 cross_compiling=$ac_cv_prog_cxx_cross 4097 CXXCPP="${CXX-g++} -E" 4098 cat > conftest.$ac_ext <<EOF 4099 #line 4100 "configure" 4100 #include "confdefs.h" 4101 #include <stdlib.h> 4102 EOF 4103 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4104 { (eval echo configure:4105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4105 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4106 if test -z "$ac_err"; then 4107 : 4108 else 4109 echo "$ac_err" >&5 4110 echo "configure: failed program was:" >&5 4111 cat conftest.$ac_ext >&5 4112 rm -rf conftest* 4113 CXXCPP=/lib/cpp 4114 fi 4115 rm -f conftest* 4116 ac_cv_prog_CXXCPP="$CXXCPP" 4117 ac_ext=C 4118 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 8989 4119 ac_cpp='$CXXCPP $CPPFLAGS' 8990 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8991 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8992 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8993 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 8994 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 8995 if test -z "$CXXCPP"; then 8996 if test "${ac_cv_prog_CXXCPP+set}" = set; then 8997 echo $ECHO_N "(cached) $ECHO_C" >&6 8998 else 8999 # Double quotes because CXXCPP needs to be expanded 9000 for CXXCPP in "$CXX -E" "/lib/cpp" 9001 do 9002 ac_preproc_ok=false 9003 for ac_cxx_preproc_warn_flag in '' yes 4120 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 4121 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 4122 cross_compiling=$ac_cv_prog_cxx_cross 4123 fi 4124 fi 4125 CXXCPP="$ac_cv_prog_CXXCPP" 4126 echo "$ac_t""$CXXCPP" 1>&6 4127 4128 for ac_hdr in readline/readline.h readline/history.h 9004 4129 do 9005 # Use a header file that comes with gcc, so configuring glibc 9006 # with a fresh cross-compiler works. 9007 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9008 # <limits.h> exists even on freestanding compilers. 9009 # On the NeXT, cc -E runs the code through the compiler's parser, 9010 # not just through cpp. "Syntax error" is here to catch this case. 9011 cat >conftest.$ac_ext <<_ACEOF 9012 #line $LINENO "configure" 9013 /* confdefs.h. */ 9014 _ACEOF 9015 cat confdefs.h >>conftest.$ac_ext 9016 cat >>conftest.$ac_ext <<_ACEOF 9017 /* end confdefs.h. */ 9018 #ifdef __STDC__ 9019 # include <limits.h> 9020 #else 9021 # include <assert.h> 9022 #endif 9023 Syntax error 9024 _ACEOF 9025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 9026 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9027 ac_status=$? 9028 grep -v '^ *+' conftest.er1 >conftest.err 9029 rm -f conftest.er1 9030 cat conftest.err >&5 9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9032 (exit $ac_status); } >/dev/null; then 9033 if test -s conftest.err; then 9034 ac_cpp_err=$ac_cxx_preproc_warn_flag 9035 else 9036 ac_cpp_err= 9037 fi 9038 else 9039 ac_cpp_err=yes 9040 fi 9041 if test -z "$ac_cpp_err"; then 9042 : 9043 else 9044 echo "$as_me: failed program was:" >&5 9045 sed 's/^/| /' conftest.$ac_ext >&5 9046 9047 # Broken: fails on valid input. 9048 continue 9049 fi 9050 rm -f conftest.err conftest.$ac_ext 9051 9052 # OK, works on sane cases. Now check whether non-existent headers 9053 # can be detected and how. 9054 cat >conftest.$ac_ext <<_ACEOF 9055 #line $LINENO "configure" 9056 /* confdefs.h. */ 9057 _ACEOF 9058 cat confdefs.h >>conftest.$ac_ext 9059 cat >>conftest.$ac_ext <<_ACEOF 9060 /* end confdefs.h. */ 9061 #include <ac_nonexistent.h> 9062 _ACEOF 9063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 9064 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9065 ac_status=$? 9066 grep -v '^ *+' conftest.er1 >conftest.err 9067 rm -f conftest.er1 9068 cat conftest.err >&5 9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9070 (exit $ac_status); } >/dev/null; then 9071 if test -s conftest.err; then 9072 ac_cpp_err=$ac_cxx_preproc_warn_flag 9073 else 9074 ac_cpp_err= 9075 fi 9076 else 9077 ac_cpp_err=yes 9078 fi 9079 if test -z "$ac_cpp_err"; then 9080 # Broken: success on invalid input. 9081 continue 9082 else 9083 echo "$as_me: failed program was:" >&5 9084 sed 's/^/| /' conftest.$ac_ext >&5 9085 9086 # Passes both tests. 9087 ac_preproc_ok=: 9088 break 9089 fi 9090 rm -f conftest.err conftest.$ac_ext 9091 9092 done 9093 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 9094 rm -f conftest.err conftest.$ac_ext 9095 if $ac_preproc_ok; then 9096 break 9097 fi 9098 9099 done 9100 ac_cv_prog_CXXCPP=$CXXCPP 9101 9102 fi 9103 CXXCPP=$ac_cv_prog_CXXCPP 9104 else 9105 ac_cv_prog_CXXCPP=$CXXCPP 9106 fi 9107 echo "$as_me:$LINENO: result: $CXXCPP" >&5 9108 echo "${ECHO_T}$CXXCPP" >&6 9109 ac_preproc_ok=false 9110 for ac_cxx_preproc_warn_flag in '' yes 9111 do 9112 # Use a header file that comes with gcc, so configuring glibc 9113 # with a fresh cross-compiler works. 9114 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9115 # <limits.h> exists even on freestanding compilers. 9116 # On the NeXT, cc -E runs the code through the compiler's parser, 9117 # not just through cpp. "Syntax error" is here to catch this case. 9118 cat >conftest.$ac_ext <<_ACEOF 9119 #line $LINENO "configure" 9120 /* confdefs.h. */ 9121 _ACEOF 9122 cat confdefs.h >>conftest.$ac_ext 9123 cat >>conftest.$ac_ext <<_ACEOF 9124 /* end confdefs.h. */ 9125 #ifdef __STDC__ 9126 # include <limits.h> 9127 #else 9128 # include <assert.h> 9129 #endif 9130 Syntax error 9131 _ACEOF 9132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 9133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9134 ac_status=$? 9135 grep -v '^ *+' conftest.er1 >conftest.err 9136 rm -f conftest.er1 9137 cat conftest.err >&5 9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9139 (exit $ac_status); } >/dev/null; then 9140 if test -s conftest.err; then 9141 ac_cpp_err=$ac_cxx_preproc_warn_flag 9142 else 9143 ac_cpp_err= 9144 fi 9145 else 9146 ac_cpp_err=yes 9147 fi 9148 if test -z "$ac_cpp_err"; then 9149 : 9150 else 9151 echo "$as_me: failed program was:" >&5 9152 sed 's/^/| /' conftest.$ac_ext >&5 9153 9154 # Broken: fails on valid input. 9155 continue 9156 fi 9157 rm -f conftest.err conftest.$ac_ext 9158 9159 # OK, works on sane cases. Now check whether non-existent headers 9160 # can be detected and how. 9161 cat >conftest.$ac_ext <<_ACEOF 9162 #line $LINENO "configure" 9163 /* confdefs.h. */ 9164 _ACEOF 9165 cat confdefs.h >>conftest.$ac_ext 9166 cat >>conftest.$ac_ext <<_ACEOF 9167 /* end confdefs.h. */ 9168 #include <ac_nonexistent.h> 9169 _ACEOF 9170 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 9171 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9172 ac_status=$? 9173 grep -v '^ *+' conftest.er1 >conftest.err 9174 rm -f conftest.er1 9175 cat conftest.err >&5 9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9177 (exit $ac_status); } >/dev/null; then 9178 if test -s conftest.err; then 9179 ac_cpp_err=$ac_cxx_preproc_warn_flag 9180 else 9181 ac_cpp_err= 9182 fi 9183 else 9184 ac_cpp_err=yes 9185 fi 9186 if test -z "$ac_cpp_err"; then 9187 # Broken: success on invalid input. 9188 continue 9189 else 9190 echo "$as_me: failed program was:" >&5 9191 sed 's/^/| /' conftest.$ac_ext >&5 9192 9193 # Passes both tests. 9194 ac_preproc_ok=: 9195 break 9196 fi 9197 rm -f conftest.err conftest.$ac_ext 9198 9199 done 9200 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 9201 rm -f conftest.err conftest.$ac_ext 9202 if $ac_preproc_ok; then 9203 : 9204 else 9205 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 9206 See \`config.log' for more details." >&5 9207 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 9208 See \`config.log' for more details." >&2;} 9209 { (exit 1); exit 1; }; } 9210 fi 9211 9212 ac_ext=cc 9213 ac_cpp='$CXXCPP $CPPFLAGS' 9214 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9215 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9216 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9217 9218 9219 9220 9221 for ac_header in readline/readline.h readline/history.h 9222 do 9223 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 9224 if eval "test \"\${$as_ac_Header+set}\" = set"; then 9225 echo "$as_me:$LINENO: checking for $ac_header" >&5 9226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9227 if eval "test \"\${$as_ac_Header+set}\" = set"; then 9228 echo $ECHO_N "(cached) $ECHO_C" >&6 9229 fi 9230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9231 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9232 else 9233 # Is the header compilable? 9234 echo "$as_me:$LINENO: checking $ac_header usability" >&5 9235 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 9236 cat >conftest.$ac_ext <<_ACEOF 9237 #line $LINENO "configure" 9238 /* confdefs.h. */ 9239 _ACEOF 9240 cat confdefs.h >>conftest.$ac_ext 9241 cat >>conftest.$ac_ext <<_ACEOF 9242 /* end confdefs.h. */ 9243 $ac_includes_default 9244 #include <$ac_header> 9245 _ACEOF 9246 rm -f conftest.$ac_objext 9247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9248 (eval $ac_compile) 2>&5 9249 ac_status=$? 9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9251 (exit $ac_status); } && 9252 { ac_try='test -s conftest.$ac_objext' 9253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9254 (eval $ac_try) 2>&5 9255 ac_status=$? 9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9257 (exit $ac_status); }; }; then 9258 ac_header_compiler=yes 9259 else 9260 echo "$as_me: failed program was:" >&5 9261 sed 's/^/| /' conftest.$ac_ext >&5 9262 9263 ac_header_compiler=no 9264 fi 9265 rm -f conftest.$ac_objext conftest.$ac_ext 9266 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9267 echo "${ECHO_T}$ac_header_compiler" >&6 9268 9269 # Is the header present? 9270 echo "$as_me:$LINENO: checking $ac_header presence" >&5 9271 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 9272 cat >conftest.$ac_ext <<_ACEOF 9273 #line $LINENO "configure" 9274 /* confdefs.h. */ 9275 _ACEOF 9276 cat confdefs.h >>conftest.$ac_ext 9277 cat >>conftest.$ac_ext <<_ACEOF 9278 /* end confdefs.h. */ 9279 #include <$ac_header> 9280 _ACEOF 9281 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 9282 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9283 ac_status=$? 9284 grep -v '^ *+' conftest.er1 >conftest.err 9285 rm -f conftest.er1 9286 cat conftest.err >&5 9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9288 (exit $ac_status); } >/dev/null; then 9289 if test -s conftest.err; then 9290 ac_cpp_err=$ac_cxx_preproc_warn_flag 9291 else 9292 ac_cpp_err= 9293 fi 9294 else 9295 ac_cpp_err=yes 9296 fi 9297 if test -z "$ac_cpp_err"; then 9298 ac_header_preproc=yes 9299 else 9300 echo "$as_me: failed program was:" >&5 9301 sed 's/^/| /' conftest.$ac_ext >&5 9302 9303 ac_header_preproc=no 9304 fi 9305 rm -f conftest.err conftest.$ac_ext 9306 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9307 echo "${ECHO_T}$ac_header_preproc" >&6 9308 9309 # So? What about this header? 9310 case $ac_header_compiler:$ac_header_preproc in 9311 yes:no ) 9312 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 9313 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 9314 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 9315 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 9316 ( 9317 cat <<\_ASBOX 9318 ## ------------------------------------ ## 9319 ## Report this to bug-autoconf@gnu.org. ## 9320 ## ------------------------------------ ## 9321 _ASBOX 9322 ) | 9323 sed "s/^/$as_me: WARNING: /" >&2 9324 ;; 9325 no:yes ) 9326 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 9327 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 9328 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 9329 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 9330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 9331 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 9332 ( 9333 cat <<\_ASBOX 9334 ## ------------------------------------ ## 9335 ## Report this to bug-autoconf@gnu.org. ## 9336 ## ------------------------------------ ## 9337 _ASBOX 9338 ) | 9339 sed "s/^/$as_me: WARNING: /" >&2 9340 ;; 9341 esac 9342 echo "$as_me:$LINENO: checking for $ac_header" >&5 9343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9344 if eval "test \"\${$as_ac_Header+set}\" = set"; then 9345 echo $ECHO_N "(cached) $ECHO_C" >&6 9346 else 9347 eval "$as_ac_Header=$ac_header_preproc" 9348 fi 9349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9350 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9351 9352 fi 9353 if test `eval echo '${'$as_ac_Header'}'` = yes; then 9354 cat >>confdefs.h <<_ACEOF 9355 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 9356 _ACEOF 9357 9358 fi 9359 4130 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4131 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4132 echo "configure:4133: checking for $ac_hdr" >&5 4133 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4134 echo $ac_n "(cached) $ac_c" 1>&6 4135 else 4136 cat > conftest.$ac_ext <<EOF 4137 #line 4138 "configure" 4138 #include "confdefs.h" 4139 #include <$ac_hdr> 4140 EOF 4141 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4142 { (eval echo configure:4143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4143 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4144 if test -z "$ac_err"; then 4145 rm -rf conftest* 4146 eval "ac_cv_header_$ac_safe=yes" 4147 else 4148 echo "$ac_err" >&5 4149 echo "configure: failed program was:" >&5 4150 cat conftest.$ac_ext >&5 4151 rm -rf conftest* 4152 eval "ac_cv_header_$ac_safe=no" 4153 fi 4154 rm -f conftest* 4155 fi 4156 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4157 echo "$ac_t""yes" 1>&6 4158 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 4159 cat >> confdefs.h <<EOF 4160 #define $ac_tr_hdr 1 4161 EOF 4162 4163 else 4164 echo "$ac_t""no" 1>&6 4165 fi 9360 4166 done 9361 4167 9362 4168 if test "$ac_cv_lib_readline_rl_abort" = yes && \ 9363 4169 test "$ac_cv_header_readline_readline_h" = yes; then 9364 echo "$as_me:$LINENO: checking whether readline.h is ok" >&5 9365 echo $ECHO_N "checking whether readline.h is ok... $ECHO_C" >&6 9366 if test "${ac_cv_header_readline_readline_h_ok+set}" = set; then 9367 echo $ECHO_N "(cached) $ECHO_C" >&6 9368 else 9369 cat >conftest.$ac_ext <<_ACEOF 9370 #line $LINENO "configure" 9371 /* confdefs.h. */ 9372 _ACEOF 9373 cat confdefs.h >>conftest.$ac_ext 9374 cat >>conftest.$ac_ext <<_ACEOF 9375 /* end confdefs.h. */ 4170 echo $ac_n "checking whether readline.h is ok""... $ac_c" 1>&6 4171 echo "configure:4172: checking whether readline.h is ok" >&5 4172 if eval "test \"`echo '$''{'ac_cv_header_readline_readline_h_ok'+set}'`\" = set"; then 4173 echo $ac_n "(cached) $ac_c" 1>&6 4174 else 4175 cat > conftest.$ac_ext <<EOF 4176 #line 4177 "configure" 4177 #include "confdefs.h" 9376 4178 #include<unistd.h> 9377 4179 #include<stdio.h> … … 9381 4183 #endif 9382 4184 9383 int 9384 main () 9385 { 9386 9387 ; 9388 return 0; 9389 } 9390 _ACEOF 9391 rm -f conftest.$ac_objext conftest$ac_exeext 9392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9393 (eval $ac_link) 2>&5 9394 ac_status=$? 9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9396 (exit $ac_status); } && 9397 { ac_try='test -s conftest$ac_exeext' 9398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9399 (eval $ac_try) 2>&5 9400 ac_status=$? 9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9402 (exit $ac_status); }; }; then 4185 int main() { 4186 4187 ; return 0; } 4188 EOF 4189 if { (eval echo configure:4190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4190 rm -rf conftest* 9403 4191 ac_cv_header_readline_readline_h_ok="yes" 9404 4192 else 9405 echo "$as_me: failed program was:" >&5 9406 sed 's/^/| /' conftest.$ac_ext >&5 9407 9408 ac_cv_header_readline_readline_h_ok="no" 9409 fi 9410 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9411 fi 9412 9413 echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h_ok" >&5 9414 echo "${ECHO_T}$ac_cv_header_readline_readline_h_ok" >&6 4193 echo "configure: failed program was:" >&5 4194 cat conftest.$ac_ext >&5 4195 rm -rf conftest* 4196 ac_cv_header_readline_readline_h_ok="no" 4197 fi 4198 rm -f conftest* 4199 fi 4200 4201 echo "$ac_t""$ac_cv_header_readline_readline_h_ok" 1>&6 9415 4202 if test "$ac_cv_header_readline_readline_h_ok" != yes; then 9416 4203 #not ok -- try once more with explicitly declaring everything 9417 echo "$as_me:$LINENO: checking whether or not we nevertheless can use readline" >&5 9418 echo $ECHO_N "checking whether or not we nevertheless can use readline... $ECHO_C" >&6 9419 if test "${ac_cv_have_readline+set}" = set; then 9420 echo $ECHO_N "(cached) $ECHO_C" >&6 9421 else 9422 cat >conftest.$ac_ext <<_ACEOF 9423 #line $LINENO "configure" 9424 /* confdefs.h. */ 9425 _ACEOF 9426 cat confdefs.h >>conftest.$ac_ext 9427 cat >>conftest.$ac_ext <<_ACEOF 9428 /* end confdefs.h. */ 4204 echo $ac_n "checking whether or not we nevertheless can use readline""... $ac_c" 1>&6 4205 echo "configure:4206: checking whether or not we nevertheless can use readline" >&5 4206 if eval "test \"`echo '$''{'ac_cv_have_readline'+set}'`\" = set"; then 4207 echo $ac_n "(cached) $ac_c" 1>&6 4208 else 4209 cat > conftest.$ac_ext <<EOF 4210 #line 4211 "configure" 4211 #include "confdefs.h" 9429 4212 #include <stdio.h> 9430 4213 extern "C" … … 9446 4229 #endif 9447 4230 9448 int 9449 main () 9450 { 4231 int main() { 9451 4232 rl_readline_name=NULL; 9452 4233 *rl_line_buffer=1; … … 9459 4240 write_history(NULL); 9460 4241 9461 ; 9462 return 0; 9463 } 9464 _ACEOF 9465 rm -f conftest.$ac_objext conftest$ac_exeext 9466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9467 (eval $ac_link) 2>&5 9468 ac_status=$? 9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9470 (exit $ac_status); } && 9471 { ac_try='test -s conftest$ac_exeext' 9472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9473 (eval $ac_try) 2>&5 9474 ac_status=$? 9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9476 (exit $ac_status); }; }; then 4242 ; return 0; } 4243 EOF 4244 if { (eval echo configure:4245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4245 rm -rf conftest* 9477 4246 ac_cv_have_readline="yes" 9478 4247 9479 4248 else 9480 echo "$as_me: failed program was:" >&5 9481 sed 's/^/| /' conftest.$ac_ext >&5 9482 9483 ac_cv_have_readline="no" 9484 9485 fi 9486 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9487 fi 9488 9489 echo "$as_me:$LINENO: result: $ac_cv_have_readline" >&5 9490 echo "${ECHO_T}$ac_cv_have_readline" >&6 4249 echo "configure: failed program was:" >&5 4250 cat conftest.$ac_ext >&5 4251 rm -rf conftest* 4252 ac_cv_have_readline="no" 4253 4254 fi 4255 rm -f conftest* 4256 fi 4257 4258 echo "$ac_t""$ac_cv_have_readline" 1>&6 9491 4259 else 9492 cat >> confdefs.h <<\_ACEOF4260 cat >> confdefs.h <<\EOF 9493 4261 #define READLINE_READLINE_H_OK 1 9494 _ACEOF4262 EOF 9495 4263 9496 4264 ac_cv_have_readline="yes" … … 9498 4266 fi 9499 4267 if test "$ac_cv_have_readline" = yes; then 9500 cat >> confdefs.h <<\_ACEOF4268 cat >> confdefs.h <<\EOF 9501 4269 #define HAVE_READLINE 1 9502 _ACEOF4270 EOF 9503 4271 9504 4272 fi 9505 4273 ac_ext=c 4274 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 9506 4275 ac_cpp='$CPP $CPPFLAGS' 9507 ac_compile='$ CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext>&5'9508 ac_link='$ CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS>&5'9509 ac_compiler_gnu=$ac_cv_c_compiler_gnu 9510 9511 fi 9512 9513 echo "$as_me:$LINENO: checking which readline to use" >&59514 echo $ECHO_N "checking which readline to use... $ECHO_C" >&64276 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 4277 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 4278 cross_compiling=$ac_cv_prog_cc_cross 4279 4280 fi 4281 4282 echo $ac_n "checking which readline to use""... $ac_c" 1>&6 4283 echo "configure:4284: checking which readline to use" >&5 9515 4284 if test "$ac_cv_with_readline" = dynamic; then 9516 echo "$as_me:$LINENO: result: dynamic" >&5 9517 echo "${ECHO_T}dynamic" >&6 9518 cat >>confdefs.h <<\_ACEOF 4285 echo "$ac_t""dynamic" 1>&6 4286 cat >> confdefs.h <<\EOF 9519 4287 #define HAVE_DYN_RL 1 9520 _ACEOF4288 EOF 9521 4289 9522 4290 elif test "$ac_cv_have_readline" = yes; then 9523 echo "$as_me:$LINENO: result: static" >&5 9524 echo "${ECHO_T}static" >&6 4291 echo "$ac_t""static" 1>&6 9525 4292 elif test "$ac_cv_singuname" = PowerMacintosh-darwin; then 9526 { { echo "$as_me:$LINENO: error: building without readline impossible on PowerMacintosh-darwin" >&5 9527 echo "$as_me: error: building without readline impossible on PowerMacintosh-darwin" >&2;} 9528 { (exit 1); exit 1; }; } 9529 else 9530 echo "$as_me:$LINENO: result: none" >&5 9531 echo "${ECHO_T}none" >&6 9532 { echo "$as_me:$LINENO: WARNING: building without readline: disabling fancy display" >&5 9533 echo "$as_me: WARNING: building without readline: disabling fancy display" >&2;} 9534 fi 9535 4293 { echo "configure: error: building without readline impossible on PowerMacintosh-darwin" 1>&2; exit 1; } 4294 else 4295 echo "$ac_t""none" 1>&6 4296 echo "configure: warning: building without readline: disabling fancy display" 1>&2 4297 fi 4298 9536 4299 NEED_LIBS=$LIBS 9537 4300 9538 4301 # gmp, smallgmp, MP, MPT, factory, libfac 9539 9540 echo " $as_me:$LINENO: checking for main in -lgmp" >&59541 echo $ECHO_N "checking for main in -lgmp... $ECHO_C" >&6 9542 if test "${ac_cv_lib_gmp_main+set}" = set; then9543 echo $ ECHO_N "(cached) $ECHO_C">&69544 else 9545 ac_ check_lib_save_LIBS=$LIBS4302 echo $ac_n "checking for main in -lgmp""... $ac_c" 1>&6 4303 echo "configure:4304: checking for main in -lgmp" >&5 4304 ac_lib_var=`echo gmp'_'main | sed 'y%./+-%__p_%'` 4305 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4306 echo $ac_n "(cached) $ac_c" 1>&6 4307 else 4308 ac_save_LIBS="$LIBS" 9546 4309 LIBS="-lgmp $LIBS" 9547 cat >conftest.$ac_ext <<_ACEOF 9548 #line $LINENO "configure" 9549 /* confdefs.h. */ 9550 _ACEOF 9551 cat confdefs.h >>conftest.$ac_ext 9552 cat >>conftest.$ac_ext <<_ACEOF 9553 /* end confdefs.h. */ 9554 9555 9556 int 9557 main () 9558 { 9559 main (); 9560 ; 9561 return 0; 9562 } 9563 _ACEOF 9564 rm -f conftest.$ac_objext conftest$ac_exeext 9565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9566 (eval $ac_link) 2>&5 9567 ac_status=$? 9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9569 (exit $ac_status); } && 9570 { ac_try='test -s conftest$ac_exeext' 9571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9572 (eval $ac_try) 2>&5 9573 ac_status=$? 9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9575 (exit $ac_status); }; }; then 9576 ac_cv_lib_gmp_main=yes 9577 else 9578 echo "$as_me: failed program was:" >&5 9579 sed 's/^/| /' conftest.$ac_ext >&5 9580 9581 ac_cv_lib_gmp_main=no 9582 fi 9583 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9584 LIBS=$ac_check_lib_save_LIBS 9585 fi 9586 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp_main" >&5 9587 echo "${ECHO_T}$ac_cv_lib_gmp_main" >&6 9588 if test $ac_cv_lib_gmp_main = yes; then 9589 cat >>confdefs.h <<_ACEOF 9590 #define HAVE_LIBGMP 1 9591 _ACEOF 4310 cat > conftest.$ac_ext <<EOF 4311 #line 4312 "configure" 4312 #include "confdefs.h" 4313 4314 int main() { 4315 main() 4316 ; return 0; } 4317 EOF 4318 if { (eval echo configure:4319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4319 rm -rf conftest* 4320 eval "ac_cv_lib_$ac_lib_var=yes" 4321 else 4322 echo "configure: failed program was:" >&5 4323 cat conftest.$ac_ext >&5 4324 rm -rf conftest* 4325 eval "ac_cv_lib_$ac_lib_var=no" 4326 fi 4327 rm -f conftest* 4328 LIBS="$ac_save_LIBS" 4329 4330 fi 4331 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4332 echo "$ac_t""yes" 1>&6 4333 ac_tr_lib=HAVE_LIB`echo gmp | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 4334 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 4335 cat >> confdefs.h <<EOF 4336 #define $ac_tr_lib 1 4337 EOF 9592 4338 9593 4339 LIBS="-lgmp $LIBS" 9594 4340 4341 else 4342 echo "$ac_t""no" 1>&6 9595 4343 fi 9596 4344 … … 9598 4346 LIBS=${NEED_LIBS} 9599 4347 fi 9600 9601 echo " $as_me:$LINENO: checking for main in -lsmallgmp" >&59602 echo $ECHO_N "checking for main in -lsmallgmp... $ECHO_C" >&6 9603 if test "${ac_cv_lib_smallgmp_main+set}" = set; then9604 echo $ ECHO_N "(cached) $ECHO_C">&69605 else 9606 ac_ check_lib_save_LIBS=$LIBS4348 echo $ac_n "checking for main in -lsmallgmp""... $ac_c" 1>&6 4349 echo "configure:4350: checking for main in -lsmallgmp" >&5 4350 ac_lib_var=`echo smallgmp'_'main | sed 'y%./+-%__p_%'` 4351 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4352 echo $ac_n "(cached) $ac_c" 1>&6 4353 else 4354 ac_save_LIBS="$LIBS" 9607 4355 LIBS="-lsmallgmp $LIBS" 9608 cat >conftest.$ac_ext <<_ACEOF 9609 #line $LINENO "configure" 9610 /* confdefs.h. */ 9611 _ACEOF 9612 cat confdefs.h >>conftest.$ac_ext 9613 cat >>conftest.$ac_ext <<_ACEOF 9614 /* end confdefs.h. */ 9615 9616 9617 int 9618 main () 9619 { 9620 main (); 9621 ; 9622 return 0; 9623 } 9624 _ACEOF 9625 rm -f conftest.$ac_objext conftest$ac_exeext 9626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9627 (eval $ac_link) 2>&5 9628 ac_status=$? 9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9630 (exit $ac_status); } && 9631 { ac_try='test -s conftest$ac_exeext' 9632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9633 (eval $ac_try) 2>&5 9634 ac_status=$? 9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9636 (exit $ac_status); }; }; then 9637 ac_cv_lib_smallgmp_main=yes 9638 else 9639 echo "$as_me: failed program was:" >&5 9640 sed 's/^/| /' conftest.$ac_ext >&5 9641 9642 ac_cv_lib_smallgmp_main=no 9643 fi 9644 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9645 LIBS=$ac_check_lib_save_LIBS 9646 fi 9647 echo "$as_me:$LINENO: result: $ac_cv_lib_smallgmp_main" >&5 9648 echo "${ECHO_T}$ac_cv_lib_smallgmp_main" >&6 9649 if test $ac_cv_lib_smallgmp_main = yes; then 9650 cat >>confdefs.h <<_ACEOF 9651 #define HAVE_LIBSMALLGMP 1 9652 _ACEOF 4356 cat > conftest.$ac_ext <<EOF 4357 #line 4358 "configure" 4358 #include "confdefs.h" 4359 4360 int main() { 4361 main() 4362 ; return 0; } 4363 EOF 4364 if { (eval echo configure:4365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4365 rm -rf conftest* 4366 eval "ac_cv_lib_$ac_lib_var=yes" 4367 else 4368 echo "configure: failed program was:" >&5 4369 cat conftest.$ac_ext >&5 4370 rm -rf conftest* 4371 eval "ac_cv_lib_$ac_lib_var=no" 4372 fi 4373 rm -f conftest* 4374 LIBS="$ac_save_LIBS" 4375 4376 fi 4377 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4378 echo "$ac_t""yes" 1>&6 4379 ac_tr_lib=HAVE_LIB`echo smallgmp | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 4380 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 4381 cat >> confdefs.h <<EOF 4382 #define $ac_tr_lib 1 4383 EOF 9653 4384 9654 4385 LIBS="-lsmallgmp $LIBS" 9655 4386 4387 else 4388 echo "$ac_t""no" 1>&6 9656 4389 fi 9657 4390 9658 4391 SAVE_LIBS=$LIBS 9659 9660 echo " $as_me:$LINENO: checking for IMP_PutGmpInt in -lMP" >&59661 echo $ECHO_N "checking for IMP_PutGmpInt in -lMP... $ECHO_C" >&6 9662 if test "${ac_cv_lib_MP_IMP_PutGmpInt+set}" = set; then9663 echo $ ECHO_N "(cached) $ECHO_C">&69664 else 9665 ac_ check_lib_save_LIBS=$LIBS4392 echo $ac_n "checking for IMP_PutGmpInt in -lMP""... $ac_c" 1>&6 4393 echo "configure:4394: checking for IMP_PutGmpInt in -lMP" >&5 4394 ac_lib_var=`echo MP'_'IMP_PutGmpInt | sed 'y%./+-%__p_%'` 4395 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4396 echo $ac_n "(cached) $ac_c" 1>&6 4397 else 4398 ac_save_LIBS="$LIBS" 9666 4399 LIBS="-lMP $MP_LIBS $LIBS" 9667 cat >conftest.$ac_ext <<_ACEOF 9668 #line $LINENO "configure" 9669 /* confdefs.h. */ 9670 _ACEOF 9671 cat confdefs.h >>conftest.$ac_ext 9672 cat >>conftest.$ac_ext <<_ACEOF 9673 /* end confdefs.h. */ 9674 4400 cat > conftest.$ac_ext <<EOF 4401 #line 4402 "configure" 4402 #include "confdefs.h" 9675 4403 /* Override any gcc2 internal prototype to avoid an error. */ 9676 #ifdef __cplusplus9677 extern "C"9678 #endif9679 4404 /* We use char because int might match the return type of a gcc2 9680 builtin and then its argument prototype would still apply. */ 9681 char IMP_PutGmpInt (); 9682 int 9683 main () 9684 { 9685 IMP_PutGmpInt (); 9686 ; 9687 return 0; 9688 } 9689 _ACEOF 9690 rm -f conftest.$ac_objext conftest$ac_exeext 9691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9692 (eval $ac_link) 2>&5 9693 ac_status=$? 9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9695 (exit $ac_status); } && 9696 { ac_try='test -s conftest$ac_exeext' 9697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9698 (eval $ac_try) 2>&5 9699 ac_status=$? 9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9701 (exit $ac_status); }; }; then 9702 ac_cv_lib_MP_IMP_PutGmpInt=yes 9703 else 9704 echo "$as_me: failed program was:" >&5 9705 sed 's/^/| /' conftest.$ac_ext >&5 9706 9707 ac_cv_lib_MP_IMP_PutGmpInt=no 9708 fi 9709 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9710 LIBS=$ac_check_lib_save_LIBS 9711 fi 9712 echo "$as_me:$LINENO: result: $ac_cv_lib_MP_IMP_PutGmpInt" >&5 9713 echo "${ECHO_T}$ac_cv_lib_MP_IMP_PutGmpInt" >&6 9714 if test $ac_cv_lib_MP_IMP_PutGmpInt = yes; then 9715 cat >>confdefs.h <<_ACEOF 9716 #define HAVE_LIBMP 1 9717 _ACEOF 4405 builtin and then its argument prototype would still apply. */ 4406 char IMP_PutGmpInt(); 4407 4408 int main() { 4409 IMP_PutGmpInt() 4410 ; return 0; } 4411 EOF 4412 if { (eval echo configure:4413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4413 rm -rf conftest* 4414 eval "ac_cv_lib_$ac_lib_var=yes" 4415 else 4416 echo "configure: failed program was:" >&5 4417 cat conftest.$ac_ext >&5 4418 rm -rf conftest* 4419 eval "ac_cv_lib_$ac_lib_var=no" 4420 fi 4421 rm -f conftest* 4422 LIBS="$ac_save_LIBS" 4423 4424 fi 4425 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4426 echo "$ac_t""yes" 1>&6 4427 ac_tr_lib=HAVE_LIB`echo MP | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 4428 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 4429 cat >> confdefs.h <<EOF 4430 #define $ac_tr_lib 1 4431 EOF 9718 4432 9719 4433 LIBS="-lMP $LIBS" 9720 4434 9721 fi 9722 9723 9724 echo "$as_me:$LINENO: checking for MPT_GetTree in -lMPT" >&5 9725 echo $ECHO_N "checking for MPT_GetTree in -lMPT... $ECHO_C" >&6 9726 if test "${ac_cv_lib_MPT_MPT_GetTree+set}" = set; then 9727 echo $ECHO_N "(cached) $ECHO_C" >&6 9728 else 9729 ac_check_lib_save_LIBS=$LIBS 4435 else 4436 echo "$ac_t""no" 1>&6 4437 fi 4438 4439 echo $ac_n "checking for MPT_GetTree in -lMPT""... $ac_c" 1>&6 4440 echo "configure:4441: checking for MPT_GetTree in -lMPT" >&5 4441 ac_lib_var=`echo MPT'_'MPT_GetTree | sed 'y%./+-%__p_%'` 4442 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4443 echo $ac_n "(cached) $ac_c" 1>&6 4444 else 4445 ac_save_LIBS="$LIBS" 9730 4446 LIBS="-lMPT $MP_LIBS $LIBS" 9731 cat >conftest.$ac_ext <<_ACEOF 9732 #line $LINENO "configure" 9733 /* confdefs.h. */ 9734 _ACEOF 9735 cat confdefs.h >>conftest.$ac_ext 9736 cat >>conftest.$ac_ext <<_ACEOF 9737 /* end confdefs.h. */ 9738 4447 cat > conftest.$ac_ext <<EOF 4448 #line 4449 "configure" 4449 #include "confdefs.h" 9739 4450 /* Override any gcc2 internal prototype to avoid an error. */ 9740 #ifdef __cplusplus9741 extern "C"9742 #endif9743 4451 /* We use char because int might match the return type of a gcc2 9744 builtin and then its argument prototype would still apply. */ 9745 char MPT_GetTree (); 9746 int 9747 main () 9748 { 9749 MPT_GetTree (); 9750 ; 9751 return 0; 9752 } 9753 _ACEOF 9754 rm -f conftest.$ac_objext conftest$ac_exeext 9755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9756 (eval $ac_link) 2>&5 9757 ac_status=$? 9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9759 (exit $ac_status); } && 9760 { ac_try='test -s conftest$ac_exeext' 9761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9762 (eval $ac_try) 2>&5 9763 ac_status=$? 9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9765 (exit $ac_status); }; }; then 9766 ac_cv_lib_MPT_MPT_GetTree=yes 9767 else 9768 echo "$as_me: failed program was:" >&5 9769 sed 's/^/| /' conftest.$ac_ext >&5 9770 9771 ac_cv_lib_MPT_MPT_GetTree=no 9772 fi 9773 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9774 LIBS=$ac_check_lib_save_LIBS 9775 fi 9776 echo "$as_me:$LINENO: result: $ac_cv_lib_MPT_MPT_GetTree" >&5 9777 echo "${ECHO_T}$ac_cv_lib_MPT_MPT_GetTree" >&6 9778 if test $ac_cv_lib_MPT_MPT_GetTree = yes; then 9779 cat >>confdefs.h <<_ACEOF 9780 #define HAVE_LIBMPT 1 9781 _ACEOF 4452 builtin and then its argument prototype would still apply. */ 4453 char MPT_GetTree(); 4454 4455 int main() { 4456 MPT_GetTree() 4457 ; return 0; } 4458 EOF 4459 if { (eval echo configure:4460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4460 rm -rf conftest* 4461 eval "ac_cv_lib_$ac_lib_var=yes" 4462 else 4463 echo "configure: failed program was:" >&5 4464 cat conftest.$ac_ext >&5 4465 rm -rf conftest* 4466 eval "ac_cv_lib_$ac_lib_var=no" 4467 fi 4468 rm -f conftest* 4469 LIBS="$ac_save_LIBS" 4470 4471 fi 4472 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4473 echo "$ac_t""yes" 1>&6 4474 ac_tr_lib=HAVE_LIB`echo MPT | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 4475 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 4476 cat >> confdefs.h <<EOF 4477 #define $ac_tr_lib 1 4478 EOF 9782 4479 9783 4480 LIBS="-lMPT $LIBS" 9784 4481 4482 else 4483 echo "$ac_t""no" 1>&6 9785 4484 fi 9786 4485 9787 4486 LIBS=$SAVE_LIBS 9788 9789 echo " $as_me:$LINENO: checking for atof in -lsingcf" >&59790 echo $ECHO_N "checking for atof in -lsingcf... $ECHO_C" >&6 9791 if test "${ac_cv_lib_singcf_atof+set}" = set; then9792 echo $ ECHO_N "(cached) $ECHO_C">&69793 else 9794 ac_ check_lib_save_LIBS=$LIBS4487 echo $ac_n "checking for atof in -lsingcf""... $ac_c" 1>&6 4488 echo "configure:4489: checking for atof in -lsingcf" >&5 4489 ac_lib_var=`echo singcf'_'atof | sed 'y%./+-%__p_%'` 4490 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4491 echo $ac_n "(cached) $ac_c" 1>&6 4492 else 4493 ac_save_LIBS="$LIBS" 9795 4494 LIBS="-lsingcf $LIBS" 9796 cat >conftest.$ac_ext <<_ACEOF 9797 #line $LINENO "configure" 9798 /* confdefs.h. */ 9799 _ACEOF 9800 cat confdefs.h >>conftest.$ac_ext 9801 cat >>conftest.$ac_ext <<_ACEOF 9802 /* end confdefs.h. */ 9803 4495 cat > conftest.$ac_ext <<EOF 4496 #line 4497 "configure" 4497 #include "confdefs.h" 9804 4498 /* Override any gcc2 internal prototype to avoid an error. */ 9805 #ifdef __cplusplus9806 extern "C"9807 #endif9808 4499 /* We use char because int might match the return type of a gcc2 9809 builtin and then its argument prototype would still apply. */ 9810 char atof (); 9811 int 9812 main () 9813 { 9814 atof (); 9815 ; 9816 return 0; 9817 } 9818 _ACEOF 9819 rm -f conftest.$ac_objext conftest$ac_exeext 9820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9821 (eval $ac_link) 2>&5 9822 ac_status=$? 9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9824 (exit $ac_status); } && 9825 { ac_try='test -s conftest$ac_exeext' 9826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9827 (eval $ac_try) 2>&5 9828 ac_status=$? 9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9830 (exit $ac_status); }; }; then 9831 ac_cv_lib_singcf_atof=yes 9832 else 9833 echo "$as_me: failed program was:" >&5 9834 sed 's/^/| /' conftest.$ac_ext >&5 9835 9836 ac_cv_lib_singcf_atof=no 9837 fi 9838 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9839 LIBS=$ac_check_lib_save_LIBS 9840 fi 9841 echo "$as_me:$LINENO: result: $ac_cv_lib_singcf_atof" >&5 9842 echo "${ECHO_T}$ac_cv_lib_singcf_atof" >&6 9843 if test $ac_cv_lib_singcf_atof = yes; then 9844 cat >>confdefs.h <<_ACEOF 9845 #define HAVE_LIBSINGCF 1 9846 _ACEOF 4500 builtin and then its argument prototype would still apply. */ 4501 char atof(); 4502 4503 int main() { 4504 atof() 4505 ; return 0; } 4506 EOF 4507 if { (eval echo configure:4508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4508 rm -rf conftest* 4509 eval "ac_cv_lib_$ac_lib_var=yes" 4510 else 4511 echo "configure: failed program was:" >&5 4512 cat conftest.$ac_ext >&5 4513 rm -rf conftest* 4514 eval "ac_cv_lib_$ac_lib_var=no" 4515 fi 4516 rm -f conftest* 4517 LIBS="$ac_save_LIBS" 4518 4519 fi 4520 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4521 echo "$ac_t""yes" 1>&6 4522 ac_tr_lib=HAVE_LIB`echo singcf | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 4523 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 4524 cat >> confdefs.h <<EOF 4525 #define $ac_tr_lib 1 4526 EOF 9847 4527 9848 4528 LIBS="-lsingcf $LIBS" 9849 4529 9850 fi 9851 9852 9853 echo "$as_me:$LINENO: checking for atof in -lsingfac" >&5 9854 echo $ECHO_N "checking for atof in -lsingfac... $ECHO_C" >&6 9855 if test "${ac_cv_lib_singfac_atof+set}" = set; then 9856 echo $ECHO_N "(cached) $ECHO_C" >&6 9857 else 9858 ac_check_lib_save_LIBS=$LIBS 4530 else 4531 echo "$ac_t""no" 1>&6 4532 fi 4533 4534 echo $ac_n "checking for atof in -lsingfac""... $ac_c" 1>&6 4535 echo "configure:4536: checking for atof in -lsingfac" >&5 4536 ac_lib_var=`echo singfac'_'atof | sed 'y%./+-%__p_%'` 4537 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4538 echo $ac_n "(cached) $ac_c" 1>&6 4539 else 4540 ac_save_LIBS="$LIBS" 9859 4541 LIBS="-lsingfac $LIBS" 9860 cat >conftest.$ac_ext <<_ACEOF 9861 #line $LINENO "configure" 9862 /* confdefs.h. */ 9863 _ACEOF 9864 cat confdefs.h >>conftest.$ac_ext 9865 cat >>conftest.$ac_ext <<_ACEOF 9866 /* end confdefs.h. */ 9867 4542 cat > conftest.$ac_ext <<EOF 4543 #line 4544 "configure" 4544 #include "confdefs.h" 9868 4545 /* Override any gcc2 internal prototype to avoid an error. */ 9869 #ifdef __cplusplus9870 extern "C"9871 #endif9872 4546 /* We use char because int might match the return type of a gcc2 9873 builtin and then its argument prototype would still apply. */ 9874 char atof (); 9875 int 9876 main () 9877 { 9878 atof (); 9879 ; 9880 return 0; 9881 } 9882 _ACEOF 9883 rm -f conftest.$ac_objext conftest$ac_exeext 9884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9885 (eval $ac_link) 2>&5 9886 ac_status=$? 9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9888 (exit $ac_status); } && 9889 { ac_try='test -s conftest$ac_exeext' 9890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9891 (eval $ac_try) 2>&5 9892 ac_status=$? 9893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9894 (exit $ac_status); }; }; then 9895 ac_cv_lib_singfac_atof=yes 9896 else 9897 echo "$as_me: failed program was:" >&5 9898 sed 's/^/| /' conftest.$ac_ext >&5 9899 9900 ac_cv_lib_singfac_atof=no 9901 fi 9902 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9903 LIBS=$ac_check_lib_save_LIBS 9904 fi 9905 echo "$as_me:$LINENO: result: $ac_cv_lib_singfac_atof" >&5 9906 echo "${ECHO_T}$ac_cv_lib_singfac_atof" >&6 9907 if test $ac_cv_lib_singfac_atof = yes; then 9908 cat >>confdefs.h <<_ACEOF 9909 #define HAVE_LIBSINGFAC 1 9910 _ACEOF 4547 builtin and then its argument prototype would still apply. */ 4548 char atof(); 4549 4550 int main() { 4551 atof() 4552 ; return 0; } 4553 EOF 4554 if { (eval echo configure:4555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4555 rm -rf conftest* 4556 eval "ac_cv_lib_$ac_lib_var=yes" 4557 else 4558 echo "configure: failed program was:" >&5 4559 cat conftest.$ac_ext >&5 4560 rm -rf conftest* 4561 eval "ac_cv_lib_$ac_lib_var=no" 4562 fi 4563 rm -f conftest* 4564 LIBS="$ac_save_LIBS" 4565 4566 fi 4567 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4568 echo "$ac_t""yes" 1>&6 4569 ac_tr_lib=HAVE_LIB`echo singfac | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 4570 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 4571 cat >> confdefs.h <<EOF 4572 #define $ac_tr_lib 1 4573 EOF 9911 4574 9912 4575 LIBS="-lsingfac $LIBS" 9913 4576 9914 fi 9915 9916 9917 echo "$as_me:$LINENO: checking for omTestAddr in -lomalloc" >&5 9918 echo $ECHO_N "checking for omTestAddr in -lomalloc... $ECHO_C" >&6 9919 if test "${ac_cv_lib_omalloc_omTestAddr+set}" = set; then 9920 echo $ECHO_N "(cached) $ECHO_C" >&6 9921 else 9922 ac_check_lib_save_LIBS=$LIBS 4577 else 4578 echo "$ac_t""no" 1>&6 4579 fi 4580 4581 echo $ac_n "checking for omTestAddr in -lomalloc""... $ac_c" 1>&6 4582 echo "configure:4583: checking for omTestAddr in -lomalloc" >&5 4583 ac_lib_var=`echo omalloc'_'omTestAddr | sed 'y%./+-%__p_%'` 4584 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4585 echo $ac_n "(cached) $ac_c" 1>&6 4586 else 4587 ac_save_LIBS="$LIBS" 9923 4588 LIBS="-lomalloc $LIBS" 9924 cat >conftest.$ac_ext <<_ACEOF 9925 #line $LINENO "configure" 9926 /* confdefs.h. */ 9927 _ACEOF 9928 cat confdefs.h >>conftest.$ac_ext 9929 cat >>conftest.$ac_ext <<_ACEOF 9930 /* end confdefs.h. */ 9931 4589 cat > conftest.$ac_ext <<EOF 4590 #line 4591 "configure" 4591 #include "confdefs.h" 9932 4592 /* Override any gcc2 internal prototype to avoid an error. */ 9933 #ifdef __cplusplus9934 extern "C"9935 #endif9936 4593 /* We use char because int might match the return type of a gcc2 9937 builtin and then its argument prototype would still apply. */ 9938 char omTestAddr (); 9939 int 9940 main () 9941 { 9942 omTestAddr (); 9943 ; 9944 return 0; 9945 } 9946 _ACEOF 9947 rm -f conftest.$ac_objext conftest$ac_exeext 9948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9949 (eval $ac_link) 2>&5 9950 ac_status=$? 9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9952 (exit $ac_status); } && 9953 { ac_try='test -s conftest$ac_exeext' 9954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9955 (eval $ac_try) 2>&5 9956 ac_status=$? 9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9958 (exit $ac_status); }; }; then 9959 ac_cv_lib_omalloc_omTestAddr=yes 9960 else 9961 echo "$as_me: failed program was:" >&5 9962 sed 's/^/| /' conftest.$ac_ext >&5 9963 9964 ac_cv_lib_omalloc_omTestAddr=no 9965 fi 9966 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9967 LIBS=$ac_check_lib_save_LIBS 9968 fi 9969 echo "$as_me:$LINENO: result: $ac_cv_lib_omalloc_omTestAddr" >&5 9970 echo "${ECHO_T}$ac_cv_lib_omalloc_omTestAddr" >&6 9971 if test $ac_cv_lib_omalloc_omTestAddr = yes; then 9972 cat >>confdefs.h <<_ACEOF 9973 #define HAVE_LIBOMALLOC 1 9974 _ACEOF 4594 builtin and then its argument prototype would still apply. */ 4595 char omTestAddr(); 4596 4597 int main() { 4598 omTestAddr() 4599 ; return 0; } 4600 EOF 4601 if { (eval echo configure:4602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4602 rm -rf conftest* 4603 eval "ac_cv_lib_$ac_lib_var=yes" 4604 else 4605 echo "configure: failed program was:" >&5 4606 cat conftest.$ac_ext >&5 4607 rm -rf conftest* 4608 eval "ac_cv_lib_$ac_lib_var=no" 4609 fi 4610 rm -f conftest* 4611 LIBS="$ac_save_LIBS" 4612 4613 fi 4614 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4615 echo "$ac_t""yes" 1>&6 4616 ac_tr_lib=HAVE_LIB`echo omalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 4617 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 4618 cat >> confdefs.h <<EOF 4619 #define $ac_tr_lib 1 4620 EOF 9975 4621 9976 4622 LIBS="-lomalloc $LIBS" 9977 4623 9978 fi 9979 9980 9981 echo "$as_me:$LINENO: checking for main in -lomalloc_ndebug" >&5 9982 echo $ECHO_N "checking for main in -lomalloc_ndebug... $ECHO_C" >&6 9983 if test "${ac_cv_lib_omalloc_ndebug_main+set}" = set; then 9984 echo $ECHO_N "(cached) $ECHO_C" >&6 9985 else 9986 ac_check_lib_save_LIBS=$LIBS 4624 else 4625 echo "$ac_t""no" 1>&6 4626 fi 4627 4628 echo $ac_n "checking for main in -lomalloc_ndebug""... $ac_c" 1>&6 4629 echo "configure:4630: checking for main in -lomalloc_ndebug" >&5 4630 ac_lib_var=`echo omalloc_ndebug'_'main | sed 'y%./+-%__p_%'` 4631 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4632 echo $ac_n "(cached) $ac_c" 1>&6 4633 else 4634 ac_save_LIBS="$LIBS" 9987 4635 LIBS="-lomalloc_ndebug $LIBS" 9988 cat >conftest.$ac_ext <<_ACEOF 9989 #line $LINENO "configure" 9990 /* confdefs.h. */ 9991 _ACEOF 9992 cat confdefs.h >>conftest.$ac_ext 9993 cat >>conftest.$ac_ext <<_ACEOF 9994 /* end confdefs.h. */ 9995 9996 9997 int 9998 main () 9999 { 10000 main (); 10001 ; 10002 return 0; 10003 } 10004 _ACEOF 10005 rm -f conftest.$ac_objext conftest$ac_exeext 10006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10007 (eval $ac_link) 2>&5 10008 ac_status=$? 10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10010 (exit $ac_status); } && 10011 { ac_try='test -s conftest$ac_exeext' 10012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10013 (eval $ac_try) 2>&5 10014 ac_status=$? 10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10016 (exit $ac_status); }; }; then 10017 ac_cv_lib_omalloc_ndebug_main=yes 10018 else 10019 echo "$as_me: failed program was:" >&5 10020 sed 's/^/| /' conftest.$ac_ext >&5 10021 10022 ac_cv_lib_omalloc_ndebug_main=no 10023 fi 10024 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10025 LIBS=$ac_check_lib_save_LIBS 10026 fi 10027 echo "$as_me:$LINENO: result: $ac_cv_lib_omalloc_ndebug_main" >&5 10028 echo "${ECHO_T}$ac_cv_lib_omalloc_ndebug_main" >&6 10029 if test $ac_cv_lib_omalloc_ndebug_main = yes; then 10030 cat >>confdefs.h <<_ACEOF 10031 #define HAVE_LIBOMALLOC_NDEBUG 1 10032 _ACEOF 4636 cat > conftest.$ac_ext <<EOF 4637 #line 4638 "configure" 4638 #include "confdefs.h" 4639 4640 int main() { 4641 main() 4642 ; return 0; } 4643 EOF 4644 if { (eval echo configure:4645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4645 rm -rf conftest* 4646 eval "ac_cv_lib_$ac_lib_var=yes" 4647 else 4648 echo "configure: failed program was:" >&5 4649 cat conftest.$ac_ext >&5 4650 rm -rf conftest* 4651 eval "ac_cv_lib_$ac_lib_var=no" 4652 fi 4653 rm -f conftest* 4654 LIBS="$ac_save_LIBS" 4655 4656 fi 4657 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4658 echo "$ac_t""yes" 1>&6 4659 ac_tr_lib=HAVE_LIB`echo omalloc_ndebug | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 4660 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 4661 cat >> confdefs.h <<EOF 4662 #define $ac_tr_lib 1 4663 EOF 10033 4664 10034 4665 LIBS="-lomalloc_ndebug $LIBS" 10035 4666 10036 fi 10037 10038 10039 echo "$as_me:$LINENO: checking for main in -lntl" >&5 10040 echo $ECHO_N "checking for main in -lntl... $ECHO_C" >&6 10041 if test "${ac_cv_lib_ntl_main+set}" = set; then 10042 echo $ECHO_N "(cached) $ECHO_C" >&6 10043 else 10044 ac_check_lib_save_LIBS=$LIBS 4667 else 4668 echo "$ac_t""no" 1>&6 4669 fi 4670 4671 echo $ac_n "checking for main in -lntl""... $ac_c" 1>&6 4672 echo "configure:4673: checking for main in -lntl" >&5 4673 ac_lib_var=`echo ntl'_'main | sed 'y%./+-%__p_%'` 4674 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4675 echo $ac_n "(cached) $ac_c" 1>&6 4676 else 4677 ac_save_LIBS="$LIBS" 10045 4678 LIBS="-lntl $LIBS" 10046 cat >conftest.$ac_ext <<_ACEOF 10047 #line $LINENO "configure" 10048 /* confdefs.h. */ 10049 _ACEOF 10050 cat confdefs.h >>conftest.$ac_ext 10051 cat >>conftest.$ac_ext <<_ACEOF 10052 /* end confdefs.h. */ 10053 10054 10055 int 10056 main () 10057 { 10058 main (); 10059 ; 10060 return 0; 10061 } 10062 _ACEOF 10063 rm -f conftest.$ac_objext conftest$ac_exeext 10064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10065 (eval $ac_link) 2>&5 10066 ac_status=$? 10067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10068 (exit $ac_status); } && 10069 { ac_try='test -s conftest$ac_exeext' 10070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10071 (eval $ac_try) 2>&5 10072 ac_status=$? 10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10074 (exit $ac_status); }; }; then 10075 ac_cv_lib_ntl_main=yes 10076 else 10077 echo "$as_me: failed program was:" >&5 10078 sed 's/^/| /' conftest.$ac_ext >&5 10079 10080 ac_cv_lib_ntl_main=no 10081 fi 10082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10083 LIBS=$ac_check_lib_save_LIBS 10084 fi 10085 echo "$as_me:$LINENO: result: $ac_cv_lib_ntl_main" >&5 10086 echo "${ECHO_T}$ac_cv_lib_ntl_main" >&6 10087 if test $ac_cv_lib_ntl_main = yes; then 10088 cat >>confdefs.h <<_ACEOF 10089 #define HAVE_LIBNTL 1 10090 _ACEOF 4679 cat > conftest.$ac_ext <<EOF 4680 #line 4681 "configure" 4681 #include "confdefs.h" 4682 4683 int main() { 4684 main() 4685 ; return 0; } 4686 EOF 4687 if { (eval echo configure:4688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4688 rm -rf conftest* 4689 eval "ac_cv_lib_$ac_lib_var=yes" 4690 else 4691 echo "configure: failed program was:" >&5 4692 cat conftest.$ac_ext >&5 4693 rm -rf conftest* 4694 eval "ac_cv_lib_$ac_lib_var=no" 4695 fi 4696 rm -f conftest* 4697 LIBS="$ac_save_LIBS" 4698 4699 fi 4700 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4701 echo "$ac_t""yes" 1>&6 4702 ac_tr_lib=HAVE_LIB`echo ntl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 4703 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 4704 cat >> confdefs.h <<EOF 4705 #define $ac_tr_lib 1 4706 EOF 10091 4707 10092 4708 LIBS="-lntl $LIBS" 10093 4709 10094 fi 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 for ac_header in gmp.h smallgmp.h MP.h MPT.h factory.h factor.h omalloc.h \ 4710 else 4711 echo "$ac_t""no" 1>&6 4712 fi 4713 4714 4715 for ac_hdr in gmp.h smallgmp.h MP.h MPT.h factory.h factor.h omalloc.h \ 10106 4716 omalloc.c 10107 4717 do 10108 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10109 if eval "test \"\${$as_ac_Header+set}\" = set"; then 10110 echo "$as_me:$LINENO: checking for $ac_header" >&5 10111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10112 if eval "test \"\${$as_ac_Header+set}\" = set"; then 10113 echo $ECHO_N "(cached) $ECHO_C" >&6 10114 fi 10115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10117 else 10118 # Is the header compilable? 10119 echo "$as_me:$LINENO: checking $ac_header usability" >&5 10120 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 10121 cat >conftest.$ac_ext <<_ACEOF 10122 #line $LINENO "configure" 10123 /* confdefs.h. */ 10124 _ACEOF 10125 cat confdefs.h >>conftest.$ac_ext 10126 cat >>conftest.$ac_ext <<_ACEOF 10127 /* end confdefs.h. */ 10128 $ac_includes_default 10129 #include <$ac_header> 10130 _ACEOF 10131 rm -f conftest.$ac_objext 10132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10133 (eval $ac_compile) 2>&5 10134 ac_status=$? 10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10136 (exit $ac_status); } && 10137 { ac_try='test -s conftest.$ac_objext' 10138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10139 (eval $ac_try) 2>&5 10140 ac_status=$? 10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10142 (exit $ac_status); }; }; then 10143 ac_header_compiler=yes 10144 else 10145 echo "$as_me: failed program was:" >&5 10146 sed 's/^/| /' conftest.$ac_ext >&5 10147 10148 ac_header_compiler=no 10149 fi 10150 rm -f conftest.$ac_objext conftest.$ac_ext 10151 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10152 echo "${ECHO_T}$ac_header_compiler" >&6 10153 10154 # Is the header present? 10155 echo "$as_me:$LINENO: checking $ac_header presence" >&5 10156 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 10157 cat >conftest.$ac_ext <<_ACEOF 10158 #line $LINENO "configure" 10159 /* confdefs.h. */ 10160 _ACEOF 10161 cat confdefs.h >>conftest.$ac_ext 10162 cat >>conftest.$ac_ext <<_ACEOF 10163 /* end confdefs.h. */ 10164 #include <$ac_header> 10165 _ACEOF 10166 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10167 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10168 ac_status=$? 10169 grep -v '^ *+' conftest.er1 >conftest.err 10170 rm -f conftest.er1 10171 cat conftest.err >&5 10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10173 (exit $ac_status); } >/dev/null; then 10174 if test -s conftest.err; then 10175 ac_cpp_err=$ac_c_preproc_warn_flag 10176 else 10177 ac_cpp_err= 10178 fi 10179 else 10180 ac_cpp_err=yes 10181 fi 10182 if test -z "$ac_cpp_err"; then 10183 ac_header_preproc=yes 10184 else 10185 echo "$as_me: failed program was:" >&5 10186 sed 's/^/| /' conftest.$ac_ext >&5 10187 10188 ac_header_preproc=no 10189 fi 10190 rm -f conftest.err conftest.$ac_ext 10191 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10192 echo "${ECHO_T}$ac_header_preproc" >&6 10193 10194 # So? What about this header? 10195 case $ac_header_compiler:$ac_header_preproc in 10196 yes:no ) 10197 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10198 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10200 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10201 ( 10202 cat <<\_ASBOX 10203 ## ------------------------------------ ## 10204 ## Report this to bug-autoconf@gnu.org. ## 10205 ## ------------------------------------ ## 10206 _ASBOX 10207 ) | 10208 sed "s/^/$as_me: WARNING: /" >&2 10209 ;; 10210 no:yes ) 10211 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10212 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10213 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10214 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10216 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10217 ( 10218 cat <<\_ASBOX 10219 ## ------------------------------------ ## 10220 ## Report this to bug-autoconf@gnu.org. ## 10221 ## ------------------------------------ ## 10222 _ASBOX 10223 ) | 10224 sed "s/^/$as_me: WARNING: /" >&2 10225 ;; 10226 esac 10227 echo "$as_me:$LINENO: checking for $ac_header" >&5 10228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10229 if eval "test \"\${$as_ac_Header+set}\" = set"; then 10230 echo $ECHO_N "(cached) $ECHO_C" >&6 10231 else 10232 eval "$as_ac_Header=$ac_header_preproc" 10233 fi 10234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10236 10237 fi 10238 if test `eval echo '${'$as_ac_Header'}'` = yes; then 10239 cat >>confdefs.h <<_ACEOF 10240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10241 _ACEOF 10242 10243 fi 10244 4718 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4719 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4720 echo "configure:4721: checking for $ac_hdr" >&5 4721 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4722 echo $ac_n "(cached) $ac_c" 1>&6 4723 else 4724 cat > conftest.$ac_ext <<EOF 4725 #line 4726 "configure" 4726 #include "confdefs.h" 4727 #include <$ac_hdr> 4728 EOF 4729 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4730 { (eval echo configure:4731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4731 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4732 if test -z "$ac_err"; then 4733 rm -rf conftest* 4734 eval "ac_cv_header_$ac_safe=yes" 4735 else 4736 echo "$ac_err" >&5 4737 echo "configure: failed program was:" >&5 4738 cat conftest.$ac_ext >&5 4739 rm -rf conftest* 4740 eval "ac_cv_header_$ac_safe=no" 4741 fi 4742 rm -f conftest* 4743 fi 4744 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4745 echo "$ac_t""yes" 1>&6 4746 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 4747 cat >> confdefs.h <<EOF 4748 #define $ac_tr_hdr 1 4749 EOF 4750 4751 else 4752 echo "$ac_t""no" 1>&6 4753 fi 10245 4754 done 10246 4755 … … 10287 4796 # evaluate results 10288 4797 if test "$ac_cv_omalloc_ok" != yes && test "$enable_omalloc" != yes; then 10289 { { echo "$as_me:$LINENO: error: can not build without omalloc" >&5 10290 echo "$as_me: error: can not build without omalloc" >&2;} 10291 { (exit 1); exit 1; }; } 10292 fi 10293 10294 echo "$as_me:$LINENO: checking which apint package to use" >&5 10295 echo $ECHO_N "checking which apint package to use... $ECHO_C" >&6 4798 { echo "configure: error: can not build without omalloc" 1>&2; exit 1; } 4799 fi 4800 4801 echo $ac_n "checking which apint package to use""... $ac_c" 1>&6 4802 echo "configure:4803: checking which apint package to use" >&5 10296 4803 if test "${with_apint}" != gmp && test "${with_apint}" != smallgmp; then 10297 4804 if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then 10298 echo "$as_me:$LINENO: result: gmp" >&5 10299 echo "${ECHO_T}gmp" >&6 4805 echo "$ac_t""gmp" 1>&6 10300 4806 will_have_gmp=yes 10301 4807 NEED_LIBS="-lgmp ${NEED_LIBS}" 10302 4808 elif test "ac_gmp_smallgmp_ok" = yes || test "$enable_smallgmp" = "yes"; then 10303 echo "$as_me:$LINENO: result: smallgmp" >&5 10304 echo "${ECHO_T}smallgmp" >&6 10305 cat >>confdefs.h <<\_ACEOF 4809 echo "$ac_t""smallgmp" 1>&6 4810 cat >> confdefs.h <<\EOF 10306 4811 #define HAVE_SMALLGMP 1 10307 _ACEOF4812 EOF 10308 4813 10309 4814 NEED_LIBS="-lsmallgmp ${NEED_LIBS}" 10310 4815 else 10311 echo "$as_me:$LINENO: result: none" >&5 10312 echo "${ECHO_T}none" >&6 10313 { { echo "$as_me:$LINENO: error: can not build without gmp or smallgmp" >&5 10314 echo "$as_me: error: can not build without gmp or smallgmp" >&2;} 10315 { (exit 1); exit 1; }; } 4816 echo "$ac_t""none" 1>&6 4817 { echo "configure: error: can not build without gmp or smallgmp" 1>&2; exit 1; } 10316 4818 fi 10317 4819 elif test "${with_apint}" = gmp; then 10318 4820 if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then 10319 echo "$as_me:$LINENO: result: gmp" >&5 10320 echo "${ECHO_T}gmp" >&6 4821 echo "$ac_t""gmp" 1>&6 10321 4822 will_have_gmp=yes 10322 4823 NEED_LIBS="-lgmp ${NEED_LIBS}" 10323 4824 else 10324 echo "$as_me:$LINENO: result: none" >&5 10325 echo "${ECHO_T}none" >&6 10326 { { echo "$as_me:$LINENO: error: can not build with gmp" >&5 10327 echo "$as_me: error: can not build with gmp" >&2;} 10328 { (exit 1); exit 1; }; } 4825 echo "$ac_t""none" 1>&6 4826 { echo "configure: error: can not build with gmp" 1>&2; exit 1; } 10329 4827 fi 10330 4828 else 10331 4829 if test "ac_gmp_smallgmp_ok" = yes || test "$enable_smallgmp" = "yes"; then 10332 echo "$as_me:$LINENO: result: smallgmp" >&5 10333 echo "${ECHO_T}smallgmp" >&6 10334 cat >>confdefs.h <<\_ACEOF 4830 echo "$ac_t""smallgmp" 1>&6 4831 cat >> confdefs.h <<\EOF 10335 4832 #define HAVE_SMALLGMP 1 10336 _ACEOF4833 EOF 10337 4834 10338 4835 NEED_LIBS="-lsmallgmp ${NEED_LIBS}" 10339 4836 else 10340 echo "$as_me:$LINENO: result: none" >&5 10341 echo "${ECHO_T}none" >&6 10342 { { echo "$as_me:$LINENO: error: can not build with smallgmp" >&5 10343 echo "$as_me: error: can not build with smallgmp" >&2;} 10344 { (exit 1); exit 1; }; } 4837 echo "$ac_t""none" 1>&6 4838 { echo "configure: error: can not build with smallgmp" 1>&2; exit 1; } 10345 4839 fi 10346 4840 fi 10347 4841 10348 4842 # 10349 echo "$as_me:$LINENO: checking whether to have MP" >&510350 echo $ECHO_N "checking whether to have MP... $ECHO_C" >&64843 echo $ac_n "checking whether to have MP""... $ac_c" 1>&6 4844 echo "configure:4845: checking whether to have MP" >&5 10351 4845 if test "${with_MP}" != yes && test "${with_MP}" != no; then 10352 4846 if (test "${will_have_gmp}" = yes) && \ 10353 4847 (test "$ac_MP_ok" = yes || test "$enable_MP" = yes); then 10354 echo "$as_me:$LINENO: result: yes" >&5 10355 echo "${ECHO_T}yes" >&6 10356 cat >>confdefs.h <<\_ACEOF 4848 echo "$ac_t""yes" 1>&6 4849 cat >> confdefs.h <<\EOF 10357 4850 #define HAVE_MPSR 1 10358 _ACEOF4851 EOF 10359 4852 10360 4853 HAVE_MPSR=1 10361 4854 MP_LIBS="-lMPT -lMP ${MP_LIBS}" 10362 4855 else 10363 echo "$as_me:$LINENO: result: no" >&5 10364 echo "${ECHO_T}no" >&6 4856 echo "$ac_t""no" 1>&6 10365 4857 fi 10366 4858 elif test "${with_MP}" = yes; then 10367 4859 if (test "${will_have_gmp}" = yes) && \ 10368 4860 (test "$ac_MP_ok" = yes || test "$enable_MP" = yes); then 10369 echo "$as_me:$LINENO: result: yes" >&5 10370 echo "${ECHO_T}yes" >&6 10371 cat >>confdefs.h <<\_ACEOF 4861 echo "$ac_t""yes" 1>&6 4862 cat >> confdefs.h <<\EOF 10372 4863 #define HAVE_MPSR 1 10373 _ACEOF4864 EOF 10374 4865 10375 4866 HAVE_MPSR=1 10376 4867 MP_LIBS="-lMPT -lMP ${MP_LIBS}" 10377 4868 else 10378 echo "$as_me:$LINENO: result: no" >&5 10379 echo "${ECHO_T}no" >&6 10380 { { echo "$as_me:$LINENO: error: can not build with MP" >&5 10381 echo "$as_me: error: can not build with MP" >&2;} 10382 { (exit 1); exit 1; }; } 4869 echo "$ac_t""no" 1>&6 4870 { echo "configure: error: can not build with MP" 1>&2; exit 1; } 10383 4871 fi 10384 4872 else 10385 echo "$as_me:$LINENO: result: no" >&5 10386 echo "${ECHO_T}no" >&6 10387 fi 10388 10389 10390 10391 echo "$as_me:$LINENO: checking whether to have NTL" >&5 10392 echo $ECHO_N "checking whether to have NTL... $ECHO_C" >&6 4873 echo "$ac_t""no" 1>&6 4874 fi 4875 4876 4877 4878 echo $ac_n "checking whether to have NTL""... $ac_c" 1>&6 4879 echo "configure:4880: checking whether to have NTL" >&5 10393 4880 if test "${with_NTL}" = yes ; then 10394 echo "$as_me:$LINENO: result: yes" >&5 10395 echo "${ECHO_T}yes" >&6 4881 echo "$ac_t""yes" 1>&6 10396 4882 NEED_LIBS="-lntl ${NEED_LIBS}" 10397 4883 else 10398 echo "$as_me:$LINENO: result: no" >&5 10399 echo "${ECHO_T}no" >&6 10400 fi 10401 10402 echo "$as_me:$LINENO: checking whether to have factory" >&5 10403 echo $ECHO_N "checking whether to have factory... $ECHO_C" >&6 4884 echo "$ac_t""no" 1>&6 4885 fi 4886 4887 echo $ac_n "checking whether to have factory""... $ac_c" 1>&6 4888 echo "configure:4889: checking whether to have factory" >&5 10404 4889 if test "${with_factory}" != yes && test "${with_factory}" != no; then 10405 4890 if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then 10406 echo "$as_me:$LINENO: result: yes" >&5 10407 echo "${ECHO_T}yes" >&6 10408 cat >>confdefs.h <<\_ACEOF 4891 echo "$ac_t""yes" 1>&6 4892 cat >> confdefs.h <<\EOF 10409 4893 #define HAVE_FACTORY 1 10410 _ACEOF4894 EOF 10411 4895 10412 4896 will_have_factory=yes 10413 4897 NEED_LIBS="-lsingcf ${NEED_LIBS}" 10414 4898 else 10415 echo "$as_me:$LINENO: result: no" >&5 10416 echo "${ECHO_T}no" >&6 4899 echo "$ac_t""no" 1>&6 10417 4900 fi 10418 4901 elif test "${with_factory}" = yes; then 10419 4902 if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then 10420 echo "$as_me:$LINENO: result: yes" >&5 10421 echo "${ECHO_T}yes" >&6 10422 cat >>confdefs.h <<\_ACEOF 4903 echo "$ac_t""yes" 1>&6 4904 cat >> confdefs.h <<\EOF 10423 4905 #define HAVE_FACTORY 1 10424 _ACEOF4906 EOF 10425 4907 10426 4908 will_have_factory=yes 10427 4909 NEED_LIBS="-lsingcf ${NEED_LIBS}" 10428 4910 else 10429 echo "$as_me:$LINENO: result: no" >&5 10430 echo "${ECHO_T}no" >&6 10431 { { echo "$as_me:$LINENO: error: can not build with factory" >&5 10432 echo "$as_me: error: can not build with factory" >&2;} 10433 { (exit 1); exit 1; }; } 4911 echo "$ac_t""no" 1>&6 4912 { echo "configure: error: can not build with factory" 1>&2; exit 1; } 10434 4913 fi 10435 4914 else 10436 echo "$as_me:$LINENO: result: no" >&5 10437 echo "${ECHO_T}no" >&6 10438 fi 10439 10440 echo "$as_me:$LINENO: checking whether to have libfac" >&5 10441 echo $ECHO_N "checking whether to have libfac... $ECHO_C" >&6 4915 echo "$ac_t""no" 1>&6 4916 fi 4917 4918 echo $ac_n "checking whether to have libfac""... $ac_c" 1>&6 4919 echo "configure:4920: checking whether to have libfac" >&5 10442 4920 if test "${with_libfac}" != yes && test "${with_libfac}" != no; then 10443 4921 if (test "${will_have_factory}" = yes) && \ 10444 4922 (test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes); then 10445 echo "$as_me:$LINENO: result: yes" >&5 10446 echo "${ECHO_T}yes" >&6 10447 cat >>confdefs.h <<\_ACEOF 4923 echo "$ac_t""yes" 1>&6 4924 cat >> confdefs.h <<\EOF 10448 4925 #define HAVE_LIBFAC_P 1 10449 _ACEOF4926 EOF 10450 4927 10451 4928 NEED_LIBS="-lsingfac ${NEED_LIBS}" 10452 4929 else 10453 echo "$as_me:$LINENO: result: no" >&5 10454 echo "${ECHO_T}no" >&6 4930 echo "$ac_t""no" 1>&6 10455 4931 fi 10456 4932 elif test "${with_libfac}" = yes; then 10457 4933 if (test "${will_have_factory}" = yes) && \ 10458 4934 (test "$ac_libfac_ok" = yes || test "$enable_libfac" = yes); then 10459 echo "$as_me:$LINENO: result: yes" >&5 10460 echo "${ECHO_T}yes" >&6 10461 cat >>confdefs.h <<\_ACEOF 4935 echo "$ac_t""yes" 1>&6 4936 cat >> confdefs.h <<\EOF 10462 4937 #define HAVE_LIBFAC_P 1 10463 _ACEOF4938 EOF 10464 4939 10465 4940 NEED_LIBS="-lsingfac ${NEED_LIBS}" 10466 4941 else 10467 echo "$as_me:$LINENO: result: no" >&5 10468 echo "${ECHO_T}no" >&6 10469 { { echo "$as_me:$LINENO: error: can not build with libfac" >&5 10470 echo "$as_me: error: can not build with libfac" >&2;} 10471 { (exit 1); exit 1; }; } 4942 echo "$ac_t""no" 1>&6 4943 { echo "configure: error: can not build with libfac" 1>&2; exit 1; } 10472 4944 fi 10473 4945 else 10474 echo "$as_me:$LINENO: result: no" >&5 10475 echo "${ECHO_T}no" >&6 10476 fi 10477 10478 10479 10480 10481 echo "$as_me:$LINENO: checking whether to have dbm links" >&5 10482 echo $ECHO_N "checking whether to have dbm links... $ECHO_C" >&6 4946 echo "$ac_t""no" 1>&6 4947 fi 4948 4949 4950 4951 4952 echo $ac_n "checking whether to have dbm links""... $ac_c" 1>&6 4953 echo "configure:4954: checking whether to have dbm links" >&5 10483 4954 if test "$with_dbm" != no; then 10484 cat >> confdefs.h <<\_ACEOF4955 cat >> confdefs.h <<\EOF 10485 4956 #define HAVE_DBM 1 10486 _ACEOF 10487 10488 echo "$as_me:$LINENO: result: yes" >&5 10489 echo "${ECHO_T}yes" >&6 10490 else 10491 echo "$as_me:$LINENO: result: no" >&5 10492 echo "${ECHO_T}no" >&6 10493 fi 10494 10495 echo "$as_me:$LINENO: checking whether to have namespaces" >&5 10496 echo $ECHO_N "checking whether to have namespaces... $ECHO_C" >&6 4957 EOF 4958 4959 echo "$ac_t""yes" 1>&6 4960 else 4961 echo "$ac_t""no" 1>&6 4962 fi 4963 4964 echo $ac_n "checking whether to have namespaces""... $ac_c" 1>&6 4965 echo "configure:4966: checking whether to have namespaces" >&5 10497 4966 if test "$with_namespaces" != no; then 10498 echo "$as_me:$LINENO: result: yes" >&5 10499 echo "${ECHO_T}yes" >&6 10500 cat >>confdefs.h <<\_ACEOF 4967 echo "$ac_t""yes" 1>&6 4968 cat >> confdefs.h <<\EOF 10501 4969 #define HAVE_NS 1 10502 _ACEOF 10503 10504 else 10505 echo "$as_me:$LINENO: result: no" >&5 10506 echo "${ECHO_T}no" >&6 10507 fi 10508 10509 echo "$as_me:$LINENO: checking whether to have dynamic modules" >&5 10510 echo $ECHO_N "checking whether to have dynamic modules... $ECHO_C" >&6 4970 EOF 4971 4972 else 4973 echo "$ac_t""no" 1>&6 4974 fi 4975 4976 echo $ac_n "checking whether to have dynamic modules""... $ac_c" 1>&6 4977 echo "configure:4978: checking whether to have dynamic modules" >&5 10511 4978 if test "$with_dynamic_modules" = no || test "$ac_have_dl" != yes; then 10512 echo "$as_me:$LINENO: result: no" >&5 10513 echo "${ECHO_T}no" >&6 10514 else 10515 cat >>confdefs.h <<\_ACEOF 4979 echo "$ac_t""no" 1>&6 4980 else 4981 cat >> confdefs.h <<\EOF 10516 4982 #define HAVE_DYNAMIC_LOADING 1 10517 _ACEOF 10518 10519 echo "$as_me:$LINENO: result: yes" >&5 10520 echo "${ECHO_T}yes" >&6 10521 fi 10522 10523 echo "$as_me:$LINENO: checking whether to have dynamic kernel" >&5 10524 echo $ECHO_N "checking whether to have dynamic kernel... $ECHO_C" >&6 4983 EOF 4984 4985 echo "$ac_t""yes" 1>&6 4986 fi 4987 4988 echo $ac_n "checking whether to have dynamic kernel""... $ac_c" 1>&6 4989 echo "configure:4990: checking whether to have dynamic kernel" >&5 10525 4990 if test "$with_dynamic_kernel" != no && test "$ac_lib_dl" = yes; then 10526 4991 DL_KERNEL=1 10527 10528 echo "$as_me:$LINENO: result: yes" >&5 10529 echo "${ECHO_T}yes" >&6 10530 else 10531 echo "$as_me:$LINENO: result: no" >&5 10532 echo "${ECHO_T}no" >&6 10533 fi 10534 10535 echo "$as_me:$LINENO: checking whether to have Plural" >&5 10536 echo $ECHO_N "checking whether to have Plural... $ECHO_C" >&6 4992 4993 echo "$ac_t""yes" 1>&6 4994 else 4995 echo "$ac_t""no" 1>&6 4996 fi 4997 4998 echo $ac_n "checking whether to have Plural""... $ac_c" 1>&6 4999 echo "configure:5000: checking whether to have Plural" >&5 10537 5000 if test "$with_Plural" != yes && test "$enable_Plural" != yes; then 10538 echo "$as_me:$LINENO: result: no" >&5 10539 echo "${ECHO_T}no" >&6 10540 else 10541 cat >>confdefs.h <<\_ACEOF 5001 echo "$ac_t""no" 1>&6 5002 else 5003 cat >> confdefs.h <<\EOF 10542 5004 #define HAVE_PLURAL 1 10543 _ACEOF 10544 10545 echo "$as_me:$LINENO: result: yes" >&5 10546 echo "${ECHO_T}yes" >&6 5005 EOF 5006 5007 echo "$ac_t""yes" 1>&6 10547 5008 PLURAL=1 10548 5009 10549 5010 fi 10550 5011 … … 10556 5017 fi 10557 5018 10558 ac_config_files="$ac_config_files ${OUTPUT_MAKEFILES}" 10559 ac_config_commands="$ac_config_commands default" 10560 cat >confcache <<\_ACEOF 5019 trap '' 1 2 15 5020 cat > confcache <<\EOF 10561 5021 # This file is a shell script that caches the results of configure 10562 5022 # tests run on this system so they can be shared between configure 10563 # scripts and configure runs, see configure's option --config-cache. 10564 # It is not useful on other systems. If it contains results you don't 10565 # want to keep, you may remove or edit it. 5023 # scripts and configure runs. It is not useful on other systems. 5024 # If it contains results you don't want to keep, you may remove or edit it. 10566 5025 # 10567 # config.status only pays attention to the cache file if you give it 10568 # the --recheck option to rerun configure. 5026 # By default, configure uses ./config.cache as the cache file, 5027 # creating it if it does not exist already. You can give configure 5028 # the --cache-file=FILE option to use a different cache file; that is 5029 # what configure does when it calls configure scripts in 5030 # subdirectories, so they share the cache. 5031 # Giving --cache-file=/dev/null disables caching, for debugging configure. 5032 # config.status only pays attention to the cache file if you give it the 5033 # --recheck option to rerun configure. 10569 5034 # 10570 # `ac_cv_env_foo' variables (set or unset) will be overridden when 10571 # loading this file, other *unset* `ac_cv_foo' will be assigned the 10572 # following values. 10573 10574 _ACEOF 10575 5035 EOF 10576 5036 # The following way of writing the cache mishandles newlines in values, 10577 5037 # but we know of no workaround that is simple, portable, and efficient. … … 10579 5039 # Ultrix sh set writes to stderr and can't be redirected directly, 10580 5040 # and sets the high bit in the cache file unless we assign to the vars. 10581 { 10582 (set) 2>&1 | 10583 case `(ac_space=' '; set | grep ac_space) 2>&1` in 10584 *ac_space=\ *) 10585 # `set' does not quote correctly, so add quotes (double-quote 10586 # substitution turns \\\\ into \\, and sed turns \\ into \). 10587 sed -n \ 10588 "s/'/'\\\\''/g; 10589 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10590 ;; 10591 *) 10592 # `set' quotes correctly as required by POSIX, so do not add quotes. 10593 sed -n \ 10594 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 10595 ;; 10596 esac; 10597 } | 10598 sed ' 10599 t clear 10600 : clear 10601 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10602 t end 10603 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10604 : end' >>confcache 10605 if diff $cache_file confcache >/dev/null 2>&1; then :; else 5041 (set) 2>&1 | 5042 case `(ac_space=' '; set | grep ac_space) 2>&1` in 5043 *ac_space=\ *) 5044 # `set' does not quote correctly, so add quotes (double-quote substitution 5045 # turns \\\\ into \\, and sed turns \\ into \). 5046 sed -n \ 5047 -e "s/'/'\\\\''/g" \ 5048 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 5049 ;; 5050 *) 5051 # `set' quotes correctly as required by POSIX, so do not add quotes. 5052 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 5053 ;; 5054 esac >> confcache 5055 if cmp -s $cache_file confcache; then 5056 : 5057 else 10606 5058 if test -w $cache_file; then 10607 test "x$cache_file" != "x/dev/null" &&echo "updating cache $cache_file"10608 cat confcache > $cache_file5059 echo "updating cache $cache_file" 5060 cat confcache > $cache_file 10609 5061 else 10610 5062 echo "not updating unwritable cache $cache_file" … … 10613 5065 rm -f confcache 10614 5066 5067 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 5068 10615 5069 test "x$prefix" = xNONE && prefix=$ac_default_prefix 10616 5070 # Let make expand exec_prefix. 10617 5071 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10618 5072 10619 # VPATH may cause trouble with some makes, so we remove $(srcdir), 10620 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 10621 # trailing colons and then remove the whole line if VPATH becomes empty 10622 # (actually we leave an empty line to preserve line numbers). 5073 # Any assignment to VPATH causes Sun make to only execute 5074 # the first set of double-colon rules, so remove it if not needed. 5075 # If there is a colon in the path, we need to keep it. 10623 5076 if test "x$srcdir" = x.; then 10624 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 10625 s/:*\$(srcdir):*/:/; 10626 s/:*\${srcdir}:*/:/; 10627 s/:*@srcdir@:*/:/; 10628 s/^\([^=]*=[ ]*\):*/\1/; 10629 s/:*$//; 10630 s/^[^=]*=[ ]*$//; 10631 }' 10632 fi 5077 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 5078 fi 5079 5080 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 10633 5081 10634 5082 DEFS=-DHAVE_CONFIG_H 10635 5083 10636 ac_libobjs= 10637 ac_ltlibobjs= 10638 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10639 # 1. Remove the extension, and $U if already installed. 10640 ac_i=`echo "$ac_i" | 10641 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 10642 # 2. Add them. 10643 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 10644 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 5084 # Without the "./", some shells look in PATH for config.status. 5085 : ${CONFIG_STATUS=./config.status} 5086 5087 echo creating $CONFIG_STATUS 5088 rm -f $CONFIG_STATUS 5089 cat > $CONFIG_STATUS <<EOF 5090 #! /bin/sh 5091 # Generated automatically by configure. 5092 # Run this file to recreate the current configuration. 5093 # This directory was configured as follows, 5094 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 5095 # 5096 # $0 $ac_configure_args 5097 # 5098 # Compiler output produced by configure, useful for debugging 5099 # configure, is in ./config.log if it exists. 5100 5101 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 5102 for ac_option 5103 do 5104 case "\$ac_option" in 5105 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 5106 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 5107 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 5108 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 5109 echo "$CONFIG_STATUS generated by autoconf version 2.13" 5110 exit 0 ;; 5111 -help | --help | --hel | --he | --h) 5112 echo "\$ac_cs_usage"; exit 0 ;; 5113 *) echo "\$ac_cs_usage"; exit 1 ;; 5114 esac 10645 5115 done 10646 LIBOBJS=$ac_libobjs 10647 10648 LTLIBOBJS=$ac_ltlibobjs 10649 10650 10651 10652 : ${CONFIG_STATUS=./config.status} 10653 ac_clean_files_save=$ac_clean_files 10654 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10655 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 10656 echo "$as_me: creating $CONFIG_STATUS" >&6;} 10657 cat >$CONFIG_STATUS <<_ACEOF 10658 #! $SHELL 10659 # Generated by $as_me. 10660 # Run this file to recreate the current configuration. 10661 # Compiler output produced by configure, useful for debugging 10662 # configure, is in config.log if it exists. 10663 10664 debug=false 10665 ac_cs_recheck=false 10666 ac_cs_silent=false 10667 SHELL=\${CONFIG_SHELL-$SHELL} 10668 _ACEOF 10669 10670 cat >>$CONFIG_STATUS <<\_ACEOF 10671 ## --------------------- ## 10672 ## M4sh Initialization. ## 10673 ## --------------------- ## 10674 10675 # Be Bourne compatible 10676 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 10677 emulate sh 10678 NULLCMD=: 10679 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 10680 # is contrary to our usage. Disable this feature. 10681 alias -g '${1+"$@"}'='"$@"' 10682 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 10683 set -o posix 10684 fi 10685 10686 # Support unset when possible. 10687 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 10688 as_unset=unset 10689 else 10690 as_unset=false 10691 fi 10692 10693 10694 # Work around bugs in pre-3.0 UWIN ksh. 10695 $as_unset ENV MAIL MAILPATH 10696 PS1='$ ' 10697 PS2='> ' 10698 PS4='+ ' 10699 10700 # NLS nuisances. 10701 for as_var in \ 10702 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 10703 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 10704 LC_TELEPHONE LC_TIME 10705 do 10706 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then 10707 eval $as_var=C; export $as_var 5116 5117 ac_given_srcdir=$srcdir 5118 ac_given_INSTALL="$INSTALL" 5119 5120 trap 'rm -fr `echo "${OUTPUT_MAKEFILES} mod2.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 5121 EOF 5122 cat >> $CONFIG_STATUS <<EOF 5123 5124 # Protect against being on the right side of a sed subst in config.status. 5125 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 5126 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 5127 $ac_vpsub 5128 $extrasub 5129 s%@SHELL@%$SHELL%g 5130 s%@CFLAGS@%$CFLAGS%g 5131 s%@CPPFLAGS@%$CPPFLAGS%g 5132 s%@CXXFLAGS@%$CXXFLAGS%g 5133 s%@FFLAGS@%$FFLAGS%g 5134 s%@DEFS@%$DEFS%g 5135 s%@LDFLAGS@%$LDFLAGS%g 5136 s%@LIBS@%$LIBS%g 5137 s%@exec_prefix@%$exec_prefix%g 5138 s%@prefix@%$prefix%g 5139 s%@program_transform_name@%$program_transform_name%g 5140 s%@bindir@%$bindir%g 5141 s%@sbindir@%$sbindir%g 5142 s%@libexecdir@%$libexecdir%g 5143 s%@datadir@%$datadir%g 5144 s%@sysconfdir@%$sysconfdir%g 5145 s%@sharedstatedir@%$sharedstatedir%g 5146 s%@localstatedir@%$localstatedir%g 5147 s%@libdir@%$libdir%g 5148 s%@includedir@%$includedir%g 5149 s%@oldincludedir@%$oldincludedir%g 5150 s%@infodir@%$infodir%g 5151 s%@mandir@%$mandir%g 5152 s%@SINGUNAME@%$SINGUNAME%g 5153 s%@EXEC_EXT@%$EXEC_EXT%g 5154 s%@SING_UNAME@%$SING_UNAME%g 5155 s%@SINGULAR_VERSION@%$SINGULAR_VERSION%g 5156 s%@VERSION_DATE@%$VERSION_DATE%g 5157 s%@SINGULAR_MAJOR_VERSION@%$SINGULAR_MAJOR_VERSION%g 5158 s%@SINGULAR_MINOR_VERSION@%$SINGULAR_MINOR_VERSION%g 5159 s%@SINGULAR_SUB_VERSION@%$SINGULAR_SUB_VERSION%g 5160 s%@CC@%$CC%g 5161 s%@CPP@%$CPP%g 5162 s%@CXX@%$CXX%g 5163 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 5164 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 5165 s%@INSTALL_DATA@%$INSTALL_DATA%g 5166 s%@PIPE@%$PIPE%g 5167 s%@CXXTEMPLFLAGS@%$CXXTEMPLFLAGS%g 5168 s%@CXXNOOPTFLAGS@%$CXXNOOPTFLAGS%g 5169 s%@STATIC_LDFLAGS@%$STATIC_LDFLAGS%g 5170 s%@SET_MAKE@%$SET_MAKE%g 5171 s%@SINGULAR@%$SINGULAR%g 5172 s%@LEX@%$LEX%g 5173 s%@BISON@%$BISON%g 5174 s%@LN_S@%$LN_S%g 5175 s%@PERL@%$PERL%g 5176 s%@LD_DYN_FLAGS@%$LD_DYN_FLAGS%g 5177 s%@SFLAGS@%$SFLAGS%g 5178 s%@SLDFLAGS@%$SLDFLAGS%g 5179 s%@LD@%$LD%g 5180 s%@ALLOCA@%$ALLOCA%g 5181 s%@CXXCPP@%$CXXCPP%g 5182 s%@HAVE_MPSR@%$HAVE_MPSR%g 5183 s%@MP_LIBS@%$MP_LIBS%g 5184 s%@NEED_LIBS@%$NEED_LIBS%g 5185 s%@DL_KERNEL@%$DL_KERNEL%g 5186 s%@PLURAL@%$PLURAL%g 5187 5188 CEOF 5189 EOF 5190 5191 cat >> $CONFIG_STATUS <<\EOF 5192 5193 # Split the substitutions into bite-sized pieces for seds with 5194 # small command number limits, like on Digital OSF/1 and HP-UX. 5195 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 5196 ac_file=1 # Number of current file. 5197 ac_beg=1 # First line for current file. 5198 ac_end=$ac_max_sed_cmds # Line after last line for current file. 5199 ac_more_lines=: 5200 ac_sed_cmds="" 5201 while $ac_more_lines; do 5202 if test $ac_beg -gt 1; then 5203 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 10708 5204 else 10709 $as_unset $as_var 5205 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 5206 fi 5207 if test ! -s conftest.s$ac_file; then 5208 ac_more_lines=false 5209 rm -f conftest.s$ac_file 5210 else 5211 if test -z "$ac_sed_cmds"; then 5212 ac_sed_cmds="sed -f conftest.s$ac_file" 5213 else 5214 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 5215 fi 5216 ac_file=`expr $ac_file + 1` 5217 ac_beg=$ac_end 5218 ac_end=`expr $ac_end + $ac_max_sed_cmds` 10710 5219 fi 10711 5220 done 10712 10713 # Required to use basename. 10714 if expr a : '\(a\)' >/dev/null 2>&1; then 10715 as_expr=expr 10716 else 10717 as_expr=false 10718 fi 10719 10720 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 10721 as_basename=basename 10722 else 10723 as_basename=false 10724 fi 10725 10726 10727 # Name of the executable. 10728 as_me=`$as_basename "$0" || 10729 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 10730 X"$0" : 'X\(//\)$' \| \ 10731 X"$0" : 'X\(/\)$' \| \ 10732 . : '\(.\)' 2>/dev/null || 10733 echo X/"$0" | 10734 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 10735 /^X\/\(\/\/\)$/{ s//\1/; q; } 10736 /^X\/\(\/\).*/{ s//\1/; q; } 10737 s/.*/./; q'` 10738 10739 10740 # PATH needs CR, and LINENO needs CR and PATH. 10741 # Avoid depending upon Character Ranges. 10742 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 10743 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 10744 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 10745 as_cr_digits='0123456789' 10746 as_cr_alnum=$as_cr_Letters$as_cr_digits 10747 10748 # The user is always right. 10749 if test "${PATH_SEPARATOR+set}" != set; then 10750 echo "#! /bin/sh" >conf$$.sh 10751 echo "exit 0" >>conf$$.sh 10752 chmod +x conf$$.sh 10753 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 10754 PATH_SEPARATOR=';' 5221 if test -z "$ac_sed_cmds"; then 5222 ac_sed_cmds=cat 5223 fi 5224 EOF 5225 5226 cat >> $CONFIG_STATUS <<EOF 5227 5228 CONFIG_FILES=\${CONFIG_FILES-"${OUTPUT_MAKEFILES}"} 5229 EOF 5230 cat >> $CONFIG_STATUS <<\EOF 5231 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 5232 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 5233 case "$ac_file" in 5234 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 5235 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 5236 *) ac_file_in="${ac_file}.in" ;; 5237 esac 5238 5239 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 5240 5241 # Remove last slash and all that follows it. Not all systems have dirname. 5242 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 5243 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 5244 # The file is in a subdirectory. 5245 test ! -d "$ac_dir" && mkdir "$ac_dir" 5246 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 5247 # A "../" for each directory in $ac_dir_suffix. 5248 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 10755 5249 else 10756 PATH_SEPARATOR=:5250 ac_dir_suffix= ac_dots= 10757 5251 fi 10758 rm -f conf$$.sh 10759 fi 10760 10761 10762 as_lineno_1=$LINENO 10763 as_lineno_2=$LINENO 10764 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 10765 test "x$as_lineno_1" != "x$as_lineno_2" && 10766 test "x$as_lineno_3" = "x$as_lineno_2" || { 10767 # Find who we are. Look in the path if we contain no path at all 10768 # relative or not. 10769 case $0 in 10770 *[\\/]* ) as_myself=$0 ;; 10771 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10772 for as_dir in $PATH 10773 do 10774 IFS=$as_save_IFS 10775 test -z "$as_dir" && as_dir=. 10776 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10777 done 10778 10779 ;; 5252 5253 case "$ac_given_srcdir" in 5254 .) srcdir=. 5255 if test -z "$ac_dots"; then top_srcdir=. 5256 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 5257 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 5258 *) # Relative path. 5259 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 5260 top_srcdir="$ac_dots$ac_given_srcdir" ;; 10780 5261 esac 10781 # We did not find ourselves, most probably we were run as `sh COMMAND' 10782 # in which case we are not to be found in the path. 10783 if test "x$as_myself" = x; then 10784 as_myself=$0 10785 fi 10786 if test ! -f "$as_myself"; then 10787 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 10788 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 10789 { (exit 1); exit 1; }; } 10790 fi 10791 case $CONFIG_SHELL in 10792 '') 10793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10794 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 10795 do 10796 IFS=$as_save_IFS 10797 test -z "$as_dir" && as_dir=. 10798 for as_base in sh bash ksh sh5; do 10799 case $as_dir in 10800 /*) 10801 if ("$as_dir/$as_base" -c ' 10802 as_lineno_1=$LINENO 10803 as_lineno_2=$LINENO 10804 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 10805 test "x$as_lineno_1" != "x$as_lineno_2" && 10806 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 10807 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 10808 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 10809 CONFIG_SHELL=$as_dir/$as_base 10810 export CONFIG_SHELL 10811 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 10812 fi;; 10813 esac 10814 done 10815 done 10816 ;; 5262 5263 case "$ac_given_INSTALL" in 5264 [/$]*) INSTALL="$ac_given_INSTALL" ;; 5265 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 10817 5266 esac 10818 5267 10819 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 10820 # uniformly replaced by the line number. The first 'sed' inserts a 10821 # line-number line before each line; the second 'sed' does the real 10822 # work. The second script uses 'N' to pair each line-number line 10823 # with the numbered line, and appends trailing '-' during 10824 # substitution so that $LINENO is not a special case at line end. 10825 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 10826 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 10827 sed '=' <$as_myself | 10828 sed ' 10829 N 10830 s,$,-, 10831 : loop 10832 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 10833 t loop 10834 s,-$,, 10835 s,^['$as_cr_digits']*\n,, 10836 ' >$as_me.lineno && 10837 chmod +x $as_me.lineno || 10838 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 10839 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 10840 { (exit 1); exit 1; }; } 10841 10842 # Don't try to exec as it changes $[0], causing all sort of problems 10843 # (the dirname of $[0] is not the place where we might find the 10844 # original and so on. Autoconf is especially sensible to this). 10845 . ./$as_me.lineno 10846 # Exit status is that of the last command. 10847 exit 10848 } 10849 10850 10851 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 10852 *c*,-n*) ECHO_N= ECHO_C=' 10853 ' ECHO_T=' ' ;; 10854 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 10855 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 10856 esac 10857 10858 if expr a : '\(a\)' >/dev/null 2>&1; then 10859 as_expr=expr 10860 else 10861 as_expr=false 10862 fi 10863 10864 rm -f conf$$ conf$$.exe conf$$.file 10865 echo >conf$$.file 10866 if ln -s conf$$.file conf$$ 2>/dev/null; then 10867 # We could just check for DJGPP; but this test a) works b) is more generic 10868 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 10869 if test -f conf$$.exe; then 10870 # Don't use ln at all; we don't have any links 10871 as_ln_s='cp -p' 10872 else 10873 as_ln_s='ln -s' 10874 fi 10875 elif ln conf$$.file conf$$ 2>/dev/null; then 10876 as_ln_s=ln 10877 else 10878 as_ln_s='cp -p' 10879 fi 10880 rm -f conf$$ conf$$.exe conf$$.file 10881 10882 if mkdir -p . 2>/dev/null; then 10883 as_mkdir_p=: 10884 else 10885 as_mkdir_p=false 10886 fi 10887 10888 as_executable_p="test -f" 10889 10890 # Sed expression to map a string onto a valid CPP name. 10891 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 10892 10893 # Sed expression to map a string onto a valid variable name. 10894 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 10895 10896 10897 # IFS 10898 # We need space, tab and new line, in precisely that order. 10899 as_nl=' 10900 ' 10901 IFS=" $as_nl" 10902 10903 # CDPATH. 10904 $as_unset CDPATH 10905 10906 exec 6>&1 10907 10908 # Open the log real soon, to keep \$[0] and so on meaningful, and to 10909 # report actual input values of CONFIG_FILES etc. instead of their 10910 # values after options handling. Logging --version etc. is OK. 10911 exec 5>>config.log 10912 { 10913 echo 10914 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 10915 ## Running $as_me. ## 10916 _ASBOX 10917 } >&5 10918 cat >&5 <<_CSEOF 10919 10920 This file was extended by $as_me, which was 10921 generated by GNU Autoconf 2.57. Invocation command line was 10922 10923 CONFIG_FILES = $CONFIG_FILES 10924 CONFIG_HEADERS = $CONFIG_HEADERS 10925 CONFIG_LINKS = $CONFIG_LINKS 10926 CONFIG_COMMANDS = $CONFIG_COMMANDS 10927 $ $0 $@ 10928 10929 _CSEOF 10930 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 10931 echo >&5 10932 _ACEOF 10933 10934 # Files that config.status was made for. 10935 if test -n "$ac_config_files"; then 10936 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 10937 fi 10938 10939 if test -n "$ac_config_headers"; then 10940 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 10941 fi 10942 10943 if test -n "$ac_config_links"; then 10944 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 10945 fi 10946 10947 if test -n "$ac_config_commands"; then 10948 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 10949 fi 10950 10951 cat >>$CONFIG_STATUS <<\_ACEOF 10952 10953 ac_cs_usage="\ 10954 \`$as_me' instantiates files from templates according to the 10955 current configuration. 10956 10957 Usage: $0 [OPTIONS] [FILE]... 10958 10959 -h, --help print this help, then exit 10960 -V, --version print version number, then exit 10961 -q, --quiet do not print progress messages 10962 -d, --debug don't remove temporary files 10963 --recheck update $as_me by reconfiguring in the same conditions 10964 --file=FILE[:TEMPLATE] 10965 instantiate the configuration file FILE 10966 --header=FILE[:TEMPLATE] 10967 instantiate the configuration header FILE 10968 10969 Configuration files: 10970 $config_files 10971 10972 Configuration headers: 10973 $config_headers 10974 10975 Configuration commands: 10976 $config_commands 10977 10978 Report bugs to <bug-autoconf@gnu.org>." 10979 _ACEOF 10980 10981 cat >>$CONFIG_STATUS <<_ACEOF 10982 ac_cs_version="\\ 10983 config.status 10984 configured by $0, generated by GNU Autoconf 2.57, 10985 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 10986 10987 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 10988 Free Software Foundation, Inc. 10989 This config.status script is free software; the Free Software Foundation 10990 gives unlimited permission to copy, distribute and modify it." 10991 srcdir=$srcdir 10992 INSTALL="$INSTALL" 10993 _ACEOF 10994 10995 cat >>$CONFIG_STATUS <<\_ACEOF 10996 # If no file are specified by the user, then we need to provide default 10997 # value. By we need to know if files were specified by the user. 10998 ac_need_defaults=: 10999 while test $# != 0 11000 do 11001 case $1 in 11002 --*=*) 11003 ac_option=`expr "x$1" : 'x\([^=]*\)='` 11004 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 11005 ac_shift=: 11006 ;; 11007 -*) 11008 ac_option=$1 11009 ac_optarg=$2 11010 ac_shift=shift 11011 ;; 11012 *) # This is not an option, so the user has probably given explicit 11013 # arguments. 11014 ac_option=$1 11015 ac_need_defaults=false;; 5268 echo creating "$ac_file" 5269 rm -f "$ac_file" 5270 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 5271 case "$ac_file" in 5272 *Makefile*) ac_comsub="1i\\ 5273 # $configure_input" ;; 5274 *) ac_comsub= ;; 11016 5275 esac 11017 5276 11018 case $ac_option in 11019 # Handling of the options. 11020 _ACEOF 11021 cat >>$CONFIG_STATUS <<\_ACEOF 11022 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11023 ac_cs_recheck=: ;; 11024 --version | --vers* | -V ) 11025 echo "$ac_cs_version"; exit 0 ;; 11026 --he | --h) 11027 # Conflict between --help and --header 11028 { { echo "$as_me:$LINENO: error: ambiguous option: $1 11029 Try \`$0 --help' for more information." >&5 11030 echo "$as_me: error: ambiguous option: $1 11031 Try \`$0 --help' for more information." >&2;} 11032 { (exit 1); exit 1; }; };; 11033 --help | --hel | -h ) 11034 echo "$ac_cs_usage"; exit 0 ;; 11035 --debug | --d* | -d ) 11036 debug=: ;; 11037 --file | --fil | --fi | --f ) 11038 $ac_shift 11039 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 11040 ac_need_defaults=false;; 11041 --header | --heade | --head | --hea ) 11042 $ac_shift 11043 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 11044 ac_need_defaults=false;; 11045 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11046 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11047 ac_cs_silent=: ;; 11048 11049 # This is an error. 11050 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 11051 Try \`$0 --help' for more information." >&5 11052 echo "$as_me: error: unrecognized option: $1 11053 Try \`$0 --help' for more information." >&2;} 11054 { (exit 1); exit 1; }; } ;; 11055 11056 *) ac_config_targets="$ac_config_targets $1" ;; 11057 11058 esac 11059 shift 11060 done 11061 11062 ac_configure_extra_args= 11063 11064 if $ac_cs_silent; then 11065 exec 6>/dev/null 11066 ac_configure_extra_args="$ac_configure_extra_args --silent" 11067 fi 11068 11069 _ACEOF 11070 cat >>$CONFIG_STATUS <<_ACEOF 11071 if \$ac_cs_recheck; then 11072 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 11073 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11074 fi 11075 11076 _ACEOF 11077 11078 11079 11080 11081 11082 cat >>$CONFIG_STATUS <<\_ACEOF 11083 for ac_config_target in $ac_config_targets 11084 do 11085 case "$ac_config_target" in 11086 # Handling of arguments. 11087 "${OUTPUT_MAKEFILES}" ) CONFIG_FILES="$CONFIG_FILES ${OUTPUT_MAKEFILES}" ;; 11088 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 11089 "mod2.h" ) CONFIG_HEADERS="$CONFIG_HEADERS mod2.h" ;; 11090 "../kernel/mod2.h" ) CONFIG_HEADERS="$CONFIG_HEADERS ../kernel/mod2.h" ;; 11091 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 11092 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 11093 { (exit 1); exit 1; }; };; 11094 esac 11095 done 11096 11097 # If the user did not use the arguments to specify the items to instantiate, 11098 # then the envvar interface is used. Set only those that are not. 11099 # We use the long form for the default assignment because of an extremely 11100 # bizarre bug on SunOS 4.1.3. 11101 if $ac_need_defaults; then 11102 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11103 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11104 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11105 fi 11106 11107 # Have a temporary directory for convenience. Make it in the build tree 11108 # simply because there is no reason to put it here, and in addition, 11109 # creating and moving files from /tmp can sometimes cause problems. 11110 # Create a temporary directory, and hook for its removal unless debugging. 11111 $debug || 11112 { 11113 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 11114 trap '{ (exit 1); exit 1; }' 1 2 13 15 11115 } 11116 11117 # Create a (secure) tmp directory for tmp files. 11118 11119 { 11120 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 11121 test -n "$tmp" && test -d "$tmp" 11122 } || 11123 { 11124 tmp=./confstat$$-$RANDOM 11125 (umask 077 && mkdir $tmp) 11126 } || 11127 { 11128 echo "$me: cannot create a temporary directory in ." >&2 11129 { (exit 1); exit 1; } 11130 } 11131 11132 _ACEOF 11133 11134 cat >>$CONFIG_STATUS <<_ACEOF 11135 11136 # 11137 # CONFIG_FILES section. 11138 # 11139 11140 # No need to generate the scripts if there are no CONFIG_FILES. 11141 # This happens for instance when ./config.status config.h 11142 if test -n "\$CONFIG_FILES"; then 11143 # Protect against being on the right side of a sed subst in config.status. 11144 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 11145 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 11146 s,@SHELL@,$SHELL,;t t 11147 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 11148 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 11149 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 11150 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 11151 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 11152 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 11153 s,@exec_prefix@,$exec_prefix,;t t 11154 s,@prefix@,$prefix,;t t 11155 s,@program_transform_name@,$program_transform_name,;t t 11156 s,@bindir@,$bindir,;t t 11157 s,@sbindir@,$sbindir,;t t 11158 s,@libexecdir@,$libexecdir,;t t 11159 s,@datadir@,$datadir,;t t 11160 s,@sysconfdir@,$sysconfdir,;t t 11161 s,@sharedstatedir@,$sharedstatedir,;t t 11162 s,@localstatedir@,$localstatedir,;t t 11163 s,@libdir@,$libdir,;t t 11164 s,@includedir@,$includedir,;t t 11165 s,@oldincludedir@,$oldincludedir,;t t 11166 s,@infodir@,$infodir,;t t 11167 s,@mandir@,$mandir,;t t 11168 s,@build_alias@,$build_alias,;t t 11169 s,@host_alias@,$host_alias,;t t 11170 s,@target_alias@,$target_alias,;t t 11171 s,@DEFS@,$DEFS,;t t 11172 s,@ECHO_C@,$ECHO_C,;t t 11173 s,@ECHO_N@,$ECHO_N,;t t 11174 s,@ECHO_T@,$ECHO_T,;t t 11175 s,@LIBS@,$LIBS,;t t 11176 s,@SINGUNAME@,$SINGUNAME,;t t 11177 s,@EXEC_EXT@,$EXEC_EXT,;t t 11178 s,@SING_UNAME@,$SING_UNAME,;t t 11179 s,@SINGULAR_VERSION@,$SINGULAR_VERSION,;t t 11180 s,@VERSION_DATE@,$VERSION_DATE,;t t 11181 s,@SINGULAR_MAJOR_VERSION@,$SINGULAR_MAJOR_VERSION,;t t 11182 s,@SINGULAR_MINOR_VERSION@,$SINGULAR_MINOR_VERSION,;t t 11183 s,@SINGULAR_SUB_VERSION@,$SINGULAR_SUB_VERSION,;t t 11184 s,@CC@,$CC,;t t 11185 s,@CFLAGS@,$CFLAGS,;t t 11186 s,@LDFLAGS@,$LDFLAGS,;t t 11187 s,@CPPFLAGS@,$CPPFLAGS,;t t 11188 s,@ac_ct_CC@,$ac_ct_CC,;t t 11189 s,@EXEEXT@,$EXEEXT,;t t 11190 s,@OBJEXT@,$OBJEXT,;t t 11191 s,@CPP@,$CPP,;t t 11192 s,@CXX@,$CXX,;t t 11193 s,@CXXFLAGS@,$CXXFLAGS,;t t 11194 s,@ac_ct_CXX@,$ac_ct_CXX,;t t 11195 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 11196 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 11197 s,@INSTALL_DATA@,$INSTALL_DATA,;t t 11198 s,@EGREP@,$EGREP,;t t 11199 s,@PIPE@,$PIPE,;t t 11200 s,@CXXTEMPLFLAGS@,$CXXTEMPLFLAGS,;t t 11201 s,@CXXNOOPTFLAGS@,$CXXNOOPTFLAGS,;t t 11202 s,@STATIC_LDFLAGS@,$STATIC_LDFLAGS,;t t 11203 s,@SET_MAKE@,$SET_MAKE,;t t 11204 s,@SINGULAR@,$SINGULAR,;t t 11205 s,@LEX@,$LEX,;t t 11206 s,@BISON@,$BISON,;t t 11207 s,@LN_S@,$LN_S,;t t 11208 s,@PERL@,$PERL,;t t 11209 s,@LD_DYN_FLAGS@,$LD_DYN_FLAGS,;t t 11210 s,@SFLAGS@,$SFLAGS,;t t 11211 s,@SLDFLAGS@,$SLDFLAGS,;t t 11212 s,@LD@,$LD,;t t 11213 s,@ALLOCA@,$ALLOCA,;t t 11214 s,@CXXCPP@,$CXXCPP,;t t 11215 s,@HAVE_MPSR@,$HAVE_MPSR,;t t 11216 s,@MP_LIBS@,$MP_LIBS,;t t 11217 s,@NEED_LIBS@,$NEED_LIBS,;t t 11218 s,@DL_KERNEL@,$DL_KERNEL,;t t 11219 s,@PLURAL@,$PLURAL,;t t 11220 s,@LIBOBJS@,$LIBOBJS,;t t 11221 s,@LTLIBOBJS@,$LTLIBOBJS,;t t 11222 CEOF 11223 11224 _ACEOF 11225 11226 cat >>$CONFIG_STATUS <<\_ACEOF 11227 # Split the substitutions into bite-sized pieces for seds with 11228 # small command number limits, like on Digital OSF/1 and HP-UX. 11229 ac_max_sed_lines=48 11230 ac_sed_frag=1 # Number of current file. 11231 ac_beg=1 # First line for current file. 11232 ac_end=$ac_max_sed_lines # Line after last line for current file. 11233 ac_more_lines=: 11234 ac_sed_cmds= 11235 while $ac_more_lines; do 11236 if test $ac_beg -gt 1; then 11237 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 11238 else 11239 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 11240 fi 11241 if test ! -s $tmp/subs.frag; then 11242 ac_more_lines=false 11243 else 11244 # The purpose of the label and of the branching condition is to 11245 # speed up the sed processing (if there are no `@' at all, there 11246 # is no need to browse any of the substitutions). 11247 # These are the two extra sed commands mentioned above. 11248 (echo ':t 11249 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 11250 if test -z "$ac_sed_cmds"; then 11251 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 11252 else 11253 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 11254 fi 11255 ac_sed_frag=`expr $ac_sed_frag + 1` 11256 ac_beg=$ac_end 11257 ac_end=`expr $ac_end + $ac_max_sed_lines` 11258 fi 11259 done 11260 if test -z "$ac_sed_cmds"; then 11261 ac_sed_cmds=cat 11262 fi 11263 fi # test -n "$CONFIG_FILES" 11264 11265 _ACEOF 11266 cat >>$CONFIG_STATUS <<\_ACEOF 11267 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 11268 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 11269 case $ac_file in 11270 - | *:- | *:-:* ) # input from stdin 11271 cat >$tmp/stdin 11272 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 11273 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 11274 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 11275 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 11276 * ) ac_file_in=$ac_file.in ;; 11277 esac 11278 11279 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 11280 ac_dir=`(dirname "$ac_file") 2>/dev/null || 11281 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11282 X"$ac_file" : 'X\(//\)[^/]' \| \ 11283 X"$ac_file" : 'X\(//\)$' \| \ 11284 X"$ac_file" : 'X\(/\)' \| \ 11285 . : '\(.\)' 2>/dev/null || 11286 echo X"$ac_file" | 11287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11288 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11289 /^X\(\/\/\)$/{ s//\1/; q; } 11290 /^X\(\/\).*/{ s//\1/; q; } 11291 s/.*/./; q'` 11292 { if $as_mkdir_p; then 11293 mkdir -p "$ac_dir" 11294 else 11295 as_dir="$ac_dir" 11296 as_dirs= 11297 while test ! -d "$as_dir"; do 11298 as_dirs="$as_dir $as_dirs" 11299 as_dir=`(dirname "$as_dir") 2>/dev/null || 11300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11301 X"$as_dir" : 'X\(//\)[^/]' \| \ 11302 X"$as_dir" : 'X\(//\)$' \| \ 11303 X"$as_dir" : 'X\(/\)' \| \ 11304 . : '\(.\)' 2>/dev/null || 11305 echo X"$as_dir" | 11306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11307 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11308 /^X\(\/\/\)$/{ s//\1/; q; } 11309 /^X\(\/\).*/{ s//\1/; q; } 11310 s/.*/./; q'` 11311 done 11312 test ! -n "$as_dirs" || mkdir $as_dirs 11313 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 11314 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 11315 { (exit 1); exit 1; }; }; } 11316 11317 ac_builddir=. 11318 11319 if test "$ac_dir" != .; then 11320 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 11321 # A "../" for each directory in $ac_dir_suffix. 11322 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 11323 else 11324 ac_dir_suffix= ac_top_builddir= 11325 fi 11326 11327 case $srcdir in 11328 .) # No --srcdir option. We are building in place. 11329 ac_srcdir=. 11330 if test -z "$ac_top_builddir"; then 11331 ac_top_srcdir=. 11332 else 11333 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 11334 fi ;; 11335 [\\/]* | ?:[\\/]* ) # Absolute path. 11336 ac_srcdir=$srcdir$ac_dir_suffix; 11337 ac_top_srcdir=$srcdir ;; 11338 *) # Relative path. 11339 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 11340 ac_top_srcdir=$ac_top_builddir$srcdir ;; 11341 esac 11342 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 11343 # absolute. 11344 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 11345 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 11346 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 11347 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 11348 11349 11350 case $INSTALL in 11351 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11352 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 11353 esac 11354 11355 if test x"$ac_file" != x-; then 11356 { echo "$as_me:$LINENO: creating $ac_file" >&5 11357 echo "$as_me: creating $ac_file" >&6;} 11358 rm -f "$ac_file" 11359 fi 11360 # Let's still pretend it is `configure' which instantiates (i.e., don't 11361 # use $as_me), people would be surprised to read: 11362 # /* config.h. Generated by config.status. */ 11363 if test x"$ac_file" = x-; then 11364 configure_input= 11365 else 11366 configure_input="$ac_file. " 11367 fi 11368 configure_input=$configure_input"Generated from `echo $ac_file_in | 11369 sed 's,.*/,,'` by configure." 11370 11371 # First look for the input files in the build tree, otherwise in the 11372 # src tree. 11373 ac_file_inputs=`IFS=: 11374 for f in $ac_file_in; do 11375 case $f in 11376 -) echo $tmp/stdin ;; 11377 [\\/$]*) 11378 # Absolute (can't be DOS-style, as IFS=:) 11379 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 11380 echo "$as_me: error: cannot find input file: $f" >&2;} 11381 { (exit 1); exit 1; }; } 11382 echo $f;; 11383 *) # Relative 11384 if test -f "$f"; then 11385 # Build tree 11386 echo $f 11387 elif test -f "$srcdir/$f"; then 11388 # Source tree 11389 echo $srcdir/$f 11390 else 11391 # /dev/null tree 11392 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 11393 echo "$as_me: error: cannot find input file: $f" >&2;} 11394 { (exit 1); exit 1; }; } 11395 fi;; 11396 esac 11397 done` || { (exit 1); exit 1; } 11398 _ACEOF 11399 cat >>$CONFIG_STATUS <<_ACEOF 11400 sed "$ac_vpsub 11401 $extrasub 11402 _ACEOF 11403 cat >>$CONFIG_STATUS <<\_ACEOF 11404 :t 11405 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11406 s,@configure_input@,$configure_input,;t t 11407 s,@srcdir@,$ac_srcdir,;t t 11408 s,@abs_srcdir@,$ac_abs_srcdir,;t t 11409 s,@top_srcdir@,$ac_top_srcdir,;t t 11410 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 11411 s,@builddir@,$ac_builddir,;t t 11412 s,@abs_builddir@,$ac_abs_builddir,;t t 11413 s,@top_builddir@,$ac_top_builddir,;t t 11414 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 11415 s,@INSTALL@,$ac_INSTALL,;t t 11416 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 11417 rm -f $tmp/stdin 11418 if test x"$ac_file" != x-; then 11419 mv $tmp/out $ac_file 11420 else 11421 cat $tmp/out 11422 rm -f $tmp/out 11423 fi 11424 11425 done 11426 _ACEOF 11427 cat >>$CONFIG_STATUS <<\_ACEOF 11428 11429 # 11430 # CONFIG_HEADER section. 11431 # 5277 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 5278 sed -e "$ac_comsub 5279 s%@configure_input@%$configure_input%g 5280 s%@srcdir@%$srcdir%g 5281 s%@top_srcdir@%$top_srcdir%g 5282 s%@INSTALL@%$INSTALL%g 5283 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 5284 fi; done 5285 rm -f conftest.s* 11432 5286 11433 5287 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where … … 11435 5289 # 11436 5290 # ac_d sets the value in "#define NAME VALUE" lines. 11437 ac_dA='s ,^\([ ]*\)#\([ ]*define[ ][ ]*\)'11438 ac_dB=' [ ].*$,\1#\2'11439 ac_dC=' 11440 ac_dD=' ,;t'11441 # ac_u turns "#undef NAME" with outtrailing blanks into "#define NAME VALUE".11442 ac_uA='s ,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'11443 ac_uB=' $,\1#\2define\3'5291 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 5292 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 5293 ac_dC='\3' 5294 ac_dD='%g' 5295 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 5296 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 5297 ac_uB='\([ ]\)%\1#\2define\3' 11444 5298 ac_uC=' ' 11445 ac_uD=',;t' 11446 11447 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 5299 ac_uD='\4%g' 5300 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 5301 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 5302 ac_eB='$%\1#\2define\3' 5303 ac_eC=' ' 5304 ac_eD='%g' 5305 5306 if test "${CONFIG_HEADERS+set}" != set; then 5307 EOF 5308 cat >> $CONFIG_STATUS <<EOF 5309 CONFIG_HEADERS="mod2.h" 5310 EOF 5311 cat >> $CONFIG_STATUS <<\EOF 5312 fi 5313 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 11448 5314 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 11449 case $ac_file in 11450 - | *:- | *:-:* ) # input from stdin 11451 cat >$tmp/stdin 11452 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 11453 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 11454 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 11455 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 11456 * ) ac_file_in=$ac_file.in ;; 5315 case "$ac_file" in 5316 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 5317 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 5318 *) ac_file_in="${ac_file}.in" ;; 11457 5319 esac 11458 5320 11459 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 11460 echo "$as_me: creating $ac_file" >&6;} 11461 11462 # First look for the input files in the build tree, otherwise in the 11463 # src tree. 11464 ac_file_inputs=`IFS=: 11465 for f in $ac_file_in; do 11466 case $f in 11467 -) echo $tmp/stdin ;; 11468 [\\/$]*) 11469 # Absolute (can't be DOS-style, as IFS=:) 11470 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 11471 echo "$as_me: error: cannot find input file: $f" >&2;} 11472 { (exit 1); exit 1; }; } 11473 echo $f;; 11474 *) # Relative 11475 if test -f "$f"; then 11476 # Build tree 11477 echo $f 11478 elif test -f "$srcdir/$f"; then 11479 # Source tree 11480 echo $srcdir/$f 11481 else 11482 # /dev/null tree 11483 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 11484 echo "$as_me: error: cannot find input file: $f" >&2;} 11485 { (exit 1); exit 1; }; } 11486 fi;; 11487 esac 11488 done` || { (exit 1); exit 1; } 11489 # Remove the trailing spaces. 11490 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 11491 11492 _ACEOF 11493 11494 # Transform confdefs.h into two sed scripts, `conftest.defines' and 11495 # `conftest.undefs', that substitutes the proper values into 11496 # config.h.in to produce config.h. The first handles `#define' 11497 # templates, and the second `#undef' templates. 11498 # And first: Protect against being on the right side of a sed subst in 11499 # config.status. Protect against being in an unquoted here document 11500 # in config.status. 11501 rm -f conftest.defines conftest.undefs 11502 # Using a here document instead of a string reduces the quoting nightmare. 11503 # Putting comments in sed scripts is not portable. 11504 # 11505 # `end' is used to avoid that the second main sed command (meant for 11506 # 0-ary CPP macros) applies to n-ary macro definitions. 11507 # See the Autoconf documentation for `clear'. 11508 cat >confdef2sed.sed <<\_ACEOF 11509 s/[\\&,]/\\&/g 11510 s,[\\$`],\\&,g 11511 t clear 11512 : clear 11513 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 11514 t end 11515 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 11516 : end 11517 _ACEOF 11518 # If some macros were called several times there might be several times 11519 # the same #defines, which is useless. Nevertheless, we may not want to 11520 # sort them, since we want the *last* AC-DEFINE to be honored. 11521 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 11522 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 11523 rm -f confdef2sed.sed 5321 echo creating $ac_file 5322 5323 rm -f conftest.frag conftest.in conftest.out 5324 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 5325 cat $ac_file_inputs > conftest.in 5326 5327 EOF 5328 5329 # Transform confdefs.h into a sed script conftest.vals that substitutes 5330 # the proper values into config.h.in to produce config.h. And first: 5331 # Protect against being on the right side of a sed subst in config.status. 5332 # Protect against being in an unquoted here document in config.status. 5333 rm -f conftest.vals 5334 cat > conftest.hdr <<\EOF 5335 s/[\\&%]/\\&/g 5336 s%[\\$`]%\\&%g 5337 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 5338 s%ac_d%ac_u%gp 5339 s%ac_u%ac_e%gp 5340 EOF 5341 sed -n -f conftest.hdr confdefs.h > conftest.vals 5342 rm -f conftest.hdr 11524 5343 11525 5344 # This sed command replaces #undef with comments. This is necessary, for 11526 5345 # example, in the case of _POSIX_SOURCE, which is predefined and required 11527 5346 # on some systems where configure will not decide to define it. 11528 cat >>conftest.undefs <<\_ACEOF 11529 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 11530 _ACEOF 11531 11532 # Break up conftest.defines because some shells have a limit on the size 11533 # of here documents, and old seds have small limits too (100 cmds). 11534 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 11535 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 11536 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 11537 echo ' :' >>$CONFIG_STATUS 5347 cat >> conftest.vals <<\EOF 5348 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 5349 EOF 5350 5351 # Break up conftest.vals because some shells have a limit on 5352 # the size of here documents, and old seds have small limits too. 5353 11538 5354 rm -f conftest.tail 11539 while grep . conftest.defines >/dev/null5355 while : 11540 5356 do 11541 # Write a limited-size here document to $tmp/defines.sed. 11542 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 11543 # Speed up: don't consider the non `#define' lines. 11544 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 11545 # Work around the forget-to-reset-the-flag bug. 11546 echo 't clr' >>$CONFIG_STATUS 11547 echo ': clr' >>$CONFIG_STATUS 11548 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 5357 ac_lines=`grep -c . conftest.vals` 5358 # grep -c gives empty output for an empty file on some AIX systems. 5359 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 5360 # Write a limited-size here document to conftest.frag. 5361 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 5362 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 11549 5363 echo 'CEOF 11550 sed -f $tmp/defines.sed $tmp/in >$tmp/out11551 rm -f $tmp/in11552 mv $tmp/out $tmp/in11553 ' >> $CONFIG_STATUS11554 sed 1,${ac_max_here_lines}d conftest. defines >conftest.tail11555 rm -f conftest. defines11556 mv conftest.tail conftest. defines5364 sed -f conftest.frag conftest.in > conftest.out 5365 rm -f conftest.in 5366 mv conftest.out conftest.in 5367 ' >> $CONFIG_STATUS 5368 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 5369 rm -f conftest.vals 5370 mv conftest.tail conftest.vals 11557 5371 done 11558 rm -f conftest.defines 11559 echo ' fi # grep' >>$CONFIG_STATUS 11560 echo >>$CONFIG_STATUS 11561 11562 # Break up conftest.undefs because some shells have a limit on the size 11563 # of here documents, and old seds have small limits too (100 cmds). 11564 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 11565 rm -f conftest.tail 11566 while grep . conftest.undefs >/dev/null 11567 do 11568 # Write a limited-size here document to $tmp/undefs.sed. 11569 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 11570 # Speed up: don't consider the non `#undef' 11571 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 11572 # Work around the forget-to-reset-the-flag bug. 11573 echo 't clr' >>$CONFIG_STATUS 11574 echo ': clr' >>$CONFIG_STATUS 11575 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 11576 echo 'CEOF 11577 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 11578 rm -f $tmp/in 11579 mv $tmp/out $tmp/in 11580 ' >>$CONFIG_STATUS 11581 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 11582 rm -f conftest.undefs 11583 mv conftest.tail conftest.undefs 11584 done 11585 rm -f conftest.undefs 11586 11587 cat >>$CONFIG_STATUS <<\_ACEOF 11588 # Let's still pretend it is `configure' which instantiates (i.e., don't 11589 # use $as_me), people would be surprised to read: 11590 # /* config.h. Generated by config.status. */ 11591 if test x"$ac_file" = x-; then 11592 echo "/* Generated by configure. */" >$tmp/config.h 5372 rm -f conftest.vals 5373 5374 cat >> $CONFIG_STATUS <<\EOF 5375 rm -f conftest.frag conftest.h 5376 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 5377 cat conftest.in >> conftest.h 5378 rm -f conftest.in 5379 if cmp -s $ac_file conftest.h 2>/dev/null; then 5380 echo "$ac_file is unchanged" 5381 rm -f conftest.h 11593 5382 else 11594 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 5383 # Remove last slash and all that follows it. Not all systems have dirname. 5384 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 5385 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 5386 # The file is in a subdirectory. 5387 test ! -d "$ac_dir" && mkdir "$ac_dir" 5388 fi 5389 rm -f $ac_file 5390 mv conftest.h $ac_file 11595 5391 fi 11596 cat $tmp/in >>$tmp/config.h 11597 rm -f $tmp/in 11598 if test x"$ac_file" != x-; then 11599 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 11600 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 11601 echo "$as_me: $ac_file is unchanged" >&6;} 11602 else 11603 ac_dir=`(dirname "$ac_file") 2>/dev/null || 11604 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11605 X"$ac_file" : 'X\(//\)[^/]' \| \ 11606 X"$ac_file" : 'X\(//\)$' \| \ 11607 X"$ac_file" : 'X\(/\)' \| \ 11608 . : '\(.\)' 2>/dev/null || 11609 echo X"$ac_file" | 11610 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11611 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11612 /^X\(\/\/\)$/{ s//\1/; q; } 11613 /^X\(\/\).*/{ s//\1/; q; } 11614 s/.*/./; q'` 11615 { if $as_mkdir_p; then 11616 mkdir -p "$ac_dir" 11617 else 11618 as_dir="$ac_dir" 11619 as_dirs= 11620 while test ! -d "$as_dir"; do 11621 as_dirs="$as_dir $as_dirs" 11622 as_dir=`(dirname "$as_dir") 2>/dev/null || 11623 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11624 X"$as_dir" : 'X\(//\)[^/]' \| \ 11625 X"$as_dir" : 'X\(//\)$' \| \ 11626 X"$as_dir" : 'X\(/\)' \| \ 11627 . : '\(.\)' 2>/dev/null || 11628 echo X"$as_dir" | 11629 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11630 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11631 /^X\(\/\/\)$/{ s//\1/; q; } 11632 /^X\(\/\).*/{ s//\1/; q; } 11633 s/.*/./; q'` 11634 done 11635 test ! -n "$as_dirs" || mkdir $as_dirs 11636 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 11637 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 11638 { (exit 1); exit 1; }; }; } 11639 11640 rm -f $ac_file 11641 mv $tmp/config.h $ac_file 11642 fi 11643 else 11644 cat $tmp/config.h 11645 rm -f $tmp/config.h 11646 fi 11647 done 11648 _ACEOF 11649 cat >>$CONFIG_STATUS <<\_ACEOF 11650 11651 # 11652 # CONFIG_COMMANDS section. 11653 # 11654 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 11655 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 11656 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 11657 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 11658 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11659 X"$ac_dest" : 'X\(//\)[^/]' \| \ 11660 X"$ac_dest" : 'X\(//\)$' \| \ 11661 X"$ac_dest" : 'X\(/\)' \| \ 11662 . : '\(.\)' 2>/dev/null || 11663 echo X"$ac_dest" | 11664 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11665 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11666 /^X\(\/\/\)$/{ s//\1/; q; } 11667 /^X\(\/\).*/{ s//\1/; q; } 11668 s/.*/./; q'` 11669 ac_builddir=. 11670 11671 if test "$ac_dir" != .; then 11672 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 11673 # A "../" for each directory in $ac_dir_suffix. 11674 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 11675 else 11676 ac_dir_suffix= ac_top_builddir= 11677 fi 11678 11679 case $srcdir in 11680 .) # No --srcdir option. We are building in place. 11681 ac_srcdir=. 11682 if test -z "$ac_top_builddir"; then 11683 ac_top_srcdir=. 11684 else 11685 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 11686 fi ;; 11687 [\\/]* | ?:[\\/]* ) # Absolute path. 11688 ac_srcdir=$srcdir$ac_dir_suffix; 11689 ac_top_srcdir=$srcdir ;; 11690 *) # Relative path. 11691 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 11692 ac_top_srcdir=$ac_top_builddir$srcdir ;; 11693 esac 11694 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 11695 # absolute. 11696 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 11697 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 11698 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 11699 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 11700 11701 11702 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 11703 echo "$as_me: executing $ac_dest commands" >&6;} 11704 case $ac_dest in 11705 default ) \ 5392 fi; done 5393 5394 EOF 5395 cat >> $CONFIG_STATUS <<EOF 5396 5397 EOF 5398 cat >> $CONFIG_STATUS <<\EOF 5399 \ 11706 5400 cp mod2.h ../kernel/mod2.h; \ 11707 if test "$CONFIG_HEADERS"; then echo timestamp > stamp-h; fi ;; 11708 esac 11709 done 11710 _ACEOF 11711 11712 cat >>$CONFIG_STATUS <<\_ACEOF 11713 11714 { (exit 0); exit 0; } 11715 _ACEOF 5401 if test "$CONFIG_HEADERS"; then echo timestamp > stamp-h; fi 5402 exit 0 5403 EOF 11716 5404 chmod +x $CONFIG_STATUS 11717 ac_clean_files=$ac_clean_files_save 11718 11719 11720 # configure is writing to config.log, and then calls config.status. 11721 # config.status does its own redirection, appending to config.log. 11722 # Unfortunately, on DOS this fails, as config.log is still kept open 11723 # by configure, so config.status won't be able to write to it; its 11724 # output is simply discarded. So we exec the FD to /dev/null, 11725 # effectively closing config.log, so it can be properly (re)opened and 11726 # appended to by config.status. When coming back to configure, we 11727 # need to make the FD available again. 11728 if test "$no_create" != yes; then 11729 ac_cs_success=: 11730 ac_config_status_args= 11731 test "$silent" = yes && 11732 ac_config_status_args="$ac_config_status_args --quiet" 11733 exec 5>/dev/null 11734 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 11735 exec 5>>config.log 11736 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 11737 # would make configure fail if this is the last instruction. 11738 $ac_cs_success || { (exit 1); exit 1; } 11739 fi 11740 5405 rm -fr confdefs* $ac_clean_files 5406 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 5407 -
Singular/configure.in
rd6d3b9 r145917 335 335 *Linux*) 336 336 AC_CHECK_LIB(dl, dlopen) 337 if test "$ac_cv_lib_ dl_dlopen" = yes; then337 if test "$ac_cv_lib_c_dlopen" = yes; then 338 338 LD_DYN_FLAGS="-ldl -rdynamic" 339 339 SFLAGS="-fpic -DPIC" … … 364 364 if test "$ac_cv_lib_dl_dlopen" = yes; then 365 365 LD_DYN_FLAGS="-ldl -dynamic" 366 SFLAGS="-fpic -DPIC" 367 SLDFLAGS=-shared 368 LD=ld 369 ac_lib_dl=yes 370 fi 371 ;; 372 ix86-freebsd) 373 AC_CHECK_LIB(c, dlopen) 374 if test "$ac_cv_lib_c_dlopen" = yes; then 375 LD_DYN_FLAGS="-dynamic" 366 376 SFLAGS="-fpic -DPIC" 367 377 SLDFLAGS=-shared
Note: See TracChangeset
for help on using the changeset viewer.