1 1.1 christos #! /bin/sh 2 1.1 christos # Guess values for system-dependent variables and create Makefiles. 3 1.1 christos # Generated by GNU Autoconf 2.53. 4 1.1 christos # 5 1.1 christos # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 6 1.1 christos # Free Software Foundation, Inc. 7 1.1 christos # This configure script is free software; the Free Software Foundation 8 1.1 christos # gives unlimited permission to copy, distribute and modify it. 9 1.1 christos 10 1.1 christos if expr a : '\(a\)' >/dev/null 2>&1; then 11 1.1 christos as_expr=expr 12 1.1 christos else 13 1.1 christos as_expr=false 14 1.1 christos fi 15 1.1 christos 16 1.1 christos 17 1.1 christos ## --------------------- ## 18 1.1 christos ## M4sh Initialization. ## 19 1.1 christos ## --------------------- ## 20 1.1 christos 21 1.1 christos # Be Bourne compatible 22 1.1 christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 23 1.1 christos emulate sh 24 1.1 christos NULLCMD=: 25 1.1 christos elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 26 1.1 christos set -o posix 27 1.1 christos fi 28 1.1 christos 29 1.1 christos # NLS nuisances. 30 1.1 christos # Support unset when possible. 31 1.1 christos if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 32 1.1 christos as_unset=unset 33 1.1 christos else 34 1.1 christos as_unset=false 35 1.1 christos fi 36 1.1 christos 37 1.1 christos (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && 38 1.1 christos { $as_unset LANG || test "${LANG+set}" != set; } || 39 1.1 christos { LANG=C; export LANG; } 40 1.1 christos (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && 41 1.1 christos { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || 42 1.1 christos { LC_ALL=C; export LC_ALL; } 43 1.1 christos (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && 44 1.1 christos { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || 45 1.1 christos { LC_TIME=C; export LC_TIME; } 46 1.1 christos (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && 47 1.1 christos { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || 48 1.1 christos { LC_CTYPE=C; export LC_CTYPE; } 49 1.1 christos (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && 50 1.1 christos { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || 51 1.1 christos { LANGUAGE=C; export LANGUAGE; } 52 1.1 christos (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && 53 1.1 christos { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || 54 1.1 christos { LC_COLLATE=C; export LC_COLLATE; } 55 1.1 christos (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && 56 1.1 christos { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || 57 1.1 christos { LC_NUMERIC=C; export LC_NUMERIC; } 58 1.1 christos (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && 59 1.1 christos { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || 60 1.1 christos { LC_MESSAGES=C; export LC_MESSAGES; } 61 1.1 christos 62 1.1 christos 63 1.1 christos # Name of the executable. 64 1.1 christos as_me=`(basename "$0") 2>/dev/null || 65 1.1 christos $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 66 1.1 christos X"$0" : 'X\(//\)$' \| \ 67 1.1 christos X"$0" : 'X\(/\)$' \| \ 68 1.1 christos . : '\(.\)' 2>/dev/null || 69 1.1 christos echo X/"$0" | 70 1.1 christos sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 71 1.1 christos /^X\/\(\/\/\)$/{ s//\1/; q; } 72 1.1 christos /^X\/\(\/\).*/{ s//\1/; q; } 73 1.1 christos s/.*/./; q'` 74 1.1 christos 75 1.1 christos # PATH needs CR, and LINENO needs CR and PATH. 76 1.1 christos # Avoid depending upon Character Ranges. 77 1.1 christos as_cr_letters='abcdefghijklmnopqrstuvwxyz' 78 1.1 christos as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 79 1.1 christos as_cr_Letters=$as_cr_letters$as_cr_LETTERS 80 1.1 christos as_cr_digits='0123456789' 81 1.1 christos as_cr_alnum=$as_cr_Letters$as_cr_digits 82 1.1 christos 83 1.1 christos # The user is always right. 84 1.1 christos if test "${PATH_SEPARATOR+set}" != set; then 85 1.1 christos echo "#! /bin/sh" >conftest.sh 86 1.1 christos echo "exit 0" >>conftest.sh 87 1.1 christos chmod +x conftest.sh 88 1.1 christos if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then 89 1.1 christos PATH_SEPARATOR=';' 90 1.1 christos else 91 1.1 christos PATH_SEPARATOR=: 92 1.1 christos fi 93 1.1 christos rm -f conftest.sh 94 1.1 christos fi 95 1.1 christos 96 1.1 christos 97 1.1 christos as_lineno_1=$LINENO 98 1.1 christos as_lineno_2=$LINENO 99 1.1 christos as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 100 1.1 christos test "x$as_lineno_1" != "x$as_lineno_2" && 101 1.1 christos test "x$as_lineno_3" = "x$as_lineno_2" || { 102 1.1 christos # Find who we are. Look in the path if we contain no path at all 103 1.1 christos # relative or not. 104 1.1 christos case $0 in 105 1.1 christos *[\\/]* ) as_myself=$0 ;; 106 1.1 christos *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 107 1.1 christos for as_dir in $PATH 108 1.1 christos do 109 1.1 christos IFS=$as_save_IFS 110 1.1 christos test -z "$as_dir" && as_dir=. 111 1.1 christos test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 112 1.1 christos done 113 1.1 christos 114 1.1 christos ;; 115 1.1 christos esac 116 1.1 christos # We did not find ourselves, most probably we were run as `sh COMMAND' 117 1.1 christos # in which case we are not to be found in the path. 118 1.1 christos if test "x$as_myself" = x; then 119 1.1 christos as_myself=$0 120 1.1 christos fi 121 1.1 christos if test ! -f "$as_myself"; then 122 1.1 christos { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 123 1.1 christos { (exit 1); exit 1; }; } 124 1.1 christos fi 125 1.1 christos case $CONFIG_SHELL in 126 1.1 christos '') 127 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 128 1.1 christos for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 129 1.1 christos do 130 1.1 christos IFS=$as_save_IFS 131 1.1 christos test -z "$as_dir" && as_dir=. 132 1.1 christos for as_base in sh bash ksh sh5; do 133 1.1 christos case $as_dir in 134 1.1 christos /*) 135 1.1 christos if ("$as_dir/$as_base" -c ' 136 1.1 christos as_lineno_1=$LINENO 137 1.1 christos as_lineno_2=$LINENO 138 1.1 christos as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 139 1.1 christos test "x$as_lineno_1" != "x$as_lineno_2" && 140 1.1 christos test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 141 1.1 christos CONFIG_SHELL=$as_dir/$as_base 142 1.1 christos export CONFIG_SHELL 143 1.1 christos exec "$CONFIG_SHELL" "$0" ${1+"$@"} 144 1.1 christos fi;; 145 1.1 christos esac 146 1.1 christos done 147 1.1 christos done 148 1.1 christos ;; 149 1.1 christos esac 150 1.1 christos 151 1.1 christos # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 152 1.1 christos # uniformly replaced by the line number. The first 'sed' inserts a 153 1.1 christos # line-number line before each line; the second 'sed' does the real 154 1.1 christos # work. The second script uses 'N' to pair each line-number line 155 1.1 christos # with the numbered line, and appends trailing '-' during 156 1.1 christos # substitution so that $LINENO is not a special case at line end. 157 1.1 christos # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 158 1.1 christos # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 159 1.1 christos sed '=' <$as_myself | 160 1.1 christos sed ' 161 1.1 christos N 162 1.1 christos s,$,-, 163 1.1 christos : loop 164 1.1 christos s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 165 1.1 christos t loop 166 1.1 christos s,-$,, 167 1.1 christos s,^['$as_cr_digits']*\n,, 168 1.1 christos ' >$as_me.lineno && 169 1.1 christos chmod +x $as_me.lineno || 170 1.1 christos { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 171 1.1 christos { (exit 1); exit 1; }; } 172 1.1 christos 173 1.1 christos # Don't try to exec as it changes $[0], causing all sort of problems 174 1.1 christos # (the dirname of $[0] is not the place where we might find the 175 1.1 christos # original and so on. Autoconf is especially sensible to this). 176 1.1 christos . ./$as_me.lineno 177 1.1 christos # Exit status is that of the last command. 178 1.1 christos exit 179 1.1 christos } 180 1.1 christos 181 1.1 christos 182 1.1 christos case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 183 1.1 christos *c*,-n*) ECHO_N= ECHO_C=' 184 1.1 christos ' ECHO_T=' ' ;; 185 1.1 christos *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 186 1.1 christos *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 187 1.1 christos esac 188 1.1 christos 189 1.1 christos if expr a : '\(a\)' >/dev/null 2>&1; then 190 1.1 christos as_expr=expr 191 1.1 christos else 192 1.1 christos as_expr=false 193 1.1 christos fi 194 1.1 christos 195 1.1 christos rm -f conf$$ conf$$.exe conf$$.file 196 1.1 christos echo >conf$$.file 197 1.1 christos if ln -s conf$$.file conf$$ 2>/dev/null; then 198 1.1 christos # We could just check for DJGPP; but this test a) works b) is more generic 199 1.1 christos # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 200 1.1 christos if test -f conf$$.exe; then 201 1.1 christos # Don't use ln at all; we don't have any links 202 1.1 christos as_ln_s='cp -p' 203 1.1 christos else 204 1.1 christos as_ln_s='ln -s' 205 1.1 christos fi 206 1.1 christos elif ln conf$$.file conf$$ 2>/dev/null; then 207 1.1 christos as_ln_s=ln 208 1.1 christos else 209 1.1 christos as_ln_s='cp -p' 210 1.1 christos fi 211 1.1 christos rm -f conf$$ conf$$.exe conf$$.file 212 1.1 christos 213 1.1 christos as_executable_p="test -f" 214 1.1 christos 215 1.1 christos # Sed expression to map a string onto a valid CPP name. 216 1.1 christos as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 217 1.1 christos 218 1.1 christos # Sed expression to map a string onto a valid variable name. 219 1.1 christos as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 220 1.1 christos 221 1.1 christos 222 1.1 christos # IFS 223 1.1 christos # We need space, tab and new line, in precisely that order. 224 1.1 christos as_nl=' 225 1.1 christos ' 226 1.1 christos IFS=" $as_nl" 227 1.1 christos 228 1.1 christos # CDPATH. 229 1.1 christos $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } 230 1.1 christos 231 1.1 christos 232 1.1 christos # Name of the host. 233 1.1 christos # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 234 1.1 christos # so uname gets run too. 235 1.1 christos ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 236 1.1 christos 237 1.1 christos exec 6>&1 238 1.1 christos 239 1.1 christos # 240 1.1 christos # Initializations. 241 1.1 christos # 242 1.1 christos ac_default_prefix=/usr/local 243 1.1 christos cross_compiling=no 244 1.1 christos subdirs= 245 1.1 christos MFLAGS= 246 1.1 christos MAKEFLAGS= 247 1.1 christos SHELL=${CONFIG_SHELL-/bin/sh} 248 1.1 christos 249 1.1 christos # Maximum number of lines to put in a shell here document. 250 1.1 christos # This variable seems obsolete. It should probably be removed, and 251 1.1 christos # only ac_max_sed_lines should be used. 252 1.1 christos : ${ac_max_here_lines=38} 253 1.1 christos 254 1.1 christos # Identity of this package. 255 1.1 christos PACKAGE_NAME= 256 1.1 christos PACKAGE_TARNAME= 257 1.1 christos PACKAGE_VERSION= 258 1.1 christos PACKAGE_STRING= 259 1.1 christos PACKAGE_BUGREPORT= 260 1.1 christos 261 1.1 christos ac_unique_file="src/grep.c" 262 1.1 christos # Factoring default headers for most tests. 263 1.1 christos ac_includes_default="\ 264 1.1 christos #include <stdio.h> 265 1.1 christos #if HAVE_SYS_TYPES_H 266 1.1 christos # include <sys/types.h> 267 1.1 christos #endif 268 1.1 christos #if HAVE_SYS_STAT_H 269 1.1 christos # include <sys/stat.h> 270 1.1 christos #endif 271 1.1 christos #if STDC_HEADERS 272 1.1 christos # include <stdlib.h> 273 1.1 christos # include <stddef.h> 274 1.1 christos #else 275 1.1 christos # if HAVE_STDLIB_H 276 1.1 christos # include <stdlib.h> 277 1.1 christos # endif 278 1.1 christos #endif 279 1.1 christos #if HAVE_STRING_H 280 1.1 christos # if !STDC_HEADERS && HAVE_MEMORY_H 281 1.1 christos # include <memory.h> 282 1.1 christos # endif 283 1.1 christos # include <string.h> 284 1.1 christos #endif 285 1.1 christos #if HAVE_STRINGS_H 286 1.1 christos # include <strings.h> 287 1.1 christos #endif 288 1.1 christos #if HAVE_INTTYPES_H 289 1.1 christos # include <inttypes.h> 290 1.1 christos #else 291 1.1 christos # if HAVE_STDINT_H 292 1.1 christos # include <stdint.h> 293 1.1 christos # endif 294 1.1 christos #endif 295 1.1 christos #if HAVE_UNISTD_H 296 1.1 christos # include <unistd.h> 297 1.1 christos #endif" 298 1.1 christos 299 1.1 christos 300 1.1 christos # Initialize some variables set by options. 301 1.1 christos ac_init_help= 302 1.1 christos ac_init_version=false 303 1.1 christos # The variables have the same names as the options, with 304 1.1 christos # dashes changed to underlines. 305 1.1 christos cache_file=/dev/null 306 1.1 christos exec_prefix=NONE 307 1.1 christos no_create= 308 1.1 christos no_recursion= 309 1.1 christos prefix=NONE 310 1.1 christos program_prefix=NONE 311 1.1 christos program_suffix=NONE 312 1.1 christos program_transform_name=s,x,x, 313 1.1 christos silent= 314 1.1 christos site= 315 1.1 christos srcdir= 316 1.1 christos verbose= 317 1.1 christos x_includes=NONE 318 1.1 christos x_libraries=NONE 319 1.1 christos 320 1.1 christos # Installation directory options. 321 1.1 christos # These are left unexpanded so users can "make install exec_prefix=/foo" 322 1.1 christos # and all the variables that are supposed to be based on exec_prefix 323 1.1 christos # by default will actually change. 324 1.1 christos # Use braces instead of parens because sh, perl, etc. also accept them. 325 1.1 christos bindir='${exec_prefix}/bin' 326 1.1 christos sbindir='${exec_prefix}/sbin' 327 1.1 christos libexecdir='${exec_prefix}/libexec' 328 1.1 christos datadir='${prefix}/share' 329 1.1 christos sysconfdir='${prefix}/etc' 330 1.1 christos sharedstatedir='${prefix}/com' 331 1.1 christos localstatedir='${prefix}/var' 332 1.1 christos libdir='${exec_prefix}/lib' 333 1.1 christos includedir='${prefix}/include' 334 1.1 christos oldincludedir='/usr/include' 335 1.1 christos infodir='${prefix}/info' 336 1.1 christos mandir='${prefix}/man' 337 1.1 christos 338 1.1 christos ac_prev= 339 1.1 christos for ac_option 340 1.1 christos do 341 1.1 christos # If the previous option needs an argument, assign it. 342 1.1 christos if test -n "$ac_prev"; then 343 1.1 christos eval "$ac_prev=\$ac_option" 344 1.1 christos ac_prev= 345 1.1 christos continue 346 1.1 christos fi 347 1.1 christos 348 1.1 christos ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 349 1.1 christos 350 1.1 christos # Accept the important Cygnus configure options, so we can diagnose typos. 351 1.1 christos 352 1.1 christos case $ac_option in 353 1.1 christos 354 1.1 christos -bindir | --bindir | --bindi | --bind | --bin | --bi) 355 1.1 christos ac_prev=bindir ;; 356 1.1 christos -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 357 1.1 christos bindir=$ac_optarg ;; 358 1.1 christos 359 1.1 christos -build | --build | --buil | --bui | --bu) 360 1.1 christos ac_prev=build_alias ;; 361 1.1 christos -build=* | --build=* | --buil=* | --bui=* | --bu=*) 362 1.1 christos build_alias=$ac_optarg ;; 363 1.1 christos 364 1.1 christos -cache-file | --cache-file | --cache-fil | --cache-fi \ 365 1.1 christos | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 366 1.1 christos ac_prev=cache_file ;; 367 1.1 christos -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 368 1.1 christos | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 369 1.1 christos cache_file=$ac_optarg ;; 370 1.1 christos 371 1.1 christos --config-cache | -C) 372 1.1 christos cache_file=config.cache ;; 373 1.1 christos 374 1.1 christos -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 375 1.1 christos ac_prev=datadir ;; 376 1.1 christos -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 377 1.1 christos | --da=*) 378 1.1 christos datadir=$ac_optarg ;; 379 1.1 christos 380 1.1 christos -disable-* | --disable-*) 381 1.1 christos ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 382 1.1 christos # Reject names that are not valid shell variable names. 383 1.1 christos expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 384 1.1 christos { echo "$as_me: error: invalid feature name: $ac_feature" >&2 385 1.1 christos { (exit 1); exit 1; }; } 386 1.1 christos ac_feature=`echo $ac_feature | sed 's/-/_/g'` 387 1.1 christos eval "enable_$ac_feature=no" ;; 388 1.1 christos 389 1.1 christos -enable-* | --enable-*) 390 1.1 christos ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 391 1.1 christos # Reject names that are not valid shell variable names. 392 1.1 christos expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 393 1.1 christos { echo "$as_me: error: invalid feature name: $ac_feature" >&2 394 1.1 christos { (exit 1); exit 1; }; } 395 1.1 christos ac_feature=`echo $ac_feature | sed 's/-/_/g'` 396 1.1 christos case $ac_option in 397 1.1 christos *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 398 1.1 christos *) ac_optarg=yes ;; 399 1.1 christos esac 400 1.1 christos eval "enable_$ac_feature='$ac_optarg'" ;; 401 1.1 christos 402 1.1 christos -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 403 1.1 christos | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 404 1.1 christos | --exec | --exe | --ex) 405 1.1 christos ac_prev=exec_prefix ;; 406 1.1 christos -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 407 1.1 christos | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 408 1.1 christos | --exec=* | --exe=* | --ex=*) 409 1.1 christos exec_prefix=$ac_optarg ;; 410 1.1 christos 411 1.1 christos -gas | --gas | --ga | --g) 412 1.1 christos # Obsolete; use --with-gas. 413 1.1 christos with_gas=yes ;; 414 1.1 christos 415 1.1 christos -help | --help | --hel | --he | -h) 416 1.1 christos ac_init_help=long ;; 417 1.1 christos -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 418 1.1 christos ac_init_help=recursive ;; 419 1.1 christos -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 420 1.1 christos ac_init_help=short ;; 421 1.1 christos 422 1.1 christos -host | --host | --hos | --ho) 423 1.1 christos ac_prev=host_alias ;; 424 1.1 christos -host=* | --host=* | --hos=* | --ho=*) 425 1.1 christos host_alias=$ac_optarg ;; 426 1.1 christos 427 1.1 christos -includedir | --includedir | --includedi | --included | --include \ 428 1.1 christos | --includ | --inclu | --incl | --inc) 429 1.1 christos ac_prev=includedir ;; 430 1.1 christos -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 431 1.1 christos | --includ=* | --inclu=* | --incl=* | --inc=*) 432 1.1 christos includedir=$ac_optarg ;; 433 1.1 christos 434 1.1 christos -infodir | --infodir | --infodi | --infod | --info | --inf) 435 1.1 christos ac_prev=infodir ;; 436 1.1 christos -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 437 1.1 christos infodir=$ac_optarg ;; 438 1.1 christos 439 1.1 christos -libdir | --libdir | --libdi | --libd) 440 1.1 christos ac_prev=libdir ;; 441 1.1 christos -libdir=* | --libdir=* | --libdi=* | --libd=*) 442 1.1 christos libdir=$ac_optarg ;; 443 1.1 christos 444 1.1 christos -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 445 1.1 christos | --libexe | --libex | --libe) 446 1.1 christos ac_prev=libexecdir ;; 447 1.1 christos -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 448 1.1 christos | --libexe=* | --libex=* | --libe=*) 449 1.1 christos libexecdir=$ac_optarg ;; 450 1.1 christos 451 1.1 christos -localstatedir | --localstatedir | --localstatedi | --localstated \ 452 1.1 christos | --localstate | --localstat | --localsta | --localst \ 453 1.1 christos | --locals | --local | --loca | --loc | --lo) 454 1.1 christos ac_prev=localstatedir ;; 455 1.1 christos -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 456 1.1 christos | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 457 1.1 christos | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 458 1.1 christos localstatedir=$ac_optarg ;; 459 1.1 christos 460 1.1 christos -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 461 1.1 christos ac_prev=mandir ;; 462 1.1 christos -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 463 1.1 christos mandir=$ac_optarg ;; 464 1.1 christos 465 1.1 christos -nfp | --nfp | --nf) 466 1.1 christos # Obsolete; use --without-fp. 467 1.1 christos with_fp=no ;; 468 1.1 christos 469 1.1 christos -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 470 1.1 christos | --no-cr | --no-c | -n) 471 1.1 christos no_create=yes ;; 472 1.1 christos 473 1.1 christos -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 474 1.1 christos | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 475 1.1 christos no_recursion=yes ;; 476 1.1 christos 477 1.1 christos -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 478 1.1 christos | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 479 1.1 christos | --oldin | --oldi | --old | --ol | --o) 480 1.1 christos ac_prev=oldincludedir ;; 481 1.1 christos -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 482 1.1 christos | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 483 1.1 christos | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 484 1.1 christos oldincludedir=$ac_optarg ;; 485 1.1 christos 486 1.1 christos -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 487 1.1 christos ac_prev=prefix ;; 488 1.1 christos -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 489 1.1 christos prefix=$ac_optarg ;; 490 1.1 christos 491 1.1 christos -program-prefix | --program-prefix | --program-prefi | --program-pref \ 492 1.1 christos | --program-pre | --program-pr | --program-p) 493 1.1 christos ac_prev=program_prefix ;; 494 1.1 christos -program-prefix=* | --program-prefix=* | --program-prefi=* \ 495 1.1 christos | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 496 1.1 christos program_prefix=$ac_optarg ;; 497 1.1 christos 498 1.1 christos -program-suffix | --program-suffix | --program-suffi | --program-suff \ 499 1.1 christos | --program-suf | --program-su | --program-s) 500 1.1 christos ac_prev=program_suffix ;; 501 1.1 christos -program-suffix=* | --program-suffix=* | --program-suffi=* \ 502 1.1 christos | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 503 1.1 christos program_suffix=$ac_optarg ;; 504 1.1 christos 505 1.1 christos -program-transform-name | --program-transform-name \ 506 1.1 christos | --program-transform-nam | --program-transform-na \ 507 1.1 christos | --program-transform-n | --program-transform- \ 508 1.1 christos | --program-transform | --program-transfor \ 509 1.1 christos | --program-transfo | --program-transf \ 510 1.1 christos | --program-trans | --program-tran \ 511 1.1 christos | --progr-tra | --program-tr | --program-t) 512 1.1 christos ac_prev=program_transform_name ;; 513 1.1 christos -program-transform-name=* | --program-transform-name=* \ 514 1.1 christos | --program-transform-nam=* | --program-transform-na=* \ 515 1.1 christos | --program-transform-n=* | --program-transform-=* \ 516 1.1 christos | --program-transform=* | --program-transfor=* \ 517 1.1 christos | --program-transfo=* | --program-transf=* \ 518 1.1 christos | --program-trans=* | --program-tran=* \ 519 1.1 christos | --progr-tra=* | --program-tr=* | --program-t=*) 520 1.1 christos program_transform_name=$ac_optarg ;; 521 1.1 christos 522 1.1 christos -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 523 1.1 christos | -silent | --silent | --silen | --sile | --sil) 524 1.1 christos silent=yes ;; 525 1.1 christos 526 1.1 christos -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 527 1.1 christos ac_prev=sbindir ;; 528 1.1 christos -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 529 1.1 christos | --sbi=* | --sb=*) 530 1.1 christos sbindir=$ac_optarg ;; 531 1.1 christos 532 1.1 christos -sharedstatedir | --sharedstatedir | --sharedstatedi \ 533 1.1 christos | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 534 1.1 christos | --sharedst | --shareds | --shared | --share | --shar \ 535 1.1 christos | --sha | --sh) 536 1.1 christos ac_prev=sharedstatedir ;; 537 1.1 christos -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 538 1.1 christos | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 539 1.1 christos | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 540 1.1 christos | --sha=* | --sh=*) 541 1.1 christos sharedstatedir=$ac_optarg ;; 542 1.1 christos 543 1.1 christos -site | --site | --sit) 544 1.1 christos ac_prev=site ;; 545 1.1 christos -site=* | --site=* | --sit=*) 546 1.1 christos site=$ac_optarg ;; 547 1.1 christos 548 1.1 christos -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 549 1.1 christos ac_prev=srcdir ;; 550 1.1 christos -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 551 1.1 christos srcdir=$ac_optarg ;; 552 1.1 christos 553 1.1 christos -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 554 1.1 christos | --syscon | --sysco | --sysc | --sys | --sy) 555 1.1 christos ac_prev=sysconfdir ;; 556 1.1 christos -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 557 1.1 christos | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 558 1.1 christos sysconfdir=$ac_optarg ;; 559 1.1 christos 560 1.1 christos -target | --target | --targe | --targ | --tar | --ta | --t) 561 1.1 christos ac_prev=target_alias ;; 562 1.1 christos -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 563 1.1 christos target_alias=$ac_optarg ;; 564 1.1 christos 565 1.1 christos -v | -verbose | --verbose | --verbos | --verbo | --verb) 566 1.1 christos verbose=yes ;; 567 1.1 christos 568 1.1 christos -version | --version | --versio | --versi | --vers | -V) 569 1.1 christos ac_init_version=: ;; 570 1.1 christos 571 1.1 christos -with-* | --with-*) 572 1.1 christos ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 573 1.1 christos # Reject names that are not valid shell variable names. 574 1.1 christos expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 575 1.1 christos { echo "$as_me: error: invalid package name: $ac_package" >&2 576 1.1 christos { (exit 1); exit 1; }; } 577 1.1 christos ac_package=`echo $ac_package| sed 's/-/_/g'` 578 1.1 christos case $ac_option in 579 1.1 christos *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 580 1.1 christos *) ac_optarg=yes ;; 581 1.1 christos esac 582 1.1 christos eval "with_$ac_package='$ac_optarg'" ;; 583 1.1 christos 584 1.1 christos -without-* | --without-*) 585 1.1 christos ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 586 1.1 christos # Reject names that are not valid shell variable names. 587 1.1 christos expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 588 1.1 christos { echo "$as_me: error: invalid package name: $ac_package" >&2 589 1.1 christos { (exit 1); exit 1; }; } 590 1.1 christos ac_package=`echo $ac_package | sed 's/-/_/g'` 591 1.1 christos eval "with_$ac_package=no" ;; 592 1.1 christos 593 1.1 christos --x) 594 1.1 christos # Obsolete; use --with-x. 595 1.1 christos with_x=yes ;; 596 1.1 christos 597 1.1 christos -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 598 1.1 christos | --x-incl | --x-inc | --x-in | --x-i) 599 1.1 christos ac_prev=x_includes ;; 600 1.1 christos -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 601 1.1 christos | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 602 1.1 christos x_includes=$ac_optarg ;; 603 1.1 christos 604 1.1 christos -x-libraries | --x-libraries | --x-librarie | --x-librari \ 605 1.1 christos | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 606 1.1 christos ac_prev=x_libraries ;; 607 1.1 christos -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 608 1.1 christos | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 609 1.1 christos x_libraries=$ac_optarg ;; 610 1.1 christos 611 1.1 christos -*) { echo "$as_me: error: unrecognized option: $ac_option 612 1.1 christos Try \`$0 --help' for more information." >&2 613 1.1 christos { (exit 1); exit 1; }; } 614 1.1 christos ;; 615 1.1 christos 616 1.1 christos *=*) 617 1.1 christos ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 618 1.1 christos # Reject names that are not valid shell variable names. 619 1.1 christos expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 620 1.1 christos { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 621 1.1 christos { (exit 1); exit 1; }; } 622 1.1 christos ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 623 1.1 christos eval "$ac_envvar='$ac_optarg'" 624 1.1 christos export $ac_envvar ;; 625 1.1 christos 626 1.1 christos *) 627 1.1 christos # FIXME: should be removed in autoconf 3.0. 628 1.1 christos echo "$as_me: WARNING: you should use --build, --host, --target" >&2 629 1.1 christos expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 630 1.1 christos echo "$as_me: WARNING: invalid host type: $ac_option" >&2 631 1.1 christos : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 632 1.1 christos ;; 633 1.1 christos 634 1.1 christos esac 635 1.1 christos done 636 1.1 christos 637 1.1 christos if test -n "$ac_prev"; then 638 1.1 christos ac_option=--`echo $ac_prev | sed 's/_/-/g'` 639 1.1 christos { echo "$as_me: error: missing argument to $ac_option" >&2 640 1.1 christos { (exit 1); exit 1; }; } 641 1.1 christos fi 642 1.1 christos 643 1.1 christos # Be sure to have absolute paths. 644 1.1 christos for ac_var in exec_prefix prefix 645 1.1 christos do 646 1.1 christos eval ac_val=$`echo $ac_var` 647 1.1 christos case $ac_val in 648 1.1 christos [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 649 1.1 christos *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 650 1.1 christos { (exit 1); exit 1; }; };; 651 1.1 christos esac 652 1.1 christos done 653 1.1 christos 654 1.1 christos # Be sure to have absolute paths. 655 1.1 christos for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 656 1.1 christos localstatedir libdir includedir oldincludedir infodir mandir 657 1.1 christos do 658 1.1 christos eval ac_val=$`echo $ac_var` 659 1.1 christos case $ac_val in 660 1.1 christos [\\/$]* | ?:[\\/]* ) ;; 661 1.1 christos *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 662 1.1 christos { (exit 1); exit 1; }; };; 663 1.1 christos esac 664 1.1 christos done 665 1.1 christos 666 1.1 christos # There might be people who depend on the old broken behavior: `$host' 667 1.1 christos # used to hold the argument of --host etc. 668 1.1 christos # FIXME: To remove some day. 669 1.1 christos build=$build_alias 670 1.1 christos host=$host_alias 671 1.1 christos target=$target_alias 672 1.1 christos 673 1.1 christos # FIXME: To remove some day. 674 1.1 christos if test "x$host_alias" != x; then 675 1.1 christos if test "x$build_alias" = x; then 676 1.1 christos cross_compiling=maybe 677 1.1 christos echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 678 1.1 christos If a cross compiler is detected then cross compile mode will be used." >&2 679 1.1 christos elif test "x$build_alias" != "x$host_alias"; then 680 1.1 christos cross_compiling=yes 681 1.1 christos fi 682 1.1 christos fi 683 1.1 christos 684 1.1 christos ac_tool_prefix= 685 1.1 christos test -n "$host_alias" && ac_tool_prefix=$host_alias- 686 1.1 christos 687 1.1 christos test "$silent" = yes && exec 6>/dev/null 688 1.1 christos 689 1.1 christos 690 1.1 christos # Find the source files, if location was not specified. 691 1.1 christos if test -z "$srcdir"; then 692 1.1 christos ac_srcdir_defaulted=yes 693 1.1 christos # Try the directory containing this script, then its parent. 694 1.1 christos ac_confdir=`(dirname "$0") 2>/dev/null || 695 1.1 christos $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 696 1.1 christos X"$0" : 'X\(//\)[^/]' \| \ 697 1.1 christos X"$0" : 'X\(//\)$' \| \ 698 1.1 christos X"$0" : 'X\(/\)' \| \ 699 1.1 christos . : '\(.\)' 2>/dev/null || 700 1.1 christos echo X"$0" | 701 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 702 1.1 christos /^X\(\/\/\)[^/].*/{ s//\1/; q; } 703 1.1 christos /^X\(\/\/\)$/{ s//\1/; q; } 704 1.1 christos /^X\(\/\).*/{ s//\1/; q; } 705 1.1 christos s/.*/./; q'` 706 1.1 christos srcdir=$ac_confdir 707 1.1 christos if test ! -r $srcdir/$ac_unique_file; then 708 1.1 christos srcdir=.. 709 1.1 christos fi 710 1.1 christos else 711 1.1 christos ac_srcdir_defaulted=no 712 1.1 christos fi 713 1.1 christos if test ! -r $srcdir/$ac_unique_file; then 714 1.1 christos if test "$ac_srcdir_defaulted" = yes; then 715 1.1 christos { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 716 1.1 christos { (exit 1); exit 1; }; } 717 1.1 christos else 718 1.1 christos { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 719 1.1 christos { (exit 1); exit 1; }; } 720 1.1 christos fi 721 1.1 christos fi 722 1.1 christos srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 723 1.1 christos ac_env_build_alias_set=${build_alias+set} 724 1.1 christos ac_env_build_alias_value=$build_alias 725 1.1 christos ac_cv_env_build_alias_set=${build_alias+set} 726 1.1 christos ac_cv_env_build_alias_value=$build_alias 727 1.1 christos ac_env_host_alias_set=${host_alias+set} 728 1.1 christos ac_env_host_alias_value=$host_alias 729 1.1 christos ac_cv_env_host_alias_set=${host_alias+set} 730 1.1 christos ac_cv_env_host_alias_value=$host_alias 731 1.1 christos ac_env_target_alias_set=${target_alias+set} 732 1.1 christos ac_env_target_alias_value=$target_alias 733 1.1 christos ac_cv_env_target_alias_set=${target_alias+set} 734 1.1 christos ac_cv_env_target_alias_value=$target_alias 735 1.1 christos ac_env_CC_set=${CC+set} 736 1.1 christos ac_env_CC_value=$CC 737 1.1 christos ac_cv_env_CC_set=${CC+set} 738 1.1 christos ac_cv_env_CC_value=$CC 739 1.1 christos ac_env_CFLAGS_set=${CFLAGS+set} 740 1.1 christos ac_env_CFLAGS_value=$CFLAGS 741 1.1 christos ac_cv_env_CFLAGS_set=${CFLAGS+set} 742 1.1 christos ac_cv_env_CFLAGS_value=$CFLAGS 743 1.1 christos ac_env_LDFLAGS_set=${LDFLAGS+set} 744 1.1 christos ac_env_LDFLAGS_value=$LDFLAGS 745 1.1 christos ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 746 1.1 christos ac_cv_env_LDFLAGS_value=$LDFLAGS 747 1.1 christos ac_env_CPPFLAGS_set=${CPPFLAGS+set} 748 1.1 christos ac_env_CPPFLAGS_value=$CPPFLAGS 749 1.1 christos ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 750 1.1 christos ac_cv_env_CPPFLAGS_value=$CPPFLAGS 751 1.1 christos ac_env_CPP_set=${CPP+set} 752 1.1 christos ac_env_CPP_value=$CPP 753 1.1 christos ac_cv_env_CPP_set=${CPP+set} 754 1.1 christos ac_cv_env_CPP_value=$CPP 755 1.1 christos 756 1.1 christos # 757 1.1 christos # Report the --help message. 758 1.1 christos # 759 1.1 christos if test "$ac_init_help" = "long"; then 760 1.1 christos # Omit some internal or obsolete options to make the list less imposing. 761 1.1 christos # This message is too long to be a string in the A/UX 3.1 sh. 762 1.1 christos cat <<_ACEOF 763 1.1 christos \`configure' configures this package to adapt to many kinds of systems. 764 1.1 christos 765 1.1 christos Usage: $0 [OPTION]... [VAR=VALUE]... 766 1.1 christos 767 1.1 christos To assign environment variables (e.g., CC, CFLAGS...), specify them as 768 1.1 christos VAR=VALUE. See below for descriptions of some of the useful variables. 769 1.1 christos 770 1.1 christos Defaults for the options are specified in brackets. 771 1.1 christos 772 1.1 christos Configuration: 773 1.1 christos -h, --help display this help and exit 774 1.1 christos --help=short display options specific to this package 775 1.1 christos --help=recursive display the short help of all the included packages 776 1.1 christos -V, --version display version information and exit 777 1.1 christos -q, --quiet, --silent do not print \`checking...' messages 778 1.1 christos --cache-file=FILE cache test results in FILE [disabled] 779 1.1 christos -C, --config-cache alias for \`--cache-file=config.cache' 780 1.1 christos -n, --no-create do not create output files 781 1.1 christos --srcdir=DIR find the sources in DIR [configure dir or \`..'] 782 1.1 christos 783 1.1 christos _ACEOF 784 1.1 christos 785 1.1 christos cat <<_ACEOF 786 1.1 christos Installation directories: 787 1.1 christos --prefix=PREFIX install architecture-independent files in PREFIX 788 1.1 christos [$ac_default_prefix] 789 1.1 christos --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 790 1.1 christos [PREFIX] 791 1.1 christos 792 1.1 christos By default, \`make install' will install all the files in 793 1.1 christos \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 794 1.1 christos an installation prefix other than \`$ac_default_prefix' using \`--prefix', 795 1.1 christos for instance \`--prefix=\$HOME'. 796 1.1 christos 797 1.1 christos For better control, use the options below. 798 1.1 christos 799 1.1 christos Fine tuning of the installation directories: 800 1.1 christos --bindir=DIR user executables [EPREFIX/bin] 801 1.1 christos --sbindir=DIR system admin executables [EPREFIX/sbin] 802 1.1 christos --libexecdir=DIR program executables [EPREFIX/libexec] 803 1.1 christos --datadir=DIR read-only architecture-independent data [PREFIX/share] 804 1.1 christos --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 805 1.1 christos --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 806 1.1 christos --localstatedir=DIR modifiable single-machine data [PREFIX/var] 807 1.1 christos --libdir=DIR object code libraries [EPREFIX/lib] 808 1.1 christos --includedir=DIR C header files [PREFIX/include] 809 1.1 christos --oldincludedir=DIR C header files for non-gcc [/usr/include] 810 1.1 christos --infodir=DIR info documentation [PREFIX/info] 811 1.1 christos --mandir=DIR man documentation [PREFIX/man] 812 1.1 christos _ACEOF 813 1.1 christos 814 1.1 christos cat <<\_ACEOF 815 1.1 christos 816 1.1 christos Program names: 817 1.1 christos --program-prefix=PREFIX prepend PREFIX to installed program names 818 1.1 christos --program-suffix=SUFFIX append SUFFIX to installed program names 819 1.1 christos --program-transform-name=PROGRAM run sed PROGRAM on installed program names 820 1.1 christos 821 1.1 christos System types: 822 1.1 christos --build=BUILD configure for building on BUILD [guessed] 823 1.1 christos --host=HOST cross-compile to build programs to run on HOST [BUILD] 824 1.1 christos _ACEOF 825 1.1 christos fi 826 1.1 christos 827 1.1 christos if test -n "$ac_init_help"; then 828 1.1 christos 829 1.1 christos cat <<\_ACEOF 830 1.1 christos 831 1.1 christos Optional Features: 832 1.1 christos --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 833 1.1 christos --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 834 1.1 christos --disable-dependency-tracking Speeds up one-time builds 835 1.1 christos --enable-dependency-tracking Do not reject slow dependency extractors 836 1.1 christos --disable-perl-regexp disable perl-regexp 837 1.1 christos --disable-largefile omit support for large files 838 1.1 christos --disable-nls do not use Native Language Support 839 1.1 christos 840 1.1 christos Optional Packages: 841 1.1 christos --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 842 1.1 christos --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 843 1.1 christos --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib 844 1.1 christos --with-included-gettext use the GNU gettext library included here 845 1.1 christos --without-included-regex don't compile regex; this is the default on 846 1.1 christos systems with version 2 of the GNU C library 847 1.1 christos (use with caution on other system) 848 1.1 christos --with-included-getopt Use the included getopt rather than glibc's 849 1.1 christos 850 1.1 christos Some influential environment variables: 851 1.1 christos CC C compiler command 852 1.1 christos CFLAGS C compiler flags 853 1.1 christos LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 854 1.1 christos nonstandard directory <lib dir> 855 1.1 christos CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 856 1.1 christos headers in a nonstandard directory <include dir> 857 1.1 christos CPP C preprocessor 858 1.1 christos 859 1.1 christos Use these variables to override the choices made by `configure' or to help 860 1.1 christos it to find libraries and programs with nonstandard names/locations. 861 1.1 christos 862 1.1 christos _ACEOF 863 1.1 christos fi 864 1.1 christos 865 1.1 christos if test "$ac_init_help" = "recursive"; then 866 1.1 christos # If there are subdirs, report their specific --help. 867 1.1 christos ac_popdir=`pwd` 868 1.1 christos for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 869 1.1 christos test -d $ac_dir || continue 870 1.1 christos ac_builddir=. 871 1.1 christos 872 1.1 christos if test "$ac_dir" != .; then 873 1.1 christos ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 874 1.1 christos # A "../" for each directory in $ac_dir_suffix. 875 1.1 christos ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 876 1.1 christos else 877 1.1 christos ac_dir_suffix= ac_top_builddir= 878 1.1 christos fi 879 1.1 christos 880 1.1 christos case $srcdir in 881 1.1 christos .) # No --srcdir option. We are building in place. 882 1.1 christos ac_srcdir=. 883 1.1 christos if test -z "$ac_top_builddir"; then 884 1.1 christos ac_top_srcdir=. 885 1.1 christos else 886 1.1 christos ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 887 1.1 christos fi ;; 888 1.1 christos [\\/]* | ?:[\\/]* ) # Absolute path. 889 1.1 christos ac_srcdir=$srcdir$ac_dir_suffix; 890 1.1 christos ac_top_srcdir=$srcdir ;; 891 1.1 christos *) # Relative path. 892 1.1 christos ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 893 1.1 christos ac_top_srcdir=$ac_top_builddir$srcdir ;; 894 1.1 christos esac 895 1.1 christos # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 896 1.1 christos # absolute. 897 1.1 christos ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 898 1.1 christos ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` 899 1.1 christos ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 900 1.1 christos ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 901 1.1 christos 902 1.1 christos cd $ac_dir 903 1.1 christos # Check for guested configure; otherwise get Cygnus style configure. 904 1.1 christos if test -f $ac_srcdir/configure.gnu; then 905 1.1 christos echo 906 1.1 christos $SHELL $ac_srcdir/configure.gnu --help=recursive 907 1.1 christos elif test -f $ac_srcdir/configure; then 908 1.1 christos echo 909 1.1 christos $SHELL $ac_srcdir/configure --help=recursive 910 1.1 christos elif test -f $ac_srcdir/configure.ac || 911 1.1 christos test -f $ac_srcdir/configure.in; then 912 1.1 christos echo 913 1.1 christos $ac_configure --help 914 1.1 christos else 915 1.1 christos echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 916 1.1 christos fi 917 1.1 christos cd $ac_popdir 918 1.1 christos done 919 1.1 christos fi 920 1.1 christos 921 1.1 christos test -n "$ac_init_help" && exit 0 922 1.1 christos if $ac_init_version; then 923 1.1 christos cat <<\_ACEOF 924 1.1 christos 925 1.1 christos Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 926 1.1 christos Free Software Foundation, Inc. 927 1.1 christos This configure script is free software; the Free Software Foundation 928 1.1 christos gives unlimited permission to copy, distribute and modify it. 929 1.1 christos _ACEOF 930 1.1 christos exit 0 931 1.1 christos fi 932 1.1 christos exec 5>config.log 933 1.1 christos cat >&5 <<_ACEOF 934 1.1 christos This file contains any messages produced by compilers while 935 1.1 christos running configure, to aid debugging if configure makes a mistake. 936 1.1 christos 937 1.1 christos It was created by $as_me, which was 938 1.1 christos generated by GNU Autoconf 2.53. Invocation command line was 939 1.1 christos 940 1.1 christos $ $0 $@ 941 1.1 christos 942 1.1 christos _ACEOF 943 1.1 christos { 944 1.1 christos cat <<_ASUNAME 945 1.1 christos ## --------- ## 946 1.1 christos ## Platform. ## 947 1.1 christos ## --------- ## 948 1.1 christos 949 1.1 christos hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 950 1.1 christos uname -m = `(uname -m) 2>/dev/null || echo unknown` 951 1.1 christos uname -r = `(uname -r) 2>/dev/null || echo unknown` 952 1.1 christos uname -s = `(uname -s) 2>/dev/null || echo unknown` 953 1.1 christos uname -v = `(uname -v) 2>/dev/null || echo unknown` 954 1.1 christos 955 1.1 christos /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 956 1.1 christos /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 957 1.1 christos 958 1.1 christos /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 959 1.1 christos /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 960 1.1 christos /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 961 1.1 christos hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 962 1.1 christos /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 963 1.1 christos /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 964 1.1 christos /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 965 1.1 christos 966 1.1 christos _ASUNAME 967 1.1 christos 968 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 969 1.1 christos for as_dir in $PATH 970 1.1 christos do 971 1.1 christos IFS=$as_save_IFS 972 1.1 christos test -z "$as_dir" && as_dir=. 973 1.1 christos echo "PATH: $as_dir" 974 1.1 christos done 975 1.1 christos 976 1.1 christos } >&5 977 1.1 christos 978 1.1 christos cat >&5 <<_ACEOF 979 1.1 christos 980 1.1 christos 981 1.1 christos ## ----------- ## 982 1.1 christos ## Core tests. ## 983 1.1 christos ## ----------- ## 984 1.1 christos 985 1.1 christos _ACEOF 986 1.1 christos 987 1.1 christos 988 1.1 christos # Keep a trace of the command line. 989 1.1 christos # Strip out --no-create and --no-recursion so they do not pile up. 990 1.1 christos # Also quote any args containing shell meta-characters. 991 1.1 christos ac_configure_args= 992 1.1 christos ac_sep= 993 1.1 christos for ac_arg 994 1.1 christos do 995 1.1 christos case $ac_arg in 996 1.1 christos -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 997 1.1 christos | --no-cr | --no-c | -n ) continue ;; 998 1.1 christos -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 999 1.1 christos | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1000 1.1 christos continue ;; 1001 1.1 christos *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1002 1.1 christos ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1003 1.1 christos esac 1004 1.1 christos case " $ac_configure_args " in 1005 1.1 christos *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1006 1.1 christos *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1007 1.1 christos ac_sep=" " ;; 1008 1.1 christos esac 1009 1.1 christos # Get rid of the leading space. 1010 1.1 christos done 1011 1.1 christos 1012 1.1 christos # When interrupted or exit'd, cleanup temporary files, and complete 1013 1.1 christos # config.log. We remove comments because anyway the quotes in there 1014 1.1 christos # would cause problems or look ugly. 1015 1.1 christos # WARNING: Be sure not to use single quotes in there, as some shells, 1016 1.1 christos # such as our DU 5.0 friend, will then `close' the trap. 1017 1.1 christos trap 'exit_status=$? 1018 1.1 christos # Save into config.log some information that might help in debugging. 1019 1.1 christos { 1020 1.1 christos echo 1021 1.1 christos cat <<\_ASBOX 1022 1.1 christos ## ---------------- ## 1023 1.1 christos ## Cache variables. ## 1024 1.1 christos ## ---------------- ## 1025 1.1 christos _ASBOX 1026 1.1 christos echo 1027 1.1 christos # The following way of writing the cache mishandles newlines in values, 1028 1.1 christos { 1029 1.1 christos (set) 2>&1 | 1030 1.1 christos case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1031 1.1 christos *ac_space=\ *) 1032 1.1 christos sed -n \ 1033 1.1 christos "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1034 1.1 christos s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1035 1.1 christos ;; 1036 1.1 christos *) 1037 1.1 christos sed -n \ 1038 1.1 christos "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1039 1.1 christos ;; 1040 1.1 christos esac; 1041 1.1 christos } 1042 1.1 christos echo 1043 1.1 christos if test -s confdefs.h; then 1044 1.1 christos cat <<\_ASBOX 1045 1.1 christos ## ----------- ## 1046 1.1 christos ## confdefs.h. ## 1047 1.1 christos ## ----------- ## 1048 1.1 christos _ASBOX 1049 1.1 christos echo 1050 1.1 christos sed "/^$/d" confdefs.h 1051 1.1 christos echo 1052 1.1 christos fi 1053 1.1 christos test "$ac_signal" != 0 && 1054 1.1 christos echo "$as_me: caught signal $ac_signal" 1055 1.1 christos echo "$as_me: exit $exit_status" 1056 1.1 christos } >&5 1057 1.1 christos rm -f core core.* *.core && 1058 1.1 christos rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1059 1.1 christos exit $exit_status 1060 1.1 christos ' 0 1061 1.1 christos for ac_signal in 1 2 13 15; do 1062 1.1 christos trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1063 1.1 christos done 1064 1.1 christos ac_signal=0 1065 1.1 christos 1066 1.1 christos # confdefs.h avoids OS command line length limits that DEFS can exceed. 1067 1.1 christos rm -rf conftest* confdefs.h 1068 1.1 christos # AIX cpp loses on an empty file, so make sure it contains at least a newline. 1069 1.1 christos echo >confdefs.h 1070 1.1 christos 1071 1.1 christos # Predefined preprocessor variables. 1072 1.1 christos 1073 1.1 christos cat >>confdefs.h <<_ACEOF 1074 1.1 christos #define PACKAGE_NAME "$PACKAGE_NAME" 1075 1.1 christos _ACEOF 1076 1.1 christos 1077 1.1 christos 1078 1.1 christos cat >>confdefs.h <<_ACEOF 1079 1.1 christos #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1080 1.1 christos _ACEOF 1081 1.1 christos 1082 1.1 christos 1083 1.1 christos cat >>confdefs.h <<_ACEOF 1084 1.1 christos #define PACKAGE_VERSION "$PACKAGE_VERSION" 1085 1.1 christos _ACEOF 1086 1.1 christos 1087 1.1 christos 1088 1.1 christos cat >>confdefs.h <<_ACEOF 1089 1.1 christos #define PACKAGE_STRING "$PACKAGE_STRING" 1090 1.1 christos _ACEOF 1091 1.1 christos 1092 1.1 christos 1093 1.1 christos cat >>confdefs.h <<_ACEOF 1094 1.1 christos #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1095 1.1 christos _ACEOF 1096 1.1 christos 1097 1.1 christos 1098 1.1 christos # Let the site file select an alternate cache file if it wants to. 1099 1.1 christos # Prefer explicitly selected file to automatically selected ones. 1100 1.1 christos if test -z "$CONFIG_SITE"; then 1101 1.1 christos if test "x$prefix" != xNONE; then 1102 1.1 christos CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1103 1.1 christos else 1104 1.1 christos CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1105 1.1 christos fi 1106 1.1 christos fi 1107 1.1 christos for ac_site_file in $CONFIG_SITE; do 1108 1.1 christos if test -r "$ac_site_file"; then 1109 1.1 christos { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1110 1.1 christos echo "$as_me: loading site script $ac_site_file" >&6;} 1111 1.1 christos sed 's/^/| /' "$ac_site_file" >&5 1112 1.1 christos . "$ac_site_file" 1113 1.1 christos fi 1114 1.1 christos done 1115 1.1 christos 1116 1.1 christos if test -r "$cache_file"; then 1117 1.1 christos # Some versions of bash will fail to source /dev/null (special 1118 1.1 christos # files actually), so we avoid doing that. 1119 1.1 christos if test -f "$cache_file"; then 1120 1.1 christos { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1121 1.1 christos echo "$as_me: loading cache $cache_file" >&6;} 1122 1.1 christos case $cache_file in 1123 1.1 christos [\\/]* | ?:[\\/]* ) . $cache_file;; 1124 1.1 christos *) . ./$cache_file;; 1125 1.1 christos esac 1126 1.1 christos fi 1127 1.1 christos else 1128 1.1 christos { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1129 1.1 christos echo "$as_me: creating cache $cache_file" >&6;} 1130 1.1 christos >$cache_file 1131 1.1 christos fi 1132 1.1 christos 1133 1.1 christos # Check that the precious variables saved in the cache have kept the same 1134 1.1 christos # value. 1135 1.1 christos ac_cache_corrupted=false 1136 1.1 christos for ac_var in `(set) 2>&1 | 1137 1.1 christos sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1138 1.1 christos eval ac_old_set=\$ac_cv_env_${ac_var}_set 1139 1.1 christos eval ac_new_set=\$ac_env_${ac_var}_set 1140 1.1 christos eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1141 1.1 christos eval ac_new_val="\$ac_env_${ac_var}_value" 1142 1.1 christos case $ac_old_set,$ac_new_set in 1143 1.1 christos set,) 1144 1.1 christos { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1145 1.1 christos echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1146 1.1 christos ac_cache_corrupted=: ;; 1147 1.1 christos ,set) 1148 1.1 christos { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1149 1.1 christos echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1150 1.1 christos ac_cache_corrupted=: ;; 1151 1.1 christos ,);; 1152 1.1 christos *) 1153 1.1 christos if test "x$ac_old_val" != "x$ac_new_val"; then 1154 1.1 christos { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1155 1.1 christos echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1156 1.1 christos { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1157 1.1 christos echo "$as_me: former value: $ac_old_val" >&2;} 1158 1.1 christos { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1159 1.1 christos echo "$as_me: current value: $ac_new_val" >&2;} 1160 1.1 christos ac_cache_corrupted=: 1161 1.1 christos fi;; 1162 1.1 christos esac 1163 1.1 christos # Pass precious variables to config.status. 1164 1.1 christos if test "$ac_new_set" = set; then 1165 1.1 christos case $ac_new_val in 1166 1.1 christos *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1167 1.1 christos ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1168 1.1 christos *) ac_arg=$ac_var=$ac_new_val ;; 1169 1.1 christos esac 1170 1.1 christos case " $ac_configure_args " in 1171 1.1 christos *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1172 1.1 christos *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1173 1.1 christos esac 1174 1.1 christos fi 1175 1.1 christos done 1176 1.1 christos if $ac_cache_corrupted; then 1177 1.1 christos { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1178 1.1 christos echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1179 1.1 christos { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1180 1.1 christos echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1181 1.1 christos { (exit 1); exit 1; }; } 1182 1.1 christos fi 1183 1.1 christos 1184 1.1 christos ac_ext=c 1185 1.1 christos ac_cpp='$CPP $CPPFLAGS' 1186 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1187 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1188 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu 1189 1.1 christos 1190 1.1 christos 1191 1.1 christos 1192 1.1 christos 1193 1.1 christos 1194 1.1 christos 1195 1.1 christos 1196 1.1 christos 1197 1.1 christos 1198 1.1 christos 1199 1.1 christos 1200 1.1 christos 1201 1.1 christos 1202 1.1 christos 1203 1.1 christos 1204 1.1 christos 1205 1.1 christos 1206 1.1 christos 1207 1.1 christos 1208 1.1 christos cat >>confdefs.h <<\_ACEOF 1209 1.1 christos #define GREP 1 1210 1.1 christos _ACEOF 1211 1.1 christos 1212 1.1 christos 1213 1.1 christos 1214 1.1 christos ac_aux_dir= 1215 1.1 christos for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1216 1.1 christos if test -f $ac_dir/install-sh; then 1217 1.1 christos ac_aux_dir=$ac_dir 1218 1.1 christos ac_install_sh="$ac_aux_dir/install-sh -c" 1219 1.1 christos break 1220 1.1 christos elif test -f $ac_dir/install.sh; then 1221 1.1 christos ac_aux_dir=$ac_dir 1222 1.1 christos ac_install_sh="$ac_aux_dir/install.sh -c" 1223 1.1 christos break 1224 1.1 christos elif test -f $ac_dir/shtool; then 1225 1.1 christos ac_aux_dir=$ac_dir 1226 1.1 christos ac_install_sh="$ac_aux_dir/shtool install -c" 1227 1.1 christos break 1228 1.1 christos fi 1229 1.1 christos done 1230 1.1 christos if test -z "$ac_aux_dir"; then 1231 1.1 christos { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1232 1.1 christos echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1233 1.1 christos { (exit 1); exit 1; }; } 1234 1.1 christos fi 1235 1.1 christos ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1236 1.1 christos ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1237 1.1 christos ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1238 1.1 christos 1239 1.1 christos # Find a good install program. We prefer a C program (faster), 1240 1.1 christos # so one script is as good as another. But avoid the broken or 1241 1.1 christos # incompatible versions: 1242 1.1 christos # SysV /etc/install, /usr/sbin/install 1243 1.1 christos # SunOS /usr/etc/install 1244 1.1 christos # IRIX /sbin/install 1245 1.1 christos # AIX /bin/install 1246 1.1 christos # AmigaOS /C/install, which installs bootblocks on floppy discs 1247 1.1 christos # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1248 1.1 christos # AFS /usr/afsws/bin/install, which mishandles nonexistent args 1249 1.1 christos # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1250 1.1 christos # ./install, which can be erroneously created by make from ./install.sh. 1251 1.1 christos echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1252 1.1 christos echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1253 1.1 christos if test -z "$INSTALL"; then 1254 1.1 christos if test "${ac_cv_path_install+set}" = set; then 1255 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 1256 1.1 christos else 1257 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1258 1.1 christos for as_dir in $PATH 1259 1.1 christos do 1260 1.1 christos IFS=$as_save_IFS 1261 1.1 christos test -z "$as_dir" && as_dir=. 1262 1.1 christos # Account for people who put trailing slashes in PATH elements. 1263 1.1 christos case $as_dir/ in 1264 1.1 christos ./ | .// | /cC/* | \ 1265 1.1 christos /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1266 1.1 christos /usr/ucb/* ) ;; 1267 1.1 christos *) 1268 1.1 christos # OSF1 and SCO ODT 3.0 have their own names for install. 1269 1.1 christos # Don't use installbsd from OSF since it installs stuff as root 1270 1.1 christos # by default. 1271 1.1 christos for ac_prog in ginstall scoinst install; do 1272 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 1273 1.1 christos if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1274 1.1 christos if test $ac_prog = install && 1275 1.1 christos grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1276 1.1 christos # AIX install. It has an incompatible calling convention. 1277 1.1 christos : 1278 1.1 christos elif test $ac_prog = install && 1279 1.1 christos grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1280 1.1 christos # program-specific install script used by HP pwplus--don't use. 1281 1.1 christos : 1282 1.1 christos else 1283 1.1 christos ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1284 1.1 christos break 3 1285 1.1 christos fi 1286 1.1 christos fi 1287 1.1 christos done 1288 1.1 christos done 1289 1.1 christos ;; 1290 1.1 christos esac 1291 1.1 christos done 1292 1.1 christos 1293 1.1 christos 1294 1.1 christos fi 1295 1.1 christos if test "${ac_cv_path_install+set}" = set; then 1296 1.1 christos INSTALL=$ac_cv_path_install 1297 1.1 christos else 1298 1.1 christos # As a last resort, use the slow shell script. We don't cache a 1299 1.1 christos # path for INSTALL within a source directory, because that will 1300 1.1 christos # break other packages using the cache if that directory is 1301 1.1 christos # removed, or if the path is relative. 1302 1.1 christos INSTALL=$ac_install_sh 1303 1.1 christos fi 1304 1.1 christos fi 1305 1.1 christos echo "$as_me:$LINENO: result: $INSTALL" >&5 1306 1.1 christos echo "${ECHO_T}$INSTALL" >&6 1307 1.1 christos 1308 1.1 christos # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1309 1.1 christos # It thinks the first close brace ends the variable substitution. 1310 1.1 christos test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1311 1.1 christos 1312 1.1 christos test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1313 1.1 christos 1314 1.1 christos test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1315 1.1 christos 1316 1.1 christos echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1317 1.1 christos echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1318 1.1 christos # Just in case 1319 1.1 christos sleep 1 1320 1.1 christos echo timestamp > conftest.file 1321 1.1 christos # Do `set' in a subshell so we don't clobber the current shell's 1322 1.1 christos # arguments. Must try -L first in case configure is actually a 1323 1.1 christos # symlink; some systems play weird games with the mod time of symlinks 1324 1.1 christos # (eg FreeBSD returns the mod time of the symlink's containing 1325 1.1 christos # directory). 1326 1.1 christos if ( 1327 1.1 christos set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1328 1.1 christos if test "$*" = "X"; then 1329 1.1 christos # -L didn't work. 1330 1.1 christos set X `ls -t $srcdir/configure conftest.file` 1331 1.1 christos fi 1332 1.1 christos rm -f conftest.file 1333 1.1 christos if test "$*" != "X $srcdir/configure conftest.file" \ 1334 1.1 christos && test "$*" != "X conftest.file $srcdir/configure"; then 1335 1.1 christos 1336 1.1 christos # If neither matched, then we have a broken ls. This can happen 1337 1.1 christos # if, for instance, CONFIG_SHELL is bash and it inherits a 1338 1.1 christos # broken ls alias from the environment. This has actually 1339 1.1 christos # happened. Such a system could not be considered "sane". 1340 1.1 christos { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1341 1.1 christos alias in your environment" >&5 1342 1.1 christos echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1343 1.1 christos alias in your environment" >&2;} 1344 1.1 christos { (exit 1); exit 1; }; } 1345 1.1 christos fi 1346 1.1 christos 1347 1.1 christos test "$2" = conftest.file 1348 1.1 christos ) 1349 1.1 christos then 1350 1.1 christos # Ok. 1351 1.1 christos : 1352 1.1 christos else 1353 1.1 christos { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1354 1.1 christos Check your system clock" >&5 1355 1.1 christos echo "$as_me: error: newly created file is older than distributed files! 1356 1.1 christos Check your system clock" >&2;} 1357 1.1 christos { (exit 1); exit 1; }; } 1358 1.1 christos fi 1359 1.1 christos echo "$as_me:$LINENO: result: yes" >&5 1360 1.1 christos echo "${ECHO_T}yes" >&6 1361 1.1 christos test "$program_prefix" != NONE && 1362 1.1 christos program_transform_name="s,^,$program_prefix,;$program_transform_name" 1363 1.1 christos # Use a double $ so make ignores it. 1364 1.1 christos test "$program_suffix" != NONE && 1365 1.1 christos program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1366 1.1 christos # Double any \ or $. echo might interpret backslashes. 1367 1.1 christos # By default was `s,x,x', remove it if useless. 1368 1.1 christos cat <<\_ACEOF >conftest.sed 1369 1.1 christos s/[\\$]/&&/g;s/;s,x,x,$// 1370 1.1 christos _ACEOF 1371 1.1 christos program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1372 1.1 christos rm conftest.sed 1373 1.1 christos 1374 1.1 christos 1375 1.1 christos # expand $ac_aux_dir to an absolute path 1376 1.1 christos am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd` 1377 1.1 christos 1378 1.1 christos test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1379 1.1 christos # Use eval to expand $SHELL 1380 1.1 christos if eval "$MISSING --run true"; then 1381 1.1 christos am_missing_run="$MISSING --run " 1382 1.1 christos else 1383 1.1 christos am_missing_run= 1384 1.1 christos am_backtick='`' 1385 1.1 christos { echo "$as_me:$LINENO: WARNING: ${am_backtick}missing' script is too old or missing" >&5 1386 1.1 christos echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;} 1387 1.1 christos fi 1388 1.1 christos 1389 1.1 christos for ac_prog in gawk mawk nawk awk 1390 1.1 christos do 1391 1.1 christos # Extract the first word of "$ac_prog", so it can be a program name with args. 1392 1.1 christos set dummy $ac_prog; ac_word=$2 1393 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 1394 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1395 1.1 christos if test "${ac_cv_prog_AWK+set}" = set; then 1396 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 1397 1.1 christos else 1398 1.1 christos if test -n "$AWK"; then 1399 1.1 christos ac_cv_prog_AWK="$AWK" # Let the user override the test. 1400 1.1 christos else 1401 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1402 1.1 christos for as_dir in $PATH 1403 1.1 christos do 1404 1.1 christos IFS=$as_save_IFS 1405 1.1 christos test -z "$as_dir" && as_dir=. 1406 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 1407 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1408 1.1 christos ac_cv_prog_AWK="$ac_prog" 1409 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1410 1.1 christos break 2 1411 1.1 christos fi 1412 1.1 christos done 1413 1.1 christos done 1414 1.1 christos 1415 1.1 christos fi 1416 1.1 christos fi 1417 1.1 christos AWK=$ac_cv_prog_AWK 1418 1.1 christos if test -n "$AWK"; then 1419 1.1 christos echo "$as_me:$LINENO: result: $AWK" >&5 1420 1.1 christos echo "${ECHO_T}$AWK" >&6 1421 1.1 christos else 1422 1.1 christos echo "$as_me:$LINENO: result: no" >&5 1423 1.1 christos echo "${ECHO_T}no" >&6 1424 1.1 christos fi 1425 1.1 christos 1426 1.1 christos test -n "$AWK" && break 1427 1.1 christos done 1428 1.1 christos 1429 1.1 christos echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5 1430 1.1 christos echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 1431 1.1 christos set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 1432 1.1 christos if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1433 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 1434 1.1 christos else 1435 1.1 christos cat >conftest.make <<\_ACEOF 1436 1.1 christos all: 1437 1.1 christos @echo 'ac_maketemp="${MAKE}"' 1438 1.1 christos _ACEOF 1439 1.1 christos # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1440 1.1 christos eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1441 1.1 christos if test -n "$ac_maketemp"; then 1442 1.1 christos eval ac_cv_prog_make_${ac_make}_set=yes 1443 1.1 christos else 1444 1.1 christos eval ac_cv_prog_make_${ac_make}_set=no 1445 1.1 christos fi 1446 1.1 christos rm -f conftest.make 1447 1.1 christos fi 1448 1.1 christos if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1449 1.1 christos echo "$as_me:$LINENO: result: yes" >&5 1450 1.1 christos echo "${ECHO_T}yes" >&6 1451 1.1 christos SET_MAKE= 1452 1.1 christos else 1453 1.1 christos echo "$as_me:$LINENO: result: no" >&5 1454 1.1 christos echo "${ECHO_T}no" >&6 1455 1.1 christos SET_MAKE="MAKE=${MAKE-make}" 1456 1.1 christos fi 1457 1.1 christos 1458 1.1 christos # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 1459 1.1 christos if test "${enable_dependency_tracking+set}" = set; then 1460 1.1 christos enableval="$enable_dependency_tracking" 1461 1.1 christos 1462 1.1 christos fi; 1463 1.1 christos if test "x$enable_dependency_tracking" != xno; then 1464 1.1 christos am_depcomp="$ac_aux_dir/depcomp" 1465 1.1 christos AMDEPBACKSLASH='\' 1466 1.1 christos fi 1467 1.1 christos 1468 1.1 christos 1469 1.1 christos if test "x$enable_dependency_tracking" != xno; then 1470 1.1 christos AMDEP_TRUE= 1471 1.1 christos AMDEP_FALSE='#' 1472 1.1 christos else 1473 1.1 christos AMDEP_TRUE='#' 1474 1.1 christos AMDEP_FALSE= 1475 1.1 christos fi 1476 1.1 christos 1477 1.1 christos 1478 1.1 christos 1479 1.1 christos 1480 1.1 christos rm -f .deps 2>/dev/null 1481 1.1 christos mkdir .deps 2>/dev/null 1482 1.1 christos if test -d .deps; then 1483 1.1 christos DEPDIR=.deps 1484 1.1 christos else 1485 1.1 christos # MS-DOS does not allow filenames that begin with a dot. 1486 1.1 christos DEPDIR=_deps 1487 1.1 christos fi 1488 1.1 christos rmdir .deps 2>/dev/null 1489 1.1 christos 1490 1.1 christos 1491 1.1 christos # test to see if srcdir already configured 1492 1.1 christos if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" && 1493 1.1 christos test -f $srcdir/config.status; then 1494 1.1 christos { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1495 1.1 christos echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1496 1.1 christos { (exit 1); exit 1; }; } 1497 1.1 christos fi 1498 1.1 christos 1499 1.1 christos # Define the identity of the package. 1500 1.1 christos PACKAGE=grep 1501 1.1 christos VERSION=2.5.1 1502 1.1 christos 1503 1.1 christos cat >>confdefs.h <<_ACEOF 1504 1.1 christos #define PACKAGE "$PACKAGE" 1505 1.1 christos _ACEOF 1506 1.1 christos 1507 1.1 christos 1508 1.1 christos cat >>confdefs.h <<_ACEOF 1509 1.1 christos #define VERSION "$VERSION" 1510 1.1 christos _ACEOF 1511 1.1 christos 1512 1.1 christos 1513 1.1 christos # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow 1514 1.1 christos # the ones we care about. 1515 1.1 christos 1516 1.1 christos # Autoconf 2.50 always computes EXEEXT. However we need to be 1517 1.1 christos # compatible with 2.13, for now. So we always define EXEEXT, but we 1518 1.1 christos # don't compute it. 1519 1.1 christos 1520 1.1 christos # Similar for OBJEXT -- only we only use OBJEXT if the user actually 1521 1.1 christos # requests that it be used. This is a bit dumb. 1522 1.1 christos : ${OBJEXT=o} 1523 1.1 christos 1524 1.1 christos 1525 1.1 christos # Some tools Automake needs. 1526 1.1 christos 1527 1.1 christos ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"} 1528 1.1 christos 1529 1.1 christos 1530 1.1 christos AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1531 1.1 christos 1532 1.1 christos 1533 1.1 christos AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"} 1534 1.1 christos 1535 1.1 christos 1536 1.1 christos AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1537 1.1 christos 1538 1.1 christos 1539 1.1 christos MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1540 1.1 christos 1541 1.1 christos 1542 1.1 christos AMTAR=${AMTAR-"${am_missing_run}tar"} 1543 1.1 christos 1544 1.1 christos install_sh=${install_sh-"$am_aux_dir/install-sh"} 1545 1.1 christos 1546 1.1 christos INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1547 1.1 christos 1548 1.1 christos # We need awk for the "check" target. The system "awk" is bad on 1549 1.1 christos # some platforms. 1550 1.1 christos 1551 1.1 christos 1552 1.1 christos 1553 1.1 christos 1554 1.1 christos ac_config_headers="$ac_config_headers config.h:config.hin" 1555 1.1 christos 1556 1.1 christos 1557 1.1 christos # Check whether --enable-perl-regexp or --disable-perl-regexp was given. 1558 1.1 christos if test "${enable_perl_regexp+set}" = set; then 1559 1.1 christos enableval="$enable_perl_regexp" 1560 1.1 christos case "${enableval}" in 1561 1.1 christos yes) testpcre=yes ;; 1562 1.1 christos no) testpcre=no ;; 1563 1.1 christos *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-perl-regexp" >&5 1564 1.1 christos echo "$as_me: error: bad value ${enableval} for --disable-perl-regexp" >&2;} 1565 1.1 christos { (exit 1); exit 1; }; } ;; 1566 1.1 christos esac 1567 1.1 christos else 1568 1.1 christos testpcre=yes 1569 1.1 christos fi; 1570 1.1 christos 1571 1.1 christos # Make sure we can run config.sub. 1572 1.1 christos $ac_config_sub sun4 >/dev/null 2>&1 || 1573 1.1 christos { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1574 1.1 christos echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1575 1.1 christos { (exit 1); exit 1; }; } 1576 1.1 christos 1577 1.1 christos echo "$as_me:$LINENO: checking build system type" >&5 1578 1.1 christos echo $ECHO_N "checking build system type... $ECHO_C" >&6 1579 1.1 christos if test "${ac_cv_build+set}" = set; then 1580 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 1581 1.1 christos else 1582 1.1 christos ac_cv_build_alias=$build_alias 1583 1.1 christos test -z "$ac_cv_build_alias" && 1584 1.1 christos ac_cv_build_alias=`$ac_config_guess` 1585 1.1 christos test -z "$ac_cv_build_alias" && 1586 1.1 christos { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1587 1.1 christos echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1588 1.1 christos { (exit 1); exit 1; }; } 1589 1.1 christos ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1590 1.1 christos { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1591 1.1 christos echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1592 1.1 christos { (exit 1); exit 1; }; } 1593 1.1 christos 1594 1.1 christos fi 1595 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1596 1.1 christos echo "${ECHO_T}$ac_cv_build" >&6 1597 1.1 christos build=$ac_cv_build 1598 1.1 christos build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1599 1.1 christos build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1600 1.1 christos build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1601 1.1 christos 1602 1.1 christos 1603 1.1 christos echo "$as_me:$LINENO: checking host system type" >&5 1604 1.1 christos echo $ECHO_N "checking host system type... $ECHO_C" >&6 1605 1.1 christos if test "${ac_cv_host+set}" = set; then 1606 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 1607 1.1 christos else 1608 1.1 christos ac_cv_host_alias=$host_alias 1609 1.1 christos test -z "$ac_cv_host_alias" && 1610 1.1 christos ac_cv_host_alias=$ac_cv_build_alias 1611 1.1 christos ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1612 1.1 christos { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1613 1.1 christos echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1614 1.1 christos { (exit 1); exit 1; }; } 1615 1.1 christos 1616 1.1 christos fi 1617 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1618 1.1 christos echo "${ECHO_T}$ac_cv_host" >&6 1619 1.1 christos host=$ac_cv_host 1620 1.1 christos host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1621 1.1 christos host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1622 1.1 christos host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1623 1.1 christos 1624 1.1 christos 1625 1.1 christos for ac_prog in gawk mawk nawk awk 1626 1.1 christos do 1627 1.1 christos # Extract the first word of "$ac_prog", so it can be a program name with args. 1628 1.1 christos set dummy $ac_prog; ac_word=$2 1629 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 1630 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1631 1.1 christos if test "${ac_cv_prog_AWK+set}" = set; then 1632 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 1633 1.1 christos else 1634 1.1 christos if test -n "$AWK"; then 1635 1.1 christos ac_cv_prog_AWK="$AWK" # Let the user override the test. 1636 1.1 christos else 1637 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1638 1.1 christos for as_dir in $PATH 1639 1.1 christos do 1640 1.1 christos IFS=$as_save_IFS 1641 1.1 christos test -z "$as_dir" && as_dir=. 1642 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 1643 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1644 1.1 christos ac_cv_prog_AWK="$ac_prog" 1645 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1646 1.1 christos break 2 1647 1.1 christos fi 1648 1.1 christos done 1649 1.1 christos done 1650 1.1 christos 1651 1.1 christos fi 1652 1.1 christos fi 1653 1.1 christos AWK=$ac_cv_prog_AWK 1654 1.1 christos if test -n "$AWK"; then 1655 1.1 christos echo "$as_me:$LINENO: result: $AWK" >&5 1656 1.1 christos echo "${ECHO_T}$AWK" >&6 1657 1.1 christos else 1658 1.1 christos echo "$as_me:$LINENO: result: no" >&5 1659 1.1 christos echo "${ECHO_T}no" >&6 1660 1.1 christos fi 1661 1.1 christos 1662 1.1 christos test -n "$AWK" && break 1663 1.1 christos done 1664 1.1 christos 1665 1.1 christos ac_ext=c 1666 1.1 christos ac_cpp='$CPP $CPPFLAGS' 1667 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1668 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1669 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu 1670 1.1 christos if test -n "$ac_tool_prefix"; then 1671 1.1 christos # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1672 1.1 christos set dummy ${ac_tool_prefix}gcc; ac_word=$2 1673 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 1674 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1675 1.1 christos if test "${ac_cv_prog_CC+set}" = set; then 1676 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 1677 1.1 christos else 1678 1.1 christos if test -n "$CC"; then 1679 1.1 christos ac_cv_prog_CC="$CC" # Let the user override the test. 1680 1.1 christos else 1681 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1682 1.1 christos for as_dir in $PATH 1683 1.1 christos do 1684 1.1 christos IFS=$as_save_IFS 1685 1.1 christos test -z "$as_dir" && as_dir=. 1686 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 1687 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1688 1.1 christos ac_cv_prog_CC="${ac_tool_prefix}gcc" 1689 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1690 1.1 christos break 2 1691 1.1 christos fi 1692 1.1 christos done 1693 1.1 christos done 1694 1.1 christos 1695 1.1 christos fi 1696 1.1 christos fi 1697 1.1 christos CC=$ac_cv_prog_CC 1698 1.1 christos if test -n "$CC"; then 1699 1.1 christos echo "$as_me:$LINENO: result: $CC" >&5 1700 1.1 christos echo "${ECHO_T}$CC" >&6 1701 1.1 christos else 1702 1.1 christos echo "$as_me:$LINENO: result: no" >&5 1703 1.1 christos echo "${ECHO_T}no" >&6 1704 1.1 christos fi 1705 1.1 christos 1706 1.1 christos fi 1707 1.1 christos if test -z "$ac_cv_prog_CC"; then 1708 1.1 christos ac_ct_CC=$CC 1709 1.1 christos # Extract the first word of "gcc", so it can be a program name with args. 1710 1.1 christos set dummy gcc; ac_word=$2 1711 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 1712 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1713 1.1 christos if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1714 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 1715 1.1 christos else 1716 1.1 christos if test -n "$ac_ct_CC"; then 1717 1.1 christos ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1718 1.1 christos else 1719 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1720 1.1 christos for as_dir in $PATH 1721 1.1 christos do 1722 1.1 christos IFS=$as_save_IFS 1723 1.1 christos test -z "$as_dir" && as_dir=. 1724 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 1725 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1726 1.1 christos ac_cv_prog_ac_ct_CC="gcc" 1727 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1728 1.1 christos break 2 1729 1.1 christos fi 1730 1.1 christos done 1731 1.1 christos done 1732 1.1 christos 1733 1.1 christos fi 1734 1.1 christos fi 1735 1.1 christos ac_ct_CC=$ac_cv_prog_ac_ct_CC 1736 1.1 christos if test -n "$ac_ct_CC"; then 1737 1.1 christos echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1738 1.1 christos echo "${ECHO_T}$ac_ct_CC" >&6 1739 1.1 christos else 1740 1.1 christos echo "$as_me:$LINENO: result: no" >&5 1741 1.1 christos echo "${ECHO_T}no" >&6 1742 1.1 christos fi 1743 1.1 christos 1744 1.1 christos CC=$ac_ct_CC 1745 1.1 christos else 1746 1.1 christos CC="$ac_cv_prog_CC" 1747 1.1 christos fi 1748 1.1 christos 1749 1.1 christos if test -z "$CC"; then 1750 1.1 christos if test -n "$ac_tool_prefix"; then 1751 1.1 christos # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1752 1.1 christos set dummy ${ac_tool_prefix}cc; ac_word=$2 1753 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 1754 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1755 1.1 christos if test "${ac_cv_prog_CC+set}" = set; then 1756 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 1757 1.1 christos else 1758 1.1 christos if test -n "$CC"; then 1759 1.1 christos ac_cv_prog_CC="$CC" # Let the user override the test. 1760 1.1 christos else 1761 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1762 1.1 christos for as_dir in $PATH 1763 1.1 christos do 1764 1.1 christos IFS=$as_save_IFS 1765 1.1 christos test -z "$as_dir" && as_dir=. 1766 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 1767 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1768 1.1 christos ac_cv_prog_CC="${ac_tool_prefix}cc" 1769 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1770 1.1 christos break 2 1771 1.1 christos fi 1772 1.1 christos done 1773 1.1 christos done 1774 1.1 christos 1775 1.1 christos fi 1776 1.1 christos fi 1777 1.1 christos CC=$ac_cv_prog_CC 1778 1.1 christos if test -n "$CC"; then 1779 1.1 christos echo "$as_me:$LINENO: result: $CC" >&5 1780 1.1 christos echo "${ECHO_T}$CC" >&6 1781 1.1 christos else 1782 1.1 christos echo "$as_me:$LINENO: result: no" >&5 1783 1.1 christos echo "${ECHO_T}no" >&6 1784 1.1 christos fi 1785 1.1 christos 1786 1.1 christos fi 1787 1.1 christos if test -z "$ac_cv_prog_CC"; then 1788 1.1 christos ac_ct_CC=$CC 1789 1.1 christos # Extract the first word of "cc", so it can be a program name with args. 1790 1.1 christos set dummy cc; ac_word=$2 1791 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 1792 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1793 1.1 christos if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1794 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 1795 1.1 christos else 1796 1.1 christos if test -n "$ac_ct_CC"; then 1797 1.1 christos ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1798 1.1 christos else 1799 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1800 1.1 christos for as_dir in $PATH 1801 1.1 christos do 1802 1.1 christos IFS=$as_save_IFS 1803 1.1 christos test -z "$as_dir" && as_dir=. 1804 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 1805 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1806 1.1 christos ac_cv_prog_ac_ct_CC="cc" 1807 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1808 1.1 christos break 2 1809 1.1 christos fi 1810 1.1 christos done 1811 1.1 christos done 1812 1.1 christos 1813 1.1 christos fi 1814 1.1 christos fi 1815 1.1 christos ac_ct_CC=$ac_cv_prog_ac_ct_CC 1816 1.1 christos if test -n "$ac_ct_CC"; then 1817 1.1 christos echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1818 1.1 christos echo "${ECHO_T}$ac_ct_CC" >&6 1819 1.1 christos else 1820 1.1 christos echo "$as_me:$LINENO: result: no" >&5 1821 1.1 christos echo "${ECHO_T}no" >&6 1822 1.1 christos fi 1823 1.1 christos 1824 1.1 christos CC=$ac_ct_CC 1825 1.1 christos else 1826 1.1 christos CC="$ac_cv_prog_CC" 1827 1.1 christos fi 1828 1.1 christos 1829 1.1 christos fi 1830 1.1 christos if test -z "$CC"; then 1831 1.1 christos # Extract the first word of "cc", so it can be a program name with args. 1832 1.1 christos set dummy cc; ac_word=$2 1833 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 1834 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1835 1.1 christos if test "${ac_cv_prog_CC+set}" = set; then 1836 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 1837 1.1 christos else 1838 1.1 christos if test -n "$CC"; then 1839 1.1 christos ac_cv_prog_CC="$CC" # Let the user override the test. 1840 1.1 christos else 1841 1.1 christos ac_prog_rejected=no 1842 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1843 1.1 christos for as_dir in $PATH 1844 1.1 christos do 1845 1.1 christos IFS=$as_save_IFS 1846 1.1 christos test -z "$as_dir" && as_dir=. 1847 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 1848 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1849 1.1 christos if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1850 1.1 christos ac_prog_rejected=yes 1851 1.1 christos continue 1852 1.1 christos fi 1853 1.1 christos ac_cv_prog_CC="cc" 1854 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1855 1.1 christos break 2 1856 1.1 christos fi 1857 1.1 christos done 1858 1.1 christos done 1859 1.1 christos 1860 1.1 christos if test $ac_prog_rejected = yes; then 1861 1.1 christos # We found a bogon in the path, so make sure we never use it. 1862 1.1 christos set dummy $ac_cv_prog_CC 1863 1.1 christos shift 1864 1.1 christos if test $# != 0; then 1865 1.1 christos # We chose a different compiler from the bogus one. 1866 1.1 christos # However, it has the same basename, so the bogon will be chosen 1867 1.1 christos # first if we set CC to just the basename; use the full file name. 1868 1.1 christos shift 1869 1.1 christos set dummy "$as_dir/$ac_word" ${1+"$@"} 1870 1.1 christos shift 1871 1.1 christos ac_cv_prog_CC="$@" 1872 1.1 christos fi 1873 1.1 christos fi 1874 1.1 christos fi 1875 1.1 christos fi 1876 1.1 christos CC=$ac_cv_prog_CC 1877 1.1 christos if test -n "$CC"; then 1878 1.1 christos echo "$as_me:$LINENO: result: $CC" >&5 1879 1.1 christos echo "${ECHO_T}$CC" >&6 1880 1.1 christos else 1881 1.1 christos echo "$as_me:$LINENO: result: no" >&5 1882 1.1 christos echo "${ECHO_T}no" >&6 1883 1.1 christos fi 1884 1.1 christos 1885 1.1 christos fi 1886 1.1 christos if test -z "$CC"; then 1887 1.1 christos if test -n "$ac_tool_prefix"; then 1888 1.1 christos for ac_prog in cl 1889 1.1 christos do 1890 1.1 christos # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1891 1.1 christos set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1892 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 1893 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1894 1.1 christos if test "${ac_cv_prog_CC+set}" = set; then 1895 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 1896 1.1 christos else 1897 1.1 christos if test -n "$CC"; then 1898 1.1 christos ac_cv_prog_CC="$CC" # Let the user override the test. 1899 1.1 christos else 1900 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1901 1.1 christos for as_dir in $PATH 1902 1.1 christos do 1903 1.1 christos IFS=$as_save_IFS 1904 1.1 christos test -z "$as_dir" && as_dir=. 1905 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 1906 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1907 1.1 christos ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1908 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1909 1.1 christos break 2 1910 1.1 christos fi 1911 1.1 christos done 1912 1.1 christos done 1913 1.1 christos 1914 1.1 christos fi 1915 1.1 christos fi 1916 1.1 christos CC=$ac_cv_prog_CC 1917 1.1 christos if test -n "$CC"; then 1918 1.1 christos echo "$as_me:$LINENO: result: $CC" >&5 1919 1.1 christos echo "${ECHO_T}$CC" >&6 1920 1.1 christos else 1921 1.1 christos echo "$as_me:$LINENO: result: no" >&5 1922 1.1 christos echo "${ECHO_T}no" >&6 1923 1.1 christos fi 1924 1.1 christos 1925 1.1 christos test -n "$CC" && break 1926 1.1 christos done 1927 1.1 christos fi 1928 1.1 christos if test -z "$CC"; then 1929 1.1 christos ac_ct_CC=$CC 1930 1.1 christos for ac_prog in cl 1931 1.1 christos do 1932 1.1 christos # Extract the first word of "$ac_prog", so it can be a program name with args. 1933 1.1 christos set dummy $ac_prog; ac_word=$2 1934 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 1935 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1936 1.1 christos if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1937 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 1938 1.1 christos else 1939 1.1 christos if test -n "$ac_ct_CC"; then 1940 1.1 christos ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1941 1.1 christos else 1942 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1943 1.1 christos for as_dir in $PATH 1944 1.1 christos do 1945 1.1 christos IFS=$as_save_IFS 1946 1.1 christos test -z "$as_dir" && as_dir=. 1947 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 1948 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1949 1.1 christos ac_cv_prog_ac_ct_CC="$ac_prog" 1950 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1951 1.1 christos break 2 1952 1.1 christos fi 1953 1.1 christos done 1954 1.1 christos done 1955 1.1 christos 1956 1.1 christos fi 1957 1.1 christos fi 1958 1.1 christos ac_ct_CC=$ac_cv_prog_ac_ct_CC 1959 1.1 christos if test -n "$ac_ct_CC"; then 1960 1.1 christos echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1961 1.1 christos echo "${ECHO_T}$ac_ct_CC" >&6 1962 1.1 christos else 1963 1.1 christos echo "$as_me:$LINENO: result: no" >&5 1964 1.1 christos echo "${ECHO_T}no" >&6 1965 1.1 christos fi 1966 1.1 christos 1967 1.1 christos test -n "$ac_ct_CC" && break 1968 1.1 christos done 1969 1.1 christos 1970 1.1 christos CC=$ac_ct_CC 1971 1.1 christos fi 1972 1.1 christos 1973 1.1 christos fi 1974 1.1 christos 1975 1.1 christos 1976 1.1 christos test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 1977 1.1 christos echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} 1978 1.1 christos { (exit 1); exit 1; }; } 1979 1.1 christos 1980 1.1 christos # Provide some information about the compiler. 1981 1.1 christos echo "$as_me:$LINENO:" \ 1982 1.1 christos "checking for C compiler version" >&5 1983 1.1 christos ac_compiler=`set X $ac_compile; echo $2` 1984 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1985 1.1 christos (eval $ac_compiler --version </dev/null >&5) 2>&5 1986 1.1 christos ac_status=$? 1987 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 1988 1.1 christos (exit $ac_status); } 1989 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1990 1.1 christos (eval $ac_compiler -v </dev/null >&5) 2>&5 1991 1.1 christos ac_status=$? 1992 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 1993 1.1 christos (exit $ac_status); } 1994 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1995 1.1 christos (eval $ac_compiler -V </dev/null >&5) 2>&5 1996 1.1 christos ac_status=$? 1997 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 1998 1.1 christos (exit $ac_status); } 1999 1.1 christos 2000 1.1 christos cat >conftest.$ac_ext <<_ACEOF 2001 1.1 christos #line $LINENO "configure" 2002 1.1 christos #include "confdefs.h" 2003 1.1 christos 2004 1.1 christos #ifdef F77_DUMMY_MAIN 2005 1.1 christos # ifdef __cplusplus 2006 1.1 christos extern "C" 2007 1.1 christos # endif 2008 1.1 christos int F77_DUMMY_MAIN() { return 1; } 2009 1.1 christos #endif 2010 1.1 christos int 2011 1.1 christos main () 2012 1.1 christos { 2013 1.1 christos 2014 1.1 christos ; 2015 1.1 christos return 0; 2016 1.1 christos } 2017 1.1 christos _ACEOF 2018 1.1 christos ac_clean_files_save=$ac_clean_files 2019 1.1 christos ac_clean_files="$ac_clean_files a.out a.exe" 2020 1.1 christos # Try to create an executable without -o first, disregard a.out. 2021 1.1 christos # It will help us diagnose broken compilers, and finding out an intuition 2022 1.1 christos # of exeext. 2023 1.1 christos echo "$as_me:$LINENO: checking for C compiler default output" >&5 2024 1.1 christos echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 2025 1.1 christos ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2026 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2027 1.1 christos (eval $ac_link_default) 2>&5 2028 1.1 christos ac_status=$? 2029 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2030 1.1 christos (exit $ac_status); }; then 2031 1.1 christos # Find the output, starting from the most likely. This scheme is 2032 1.1 christos # not robust to junk in `.', hence go to wildcards (a.*) only as a last 2033 1.1 christos # resort. 2034 1.1 christos 2035 1.1 christos # Be careful to initialize this variable, since it used to be cached. 2036 1.1 christos # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2037 1.1 christos ac_cv_exeext= 2038 1.1 christos for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; 2039 1.1 christos ls a.out conftest 2>/dev/null; 2040 1.1 christos ls a.* conftest.* 2>/dev/null`; do 2041 1.1 christos case $ac_file in 2042 1.1 christos *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; 2043 1.1 christos a.out ) # We found the default executable, but exeext='' is most 2044 1.1 christos # certainly right. 2045 1.1 christos break;; 2046 1.1 christos *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2047 1.1 christos # FIXME: I believe we export ac_cv_exeext for Libtool --akim. 2048 1.1 christos export ac_cv_exeext 2049 1.1 christos break;; 2050 1.1 christos * ) break;; 2051 1.1 christos esac 2052 1.1 christos done 2053 1.1 christos else 2054 1.1 christos echo "$as_me: failed program was:" >&5 2055 1.1 christos cat conftest.$ac_ext >&5 2056 1.1 christos { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5 2057 1.1 christos echo "$as_me: error: C compiler cannot create executables" >&2;} 2058 1.1 christos { (exit 77); exit 77; }; } 2059 1.1 christos fi 2060 1.1 christos 2061 1.1 christos ac_exeext=$ac_cv_exeext 2062 1.1 christos echo "$as_me:$LINENO: result: $ac_file" >&5 2063 1.1 christos echo "${ECHO_T}$ac_file" >&6 2064 1.1 christos 2065 1.1 christos # Check the compiler produces executables we can run. If not, either 2066 1.1 christos # the compiler is broken, or we cross compile. 2067 1.1 christos echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2068 1.1 christos echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2069 1.1 christos # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2070 1.1 christos # If not cross compiling, check that we can run a simple program. 2071 1.1 christos if test "$cross_compiling" != yes; then 2072 1.1 christos if { ac_try='./$ac_file' 2073 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2074 1.1 christos (eval $ac_try) 2>&5 2075 1.1 christos ac_status=$? 2076 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2077 1.1 christos (exit $ac_status); }; }; then 2078 1.1 christos cross_compiling=no 2079 1.1 christos else 2080 1.1 christos if test "$cross_compiling" = maybe; then 2081 1.1 christos cross_compiling=yes 2082 1.1 christos else 2083 1.1 christos { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2084 1.1 christos If you meant to cross compile, use \`--host'." >&5 2085 1.1 christos echo "$as_me: error: cannot run C compiled programs. 2086 1.1 christos If you meant to cross compile, use \`--host'." >&2;} 2087 1.1 christos { (exit 1); exit 1; }; } 2088 1.1 christos fi 2089 1.1 christos fi 2090 1.1 christos fi 2091 1.1 christos echo "$as_me:$LINENO: result: yes" >&5 2092 1.1 christos echo "${ECHO_T}yes" >&6 2093 1.1 christos 2094 1.1 christos rm -f a.out a.exe conftest$ac_cv_exeext 2095 1.1 christos ac_clean_files=$ac_clean_files_save 2096 1.1 christos # Check the compiler produces executables we can run. If not, either 2097 1.1 christos # the compiler is broken, or we cross compile. 2098 1.1 christos echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2099 1.1 christos echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2100 1.1 christos echo "$as_me:$LINENO: result: $cross_compiling" >&5 2101 1.1 christos echo "${ECHO_T}$cross_compiling" >&6 2102 1.1 christos 2103 1.1 christos echo "$as_me:$LINENO: checking for suffix of executables" >&5 2104 1.1 christos echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2105 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2106 1.1 christos (eval $ac_link) 2>&5 2107 1.1 christos ac_status=$? 2108 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2109 1.1 christos (exit $ac_status); }; then 2110 1.1 christos # If both `conftest.exe' and `conftest' are `present' (well, observable) 2111 1.1 christos # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2112 1.1 christos # work properly (i.e., refer to `conftest.exe'), while it won't with 2113 1.1 christos # `rm'. 2114 1.1 christos for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do 2115 1.1 christos case $ac_file in 2116 1.1 christos *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; 2117 1.1 christos *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2118 1.1 christos export ac_cv_exeext 2119 1.1 christos break;; 2120 1.1 christos * ) break;; 2121 1.1 christos esac 2122 1.1 christos done 2123 1.1 christos else 2124 1.1 christos { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 2125 1.1 christos echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} 2126 1.1 christos { (exit 1); exit 1; }; } 2127 1.1 christos fi 2128 1.1 christos 2129 1.1 christos rm -f conftest$ac_cv_exeext 2130 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2131 1.1 christos echo "${ECHO_T}$ac_cv_exeext" >&6 2132 1.1 christos 2133 1.1 christos rm -f conftest.$ac_ext 2134 1.1 christos EXEEXT=$ac_cv_exeext 2135 1.1 christos ac_exeext=$EXEEXT 2136 1.1 christos echo "$as_me:$LINENO: checking for suffix of object files" >&5 2137 1.1 christos echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2138 1.1 christos if test "${ac_cv_objext+set}" = set; then 2139 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 2140 1.1 christos else 2141 1.1 christos cat >conftest.$ac_ext <<_ACEOF 2142 1.1 christos #line $LINENO "configure" 2143 1.1 christos #include "confdefs.h" 2144 1.1 christos 2145 1.1 christos #ifdef F77_DUMMY_MAIN 2146 1.1 christos # ifdef __cplusplus 2147 1.1 christos extern "C" 2148 1.1 christos # endif 2149 1.1 christos int F77_DUMMY_MAIN() { return 1; } 2150 1.1 christos #endif 2151 1.1 christos int 2152 1.1 christos main () 2153 1.1 christos { 2154 1.1 christos 2155 1.1 christos ; 2156 1.1 christos return 0; 2157 1.1 christos } 2158 1.1 christos _ACEOF 2159 1.1 christos rm -f conftest.o conftest.obj 2160 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2161 1.1 christos (eval $ac_compile) 2>&5 2162 1.1 christos ac_status=$? 2163 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2164 1.1 christos (exit $ac_status); }; then 2165 1.1 christos for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2166 1.1 christos case $ac_file in 2167 1.1 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; 2168 1.1 christos *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2169 1.1 christos break;; 2170 1.1 christos esac 2171 1.1 christos done 2172 1.1 christos else 2173 1.1 christos echo "$as_me: failed program was:" >&5 2174 1.1 christos cat conftest.$ac_ext >&5 2175 1.1 christos { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 2176 1.1 christos echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} 2177 1.1 christos { (exit 1); exit 1; }; } 2178 1.1 christos fi 2179 1.1 christos 2180 1.1 christos rm -f conftest.$ac_cv_objext conftest.$ac_ext 2181 1.1 christos fi 2182 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2183 1.1 christos echo "${ECHO_T}$ac_cv_objext" >&6 2184 1.1 christos OBJEXT=$ac_cv_objext 2185 1.1 christos ac_objext=$OBJEXT 2186 1.1 christos echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2187 1.1 christos echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2188 1.1 christos if test "${ac_cv_c_compiler_gnu+set}" = set; then 2189 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 2190 1.1 christos else 2191 1.1 christos cat >conftest.$ac_ext <<_ACEOF 2192 1.1 christos #line $LINENO "configure" 2193 1.1 christos #include "confdefs.h" 2194 1.1 christos 2195 1.1 christos #ifdef F77_DUMMY_MAIN 2196 1.1 christos # ifdef __cplusplus 2197 1.1 christos extern "C" 2198 1.1 christos # endif 2199 1.1 christos int F77_DUMMY_MAIN() { return 1; } 2200 1.1 christos #endif 2201 1.1 christos int 2202 1.1 christos main () 2203 1.1 christos { 2204 1.1 christos #ifndef __GNUC__ 2205 1.1 christos choke me 2206 1.1 christos #endif 2207 1.1 christos 2208 1.1 christos ; 2209 1.1 christos return 0; 2210 1.1 christos } 2211 1.1 christos _ACEOF 2212 1.1 christos rm -f conftest.$ac_objext 2213 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2214 1.1 christos (eval $ac_compile) 2>&5 2215 1.1 christos ac_status=$? 2216 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2217 1.1 christos (exit $ac_status); } && 2218 1.1 christos { ac_try='test -s conftest.$ac_objext' 2219 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2220 1.1 christos (eval $ac_try) 2>&5 2221 1.1 christos ac_status=$? 2222 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2223 1.1 christos (exit $ac_status); }; }; then 2224 1.1 christos ac_compiler_gnu=yes 2225 1.1 christos else 2226 1.1 christos echo "$as_me: failed program was:" >&5 2227 1.1 christos cat conftest.$ac_ext >&5 2228 1.1 christos ac_compiler_gnu=no 2229 1.1 christos fi 2230 1.1 christos rm -f conftest.$ac_objext conftest.$ac_ext 2231 1.1 christos ac_cv_c_compiler_gnu=$ac_compiler_gnu 2232 1.1 christos 2233 1.1 christos fi 2234 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2235 1.1 christos echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2236 1.1 christos GCC=`test $ac_compiler_gnu = yes && echo yes` 2237 1.1 christos ac_test_CFLAGS=${CFLAGS+set} 2238 1.1 christos ac_save_CFLAGS=$CFLAGS 2239 1.1 christos CFLAGS="-g" 2240 1.1 christos echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2241 1.1 christos echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2242 1.1 christos if test "${ac_cv_prog_cc_g+set}" = set; then 2243 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 2244 1.1 christos else 2245 1.1 christos cat >conftest.$ac_ext <<_ACEOF 2246 1.1 christos #line $LINENO "configure" 2247 1.1 christos #include "confdefs.h" 2248 1.1 christos 2249 1.1 christos #ifdef F77_DUMMY_MAIN 2250 1.1 christos # ifdef __cplusplus 2251 1.1 christos extern "C" 2252 1.1 christos # endif 2253 1.1 christos int F77_DUMMY_MAIN() { return 1; } 2254 1.1 christos #endif 2255 1.1 christos int 2256 1.1 christos main () 2257 1.1 christos { 2258 1.1 christos 2259 1.1 christos ; 2260 1.1 christos return 0; 2261 1.1 christos } 2262 1.1 christos _ACEOF 2263 1.1 christos rm -f conftest.$ac_objext 2264 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2265 1.1 christos (eval $ac_compile) 2>&5 2266 1.1 christos ac_status=$? 2267 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2268 1.1 christos (exit $ac_status); } && 2269 1.1 christos { ac_try='test -s conftest.$ac_objext' 2270 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2271 1.1 christos (eval $ac_try) 2>&5 2272 1.1 christos ac_status=$? 2273 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2274 1.1 christos (exit $ac_status); }; }; then 2275 1.1 christos ac_cv_prog_cc_g=yes 2276 1.1 christos else 2277 1.1 christos echo "$as_me: failed program was:" >&5 2278 1.1 christos cat conftest.$ac_ext >&5 2279 1.1 christos ac_cv_prog_cc_g=no 2280 1.1 christos fi 2281 1.1 christos rm -f conftest.$ac_objext conftest.$ac_ext 2282 1.1 christos fi 2283 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2284 1.1 christos echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2285 1.1 christos if test "$ac_test_CFLAGS" = set; then 2286 1.1 christos CFLAGS=$ac_save_CFLAGS 2287 1.1 christos elif test $ac_cv_prog_cc_g = yes; then 2288 1.1 christos if test "$GCC" = yes; then 2289 1.1 christos CFLAGS="-g -O2" 2290 1.1 christos else 2291 1.1 christos CFLAGS="-g" 2292 1.1 christos fi 2293 1.1 christos else 2294 1.1 christos if test "$GCC" = yes; then 2295 1.1 christos CFLAGS="-O2" 2296 1.1 christos else 2297 1.1 christos CFLAGS= 2298 1.1 christos fi 2299 1.1 christos fi 2300 1.1 christos # Some people use a C++ compiler to compile C. Since we use `exit', 2301 1.1 christos # in C++ we need to declare it. In case someone uses the same compiler 2302 1.1 christos # for both compiling C and C++ we need to have the C++ compiler decide 2303 1.1 christos # the declaration of exit, since it's the most demanding environment. 2304 1.1 christos cat >conftest.$ac_ext <<_ACEOF 2305 1.1 christos #ifndef __cplusplus 2306 1.1 christos choke me 2307 1.1 christos #endif 2308 1.1 christos _ACEOF 2309 1.1 christos rm -f conftest.$ac_objext 2310 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2311 1.1 christos (eval $ac_compile) 2>&5 2312 1.1 christos ac_status=$? 2313 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2314 1.1 christos (exit $ac_status); } && 2315 1.1 christos { ac_try='test -s conftest.$ac_objext' 2316 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2317 1.1 christos (eval $ac_try) 2>&5 2318 1.1 christos ac_status=$? 2319 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2320 1.1 christos (exit $ac_status); }; }; then 2321 1.1 christos for ac_declaration in \ 2322 1.1 christos ''\ 2323 1.1 christos '#include <stdlib.h>' \ 2324 1.1 christos 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2325 1.1 christos 'extern "C" void std::exit (int); using std::exit;' \ 2326 1.1 christos 'extern "C" void exit (int) throw ();' \ 2327 1.1 christos 'extern "C" void exit (int);' \ 2328 1.1 christos 'void exit (int);' 2329 1.1 christos do 2330 1.1 christos cat >conftest.$ac_ext <<_ACEOF 2331 1.1 christos #line $LINENO "configure" 2332 1.1 christos #include "confdefs.h" 2333 1.1 christos #include <stdlib.h> 2334 1.1 christos $ac_declaration 2335 1.1 christos #ifdef F77_DUMMY_MAIN 2336 1.1 christos # ifdef __cplusplus 2337 1.1 christos extern "C" 2338 1.1 christos # endif 2339 1.1 christos int F77_DUMMY_MAIN() { return 1; } 2340 1.1 christos #endif 2341 1.1 christos int 2342 1.1 christos main () 2343 1.1 christos { 2344 1.1 christos exit (42); 2345 1.1 christos ; 2346 1.1 christos return 0; 2347 1.1 christos } 2348 1.1 christos _ACEOF 2349 1.1 christos rm -f conftest.$ac_objext 2350 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2351 1.1 christos (eval $ac_compile) 2>&5 2352 1.1 christos ac_status=$? 2353 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2354 1.1 christos (exit $ac_status); } && 2355 1.1 christos { ac_try='test -s conftest.$ac_objext' 2356 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2357 1.1 christos (eval $ac_try) 2>&5 2358 1.1 christos ac_status=$? 2359 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2360 1.1 christos (exit $ac_status); }; }; then 2361 1.1 christos : 2362 1.1 christos else 2363 1.1 christos echo "$as_me: failed program was:" >&5 2364 1.1 christos cat conftest.$ac_ext >&5 2365 1.1 christos continue 2366 1.1 christos fi 2367 1.1 christos rm -f conftest.$ac_objext conftest.$ac_ext 2368 1.1 christos cat >conftest.$ac_ext <<_ACEOF 2369 1.1 christos #line $LINENO "configure" 2370 1.1 christos #include "confdefs.h" 2371 1.1 christos $ac_declaration 2372 1.1 christos #ifdef F77_DUMMY_MAIN 2373 1.1 christos # ifdef __cplusplus 2374 1.1 christos extern "C" 2375 1.1 christos # endif 2376 1.1 christos int F77_DUMMY_MAIN() { return 1; } 2377 1.1 christos #endif 2378 1.1 christos int 2379 1.1 christos main () 2380 1.1 christos { 2381 1.1 christos exit (42); 2382 1.1 christos ; 2383 1.1 christos return 0; 2384 1.1 christos } 2385 1.1 christos _ACEOF 2386 1.1 christos rm -f conftest.$ac_objext 2387 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2388 1.1 christos (eval $ac_compile) 2>&5 2389 1.1 christos ac_status=$? 2390 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2391 1.1 christos (exit $ac_status); } && 2392 1.1 christos { ac_try='test -s conftest.$ac_objext' 2393 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2394 1.1 christos (eval $ac_try) 2>&5 2395 1.1 christos ac_status=$? 2396 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2397 1.1 christos (exit $ac_status); }; }; then 2398 1.1 christos break 2399 1.1 christos else 2400 1.1 christos echo "$as_me: failed program was:" >&5 2401 1.1 christos cat conftest.$ac_ext >&5 2402 1.1 christos fi 2403 1.1 christos rm -f conftest.$ac_objext conftest.$ac_ext 2404 1.1 christos done 2405 1.1 christos rm -f conftest* 2406 1.1 christos if test -n "$ac_declaration"; then 2407 1.1 christos echo '#ifdef __cplusplus' >>confdefs.h 2408 1.1 christos echo $ac_declaration >>confdefs.h 2409 1.1 christos echo '#endif' >>confdefs.h 2410 1.1 christos fi 2411 1.1 christos 2412 1.1 christos else 2413 1.1 christos echo "$as_me: failed program was:" >&5 2414 1.1 christos cat conftest.$ac_ext >&5 2415 1.1 christos fi 2416 1.1 christos rm -f conftest.$ac_objext conftest.$ac_ext 2417 1.1 christos ac_ext=c 2418 1.1 christos ac_cpp='$CPP $CPPFLAGS' 2419 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2420 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2421 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu 2422 1.1 christos 2423 1.1 christos ac_config_commands="$ac_config_commands default-1" 2424 1.1 christos 2425 1.1 christos am_make=${MAKE-make} 2426 1.1 christos cat > confinc << 'END' 2427 1.1 christos doit: 2428 1.1 christos @echo done 2429 1.1 christos END 2430 1.1 christos # If we don't find an include directive, just comment out the code. 2431 1.1 christos echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2432 1.1 christos echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2433 1.1 christos am__include='#' 2434 1.1 christos am__quote= 2435 1.1 christos _am_result=none 2436 1.1 christos # First try GNU make style include. 2437 1.1 christos echo "include confinc" > confmf 2438 1.1 christos # We grep out `Entering directory' and `Leaving directory' 2439 1.1 christos # messages which can occur if `w' ends up in MAKEFLAGS. 2440 1.1 christos # In particular we don't look at `^make:' because GNU make might 2441 1.1 christos # be invoked under some other name (usually "gmake"), in which 2442 1.1 christos # case it prints its new name instead of `make'. 2443 1.1 christos if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then 2444 1.1 christos am__include=include 2445 1.1 christos am__quote= 2446 1.1 christos _am_result=GNU 2447 1.1 christos fi 2448 1.1 christos # Now try BSD make style include. 2449 1.1 christos if test "$am__include" = "#"; then 2450 1.1 christos echo '.include "confinc"' > confmf 2451 1.1 christos if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2452 1.1 christos am__include=.include 2453 1.1 christos am__quote='"' 2454 1.1 christos _am_result=BSD 2455 1.1 christos fi 2456 1.1 christos fi 2457 1.1 christos 2458 1.1 christos 2459 1.1 christos echo "$as_me:$LINENO: result: $_am_result" >&5 2460 1.1 christos echo "${ECHO_T}$_am_result" >&6 2461 1.1 christos rm -f confinc confmf 2462 1.1 christos 2463 1.1 christos 2464 1.1 christos depcc="$CC" am_compiler_list= 2465 1.1 christos 2466 1.1 christos echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 2467 1.1 christos echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 2468 1.1 christos if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 2469 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 2470 1.1 christos else 2471 1.1 christos if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 2472 1.1 christos # We make a subdir and do the tests there. Otherwise we can end up 2473 1.1 christos # making bogus files that we don't know about and never remove. For 2474 1.1 christos # instance it was reported that on HP-UX the gcc test will end up 2475 1.1 christos # making a dummy file named `D' -- because `-MD' means `put the output 2476 1.1 christos # in D'. 2477 1.1 christos mkdir conftest.dir 2478 1.1 christos # Copy depcomp to subdir because otherwise we won't find it if we're 2479 1.1 christos # using a relative directory. 2480 1.1 christos cp "$am_depcomp" conftest.dir 2481 1.1 christos cd conftest.dir 2482 1.1 christos 2483 1.1 christos am_cv_CC_dependencies_compiler_type=none 2484 1.1 christos if test "$am_compiler_list" = ""; then 2485 1.1 christos am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 2486 1.1 christos fi 2487 1.1 christos for depmode in $am_compiler_list; do 2488 1.1 christos # We need to recreate these files for each test, as the compiler may 2489 1.1 christos # overwrite some of them when testing with obscure command lines. 2490 1.1 christos # This happens at least with the AIX C compiler. 2491 1.1 christos echo '#include "conftest.h"' > conftest.c 2492 1.1 christos echo 'int i;' > conftest.h 2493 1.1 christos echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf 2494 1.1 christos 2495 1.1 christos case $depmode in 2496 1.1 christos nosideeffect) 2497 1.1 christos # after this tag, mechanisms are not by side-effect, so they'll 2498 1.1 christos # only be used when explicitly requested 2499 1.1 christos if test "x$enable_dependency_tracking" = xyes; then 2500 1.1 christos continue 2501 1.1 christos else 2502 1.1 christos break 2503 1.1 christos fi 2504 1.1 christos ;; 2505 1.1 christos none) break ;; 2506 1.1 christos esac 2507 1.1 christos # We check with `-c' and `-o' for the sake of the "dashmstdout" 2508 1.1 christos # mode. It turns out that the SunPro C++ compiler does not properly 2509 1.1 christos # handle `-M -o', and we need to detect this. 2510 1.1 christos if depmode=$depmode \ 2511 1.1 christos source=conftest.c object=conftest.o \ 2512 1.1 christos depfile=conftest.Po tmpdepfile=conftest.TPo \ 2513 1.1 christos $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && 2514 1.1 christos grep conftest.h conftest.Po > /dev/null 2>&1 && 2515 1.1 christos ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 2516 1.1 christos am_cv_CC_dependencies_compiler_type=$depmode 2517 1.1 christos break 2518 1.1 christos fi 2519 1.1 christos done 2520 1.1 christos 2521 1.1 christos cd .. 2522 1.1 christos rm -rf conftest.dir 2523 1.1 christos else 2524 1.1 christos am_cv_CC_dependencies_compiler_type=none 2525 1.1 christos fi 2526 1.1 christos 2527 1.1 christos fi 2528 1.1 christos echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 2529 1.1 christos echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 2530 1.1 christos CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type" 2531 1.1 christos 2532 1.1 christos 2533 1.1 christos # Find a good install program. We prefer a C program (faster), 2534 1.1 christos # so one script is as good as another. But avoid the broken or 2535 1.1 christos # incompatible versions: 2536 1.1 christos # SysV /etc/install, /usr/sbin/install 2537 1.1 christos # SunOS /usr/etc/install 2538 1.1 christos # IRIX /sbin/install 2539 1.1 christos # AIX /bin/install 2540 1.1 christos # AmigaOS /C/install, which installs bootblocks on floppy discs 2541 1.1 christos # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2542 1.1 christos # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2543 1.1 christos # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2544 1.1 christos # ./install, which can be erroneously created by make from ./install.sh. 2545 1.1 christos echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2546 1.1 christos echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 2547 1.1 christos if test -z "$INSTALL"; then 2548 1.1 christos if test "${ac_cv_path_install+set}" = set; then 2549 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 2550 1.1 christos else 2551 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2552 1.1 christos for as_dir in $PATH 2553 1.1 christos do 2554 1.1 christos IFS=$as_save_IFS 2555 1.1 christos test -z "$as_dir" && as_dir=. 2556 1.1 christos # Account for people who put trailing slashes in PATH elements. 2557 1.1 christos case $as_dir/ in 2558 1.1 christos ./ | .// | /cC/* | \ 2559 1.1 christos /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2560 1.1 christos /usr/ucb/* ) ;; 2561 1.1 christos *) 2562 1.1 christos # OSF1 and SCO ODT 3.0 have their own names for install. 2563 1.1 christos # Don't use installbsd from OSF since it installs stuff as root 2564 1.1 christos # by default. 2565 1.1 christos for ac_prog in ginstall scoinst install; do 2566 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 2567 1.1 christos if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2568 1.1 christos if test $ac_prog = install && 2569 1.1 christos grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2570 1.1 christos # AIX install. It has an incompatible calling convention. 2571 1.1 christos : 2572 1.1 christos elif test $ac_prog = install && 2573 1.1 christos grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2574 1.1 christos # program-specific install script used by HP pwplus--don't use. 2575 1.1 christos : 2576 1.1 christos else 2577 1.1 christos ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2578 1.1 christos break 3 2579 1.1 christos fi 2580 1.1 christos fi 2581 1.1 christos done 2582 1.1 christos done 2583 1.1 christos ;; 2584 1.1 christos esac 2585 1.1 christos done 2586 1.1 christos 2587 1.1 christos 2588 1.1 christos fi 2589 1.1 christos if test "${ac_cv_path_install+set}" = set; then 2590 1.1 christos INSTALL=$ac_cv_path_install 2591 1.1 christos else 2592 1.1 christos # As a last resort, use the slow shell script. We don't cache a 2593 1.1 christos # path for INSTALL within a source directory, because that will 2594 1.1 christos # break other packages using the cache if that directory is 2595 1.1 christos # removed, or if the path is relative. 2596 1.1 christos INSTALL=$ac_install_sh 2597 1.1 christos fi 2598 1.1 christos fi 2599 1.1 christos echo "$as_me:$LINENO: result: $INSTALL" >&5 2600 1.1 christos echo "${ECHO_T}$INSTALL" >&6 2601 1.1 christos 2602 1.1 christos # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2603 1.1 christos # It thinks the first close brace ends the variable substitution. 2604 1.1 christos test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2605 1.1 christos 2606 1.1 christos test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2607 1.1 christos 2608 1.1 christos test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2609 1.1 christos 2610 1.1 christos if test -n "$ac_tool_prefix"; then 2611 1.1 christos # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 2612 1.1 christos set dummy ${ac_tool_prefix}ranlib; ac_word=$2 2613 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 2614 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2615 1.1 christos if test "${ac_cv_prog_RANLIB+set}" = set; then 2616 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 2617 1.1 christos else 2618 1.1 christos if test -n "$RANLIB"; then 2619 1.1 christos ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2620 1.1 christos else 2621 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2622 1.1 christos for as_dir in $PATH 2623 1.1 christos do 2624 1.1 christos IFS=$as_save_IFS 2625 1.1 christos test -z "$as_dir" && as_dir=. 2626 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 2627 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2628 1.1 christos ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 2629 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2630 1.1 christos break 2 2631 1.1 christos fi 2632 1.1 christos done 2633 1.1 christos done 2634 1.1 christos 2635 1.1 christos fi 2636 1.1 christos fi 2637 1.1 christos RANLIB=$ac_cv_prog_RANLIB 2638 1.1 christos if test -n "$RANLIB"; then 2639 1.1 christos echo "$as_me:$LINENO: result: $RANLIB" >&5 2640 1.1 christos echo "${ECHO_T}$RANLIB" >&6 2641 1.1 christos else 2642 1.1 christos echo "$as_me:$LINENO: result: no" >&5 2643 1.1 christos echo "${ECHO_T}no" >&6 2644 1.1 christos fi 2645 1.1 christos 2646 1.1 christos fi 2647 1.1 christos if test -z "$ac_cv_prog_RANLIB"; then 2648 1.1 christos ac_ct_RANLIB=$RANLIB 2649 1.1 christos # Extract the first word of "ranlib", so it can be a program name with args. 2650 1.1 christos set dummy ranlib; ac_word=$2 2651 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 2652 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2653 1.1 christos if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 2654 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 2655 1.1 christos else 2656 1.1 christos if test -n "$ac_ct_RANLIB"; then 2657 1.1 christos ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 2658 1.1 christos else 2659 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2660 1.1 christos for as_dir in $PATH 2661 1.1 christos do 2662 1.1 christos IFS=$as_save_IFS 2663 1.1 christos test -z "$as_dir" && as_dir=. 2664 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 2665 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2666 1.1 christos ac_cv_prog_ac_ct_RANLIB="ranlib" 2667 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2668 1.1 christos break 2 2669 1.1 christos fi 2670 1.1 christos done 2671 1.1 christos done 2672 1.1 christos 2673 1.1 christos test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 2674 1.1 christos fi 2675 1.1 christos fi 2676 1.1 christos ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 2677 1.1 christos if test -n "$ac_ct_RANLIB"; then 2678 1.1 christos echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 2679 1.1 christos echo "${ECHO_T}$ac_ct_RANLIB" >&6 2680 1.1 christos else 2681 1.1 christos echo "$as_me:$LINENO: result: no" >&5 2682 1.1 christos echo "${ECHO_T}no" >&6 2683 1.1 christos fi 2684 1.1 christos 2685 1.1 christos RANLIB=$ac_ct_RANLIB 2686 1.1 christos else 2687 1.1 christos RANLIB="$ac_cv_prog_RANLIB" 2688 1.1 christos fi 2689 1.1 christos 2690 1.1 christos 2691 1.1 christos 2692 1.1 christos 2693 1.1 christos # Check whether --enable-largefile or --disable-largefile was given. 2694 1.1 christos if test "${enable_largefile+set}" = set; then 2695 1.1 christos enableval="$enable_largefile" 2696 1.1 christos 2697 1.1 christos fi; 2698 1.1 christos if test "$enable_largefile" != no; then 2699 1.1 christos if test -n "$ac_tool_prefix"; then 2700 1.1 christos # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args. 2701 1.1 christos set dummy ${ac_tool_prefix}getconf; ac_word=$2 2702 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 2703 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2704 1.1 christos if test "${ac_cv_prog_GETCONF+set}" = set; then 2705 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 2706 1.1 christos else 2707 1.1 christos if test -n "$GETCONF"; then 2708 1.1 christos ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test. 2709 1.1 christos else 2710 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2711 1.1 christos for as_dir in $PATH 2712 1.1 christos do 2713 1.1 christos IFS=$as_save_IFS 2714 1.1 christos test -z "$as_dir" && as_dir=. 2715 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 2716 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2717 1.1 christos ac_cv_prog_GETCONF="${ac_tool_prefix}getconf" 2718 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2719 1.1 christos break 2 2720 1.1 christos fi 2721 1.1 christos done 2722 1.1 christos done 2723 1.1 christos 2724 1.1 christos fi 2725 1.1 christos fi 2726 1.1 christos GETCONF=$ac_cv_prog_GETCONF 2727 1.1 christos if test -n "$GETCONF"; then 2728 1.1 christos echo "$as_me:$LINENO: result: $GETCONF" >&5 2729 1.1 christos echo "${ECHO_T}$GETCONF" >&6 2730 1.1 christos else 2731 1.1 christos echo "$as_me:$LINENO: result: no" >&5 2732 1.1 christos echo "${ECHO_T}no" >&6 2733 1.1 christos fi 2734 1.1 christos 2735 1.1 christos fi 2736 1.1 christos if test -z "$ac_cv_prog_GETCONF"; then 2737 1.1 christos ac_ct_GETCONF=$GETCONF 2738 1.1 christos # Extract the first word of "getconf", so it can be a program name with args. 2739 1.1 christos set dummy getconf; ac_word=$2 2740 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 2741 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2742 1.1 christos if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then 2743 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 2744 1.1 christos else 2745 1.1 christos if test -n "$ac_ct_GETCONF"; then 2746 1.1 christos ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test. 2747 1.1 christos else 2748 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2749 1.1 christos for as_dir in $PATH 2750 1.1 christos do 2751 1.1 christos IFS=$as_save_IFS 2752 1.1 christos test -z "$as_dir" && as_dir=. 2753 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 2754 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2755 1.1 christos ac_cv_prog_ac_ct_GETCONF="getconf" 2756 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2757 1.1 christos break 2 2758 1.1 christos fi 2759 1.1 christos done 2760 1.1 christos done 2761 1.1 christos 2762 1.1 christos fi 2763 1.1 christos fi 2764 1.1 christos ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF 2765 1.1 christos if test -n "$ac_ct_GETCONF"; then 2766 1.1 christos echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5 2767 1.1 christos echo "${ECHO_T}$ac_ct_GETCONF" >&6 2768 1.1 christos else 2769 1.1 christos echo "$as_me:$LINENO: result: no" >&5 2770 1.1 christos echo "${ECHO_T}no" >&6 2771 1.1 christos fi 2772 1.1 christos 2773 1.1 christos GETCONF=$ac_ct_GETCONF 2774 1.1 christos else 2775 1.1 christos GETCONF="$ac_cv_prog_GETCONF" 2776 1.1 christos fi 2777 1.1 christos 2778 1.1 christos echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5 2779 1.1 christos echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6 2780 1.1 christos if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then 2781 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 2782 1.1 christos else 2783 1.1 christos if ($GETCONF LFS_CFLAGS) >conftest.1 2>conftest.2 && test ! -s conftest.2 2784 1.1 christos then 2785 1.1 christos ac_cv_sys_largefile_CFLAGS=`cat conftest.1` 2786 1.1 christos else 2787 1.1 christos ac_cv_sys_largefile_CFLAGS=no 2788 1.1 christos case "$host_os" in 2789 1.1 christos # HP-UX 10.20 requires -D__STDC_EXT__ with gcc 2.95.1. 2790 1.1 christos hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*) 2791 1.1 christos if test "$GCC" = yes; then 2792 1.1 christos ac_cv_sys_largefile_CFLAGS=-D__STDC_EXT__ 2793 1.1 christos fi 2794 1.1 christos ;; 2795 1.1 christos # IRIX 6.2 and later require cc -n32. 2796 1.1 christos irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*) 2797 1.1 christos if test "$GCC" != yes; then 2798 1.1 christos ac_cv_sys_largefile_CFLAGS=-n32 2799 1.1 christos fi 2800 1.1 christos esac 2801 1.1 christos if test "$ac_cv_sys_largefile_CFLAGS" != no; then 2802 1.1 christos ac_save_CC="$CC" 2803 1.1 christos CC="$CC $ac_cv_sys_largefile_CFLAGS" 2804 1.1 christos cat >conftest.$ac_ext <<_ACEOF 2805 1.1 christos #line $LINENO "configure" 2806 1.1 christos #include "confdefs.h" 2807 1.1 christos 2808 1.1 christos #ifdef F77_DUMMY_MAIN 2809 1.1 christos # ifdef __cplusplus 2810 1.1 christos extern "C" 2811 1.1 christos # endif 2812 1.1 christos int F77_DUMMY_MAIN() { return 1; } 2813 1.1 christos #endif 2814 1.1 christos int 2815 1.1 christos main () 2816 1.1 christos { 2817 1.1 christos 2818 1.1 christos ; 2819 1.1 christos return 0; 2820 1.1 christos } 2821 1.1 christos _ACEOF 2822 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 2823 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2824 1.1 christos (eval $ac_link) 2>&5 2825 1.1 christos ac_status=$? 2826 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2827 1.1 christos (exit $ac_status); } && 2828 1.1 christos { ac_try='test -s conftest$ac_exeext' 2829 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2830 1.1 christos (eval $ac_try) 2>&5 2831 1.1 christos ac_status=$? 2832 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2833 1.1 christos (exit $ac_status); }; }; then 2834 1.1 christos : 2835 1.1 christos else 2836 1.1 christos echo "$as_me: failed program was:" >&5 2837 1.1 christos cat conftest.$ac_ext >&5 2838 1.1 christos ac_cv_sys_largefile_CFLAGS=no 2839 1.1 christos fi 2840 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 2841 1.1 christos CC="$ac_save_CC" 2842 1.1 christos fi 2843 1.1 christos fi 2844 1.1 christos rm -f conftest* 2845 1.1 christos fi 2846 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5 2847 1.1 christos echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6 2848 1.1 christos echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5 2849 1.1 christos echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6 2850 1.1 christos if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then 2851 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 2852 1.1 christos else 2853 1.1 christos if ($GETCONF LFS_LDFLAGS) >conftest.1 2>conftest.2 && test ! -s conftest.2 2854 1.1 christos then 2855 1.1 christos ac_cv_sys_largefile_LDFLAGS=`cat conftest.1` 2856 1.1 christos else 2857 1.1 christos ac_cv_sys_largefile_LDFLAGS=no 2858 1.1 christos 2859 1.1 christos fi 2860 1.1 christos rm -f conftest* 2861 1.1 christos fi 2862 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5 2863 1.1 christos echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6 2864 1.1 christos echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5 2865 1.1 christos echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6 2866 1.1 christos if test "${ac_cv_sys_largefile_LIBS+set}" = set; then 2867 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 2868 1.1 christos else 2869 1.1 christos if ($GETCONF LFS_LIBS) >conftest.1 2>conftest.2 && test ! -s conftest.2 2870 1.1 christos then 2871 1.1 christos ac_cv_sys_largefile_LIBS=`cat conftest.1` 2872 1.1 christos else 2873 1.1 christos ac_cv_sys_largefile_LIBS=no 2874 1.1 christos 2875 1.1 christos fi 2876 1.1 christos rm -f conftest* 2877 1.1 christos fi 2878 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5 2879 1.1 christos echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6 2880 1.1 christos 2881 1.1 christos for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do 2882 1.1 christos case "$ac_flag" in 2883 1.1 christos no) ;; 2884 1.1 christos -D_FILE_OFFSET_BITS=*) ;; 2885 1.1 christos -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;; 2886 1.1 christos -D_LARGE_FILES | -D_LARGE_FILES=*) ;; 2887 1.1 christos -D?* | -I?*) 2888 1.1 christos case "$ac_flag" in 2889 1.1 christos no) ;; 2890 1.1 christos ?*) 2891 1.1 christos case "$CPPFLAGS" in 2892 1.1 christos '') CPPFLAGS="$ac_flag" ;; 2893 1.1 christos *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;; 2894 1.1 christos esac ;; 2895 1.1 christos esac ;; 2896 1.1 christos *) 2897 1.1 christos case "$ac_flag" in 2898 1.1 christos no) ;; 2899 1.1 christos ?*) 2900 1.1 christos case "$CFLAGS" in 2901 1.1 christos '') CFLAGS="$ac_flag" ;; 2902 1.1 christos *) CFLAGS=$CFLAGS' '"$ac_flag" ;; 2903 1.1 christos esac ;; 2904 1.1 christos esac ;; 2905 1.1 christos esac 2906 1.1 christos done 2907 1.1 christos case "$ac_cv_sys_largefile_LDFLAGS" in 2908 1.1 christos no) ;; 2909 1.1 christos ?*) 2910 1.1 christos case "$LDFLAGS" in 2911 1.1 christos '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;; 2912 1.1 christos *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;; 2913 1.1 christos esac ;; 2914 1.1 christos esac 2915 1.1 christos case "$ac_cv_sys_largefile_LIBS" in 2916 1.1 christos no) ;; 2917 1.1 christos ?*) 2918 1.1 christos case "$LIBS" in 2919 1.1 christos '') LIBS="$ac_cv_sys_largefile_LIBS" ;; 2920 1.1 christos *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;; 2921 1.1 christos esac ;; 2922 1.1 christos esac 2923 1.1 christos echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5 2924 1.1 christos echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6 2925 1.1 christos if test "${ac_cv_sys_file_offset_bits+set}" = set; then 2926 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 2927 1.1 christos else 2928 1.1 christos ac_cv_sys_file_offset_bits=no 2929 1.1 christos case "$host_os" in 2930 1.1 christos # HP-UX 10.20 and later 2931 1.1 christos hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*) 2932 1.1 christos ac_cv_sys_file_offset_bits=64 ;; 2933 1.1 christos esac 2934 1.1 christos for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do 2935 1.1 christos case "$ac_flag" in 2936 1.1 christos -D_FILE_OFFSET_BITS) 2937 1.1 christos ac_cv_sys_file_offset_bits=1 ;; 2938 1.1 christos -D_FILE_OFFSET_BITS=*) 2939 1.1 christos ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;; 2940 1.1 christos esac 2941 1.1 christos done 2942 1.1 christos 2943 1.1 christos fi 2944 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 2945 1.1 christos echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 2946 1.1 christos if test "$ac_cv_sys_file_offset_bits" != no; then 2947 1.1 christos 2948 1.1 christos cat >>confdefs.h <<_ACEOF 2949 1.1 christos #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 2950 1.1 christos _ACEOF 2951 1.1 christos 2952 1.1 christos fi 2953 1.1 christos echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5 2954 1.1 christos echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6 2955 1.1 christos if test "${ac_cv_sys_largefile_source+set}" = set; then 2956 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 2957 1.1 christos else 2958 1.1 christos ac_cv_sys_largefile_source=no 2959 1.1 christos case "$host_os" in 2960 1.1 christos # HP-UX 10.20 and later 2961 1.1 christos hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*) 2962 1.1 christos ac_cv_sys_largefile_source=1 ;; 2963 1.1 christos esac 2964 1.1 christos for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do 2965 1.1 christos case "$ac_flag" in 2966 1.1 christos -D_LARGEFILE_SOURCE) 2967 1.1 christos ac_cv_sys_largefile_source=1 ;; 2968 1.1 christos -D_LARGEFILE_SOURCE=*) 2969 1.1 christos ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;; 2970 1.1 christos esac 2971 1.1 christos done 2972 1.1 christos 2973 1.1 christos fi 2974 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 2975 1.1 christos echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 2976 1.1 christos if test "$ac_cv_sys_largefile_source" != no; then 2977 1.1 christos 2978 1.1 christos cat >>confdefs.h <<_ACEOF 2979 1.1 christos #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 2980 1.1 christos _ACEOF 2981 1.1 christos 2982 1.1 christos fi 2983 1.1 christos echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5 2984 1.1 christos echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6 2985 1.1 christos if test "${ac_cv_sys_large_files+set}" = set; then 2986 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 2987 1.1 christos else 2988 1.1 christos ac_cv_sys_large_files=no 2989 1.1 christos case "$host_os" in 2990 1.1 christos # AIX 4.2 and later 2991 1.1 christos aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*) 2992 1.1 christos ac_cv_sys_large_files=1 ;; 2993 1.1 christos esac 2994 1.1 christos for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do 2995 1.1 christos case "$ac_flag" in 2996 1.1 christos -D_LARGE_FILES) 2997 1.1 christos ac_cv_sys_large_files=1 ;; 2998 1.1 christos -D_LARGE_FILES=*) 2999 1.1 christos ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;; 3000 1.1 christos esac 3001 1.1 christos done 3002 1.1 christos 3003 1.1 christos fi 3004 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 3005 1.1 christos echo "${ECHO_T}$ac_cv_sys_large_files" >&6 3006 1.1 christos if test "$ac_cv_sys_large_files" != no; then 3007 1.1 christos 3008 1.1 christos cat >>confdefs.h <<_ACEOF 3009 1.1 christos #define _LARGE_FILES $ac_cv_sys_large_files 3010 1.1 christos _ACEOF 3011 1.1 christos 3012 1.1 christos fi 3013 1.1 christos fi 3014 1.1 christos 3015 1.1 christos 3016 1.1 christos 3017 1.1 christos 3018 1.1 christos echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5 3019 1.1 christos echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6 3020 1.1 christos if test "${am_cv_prog_cc_stdc+set}" = set; then 3021 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 3022 1.1 christos else 3023 1.1 christos am_cv_prog_cc_stdc=no 3024 1.1 christos ac_save_CC="$CC" 3025 1.1 christos # Don't try gcc -ansi; that turns off useful extensions and 3026 1.1 christos # breaks some systems' header files. 3027 1.1 christos # AIX -qlanglvl=ansi 3028 1.1 christos # Ultrix and OSF/1 -std1 3029 1.1 christos # HP-UX 10.20 and later -Ae 3030 1.1 christos # HP-UX older versions -Aa -D_HPUX_SOURCE 3031 1.1 christos # SVR4 -Xc -D__EXTENSIONS__ 3032 1.1 christos for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3033 1.1 christos do 3034 1.1 christos CC="$ac_save_CC $ac_arg" 3035 1.1 christos cat >conftest.$ac_ext <<_ACEOF 3036 1.1 christos #line $LINENO "configure" 3037 1.1 christos #include "confdefs.h" 3038 1.1 christos #include <stdarg.h> 3039 1.1 christos #include <stdio.h> 3040 1.1 christos #include <sys/types.h> 3041 1.1 christos #include <sys/stat.h> 3042 1.1 christos /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3043 1.1 christos struct buf { int x; }; 3044 1.1 christos FILE * (*rcsopen) (struct buf *, struct stat *, int); 3045 1.1 christos static char *e (p, i) 3046 1.1 christos char **p; 3047 1.1 christos int i; 3048 1.1 christos { 3049 1.1 christos return p[i]; 3050 1.1 christos } 3051 1.1 christos static char *f (char * (*g) (char **, int), char **p, ...) 3052 1.1 christos { 3053 1.1 christos char *s; 3054 1.1 christos va_list v; 3055 1.1 christos va_start (v,p); 3056 1.1 christos s = g (p, va_arg (v,int)); 3057 1.1 christos va_end (v); 3058 1.1 christos return s; 3059 1.1 christos } 3060 1.1 christos int test (int i, double x); 3061 1.1 christos struct s1 {int (*f) (int a);}; 3062 1.1 christos struct s2 {int (*f) (double a);}; 3063 1.1 christos int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3064 1.1 christos int argc; 3065 1.1 christos char **argv; 3066 1.1 christos 3067 1.1 christos #ifdef F77_DUMMY_MAIN 3068 1.1 christos # ifdef __cplusplus 3069 1.1 christos extern "C" 3070 1.1 christos # endif 3071 1.1 christos int F77_DUMMY_MAIN() { return 1; } 3072 1.1 christos #endif 3073 1.1 christos int 3074 1.1 christos main () 3075 1.1 christos { 3076 1.1 christos 3077 1.1 christos return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3078 1.1 christos 3079 1.1 christos ; 3080 1.1 christos return 0; 3081 1.1 christos } 3082 1.1 christos _ACEOF 3083 1.1 christos rm -f conftest.$ac_objext 3084 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3085 1.1 christos (eval $ac_compile) 2>&5 3086 1.1 christos ac_status=$? 3087 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3088 1.1 christos (exit $ac_status); } && 3089 1.1 christos { ac_try='test -s conftest.$ac_objext' 3090 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3091 1.1 christos (eval $ac_try) 2>&5 3092 1.1 christos ac_status=$? 3093 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3094 1.1 christos (exit $ac_status); }; }; then 3095 1.1 christos am_cv_prog_cc_stdc="$ac_arg"; break 3096 1.1 christos else 3097 1.1 christos echo "$as_me: failed program was:" >&5 3098 1.1 christos cat conftest.$ac_ext >&5 3099 1.1 christos fi 3100 1.1 christos rm -f conftest.$ac_objext conftest.$ac_ext 3101 1.1 christos done 3102 1.1 christos CC="$ac_save_CC" 3103 1.1 christos 3104 1.1 christos fi 3105 1.1 christos 3106 1.1 christos if test -z "$am_cv_prog_cc_stdc"; then 3107 1.1 christos echo "$as_me:$LINENO: result: none needed" >&5 3108 1.1 christos echo "${ECHO_T}none needed" >&6 3109 1.1 christos else 3110 1.1 christos echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5 3111 1.1 christos echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6 3112 1.1 christos fi 3113 1.1 christos case "x$am_cv_prog_cc_stdc" in 3114 1.1 christos x|xno) ;; 3115 1.1 christos *) CC="$CC $am_cv_prog_cc_stdc" ;; 3116 1.1 christos esac 3117 1.1 christos 3118 1.1 christos ac_ext=c 3119 1.1 christos ac_cpp='$CPP $CPPFLAGS' 3120 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3121 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3122 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu 3123 1.1 christos echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3124 1.1 christos echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3125 1.1 christos # On Suns, sometimes $CPP names a directory. 3126 1.1 christos if test -n "$CPP" && test -d "$CPP"; then 3127 1.1 christos CPP= 3128 1.1 christos fi 3129 1.1 christos if test -z "$CPP"; then 3130 1.1 christos if test "${ac_cv_prog_CPP+set}" = set; then 3131 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 3132 1.1 christos else 3133 1.1 christos # Double quotes because CPP needs to be expanded 3134 1.1 christos for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3135 1.1 christos do 3136 1.1 christos ac_preproc_ok=false 3137 1.1 christos for ac_c_preproc_warn_flag in '' yes 3138 1.1 christos do 3139 1.1 christos # Use a header file that comes with gcc, so configuring glibc 3140 1.1 christos # with a fresh cross-compiler works. 3141 1.1 christos # On the NeXT, cc -E runs the code through the compiler's parser, 3142 1.1 christos # not just through cpp. "Syntax error" is here to catch this case. 3143 1.1 christos cat >conftest.$ac_ext <<_ACEOF 3144 1.1 christos #line $LINENO "configure" 3145 1.1 christos #include "confdefs.h" 3146 1.1 christos #include <assert.h> 3147 1.1 christos Syntax error 3148 1.1 christos _ACEOF 3149 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3150 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3151 1.1 christos ac_status=$? 3152 1.1 christos egrep -v '^ *\+' conftest.er1 >conftest.err 3153 1.1 christos rm -f conftest.er1 3154 1.1 christos cat conftest.err >&5 3155 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3156 1.1 christos (exit $ac_status); } >/dev/null; then 3157 1.1 christos if test -s conftest.err; then 3158 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag 3159 1.1 christos else 3160 1.1 christos ac_cpp_err= 3161 1.1 christos fi 3162 1.1 christos else 3163 1.1 christos ac_cpp_err=yes 3164 1.1 christos fi 3165 1.1 christos if test -z "$ac_cpp_err"; then 3166 1.1 christos : 3167 1.1 christos else 3168 1.1 christos echo "$as_me: failed program was:" >&5 3169 1.1 christos cat conftest.$ac_ext >&5 3170 1.1 christos # Broken: fails on valid input. 3171 1.1 christos continue 3172 1.1 christos fi 3173 1.1 christos rm -f conftest.err conftest.$ac_ext 3174 1.1 christos 3175 1.1 christos # OK, works on sane cases. Now check whether non-existent headers 3176 1.1 christos # can be detected and how. 3177 1.1 christos cat >conftest.$ac_ext <<_ACEOF 3178 1.1 christos #line $LINENO "configure" 3179 1.1 christos #include "confdefs.h" 3180 1.1 christos #include <ac_nonexistent.h> 3181 1.1 christos _ACEOF 3182 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3183 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3184 1.1 christos ac_status=$? 3185 1.1 christos egrep -v '^ *\+' conftest.er1 >conftest.err 3186 1.1 christos rm -f conftest.er1 3187 1.1 christos cat conftest.err >&5 3188 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3189 1.1 christos (exit $ac_status); } >/dev/null; then 3190 1.1 christos if test -s conftest.err; then 3191 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag 3192 1.1 christos else 3193 1.1 christos ac_cpp_err= 3194 1.1 christos fi 3195 1.1 christos else 3196 1.1 christos ac_cpp_err=yes 3197 1.1 christos fi 3198 1.1 christos if test -z "$ac_cpp_err"; then 3199 1.1 christos # Broken: success on invalid input. 3200 1.1 christos continue 3201 1.1 christos else 3202 1.1 christos echo "$as_me: failed program was:" >&5 3203 1.1 christos cat conftest.$ac_ext >&5 3204 1.1 christos # Passes both tests. 3205 1.1 christos ac_preproc_ok=: 3206 1.1 christos break 3207 1.1 christos fi 3208 1.1 christos rm -f conftest.err conftest.$ac_ext 3209 1.1 christos 3210 1.1 christos done 3211 1.1 christos # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3212 1.1 christos rm -f conftest.err conftest.$ac_ext 3213 1.1 christos if $ac_preproc_ok; then 3214 1.1 christos break 3215 1.1 christos fi 3216 1.1 christos 3217 1.1 christos done 3218 1.1 christos ac_cv_prog_CPP=$CPP 3219 1.1 christos 3220 1.1 christos fi 3221 1.1 christos CPP=$ac_cv_prog_CPP 3222 1.1 christos else 3223 1.1 christos ac_cv_prog_CPP=$CPP 3224 1.1 christos fi 3225 1.1 christos echo "$as_me:$LINENO: result: $CPP" >&5 3226 1.1 christos echo "${ECHO_T}$CPP" >&6 3227 1.1 christos ac_preproc_ok=false 3228 1.1 christos for ac_c_preproc_warn_flag in '' yes 3229 1.1 christos do 3230 1.1 christos # Use a header file that comes with gcc, so configuring glibc 3231 1.1 christos # with a fresh cross-compiler works. 3232 1.1 christos # On the NeXT, cc -E runs the code through the compiler's parser, 3233 1.1 christos # not just through cpp. "Syntax error" is here to catch this case. 3234 1.1 christos cat >conftest.$ac_ext <<_ACEOF 3235 1.1 christos #line $LINENO "configure" 3236 1.1 christos #include "confdefs.h" 3237 1.1 christos #include <assert.h> 3238 1.1 christos Syntax error 3239 1.1 christos _ACEOF 3240 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3241 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3242 1.1 christos ac_status=$? 3243 1.1 christos egrep -v '^ *\+' conftest.er1 >conftest.err 3244 1.1 christos rm -f conftest.er1 3245 1.1 christos cat conftest.err >&5 3246 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3247 1.1 christos (exit $ac_status); } >/dev/null; then 3248 1.1 christos if test -s conftest.err; then 3249 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag 3250 1.1 christos else 3251 1.1 christos ac_cpp_err= 3252 1.1 christos fi 3253 1.1 christos else 3254 1.1 christos ac_cpp_err=yes 3255 1.1 christos fi 3256 1.1 christos if test -z "$ac_cpp_err"; then 3257 1.1 christos : 3258 1.1 christos else 3259 1.1 christos echo "$as_me: failed program was:" >&5 3260 1.1 christos cat conftest.$ac_ext >&5 3261 1.1 christos # Broken: fails on valid input. 3262 1.1 christos continue 3263 1.1 christos fi 3264 1.1 christos rm -f conftest.err conftest.$ac_ext 3265 1.1 christos 3266 1.1 christos # OK, works on sane cases. Now check whether non-existent headers 3267 1.1 christos # can be detected and how. 3268 1.1 christos cat >conftest.$ac_ext <<_ACEOF 3269 1.1 christos #line $LINENO "configure" 3270 1.1 christos #include "confdefs.h" 3271 1.1 christos #include <ac_nonexistent.h> 3272 1.1 christos _ACEOF 3273 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3274 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3275 1.1 christos ac_status=$? 3276 1.1 christos egrep -v '^ *\+' conftest.er1 >conftest.err 3277 1.1 christos rm -f conftest.er1 3278 1.1 christos cat conftest.err >&5 3279 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3280 1.1 christos (exit $ac_status); } >/dev/null; then 3281 1.1 christos if test -s conftest.err; then 3282 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag 3283 1.1 christos else 3284 1.1 christos ac_cpp_err= 3285 1.1 christos fi 3286 1.1 christos else 3287 1.1 christos ac_cpp_err=yes 3288 1.1 christos fi 3289 1.1 christos if test -z "$ac_cpp_err"; then 3290 1.1 christos # Broken: success on invalid input. 3291 1.1 christos continue 3292 1.1 christos else 3293 1.1 christos echo "$as_me: failed program was:" >&5 3294 1.1 christos cat conftest.$ac_ext >&5 3295 1.1 christos # Passes both tests. 3296 1.1 christos ac_preproc_ok=: 3297 1.1 christos break 3298 1.1 christos fi 3299 1.1 christos rm -f conftest.err conftest.$ac_ext 3300 1.1 christos 3301 1.1 christos done 3302 1.1 christos # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3303 1.1 christos rm -f conftest.err conftest.$ac_ext 3304 1.1 christos if $ac_preproc_ok; then 3305 1.1 christos : 3306 1.1 christos else 3307 1.1 christos { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 3308 1.1 christos echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} 3309 1.1 christos { (exit 1); exit 1; }; } 3310 1.1 christos fi 3311 1.1 christos 3312 1.1 christos ac_ext=c 3313 1.1 christos ac_cpp='$CPP $CPPFLAGS' 3314 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3315 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3316 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu 3317 1.1 christos 3318 1.1 christos 3319 1.1 christos # On IRIX 5.3, sys/types and inttypes.h are conflicting. 3320 1.1 christos 3321 1.1 christos 3322 1.1 christos 3323 1.1 christos 3324 1.1 christos 3325 1.1 christos 3326 1.1 christos 3327 1.1 christos 3328 1.1 christos 3329 1.1 christos for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3330 1.1 christos inttypes.h stdint.h unistd.h 3331 1.1 christos do 3332 1.1 christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3333 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 3334 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3335 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 3336 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 3337 1.1 christos else 3338 1.1 christos cat >conftest.$ac_ext <<_ACEOF 3339 1.1 christos #line $LINENO "configure" 3340 1.1 christos #include "confdefs.h" 3341 1.1 christos $ac_includes_default 3342 1.1 christos 3343 1.1 christos #include <$ac_header> 3344 1.1 christos _ACEOF 3345 1.1 christos rm -f conftest.$ac_objext 3346 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3347 1.1 christos (eval $ac_compile) 2>&5 3348 1.1 christos ac_status=$? 3349 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3350 1.1 christos (exit $ac_status); } && 3351 1.1 christos { ac_try='test -s conftest.$ac_objext' 3352 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3353 1.1 christos (eval $ac_try) 2>&5 3354 1.1 christos ac_status=$? 3355 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3356 1.1 christos (exit $ac_status); }; }; then 3357 1.1 christos eval "$as_ac_Header=yes" 3358 1.1 christos else 3359 1.1 christos echo "$as_me: failed program was:" >&5 3360 1.1 christos cat conftest.$ac_ext >&5 3361 1.1 christos eval "$as_ac_Header=no" 3362 1.1 christos fi 3363 1.1 christos rm -f conftest.$ac_objext conftest.$ac_ext 3364 1.1 christos fi 3365 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3366 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3367 1.1 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then 3368 1.1 christos cat >>confdefs.h <<_ACEOF 3369 1.1 christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3370 1.1 christos _ACEOF 3371 1.1 christos 3372 1.1 christos fi 3373 1.1 christos 3374 1.1 christos done 3375 1.1 christos 3376 1.1 christos 3377 1.1 christos 3378 1.1 christos 3379 1.1 christos echo "$as_me:$LINENO: checking for function prototypes" >&5 3380 1.1 christos echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 3381 1.1 christos if test "$am_cv_prog_cc_stdc" != no; then 3382 1.1 christos echo "$as_me:$LINENO: result: yes" >&5 3383 1.1 christos echo "${ECHO_T}yes" >&6 3384 1.1 christos 3385 1.1 christos cat >>confdefs.h <<\_ACEOF 3386 1.1 christos #define PROTOTYPES 1 3387 1.1 christos _ACEOF 3388 1.1 christos 3389 1.1 christos U= ANSI2KNR= 3390 1.1 christos else 3391 1.1 christos echo "$as_me:$LINENO: result: no" >&5 3392 1.1 christos echo "${ECHO_T}no" >&6 3393 1.1 christos U=_ ANSI2KNR=./ansi2knr 3394 1.1 christos fi 3395 1.1 christos # Ensure some checks needed by ansi2knr itself. 3396 1.1 christos echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3397 1.1 christos echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3398 1.1 christos if test "${ac_cv_header_stdc+set}" = set; then 3399 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 3400 1.1 christos else 3401 1.1 christos cat >conftest.$ac_ext <<_ACEOF 3402 1.1 christos #line $LINENO "configure" 3403 1.1 christos #include "confdefs.h" 3404 1.1 christos #include <stdlib.h> 3405 1.1 christos #include <stdarg.h> 3406 1.1 christos #include <string.h> 3407 1.1 christos #include <float.h> 3408 1.1 christos 3409 1.1 christos _ACEOF 3410 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3411 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3412 1.1 christos ac_status=$? 3413 1.1 christos egrep -v '^ *\+' conftest.er1 >conftest.err 3414 1.1 christos rm -f conftest.er1 3415 1.1 christos cat conftest.err >&5 3416 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3417 1.1 christos (exit $ac_status); } >/dev/null; then 3418 1.1 christos if test -s conftest.err; then 3419 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag 3420 1.1 christos else 3421 1.1 christos ac_cpp_err= 3422 1.1 christos fi 3423 1.1 christos else 3424 1.1 christos ac_cpp_err=yes 3425 1.1 christos fi 3426 1.1 christos if test -z "$ac_cpp_err"; then 3427 1.1 christos ac_cv_header_stdc=yes 3428 1.1 christos else 3429 1.1 christos echo "$as_me: failed program was:" >&5 3430 1.1 christos cat conftest.$ac_ext >&5 3431 1.1 christos ac_cv_header_stdc=no 3432 1.1 christos fi 3433 1.1 christos rm -f conftest.err conftest.$ac_ext 3434 1.1 christos 3435 1.1 christos if test $ac_cv_header_stdc = yes; then 3436 1.1 christos # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3437 1.1 christos cat >conftest.$ac_ext <<_ACEOF 3438 1.1 christos #line $LINENO "configure" 3439 1.1 christos #include "confdefs.h" 3440 1.1 christos #include <string.h> 3441 1.1 christos 3442 1.1 christos _ACEOF 3443 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3444 1.1 christos egrep "memchr" >/dev/null 2>&1; then 3445 1.1 christos : 3446 1.1 christos else 3447 1.1 christos ac_cv_header_stdc=no 3448 1.1 christos fi 3449 1.1 christos rm -f conftest* 3450 1.1 christos 3451 1.1 christos fi 3452 1.1 christos 3453 1.1 christos if test $ac_cv_header_stdc = yes; then 3454 1.1 christos # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3455 1.1 christos cat >conftest.$ac_ext <<_ACEOF 3456 1.1 christos #line $LINENO "configure" 3457 1.1 christos #include "confdefs.h" 3458 1.1 christos #include <stdlib.h> 3459 1.1 christos 3460 1.1 christos _ACEOF 3461 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3462 1.1 christos egrep "free" >/dev/null 2>&1; then 3463 1.1 christos : 3464 1.1 christos else 3465 1.1 christos ac_cv_header_stdc=no 3466 1.1 christos fi 3467 1.1 christos rm -f conftest* 3468 1.1 christos 3469 1.1 christos fi 3470 1.1 christos 3471 1.1 christos if test $ac_cv_header_stdc = yes; then 3472 1.1 christos # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3473 1.1 christos if test "$cross_compiling" = yes; then 3474 1.1 christos : 3475 1.1 christos else 3476 1.1 christos cat >conftest.$ac_ext <<_ACEOF 3477 1.1 christos #line $LINENO "configure" 3478 1.1 christos #include "confdefs.h" 3479 1.1 christos #include <ctype.h> 3480 1.1 christos #if ((' ' & 0x0FF) == 0x020) 3481 1.1 christos # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3482 1.1 christos # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3483 1.1 christos #else 3484 1.1 christos # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 3485 1.1 christos || ('j' <= (c) && (c) <= 'r') \ 3486 1.1 christos || ('s' <= (c) && (c) <= 'z')) 3487 1.1 christos # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3488 1.1 christos #endif 3489 1.1 christos 3490 1.1 christos #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3491 1.1 christos int 3492 1.1 christos main () 3493 1.1 christos { 3494 1.1 christos int i; 3495 1.1 christos for (i = 0; i < 256; i++) 3496 1.1 christos if (XOR (islower (i), ISLOWER (i)) 3497 1.1 christos || toupper (i) != TOUPPER (i)) 3498 1.1 christos exit(2); 3499 1.1 christos exit (0); 3500 1.1 christos } 3501 1.1 christos _ACEOF 3502 1.1 christos rm -f conftest$ac_exeext 3503 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3504 1.1 christos (eval $ac_link) 2>&5 3505 1.1 christos ac_status=$? 3506 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3507 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3508 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3509 1.1 christos (eval $ac_try) 2>&5 3510 1.1 christos ac_status=$? 3511 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3512 1.1 christos (exit $ac_status); }; }; then 3513 1.1 christos : 3514 1.1 christos else 3515 1.1 christos echo "$as_me: program exited with status $ac_status" >&5 3516 1.1 christos echo "$as_me: failed program was:" >&5 3517 1.1 christos cat conftest.$ac_ext >&5 3518 1.1 christos ( exit $ac_status ) 3519 1.1 christos ac_cv_header_stdc=no 3520 1.1 christos fi 3521 1.1 christos rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3522 1.1 christos fi 3523 1.1 christos fi 3524 1.1 christos fi 3525 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3526 1.1 christos echo "${ECHO_T}$ac_cv_header_stdc" >&6 3527 1.1 christos if test $ac_cv_header_stdc = yes; then 3528 1.1 christos 3529 1.1 christos cat >>confdefs.h <<\_ACEOF 3530 1.1 christos #define STDC_HEADERS 1 3531 1.1 christos _ACEOF 3532 1.1 christos 3533 1.1 christos fi 3534 1.1 christos 3535 1.1 christos 3536 1.1 christos for ac_header in string.h 3537 1.1 christos do 3538 1.1 christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3539 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 3540 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 3541 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3542 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 3543 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 3544 1.1 christos fi 3545 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3546 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3547 1.1 christos else 3548 1.1 christos # Is the header compilable? 3549 1.1 christos echo "$as_me:$LINENO: checking $ac_header usability" >&5 3550 1.1 christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 3551 1.1 christos cat >conftest.$ac_ext <<_ACEOF 3552 1.1 christos #line $LINENO "configure" 3553 1.1 christos #include "confdefs.h" 3554 1.1 christos $ac_includes_default 3555 1.1 christos #include <$ac_header> 3556 1.1 christos _ACEOF 3557 1.1 christos rm -f conftest.$ac_objext 3558 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3559 1.1 christos (eval $ac_compile) 2>&5 3560 1.1 christos ac_status=$? 3561 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3562 1.1 christos (exit $ac_status); } && 3563 1.1 christos { ac_try='test -s conftest.$ac_objext' 3564 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3565 1.1 christos (eval $ac_try) 2>&5 3566 1.1 christos ac_status=$? 3567 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3568 1.1 christos (exit $ac_status); }; }; then 3569 1.1 christos ac_header_compiler=yes 3570 1.1 christos else 3571 1.1 christos echo "$as_me: failed program was:" >&5 3572 1.1 christos cat conftest.$ac_ext >&5 3573 1.1 christos ac_header_compiler=no 3574 1.1 christos fi 3575 1.1 christos rm -f conftest.$ac_objext conftest.$ac_ext 3576 1.1 christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3577 1.1 christos echo "${ECHO_T}$ac_header_compiler" >&6 3578 1.1 christos 3579 1.1 christos # Is the header present? 3580 1.1 christos echo "$as_me:$LINENO: checking $ac_header presence" >&5 3581 1.1 christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 3582 1.1 christos cat >conftest.$ac_ext <<_ACEOF 3583 1.1 christos #line $LINENO "configure" 3584 1.1 christos #include "confdefs.h" 3585 1.1 christos #include <$ac_header> 3586 1.1 christos _ACEOF 3587 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3588 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3589 1.1 christos ac_status=$? 3590 1.1 christos egrep -v '^ *\+' conftest.er1 >conftest.err 3591 1.1 christos rm -f conftest.er1 3592 1.1 christos cat conftest.err >&5 3593 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3594 1.1 christos (exit $ac_status); } >/dev/null; then 3595 1.1 christos if test -s conftest.err; then 3596 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag 3597 1.1 christos else 3598 1.1 christos ac_cpp_err= 3599 1.1 christos fi 3600 1.1 christos else 3601 1.1 christos ac_cpp_err=yes 3602 1.1 christos fi 3603 1.1 christos if test -z "$ac_cpp_err"; then 3604 1.1 christos ac_header_preproc=yes 3605 1.1 christos else 3606 1.1 christos echo "$as_me: failed program was:" >&5 3607 1.1 christos cat conftest.$ac_ext >&5 3608 1.1 christos ac_header_preproc=no 3609 1.1 christos fi 3610 1.1 christos rm -f conftest.err conftest.$ac_ext 3611 1.1 christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3612 1.1 christos echo "${ECHO_T}$ac_header_preproc" >&6 3613 1.1 christos 3614 1.1 christos # So? What about this header? 3615 1.1 christos case $ac_header_compiler:$ac_header_preproc in 3616 1.1 christos yes:no ) 3617 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3618 1.1 christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3619 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3620 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 3621 1.1 christos no:yes ) 3622 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3623 1.1 christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3624 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3625 1.1 christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3626 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3627 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 3628 1.1 christos esac 3629 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 3630 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3631 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 3632 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 3633 1.1 christos else 3634 1.1 christos eval "$as_ac_Header=$ac_header_preproc" 3635 1.1 christos fi 3636 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3637 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3638 1.1 christos 3639 1.1 christos fi 3640 1.1 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then 3641 1.1 christos cat >>confdefs.h <<_ACEOF 3642 1.1 christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3643 1.1 christos _ACEOF 3644 1.1 christos 3645 1.1 christos fi 3646 1.1 christos 3647 1.1 christos done 3648 1.1 christos 3649 1.1 christos 3650 1.1 christos echo "$as_me:$LINENO: checking for size_t" >&5 3651 1.1 christos echo $ECHO_N "checking for size_t... $ECHO_C" >&6 3652 1.1 christos if test "${ac_cv_type_size_t+set}" = set; then 3653 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 3654 1.1 christos else 3655 1.1 christos cat >conftest.$ac_ext <<_ACEOF 3656 1.1 christos #line $LINENO "configure" 3657 1.1 christos #include "confdefs.h" 3658 1.1 christos $ac_includes_default 3659 1.1 christos #ifdef F77_DUMMY_MAIN 3660 1.1 christos # ifdef __cplusplus 3661 1.1 christos extern "C" 3662 1.1 christos # endif 3663 1.1 christos int F77_DUMMY_MAIN() { return 1; } 3664 1.1 christos #endif 3665 1.1 christos int 3666 1.1 christos main () 3667 1.1 christos { 3668 1.1 christos if ((size_t *) 0) 3669 1.1 christos return 0; 3670 1.1 christos if (sizeof (size_t)) 3671 1.1 christos return 0; 3672 1.1 christos ; 3673 1.1 christos return 0; 3674 1.1 christos } 3675 1.1 christos _ACEOF 3676 1.1 christos rm -f conftest.$ac_objext 3677 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3678 1.1 christos (eval $ac_compile) 2>&5 3679 1.1 christos ac_status=$? 3680 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3681 1.1 christos (exit $ac_status); } && 3682 1.1 christos { ac_try='test -s conftest.$ac_objext' 3683 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3684 1.1 christos (eval $ac_try) 2>&5 3685 1.1 christos ac_status=$? 3686 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3687 1.1 christos (exit $ac_status); }; }; then 3688 1.1 christos ac_cv_type_size_t=yes 3689 1.1 christos else 3690 1.1 christos echo "$as_me: failed program was:" >&5 3691 1.1 christos cat conftest.$ac_ext >&5 3692 1.1 christos ac_cv_type_size_t=no 3693 1.1 christos fi 3694 1.1 christos rm -f conftest.$ac_objext conftest.$ac_ext 3695 1.1 christos fi 3696 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 3697 1.1 christos echo "${ECHO_T}$ac_cv_type_size_t" >&6 3698 1.1 christos if test $ac_cv_type_size_t = yes; then 3699 1.1 christos : 3700 1.1 christos else 3701 1.1 christos 3702 1.1 christos cat >>confdefs.h <<_ACEOF 3703 1.1 christos #define size_t unsigned 3704 1.1 christos _ACEOF 3705 1.1 christos 3706 1.1 christos fi 3707 1.1 christos 3708 1.1 christos echo "$as_me:$LINENO: checking for ssize_t" >&5 3709 1.1 christos echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 3710 1.1 christos if test "${ac_cv_type_ssize_t+set}" = set; then 3711 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 3712 1.1 christos else 3713 1.1 christos cat >conftest.$ac_ext <<_ACEOF 3714 1.1 christos #line $LINENO "configure" 3715 1.1 christos #include "confdefs.h" 3716 1.1 christos $ac_includes_default 3717 1.1 christos #ifdef F77_DUMMY_MAIN 3718 1.1 christos # ifdef __cplusplus 3719 1.1 christos extern "C" 3720 1.1 christos # endif 3721 1.1 christos int F77_DUMMY_MAIN() { return 1; } 3722 1.1 christos #endif 3723 1.1 christos int 3724 1.1 christos main () 3725 1.1 christos { 3726 1.1 christos if ((ssize_t *) 0) 3727 1.1 christos return 0; 3728 1.1 christos if (sizeof (ssize_t)) 3729 1.1 christos return 0; 3730 1.1 christos ; 3731 1.1 christos return 0; 3732 1.1 christos } 3733 1.1 christos _ACEOF 3734 1.1 christos rm -f conftest.$ac_objext 3735 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3736 1.1 christos (eval $ac_compile) 2>&5 3737 1.1 christos ac_status=$? 3738 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3739 1.1 christos (exit $ac_status); } && 3740 1.1 christos { ac_try='test -s conftest.$ac_objext' 3741 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3742 1.1 christos (eval $ac_try) 2>&5 3743 1.1 christos ac_status=$? 3744 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3745 1.1 christos (exit $ac_status); }; }; then 3746 1.1 christos ac_cv_type_ssize_t=yes 3747 1.1 christos else 3748 1.1 christos echo "$as_me: failed program was:" >&5 3749 1.1 christos cat conftest.$ac_ext >&5 3750 1.1 christos ac_cv_type_ssize_t=no 3751 1.1 christos fi 3752 1.1 christos rm -f conftest.$ac_objext conftest.$ac_ext 3753 1.1 christos fi 3754 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 3755 1.1 christos echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 3756 1.1 christos if test $ac_cv_type_ssize_t = yes; then 3757 1.1 christos : 3758 1.1 christos else 3759 1.1 christos 3760 1.1 christos cat >>confdefs.h <<_ACEOF 3761 1.1 christos #define ssize_t int 3762 1.1 christos _ACEOF 3763 1.1 christos 3764 1.1 christos fi 3765 1.1 christos 3766 1.1 christos echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 3767 1.1 christos echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 3768 1.1 christos if test "${ac_cv_prog_cc_stdc+set}" = set; then 3769 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 3770 1.1 christos else 3771 1.1 christos ac_cv_prog_cc_stdc=no 3772 1.1 christos ac_save_CC=$CC 3773 1.1 christos cat >conftest.$ac_ext <<_ACEOF 3774 1.1 christos #line $LINENO "configure" 3775 1.1 christos #include "confdefs.h" 3776 1.1 christos #include <stdarg.h> 3777 1.1 christos #include <stdio.h> 3778 1.1 christos #include <sys/types.h> 3779 1.1 christos #include <sys/stat.h> 3780 1.1 christos /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3781 1.1 christos struct buf { int x; }; 3782 1.1 christos FILE * (*rcsopen) (struct buf *, struct stat *, int); 3783 1.1 christos static char *e (p, i) 3784 1.1 christos char **p; 3785 1.1 christos int i; 3786 1.1 christos { 3787 1.1 christos return p[i]; 3788 1.1 christos } 3789 1.1 christos static char *f (char * (*g) (char **, int), char **p, ...) 3790 1.1 christos { 3791 1.1 christos char *s; 3792 1.1 christos va_list v; 3793 1.1 christos va_start (v,p); 3794 1.1 christos s = g (p, va_arg (v,int)); 3795 1.1 christos va_end (v); 3796 1.1 christos return s; 3797 1.1 christos } 3798 1.1 christos int test (int i, double x); 3799 1.1 christos struct s1 {int (*f) (int a);}; 3800 1.1 christos struct s2 {int (*f) (double a);}; 3801 1.1 christos int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3802 1.1 christos int argc; 3803 1.1 christos char **argv; 3804 1.1 christos #ifdef F77_DUMMY_MAIN 3805 1.1 christos # ifdef __cplusplus 3806 1.1 christos extern "C" 3807 1.1 christos # endif 3808 1.1 christos int F77_DUMMY_MAIN() { return 1; } 3809 1.1 christos #endif 3810 1.1 christos int 3811 1.1 christos main () 3812 1.1 christos { 3813 1.1 christos return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3814 1.1 christos ; 3815 1.1 christos return 0; 3816 1.1 christos } 3817 1.1 christos _ACEOF 3818 1.1 christos # Don't try gcc -ansi; that turns off useful extensions and 3819 1.1 christos # breaks some systems' header files. 3820 1.1 christos # AIX -qlanglvl=ansi 3821 1.1 christos # Ultrix and OSF/1 -std1 3822 1.1 christos # HP-UX 10.20 and later -Ae 3823 1.1 christos # HP-UX older versions -Aa -D_HPUX_SOURCE 3824 1.1 christos # SVR4 -Xc -D__EXTENSIONS__ 3825 1.1 christos for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3826 1.1 christos do 3827 1.1 christos CC="$ac_save_CC $ac_arg" 3828 1.1 christos rm -f conftest.$ac_objext 3829 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3830 1.1 christos (eval $ac_compile) 2>&5 3831 1.1 christos ac_status=$? 3832 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3833 1.1 christos (exit $ac_status); } && 3834 1.1 christos { ac_try='test -s conftest.$ac_objext' 3835 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3836 1.1 christos (eval $ac_try) 2>&5 3837 1.1 christos ac_status=$? 3838 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3839 1.1 christos (exit $ac_status); }; }; then 3840 1.1 christos ac_cv_prog_cc_stdc=$ac_arg 3841 1.1 christos break 3842 1.1 christos else 3843 1.1 christos echo "$as_me: failed program was:" >&5 3844 1.1 christos cat conftest.$ac_ext >&5 3845 1.1 christos fi 3846 1.1 christos rm -f conftest.$ac_objext 3847 1.1 christos done 3848 1.1 christos rm -f conftest.$ac_ext conftest.$ac_objext 3849 1.1 christos CC=$ac_save_CC 3850 1.1 christos 3851 1.1 christos fi 3852 1.1 christos 3853 1.1 christos case "x$ac_cv_prog_cc_stdc" in 3854 1.1 christos x|xno) 3855 1.1 christos echo "$as_me:$LINENO: result: none needed" >&5 3856 1.1 christos echo "${ECHO_T}none needed" >&6 ;; 3857 1.1 christos *) 3858 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 3859 1.1 christos echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 3860 1.1 christos CC="$CC $ac_cv_prog_cc_stdc" ;; 3861 1.1 christos esac 3862 1.1 christos 3863 1.1 christos echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 3864 1.1 christos echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 3865 1.1 christos if test "${ac_cv_c_const+set}" = set; then 3866 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 3867 1.1 christos else 3868 1.1 christos cat >conftest.$ac_ext <<_ACEOF 3869 1.1 christos #line $LINENO "configure" 3870 1.1 christos #include "confdefs.h" 3871 1.1 christos 3872 1.1 christos #ifdef F77_DUMMY_MAIN 3873 1.1 christos # ifdef __cplusplus 3874 1.1 christos extern "C" 3875 1.1 christos # endif 3876 1.1 christos int F77_DUMMY_MAIN() { return 1; } 3877 1.1 christos #endif 3878 1.1 christos int 3879 1.1 christos main () 3880 1.1 christos { 3881 1.1 christos /* FIXME: Include the comments suggested by Paul. */ 3882 1.1 christos #ifndef __cplusplus 3883 1.1 christos /* Ultrix mips cc rejects this. */ 3884 1.1 christos typedef int charset[2]; 3885 1.1 christos const charset x; 3886 1.1 christos /* SunOS 4.1.1 cc rejects this. */ 3887 1.1 christos char const *const *ccp; 3888 1.1 christos char **p; 3889 1.1 christos /* NEC SVR4.0.2 mips cc rejects this. */ 3890 1.1 christos struct point {int x, y;}; 3891 1.1 christos static struct point const zero = {0,0}; 3892 1.1 christos /* AIX XL C 1.02.0.0 rejects this. 3893 1.1 christos It does not let you subtract one const X* pointer from another in 3894 1.1 christos an arm of an if-expression whose if-part is not a constant 3895 1.1 christos expression */ 3896 1.1 christos const char *g = "string"; 3897 1.1 christos ccp = &g + (g ? g-g : 0); 3898 1.1 christos /* HPUX 7.0 cc rejects these. */ 3899 1.1 christos ++ccp; 3900 1.1 christos p = (char**) ccp; 3901 1.1 christos ccp = (char const *const *) p; 3902 1.1 christos { /* SCO 3.2v4 cc rejects this. */ 3903 1.1 christos char *t; 3904 1.1 christos char const *s = 0 ? (char *) 0 : (char const *) 0; 3905 1.1 christos 3906 1.1 christos *t++ = 0; 3907 1.1 christos } 3908 1.1 christos { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 3909 1.1 christos int x[] = {25, 17}; 3910 1.1 christos const int *foo = &x[0]; 3911 1.1 christos ++foo; 3912 1.1 christos } 3913 1.1 christos { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 3914 1.1 christos typedef const int *iptr; 3915 1.1 christos iptr p = 0; 3916 1.1 christos ++p; 3917 1.1 christos } 3918 1.1 christos { /* AIX XL C 1.02.0.0 rejects this saying 3919 1.1 christos "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 3920 1.1 christos struct s { int j; const int *ap[3]; }; 3921 1.1 christos struct s *b; b->j = 5; 3922 1.1 christos } 3923 1.1 christos { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 3924 1.1 christos const int foo = 10; 3925 1.1 christos } 3926 1.1 christos #endif 3927 1.1 christos 3928 1.1 christos ; 3929 1.1 christos return 0; 3930 1.1 christos } 3931 1.1 christos _ACEOF 3932 1.1 christos rm -f conftest.$ac_objext 3933 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3934 1.1 christos (eval $ac_compile) 2>&5 3935 1.1 christos ac_status=$? 3936 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3937 1.1 christos (exit $ac_status); } && 3938 1.1 christos { ac_try='test -s conftest.$ac_objext' 3939 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3940 1.1 christos (eval $ac_try) 2>&5 3941 1.1 christos ac_status=$? 3942 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3943 1.1 christos (exit $ac_status); }; }; then 3944 1.1 christos ac_cv_c_const=yes 3945 1.1 christos else 3946 1.1 christos echo "$as_me: failed program was:" >&5 3947 1.1 christos cat conftest.$ac_ext >&5 3948 1.1 christos ac_cv_c_const=no 3949 1.1 christos fi 3950 1.1 christos rm -f conftest.$ac_objext conftest.$ac_ext 3951 1.1 christos fi 3952 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 3953 1.1 christos echo "${ECHO_T}$ac_cv_c_const" >&6 3954 1.1 christos if test $ac_cv_c_const = no; then 3955 1.1 christos 3956 1.1 christos cat >>confdefs.h <<\_ACEOF 3957 1.1 christos #define const 3958 1.1 christos _ACEOF 3959 1.1 christos 3960 1.1 christos fi 3961 1.1 christos 3962 1.1 christos 3963 1.1 christos echo "$as_me:$LINENO: checking for inttypes.h" >&5 3964 1.1 christos echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6 3965 1.1 christos if test "${jm_ac_cv_header_inttypes_h+set}" = set; then 3966 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 3967 1.1 christos else 3968 1.1 christos cat >conftest.$ac_ext <<_ACEOF 3969 1.1 christos #line $LINENO "configure" 3970 1.1 christos #include "confdefs.h" 3971 1.1 christos #include <sys/types.h> 3972 1.1 christos #include <inttypes.h> 3973 1.1 christos #ifdef F77_DUMMY_MAIN 3974 1.1 christos # ifdef __cplusplus 3975 1.1 christos extern "C" 3976 1.1 christos # endif 3977 1.1 christos int F77_DUMMY_MAIN() { return 1; } 3978 1.1 christos #endif 3979 1.1 christos int 3980 1.1 christos main () 3981 1.1 christos { 3982 1.1 christos uintmax_t i = (uintmax_t) -1; 3983 1.1 christos ; 3984 1.1 christos return 0; 3985 1.1 christos } 3986 1.1 christos _ACEOF 3987 1.1 christos rm -f conftest.$ac_objext 3988 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3989 1.1 christos (eval $ac_compile) 2>&5 3990 1.1 christos ac_status=$? 3991 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3992 1.1 christos (exit $ac_status); } && 3993 1.1 christos { ac_try='test -s conftest.$ac_objext' 3994 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3995 1.1 christos (eval $ac_try) 2>&5 3996 1.1 christos ac_status=$? 3997 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3998 1.1 christos (exit $ac_status); }; }; then 3999 1.1 christos jm_ac_cv_header_inttypes_h=yes 4000 1.1 christos else 4001 1.1 christos echo "$as_me: failed program was:" >&5 4002 1.1 christos cat conftest.$ac_ext >&5 4003 1.1 christos jm_ac_cv_header_inttypes_h=no 4004 1.1 christos fi 4005 1.1 christos rm -f conftest.$ac_objext conftest.$ac_ext 4006 1.1 christos fi 4007 1.1 christos echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5 4008 1.1 christos echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6 4009 1.1 christos if test $jm_ac_cv_header_inttypes_h = yes; then 4010 1.1 christos 4011 1.1 christos cat >>confdefs.h <<_ACEOF 4012 1.1 christos #define HAVE_INTTYPES_H 1 4013 1.1 christos _ACEOF 4014 1.1 christos 4015 1.1 christos fi 4016 1.1 christos 4017 1.1 christos 4018 1.1 christos echo "$as_me:$LINENO: checking for unsigned long long" >&5 4019 1.1 christos echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6 4020 1.1 christos if test "${ac_cv_type_unsigned_long_long+set}" = set; then 4021 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 4022 1.1 christos else 4023 1.1 christos cat >conftest.$ac_ext <<_ACEOF 4024 1.1 christos #line $LINENO "configure" 4025 1.1 christos #include "confdefs.h" 4026 1.1 christos unsigned long long ull = 1; int i = 63; 4027 1.1 christos #ifdef F77_DUMMY_MAIN 4028 1.1 christos # ifdef __cplusplus 4029 1.1 christos extern "C" 4030 1.1 christos # endif 4031 1.1 christos int F77_DUMMY_MAIN() { return 1; } 4032 1.1 christos #endif 4033 1.1 christos int 4034 1.1 christos main () 4035 1.1 christos { 4036 1.1 christos unsigned long long ullmax = (unsigned long long) -1; 4037 1.1 christos return ull << i | ull >> i | ullmax / ull | ullmax % ull; 4038 1.1 christos ; 4039 1.1 christos return 0; 4040 1.1 christos } 4041 1.1 christos _ACEOF 4042 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 4043 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4044 1.1 christos (eval $ac_link) 2>&5 4045 1.1 christos ac_status=$? 4046 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4047 1.1 christos (exit $ac_status); } && 4048 1.1 christos { ac_try='test -s conftest$ac_exeext' 4049 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4050 1.1 christos (eval $ac_try) 2>&5 4051 1.1 christos ac_status=$? 4052 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4053 1.1 christos (exit $ac_status); }; }; then 4054 1.1 christos ac_cv_type_unsigned_long_long=yes 4055 1.1 christos else 4056 1.1 christos echo "$as_me: failed program was:" >&5 4057 1.1 christos cat conftest.$ac_ext >&5 4058 1.1 christos ac_cv_type_unsigned_long_long=no 4059 1.1 christos fi 4060 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4061 1.1 christos fi 4062 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 4063 1.1 christos echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6 4064 1.1 christos if test $ac_cv_type_unsigned_long_long = yes; then 4065 1.1 christos 4066 1.1 christos cat >>confdefs.h <<\_ACEOF 4067 1.1 christos #define HAVE_UNSIGNED_LONG_LONG 1 4068 1.1 christos _ACEOF 4069 1.1 christos 4070 1.1 christos fi 4071 1.1 christos 4072 1.1 christos 4073 1.1 christos 4074 1.1 christos if test $jm_ac_cv_header_inttypes_h = no; then 4075 1.1 christos 4076 1.1 christos test $ac_cv_type_unsigned_long_long = yes \ 4077 1.1 christos && ac_type='unsigned long long' \ 4078 1.1 christos || ac_type='unsigned long' 4079 1.1 christos 4080 1.1 christos cat >>confdefs.h <<_ACEOF 4081 1.1 christos #define uintmax_t $ac_type 4082 1.1 christos _ACEOF 4083 1.1 christos 4084 1.1 christos fi 4085 1.1 christos 4086 1.1 christos 4087 1.1 christos echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4088 1.1 christos echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4089 1.1 christos if test "${ac_cv_header_stdc+set}" = set; then 4090 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 4091 1.1 christos else 4092 1.1 christos cat >conftest.$ac_ext <<_ACEOF 4093 1.1 christos #line $LINENO "configure" 4094 1.1 christos #include "confdefs.h" 4095 1.1 christos #include <stdlib.h> 4096 1.1 christos #include <stdarg.h> 4097 1.1 christos #include <string.h> 4098 1.1 christos #include <float.h> 4099 1.1 christos 4100 1.1 christos _ACEOF 4101 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4102 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4103 1.1 christos ac_status=$? 4104 1.1 christos egrep -v '^ *\+' conftest.er1 >conftest.err 4105 1.1 christos rm -f conftest.er1 4106 1.1 christos cat conftest.err >&5 4107 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4108 1.1 christos (exit $ac_status); } >/dev/null; then 4109 1.1 christos if test -s conftest.err; then 4110 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag 4111 1.1 christos else 4112 1.1 christos ac_cpp_err= 4113 1.1 christos fi 4114 1.1 christos else 4115 1.1 christos ac_cpp_err=yes 4116 1.1 christos fi 4117 1.1 christos if test -z "$ac_cpp_err"; then 4118 1.1 christos ac_cv_header_stdc=yes 4119 1.1 christos else 4120 1.1 christos echo "$as_me: failed program was:" >&5 4121 1.1 christos cat conftest.$ac_ext >&5 4122 1.1 christos ac_cv_header_stdc=no 4123 1.1 christos fi 4124 1.1 christos rm -f conftest.err conftest.$ac_ext 4125 1.1 christos 4126 1.1 christos if test $ac_cv_header_stdc = yes; then 4127 1.1 christos # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4128 1.1 christos cat >conftest.$ac_ext <<_ACEOF 4129 1.1 christos #line $LINENO "configure" 4130 1.1 christos #include "confdefs.h" 4131 1.1 christos #include <string.h> 4132 1.1 christos 4133 1.1 christos _ACEOF 4134 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4135 1.1 christos egrep "memchr" >/dev/null 2>&1; then 4136 1.1 christos : 4137 1.1 christos else 4138 1.1 christos ac_cv_header_stdc=no 4139 1.1 christos fi 4140 1.1 christos rm -f conftest* 4141 1.1 christos 4142 1.1 christos fi 4143 1.1 christos 4144 1.1 christos if test $ac_cv_header_stdc = yes; then 4145 1.1 christos # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4146 1.1 christos cat >conftest.$ac_ext <<_ACEOF 4147 1.1 christos #line $LINENO "configure" 4148 1.1 christos #include "confdefs.h" 4149 1.1 christos #include <stdlib.h> 4150 1.1 christos 4151 1.1 christos _ACEOF 4152 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4153 1.1 christos egrep "free" >/dev/null 2>&1; then 4154 1.1 christos : 4155 1.1 christos else 4156 1.1 christos ac_cv_header_stdc=no 4157 1.1 christos fi 4158 1.1 christos rm -f conftest* 4159 1.1 christos 4160 1.1 christos fi 4161 1.1 christos 4162 1.1 christos if test $ac_cv_header_stdc = yes; then 4163 1.1 christos # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4164 1.1 christos if test "$cross_compiling" = yes; then 4165 1.1 christos : 4166 1.1 christos else 4167 1.1 christos cat >conftest.$ac_ext <<_ACEOF 4168 1.1 christos #line $LINENO "configure" 4169 1.1 christos #include "confdefs.h" 4170 1.1 christos #include <ctype.h> 4171 1.1 christos #if ((' ' & 0x0FF) == 0x020) 4172 1.1 christos # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4173 1.1 christos # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4174 1.1 christos #else 4175 1.1 christos # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 4176 1.1 christos || ('j' <= (c) && (c) <= 'r') \ 4177 1.1 christos || ('s' <= (c) && (c) <= 'z')) 4178 1.1 christos # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4179 1.1 christos #endif 4180 1.1 christos 4181 1.1 christos #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4182 1.1 christos int 4183 1.1 christos main () 4184 1.1 christos { 4185 1.1 christos int i; 4186 1.1 christos for (i = 0; i < 256; i++) 4187 1.1 christos if (XOR (islower (i), ISLOWER (i)) 4188 1.1 christos || toupper (i) != TOUPPER (i)) 4189 1.1 christos exit(2); 4190 1.1 christos exit (0); 4191 1.1 christos } 4192 1.1 christos _ACEOF 4193 1.1 christos rm -f conftest$ac_exeext 4194 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4195 1.1 christos (eval $ac_link) 2>&5 4196 1.1 christos ac_status=$? 4197 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4198 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4199 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4200 1.1 christos (eval $ac_try) 2>&5 4201 1.1 christos ac_status=$? 4202 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4203 1.1 christos (exit $ac_status); }; }; then 4204 1.1 christos : 4205 1.1 christos else 4206 1.1 christos echo "$as_me: program exited with status $ac_status" >&5 4207 1.1 christos echo "$as_me: failed program was:" >&5 4208 1.1 christos cat conftest.$ac_ext >&5 4209 1.1 christos ( exit $ac_status ) 4210 1.1 christos ac_cv_header_stdc=no 4211 1.1 christos fi 4212 1.1 christos rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4213 1.1 christos fi 4214 1.1 christos fi 4215 1.1 christos fi 4216 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4217 1.1 christos echo "${ECHO_T}$ac_cv_header_stdc" >&6 4218 1.1 christos if test $ac_cv_header_stdc = yes; then 4219 1.1 christos 4220 1.1 christos cat >>confdefs.h <<\_ACEOF 4221 1.1 christos #define STDC_HEADERS 1 4222 1.1 christos _ACEOF 4223 1.1 christos 4224 1.1 christos fi 4225 1.1 christos 4226 1.1 christos 4227 1.1 christos 4228 1.1 christos 4229 1.1 christos 4230 1.1 christos 4231 1.1 christos 4232 1.1 christos for ac_header in string.h stdlib.h sys/param.h memory.h unistd.h libintl.h 4233 1.1 christos do 4234 1.1 christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4235 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 4236 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 4237 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4238 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 4239 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 4240 1.1 christos fi 4241 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4242 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4243 1.1 christos else 4244 1.1 christos # Is the header compilable? 4245 1.1 christos echo "$as_me:$LINENO: checking $ac_header usability" >&5 4246 1.1 christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4247 1.1 christos cat >conftest.$ac_ext <<_ACEOF 4248 1.1 christos #line $LINENO "configure" 4249 1.1 christos #include "confdefs.h" 4250 1.1 christos $ac_includes_default 4251 1.1 christos #include <$ac_header> 4252 1.1 christos _ACEOF 4253 1.1 christos rm -f conftest.$ac_objext 4254 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4255 1.1 christos (eval $ac_compile) 2>&5 4256 1.1 christos ac_status=$? 4257 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4258 1.1 christos (exit $ac_status); } && 4259 1.1 christos { ac_try='test -s conftest.$ac_objext' 4260 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4261 1.1 christos (eval $ac_try) 2>&5 4262 1.1 christos ac_status=$? 4263 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4264 1.1 christos (exit $ac_status); }; }; then 4265 1.1 christos ac_header_compiler=yes 4266 1.1 christos else 4267 1.1 christos echo "$as_me: failed program was:" >&5 4268 1.1 christos cat conftest.$ac_ext >&5 4269 1.1 christos ac_header_compiler=no 4270 1.1 christos fi 4271 1.1 christos rm -f conftest.$ac_objext conftest.$ac_ext 4272 1.1 christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4273 1.1 christos echo "${ECHO_T}$ac_header_compiler" >&6 4274 1.1 christos 4275 1.1 christos # Is the header present? 4276 1.1 christos echo "$as_me:$LINENO: checking $ac_header presence" >&5 4277 1.1 christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4278 1.1 christos cat >conftest.$ac_ext <<_ACEOF 4279 1.1 christos #line $LINENO "configure" 4280 1.1 christos #include "confdefs.h" 4281 1.1 christos #include <$ac_header> 4282 1.1 christos _ACEOF 4283 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4284 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4285 1.1 christos ac_status=$? 4286 1.1 christos egrep -v '^ *\+' conftest.er1 >conftest.err 4287 1.1 christos rm -f conftest.er1 4288 1.1 christos cat conftest.err >&5 4289 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4290 1.1 christos (exit $ac_status); } >/dev/null; then 4291 1.1 christos if test -s conftest.err; then 4292 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag 4293 1.1 christos else 4294 1.1 christos ac_cpp_err= 4295 1.1 christos fi 4296 1.1 christos else 4297 1.1 christos ac_cpp_err=yes 4298 1.1 christos fi 4299 1.1 christos if test -z "$ac_cpp_err"; then 4300 1.1 christos ac_header_preproc=yes 4301 1.1 christos else 4302 1.1 christos echo "$as_me: failed program was:" >&5 4303 1.1 christos cat conftest.$ac_ext >&5 4304 1.1 christos ac_header_preproc=no 4305 1.1 christos fi 4306 1.1 christos rm -f conftest.err conftest.$ac_ext 4307 1.1 christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4308 1.1 christos echo "${ECHO_T}$ac_header_preproc" >&6 4309 1.1 christos 4310 1.1 christos # So? What about this header? 4311 1.1 christos case $ac_header_compiler:$ac_header_preproc in 4312 1.1 christos yes:no ) 4313 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4314 1.1 christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4315 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4316 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 4317 1.1 christos no:yes ) 4318 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4319 1.1 christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4320 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4321 1.1 christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4322 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4323 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 4324 1.1 christos esac 4325 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 4326 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4327 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 4328 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 4329 1.1 christos else 4330 1.1 christos eval "$as_ac_Header=$ac_header_preproc" 4331 1.1 christos fi 4332 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4333 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4334 1.1 christos 4335 1.1 christos fi 4336 1.1 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then 4337 1.1 christos cat >>confdefs.h <<_ACEOF 4338 1.1 christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4339 1.1 christos _ACEOF 4340 1.1 christos 4341 1.1 christos fi 4342 1.1 christos 4343 1.1 christos done 4344 1.1 christos 4345 1.1 christos 4346 1.1 christos 4347 1.1 christos for ac_header in wctype.h wchar.h 4348 1.1 christos do 4349 1.1 christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4350 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 4351 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 4352 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4353 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 4354 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 4355 1.1 christos fi 4356 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4357 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4358 1.1 christos else 4359 1.1 christos # Is the header compilable? 4360 1.1 christos echo "$as_me:$LINENO: checking $ac_header usability" >&5 4361 1.1 christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4362 1.1 christos cat >conftest.$ac_ext <<_ACEOF 4363 1.1 christos #line $LINENO "configure" 4364 1.1 christos #include "confdefs.h" 4365 1.1 christos $ac_includes_default 4366 1.1 christos #include <$ac_header> 4367 1.1 christos _ACEOF 4368 1.1 christos rm -f conftest.$ac_objext 4369 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4370 1.1 christos (eval $ac_compile) 2>&5 4371 1.1 christos ac_status=$? 4372 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4373 1.1 christos (exit $ac_status); } && 4374 1.1 christos { ac_try='test -s conftest.$ac_objext' 4375 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4376 1.1 christos (eval $ac_try) 2>&5 4377 1.1 christos ac_status=$? 4378 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4379 1.1 christos (exit $ac_status); }; }; then 4380 1.1 christos ac_header_compiler=yes 4381 1.1 christos else 4382 1.1 christos echo "$as_me: failed program was:" >&5 4383 1.1 christos cat conftest.$ac_ext >&5 4384 1.1 christos ac_header_compiler=no 4385 1.1 christos fi 4386 1.1 christos rm -f conftest.$ac_objext conftest.$ac_ext 4387 1.1 christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4388 1.1 christos echo "${ECHO_T}$ac_header_compiler" >&6 4389 1.1 christos 4390 1.1 christos # Is the header present? 4391 1.1 christos echo "$as_me:$LINENO: checking $ac_header presence" >&5 4392 1.1 christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4393 1.1 christos cat >conftest.$ac_ext <<_ACEOF 4394 1.1 christos #line $LINENO "configure" 4395 1.1 christos #include "confdefs.h" 4396 1.1 christos #include <$ac_header> 4397 1.1 christos _ACEOF 4398 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4399 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4400 1.1 christos ac_status=$? 4401 1.1 christos egrep -v '^ *\+' conftest.er1 >conftest.err 4402 1.1 christos rm -f conftest.er1 4403 1.1 christos cat conftest.err >&5 4404 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4405 1.1 christos (exit $ac_status); } >/dev/null; then 4406 1.1 christos if test -s conftest.err; then 4407 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag 4408 1.1 christos else 4409 1.1 christos ac_cpp_err= 4410 1.1 christos fi 4411 1.1 christos else 4412 1.1 christos ac_cpp_err=yes 4413 1.1 christos fi 4414 1.1 christos if test -z "$ac_cpp_err"; then 4415 1.1 christos ac_header_preproc=yes 4416 1.1 christos else 4417 1.1 christos echo "$as_me: failed program was:" >&5 4418 1.1 christos cat conftest.$ac_ext >&5 4419 1.1 christos ac_header_preproc=no 4420 1.1 christos fi 4421 1.1 christos rm -f conftest.err conftest.$ac_ext 4422 1.1 christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4423 1.1 christos echo "${ECHO_T}$ac_header_preproc" >&6 4424 1.1 christos 4425 1.1 christos # So? What about this header? 4426 1.1 christos case $ac_header_compiler:$ac_header_preproc in 4427 1.1 christos yes:no ) 4428 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4429 1.1 christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4430 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4431 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 4432 1.1 christos no:yes ) 4433 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4434 1.1 christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4435 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4436 1.1 christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4437 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4438 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 4439 1.1 christos esac 4440 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 4441 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4442 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 4443 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 4444 1.1 christos else 4445 1.1 christos eval "$as_ac_Header=$ac_header_preproc" 4446 1.1 christos fi 4447 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4448 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4449 1.1 christos 4450 1.1 christos fi 4451 1.1 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then 4452 1.1 christos cat >>confdefs.h <<_ACEOF 4453 1.1 christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4454 1.1 christos _ACEOF 4455 1.1 christos 4456 1.1 christos fi 4457 1.1 christos 4458 1.1 christos done 4459 1.1 christos 4460 1.1 christos 4461 1.1 christos 4462 1.1 christos 4463 1.1 christos 4464 1.1 christos 4465 1.1 christos ac_header_dirent=no 4466 1.1 christos for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 4467 1.1 christos as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 4468 1.1 christos echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 4469 1.1 christos echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 4470 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 4471 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 4472 1.1 christos else 4473 1.1 christos cat >conftest.$ac_ext <<_ACEOF 4474 1.1 christos #line $LINENO "configure" 4475 1.1 christos #include "confdefs.h" 4476 1.1 christos #include <sys/types.h> 4477 1.1 christos #include <$ac_hdr> 4478 1.1 christos 4479 1.1 christos #ifdef F77_DUMMY_MAIN 4480 1.1 christos # ifdef __cplusplus 4481 1.1 christos extern "C" 4482 1.1 christos # endif 4483 1.1 christos int F77_DUMMY_MAIN() { return 1; } 4484 1.1 christos #endif 4485 1.1 christos int 4486 1.1 christos main () 4487 1.1 christos { 4488 1.1 christos if ((DIR *) 0) 4489 1.1 christos return 0; 4490 1.1 christos ; 4491 1.1 christos return 0; 4492 1.1 christos } 4493 1.1 christos _ACEOF 4494 1.1 christos rm -f conftest.$ac_objext 4495 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4496 1.1 christos (eval $ac_compile) 2>&5 4497 1.1 christos ac_status=$? 4498 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4499 1.1 christos (exit $ac_status); } && 4500 1.1 christos { ac_try='test -s conftest.$ac_objext' 4501 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4502 1.1 christos (eval $ac_try) 2>&5 4503 1.1 christos ac_status=$? 4504 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4505 1.1 christos (exit $ac_status); }; }; then 4506 1.1 christos eval "$as_ac_Header=yes" 4507 1.1 christos else 4508 1.1 christos echo "$as_me: failed program was:" >&5 4509 1.1 christos cat conftest.$ac_ext >&5 4510 1.1 christos eval "$as_ac_Header=no" 4511 1.1 christos fi 4512 1.1 christos rm -f conftest.$ac_objext conftest.$ac_ext 4513 1.1 christos fi 4514 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4515 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4516 1.1 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then 4517 1.1 christos cat >>confdefs.h <<_ACEOF 4518 1.1 christos #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 4519 1.1 christos _ACEOF 4520 1.1 christos 4521 1.1 christos ac_header_dirent=$ac_hdr; break 4522 1.1 christos fi 4523 1.1 christos 4524 1.1 christos done 4525 1.1 christos # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 4526 1.1 christos if test $ac_header_dirent = dirent.h; then 4527 1.1 christos echo "$as_me:$LINENO: checking for library containing opendir" >&5 4528 1.1 christos echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 4529 1.1 christos if test "${ac_cv_search_opendir+set}" = set; then 4530 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 4531 1.1 christos else 4532 1.1 christos ac_func_search_save_LIBS=$LIBS 4533 1.1 christos ac_cv_search_opendir=no 4534 1.1 christos cat >conftest.$ac_ext <<_ACEOF 4535 1.1 christos #line $LINENO "configure" 4536 1.1 christos #include "confdefs.h" 4537 1.1 christos 4538 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 4539 1.1 christos #ifdef __cplusplus 4540 1.1 christos extern "C" 4541 1.1 christos #endif 4542 1.1 christos /* We use char because int might match the return type of a gcc2 4543 1.1 christos builtin and then its argument prototype would still apply. */ 4544 1.1 christos char opendir (); 4545 1.1 christos #ifdef F77_DUMMY_MAIN 4546 1.1 christos # ifdef __cplusplus 4547 1.1 christos extern "C" 4548 1.1 christos # endif 4549 1.1 christos int F77_DUMMY_MAIN() { return 1; } 4550 1.1 christos #endif 4551 1.1 christos int 4552 1.1 christos main () 4553 1.1 christos { 4554 1.1 christos opendir (); 4555 1.1 christos ; 4556 1.1 christos return 0; 4557 1.1 christos } 4558 1.1 christos _ACEOF 4559 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 4560 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4561 1.1 christos (eval $ac_link) 2>&5 4562 1.1 christos ac_status=$? 4563 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4564 1.1 christos (exit $ac_status); } && 4565 1.1 christos { ac_try='test -s conftest$ac_exeext' 4566 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4567 1.1 christos (eval $ac_try) 2>&5 4568 1.1 christos ac_status=$? 4569 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4570 1.1 christos (exit $ac_status); }; }; then 4571 1.1 christos ac_cv_search_opendir="none required" 4572 1.1 christos else 4573 1.1 christos echo "$as_me: failed program was:" >&5 4574 1.1 christos cat conftest.$ac_ext >&5 4575 1.1 christos fi 4576 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4577 1.1 christos if test "$ac_cv_search_opendir" = no; then 4578 1.1 christos for ac_lib in dir; do 4579 1.1 christos LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4580 1.1 christos cat >conftest.$ac_ext <<_ACEOF 4581 1.1 christos #line $LINENO "configure" 4582 1.1 christos #include "confdefs.h" 4583 1.1 christos 4584 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 4585 1.1 christos #ifdef __cplusplus 4586 1.1 christos extern "C" 4587 1.1 christos #endif 4588 1.1 christos /* We use char because int might match the return type of a gcc2 4589 1.1 christos builtin and then its argument prototype would still apply. */ 4590 1.1 christos char opendir (); 4591 1.1 christos #ifdef F77_DUMMY_MAIN 4592 1.1 christos # ifdef __cplusplus 4593 1.1 christos extern "C" 4594 1.1 christos # endif 4595 1.1 christos int F77_DUMMY_MAIN() { return 1; } 4596 1.1 christos #endif 4597 1.1 christos int 4598 1.1 christos main () 4599 1.1 christos { 4600 1.1 christos opendir (); 4601 1.1 christos ; 4602 1.1 christos return 0; 4603 1.1 christos } 4604 1.1 christos _ACEOF 4605 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 4606 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4607 1.1 christos (eval $ac_link) 2>&5 4608 1.1 christos ac_status=$? 4609 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4610 1.1 christos (exit $ac_status); } && 4611 1.1 christos { ac_try='test -s conftest$ac_exeext' 4612 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4613 1.1 christos (eval $ac_try) 2>&5 4614 1.1 christos ac_status=$? 4615 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4616 1.1 christos (exit $ac_status); }; }; then 4617 1.1 christos ac_cv_search_opendir="-l$ac_lib" 4618 1.1 christos break 4619 1.1 christos else 4620 1.1 christos echo "$as_me: failed program was:" >&5 4621 1.1 christos cat conftest.$ac_ext >&5 4622 1.1 christos fi 4623 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4624 1.1 christos done 4625 1.1 christos fi 4626 1.1 christos LIBS=$ac_func_search_save_LIBS 4627 1.1 christos fi 4628 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 4629 1.1 christos echo "${ECHO_T}$ac_cv_search_opendir" >&6 4630 1.1 christos if test "$ac_cv_search_opendir" != no; then 4631 1.1 christos test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 4632 1.1 christos 4633 1.1 christos fi 4634 1.1 christos 4635 1.1 christos else 4636 1.1 christos echo "$as_me:$LINENO: checking for library containing opendir" >&5 4637 1.1 christos echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 4638 1.1 christos if test "${ac_cv_search_opendir+set}" = set; then 4639 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 4640 1.1 christos else 4641 1.1 christos ac_func_search_save_LIBS=$LIBS 4642 1.1 christos ac_cv_search_opendir=no 4643 1.1 christos cat >conftest.$ac_ext <<_ACEOF 4644 1.1 christos #line $LINENO "configure" 4645 1.1 christos #include "confdefs.h" 4646 1.1 christos 4647 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 4648 1.1 christos #ifdef __cplusplus 4649 1.1 christos extern "C" 4650 1.1 christos #endif 4651 1.1 christos /* We use char because int might match the return type of a gcc2 4652 1.1 christos builtin and then its argument prototype would still apply. */ 4653 1.1 christos char opendir (); 4654 1.1 christos #ifdef F77_DUMMY_MAIN 4655 1.1 christos # ifdef __cplusplus 4656 1.1 christos extern "C" 4657 1.1 christos # endif 4658 1.1 christos int F77_DUMMY_MAIN() { return 1; } 4659 1.1 christos #endif 4660 1.1 christos int 4661 1.1 christos main () 4662 1.1 christos { 4663 1.1 christos opendir (); 4664 1.1 christos ; 4665 1.1 christos return 0; 4666 1.1 christos } 4667 1.1 christos _ACEOF 4668 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 4669 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4670 1.1 christos (eval $ac_link) 2>&5 4671 1.1 christos ac_status=$? 4672 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4673 1.1 christos (exit $ac_status); } && 4674 1.1 christos { ac_try='test -s conftest$ac_exeext' 4675 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4676 1.1 christos (eval $ac_try) 2>&5 4677 1.1 christos ac_status=$? 4678 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4679 1.1 christos (exit $ac_status); }; }; then 4680 1.1 christos ac_cv_search_opendir="none required" 4681 1.1 christos else 4682 1.1 christos echo "$as_me: failed program was:" >&5 4683 1.1 christos cat conftest.$ac_ext >&5 4684 1.1 christos fi 4685 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4686 1.1 christos if test "$ac_cv_search_opendir" = no; then 4687 1.1 christos for ac_lib in x; do 4688 1.1 christos LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4689 1.1 christos cat >conftest.$ac_ext <<_ACEOF 4690 1.1 christos #line $LINENO "configure" 4691 1.1 christos #include "confdefs.h" 4692 1.1 christos 4693 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 4694 1.1 christos #ifdef __cplusplus 4695 1.1 christos extern "C" 4696 1.1 christos #endif 4697 1.1 christos /* We use char because int might match the return type of a gcc2 4698 1.1 christos builtin and then its argument prototype would still apply. */ 4699 1.1 christos char opendir (); 4700 1.1 christos #ifdef F77_DUMMY_MAIN 4701 1.1 christos # ifdef __cplusplus 4702 1.1 christos extern "C" 4703 1.1 christos # endif 4704 1.1 christos int F77_DUMMY_MAIN() { return 1; } 4705 1.1 christos #endif 4706 1.1 christos int 4707 1.1 christos main () 4708 1.1 christos { 4709 1.1 christos opendir (); 4710 1.1 christos ; 4711 1.1 christos return 0; 4712 1.1 christos } 4713 1.1 christos _ACEOF 4714 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 4715 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4716 1.1 christos (eval $ac_link) 2>&5 4717 1.1 christos ac_status=$? 4718 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4719 1.1 christos (exit $ac_status); } && 4720 1.1 christos { ac_try='test -s conftest$ac_exeext' 4721 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4722 1.1 christos (eval $ac_try) 2>&5 4723 1.1 christos ac_status=$? 4724 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4725 1.1 christos (exit $ac_status); }; }; then 4726 1.1 christos ac_cv_search_opendir="-l$ac_lib" 4727 1.1 christos break 4728 1.1 christos else 4729 1.1 christos echo "$as_me: failed program was:" >&5 4730 1.1 christos cat conftest.$ac_ext >&5 4731 1.1 christos fi 4732 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4733 1.1 christos done 4734 1.1 christos fi 4735 1.1 christos LIBS=$ac_func_search_save_LIBS 4736 1.1 christos fi 4737 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 4738 1.1 christos echo "${ECHO_T}$ac_cv_search_opendir" >&6 4739 1.1 christos if test "$ac_cv_search_opendir" != no; then 4740 1.1 christos test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 4741 1.1 christos 4742 1.1 christos fi 4743 1.1 christos 4744 1.1 christos fi 4745 1.1 christos 4746 1.1 christos echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 4747 1.1 christos echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6 4748 1.1 christos if test "${ac_cv_header_stat_broken+set}" = set; then 4749 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 4750 1.1 christos else 4751 1.1 christos cat >conftest.$ac_ext <<_ACEOF 4752 1.1 christos #line $LINENO "configure" 4753 1.1 christos #include "confdefs.h" 4754 1.1 christos #include <sys/types.h> 4755 1.1 christos #include <sys/stat.h> 4756 1.1 christos 4757 1.1 christos #if defined(S_ISBLK) && defined(S_IFDIR) 4758 1.1 christos # if S_ISBLK (S_IFDIR) 4759 1.1 christos You lose. 4760 1.1 christos # endif 4761 1.1 christos #endif 4762 1.1 christos 4763 1.1 christos #if defined(S_ISBLK) && defined(S_IFCHR) 4764 1.1 christos # if S_ISBLK (S_IFCHR) 4765 1.1 christos You lose. 4766 1.1 christos # endif 4767 1.1 christos #endif 4768 1.1 christos 4769 1.1 christos #if defined(S_ISLNK) && defined(S_IFREG) 4770 1.1 christos # if S_ISLNK (S_IFREG) 4771 1.1 christos You lose. 4772 1.1 christos # endif 4773 1.1 christos #endif 4774 1.1 christos 4775 1.1 christos #if defined(S_ISSOCK) && defined(S_IFREG) 4776 1.1 christos # if S_ISSOCK (S_IFREG) 4777 1.1 christos You lose. 4778 1.1 christos # endif 4779 1.1 christos #endif 4780 1.1 christos 4781 1.1 christos _ACEOF 4782 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4783 1.1 christos egrep "You lose" >/dev/null 2>&1; then 4784 1.1 christos ac_cv_header_stat_broken=yes 4785 1.1 christos else 4786 1.1 christos ac_cv_header_stat_broken=no 4787 1.1 christos fi 4788 1.1 christos rm -f conftest* 4789 1.1 christos 4790 1.1 christos fi 4791 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 4792 1.1 christos echo "${ECHO_T}$ac_cv_header_stat_broken" >&6 4793 1.1 christos if test $ac_cv_header_stat_broken = yes; then 4794 1.1 christos 4795 1.1 christos cat >>confdefs.h <<\_ACEOF 4796 1.1 christos #define STAT_MACROS_BROKEN 1 4797 1.1 christos _ACEOF 4798 1.1 christos 4799 1.1 christos fi 4800 1.1 christos 4801 1.1 christos 4802 1.1 christos 4803 1.1 christos for ac_header in stdlib.h 4804 1.1 christos do 4805 1.1 christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4806 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 4807 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 4808 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4809 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 4810 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 4811 1.1 christos fi 4812 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4813 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4814 1.1 christos else 4815 1.1 christos # Is the header compilable? 4816 1.1 christos echo "$as_me:$LINENO: checking $ac_header usability" >&5 4817 1.1 christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4818 1.1 christos cat >conftest.$ac_ext <<_ACEOF 4819 1.1 christos #line $LINENO "configure" 4820 1.1 christos #include "confdefs.h" 4821 1.1 christos $ac_includes_default 4822 1.1 christos #include <$ac_header> 4823 1.1 christos _ACEOF 4824 1.1 christos rm -f conftest.$ac_objext 4825 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4826 1.1 christos (eval $ac_compile) 2>&5 4827 1.1 christos ac_status=$? 4828 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4829 1.1 christos (exit $ac_status); } && 4830 1.1 christos { ac_try='test -s conftest.$ac_objext' 4831 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4832 1.1 christos (eval $ac_try) 2>&5 4833 1.1 christos ac_status=$? 4834 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4835 1.1 christos (exit $ac_status); }; }; then 4836 1.1 christos ac_header_compiler=yes 4837 1.1 christos else 4838 1.1 christos echo "$as_me: failed program was:" >&5 4839 1.1 christos cat conftest.$ac_ext >&5 4840 1.1 christos ac_header_compiler=no 4841 1.1 christos fi 4842 1.1 christos rm -f conftest.$ac_objext conftest.$ac_ext 4843 1.1 christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4844 1.1 christos echo "${ECHO_T}$ac_header_compiler" >&6 4845 1.1 christos 4846 1.1 christos # Is the header present? 4847 1.1 christos echo "$as_me:$LINENO: checking $ac_header presence" >&5 4848 1.1 christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4849 1.1 christos cat >conftest.$ac_ext <<_ACEOF 4850 1.1 christos #line $LINENO "configure" 4851 1.1 christos #include "confdefs.h" 4852 1.1 christos #include <$ac_header> 4853 1.1 christos _ACEOF 4854 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4855 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4856 1.1 christos ac_status=$? 4857 1.1 christos egrep -v '^ *\+' conftest.er1 >conftest.err 4858 1.1 christos rm -f conftest.er1 4859 1.1 christos cat conftest.err >&5 4860 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4861 1.1 christos (exit $ac_status); } >/dev/null; then 4862 1.1 christos if test -s conftest.err; then 4863 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag 4864 1.1 christos else 4865 1.1 christos ac_cpp_err= 4866 1.1 christos fi 4867 1.1 christos else 4868 1.1 christos ac_cpp_err=yes 4869 1.1 christos fi 4870 1.1 christos if test -z "$ac_cpp_err"; then 4871 1.1 christos ac_header_preproc=yes 4872 1.1 christos else 4873 1.1 christos echo "$as_me: failed program was:" >&5 4874 1.1 christos cat conftest.$ac_ext >&5 4875 1.1 christos ac_header_preproc=no 4876 1.1 christos fi 4877 1.1 christos rm -f conftest.err conftest.$ac_ext 4878 1.1 christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4879 1.1 christos echo "${ECHO_T}$ac_header_preproc" >&6 4880 1.1 christos 4881 1.1 christos # So? What about this header? 4882 1.1 christos case $ac_header_compiler:$ac_header_preproc in 4883 1.1 christos yes:no ) 4884 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4885 1.1 christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4886 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4887 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 4888 1.1 christos no:yes ) 4889 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4890 1.1 christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4891 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4892 1.1 christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4893 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4894 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 4895 1.1 christos esac 4896 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 4897 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4898 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 4899 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 4900 1.1 christos else 4901 1.1 christos eval "$as_ac_Header=$ac_header_preproc" 4902 1.1 christos fi 4903 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4904 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4905 1.1 christos 4906 1.1 christos fi 4907 1.1 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then 4908 1.1 christos cat >>confdefs.h <<_ACEOF 4909 1.1 christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4910 1.1 christos _ACEOF 4911 1.1 christos 4912 1.1 christos fi 4913 1.1 christos 4914 1.1 christos done 4915 1.1 christos 4916 1.1 christos 4917 1.1 christos echo "$as_me:$LINENO: checking for mbstate_t" >&5 4918 1.1 christos echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6 4919 1.1 christos if test "${ac_cv_type_mbstate_t+set}" = set; then 4920 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 4921 1.1 christos else 4922 1.1 christos cat >conftest.$ac_ext <<_ACEOF 4923 1.1 christos #line $LINENO "configure" 4924 1.1 christos #include "confdefs.h" 4925 1.1 christos 4926 1.1 christos #if HAVE_STDLIB_H 4927 1.1 christos # include <stdlib.h> 4928 1.1 christos #endif 4929 1.1 christos #include <wchar.h> 4930 1.1 christos #ifdef F77_DUMMY_MAIN 4931 1.1 christos # ifdef __cplusplus 4932 1.1 christos extern "C" 4933 1.1 christos # endif 4934 1.1 christos int F77_DUMMY_MAIN() { return 1; } 4935 1.1 christos #endif 4936 1.1 christos int 4937 1.1 christos main () 4938 1.1 christos { 4939 1.1 christos mbstate_t x; return sizeof x; 4940 1.1 christos ; 4941 1.1 christos return 0; 4942 1.1 christos } 4943 1.1 christos _ACEOF 4944 1.1 christos rm -f conftest.$ac_objext 4945 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4946 1.1 christos (eval $ac_compile) 2>&5 4947 1.1 christos ac_status=$? 4948 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4949 1.1 christos (exit $ac_status); } && 4950 1.1 christos { ac_try='test -s conftest.$ac_objext' 4951 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4952 1.1 christos (eval $ac_try) 2>&5 4953 1.1 christos ac_status=$? 4954 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4955 1.1 christos (exit $ac_status); }; }; then 4956 1.1 christos ac_cv_type_mbstate_t=yes 4957 1.1 christos else 4958 1.1 christos echo "$as_me: failed program was:" >&5 4959 1.1 christos cat conftest.$ac_ext >&5 4960 1.1 christos ac_cv_type_mbstate_t=no 4961 1.1 christos fi 4962 1.1 christos rm -f conftest.$ac_objext conftest.$ac_ext 4963 1.1 christos fi 4964 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5 4965 1.1 christos echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6 4966 1.1 christos if test $ac_cv_type_mbstate_t = no; then 4967 1.1 christos 4968 1.1 christos cat >>confdefs.h <<\_ACEOF 4969 1.1 christos #define mbstate_t int 4970 1.1 christos _ACEOF 4971 1.1 christos 4972 1.1 christos fi 4973 1.1 christos 4974 1.1 christos # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 4975 1.1 christos # for constant arguments. Useless! 4976 1.1 christos echo "$as_me:$LINENO: checking for working alloca.h" >&5 4977 1.1 christos echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 4978 1.1 christos if test "${ac_cv_working_alloca_h+set}" = set; then 4979 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 4980 1.1 christos else 4981 1.1 christos cat >conftest.$ac_ext <<_ACEOF 4982 1.1 christos #line $LINENO "configure" 4983 1.1 christos #include "confdefs.h" 4984 1.1 christos #include <alloca.h> 4985 1.1 christos #ifdef F77_DUMMY_MAIN 4986 1.1 christos # ifdef __cplusplus 4987 1.1 christos extern "C" 4988 1.1 christos # endif 4989 1.1 christos int F77_DUMMY_MAIN() { return 1; } 4990 1.1 christos #endif 4991 1.1 christos int 4992 1.1 christos main () 4993 1.1 christos { 4994 1.1 christos char *p = (char *) alloca (2 * sizeof (int)); 4995 1.1 christos ; 4996 1.1 christos return 0; 4997 1.1 christos } 4998 1.1 christos _ACEOF 4999 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 5000 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5001 1.1 christos (eval $ac_link) 2>&5 5002 1.1 christos ac_status=$? 5003 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5004 1.1 christos (exit $ac_status); } && 5005 1.1 christos { ac_try='test -s conftest$ac_exeext' 5006 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5007 1.1 christos (eval $ac_try) 2>&5 5008 1.1 christos ac_status=$? 5009 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5010 1.1 christos (exit $ac_status); }; }; then 5011 1.1 christos ac_cv_working_alloca_h=yes 5012 1.1 christos else 5013 1.1 christos echo "$as_me: failed program was:" >&5 5014 1.1 christos cat conftest.$ac_ext >&5 5015 1.1 christos ac_cv_working_alloca_h=no 5016 1.1 christos fi 5017 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5018 1.1 christos fi 5019 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 5020 1.1 christos echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 5021 1.1 christos if test $ac_cv_working_alloca_h = yes; then 5022 1.1 christos 5023 1.1 christos cat >>confdefs.h <<\_ACEOF 5024 1.1 christos #define HAVE_ALLOCA_H 1 5025 1.1 christos _ACEOF 5026 1.1 christos 5027 1.1 christos fi 5028 1.1 christos 5029 1.1 christos echo "$as_me:$LINENO: checking for alloca" >&5 5030 1.1 christos echo $ECHO_N "checking for alloca... $ECHO_C" >&6 5031 1.1 christos if test "${ac_cv_func_alloca_works+set}" = set; then 5032 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 5033 1.1 christos else 5034 1.1 christos cat >conftest.$ac_ext <<_ACEOF 5035 1.1 christos #line $LINENO "configure" 5036 1.1 christos #include "confdefs.h" 5037 1.1 christos #ifdef __GNUC__ 5038 1.1 christos # define alloca __builtin_alloca 5039 1.1 christos #else 5040 1.1 christos # ifdef _MSC_VER 5041 1.1 christos # include <malloc.h> 5042 1.1 christos # define alloca _alloca 5043 1.1 christos # else 5044 1.1 christos # if HAVE_ALLOCA_H 5045 1.1 christos # include <alloca.h> 5046 1.1 christos # else 5047 1.1 christos # ifdef _AIX 5048 1.1 christos #pragma alloca 5049 1.1 christos # else 5050 1.1 christos # ifndef alloca /* predefined by HP cc +Olibcalls */ 5051 1.1 christos char *alloca (); 5052 1.1 christos # endif 5053 1.1 christos # endif 5054 1.1 christos # endif 5055 1.1 christos # endif 5056 1.1 christos #endif 5057 1.1 christos 5058 1.1 christos #ifdef F77_DUMMY_MAIN 5059 1.1 christos # ifdef __cplusplus 5060 1.1 christos extern "C" 5061 1.1 christos # endif 5062 1.1 christos int F77_DUMMY_MAIN() { return 1; } 5063 1.1 christos #endif 5064 1.1 christos int 5065 1.1 christos main () 5066 1.1 christos { 5067 1.1 christos char *p = (char *) alloca (1); 5068 1.1 christos ; 5069 1.1 christos return 0; 5070 1.1 christos } 5071 1.1 christos _ACEOF 5072 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 5073 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5074 1.1 christos (eval $ac_link) 2>&5 5075 1.1 christos ac_status=$? 5076 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5077 1.1 christos (exit $ac_status); } && 5078 1.1 christos { ac_try='test -s conftest$ac_exeext' 5079 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5080 1.1 christos (eval $ac_try) 2>&5 5081 1.1 christos ac_status=$? 5082 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5083 1.1 christos (exit $ac_status); }; }; then 5084 1.1 christos ac_cv_func_alloca_works=yes 5085 1.1 christos else 5086 1.1 christos echo "$as_me: failed program was:" >&5 5087 1.1 christos cat conftest.$ac_ext >&5 5088 1.1 christos ac_cv_func_alloca_works=no 5089 1.1 christos fi 5090 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5091 1.1 christos fi 5092 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 5093 1.1 christos echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 5094 1.1 christos 5095 1.1 christos if test $ac_cv_func_alloca_works = yes; then 5096 1.1 christos 5097 1.1 christos cat >>confdefs.h <<\_ACEOF 5098 1.1 christos #define HAVE_ALLOCA 1 5099 1.1 christos _ACEOF 5100 1.1 christos 5101 1.1 christos else 5102 1.1 christos # The SVR3 libPW and SVR4 libucb both contain incompatible functions 5103 1.1 christos # that cause trouble. Some versions do not even contain alloca or 5104 1.1 christos # contain a buggy version. If you still want to use their alloca, 5105 1.1 christos # use ar to extract alloca.o from them instead of compiling alloca.c. 5106 1.1 christos 5107 1.1 christos ALLOCA=alloca.$ac_objext 5108 1.1 christos 5109 1.1 christos cat >>confdefs.h <<\_ACEOF 5110 1.1 christos #define C_ALLOCA 1 5111 1.1 christos _ACEOF 5112 1.1 christos 5113 1.1 christos 5114 1.1 christos echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 5115 1.1 christos echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 5116 1.1 christos if test "${ac_cv_os_cray+set}" = set; then 5117 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 5118 1.1 christos else 5119 1.1 christos cat >conftest.$ac_ext <<_ACEOF 5120 1.1 christos #line $LINENO "configure" 5121 1.1 christos #include "confdefs.h" 5122 1.1 christos #if defined(CRAY) && ! defined(CRAY2) 5123 1.1 christos webecray 5124 1.1 christos #else 5125 1.1 christos wenotbecray 5126 1.1 christos #endif 5127 1.1 christos 5128 1.1 christos _ACEOF 5129 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5130 1.1 christos egrep "webecray" >/dev/null 2>&1; then 5131 1.1 christos ac_cv_os_cray=yes 5132 1.1 christos else 5133 1.1 christos ac_cv_os_cray=no 5134 1.1 christos fi 5135 1.1 christos rm -f conftest* 5136 1.1 christos 5137 1.1 christos fi 5138 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 5139 1.1 christos echo "${ECHO_T}$ac_cv_os_cray" >&6 5140 1.1 christos if test $ac_cv_os_cray = yes; then 5141 1.1 christos for ac_func in _getb67 GETB67 getb67; do 5142 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5143 1.1 christos echo "$as_me:$LINENO: checking for $ac_func" >&5 5144 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5145 1.1 christos if eval "test \"\${$as_ac_var+set}\" = set"; then 5146 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 5147 1.1 christos else 5148 1.1 christos cat >conftest.$ac_ext <<_ACEOF 5149 1.1 christos #line $LINENO "configure" 5150 1.1 christos #include "confdefs.h" 5151 1.1 christos /* System header to define __stub macros and hopefully few prototypes, 5152 1.1 christos which can conflict with char $ac_func (); below. */ 5153 1.1 christos #include <assert.h> 5154 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 5155 1.1 christos #ifdef __cplusplus 5156 1.1 christos extern "C" 5157 1.1 christos #endif 5158 1.1 christos /* We use char because int might match the return type of a gcc2 5159 1.1 christos builtin and then its argument prototype would still apply. */ 5160 1.1 christos char $ac_func (); 5161 1.1 christos char (*f) (); 5162 1.1 christos 5163 1.1 christos #ifdef F77_DUMMY_MAIN 5164 1.1 christos # ifdef __cplusplus 5165 1.1 christos extern "C" 5166 1.1 christos # endif 5167 1.1 christos int F77_DUMMY_MAIN() { return 1; } 5168 1.1 christos #endif 5169 1.1 christos int 5170 1.1 christos main () 5171 1.1 christos { 5172 1.1 christos /* The GNU C library defines this for functions which it implements 5173 1.1 christos to always fail with ENOSYS. Some functions are actually named 5174 1.1 christos something starting with __ and the normal name is an alias. */ 5175 1.1 christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5176 1.1 christos choke me 5177 1.1 christos #else 5178 1.1 christos f = $ac_func; 5179 1.1 christos #endif 5180 1.1 christos 5181 1.1 christos ; 5182 1.1 christos return 0; 5183 1.1 christos } 5184 1.1 christos _ACEOF 5185 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 5186 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5187 1.1 christos (eval $ac_link) 2>&5 5188 1.1 christos ac_status=$? 5189 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5190 1.1 christos (exit $ac_status); } && 5191 1.1 christos { ac_try='test -s conftest$ac_exeext' 5192 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5193 1.1 christos (eval $ac_try) 2>&5 5194 1.1 christos ac_status=$? 5195 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5196 1.1 christos (exit $ac_status); }; }; then 5197 1.1 christos eval "$as_ac_var=yes" 5198 1.1 christos else 5199 1.1 christos echo "$as_me: failed program was:" >&5 5200 1.1 christos cat conftest.$ac_ext >&5 5201 1.1 christos eval "$as_ac_var=no" 5202 1.1 christos fi 5203 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5204 1.1 christos fi 5205 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5206 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5207 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then 5208 1.1 christos 5209 1.1 christos cat >>confdefs.h <<_ACEOF 5210 1.1 christos #define CRAY_STACKSEG_END $ac_func 5211 1.1 christos _ACEOF 5212 1.1 christos 5213 1.1 christos break 5214 1.1 christos fi 5215 1.1 christos 5216 1.1 christos done 5217 1.1 christos fi 5218 1.1 christos 5219 1.1 christos echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 5220 1.1 christos echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 5221 1.1 christos if test "${ac_cv_c_stack_direction+set}" = set; then 5222 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 5223 1.1 christos else 5224 1.1 christos if test "$cross_compiling" = yes; then 5225 1.1 christos ac_cv_c_stack_direction=0 5226 1.1 christos else 5227 1.1 christos cat >conftest.$ac_ext <<_ACEOF 5228 1.1 christos #line $LINENO "configure" 5229 1.1 christos #include "confdefs.h" 5230 1.1 christos int 5231 1.1 christos find_stack_direction () 5232 1.1 christos { 5233 1.1 christos static char *addr = 0; 5234 1.1 christos auto char dummy; 5235 1.1 christos if (addr == 0) 5236 1.1 christos { 5237 1.1 christos addr = &dummy; 5238 1.1 christos return find_stack_direction (); 5239 1.1 christos } 5240 1.1 christos else 5241 1.1 christos return (&dummy > addr) ? 1 : -1; 5242 1.1 christos } 5243 1.1 christos 5244 1.1 christos int 5245 1.1 christos main () 5246 1.1 christos { 5247 1.1 christos exit (find_stack_direction () < 0); 5248 1.1 christos } 5249 1.1 christos _ACEOF 5250 1.1 christos rm -f conftest$ac_exeext 5251 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5252 1.1 christos (eval $ac_link) 2>&5 5253 1.1 christos ac_status=$? 5254 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5255 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5256 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5257 1.1 christos (eval $ac_try) 2>&5 5258 1.1 christos ac_status=$? 5259 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5260 1.1 christos (exit $ac_status); }; }; then 5261 1.1 christos ac_cv_c_stack_direction=1 5262 1.1 christos else 5263 1.1 christos echo "$as_me: program exited with status $ac_status" >&5 5264 1.1 christos echo "$as_me: failed program was:" >&5 5265 1.1 christos cat conftest.$ac_ext >&5 5266 1.1 christos ( exit $ac_status ) 5267 1.1 christos ac_cv_c_stack_direction=-1 5268 1.1 christos fi 5269 1.1 christos rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5270 1.1 christos fi 5271 1.1 christos fi 5272 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 5273 1.1 christos echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 5274 1.1 christos 5275 1.1 christos cat >>confdefs.h <<_ACEOF 5276 1.1 christos #define STACK_DIRECTION $ac_cv_c_stack_direction 5277 1.1 christos _ACEOF 5278 1.1 christos 5279 1.1 christos 5280 1.1 christos fi 5281 1.1 christos 5282 1.1 christos echo "$as_me:$LINENO: checking whether closedir returns void" >&5 5283 1.1 christos echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6 5284 1.1 christos if test "${ac_cv_func_closedir_void+set}" = set; then 5285 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 5286 1.1 christos else 5287 1.1 christos if test "$cross_compiling" = yes; then 5288 1.1 christos ac_cv_func_closedir_void=yes 5289 1.1 christos else 5290 1.1 christos cat >conftest.$ac_ext <<_ACEOF 5291 1.1 christos #line $LINENO "configure" 5292 1.1 christos #include "confdefs.h" 5293 1.1 christos $ac_includes_default 5294 1.1 christos #include <$ac_header_dirent> 5295 1.1 christos #ifndef __cplusplus 5296 1.1 christos int closedir (); 5297 1.1 christos #endif 5298 1.1 christos 5299 1.1 christos #ifdef F77_DUMMY_MAIN 5300 1.1 christos # ifdef __cplusplus 5301 1.1 christos extern "C" 5302 1.1 christos # endif 5303 1.1 christos int F77_DUMMY_MAIN() { return 1; } 5304 1.1 christos #endif 5305 1.1 christos int 5306 1.1 christos main () 5307 1.1 christos { 5308 1.1 christos exit (closedir (opendir (".")) != 0); 5309 1.1 christos ; 5310 1.1 christos return 0; 5311 1.1 christos } 5312 1.1 christos _ACEOF 5313 1.1 christos rm -f conftest$ac_exeext 5314 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5315 1.1 christos (eval $ac_link) 2>&5 5316 1.1 christos ac_status=$? 5317 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5318 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5319 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5320 1.1 christos (eval $ac_try) 2>&5 5321 1.1 christos ac_status=$? 5322 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5323 1.1 christos (exit $ac_status); }; }; then 5324 1.1 christos ac_cv_func_closedir_void=no 5325 1.1 christos else 5326 1.1 christos echo "$as_me: program exited with status $ac_status" >&5 5327 1.1 christos echo "$as_me: failed program was:" >&5 5328 1.1 christos cat conftest.$ac_ext >&5 5329 1.1 christos ( exit $ac_status ) 5330 1.1 christos ac_cv_func_closedir_void=yes 5331 1.1 christos fi 5332 1.1 christos rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5333 1.1 christos fi 5334 1.1 christos fi 5335 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 5336 1.1 christos echo "${ECHO_T}$ac_cv_func_closedir_void" >&6 5337 1.1 christos if test $ac_cv_func_closedir_void = yes; then 5338 1.1 christos 5339 1.1 christos cat >>confdefs.h <<\_ACEOF 5340 1.1 christos #define CLOSEDIR_VOID 1 5341 1.1 christos _ACEOF 5342 1.1 christos 5343 1.1 christos fi 5344 1.1 christos 5345 1.1 christos 5346 1.1 christos 5347 1.1 christos for ac_header in stdlib.h unistd.h 5348 1.1 christos do 5349 1.1 christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5350 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 5351 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 5352 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5353 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 5354 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 5355 1.1 christos fi 5356 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5357 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5358 1.1 christos else 5359 1.1 christos # Is the header compilable? 5360 1.1 christos echo "$as_me:$LINENO: checking $ac_header usability" >&5 5361 1.1 christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 5362 1.1 christos cat >conftest.$ac_ext <<_ACEOF 5363 1.1 christos #line $LINENO "configure" 5364 1.1 christos #include "confdefs.h" 5365 1.1 christos $ac_includes_default 5366 1.1 christos #include <$ac_header> 5367 1.1 christos _ACEOF 5368 1.1 christos rm -f conftest.$ac_objext 5369 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5370 1.1 christos (eval $ac_compile) 2>&5 5371 1.1 christos ac_status=$? 5372 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5373 1.1 christos (exit $ac_status); } && 5374 1.1 christos { ac_try='test -s conftest.$ac_objext' 5375 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5376 1.1 christos (eval $ac_try) 2>&5 5377 1.1 christos ac_status=$? 5378 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5379 1.1 christos (exit $ac_status); }; }; then 5380 1.1 christos ac_header_compiler=yes 5381 1.1 christos else 5382 1.1 christos echo "$as_me: failed program was:" >&5 5383 1.1 christos cat conftest.$ac_ext >&5 5384 1.1 christos ac_header_compiler=no 5385 1.1 christos fi 5386 1.1 christos rm -f conftest.$ac_objext conftest.$ac_ext 5387 1.1 christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5388 1.1 christos echo "${ECHO_T}$ac_header_compiler" >&6 5389 1.1 christos 5390 1.1 christos # Is the header present? 5391 1.1 christos echo "$as_me:$LINENO: checking $ac_header presence" >&5 5392 1.1 christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5393 1.1 christos cat >conftest.$ac_ext <<_ACEOF 5394 1.1 christos #line $LINENO "configure" 5395 1.1 christos #include "confdefs.h" 5396 1.1 christos #include <$ac_header> 5397 1.1 christos _ACEOF 5398 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5399 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5400 1.1 christos ac_status=$? 5401 1.1 christos egrep -v '^ *\+' conftest.er1 >conftest.err 5402 1.1 christos rm -f conftest.er1 5403 1.1 christos cat conftest.err >&5 5404 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5405 1.1 christos (exit $ac_status); } >/dev/null; then 5406 1.1 christos if test -s conftest.err; then 5407 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag 5408 1.1 christos else 5409 1.1 christos ac_cpp_err= 5410 1.1 christos fi 5411 1.1 christos else 5412 1.1 christos ac_cpp_err=yes 5413 1.1 christos fi 5414 1.1 christos if test -z "$ac_cpp_err"; then 5415 1.1 christos ac_header_preproc=yes 5416 1.1 christos else 5417 1.1 christos echo "$as_me: failed program was:" >&5 5418 1.1 christos cat conftest.$ac_ext >&5 5419 1.1 christos ac_header_preproc=no 5420 1.1 christos fi 5421 1.1 christos rm -f conftest.err conftest.$ac_ext 5422 1.1 christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5423 1.1 christos echo "${ECHO_T}$ac_header_preproc" >&6 5424 1.1 christos 5425 1.1 christos # So? What about this header? 5426 1.1 christos case $ac_header_compiler:$ac_header_preproc in 5427 1.1 christos yes:no ) 5428 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5429 1.1 christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5430 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5431 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 5432 1.1 christos no:yes ) 5433 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5434 1.1 christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5435 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5436 1.1 christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5437 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5438 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 5439 1.1 christos esac 5440 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 5441 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5442 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 5443 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 5444 1.1 christos else 5445 1.1 christos eval "$as_ac_Header=$ac_header_preproc" 5446 1.1 christos fi 5447 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5448 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5449 1.1 christos 5450 1.1 christos fi 5451 1.1 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then 5452 1.1 christos cat >>confdefs.h <<_ACEOF 5453 1.1 christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5454 1.1 christos _ACEOF 5455 1.1 christos 5456 1.1 christos fi 5457 1.1 christos 5458 1.1 christos done 5459 1.1 christos 5460 1.1 christos 5461 1.1 christos for ac_func in getpagesize 5462 1.1 christos do 5463 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5464 1.1 christos echo "$as_me:$LINENO: checking for $ac_func" >&5 5465 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5466 1.1 christos if eval "test \"\${$as_ac_var+set}\" = set"; then 5467 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 5468 1.1 christos else 5469 1.1 christos cat >conftest.$ac_ext <<_ACEOF 5470 1.1 christos #line $LINENO "configure" 5471 1.1 christos #include "confdefs.h" 5472 1.1 christos /* System header to define __stub macros and hopefully few prototypes, 5473 1.1 christos which can conflict with char $ac_func (); below. */ 5474 1.1 christos #include <assert.h> 5475 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 5476 1.1 christos #ifdef __cplusplus 5477 1.1 christos extern "C" 5478 1.1 christos #endif 5479 1.1 christos /* We use char because int might match the return type of a gcc2 5480 1.1 christos builtin and then its argument prototype would still apply. */ 5481 1.1 christos char $ac_func (); 5482 1.1 christos char (*f) (); 5483 1.1 christos 5484 1.1 christos #ifdef F77_DUMMY_MAIN 5485 1.1 christos # ifdef __cplusplus 5486 1.1 christos extern "C" 5487 1.1 christos # endif 5488 1.1 christos int F77_DUMMY_MAIN() { return 1; } 5489 1.1 christos #endif 5490 1.1 christos int 5491 1.1 christos main () 5492 1.1 christos { 5493 1.1 christos /* The GNU C library defines this for functions which it implements 5494 1.1 christos to always fail with ENOSYS. Some functions are actually named 5495 1.1 christos something starting with __ and the normal name is an alias. */ 5496 1.1 christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5497 1.1 christos choke me 5498 1.1 christos #else 5499 1.1 christos f = $ac_func; 5500 1.1 christos #endif 5501 1.1 christos 5502 1.1 christos ; 5503 1.1 christos return 0; 5504 1.1 christos } 5505 1.1 christos _ACEOF 5506 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 5507 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5508 1.1 christos (eval $ac_link) 2>&5 5509 1.1 christos ac_status=$? 5510 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5511 1.1 christos (exit $ac_status); } && 5512 1.1 christos { ac_try='test -s conftest$ac_exeext' 5513 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5514 1.1 christos (eval $ac_try) 2>&5 5515 1.1 christos ac_status=$? 5516 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5517 1.1 christos (exit $ac_status); }; }; then 5518 1.1 christos eval "$as_ac_var=yes" 5519 1.1 christos else 5520 1.1 christos echo "$as_me: failed program was:" >&5 5521 1.1 christos cat conftest.$ac_ext >&5 5522 1.1 christos eval "$as_ac_var=no" 5523 1.1 christos fi 5524 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5525 1.1 christos fi 5526 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5527 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5528 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then 5529 1.1 christos cat >>confdefs.h <<_ACEOF 5530 1.1 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5531 1.1 christos _ACEOF 5532 1.1 christos 5533 1.1 christos fi 5534 1.1 christos done 5535 1.1 christos 5536 1.1 christos echo "$as_me:$LINENO: checking for working mmap" >&5 5537 1.1 christos echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 5538 1.1 christos if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 5539 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 5540 1.1 christos else 5541 1.1 christos if test "$cross_compiling" = yes; then 5542 1.1 christos ac_cv_func_mmap_fixed_mapped=no 5543 1.1 christos else 5544 1.1 christos cat >conftest.$ac_ext <<_ACEOF 5545 1.1 christos #line $LINENO "configure" 5546 1.1 christos #include "confdefs.h" 5547 1.1 christos $ac_includes_default 5548 1.1 christos /* malloc might have been renamed as rpl_malloc. */ 5549 1.1 christos #undef malloc 5550 1.1 christos 5551 1.1 christos /* Thanks to Mike Haertel and Jim Avera for this test. 5552 1.1 christos Here is a matrix of mmap possibilities: 5553 1.1 christos mmap private not fixed 5554 1.1 christos mmap private fixed at somewhere currently unmapped 5555 1.1 christos mmap private fixed at somewhere already mapped 5556 1.1 christos mmap shared not fixed 5557 1.1 christos mmap shared fixed at somewhere currently unmapped 5558 1.1 christos mmap shared fixed at somewhere already mapped 5559 1.1 christos For private mappings, we should verify that changes cannot be read() 5560 1.1 christos back from the file, nor mmap's back from the file at a different 5561 1.1 christos address. (There have been systems where private was not correctly 5562 1.1 christos implemented like the infamous i386 svr4.0, and systems where the 5563 1.1 christos VM page cache was not coherent with the file system buffer cache 5564 1.1 christos like early versions of FreeBSD and possibly contemporary NetBSD.) 5565 1.1 christos For shared mappings, we should conversely verify that changes get 5566 1.1 christos propagated back to all the places they're supposed to be. 5567 1.1 christos 5568 1.1 christos Grep wants private fixed already mapped. 5569 1.1 christos The main things grep needs to know about mmap are: 5570 1.1 christos * does it exist and is it safe to write into the mmap'd area 5571 1.1 christos * how to use it (BSD variants) */ 5572 1.1 christos 5573 1.1 christos #include <fcntl.h> 5574 1.1 christos #include <sys/mman.h> 5575 1.1 christos 5576 1.1 christos #if !STDC_HEADERS && !HAVE_STDLIB_H 5577 1.1 christos char *malloc (); 5578 1.1 christos #endif 5579 1.1 christos 5580 1.1 christos /* This mess was copied from the GNU getpagesize.h. */ 5581 1.1 christos #if !HAVE_GETPAGESIZE 5582 1.1 christos /* Assume that all systems that can run configure have sys/param.h. */ 5583 1.1 christos # if !HAVE_SYS_PARAM_H 5584 1.1 christos # define HAVE_SYS_PARAM_H 1 5585 1.1 christos # endif 5586 1.1 christos 5587 1.1 christos # ifdef _SC_PAGESIZE 5588 1.1 christos # define getpagesize() sysconf(_SC_PAGESIZE) 5589 1.1 christos # else /* no _SC_PAGESIZE */ 5590 1.1 christos # if HAVE_SYS_PARAM_H 5591 1.1 christos # include <sys/param.h> 5592 1.1 christos # ifdef EXEC_PAGESIZE 5593 1.1 christos # define getpagesize() EXEC_PAGESIZE 5594 1.1 christos # else /* no EXEC_PAGESIZE */ 5595 1.1 christos # ifdef NBPG 5596 1.1 christos # define getpagesize() NBPG * CLSIZE 5597 1.1 christos # ifndef CLSIZE 5598 1.1 christos # define CLSIZE 1 5599 1.1 christos # endif /* no CLSIZE */ 5600 1.1 christos # else /* no NBPG */ 5601 1.1 christos # ifdef NBPC 5602 1.1 christos # define getpagesize() NBPC 5603 1.1 christos # else /* no NBPC */ 5604 1.1 christos # ifdef PAGESIZE 5605 1.1 christos # define getpagesize() PAGESIZE 5606 1.1 christos # endif /* PAGESIZE */ 5607 1.1 christos # endif /* no NBPC */ 5608 1.1 christos # endif /* no NBPG */ 5609 1.1 christos # endif /* no EXEC_PAGESIZE */ 5610 1.1 christos # else /* no HAVE_SYS_PARAM_H */ 5611 1.1 christos # define getpagesize() 8192 /* punt totally */ 5612 1.1 christos # endif /* no HAVE_SYS_PARAM_H */ 5613 1.1 christos # endif /* no _SC_PAGESIZE */ 5614 1.1 christos 5615 1.1 christos #endif /* no HAVE_GETPAGESIZE */ 5616 1.1 christos 5617 1.1 christos int 5618 1.1 christos main () 5619 1.1 christos { 5620 1.1 christos char *data, *data2, *data3; 5621 1.1 christos int i, pagesize; 5622 1.1 christos int fd; 5623 1.1 christos 5624 1.1 christos pagesize = getpagesize (); 5625 1.1 christos 5626 1.1 christos /* First, make a file with some known garbage in it. */ 5627 1.1 christos data = (char *) malloc (pagesize); 5628 1.1 christos if (!data) 5629 1.1 christos exit (1); 5630 1.1 christos for (i = 0; i < pagesize; ++i) 5631 1.1 christos *(data + i) = rand (); 5632 1.1 christos umask (0); 5633 1.1 christos fd = creat ("conftest.mmap", 0600); 5634 1.1 christos if (fd < 0) 5635 1.1 christos exit (1); 5636 1.1 christos if (write (fd, data, pagesize) != pagesize) 5637 1.1 christos exit (1); 5638 1.1 christos close (fd); 5639 1.1 christos 5640 1.1 christos /* Next, try to mmap the file at a fixed address which already has 5641 1.1 christos something else allocated at it. If we can, also make sure that 5642 1.1 christos we see the same garbage. */ 5643 1.1 christos fd = open ("conftest.mmap", O_RDWR); 5644 1.1 christos if (fd < 0) 5645 1.1 christos exit (1); 5646 1.1 christos data2 = (char *) malloc (2 * pagesize); 5647 1.1 christos if (!data2) 5648 1.1 christos exit (1); 5649 1.1 christos data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); 5650 1.1 christos if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 5651 1.1 christos MAP_PRIVATE | MAP_FIXED, fd, 0L)) 5652 1.1 christos exit (1); 5653 1.1 christos for (i = 0; i < pagesize; ++i) 5654 1.1 christos if (*(data + i) != *(data2 + i)) 5655 1.1 christos exit (1); 5656 1.1 christos 5657 1.1 christos /* Finally, make sure that changes to the mapped area do not 5658 1.1 christos percolate back to the file as seen by read(). (This is a bug on 5659 1.1 christos some variants of i386 svr4.0.) */ 5660 1.1 christos for (i = 0; i < pagesize; ++i) 5661 1.1 christos *(data2 + i) = *(data2 + i) + 1; 5662 1.1 christos data3 = (char *) malloc (pagesize); 5663 1.1 christos if (!data3) 5664 1.1 christos exit (1); 5665 1.1 christos if (read (fd, data3, pagesize) != pagesize) 5666 1.1 christos exit (1); 5667 1.1 christos for (i = 0; i < pagesize; ++i) 5668 1.1 christos if (*(data + i) != *(data3 + i)) 5669 1.1 christos exit (1); 5670 1.1 christos close (fd); 5671 1.1 christos exit (0); 5672 1.1 christos } 5673 1.1 christos _ACEOF 5674 1.1 christos rm -f conftest$ac_exeext 5675 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5676 1.1 christos (eval $ac_link) 2>&5 5677 1.1 christos ac_status=$? 5678 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5679 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5680 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5681 1.1 christos (eval $ac_try) 2>&5 5682 1.1 christos ac_status=$? 5683 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5684 1.1 christos (exit $ac_status); }; }; then 5685 1.1 christos ac_cv_func_mmap_fixed_mapped=yes 5686 1.1 christos else 5687 1.1 christos echo "$as_me: program exited with status $ac_status" >&5 5688 1.1 christos echo "$as_me: failed program was:" >&5 5689 1.1 christos cat conftest.$ac_ext >&5 5690 1.1 christos ( exit $ac_status ) 5691 1.1 christos ac_cv_func_mmap_fixed_mapped=no 5692 1.1 christos fi 5693 1.1 christos rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5694 1.1 christos fi 5695 1.1 christos fi 5696 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 5697 1.1 christos echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 5698 1.1 christos if test $ac_cv_func_mmap_fixed_mapped = yes; then 5699 1.1 christos 5700 1.1 christos cat >>confdefs.h <<\_ACEOF 5701 1.1 christos #define HAVE_MMAP 1 5702 1.1 christos _ACEOF 5703 1.1 christos 5704 1.1 christos fi 5705 1.1 christos rm -f conftest.mmap 5706 1.1 christos 5707 1.1 christos 5708 1.1 christos 5709 1.1 christos 5710 1.1 christos 5711 1.1 christos 5712 1.1 christos 5713 1.1 christos 5714 1.1 christos 5715 1.1 christos for ac_func in btowc isascii memmove setmode strerror wctype mbrtowc 5716 1.1 christos do 5717 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5718 1.1 christos echo "$as_me:$LINENO: checking for $ac_func" >&5 5719 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5720 1.1 christos if eval "test \"\${$as_ac_var+set}\" = set"; then 5721 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 5722 1.1 christos else 5723 1.1 christos cat >conftest.$ac_ext <<_ACEOF 5724 1.1 christos #line $LINENO "configure" 5725 1.1 christos #include "confdefs.h" 5726 1.1 christos /* System header to define __stub macros and hopefully few prototypes, 5727 1.1 christos which can conflict with char $ac_func (); below. */ 5728 1.1 christos #include <assert.h> 5729 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 5730 1.1 christos #ifdef __cplusplus 5731 1.1 christos extern "C" 5732 1.1 christos #endif 5733 1.1 christos /* We use char because int might match the return type of a gcc2 5734 1.1 christos builtin and then its argument prototype would still apply. */ 5735 1.1 christos char $ac_func (); 5736 1.1 christos char (*f) (); 5737 1.1 christos 5738 1.1 christos #ifdef F77_DUMMY_MAIN 5739 1.1 christos # ifdef __cplusplus 5740 1.1 christos extern "C" 5741 1.1 christos # endif 5742 1.1 christos int F77_DUMMY_MAIN() { return 1; } 5743 1.1 christos #endif 5744 1.1 christos int 5745 1.1 christos main () 5746 1.1 christos { 5747 1.1 christos /* The GNU C library defines this for functions which it implements 5748 1.1 christos to always fail with ENOSYS. Some functions are actually named 5749 1.1 christos something starting with __ and the normal name is an alias. */ 5750 1.1 christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5751 1.1 christos choke me 5752 1.1 christos #else 5753 1.1 christos f = $ac_func; 5754 1.1 christos #endif 5755 1.1 christos 5756 1.1 christos ; 5757 1.1 christos return 0; 5758 1.1 christos } 5759 1.1 christos _ACEOF 5760 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 5761 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5762 1.1 christos (eval $ac_link) 2>&5 5763 1.1 christos ac_status=$? 5764 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5765 1.1 christos (exit $ac_status); } && 5766 1.1 christos { ac_try='test -s conftest$ac_exeext' 5767 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5768 1.1 christos (eval $ac_try) 2>&5 5769 1.1 christos ac_status=$? 5770 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5771 1.1 christos (exit $ac_status); }; }; then 5772 1.1 christos eval "$as_ac_var=yes" 5773 1.1 christos else 5774 1.1 christos echo "$as_me: failed program was:" >&5 5775 1.1 christos cat conftest.$ac_ext >&5 5776 1.1 christos eval "$as_ac_var=no" 5777 1.1 christos fi 5778 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5779 1.1 christos fi 5780 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5781 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5782 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then 5783 1.1 christos cat >>confdefs.h <<_ACEOF 5784 1.1 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5785 1.1 christos _ACEOF 5786 1.1 christos 5787 1.1 christos fi 5788 1.1 christos done 5789 1.1 christos 5790 1.1 christos 5791 1.1 christos 5792 1.1 christos 5793 1.1 christos 5794 1.1 christos 5795 1.1 christos for ac_func in memchr stpcpy strtoul atexit fnmatch 5796 1.1 christos do 5797 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5798 1.1 christos echo "$as_me:$LINENO: checking for $ac_func" >&5 5799 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5800 1.1 christos if eval "test \"\${$as_ac_var+set}\" = set"; then 5801 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 5802 1.1 christos else 5803 1.1 christos cat >conftest.$ac_ext <<_ACEOF 5804 1.1 christos #line $LINENO "configure" 5805 1.1 christos #include "confdefs.h" 5806 1.1 christos /* System header to define __stub macros and hopefully few prototypes, 5807 1.1 christos which can conflict with char $ac_func (); below. */ 5808 1.1 christos #include <assert.h> 5809 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 5810 1.1 christos #ifdef __cplusplus 5811 1.1 christos extern "C" 5812 1.1 christos #endif 5813 1.1 christos /* We use char because int might match the return type of a gcc2 5814 1.1 christos builtin and then its argument prototype would still apply. */ 5815 1.1 christos char $ac_func (); 5816 1.1 christos char (*f) (); 5817 1.1 christos 5818 1.1 christos #ifdef F77_DUMMY_MAIN 5819 1.1 christos # ifdef __cplusplus 5820 1.1 christos extern "C" 5821 1.1 christos # endif 5822 1.1 christos int F77_DUMMY_MAIN() { return 1; } 5823 1.1 christos #endif 5824 1.1 christos int 5825 1.1 christos main () 5826 1.1 christos { 5827 1.1 christos /* The GNU C library defines this for functions which it implements 5828 1.1 christos to always fail with ENOSYS. Some functions are actually named 5829 1.1 christos something starting with __ and the normal name is an alias. */ 5830 1.1 christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5831 1.1 christos choke me 5832 1.1 christos #else 5833 1.1 christos f = $ac_func; 5834 1.1 christos #endif 5835 1.1 christos 5836 1.1 christos ; 5837 1.1 christos return 0; 5838 1.1 christos } 5839 1.1 christos _ACEOF 5840 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 5841 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5842 1.1 christos (eval $ac_link) 2>&5 5843 1.1 christos ac_status=$? 5844 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5845 1.1 christos (exit $ac_status); } && 5846 1.1 christos { ac_try='test -s conftest$ac_exeext' 5847 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5848 1.1 christos (eval $ac_try) 2>&5 5849 1.1 christos ac_status=$? 5850 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5851 1.1 christos (exit $ac_status); }; }; then 5852 1.1 christos eval "$as_ac_var=yes" 5853 1.1 christos else 5854 1.1 christos echo "$as_me: failed program was:" >&5 5855 1.1 christos cat conftest.$ac_ext >&5 5856 1.1 christos eval "$as_ac_var=no" 5857 1.1 christos fi 5858 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5859 1.1 christos fi 5860 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5861 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5862 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then 5863 1.1 christos cat >>confdefs.h <<_ACEOF 5864 1.1 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5865 1.1 christos _ACEOF 5866 1.1 christos 5867 1.1 christos else 5868 1.1 christos LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 5869 1.1 christos fi 5870 1.1 christos done 5871 1.1 christos 5872 1.1 christos 5873 1.1 christos 5874 1.1 christos 5875 1.1 christos 5876 1.1 christos 5877 1.1 christos for ac_header in stdlib.h 5878 1.1 christos do 5879 1.1 christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5880 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 5881 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 5882 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5883 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 5884 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 5885 1.1 christos fi 5886 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5887 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5888 1.1 christos else 5889 1.1 christos # Is the header compilable? 5890 1.1 christos echo "$as_me:$LINENO: checking $ac_header usability" >&5 5891 1.1 christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 5892 1.1 christos cat >conftest.$ac_ext <<_ACEOF 5893 1.1 christos #line $LINENO "configure" 5894 1.1 christos #include "confdefs.h" 5895 1.1 christos $ac_includes_default 5896 1.1 christos #include <$ac_header> 5897 1.1 christos _ACEOF 5898 1.1 christos rm -f conftest.$ac_objext 5899 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5900 1.1 christos (eval $ac_compile) 2>&5 5901 1.1 christos ac_status=$? 5902 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5903 1.1 christos (exit $ac_status); } && 5904 1.1 christos { ac_try='test -s conftest.$ac_objext' 5905 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5906 1.1 christos (eval $ac_try) 2>&5 5907 1.1 christos ac_status=$? 5908 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5909 1.1 christos (exit $ac_status); }; }; then 5910 1.1 christos ac_header_compiler=yes 5911 1.1 christos else 5912 1.1 christos echo "$as_me: failed program was:" >&5 5913 1.1 christos cat conftest.$ac_ext >&5 5914 1.1 christos ac_header_compiler=no 5915 1.1 christos fi 5916 1.1 christos rm -f conftest.$ac_objext conftest.$ac_ext 5917 1.1 christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5918 1.1 christos echo "${ECHO_T}$ac_header_compiler" >&6 5919 1.1 christos 5920 1.1 christos # Is the header present? 5921 1.1 christos echo "$as_me:$LINENO: checking $ac_header presence" >&5 5922 1.1 christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5923 1.1 christos cat >conftest.$ac_ext <<_ACEOF 5924 1.1 christos #line $LINENO "configure" 5925 1.1 christos #include "confdefs.h" 5926 1.1 christos #include <$ac_header> 5927 1.1 christos _ACEOF 5928 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5929 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5930 1.1 christos ac_status=$? 5931 1.1 christos egrep -v '^ *\+' conftest.er1 >conftest.err 5932 1.1 christos rm -f conftest.er1 5933 1.1 christos cat conftest.err >&5 5934 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5935 1.1 christos (exit $ac_status); } >/dev/null; then 5936 1.1 christos if test -s conftest.err; then 5937 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag 5938 1.1 christos else 5939 1.1 christos ac_cpp_err= 5940 1.1 christos fi 5941 1.1 christos else 5942 1.1 christos ac_cpp_err=yes 5943 1.1 christos fi 5944 1.1 christos if test -z "$ac_cpp_err"; then 5945 1.1 christos ac_header_preproc=yes 5946 1.1 christos else 5947 1.1 christos echo "$as_me: failed program was:" >&5 5948 1.1 christos cat conftest.$ac_ext >&5 5949 1.1 christos ac_header_preproc=no 5950 1.1 christos fi 5951 1.1 christos rm -f conftest.err conftest.$ac_ext 5952 1.1 christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5953 1.1 christos echo "${ECHO_T}$ac_header_preproc" >&6 5954 1.1 christos 5955 1.1 christos # So? What about this header? 5956 1.1 christos case $ac_header_compiler:$ac_header_preproc in 5957 1.1 christos yes:no ) 5958 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5959 1.1 christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5960 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5961 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 5962 1.1 christos no:yes ) 5963 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5964 1.1 christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5965 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5966 1.1 christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5967 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5968 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 5969 1.1 christos esac 5970 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 5971 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5972 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 5973 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 5974 1.1 christos else 5975 1.1 christos eval "$as_ac_Header=$ac_header_preproc" 5976 1.1 christos fi 5977 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5978 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5979 1.1 christos 5980 1.1 christos fi 5981 1.1 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then 5982 1.1 christos cat >>confdefs.h <<_ACEOF 5983 1.1 christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5984 1.1 christos _ACEOF 5985 1.1 christos 5986 1.1 christos fi 5987 1.1 christos 5988 1.1 christos done 5989 1.1 christos 5990 1.1 christos 5991 1.1 christos echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoumax as a macro" >&5 5992 1.1 christos echo $ECHO_N "checking whether <inttypes.h> defines strtoumax as a macro... $ECHO_C" >&6 5993 1.1 christos if test "${jm_cv_func_strtoumax_macro+set}" = set; then 5994 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 5995 1.1 christos else 5996 1.1 christos cat >conftest.$ac_ext <<_ACEOF 5997 1.1 christos #line $LINENO "configure" 5998 1.1 christos #include "confdefs.h" 5999 1.1 christos #include <inttypes.h> 6000 1.1 christos #ifdef strtoumax 6001 1.1 christos inttypes_h_defines_strtoumax 6002 1.1 christos #endif 6003 1.1 christos _ACEOF 6004 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6005 1.1 christos egrep "inttypes_h_defines_strtoumax" >/dev/null 2>&1; then 6006 1.1 christos jm_cv_func_strtoumax_macro=yes 6007 1.1 christos else 6008 1.1 christos jm_cv_func_strtoumax_macro=no 6009 1.1 christos fi 6010 1.1 christos rm -f conftest* 6011 1.1 christos 6012 1.1 christos fi 6013 1.1 christos echo "$as_me:$LINENO: result: $jm_cv_func_strtoumax_macro" >&5 6014 1.1 christos echo "${ECHO_T}$jm_cv_func_strtoumax_macro" >&6 6015 1.1 christos 6016 1.1 christos if test "$jm_cv_func_strtoumax_macro" != yes; then 6017 1.1 christos 6018 1.1 christos for ac_func in strtoumax 6019 1.1 christos do 6020 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6021 1.1 christos echo "$as_me:$LINENO: checking for $ac_func" >&5 6022 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6023 1.1 christos if eval "test \"\${$as_ac_var+set}\" = set"; then 6024 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 6025 1.1 christos else 6026 1.1 christos cat >conftest.$ac_ext <<_ACEOF 6027 1.1 christos #line $LINENO "configure" 6028 1.1 christos #include "confdefs.h" 6029 1.1 christos /* System header to define __stub macros and hopefully few prototypes, 6030 1.1 christos which can conflict with char $ac_func (); below. */ 6031 1.1 christos #include <assert.h> 6032 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 6033 1.1 christos #ifdef __cplusplus 6034 1.1 christos extern "C" 6035 1.1 christos #endif 6036 1.1 christos /* We use char because int might match the return type of a gcc2 6037 1.1 christos builtin and then its argument prototype would still apply. */ 6038 1.1 christos char $ac_func (); 6039 1.1 christos char (*f) (); 6040 1.1 christos 6041 1.1 christos #ifdef F77_DUMMY_MAIN 6042 1.1 christos # ifdef __cplusplus 6043 1.1 christos extern "C" 6044 1.1 christos # endif 6045 1.1 christos int F77_DUMMY_MAIN() { return 1; } 6046 1.1 christos #endif 6047 1.1 christos int 6048 1.1 christos main () 6049 1.1 christos { 6050 1.1 christos /* The GNU C library defines this for functions which it implements 6051 1.1 christos to always fail with ENOSYS. Some functions are actually named 6052 1.1 christos something starting with __ and the normal name is an alias. */ 6053 1.1 christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6054 1.1 christos choke me 6055 1.1 christos #else 6056 1.1 christos f = $ac_func; 6057 1.1 christos #endif 6058 1.1 christos 6059 1.1 christos ; 6060 1.1 christos return 0; 6061 1.1 christos } 6062 1.1 christos _ACEOF 6063 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 6064 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6065 1.1 christos (eval $ac_link) 2>&5 6066 1.1 christos ac_status=$? 6067 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6068 1.1 christos (exit $ac_status); } && 6069 1.1 christos { ac_try='test -s conftest$ac_exeext' 6070 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6071 1.1 christos (eval $ac_try) 2>&5 6072 1.1 christos ac_status=$? 6073 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6074 1.1 christos (exit $ac_status); }; }; then 6075 1.1 christos eval "$as_ac_var=yes" 6076 1.1 christos else 6077 1.1 christos echo "$as_me: failed program was:" >&5 6078 1.1 christos cat conftest.$ac_ext >&5 6079 1.1 christos eval "$as_ac_var=no" 6080 1.1 christos fi 6081 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6082 1.1 christos fi 6083 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6084 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6085 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then 6086 1.1 christos cat >>confdefs.h <<_ACEOF 6087 1.1 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6088 1.1 christos _ACEOF 6089 1.1 christos 6090 1.1 christos else 6091 1.1 christos LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 6092 1.1 christos fi 6093 1.1 christos done 6094 1.1 christos 6095 1.1 christos 6096 1.1 christos fi 6097 1.1 christos 6098 1.1 christos case "$ac_cv_type_unsigned_long_long,$jm_cv_func_strtoumax_macro,$ac_cv_func_strtoumax" in 6099 1.1 christos yes,no,no) 6100 1.1 christos 6101 1.1 christos for ac_func in strtoull 6102 1.1 christos do 6103 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6104 1.1 christos echo "$as_me:$LINENO: checking for $ac_func" >&5 6105 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6106 1.1 christos if eval "test \"\${$as_ac_var+set}\" = set"; then 6107 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 6108 1.1 christos else 6109 1.1 christos cat >conftest.$ac_ext <<_ACEOF 6110 1.1 christos #line $LINENO "configure" 6111 1.1 christos #include "confdefs.h" 6112 1.1 christos /* System header to define __stub macros and hopefully few prototypes, 6113 1.1 christos which can conflict with char $ac_func (); below. */ 6114 1.1 christos #include <assert.h> 6115 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 6116 1.1 christos #ifdef __cplusplus 6117 1.1 christos extern "C" 6118 1.1 christos #endif 6119 1.1 christos /* We use char because int might match the return type of a gcc2 6120 1.1 christos builtin and then its argument prototype would still apply. */ 6121 1.1 christos char $ac_func (); 6122 1.1 christos char (*f) (); 6123 1.1 christos 6124 1.1 christos #ifdef F77_DUMMY_MAIN 6125 1.1 christos # ifdef __cplusplus 6126 1.1 christos extern "C" 6127 1.1 christos # endif 6128 1.1 christos int F77_DUMMY_MAIN() { return 1; } 6129 1.1 christos #endif 6130 1.1 christos int 6131 1.1 christos main () 6132 1.1 christos { 6133 1.1 christos /* The GNU C library defines this for functions which it implements 6134 1.1 christos to always fail with ENOSYS. Some functions are actually named 6135 1.1 christos something starting with __ and the normal name is an alias. */ 6136 1.1 christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6137 1.1 christos choke me 6138 1.1 christos #else 6139 1.1 christos f = $ac_func; 6140 1.1 christos #endif 6141 1.1 christos 6142 1.1 christos ; 6143 1.1 christos return 0; 6144 1.1 christos } 6145 1.1 christos _ACEOF 6146 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 6147 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6148 1.1 christos (eval $ac_link) 2>&5 6149 1.1 christos ac_status=$? 6150 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6151 1.1 christos (exit $ac_status); } && 6152 1.1 christos { ac_try='test -s conftest$ac_exeext' 6153 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6154 1.1 christos (eval $ac_try) 2>&5 6155 1.1 christos ac_status=$? 6156 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6157 1.1 christos (exit $ac_status); }; }; then 6158 1.1 christos eval "$as_ac_var=yes" 6159 1.1 christos else 6160 1.1 christos echo "$as_me: failed program was:" >&5 6161 1.1 christos cat conftest.$ac_ext >&5 6162 1.1 christos eval "$as_ac_var=no" 6163 1.1 christos fi 6164 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6165 1.1 christos fi 6166 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6167 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6168 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then 6169 1.1 christos cat >>confdefs.h <<_ACEOF 6170 1.1 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6171 1.1 christos _ACEOF 6172 1.1 christos 6173 1.1 christos else 6174 1.1 christos LIBOBJS="$LIBOBJS $ac_func.$ac_objext" 6175 1.1 christos fi 6176 1.1 christos done 6177 1.1 christos 6178 1.1 christos 6179 1.1 christos ;; 6180 1.1 christos esac 6181 1.1 christos 6182 1.1 christos 6183 1.1 christos 6184 1.1 christos 6185 1.1 christos for jm_func in strtoul strtoull 6186 1.1 christos do 6187 1.1 christos 6188 1.1 christos echo "$as_me:$LINENO: checking whether $jm_func is declared" >&5 6189 1.1 christos echo $ECHO_N "checking whether $jm_func is declared... $ECHO_C" >&6 6190 1.1 christos if eval "test \"\${jm_cv_func_decl_$jm_func+set}\" = set"; then 6191 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 6192 1.1 christos else 6193 1.1 christos cat >conftest.$ac_ext <<_ACEOF 6194 1.1 christos #line $LINENO "configure" 6195 1.1 christos #include "confdefs.h" 6196 1.1 christos #include <stdlib.h> 6197 1.1 christos #ifdef F77_DUMMY_MAIN 6198 1.1 christos # ifdef __cplusplus 6199 1.1 christos extern "C" 6200 1.1 christos # endif 6201 1.1 christos int F77_DUMMY_MAIN() { return 1; } 6202 1.1 christos #endif 6203 1.1 christos int 6204 1.1 christos main () 6205 1.1 christos { 6206 1.1 christos 6207 1.1 christos #ifndef $jm_func 6208 1.1 christos char *(*pfn) = (char *(*)) $jm_func 6209 1.1 christos #endif 6210 1.1 christos 6211 1.1 christos ; 6212 1.1 christos return 0; 6213 1.1 christos } 6214 1.1 christos _ACEOF 6215 1.1 christos rm -f conftest.$ac_objext 6216 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6217 1.1 christos (eval $ac_compile) 2>&5 6218 1.1 christos ac_status=$? 6219 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6220 1.1 christos (exit $ac_status); } && 6221 1.1 christos { ac_try='test -s conftest.$ac_objext' 6222 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6223 1.1 christos (eval $ac_try) 2>&5 6224 1.1 christos ac_status=$? 6225 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6226 1.1 christos (exit $ac_status); }; }; then 6227 1.1 christos eval "jm_cv_func_decl_$jm_func=yes" 6228 1.1 christos else 6229 1.1 christos echo "$as_me: failed program was:" >&5 6230 1.1 christos cat conftest.$ac_ext >&5 6231 1.1 christos eval "jm_cv_func_decl_$jm_func=no" 6232 1.1 christos fi 6233 1.1 christos rm -f conftest.$ac_objext conftest.$ac_ext 6234 1.1 christos fi 6235 1.1 christos 6236 1.1 christos 6237 1.1 christos if eval "test \"`echo '$jm_cv_func_decl_'$jm_func`\" = yes"; then 6238 1.1 christos echo "$as_me:$LINENO: result: yes" >&5 6239 1.1 christos echo "${ECHO_T}yes" >&6 6240 1.1 christos 6241 1.1 christos jm_tr_func=HAVE_DECL_`echo $jm_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 6242 1.1 christos 6243 1.1 christos cat >>confdefs.h <<_ACEOF 6244 1.1 christos #define $jm_tr_func 1 6245 1.1 christos _ACEOF 6246 1.1 christos 6247 1.1 christos else 6248 1.1 christos echo "$as_me:$LINENO: result: no" >&5 6249 1.1 christos echo "${ECHO_T}no" >&6 6250 1.1 christos fi 6251 1.1 christos done 6252 1.1 christos 6253 1.1 christos test $jm_cv_func_decl_strtoul != yes 6254 1.1 christos 6255 1.1 christos cat >>confdefs.h <<_ACEOF 6256 1.1 christos #define HAVE_DECL_STRTOUL $? 6257 1.1 christos _ACEOF 6258 1.1 christos 6259 1.1 christos test $jm_cv_func_decl_strtoull != yes 6260 1.1 christos 6261 1.1 christos cat >>confdefs.h <<_ACEOF 6262 1.1 christos #define HAVE_DECL_STRTOULL $? 6263 1.1 christos _ACEOF 6264 1.1 christos 6265 1.1 christos 6266 1.1 christos case "$ac_cv_prog_CC" in 6267 1.1 christos cl*) 6268 1.1 christos cat >>confdefs.h <<\_ACEOF 6269 1.1 christos #define alloca _alloca 6270 1.1 christos _ACEOF 6271 1.1 christos ;; 6272 1.1 christos *) ;; 6273 1.1 christos esac 6274 1.1 christos 6275 1.1 christos ALL_LINGUAS="cs de el eo es et fr gl hr id it ja ko nl no pl pt_BR ru sl sv" 6276 1.1 christos 6277 1.1 christos echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5 6278 1.1 christos echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6 6279 1.1 christos if test "${ac_cv_lib_cposix_strerror+set}" = set; then 6280 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 6281 1.1 christos else 6282 1.1 christos ac_check_lib_save_LIBS=$LIBS 6283 1.1 christos LIBS="-lcposix $LIBS" 6284 1.1 christos cat >conftest.$ac_ext <<_ACEOF 6285 1.1 christos #line $LINENO "configure" 6286 1.1 christos #include "confdefs.h" 6287 1.1 christos 6288 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 6289 1.1 christos #ifdef __cplusplus 6290 1.1 christos extern "C" 6291 1.1 christos #endif 6292 1.1 christos /* We use char because int might match the return type of a gcc2 6293 1.1 christos builtin and then its argument prototype would still apply. */ 6294 1.1 christos char strerror (); 6295 1.1 christos #ifdef F77_DUMMY_MAIN 6296 1.1 christos # ifdef __cplusplus 6297 1.1 christos extern "C" 6298 1.1 christos # endif 6299 1.1 christos int F77_DUMMY_MAIN() { return 1; } 6300 1.1 christos #endif 6301 1.1 christos int 6302 1.1 christos main () 6303 1.1 christos { 6304 1.1 christos strerror (); 6305 1.1 christos ; 6306 1.1 christos return 0; 6307 1.1 christos } 6308 1.1 christos _ACEOF 6309 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 6310 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6311 1.1 christos (eval $ac_link) 2>&5 6312 1.1 christos ac_status=$? 6313 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6314 1.1 christos (exit $ac_status); } && 6315 1.1 christos { ac_try='test -s conftest$ac_exeext' 6316 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6317 1.1 christos (eval $ac_try) 2>&5 6318 1.1 christos ac_status=$? 6319 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6320 1.1 christos (exit $ac_status); }; }; then 6321 1.1 christos ac_cv_lib_cposix_strerror=yes 6322 1.1 christos else 6323 1.1 christos echo "$as_me: failed program was:" >&5 6324 1.1 christos cat conftest.$ac_ext >&5 6325 1.1 christos ac_cv_lib_cposix_strerror=no 6326 1.1 christos fi 6327 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6328 1.1 christos LIBS=$ac_check_lib_save_LIBS 6329 1.1 christos fi 6330 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5 6331 1.1 christos echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6 6332 1.1 christos if test $ac_cv_lib_cposix_strerror = yes; then 6333 1.1 christos LIBS="$LIBS -lcposix" 6334 1.1 christos fi 6335 1.1 christos 6336 1.1 christos 6337 1.1 christos 6338 1.1 christos echo "$as_me:$LINENO: checking for inline" >&5 6339 1.1 christos echo $ECHO_N "checking for inline... $ECHO_C" >&6 6340 1.1 christos if test "${ac_cv_c_inline+set}" = set; then 6341 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 6342 1.1 christos else 6343 1.1 christos ac_cv_c_inline=no 6344 1.1 christos for ac_kw in inline __inline__ __inline; do 6345 1.1 christos cat >conftest.$ac_ext <<_ACEOF 6346 1.1 christos #line $LINENO "configure" 6347 1.1 christos #include "confdefs.h" 6348 1.1 christos #ifndef __cplusplus 6349 1.1 christos static $ac_kw int static_foo () {return 0; } 6350 1.1 christos $ac_kw int foo () {return 0; } 6351 1.1 christos #endif 6352 1.1 christos 6353 1.1 christos _ACEOF 6354 1.1 christos rm -f conftest.$ac_objext 6355 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6356 1.1 christos (eval $ac_compile) 2>&5 6357 1.1 christos ac_status=$? 6358 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6359 1.1 christos (exit $ac_status); } && 6360 1.1 christos { ac_try='test -s conftest.$ac_objext' 6361 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6362 1.1 christos (eval $ac_try) 2>&5 6363 1.1 christos ac_status=$? 6364 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6365 1.1 christos (exit $ac_status); }; }; then 6366 1.1 christos ac_cv_c_inline=$ac_kw; break 6367 1.1 christos else 6368 1.1 christos echo "$as_me: failed program was:" >&5 6369 1.1 christos cat conftest.$ac_ext >&5 6370 1.1 christos fi 6371 1.1 christos rm -f conftest.$ac_objext conftest.$ac_ext 6372 1.1 christos done 6373 1.1 christos 6374 1.1 christos fi 6375 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 6376 1.1 christos echo "${ECHO_T}$ac_cv_c_inline" >&6 6377 1.1 christos case $ac_cv_c_inline in 6378 1.1 christos inline | yes) ;; 6379 1.1 christos no) 6380 1.1 christos cat >>confdefs.h <<\_ACEOF 6381 1.1 christos #define inline 6382 1.1 christos _ACEOF 6383 1.1 christos ;; 6384 1.1 christos *) cat >>confdefs.h <<_ACEOF 6385 1.1 christos #define inline $ac_cv_c_inline 6386 1.1 christos _ACEOF 6387 1.1 christos ;; 6388 1.1 christos esac 6389 1.1 christos 6390 1.1 christos echo "$as_me:$LINENO: checking for off_t" >&5 6391 1.1 christos echo $ECHO_N "checking for off_t... $ECHO_C" >&6 6392 1.1 christos if test "${ac_cv_type_off_t+set}" = set; then 6393 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 6394 1.1 christos else 6395 1.1 christos cat >conftest.$ac_ext <<_ACEOF 6396 1.1 christos #line $LINENO "configure" 6397 1.1 christos #include "confdefs.h" 6398 1.1 christos $ac_includes_default 6399 1.1 christos #ifdef F77_DUMMY_MAIN 6400 1.1 christos # ifdef __cplusplus 6401 1.1 christos extern "C" 6402 1.1 christos # endif 6403 1.1 christos int F77_DUMMY_MAIN() { return 1; } 6404 1.1 christos #endif 6405 1.1 christos int 6406 1.1 christos main () 6407 1.1 christos { 6408 1.1 christos if ((off_t *) 0) 6409 1.1 christos return 0; 6410 1.1 christos if (sizeof (off_t)) 6411 1.1 christos return 0; 6412 1.1 christos ; 6413 1.1 christos return 0; 6414 1.1 christos } 6415 1.1 christos _ACEOF 6416 1.1 christos rm -f conftest.$ac_objext 6417 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6418 1.1 christos (eval $ac_compile) 2>&5 6419 1.1 christos ac_status=$? 6420 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6421 1.1 christos (exit $ac_status); } && 6422 1.1 christos { ac_try='test -s conftest.$ac_objext' 6423 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6424 1.1 christos (eval $ac_try) 2>&5 6425 1.1 christos ac_status=$? 6426 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6427 1.1 christos (exit $ac_status); }; }; then 6428 1.1 christos ac_cv_type_off_t=yes 6429 1.1 christos else 6430 1.1 christos echo "$as_me: failed program was:" >&5 6431 1.1 christos cat conftest.$ac_ext >&5 6432 1.1 christos ac_cv_type_off_t=no 6433 1.1 christos fi 6434 1.1 christos rm -f conftest.$ac_objext conftest.$ac_ext 6435 1.1 christos fi 6436 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 6437 1.1 christos echo "${ECHO_T}$ac_cv_type_off_t" >&6 6438 1.1 christos if test $ac_cv_type_off_t = yes; then 6439 1.1 christos : 6440 1.1 christos else 6441 1.1 christos 6442 1.1 christos cat >>confdefs.h <<_ACEOF 6443 1.1 christos #define off_t long 6444 1.1 christos _ACEOF 6445 1.1 christos 6446 1.1 christos fi 6447 1.1 christos 6448 1.1 christos 6449 1.1 christos echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 6450 1.1 christos echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6 6451 1.1 christos if test "${ac_cv_gnu_library_2_1+set}" = set; then 6452 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 6453 1.1 christos else 6454 1.1 christos cat >conftest.$ac_ext <<_ACEOF 6455 1.1 christos #line $LINENO "configure" 6456 1.1 christos #include "confdefs.h" 6457 1.1 christos 6458 1.1 christos #include <features.h> 6459 1.1 christos #ifdef __GNU_LIBRARY__ 6460 1.1 christos #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) 6461 1.1 christos Lucky GNU user 6462 1.1 christos #endif 6463 1.1 christos #endif 6464 1.1 christos 6465 1.1 christos _ACEOF 6466 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6467 1.1 christos egrep "Lucky GNU user" >/dev/null 2>&1; then 6468 1.1 christos ac_cv_gnu_library_2_1=yes 6469 1.1 christos else 6470 1.1 christos ac_cv_gnu_library_2_1=no 6471 1.1 christos fi 6472 1.1 christos rm -f conftest* 6473 1.1 christos 6474 1.1 christos 6475 1.1 christos 6476 1.1 christos fi 6477 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 6478 1.1 christos echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6 6479 1.1 christos 6480 1.1 christos GLIBC21="$ac_cv_gnu_library_2_1" 6481 1.1 christos 6482 1.1 christos 6483 1.1 christos 6484 1.1 christos 6485 1.1 christos 6486 1.1 christos 6487 1.1 christos 6488 1.1 christos 6489 1.1 christos 6490 1.1 christos 6491 1.1 christos 6492 1.1 christos 6493 1.1 christos 6494 1.1 christos for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ 6495 1.1 christos stdlib.h string.h unistd.h sys/param.h 6496 1.1 christos do 6497 1.1 christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6498 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 6499 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 6500 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6501 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 6502 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 6503 1.1 christos fi 6504 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6505 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6506 1.1 christos else 6507 1.1 christos # Is the header compilable? 6508 1.1 christos echo "$as_me:$LINENO: checking $ac_header usability" >&5 6509 1.1 christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6510 1.1 christos cat >conftest.$ac_ext <<_ACEOF 6511 1.1 christos #line $LINENO "configure" 6512 1.1 christos #include "confdefs.h" 6513 1.1 christos $ac_includes_default 6514 1.1 christos #include <$ac_header> 6515 1.1 christos _ACEOF 6516 1.1 christos rm -f conftest.$ac_objext 6517 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6518 1.1 christos (eval $ac_compile) 2>&5 6519 1.1 christos ac_status=$? 6520 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6521 1.1 christos (exit $ac_status); } && 6522 1.1 christos { ac_try='test -s conftest.$ac_objext' 6523 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6524 1.1 christos (eval $ac_try) 2>&5 6525 1.1 christos ac_status=$? 6526 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6527 1.1 christos (exit $ac_status); }; }; then 6528 1.1 christos ac_header_compiler=yes 6529 1.1 christos else 6530 1.1 christos echo "$as_me: failed program was:" >&5 6531 1.1 christos cat conftest.$ac_ext >&5 6532 1.1 christos ac_header_compiler=no 6533 1.1 christos fi 6534 1.1 christos rm -f conftest.$ac_objext conftest.$ac_ext 6535 1.1 christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6536 1.1 christos echo "${ECHO_T}$ac_header_compiler" >&6 6537 1.1 christos 6538 1.1 christos # Is the header present? 6539 1.1 christos echo "$as_me:$LINENO: checking $ac_header presence" >&5 6540 1.1 christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6541 1.1 christos cat >conftest.$ac_ext <<_ACEOF 6542 1.1 christos #line $LINENO "configure" 6543 1.1 christos #include "confdefs.h" 6544 1.1 christos #include <$ac_header> 6545 1.1 christos _ACEOF 6546 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6547 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6548 1.1 christos ac_status=$? 6549 1.1 christos egrep -v '^ *\+' conftest.er1 >conftest.err 6550 1.1 christos rm -f conftest.er1 6551 1.1 christos cat conftest.err >&5 6552 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6553 1.1 christos (exit $ac_status); } >/dev/null; then 6554 1.1 christos if test -s conftest.err; then 6555 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag 6556 1.1 christos else 6557 1.1 christos ac_cpp_err= 6558 1.1 christos fi 6559 1.1 christos else 6560 1.1 christos ac_cpp_err=yes 6561 1.1 christos fi 6562 1.1 christos if test -z "$ac_cpp_err"; then 6563 1.1 christos ac_header_preproc=yes 6564 1.1 christos else 6565 1.1 christos echo "$as_me: failed program was:" >&5 6566 1.1 christos cat conftest.$ac_ext >&5 6567 1.1 christos ac_header_preproc=no 6568 1.1 christos fi 6569 1.1 christos rm -f conftest.err conftest.$ac_ext 6570 1.1 christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6571 1.1 christos echo "${ECHO_T}$ac_header_preproc" >&6 6572 1.1 christos 6573 1.1 christos # So? What about this header? 6574 1.1 christos case $ac_header_compiler:$ac_header_preproc in 6575 1.1 christos yes:no ) 6576 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6577 1.1 christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6578 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6579 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 6580 1.1 christos no:yes ) 6581 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6582 1.1 christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6583 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6584 1.1 christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6585 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6586 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 6587 1.1 christos esac 6588 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 6589 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6590 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 6591 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 6592 1.1 christos else 6593 1.1 christos eval "$as_ac_Header=$ac_header_preproc" 6594 1.1 christos fi 6595 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6596 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6597 1.1 christos 6598 1.1 christos fi 6599 1.1 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then 6600 1.1 christos cat >>confdefs.h <<_ACEOF 6601 1.1 christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6602 1.1 christos _ACEOF 6603 1.1 christos 6604 1.1 christos fi 6605 1.1 christos 6606 1.1 christos done 6607 1.1 christos 6608 1.1 christos 6609 1.1 christos 6610 1.1 christos 6611 1.1 christos 6612 1.1 christos 6613 1.1 christos 6614 1.1 christos 6615 1.1 christos 6616 1.1 christos 6617 1.1 christos 6618 1.1 christos 6619 1.1 christos 6620 1.1 christos 6621 1.1 christos 6622 1.1 christos 6623 1.1 christos 6624 1.1 christos 6625 1.1 christos 6626 1.1 christos 6627 1.1 christos 6628 1.1 christos 6629 1.1 christos for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \ 6630 1.1 christos getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \ 6631 1.1 christos strdup strtoul tsearch __argz_count __argz_stringify __argz_next 6632 1.1 christos do 6633 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6634 1.1 christos echo "$as_me:$LINENO: checking for $ac_func" >&5 6635 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6636 1.1 christos if eval "test \"\${$as_ac_var+set}\" = set"; then 6637 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 6638 1.1 christos else 6639 1.1 christos cat >conftest.$ac_ext <<_ACEOF 6640 1.1 christos #line $LINENO "configure" 6641 1.1 christos #include "confdefs.h" 6642 1.1 christos /* System header to define __stub macros and hopefully few prototypes, 6643 1.1 christos which can conflict with char $ac_func (); below. */ 6644 1.1 christos #include <assert.h> 6645 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 6646 1.1 christos #ifdef __cplusplus 6647 1.1 christos extern "C" 6648 1.1 christos #endif 6649 1.1 christos /* We use char because int might match the return type of a gcc2 6650 1.1 christos builtin and then its argument prototype would still apply. */ 6651 1.1 christos char $ac_func (); 6652 1.1 christos char (*f) (); 6653 1.1 christos 6654 1.1 christos #ifdef F77_DUMMY_MAIN 6655 1.1 christos # ifdef __cplusplus 6656 1.1 christos extern "C" 6657 1.1 christos # endif 6658 1.1 christos int F77_DUMMY_MAIN() { return 1; } 6659 1.1 christos #endif 6660 1.1 christos int 6661 1.1 christos main () 6662 1.1 christos { 6663 1.1 christos /* The GNU C library defines this for functions which it implements 6664 1.1 christos to always fail with ENOSYS. Some functions are actually named 6665 1.1 christos something starting with __ and the normal name is an alias. */ 6666 1.1 christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6667 1.1 christos choke me 6668 1.1 christos #else 6669 1.1 christos f = $ac_func; 6670 1.1 christos #endif 6671 1.1 christos 6672 1.1 christos ; 6673 1.1 christos return 0; 6674 1.1 christos } 6675 1.1 christos _ACEOF 6676 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 6677 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6678 1.1 christos (eval $ac_link) 2>&5 6679 1.1 christos ac_status=$? 6680 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6681 1.1 christos (exit $ac_status); } && 6682 1.1 christos { ac_try='test -s conftest$ac_exeext' 6683 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6684 1.1 christos (eval $ac_try) 2>&5 6685 1.1 christos ac_status=$? 6686 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6687 1.1 christos (exit $ac_status); }; }; then 6688 1.1 christos eval "$as_ac_var=yes" 6689 1.1 christos else 6690 1.1 christos echo "$as_me: failed program was:" >&5 6691 1.1 christos cat conftest.$ac_ext >&5 6692 1.1 christos eval "$as_ac_var=no" 6693 1.1 christos fi 6694 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6695 1.1 christos fi 6696 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6697 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6698 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then 6699 1.1 christos cat >>confdefs.h <<_ACEOF 6700 1.1 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6701 1.1 christos _ACEOF 6702 1.1 christos 6703 1.1 christos fi 6704 1.1 christos done 6705 1.1 christos 6706 1.1 christos 6707 1.1 christos 6708 1.1 christos 6709 1.1 christos 6710 1.1 christos # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. 6711 1.1 christos if test "${with_libiconv_prefix+set}" = set; then 6712 1.1 christos withval="$with_libiconv_prefix" 6713 1.1 christos 6714 1.1 christos for dir in `echo "$withval" | tr : ' '`; do 6715 1.1 christos if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi 6716 1.1 christos if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi 6717 1.1 christos done 6718 1.1 christos 6719 1.1 christos fi; 6720 1.1 christos 6721 1.1 christos echo "$as_me:$LINENO: checking for iconv" >&5 6722 1.1 christos echo $ECHO_N "checking for iconv... $ECHO_C" >&6 6723 1.1 christos if test "${am_cv_func_iconv+set}" = set; then 6724 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 6725 1.1 christos else 6726 1.1 christos 6727 1.1 christos am_cv_func_iconv="no, consider installing GNU libiconv" 6728 1.1 christos am_cv_lib_iconv=no 6729 1.1 christos cat >conftest.$ac_ext <<_ACEOF 6730 1.1 christos #line $LINENO "configure" 6731 1.1 christos #include "confdefs.h" 6732 1.1 christos #include <stdlib.h> 6733 1.1 christos #include <iconv.h> 6734 1.1 christos #ifdef F77_DUMMY_MAIN 6735 1.1 christos # ifdef __cplusplus 6736 1.1 christos extern "C" 6737 1.1 christos # endif 6738 1.1 christos int F77_DUMMY_MAIN() { return 1; } 6739 1.1 christos #endif 6740 1.1 christos int 6741 1.1 christos main () 6742 1.1 christos { 6743 1.1 christos iconv_t cd = iconv_open("",""); 6744 1.1 christos iconv(cd,NULL,NULL,NULL,NULL); 6745 1.1 christos iconv_close(cd); 6746 1.1 christos ; 6747 1.1 christos return 0; 6748 1.1 christos } 6749 1.1 christos _ACEOF 6750 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 6751 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6752 1.1 christos (eval $ac_link) 2>&5 6753 1.1 christos ac_status=$? 6754 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6755 1.1 christos (exit $ac_status); } && 6756 1.1 christos { ac_try='test -s conftest$ac_exeext' 6757 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6758 1.1 christos (eval $ac_try) 2>&5 6759 1.1 christos ac_status=$? 6760 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6761 1.1 christos (exit $ac_status); }; }; then 6762 1.1 christos am_cv_func_iconv=yes 6763 1.1 christos else 6764 1.1 christos echo "$as_me: failed program was:" >&5 6765 1.1 christos cat conftest.$ac_ext >&5 6766 1.1 christos fi 6767 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6768 1.1 christos if test "$am_cv_func_iconv" != yes; then 6769 1.1 christos am_save_LIBS="$LIBS" 6770 1.1 christos LIBS="$LIBS -liconv" 6771 1.1 christos cat >conftest.$ac_ext <<_ACEOF 6772 1.1 christos #line $LINENO "configure" 6773 1.1 christos #include "confdefs.h" 6774 1.1 christos #include <stdlib.h> 6775 1.1 christos #include <iconv.h> 6776 1.1 christos #ifdef F77_DUMMY_MAIN 6777 1.1 christos # ifdef __cplusplus 6778 1.1 christos extern "C" 6779 1.1 christos # endif 6780 1.1 christos int F77_DUMMY_MAIN() { return 1; } 6781 1.1 christos #endif 6782 1.1 christos int 6783 1.1 christos main () 6784 1.1 christos { 6785 1.1 christos iconv_t cd = iconv_open("",""); 6786 1.1 christos iconv(cd,NULL,NULL,NULL,NULL); 6787 1.1 christos iconv_close(cd); 6788 1.1 christos ; 6789 1.1 christos return 0; 6790 1.1 christos } 6791 1.1 christos _ACEOF 6792 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 6793 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6794 1.1 christos (eval $ac_link) 2>&5 6795 1.1 christos ac_status=$? 6796 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6797 1.1 christos (exit $ac_status); } && 6798 1.1 christos { ac_try='test -s conftest$ac_exeext' 6799 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6800 1.1 christos (eval $ac_try) 2>&5 6801 1.1 christos ac_status=$? 6802 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6803 1.1 christos (exit $ac_status); }; }; then 6804 1.1 christos am_cv_lib_iconv=yes 6805 1.1 christos am_cv_func_iconv=yes 6806 1.1 christos else 6807 1.1 christos echo "$as_me: failed program was:" >&5 6808 1.1 christos cat conftest.$ac_ext >&5 6809 1.1 christos fi 6810 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6811 1.1 christos LIBS="$am_save_LIBS" 6812 1.1 christos fi 6813 1.1 christos 6814 1.1 christos fi 6815 1.1 christos echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 6816 1.1 christos echo "${ECHO_T}$am_cv_func_iconv" >&6 6817 1.1 christos if test "$am_cv_func_iconv" = yes; then 6818 1.1 christos 6819 1.1 christos cat >>confdefs.h <<\_ACEOF 6820 1.1 christos #define HAVE_ICONV 1 6821 1.1 christos _ACEOF 6822 1.1 christos 6823 1.1 christos echo "$as_me:$LINENO: checking for iconv declaration" >&5 6824 1.1 christos echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 6825 1.1 christos if test "${am_cv_proto_iconv+set}" = set; then 6826 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 6827 1.1 christos else 6828 1.1 christos 6829 1.1 christos cat >conftest.$ac_ext <<_ACEOF 6830 1.1 christos #line $LINENO "configure" 6831 1.1 christos #include "confdefs.h" 6832 1.1 christos 6833 1.1 christos #include <stdlib.h> 6834 1.1 christos #include <iconv.h> 6835 1.1 christos extern 6836 1.1 christos #ifdef __cplusplus 6837 1.1 christos "C" 6838 1.1 christos #endif 6839 1.1 christos #if defined(__STDC__) || defined(__cplusplus) 6840 1.1 christos size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 6841 1.1 christos #else 6842 1.1 christos size_t iconv(); 6843 1.1 christos #endif 6844 1.1 christos 6845 1.1 christos #ifdef F77_DUMMY_MAIN 6846 1.1 christos # ifdef __cplusplus 6847 1.1 christos extern "C" 6848 1.1 christos # endif 6849 1.1 christos int F77_DUMMY_MAIN() { return 1; } 6850 1.1 christos #endif 6851 1.1 christos int 6852 1.1 christos main () 6853 1.1 christos { 6854 1.1 christos 6855 1.1 christos ; 6856 1.1 christos return 0; 6857 1.1 christos } 6858 1.1 christos _ACEOF 6859 1.1 christos rm -f conftest.$ac_objext 6860 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6861 1.1 christos (eval $ac_compile) 2>&5 6862 1.1 christos ac_status=$? 6863 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6864 1.1 christos (exit $ac_status); } && 6865 1.1 christos { ac_try='test -s conftest.$ac_objext' 6866 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6867 1.1 christos (eval $ac_try) 2>&5 6868 1.1 christos ac_status=$? 6869 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6870 1.1 christos (exit $ac_status); }; }; then 6871 1.1 christos am_cv_proto_iconv_arg1="" 6872 1.1 christos else 6873 1.1 christos echo "$as_me: failed program was:" >&5 6874 1.1 christos cat conftest.$ac_ext >&5 6875 1.1 christos am_cv_proto_iconv_arg1="const" 6876 1.1 christos fi 6877 1.1 christos rm -f conftest.$ac_objext conftest.$ac_ext 6878 1.1 christos am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" 6879 1.1 christos fi 6880 1.1 christos 6881 1.1 christos am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 6882 1.1 christos echo "$as_me:$LINENO: result: ${ac_t:- 6883 1.1 christos }$am_cv_proto_iconv" >&5 6884 1.1 christos echo "${ECHO_T}${ac_t:- 6885 1.1 christos }$am_cv_proto_iconv" >&6 6886 1.1 christos 6887 1.1 christos cat >>confdefs.h <<_ACEOF 6888 1.1 christos #define ICONV_CONST $am_cv_proto_iconv_arg1 6889 1.1 christos _ACEOF 6890 1.1 christos 6891 1.1 christos fi 6892 1.1 christos LIBICONV= 6893 1.1 christos if test "$am_cv_lib_iconv" = yes; then 6894 1.1 christos LIBICONV="-liconv" 6895 1.1 christos fi 6896 1.1 christos 6897 1.1 christos 6898 1.1 christos 6899 1.1 christos echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 6900 1.1 christos echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 6901 1.1 christos if test "${am_cv_langinfo_codeset+set}" = set; then 6902 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 6903 1.1 christos else 6904 1.1 christos cat >conftest.$ac_ext <<_ACEOF 6905 1.1 christos #line $LINENO "configure" 6906 1.1 christos #include "confdefs.h" 6907 1.1 christos #include <langinfo.h> 6908 1.1 christos #ifdef F77_DUMMY_MAIN 6909 1.1 christos # ifdef __cplusplus 6910 1.1 christos extern "C" 6911 1.1 christos # endif 6912 1.1 christos int F77_DUMMY_MAIN() { return 1; } 6913 1.1 christos #endif 6914 1.1 christos int 6915 1.1 christos main () 6916 1.1 christos { 6917 1.1 christos char* cs = nl_langinfo(CODESET); 6918 1.1 christos ; 6919 1.1 christos return 0; 6920 1.1 christos } 6921 1.1 christos _ACEOF 6922 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 6923 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6924 1.1 christos (eval $ac_link) 2>&5 6925 1.1 christos ac_status=$? 6926 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6927 1.1 christos (exit $ac_status); } && 6928 1.1 christos { ac_try='test -s conftest$ac_exeext' 6929 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6930 1.1 christos (eval $ac_try) 2>&5 6931 1.1 christos ac_status=$? 6932 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6933 1.1 christos (exit $ac_status); }; }; then 6934 1.1 christos am_cv_langinfo_codeset=yes 6935 1.1 christos else 6936 1.1 christos echo "$as_me: failed program was:" >&5 6937 1.1 christos cat conftest.$ac_ext >&5 6938 1.1 christos am_cv_langinfo_codeset=no 6939 1.1 christos fi 6940 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6941 1.1 christos 6942 1.1 christos fi 6943 1.1 christos echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 6944 1.1 christos echo "${ECHO_T}$am_cv_langinfo_codeset" >&6 6945 1.1 christos if test $am_cv_langinfo_codeset = yes; then 6946 1.1 christos 6947 1.1 christos cat >>confdefs.h <<\_ACEOF 6948 1.1 christos #define HAVE_LANGINFO_CODESET 1 6949 1.1 christos _ACEOF 6950 1.1 christos 6951 1.1 christos fi 6952 1.1 christos 6953 1.1 christos if test $ac_cv_header_locale_h = yes; then 6954 1.1 christos echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 6955 1.1 christos echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 6956 1.1 christos if test "${am_cv_val_LC_MESSAGES+set}" = set; then 6957 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 6958 1.1 christos else 6959 1.1 christos cat >conftest.$ac_ext <<_ACEOF 6960 1.1 christos #line $LINENO "configure" 6961 1.1 christos #include "confdefs.h" 6962 1.1 christos #include <locale.h> 6963 1.1 christos #ifdef F77_DUMMY_MAIN 6964 1.1 christos # ifdef __cplusplus 6965 1.1 christos extern "C" 6966 1.1 christos # endif 6967 1.1 christos int F77_DUMMY_MAIN() { return 1; } 6968 1.1 christos #endif 6969 1.1 christos int 6970 1.1 christos main () 6971 1.1 christos { 6972 1.1 christos return LC_MESSAGES 6973 1.1 christos ; 6974 1.1 christos return 0; 6975 1.1 christos } 6976 1.1 christos _ACEOF 6977 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 6978 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6979 1.1 christos (eval $ac_link) 2>&5 6980 1.1 christos ac_status=$? 6981 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6982 1.1 christos (exit $ac_status); } && 6983 1.1 christos { ac_try='test -s conftest$ac_exeext' 6984 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6985 1.1 christos (eval $ac_try) 2>&5 6986 1.1 christos ac_status=$? 6987 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6988 1.1 christos (exit $ac_status); }; }; then 6989 1.1 christos am_cv_val_LC_MESSAGES=yes 6990 1.1 christos else 6991 1.1 christos echo "$as_me: failed program was:" >&5 6992 1.1 christos cat conftest.$ac_ext >&5 6993 1.1 christos am_cv_val_LC_MESSAGES=no 6994 1.1 christos fi 6995 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6996 1.1 christos fi 6997 1.1 christos echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 6998 1.1 christos echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 6999 1.1 christos if test $am_cv_val_LC_MESSAGES = yes; then 7000 1.1 christos 7001 1.1 christos cat >>confdefs.h <<\_ACEOF 7002 1.1 christos #define HAVE_LC_MESSAGES 1 7003 1.1 christos _ACEOF 7004 1.1 christos 7005 1.1 christos fi 7006 1.1 christos fi 7007 1.1 christos echo "$as_me:$LINENO: checking whether NLS is requested" >&5 7008 1.1 christos echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 7009 1.1 christos # Check whether --enable-nls or --disable-nls was given. 7010 1.1 christos if test "${enable_nls+set}" = set; then 7011 1.1 christos enableval="$enable_nls" 7012 1.1 christos USE_NLS=$enableval 7013 1.1 christos else 7014 1.1 christos USE_NLS=yes 7015 1.1 christos fi; 7016 1.1 christos echo "$as_me:$LINENO: result: $USE_NLS" >&5 7017 1.1 christos echo "${ECHO_T}$USE_NLS" >&6 7018 1.1 christos 7019 1.1 christos 7020 1.1 christos BUILD_INCLUDED_LIBINTL=no 7021 1.1 christos USE_INCLUDED_LIBINTL=no 7022 1.1 christos INTLLIBS= 7023 1.1 christos 7024 1.1 christos if test "$USE_NLS" = "yes"; then 7025 1.1 christos 7026 1.1 christos cat >>confdefs.h <<\_ACEOF 7027 1.1 christos #define ENABLE_NLS 1 7028 1.1 christos _ACEOF 7029 1.1 christos 7030 1.1 christos echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 7031 1.1 christos echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 7032 1.1 christos 7033 1.1 christos # Check whether --with-included-gettext or --without-included-gettext was given. 7034 1.1 christos if test "${with_included_gettext+set}" = set; then 7035 1.1 christos withval="$with_included_gettext" 7036 1.1 christos nls_cv_force_use_gnu_gettext=$withval 7037 1.1 christos else 7038 1.1 christos nls_cv_force_use_gnu_gettext=no 7039 1.1 christos fi; 7040 1.1 christos echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 7041 1.1 christos echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 7042 1.1 christos 7043 1.1 christos nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 7044 1.1 christos if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 7045 1.1 christos CATOBJEXT=NONE 7046 1.1 christos 7047 1.1 christos 7048 1.1 christos 7049 1.1 christos 7050 1.1 christos if test "${ac_cv_header_libintl_h+set}" = set; then 7051 1.1 christos echo "$as_me:$LINENO: checking for libintl.h" >&5 7052 1.1 christos echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 7053 1.1 christos if test "${ac_cv_header_libintl_h+set}" = set; then 7054 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 7055 1.1 christos fi 7056 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 7057 1.1 christos echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 7058 1.1 christos else 7059 1.1 christos # Is the header compilable? 7060 1.1 christos echo "$as_me:$LINENO: checking libintl.h usability" >&5 7061 1.1 christos echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6 7062 1.1 christos cat >conftest.$ac_ext <<_ACEOF 7063 1.1 christos #line $LINENO "configure" 7064 1.1 christos #include "confdefs.h" 7065 1.1 christos $ac_includes_default 7066 1.1 christos #include <libintl.h> 7067 1.1 christos _ACEOF 7068 1.1 christos rm -f conftest.$ac_objext 7069 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7070 1.1 christos (eval $ac_compile) 2>&5 7071 1.1 christos ac_status=$? 7072 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7073 1.1 christos (exit $ac_status); } && 7074 1.1 christos { ac_try='test -s conftest.$ac_objext' 7075 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7076 1.1 christos (eval $ac_try) 2>&5 7077 1.1 christos ac_status=$? 7078 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7079 1.1 christos (exit $ac_status); }; }; then 7080 1.1 christos ac_header_compiler=yes 7081 1.1 christos else 7082 1.1 christos echo "$as_me: failed program was:" >&5 7083 1.1 christos cat conftest.$ac_ext >&5 7084 1.1 christos ac_header_compiler=no 7085 1.1 christos fi 7086 1.1 christos rm -f conftest.$ac_objext conftest.$ac_ext 7087 1.1 christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7088 1.1 christos echo "${ECHO_T}$ac_header_compiler" >&6 7089 1.1 christos 7090 1.1 christos # Is the header present? 7091 1.1 christos echo "$as_me:$LINENO: checking libintl.h presence" >&5 7092 1.1 christos echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6 7093 1.1 christos cat >conftest.$ac_ext <<_ACEOF 7094 1.1 christos #line $LINENO "configure" 7095 1.1 christos #include "confdefs.h" 7096 1.1 christos #include <libintl.h> 7097 1.1 christos _ACEOF 7098 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7099 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7100 1.1 christos ac_status=$? 7101 1.1 christos egrep -v '^ *\+' conftest.er1 >conftest.err 7102 1.1 christos rm -f conftest.er1 7103 1.1 christos cat conftest.err >&5 7104 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7105 1.1 christos (exit $ac_status); } >/dev/null; then 7106 1.1 christos if test -s conftest.err; then 7107 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag 7108 1.1 christos else 7109 1.1 christos ac_cpp_err= 7110 1.1 christos fi 7111 1.1 christos else 7112 1.1 christos ac_cpp_err=yes 7113 1.1 christos fi 7114 1.1 christos if test -z "$ac_cpp_err"; then 7115 1.1 christos ac_header_preproc=yes 7116 1.1 christos else 7117 1.1 christos echo "$as_me: failed program was:" >&5 7118 1.1 christos cat conftest.$ac_ext >&5 7119 1.1 christos ac_header_preproc=no 7120 1.1 christos fi 7121 1.1 christos rm -f conftest.err conftest.$ac_ext 7122 1.1 christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7123 1.1 christos echo "${ECHO_T}$ac_header_preproc" >&6 7124 1.1 christos 7125 1.1 christos # So? What about this header? 7126 1.1 christos case $ac_header_compiler:$ac_header_preproc in 7127 1.1 christos yes:no ) 7128 1.1 christos { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5 7129 1.1 christos echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 7130 1.1 christos { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 7131 1.1 christos echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};; 7132 1.1 christos no:yes ) 7133 1.1 christos { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5 7134 1.1 christos echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;} 7135 1.1 christos { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5 7136 1.1 christos echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;} 7137 1.1 christos { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 7138 1.1 christos echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;};; 7139 1.1 christos esac 7140 1.1 christos echo "$as_me:$LINENO: checking for libintl.h" >&5 7141 1.1 christos echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 7142 1.1 christos if test "${ac_cv_header_libintl_h+set}" = set; then 7143 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 7144 1.1 christos else 7145 1.1 christos ac_cv_header_libintl_h=$ac_header_preproc 7146 1.1 christos fi 7147 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 7148 1.1 christos echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 7149 1.1 christos 7150 1.1 christos fi 7151 1.1 christos if test $ac_cv_header_libintl_h = yes; then 7152 1.1 christos echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 7153 1.1 christos echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6 7154 1.1 christos if test "${gt_cv_func_gnugettext1_libc+set}" = set; then 7155 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 7156 1.1 christos else 7157 1.1 christos cat >conftest.$ac_ext <<_ACEOF 7158 1.1 christos #line $LINENO "configure" 7159 1.1 christos #include "confdefs.h" 7160 1.1 christos #include <libintl.h> 7161 1.1 christos extern int _nl_msg_cat_cntr; 7162 1.1 christos #ifdef F77_DUMMY_MAIN 7163 1.1 christos # ifdef __cplusplus 7164 1.1 christos extern "C" 7165 1.1 christos # endif 7166 1.1 christos int F77_DUMMY_MAIN() { return 1; } 7167 1.1 christos #endif 7168 1.1 christos int 7169 1.1 christos main () 7170 1.1 christos { 7171 1.1 christos bindtextdomain ("", ""); 7172 1.1 christos return (int) gettext ("") + _nl_msg_cat_cntr 7173 1.1 christos ; 7174 1.1 christos return 0; 7175 1.1 christos } 7176 1.1 christos _ACEOF 7177 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 7178 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7179 1.1 christos (eval $ac_link) 2>&5 7180 1.1 christos ac_status=$? 7181 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7182 1.1 christos (exit $ac_status); } && 7183 1.1 christos { ac_try='test -s conftest$ac_exeext' 7184 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7185 1.1 christos (eval $ac_try) 2>&5 7186 1.1 christos ac_status=$? 7187 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7188 1.1 christos (exit $ac_status); }; }; then 7189 1.1 christos gt_cv_func_gnugettext1_libc=yes 7190 1.1 christos else 7191 1.1 christos echo "$as_me: failed program was:" >&5 7192 1.1 christos cat conftest.$ac_ext >&5 7193 1.1 christos gt_cv_func_gnugettext1_libc=no 7194 1.1 christos fi 7195 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7196 1.1 christos fi 7197 1.1 christos echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 7198 1.1 christos echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6 7199 1.1 christos 7200 1.1 christos if test "$gt_cv_func_gnugettext1_libc" != "yes"; then 7201 1.1 christos echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 7202 1.1 christos echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6 7203 1.1 christos if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then 7204 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 7205 1.1 christos else 7206 1.1 christos gt_save_LIBS="$LIBS" 7207 1.1 christos LIBS="$LIBS -lintl $LIBICONV" 7208 1.1 christos cat >conftest.$ac_ext <<_ACEOF 7209 1.1 christos #line $LINENO "configure" 7210 1.1 christos #include "confdefs.h" 7211 1.1 christos #include <libintl.h> 7212 1.1 christos extern int _nl_msg_cat_cntr; 7213 1.1 christos #ifdef F77_DUMMY_MAIN 7214 1.1 christos # ifdef __cplusplus 7215 1.1 christos extern "C" 7216 1.1 christos # endif 7217 1.1 christos int F77_DUMMY_MAIN() { return 1; } 7218 1.1 christos #endif 7219 1.1 christos int 7220 1.1 christos main () 7221 1.1 christos { 7222 1.1 christos bindtextdomain ("", ""); 7223 1.1 christos return (int) gettext ("") + _nl_msg_cat_cntr 7224 1.1 christos ; 7225 1.1 christos return 0; 7226 1.1 christos } 7227 1.1 christos _ACEOF 7228 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 7229 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7230 1.1 christos (eval $ac_link) 2>&5 7231 1.1 christos ac_status=$? 7232 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7233 1.1 christos (exit $ac_status); } && 7234 1.1 christos { ac_try='test -s conftest$ac_exeext' 7235 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7236 1.1 christos (eval $ac_try) 2>&5 7237 1.1 christos ac_status=$? 7238 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7239 1.1 christos (exit $ac_status); }; }; then 7240 1.1 christos gt_cv_func_gnugettext1_libintl=yes 7241 1.1 christos else 7242 1.1 christos echo "$as_me: failed program was:" >&5 7243 1.1 christos cat conftest.$ac_ext >&5 7244 1.1 christos gt_cv_func_gnugettext1_libintl=no 7245 1.1 christos fi 7246 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7247 1.1 christos LIBS="$gt_save_LIBS" 7248 1.1 christos fi 7249 1.1 christos echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 7250 1.1 christos echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6 7251 1.1 christos fi 7252 1.1 christos 7253 1.1 christos if test "$gt_cv_func_gnugettext1_libc" = "yes" \ 7254 1.1 christos || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ 7255 1.1 christos && test "$PACKAGE" != gettext; }; then 7256 1.1 christos 7257 1.1 christos cat >>confdefs.h <<\_ACEOF 7258 1.1 christos #define HAVE_GETTEXT 1 7259 1.1 christos _ACEOF 7260 1.1 christos 7261 1.1 christos 7262 1.1 christos if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 7263 1.1 christos INTLLIBS="-lintl $LIBICONV" 7264 1.1 christos fi 7265 1.1 christos 7266 1.1 christos gt_save_LIBS="$LIBS" 7267 1.1 christos LIBS="$LIBS $INTLLIBS" 7268 1.1 christos 7269 1.1 christos for ac_func in dcgettext 7270 1.1 christos do 7271 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7272 1.1 christos echo "$as_me:$LINENO: checking for $ac_func" >&5 7273 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7274 1.1 christos if eval "test \"\${$as_ac_var+set}\" = set"; then 7275 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 7276 1.1 christos else 7277 1.1 christos cat >conftest.$ac_ext <<_ACEOF 7278 1.1 christos #line $LINENO "configure" 7279 1.1 christos #include "confdefs.h" 7280 1.1 christos /* System header to define __stub macros and hopefully few prototypes, 7281 1.1 christos which can conflict with char $ac_func (); below. */ 7282 1.1 christos #include <assert.h> 7283 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 7284 1.1 christos #ifdef __cplusplus 7285 1.1 christos extern "C" 7286 1.1 christos #endif 7287 1.1 christos /* We use char because int might match the return type of a gcc2 7288 1.1 christos builtin and then its argument prototype would still apply. */ 7289 1.1 christos char $ac_func (); 7290 1.1 christos char (*f) (); 7291 1.1 christos 7292 1.1 christos #ifdef F77_DUMMY_MAIN 7293 1.1 christos # ifdef __cplusplus 7294 1.1 christos extern "C" 7295 1.1 christos # endif 7296 1.1 christos int F77_DUMMY_MAIN() { return 1; } 7297 1.1 christos #endif 7298 1.1 christos int 7299 1.1 christos main () 7300 1.1 christos { 7301 1.1 christos /* The GNU C library defines this for functions which it implements 7302 1.1 christos to always fail with ENOSYS. Some functions are actually named 7303 1.1 christos something starting with __ and the normal name is an alias. */ 7304 1.1 christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7305 1.1 christos choke me 7306 1.1 christos #else 7307 1.1 christos f = $ac_func; 7308 1.1 christos #endif 7309 1.1 christos 7310 1.1 christos ; 7311 1.1 christos return 0; 7312 1.1 christos } 7313 1.1 christos _ACEOF 7314 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 7315 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7316 1.1 christos (eval $ac_link) 2>&5 7317 1.1 christos ac_status=$? 7318 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7319 1.1 christos (exit $ac_status); } && 7320 1.1 christos { ac_try='test -s conftest$ac_exeext' 7321 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7322 1.1 christos (eval $ac_try) 2>&5 7323 1.1 christos ac_status=$? 7324 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7325 1.1 christos (exit $ac_status); }; }; then 7326 1.1 christos eval "$as_ac_var=yes" 7327 1.1 christos else 7328 1.1 christos echo "$as_me: failed program was:" >&5 7329 1.1 christos cat conftest.$ac_ext >&5 7330 1.1 christos eval "$as_ac_var=no" 7331 1.1 christos fi 7332 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7333 1.1 christos fi 7334 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 7335 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7336 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then 7337 1.1 christos cat >>confdefs.h <<_ACEOF 7338 1.1 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7339 1.1 christos _ACEOF 7340 1.1 christos 7341 1.1 christos fi 7342 1.1 christos done 7343 1.1 christos 7344 1.1 christos LIBS="$gt_save_LIBS" 7345 1.1 christos 7346 1.1 christos # Extract the first word of "msgfmt", so it can be a program name with args. 7347 1.1 christos set dummy msgfmt; ac_word=$2 7348 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 7349 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7350 1.1 christos if test "${ac_cv_path_MSGFMT+set}" = set; then 7351 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 7352 1.1 christos else 7353 1.1 christos case "$MSGFMT" in 7354 1.1 christos /*) 7355 1.1 christos ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 7356 1.1 christos ;; 7357 1.1 christos *) 7358 1.1 christos IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 7359 1.1 christos for ac_dir in $PATH; do 7360 1.1 christos test -z "$ac_dir" && ac_dir=. 7361 1.1 christos if test -f $ac_dir/$ac_word; then 7362 1.1 christos if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then 7363 1.1 christos ac_cv_path_MSGFMT="$ac_dir/$ac_word" 7364 1.1 christos break 7365 1.1 christos fi 7366 1.1 christos fi 7367 1.1 christos done 7368 1.1 christos IFS="$ac_save_ifs" 7369 1.1 christos test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 7370 1.1 christos ;; 7371 1.1 christos esac 7372 1.1 christos fi 7373 1.1 christos MSGFMT="$ac_cv_path_MSGFMT" 7374 1.1 christos if test "$MSGFMT" != ":"; then 7375 1.1 christos echo "$as_me:$LINENO: result: $MSGFMT" >&5 7376 1.1 christos echo "${ECHO_T}$MSGFMT" >&6 7377 1.1 christos else 7378 1.1 christos echo "$as_me:$LINENO: result: no" >&5 7379 1.1 christos echo "${ECHO_T}no" >&6 7380 1.1 christos fi 7381 1.1 christos 7382 1.1 christos # Extract the first word of "gmsgfmt", so it can be a program name with args. 7383 1.1 christos set dummy gmsgfmt; ac_word=$2 7384 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 7385 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7386 1.1 christos if test "${ac_cv_path_GMSGFMT+set}" = set; then 7387 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 7388 1.1 christos else 7389 1.1 christos case $GMSGFMT in 7390 1.1 christos [\\/]* | ?:[\\/]*) 7391 1.1 christos ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 7392 1.1 christos ;; 7393 1.1 christos *) 7394 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7395 1.1 christos for as_dir in $PATH 7396 1.1 christos do 7397 1.1 christos IFS=$as_save_IFS 7398 1.1 christos test -z "$as_dir" && as_dir=. 7399 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 7400 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7401 1.1 christos ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 7402 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7403 1.1 christos break 2 7404 1.1 christos fi 7405 1.1 christos done 7406 1.1 christos done 7407 1.1 christos 7408 1.1 christos test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 7409 1.1 christos ;; 7410 1.1 christos esac 7411 1.1 christos fi 7412 1.1 christos GMSGFMT=$ac_cv_path_GMSGFMT 7413 1.1 christos 7414 1.1 christos if test -n "$GMSGFMT"; then 7415 1.1 christos echo "$as_me:$LINENO: result: $GMSGFMT" >&5 7416 1.1 christos echo "${ECHO_T}$GMSGFMT" >&6 7417 1.1 christos else 7418 1.1 christos echo "$as_me:$LINENO: result: no" >&5 7419 1.1 christos echo "${ECHO_T}no" >&6 7420 1.1 christos fi 7421 1.1 christos 7422 1.1 christos 7423 1.1 christos # Extract the first word of "xgettext", so it can be a program name with args. 7424 1.1 christos set dummy xgettext; ac_word=$2 7425 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 7426 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7427 1.1 christos if test "${ac_cv_path_XGETTEXT+set}" = set; then 7428 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 7429 1.1 christos else 7430 1.1 christos case "$XGETTEXT" in 7431 1.1 christos /*) 7432 1.1 christos ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 7433 1.1 christos ;; 7434 1.1 christos *) 7435 1.1 christos IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 7436 1.1 christos for ac_dir in $PATH; do 7437 1.1 christos test -z "$ac_dir" && ac_dir=. 7438 1.1 christos if test -f $ac_dir/$ac_word; then 7439 1.1 christos if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then 7440 1.1 christos ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 7441 1.1 christos break 7442 1.1 christos fi 7443 1.1 christos fi 7444 1.1 christos done 7445 1.1 christos IFS="$ac_save_ifs" 7446 1.1 christos test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 7447 1.1 christos ;; 7448 1.1 christos esac 7449 1.1 christos fi 7450 1.1 christos XGETTEXT="$ac_cv_path_XGETTEXT" 7451 1.1 christos if test "$XGETTEXT" != ":"; then 7452 1.1 christos echo "$as_me:$LINENO: result: $XGETTEXT" >&5 7453 1.1 christos echo "${ECHO_T}$XGETTEXT" >&6 7454 1.1 christos else 7455 1.1 christos echo "$as_me:$LINENO: result: no" >&5 7456 1.1 christos echo "${ECHO_T}no" >&6 7457 1.1 christos fi 7458 1.1 christos 7459 1.1 christos 7460 1.1 christos CATOBJEXT=.gmo 7461 1.1 christos fi 7462 1.1 christos 7463 1.1 christos fi 7464 1.1 christos 7465 1.1 christos 7466 1.1 christos 7467 1.1 christos if test "$CATOBJEXT" = "NONE"; then 7468 1.1 christos nls_cv_use_gnu_gettext=yes 7469 1.1 christos fi 7470 1.1 christos fi 7471 1.1 christos 7472 1.1 christos if test "$nls_cv_use_gnu_gettext" = "yes"; then 7473 1.1 christos INTLOBJS="\$(GETTOBJS)" 7474 1.1 christos # Extract the first word of "msgfmt", so it can be a program name with args. 7475 1.1 christos set dummy msgfmt; ac_word=$2 7476 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 7477 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7478 1.1 christos if test "${ac_cv_path_MSGFMT+set}" = set; then 7479 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 7480 1.1 christos else 7481 1.1 christos case "$MSGFMT" in 7482 1.1 christos /*) 7483 1.1 christos ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 7484 1.1 christos ;; 7485 1.1 christos *) 7486 1.1 christos IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 7487 1.1 christos for ac_dir in $PATH; do 7488 1.1 christos test -z "$ac_dir" && ac_dir=. 7489 1.1 christos if test -f $ac_dir/$ac_word; then 7490 1.1 christos if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then 7491 1.1 christos ac_cv_path_MSGFMT="$ac_dir/$ac_word" 7492 1.1 christos break 7493 1.1 christos fi 7494 1.1 christos fi 7495 1.1 christos done 7496 1.1 christos IFS="$ac_save_ifs" 7497 1.1 christos test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 7498 1.1 christos ;; 7499 1.1 christos esac 7500 1.1 christos fi 7501 1.1 christos MSGFMT="$ac_cv_path_MSGFMT" 7502 1.1 christos if test "$MSGFMT" != ":"; then 7503 1.1 christos echo "$as_me:$LINENO: result: $MSGFMT" >&5 7504 1.1 christos echo "${ECHO_T}$MSGFMT" >&6 7505 1.1 christos else 7506 1.1 christos echo "$as_me:$LINENO: result: no" >&5 7507 1.1 christos echo "${ECHO_T}no" >&6 7508 1.1 christos fi 7509 1.1 christos 7510 1.1 christos # Extract the first word of "gmsgfmt", so it can be a program name with args. 7511 1.1 christos set dummy gmsgfmt; ac_word=$2 7512 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 7513 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7514 1.1 christos if test "${ac_cv_path_GMSGFMT+set}" = set; then 7515 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 7516 1.1 christos else 7517 1.1 christos case $GMSGFMT in 7518 1.1 christos [\\/]* | ?:[\\/]*) 7519 1.1 christos ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 7520 1.1 christos ;; 7521 1.1 christos *) 7522 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7523 1.1 christos for as_dir in $PATH 7524 1.1 christos do 7525 1.1 christos IFS=$as_save_IFS 7526 1.1 christos test -z "$as_dir" && as_dir=. 7527 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 7528 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7529 1.1 christos ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 7530 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7531 1.1 christos break 2 7532 1.1 christos fi 7533 1.1 christos done 7534 1.1 christos done 7535 1.1 christos 7536 1.1 christos test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 7537 1.1 christos ;; 7538 1.1 christos esac 7539 1.1 christos fi 7540 1.1 christos GMSGFMT=$ac_cv_path_GMSGFMT 7541 1.1 christos 7542 1.1 christos if test -n "$GMSGFMT"; then 7543 1.1 christos echo "$as_me:$LINENO: result: $GMSGFMT" >&5 7544 1.1 christos echo "${ECHO_T}$GMSGFMT" >&6 7545 1.1 christos else 7546 1.1 christos echo "$as_me:$LINENO: result: no" >&5 7547 1.1 christos echo "${ECHO_T}no" >&6 7548 1.1 christos fi 7549 1.1 christos 7550 1.1 christos # Extract the first word of "xgettext", so it can be a program name with args. 7551 1.1 christos set dummy xgettext; ac_word=$2 7552 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 7553 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7554 1.1 christos if test "${ac_cv_path_XGETTEXT+set}" = set; then 7555 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 7556 1.1 christos else 7557 1.1 christos case "$XGETTEXT" in 7558 1.1 christos /*) 7559 1.1 christos ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 7560 1.1 christos ;; 7561 1.1 christos *) 7562 1.1 christos IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 7563 1.1 christos for ac_dir in $PATH; do 7564 1.1 christos test -z "$ac_dir" && ac_dir=. 7565 1.1 christos if test -f $ac_dir/$ac_word; then 7566 1.1 christos if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then 7567 1.1 christos ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 7568 1.1 christos break 7569 1.1 christos fi 7570 1.1 christos fi 7571 1.1 christos done 7572 1.1 christos IFS="$ac_save_ifs" 7573 1.1 christos test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 7574 1.1 christos ;; 7575 1.1 christos esac 7576 1.1 christos fi 7577 1.1 christos XGETTEXT="$ac_cv_path_XGETTEXT" 7578 1.1 christos if test "$XGETTEXT" != ":"; then 7579 1.1 christos echo "$as_me:$LINENO: result: $XGETTEXT" >&5 7580 1.1 christos echo "${ECHO_T}$XGETTEXT" >&6 7581 1.1 christos else 7582 1.1 christos echo "$as_me:$LINENO: result: no" >&5 7583 1.1 christos echo "${ECHO_T}no" >&6 7584 1.1 christos fi 7585 1.1 christos 7586 1.1 christos 7587 1.1 christos BUILD_INCLUDED_LIBINTL=yes 7588 1.1 christos USE_INCLUDED_LIBINTL=yes 7589 1.1 christos CATOBJEXT=.gmo 7590 1.1 christos INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV" 7591 1.1 christos LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` 7592 1.1 christos fi 7593 1.1 christos 7594 1.1 christos if test "$GMSGFMT" != ":"; then 7595 1.1 christos if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then 7596 1.1 christos : ; 7597 1.1 christos else 7598 1.1 christos echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5 7599 1.1 christos echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6 7600 1.1 christos GMSGFMT=":" 7601 1.1 christos fi 7602 1.1 christos fi 7603 1.1 christos 7604 1.1 christos if test "$XGETTEXT" != ":"; then 7605 1.1 christos if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then 7606 1.1 christos : ; 7607 1.1 christos else 7608 1.1 christos echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 7609 1.1 christos echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 7610 1.1 christos XGETTEXT=":" 7611 1.1 christos fi 7612 1.1 christos fi 7613 1.1 christos 7614 1.1 christos POSUB=po 7615 1.1 christos fi 7616 1.1 christos ac_config_commands="$ac_config_commands default-2" 7617 1.1 christos 7618 1.1 christos 7619 1.1 christos 7620 1.1 christos if test "$PACKAGE" = gettext; then 7621 1.1 christos BUILD_INCLUDED_LIBINTL=yes 7622 1.1 christos fi 7623 1.1 christos 7624 1.1 christos for ac_prog in bison 7625 1.1 christos do 7626 1.1 christos # Extract the first word of "$ac_prog", so it can be a program name with args. 7627 1.1 christos set dummy $ac_prog; ac_word=$2 7628 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 7629 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7630 1.1 christos if test "${ac_cv_prog_INTLBISON+set}" = set; then 7631 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 7632 1.1 christos else 7633 1.1 christos if test -n "$INTLBISON"; then 7634 1.1 christos ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. 7635 1.1 christos else 7636 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7637 1.1 christos for as_dir in $PATH 7638 1.1 christos do 7639 1.1 christos IFS=$as_save_IFS 7640 1.1 christos test -z "$as_dir" && as_dir=. 7641 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 7642 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7643 1.1 christos ac_cv_prog_INTLBISON="$ac_prog" 7644 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7645 1.1 christos break 2 7646 1.1 christos fi 7647 1.1 christos done 7648 1.1 christos done 7649 1.1 christos 7650 1.1 christos fi 7651 1.1 christos fi 7652 1.1 christos INTLBISON=$ac_cv_prog_INTLBISON 7653 1.1 christos if test -n "$INTLBISON"; then 7654 1.1 christos echo "$as_me:$LINENO: result: $INTLBISON" >&5 7655 1.1 christos echo "${ECHO_T}$INTLBISON" >&6 7656 1.1 christos else 7657 1.1 christos echo "$as_me:$LINENO: result: no" >&5 7658 1.1 christos echo "${ECHO_T}no" >&6 7659 1.1 christos fi 7660 1.1 christos 7661 1.1 christos test -n "$INTLBISON" && break 7662 1.1 christos done 7663 1.1 christos 7664 1.1 christos if test -z "$INTLBISON"; then 7665 1.1 christos ac_verc_fail=yes 7666 1.1 christos else 7667 1.1 christos echo "$as_me:$LINENO: checking version of bison" >&5 7668 1.1 christos echo $ECHO_N "checking version of bison... $ECHO_C" >&6 7669 1.1 christos ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` 7670 1.1 christos case $ac_prog_version in 7671 1.1 christos '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; 7672 1.1 christos 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) 7673 1.1 christos ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; 7674 1.1 christos *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; 7675 1.1 christos esac 7676 1.1 christos echo "$as_me:$LINENO: result: $ac_prog_version" >&5 7677 1.1 christos echo "${ECHO_T}$ac_prog_version" >&6 7678 1.1 christos fi 7679 1.1 christos if test $ac_verc_fail = yes; then 7680 1.1 christos INTLBISON=: 7681 1.1 christos fi 7682 1.1 christos 7683 1.1 christos for lang in $ALL_LINGUAS; do 7684 1.1 christos GMOFILES="$GMOFILES $lang.gmo" 7685 1.1 christos POFILES="$POFILES $lang.po" 7686 1.1 christos done 7687 1.1 christos 7688 1.1 christos 7689 1.1 christos 7690 1.1 christos 7691 1.1 christos 7692 1.1 christos 7693 1.1 christos 7694 1.1 christos 7695 1.1 christos 7696 1.1 christos 7697 1.1 christos 7698 1.1 christos nls_cv_header_intl= 7699 1.1 christos nls_cv_header_libgt= 7700 1.1 christos 7701 1.1 christos DATADIRNAME=share 7702 1.1 christos 7703 1.1 christos 7704 1.1 christos INSTOBJEXT=.mo 7705 1.1 christos 7706 1.1 christos 7707 1.1 christos GENCAT=gencat 7708 1.1 christos 7709 1.1 christos 7710 1.1 christos 7711 1.1 christos if test "x$CATOBJEXT" != "x"; then 7712 1.1 christos if test "x$ALL_LINGUAS" = "x"; then 7713 1.1 christos LINGUAS= 7714 1.1 christos else 7715 1.1 christos echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 7716 1.1 christos echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 7717 1.1 christos NEW_LINGUAS= 7718 1.1 christos for presentlang in $ALL_LINGUAS; do 7719 1.1 christos useit=no 7720 1.1 christos for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do 7721 1.1 christos # Use the presentlang catalog if desiredlang is 7722 1.1 christos # a. equal to presentlang, or 7723 1.1 christos # b. a variant of presentlang (because in this case, 7724 1.1 christos # presentlang can be used as a fallback for messages 7725 1.1 christos # which are not translated in the desiredlang catalog). 7726 1.1 christos case "$desiredlang" in 7727 1.1 christos "$presentlang"*) useit=yes;; 7728 1.1 christos esac 7729 1.1 christos done 7730 1.1 christos if test $useit = yes; then 7731 1.1 christos NEW_LINGUAS="$NEW_LINGUAS $presentlang" 7732 1.1 christos fi 7733 1.1 christos done 7734 1.1 christos LINGUAS=$NEW_LINGUAS 7735 1.1 christos echo "$as_me:$LINENO: result: $LINGUAS" >&5 7736 1.1 christos echo "${ECHO_T}$LINGUAS" >&6 7737 1.1 christos fi 7738 1.1 christos 7739 1.1 christos if test -n "$LINGUAS"; then 7740 1.1 christos for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done 7741 1.1 christos fi 7742 1.1 christos fi 7743 1.1 christos 7744 1.1 christos MKINSTALLDIRS= 7745 1.1 christos if test -n "$ac_aux_dir"; then 7746 1.1 christos MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" 7747 1.1 christos fi 7748 1.1 christos if test -z "$MKINSTALLDIRS"; then 7749 1.1 christos MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 7750 1.1 christos fi 7751 1.1 christos 7752 1.1 christos 7753 1.1 christos INTL_LIBTOOL_SUFFIX_PREFIX= 7754 1.1 christos 7755 1.1 christos 7756 1.1 christos 7757 1.1 christos 7758 1.1 christos echo "$as_me:$LINENO: checking for dos file convention" >&5 7759 1.1 christos echo $ECHO_N "checking for dos file convention... $ECHO_C" >&6 7760 1.1 christos if test "${ac_cv_dosfile+set}" = set; then 7761 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 7762 1.1 christos else 7763 1.1 christos if test -d ".\."; then 7764 1.1 christos ac_cv_dosfile=yes 7765 1.1 christos else 7766 1.1 christos ac_cv_dosfile=no 7767 1.1 christos fi 7768 1.1 christos 7769 1.1 christos fi 7770 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_dosfile" >&5 7771 1.1 christos echo "${ECHO_T}$ac_cv_dosfile" >&6 7772 1.1 christos 7773 1.1 christos if test $ac_cv_dosfile = yes; then 7774 1.1 christos 7775 1.1 christos cat >>confdefs.h <<\_ACEOF 7776 1.1 christos #define HAVE_DOS_FILE_NAMES 1 7777 1.1 christos _ACEOF 7778 1.1 christos 7779 1.1 christos 7780 1.1 christos cat >>confdefs.h <<\_ACEOF 7781 1.1 christos #define HAVE_DOS_FILE_CONTENTS 1 7782 1.1 christos _ACEOF 7783 1.1 christos 7784 1.1 christos fi 7785 1.1 christos 7786 1.1 christos 7787 1.1 christos case $host_os in 7788 1.1 christos *cygwin* ) CYGWIN=yes;; 7789 1.1 christos * ) CYGWIN=no;; 7790 1.1 christos esac 7791 1.1 christos 7792 1.1 christos case $host_os in 7793 1.1 christos *mingw32* ) MINGW32=yes;; 7794 1.1 christos * ) MINGW32=no;; 7795 1.1 christos esac 7796 1.1 christos 7797 1.1 christos echo "$as_me:$LINENO: checking for DJGPP environment" >&5 7798 1.1 christos echo $ECHO_N "checking for DJGPP environment... $ECHO_C" >&6 7799 1.1 christos if test "${ac_cv_djgpp+set}" = set; then 7800 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 7801 1.1 christos else 7802 1.1 christos cat >conftest.$ac_ext <<_ACEOF 7803 1.1 christos #line $LINENO "configure" 7804 1.1 christos #include "confdefs.h" 7805 1.1 christos 7806 1.1 christos #ifdef F77_DUMMY_MAIN 7807 1.1 christos # ifdef __cplusplus 7808 1.1 christos extern "C" 7809 1.1 christos # endif 7810 1.1 christos int F77_DUMMY_MAIN() { return 1; } 7811 1.1 christos #endif 7812 1.1 christos int 7813 1.1 christos main () 7814 1.1 christos { 7815 1.1 christos return __DJGPP__; 7816 1.1 christos ; 7817 1.1 christos return 0; 7818 1.1 christos } 7819 1.1 christos _ACEOF 7820 1.1 christos rm -f conftest.$ac_objext 7821 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7822 1.1 christos (eval $ac_compile) 2>&5 7823 1.1 christos ac_status=$? 7824 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7825 1.1 christos (exit $ac_status); } && 7826 1.1 christos { ac_try='test -s conftest.$ac_objext' 7827 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7828 1.1 christos (eval $ac_try) 2>&5 7829 1.1 christos ac_status=$? 7830 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7831 1.1 christos (exit $ac_status); }; }; then 7832 1.1 christos ac_cv_djgpp=yes 7833 1.1 christos else 7834 1.1 christos echo "$as_me: failed program was:" >&5 7835 1.1 christos cat conftest.$ac_ext >&5 7836 1.1 christos ac_cv_djgpp=no 7837 1.1 christos fi 7838 1.1 christos rm -f conftest.$ac_objext conftest.$ac_ext 7839 1.1 christos rm -f conftest* 7840 1.1 christos fi 7841 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_djgpp" >&5 7842 1.1 christos echo "${ECHO_T}$ac_cv_djgpp" >&6 7843 1.1 christos DJ_GPP= 7844 1.1 christos test "$ac_cv_djgpp" = yes && DJ_GPP=yes 7845 1.1 christos 7846 1.1 christos 7847 1.1 christos 7848 1.1 christos echo "$as_me:$LINENO: checking for environ variable separator" >&5 7849 1.1 christos echo $ECHO_N "checking for environ variable separator... $ECHO_C" >&6 7850 1.1 christos if test "${ac_cv_sep+set}" = set; then 7851 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 7852 1.1 christos else 7853 1.1 christos if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$DJ_GPP" = yes ; then 7854 1.1 christos ac_cv_sep=yes 7855 1.1 christos else 7856 1.1 christos ac_cv_sep=no 7857 1.1 christos fi 7858 1.1 christos fi 7859 1.1 christos 7860 1.1 christos SEP=":" 7861 1.1 christos test x"$ac_cv_sep" = xyes && SEP=";" 7862 1.1 christos echo "$as_me:$LINENO: result: ${SEP}" >&5 7863 1.1 christos echo "${ECHO_T}${SEP}" >&6 7864 1.1 christos 7865 1.1 christos 7866 1.1 christos 7867 1.1 christos 7868 1.1 christos 7869 1.1 christos 7870 1.1 christos 7871 1.1 christos 7872 1.1 christos # Assume we'll default to using the included regex.c. 7873 1.1 christos ac_use_included_regex=yes 7874 1.1 christos 7875 1.1 christos # However, if the system regex support is good enough that it passes the 7876 1.1 christos # the following run test, then default to *not* using the included regex.c. 7877 1.1 christos # If cross compiling, assume the test would fail and use the included 7878 1.1 christos # regex.c. The first failing regular expression is from `Spencer ere 7879 1.1 christos # test #75' in grep-2.3. 7880 1.1 christos echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5 7881 1.1 christos echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6 7882 1.1 christos if test "${jm_cv_func_working_re_compile_pattern+set}" = set; then 7883 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 7884 1.1 christos else 7885 1.1 christos if test "$cross_compiling" = yes; then 7886 1.1 christos jm_cv_func_working_re_compile_pattern=no 7887 1.1 christos else 7888 1.1 christos cat >conftest.$ac_ext <<_ACEOF 7889 1.1 christos #line $LINENO "configure" 7890 1.1 christos #include "confdefs.h" 7891 1.1 christos 7892 1.1 christos #include <stdio.h> 7893 1.1 christos #include <regex.h> 7894 1.1 christos int 7895 1.1 christos main () 7896 1.1 christos { 7897 1.1 christos static struct re_pattern_buffer regex; 7898 1.1 christos const char *s; 7899 1.1 christos re_set_syntax (RE_SYNTAX_POSIX_EGREP); 7900 1.1 christos /* Add this third left square bracket, , to balance the 7901 1.1 christos three right ones below. Otherwise autoconf-2.14 chokes. */ 7902 1.1 christos s = re_compile_pattern ("a[[:]:]b\n", 9, ®ex); 7903 1.1 christos /* This should fail with _Invalid character class name_ error. */ 7904 1.1 christos if (!s) 7905 1.1 christos exit (1); 7906 1.1 christos 7907 1.1 christos /* This should succeed, but doesn't for e.g. glibc-2.1.3. */ 7908 1.1 christos s = re_compile_pattern ("{1", 2, ®ex); 7909 1.1 christos 7910 1.1 christos exit (s ? 1 : 0); 7911 1.1 christos } 7912 1.1 christos 7913 1.1 christos _ACEOF 7914 1.1 christos rm -f conftest$ac_exeext 7915 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7916 1.1 christos (eval $ac_link) 2>&5 7917 1.1 christos ac_status=$? 7918 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7919 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7920 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7921 1.1 christos (eval $ac_try) 2>&5 7922 1.1 christos ac_status=$? 7923 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7924 1.1 christos (exit $ac_status); }; }; then 7925 1.1 christos 7926 1.1 christos jm_cv_func_working_re_compile_pattern=yes 7927 1.1 christos else 7928 1.1 christos echo "$as_me: program exited with status $ac_status" >&5 7929 1.1 christos echo "$as_me: failed program was:" >&5 7930 1.1 christos cat conftest.$ac_ext >&5 7931 1.1 christos ( exit $ac_status ) 7932 1.1 christos jm_cv_func_working_re_compile_pattern=no 7933 1.1 christos fi 7934 1.1 christos rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7935 1.1 christos fi 7936 1.1 christos fi 7937 1.1 christos echo "$as_me:$LINENO: result: $jm_cv_func_working_re_compile_pattern" >&5 7938 1.1 christos echo "${ECHO_T}$jm_cv_func_working_re_compile_pattern" >&6 7939 1.1 christos if test $jm_cv_func_working_re_compile_pattern = yes; then 7940 1.1 christos ac_use_included_regex=no 7941 1.1 christos fi 7942 1.1 christos 7943 1.1 christos test -n "lib/regex.c" || { { echo "$as_me:$LINENO: error: missing argument" >&5 7944 1.1 christos echo "$as_me: error: missing argument" >&2;} 7945 1.1 christos { (exit 1); exit 1; }; } 7946 1.1 christos 7947 1.1 christos 7948 1.1 christos 7949 1.1 christos 7950 1.1 christos # Check whether --with-included-regex or --without-included-regex was given. 7951 1.1 christos if test "${with_included_regex+set}" = set; then 7952 1.1 christos withval="$with_included_regex" 7953 1.1 christos jm_with_regex=$withval 7954 1.1 christos else 7955 1.1 christos jm_with_regex=$ac_use_included_regex 7956 1.1 christos fi; 7957 1.1 christos if test "$jm_with_regex" = yes; then 7958 1.1 christos LIBOBJS="$LIBOBJS regex.$ac_objext" 7959 1.1 christos fi 7960 1.1 christos 7961 1.1 christos 7962 1.1 christos 7963 1.1 christos 7964 1.1 christos echo "$as_me:$LINENO: checking for getopt_long" >&5 7965 1.1 christos echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6 7966 1.1 christos if test "${ac_cv_func_getopt_long+set}" = set; then 7967 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 7968 1.1 christos else 7969 1.1 christos cat >conftest.$ac_ext <<_ACEOF 7970 1.1 christos #line $LINENO "configure" 7971 1.1 christos #include "confdefs.h" 7972 1.1 christos /* System header to define __stub macros and hopefully few prototypes, 7973 1.1 christos which can conflict with char getopt_long (); below. */ 7974 1.1 christos #include <assert.h> 7975 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 7976 1.1 christos #ifdef __cplusplus 7977 1.1 christos extern "C" 7978 1.1 christos #endif 7979 1.1 christos /* We use char because int might match the return type of a gcc2 7980 1.1 christos builtin and then its argument prototype would still apply. */ 7981 1.1 christos char getopt_long (); 7982 1.1 christos char (*f) (); 7983 1.1 christos 7984 1.1 christos #ifdef F77_DUMMY_MAIN 7985 1.1 christos # ifdef __cplusplus 7986 1.1 christos extern "C" 7987 1.1 christos # endif 7988 1.1 christos int F77_DUMMY_MAIN() { return 1; } 7989 1.1 christos #endif 7990 1.1 christos int 7991 1.1 christos main () 7992 1.1 christos { 7993 1.1 christos /* The GNU C library defines this for functions which it implements 7994 1.1 christos to always fail with ENOSYS. Some functions are actually named 7995 1.1 christos something starting with __ and the normal name is an alias. */ 7996 1.1 christos #if defined (__stub_getopt_long) || defined (__stub___getopt_long) 7997 1.1 christos choke me 7998 1.1 christos #else 7999 1.1 christos f = getopt_long; 8000 1.1 christos #endif 8001 1.1 christos 8002 1.1 christos ; 8003 1.1 christos return 0; 8004 1.1 christos } 8005 1.1 christos _ACEOF 8006 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 8007 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8008 1.1 christos (eval $ac_link) 2>&5 8009 1.1 christos ac_status=$? 8010 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8011 1.1 christos (exit $ac_status); } && 8012 1.1 christos { ac_try='test -s conftest$ac_exeext' 8013 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8014 1.1 christos (eval $ac_try) 2>&5 8015 1.1 christos ac_status=$? 8016 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8017 1.1 christos (exit $ac_status); }; }; then 8018 1.1 christos ac_cv_func_getopt_long=yes 8019 1.1 christos else 8020 1.1 christos echo "$as_me: failed program was:" >&5 8021 1.1 christos cat conftest.$ac_ext >&5 8022 1.1 christos ac_cv_func_getopt_long=no 8023 1.1 christos fi 8024 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8025 1.1 christos fi 8026 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5 8027 1.1 christos echo "${ECHO_T}$ac_cv_func_getopt_long" >&6 8028 1.1 christos if test $ac_cv_func_getopt_long = yes; then 8029 1.1 christos 8030 1.1 christos 8031 1.1 christos # Check whether --with-included-getopt or --without-included-getopt was given. 8032 1.1 christos if test "${with_included_getopt+set}" = set; then 8033 1.1 christos withval="$with_included_getopt" 8034 1.1 christos with_getopt=$withval 8035 1.1 christos else 8036 1.1 christos with_getopt=$no 8037 1.1 christos fi; 8038 1.1 christos if test "x$with_getopt" = xyes; then 8039 1.1 christos LIBOBJS="$LIBOBJS getopt.$ac_objext" 8040 1.1 christos LIBOBJS="$LIBOBJS getopt1.$ac_objext" 8041 1.1 christos fi 8042 1.1 christos 8043 1.1 christos else 8044 1.1 christos 8045 1.1 christos LIBOBJS="$LIBOBJS getopt.$ac_objext" 8046 1.1 christos LIBOBJS="$LIBOBJS getopt1.$ac_objext" 8047 1.1 christos 8048 1.1 christos fi 8049 1.1 christos 8050 1.1 christos 8051 1.1 christos if test "$jm_with_regex" = no; then 8052 1.1 christos { echo "$as_me:$LINENO: WARNING: Included lib/regex.c not used" >&5 8053 1.1 christos echo "$as_me: WARNING: Included lib/regex.c not used" >&2;} 8054 1.1 christos fi 8055 1.1 christos 8056 1.1 christos 8057 1.1 christos echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5 8058 1.1 christos echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6 8059 1.1 christos if test "${jm_cv_func_decl_strerror_r+set}" = set; then 8060 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 8061 1.1 christos else 8062 1.1 christos cat >conftest.$ac_ext <<_ACEOF 8063 1.1 christos #line $LINENO "configure" 8064 1.1 christos #include "confdefs.h" 8065 1.1 christos #include <string.h> 8066 1.1 christos #ifdef F77_DUMMY_MAIN 8067 1.1 christos # ifdef __cplusplus 8068 1.1 christos extern "C" 8069 1.1 christos # endif 8070 1.1 christos int F77_DUMMY_MAIN() { return 1; } 8071 1.1 christos #endif 8072 1.1 christos int 8073 1.1 christos main () 8074 1.1 christos { 8075 1.1 christos 8076 1.1 christos #ifndef strerror_r 8077 1.1 christos char *(*pfn) = (char *(*)) strerror_r 8078 1.1 christos #endif 8079 1.1 christos 8080 1.1 christos ; 8081 1.1 christos return 0; 8082 1.1 christos } 8083 1.1 christos _ACEOF 8084 1.1 christos rm -f conftest.$ac_objext 8085 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8086 1.1 christos (eval $ac_compile) 2>&5 8087 1.1 christos ac_status=$? 8088 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8089 1.1 christos (exit $ac_status); } && 8090 1.1 christos { ac_try='test -s conftest.$ac_objext' 8091 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8092 1.1 christos (eval $ac_try) 2>&5 8093 1.1 christos ac_status=$? 8094 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8095 1.1 christos (exit $ac_status); }; }; then 8096 1.1 christos eval "jm_cv_func_decl_strerror_r=yes" 8097 1.1 christos else 8098 1.1 christos echo "$as_me: failed program was:" >&5 8099 1.1 christos cat conftest.$ac_ext >&5 8100 1.1 christos eval "jm_cv_func_decl_strerror_r=no" 8101 1.1 christos fi 8102 1.1 christos rm -f conftest.$ac_objext conftest.$ac_ext 8103 1.1 christos fi 8104 1.1 christos 8105 1.1 christos 8106 1.1 christos if eval "test \"`echo '$jm_cv_func_decl_'strerror_r`\" = yes"; then 8107 1.1 christos echo "$as_me:$LINENO: result: yes" >&5 8108 1.1 christos echo "${ECHO_T}yes" >&6 8109 1.1 christos : 8110 1.1 christos else 8111 1.1 christos echo "$as_me:$LINENO: result: no" >&5 8112 1.1 christos echo "${ECHO_T}no" >&6 8113 1.1 christos fi 8114 1.1 christos 8115 1.1 christos test $jm_cv_func_decl_strerror_r != yes 8116 1.1 christos 8117 1.1 christos cat >>confdefs.h <<_ACEOF 8118 1.1 christos #define HAVE_DECL_STRERROR_R $? 8119 1.1 christos _ACEOF 8120 1.1 christos 8121 1.1 christos 8122 1.1 christos for ac_func in strerror_r 8123 1.1 christos do 8124 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8125 1.1 christos echo "$as_me:$LINENO: checking for $ac_func" >&5 8126 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8127 1.1 christos if eval "test \"\${$as_ac_var+set}\" = set"; then 8128 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 8129 1.1 christos else 8130 1.1 christos cat >conftest.$ac_ext <<_ACEOF 8131 1.1 christos #line $LINENO "configure" 8132 1.1 christos #include "confdefs.h" 8133 1.1 christos /* System header to define __stub macros and hopefully few prototypes, 8134 1.1 christos which can conflict with char $ac_func (); below. */ 8135 1.1 christos #include <assert.h> 8136 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 8137 1.1 christos #ifdef __cplusplus 8138 1.1 christos extern "C" 8139 1.1 christos #endif 8140 1.1 christos /* We use char because int might match the return type of a gcc2 8141 1.1 christos builtin and then its argument prototype would still apply. */ 8142 1.1 christos char $ac_func (); 8143 1.1 christos char (*f) (); 8144 1.1 christos 8145 1.1 christos #ifdef F77_DUMMY_MAIN 8146 1.1 christos # ifdef __cplusplus 8147 1.1 christos extern "C" 8148 1.1 christos # endif 8149 1.1 christos int F77_DUMMY_MAIN() { return 1; } 8150 1.1 christos #endif 8151 1.1 christos int 8152 1.1 christos main () 8153 1.1 christos { 8154 1.1 christos /* The GNU C library defines this for functions which it implements 8155 1.1 christos to always fail with ENOSYS. Some functions are actually named 8156 1.1 christos something starting with __ and the normal name is an alias. */ 8157 1.1 christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8158 1.1 christos choke me 8159 1.1 christos #else 8160 1.1 christos f = $ac_func; 8161 1.1 christos #endif 8162 1.1 christos 8163 1.1 christos ; 8164 1.1 christos return 0; 8165 1.1 christos } 8166 1.1 christos _ACEOF 8167 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 8168 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8169 1.1 christos (eval $ac_link) 2>&5 8170 1.1 christos ac_status=$? 8171 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8172 1.1 christos (exit $ac_status); } && 8173 1.1 christos { ac_try='test -s conftest$ac_exeext' 8174 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8175 1.1 christos (eval $ac_try) 2>&5 8176 1.1 christos ac_status=$? 8177 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8178 1.1 christos (exit $ac_status); }; }; then 8179 1.1 christos eval "$as_ac_var=yes" 8180 1.1 christos else 8181 1.1 christos echo "$as_me: failed program was:" >&5 8182 1.1 christos cat conftest.$ac_ext >&5 8183 1.1 christos eval "$as_ac_var=no" 8184 1.1 christos fi 8185 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8186 1.1 christos fi 8187 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 8188 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 8189 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then 8190 1.1 christos cat >>confdefs.h <<_ACEOF 8191 1.1 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8192 1.1 christos _ACEOF 8193 1.1 christos 8194 1.1 christos fi 8195 1.1 christos done 8196 1.1 christos 8197 1.1 christos if test $ac_cv_func_strerror_r = yes; then 8198 1.1 christos 8199 1.1 christos for ac_header in string.h 8200 1.1 christos do 8201 1.1 christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8202 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 8203 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 8204 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8205 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 8206 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 8207 1.1 christos fi 8208 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8209 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8210 1.1 christos else 8211 1.1 christos # Is the header compilable? 8212 1.1 christos echo "$as_me:$LINENO: checking $ac_header usability" >&5 8213 1.1 christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 8214 1.1 christos cat >conftest.$ac_ext <<_ACEOF 8215 1.1 christos #line $LINENO "configure" 8216 1.1 christos #include "confdefs.h" 8217 1.1 christos $ac_includes_default 8218 1.1 christos #include <$ac_header> 8219 1.1 christos _ACEOF 8220 1.1 christos rm -f conftest.$ac_objext 8221 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8222 1.1 christos (eval $ac_compile) 2>&5 8223 1.1 christos ac_status=$? 8224 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8225 1.1 christos (exit $ac_status); } && 8226 1.1 christos { ac_try='test -s conftest.$ac_objext' 8227 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8228 1.1 christos (eval $ac_try) 2>&5 8229 1.1 christos ac_status=$? 8230 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8231 1.1 christos (exit $ac_status); }; }; then 8232 1.1 christos ac_header_compiler=yes 8233 1.1 christos else 8234 1.1 christos echo "$as_me: failed program was:" >&5 8235 1.1 christos cat conftest.$ac_ext >&5 8236 1.1 christos ac_header_compiler=no 8237 1.1 christos fi 8238 1.1 christos rm -f conftest.$ac_objext conftest.$ac_ext 8239 1.1 christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8240 1.1 christos echo "${ECHO_T}$ac_header_compiler" >&6 8241 1.1 christos 8242 1.1 christos # Is the header present? 8243 1.1 christos echo "$as_me:$LINENO: checking $ac_header presence" >&5 8244 1.1 christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 8245 1.1 christos cat >conftest.$ac_ext <<_ACEOF 8246 1.1 christos #line $LINENO "configure" 8247 1.1 christos #include "confdefs.h" 8248 1.1 christos #include <$ac_header> 8249 1.1 christos _ACEOF 8250 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8251 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8252 1.1 christos ac_status=$? 8253 1.1 christos egrep -v '^ *\+' conftest.er1 >conftest.err 8254 1.1 christos rm -f conftest.er1 8255 1.1 christos cat conftest.err >&5 8256 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8257 1.1 christos (exit $ac_status); } >/dev/null; then 8258 1.1 christos if test -s conftest.err; then 8259 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag 8260 1.1 christos else 8261 1.1 christos ac_cpp_err= 8262 1.1 christos fi 8263 1.1 christos else 8264 1.1 christos ac_cpp_err=yes 8265 1.1 christos fi 8266 1.1 christos if test -z "$ac_cpp_err"; then 8267 1.1 christos ac_header_preproc=yes 8268 1.1 christos else 8269 1.1 christos echo "$as_me: failed program was:" >&5 8270 1.1 christos cat conftest.$ac_ext >&5 8271 1.1 christos ac_header_preproc=no 8272 1.1 christos fi 8273 1.1 christos rm -f conftest.err conftest.$ac_ext 8274 1.1 christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8275 1.1 christos echo "${ECHO_T}$ac_header_preproc" >&6 8276 1.1 christos 8277 1.1 christos # So? What about this header? 8278 1.1 christos case $ac_header_compiler:$ac_header_preproc in 8279 1.1 christos yes:no ) 8280 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8281 1.1 christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8282 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8283 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 8284 1.1 christos no:yes ) 8285 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8286 1.1 christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8287 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8288 1.1 christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8289 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8290 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 8291 1.1 christos esac 8292 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 8293 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8294 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 8295 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 8296 1.1 christos else 8297 1.1 christos eval "$as_ac_Header=$ac_header_preproc" 8298 1.1 christos fi 8299 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8300 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8301 1.1 christos 8302 1.1 christos fi 8303 1.1 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then 8304 1.1 christos cat >>confdefs.h <<_ACEOF 8305 1.1 christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8306 1.1 christos _ACEOF 8307 1.1 christos 8308 1.1 christos fi 8309 1.1 christos 8310 1.1 christos done 8311 1.1 christos 8312 1.1 christos echo "$as_me:$LINENO: checking for working strerror_r" >&5 8313 1.1 christos echo $ECHO_N "checking for working strerror_r... $ECHO_C" >&6 8314 1.1 christos if test "${ac_cv_func_strerror_r_works+set}" = set; then 8315 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 8316 1.1 christos else 8317 1.1 christos 8318 1.1 christos cat >conftest.$ac_ext <<_ACEOF 8319 1.1 christos #line $LINENO "configure" 8320 1.1 christos #include "confdefs.h" 8321 1.1 christos 8322 1.1 christos # include <stdio.h> 8323 1.1 christos # if HAVE_STRING_H 8324 1.1 christos # include <string.h> 8325 1.1 christos # endif 8326 1.1 christos 8327 1.1 christos #ifdef F77_DUMMY_MAIN 8328 1.1 christos # ifdef __cplusplus 8329 1.1 christos extern "C" 8330 1.1 christos # endif 8331 1.1 christos int F77_DUMMY_MAIN() { return 1; } 8332 1.1 christos #endif 8333 1.1 christos int 8334 1.1 christos main () 8335 1.1 christos { 8336 1.1 christos 8337 1.1 christos char buf[100]; 8338 1.1 christos char x = *strerror_r (0, buf, sizeof buf); 8339 1.1 christos 8340 1.1 christos ; 8341 1.1 christos return 0; 8342 1.1 christos } 8343 1.1 christos _ACEOF 8344 1.1 christos rm -f conftest.$ac_objext 8345 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8346 1.1 christos (eval $ac_compile) 2>&5 8347 1.1 christos ac_status=$? 8348 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8349 1.1 christos (exit $ac_status); } && 8350 1.1 christos { ac_try='test -s conftest.$ac_objext' 8351 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8352 1.1 christos (eval $ac_try) 2>&5 8353 1.1 christos ac_status=$? 8354 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8355 1.1 christos (exit $ac_status); }; }; then 8356 1.1 christos ac_cv_func_strerror_r_works=yes 8357 1.1 christos else 8358 1.1 christos echo "$as_me: failed program was:" >&5 8359 1.1 christos cat conftest.$ac_ext >&5 8360 1.1 christos ac_cv_func_strerror_r_works=no 8361 1.1 christos 8362 1.1 christos fi 8363 1.1 christos rm -f conftest.$ac_objext conftest.$ac_ext 8364 1.1 christos if test $ac_cv_func_strerror_r_works = no; then 8365 1.1 christos # strerror_r seems not to work, but now we have to choose between 8366 1.1 christos # systems that have relatively inaccessible declarations for the 8367 1.1 christos # function. BeOS and DEC UNIX 4.0 fall in this category, but the 8368 1.1 christos # former has a strerror_r that returns char*, while the latter 8369 1.1 christos # has a strerror_r that returns int. 8370 1.1 christos # This test should segfault on the DEC system. 8371 1.1 christos if test "$cross_compiling" = yes; then 8372 1.1 christos ac_cv_func_strerror_r_works=no 8373 1.1 christos else 8374 1.1 christos cat >conftest.$ac_ext <<_ACEOF 8375 1.1 christos #line $LINENO "configure" 8376 1.1 christos #include "confdefs.h" 8377 1.1 christos 8378 1.1 christos # include <stdio.h> 8379 1.1 christos # include <string.h> 8380 1.1 christos # include <ctype.h> 8381 1.1 christos 8382 1.1 christos extern char *strerror_r (); 8383 1.1 christos 8384 1.1 christos int 8385 1.1 christos main () 8386 1.1 christos { 8387 1.1 christos char buf[100]; 8388 1.1 christos char x = *strerror_r (0, buf, sizeof buf); 8389 1.1 christos exit (!isalpha (x)); 8390 1.1 christos } 8391 1.1 christos 8392 1.1 christos _ACEOF 8393 1.1 christos rm -f conftest$ac_exeext 8394 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8395 1.1 christos (eval $ac_link) 2>&5 8396 1.1 christos ac_status=$? 8397 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8398 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8399 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8400 1.1 christos (eval $ac_try) 2>&5 8401 1.1 christos ac_status=$? 8402 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8403 1.1 christos (exit $ac_status); }; }; then 8404 1.1 christos ac_cv_func_strerror_r_works=yes 8405 1.1 christos else 8406 1.1 christos echo "$as_me: program exited with status $ac_status" >&5 8407 1.1 christos echo "$as_me: failed program was:" >&5 8408 1.1 christos cat conftest.$ac_ext >&5 8409 1.1 christos ( exit $ac_status ) 8410 1.1 christos ac_cv_func_strerror_r_works=no 8411 1.1 christos fi 8412 1.1 christos rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8413 1.1 christos fi 8414 1.1 christos fi 8415 1.1 christos 8416 1.1 christos fi 8417 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_works" >&5 8418 1.1 christos echo "${ECHO_T}$ac_cv_func_strerror_r_works" >&6 8419 1.1 christos if test $ac_cv_func_strerror_r_works = yes; then 8420 1.1 christos 8421 1.1 christos cat >>confdefs.h <<_ACEOF 8422 1.1 christos #define HAVE_WORKING_STRERROR_R 1 8423 1.1 christos _ACEOF 8424 1.1 christos 8425 1.1 christos fi 8426 1.1 christos fi 8427 1.1 christos 8428 1.1 christos 8429 1.1 christos 8430 1.1 christos 8431 1.1 christos 8432 1.1 christos 8433 1.1 christos for ac_func in strerror strerror_r vprintf doprnt 8434 1.1 christos do 8435 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8436 1.1 christos echo "$as_me:$LINENO: checking for $ac_func" >&5 8437 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8438 1.1 christos if eval "test \"\${$as_ac_var+set}\" = set"; then 8439 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 8440 1.1 christos else 8441 1.1 christos cat >conftest.$ac_ext <<_ACEOF 8442 1.1 christos #line $LINENO "configure" 8443 1.1 christos #include "confdefs.h" 8444 1.1 christos /* System header to define __stub macros and hopefully few prototypes, 8445 1.1 christos which can conflict with char $ac_func (); below. */ 8446 1.1 christos #include <assert.h> 8447 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 8448 1.1 christos #ifdef __cplusplus 8449 1.1 christos extern "C" 8450 1.1 christos #endif 8451 1.1 christos /* We use char because int might match the return type of a gcc2 8452 1.1 christos builtin and then its argument prototype would still apply. */ 8453 1.1 christos char $ac_func (); 8454 1.1 christos char (*f) (); 8455 1.1 christos 8456 1.1 christos #ifdef F77_DUMMY_MAIN 8457 1.1 christos # ifdef __cplusplus 8458 1.1 christos extern "C" 8459 1.1 christos # endif 8460 1.1 christos int F77_DUMMY_MAIN() { return 1; } 8461 1.1 christos #endif 8462 1.1 christos int 8463 1.1 christos main () 8464 1.1 christos { 8465 1.1 christos /* The GNU C library defines this for functions which it implements 8466 1.1 christos to always fail with ENOSYS. Some functions are actually named 8467 1.1 christos something starting with __ and the normal name is an alias. */ 8468 1.1 christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8469 1.1 christos choke me 8470 1.1 christos #else 8471 1.1 christos f = $ac_func; 8472 1.1 christos #endif 8473 1.1 christos 8474 1.1 christos ; 8475 1.1 christos return 0; 8476 1.1 christos } 8477 1.1 christos _ACEOF 8478 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 8479 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8480 1.1 christos (eval $ac_link) 2>&5 8481 1.1 christos ac_status=$? 8482 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8483 1.1 christos (exit $ac_status); } && 8484 1.1 christos { ac_try='test -s conftest$ac_exeext' 8485 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8486 1.1 christos (eval $ac_try) 2>&5 8487 1.1 christos ac_status=$? 8488 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8489 1.1 christos (exit $ac_status); }; }; then 8490 1.1 christos eval "$as_ac_var=yes" 8491 1.1 christos else 8492 1.1 christos echo "$as_me: failed program was:" >&5 8493 1.1 christos cat conftest.$ac_ext >&5 8494 1.1 christos eval "$as_ac_var=no" 8495 1.1 christos fi 8496 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8497 1.1 christos fi 8498 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 8499 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 8500 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then 8501 1.1 christos cat >>confdefs.h <<_ACEOF 8502 1.1 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8503 1.1 christos _ACEOF 8504 1.1 christos 8505 1.1 christos fi 8506 1.1 christos done 8507 1.1 christos 8508 1.1 christos echo "$as_me:$LINENO: checking for ANSI C header files" >&5 8509 1.1 christos echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 8510 1.1 christos if test "${ac_cv_header_stdc+set}" = set; then 8511 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 8512 1.1 christos else 8513 1.1 christos cat >conftest.$ac_ext <<_ACEOF 8514 1.1 christos #line $LINENO "configure" 8515 1.1 christos #include "confdefs.h" 8516 1.1 christos #include <stdlib.h> 8517 1.1 christos #include <stdarg.h> 8518 1.1 christos #include <string.h> 8519 1.1 christos #include <float.h> 8520 1.1 christos 8521 1.1 christos _ACEOF 8522 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8523 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8524 1.1 christos ac_status=$? 8525 1.1 christos egrep -v '^ *\+' conftest.er1 >conftest.err 8526 1.1 christos rm -f conftest.er1 8527 1.1 christos cat conftest.err >&5 8528 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8529 1.1 christos (exit $ac_status); } >/dev/null; then 8530 1.1 christos if test -s conftest.err; then 8531 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag 8532 1.1 christos else 8533 1.1 christos ac_cpp_err= 8534 1.1 christos fi 8535 1.1 christos else 8536 1.1 christos ac_cpp_err=yes 8537 1.1 christos fi 8538 1.1 christos if test -z "$ac_cpp_err"; then 8539 1.1 christos ac_cv_header_stdc=yes 8540 1.1 christos else 8541 1.1 christos echo "$as_me: failed program was:" >&5 8542 1.1 christos cat conftest.$ac_ext >&5 8543 1.1 christos ac_cv_header_stdc=no 8544 1.1 christos fi 8545 1.1 christos rm -f conftest.err conftest.$ac_ext 8546 1.1 christos 8547 1.1 christos if test $ac_cv_header_stdc = yes; then 8548 1.1 christos # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8549 1.1 christos cat >conftest.$ac_ext <<_ACEOF 8550 1.1 christos #line $LINENO "configure" 8551 1.1 christos #include "confdefs.h" 8552 1.1 christos #include <string.h> 8553 1.1 christos 8554 1.1 christos _ACEOF 8555 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8556 1.1 christos egrep "memchr" >/dev/null 2>&1; then 8557 1.1 christos : 8558 1.1 christos else 8559 1.1 christos ac_cv_header_stdc=no 8560 1.1 christos fi 8561 1.1 christos rm -f conftest* 8562 1.1 christos 8563 1.1 christos fi 8564 1.1 christos 8565 1.1 christos if test $ac_cv_header_stdc = yes; then 8566 1.1 christos # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8567 1.1 christos cat >conftest.$ac_ext <<_ACEOF 8568 1.1 christos #line $LINENO "configure" 8569 1.1 christos #include "confdefs.h" 8570 1.1 christos #include <stdlib.h> 8571 1.1 christos 8572 1.1 christos _ACEOF 8573 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8574 1.1 christos egrep "free" >/dev/null 2>&1; then 8575 1.1 christos : 8576 1.1 christos else 8577 1.1 christos ac_cv_header_stdc=no 8578 1.1 christos fi 8579 1.1 christos rm -f conftest* 8580 1.1 christos 8581 1.1 christos fi 8582 1.1 christos 8583 1.1 christos if test $ac_cv_header_stdc = yes; then 8584 1.1 christos # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8585 1.1 christos if test "$cross_compiling" = yes; then 8586 1.1 christos : 8587 1.1 christos else 8588 1.1 christos cat >conftest.$ac_ext <<_ACEOF 8589 1.1 christos #line $LINENO "configure" 8590 1.1 christos #include "confdefs.h" 8591 1.1 christos #include <ctype.h> 8592 1.1 christos #if ((' ' & 0x0FF) == 0x020) 8593 1.1 christos # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8594 1.1 christos # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8595 1.1 christos #else 8596 1.1 christos # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 8597 1.1 christos || ('j' <= (c) && (c) <= 'r') \ 8598 1.1 christos || ('s' <= (c) && (c) <= 'z')) 8599 1.1 christos # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8600 1.1 christos #endif 8601 1.1 christos 8602 1.1 christos #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8603 1.1 christos int 8604 1.1 christos main () 8605 1.1 christos { 8606 1.1 christos int i; 8607 1.1 christos for (i = 0; i < 256; i++) 8608 1.1 christos if (XOR (islower (i), ISLOWER (i)) 8609 1.1 christos || toupper (i) != TOUPPER (i)) 8610 1.1 christos exit(2); 8611 1.1 christos exit (0); 8612 1.1 christos } 8613 1.1 christos _ACEOF 8614 1.1 christos rm -f conftest$ac_exeext 8615 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8616 1.1 christos (eval $ac_link) 2>&5 8617 1.1 christos ac_status=$? 8618 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8619 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8620 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8621 1.1 christos (eval $ac_try) 2>&5 8622 1.1 christos ac_status=$? 8623 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8624 1.1 christos (exit $ac_status); }; }; then 8625 1.1 christos : 8626 1.1 christos else 8627 1.1 christos echo "$as_me: program exited with status $ac_status" >&5 8628 1.1 christos echo "$as_me: failed program was:" >&5 8629 1.1 christos cat conftest.$ac_ext >&5 8630 1.1 christos ( exit $ac_status ) 8631 1.1 christos ac_cv_header_stdc=no 8632 1.1 christos fi 8633 1.1 christos rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8634 1.1 christos fi 8635 1.1 christos fi 8636 1.1 christos fi 8637 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 8638 1.1 christos echo "${ECHO_T}$ac_cv_header_stdc" >&6 8639 1.1 christos if test $ac_cv_header_stdc = yes; then 8640 1.1 christos 8641 1.1 christos cat >>confdefs.h <<\_ACEOF 8642 1.1 christos #define STDC_HEADERS 1 8643 1.1 christos _ACEOF 8644 1.1 christos 8645 1.1 christos fi 8646 1.1 christos 8647 1.1 christos 8648 1.1 christos 8649 1.1 christos 8650 1.1 christos 8651 1.1 christos cat >>confdefs.h <<_ACEOF 8652 1.1 christos #define HAVE_DONE_WORKING_MALLOC_CHECK 1 8653 1.1 christos _ACEOF 8654 1.1 christos 8655 1.1 christos 8656 1.1 christos echo "$as_me:$LINENO: checking for working malloc" >&5 8657 1.1 christos echo $ECHO_N "checking for working malloc... $ECHO_C" >&6 8658 1.1 christos if test "${jm_cv_func_working_malloc+set}" = set; then 8659 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 8660 1.1 christos else 8661 1.1 christos if test "$cross_compiling" = yes; then 8662 1.1 christos jm_cv_func_working_malloc=no 8663 1.1 christos else 8664 1.1 christos cat >conftest.$ac_ext <<_ACEOF 8665 1.1 christos #line $LINENO "configure" 8666 1.1 christos #include "confdefs.h" 8667 1.1 christos 8668 1.1 christos char *malloc (); 8669 1.1 christos int 8670 1.1 christos main () 8671 1.1 christos { 8672 1.1 christos exit (malloc (0) ? 0 : 1); 8673 1.1 christos } 8674 1.1 christos 8675 1.1 christos _ACEOF 8676 1.1 christos rm -f conftest$ac_exeext 8677 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8678 1.1 christos (eval $ac_link) 2>&5 8679 1.1 christos ac_status=$? 8680 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8681 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8682 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8683 1.1 christos (eval $ac_try) 2>&5 8684 1.1 christos ac_status=$? 8685 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8686 1.1 christos (exit $ac_status); }; }; then 8687 1.1 christos jm_cv_func_working_malloc=yes 8688 1.1 christos else 8689 1.1 christos echo "$as_me: program exited with status $ac_status" >&5 8690 1.1 christos echo "$as_me: failed program was:" >&5 8691 1.1 christos cat conftest.$ac_ext >&5 8692 1.1 christos ( exit $ac_status ) 8693 1.1 christos jm_cv_func_working_malloc=no 8694 1.1 christos fi 8695 1.1 christos rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8696 1.1 christos fi 8697 1.1 christos 8698 1.1 christos fi 8699 1.1 christos echo "$as_me:$LINENO: result: $jm_cv_func_working_malloc" >&5 8700 1.1 christos echo "${ECHO_T}$jm_cv_func_working_malloc" >&6 8701 1.1 christos if test $jm_cv_func_working_malloc = no; then 8702 1.1 christos LIBOBJS="$LIBOBJS malloc.$ac_objext" 8703 1.1 christos 8704 1.1 christos cat >>confdefs.h <<_ACEOF 8705 1.1 christos #define malloc rpl_malloc 8706 1.1 christos _ACEOF 8707 1.1 christos 8708 1.1 christos fi 8709 1.1 christos 8710 1.1 christos 8711 1.1 christos 8712 1.1 christos cat >>confdefs.h <<_ACEOF 8713 1.1 christos #define HAVE_DONE_WORKING_REALLOC_CHECK 1 8714 1.1 christos _ACEOF 8715 1.1 christos 8716 1.1 christos 8717 1.1 christos echo "$as_me:$LINENO: checking for working realloc" >&5 8718 1.1 christos echo $ECHO_N "checking for working realloc... $ECHO_C" >&6 8719 1.1 christos if test "${jm_cv_func_working_realloc+set}" = set; then 8720 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 8721 1.1 christos else 8722 1.1 christos if test "$cross_compiling" = yes; then 8723 1.1 christos jm_cv_func_working_realloc=no 8724 1.1 christos else 8725 1.1 christos cat >conftest.$ac_ext <<_ACEOF 8726 1.1 christos #line $LINENO "configure" 8727 1.1 christos #include "confdefs.h" 8728 1.1 christos 8729 1.1 christos char *realloc (); 8730 1.1 christos int 8731 1.1 christos main () 8732 1.1 christos { 8733 1.1 christos exit (realloc (0, 0) ? 0 : 1); 8734 1.1 christos } 8735 1.1 christos 8736 1.1 christos _ACEOF 8737 1.1 christos rm -f conftest$ac_exeext 8738 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8739 1.1 christos (eval $ac_link) 2>&5 8740 1.1 christos ac_status=$? 8741 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8742 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8743 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8744 1.1 christos (eval $ac_try) 2>&5 8745 1.1 christos ac_status=$? 8746 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8747 1.1 christos (exit $ac_status); }; }; then 8748 1.1 christos jm_cv_func_working_realloc=yes 8749 1.1 christos else 8750 1.1 christos echo "$as_me: program exited with status $ac_status" >&5 8751 1.1 christos echo "$as_me: failed program was:" >&5 8752 1.1 christos cat conftest.$ac_ext >&5 8753 1.1 christos ( exit $ac_status ) 8754 1.1 christos jm_cv_func_working_realloc=no 8755 1.1 christos fi 8756 1.1 christos rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8757 1.1 christos fi 8758 1.1 christos 8759 1.1 christos fi 8760 1.1 christos echo "$as_me:$LINENO: result: $jm_cv_func_working_realloc" >&5 8761 1.1 christos echo "${ECHO_T}$jm_cv_func_working_realloc" >&6 8762 1.1 christos if test $jm_cv_func_working_realloc = no; then 8763 1.1 christos LIBOBJS="$LIBOBJS realloc.$ac_objext" 8764 1.1 christos 8765 1.1 christos cat >>confdefs.h <<_ACEOF 8766 1.1 christos #define realloc rpl_realloc 8767 1.1 christos _ACEOF 8768 1.1 christos 8769 1.1 christos fi 8770 1.1 christos 8771 1.1 christos 8772 1.1 christos # support for pcre 8773 1.1 christos if test x"$testpcre" = x"yes"; then 8774 1.1 christos if pcre-config --cflags >/dev/null 2>&1; then 8775 1.1 christos CFLAGS="$CFLAGS `pcre-config --cflags`" 8776 1.1 christos LIBS="$LIBS `pcre-config --libs`" 8777 1.1 christos fi 8778 1.1 christos 8779 1.1 christos echo "$as_me:$LINENO: checking for pcre_exec in -lpcre" >&5 8780 1.1 christos echo $ECHO_N "checking for pcre_exec in -lpcre... $ECHO_C" >&6 8781 1.1 christos if test "${ac_cv_lib_pcre_pcre_exec+set}" = set; then 8782 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 8783 1.1 christos else 8784 1.1 christos ac_check_lib_save_LIBS=$LIBS 8785 1.1 christos LIBS="-lpcre $LIBS" 8786 1.1 christos cat >conftest.$ac_ext <<_ACEOF 8787 1.1 christos #line $LINENO "configure" 8788 1.1 christos #include "confdefs.h" 8789 1.1 christos 8790 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 8791 1.1 christos #ifdef __cplusplus 8792 1.1 christos extern "C" 8793 1.1 christos #endif 8794 1.1 christos /* We use char because int might match the return type of a gcc2 8795 1.1 christos builtin and then its argument prototype would still apply. */ 8796 1.1 christos char pcre_exec (); 8797 1.1 christos #ifdef F77_DUMMY_MAIN 8798 1.1 christos # ifdef __cplusplus 8799 1.1 christos extern "C" 8800 1.1 christos # endif 8801 1.1 christos int F77_DUMMY_MAIN() { return 1; } 8802 1.1 christos #endif 8803 1.1 christos int 8804 1.1 christos main () 8805 1.1 christos { 8806 1.1 christos pcre_exec (); 8807 1.1 christos ; 8808 1.1 christos return 0; 8809 1.1 christos } 8810 1.1 christos _ACEOF 8811 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 8812 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8813 1.1 christos (eval $ac_link) 2>&5 8814 1.1 christos ac_status=$? 8815 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8816 1.1 christos (exit $ac_status); } && 8817 1.1 christos { ac_try='test -s conftest$ac_exeext' 8818 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8819 1.1 christos (eval $ac_try) 2>&5 8820 1.1 christos ac_status=$? 8821 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8822 1.1 christos (exit $ac_status); }; }; then 8823 1.1 christos ac_cv_lib_pcre_pcre_exec=yes 8824 1.1 christos else 8825 1.1 christos echo "$as_me: failed program was:" >&5 8826 1.1 christos cat conftest.$ac_ext >&5 8827 1.1 christos ac_cv_lib_pcre_pcre_exec=no 8828 1.1 christos fi 8829 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8830 1.1 christos LIBS=$ac_check_lib_save_LIBS 8831 1.1 christos fi 8832 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_lib_pcre_pcre_exec" >&5 8833 1.1 christos echo "${ECHO_T}$ac_cv_lib_pcre_pcre_exec" >&6 8834 1.1 christos if test $ac_cv_lib_pcre_pcre_exec = yes; then 8835 1.1 christos cat >>confdefs.h <<_ACEOF 8836 1.1 christos #define HAVE_LIBPCRE 1 8837 1.1 christos _ACEOF 8838 1.1 christos 8839 1.1 christos LIBS="-lpcre $LIBS" 8840 1.1 christos 8841 1.1 christos fi 8842 1.1 christos 8843 1.1 christos fi 8844 1.1 christos 8845 1.1 christos ac_config_files="$ac_config_files Makefile lib/Makefile lib/posix/Makefile src/Makefile tests/Makefile po/Makefile.in intl/Makefile doc/Makefile m4/Makefile vms/Makefile bootstrap/Makefile" 8846 1.1 christos ac_config_commands="$ac_config_commands default" 8847 1.1 christos cat >confcache <<\_ACEOF 8848 1.1 christos # This file is a shell script that caches the results of configure 8849 1.1 christos # tests run on this system so they can be shared between configure 8850 1.1 christos # scripts and configure runs, see configure's option --config-cache. 8851 1.1 christos # It is not useful on other systems. If it contains results you don't 8852 1.1 christos # want to keep, you may remove or edit it. 8853 1.1 christos # 8854 1.1 christos # config.status only pays attention to the cache file if you give it 8855 1.1 christos # the --recheck option to rerun configure. 8856 1.1 christos # 8857 1.1 christos # `ac_cv_env_foo' variables (set or unset) will be overriden when 8858 1.1 christos # loading this file, other *unset* `ac_cv_foo' will be assigned the 8859 1.1 christos # following values. 8860 1.1 christos 8861 1.1 christos _ACEOF 8862 1.1 christos 8863 1.1 christos # The following way of writing the cache mishandles newlines in values, 8864 1.1 christos # but we know of no workaround that is simple, portable, and efficient. 8865 1.1 christos # So, don't put newlines in cache variables' values. 8866 1.1 christos # Ultrix sh set writes to stderr and can't be redirected directly, 8867 1.1 christos # and sets the high bit in the cache file unless we assign to the vars. 8868 1.1 christos { 8869 1.1 christos (set) 2>&1 | 8870 1.1 christos case `(ac_space=' '; set | grep ac_space) 2>&1` in 8871 1.1 christos *ac_space=\ *) 8872 1.1 christos # `set' does not quote correctly, so add quotes (double-quote 8873 1.1 christos # substitution turns \\\\ into \\, and sed turns \\ into \). 8874 1.1 christos sed -n \ 8875 1.1 christos "s/'/'\\\\''/g; 8876 1.1 christos s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 8877 1.1 christos ;; 8878 1.1 christos *) 8879 1.1 christos # `set' quotes correctly as required by POSIX, so do not add quotes. 8880 1.1 christos sed -n \ 8881 1.1 christos "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 8882 1.1 christos ;; 8883 1.1 christos esac; 8884 1.1 christos } | 8885 1.1 christos sed ' 8886 1.1 christos t clear 8887 1.1 christos : clear 8888 1.1 christos s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 8889 1.1 christos t end 8890 1.1 christos /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 8891 1.1 christos : end' >>confcache 8892 1.1 christos if cmp -s $cache_file confcache; then :; else 8893 1.1 christos if test -w $cache_file; then 8894 1.1 christos test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 8895 1.1 christos cat confcache >$cache_file 8896 1.1 christos else 8897 1.1 christos echo "not updating unwritable cache $cache_file" 8898 1.1 christos fi 8899 1.1 christos fi 8900 1.1 christos rm -f confcache 8901 1.1 christos 8902 1.1 christos test "x$prefix" = xNONE && prefix=$ac_default_prefix 8903 1.1 christos # Let make expand exec_prefix. 8904 1.1 christos test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 8905 1.1 christos 8906 1.1 christos # VPATH may cause trouble with some makes, so we remove $(srcdir), 8907 1.1 christos # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 8908 1.1 christos # trailing colons and then remove the whole line if VPATH becomes empty 8909 1.1 christos # (actually we leave an empty line to preserve line numbers). 8910 1.1 christos if test "x$srcdir" = x.; then 8911 1.1 christos ac_vpsub='/^[ ]*VPATH[ ]*=/{ 8912 1.1 christos s/:*\$(srcdir):*/:/; 8913 1.1 christos s/:*\${srcdir}:*/:/; 8914 1.1 christos s/:*@srcdir@:*/:/; 8915 1.1 christos s/^\([^=]*=[ ]*\):*/\1/; 8916 1.1 christos s/:*$//; 8917 1.1 christos s/^[^=]*=[ ]*$//; 8918 1.1 christos }' 8919 1.1 christos fi 8920 1.1 christos 8921 1.1 christos DEFS=-DHAVE_CONFIG_H 8922 1.1 christos 8923 1.1 christos 8924 1.1 christos : ${CONFIG_STATUS=./config.status} 8925 1.1 christos ac_clean_files_save=$ac_clean_files 8926 1.1 christos ac_clean_files="$ac_clean_files $CONFIG_STATUS" 8927 1.1 christos { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 8928 1.1 christos echo "$as_me: creating $CONFIG_STATUS" >&6;} 8929 1.1 christos cat >$CONFIG_STATUS <<_ACEOF 8930 1.1 christos #! $SHELL 8931 1.1 christos # Generated by $as_me. 8932 1.1 christos # Run this file to recreate the current configuration. 8933 1.1 christos # Compiler output produced by configure, useful for debugging 8934 1.1 christos # configure, is in config.log if it exists. 8935 1.1 christos 8936 1.1 christos debug=false 8937 1.1 christos SHELL=\${CONFIG_SHELL-$SHELL} 8938 1.1 christos _ACEOF 8939 1.1 christos 8940 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF 8941 1.1 christos 8942 1.1 christos ## --------------------- ## 8943 1.1 christos ## M4sh Initialization. ## 8944 1.1 christos ## --------------------- ## 8945 1.1 christos 8946 1.1 christos # Be Bourne compatible 8947 1.1 christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 8948 1.1 christos emulate sh 8949 1.1 christos NULLCMD=: 8950 1.1 christos elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 8951 1.1 christos set -o posix 8952 1.1 christos fi 8953 1.1 christos 8954 1.1 christos # NLS nuisances. 8955 1.1 christos # Support unset when possible. 8956 1.1 christos if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 8957 1.1 christos as_unset=unset 8958 1.1 christos else 8959 1.1 christos as_unset=false 8960 1.1 christos fi 8961 1.1 christos 8962 1.1 christos (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && 8963 1.1 christos { $as_unset LANG || test "${LANG+set}" != set; } || 8964 1.1 christos { LANG=C; export LANG; } 8965 1.1 christos (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && 8966 1.1 christos { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || 8967 1.1 christos { LC_ALL=C; export LC_ALL; } 8968 1.1 christos (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && 8969 1.1 christos { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || 8970 1.1 christos { LC_TIME=C; export LC_TIME; } 8971 1.1 christos (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && 8972 1.1 christos { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || 8973 1.1 christos { LC_CTYPE=C; export LC_CTYPE; } 8974 1.1 christos (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && 8975 1.1 christos { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || 8976 1.1 christos { LANGUAGE=C; export LANGUAGE; } 8977 1.1 christos (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && 8978 1.1 christos { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || 8979 1.1 christos { LC_COLLATE=C; export LC_COLLATE; } 8980 1.1 christos (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && 8981 1.1 christos { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || 8982 1.1 christos { LC_NUMERIC=C; export LC_NUMERIC; } 8983 1.1 christos (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && 8984 1.1 christos { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || 8985 1.1 christos { LC_MESSAGES=C; export LC_MESSAGES; } 8986 1.1 christos 8987 1.1 christos 8988 1.1 christos # Name of the executable. 8989 1.1 christos as_me=`(basename "$0") 2>/dev/null || 8990 1.1 christos $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 8991 1.1 christos X"$0" : 'X\(//\)$' \| \ 8992 1.1 christos X"$0" : 'X\(/\)$' \| \ 8993 1.1 christos . : '\(.\)' 2>/dev/null || 8994 1.1 christos echo X/"$0" | 8995 1.1 christos sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 8996 1.1 christos /^X\/\(\/\/\)$/{ s//\1/; q; } 8997 1.1 christos /^X\/\(\/\).*/{ s//\1/; q; } 8998 1.1 christos s/.*/./; q'` 8999 1.1 christos 9000 1.1 christos # PATH needs CR, and LINENO needs CR and PATH. 9001 1.1 christos # Avoid depending upon Character Ranges. 9002 1.1 christos as_cr_letters='abcdefghijklmnopqrstuvwxyz' 9003 1.1 christos as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 9004 1.1 christos as_cr_Letters=$as_cr_letters$as_cr_LETTERS 9005 1.1 christos as_cr_digits='0123456789' 9006 1.1 christos as_cr_alnum=$as_cr_Letters$as_cr_digits 9007 1.1 christos 9008 1.1 christos # The user is always right. 9009 1.1 christos if test "${PATH_SEPARATOR+set}" != set; then 9010 1.1 christos echo "#! /bin/sh" >conftest.sh 9011 1.1 christos echo "exit 0" >>conftest.sh 9012 1.1 christos chmod +x conftest.sh 9013 1.1 christos if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then 9014 1.1 christos PATH_SEPARATOR=';' 9015 1.1 christos else 9016 1.1 christos PATH_SEPARATOR=: 9017 1.1 christos fi 9018 1.1 christos rm -f conftest.sh 9019 1.1 christos fi 9020 1.1 christos 9021 1.1 christos 9022 1.1 christos as_lineno_1=$LINENO 9023 1.1 christos as_lineno_2=$LINENO 9024 1.1 christos as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 9025 1.1 christos test "x$as_lineno_1" != "x$as_lineno_2" && 9026 1.1 christos test "x$as_lineno_3" = "x$as_lineno_2" || { 9027 1.1 christos # Find who we are. Look in the path if we contain no path at all 9028 1.1 christos # relative or not. 9029 1.1 christos case $0 in 9030 1.1 christos *[\\/]* ) as_myself=$0 ;; 9031 1.1 christos *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9032 1.1 christos for as_dir in $PATH 9033 1.1 christos do 9034 1.1 christos IFS=$as_save_IFS 9035 1.1 christos test -z "$as_dir" && as_dir=. 9036 1.1 christos test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 9037 1.1 christos done 9038 1.1 christos 9039 1.1 christos ;; 9040 1.1 christos esac 9041 1.1 christos # We did not find ourselves, most probably we were run as `sh COMMAND' 9042 1.1 christos # in which case we are not to be found in the path. 9043 1.1 christos if test "x$as_myself" = x; then 9044 1.1 christos as_myself=$0 9045 1.1 christos fi 9046 1.1 christos if test ! -f "$as_myself"; then 9047 1.1 christos { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 9048 1.1 christos echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 9049 1.1 christos { (exit 1); exit 1; }; } 9050 1.1 christos fi 9051 1.1 christos case $CONFIG_SHELL in 9052 1.1 christos '') 9053 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9054 1.1 christos for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 9055 1.1 christos do 9056 1.1 christos IFS=$as_save_IFS 9057 1.1 christos test -z "$as_dir" && as_dir=. 9058 1.1 christos for as_base in sh bash ksh sh5; do 9059 1.1 christos case $as_dir in 9060 1.1 christos /*) 9061 1.1 christos if ("$as_dir/$as_base" -c ' 9062 1.1 christos as_lineno_1=$LINENO 9063 1.1 christos as_lineno_2=$LINENO 9064 1.1 christos as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 9065 1.1 christos test "x$as_lineno_1" != "x$as_lineno_2" && 9066 1.1 christos test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 9067 1.1 christos CONFIG_SHELL=$as_dir/$as_base 9068 1.1 christos export CONFIG_SHELL 9069 1.1 christos exec "$CONFIG_SHELL" "$0" ${1+"$@"} 9070 1.1 christos fi;; 9071 1.1 christos esac 9072 1.1 christos done 9073 1.1 christos done 9074 1.1 christos ;; 9075 1.1 christos esac 9076 1.1 christos 9077 1.1 christos # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 9078 1.1 christos # uniformly replaced by the line number. The first 'sed' inserts a 9079 1.1 christos # line-number line before each line; the second 'sed' does the real 9080 1.1 christos # work. The second script uses 'N' to pair each line-number line 9081 1.1 christos # with the numbered line, and appends trailing '-' during 9082 1.1 christos # substitution so that $LINENO is not a special case at line end. 9083 1.1 christos # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 9084 1.1 christos # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 9085 1.1 christos sed '=' <$as_myself | 9086 1.1 christos sed ' 9087 1.1 christos N 9088 1.1 christos s,$,-, 9089 1.1 christos : loop 9090 1.1 christos s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 9091 1.1 christos t loop 9092 1.1 christos s,-$,, 9093 1.1 christos s,^['$as_cr_digits']*\n,, 9094 1.1 christos ' >$as_me.lineno && 9095 1.1 christos chmod +x $as_me.lineno || 9096 1.1 christos { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 9097 1.1 christos echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 9098 1.1 christos { (exit 1); exit 1; }; } 9099 1.1 christos 9100 1.1 christos # Don't try to exec as it changes $[0], causing all sort of problems 9101 1.1 christos # (the dirname of $[0] is not the place where we might find the 9102 1.1 christos # original and so on. Autoconf is especially sensible to this). 9103 1.1 christos . ./$as_me.lineno 9104 1.1 christos # Exit status is that of the last command. 9105 1.1 christos exit 9106 1.1 christos } 9107 1.1 christos 9108 1.1 christos 9109 1.1 christos case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 9110 1.1 christos *c*,-n*) ECHO_N= ECHO_C=' 9111 1.1 christos ' ECHO_T=' ' ;; 9112 1.1 christos *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 9113 1.1 christos *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 9114 1.1 christos esac 9115 1.1 christos 9116 1.1 christos if expr a : '\(a\)' >/dev/null 2>&1; then 9117 1.1 christos as_expr=expr 9118 1.1 christos else 9119 1.1 christos as_expr=false 9120 1.1 christos fi 9121 1.1 christos 9122 1.1 christos rm -f conf$$ conf$$.exe conf$$.file 9123 1.1 christos echo >conf$$.file 9124 1.1 christos if ln -s conf$$.file conf$$ 2>/dev/null; then 9125 1.1 christos # We could just check for DJGPP; but this test a) works b) is more generic 9126 1.1 christos # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 9127 1.1 christos if test -f conf$$.exe; then 9128 1.1 christos # Don't use ln at all; we don't have any links 9129 1.1 christos as_ln_s='cp -p' 9130 1.1 christos else 9131 1.1 christos as_ln_s='ln -s' 9132 1.1 christos fi 9133 1.1 christos elif ln conf$$.file conf$$ 2>/dev/null; then 9134 1.1 christos as_ln_s=ln 9135 1.1 christos else 9136 1.1 christos as_ln_s='cp -p' 9137 1.1 christos fi 9138 1.1 christos rm -f conf$$ conf$$.exe conf$$.file 9139 1.1 christos 9140 1.1 christos as_executable_p="test -f" 9141 1.1 christos 9142 1.1 christos # Sed expression to map a string onto a valid CPP name. 9143 1.1 christos as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 9144 1.1 christos 9145 1.1 christos # Sed expression to map a string onto a valid variable name. 9146 1.1 christos as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 9147 1.1 christos 9148 1.1 christos 9149 1.1 christos # IFS 9150 1.1 christos # We need space, tab and new line, in precisely that order. 9151 1.1 christos as_nl=' 9152 1.1 christos ' 9153 1.1 christos IFS=" $as_nl" 9154 1.1 christos 9155 1.1 christos # CDPATH. 9156 1.1 christos $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } 9157 1.1 christos 9158 1.1 christos exec 6>&1 9159 1.1 christos 9160 1.1 christos # Open the log real soon, to keep \$[0] and so on meaningful, and to 9161 1.1 christos # report actual input values of CONFIG_FILES etc. instead of their 9162 1.1 christos # values after options handling. Logging --version etc. is OK. 9163 1.1 christos exec 5>>config.log 9164 1.1 christos { 9165 1.1 christos echo 9166 1.1 christos sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 9167 1.1 christos ## Running $as_me. ## 9168 1.1 christos _ASBOX 9169 1.1 christos } >&5 9170 1.1 christos cat >&5 <<_CSEOF 9171 1.1 christos 9172 1.1 christos This file was extended by $as_me, which was 9173 1.1 christos generated by GNU Autoconf 2.53. Invocation command line was 9174 1.1 christos 9175 1.1 christos CONFIG_FILES = $CONFIG_FILES 9176 1.1 christos CONFIG_HEADERS = $CONFIG_HEADERS 9177 1.1 christos CONFIG_LINKS = $CONFIG_LINKS 9178 1.1 christos CONFIG_COMMANDS = $CONFIG_COMMANDS 9179 1.1 christos $ $0 $@ 9180 1.1 christos 9181 1.1 christos _CSEOF 9182 1.1 christos echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 9183 1.1 christos echo >&5 9184 1.1 christos _ACEOF 9185 1.1 christos 9186 1.1 christos # Files that config.status was made for. 9187 1.1 christos if test -n "$ac_config_files"; then 9188 1.1 christos echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 9189 1.1 christos fi 9190 1.1 christos 9191 1.1 christos if test -n "$ac_config_headers"; then 9192 1.1 christos echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 9193 1.1 christos fi 9194 1.1 christos 9195 1.1 christos if test -n "$ac_config_links"; then 9196 1.1 christos echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 9197 1.1 christos fi 9198 1.1 christos 9199 1.1 christos if test -n "$ac_config_commands"; then 9200 1.1 christos echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 9201 1.1 christos fi 9202 1.1 christos 9203 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF 9204 1.1 christos 9205 1.1 christos ac_cs_usage="\ 9206 1.1 christos \`$as_me' instantiates files from templates according to the 9207 1.1 christos current configuration. 9208 1.1 christos 9209 1.1 christos Usage: $0 [OPTIONS] [FILE]... 9210 1.1 christos 9211 1.1 christos -h, --help print this help, then exit 9212 1.1 christos -V, --version print version number, then exit 9213 1.1 christos -d, --debug don't remove temporary files 9214 1.1 christos --recheck update $as_me by reconfiguring in the same conditions 9215 1.1 christos --file=FILE[:TEMPLATE] 9216 1.1 christos instantiate the configuration file FILE 9217 1.1 christos --header=FILE[:TEMPLATE] 9218 1.1 christos instantiate the configuration header FILE 9219 1.1 christos 9220 1.1 christos Configuration files: 9221 1.1 christos $config_files 9222 1.1 christos 9223 1.1 christos Configuration headers: 9224 1.1 christos $config_headers 9225 1.1 christos 9226 1.1 christos Configuration commands: 9227 1.1 christos $config_commands 9228 1.1 christos 9229 1.1 christos Report bugs to <bug-autoconf@gnu.org>." 9230 1.1 christos _ACEOF 9231 1.1 christos 9232 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF 9233 1.1 christos ac_cs_version="\\ 9234 1.1 christos config.status 9235 1.1 christos configured by $0, generated by GNU Autoconf 2.53, 9236 1.1 christos with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 9237 1.1 christos 9238 1.1 christos Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 9239 1.1 christos Free Software Foundation, Inc. 9240 1.1 christos This config.status script is free software; the Free Software Foundation 9241 1.1 christos gives unlimited permission to copy, distribute and modify it." 9242 1.1 christos srcdir=$srcdir 9243 1.1 christos INSTALL="$INSTALL" 9244 1.1 christos _ACEOF 9245 1.1 christos 9246 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF 9247 1.1 christos # If no file are specified by the user, then we need to provide default 9248 1.1 christos # value. By we need to know if files were specified by the user. 9249 1.1 christos ac_need_defaults=: 9250 1.1 christos while test $# != 0 9251 1.1 christos do 9252 1.1 christos case $1 in 9253 1.1 christos --*=*) 9254 1.1 christos ac_option=`expr "x$1" : 'x\([^=]*\)='` 9255 1.1 christos ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 9256 1.1 christos shift 9257 1.1 christos set dummy "$ac_option" "$ac_optarg" ${1+"$@"} 9258 1.1 christos shift 9259 1.1 christos ;; 9260 1.1 christos -*);; 9261 1.1 christos *) # This is not an option, so the user has probably given explicit 9262 1.1 christos # arguments. 9263 1.1 christos ac_need_defaults=false;; 9264 1.1 christos esac 9265 1.1 christos 9266 1.1 christos case $1 in 9267 1.1 christos # Handling of the options. 9268 1.1 christos _ACEOF 9269 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF 9270 1.1 christos -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 9271 1.1 christos echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" 9272 1.1 christos exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; 9273 1.1 christos _ACEOF 9274 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF 9275 1.1 christos --version | --vers* | -V ) 9276 1.1 christos echo "$ac_cs_version"; exit 0 ;; 9277 1.1 christos --he | --h) 9278 1.1 christos # Conflict between --help and --header 9279 1.1 christos { { echo "$as_me:$LINENO: error: ambiguous option: $1 9280 1.1 christos Try \`$0 --help' for more information." >&5 9281 1.1 christos echo "$as_me: error: ambiguous option: $1 9282 1.1 christos Try \`$0 --help' for more information." >&2;} 9283 1.1 christos { (exit 1); exit 1; }; };; 9284 1.1 christos --help | --hel | -h ) 9285 1.1 christos echo "$ac_cs_usage"; exit 0 ;; 9286 1.1 christos --debug | --d* | -d ) 9287 1.1 christos debug=: ;; 9288 1.1 christos --file | --fil | --fi | --f ) 9289 1.1 christos shift 9290 1.1 christos CONFIG_FILES="$CONFIG_FILES $1" 9291 1.1 christos ac_need_defaults=false;; 9292 1.1 christos --header | --heade | --head | --hea ) 9293 1.1 christos shift 9294 1.1 christos CONFIG_HEADERS="$CONFIG_HEADERS $1" 9295 1.1 christos ac_need_defaults=false;; 9296 1.1 christos 9297 1.1 christos # This is an error. 9298 1.1 christos -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 9299 1.1 christos Try \`$0 --help' for more information." >&5 9300 1.1 christos echo "$as_me: error: unrecognized option: $1 9301 1.1 christos Try \`$0 --help' for more information." >&2;} 9302 1.1 christos { (exit 1); exit 1; }; } ;; 9303 1.1 christos 9304 1.1 christos *) ac_config_targets="$ac_config_targets $1" ;; 9305 1.1 christos 9306 1.1 christos esac 9307 1.1 christos shift 9308 1.1 christos done 9309 1.1 christos 9310 1.1 christos _ACEOF 9311 1.1 christos 9312 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF 9313 1.1 christos # 9314 1.1 christos # INIT-COMMANDS section. 9315 1.1 christos # 9316 1.1 christos 9317 1.1 christos AMDEP_TRUE="$AMDEP_TRUE" 9318 1.1 christos ac_aux_dir="$ac_aux_dir" 9319 1.1 christos 9320 1.1 christos 9321 1.1 christos _ACEOF 9322 1.1 christos 9323 1.1 christos 9324 1.1 christos 9325 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF 9326 1.1 christos for ac_config_target in $ac_config_targets 9327 1.1 christos do 9328 1.1 christos case "$ac_config_target" in 9329 1.1 christos # Handling of arguments. 9330 1.1 christos "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 9331 1.1 christos "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 9332 1.1 christos "lib/posix/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/posix/Makefile" ;; 9333 1.1 christos "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 9334 1.1 christos "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 9335 1.1 christos "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 9336 1.1 christos "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;; 9337 1.1 christos "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 9338 1.1 christos "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; 9339 1.1 christos "vms/Makefile" ) CONFIG_FILES="$CONFIG_FILES vms/Makefile" ;; 9340 1.1 christos "bootstrap/Makefile" ) CONFIG_FILES="$CONFIG_FILES bootstrap/Makefile" ;; 9341 1.1 christos "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 9342 1.1 christos "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;; 9343 1.1 christos "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 9344 1.1 christos "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;; 9345 1.1 christos *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 9346 1.1 christos echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 9347 1.1 christos { (exit 1); exit 1; }; };; 9348 1.1 christos esac 9349 1.1 christos done 9350 1.1 christos 9351 1.1 christos # If the user did not use the arguments to specify the items to instantiate, 9352 1.1 christos # then the envvar interface is used. Set only those that are not. 9353 1.1 christos # We use the long form for the default assignment because of an extremely 9354 1.1 christos # bizarre bug on SunOS 4.1.3. 9355 1.1 christos if $ac_need_defaults; then 9356 1.1 christos test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 9357 1.1 christos test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 9358 1.1 christos test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 9359 1.1 christos fi 9360 1.1 christos 9361 1.1 christos # Create a temporary directory, and hook for its removal unless debugging. 9362 1.1 christos $debug || 9363 1.1 christos { 9364 1.1 christos trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 9365 1.1 christos trap '{ (exit 1); exit 1; }' 1 2 13 15 9366 1.1 christos } 9367 1.1 christos 9368 1.1 christos # Create a (secure) tmp directory for tmp files. 9369 1.1 christos : ${TMPDIR=/tmp} 9370 1.1 christos { 9371 1.1 christos tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && 9372 1.1 christos test -n "$tmp" && test -d "$tmp" 9373 1.1 christos } || 9374 1.1 christos { 9375 1.1 christos tmp=$TMPDIR/cs$$-$RANDOM 9376 1.1 christos (umask 077 && mkdir $tmp) 9377 1.1 christos } || 9378 1.1 christos { 9379 1.1 christos echo "$me: cannot create a temporary directory in $TMPDIR" >&2 9380 1.1 christos { (exit 1); exit 1; } 9381 1.1 christos } 9382 1.1 christos 9383 1.1 christos _ACEOF 9384 1.1 christos 9385 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF 9386 1.1 christos 9387 1.1 christos # 9388 1.1 christos # CONFIG_FILES section. 9389 1.1 christos # 9390 1.1 christos 9391 1.1 christos # No need to generate the scripts if there are no CONFIG_FILES. 9392 1.1 christos # This happens for instance when ./config.status config.h 9393 1.1 christos if test -n "\$CONFIG_FILES"; then 9394 1.1 christos # Protect against being on the right side of a sed subst in config.status. 9395 1.1 christos sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 9396 1.1 christos s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 9397 1.1 christos s,@SHELL@,$SHELL,;t t 9398 1.1 christos s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 9399 1.1 christos s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 9400 1.1 christos s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 9401 1.1 christos s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 9402 1.1 christos s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 9403 1.1 christos s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 9404 1.1 christos s,@exec_prefix@,$exec_prefix,;t t 9405 1.1 christos s,@prefix@,$prefix,;t t 9406 1.1 christos s,@program_transform_name@,$program_transform_name,;t t 9407 1.1 christos s,@bindir@,$bindir,;t t 9408 1.1 christos s,@sbindir@,$sbindir,;t t 9409 1.1 christos s,@libexecdir@,$libexecdir,;t t 9410 1.1 christos s,@datadir@,$datadir,;t t 9411 1.1 christos s,@sysconfdir@,$sysconfdir,;t t 9412 1.1 christos s,@sharedstatedir@,$sharedstatedir,;t t 9413 1.1 christos s,@localstatedir@,$localstatedir,;t t 9414 1.1 christos s,@libdir@,$libdir,;t t 9415 1.1 christos s,@includedir@,$includedir,;t t 9416 1.1 christos s,@oldincludedir@,$oldincludedir,;t t 9417 1.1 christos s,@infodir@,$infodir,;t t 9418 1.1 christos s,@mandir@,$mandir,;t t 9419 1.1 christos s,@build_alias@,$build_alias,;t t 9420 1.1 christos s,@host_alias@,$host_alias,;t t 9421 1.1 christos s,@target_alias@,$target_alias,;t t 9422 1.1 christos s,@DEFS@,$DEFS,;t t 9423 1.1 christos s,@ECHO_C@,$ECHO_C,;t t 9424 1.1 christos s,@ECHO_N@,$ECHO_N,;t t 9425 1.1 christos s,@ECHO_T@,$ECHO_T,;t t 9426 1.1 christos s,@LIBS@,$LIBS,;t t 9427 1.1 christos s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 9428 1.1 christos s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 9429 1.1 christos s,@INSTALL_DATA@,$INSTALL_DATA,;t t 9430 1.1 christos s,@PACKAGE@,$PACKAGE,;t t 9431 1.1 christos s,@VERSION@,$VERSION,;t t 9432 1.1 christos s,@EXEEXT@,$EXEEXT,;t t 9433 1.1 christos s,@OBJEXT@,$OBJEXT,;t t 9434 1.1 christos s,@ACLOCAL@,$ACLOCAL,;t t 9435 1.1 christos s,@AUTOCONF@,$AUTOCONF,;t t 9436 1.1 christos s,@AUTOMAKE@,$AUTOMAKE,;t t 9437 1.1 christos s,@AUTOHEADER@,$AUTOHEADER,;t t 9438 1.1 christos s,@MAKEINFO@,$MAKEINFO,;t t 9439 1.1 christos s,@AMTAR@,$AMTAR,;t t 9440 1.1 christos s,@install_sh@,$install_sh,;t t 9441 1.1 christos s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 9442 1.1 christos s,@AWK@,$AWK,;t t 9443 1.1 christos s,@SET_MAKE@,$SET_MAKE,;t t 9444 1.1 christos s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 9445 1.1 christos s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 9446 1.1 christos s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 9447 1.1 christos s,@DEPDIR@,$DEPDIR,;t t 9448 1.1 christos s,@build@,$build,;t t 9449 1.1 christos s,@build_cpu@,$build_cpu,;t t 9450 1.1 christos s,@build_vendor@,$build_vendor,;t t 9451 1.1 christos s,@build_os@,$build_os,;t t 9452 1.1 christos s,@host@,$host,;t t 9453 1.1 christos s,@host_cpu@,$host_cpu,;t t 9454 1.1 christos s,@host_vendor@,$host_vendor,;t t 9455 1.1 christos s,@host_os@,$host_os,;t t 9456 1.1 christos s,@CC@,$CC,;t t 9457 1.1 christos s,@CFLAGS@,$CFLAGS,;t t 9458 1.1 christos s,@LDFLAGS@,$LDFLAGS,;t t 9459 1.1 christos s,@CPPFLAGS@,$CPPFLAGS,;t t 9460 1.1 christos s,@ac_ct_CC@,$ac_ct_CC,;t t 9461 1.1 christos s,@am__include@,$am__include,;t t 9462 1.1 christos s,@am__quote@,$am__quote,;t t 9463 1.1 christos s,@CCDEPMODE@,$CCDEPMODE,;t t 9464 1.1 christos s,@RANLIB@,$RANLIB,;t t 9465 1.1 christos s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 9466 1.1 christos s,@GETCONF@,$GETCONF,;t t 9467 1.1 christos s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t 9468 1.1 christos s,@CPP@,$CPP,;t t 9469 1.1 christos s,@U@,$U,;t t 9470 1.1 christos s,@ANSI2KNR@,$ANSI2KNR,;t t 9471 1.1 christos s,@ALLOCA@,$ALLOCA,;t t 9472 1.1 christos s,@LIBOBJS@,$LIBOBJS,;t t 9473 1.1 christos s,@GLIBC21@,$GLIBC21,;t t 9474 1.1 christos s,@LIBICONV@,$LIBICONV,;t t 9475 1.1 christos s,@USE_NLS@,$USE_NLS,;t t 9476 1.1 christos s,@MSGFMT@,$MSGFMT,;t t 9477 1.1 christos s,@GMSGFMT@,$GMSGFMT,;t t 9478 1.1 christos s,@XGETTEXT@,$XGETTEXT,;t t 9479 1.1 christos s,@INTLBISON@,$INTLBISON,;t t 9480 1.1 christos s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t 9481 1.1 christos s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t 9482 1.1 christos s,@CATALOGS@,$CATALOGS,;t t 9483 1.1 christos s,@CATOBJEXT@,$CATOBJEXT,;t t 9484 1.1 christos s,@GMOFILES@,$GMOFILES,;t t 9485 1.1 christos s,@INTLLIBS@,$INTLLIBS,;t t 9486 1.1 christos s,@INTLOBJS@,$INTLOBJS,;t t 9487 1.1 christos s,@POFILES@,$POFILES,;t t 9488 1.1 christos s,@POSUB@,$POSUB,;t t 9489 1.1 christos s,@DATADIRNAME@,$DATADIRNAME,;t t 9490 1.1 christos s,@INSTOBJEXT@,$INSTOBJEXT,;t t 9491 1.1 christos s,@GENCAT@,$GENCAT,;t t 9492 1.1 christos s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t 9493 1.1 christos s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t 9494 1.1 christos s,@SEP@,$SEP,;t t 9495 1.1 christos CEOF 9496 1.1 christos 9497 1.1 christos _ACEOF 9498 1.1 christos 9499 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF 9500 1.1 christos # Split the substitutions into bite-sized pieces for seds with 9501 1.1 christos # small command number limits, like on Digital OSF/1 and HP-UX. 9502 1.1 christos ac_max_sed_lines=48 9503 1.1 christos ac_sed_frag=1 # Number of current file. 9504 1.1 christos ac_beg=1 # First line for current file. 9505 1.1 christos ac_end=$ac_max_sed_lines # Line after last line for current file. 9506 1.1 christos ac_more_lines=: 9507 1.1 christos ac_sed_cmds= 9508 1.1 christos while $ac_more_lines; do 9509 1.1 christos if test $ac_beg -gt 1; then 9510 1.1 christos sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 9511 1.1 christos else 9512 1.1 christos sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 9513 1.1 christos fi 9514 1.1 christos if test ! -s $tmp/subs.frag; then 9515 1.1 christos ac_more_lines=false 9516 1.1 christos else 9517 1.1 christos # The purpose of the label and of the branching condition is to 9518 1.1 christos # speed up the sed processing (if there are no `@' at all, there 9519 1.1 christos # is no need to browse any of the substitutions). 9520 1.1 christos # These are the two extra sed commands mentioned above. 9521 1.1 christos (echo ':t 9522 1.1 christos /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 9523 1.1 christos if test -z "$ac_sed_cmds"; then 9524 1.1 christos ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 9525 1.1 christos else 9526 1.1 christos ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 9527 1.1 christos fi 9528 1.1 christos ac_sed_frag=`expr $ac_sed_frag + 1` 9529 1.1 christos ac_beg=$ac_end 9530 1.1 christos ac_end=`expr $ac_end + $ac_max_sed_lines` 9531 1.1 christos fi 9532 1.1 christos done 9533 1.1 christos if test -z "$ac_sed_cmds"; then 9534 1.1 christos ac_sed_cmds=cat 9535 1.1 christos fi 9536 1.1 christos fi # test -n "$CONFIG_FILES" 9537 1.1 christos 9538 1.1 christos _ACEOF 9539 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF 9540 1.1 christos for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 9541 1.1 christos # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 9542 1.1 christos case $ac_file in 9543 1.1 christos - | *:- | *:-:* ) # input from stdin 9544 1.1 christos cat >$tmp/stdin 9545 1.1 christos ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 9546 1.1 christos ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 9547 1.1 christos *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 9548 1.1 christos ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 9549 1.1 christos * ) ac_file_in=$ac_file.in ;; 9550 1.1 christos esac 9551 1.1 christos 9552 1.1 christos # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 9553 1.1 christos ac_dir=`(dirname "$ac_file") 2>/dev/null || 9554 1.1 christos $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9555 1.1 christos X"$ac_file" : 'X\(//\)[^/]' \| \ 9556 1.1 christos X"$ac_file" : 'X\(//\)$' \| \ 9557 1.1 christos X"$ac_file" : 'X\(/\)' \| \ 9558 1.1 christos . : '\(.\)' 2>/dev/null || 9559 1.1 christos echo X"$ac_file" | 9560 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 9561 1.1 christos /^X\(\/\/\)[^/].*/{ s//\1/; q; } 9562 1.1 christos /^X\(\/\/\)$/{ s//\1/; q; } 9563 1.1 christos /^X\(\/\).*/{ s//\1/; q; } 9564 1.1 christos s/.*/./; q'` 9565 1.1 christos { case "$ac_dir" in 9566 1.1 christos [\\/]* | ?:[\\/]* ) as_incr_dir=;; 9567 1.1 christos *) as_incr_dir=.;; 9568 1.1 christos esac 9569 1.1 christos as_dummy="$ac_dir" 9570 1.1 christos for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 9571 1.1 christos case $as_mkdir_dir in 9572 1.1 christos # Skip DOS drivespec 9573 1.1 christos ?:) as_incr_dir=$as_mkdir_dir ;; 9574 1.1 christos *) 9575 1.1 christos as_incr_dir=$as_incr_dir/$as_mkdir_dir 9576 1.1 christos test -d "$as_incr_dir" || 9577 1.1 christos mkdir "$as_incr_dir" || 9578 1.1 christos { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 9579 1.1 christos echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} 9580 1.1 christos { (exit 1); exit 1; }; } 9581 1.1 christos ;; 9582 1.1 christos esac 9583 1.1 christos done; } 9584 1.1 christos 9585 1.1 christos ac_builddir=. 9586 1.1 christos 9587 1.1 christos if test "$ac_dir" != .; then 9588 1.1 christos ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 9589 1.1 christos # A "../" for each directory in $ac_dir_suffix. 9590 1.1 christos ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 9591 1.1 christos else 9592 1.1 christos ac_dir_suffix= ac_top_builddir= 9593 1.1 christos fi 9594 1.1 christos 9595 1.1 christos case $srcdir in 9596 1.1 christos .) # No --srcdir option. We are building in place. 9597 1.1 christos ac_srcdir=. 9598 1.1 christos if test -z "$ac_top_builddir"; then 9599 1.1 christos ac_top_srcdir=. 9600 1.1 christos else 9601 1.1 christos ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 9602 1.1 christos fi ;; 9603 1.1 christos [\\/]* | ?:[\\/]* ) # Absolute path. 9604 1.1 christos ac_srcdir=$srcdir$ac_dir_suffix; 9605 1.1 christos ac_top_srcdir=$srcdir ;; 9606 1.1 christos *) # Relative path. 9607 1.1 christos ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 9608 1.1 christos ac_top_srcdir=$ac_top_builddir$srcdir ;; 9609 1.1 christos esac 9610 1.1 christos # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 9611 1.1 christos # absolute. 9612 1.1 christos ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 9613 1.1 christos ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` 9614 1.1 christos ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 9615 1.1 christos ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 9616 1.1 christos 9617 1.1 christos 9618 1.1 christos case $INSTALL in 9619 1.1 christos [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 9620 1.1 christos *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 9621 1.1 christos esac 9622 1.1 christos 9623 1.1 christos if test x"$ac_file" != x-; then 9624 1.1 christos { echo "$as_me:$LINENO: creating $ac_file" >&5 9625 1.1 christos echo "$as_me: creating $ac_file" >&6;} 9626 1.1 christos rm -f "$ac_file" 9627 1.1 christos fi 9628 1.1 christos # Let's still pretend it is `configure' which instantiates (i.e., don't 9629 1.1 christos # use $as_me), people would be surprised to read: 9630 1.1 christos # /* config.h. Generated by config.status. */ 9631 1.1 christos if test x"$ac_file" = x-; then 9632 1.1 christos configure_input= 9633 1.1 christos else 9634 1.1 christos configure_input="$ac_file. " 9635 1.1 christos fi 9636 1.1 christos configure_input=$configure_input"Generated from `echo $ac_file_in | 9637 1.1 christos sed 's,.*/,,'` by configure." 9638 1.1 christos 9639 1.1 christos # First look for the input files in the build tree, otherwise in the 9640 1.1 christos # src tree. 9641 1.1 christos ac_file_inputs=`IFS=: 9642 1.1 christos for f in $ac_file_in; do 9643 1.1 christos case $f in 9644 1.1 christos -) echo $tmp/stdin ;; 9645 1.1 christos [\\/$]*) 9646 1.1 christos # Absolute (can't be DOS-style, as IFS=:) 9647 1.1 christos test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 9648 1.1 christos echo "$as_me: error: cannot find input file: $f" >&2;} 9649 1.1 christos { (exit 1); exit 1; }; } 9650 1.1 christos echo $f;; 9651 1.1 christos *) # Relative 9652 1.1 christos if test -f "$f"; then 9653 1.1 christos # Build tree 9654 1.1 christos echo $f 9655 1.1 christos elif test -f "$srcdir/$f"; then 9656 1.1 christos # Source tree 9657 1.1 christos echo $srcdir/$f 9658 1.1 christos else 9659 1.1 christos # /dev/null tree 9660 1.1 christos { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 9661 1.1 christos echo "$as_me: error: cannot find input file: $f" >&2;} 9662 1.1 christos { (exit 1); exit 1; }; } 9663 1.1 christos fi;; 9664 1.1 christos esac 9665 1.1 christos done` || { (exit 1); exit 1; } 9666 1.1 christos _ACEOF 9667 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF 9668 1.1 christos sed "$ac_vpsub 9669 1.1 christos $extrasub 9670 1.1 christos _ACEOF 9671 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF 9672 1.1 christos :t 9673 1.1 christos /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 9674 1.1 christos s,@configure_input@,$configure_input,;t t 9675 1.1 christos s,@srcdir@,$ac_srcdir,;t t 9676 1.1 christos s,@abs_srcdir@,$ac_abs_srcdir,;t t 9677 1.1 christos s,@top_srcdir@,$ac_top_srcdir,;t t 9678 1.1 christos s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 9679 1.1 christos s,@builddir@,$ac_builddir,;t t 9680 1.1 christos s,@abs_builddir@,$ac_abs_builddir,;t t 9681 1.1 christos s,@top_builddir@,$ac_top_builddir,;t t 9682 1.1 christos s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 9683 1.1 christos s,@INSTALL@,$ac_INSTALL,;t t 9684 1.1 christos " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 9685 1.1 christos rm -f $tmp/stdin 9686 1.1 christos if test x"$ac_file" != x-; then 9687 1.1 christos mv $tmp/out $ac_file 9688 1.1 christos else 9689 1.1 christos cat $tmp/out 9690 1.1 christos rm -f $tmp/out 9691 1.1 christos fi 9692 1.1 christos 9693 1.1 christos done 9694 1.1 christos _ACEOF 9695 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF 9696 1.1 christos 9697 1.1 christos # 9698 1.1 christos # CONFIG_HEADER section. 9699 1.1 christos # 9700 1.1 christos 9701 1.1 christos # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 9702 1.1 christos # NAME is the cpp macro being defined and VALUE is the value it is being given. 9703 1.1 christos # 9704 1.1 christos # ac_d sets the value in "#define NAME VALUE" lines. 9705 1.1 christos ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 9706 1.1 christos ac_dB='[ ].*$,\1#\2' 9707 1.1 christos ac_dC=' ' 9708 1.1 christos ac_dD=',;t' 9709 1.1 christos # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 9710 1.1 christos ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 9711 1.1 christos ac_uB='$,\1#\2define\3' 9712 1.1 christos ac_uC=' ' 9713 1.1 christos ac_uD=',;t' 9714 1.1 christos 9715 1.1 christos for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 9716 1.1 christos # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 9717 1.1 christos case $ac_file in 9718 1.1 christos - | *:- | *:-:* ) # input from stdin 9719 1.1 christos cat >$tmp/stdin 9720 1.1 christos ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 9721 1.1 christos ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 9722 1.1 christos *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 9723 1.1 christos ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 9724 1.1 christos * ) ac_file_in=$ac_file.in ;; 9725 1.1 christos esac 9726 1.1 christos 9727 1.1 christos test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 9728 1.1 christos echo "$as_me: creating $ac_file" >&6;} 9729 1.1 christos 9730 1.1 christos # First look for the input files in the build tree, otherwise in the 9731 1.1 christos # src tree. 9732 1.1 christos ac_file_inputs=`IFS=: 9733 1.1 christos for f in $ac_file_in; do 9734 1.1 christos case $f in 9735 1.1 christos -) echo $tmp/stdin ;; 9736 1.1 christos [\\/$]*) 9737 1.1 christos # Absolute (can't be DOS-style, as IFS=:) 9738 1.1 christos test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 9739 1.1 christos echo "$as_me: error: cannot find input file: $f" >&2;} 9740 1.1 christos { (exit 1); exit 1; }; } 9741 1.1 christos echo $f;; 9742 1.1 christos *) # Relative 9743 1.1 christos if test -f "$f"; then 9744 1.1 christos # Build tree 9745 1.1 christos echo $f 9746 1.1 christos elif test -f "$srcdir/$f"; then 9747 1.1 christos # Source tree 9748 1.1 christos echo $srcdir/$f 9749 1.1 christos else 9750 1.1 christos # /dev/null tree 9751 1.1 christos { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 9752 1.1 christos echo "$as_me: error: cannot find input file: $f" >&2;} 9753 1.1 christos { (exit 1); exit 1; }; } 9754 1.1 christos fi;; 9755 1.1 christos esac 9756 1.1 christos done` || { (exit 1); exit 1; } 9757 1.1 christos # Remove the trailing spaces. 9758 1.1 christos sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 9759 1.1 christos 9760 1.1 christos _ACEOF 9761 1.1 christos 9762 1.1 christos # Transform confdefs.h into two sed scripts, `conftest.defines' and 9763 1.1 christos # `conftest.undefs', that substitutes the proper values into 9764 1.1 christos # config.h.in to produce config.h. The first handles `#define' 9765 1.1 christos # templates, and the second `#undef' templates. 9766 1.1 christos # And first: Protect against being on the right side of a sed subst in 9767 1.1 christos # config.status. Protect against being in an unquoted here document 9768 1.1 christos # in config.status. 9769 1.1 christos rm -f conftest.defines conftest.undefs 9770 1.1 christos # Using a here document instead of a string reduces the quoting nightmare. 9771 1.1 christos # Putting comments in sed scripts is not portable. 9772 1.1 christos # 9773 1.1 christos # `end' is used to avoid that the second main sed command (meant for 9774 1.1 christos # 0-ary CPP macros) applies to n-ary macro definitions. 9775 1.1 christos # See the Autoconf documentation for `clear'. 9776 1.1 christos cat >confdef2sed.sed <<\_ACEOF 9777 1.1 christos s/[\\&,]/\\&/g 9778 1.1 christos s,[\\$`],\\&,g 9779 1.1 christos t clear 9780 1.1 christos : clear 9781 1.1 christos s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 9782 1.1 christos t end 9783 1.1 christos s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 9784 1.1 christos : end 9785 1.1 christos _ACEOF 9786 1.1 christos # If some macros were called several times there might be several times 9787 1.1 christos # the same #defines, which is useless. Nevertheless, we may not want to 9788 1.1 christos # sort them, since we want the *last* AC-DEFINE to be honored. 9789 1.1 christos uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 9790 1.1 christos sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 9791 1.1 christos rm -f confdef2sed.sed 9792 1.1 christos 9793 1.1 christos # This sed command replaces #undef with comments. This is necessary, for 9794 1.1 christos # example, in the case of _POSIX_SOURCE, which is predefined and required 9795 1.1 christos # on some systems where configure will not decide to define it. 9796 1.1 christos cat >>conftest.undefs <<\_ACEOF 9797 1.1 christos s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 9798 1.1 christos _ACEOF 9799 1.1 christos 9800 1.1 christos # Break up conftest.defines because some shells have a limit on the size 9801 1.1 christos # of here documents, and old seds have small limits too (100 cmds). 9802 1.1 christos echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 9803 1.1 christos echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 9804 1.1 christos echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 9805 1.1 christos echo ' :' >>$CONFIG_STATUS 9806 1.1 christos rm -f conftest.tail 9807 1.1 christos while grep . conftest.defines >/dev/null 9808 1.1 christos do 9809 1.1 christos # Write a limited-size here document to $tmp/defines.sed. 9810 1.1 christos echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 9811 1.1 christos # Speed up: don't consider the non `#define' lines. 9812 1.1 christos echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 9813 1.1 christos # Work around the forget-to-reset-the-flag bug. 9814 1.1 christos echo 't clr' >>$CONFIG_STATUS 9815 1.1 christos echo ': clr' >>$CONFIG_STATUS 9816 1.1 christos sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 9817 1.1 christos echo 'CEOF 9818 1.1 christos sed -f $tmp/defines.sed $tmp/in >$tmp/out 9819 1.1 christos rm -f $tmp/in 9820 1.1 christos mv $tmp/out $tmp/in 9821 1.1 christos ' >>$CONFIG_STATUS 9822 1.1 christos sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 9823 1.1 christos rm -f conftest.defines 9824 1.1 christos mv conftest.tail conftest.defines 9825 1.1 christos done 9826 1.1 christos rm -f conftest.defines 9827 1.1 christos echo ' fi # egrep' >>$CONFIG_STATUS 9828 1.1 christos echo >>$CONFIG_STATUS 9829 1.1 christos 9830 1.1 christos # Break up conftest.undefs because some shells have a limit on the size 9831 1.1 christos # of here documents, and old seds have small limits too (100 cmds). 9832 1.1 christos echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 9833 1.1 christos rm -f conftest.tail 9834 1.1 christos while grep . conftest.undefs >/dev/null 9835 1.1 christos do 9836 1.1 christos # Write a limited-size here document to $tmp/undefs.sed. 9837 1.1 christos echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 9838 1.1 christos # Speed up: don't consider the non `#undef' 9839 1.1 christos echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 9840 1.1 christos # Work around the forget-to-reset-the-flag bug. 9841 1.1 christos echo 't clr' >>$CONFIG_STATUS 9842 1.1 christos echo ': clr' >>$CONFIG_STATUS 9843 1.1 christos sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 9844 1.1 christos echo 'CEOF 9845 1.1 christos sed -f $tmp/undefs.sed $tmp/in >$tmp/out 9846 1.1 christos rm -f $tmp/in 9847 1.1 christos mv $tmp/out $tmp/in 9848 1.1 christos ' >>$CONFIG_STATUS 9849 1.1 christos sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 9850 1.1 christos rm -f conftest.undefs 9851 1.1 christos mv conftest.tail conftest.undefs 9852 1.1 christos done 9853 1.1 christos rm -f conftest.undefs 9854 1.1 christos 9855 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF 9856 1.1 christos # Let's still pretend it is `configure' which instantiates (i.e., don't 9857 1.1 christos # use $as_me), people would be surprised to read: 9858 1.1 christos # /* config.h. Generated by config.status. */ 9859 1.1 christos if test x"$ac_file" = x-; then 9860 1.1 christos echo "/* Generated by configure. */" >$tmp/config.h 9861 1.1 christos else 9862 1.1 christos echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 9863 1.1 christos fi 9864 1.1 christos cat $tmp/in >>$tmp/config.h 9865 1.1 christos rm -f $tmp/in 9866 1.1 christos if test x"$ac_file" != x-; then 9867 1.1 christos if cmp -s $ac_file $tmp/config.h 2>/dev/null; then 9868 1.1 christos { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 9869 1.1 christos echo "$as_me: $ac_file is unchanged" >&6;} 9870 1.1 christos else 9871 1.1 christos ac_dir=`(dirname "$ac_file") 2>/dev/null || 9872 1.1 christos $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9873 1.1 christos X"$ac_file" : 'X\(//\)[^/]' \| \ 9874 1.1 christos X"$ac_file" : 'X\(//\)$' \| \ 9875 1.1 christos X"$ac_file" : 'X\(/\)' \| \ 9876 1.1 christos . : '\(.\)' 2>/dev/null || 9877 1.1 christos echo X"$ac_file" | 9878 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 9879 1.1 christos /^X\(\/\/\)[^/].*/{ s//\1/; q; } 9880 1.1 christos /^X\(\/\/\)$/{ s//\1/; q; } 9881 1.1 christos /^X\(\/\).*/{ s//\1/; q; } 9882 1.1 christos s/.*/./; q'` 9883 1.1 christos { case "$ac_dir" in 9884 1.1 christos [\\/]* | ?:[\\/]* ) as_incr_dir=;; 9885 1.1 christos *) as_incr_dir=.;; 9886 1.1 christos esac 9887 1.1 christos as_dummy="$ac_dir" 9888 1.1 christos for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 9889 1.1 christos case $as_mkdir_dir in 9890 1.1 christos # Skip DOS drivespec 9891 1.1 christos ?:) as_incr_dir=$as_mkdir_dir ;; 9892 1.1 christos *) 9893 1.1 christos as_incr_dir=$as_incr_dir/$as_mkdir_dir 9894 1.1 christos test -d "$as_incr_dir" || 9895 1.1 christos mkdir "$as_incr_dir" || 9896 1.1 christos { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 9897 1.1 christos echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} 9898 1.1 christos { (exit 1); exit 1; }; } 9899 1.1 christos ;; 9900 1.1 christos esac 9901 1.1 christos done; } 9902 1.1 christos 9903 1.1 christos rm -f $ac_file 9904 1.1 christos mv $tmp/config.h $ac_file 9905 1.1 christos fi 9906 1.1 christos else 9907 1.1 christos cat $tmp/config.h 9908 1.1 christos rm -f $tmp/config.h 9909 1.1 christos fi 9910 1.1 christos # Run the commands associated with the file. 9911 1.1 christos case $ac_file in 9912 1.1 christos config.h ) # update the timestamp 9913 1.1 christos echo timestamp >"./stamp-h1" 9914 1.1 christos ;; 9915 1.1 christos esac 9916 1.1 christos done 9917 1.1 christos _ACEOF 9918 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF 9919 1.1 christos 9920 1.1 christos # 9921 1.1 christos # CONFIG_COMMANDS section. 9922 1.1 christos # 9923 1.1 christos for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 9924 1.1 christos ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 9925 1.1 christos ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 9926 1.1 christos ac_dir=`(dirname "$ac_dest") 2>/dev/null || 9927 1.1 christos $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9928 1.1 christos X"$ac_dest" : 'X\(//\)[^/]' \| \ 9929 1.1 christos X"$ac_dest" : 'X\(//\)$' \| \ 9930 1.1 christos X"$ac_dest" : 'X\(/\)' \| \ 9931 1.1 christos . : '\(.\)' 2>/dev/null || 9932 1.1 christos echo X"$ac_dest" | 9933 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 9934 1.1 christos /^X\(\/\/\)[^/].*/{ s//\1/; q; } 9935 1.1 christos /^X\(\/\/\)$/{ s//\1/; q; } 9936 1.1 christos /^X\(\/\).*/{ s//\1/; q; } 9937 1.1 christos s/.*/./; q'` 9938 1.1 christos ac_builddir=. 9939 1.1 christos 9940 1.1 christos if test "$ac_dir" != .; then 9941 1.1 christos ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 9942 1.1 christos # A "../" for each directory in $ac_dir_suffix. 9943 1.1 christos ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 9944 1.1 christos else 9945 1.1 christos ac_dir_suffix= ac_top_builddir= 9946 1.1 christos fi 9947 1.1 christos 9948 1.1 christos case $srcdir in 9949 1.1 christos .) # No --srcdir option. We are building in place. 9950 1.1 christos ac_srcdir=. 9951 1.1 christos if test -z "$ac_top_builddir"; then 9952 1.1 christos ac_top_srcdir=. 9953 1.1 christos else 9954 1.1 christos ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 9955 1.1 christos fi ;; 9956 1.1 christos [\\/]* | ?:[\\/]* ) # Absolute path. 9957 1.1 christos ac_srcdir=$srcdir$ac_dir_suffix; 9958 1.1 christos ac_top_srcdir=$srcdir ;; 9959 1.1 christos *) # Relative path. 9960 1.1 christos ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 9961 1.1 christos ac_top_srcdir=$ac_top_builddir$srcdir ;; 9962 1.1 christos esac 9963 1.1 christos # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 9964 1.1 christos # absolute. 9965 1.1 christos ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 9966 1.1 christos ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` 9967 1.1 christos ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 9968 1.1 christos ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 9969 1.1 christos 9970 1.1 christos 9971 1.1 christos { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 9972 1.1 christos echo "$as_me: executing $ac_dest commands" >&6;} 9973 1.1 christos case $ac_dest in 9974 1.1 christos default-1 ) 9975 1.1 christos test x"$AMDEP_TRUE" != x"" || 9976 1.1 christos for mf in $CONFIG_FILES; do 9977 1.1 christos case "$mf" in 9978 1.1 christos Makefile) dirpart=.;; 9979 1.1 christos */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;; 9980 1.1 christos *) continue;; 9981 1.1 christos esac 9982 1.1 christos grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue 9983 1.1 christos # Extract the definition of DEP_FILES from the Makefile without 9984 1.1 christos # running `make'. 9985 1.1 christos DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` 9986 1.1 christos test -z "$DEPDIR" && continue 9987 1.1 christos # When using ansi2knr, U may be empty or an underscore; expand it 9988 1.1 christos U=`sed -n -e '/^U = / s///p' < "$mf"` 9989 1.1 christos test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 9990 1.1 christos # We invoke sed twice because it is the simplest approach to 9991 1.1 christos # changing $(DEPDIR) to its actual value in the expansion. 9992 1.1 christos for file in `sed -n -e ' 9993 1.1 christos /^DEP_FILES = .*\\\\$/ { 9994 1.1 christos s/^DEP_FILES = // 9995 1.1 christos :loop 9996 1.1 christos s/\\\\$// 9997 1.1 christos p 9998 1.1 christos n 9999 1.1 christos /\\\\$/ b loop 10000 1.1 christos p 10001 1.1 christos } 10002 1.1 christos /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 10003 1.1 christos sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 10004 1.1 christos # Make sure the directory exists. 10005 1.1 christos test -f "$dirpart/$file" && continue 10006 1.1 christos fdir=`echo "$file" | sed -e 's|/[^/]*$||'` 10007 1.1 christos $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1 10008 1.1 christos # echo "creating $dirpart/$file" 10009 1.1 christos echo '# dummy' > "$dirpart/$file" 10010 1.1 christos done 10011 1.1 christos done 10012 1.1 christos ;; 10013 1.1 christos default-2 ) for ac_file in $CONFIG_FILES; do 10014 1.1 christos # Support "outfile[:infile[:infile...]]" 10015 1.1 christos case "$ac_file" in 10016 1.1 christos *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 10017 1.1 christos esac 10018 1.1 christos # PO directories have a Makefile.in generated from Makefile.in.in. 10019 1.1 christos case "$ac_file" in */Makefile.in) 10020 1.1 christos # Adjust a relative srcdir. 10021 1.1 christos ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 10022 1.1 christos ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 10023 1.1 christos ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 10024 1.1 christos # In autoconf-2.13 it is called $ac_given_srcdir. 10025 1.1 christos # In autoconf-2.50 it is called $srcdir. 10026 1.1 christos test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 10027 1.1 christos case "$ac_given_srcdir" in 10028 1.1 christos .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 10029 1.1 christos /*) top_srcdir="$ac_given_srcdir" ;; 10030 1.1 christos *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 10031 1.1 christos esac 10032 1.1 christos if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 10033 1.1 christos rm -f "$ac_dir/POTFILES" 10034 1.1 christos test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 10035 1.1 christos sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES" 10036 1.1 christos test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 10037 1.1 christos sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" 10038 1.1 christos fi 10039 1.1 christos ;; 10040 1.1 christos esac 10041 1.1 christos done ;; 10042 1.1 christos default ) sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile; echo timestamp > stamp-h ;; 10043 1.1 christos esac 10044 1.1 christos done 10045 1.1 christos _ACEOF 10046 1.1 christos 10047 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF 10048 1.1 christos 10049 1.1 christos { (exit 0); exit 0; } 10050 1.1 christos _ACEOF 10051 1.1 christos chmod +x $CONFIG_STATUS 10052 1.1 christos ac_clean_files=$ac_clean_files_save 10053 1.1 christos 10054 1.1 christos 10055 1.1 christos # configure is writing to config.log, and then calls config.status. 10056 1.1 christos # config.status does its own redirection, appending to config.log. 10057 1.1 christos # Unfortunately, on DOS this fails, as config.log is still kept open 10058 1.1 christos # by configure, so config.status won't be able to write to it; its 10059 1.1 christos # output is simply discarded. So we exec the FD to /dev/null, 10060 1.1 christos # effectively closing config.log, so it can be properly (re)opened and 10061 1.1 christos # appended to by config.status. When coming back to configure, we 10062 1.1 christos # need to make the FD available again. 10063 1.1 christos if test "$no_create" != yes; then 10064 1.1 christos ac_cs_success=: 10065 1.1 christos exec 5>/dev/null 10066 1.1 christos $SHELL $CONFIG_STATUS || ac_cs_success=false 10067 1.1 christos exec 5>>config.log 10068 1.1 christos # Use ||, not &&, to avoid exiting from the if with $? = 1, which 10069 1.1 christos # would make configure fail if this is the last instruction. 10070 1.1 christos $ac_cs_success || { (exit 1); exit 1; } 10071 1.1 christos fi 10072 1.1 christos 10073