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