1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.53. 4# 5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 6# Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9 10# Find the correct PATH separator. Usually this is `:', but 11# DJGPP uses `;' like DOS. 12if test "X${PATH_SEPARATOR+set}" != Xset; then 13 UNAME=${UNAME-`uname 2>/dev/null`} 14 case X$UNAME in 15 *-DOS) lt_cv_sys_path_separator=';' ;; 16 *) lt_cv_sys_path_separator=':' ;; 17 esac 18 PATH_SEPARATOR=$lt_cv_sys_path_separator 19fi 20 21 22# Check that we are running under the correct shell. 23SHELL=${CONFIG_SHELL-/bin/sh} 24 25case X$ECHO in 26X*--fallback-echo) 27 # Remove one level of quotation (which was required for Make). 28 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 29 ;; 30esac 31 32echo=${ECHO-echo} 33if test "X$1" = X--no-reexec; then 34 # Discard the --no-reexec flag, and continue. 35 shift 36elif test "X$1" = X--fallback-echo; then 37 # Avoid inline document here, it may be left over 38 : 39elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then 40 # Yippee, $echo works! 41 : 42else 43 # Restart under the correct shell. 44 exec $SHELL "$0" --no-reexec ${1+"$@"} 45fi 46 47if test "X$1" = X--fallback-echo; then 48 # used as fallback echo 49 shift 50 cat <<EOF 51 52EOF 53 exit 0 54fi 55 56# The HP-UX ksh and POSIX shell print the target directory to stdout 57# if CDPATH is set. 58if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 59 60if test -z "$ECHO"; then 61if test "X${echo_test_string+set}" != Xset; then 62# find a string as large as possible, as long as the shell can cope with it 63 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 64 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 65 if (echo_test_string="`eval $cmd`") 2>/dev/null && 66 echo_test_string="`eval $cmd`" && 67 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 68 then 69 break 70 fi 71 done 72fi 73 74if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 75 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 76 test "X$echo_testing_string" = "X$echo_test_string"; then 77 : 78else 79 # The Solaris, AIX, and Digital Unix default echo programs unquote 80 # backslashes. This makes it impossible to quote backslashes using 81 # echo "$something" | sed 's/\\/\\\\/g' 82 # 83 # So, first we look for a working echo in the user's PATH. 84 85 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR 86 for dir in $PATH /usr/ucb; do 87 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 88 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 89 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 90 test "X$echo_testing_string" = "X$echo_test_string"; then 91 echo="$dir/echo" 92 break 93 fi 94 done 95 IFS="$save_ifs" 96 97 if test "X$echo" = Xecho; then 98 # We didn't find a better echo, so look for alternatives. 99 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 100 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 101 test "X$echo_testing_string" = "X$echo_test_string"; then 102 # This shell has a builtin print -r that does the trick. 103 echo='print -r' 104 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 105 test "X$CONFIG_SHELL" != X/bin/ksh; then 106 # If we have ksh, try running configure again with it. 107 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 108 export ORIGINAL_CONFIG_SHELL 109 CONFIG_SHELL=/bin/ksh 110 export CONFIG_SHELL 111 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 112 else 113 # Try using printf. 114 echo='printf %s\n' 115 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 116 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 117 test "X$echo_testing_string" = "X$echo_test_string"; then 118 # Cool, printf works 119 : 120 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 121 test "X$echo_testing_string" = 'X\t' && 122 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 123 test "X$echo_testing_string" = "X$echo_test_string"; then 124 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 125 export CONFIG_SHELL 126 SHELL="$CONFIG_SHELL" 127 export SHELL 128 echo="$CONFIG_SHELL $0 --fallback-echo" 129 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 130 test "X$echo_testing_string" = 'X\t' && 131 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 132 test "X$echo_testing_string" = "X$echo_test_string"; then 133 echo="$CONFIG_SHELL $0 --fallback-echo" 134 else 135 # maybe with a smaller string... 136 prev=: 137 138 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 139 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 140 then 141 break 142 fi 143 prev="$cmd" 144 done 145 146 if test "$prev" != 'sed 50q "$0"'; then 147 echo_test_string=`eval $prev` 148 export echo_test_string 149 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 150 else 151 # Oops. We lost completely, so just stick with echo. 152 echo=echo 153 fi 154 fi 155 fi 156 fi 157fi 158fi 159 160# Copy echo and quote the copy suitably for passing to libtool from 161# the Makefile, instead of quoting the original, which is used later. 162ECHO=$echo 163if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 164 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 165fi 166 167 168 169if expr a : '\(a\)' >/dev/null 2>&1; then 170 as_expr=expr 171else 172 as_expr=false 173fi 174 175 176## --------------------- ## 177## M4sh Initialization. ## 178## --------------------- ## 179 180# Be Bourne compatible 181if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 182 emulate sh 183 NULLCMD=: 184elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 185 set -o posix 186fi 187 188# NLS nuisances. 189# Support unset when possible. 190if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 191 as_unset=unset 192else 193 as_unset=false 194fi 195 196(set +x; test -n "`(LANG=C; export LANG) 2>&1`") && 197 { $as_unset LANG || test "${LANG+set}" != set; } || 198 { LANG=C; export LANG; } 199(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && 200 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || 201 { LC_ALL=C; export LC_ALL; } 202(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && 203 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || 204 { LC_TIME=C; export LC_TIME; } 205(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && 206 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || 207 { LC_CTYPE=C; export LC_CTYPE; } 208(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && 209 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || 210 { LANGUAGE=C; export LANGUAGE; } 211(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && 212 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || 213 { LC_COLLATE=C; export LC_COLLATE; } 214(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && 215 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || 216 { LC_NUMERIC=C; export LC_NUMERIC; } 217(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && 218 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || 219 { LC_MESSAGES=C; export LC_MESSAGES; } 220 221 222# Name of the executable. 223as_me=`(basename "$0") 2>/dev/null || 224$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 225 X"$0" : 'X\(//\)$' \| \ 226 X"$0" : 'X\(/\)$' \| \ 227 . : '\(.\)' 2>/dev/null || 228echo X/"$0" | 229 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 230 /^X\/\(\/\/\)$/{ s//\1/; q; } 231 /^X\/\(\/\).*/{ s//\1/; q; } 232 s/.*/./; q'` 233 234# PATH needs CR, and LINENO needs CR and PATH. 235# Avoid depending upon Character Ranges. 236as_cr_letters='abcdefghijklmnopqrstuvwxyz' 237as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 238as_cr_Letters=$as_cr_letters$as_cr_LETTERS 239as_cr_digits='0123456789' 240as_cr_alnum=$as_cr_Letters$as_cr_digits 241 242# The user is always right. 243if test "${PATH_SEPARATOR+set}" != set; then 244 echo "#! /bin/sh" >conftest.sh 245 echo "exit 0" >>conftest.sh 246 chmod +x conftest.sh 247 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then 248 PATH_SEPARATOR=';' 249 else 250 PATH_SEPARATOR=: 251 fi 252 rm -f conftest.sh 253fi 254 255 256 as_lineno_1=$LINENO 257 as_lineno_2=$LINENO 258 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 259 test "x$as_lineno_1" != "x$as_lineno_2" && 260 test "x$as_lineno_3" = "x$as_lineno_2" || { 261 # Find who we are. Look in the path if we contain no path at all 262 # relative or not. 263 case $0 in 264 *[\\/]* ) as_myself=$0 ;; 265 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 266for as_dir in $PATH 267do 268 IFS=$as_save_IFS 269 test -z "$as_dir" && as_dir=. 270 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 271done 272 273 ;; 274 esac 275 # We did not find ourselves, most probably we were run as `sh COMMAND' 276 # in which case we are not to be found in the path. 277 if test "x$as_myself" = x; then 278 as_myself=$0 279 fi 280 if test ! -f "$as_myself"; then 281 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 282 { (exit 1); exit 1; }; } 283 fi 284 case $CONFIG_SHELL in 285 '') 286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 287for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 288do 289 IFS=$as_save_IFS 290 test -z "$as_dir" && as_dir=. 291 for as_base in sh bash ksh sh5; do 292 case $as_dir in 293 /*) 294 if ("$as_dir/$as_base" -c ' 295 as_lineno_1=$LINENO 296 as_lineno_2=$LINENO 297 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 298 test "x$as_lineno_1" != "x$as_lineno_2" && 299 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 300 CONFIG_SHELL=$as_dir/$as_base 301 export CONFIG_SHELL 302 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 303 fi;; 304 esac 305 done 306done 307;; 308 esac 309 310 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 311 # uniformly replaced by the line number. The first 'sed' inserts a 312 # line-number line before each line; the second 'sed' does the real 313 # work. The second script uses 'N' to pair each line-number line 314 # with the numbered line, and appends trailing '-' during 315 # substitution so that $LINENO is not a special case at line end. 316 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 317 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 318 sed '=' <$as_myself | 319 sed ' 320 N 321 s,$,-, 322 : loop 323 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 324 t loop 325 s,-$,, 326 s,^['$as_cr_digits']*\n,, 327 ' >$as_me.lineno && 328 chmod +x $as_me.lineno || 329 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 330 { (exit 1); exit 1; }; } 331 332 # Don't try to exec as it changes $[0], causing all sort of problems 333 # (the dirname of $[0] is not the place where we might find the 334 # original and so on. Autoconf is especially sensible to this). 335 . ./$as_me.lineno 336 # Exit status is that of the last command. 337 exit 338} 339 340 341case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 342 *c*,-n*) ECHO_N= ECHO_C=' 343' ECHO_T=' ' ;; 344 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 345 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 346esac 347 348if expr a : '\(a\)' >/dev/null 2>&1; then 349 as_expr=expr 350else 351 as_expr=false 352fi 353 354rm -f conf$$ conf$$.exe conf$$.file 355echo >conf$$.file 356if ln -s conf$$.file conf$$ 2>/dev/null; then 357 # We could just check for DJGPP; but this test a) works b) is more generic 358 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 359 if test -f conf$$.exe; then 360 # Don't use ln at all; we don't have any links 361 as_ln_s='cp -p' 362 else 363 as_ln_s='ln -s' 364 fi 365elif ln conf$$.file conf$$ 2>/dev/null; then 366 as_ln_s=ln 367else 368 as_ln_s='cp -p' 369fi 370rm -f conf$$ conf$$.exe conf$$.file 371 372as_executable_p="test -f" 373 374# Sed expression to map a string onto a valid CPP name. 375as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 376 377# Sed expression to map a string onto a valid variable name. 378as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 379 380 381# IFS 382# We need space, tab and new line, in precisely that order. 383as_nl=' 384' 385IFS=" $as_nl" 386 387# CDPATH. 388$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } 389 390 391# Name of the host. 392# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 393# so uname gets run too. 394ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 395 396exec 6>&1 397 398# 399# Initializations. 400# 401ac_default_prefix=/usr/local 402cross_compiling=no 403subdirs= 404MFLAGS= 405MAKEFLAGS= 406SHELL=${CONFIG_SHELL-/bin/sh} 407 408# Maximum number of lines to put in a shell here document. 409# This variable seems obsolete. It should probably be removed, and 410# only ac_max_sed_lines should be used. 411: ${ac_max_here_lines=38} 412 413# Identity of this package. 414PACKAGE_NAME= 415PACKAGE_TARNAME= 416PACKAGE_VERSION= 417PACKAGE_STRING= 418PACKAGE_BUGREPORT= 419 420ac_unique_file="src/file.c" 421# Factoring default headers for most tests. 422ac_includes_default="\ 423#include <stdio.h> 424#if HAVE_SYS_TYPES_H 425# include <sys/types.h> 426#endif 427#if HAVE_SYS_STAT_H 428# include <sys/stat.h> 429#endif 430#if STDC_HEADERS 431# include <stdlib.h> 432# include <stddef.h> 433#else 434# if HAVE_STDLIB_H 435# include <stdlib.h> 436# endif 437#endif 438#if HAVE_STRING_H 439# if !STDC_HEADERS && HAVE_MEMORY_H 440# include <memory.h> 441# endif 442# include <string.h> 443#endif 444#if HAVE_STRINGS_H 445# include <strings.h> 446#endif 447#if HAVE_INTTYPES_H 448# include <inttypes.h> 449#else 450# if HAVE_STDINT_H 451# include <stdint.h> 452# endif 453#endif 454#if HAVE_UNISTD_H 455# include <unistd.h> 456#endif" 457 458 459# Initialize some variables set by options. 460ac_init_help= 461ac_init_version=false 462# The variables have the same names as the options, with 463# dashes changed to underlines. 464cache_file=/dev/null 465exec_prefix=NONE 466no_create= 467no_recursion= 468prefix=NONE 469program_prefix=NONE 470program_suffix=NONE 471program_transform_name=s,x,x, 472silent= 473site= 474srcdir= 475verbose= 476x_includes=NONE 477x_libraries=NONE 478 479# Installation directory options. 480# These are left unexpanded so users can "make install exec_prefix=/foo" 481# and all the variables that are supposed to be based on exec_prefix 482# by default will actually change. 483# Use braces instead of parens because sh, perl, etc. also accept them. 484bindir='${exec_prefix}/bin' 485sbindir='${exec_prefix}/sbin' 486libexecdir='${exec_prefix}/libexec' 487datadir='${prefix}/share' 488sysconfdir='${prefix}/etc' 489sharedstatedir='${prefix}/com' 490localstatedir='${prefix}/var' 491libdir='${exec_prefix}/lib' 492includedir='${prefix}/include' 493oldincludedir='/usr/include' 494infodir='${prefix}/info' 495mandir='${prefix}/man' 496 497ac_prev= 498for ac_option 499do 500 # If the previous option needs an argument, assign it. 501 if test -n "$ac_prev"; then 502 eval "$ac_prev=\$ac_option" 503 ac_prev= 504 continue 505 fi 506 507 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 508 509 # Accept the important Cygnus configure options, so we can diagnose typos. 510 511 case $ac_option in 512 513 -bindir | --bindir | --bindi | --bind | --bin | --bi) 514 ac_prev=bindir ;; 515 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 516 bindir=$ac_optarg ;; 517 518 -build | --build | --buil | --bui | --bu) 519 ac_prev=build_alias ;; 520 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 521 build_alias=$ac_optarg ;; 522 523 -cache-file | --cache-file | --cache-fil | --cache-fi \ 524 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 525 ac_prev=cache_file ;; 526 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 527 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 528 cache_file=$ac_optarg ;; 529 530 --config-cache | -C) 531 cache_file=config.cache ;; 532 533 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 534 ac_prev=datadir ;; 535 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 536 | --da=*) 537 datadir=$ac_optarg ;; 538 539 -disable-* | --disable-*) 540 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 541 # Reject names that are not valid shell variable names. 542 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 543 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 544 { (exit 1); exit 1; }; } 545 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 546 eval "enable_$ac_feature=no" ;; 547 548 -enable-* | --enable-*) 549 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 550 # Reject names that are not valid shell variable names. 551 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 552 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 553 { (exit 1); exit 1; }; } 554 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 555 case $ac_option in 556 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 557 *) ac_optarg=yes ;; 558 esac 559 eval "enable_$ac_feature='$ac_optarg'" ;; 560 561 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 562 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 563 | --exec | --exe | --ex) 564 ac_prev=exec_prefix ;; 565 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 566 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 567 | --exec=* | --exe=* | --ex=*) 568 exec_prefix=$ac_optarg ;; 569 570 -gas | --gas | --ga | --g) 571 # Obsolete; use --with-gas. 572 with_gas=yes ;; 573 574 -help | --help | --hel | --he | -h) 575 ac_init_help=long ;; 576 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 577 ac_init_help=recursive ;; 578 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 579 ac_init_help=short ;; 580 581 -host | --host | --hos | --ho) 582 ac_prev=host_alias ;; 583 -host=* | --host=* | --hos=* | --ho=*) 584 host_alias=$ac_optarg ;; 585 586 -includedir | --includedir | --includedi | --included | --include \ 587 | --includ | --inclu | --incl | --inc) 588 ac_prev=includedir ;; 589 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 590 | --includ=* | --inclu=* | --incl=* | --inc=*) 591 includedir=$ac_optarg ;; 592 593 -infodir | --infodir | --infodi | --infod | --info | --inf) 594 ac_prev=infodir ;; 595 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 596 infodir=$ac_optarg ;; 597 598 -libdir | --libdir | --libdi | --libd) 599 ac_prev=libdir ;; 600 -libdir=* | --libdir=* | --libdi=* | --libd=*) 601 libdir=$ac_optarg ;; 602 603 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 604 | --libexe | --libex | --libe) 605 ac_prev=libexecdir ;; 606 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 607 | --libexe=* | --libex=* | --libe=*) 608 libexecdir=$ac_optarg ;; 609 610 -localstatedir | --localstatedir | --localstatedi | --localstated \ 611 | --localstate | --localstat | --localsta | --localst \ 612 | --locals | --local | --loca | --loc | --lo) 613 ac_prev=localstatedir ;; 614 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 615 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 616 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 617 localstatedir=$ac_optarg ;; 618 619 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 620 ac_prev=mandir ;; 621 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 622 mandir=$ac_optarg ;; 623 624 -nfp | --nfp | --nf) 625 # Obsolete; use --without-fp. 626 with_fp=no ;; 627 628 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 629 | --no-cr | --no-c | -n) 630 no_create=yes ;; 631 632 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 633 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 634 no_recursion=yes ;; 635 636 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 637 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 638 | --oldin | --oldi | --old | --ol | --o) 639 ac_prev=oldincludedir ;; 640 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 641 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 642 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 643 oldincludedir=$ac_optarg ;; 644 645 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 646 ac_prev=prefix ;; 647 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 648 prefix=$ac_optarg ;; 649 650 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 651 | --program-pre | --program-pr | --program-p) 652 ac_prev=program_prefix ;; 653 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 654 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 655 program_prefix=$ac_optarg ;; 656 657 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 658 | --program-suf | --program-su | --program-s) 659 ac_prev=program_suffix ;; 660 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 661 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 662 program_suffix=$ac_optarg ;; 663 664 -program-transform-name | --program-transform-name \ 665 | --program-transform-nam | --program-transform-na \ 666 | --program-transform-n | --program-transform- \ 667 | --program-transform | --program-transfor \ 668 | --program-transfo | --program-transf \ 669 | --program-trans | --program-tran \ 670 | --progr-tra | --program-tr | --program-t) 671 ac_prev=program_transform_name ;; 672 -program-transform-name=* | --program-transform-name=* \ 673 | --program-transform-nam=* | --program-transform-na=* \ 674 | --program-transform-n=* | --program-transform-=* \ 675 | --program-transform=* | --program-transfor=* \ 676 | --program-transfo=* | --program-transf=* \ 677 | --program-trans=* | --program-tran=* \ 678 | --progr-tra=* | --program-tr=* | --program-t=*) 679 program_transform_name=$ac_optarg ;; 680 681 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 682 | -silent | --silent | --silen | --sile | --sil) 683 silent=yes ;; 684 685 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 686 ac_prev=sbindir ;; 687 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 688 | --sbi=* | --sb=*) 689 sbindir=$ac_optarg ;; 690 691 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 692 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 693 | --sharedst | --shareds | --shared | --share | --shar \ 694 | --sha | --sh) 695 ac_prev=sharedstatedir ;; 696 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 697 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 698 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 699 | --sha=* | --sh=*) 700 sharedstatedir=$ac_optarg ;; 701 702 -site | --site | --sit) 703 ac_prev=site ;; 704 -site=* | --site=* | --sit=*) 705 site=$ac_optarg ;; 706 707 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 708 ac_prev=srcdir ;; 709 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 710 srcdir=$ac_optarg ;; 711 712 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 713 | --syscon | --sysco | --sysc | --sys | --sy) 714 ac_prev=sysconfdir ;; 715 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 716 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 717 sysconfdir=$ac_optarg ;; 718 719 -target | --target | --targe | --targ | --tar | --ta | --t) 720 ac_prev=target_alias ;; 721 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 722 target_alias=$ac_optarg ;; 723 724 -v | -verbose | --verbose | --verbos | --verbo | --verb) 725 verbose=yes ;; 726 727 -version | --version | --versio | --versi | --vers | -V) 728 ac_init_version=: ;; 729 730 -with-* | --with-*) 731 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 732 # Reject names that are not valid shell variable names. 733 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 734 { echo "$as_me: error: invalid package name: $ac_package" >&2 735 { (exit 1); exit 1; }; } 736 ac_package=`echo $ac_package| sed 's/-/_/g'` 737 case $ac_option in 738 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 739 *) ac_optarg=yes ;; 740 esac 741 eval "with_$ac_package='$ac_optarg'" ;; 742 743 -without-* | --without-*) 744 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 745 # Reject names that are not valid shell variable names. 746 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 747 { echo "$as_me: error: invalid package name: $ac_package" >&2 748 { (exit 1); exit 1; }; } 749 ac_package=`echo $ac_package | sed 's/-/_/g'` 750 eval "with_$ac_package=no" ;; 751 752 --x) 753 # Obsolete; use --with-x. 754 with_x=yes ;; 755 756 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 757 | --x-incl | --x-inc | --x-in | --x-i) 758 ac_prev=x_includes ;; 759 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 760 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 761 x_includes=$ac_optarg ;; 762 763 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 764 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 765 ac_prev=x_libraries ;; 766 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 767 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 768 x_libraries=$ac_optarg ;; 769 770 -*) { echo "$as_me: error: unrecognized option: $ac_option 771Try \`$0 --help' for more information." >&2 772 { (exit 1); exit 1; }; } 773 ;; 774 775 *=*) 776 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 777 # Reject names that are not valid shell variable names. 778 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 779 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 780 { (exit 1); exit 1; }; } 781 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 782 eval "$ac_envvar='$ac_optarg'" 783 export $ac_envvar ;; 784 785 *) 786 # FIXME: should be removed in autoconf 3.0. 787 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 788 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 789 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 790 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 791 ;; 792 793 esac 794done 795 796if test -n "$ac_prev"; then 797 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 798 { echo "$as_me: error: missing argument to $ac_option" >&2 799 { (exit 1); exit 1; }; } 800fi 801 802# Be sure to have absolute paths. 803for ac_var in exec_prefix prefix 804do 805 eval ac_val=$`echo $ac_var` 806 case $ac_val in 807 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 808 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 809 { (exit 1); exit 1; }; };; 810 esac 811done 812 813# Be sure to have absolute paths. 814for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 815 localstatedir libdir includedir oldincludedir infodir mandir 816do 817 eval ac_val=$`echo $ac_var` 818 case $ac_val in 819 [\\/$]* | ?:[\\/]* ) ;; 820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 821 { (exit 1); exit 1; }; };; 822 esac 823done 824 825# There might be people who depend on the old broken behavior: `$host' 826# used to hold the argument of --host etc. 827# FIXME: To remove some day. 828build=$build_alias 829host=$host_alias 830target=$target_alias 831 832# FIXME: To remove some day. 833if test "x$host_alias" != x; then 834 if test "x$build_alias" = x; then 835 cross_compiling=maybe 836 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 837 If a cross compiler is detected then cross compile mode will be used." >&2 838 elif test "x$build_alias" != "x$host_alias"; then 839 cross_compiling=yes 840 fi 841fi 842 843ac_tool_prefix= 844test -n "$host_alias" && ac_tool_prefix=$host_alias- 845 846test "$silent" = yes && exec 6>/dev/null 847 848 849# Find the source files, if location was not specified. 850if test -z "$srcdir"; then 851 ac_srcdir_defaulted=yes 852 # Try the directory containing this script, then its parent. 853 ac_confdir=`(dirname "$0") 2>/dev/null || 854$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 855 X"$0" : 'X\(//\)[^/]' \| \ 856 X"$0" : 'X\(//\)$' \| \ 857 X"$0" : 'X\(/\)' \| \ 858 . : '\(.\)' 2>/dev/null || 859echo X"$0" | 860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 861 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 862 /^X\(\/\/\)$/{ s//\1/; q; } 863 /^X\(\/\).*/{ s//\1/; q; } 864 s/.*/./; q'` 865 srcdir=$ac_confdir 866 if test ! -r $srcdir/$ac_unique_file; then 867 srcdir=.. 868 fi 869else 870 ac_srcdir_defaulted=no 871fi 872if test ! -r $srcdir/$ac_unique_file; then 873 if test "$ac_srcdir_defaulted" = yes; then 874 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 875 { (exit 1); exit 1; }; } 876 else 877 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 878 { (exit 1); exit 1; }; } 879 fi 880fi 881srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 882ac_env_build_alias_set=${build_alias+set} 883ac_env_build_alias_value=$build_alias 884ac_cv_env_build_alias_set=${build_alias+set} 885ac_cv_env_build_alias_value=$build_alias 886ac_env_host_alias_set=${host_alias+set} 887ac_env_host_alias_value=$host_alias 888ac_cv_env_host_alias_set=${host_alias+set} 889ac_cv_env_host_alias_value=$host_alias 890ac_env_target_alias_set=${target_alias+set} 891ac_env_target_alias_value=$target_alias 892ac_cv_env_target_alias_set=${target_alias+set} 893ac_cv_env_target_alias_value=$target_alias 894ac_env_CC_set=${CC+set} 895ac_env_CC_value=$CC 896ac_cv_env_CC_set=${CC+set} 897ac_cv_env_CC_value=$CC 898ac_env_CFLAGS_set=${CFLAGS+set} 899ac_env_CFLAGS_value=$CFLAGS 900ac_cv_env_CFLAGS_set=${CFLAGS+set} 901ac_cv_env_CFLAGS_value=$CFLAGS 902ac_env_LDFLAGS_set=${LDFLAGS+set} 903ac_env_LDFLAGS_value=$LDFLAGS 904ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 905ac_cv_env_LDFLAGS_value=$LDFLAGS 906ac_env_CPPFLAGS_set=${CPPFLAGS+set} 907ac_env_CPPFLAGS_value=$CPPFLAGS 908ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 909ac_cv_env_CPPFLAGS_value=$CPPFLAGS 910ac_env_CPP_set=${CPP+set} 911ac_env_CPP_value=$CPP 912ac_cv_env_CPP_set=${CPP+set} 913ac_cv_env_CPP_value=$CPP 914 915# 916# Report the --help message. 917# 918if test "$ac_init_help" = "long"; then 919 # Omit some internal or obsolete options to make the list less imposing. 920 # This message is too long to be a string in the A/UX 3.1 sh. 921 cat <<_ACEOF 922\`configure' configures this package to adapt to many kinds of systems. 923 924Usage: $0 [OPTION]... [VAR=VALUE]... 925 926To assign environment variables (e.g., CC, CFLAGS...), specify them as 927VAR=VALUE. See below for descriptions of some of the useful variables. 928 929Defaults for the options are specified in brackets. 930 931Configuration: 932 -h, --help display this help and exit 933 --help=short display options specific to this package 934 --help=recursive display the short help of all the included packages 935 -V, --version display version information and exit 936 -q, --quiet, --silent do not print \`checking...' messages 937 --cache-file=FILE cache test results in FILE [disabled] 938 -C, --config-cache alias for \`--cache-file=config.cache' 939 -n, --no-create do not create output files 940 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 941 942_ACEOF 943 944 cat <<_ACEOF 945Installation directories: 946 --prefix=PREFIX install architecture-independent files in PREFIX 947 [$ac_default_prefix] 948 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 949 [PREFIX] 950 951By default, \`make install' will install all the files in 952\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 953an installation prefix other than \`$ac_default_prefix' using \`--prefix', 954for instance \`--prefix=\$HOME'. 955 956For better control, use the options below. 957 958Fine tuning of the installation directories: 959 --bindir=DIR user executables [EPREFIX/bin] 960 --sbindir=DIR system admin executables [EPREFIX/sbin] 961 --libexecdir=DIR program executables [EPREFIX/libexec] 962 --datadir=DIR read-only architecture-independent data [PREFIX/share] 963 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 964 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 965 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 966 --libdir=DIR object code libraries [EPREFIX/lib] 967 --includedir=DIR C header files [PREFIX/include] 968 --oldincludedir=DIR C header files for non-gcc [/usr/include] 969 --infodir=DIR info documentation [PREFIX/info] 970 --mandir=DIR man documentation [PREFIX/man] 971_ACEOF 972 973 cat <<\_ACEOF 974 975Program names: 976 --program-prefix=PREFIX prepend PREFIX to installed program names 977 --program-suffix=SUFFIX append SUFFIX to installed program names 978 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 979 980System types: 981 --build=BUILD configure for building on BUILD [guessed] 982 --host=HOST cross-compile to build programs to run on HOST [BUILD] 983_ACEOF 984fi 985 986if test -n "$ac_init_help"; then 987 988 cat <<\_ACEOF 989 990Optional Features: 991 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 992 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 993 --disable-elf disable builtin ELF support 994 --disable-elf-core disable ELF core file support 995 --enable-fsect-man5 enable file formats in man section 5 996 --disable-dependency-tracking Speeds up one-time builds 997 --enable-dependency-tracking Do not reject slow dependency extractors 998 --enable-shared=PKGS build shared libraries default=yes 999 --enable-static=PKGS build static libraries default=yes 1000 --enable-fast-install=PKGS optimize for fast installation default=yes 1001 --disable-libtool-lock avoid locking (might break parallel builds) 1002 --disable-largefile omit support for large files 1003 1004Optional Packages: 1005 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1006 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1007 --with-gnu-ld assume the C compiler uses GNU ld default=no 1008 --with-pic try to use only PIC/non-PIC objects default=use both 1009 1010Some influential environment variables: 1011 CC C compiler command 1012 CFLAGS C compiler flags 1013 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1014 nonstandard directory <lib dir> 1015 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1016 headers in a nonstandard directory <include dir> 1017 CPP C preprocessor 1018 1019Use these variables to override the choices made by `configure' or to help 1020it to find libraries and programs with nonstandard names/locations. 1021 1022_ACEOF 1023fi 1024 1025if test "$ac_init_help" = "recursive"; then 1026 # If there are subdirs, report their specific --help. 1027 ac_popdir=`pwd` 1028 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1029 test -d $ac_dir || continue 1030 ac_builddir=. 1031 1032if test "$ac_dir" != .; then 1033 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1034 # A "../" for each directory in $ac_dir_suffix. 1035 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1036else 1037 ac_dir_suffix= ac_top_builddir= 1038fi 1039 1040case $srcdir in 1041 .) # No --srcdir option. We are building in place. 1042 ac_srcdir=. 1043 if test -z "$ac_top_builddir"; then 1044 ac_top_srcdir=. 1045 else 1046 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1047 fi ;; 1048 [\\/]* | ?:[\\/]* ) # Absolute path. 1049 ac_srcdir=$srcdir$ac_dir_suffix; 1050 ac_top_srcdir=$srcdir ;; 1051 *) # Relative path. 1052 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1053 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1054esac 1055# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 1056# absolute. 1057ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 1058ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` 1059ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 1060ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 1061 1062 cd $ac_dir 1063 # Check for guested configure; otherwise get Cygnus style configure. 1064 if test -f $ac_srcdir/configure.gnu; then 1065 echo 1066 $SHELL $ac_srcdir/configure.gnu --help=recursive 1067 elif test -f $ac_srcdir/configure; then 1068 echo 1069 $SHELL $ac_srcdir/configure --help=recursive 1070 elif test -f $ac_srcdir/configure.ac || 1071 test -f $ac_srcdir/configure.in; then 1072 echo 1073 $ac_configure --help 1074 else 1075 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1076 fi 1077 cd $ac_popdir 1078 done 1079fi 1080 1081test -n "$ac_init_help" && exit 0 1082if $ac_init_version; then 1083 cat <<\_ACEOF 1084 1085Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 1086Free Software Foundation, Inc. 1087This configure script is free software; the Free Software Foundation 1088gives unlimited permission to copy, distribute and modify it. 1089_ACEOF 1090 exit 0 1091fi 1092exec 5>config.log 1093cat >&5 <<_ACEOF 1094This file contains any messages produced by compilers while 1095running configure, to aid debugging if configure makes a mistake. 1096 1097It was created by $as_me, which was 1098generated by GNU Autoconf 2.53. Invocation command line was 1099 1100 $ $0 $@ 1101 1102_ACEOF 1103{ 1104cat <<_ASUNAME 1105## --------- ## 1106## Platform. ## 1107## --------- ## 1108 1109hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1110uname -m = `(uname -m) 2>/dev/null || echo unknown` 1111uname -r = `(uname -r) 2>/dev/null || echo unknown` 1112uname -s = `(uname -s) 2>/dev/null || echo unknown` 1113uname -v = `(uname -v) 2>/dev/null || echo unknown` 1114 1115/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1116/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1117 1118/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1119/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1120/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1121hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1122/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1123/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1124/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1125 1126_ASUNAME 1127 1128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1129for as_dir in $PATH 1130do 1131 IFS=$as_save_IFS 1132 test -z "$as_dir" && as_dir=. 1133 echo "PATH: $as_dir" 1134done 1135 1136} >&5 1137 1138cat >&5 <<_ACEOF 1139 1140 1141## ----------- ## 1142## Core tests. ## 1143## ----------- ## 1144 1145_ACEOF 1146 1147 1148# Keep a trace of the command line. 1149# Strip out --no-create and --no-recursion so they do not pile up. 1150# Also quote any args containing shell meta-characters. 1151ac_configure_args= 1152ac_sep= 1153for ac_arg 1154do 1155 case $ac_arg in 1156 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1157 | --no-cr | --no-c | -n ) continue ;; 1158 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1159 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1160 continue ;; 1161 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1162 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1163 esac 1164 case " $ac_configure_args " in 1165 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1166 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1167 ac_sep=" " ;; 1168 esac 1169 # Get rid of the leading space. 1170done 1171 1172# When interrupted or exit'd, cleanup temporary files, and complete 1173# config.log. We remove comments because anyway the quotes in there 1174# would cause problems or look ugly. 1175# WARNING: Be sure not to use single quotes in there, as some shells, 1176# such as our DU 5.0 friend, will then `close' the trap. 1177trap 'exit_status=$? 1178 # Save into config.log some information that might help in debugging. 1179 { 1180 echo 1181 cat <<\_ASBOX 1182## ---------------- ## 1183## Cache variables. ## 1184## ---------------- ## 1185_ASBOX 1186 echo 1187 # The following way of writing the cache mishandles newlines in values, 1188{ 1189 (set) 2>&1 | 1190 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1191 *ac_space=\ *) 1192 sed -n \ 1193 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1194 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1195 ;; 1196 *) 1197 sed -n \ 1198 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1199 ;; 1200 esac; 1201} 1202 echo 1203 if test -s confdefs.h; then 1204 cat <<\_ASBOX 1205## ----------- ## 1206## confdefs.h. ## 1207## ----------- ## 1208_ASBOX 1209 echo 1210 sed "/^$/d" confdefs.h 1211 echo 1212 fi 1213 test "$ac_signal" != 0 && 1214 echo "$as_me: caught signal $ac_signal" 1215 echo "$as_me: exit $exit_status" 1216 } >&5 1217 rm -f core core.* *.core && 1218 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1219 exit $exit_status 1220 ' 0 1221for ac_signal in 1 2 13 15; do 1222 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1223done 1224ac_signal=0 1225 1226# confdefs.h avoids OS command line length limits that DEFS can exceed. 1227rm -rf conftest* confdefs.h 1228# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1229echo >confdefs.h 1230 1231# Predefined preprocessor variables. 1232 1233cat >>confdefs.h <<_ACEOF 1234#define PACKAGE_NAME "$PACKAGE_NAME" 1235_ACEOF 1236 1237 1238cat >>confdefs.h <<_ACEOF 1239#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1240_ACEOF 1241 1242 1243cat >>confdefs.h <<_ACEOF 1244#define PACKAGE_VERSION "$PACKAGE_VERSION" 1245_ACEOF 1246 1247 1248cat >>confdefs.h <<_ACEOF 1249#define PACKAGE_STRING "$PACKAGE_STRING" 1250_ACEOF 1251 1252 1253cat >>confdefs.h <<_ACEOF 1254#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1255_ACEOF 1256 1257 1258# Let the site file select an alternate cache file if it wants to. 1259# Prefer explicitly selected file to automatically selected ones. 1260if test -z "$CONFIG_SITE"; then 1261 if test "x$prefix" != xNONE; then 1262 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1263 else 1264 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1265 fi 1266fi 1267for ac_site_file in $CONFIG_SITE; do 1268 if test -r "$ac_site_file"; then 1269 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1270echo "$as_me: loading site script $ac_site_file" >&6;} 1271 sed 's/^/| /' "$ac_site_file" >&5 1272 . "$ac_site_file" 1273 fi 1274done 1275 1276if test -r "$cache_file"; then 1277 # Some versions of bash will fail to source /dev/null (special 1278 # files actually), so we avoid doing that. 1279 if test -f "$cache_file"; then 1280 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1281echo "$as_me: loading cache $cache_file" >&6;} 1282 case $cache_file in 1283 [\\/]* | ?:[\\/]* ) . $cache_file;; 1284 *) . ./$cache_file;; 1285 esac 1286 fi 1287else 1288 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1289echo "$as_me: creating cache $cache_file" >&6;} 1290 >$cache_file 1291fi 1292 1293# Check that the precious variables saved in the cache have kept the same 1294# value. 1295ac_cache_corrupted=false 1296for ac_var in `(set) 2>&1 | 1297 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1298 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1299 eval ac_new_set=\$ac_env_${ac_var}_set 1300 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1301 eval ac_new_val="\$ac_env_${ac_var}_value" 1302 case $ac_old_set,$ac_new_set in 1303 set,) 1304 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1305echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1306 ac_cache_corrupted=: ;; 1307 ,set) 1308 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1309echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1310 ac_cache_corrupted=: ;; 1311 ,);; 1312 *) 1313 if test "x$ac_old_val" != "x$ac_new_val"; then 1314 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1315echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1316 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1317echo "$as_me: former value: $ac_old_val" >&2;} 1318 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1319echo "$as_me: current value: $ac_new_val" >&2;} 1320 ac_cache_corrupted=: 1321 fi;; 1322 esac 1323 # Pass precious variables to config.status. 1324 if test "$ac_new_set" = set; then 1325 case $ac_new_val in 1326 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1327 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1328 *) ac_arg=$ac_var=$ac_new_val ;; 1329 esac 1330 case " $ac_configure_args " in 1331 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1332 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1333 esac 1334 fi 1335done 1336if $ac_cache_corrupted; then 1337 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1338echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1339 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1340echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1341 { (exit 1); exit 1; }; } 1342fi 1343 1344ac_ext=c 1345ac_cpp='$CPP $CPPFLAGS' 1346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1348ac_compiler_gnu=$ac_cv_c_compiler_gnu 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368am__api_version="1.6" 1369ac_aux_dir= 1370for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1371 if test -f $ac_dir/install-sh; then 1372 ac_aux_dir=$ac_dir 1373 ac_install_sh="$ac_aux_dir/install-sh -c" 1374 break 1375 elif test -f $ac_dir/install.sh; then 1376 ac_aux_dir=$ac_dir 1377 ac_install_sh="$ac_aux_dir/install.sh -c" 1378 break 1379 elif test -f $ac_dir/shtool; then 1380 ac_aux_dir=$ac_dir 1381 ac_install_sh="$ac_aux_dir/shtool install -c" 1382 break 1383 fi 1384done 1385if test -z "$ac_aux_dir"; then 1386 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1387echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1388 { (exit 1); exit 1; }; } 1389fi 1390ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1391ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1392ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1393 1394# Find a good install program. We prefer a C program (faster), 1395# so one script is as good as another. But avoid the broken or 1396# incompatible versions: 1397# SysV /etc/install, /usr/sbin/install 1398# SunOS /usr/etc/install 1399# IRIX /sbin/install 1400# AIX /bin/install 1401# AmigaOS /C/install, which installs bootblocks on floppy discs 1402# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1403# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1404# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1405# ./install, which can be erroneously created by make from ./install.sh. 1406echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1407echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1408if test -z "$INSTALL"; then 1409if test "${ac_cv_path_install+set}" = set; then 1410 echo $ECHO_N "(cached) $ECHO_C" >&6 1411else 1412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1413for as_dir in $PATH 1414do 1415 IFS=$as_save_IFS 1416 test -z "$as_dir" && as_dir=. 1417 # Account for people who put trailing slashes in PATH elements. 1418case $as_dir/ in 1419 ./ | .// | /cC/* | \ 1420 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1421 /usr/ucb/* ) ;; 1422 *) 1423 # OSF1 and SCO ODT 3.0 have their own names for install. 1424 # Don't use installbsd from OSF since it installs stuff as root 1425 # by default. 1426 for ac_prog in ginstall scoinst install; do 1427 for ac_exec_ext in '' $ac_executable_extensions; do 1428 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1429 if test $ac_prog = install && 1430 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1431 # AIX install. It has an incompatible calling convention. 1432 : 1433 elif test $ac_prog = install && 1434 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1435 # program-specific install script used by HP pwplus--don't use. 1436 : 1437 else 1438 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1439 break 3 1440 fi 1441 fi 1442 done 1443 done 1444 ;; 1445esac 1446done 1447 1448 1449fi 1450 if test "${ac_cv_path_install+set}" = set; then 1451 INSTALL=$ac_cv_path_install 1452 else 1453 # As a last resort, use the slow shell script. We don't cache a 1454 # path for INSTALL within a source directory, because that will 1455 # break other packages using the cache if that directory is 1456 # removed, or if the path is relative. 1457 INSTALL=$ac_install_sh 1458 fi 1459fi 1460echo "$as_me:$LINENO: result: $INSTALL" >&5 1461echo "${ECHO_T}$INSTALL" >&6 1462 1463# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1464# It thinks the first close brace ends the variable substitution. 1465test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1466 1467test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1468 1469test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1470 1471echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1472echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1473# Just in case 1474sleep 1 1475echo timestamp > conftest.file 1476# Do `set' in a subshell so we don't clobber the current shell's 1477# arguments. Must try -L first in case configure is actually a 1478# symlink; some systems play weird games with the mod time of symlinks 1479# (eg FreeBSD returns the mod time of the symlink's containing 1480# directory). 1481if ( 1482 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1483 if test "$*" = "X"; then 1484 # -L didn't work. 1485 set X `ls -t $srcdir/configure conftest.file` 1486 fi 1487 rm -f conftest.file 1488 if test "$*" != "X $srcdir/configure conftest.file" \ 1489 && test "$*" != "X conftest.file $srcdir/configure"; then 1490 1491 # If neither matched, then we have a broken ls. This can happen 1492 # if, for instance, CONFIG_SHELL is bash and it inherits a 1493 # broken ls alias from the environment. This has actually 1494 # happened. Such a system could not be considered "sane". 1495 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1496alias in your environment" >&5 1497echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1498alias in your environment" >&2;} 1499 { (exit 1); exit 1; }; } 1500 fi 1501 1502 test "$2" = conftest.file 1503 ) 1504then 1505 # Ok. 1506 : 1507else 1508 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1509Check your system clock" >&5 1510echo "$as_me: error: newly created file is older than distributed files! 1511Check your system clock" >&2;} 1512 { (exit 1); exit 1; }; } 1513fi 1514echo "$as_me:$LINENO: result: yes" >&5 1515echo "${ECHO_T}yes" >&6 1516test "$program_prefix" != NONE && 1517 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1518# Use a double $ so make ignores it. 1519test "$program_suffix" != NONE && 1520 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1521# Double any \ or $. echo might interpret backslashes. 1522# By default was `s,x,x', remove it if useless. 1523cat <<\_ACEOF >conftest.sed 1524s/[\\$]/&&/g;s/;s,x,x,$// 1525_ACEOF 1526program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1527rm conftest.sed 1528 1529 1530# expand $ac_aux_dir to an absolute path 1531am_aux_dir=`cd $ac_aux_dir && pwd` 1532 1533test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1534# Use eval to expand $SHELL 1535if eval "$MISSING --run true"; then 1536 am_missing_run="$MISSING --run " 1537else 1538 am_missing_run= 1539 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1540echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1541fi 1542 1543for ac_prog in gawk mawk nawk awk 1544do 1545 # Extract the first word of "$ac_prog", so it can be a program name with args. 1546set dummy $ac_prog; ac_word=$2 1547echo "$as_me:$LINENO: checking for $ac_word" >&5 1548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1549if test "${ac_cv_prog_AWK+set}" = set; then 1550 echo $ECHO_N "(cached) $ECHO_C" >&6 1551else 1552 if test -n "$AWK"; then 1553 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1554else 1555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1556for as_dir in $PATH 1557do 1558 IFS=$as_save_IFS 1559 test -z "$as_dir" && as_dir=. 1560 for ac_exec_ext in '' $ac_executable_extensions; do 1561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1562 ac_cv_prog_AWK="$ac_prog" 1563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1564 break 2 1565 fi 1566done 1567done 1568 1569fi 1570fi 1571AWK=$ac_cv_prog_AWK 1572if test -n "$AWK"; then 1573 echo "$as_me:$LINENO: result: $AWK" >&5 1574echo "${ECHO_T}$AWK" >&6 1575else 1576 echo "$as_me:$LINENO: result: no" >&5 1577echo "${ECHO_T}no" >&6 1578fi 1579 1580 test -n "$AWK" && break 1581done 1582 1583echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5 1584echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 1585set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 1586if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1587 echo $ECHO_N "(cached) $ECHO_C" >&6 1588else 1589 cat >conftest.make <<\_ACEOF 1590all: 1591 @echo 'ac_maketemp="${MAKE}"' 1592_ACEOF 1593# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1594eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1595if test -n "$ac_maketemp"; then 1596 eval ac_cv_prog_make_${ac_make}_set=yes 1597else 1598 eval ac_cv_prog_make_${ac_make}_set=no 1599fi 1600rm -f conftest.make 1601fi 1602if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1603 echo "$as_me:$LINENO: result: yes" >&5 1604echo "${ECHO_T}yes" >&6 1605 SET_MAKE= 1606else 1607 echo "$as_me:$LINENO: result: no" >&5 1608echo "${ECHO_T}no" >&6 1609 SET_MAKE="MAKE=${MAKE-make}" 1610fi 1611 1612 # test to see if srcdir already configured 1613if test "`cd $srcdir && pwd`" != "`pwd`" && 1614 test -f $srcdir/config.status; then 1615 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1616echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1617 { (exit 1); exit 1; }; } 1618fi 1619 1620# Define the identity of the package. 1621 PACKAGE=file 1622 VERSION=4.12 1623 1624 1625cat >>confdefs.h <<_ACEOF 1626#define PACKAGE "$PACKAGE" 1627_ACEOF 1628 1629 1630cat >>confdefs.h <<_ACEOF 1631#define VERSION "$VERSION" 1632_ACEOF 1633 1634# Some tools Automake needs. 1635 1636ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1637 1638 1639AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1640 1641 1642AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1643 1644 1645AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1646 1647 1648MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1649 1650 1651AMTAR=${AMTAR-"${am_missing_run}tar"} 1652 1653install_sh=${install_sh-"$am_aux_dir/install-sh"} 1654 1655# Installed binaries are usually stripped using `strip' when the user 1656# run `make install-strip'. However `strip' might not be the right 1657# tool to use in cross-compilation environments, therefore Automake 1658# will honor the `STRIP' environment variable to overrule this program. 1659if test "$cross_compiling" != no; then 1660 if test -n "$ac_tool_prefix"; then 1661 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1662set dummy ${ac_tool_prefix}strip; ac_word=$2 1663echo "$as_me:$LINENO: checking for $ac_word" >&5 1664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1665if test "${ac_cv_prog_STRIP+set}" = set; then 1666 echo $ECHO_N "(cached) $ECHO_C" >&6 1667else 1668 if test -n "$STRIP"; then 1669 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1670else 1671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1672for as_dir in $PATH 1673do 1674 IFS=$as_save_IFS 1675 test -z "$as_dir" && as_dir=. 1676 for ac_exec_ext in '' $ac_executable_extensions; do 1677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1678 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1680 break 2 1681 fi 1682done 1683done 1684 1685fi 1686fi 1687STRIP=$ac_cv_prog_STRIP 1688if test -n "$STRIP"; then 1689 echo "$as_me:$LINENO: result: $STRIP" >&5 1690echo "${ECHO_T}$STRIP" >&6 1691else 1692 echo "$as_me:$LINENO: result: no" >&5 1693echo "${ECHO_T}no" >&6 1694fi 1695 1696fi 1697if test -z "$ac_cv_prog_STRIP"; then 1698 ac_ct_STRIP=$STRIP 1699 # Extract the first word of "strip", so it can be a program name with args. 1700set dummy strip; ac_word=$2 1701echo "$as_me:$LINENO: checking for $ac_word" >&5 1702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1703if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1704 echo $ECHO_N "(cached) $ECHO_C" >&6 1705else 1706 if test -n "$ac_ct_STRIP"; then 1707 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1708else 1709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1710for as_dir in $PATH 1711do 1712 IFS=$as_save_IFS 1713 test -z "$as_dir" && as_dir=. 1714 for ac_exec_ext in '' $ac_executable_extensions; do 1715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1716 ac_cv_prog_ac_ct_STRIP="strip" 1717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1718 break 2 1719 fi 1720done 1721done 1722 1723 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 1724fi 1725fi 1726ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 1727if test -n "$ac_ct_STRIP"; then 1728 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 1729echo "${ECHO_T}$ac_ct_STRIP" >&6 1730else 1731 echo "$as_me:$LINENO: result: no" >&5 1732echo "${ECHO_T}no" >&6 1733fi 1734 1735 STRIP=$ac_ct_STRIP 1736else 1737 STRIP="$ac_cv_prog_STRIP" 1738fi 1739 1740fi 1741INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1742 1743# We need awk for the "check" target. The system "awk" is bad on 1744# some platforms. 1745 1746 1747 1748# Add the stamp file to the list of files AC keeps track of, 1749# along with our hook. 1750ac_config_headers="$ac_config_headers config.h" 1751 1752 1753 1754 1755echo "$as_me:$LINENO: checking for builtin ELF support" >&5 1756echo $ECHO_N "checking for builtin ELF support... $ECHO_C" >&6 1757# Check whether --enable-elf or --disable-elf was given. 1758if test "${enable_elf+set}" = set; then 1759 enableval="$enable_elf" 1760 if test "${enableval}" = yes; then 1761 echo "$as_me:$LINENO: result: yes" >&5 1762echo "${ECHO_T}yes" >&6 1763 cat >>confdefs.h <<\_ACEOF 1764#define BUILTIN_ELF 1 1765_ACEOF 1766 1767else 1768 echo "$as_me:$LINENO: result: no" >&5 1769echo "${ECHO_T}no" >&6 1770fi 1771else 1772 1773 # enable by default 1774 echo "$as_me:$LINENO: result: yes" >&5 1775echo "${ECHO_T}yes" >&6 1776 cat >>confdefs.h <<\_ACEOF 1777#define BUILTIN_ELF 1 1778_ACEOF 1779 1780 1781fi; 1782 1783echo "$as_me:$LINENO: checking for ELF core file support" >&5 1784echo $ECHO_N "checking for ELF core file support... $ECHO_C" >&6 1785# Check whether --enable-elf-core or --disable-elf-core was given. 1786if test "${enable_elf_core+set}" = set; then 1787 enableval="$enable_elf_core" 1788 if test "${enableval}" = yes; then 1789 echo "$as_me:$LINENO: result: yes" >&5 1790echo "${ECHO_T}yes" >&6 1791 cat >>confdefs.h <<\_ACEOF 1792#define ELFCORE 1 1793_ACEOF 1794 1795else 1796 echo "$as_me:$LINENO: result: no" >&5 1797echo "${ECHO_T}no" >&6 1798fi 1799else 1800 1801 # enable by default 1802 echo "$as_me:$LINENO: result: yes" >&5 1803echo "${ECHO_T}yes" >&6 1804 cat >>confdefs.h <<\_ACEOF 1805#define ELFCORE 1 1806_ACEOF 1807 1808 1809fi; 1810 1811echo "$as_me:$LINENO: checking for file formats in man section 5" >&5 1812echo $ECHO_N "checking for file formats in man section 5... $ECHO_C" >&6 1813# Check whether --enable-fsect-man5 or --disable-fsect-man5 was given. 1814if test "${enable_fsect_man5+set}" = set; then 1815 enableval="$enable_fsect_man5" 1816 if test "${enableval}" = yes; then 1817 echo "$as_me:$LINENO: result: yes" >&5 1818echo "${ECHO_T}yes" >&6 1819 fsect=5 1820else 1821 echo "$as_me:$LINENO: result: no" >&5 1822echo "${ECHO_T}no" >&6 1823 fsect=4 1824fi 1825else 1826 1827 # disable by default 1828 echo "$as_me:$LINENO: result: no" >&5 1829echo "${ECHO_T}no" >&6 1830 fsect=4 1831 1832fi; 1833 1834 1835 1836if test x$fsect = x5; then 1837 FSECT5_TRUE= 1838 FSECT5_FALSE='#' 1839else 1840 FSECT5_TRUE='#' 1841 FSECT5_FALSE= 1842fi 1843 1844 1845ac_ext=c 1846ac_cpp='$CPP $CPPFLAGS' 1847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1849ac_compiler_gnu=$ac_cv_c_compiler_gnu 1850if test -n "$ac_tool_prefix"; then 1851 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1852set dummy ${ac_tool_prefix}gcc; ac_word=$2 1853echo "$as_me:$LINENO: checking for $ac_word" >&5 1854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1855if test "${ac_cv_prog_CC+set}" = set; then 1856 echo $ECHO_N "(cached) $ECHO_C" >&6 1857else 1858 if test -n "$CC"; then 1859 ac_cv_prog_CC="$CC" # Let the user override the test. 1860else 1861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1862for as_dir in $PATH 1863do 1864 IFS=$as_save_IFS 1865 test -z "$as_dir" && as_dir=. 1866 for ac_exec_ext in '' $ac_executable_extensions; do 1867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1868 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1870 break 2 1871 fi 1872done 1873done 1874 1875fi 1876fi 1877CC=$ac_cv_prog_CC 1878if test -n "$CC"; then 1879 echo "$as_me:$LINENO: result: $CC" >&5 1880echo "${ECHO_T}$CC" >&6 1881else 1882 echo "$as_me:$LINENO: result: no" >&5 1883echo "${ECHO_T}no" >&6 1884fi 1885 1886fi 1887if test -z "$ac_cv_prog_CC"; then 1888 ac_ct_CC=$CC 1889 # Extract the first word of "gcc", so it can be a program name with args. 1890set dummy gcc; ac_word=$2 1891echo "$as_me:$LINENO: checking for $ac_word" >&5 1892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1893if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1894 echo $ECHO_N "(cached) $ECHO_C" >&6 1895else 1896 if test -n "$ac_ct_CC"; then 1897 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1898else 1899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1900for as_dir in $PATH 1901do 1902 IFS=$as_save_IFS 1903 test -z "$as_dir" && as_dir=. 1904 for ac_exec_ext in '' $ac_executable_extensions; do 1905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1906 ac_cv_prog_ac_ct_CC="gcc" 1907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1908 break 2 1909 fi 1910done 1911done 1912 1913fi 1914fi 1915ac_ct_CC=$ac_cv_prog_ac_ct_CC 1916if test -n "$ac_ct_CC"; then 1917 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1918echo "${ECHO_T}$ac_ct_CC" >&6 1919else 1920 echo "$as_me:$LINENO: result: no" >&5 1921echo "${ECHO_T}no" >&6 1922fi 1923 1924 CC=$ac_ct_CC 1925else 1926 CC="$ac_cv_prog_CC" 1927fi 1928 1929if test -z "$CC"; then 1930 if test -n "$ac_tool_prefix"; then 1931 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1932set dummy ${ac_tool_prefix}cc; ac_word=$2 1933echo "$as_me:$LINENO: checking for $ac_word" >&5 1934echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1935if test "${ac_cv_prog_CC+set}" = set; then 1936 echo $ECHO_N "(cached) $ECHO_C" >&6 1937else 1938 if test -n "$CC"; then 1939 ac_cv_prog_CC="$CC" # Let the user override the test. 1940else 1941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1942for as_dir in $PATH 1943do 1944 IFS=$as_save_IFS 1945 test -z "$as_dir" && as_dir=. 1946 for ac_exec_ext in '' $ac_executable_extensions; do 1947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1948 ac_cv_prog_CC="${ac_tool_prefix}cc" 1949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1950 break 2 1951 fi 1952done 1953done 1954 1955fi 1956fi 1957CC=$ac_cv_prog_CC 1958if test -n "$CC"; then 1959 echo "$as_me:$LINENO: result: $CC" >&5 1960echo "${ECHO_T}$CC" >&6 1961else 1962 echo "$as_me:$LINENO: result: no" >&5 1963echo "${ECHO_T}no" >&6 1964fi 1965 1966fi 1967if test -z "$ac_cv_prog_CC"; then 1968 ac_ct_CC=$CC 1969 # Extract the first word of "cc", so it can be a program name with args. 1970set dummy cc; ac_word=$2 1971echo "$as_me:$LINENO: checking for $ac_word" >&5 1972echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1973if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1974 echo $ECHO_N "(cached) $ECHO_C" >&6 1975else 1976 if test -n "$ac_ct_CC"; then 1977 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1978else 1979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1980for as_dir in $PATH 1981do 1982 IFS=$as_save_IFS 1983 test -z "$as_dir" && as_dir=. 1984 for ac_exec_ext in '' $ac_executable_extensions; do 1985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1986 ac_cv_prog_ac_ct_CC="cc" 1987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1988 break 2 1989 fi 1990done 1991done 1992 1993fi 1994fi 1995ac_ct_CC=$ac_cv_prog_ac_ct_CC 1996if test -n "$ac_ct_CC"; then 1997 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1998echo "${ECHO_T}$ac_ct_CC" >&6 1999else 2000 echo "$as_me:$LINENO: result: no" >&5 2001echo "${ECHO_T}no" >&6 2002fi 2003 2004 CC=$ac_ct_CC 2005else 2006 CC="$ac_cv_prog_CC" 2007fi 2008 2009fi 2010if test -z "$CC"; then 2011 # Extract the first word of "cc", so it can be a program name with args. 2012set dummy cc; ac_word=$2 2013echo "$as_me:$LINENO: checking for $ac_word" >&5 2014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2015if test "${ac_cv_prog_CC+set}" = set; then 2016 echo $ECHO_N "(cached) $ECHO_C" >&6 2017else 2018 if test -n "$CC"; then 2019 ac_cv_prog_CC="$CC" # Let the user override the test. 2020else 2021 ac_prog_rejected=no 2022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2023for as_dir in $PATH 2024do 2025 IFS=$as_save_IFS 2026 test -z "$as_dir" && as_dir=. 2027 for ac_exec_ext in '' $ac_executable_extensions; do 2028 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2029 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2030 ac_prog_rejected=yes 2031 continue 2032 fi 2033 ac_cv_prog_CC="cc" 2034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2035 break 2 2036 fi 2037done 2038done 2039 2040if test $ac_prog_rejected = yes; then 2041 # We found a bogon in the path, so make sure we never use it. 2042 set dummy $ac_cv_prog_CC 2043 shift 2044 if test $# != 0; then 2045 # We chose a different compiler from the bogus one. 2046 # However, it has the same basename, so the bogon will be chosen 2047 # first if we set CC to just the basename; use the full file name. 2048 shift 2049 set dummy "$as_dir/$ac_word" ${1+"$@"} 2050 shift 2051 ac_cv_prog_CC="$@" 2052 fi 2053fi 2054fi 2055fi 2056CC=$ac_cv_prog_CC 2057if test -n "$CC"; then 2058 echo "$as_me:$LINENO: result: $CC" >&5 2059echo "${ECHO_T}$CC" >&6 2060else 2061 echo "$as_me:$LINENO: result: no" >&5 2062echo "${ECHO_T}no" >&6 2063fi 2064 2065fi 2066if test -z "$CC"; then 2067 if test -n "$ac_tool_prefix"; then 2068 for ac_prog in cl 2069 do 2070 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2071set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2072echo "$as_me:$LINENO: checking for $ac_word" >&5 2073echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2074if test "${ac_cv_prog_CC+set}" = set; then 2075 echo $ECHO_N "(cached) $ECHO_C" >&6 2076else 2077 if test -n "$CC"; then 2078 ac_cv_prog_CC="$CC" # Let the user override the test. 2079else 2080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2081for as_dir in $PATH 2082do 2083 IFS=$as_save_IFS 2084 test -z "$as_dir" && as_dir=. 2085 for ac_exec_ext in '' $ac_executable_extensions; do 2086 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2087 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2089 break 2 2090 fi 2091done 2092done 2093 2094fi 2095fi 2096CC=$ac_cv_prog_CC 2097if test -n "$CC"; then 2098 echo "$as_me:$LINENO: result: $CC" >&5 2099echo "${ECHO_T}$CC" >&6 2100else 2101 echo "$as_me:$LINENO: result: no" >&5 2102echo "${ECHO_T}no" >&6 2103fi 2104 2105 test -n "$CC" && break 2106 done 2107fi 2108if test -z "$CC"; then 2109 ac_ct_CC=$CC 2110 for ac_prog in cl 2111do 2112 # Extract the first word of "$ac_prog", so it can be a program name with args. 2113set dummy $ac_prog; ac_word=$2 2114echo "$as_me:$LINENO: checking for $ac_word" >&5 2115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2116if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2117 echo $ECHO_N "(cached) $ECHO_C" >&6 2118else 2119 if test -n "$ac_ct_CC"; then 2120 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2121else 2122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2123for as_dir in $PATH 2124do 2125 IFS=$as_save_IFS 2126 test -z "$as_dir" && as_dir=. 2127 for ac_exec_ext in '' $ac_executable_extensions; do 2128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2129 ac_cv_prog_ac_ct_CC="$ac_prog" 2130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2131 break 2 2132 fi 2133done 2134done 2135 2136fi 2137fi 2138ac_ct_CC=$ac_cv_prog_ac_ct_CC 2139if test -n "$ac_ct_CC"; then 2140 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2141echo "${ECHO_T}$ac_ct_CC" >&6 2142else 2143 echo "$as_me:$LINENO: result: no" >&5 2144echo "${ECHO_T}no" >&6 2145fi 2146 2147 test -n "$ac_ct_CC" && break 2148done 2149 2150 CC=$ac_ct_CC 2151fi 2152 2153fi 2154 2155 2156test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 2157echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} 2158 { (exit 1); exit 1; }; } 2159 2160# Provide some information about the compiler. 2161echo "$as_me:$LINENO:" \ 2162 "checking for C compiler version" >&5 2163ac_compiler=`set X $ac_compile; echo $2` 2164{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2165 (eval $ac_compiler --version </dev/null >&5) 2>&5 2166 ac_status=$? 2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2168 (exit $ac_status); } 2169{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2170 (eval $ac_compiler -v </dev/null >&5) 2>&5 2171 ac_status=$? 2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2173 (exit $ac_status); } 2174{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2175 (eval $ac_compiler -V </dev/null >&5) 2>&5 2176 ac_status=$? 2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2178 (exit $ac_status); } 2179 2180cat >conftest.$ac_ext <<_ACEOF 2181#line $LINENO "configure" 2182#include "confdefs.h" 2183 2184#ifdef F77_DUMMY_MAIN 2185# ifdef __cplusplus 2186 extern "C" 2187# endif 2188 int F77_DUMMY_MAIN() { return 1; } 2189#endif 2190int 2191main () 2192{ 2193 2194 ; 2195 return 0; 2196} 2197_ACEOF 2198ac_clean_files_save=$ac_clean_files 2199ac_clean_files="$ac_clean_files a.out a.exe" 2200# Try to create an executable without -o first, disregard a.out. 2201# It will help us diagnose broken compilers, and finding out an intuition 2202# of exeext. 2203echo "$as_me:$LINENO: checking for C compiler default output" >&5 2204echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 2205ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2206if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2207 (eval $ac_link_default) 2>&5 2208 ac_status=$? 2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2210 (exit $ac_status); }; then 2211 # Find the output, starting from the most likely. This scheme is 2212# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2213# resort. 2214 2215# Be careful to initialize this variable, since it used to be cached. 2216# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2217ac_cv_exeext= 2218for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; 2219 ls a.out conftest 2>/dev/null; 2220 ls a.* conftest.* 2>/dev/null`; do 2221 case $ac_file in 2222 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; 2223 a.out ) # We found the default executable, but exeext='' is most 2224 # certainly right. 2225 break;; 2226 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2227 # FIXME: I believe we export ac_cv_exeext for Libtool --akim. 2228 export ac_cv_exeext 2229 break;; 2230 * ) break;; 2231 esac 2232done 2233else 2234 echo "$as_me: failed program was:" >&5 2235cat conftest.$ac_ext >&5 2236{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5 2237echo "$as_me: error: C compiler cannot create executables" >&2;} 2238 { (exit 77); exit 77; }; } 2239fi 2240 2241ac_exeext=$ac_cv_exeext 2242echo "$as_me:$LINENO: result: $ac_file" >&5 2243echo "${ECHO_T}$ac_file" >&6 2244 2245# Check the compiler produces executables we can run. If not, either 2246# the compiler is broken, or we cross compile. 2247echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2248echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2249# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2250# If not cross compiling, check that we can run a simple program. 2251if test "$cross_compiling" != yes; then 2252 if { ac_try='./$ac_file' 2253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2254 (eval $ac_try) 2>&5 2255 ac_status=$? 2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2257 (exit $ac_status); }; }; then 2258 cross_compiling=no 2259 else 2260 if test "$cross_compiling" = maybe; then 2261 cross_compiling=yes 2262 else 2263 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2264If you meant to cross compile, use \`--host'." >&5 2265echo "$as_me: error: cannot run C compiled programs. 2266If you meant to cross compile, use \`--host'." >&2;} 2267 { (exit 1); exit 1; }; } 2268 fi 2269 fi 2270fi 2271echo "$as_me:$LINENO: result: yes" >&5 2272echo "${ECHO_T}yes" >&6 2273 2274rm -f a.out a.exe conftest$ac_cv_exeext 2275ac_clean_files=$ac_clean_files_save 2276# Check the compiler produces executables we can run. If not, either 2277# the compiler is broken, or we cross compile. 2278echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2279echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2280echo "$as_me:$LINENO: result: $cross_compiling" >&5 2281echo "${ECHO_T}$cross_compiling" >&6 2282 2283echo "$as_me:$LINENO: checking for suffix of executables" >&5 2284echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2286 (eval $ac_link) 2>&5 2287 ac_status=$? 2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2289 (exit $ac_status); }; then 2290 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2291# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2292# work properly (i.e., refer to `conftest.exe'), while it won't with 2293# `rm'. 2294for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do 2295 case $ac_file in 2296 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; 2297 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2298 export ac_cv_exeext 2299 break;; 2300 * ) break;; 2301 esac 2302done 2303else 2304 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 2305echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} 2306 { (exit 1); exit 1; }; } 2307fi 2308 2309rm -f conftest$ac_cv_exeext 2310echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2311echo "${ECHO_T}$ac_cv_exeext" >&6 2312 2313rm -f conftest.$ac_ext 2314EXEEXT=$ac_cv_exeext 2315ac_exeext=$EXEEXT 2316echo "$as_me:$LINENO: checking for suffix of object files" >&5 2317echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2318if test "${ac_cv_objext+set}" = set; then 2319 echo $ECHO_N "(cached) $ECHO_C" >&6 2320else 2321 cat >conftest.$ac_ext <<_ACEOF 2322#line $LINENO "configure" 2323#include "confdefs.h" 2324 2325#ifdef F77_DUMMY_MAIN 2326# ifdef __cplusplus 2327 extern "C" 2328# endif 2329 int F77_DUMMY_MAIN() { return 1; } 2330#endif 2331int 2332main () 2333{ 2334 2335 ; 2336 return 0; 2337} 2338_ACEOF 2339rm -f conftest.o conftest.obj 2340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2341 (eval $ac_compile) 2>&5 2342 ac_status=$? 2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2344 (exit $ac_status); }; then 2345 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2346 case $ac_file in 2347 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; 2348 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2349 break;; 2350 esac 2351done 2352else 2353 echo "$as_me: failed program was:" >&5 2354cat conftest.$ac_ext >&5 2355{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 2356echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} 2357 { (exit 1); exit 1; }; } 2358fi 2359 2360rm -f conftest.$ac_cv_objext conftest.$ac_ext 2361fi 2362echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2363echo "${ECHO_T}$ac_cv_objext" >&6 2364OBJEXT=$ac_cv_objext 2365ac_objext=$OBJEXT 2366echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2367echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2368if test "${ac_cv_c_compiler_gnu+set}" = set; then 2369 echo $ECHO_N "(cached) $ECHO_C" >&6 2370else 2371 cat >conftest.$ac_ext <<_ACEOF 2372#line $LINENO "configure" 2373#include "confdefs.h" 2374 2375#ifdef F77_DUMMY_MAIN 2376# ifdef __cplusplus 2377 extern "C" 2378# endif 2379 int F77_DUMMY_MAIN() { return 1; } 2380#endif 2381int 2382main () 2383{ 2384#ifndef __GNUC__ 2385 choke me 2386#endif 2387 2388 ; 2389 return 0; 2390} 2391_ACEOF 2392rm -f conftest.$ac_objext 2393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2394 (eval $ac_compile) 2>&5 2395 ac_status=$? 2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2397 (exit $ac_status); } && 2398 { ac_try='test -s conftest.$ac_objext' 2399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2400 (eval $ac_try) 2>&5 2401 ac_status=$? 2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2403 (exit $ac_status); }; }; then 2404 ac_compiler_gnu=yes 2405else 2406 echo "$as_me: failed program was:" >&5 2407cat conftest.$ac_ext >&5 2408ac_compiler_gnu=no 2409fi 2410rm -f conftest.$ac_objext conftest.$ac_ext 2411ac_cv_c_compiler_gnu=$ac_compiler_gnu 2412 2413fi 2414echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2415echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2416GCC=`test $ac_compiler_gnu = yes && echo yes` 2417ac_test_CFLAGS=${CFLAGS+set} 2418ac_save_CFLAGS=$CFLAGS 2419CFLAGS="-g" 2420echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2421echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2422if test "${ac_cv_prog_cc_g+set}" = set; then 2423 echo $ECHO_N "(cached) $ECHO_C" >&6 2424else 2425 cat >conftest.$ac_ext <<_ACEOF 2426#line $LINENO "configure" 2427#include "confdefs.h" 2428 2429#ifdef F77_DUMMY_MAIN 2430# ifdef __cplusplus 2431 extern "C" 2432# endif 2433 int F77_DUMMY_MAIN() { return 1; } 2434#endif 2435int 2436main () 2437{ 2438 2439 ; 2440 return 0; 2441} 2442_ACEOF 2443rm -f conftest.$ac_objext 2444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2445 (eval $ac_compile) 2>&5 2446 ac_status=$? 2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2448 (exit $ac_status); } && 2449 { ac_try='test -s conftest.$ac_objext' 2450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2451 (eval $ac_try) 2>&5 2452 ac_status=$? 2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2454 (exit $ac_status); }; }; then 2455 ac_cv_prog_cc_g=yes 2456else 2457 echo "$as_me: failed program was:" >&5 2458cat conftest.$ac_ext >&5 2459ac_cv_prog_cc_g=no 2460fi 2461rm -f conftest.$ac_objext conftest.$ac_ext 2462fi 2463echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2464echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2465if test "$ac_test_CFLAGS" = set; then 2466 CFLAGS=$ac_save_CFLAGS 2467elif test $ac_cv_prog_cc_g = yes; then 2468 if test "$GCC" = yes; then 2469 CFLAGS="-g -O2" 2470 else 2471 CFLAGS="-g" 2472 fi 2473else 2474 if test "$GCC" = yes; then 2475 CFLAGS="-O2" 2476 else 2477 CFLAGS= 2478 fi 2479fi 2480# Some people use a C++ compiler to compile C. Since we use `exit', 2481# in C++ we need to declare it. In case someone uses the same compiler 2482# for both compiling C and C++ we need to have the C++ compiler decide 2483# the declaration of exit, since it's the most demanding environment. 2484cat >conftest.$ac_ext <<_ACEOF 2485#ifndef __cplusplus 2486 choke me 2487#endif 2488_ACEOF 2489rm -f conftest.$ac_objext 2490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2491 (eval $ac_compile) 2>&5 2492 ac_status=$? 2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2494 (exit $ac_status); } && 2495 { ac_try='test -s conftest.$ac_objext' 2496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2497 (eval $ac_try) 2>&5 2498 ac_status=$? 2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2500 (exit $ac_status); }; }; then 2501 for ac_declaration in \ 2502 ''\ 2503 '#include <stdlib.h>' \ 2504 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2505 'extern "C" void std::exit (int); using std::exit;' \ 2506 'extern "C" void exit (int) throw ();' \ 2507 'extern "C" void exit (int);' \ 2508 'void exit (int);' 2509do 2510 cat >conftest.$ac_ext <<_ACEOF 2511#line $LINENO "configure" 2512#include "confdefs.h" 2513#include <stdlib.h> 2514$ac_declaration 2515#ifdef F77_DUMMY_MAIN 2516# ifdef __cplusplus 2517 extern "C" 2518# endif 2519 int F77_DUMMY_MAIN() { return 1; } 2520#endif 2521int 2522main () 2523{ 2524exit (42); 2525 ; 2526 return 0; 2527} 2528_ACEOF 2529rm -f conftest.$ac_objext 2530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2531 (eval $ac_compile) 2>&5 2532 ac_status=$? 2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2534 (exit $ac_status); } && 2535 { ac_try='test -s conftest.$ac_objext' 2536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2537 (eval $ac_try) 2>&5 2538 ac_status=$? 2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2540 (exit $ac_status); }; }; then 2541 : 2542else 2543 echo "$as_me: failed program was:" >&5 2544cat conftest.$ac_ext >&5 2545continue 2546fi 2547rm -f conftest.$ac_objext conftest.$ac_ext 2548 cat >conftest.$ac_ext <<_ACEOF 2549#line $LINENO "configure" 2550#include "confdefs.h" 2551$ac_declaration 2552#ifdef F77_DUMMY_MAIN 2553# ifdef __cplusplus 2554 extern "C" 2555# endif 2556 int F77_DUMMY_MAIN() { return 1; } 2557#endif 2558int 2559main () 2560{ 2561exit (42); 2562 ; 2563 return 0; 2564} 2565_ACEOF 2566rm -f conftest.$ac_objext 2567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2568 (eval $ac_compile) 2>&5 2569 ac_status=$? 2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2571 (exit $ac_status); } && 2572 { ac_try='test -s conftest.$ac_objext' 2573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2574 (eval $ac_try) 2>&5 2575 ac_status=$? 2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2577 (exit $ac_status); }; }; then 2578 break 2579else 2580 echo "$as_me: failed program was:" >&5 2581cat conftest.$ac_ext >&5 2582fi 2583rm -f conftest.$ac_objext conftest.$ac_ext 2584done 2585rm -f conftest* 2586if test -n "$ac_declaration"; then 2587 echo '#ifdef __cplusplus' >>confdefs.h 2588 echo $ac_declaration >>confdefs.h 2589 echo '#endif' >>confdefs.h 2590fi 2591 2592else 2593 echo "$as_me: failed program was:" >&5 2594cat conftest.$ac_ext >&5 2595fi 2596rm -f conftest.$ac_objext conftest.$ac_ext 2597ac_ext=c 2598ac_cpp='$CPP $CPPFLAGS' 2599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2601ac_compiler_gnu=$ac_cv_c_compiler_gnu 2602rm -f .deps 2>/dev/null 2603mkdir .deps 2>/dev/null 2604if test -d .deps; then 2605 DEPDIR=.deps 2606else 2607 # MS-DOS does not allow filenames that begin with a dot. 2608 DEPDIR=_deps 2609fi 2610rmdir .deps 2>/dev/null 2611 2612 2613ac_config_commands="$ac_config_commands depfiles" 2614 2615 2616am_make=${MAKE-make} 2617cat > confinc << 'END' 2618doit: 2619 @echo done 2620END 2621# If we don't find an include directive, just comment out the code. 2622echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2623echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2624am__include="#" 2625am__quote= 2626_am_result=none 2627# First try GNU make style include. 2628echo "include confinc" > confmf 2629# We grep out `Entering directory' and `Leaving directory' 2630# messages which can occur if `w' ends up in MAKEFLAGS. 2631# In particular we don't look at `^make:' because GNU make might 2632# be invoked under some other name (usually "gmake"), in which 2633# case it prints its new name instead of `make'. 2634if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then 2635 am__include=include 2636 am__quote= 2637 _am_result=GNU 2638fi 2639# Now try BSD make style include. 2640if test "$am__include" = "#"; then 2641 echo '.include "confinc"' > confmf 2642 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2643 am__include=.include 2644 am__quote="\"" 2645 _am_result=BSD 2646 fi 2647fi 2648 2649 2650echo "$as_me:$LINENO: result: $_am_result" >&5 2651echo "${ECHO_T}$_am_result" >&6 2652rm -f confinc confmf 2653 2654# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2655if test "${enable_dependency_tracking+set}" = set; then 2656 enableval="$enable_dependency_tracking" 2657 2658fi; 2659if test "x$enable_dependency_tracking" != xno; then 2660 am_depcomp="$ac_aux_dir/depcomp" 2661 AMDEPBACKSLASH='\' 2662fi 2663 2664 2665if test "x$enable_dependency_tracking" != xno; then 2666 AMDEP_TRUE= 2667 AMDEP_FALSE='#' 2668else 2669 AMDEP_TRUE='#' 2670 AMDEP_FALSE= 2671fi 2672 2673 2674 2675 2676depcc="$CC" am_compiler_list= 2677 2678echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 2679echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 2680if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 2681 echo $ECHO_N "(cached) $ECHO_C" >&6 2682else 2683 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 2684 # We make a subdir and do the tests there. Otherwise we can end up 2685 # making bogus files that we don't know about and never remove. For 2686 # instance it was reported that on HP-UX the gcc test will end up 2687 # making a dummy file named `D' -- because `-MD' means `put the output 2688 # in D'. 2689 mkdir conftest.dir 2690 # Copy depcomp to subdir because otherwise we won't find it if we're 2691 # using a relative directory. 2692 cp "$am_depcomp" conftest.dir 2693 cd conftest.dir 2694 2695 am_cv_CC_dependencies_compiler_type=none 2696 if test "$am_compiler_list" = ""; then 2697 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 2698 fi 2699 for depmode in $am_compiler_list; do 2700 # We need to recreate these files for each test, as the compiler may 2701 # overwrite some of them when testing with obscure command lines. 2702 # This happens at least with the AIX C compiler. 2703 echo '#include "conftest.h"' > conftest.c 2704 echo 'int i;' > conftest.h 2705 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf 2706 2707 case $depmode in 2708 nosideeffect) 2709 # after this tag, mechanisms are not by side-effect, so they'll 2710 # only be used when explicitly requested 2711 if test "x$enable_dependency_tracking" = xyes; then 2712 continue 2713 else 2714 break 2715 fi 2716 ;; 2717 none) break ;; 2718 esac 2719 # We check with `-c' and `-o' for the sake of the "dashmstdout" 2720 # mode. It turns out that the SunPro C++ compiler does not properly 2721 # handle `-M -o', and we need to detect this. 2722 if depmode=$depmode \ 2723 source=conftest.c object=conftest.o \ 2724 depfile=conftest.Po tmpdepfile=conftest.TPo \ 2725 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && 2726 grep conftest.h conftest.Po > /dev/null 2>&1 && 2727 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 2728 am_cv_CC_dependencies_compiler_type=$depmode 2729 break 2730 fi 2731 done 2732 2733 cd .. 2734 rm -rf conftest.dir 2735else 2736 am_cv_CC_dependencies_compiler_type=none 2737fi 2738 2739fi 2740echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 2741echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 2742CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 2743 2744 2745# Find a good install program. We prefer a C program (faster), 2746# so one script is as good as another. But avoid the broken or 2747# incompatible versions: 2748# SysV /etc/install, /usr/sbin/install 2749# SunOS /usr/etc/install 2750# IRIX /sbin/install 2751# AIX /bin/install 2752# AmigaOS /C/install, which installs bootblocks on floppy discs 2753# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2754# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2755# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2756# ./install, which can be erroneously created by make from ./install.sh. 2757echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2758echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 2759if test -z "$INSTALL"; then 2760if test "${ac_cv_path_install+set}" = set; then 2761 echo $ECHO_N "(cached) $ECHO_C" >&6 2762else 2763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2764for as_dir in $PATH 2765do 2766 IFS=$as_save_IFS 2767 test -z "$as_dir" && as_dir=. 2768 # Account for people who put trailing slashes in PATH elements. 2769case $as_dir/ in 2770 ./ | .// | /cC/* | \ 2771 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2772 /usr/ucb/* ) ;; 2773 *) 2774 # OSF1 and SCO ODT 3.0 have their own names for install. 2775 # Don't use installbsd from OSF since it installs stuff as root 2776 # by default. 2777 for ac_prog in ginstall scoinst install; do 2778 for ac_exec_ext in '' $ac_executable_extensions; do 2779 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2780 if test $ac_prog = install && 2781 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2782 # AIX install. It has an incompatible calling convention. 2783 : 2784 elif test $ac_prog = install && 2785 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2786 # program-specific install script used by HP pwplus--don't use. 2787 : 2788 else 2789 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2790 break 3 2791 fi 2792 fi 2793 done 2794 done 2795 ;; 2796esac 2797done 2798 2799 2800fi 2801 if test "${ac_cv_path_install+set}" = set; then 2802 INSTALL=$ac_cv_path_install 2803 else 2804 # As a last resort, use the slow shell script. We don't cache a 2805 # path for INSTALL within a source directory, because that will 2806 # break other packages using the cache if that directory is 2807 # removed, or if the path is relative. 2808 INSTALL=$ac_install_sh 2809 fi 2810fi 2811echo "$as_me:$LINENO: result: $INSTALL" >&5 2812echo "${ECHO_T}$INSTALL" >&6 2813 2814# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2815# It thinks the first close brace ends the variable substitution. 2816test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2817 2818test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2819 2820test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2821 2822echo "$as_me:$LINENO: checking whether ln -s works" >&5 2823echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 2824LN_S=$as_ln_s 2825if test "$LN_S" = "ln -s"; then 2826 echo "$as_me:$LINENO: result: yes" >&5 2827echo "${ECHO_T}yes" >&6 2828else 2829 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 2830echo "${ECHO_T}no, using $LN_S" >&6 2831fi 2832 2833# Check whether --enable-shared or --disable-shared was given. 2834if test "${enable_shared+set}" = set; then 2835 enableval="$enable_shared" 2836 p=${PACKAGE-default} 2837case $enableval in 2838yes) enable_shared=yes ;; 2839no) enable_shared=no ;; 2840*) 2841 enable_shared=no 2842 # Look at the argument we got. We use all the common list separators. 2843 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 2844 for pkg in $enableval; do 2845 if test "X$pkg" = "X$p"; then 2846 enable_shared=yes 2847 fi 2848 done 2849 IFS="$ac_save_ifs" 2850 ;; 2851esac 2852else 2853 enable_shared=yes 2854fi; 2855# Check whether --enable-static or --disable-static was given. 2856if test "${enable_static+set}" = set; then 2857 enableval="$enable_static" 2858 p=${PACKAGE-default} 2859case $enableval in 2860yes) enable_static=yes ;; 2861no) enable_static=no ;; 2862*) 2863 enable_static=no 2864 # Look at the argument we got. We use all the common list separators. 2865 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 2866 for pkg in $enableval; do 2867 if test "X$pkg" = "X$p"; then 2868 enable_static=yes 2869 fi 2870 done 2871 IFS="$ac_save_ifs" 2872 ;; 2873esac 2874else 2875 enable_static=yes 2876fi; 2877# Check whether --enable-fast-install or --disable-fast-install was given. 2878if test "${enable_fast_install+set}" = set; then 2879 enableval="$enable_fast_install" 2880 p=${PACKAGE-default} 2881case $enableval in 2882yes) enable_fast_install=yes ;; 2883no) enable_fast_install=no ;; 2884*) 2885 enable_fast_install=no 2886 # Look at the argument we got. We use all the common list separators. 2887 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 2888 for pkg in $enableval; do 2889 if test "X$pkg" = "X$p"; then 2890 enable_fast_install=yes 2891 fi 2892 done 2893 IFS="$ac_save_ifs" 2894 ;; 2895esac 2896else 2897 enable_fast_install=yes 2898fi; 2899# Make sure we can run config.sub. 2900$ac_config_sub sun4 >/dev/null 2>&1 || 2901 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 2902echo "$as_me: error: cannot run $ac_config_sub" >&2;} 2903 { (exit 1); exit 1; }; } 2904 2905echo "$as_me:$LINENO: checking build system type" >&5 2906echo $ECHO_N "checking build system type... $ECHO_C" >&6 2907if test "${ac_cv_build+set}" = set; then 2908 echo $ECHO_N "(cached) $ECHO_C" >&6 2909else 2910 ac_cv_build_alias=$build_alias 2911test -z "$ac_cv_build_alias" && 2912 ac_cv_build_alias=`$ac_config_guess` 2913test -z "$ac_cv_build_alias" && 2914 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2915echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2916 { (exit 1); exit 1; }; } 2917ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 2918 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 2919echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 2920 { (exit 1); exit 1; }; } 2921 2922fi 2923echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2924echo "${ECHO_T}$ac_cv_build" >&6 2925build=$ac_cv_build 2926build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2927build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2928build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2929 2930 2931echo "$as_me:$LINENO: checking host system type" >&5 2932echo $ECHO_N "checking host system type... $ECHO_C" >&6 2933if test "${ac_cv_host+set}" = set; then 2934 echo $ECHO_N "(cached) $ECHO_C" >&6 2935else 2936 ac_cv_host_alias=$host_alias 2937test -z "$ac_cv_host_alias" && 2938 ac_cv_host_alias=$ac_cv_build_alias 2939ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 2940 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 2941echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 2942 { (exit 1); exit 1; }; } 2943 2944fi 2945echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2946echo "${ECHO_T}$ac_cv_host" >&6 2947host=$ac_cv_host 2948host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2949host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2950host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2951 2952 2953# Find the correct PATH separator. Usually this is `:', but 2954# DJGPP uses `;' like DOS. 2955if test "X${PATH_SEPARATOR+set}" != Xset; then 2956 UNAME=${UNAME-`uname 2>/dev/null`} 2957 case X$UNAME in 2958 *-DOS) lt_cv_sys_path_separator=';' ;; 2959 *) lt_cv_sys_path_separator=':' ;; 2960 esac 2961 PATH_SEPARATOR=$lt_cv_sys_path_separator 2962fi 2963 2964 2965# Check whether --with-gnu-ld or --without-gnu-ld was given. 2966if test "${with_gnu_ld+set}" = set; then 2967 withval="$with_gnu_ld" 2968 test "$withval" = no || with_gnu_ld=yes 2969else 2970 with_gnu_ld=no 2971fi; 2972ac_prog=ld 2973if test "$GCC" = yes; then 2974 # Check if gcc -print-prog-name=ld gives a path. 2975 echo "$as_me:$LINENO: checking for ld used by GCC" >&5 2976echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 2977 case $host in 2978 *-*-mingw*) 2979 # gcc leaves a trailing carriage return which upsets mingw 2980 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 2981 *) 2982 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 2983 esac 2984 case $ac_prog in 2985 # Accept absolute paths. 2986 [\\/]* | [A-Za-z]:[\\/]*) 2987 re_direlt='/[^/][^/]*/\.\./' 2988 # Canonicalize the path of ld 2989 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 2990 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 2991 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 2992 done 2993 test -z "$LD" && LD="$ac_prog" 2994 ;; 2995 "") 2996 # If it fails, then pretend we aren't using GCC. 2997 ac_prog=ld 2998 ;; 2999 *) 3000 # If it is relative, then search for the first ld in PATH. 3001 with_gnu_ld=unknown 3002 ;; 3003 esac 3004elif test "$with_gnu_ld" = yes; then 3005 echo "$as_me:$LINENO: checking for GNU ld" >&5 3006echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 3007else 3008 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3009echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 3010fi 3011if test "${lt_cv_path_LD+set}" = set; then 3012 echo $ECHO_N "(cached) $ECHO_C" >&6 3013else 3014 if test -z "$LD"; then 3015 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3016 for ac_dir in $PATH; do 3017 test -z "$ac_dir" && ac_dir=. 3018 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3019 lt_cv_path_LD="$ac_dir/$ac_prog" 3020 # Check to see if the program is GNU ld. I'd rather use --version, 3021 # but apparently some GNU ld's only accept -v. 3022 # Break only if it was the GNU/non-GNU ld that we prefer. 3023 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 3024 test "$with_gnu_ld" != no && break 3025 else 3026 test "$with_gnu_ld" != yes && break 3027 fi 3028 fi 3029 done 3030 IFS="$ac_save_ifs" 3031else 3032 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3033fi 3034fi 3035 3036LD="$lt_cv_path_LD" 3037if test -n "$LD"; then 3038 echo "$as_me:$LINENO: result: $LD" >&5 3039echo "${ECHO_T}$LD" >&6 3040else 3041 echo "$as_me:$LINENO: result: no" >&5 3042echo "${ECHO_T}no" >&6 3043fi 3044test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3045echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3046 { (exit 1); exit 1; }; } 3047echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3048echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 3049if test "${lt_cv_prog_gnu_ld+set}" = set; then 3050 echo $ECHO_N "(cached) $ECHO_C" >&6 3051else 3052 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 3053if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 3054 lt_cv_prog_gnu_ld=yes 3055else 3056 lt_cv_prog_gnu_ld=no 3057fi 3058fi 3059echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3060echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 3061with_gnu_ld=$lt_cv_prog_gnu_ld 3062 3063 3064echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3065echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 3066if test "${lt_cv_ld_reload_flag+set}" = set; then 3067 echo $ECHO_N "(cached) $ECHO_C" >&6 3068else 3069 lt_cv_ld_reload_flag='-r' 3070fi 3071echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 3072echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 3073reload_flag=$lt_cv_ld_reload_flag 3074test -n "$reload_flag" && reload_flag=" $reload_flag" 3075 3076echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 3077echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 3078if test "${lt_cv_path_NM+set}" = set; then 3079 echo $ECHO_N "(cached) $ECHO_C" >&6 3080else 3081 if test -n "$NM"; then 3082 # Let the user override the test. 3083 lt_cv_path_NM="$NM" 3084else 3085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3086 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 3087 test -z "$ac_dir" && ac_dir=. 3088 tmp_nm=$ac_dir/${ac_tool_prefix}nm 3089 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then 3090 # Check to see if the nm accepts a BSD-compat flag. 3091 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3092 # nm: unknown option "B" ignored 3093 # Tru64's nm complains that /dev/null is an invalid object file 3094 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then 3095 lt_cv_path_NM="$tmp_nm -B" 3096 break 3097 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 3098 lt_cv_path_NM="$tmp_nm -p" 3099 break 3100 else 3101 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3102 continue # so that we can try to find one that supports BSD flags 3103 fi 3104 fi 3105 done 3106 IFS="$ac_save_ifs" 3107 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3108fi 3109fi 3110 3111NM="$lt_cv_path_NM" 3112echo "$as_me:$LINENO: result: $NM" >&5 3113echo "${ECHO_T}$NM" >&6 3114 3115echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 3116echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 3117if test "${lt_cv_deplibs_check_method+set}" = set; then 3118 echo $ECHO_N "(cached) $ECHO_C" >&6 3119else 3120 lt_cv_file_magic_cmd='$MAGIC_CMD' 3121lt_cv_file_magic_test_file= 3122lt_cv_deplibs_check_method='unknown' 3123# Need to set the preceding variable on all platforms that support 3124# interlibrary dependencies. 3125# 'none' -- dependencies not supported. 3126# `unknown' -- same as none, but documents that we really don't know. 3127# 'pass_all' -- all dependencies passed with no checks. 3128# 'test_compile' -- check by making test program. 3129# 'file_magic [[regex]]' -- check by looking for files in library path 3130# which responds to the $file_magic_cmd with a given egrep regex. 3131# If you have `file' or equivalent on your system and you're not sure 3132# whether `pass_all' will *always* work, you probably want this one. 3133 3134case $host_os in 3135aix4* | aix5*) 3136 lt_cv_deplibs_check_method=pass_all 3137 ;; 3138 3139beos*) 3140 lt_cv_deplibs_check_method=pass_all 3141 ;; 3142 3143bsdi4*) 3144 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 3145 lt_cv_file_magic_cmd='/usr/bin/file -L' 3146 lt_cv_file_magic_test_file=/shlib/libc.so 3147 ;; 3148 3149cygwin* | mingw* | pw32*) 3150 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3151 lt_cv_file_magic_cmd='$OBJDUMP -f' 3152 ;; 3153 3154darwin* | rhapsody*) 3155 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' 3156 lt_cv_file_magic_cmd='/usr/bin/file -L' 3157 case "$host_os" in 3158 rhapsody* | darwin1.[012]) 3159 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` 3160 ;; 3161 *) # Darwin 1.3 on 3162 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' 3163 ;; 3164 esac 3165 ;; 3166 3167freebsd*) 3168 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3169 case $host_cpu in 3170 i*86 ) 3171 # Not sure whether the presence of OpenBSD here was a mistake. 3172 # Let's accept both of them until this is cleared up. 3173 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' 3174 lt_cv_file_magic_cmd=/usr/bin/file 3175 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3176 ;; 3177 esac 3178 else 3179 lt_cv_deplibs_check_method=pass_all 3180 fi 3181 ;; 3182 3183gnu*) 3184 lt_cv_deplibs_check_method=pass_all 3185 ;; 3186 3187hpux10.20*|hpux11*) 3188 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 3189 lt_cv_file_magic_cmd=/usr/bin/file 3190 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3191 ;; 3192 3193irix5* | irix6*) 3194 case $host_os in 3195 irix5*) 3196 # this will be overridden with pass_all, but let us keep it just in case 3197 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" 3198 ;; 3199 *) 3200 case $LD in 3201 *-32|*"-32 ") libmagic=32-bit;; 3202 *-n32|*"-n32 ") libmagic=N32;; 3203 *-64|*"-64 ") libmagic=64-bit;; 3204 *) libmagic=never-match;; 3205 esac 3206 # this will be overridden with pass_all, but let us keep it just in case 3207 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" 3208 ;; 3209 esac 3210 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` 3211 lt_cv_deplibs_check_method=pass_all 3212 ;; 3213 3214# This must be Linux ELF. 3215linux-gnu*) 3216 case $host_cpu in 3217 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* ) 3218 lt_cv_deplibs_check_method=pass_all ;; 3219 *) 3220 # glibc up to 2.1.1 does not perform some relocations on ARM 3221 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; 3222 esac 3223 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` 3224 ;; 3225 3226netbsd*) 3227 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3228 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' 3229 else 3230 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' 3231 fi 3232 ;; 3233 3234newos6*) 3235 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 3236 lt_cv_file_magic_cmd=/usr/bin/file 3237 lt_cv_file_magic_test_file=/usr/lib/libnls.so 3238 ;; 3239 3240openbsd*) 3241 lt_cv_file_magic_cmd=/usr/bin/file 3242 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3243 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3244 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' 3245 else 3246 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' 3247 fi 3248 ;; 3249 3250osf3* | osf4* | osf5*) 3251 # this will be overridden with pass_all, but let us keep it just in case 3252 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' 3253 lt_cv_file_magic_test_file=/shlib/libc.so 3254 lt_cv_deplibs_check_method=pass_all 3255 ;; 3256 3257sco3.2v5*) 3258 lt_cv_deplibs_check_method=pass_all 3259 ;; 3260 3261solaris*) 3262 lt_cv_deplibs_check_method=pass_all 3263 lt_cv_file_magic_test_file=/lib/libc.so 3264 ;; 3265 3266sysv5uw[78]* | sysv4*uw2*) 3267 lt_cv_deplibs_check_method=pass_all 3268 ;; 3269 3270sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 3271 case $host_vendor in 3272 motorola) 3273 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' 3274 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3275 ;; 3276 ncr) 3277 lt_cv_deplibs_check_method=pass_all 3278 ;; 3279 sequent) 3280 lt_cv_file_magic_cmd='/bin/file' 3281 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 3282 ;; 3283 sni) 3284 lt_cv_file_magic_cmd='/bin/file' 3285 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 3286 lt_cv_file_magic_test_file=/lib/libc.so 3287 ;; 3288 esac 3289 ;; 3290esac 3291 3292fi 3293echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 3294echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 3295file_magic_cmd=$lt_cv_file_magic_cmd 3296deplibs_check_method=$lt_cv_deplibs_check_method 3297 3298 3299 3300 3301 3302 3303 3304 3305# Check for command to grab the raw symbol name followed by C symbol from nm. 3306echo "$as_me:$LINENO: checking command to parse $NM output" >&5 3307echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6 3308if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 3309 echo $ECHO_N "(cached) $ECHO_C" >&6 3310else 3311 3312# These are sane defaults that work on at least a few old systems. 3313# [They come from Ultrix. What could be older than Ultrix?!! ;)] 3314 3315# Character class describing NM global symbol codes. 3316symcode='[BCDEGRST]' 3317 3318# Regexp to match symbols that can be accessed directly from C. 3319sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 3320 3321# Transform the above into a raw symbol and a C symbol. 3322symxfrm='\1 \2\3 \3' 3323 3324# Transform an extracted symbol line into a proper C declaration 3325lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" 3326 3327# Transform an extracted symbol line into symbol name and symbol address 3328lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 3329 3330# Define system-specific variables. 3331case $host_os in 3332aix*) 3333 symcode='[BCDT]' 3334 ;; 3335cygwin* | mingw* | pw32*) 3336 symcode='[ABCDGISTW]' 3337 ;; 3338hpux*) # Its linker distinguishes data from code symbols 3339 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 3340 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 3341 ;; 3342irix*) 3343 symcode='[BCDEGRST]' 3344 ;; 3345solaris* | sysv5*) 3346 symcode='[BDT]' 3347 ;; 3348sysv4) 3349 symcode='[DFNSTU]' 3350 ;; 3351esac 3352 3353# Handle CRLF in mingw tool chain 3354opt_cr= 3355case $host_os in 3356mingw*) 3357 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 3358 ;; 3359esac 3360 3361# If we're using GNU nm, then use its standard symbol codes. 3362if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then 3363 symcode='[ABCDGISTW]' 3364fi 3365 3366# Try without a prefix undercore, then with it. 3367for ac_symprfx in "" "_"; do 3368 3369 # Write the raw and C identifiers. 3370lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" 3371 3372 # Check to see that the pipe works correctly. 3373 pipe_works=no 3374 rm -f conftest* 3375 cat > conftest.$ac_ext <<EOF 3376#ifdef __cplusplus 3377extern "C" { 3378#endif 3379char nm_test_var; 3380void nm_test_func(){} 3381#ifdef __cplusplus 3382} 3383#endif 3384int main(){nm_test_var='a';nm_test_func();return(0);} 3385EOF 3386 3387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3388 (eval $ac_compile) 2>&5 3389 ac_status=$? 3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3391 (exit $ac_status); }; then 3392 # Now try to grab the symbols. 3393 nlist=conftest.nm 3394 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 3395 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 3396 ac_status=$? 3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3398 (exit $ac_status); } && test -s "$nlist"; then 3399 # Try sorting and uniquifying the output. 3400 if sort "$nlist" | uniq > "$nlist"T; then 3401 mv -f "$nlist"T "$nlist" 3402 else 3403 rm -f "$nlist"T 3404 fi 3405 3406 # Make sure that we snagged all the symbols we need. 3407 if egrep ' nm_test_var$' "$nlist" >/dev/null; then 3408 if egrep ' nm_test_func$' "$nlist" >/dev/null; then 3409 cat <<EOF > conftest.$ac_ext 3410#ifdef __cplusplus 3411extern "C" { 3412#endif 3413 3414EOF 3415 # Now generate the symbol file. 3416 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' 3417 3418 cat <<EOF >> conftest.$ac_ext 3419#if defined (__STDC__) && __STDC__ 3420# define lt_ptr void * 3421#else 3422# define lt_ptr char * 3423# define const 3424#endif 3425 3426/* The mapping between symbol names and symbols. */ 3427const struct { 3428 const char *name; 3429 lt_ptr address; 3430} 3431lt_preloaded_symbols[] = 3432{ 3433EOF 3434 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext 3435 cat <<\EOF >> conftest.$ac_ext 3436 {0, (lt_ptr) 0} 3437}; 3438 3439#ifdef __cplusplus 3440} 3441#endif 3442EOF 3443 # Now try linking the two files. 3444 mv conftest.$ac_objext conftstm.$ac_objext 3445 save_LIBS="$LIBS" 3446 save_CFLAGS="$CFLAGS" 3447 LIBS="conftstm.$ac_objext" 3448 CFLAGS="$CFLAGS$no_builtin_flag" 3449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3450 (eval $ac_link) 2>&5 3451 ac_status=$? 3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3453 (exit $ac_status); } && test -s conftest; then 3454 pipe_works=yes 3455 fi 3456 LIBS="$save_LIBS" 3457 CFLAGS="$save_CFLAGS" 3458 else 3459 echo "cannot find nm_test_func in $nlist" >&5 3460 fi 3461 else 3462 echo "cannot find nm_test_var in $nlist" >&5 3463 fi 3464 else 3465 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 3466 fi 3467 else 3468 echo "$progname: failed program was:" >&5 3469 cat conftest.$ac_ext >&5 3470 fi 3471 rm -f conftest* conftst* 3472 3473 # Do not use the global_symbol_pipe unless it works. 3474 if test "$pipe_works" = yes; then 3475 break 3476 else 3477 lt_cv_sys_global_symbol_pipe= 3478 fi 3479done 3480 3481fi 3482 3483global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" 3484if test -z "$lt_cv_sys_global_symbol_pipe"; then 3485 global_symbol_to_cdecl= 3486 global_symbol_to_c_name_address= 3487else 3488 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" 3489 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address" 3490fi 3491if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address"; 3492then 3493 echo "$as_me:$LINENO: result: failed" >&5 3494echo "${ECHO_T}failed" >&6 3495else 3496 echo "$as_me:$LINENO: result: ok" >&5 3497echo "${ECHO_T}ok" >&6 3498fi 3499 3500ac_ext=c 3501ac_cpp='$CPP $CPPFLAGS' 3502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3504ac_compiler_gnu=$ac_cv_c_compiler_gnu 3505echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3506echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3507# On Suns, sometimes $CPP names a directory. 3508if test -n "$CPP" && test -d "$CPP"; then 3509 CPP= 3510fi 3511if test -z "$CPP"; then 3512 if test "${ac_cv_prog_CPP+set}" = set; then 3513 echo $ECHO_N "(cached) $ECHO_C" >&6 3514else 3515 # Double quotes because CPP needs to be expanded 3516 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3517 do 3518 ac_preproc_ok=false 3519for ac_c_preproc_warn_flag in '' yes 3520do 3521 # Use a header file that comes with gcc, so configuring glibc 3522 # with a fresh cross-compiler works. 3523 # On the NeXT, cc -E runs the code through the compiler's parser, 3524 # not just through cpp. "Syntax error" is here to catch this case. 3525 cat >conftest.$ac_ext <<_ACEOF 3526#line $LINENO "configure" 3527#include "confdefs.h" 3528#include <assert.h> 3529 Syntax error 3530_ACEOF 3531if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3532 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3533 ac_status=$? 3534 egrep -v '^ *\+' conftest.er1 >conftest.err 3535 rm -f conftest.er1 3536 cat conftest.err >&5 3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3538 (exit $ac_status); } >/dev/null; then 3539 if test -s conftest.err; then 3540 ac_cpp_err=$ac_c_preproc_warn_flag 3541 else 3542 ac_cpp_err= 3543 fi 3544else 3545 ac_cpp_err=yes 3546fi 3547if test -z "$ac_cpp_err"; then 3548 : 3549else 3550 echo "$as_me: failed program was:" >&5 3551 cat conftest.$ac_ext >&5 3552 # Broken: fails on valid input. 3553continue 3554fi 3555rm -f conftest.err conftest.$ac_ext 3556 3557 # OK, works on sane cases. Now check whether non-existent headers 3558 # can be detected and how. 3559 cat >conftest.$ac_ext <<_ACEOF 3560#line $LINENO "configure" 3561#include "confdefs.h" 3562#include <ac_nonexistent.h> 3563_ACEOF 3564if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3565 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3566 ac_status=$? 3567 egrep -v '^ *\+' conftest.er1 >conftest.err 3568 rm -f conftest.er1 3569 cat conftest.err >&5 3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3571 (exit $ac_status); } >/dev/null; then 3572 if test -s conftest.err; then 3573 ac_cpp_err=$ac_c_preproc_warn_flag 3574 else 3575 ac_cpp_err= 3576 fi 3577else 3578 ac_cpp_err=yes 3579fi 3580if test -z "$ac_cpp_err"; then 3581 # Broken: success on invalid input. 3582continue 3583else 3584 echo "$as_me: failed program was:" >&5 3585 cat conftest.$ac_ext >&5 3586 # Passes both tests. 3587ac_preproc_ok=: 3588break 3589fi 3590rm -f conftest.err conftest.$ac_ext 3591 3592done 3593# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3594rm -f conftest.err conftest.$ac_ext 3595if $ac_preproc_ok; then 3596 break 3597fi 3598 3599 done 3600 ac_cv_prog_CPP=$CPP 3601 3602fi 3603 CPP=$ac_cv_prog_CPP 3604else 3605 ac_cv_prog_CPP=$CPP 3606fi 3607echo "$as_me:$LINENO: result: $CPP" >&5 3608echo "${ECHO_T}$CPP" >&6 3609ac_preproc_ok=false 3610for ac_c_preproc_warn_flag in '' yes 3611do 3612 # Use a header file that comes with gcc, so configuring glibc 3613 # with a fresh cross-compiler works. 3614 # On the NeXT, cc -E runs the code through the compiler's parser, 3615 # not just through cpp. "Syntax error" is here to catch this case. 3616 cat >conftest.$ac_ext <<_ACEOF 3617#line $LINENO "configure" 3618#include "confdefs.h" 3619#include <assert.h> 3620 Syntax error 3621_ACEOF 3622if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3623 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3624 ac_status=$? 3625 egrep -v '^ *\+' conftest.er1 >conftest.err 3626 rm -f conftest.er1 3627 cat conftest.err >&5 3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3629 (exit $ac_status); } >/dev/null; then 3630 if test -s conftest.err; then 3631 ac_cpp_err=$ac_c_preproc_warn_flag 3632 else 3633 ac_cpp_err= 3634 fi 3635else 3636 ac_cpp_err=yes 3637fi 3638if test -z "$ac_cpp_err"; then 3639 : 3640else 3641 echo "$as_me: failed program was:" >&5 3642 cat conftest.$ac_ext >&5 3643 # Broken: fails on valid input. 3644continue 3645fi 3646rm -f conftest.err conftest.$ac_ext 3647 3648 # OK, works on sane cases. Now check whether non-existent headers 3649 # can be detected and how. 3650 cat >conftest.$ac_ext <<_ACEOF 3651#line $LINENO "configure" 3652#include "confdefs.h" 3653#include <ac_nonexistent.h> 3654_ACEOF 3655if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3656 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3657 ac_status=$? 3658 egrep -v '^ *\+' conftest.er1 >conftest.err 3659 rm -f conftest.er1 3660 cat conftest.err >&5 3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3662 (exit $ac_status); } >/dev/null; then 3663 if test -s conftest.err; then 3664 ac_cpp_err=$ac_c_preproc_warn_flag 3665 else 3666 ac_cpp_err= 3667 fi 3668else 3669 ac_cpp_err=yes 3670fi 3671if test -z "$ac_cpp_err"; then 3672 # Broken: success on invalid input. 3673continue 3674else 3675 echo "$as_me: failed program was:" >&5 3676 cat conftest.$ac_ext >&5 3677 # Passes both tests. 3678ac_preproc_ok=: 3679break 3680fi 3681rm -f conftest.err conftest.$ac_ext 3682 3683done 3684# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3685rm -f conftest.err conftest.$ac_ext 3686if $ac_preproc_ok; then 3687 : 3688else 3689 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 3690echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} 3691 { (exit 1); exit 1; }; } 3692fi 3693 3694ac_ext=c 3695ac_cpp='$CPP $CPPFLAGS' 3696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3698ac_compiler_gnu=$ac_cv_c_compiler_gnu 3699 3700 3701echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3702echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3703if test "${ac_cv_header_stdc+set}" = set; then 3704 echo $ECHO_N "(cached) $ECHO_C" >&6 3705else 3706 cat >conftest.$ac_ext <<_ACEOF 3707#line $LINENO "configure" 3708#include "confdefs.h" 3709#include <stdlib.h> 3710#include <stdarg.h> 3711#include <string.h> 3712#include <float.h> 3713 3714_ACEOF 3715if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3716 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3717 ac_status=$? 3718 egrep -v '^ *\+' conftest.er1 >conftest.err 3719 rm -f conftest.er1 3720 cat conftest.err >&5 3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3722 (exit $ac_status); } >/dev/null; then 3723 if test -s conftest.err; then 3724 ac_cpp_err=$ac_c_preproc_warn_flag 3725 else 3726 ac_cpp_err= 3727 fi 3728else 3729 ac_cpp_err=yes 3730fi 3731if test -z "$ac_cpp_err"; then 3732 ac_cv_header_stdc=yes 3733else 3734 echo "$as_me: failed program was:" >&5 3735 cat conftest.$ac_ext >&5 3736 ac_cv_header_stdc=no 3737fi 3738rm -f conftest.err conftest.$ac_ext 3739 3740if test $ac_cv_header_stdc = yes; then 3741 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3742 cat >conftest.$ac_ext <<_ACEOF 3743#line $LINENO "configure" 3744#include "confdefs.h" 3745#include <string.h> 3746 3747_ACEOF 3748if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3749 egrep "memchr" >/dev/null 2>&1; then 3750 : 3751else 3752 ac_cv_header_stdc=no 3753fi 3754rm -f conftest* 3755 3756fi 3757 3758if test $ac_cv_header_stdc = yes; then 3759 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3760 cat >conftest.$ac_ext <<_ACEOF 3761#line $LINENO "configure" 3762#include "confdefs.h" 3763#include <stdlib.h> 3764 3765_ACEOF 3766if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3767 egrep "free" >/dev/null 2>&1; then 3768 : 3769else 3770 ac_cv_header_stdc=no 3771fi 3772rm -f conftest* 3773 3774fi 3775 3776if test $ac_cv_header_stdc = yes; then 3777 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3778 if test "$cross_compiling" = yes; then 3779 : 3780else 3781 cat >conftest.$ac_ext <<_ACEOF 3782#line $LINENO "configure" 3783#include "confdefs.h" 3784#include <ctype.h> 3785#if ((' ' & 0x0FF) == 0x020) 3786# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3787# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3788#else 3789# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 3790 || ('j' <= (c) && (c) <= 'r') \ 3791 || ('s' <= (c) && (c) <= 'z')) 3792# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3793#endif 3794 3795#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3796int 3797main () 3798{ 3799 int i; 3800 for (i = 0; i < 256; i++) 3801 if (XOR (islower (i), ISLOWER (i)) 3802 || toupper (i) != TOUPPER (i)) 3803 exit(2); 3804 exit (0); 3805} 3806_ACEOF 3807rm -f conftest$ac_exeext 3808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3809 (eval $ac_link) 2>&5 3810 ac_status=$? 3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3812 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3814 (eval $ac_try) 2>&5 3815 ac_status=$? 3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3817 (exit $ac_status); }; }; then 3818 : 3819else 3820 echo "$as_me: program exited with status $ac_status" >&5 3821echo "$as_me: failed program was:" >&5 3822cat conftest.$ac_ext >&5 3823( exit $ac_status ) 3824ac_cv_header_stdc=no 3825fi 3826rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3827fi 3828fi 3829fi 3830echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3831echo "${ECHO_T}$ac_cv_header_stdc" >&6 3832if test $ac_cv_header_stdc = yes; then 3833 3834cat >>confdefs.h <<\_ACEOF 3835#define STDC_HEADERS 1 3836_ACEOF 3837 3838fi 3839 3840# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3851 inttypes.h stdint.h unistd.h 3852do 3853as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3854echo "$as_me:$LINENO: checking for $ac_header" >&5 3855echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3856if eval "test \"\${$as_ac_Header+set}\" = set"; then 3857 echo $ECHO_N "(cached) $ECHO_C" >&6 3858else 3859 cat >conftest.$ac_ext <<_ACEOF 3860#line $LINENO "configure" 3861#include "confdefs.h" 3862$ac_includes_default 3863 3864#include <$ac_header> 3865_ACEOF 3866rm -f conftest.$ac_objext 3867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3868 (eval $ac_compile) 2>&5 3869 ac_status=$? 3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3871 (exit $ac_status); } && 3872 { ac_try='test -s conftest.$ac_objext' 3873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3874 (eval $ac_try) 2>&5 3875 ac_status=$? 3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3877 (exit $ac_status); }; }; then 3878 eval "$as_ac_Header=yes" 3879else 3880 echo "$as_me: failed program was:" >&5 3881cat conftest.$ac_ext >&5 3882eval "$as_ac_Header=no" 3883fi 3884rm -f conftest.$ac_objext conftest.$ac_ext 3885fi 3886echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3887echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3888if test `eval echo '${'$as_ac_Header'}'` = yes; then 3889 cat >>confdefs.h <<_ACEOF 3890#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3891_ACEOF 3892 3893fi 3894 3895done 3896 3897 3898 3899for ac_header in dlfcn.h 3900do 3901as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3902if eval "test \"\${$as_ac_Header+set}\" = set"; then 3903 echo "$as_me:$LINENO: checking for $ac_header" >&5 3904echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3905if eval "test \"\${$as_ac_Header+set}\" = set"; then 3906 echo $ECHO_N "(cached) $ECHO_C" >&6 3907fi 3908echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3909echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3910else 3911 # Is the header compilable? 3912echo "$as_me:$LINENO: checking $ac_header usability" >&5 3913echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 3914cat >conftest.$ac_ext <<_ACEOF 3915#line $LINENO "configure" 3916#include "confdefs.h" 3917$ac_includes_default 3918#include <$ac_header> 3919_ACEOF 3920rm -f conftest.$ac_objext 3921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3922 (eval $ac_compile) 2>&5 3923 ac_status=$? 3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3925 (exit $ac_status); } && 3926 { ac_try='test -s conftest.$ac_objext' 3927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3928 (eval $ac_try) 2>&5 3929 ac_status=$? 3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3931 (exit $ac_status); }; }; then 3932 ac_header_compiler=yes 3933else 3934 echo "$as_me: failed program was:" >&5 3935cat conftest.$ac_ext >&5 3936ac_header_compiler=no 3937fi 3938rm -f conftest.$ac_objext conftest.$ac_ext 3939echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3940echo "${ECHO_T}$ac_header_compiler" >&6 3941 3942# Is the header present? 3943echo "$as_me:$LINENO: checking $ac_header presence" >&5 3944echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 3945cat >conftest.$ac_ext <<_ACEOF 3946#line $LINENO "configure" 3947#include "confdefs.h" 3948#include <$ac_header> 3949_ACEOF 3950if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3951 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3952 ac_status=$? 3953 egrep -v '^ *\+' conftest.er1 >conftest.err 3954 rm -f conftest.er1 3955 cat conftest.err >&5 3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3957 (exit $ac_status); } >/dev/null; then 3958 if test -s conftest.err; then 3959 ac_cpp_err=$ac_c_preproc_warn_flag 3960 else 3961 ac_cpp_err= 3962 fi 3963else 3964 ac_cpp_err=yes 3965fi 3966if test -z "$ac_cpp_err"; then 3967 ac_header_preproc=yes 3968else 3969 echo "$as_me: failed program was:" >&5 3970 cat conftest.$ac_ext >&5 3971 ac_header_preproc=no 3972fi 3973rm -f conftest.err conftest.$ac_ext 3974echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3975echo "${ECHO_T}$ac_header_preproc" >&6 3976 3977# So? What about this header? 3978case $ac_header_compiler:$ac_header_preproc in 3979 yes:no ) 3980 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3981echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3983echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 3984 no:yes ) 3985 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3986echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3987 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3988echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3990echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 3991esac 3992echo "$as_me:$LINENO: checking for $ac_header" >&5 3993echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3994if eval "test \"\${$as_ac_Header+set}\" = set"; then 3995 echo $ECHO_N "(cached) $ECHO_C" >&6 3996else 3997 eval "$as_ac_Header=$ac_header_preproc" 3998fi 3999echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4000echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4001 4002fi 4003if test `eval echo '${'$as_ac_Header'}'` = yes; then 4004 cat >>confdefs.h <<_ACEOF 4005#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4006_ACEOF 4007 4008fi 4009 4010done 4011 4012 4013 4014 4015 4016# Only perform the check for file, if the check method requires it 4017case $deplibs_check_method in 4018file_magic*) 4019 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 4020 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 4021echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 4022if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 4023 echo $ECHO_N "(cached) $ECHO_C" >&6 4024else 4025 case $MAGIC_CMD in 4026 /*) 4027 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 4028 ;; 4029 ?:/*) 4030 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. 4031 ;; 4032 *) 4033 ac_save_MAGIC_CMD="$MAGIC_CMD" 4034 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4035 ac_dummy="/usr/bin:$PATH" 4036 for ac_dir in $ac_dummy; do 4037 test -z "$ac_dir" && ac_dir=. 4038 if test -f $ac_dir/${ac_tool_prefix}file; then 4039 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 4040 if test -n "$file_magic_test_file"; then 4041 case $deplibs_check_method in 4042 "file_magic "*) 4043 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 4044 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 4045 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 4046 egrep "$file_magic_regex" > /dev/null; then 4047 : 4048 else 4049 cat <<EOF 1>&2 4050 4051*** Warning: the command libtool uses to detect shared libraries, 4052*** $file_magic_cmd, produces output that libtool cannot recognize. 4053*** The result is that libtool may fail to recognize shared libraries 4054*** as such. This will affect the creation of libtool libraries that 4055*** depend on shared libraries, but programs linked with such libtool 4056*** libraries will work regardless of this problem. Nevertheless, you 4057*** may want to report the problem to your system manager and/or to 4058*** bug-libtool@gnu.org 4059 4060EOF 4061 fi ;; 4062 esac 4063 fi 4064 break 4065 fi 4066 done 4067 IFS="$ac_save_ifs" 4068 MAGIC_CMD="$ac_save_MAGIC_CMD" 4069 ;; 4070esac 4071fi 4072 4073MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 4074if test -n "$MAGIC_CMD"; then 4075 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 4076echo "${ECHO_T}$MAGIC_CMD" >&6 4077else 4078 echo "$as_me:$LINENO: result: no" >&5 4079echo "${ECHO_T}no" >&6 4080fi 4081 4082if test -z "$lt_cv_path_MAGIC_CMD"; then 4083 if test -n "$ac_tool_prefix"; then 4084 echo "$as_me:$LINENO: checking for file" >&5 4085echo $ECHO_N "checking for file... $ECHO_C" >&6 4086if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 4087 echo $ECHO_N "(cached) $ECHO_C" >&6 4088else 4089 case $MAGIC_CMD in 4090 /*) 4091 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 4092 ;; 4093 ?:/*) 4094 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. 4095 ;; 4096 *) 4097 ac_save_MAGIC_CMD="$MAGIC_CMD" 4098 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4099 ac_dummy="/usr/bin:$PATH" 4100 for ac_dir in $ac_dummy; do 4101 test -z "$ac_dir" && ac_dir=. 4102 if test -f $ac_dir/file; then 4103 lt_cv_path_MAGIC_CMD="$ac_dir/file" 4104 if test -n "$file_magic_test_file"; then 4105 case $deplibs_check_method in 4106 "file_magic "*) 4107 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 4108 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 4109 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 4110 egrep "$file_magic_regex" > /dev/null; then 4111 : 4112 else 4113 cat <<EOF 1>&2 4114 4115*** Warning: the command libtool uses to detect shared libraries, 4116*** $file_magic_cmd, produces output that libtool cannot recognize. 4117*** The result is that libtool may fail to recognize shared libraries 4118*** as such. This will affect the creation of libtool libraries that 4119*** depend on shared libraries, but programs linked with such libtool 4120*** libraries will work regardless of this problem. Nevertheless, you 4121*** may want to report the problem to your system manager and/or to 4122*** bug-libtool@gnu.org 4123 4124EOF 4125 fi ;; 4126 esac 4127 fi 4128 break 4129 fi 4130 done 4131 IFS="$ac_save_ifs" 4132 MAGIC_CMD="$ac_save_MAGIC_CMD" 4133 ;; 4134esac 4135fi 4136 4137MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 4138if test -n "$MAGIC_CMD"; then 4139 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 4140echo "${ECHO_T}$MAGIC_CMD" >&6 4141else 4142 echo "$as_me:$LINENO: result: no" >&5 4143echo "${ECHO_T}no" >&6 4144fi 4145 4146 else 4147 MAGIC_CMD=: 4148 fi 4149fi 4150 4151 fi 4152 ;; 4153esac 4154 4155if test -n "$ac_tool_prefix"; then 4156 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4157set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4158echo "$as_me:$LINENO: checking for $ac_word" >&5 4159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4160if test "${ac_cv_prog_RANLIB+set}" = set; then 4161 echo $ECHO_N "(cached) $ECHO_C" >&6 4162else 4163 if test -n "$RANLIB"; then 4164 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4165else 4166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4167for as_dir in $PATH 4168do 4169 IFS=$as_save_IFS 4170 test -z "$as_dir" && as_dir=. 4171 for ac_exec_ext in '' $ac_executable_extensions; do 4172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4173 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4175 break 2 4176 fi 4177done 4178done 4179 4180fi 4181fi 4182RANLIB=$ac_cv_prog_RANLIB 4183if test -n "$RANLIB"; then 4184 echo "$as_me:$LINENO: result: $RANLIB" >&5 4185echo "${ECHO_T}$RANLIB" >&6 4186else 4187 echo "$as_me:$LINENO: result: no" >&5 4188echo "${ECHO_T}no" >&6 4189fi 4190 4191fi 4192if test -z "$ac_cv_prog_RANLIB"; then 4193 ac_ct_RANLIB=$RANLIB 4194 # Extract the first word of "ranlib", so it can be a program name with args. 4195set dummy ranlib; ac_word=$2 4196echo "$as_me:$LINENO: checking for $ac_word" >&5 4197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4198if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 4199 echo $ECHO_N "(cached) $ECHO_C" >&6 4200else 4201 if test -n "$ac_ct_RANLIB"; then 4202 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4203else 4204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4205for as_dir in $PATH 4206do 4207 IFS=$as_save_IFS 4208 test -z "$as_dir" && as_dir=. 4209 for ac_exec_ext in '' $ac_executable_extensions; do 4210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4211 ac_cv_prog_ac_ct_RANLIB="ranlib" 4212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4213 break 2 4214 fi 4215done 4216done 4217 4218 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 4219fi 4220fi 4221ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4222if test -n "$ac_ct_RANLIB"; then 4223 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 4224echo "${ECHO_T}$ac_ct_RANLIB" >&6 4225else 4226 echo "$as_me:$LINENO: result: no" >&5 4227echo "${ECHO_T}no" >&6 4228fi 4229 4230 RANLIB=$ac_ct_RANLIB 4231else 4232 RANLIB="$ac_cv_prog_RANLIB" 4233fi 4234 4235if test -n "$ac_tool_prefix"; then 4236 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4237set dummy ${ac_tool_prefix}strip; ac_word=$2 4238echo "$as_me:$LINENO: checking for $ac_word" >&5 4239echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4240if test "${ac_cv_prog_STRIP+set}" = set; then 4241 echo $ECHO_N "(cached) $ECHO_C" >&6 4242else 4243 if test -n "$STRIP"; then 4244 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4245else 4246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4247for as_dir in $PATH 4248do 4249 IFS=$as_save_IFS 4250 test -z "$as_dir" && as_dir=. 4251 for ac_exec_ext in '' $ac_executable_extensions; do 4252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4253 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4255 break 2 4256 fi 4257done 4258done 4259 4260fi 4261fi 4262STRIP=$ac_cv_prog_STRIP 4263if test -n "$STRIP"; then 4264 echo "$as_me:$LINENO: result: $STRIP" >&5 4265echo "${ECHO_T}$STRIP" >&6 4266else 4267 echo "$as_me:$LINENO: result: no" >&5 4268echo "${ECHO_T}no" >&6 4269fi 4270 4271fi 4272if test -z "$ac_cv_prog_STRIP"; then 4273 ac_ct_STRIP=$STRIP 4274 # Extract the first word of "strip", so it can be a program name with args. 4275set dummy strip; ac_word=$2 4276echo "$as_me:$LINENO: checking for $ac_word" >&5 4277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4278if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 4279 echo $ECHO_N "(cached) $ECHO_C" >&6 4280else 4281 if test -n "$ac_ct_STRIP"; then 4282 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4283else 4284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4285for as_dir in $PATH 4286do 4287 IFS=$as_save_IFS 4288 test -z "$as_dir" && as_dir=. 4289 for ac_exec_ext in '' $ac_executable_extensions; do 4290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4291 ac_cv_prog_ac_ct_STRIP="strip" 4292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4293 break 2 4294 fi 4295done 4296done 4297 4298 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 4299fi 4300fi 4301ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4302if test -n "$ac_ct_STRIP"; then 4303 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 4304echo "${ECHO_T}$ac_ct_STRIP" >&6 4305else 4306 echo "$as_me:$LINENO: result: no" >&5 4307echo "${ECHO_T}no" >&6 4308fi 4309 4310 STRIP=$ac_ct_STRIP 4311else 4312 STRIP="$ac_cv_prog_STRIP" 4313fi 4314 4315 4316enable_dlopen=no 4317enable_win32_dll=no 4318 4319# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 4320if test "${enable_libtool_lock+set}" = set; then 4321 enableval="$enable_libtool_lock" 4322 4323fi; 4324test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4325 4326# Some flags need to be propagated to the compiler or linker for good 4327# libtool support. 4328case $host in 4329*-*-irix6*) 4330 # Find out which ABI we are using. 4331 echo '#line 4331 "configure"' > conftest.$ac_ext 4332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4333 (eval $ac_compile) 2>&5 4334 ac_status=$? 4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4336 (exit $ac_status); }; then 4337 case `/usr/bin/file conftest.$ac_objext` in 4338 *32-bit*) 4339 LD="${LD-ld} -32" 4340 ;; 4341 *N32*) 4342 LD="${LD-ld} -n32" 4343 ;; 4344 *64-bit*) 4345 LD="${LD-ld} -64" 4346 ;; 4347 esac 4348 fi 4349 rm -rf conftest* 4350 ;; 4351 4352*-*-sco3.2v5*) 4353 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4354 SAVE_CFLAGS="$CFLAGS" 4355 CFLAGS="$CFLAGS -belf" 4356 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4357echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 4358if test "${lt_cv_cc_needs_belf+set}" = set; then 4359 echo $ECHO_N "(cached) $ECHO_C" >&6 4360else 4361 4362 4363 ac_ext=c 4364ac_cpp='$CPP $CPPFLAGS' 4365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4367ac_compiler_gnu=$ac_cv_c_compiler_gnu 4368 4369 cat >conftest.$ac_ext <<_ACEOF 4370#line $LINENO "configure" 4371#include "confdefs.h" 4372 4373#ifdef F77_DUMMY_MAIN 4374# ifdef __cplusplus 4375 extern "C" 4376# endif 4377 int F77_DUMMY_MAIN() { return 1; } 4378#endif 4379int 4380main () 4381{ 4382 4383 ; 4384 return 0; 4385} 4386_ACEOF 4387rm -f conftest.$ac_objext conftest$ac_exeext 4388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4389 (eval $ac_link) 2>&5 4390 ac_status=$? 4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4392 (exit $ac_status); } && 4393 { ac_try='test -s conftest$ac_exeext' 4394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4395 (eval $ac_try) 2>&5 4396 ac_status=$? 4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4398 (exit $ac_status); }; }; then 4399 lt_cv_cc_needs_belf=yes 4400else 4401 echo "$as_me: failed program was:" >&5 4402cat conftest.$ac_ext >&5 4403lt_cv_cc_needs_belf=no 4404fi 4405rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4406 ac_ext=c 4407ac_cpp='$CPP $CPPFLAGS' 4408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4410ac_compiler_gnu=$ac_cv_c_compiler_gnu 4411 4412fi 4413echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4414echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 4415 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4416 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4417 CFLAGS="$SAVE_CFLAGS" 4418 fi 4419 ;; 4420 4421 4422esac 4423 4424# Sed substitution that helps us do robust quoting. It backslashifies 4425# metacharacters that are still active within double-quoted strings. 4426Xsed='sed -e s/^X//' 4427sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 4428 4429# Same as above, but do not quote variable references. 4430double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 4431 4432# Sed substitution to delay expansion of an escaped shell variable in a 4433# double_quote_subst'ed string. 4434delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4435 4436# Constants: 4437rm="rm -f" 4438 4439# Global variables: 4440default_ofile=libtool 4441can_build_shared=yes 4442 4443# All known linkers require a `.a' archive for static linking (except M$VC, 4444# which needs '.lib'). 4445libext=a 4446ltmain="$ac_aux_dir/ltmain.sh" 4447ofile="$default_ofile" 4448with_gnu_ld="$lt_cv_prog_gnu_ld" 4449need_locks="$enable_libtool_lock" 4450 4451old_CC="$CC" 4452old_CFLAGS="$CFLAGS" 4453 4454# Set sane defaults for various variables 4455test -z "$AR" && AR=ar 4456test -z "$AR_FLAGS" && AR_FLAGS=cru 4457test -z "$AS" && AS=as 4458test -z "$CC" && CC=cc 4459test -z "$DLLTOOL" && DLLTOOL=dlltool 4460test -z "$LD" && LD=ld 4461test -z "$LN_S" && LN_S="ln -s" 4462test -z "$MAGIC_CMD" && MAGIC_CMD=file 4463test -z "$NM" && NM=nm 4464test -z "$OBJDUMP" && OBJDUMP=objdump 4465test -z "$RANLIB" && RANLIB=: 4466test -z "$STRIP" && STRIP=: 4467test -z "$ac_objext" && ac_objext=o 4468 4469if test x"$host" != x"$build"; then 4470 ac_tool_prefix=${host_alias}- 4471else 4472 ac_tool_prefix= 4473fi 4474 4475# Transform linux* to *-*-linux-gnu*, to support old configure scripts. 4476case $host_os in 4477linux-gnu*) ;; 4478linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` 4479esac 4480 4481case $host_os in 4482aix3*) 4483 # AIX sometimes has problems with the GCC collect2 program. For some 4484 # reason, if we set the COLLECT_NAMES environment variable, the problems 4485 # vanish in a puff of smoke. 4486 if test "X${COLLECT_NAMES+set}" != Xset; then 4487 COLLECT_NAMES= 4488 export COLLECT_NAMES 4489 fi 4490 ;; 4491esac 4492 4493# Determine commands to create old-style static archives. 4494old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 4495old_postinstall_cmds='chmod 644 $oldlib' 4496old_postuninstall_cmds= 4497 4498if test -n "$RANLIB"; then 4499 case $host_os in 4500 openbsd*) 4501 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 4502 ;; 4503 *) 4504 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 4505 ;; 4506 esac 4507 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 4508fi 4509 4510# Allow CC to be a program name with arguments. 4511set dummy $CC 4512compiler="$2" 4513 4514echo "$as_me:$LINENO: checking for objdir" >&5 4515echo $ECHO_N "checking for objdir... $ECHO_C" >&6 4516rm -f .libs 2>/dev/null 4517mkdir .libs 2>/dev/null 4518if test -d .libs; then 4519 objdir=.libs 4520else 4521 # MS-DOS does not allow filenames that begin with a dot. 4522 objdir=_libs 4523fi 4524rmdir .libs 2>/dev/null 4525echo "$as_me:$LINENO: result: $objdir" >&5 4526echo "${ECHO_T}$objdir" >&6 4527 4528 4529 4530# Check whether --with-pic or --without-pic was given. 4531if test "${with_pic+set}" = set; then 4532 withval="$with_pic" 4533 pic_mode="$withval" 4534else 4535 pic_mode=default 4536fi; 4537test -z "$pic_mode" && pic_mode=default 4538 4539# We assume here that the value for lt_cv_prog_cc_pic will not be cached 4540# in isolation, and that seeing it set (from the cache) indicates that 4541# the associated values are set (in the cache) correctly too. 4542echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 4543echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 4544if test "${lt_cv_prog_cc_pic+set}" = set; then 4545 echo $ECHO_N "(cached) $ECHO_C" >&6 4546else 4547 lt_cv_prog_cc_pic= 4548 lt_cv_prog_cc_shlib= 4549 lt_cv_prog_cc_wl= 4550 lt_cv_prog_cc_static= 4551 lt_cv_prog_cc_no_builtin= 4552 lt_cv_prog_cc_can_build_shared=$can_build_shared 4553 4554 if test "$GCC" = yes; then 4555 lt_cv_prog_cc_wl='-Wl,' 4556 lt_cv_prog_cc_static='-static' 4557 4558 case $host_os in 4559 aix*) 4560 # Below there is a dirty hack to force normal static linking with -ldl 4561 # The problem is because libdl dynamically linked with both libc and 4562 # libC (AIX C++ library), which obviously doesn't included in libraries 4563 # list by gcc. This cause undefined symbols with -static flags. 4564 # This hack allows C programs to be linked with "-static -ldl", but 4565 # not sure about C++ programs. 4566 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" 4567 ;; 4568 amigaos*) 4569 # FIXME: we need at least 68020 code to build shared libraries, but 4570 # adding the `-m68020' flag to GCC prevents building anything better, 4571 # like `-m68040'. 4572 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' 4573 ;; 4574 beos* | irix5* | irix6* | osf3* | osf4* | osf5*) 4575 # PIC is the default for these OSes. 4576 ;; 4577 darwin* | rhapsody*) 4578 # PIC is the default on this platform 4579 # Common symbols not allowed in MH_DYLIB files 4580 lt_cv_prog_cc_pic='-fno-common' 4581 ;; 4582 cygwin* | mingw* | pw32* | os2*) 4583 # This hack is so that the source file can tell whether it is being 4584 # built for inclusion in a dll (and should export symbols for example). 4585 lt_cv_prog_cc_pic='-DDLL_EXPORT' 4586 ;; 4587 sysv4*MP*) 4588 if test -d /usr/nec; then 4589 lt_cv_prog_cc_pic=-Kconform_pic 4590 fi 4591 ;; 4592 *) 4593 lt_cv_prog_cc_pic='-fPIC' 4594 ;; 4595 esac 4596 else 4597 # PORTME Check for PIC flags for the system compiler. 4598 case $host_os in 4599 aix3* | aix4* | aix5*) 4600 lt_cv_prog_cc_wl='-Wl,' 4601 # All AIX code is PIC. 4602 if test "$host_cpu" = ia64; then 4603 # AIX 5 now supports IA64 processor 4604 lt_cv_prog_cc_static='-Bstatic' 4605 else 4606 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' 4607 fi 4608 ;; 4609 4610 hpux9* | hpux10* | hpux11*) 4611 # Is there a better lt_cv_prog_cc_static that works with the bundled CC? 4612 lt_cv_prog_cc_wl='-Wl,' 4613 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" 4614 lt_cv_prog_cc_pic='+Z' 4615 ;; 4616 4617 irix5* | irix6*) 4618 lt_cv_prog_cc_wl='-Wl,' 4619 lt_cv_prog_cc_static='-non_shared' 4620 # PIC (with -KPIC) is the default. 4621 ;; 4622 4623 cygwin* | mingw* | pw32* | os2*) 4624 # This hack is so that the source file can tell whether it is being 4625 # built for inclusion in a dll (and should export symbols for example). 4626 lt_cv_prog_cc_pic='-DDLL_EXPORT' 4627 ;; 4628 4629 newsos6) 4630 lt_cv_prog_cc_pic='-KPIC' 4631 lt_cv_prog_cc_static='-Bstatic' 4632 ;; 4633 4634 osf3* | osf4* | osf5*) 4635 # All OSF/1 code is PIC. 4636 lt_cv_prog_cc_wl='-Wl,' 4637 lt_cv_prog_cc_static='-non_shared' 4638 ;; 4639 4640 sco3.2v5*) 4641 lt_cv_prog_cc_pic='-Kpic' 4642 lt_cv_prog_cc_static='-dn' 4643 lt_cv_prog_cc_shlib='-belf' 4644 ;; 4645 4646 solaris*) 4647 lt_cv_prog_cc_pic='-KPIC' 4648 lt_cv_prog_cc_static='-Bstatic' 4649 lt_cv_prog_cc_wl='-Wl,' 4650 ;; 4651 4652 sunos4*) 4653 lt_cv_prog_cc_pic='-PIC' 4654 lt_cv_prog_cc_static='-Bstatic' 4655 lt_cv_prog_cc_wl='-Qoption ld ' 4656 ;; 4657 4658 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 4659 lt_cv_prog_cc_pic='-KPIC' 4660 lt_cv_prog_cc_static='-Bstatic' 4661 if test "x$host_vendor" = xsni; then 4662 lt_cv_prog_cc_wl='-LD' 4663 else 4664 lt_cv_prog_cc_wl='-Wl,' 4665 fi 4666 ;; 4667 4668 uts4*) 4669 lt_cv_prog_cc_pic='-pic' 4670 lt_cv_prog_cc_static='-Bstatic' 4671 ;; 4672 4673 sysv4*MP*) 4674 if test -d /usr/nec ;then 4675 lt_cv_prog_cc_pic='-Kconform_pic' 4676 lt_cv_prog_cc_static='-Bstatic' 4677 fi 4678 ;; 4679 4680 *) 4681 lt_cv_prog_cc_can_build_shared=no 4682 ;; 4683 esac 4684 fi 4685 4686fi 4687 4688if test -z "$lt_cv_prog_cc_pic"; then 4689 echo "$as_me:$LINENO: result: none" >&5 4690echo "${ECHO_T}none" >&6 4691else 4692 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5 4693echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6 4694 4695 # Check to make sure the pic_flag actually works. 4696 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5 4697echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6 4698 if test "${lt_cv_prog_cc_pic_works+set}" = set; then 4699 echo $ECHO_N "(cached) $ECHO_C" >&6 4700else 4701 save_CFLAGS="$CFLAGS" 4702 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" 4703 cat >conftest.$ac_ext <<_ACEOF 4704#line $LINENO "configure" 4705#include "confdefs.h" 4706 4707#ifdef F77_DUMMY_MAIN 4708# ifdef __cplusplus 4709 extern "C" 4710# endif 4711 int F77_DUMMY_MAIN() { return 1; } 4712#endif 4713int 4714main () 4715{ 4716 4717 ; 4718 return 0; 4719} 4720_ACEOF 4721rm -f conftest.$ac_objext 4722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4723 (eval $ac_compile) 2>&5 4724 ac_status=$? 4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4726 (exit $ac_status); } && 4727 { ac_try='test -s conftest.$ac_objext' 4728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4729 (eval $ac_try) 2>&5 4730 ac_status=$? 4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4732 (exit $ac_status); }; }; then 4733 case $host_os in 4734 hpux9* | hpux10* | hpux11*) 4735 # On HP-UX, both CC and GCC only warn that PIC is supported... then 4736 # they create non-PIC objects. So, if there were any warnings, we 4737 # assume that PIC is not supported. 4738 if test -s conftest.err; then 4739 lt_cv_prog_cc_pic_works=no 4740 else 4741 lt_cv_prog_cc_pic_works=yes 4742 fi 4743 ;; 4744 *) 4745 lt_cv_prog_cc_pic_works=yes 4746 ;; 4747 esac 4748 4749else 4750 echo "$as_me: failed program was:" >&5 4751cat conftest.$ac_ext >&5 4752 lt_cv_prog_cc_pic_works=no 4753 4754fi 4755rm -f conftest.$ac_objext conftest.$ac_ext 4756 CFLAGS="$save_CFLAGS" 4757 4758fi 4759 4760 4761 if test "X$lt_cv_prog_cc_pic_works" = Xno; then 4762 lt_cv_prog_cc_pic= 4763 lt_cv_prog_cc_can_build_shared=no 4764 else 4765 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" 4766 fi 4767 4768 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5 4769echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6 4770fi 4771 4772# Check for any special shared library compilation flags. 4773if test -n "$lt_cv_prog_cc_shlib"; then 4774 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5 4775echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;} 4776 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then : 4777 else 4778 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 4779echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 4780 lt_cv_prog_cc_can_build_shared=no 4781 fi 4782fi 4783 4784echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5 4785echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6 4786if test "${lt_cv_prog_cc_static_works+set}" = set; then 4787 echo $ECHO_N "(cached) $ECHO_C" >&6 4788else 4789 lt_cv_prog_cc_static_works=no 4790 save_LDFLAGS="$LDFLAGS" 4791 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" 4792 cat >conftest.$ac_ext <<_ACEOF 4793#line $LINENO "configure" 4794#include "confdefs.h" 4795 4796#ifdef F77_DUMMY_MAIN 4797# ifdef __cplusplus 4798 extern "C" 4799# endif 4800 int F77_DUMMY_MAIN() { return 1; } 4801#endif 4802int 4803main () 4804{ 4805 4806 ; 4807 return 0; 4808} 4809_ACEOF 4810rm -f conftest.$ac_objext conftest$ac_exeext 4811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4812 (eval $ac_link) 2>&5 4813 ac_status=$? 4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4815 (exit $ac_status); } && 4816 { ac_try='test -s conftest$ac_exeext' 4817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4818 (eval $ac_try) 2>&5 4819 ac_status=$? 4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4821 (exit $ac_status); }; }; then 4822 lt_cv_prog_cc_static_works=yes 4823else 4824 echo "$as_me: failed program was:" >&5 4825cat conftest.$ac_ext >&5 4826fi 4827rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4828 LDFLAGS="$save_LDFLAGS" 4829 4830fi 4831 4832 4833# Belt *and* braces to stop my trousers falling down: 4834test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= 4835echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5 4836echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6 4837 4838pic_flag="$lt_cv_prog_cc_pic" 4839special_shlib_compile_flags="$lt_cv_prog_cc_shlib" 4840wl="$lt_cv_prog_cc_wl" 4841link_static_flag="$lt_cv_prog_cc_static" 4842no_builtin_flag="$lt_cv_prog_cc_no_builtin" 4843can_build_shared="$lt_cv_prog_cc_can_build_shared" 4844 4845 4846# Check to see if options -o and -c are simultaneously supported by compiler 4847echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 4848echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 4849if test "${lt_cv_compiler_c_o+set}" = set; then 4850 echo $ECHO_N "(cached) $ECHO_C" >&6 4851else 4852 4853$rm -r conftest 2>/dev/null 4854mkdir conftest 4855cd conftest 4856echo "int some_variable = 0;" > conftest.$ac_ext 4857mkdir out 4858# According to Tom Tromey, Ian Lance Taylor reported there are C compilers 4859# that will create temporary files in the current directory regardless of 4860# the output directory. Thus, making CWD read-only will cause this test 4861# to fail, enabling locking or at least warning the user not to do parallel 4862# builds. 4863chmod -w . 4864save_CFLAGS="$CFLAGS" 4865CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" 4866compiler_c_o=no 4867if { (eval echo configure:4867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then 4868 # The compiler can only warn and ignore the option if not recognized 4869 # So say no if there are warnings 4870 if test -s out/conftest.err; then 4871 lt_cv_compiler_c_o=no 4872 else 4873 lt_cv_compiler_c_o=yes 4874 fi 4875else 4876 # Append any errors to the config.log. 4877 cat out/conftest.err 1>&5 4878 lt_cv_compiler_c_o=no 4879fi 4880CFLAGS="$save_CFLAGS" 4881chmod u+w . 4882$rm conftest* out/* 4883rmdir out 4884cd .. 4885rmdir conftest 4886$rm -r conftest 2>/dev/null 4887 4888fi 4889 4890compiler_c_o=$lt_cv_compiler_c_o 4891echo "$as_me:$LINENO: result: $compiler_c_o" >&5 4892echo "${ECHO_T}$compiler_c_o" >&6 4893 4894if test x"$compiler_c_o" = x"yes"; then 4895 # Check to see if we can write to a .lo 4896 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5 4897echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6 4898 if test "${lt_cv_compiler_o_lo+set}" = set; then 4899 echo $ECHO_N "(cached) $ECHO_C" >&6 4900else 4901 4902 lt_cv_compiler_o_lo=no 4903 save_CFLAGS="$CFLAGS" 4904 CFLAGS="$CFLAGS -c -o conftest.lo" 4905 save_objext="$ac_objext" 4906 ac_objext=lo 4907 cat >conftest.$ac_ext <<_ACEOF 4908#line $LINENO "configure" 4909#include "confdefs.h" 4910 4911#ifdef F77_DUMMY_MAIN 4912# ifdef __cplusplus 4913 extern "C" 4914# endif 4915 int F77_DUMMY_MAIN() { return 1; } 4916#endif 4917int 4918main () 4919{ 4920int some_variable = 0; 4921 ; 4922 return 0; 4923} 4924_ACEOF 4925rm -f conftest.$ac_objext 4926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4927 (eval $ac_compile) 2>&5 4928 ac_status=$? 4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4930 (exit $ac_status); } && 4931 { ac_try='test -s conftest.$ac_objext' 4932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4933 (eval $ac_try) 2>&5 4934 ac_status=$? 4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4936 (exit $ac_status); }; }; then 4937 # The compiler can only warn and ignore the option if not recognized 4938 # So say no if there are warnings 4939 if test -s conftest.err; then 4940 lt_cv_compiler_o_lo=no 4941 else 4942 lt_cv_compiler_o_lo=yes 4943 fi 4944 4945else 4946 echo "$as_me: failed program was:" >&5 4947cat conftest.$ac_ext >&5 4948fi 4949rm -f conftest.$ac_objext conftest.$ac_ext 4950 ac_objext="$save_objext" 4951 CFLAGS="$save_CFLAGS" 4952 4953fi 4954 4955 compiler_o_lo=$lt_cv_compiler_o_lo 4956 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5 4957echo "${ECHO_T}$compiler_o_lo" >&6 4958else 4959 compiler_o_lo=no 4960fi 4961 4962# Check to see if we can do hard links to lock some files if needed 4963hard_links="nottested" 4964if test "$compiler_c_o" = no && test "$need_locks" != no; then 4965 # do not overwrite the value of need_locks provided by the user 4966 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 4967echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 4968 hard_links=yes 4969 $rm conftest* 4970 ln conftest.a conftest.b 2>/dev/null && hard_links=no 4971 touch conftest.a 4972 ln conftest.a conftest.b 2>&5 || hard_links=no 4973 ln conftest.a conftest.b 2>/dev/null && hard_links=no 4974 echo "$as_me:$LINENO: result: $hard_links" >&5 4975echo "${ECHO_T}$hard_links" >&6 4976 if test "$hard_links" = no; then 4977 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 4978echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 4979 need_locks=warn 4980 fi 4981else 4982 need_locks=no 4983fi 4984 4985if test "$GCC" = yes; then 4986 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler 4987 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 4988echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 4989 echo "int some_variable = 0;" > conftest.$ac_ext 4990 save_CFLAGS="$CFLAGS" 4991 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" 4992 compiler_rtti_exceptions=no 4993 cat >conftest.$ac_ext <<_ACEOF 4994#line $LINENO "configure" 4995#include "confdefs.h" 4996 4997#ifdef F77_DUMMY_MAIN 4998# ifdef __cplusplus 4999 extern "C" 5000# endif 5001 int F77_DUMMY_MAIN() { return 1; } 5002#endif 5003int 5004main () 5005{ 5006int some_variable = 0; 5007 ; 5008 return 0; 5009} 5010_ACEOF 5011rm -f conftest.$ac_objext 5012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5013 (eval $ac_compile) 2>&5 5014 ac_status=$? 5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5016 (exit $ac_status); } && 5017 { ac_try='test -s conftest.$ac_objext' 5018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5019 (eval $ac_try) 2>&5 5020 ac_status=$? 5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5022 (exit $ac_status); }; }; then 5023 # The compiler can only warn and ignore the option if not recognized 5024 # So say no if there are warnings 5025 if test -s conftest.err; then 5026 compiler_rtti_exceptions=no 5027 else 5028 compiler_rtti_exceptions=yes 5029 fi 5030 5031else 5032 echo "$as_me: failed program was:" >&5 5033cat conftest.$ac_ext >&5 5034fi 5035rm -f conftest.$ac_objext conftest.$ac_ext 5036 CFLAGS="$save_CFLAGS" 5037 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5 5038echo "${ECHO_T}$compiler_rtti_exceptions" >&6 5039 5040 if test "$compiler_rtti_exceptions" = "yes"; then 5041 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' 5042 else 5043 no_builtin_flag=' -fno-builtin' 5044 fi 5045fi 5046 5047# See if the linker supports building shared libraries. 5048echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5 5049echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6 5050 5051allow_undefined_flag= 5052no_undefined_flag= 5053need_lib_prefix=unknown 5054need_version=unknown 5055# when you set need_version to no, make sure it does not cause -set_version 5056# flags to be left without arguments 5057archive_cmds= 5058archive_expsym_cmds= 5059old_archive_from_new_cmds= 5060old_archive_from_expsyms_cmds= 5061export_dynamic_flag_spec= 5062whole_archive_flag_spec= 5063thread_safe_flag_spec= 5064hardcode_into_libs=no 5065hardcode_libdir_flag_spec= 5066hardcode_libdir_separator= 5067hardcode_direct=no 5068hardcode_minus_L=no 5069hardcode_shlibpath_var=unsupported 5070runpath_var= 5071link_all_deplibs=unknown 5072always_export_symbols=no 5073export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' 5074# include_expsyms should be a list of space-separated symbols to be *always* 5075# included in the symbol list 5076include_expsyms= 5077# exclude_expsyms can be an egrep regular expression of symbols to exclude 5078# it will be wrapped by ` (' and `)$', so one must not match beginning or 5079# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 5080# as well as any symbol that contains `d'. 5081exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 5082# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 5083# platforms (ab)use it in PIC code, but their linkers get confused if 5084# the symbol is explicitly referenced. Since portable code cannot 5085# rely on this symbol name, it's probably fine to never include it in 5086# preloaded symbol tables. 5087extract_expsyms_cmds= 5088 5089case $host_os in 5090cygwin* | mingw* | pw32*) 5091 # FIXME: the MSVC++ port hasn't been tested in a loooong time 5092 # When not using gcc, we currently assume that we are using 5093 # Microsoft Visual C++. 5094 if test "$GCC" != yes; then 5095 with_gnu_ld=no 5096 fi 5097 ;; 5098openbsd*) 5099 with_gnu_ld=no 5100 ;; 5101esac 5102 5103ld_shlibs=yes 5104if test "$with_gnu_ld" = yes; then 5105 # If archive_cmds runs LD, not CC, wlarc should be empty 5106 wlarc='${wl}' 5107 5108 # See if GNU ld supports shared libraries. 5109 case $host_os in 5110 aix3* | aix4* | aix5*) 5111 # On AIX, the GNU linker is very broken 5112 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available. 5113 ld_shlibs=no 5114 cat <<EOF 1>&2 5115 5116*** Warning: the GNU linker, at least up to release 2.9.1, is reported 5117*** to be unable to reliably create shared libraries on AIX. 5118*** Therefore, libtool is disabling shared libraries support. If you 5119*** really care for shared libraries, you may want to modify your PATH 5120*** so that a non-GNU linker is found, and then restart. 5121 5122EOF 5123 ;; 5124 5125 amigaos*) 5126 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 5127 hardcode_libdir_flag_spec='-L$libdir' 5128 hardcode_minus_L=yes 5129 5130 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 5131 # that the semantics of dynamic libraries on AmigaOS, at least up 5132 # to version 4, is to share data among multiple programs linked 5133 # with the same dynamic library. Since this doesn't match the 5134 # behavior of shared libraries on other platforms, we can use 5135 # them. 5136 ld_shlibs=no 5137 ;; 5138 5139 beos*) 5140 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 5141 allow_undefined_flag=unsupported 5142 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 5143 # support --undefined. This deserves some investigation. FIXME 5144 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5145 else 5146 ld_shlibs=no 5147 fi 5148 ;; 5149 5150 cygwin* | mingw* | pw32*) 5151 # hardcode_libdir_flag_spec is actually meaningless, as there is 5152 # no search path for DLLs. 5153 hardcode_libdir_flag_spec='-L$libdir' 5154 allow_undefined_flag=unsupported 5155 always_export_symbols=yes 5156 5157 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ 5158 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ 5159 test -f $output_objdir/impgen.exe || (cd $output_objdir && \ 5160 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ 5161 else $CC -o impgen impgen.c ; fi)~ 5162 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' 5163 5164 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' 5165 5166 # cygwin and mingw dlls have different entry points and sets of symbols 5167 # to exclude. 5168 # FIXME: what about values for MSVC? 5169 dll_entry=__cygwin_dll_entry@12 5170 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ 5171 case $host_os in 5172 mingw*) 5173 # mingw values 5174 dll_entry=_DllMainCRTStartup@12 5175 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ 5176 ;; 5177 esac 5178 5179 # mingw and cygwin differ, and it's simplest to just exclude the union 5180 # of the two symbol sets. 5181 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 5182 5183 # recent cygwin and mingw systems supply a stub DllMain which the user 5184 # can override, but on older systems we have to supply one (in ltdll.c) 5185 if test "x$lt_cv_need_dllmain" = "xyes"; then 5186 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " 5187 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~ 5188 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' 5189 else 5190 ltdll_obj= 5191 ltdll_cmds= 5192 fi 5193 5194 # Extract the symbol export list from an `--export-all' def file, 5195 # then regenerate the def file from the symbol export list, so that 5196 # the compiled dll only exports the symbol export list. 5197 # Be careful not to strip the DATA tag left be newer dlltools. 5198 export_symbols_cmds="$ltdll_cmds"' 5199 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ 5200 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' 5201 5202 # If the export-symbols file already is a .def file (1st line 5203 # is EXPORTS), use it as is. 5204 # If DATA tags from a recent dlltool are present, honour them! 5205 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then 5206 cp $export_symbols $output_objdir/$soname-def; 5207 else 5208 echo EXPORTS > $output_objdir/$soname-def; 5209 _lt_hint=1; 5210 cat $export_symbols | while read symbol; do 5211 set dummy \$symbol; 5212 case \$# in 5213 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; 5214 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; 5215 esac; 5216 _lt_hint=`expr 1 + \$_lt_hint`; 5217 done; 5218 fi~ 5219 '"$ltdll_cmds"' 5220 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ 5221 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ 5222 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ 5223 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~ 5224 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' 5225 ;; 5226 5227 netbsd*) 5228 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 5229 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 5230 wlarc= 5231 else 5232 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5233 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 5234 fi 5235 ;; 5236 5237 solaris* | sysv5*) 5238 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then 5239 ld_shlibs=no 5240 cat <<EOF 1>&2 5241 5242*** Warning: The releases 2.8.* of the GNU linker cannot reliably 5243*** create shared libraries on Solaris systems. Therefore, libtool 5244*** is disabling shared libraries support. We urge you to upgrade GNU 5245*** binutils to release 2.9.1 or newer. Another option is to modify 5246*** your PATH or compiler configuration so that the native linker is 5247*** used, and then restart. 5248 5249EOF 5250 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 5251 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5252 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 5253 else 5254 ld_shlibs=no 5255 fi 5256 ;; 5257 5258 sunos4*) 5259 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 5260 wlarc= 5261 hardcode_direct=yes 5262 hardcode_shlibpath_var=no 5263 ;; 5264 5265 *) 5266 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 5267 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5268 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 5269 else 5270 ld_shlibs=no 5271 fi 5272 ;; 5273 esac 5274 5275 if test "$ld_shlibs" = yes; then 5276 runpath_var=LD_RUN_PATH 5277 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 5278 export_dynamic_flag_spec='${wl}--export-dynamic' 5279 case $host_os in 5280 cygwin* | mingw* | pw32*) 5281 # dlltool doesn't understand --whole-archive et. al. 5282 whole_archive_flag_spec= 5283 ;; 5284 *) 5285 # ancient GNU ld didn't support --whole-archive et. al. 5286 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then 5287 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 5288 else 5289 whole_archive_flag_spec= 5290 fi 5291 ;; 5292 esac 5293 fi 5294else 5295 # PORTME fill in a description of your system's linker (not GNU ld) 5296 case $host_os in 5297 aix3*) 5298 allow_undefined_flag=unsupported 5299 always_export_symbols=yes 5300 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 5301 # Note: this linker hardcodes the directories in LIBPATH if there 5302 # are no directories specified by -L. 5303 hardcode_minus_L=yes 5304 if test "$GCC" = yes && test -z "$link_static_flag"; then 5305 # Neither direct hardcoding nor static linking is supported with a 5306 # broken collect2. 5307 hardcode_direct=unsupported 5308 fi 5309 ;; 5310 5311 aix4* | aix5*) 5312 if test "$host_cpu" = ia64; then 5313 # On IA64, the linker does run time linking by default, so we don't 5314 # have to do anything special. 5315 aix_use_runtimelinking=no 5316 exp_sym_flag='-Bexport' 5317 no_entry_flag="" 5318 else 5319 aix_use_runtimelinking=no 5320 5321 # Test if we are trying to use run time linking or normal 5322 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 5323 # need to do runtime linking. 5324 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 5325 for ld_flag in $LDFLAGS; do 5326 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 5327 aix_use_runtimelinking=yes 5328 break 5329 fi 5330 done 5331 esac 5332 5333 exp_sym_flag='-bexport' 5334 no_entry_flag='-bnoentry' 5335 fi 5336 5337 # When large executables or shared objects are built, AIX ld can 5338 # have problems creating the table of contents. If linking a library 5339 # or program results in "error TOC overflow" add -mminimal-toc to 5340 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 5341 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 5342 5343 hardcode_direct=yes 5344 archive_cmds='' 5345 hardcode_libdir_separator=':' 5346 if test "$GCC" = yes; then 5347 case $host_os in aix4.[012]|aix4.[012].*) 5348 collect2name=`${CC} -print-prog-name=collect2` 5349 if test -f "$collect2name" && \ 5350 strings "$collect2name" | grep resolve_lib_name >/dev/null 5351 then 5352 # We have reworked collect2 5353 hardcode_direct=yes 5354 else 5355 # We have old collect2 5356 hardcode_direct=unsupported 5357 # It fails to find uninstalled libraries when the uninstalled 5358 # path is not listed in the libpath. Setting hardcode_minus_L 5359 # to unsupported forces relinking 5360 hardcode_minus_L=yes 5361 hardcode_libdir_flag_spec='-L$libdir' 5362 hardcode_libdir_separator= 5363 fi 5364 esac 5365 5366 shared_flag='-shared' 5367 else 5368 # not using gcc 5369 if test "$host_cpu" = ia64; then 5370 shared_flag='${wl}-G' 5371 else 5372 if test "$aix_use_runtimelinking" = yes; then 5373 shared_flag='${wl}-G' 5374 else 5375 shared_flag='${wl}-bM:SRE' 5376 fi 5377 fi 5378 fi 5379 5380 # It seems that -bexpall can do strange things, so it is better to 5381 # generate a list of symbols to export. 5382 always_export_symbols=yes 5383 if test "$aix_use_runtimelinking" = yes; then 5384 # Warning - without using the other runtime loading flags (-brtl), 5385 # -berok will link without error, but may produce a broken library. 5386 allow_undefined_flag='-berok' 5387 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' 5388 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 5389 else 5390 if test "$host_cpu" = ia64; then 5391 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 5392 allow_undefined_flag="-z nodefs" 5393 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 5394 else 5395 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' 5396 # Warning - without using the other run time loading flags, 5397 # -berok will link without error, but may produce a broken library. 5398 allow_undefined_flag='${wl}-berok' 5399 # This is a bit strange, but is similar to how AIX traditionally builds 5400 # it's shared libraries. 5401 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname' 5402 fi 5403 fi 5404 ;; 5405 5406 amigaos*) 5407 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 5408 hardcode_libdir_flag_spec='-L$libdir' 5409 hardcode_minus_L=yes 5410 # see comment about different semantics on the GNU ld section 5411 ld_shlibs=no 5412 ;; 5413 5414 cygwin* | mingw* | pw32*) 5415 # When not using gcc, we currently assume that we are using 5416 # Microsoft Visual C++. 5417 # hardcode_libdir_flag_spec is actually meaningless, as there is 5418 # no search path for DLLs. 5419 hardcode_libdir_flag_spec=' ' 5420 allow_undefined_flag=unsupported 5421 # Tell ltmain to make .lib files, not .a files. 5422 libext=lib 5423 # FIXME: Setting linknames here is a bad hack. 5424 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 5425 # The linker will automatically build a .lib file if we build a DLL. 5426 old_archive_from_new_cmds='true' 5427 # FIXME: Should let the user specify the lib program. 5428 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 5429 fix_srcfile_path='`cygpath -w "$srcfile"`' 5430 ;; 5431 5432 darwin* | rhapsody*) 5433 case "$host_os" in 5434 rhapsody* | darwin1.[012]) 5435 allow_undefined_flag='-undefined suppress' 5436 ;; 5437 *) # Darwin 1.3 on 5438 allow_undefined_flag='-flat_namespace -undefined suppress' 5439 ;; 5440 esac 5441 # FIXME: Relying on posixy $() will cause problems for 5442 # cross-compilation, but unfortunately the echo tests do not 5443 # yet detect zsh echo's removal of \ escapes. 5444 archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring' 5445 # We need to add '_' to the symbols in $export_symbols first 5446 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' 5447 hardcode_direct=yes 5448 hardcode_shlibpath_var=no 5449 whole_archive_flag_spec='-all_load $convenience' 5450 ;; 5451 5452 freebsd1*) 5453 ld_shlibs=no 5454 ;; 5455 5456 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 5457 # support. Future versions do this automatically, but an explicit c++rt0.o 5458 # does not break anything, and helps significantly (at the cost of a little 5459 # extra space). 5460 freebsd2.2*) 5461 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 5462 hardcode_libdir_flag_spec='-R$libdir' 5463 hardcode_direct=yes 5464 hardcode_shlibpath_var=no 5465 ;; 5466 5467 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 5468 freebsd2*) 5469 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 5470 hardcode_direct=yes 5471 hardcode_minus_L=yes 5472 hardcode_shlibpath_var=no 5473 ;; 5474 5475 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 5476 freebsd*) 5477 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 5478 hardcode_libdir_flag_spec='-R$libdir' 5479 hardcode_direct=yes 5480 hardcode_shlibpath_var=no 5481 ;; 5482 5483 hpux9* | hpux10* | hpux11*) 5484 case $host_os in 5485 hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;; 5486 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; 5487 esac 5488 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 5489 hardcode_libdir_separator=: 5490 hardcode_direct=yes 5491 hardcode_minus_L=yes # Not in the search PATH, but as the default 5492 # location of the library. 5493 export_dynamic_flag_spec='${wl}-E' 5494 ;; 5495 5496 irix5* | irix6*) 5497 if test "$GCC" = yes; then 5498 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 5499 else 5500 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 5501 fi 5502 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 5503 hardcode_libdir_separator=: 5504 link_all_deplibs=yes 5505 ;; 5506 5507 netbsd*) 5508 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 5509 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 5510 else 5511 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 5512 fi 5513 hardcode_libdir_flag_spec='-R$libdir' 5514 hardcode_direct=yes 5515 hardcode_shlibpath_var=no 5516 ;; 5517 5518 newsos6) 5519 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5520 hardcode_direct=yes 5521 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 5522 hardcode_libdir_separator=: 5523 hardcode_shlibpath_var=no 5524 ;; 5525 5526 openbsd*) 5527 hardcode_direct=yes 5528 hardcode_shlibpath_var=no 5529 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5530 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' 5531 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 5532 export_dynamic_flag_spec='${wl}-E' 5533 else 5534 case "$host_os" in 5535 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 5536 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 5537 hardcode_libdir_flag_spec='-R$libdir' 5538 ;; 5539 *) 5540 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' 5541 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 5542 ;; 5543 esac 5544 fi 5545 ;; 5546 5547 os2*) 5548 hardcode_libdir_flag_spec='-L$libdir' 5549 hardcode_minus_L=yes 5550 allow_undefined_flag=unsupported 5551 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 5552 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 5553 ;; 5554 5555 osf3*) 5556 if test "$GCC" = yes; then 5557 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 5558 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 5559 else 5560 allow_undefined_flag=' -expect_unresolved \*' 5561 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 5562 fi 5563 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 5564 hardcode_libdir_separator=: 5565 ;; 5566 5567 osf4* | osf5*) # as osf3* with the addition of -msym flag 5568 if test "$GCC" = yes; then 5569 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 5570 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 5571 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 5572 else 5573 allow_undefined_flag=' -expect_unresolved \*' 5574 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 5575 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 5576 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 5577 5578 #Both c and cxx compiler support -rpath directly 5579 hardcode_libdir_flag_spec='-rpath $libdir' 5580 fi 5581 hardcode_libdir_separator=: 5582 ;; 5583 5584 sco3.2v5*) 5585 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5586 hardcode_shlibpath_var=no 5587 runpath_var=LD_RUN_PATH 5588 hardcode_runpath_var=yes 5589 export_dynamic_flag_spec='${wl}-Bexport' 5590 ;; 5591 5592 solaris*) 5593 # gcc --version < 3.0 without binutils cannot create self contained 5594 # shared libraries reliably, requiring libgcc.a to resolve some of 5595 # the object symbols generated in some cases. Libraries that use 5596 # assert need libgcc.a to resolve __eprintf, for example. Linking 5597 # a copy of libgcc.a into every shared library to guarantee resolving 5598 # such symbols causes other problems: According to Tim Van Holder 5599 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate 5600 # (to the application) exception stack for one thing. 5601 no_undefined_flag=' -z defs' 5602 if test "$GCC" = yes; then 5603 case `$CC --version 2>/dev/null` in 5604 [12].*) 5605 cat <<EOF 1>&2 5606 5607*** Warning: Releases of GCC earlier than version 3.0 cannot reliably 5608*** create self contained shared libraries on Solaris systems, without 5609*** introducing a dependency on libgcc.a. Therefore, libtool is disabling 5610*** -no-undefined support, which will at least allow you to build shared 5611*** libraries. However, you may find that when you link such libraries 5612*** into an application without using GCC, you have to manually add 5613*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to 5614*** upgrade to a newer version of GCC. Another option is to rebuild your 5615*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer. 5616 5617EOF 5618 no_undefined_flag= 5619 ;; 5620 esac 5621 fi 5622 # $CC -shared without GNU ld will not create a library from C++ 5623 # object files and a static libstdc++, better avoid it by now 5624 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 5625 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 5626 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 5627 hardcode_libdir_flag_spec='-R$libdir' 5628 hardcode_shlibpath_var=no 5629 case $host_os in 5630 solaris2.[0-5] | solaris2.[0-5].*) ;; 5631 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 5632 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 5633 esac 5634 link_all_deplibs=yes 5635 ;; 5636 5637 sunos4*) 5638 if test "x$host_vendor" = xsequent; then 5639 # Use $CC to link under sequent, because it throws in some extra .o 5640 # files that make .init and .fini sections work. 5641 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 5642 else 5643 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 5644 fi 5645 hardcode_libdir_flag_spec='-L$libdir' 5646 hardcode_direct=yes 5647 hardcode_minus_L=yes 5648 hardcode_shlibpath_var=no 5649 ;; 5650 5651 sysv4) 5652 if test "x$host_vendor" = xsno; then 5653 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags' 5654 hardcode_direct=yes # is this really true??? 5655 else 5656 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5657 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 5658 fi 5659 runpath_var='LD_RUN_PATH' 5660 hardcode_shlibpath_var=no 5661 ;; 5662 5663 sysv4.3*) 5664 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5665 hardcode_shlibpath_var=no 5666 export_dynamic_flag_spec='-Bexport' 5667 ;; 5668 5669 sysv5*) 5670 no_undefined_flag=' -z text' 5671 # $CC -shared without GNU ld will not create a library from C++ 5672 # object files and a static libstdc++, better avoid it by now 5673 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 5674 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 5675 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 5676 hardcode_libdir_flag_spec= 5677 hardcode_shlibpath_var=no 5678 runpath_var='LD_RUN_PATH' 5679 ;; 5680 5681 uts4*) 5682 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5683 hardcode_libdir_flag_spec='-L$libdir' 5684 hardcode_shlibpath_var=no 5685 ;; 5686 5687 dgux*) 5688 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5689 hardcode_libdir_flag_spec='-L$libdir' 5690 hardcode_shlibpath_var=no 5691 ;; 5692 5693 sysv4*MP*) 5694 if test -d /usr/nec; then 5695 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5696 hardcode_shlibpath_var=no 5697 runpath_var=LD_RUN_PATH 5698 hardcode_runpath_var=yes 5699 ld_shlibs=yes 5700 fi 5701 ;; 5702 5703 sysv4.2uw2*) 5704 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 5705 hardcode_direct=yes 5706 hardcode_minus_L=no 5707 hardcode_shlibpath_var=no 5708 hardcode_runpath_var=yes 5709 runpath_var=LD_RUN_PATH 5710 ;; 5711 5712 sysv5uw7* | unixware7*) 5713 no_undefined_flag='${wl}-z ${wl}text' 5714 if test "$GCC" = yes; then 5715 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 5716 else 5717 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 5718 fi 5719 runpath_var='LD_RUN_PATH' 5720 hardcode_shlibpath_var=no 5721 ;; 5722 5723 *) 5724 ld_shlibs=no 5725 ;; 5726 esac 5727fi 5728echo "$as_me:$LINENO: result: $ld_shlibs" >&5 5729echo "${ECHO_T}$ld_shlibs" >&6 5730test "$ld_shlibs" = no && can_build_shared=no 5731 5732# Check hardcoding attributes. 5733echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 5734echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 5735hardcode_action= 5736if test -n "$hardcode_libdir_flag_spec" || \ 5737 test -n "$runpath_var"; then 5738 5739 # We can hardcode non-existant directories. 5740 if test "$hardcode_direct" != no && 5741 # If the only mechanism to avoid hardcoding is shlibpath_var, we 5742 # have to relink, otherwise we might link with an installed library 5743 # when we should be linking with a yet-to-be-installed one 5744 ## test "$hardcode_shlibpath_var" != no && 5745 test "$hardcode_minus_L" != no; then 5746 # Linking always hardcodes the temporary library directory. 5747 hardcode_action=relink 5748 else 5749 # We can link without hardcoding, and we can hardcode nonexisting dirs. 5750 hardcode_action=immediate 5751 fi 5752else 5753 # We cannot hardcode anything, or else we can only hardcode existing 5754 # directories. 5755 hardcode_action=unsupported 5756fi 5757echo "$as_me:$LINENO: result: $hardcode_action" >&5 5758echo "${ECHO_T}$hardcode_action" >&6 5759 5760striplib= 5761old_striplib= 5762echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 5763echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 5764if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 5765 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 5766 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 5767 echo "$as_me:$LINENO: result: yes" >&5 5768echo "${ECHO_T}yes" >&6 5769else 5770 echo "$as_me:$LINENO: result: no" >&5 5771echo "${ECHO_T}no" >&6 5772fi 5773 5774reload_cmds='$LD$reload_flag -o $output$reload_objs' 5775test -z "$deplibs_check_method" && deplibs_check_method=unknown 5776 5777# PORTME Fill in your ld.so characteristics 5778echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 5779echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 5780library_names_spec= 5781libname_spec='lib$name' 5782soname_spec= 5783postinstall_cmds= 5784postuninstall_cmds= 5785finish_cmds= 5786finish_eval= 5787shlibpath_var= 5788shlibpath_overrides_runpath=unknown 5789version_type=none 5790dynamic_linker="$host_os ld.so" 5791sys_lib_dlsearch_path_spec="/lib /usr/lib" 5792sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 5793 5794case $host_os in 5795aix3*) 5796 version_type=linux 5797 library_names_spec='${libname}${release}.so$versuffix $libname.a' 5798 shlibpath_var=LIBPATH 5799 5800 # AIX has no versioning support, so we append a major version to the name. 5801 soname_spec='${libname}${release}.so$major' 5802 ;; 5803 5804aix4* | aix5*) 5805 version_type=linux 5806 if test "$host_cpu" = ia64; then 5807 # AIX 5 supports IA64 5808 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' 5809 shlibpath_var=LD_LIBRARY_PATH 5810 else 5811 # With GCC up to 2.95.x, collect2 would create an import file 5812 # for dependence libraries. The import file would start with 5813 # the line `#! .'. This would cause the generated library to 5814 # depend on `.', always an invalid library. This was fixed in 5815 # development snapshots of GCC prior to 3.0. 5816 case $host_os in 5817 aix4 | aix4.[01] | aix4.[01].*) 5818 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 5819 echo ' yes ' 5820 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 5821 : 5822 else 5823 can_build_shared=no 5824 fi 5825 ;; 5826 esac 5827 # AIX (on Power*) has no versioning support, so currently we can 5828 # not hardcode correct soname into executable. Probably we can 5829 # add versioning support to collect2, so additional links can 5830 # be useful in future. 5831 if test "$aix_use_runtimelinking" = yes; then 5832 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 5833 # instead of lib<name>.a to let people know that these are not 5834 # typical AIX shared libraries. 5835 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 5836 else 5837 # We preserve .a as extension for shared libraries through AIX4.2 5838 # and later when we are not doing run time linking. 5839 library_names_spec='${libname}${release}.a $libname.a' 5840 soname_spec='${libname}${release}.so$major' 5841 fi 5842 shlibpath_var=LIBPATH 5843 fi 5844 ;; 5845 5846amigaos*) 5847 library_names_spec='$libname.ixlibrary $libname.a' 5848 # Create ${libname}_ixlibrary.a entries in /sys/libs. 5849 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done' 5850 ;; 5851 5852beos*) 5853 library_names_spec='${libname}.so' 5854 dynamic_linker="$host_os ld.so" 5855 shlibpath_var=LIBRARY_PATH 5856 ;; 5857 5858bsdi4*) 5859 version_type=linux 5860 need_version=no 5861 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 5862 soname_spec='${libname}${release}.so$major' 5863 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 5864 shlibpath_var=LD_LIBRARY_PATH 5865 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 5866 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 5867 export_dynamic_flag_spec=-rdynamic 5868 # the default ld.so.conf also contains /usr/contrib/lib and 5869 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 5870 # libtool to hard-code these into programs 5871 ;; 5872 5873cygwin* | mingw* | pw32*) 5874 version_type=windows 5875 need_version=no 5876 need_lib_prefix=no 5877 case $GCC,$host_os in 5878 yes,cygwin*) 5879 library_names_spec='$libname.dll.a' 5880 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' 5881 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ 5882 dldir=$destdir/`dirname \$dlpath`~ 5883 test -d \$dldir || mkdir -p \$dldir~ 5884 $install_prog .libs/$dlname \$dldir/$dlname' 5885 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ 5886 dlpath=$dir/\$dldll~ 5887 $rm \$dlpath' 5888 ;; 5889 yes,mingw*) 5890 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' 5891 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"` 5892 ;; 5893 yes,pw32*) 5894 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' 5895 ;; 5896 *) 5897 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' 5898 ;; 5899 esac 5900 dynamic_linker='Win32 ld.exe' 5901 # FIXME: first we should search . and the directory the executable is in 5902 shlibpath_var=PATH 5903 ;; 5904 5905darwin* | rhapsody*) 5906 dynamic_linker="$host_os dyld" 5907 version_type=darwin 5908 need_lib_prefix=no 5909 need_version=no 5910 # FIXME: Relying on posixy $() will cause problems for 5911 # cross-compilation, but unfortunately the echo tests do not 5912 # yet detect zsh echo's removal of \ escapes. 5913 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' 5914 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' 5915 shlibpath_overrides_runpath=yes 5916 shlibpath_var=DYLD_LIBRARY_PATH 5917 ;; 5918 5919freebsd1*) 5920 dynamic_linker=no 5921 ;; 5922 5923freebsd*) 5924 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 5925 version_type=freebsd-$objformat 5926 case $version_type in 5927 freebsd-elf*) 5928 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' 5929 need_version=no 5930 need_lib_prefix=no 5931 ;; 5932 freebsd-*) 5933 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' 5934 need_version=yes 5935 ;; 5936 esac 5937 shlibpath_var=LD_LIBRARY_PATH 5938 case $host_os in 5939 freebsd2*) 5940 shlibpath_overrides_runpath=yes 5941 ;; 5942 *) 5943 shlibpath_overrides_runpath=no 5944 hardcode_into_libs=yes 5945 ;; 5946 esac 5947 ;; 5948 5949gnu*) 5950 version_type=linux 5951 need_lib_prefix=no 5952 need_version=no 5953 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' 5954 soname_spec='${libname}${release}.so$major' 5955 shlibpath_var=LD_LIBRARY_PATH 5956 hardcode_into_libs=yes 5957 ;; 5958 5959hpux9* | hpux10* | hpux11*) 5960 # Give a soname corresponding to the major version so that dld.sl refuses to 5961 # link against other versions. 5962 dynamic_linker="$host_os dld.sl" 5963 version_type=sunos 5964 need_lib_prefix=no 5965 need_version=no 5966 shlibpath_var=SHLIB_PATH 5967 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 5968 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' 5969 soname_spec='${libname}${release}.sl$major' 5970 # HP-UX runs *really* slowly unless shared libraries are mode 555. 5971 postinstall_cmds='chmod 555 $lib' 5972 ;; 5973 5974irix5* | irix6*) 5975 version_type=irix 5976 need_lib_prefix=no 5977 need_version=no 5978 soname_spec='${libname}${release}.so$major' 5979 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' 5980 case $host_os in 5981 irix5*) 5982 libsuff= shlibsuff= 5983 ;; 5984 *) 5985 case $LD in # libtool.m4 will add one of these switches to LD 5986 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; 5987 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; 5988 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; 5989 *) libsuff= shlibsuff= libmagic=never-match;; 5990 esac 5991 ;; 5992 esac 5993 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 5994 shlibpath_overrides_runpath=no 5995 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 5996 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 5997 ;; 5998 5999# No shared lib support for Linux oldld, aout, or coff. 6000linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) 6001 dynamic_linker=no 6002 ;; 6003 6004# This must be Linux ELF. 6005linux-gnu*) 6006 version_type=linux 6007 need_lib_prefix=no 6008 need_version=no 6009 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6010 soname_spec='${libname}${release}.so$major' 6011 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 6012 shlibpath_var=LD_LIBRARY_PATH 6013 shlibpath_overrides_runpath=no 6014 # This implies no fast_install, which is unacceptable. 6015 # Some rework will be needed to allow for fast_install 6016 # before this can be enabled. 6017 hardcode_into_libs=yes 6018 6019 # We used to test for /lib/ld.so.1 and disable shared libraries on 6020 # powerpc, because MkLinux only supported shared libraries with the 6021 # GNU dynamic linker. Since this was broken with cross compilers, 6022 # most powerpc-linux boxes support dynamic linking these days and 6023 # people can always --disable-shared, the test was removed, and we 6024 # assume the GNU/Linux dynamic linker is in use. 6025 dynamic_linker='GNU/Linux ld.so' 6026 ;; 6027 6028netbsd*) 6029 version_type=sunos 6030 need_lib_prefix=no 6031 need_version=no 6032 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6033 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' 6034 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 6035 dynamic_linker='NetBSD (a.out) ld.so' 6036 else 6037 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' 6038 soname_spec='${libname}${release}.so$major' 6039 dynamic_linker='NetBSD ld.elf_so' 6040 fi 6041 shlibpath_var=LD_LIBRARY_PATH 6042 shlibpath_overrides_runpath=yes 6043 hardcode_into_libs=yes 6044 ;; 6045 6046newsos6) 6047 version_type=linux 6048 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6049 shlibpath_var=LD_LIBRARY_PATH 6050 shlibpath_overrides_runpath=yes 6051 ;; 6052 6053openbsd*) 6054 version_type=sunos 6055 need_lib_prefix=no 6056 need_version=no 6057 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6058 case "$host_os" in 6059 openbsd2.[89] | openbsd2.[89].*) 6060 shlibpath_overrides_runpath=no 6061 ;; 6062 *) 6063 shlibpath_overrides_runpath=yes 6064 ;; 6065 esac 6066 else 6067 shlibpath_overrides_runpath=yes 6068 fi 6069 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' 6070 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 6071 shlibpath_var=LD_LIBRARY_PATH 6072 ;; 6073 6074os2*) 6075 libname_spec='$name' 6076 need_lib_prefix=no 6077 library_names_spec='$libname.dll $libname.a' 6078 dynamic_linker='OS/2 ld.exe' 6079 shlibpath_var=LIBPATH 6080 ;; 6081 6082osf3* | osf4* | osf5*) 6083 version_type=osf 6084 need_version=no 6085 soname_spec='${libname}${release}.so' 6086 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' 6087 shlibpath_var=LD_LIBRARY_PATH 6088 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 6089 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 6090 ;; 6091 6092sco3.2v5*) 6093 version_type=osf 6094 soname_spec='${libname}${release}.so$major' 6095 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6096 shlibpath_var=LD_LIBRARY_PATH 6097 ;; 6098 6099solaris*) 6100 version_type=linux 6101 need_lib_prefix=no 6102 need_version=no 6103 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6104 soname_spec='${libname}${release}.so$major' 6105 shlibpath_var=LD_LIBRARY_PATH 6106 shlibpath_overrides_runpath=yes 6107 hardcode_into_libs=yes 6108 # ldd complains unless libraries are executable 6109 postinstall_cmds='chmod +x $lib' 6110 ;; 6111 6112sunos4*) 6113 version_type=sunos 6114 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' 6115 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 6116 shlibpath_var=LD_LIBRARY_PATH 6117 shlibpath_overrides_runpath=yes 6118 if test "$with_gnu_ld" = yes; then 6119 need_lib_prefix=no 6120 fi 6121 need_version=yes 6122 ;; 6123 6124sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 6125 version_type=linux 6126 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6127 soname_spec='${libname}${release}.so$major' 6128 shlibpath_var=LD_LIBRARY_PATH 6129 case $host_vendor in 6130 sni) 6131 shlibpath_overrides_runpath=no 6132 ;; 6133 motorola) 6134 need_lib_prefix=no 6135 need_version=no 6136 shlibpath_overrides_runpath=no 6137 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 6138 ;; 6139 esac 6140 ;; 6141 6142uts4*) 6143 version_type=linux 6144 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6145 soname_spec='${libname}${release}.so$major' 6146 shlibpath_var=LD_LIBRARY_PATH 6147 ;; 6148 6149dgux*) 6150 version_type=linux 6151 need_lib_prefix=no 6152 need_version=no 6153 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6154 soname_spec='${libname}${release}.so$major' 6155 shlibpath_var=LD_LIBRARY_PATH 6156 ;; 6157 6158sysv4*MP*) 6159 if test -d /usr/nec ;then 6160 version_type=linux 6161 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' 6162 soname_spec='$libname.so.$major' 6163 shlibpath_var=LD_LIBRARY_PATH 6164 fi 6165 ;; 6166 6167*) 6168 dynamic_linker=no 6169 ;; 6170esac 6171echo "$as_me:$LINENO: result: $dynamic_linker" >&5 6172echo "${ECHO_T}$dynamic_linker" >&6 6173test "$dynamic_linker" = no && can_build_shared=no 6174 6175# Report the final consequences. 6176echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 6177echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 6178echo "$as_me:$LINENO: result: $can_build_shared" >&5 6179echo "${ECHO_T}$can_build_shared" >&6 6180 6181echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 6182echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 6183test "$can_build_shared" = "no" && enable_shared=no 6184 6185# On AIX, shared libraries and static libraries use the same namespace, and 6186# are all built from PIC. 6187case "$host_os" in 6188aix3*) 6189 test "$enable_shared" = yes && enable_static=no 6190 if test -n "$RANLIB"; then 6191 archive_cmds="$archive_cmds~\$RANLIB \$lib" 6192 postinstall_cmds='$RANLIB $lib' 6193 fi 6194 ;; 6195 6196aix4*) 6197 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 6198 test "$enable_shared" = yes && enable_static=no 6199 fi 6200 ;; 6201esac 6202echo "$as_me:$LINENO: result: $enable_shared" >&5 6203echo "${ECHO_T}$enable_shared" >&6 6204 6205echo "$as_me:$LINENO: checking whether to build static libraries" >&5 6206echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 6207# Make sure either enable_shared or enable_static is yes. 6208test "$enable_shared" = yes || enable_static=yes 6209echo "$as_me:$LINENO: result: $enable_static" >&5 6210echo "${ECHO_T}$enable_static" >&6 6211 6212if test "$hardcode_action" = relink; then 6213 # Fast installation is not supported 6214 enable_fast_install=no 6215elif test "$shlibpath_overrides_runpath" = yes || 6216 test "$enable_shared" = no; then 6217 # Fast installation is not necessary 6218 enable_fast_install=needless 6219fi 6220 6221variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 6222if test "$GCC" = yes; then 6223 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 6224fi 6225 6226if test "x$enable_dlopen" != xyes; then 6227 enable_dlopen=unknown 6228 enable_dlopen_self=unknown 6229 enable_dlopen_self_static=unknown 6230else 6231 lt_cv_dlopen=no 6232 lt_cv_dlopen_libs= 6233 6234 case $host_os in 6235 beos*) 6236 lt_cv_dlopen="load_add_on" 6237 lt_cv_dlopen_libs= 6238 lt_cv_dlopen_self=yes 6239 ;; 6240 6241 cygwin* | mingw* | pw32*) 6242 lt_cv_dlopen="LoadLibrary" 6243 lt_cv_dlopen_libs= 6244 ;; 6245 6246 *) 6247 echo "$as_me:$LINENO: checking for shl_load" >&5 6248echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 6249if test "${ac_cv_func_shl_load+set}" = set; then 6250 echo $ECHO_N "(cached) $ECHO_C" >&6 6251else 6252 cat >conftest.$ac_ext <<_ACEOF 6253#line $LINENO "configure" 6254#include "confdefs.h" 6255/* System header to define __stub macros and hopefully few prototypes, 6256 which can conflict with char shl_load (); below. */ 6257#include <assert.h> 6258/* Override any gcc2 internal prototype to avoid an error. */ 6259#ifdef __cplusplus 6260extern "C" 6261#endif 6262/* We use char because int might match the return type of a gcc2 6263 builtin and then its argument prototype would still apply. */ 6264char shl_load (); 6265char (*f) (); 6266 6267#ifdef F77_DUMMY_MAIN 6268# ifdef __cplusplus 6269 extern "C" 6270# endif 6271 int F77_DUMMY_MAIN() { return 1; } 6272#endif 6273int 6274main () 6275{ 6276/* The GNU C library defines this for functions which it implements 6277 to always fail with ENOSYS. Some functions are actually named 6278 something starting with __ and the normal name is an alias. */ 6279#if defined (__stub_shl_load) || defined (__stub___shl_load) 6280choke me 6281#else 6282f = shl_load; 6283#endif 6284 6285 ; 6286 return 0; 6287} 6288_ACEOF 6289rm -f conftest.$ac_objext conftest$ac_exeext 6290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6291 (eval $ac_link) 2>&5 6292 ac_status=$? 6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6294 (exit $ac_status); } && 6295 { ac_try='test -s conftest$ac_exeext' 6296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6297 (eval $ac_try) 2>&5 6298 ac_status=$? 6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6300 (exit $ac_status); }; }; then 6301 ac_cv_func_shl_load=yes 6302else 6303 echo "$as_me: failed program was:" >&5 6304cat conftest.$ac_ext >&5 6305ac_cv_func_shl_load=no 6306fi 6307rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6308fi 6309echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 6310echo "${ECHO_T}$ac_cv_func_shl_load" >&6 6311if test $ac_cv_func_shl_load = yes; then 6312 lt_cv_dlopen="shl_load" 6313else 6314 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 6315echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 6316if test "${ac_cv_lib_dld_shl_load+set}" = set; then 6317 echo $ECHO_N "(cached) $ECHO_C" >&6 6318else 6319 ac_check_lib_save_LIBS=$LIBS 6320LIBS="-ldld $LIBS" 6321cat >conftest.$ac_ext <<_ACEOF 6322#line $LINENO "configure" 6323#include "confdefs.h" 6324 6325/* Override any gcc2 internal prototype to avoid an error. */ 6326#ifdef __cplusplus 6327extern "C" 6328#endif 6329/* We use char because int might match the return type of a gcc2 6330 builtin and then its argument prototype would still apply. */ 6331char shl_load (); 6332#ifdef F77_DUMMY_MAIN 6333# ifdef __cplusplus 6334 extern "C" 6335# endif 6336 int F77_DUMMY_MAIN() { return 1; } 6337#endif 6338int 6339main () 6340{ 6341shl_load (); 6342 ; 6343 return 0; 6344} 6345_ACEOF 6346rm -f conftest.$ac_objext conftest$ac_exeext 6347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6348 (eval $ac_link) 2>&5 6349 ac_status=$? 6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6351 (exit $ac_status); } && 6352 { ac_try='test -s conftest$ac_exeext' 6353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6354 (eval $ac_try) 2>&5 6355 ac_status=$? 6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6357 (exit $ac_status); }; }; then 6358 ac_cv_lib_dld_shl_load=yes 6359else 6360 echo "$as_me: failed program was:" >&5 6361cat conftest.$ac_ext >&5 6362ac_cv_lib_dld_shl_load=no 6363fi 6364rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6365LIBS=$ac_check_lib_save_LIBS 6366fi 6367echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 6368echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 6369if test $ac_cv_lib_dld_shl_load = yes; then 6370 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 6371else 6372 echo "$as_me:$LINENO: checking for dlopen" >&5 6373echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 6374if test "${ac_cv_func_dlopen+set}" = set; then 6375 echo $ECHO_N "(cached) $ECHO_C" >&6 6376else 6377 cat >conftest.$ac_ext <<_ACEOF 6378#line $LINENO "configure" 6379#include "confdefs.h" 6380/* System header to define __stub macros and hopefully few prototypes, 6381 which can conflict with char dlopen (); below. */ 6382#include <assert.h> 6383/* Override any gcc2 internal prototype to avoid an error. */ 6384#ifdef __cplusplus 6385extern "C" 6386#endif 6387/* We use char because int might match the return type of a gcc2 6388 builtin and then its argument prototype would still apply. */ 6389char dlopen (); 6390char (*f) (); 6391 6392#ifdef F77_DUMMY_MAIN 6393# ifdef __cplusplus 6394 extern "C" 6395# endif 6396 int F77_DUMMY_MAIN() { return 1; } 6397#endif 6398int 6399main () 6400{ 6401/* The GNU C library defines this for functions which it implements 6402 to always fail with ENOSYS. Some functions are actually named 6403 something starting with __ and the normal name is an alias. */ 6404#if defined (__stub_dlopen) || defined (__stub___dlopen) 6405choke me 6406#else 6407f = dlopen; 6408#endif 6409 6410 ; 6411 return 0; 6412} 6413_ACEOF 6414rm -f conftest.$ac_objext conftest$ac_exeext 6415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6416 (eval $ac_link) 2>&5 6417 ac_status=$? 6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6419 (exit $ac_status); } && 6420 { ac_try='test -s conftest$ac_exeext' 6421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6422 (eval $ac_try) 2>&5 6423 ac_status=$? 6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6425 (exit $ac_status); }; }; then 6426 ac_cv_func_dlopen=yes 6427else 6428 echo "$as_me: failed program was:" >&5 6429cat conftest.$ac_ext >&5 6430ac_cv_func_dlopen=no 6431fi 6432rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6433fi 6434echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 6435echo "${ECHO_T}$ac_cv_func_dlopen" >&6 6436if test $ac_cv_func_dlopen = yes; then 6437 lt_cv_dlopen="dlopen" 6438else 6439 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 6440echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 6441if test "${ac_cv_lib_dl_dlopen+set}" = set; then 6442 echo $ECHO_N "(cached) $ECHO_C" >&6 6443else 6444 ac_check_lib_save_LIBS=$LIBS 6445LIBS="-ldl $LIBS" 6446cat >conftest.$ac_ext <<_ACEOF 6447#line $LINENO "configure" 6448#include "confdefs.h" 6449 6450/* Override any gcc2 internal prototype to avoid an error. */ 6451#ifdef __cplusplus 6452extern "C" 6453#endif 6454/* We use char because int might match the return type of a gcc2 6455 builtin and then its argument prototype would still apply. */ 6456char dlopen (); 6457#ifdef F77_DUMMY_MAIN 6458# ifdef __cplusplus 6459 extern "C" 6460# endif 6461 int F77_DUMMY_MAIN() { return 1; } 6462#endif 6463int 6464main () 6465{ 6466dlopen (); 6467 ; 6468 return 0; 6469} 6470_ACEOF 6471rm -f conftest.$ac_objext conftest$ac_exeext 6472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6473 (eval $ac_link) 2>&5 6474 ac_status=$? 6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6476 (exit $ac_status); } && 6477 { ac_try='test -s conftest$ac_exeext' 6478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6479 (eval $ac_try) 2>&5 6480 ac_status=$? 6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6482 (exit $ac_status); }; }; then 6483 ac_cv_lib_dl_dlopen=yes 6484else 6485 echo "$as_me: failed program was:" >&5 6486cat conftest.$ac_ext >&5 6487ac_cv_lib_dl_dlopen=no 6488fi 6489rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6490LIBS=$ac_check_lib_save_LIBS 6491fi 6492echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 6493echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 6494if test $ac_cv_lib_dl_dlopen = yes; then 6495 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 6496else 6497 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 6498echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 6499if test "${ac_cv_lib_svld_dlopen+set}" = set; then 6500 echo $ECHO_N "(cached) $ECHO_C" >&6 6501else 6502 ac_check_lib_save_LIBS=$LIBS 6503LIBS="-lsvld $LIBS" 6504cat >conftest.$ac_ext <<_ACEOF 6505#line $LINENO "configure" 6506#include "confdefs.h" 6507 6508/* Override any gcc2 internal prototype to avoid an error. */ 6509#ifdef __cplusplus 6510extern "C" 6511#endif 6512/* We use char because int might match the return type of a gcc2 6513 builtin and then its argument prototype would still apply. */ 6514char dlopen (); 6515#ifdef F77_DUMMY_MAIN 6516# ifdef __cplusplus 6517 extern "C" 6518# endif 6519 int F77_DUMMY_MAIN() { return 1; } 6520#endif 6521int 6522main () 6523{ 6524dlopen (); 6525 ; 6526 return 0; 6527} 6528_ACEOF 6529rm -f conftest.$ac_objext conftest$ac_exeext 6530if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6531 (eval $ac_link) 2>&5 6532 ac_status=$? 6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6534 (exit $ac_status); } && 6535 { ac_try='test -s conftest$ac_exeext' 6536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6537 (eval $ac_try) 2>&5 6538 ac_status=$? 6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6540 (exit $ac_status); }; }; then 6541 ac_cv_lib_svld_dlopen=yes 6542else 6543 echo "$as_me: failed program was:" >&5 6544cat conftest.$ac_ext >&5 6545ac_cv_lib_svld_dlopen=no 6546fi 6547rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6548LIBS=$ac_check_lib_save_LIBS 6549fi 6550echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 6551echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 6552if test $ac_cv_lib_svld_dlopen = yes; then 6553 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 6554else 6555 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 6556echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 6557if test "${ac_cv_lib_dld_dld_link+set}" = set; then 6558 echo $ECHO_N "(cached) $ECHO_C" >&6 6559else 6560 ac_check_lib_save_LIBS=$LIBS 6561LIBS="-ldld $LIBS" 6562cat >conftest.$ac_ext <<_ACEOF 6563#line $LINENO "configure" 6564#include "confdefs.h" 6565 6566/* Override any gcc2 internal prototype to avoid an error. */ 6567#ifdef __cplusplus 6568extern "C" 6569#endif 6570/* We use char because int might match the return type of a gcc2 6571 builtin and then its argument prototype would still apply. */ 6572char dld_link (); 6573#ifdef F77_DUMMY_MAIN 6574# ifdef __cplusplus 6575 extern "C" 6576# endif 6577 int F77_DUMMY_MAIN() { return 1; } 6578#endif 6579int 6580main () 6581{ 6582dld_link (); 6583 ; 6584 return 0; 6585} 6586_ACEOF 6587rm -f conftest.$ac_objext conftest$ac_exeext 6588if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6589 (eval $ac_link) 2>&5 6590 ac_status=$? 6591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6592 (exit $ac_status); } && 6593 { ac_try='test -s conftest$ac_exeext' 6594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6595 (eval $ac_try) 2>&5 6596 ac_status=$? 6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6598 (exit $ac_status); }; }; then 6599 ac_cv_lib_dld_dld_link=yes 6600else 6601 echo "$as_me: failed program was:" >&5 6602cat conftest.$ac_ext >&5 6603ac_cv_lib_dld_dld_link=no 6604fi 6605rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6606LIBS=$ac_check_lib_save_LIBS 6607fi 6608echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 6609echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 6610if test $ac_cv_lib_dld_dld_link = yes; then 6611 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 6612fi 6613 6614 6615fi 6616 6617 6618fi 6619 6620 6621fi 6622 6623 6624fi 6625 6626 6627fi 6628 6629 ;; 6630 esac 6631 6632 if test "x$lt_cv_dlopen" != xno; then 6633 enable_dlopen=yes 6634 else 6635 enable_dlopen=no 6636 fi 6637 6638 case $lt_cv_dlopen in 6639 dlopen) 6640 save_CPPFLAGS="$CPPFLAGS" 6641 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 6642 6643 save_LDFLAGS="$LDFLAGS" 6644 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 6645 6646 save_LIBS="$LIBS" 6647 LIBS="$lt_cv_dlopen_libs $LIBS" 6648 6649 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 6650echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 6651if test "${lt_cv_dlopen_self+set}" = set; then 6652 echo $ECHO_N "(cached) $ECHO_C" >&6 6653else 6654 if test "$cross_compiling" = yes; then : 6655 lt_cv_dlopen_self=cross 6656else 6657 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 6658 lt_status=$lt_dlunknown 6659 cat > conftest.$ac_ext <<EOF 6660#line 6660 "configure" 6661#include "confdefs.h" 6662 6663#if HAVE_DLFCN_H 6664#include <dlfcn.h> 6665#endif 6666 6667#include <stdio.h> 6668 6669#ifdef RTLD_GLOBAL 6670# define LT_DLGLOBAL RTLD_GLOBAL 6671#else 6672# ifdef DL_GLOBAL 6673# define LT_DLGLOBAL DL_GLOBAL 6674# else 6675# define LT_DLGLOBAL 0 6676# endif 6677#endif 6678 6679/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 6680 find out it does not work in some platform. */ 6681#ifndef LT_DLLAZY_OR_NOW 6682# ifdef RTLD_LAZY 6683# define LT_DLLAZY_OR_NOW RTLD_LAZY 6684# else 6685# ifdef DL_LAZY 6686# define LT_DLLAZY_OR_NOW DL_LAZY 6687# else 6688# ifdef RTLD_NOW 6689# define LT_DLLAZY_OR_NOW RTLD_NOW 6690# else 6691# ifdef DL_NOW 6692# define LT_DLLAZY_OR_NOW DL_NOW 6693# else 6694# define LT_DLLAZY_OR_NOW 0 6695# endif 6696# endif 6697# endif 6698# endif 6699#endif 6700 6701#ifdef __cplusplus 6702extern "C" void exit (int); 6703#endif 6704 6705void fnord() { int i=42;} 6706int main () 6707{ 6708 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 6709 int status = $lt_dlunknown; 6710 6711 if (self) 6712 { 6713 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 6714 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 6715 /* dlclose (self); */ 6716 } 6717 6718 exit (status); 6719} 6720EOF 6721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6722 (eval $ac_link) 2>&5 6723 ac_status=$? 6724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6725 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 6726 (./conftest; exit; ) 2>/dev/null 6727 lt_status=$? 6728 case x$lt_status in 6729 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 6730 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 6731 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 6732 esac 6733 else : 6734 # compilation failed 6735 lt_cv_dlopen_self=no 6736 fi 6737fi 6738rm -fr conftest* 6739 6740 6741fi 6742echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 6743echo "${ECHO_T}$lt_cv_dlopen_self" >&6 6744 6745 if test "x$lt_cv_dlopen_self" = xyes; then 6746 LDFLAGS="$LDFLAGS $link_static_flag" 6747 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 6748echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 6749if test "${lt_cv_dlopen_self_static+set}" = set; then 6750 echo $ECHO_N "(cached) $ECHO_C" >&6 6751else 6752 if test "$cross_compiling" = yes; then : 6753 lt_cv_dlopen_self_static=cross 6754else 6755 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 6756 lt_status=$lt_dlunknown 6757 cat > conftest.$ac_ext <<EOF 6758#line 6758 "configure" 6759#include "confdefs.h" 6760 6761#if HAVE_DLFCN_H 6762#include <dlfcn.h> 6763#endif 6764 6765#include <stdio.h> 6766 6767#ifdef RTLD_GLOBAL 6768# define LT_DLGLOBAL RTLD_GLOBAL 6769#else 6770# ifdef DL_GLOBAL 6771# define LT_DLGLOBAL DL_GLOBAL 6772# else 6773# define LT_DLGLOBAL 0 6774# endif 6775#endif 6776 6777/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 6778 find out it does not work in some platform. */ 6779#ifndef LT_DLLAZY_OR_NOW 6780# ifdef RTLD_LAZY 6781# define LT_DLLAZY_OR_NOW RTLD_LAZY 6782# else 6783# ifdef DL_LAZY 6784# define LT_DLLAZY_OR_NOW DL_LAZY 6785# else 6786# ifdef RTLD_NOW 6787# define LT_DLLAZY_OR_NOW RTLD_NOW 6788# else 6789# ifdef DL_NOW 6790# define LT_DLLAZY_OR_NOW DL_NOW 6791# else 6792# define LT_DLLAZY_OR_NOW 0 6793# endif 6794# endif 6795# endif 6796# endif 6797#endif 6798 6799#ifdef __cplusplus 6800extern "C" void exit (int); 6801#endif 6802 6803void fnord() { int i=42;} 6804int main () 6805{ 6806 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 6807 int status = $lt_dlunknown; 6808 6809 if (self) 6810 { 6811 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 6812 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 6813 /* dlclose (self); */ 6814 } 6815 6816 exit (status); 6817} 6818EOF 6819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6820 (eval $ac_link) 2>&5 6821 ac_status=$? 6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6823 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 6824 (./conftest; exit; ) 2>/dev/null 6825 lt_status=$? 6826 case x$lt_status in 6827 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 6828 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 6829 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 6830 esac 6831 else : 6832 # compilation failed 6833 lt_cv_dlopen_self_static=no 6834 fi 6835fi 6836rm -fr conftest* 6837 6838 6839fi 6840echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 6841echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 6842 fi 6843 6844 CPPFLAGS="$save_CPPFLAGS" 6845 LDFLAGS="$save_LDFLAGS" 6846 LIBS="$save_LIBS" 6847 ;; 6848 esac 6849 6850 case $lt_cv_dlopen_self in 6851 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 6852 *) enable_dlopen_self=unknown ;; 6853 esac 6854 6855 case $lt_cv_dlopen_self_static in 6856 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 6857 *) enable_dlopen_self_static=unknown ;; 6858 esac 6859fi 6860 6861 6862if test "$enable_shared" = yes && test "$GCC" = yes; then 6863 case $archive_cmds in 6864 *'~'*) 6865 # FIXME: we may have to deal with multi-command sequences. 6866 ;; 6867 '$CC '*) 6868 # Test whether the compiler implicitly links with -lc since on some 6869 # systems, -lgcc has to come before -lc. If gcc already passes -lc 6870 # to ld, don't add -lc before -lgcc. 6871 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 6872echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 6873 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then 6874 echo $ECHO_N "(cached) $ECHO_C" >&6 6875else 6876 $rm conftest* 6877 echo 'static int dummy;' > conftest.$ac_ext 6878 6879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6880 (eval $ac_compile) 2>&5 6881 ac_status=$? 6882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6883 (exit $ac_status); }; then 6884 soname=conftest 6885 lib=conftest 6886 libobjs=conftest.$ac_objext 6887 deplibs= 6888 wl=$lt_cv_prog_cc_wl 6889 compiler_flags=-v 6890 linker_flags=-v 6891 verstring= 6892 output_objdir=. 6893 libname=conftest 6894 save_allow_undefined_flag=$allow_undefined_flag 6895 allow_undefined_flag= 6896 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 6897 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 6898 ac_status=$? 6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6900 (exit $ac_status); } 6901 then 6902 lt_cv_archive_cmds_need_lc=no 6903 else 6904 lt_cv_archive_cmds_need_lc=yes 6905 fi 6906 allow_undefined_flag=$save_allow_undefined_flag 6907 else 6908 cat conftest.err 1>&5 6909 fi 6910fi 6911 6912 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5 6913echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6 6914 ;; 6915 esac 6916fi 6917need_lc=${lt_cv_archive_cmds_need_lc-yes} 6918 6919# The second clause should only fire when bootstrapping the 6920# libtool distribution, otherwise you forgot to ship ltmain.sh 6921# with your package, and you will get complaints that there are 6922# no rules to generate ltmain.sh. 6923if test -f "$ltmain"; then 6924 : 6925else 6926 # If there is no Makefile yet, we rely on a make rule to execute 6927 # `config.status --recheck' to rerun these tests and create the 6928 # libtool script then. 6929 test -f Makefile && make "$ltmain" 6930fi 6931 6932if test -f "$ltmain"; then 6933 trap "$rm \"${ofile}T\"; exit 1" 1 2 15 6934 $rm -f "${ofile}T" 6935 6936 echo creating $ofile 6937 6938 # Now quote all the things that may contain metacharacters while being 6939 # careful not to overquote the AC_SUBSTed values. We take copies of the 6940 # variables and quote the copies for generation of the libtool script. 6941 for var in echo old_CC old_CFLAGS \ 6942 AR AR_FLAGS CC LD LN_S NM SHELL \ 6943 reload_flag reload_cmds wl \ 6944 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ 6945 thread_safe_flag_spec whole_archive_flag_spec libname_spec \ 6946 library_names_spec soname_spec \ 6947 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ 6948 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \ 6949 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \ 6950 old_striplib striplib file_magic_cmd export_symbols_cmds \ 6951 deplibs_check_method allow_undefined_flag no_undefined_flag \ 6952 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ 6953 global_symbol_to_c_name_address \ 6954 hardcode_libdir_flag_spec hardcode_libdir_separator \ 6955 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 6956 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do 6957 6958 case $var in 6959 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ 6960 old_postinstall_cmds | old_postuninstall_cmds | \ 6961 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ 6962 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \ 6963 postinstall_cmds | postuninstall_cmds | \ 6964 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 6965 # Double-quote double-evaled strings. 6966 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 6967 ;; 6968 *) 6969 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 6970 ;; 6971 esac 6972 done 6973 6974 cat <<__EOF__ > "${ofile}T" 6975#! $SHELL 6976 6977# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 6978# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 6979# NOTE: Changes made to this file will be lost: look at ltmain.sh. 6980# 6981# Copyright (C) 1996-2000 Free Software Foundation, Inc. 6982# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 6983# 6984# This program is free software; you can redistribute it and/or modify 6985# it under the terms of the GNU General Public License as published by 6986# the Free Software Foundation; either version 2 of the License, or 6987# (at your option) any later version. 6988# 6989# This program is distributed in the hope that it will be useful, but 6990# WITHOUT ANY WARRANTY; without even the implied warranty of 6991# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 6992# General Public License for more details. 6993# 6994# You should have received a copy of the GNU General Public License 6995# along with this program; if not, write to the Free Software 6996# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 6997# 6998# As a special exception to the GNU General Public License, if you 6999# distribute this file as part of a program that contains a 7000# configuration script generated by Autoconf, you may include it under 7001# the same distribution terms that you use for the rest of that program. 7002 7003# Sed that helps us avoid accidentally triggering echo(1) options like -n. 7004Xsed="sed -e s/^X//" 7005 7006# The HP-UX ksh and POSIX shell print the target directory to stdout 7007# if CDPATH is set. 7008if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 7009 7010# ### BEGIN LIBTOOL CONFIG 7011 7012# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 7013 7014# Shell to use when invoking shell scripts. 7015SHELL=$lt_SHELL 7016 7017# Whether or not to build shared libraries. 7018build_libtool_libs=$enable_shared 7019 7020# Whether or not to build static libraries. 7021build_old_libs=$enable_static 7022 7023# Whether or not to add -lc for building shared libraries. 7024build_libtool_need_lc=$need_lc 7025 7026# Whether or not to optimize for fast installation. 7027fast_install=$enable_fast_install 7028 7029# The host system. 7030host_alias=$host_alias 7031host=$host 7032 7033# An echo program that does not interpret backslashes. 7034echo=$lt_echo 7035 7036# The archiver. 7037AR=$lt_AR 7038AR_FLAGS=$lt_AR_FLAGS 7039 7040# The default C compiler. 7041CC=$lt_CC 7042 7043# Is the compiler the GNU C compiler? 7044with_gcc=$GCC 7045 7046# The linker used to build libraries. 7047LD=$lt_LD 7048 7049# Whether we need hard or soft links. 7050LN_S=$lt_LN_S 7051 7052# A BSD-compatible nm program. 7053NM=$lt_NM 7054 7055# A symbol stripping program 7056STRIP=$STRIP 7057 7058# Used to examine libraries when file_magic_cmd begins "file" 7059MAGIC_CMD=$MAGIC_CMD 7060 7061# Used on cygwin: DLL creation program. 7062DLLTOOL="$DLLTOOL" 7063 7064# Used on cygwin: object dumper. 7065OBJDUMP="$OBJDUMP" 7066 7067# Used on cygwin: assembler. 7068AS="$AS" 7069 7070# The name of the directory that contains temporary libtool files. 7071objdir=$objdir 7072 7073# How to create reloadable object files. 7074reload_flag=$lt_reload_flag 7075reload_cmds=$lt_reload_cmds 7076 7077# How to pass a linker flag through the compiler. 7078wl=$lt_wl 7079 7080# Object file suffix (normally "o"). 7081objext="$ac_objext" 7082 7083# Old archive suffix (normally "a"). 7084libext="$libext" 7085 7086# Executable file suffix (normally ""). 7087exeext="$exeext" 7088 7089# Additional compiler flags for building library objects. 7090pic_flag=$lt_pic_flag 7091pic_mode=$pic_mode 7092 7093# Does compiler simultaneously support -c and -o options? 7094compiler_c_o=$lt_compiler_c_o 7095 7096# Can we write directly to a .lo ? 7097compiler_o_lo=$lt_compiler_o_lo 7098 7099# Must we lock files when doing compilation ? 7100need_locks=$lt_need_locks 7101 7102# Do we need the lib prefix for modules? 7103need_lib_prefix=$need_lib_prefix 7104 7105# Do we need a version for libraries? 7106need_version=$need_version 7107 7108# Whether dlopen is supported. 7109dlopen_support=$enable_dlopen 7110 7111# Whether dlopen of programs is supported. 7112dlopen_self=$enable_dlopen_self 7113 7114# Whether dlopen of statically linked programs is supported. 7115dlopen_self_static=$enable_dlopen_self_static 7116 7117# Compiler flag to prevent dynamic linking. 7118link_static_flag=$lt_link_static_flag 7119 7120# Compiler flag to turn off builtin functions. 7121no_builtin_flag=$lt_no_builtin_flag 7122 7123# Compiler flag to allow reflexive dlopens. 7124export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 7125 7126# Compiler flag to generate shared objects directly from archives. 7127whole_archive_flag_spec=$lt_whole_archive_flag_spec 7128 7129# Compiler flag to generate thread-safe objects. 7130thread_safe_flag_spec=$lt_thread_safe_flag_spec 7131 7132# Library versioning type. 7133version_type=$version_type 7134 7135# Format of library name prefix. 7136libname_spec=$lt_libname_spec 7137 7138# List of archive names. First name is the real one, the rest are links. 7139# The last name is the one that the linker finds with -lNAME. 7140library_names_spec=$lt_library_names_spec 7141 7142# The coded name of the library, if different from the real name. 7143soname_spec=$lt_soname_spec 7144 7145# Commands used to build and install an old-style archive. 7146RANLIB=$lt_RANLIB 7147old_archive_cmds=$lt_old_archive_cmds 7148old_postinstall_cmds=$lt_old_postinstall_cmds 7149old_postuninstall_cmds=$lt_old_postuninstall_cmds 7150 7151# Create an old-style archive from a shared archive. 7152old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 7153 7154# Create a temporary old-style archive to link instead of a shared archive. 7155old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 7156 7157# Commands used to build and install a shared archive. 7158archive_cmds=$lt_archive_cmds 7159archive_expsym_cmds=$lt_archive_expsym_cmds 7160postinstall_cmds=$lt_postinstall_cmds 7161postuninstall_cmds=$lt_postuninstall_cmds 7162 7163# Commands to strip libraries. 7164old_striplib=$lt_old_striplib 7165striplib=$lt_striplib 7166 7167# Method to check whether dependent libraries are shared objects. 7168deplibs_check_method=$lt_deplibs_check_method 7169 7170# Command to use when deplibs_check_method == file_magic. 7171file_magic_cmd=$lt_file_magic_cmd 7172 7173# Flag that allows shared libraries with undefined symbols to be built. 7174allow_undefined_flag=$lt_allow_undefined_flag 7175 7176# Flag that forces no undefined symbols. 7177no_undefined_flag=$lt_no_undefined_flag 7178 7179# Commands used to finish a libtool library installation in a directory. 7180finish_cmds=$lt_finish_cmds 7181 7182# Same as above, but a single script fragment to be evaled but not shown. 7183finish_eval=$lt_finish_eval 7184 7185# Take the output of nm and produce a listing of raw symbols and C names. 7186global_symbol_pipe=$lt_global_symbol_pipe 7187 7188# Transform the output of nm in a proper C declaration 7189global_symbol_to_cdecl=$lt_global_symbol_to_cdecl 7190 7191# Transform the output of nm in a C name address pair 7192global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address 7193 7194# This is the shared library runtime path variable. 7195runpath_var=$runpath_var 7196 7197# This is the shared library path variable. 7198shlibpath_var=$shlibpath_var 7199 7200# Is shlibpath searched before the hard-coded library search path? 7201shlibpath_overrides_runpath=$shlibpath_overrides_runpath 7202 7203# How to hardcode a shared library path into an executable. 7204hardcode_action=$hardcode_action 7205 7206# Whether we should hardcode library paths into libraries. 7207hardcode_into_libs=$hardcode_into_libs 7208 7209# Flag to hardcode \$libdir into a binary during linking. 7210# This must work even if \$libdir does not exist. 7211hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 7212 7213# Whether we need a single -rpath flag with a separated argument. 7214hardcode_libdir_separator=$lt_hardcode_libdir_separator 7215 7216# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the 7217# resulting binary. 7218hardcode_direct=$hardcode_direct 7219 7220# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 7221# resulting binary. 7222hardcode_minus_L=$hardcode_minus_L 7223 7224# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 7225# the resulting binary. 7226hardcode_shlibpath_var=$hardcode_shlibpath_var 7227 7228# Variables whose values should be saved in libtool wrapper scripts and 7229# restored at relink time. 7230variables_saved_for_relink="$variables_saved_for_relink" 7231 7232# Whether libtool must link a program against all its dependency libraries. 7233link_all_deplibs=$link_all_deplibs 7234 7235# Compile-time system search path for libraries 7236sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 7237 7238# Run-time system search path for libraries 7239sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 7240 7241# Fix the shell variable \$srcfile for the compiler. 7242fix_srcfile_path="$fix_srcfile_path" 7243 7244# Set to yes if exported symbols are required. 7245always_export_symbols=$always_export_symbols 7246 7247# The commands to list exported symbols. 7248export_symbols_cmds=$lt_export_symbols_cmds 7249 7250# The commands to extract the exported symbol list from a shared archive. 7251extract_expsyms_cmds=$lt_extract_expsyms_cmds 7252 7253# Symbols that should not be listed in the preloaded symbols. 7254exclude_expsyms=$lt_exclude_expsyms 7255 7256# Symbols that must always be exported. 7257include_expsyms=$lt_include_expsyms 7258 7259# ### END LIBTOOL CONFIG 7260 7261__EOF__ 7262 7263 case $host_os in 7264 aix3*) 7265 cat <<\EOF >> "${ofile}T" 7266 7267# AIX sometimes has problems with the GCC collect2 program. For some 7268# reason, if we set the COLLECT_NAMES environment variable, the problems 7269# vanish in a puff of smoke. 7270if test "X${COLLECT_NAMES+set}" != Xset; then 7271 COLLECT_NAMES= 7272 export COLLECT_NAMES 7273fi 7274EOF 7275 ;; 7276 esac 7277 7278 case $host_os in 7279 cygwin* | mingw* | pw32* | os2*) 7280 cat <<'EOF' >> "${ofile}T" 7281 # This is a source program that is used to create dlls on Windows 7282 # Don't remove nor modify the starting and closing comments 7283# /* ltdll.c starts here */ 7284# #define WIN32_LEAN_AND_MEAN 7285# #include <windows.h> 7286# #undef WIN32_LEAN_AND_MEAN 7287# #include <stdio.h> 7288# 7289# #ifndef __CYGWIN__ 7290# # ifdef __CYGWIN32__ 7291# # define __CYGWIN__ __CYGWIN32__ 7292# # endif 7293# #endif 7294# 7295# #ifdef __cplusplus 7296# extern "C" { 7297# #endif 7298# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); 7299# #ifdef __cplusplus 7300# } 7301# #endif 7302# 7303# #ifdef __CYGWIN__ 7304# #include <cygwin/cygwin_dll.h> 7305# DECLARE_CYGWIN_DLL( DllMain ); 7306# #endif 7307# HINSTANCE __hDllInstance_base; 7308# 7309# BOOL APIENTRY 7310# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) 7311# { 7312# __hDllInstance_base = hInst; 7313# return TRUE; 7314# } 7315# /* ltdll.c ends here */ 7316 # This is a source program that is used to create import libraries 7317 # on Windows for dlls which lack them. Don't remove nor modify the 7318 # starting and closing comments 7319# /* impgen.c starts here */ 7320# /* Copyright (C) 1999-2000 Free Software Foundation, Inc. 7321# 7322# This file is part of GNU libtool. 7323# 7324# This program is free software; you can redistribute it and/or modify 7325# it under the terms of the GNU General Public License as published by 7326# the Free Software Foundation; either version 2 of the License, or 7327# (at your option) any later version. 7328# 7329# This program is distributed in the hope that it will be useful, 7330# but WITHOUT ANY WARRANTY; without even the implied warranty of 7331# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 7332# GNU General Public License for more details. 7333# 7334# You should have received a copy of the GNU General Public License 7335# along with this program; if not, write to the Free Software 7336# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 7337# */ 7338# 7339# #include <stdio.h> /* for printf() */ 7340# #include <unistd.h> /* for open(), lseek(), read() */ 7341# #include <fcntl.h> /* for O_RDONLY, O_BINARY */ 7342# #include <string.h> /* for strdup() */ 7343# 7344# /* O_BINARY isn't required (or even defined sometimes) under Unix */ 7345# #ifndef O_BINARY 7346# #define O_BINARY 0 7347# #endif 7348# 7349# static unsigned int 7350# pe_get16 (fd, offset) 7351# int fd; 7352# int offset; 7353# { 7354# unsigned char b[2]; 7355# lseek (fd, offset, SEEK_SET); 7356# read (fd, b, 2); 7357# return b[0] + (b[1]<<8); 7358# } 7359# 7360# static unsigned int 7361# pe_get32 (fd, offset) 7362# int fd; 7363# int offset; 7364# { 7365# unsigned char b[4]; 7366# lseek (fd, offset, SEEK_SET); 7367# read (fd, b, 4); 7368# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); 7369# } 7370# 7371# static unsigned int 7372# pe_as32 (ptr) 7373# void *ptr; 7374# { 7375# unsigned char *b = ptr; 7376# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); 7377# } 7378# 7379# int 7380# main (argc, argv) 7381# int argc; 7382# char *argv[]; 7383# { 7384# int dll; 7385# unsigned long pe_header_offset, opthdr_ofs, num_entries, i; 7386# unsigned long export_rva, export_size, nsections, secptr, expptr; 7387# unsigned long name_rvas, nexp; 7388# unsigned char *expdata, *erva; 7389# char *filename, *dll_name; 7390# 7391# filename = argv[1]; 7392# 7393# dll = open(filename, O_RDONLY|O_BINARY); 7394# if (dll < 1) 7395# return 1; 7396# 7397# dll_name = filename; 7398# 7399# for (i=0; filename[i]; i++) 7400# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') 7401# dll_name = filename + i +1; 7402# 7403# pe_header_offset = pe_get32 (dll, 0x3c); 7404# opthdr_ofs = pe_header_offset + 4 + 20; 7405# num_entries = pe_get32 (dll, opthdr_ofs + 92); 7406# 7407# if (num_entries < 1) /* no exports */ 7408# return 1; 7409# 7410# export_rva = pe_get32 (dll, opthdr_ofs + 96); 7411# export_size = pe_get32 (dll, opthdr_ofs + 100); 7412# nsections = pe_get16 (dll, pe_header_offset + 4 +2); 7413# secptr = (pe_header_offset + 4 + 20 + 7414# pe_get16 (dll, pe_header_offset + 4 + 16)); 7415# 7416# expptr = 0; 7417# for (i = 0; i < nsections; i++) 7418# { 7419# char sname[8]; 7420# unsigned long secptr1 = secptr + 40 * i; 7421# unsigned long vaddr = pe_get32 (dll, secptr1 + 12); 7422# unsigned long vsize = pe_get32 (dll, secptr1 + 16); 7423# unsigned long fptr = pe_get32 (dll, secptr1 + 20); 7424# lseek(dll, secptr1, SEEK_SET); 7425# read(dll, sname, 8); 7426# if (vaddr <= export_rva && vaddr+vsize > export_rva) 7427# { 7428# expptr = fptr + (export_rva - vaddr); 7429# if (export_rva + export_size > vaddr + vsize) 7430# export_size = vsize - (export_rva - vaddr); 7431# break; 7432# } 7433# } 7434# 7435# expdata = (unsigned char*)malloc(export_size); 7436# lseek (dll, expptr, SEEK_SET); 7437# read (dll, expdata, export_size); 7438# erva = expdata - export_rva; 7439# 7440# nexp = pe_as32 (expdata+24); 7441# name_rvas = pe_as32 (expdata+32); 7442# 7443# printf ("EXPORTS\n"); 7444# for (i = 0; i<nexp; i++) 7445# { 7446# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); 7447# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); 7448# } 7449# 7450# return 0; 7451# } 7452# /* impgen.c ends here */ 7453 7454EOF 7455 ;; 7456 esac 7457 7458 # We use sed instead of cat because bash on DJGPP gets confused if 7459 # if finds mixed CR/LF and LF-only lines. Since sed operates in 7460 # text mode, it properly converts lines to CR/LF. This bash problem 7461 # is reportedly fixed, but why not run on old versions too? 7462 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1) 7463 7464 mv -f "${ofile}T" "$ofile" || \ 7465 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") 7466 chmod +x "$ofile" 7467fi 7468 7469 7470 7471 7472 7473# This can be used to rebuild libtool when needed 7474LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 7475 7476# Always use our own libtool. 7477LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7478 7479# Prevent multiple expansion 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512echo "$as_me:$LINENO: checking for ANSI C header files" >&5 7513echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 7514if test "${ac_cv_header_stdc+set}" = set; then 7515 echo $ECHO_N "(cached) $ECHO_C" >&6 7516else 7517 cat >conftest.$ac_ext <<_ACEOF 7518#line $LINENO "configure" 7519#include "confdefs.h" 7520#include <stdlib.h> 7521#include <stdarg.h> 7522#include <string.h> 7523#include <float.h> 7524 7525_ACEOF 7526if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7527 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7528 ac_status=$? 7529 egrep -v '^ *\+' conftest.er1 >conftest.err 7530 rm -f conftest.er1 7531 cat conftest.err >&5 7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7533 (exit $ac_status); } >/dev/null; then 7534 if test -s conftest.err; then 7535 ac_cpp_err=$ac_c_preproc_warn_flag 7536 else 7537 ac_cpp_err= 7538 fi 7539else 7540 ac_cpp_err=yes 7541fi 7542if test -z "$ac_cpp_err"; then 7543 ac_cv_header_stdc=yes 7544else 7545 echo "$as_me: failed program was:" >&5 7546 cat conftest.$ac_ext >&5 7547 ac_cv_header_stdc=no 7548fi 7549rm -f conftest.err conftest.$ac_ext 7550 7551if test $ac_cv_header_stdc = yes; then 7552 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7553 cat >conftest.$ac_ext <<_ACEOF 7554#line $LINENO "configure" 7555#include "confdefs.h" 7556#include <string.h> 7557 7558_ACEOF 7559if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7560 egrep "memchr" >/dev/null 2>&1; then 7561 : 7562else 7563 ac_cv_header_stdc=no 7564fi 7565rm -f conftest* 7566 7567fi 7568 7569if test $ac_cv_header_stdc = yes; then 7570 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7571 cat >conftest.$ac_ext <<_ACEOF 7572#line $LINENO "configure" 7573#include "confdefs.h" 7574#include <stdlib.h> 7575 7576_ACEOF 7577if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7578 egrep "free" >/dev/null 2>&1; then 7579 : 7580else 7581 ac_cv_header_stdc=no 7582fi 7583rm -f conftest* 7584 7585fi 7586 7587if test $ac_cv_header_stdc = yes; then 7588 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7589 if test "$cross_compiling" = yes; then 7590 : 7591else 7592 cat >conftest.$ac_ext <<_ACEOF 7593#line $LINENO "configure" 7594#include "confdefs.h" 7595#include <ctype.h> 7596#if ((' ' & 0x0FF) == 0x020) 7597# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7598# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7599#else 7600# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 7601 || ('j' <= (c) && (c) <= 'r') \ 7602 || ('s' <= (c) && (c) <= 'z')) 7603# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7604#endif 7605 7606#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7607int 7608main () 7609{ 7610 int i; 7611 for (i = 0; i < 256; i++) 7612 if (XOR (islower (i), ISLOWER (i)) 7613 || toupper (i) != TOUPPER (i)) 7614 exit(2); 7615 exit (0); 7616} 7617_ACEOF 7618rm -f conftest$ac_exeext 7619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7620 (eval $ac_link) 2>&5 7621 ac_status=$? 7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7623 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7625 (eval $ac_try) 2>&5 7626 ac_status=$? 7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7628 (exit $ac_status); }; }; then 7629 : 7630else 7631 echo "$as_me: program exited with status $ac_status" >&5 7632echo "$as_me: failed program was:" >&5 7633cat conftest.$ac_ext >&5 7634( exit $ac_status ) 7635ac_cv_header_stdc=no 7636fi 7637rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7638fi 7639fi 7640fi 7641echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 7642echo "${ECHO_T}$ac_cv_header_stdc" >&6 7643if test $ac_cv_header_stdc = yes; then 7644 7645cat >>confdefs.h <<\_ACEOF 7646#define STDC_HEADERS 1 7647_ACEOF 7648 7649fi 7650 7651echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 7652echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6 7653if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then 7654 echo $ECHO_N "(cached) $ECHO_C" >&6 7655else 7656 cat >conftest.$ac_ext <<_ACEOF 7657#line $LINENO "configure" 7658#include "confdefs.h" 7659#include <sys/types.h> 7660#ifdef F77_DUMMY_MAIN 7661# ifdef __cplusplus 7662 extern "C" 7663# endif 7664 int F77_DUMMY_MAIN() { return 1; } 7665#endif 7666int 7667main () 7668{ 7669return makedev(0, 0); 7670 ; 7671 return 0; 7672} 7673_ACEOF 7674rm -f conftest.$ac_objext conftest$ac_exeext 7675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7676 (eval $ac_link) 2>&5 7677 ac_status=$? 7678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7679 (exit $ac_status); } && 7680 { ac_try='test -s conftest$ac_exeext' 7681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7682 (eval $ac_try) 2>&5 7683 ac_status=$? 7684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7685 (exit $ac_status); }; }; then 7686 ac_cv_header_sys_types_h_makedev=yes 7687else 7688 echo "$as_me: failed program was:" >&5 7689cat conftest.$ac_ext >&5 7690ac_cv_header_sys_types_h_makedev=no 7691fi 7692rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7693 7694fi 7695echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 7696echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6 7697 7698if test $ac_cv_header_sys_types_h_makedev = no; then 7699if test "${ac_cv_header_sys_mkdev_h+set}" = set; then 7700 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 7701echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 7702if test "${ac_cv_header_sys_mkdev_h+set}" = set; then 7703 echo $ECHO_N "(cached) $ECHO_C" >&6 7704fi 7705echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 7706echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 7707else 7708 # Is the header compilable? 7709echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 7710echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6 7711cat >conftest.$ac_ext <<_ACEOF 7712#line $LINENO "configure" 7713#include "confdefs.h" 7714$ac_includes_default 7715#include <sys/mkdev.h> 7716_ACEOF 7717rm -f conftest.$ac_objext 7718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7719 (eval $ac_compile) 2>&5 7720 ac_status=$? 7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7722 (exit $ac_status); } && 7723 { ac_try='test -s conftest.$ac_objext' 7724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7725 (eval $ac_try) 2>&5 7726 ac_status=$? 7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7728 (exit $ac_status); }; }; then 7729 ac_header_compiler=yes 7730else 7731 echo "$as_me: failed program was:" >&5 7732cat conftest.$ac_ext >&5 7733ac_header_compiler=no 7734fi 7735rm -f conftest.$ac_objext conftest.$ac_ext 7736echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7737echo "${ECHO_T}$ac_header_compiler" >&6 7738 7739# Is the header present? 7740echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 7741echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6 7742cat >conftest.$ac_ext <<_ACEOF 7743#line $LINENO "configure" 7744#include "confdefs.h" 7745#include <sys/mkdev.h> 7746_ACEOF 7747if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7748 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7749 ac_status=$? 7750 egrep -v '^ *\+' conftest.er1 >conftest.err 7751 rm -f conftest.er1 7752 cat conftest.err >&5 7753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7754 (exit $ac_status); } >/dev/null; then 7755 if test -s conftest.err; then 7756 ac_cpp_err=$ac_c_preproc_warn_flag 7757 else 7758 ac_cpp_err= 7759 fi 7760else 7761 ac_cpp_err=yes 7762fi 7763if test -z "$ac_cpp_err"; then 7764 ac_header_preproc=yes 7765else 7766 echo "$as_me: failed program was:" >&5 7767 cat conftest.$ac_ext >&5 7768 ac_header_preproc=no 7769fi 7770rm -f conftest.err conftest.$ac_ext 7771echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7772echo "${ECHO_T}$ac_header_preproc" >&6 7773 7774# So? What about this header? 7775case $ac_header_compiler:$ac_header_preproc in 7776 yes:no ) 7777 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 7778echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 7779 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 7780echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;};; 7781 no:yes ) 7782 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 7783echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} 7784 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 7785echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} 7786 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 7787echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;};; 7788esac 7789echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 7790echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 7791if test "${ac_cv_header_sys_mkdev_h+set}" = set; then 7792 echo $ECHO_N "(cached) $ECHO_C" >&6 7793else 7794 ac_cv_header_sys_mkdev_h=$ac_header_preproc 7795fi 7796echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 7797echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 7798 7799fi 7800if test $ac_cv_header_sys_mkdev_h = yes; then 7801 7802cat >>confdefs.h <<\_ACEOF 7803#define MAJOR_IN_MKDEV 1 7804_ACEOF 7805 7806fi 7807 7808 7809 7810 if test $ac_cv_header_sys_mkdev_h = no; then 7811 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then 7812 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 7813echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 7814if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then 7815 echo $ECHO_N "(cached) $ECHO_C" >&6 7816fi 7817echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 7818echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 7819else 7820 # Is the header compilable? 7821echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 7822echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6 7823cat >conftest.$ac_ext <<_ACEOF 7824#line $LINENO "configure" 7825#include "confdefs.h" 7826$ac_includes_default 7827#include <sys/sysmacros.h> 7828_ACEOF 7829rm -f conftest.$ac_objext 7830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7831 (eval $ac_compile) 2>&5 7832 ac_status=$? 7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7834 (exit $ac_status); } && 7835 { ac_try='test -s conftest.$ac_objext' 7836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7837 (eval $ac_try) 2>&5 7838 ac_status=$? 7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7840 (exit $ac_status); }; }; then 7841 ac_header_compiler=yes 7842else 7843 echo "$as_me: failed program was:" >&5 7844cat conftest.$ac_ext >&5 7845ac_header_compiler=no 7846fi 7847rm -f conftest.$ac_objext conftest.$ac_ext 7848echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7849echo "${ECHO_T}$ac_header_compiler" >&6 7850 7851# Is the header present? 7852echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 7853echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6 7854cat >conftest.$ac_ext <<_ACEOF 7855#line $LINENO "configure" 7856#include "confdefs.h" 7857#include <sys/sysmacros.h> 7858_ACEOF 7859if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7860 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7861 ac_status=$? 7862 egrep -v '^ *\+' conftest.er1 >conftest.err 7863 rm -f conftest.er1 7864 cat conftest.err >&5 7865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7866 (exit $ac_status); } >/dev/null; then 7867 if test -s conftest.err; then 7868 ac_cpp_err=$ac_c_preproc_warn_flag 7869 else 7870 ac_cpp_err= 7871 fi 7872else 7873 ac_cpp_err=yes 7874fi 7875if test -z "$ac_cpp_err"; then 7876 ac_header_preproc=yes 7877else 7878 echo "$as_me: failed program was:" >&5 7879 cat conftest.$ac_ext >&5 7880 ac_header_preproc=no 7881fi 7882rm -f conftest.err conftest.$ac_ext 7883echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7884echo "${ECHO_T}$ac_header_preproc" >&6 7885 7886# So? What about this header? 7887case $ac_header_compiler:$ac_header_preproc in 7888 yes:no ) 7889 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 7890echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 7891 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 7892echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;};; 7893 no:yes ) 7894 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 7895echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} 7896 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 7897echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} 7898 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 7899echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;};; 7900esac 7901echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 7902echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 7903if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then 7904 echo $ECHO_N "(cached) $ECHO_C" >&6 7905else 7906 ac_cv_header_sys_sysmacros_h=$ac_header_preproc 7907fi 7908echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 7909echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 7910 7911fi 7912if test $ac_cv_header_sys_sysmacros_h = yes; then 7913 7914cat >>confdefs.h <<\_ACEOF 7915#define MAJOR_IN_SYSMACROS 1 7916_ACEOF 7917 7918fi 7919 7920 7921 fi 7922fi 7923 7924echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 7925echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 7926if test "${ac_cv_header_sys_wait_h+set}" = set; then 7927 echo $ECHO_N "(cached) $ECHO_C" >&6 7928else 7929 cat >conftest.$ac_ext <<_ACEOF 7930#line $LINENO "configure" 7931#include "confdefs.h" 7932#include <sys/types.h> 7933#include <sys/wait.h> 7934#ifndef WEXITSTATUS 7935# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 7936#endif 7937#ifndef WIFEXITED 7938# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 7939#endif 7940 7941#ifdef F77_DUMMY_MAIN 7942# ifdef __cplusplus 7943 extern "C" 7944# endif 7945 int F77_DUMMY_MAIN() { return 1; } 7946#endif 7947int 7948main () 7949{ 7950 int s; 7951 wait (&s); 7952 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 7953 ; 7954 return 0; 7955} 7956_ACEOF 7957rm -f conftest.$ac_objext 7958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7959 (eval $ac_compile) 2>&5 7960 ac_status=$? 7961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7962 (exit $ac_status); } && 7963 { ac_try='test -s conftest.$ac_objext' 7964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7965 (eval $ac_try) 2>&5 7966 ac_status=$? 7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7968 (exit $ac_status); }; }; then 7969 ac_cv_header_sys_wait_h=yes 7970else 7971 echo "$as_me: failed program was:" >&5 7972cat conftest.$ac_ext >&5 7973ac_cv_header_sys_wait_h=no 7974fi 7975rm -f conftest.$ac_objext conftest.$ac_ext 7976fi 7977echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 7978echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 7979if test $ac_cv_header_sys_wait_h = yes; then 7980 7981cat >>confdefs.h <<\_ACEOF 7982#define HAVE_SYS_WAIT_H 1 7983_ACEOF 7984 7985fi 7986 7987 7988for ac_header in stdint.h 7989do 7990as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7991if eval "test \"\${$as_ac_Header+set}\" = set"; then 7992 echo "$as_me:$LINENO: checking for $ac_header" >&5 7993echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7994if eval "test \"\${$as_ac_Header+set}\" = set"; then 7995 echo $ECHO_N "(cached) $ECHO_C" >&6 7996fi 7997echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7998echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7999else 8000 # Is the header compilable? 8001echo "$as_me:$LINENO: checking $ac_header usability" >&5 8002echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 8003cat >conftest.$ac_ext <<_ACEOF 8004#line $LINENO "configure" 8005#include "confdefs.h" 8006$ac_includes_default 8007#include <$ac_header> 8008_ACEOF 8009rm -f conftest.$ac_objext 8010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8011 (eval $ac_compile) 2>&5 8012 ac_status=$? 8013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8014 (exit $ac_status); } && 8015 { ac_try='test -s conftest.$ac_objext' 8016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8017 (eval $ac_try) 2>&5 8018 ac_status=$? 8019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8020 (exit $ac_status); }; }; then 8021 ac_header_compiler=yes 8022else 8023 echo "$as_me: failed program was:" >&5 8024cat conftest.$ac_ext >&5 8025ac_header_compiler=no 8026fi 8027rm -f conftest.$ac_objext conftest.$ac_ext 8028echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8029echo "${ECHO_T}$ac_header_compiler" >&6 8030 8031# Is the header present? 8032echo "$as_me:$LINENO: checking $ac_header presence" >&5 8033echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 8034cat >conftest.$ac_ext <<_ACEOF 8035#line $LINENO "configure" 8036#include "confdefs.h" 8037#include <$ac_header> 8038_ACEOF 8039if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8041 ac_status=$? 8042 egrep -v '^ *\+' conftest.er1 >conftest.err 8043 rm -f conftest.er1 8044 cat conftest.err >&5 8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8046 (exit $ac_status); } >/dev/null; then 8047 if test -s conftest.err; then 8048 ac_cpp_err=$ac_c_preproc_warn_flag 8049 else 8050 ac_cpp_err= 8051 fi 8052else 8053 ac_cpp_err=yes 8054fi 8055if test -z "$ac_cpp_err"; then 8056 ac_header_preproc=yes 8057else 8058 echo "$as_me: failed program was:" >&5 8059 cat conftest.$ac_ext >&5 8060 ac_header_preproc=no 8061fi 8062rm -f conftest.err conftest.$ac_ext 8063echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8064echo "${ECHO_T}$ac_header_preproc" >&6 8065 8066# So? What about this header? 8067case $ac_header_compiler:$ac_header_preproc in 8068 yes:no ) 8069 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8070echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8072echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 8073 no:yes ) 8074 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8075echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8076 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8077echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8079echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 8080esac 8081echo "$as_me:$LINENO: checking for $ac_header" >&5 8082echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8083if eval "test \"\${$as_ac_Header+set}\" = set"; then 8084 echo $ECHO_N "(cached) $ECHO_C" >&6 8085else 8086 eval "$as_ac_Header=$ac_header_preproc" 8087fi 8088echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8089echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8090 8091fi 8092if test `eval echo '${'$as_ac_Header'}'` = yes; then 8093 cat >>confdefs.h <<_ACEOF 8094#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8095_ACEOF 8096 8097fi 8098 8099done 8100 8101 8102 8103for ac_header in fcntl.h locale.h 8104do 8105as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8106if eval "test \"\${$as_ac_Header+set}\" = set"; then 8107 echo "$as_me:$LINENO: checking for $ac_header" >&5 8108echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8109if eval "test \"\${$as_ac_Header+set}\" = set"; then 8110 echo $ECHO_N "(cached) $ECHO_C" >&6 8111fi 8112echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8113echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8114else 8115 # Is the header compilable? 8116echo "$as_me:$LINENO: checking $ac_header usability" >&5 8117echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 8118cat >conftest.$ac_ext <<_ACEOF 8119#line $LINENO "configure" 8120#include "confdefs.h" 8121$ac_includes_default 8122#include <$ac_header> 8123_ACEOF 8124rm -f conftest.$ac_objext 8125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8126 (eval $ac_compile) 2>&5 8127 ac_status=$? 8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8129 (exit $ac_status); } && 8130 { ac_try='test -s conftest.$ac_objext' 8131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8132 (eval $ac_try) 2>&5 8133 ac_status=$? 8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8135 (exit $ac_status); }; }; then 8136 ac_header_compiler=yes 8137else 8138 echo "$as_me: failed program was:" >&5 8139cat conftest.$ac_ext >&5 8140ac_header_compiler=no 8141fi 8142rm -f conftest.$ac_objext conftest.$ac_ext 8143echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8144echo "${ECHO_T}$ac_header_compiler" >&6 8145 8146# Is the header present? 8147echo "$as_me:$LINENO: checking $ac_header presence" >&5 8148echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 8149cat >conftest.$ac_ext <<_ACEOF 8150#line $LINENO "configure" 8151#include "confdefs.h" 8152#include <$ac_header> 8153_ACEOF 8154if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8156 ac_status=$? 8157 egrep -v '^ *\+' conftest.er1 >conftest.err 8158 rm -f conftest.er1 8159 cat conftest.err >&5 8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8161 (exit $ac_status); } >/dev/null; then 8162 if test -s conftest.err; then 8163 ac_cpp_err=$ac_c_preproc_warn_flag 8164 else 8165 ac_cpp_err= 8166 fi 8167else 8168 ac_cpp_err=yes 8169fi 8170if test -z "$ac_cpp_err"; then 8171 ac_header_preproc=yes 8172else 8173 echo "$as_me: failed program was:" >&5 8174 cat conftest.$ac_ext >&5 8175 ac_header_preproc=no 8176fi 8177rm -f conftest.err conftest.$ac_ext 8178echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8179echo "${ECHO_T}$ac_header_preproc" >&6 8180 8181# So? What about this header? 8182case $ac_header_compiler:$ac_header_preproc in 8183 yes:no ) 8184 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8185echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8187echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 8188 no:yes ) 8189 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8190echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8191 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8192echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8194echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 8195esac 8196echo "$as_me:$LINENO: checking for $ac_header" >&5 8197echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8198if eval "test \"\${$as_ac_Header+set}\" = set"; then 8199 echo $ECHO_N "(cached) $ECHO_C" >&6 8200else 8201 eval "$as_ac_Header=$ac_header_preproc" 8202fi 8203echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8204echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8205 8206fi 8207if test `eval echo '${'$as_ac_Header'}'` = yes; then 8208 cat >>confdefs.h <<_ACEOF 8209#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8210_ACEOF 8211 8212fi 8213 8214done 8215 8216 8217 8218 8219for ac_header in sys/mman.h sys/stat.h sys/types.h 8220do 8221as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8222if eval "test \"\${$as_ac_Header+set}\" = set"; then 8223 echo "$as_me:$LINENO: checking for $ac_header" >&5 8224echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8225if eval "test \"\${$as_ac_Header+set}\" = set"; then 8226 echo $ECHO_N "(cached) $ECHO_C" >&6 8227fi 8228echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8229echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8230else 8231 # Is the header compilable? 8232echo "$as_me:$LINENO: checking $ac_header usability" >&5 8233echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 8234cat >conftest.$ac_ext <<_ACEOF 8235#line $LINENO "configure" 8236#include "confdefs.h" 8237$ac_includes_default 8238#include <$ac_header> 8239_ACEOF 8240rm -f conftest.$ac_objext 8241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8242 (eval $ac_compile) 2>&5 8243 ac_status=$? 8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8245 (exit $ac_status); } && 8246 { ac_try='test -s conftest.$ac_objext' 8247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8248 (eval $ac_try) 2>&5 8249 ac_status=$? 8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8251 (exit $ac_status); }; }; then 8252 ac_header_compiler=yes 8253else 8254 echo "$as_me: failed program was:" >&5 8255cat conftest.$ac_ext >&5 8256ac_header_compiler=no 8257fi 8258rm -f conftest.$ac_objext conftest.$ac_ext 8259echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8260echo "${ECHO_T}$ac_header_compiler" >&6 8261 8262# Is the header present? 8263echo "$as_me:$LINENO: checking $ac_header presence" >&5 8264echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 8265cat >conftest.$ac_ext <<_ACEOF 8266#line $LINENO "configure" 8267#include "confdefs.h" 8268#include <$ac_header> 8269_ACEOF 8270if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8271 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8272 ac_status=$? 8273 egrep -v '^ *\+' conftest.er1 >conftest.err 8274 rm -f conftest.er1 8275 cat conftest.err >&5 8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8277 (exit $ac_status); } >/dev/null; then 8278 if test -s conftest.err; then 8279 ac_cpp_err=$ac_c_preproc_warn_flag 8280 else 8281 ac_cpp_err= 8282 fi 8283else 8284 ac_cpp_err=yes 8285fi 8286if test -z "$ac_cpp_err"; then 8287 ac_header_preproc=yes 8288else 8289 echo "$as_me: failed program was:" >&5 8290 cat conftest.$ac_ext >&5 8291 ac_header_preproc=no 8292fi 8293rm -f conftest.err conftest.$ac_ext 8294echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8295echo "${ECHO_T}$ac_header_preproc" >&6 8296 8297# So? What about this header? 8298case $ac_header_compiler:$ac_header_preproc in 8299 yes:no ) 8300 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8301echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8303echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 8304 no:yes ) 8305 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8306echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8307 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8308echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8310echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 8311esac 8312echo "$as_me:$LINENO: checking for $ac_header" >&5 8313echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8314if eval "test \"\${$as_ac_Header+set}\" = set"; then 8315 echo $ECHO_N "(cached) $ECHO_C" >&6 8316else 8317 eval "$as_ac_Header=$ac_header_preproc" 8318fi 8319echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8320echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8321 8322fi 8323if test `eval echo '${'$as_ac_Header'}'` = yes; then 8324 cat >>confdefs.h <<_ACEOF 8325#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8326_ACEOF 8327 8328fi 8329 8330done 8331 8332 8333 8334for ac_header in stdint.h inttypes.h 8335do 8336as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8337if eval "test \"\${$as_ac_Header+set}\" = set"; then 8338 echo "$as_me:$LINENO: checking for $ac_header" >&5 8339echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8340if eval "test \"\${$as_ac_Header+set}\" = set"; then 8341 echo $ECHO_N "(cached) $ECHO_C" >&6 8342fi 8343echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8344echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8345else 8346 # Is the header compilable? 8347echo "$as_me:$LINENO: checking $ac_header usability" >&5 8348echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 8349cat >conftest.$ac_ext <<_ACEOF 8350#line $LINENO "configure" 8351#include "confdefs.h" 8352$ac_includes_default 8353#include <$ac_header> 8354_ACEOF 8355rm -f conftest.$ac_objext 8356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8357 (eval $ac_compile) 2>&5 8358 ac_status=$? 8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8360 (exit $ac_status); } && 8361 { ac_try='test -s conftest.$ac_objext' 8362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8363 (eval $ac_try) 2>&5 8364 ac_status=$? 8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8366 (exit $ac_status); }; }; then 8367 ac_header_compiler=yes 8368else 8369 echo "$as_me: failed program was:" >&5 8370cat conftest.$ac_ext >&5 8371ac_header_compiler=no 8372fi 8373rm -f conftest.$ac_objext conftest.$ac_ext 8374echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8375echo "${ECHO_T}$ac_header_compiler" >&6 8376 8377# Is the header present? 8378echo "$as_me:$LINENO: checking $ac_header presence" >&5 8379echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 8380cat >conftest.$ac_ext <<_ACEOF 8381#line $LINENO "configure" 8382#include "confdefs.h" 8383#include <$ac_header> 8384_ACEOF 8385if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8386 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8387 ac_status=$? 8388 egrep -v '^ *\+' conftest.er1 >conftest.err 8389 rm -f conftest.er1 8390 cat conftest.err >&5 8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8392 (exit $ac_status); } >/dev/null; then 8393 if test -s conftest.err; then 8394 ac_cpp_err=$ac_c_preproc_warn_flag 8395 else 8396 ac_cpp_err= 8397 fi 8398else 8399 ac_cpp_err=yes 8400fi 8401if test -z "$ac_cpp_err"; then 8402 ac_header_preproc=yes 8403else 8404 echo "$as_me: failed program was:" >&5 8405 cat conftest.$ac_ext >&5 8406 ac_header_preproc=no 8407fi 8408rm -f conftest.err conftest.$ac_ext 8409echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8410echo "${ECHO_T}$ac_header_preproc" >&6 8411 8412# So? What about this header? 8413case $ac_header_compiler:$ac_header_preproc in 8414 yes:no ) 8415 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8416echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8418echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 8419 no:yes ) 8420 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8421echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8422 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8423echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8425echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 8426esac 8427echo "$as_me:$LINENO: checking for $ac_header" >&5 8428echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8429if eval "test \"\${$as_ac_Header+set}\" = set"; then 8430 echo $ECHO_N "(cached) $ECHO_C" >&6 8431else 8432 eval "$as_ac_Header=$ac_header_preproc" 8433fi 8434echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8435echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8436 8437fi 8438if test `eval echo '${'$as_ac_Header'}'` = yes; then 8439 cat >>confdefs.h <<_ACEOF 8440#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8441_ACEOF 8442 8443fi 8444 8445done 8446 8447 8448for ac_header in unistd.h 8449do 8450as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8451if eval "test \"\${$as_ac_Header+set}\" = set"; then 8452 echo "$as_me:$LINENO: checking for $ac_header" >&5 8453echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8454if eval "test \"\${$as_ac_Header+set}\" = set"; then 8455 echo $ECHO_N "(cached) $ECHO_C" >&6 8456fi 8457echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8458echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8459else 8460 # Is the header compilable? 8461echo "$as_me:$LINENO: checking $ac_header usability" >&5 8462echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 8463cat >conftest.$ac_ext <<_ACEOF 8464#line $LINENO "configure" 8465#include "confdefs.h" 8466$ac_includes_default 8467#include <$ac_header> 8468_ACEOF 8469rm -f conftest.$ac_objext 8470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8471 (eval $ac_compile) 2>&5 8472 ac_status=$? 8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8474 (exit $ac_status); } && 8475 { ac_try='test -s conftest.$ac_objext' 8476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8477 (eval $ac_try) 2>&5 8478 ac_status=$? 8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8480 (exit $ac_status); }; }; then 8481 ac_header_compiler=yes 8482else 8483 echo "$as_me: failed program was:" >&5 8484cat conftest.$ac_ext >&5 8485ac_header_compiler=no 8486fi 8487rm -f conftest.$ac_objext conftest.$ac_ext 8488echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8489echo "${ECHO_T}$ac_header_compiler" >&6 8490 8491# Is the header present? 8492echo "$as_me:$LINENO: checking $ac_header presence" >&5 8493echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 8494cat >conftest.$ac_ext <<_ACEOF 8495#line $LINENO "configure" 8496#include "confdefs.h" 8497#include <$ac_header> 8498_ACEOF 8499if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8500 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8501 ac_status=$? 8502 egrep -v '^ *\+' conftest.er1 >conftest.err 8503 rm -f conftest.er1 8504 cat conftest.err >&5 8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8506 (exit $ac_status); } >/dev/null; then 8507 if test -s conftest.err; then 8508 ac_cpp_err=$ac_c_preproc_warn_flag 8509 else 8510 ac_cpp_err= 8511 fi 8512else 8513 ac_cpp_err=yes 8514fi 8515if test -z "$ac_cpp_err"; then 8516 ac_header_preproc=yes 8517else 8518 echo "$as_me: failed program was:" >&5 8519 cat conftest.$ac_ext >&5 8520 ac_header_preproc=no 8521fi 8522rm -f conftest.err conftest.$ac_ext 8523echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8524echo "${ECHO_T}$ac_header_preproc" >&6 8525 8526# So? What about this header? 8527case $ac_header_compiler:$ac_header_preproc in 8528 yes:no ) 8529 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8530echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8532echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 8533 no:yes ) 8534 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8535echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8536 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8537echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8539echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 8540esac 8541echo "$as_me:$LINENO: checking for $ac_header" >&5 8542echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8543if eval "test \"\${$as_ac_Header+set}\" = set"; then 8544 echo $ECHO_N "(cached) $ECHO_C" >&6 8545else 8546 eval "$as_ac_Header=$ac_header_preproc" 8547fi 8548echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8549echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8550 8551fi 8552if test `eval echo '${'$as_ac_Header'}'` = yes; then 8553 cat >>confdefs.h <<_ACEOF 8554#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8555_ACEOF 8556 8557fi 8558 8559done 8560 8561 8562for ac_header in getopt.h 8563do 8564as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8565if eval "test \"\${$as_ac_Header+set}\" = set"; then 8566 echo "$as_me:$LINENO: checking for $ac_header" >&5 8567echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8568if eval "test \"\${$as_ac_Header+set}\" = set"; then 8569 echo $ECHO_N "(cached) $ECHO_C" >&6 8570fi 8571echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8572echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8573else 8574 # Is the header compilable? 8575echo "$as_me:$LINENO: checking $ac_header usability" >&5 8576echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 8577cat >conftest.$ac_ext <<_ACEOF 8578#line $LINENO "configure" 8579#include "confdefs.h" 8580$ac_includes_default 8581#include <$ac_header> 8582_ACEOF 8583rm -f conftest.$ac_objext 8584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8585 (eval $ac_compile) 2>&5 8586 ac_status=$? 8587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8588 (exit $ac_status); } && 8589 { ac_try='test -s conftest.$ac_objext' 8590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8591 (eval $ac_try) 2>&5 8592 ac_status=$? 8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8594 (exit $ac_status); }; }; then 8595 ac_header_compiler=yes 8596else 8597 echo "$as_me: failed program was:" >&5 8598cat conftest.$ac_ext >&5 8599ac_header_compiler=no 8600fi 8601rm -f conftest.$ac_objext conftest.$ac_ext 8602echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8603echo "${ECHO_T}$ac_header_compiler" >&6 8604 8605# Is the header present? 8606echo "$as_me:$LINENO: checking $ac_header presence" >&5 8607echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 8608cat >conftest.$ac_ext <<_ACEOF 8609#line $LINENO "configure" 8610#include "confdefs.h" 8611#include <$ac_header> 8612_ACEOF 8613if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8614 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8615 ac_status=$? 8616 egrep -v '^ *\+' conftest.er1 >conftest.err 8617 rm -f conftest.er1 8618 cat conftest.err >&5 8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8620 (exit $ac_status); } >/dev/null; then 8621 if test -s conftest.err; then 8622 ac_cpp_err=$ac_c_preproc_warn_flag 8623 else 8624 ac_cpp_err= 8625 fi 8626else 8627 ac_cpp_err=yes 8628fi 8629if test -z "$ac_cpp_err"; then 8630 ac_header_preproc=yes 8631else 8632 echo "$as_me: failed program was:" >&5 8633 cat conftest.$ac_ext >&5 8634 ac_header_preproc=no 8635fi 8636rm -f conftest.err conftest.$ac_ext 8637echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8638echo "${ECHO_T}$ac_header_preproc" >&6 8639 8640# So? What about this header? 8641case $ac_header_compiler:$ac_header_preproc in 8642 yes:no ) 8643 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8644echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8646echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 8647 no:yes ) 8648 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8649echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8650 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8651echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8653echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 8654esac 8655echo "$as_me:$LINENO: checking for $ac_header" >&5 8656echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8657if eval "test \"\${$as_ac_Header+set}\" = set"; then 8658 echo $ECHO_N "(cached) $ECHO_C" >&6 8659else 8660 eval "$as_ac_Header=$ac_header_preproc" 8661fi 8662echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8663echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8664 8665fi 8666if test `eval echo '${'$as_ac_Header'}'` = yes; then 8667 cat >>confdefs.h <<_ACEOF 8668#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8669_ACEOF 8670 8671fi 8672 8673done 8674 8675 8676for ac_header in locale.h 8677do 8678as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8679if eval "test \"\${$as_ac_Header+set}\" = set"; then 8680 echo "$as_me:$LINENO: checking for $ac_header" >&5 8681echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8682if eval "test \"\${$as_ac_Header+set}\" = set"; then 8683 echo $ECHO_N "(cached) $ECHO_C" >&6 8684fi 8685echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8686echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8687else 8688 # Is the header compilable? 8689echo "$as_me:$LINENO: checking $ac_header usability" >&5 8690echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 8691cat >conftest.$ac_ext <<_ACEOF 8692#line $LINENO "configure" 8693#include "confdefs.h" 8694$ac_includes_default 8695#include <$ac_header> 8696_ACEOF 8697rm -f conftest.$ac_objext 8698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8699 (eval $ac_compile) 2>&5 8700 ac_status=$? 8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8702 (exit $ac_status); } && 8703 { ac_try='test -s conftest.$ac_objext' 8704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8705 (eval $ac_try) 2>&5 8706 ac_status=$? 8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8708 (exit $ac_status); }; }; then 8709 ac_header_compiler=yes 8710else 8711 echo "$as_me: failed program was:" >&5 8712cat conftest.$ac_ext >&5 8713ac_header_compiler=no 8714fi 8715rm -f conftest.$ac_objext conftest.$ac_ext 8716echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8717echo "${ECHO_T}$ac_header_compiler" >&6 8718 8719# Is the header present? 8720echo "$as_me:$LINENO: checking $ac_header presence" >&5 8721echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 8722cat >conftest.$ac_ext <<_ACEOF 8723#line $LINENO "configure" 8724#include "confdefs.h" 8725#include <$ac_header> 8726_ACEOF 8727if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8728 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8729 ac_status=$? 8730 egrep -v '^ *\+' conftest.er1 >conftest.err 8731 rm -f conftest.er1 8732 cat conftest.err >&5 8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8734 (exit $ac_status); } >/dev/null; then 8735 if test -s conftest.err; then 8736 ac_cpp_err=$ac_c_preproc_warn_flag 8737 else 8738 ac_cpp_err= 8739 fi 8740else 8741 ac_cpp_err=yes 8742fi 8743if test -z "$ac_cpp_err"; then 8744 ac_header_preproc=yes 8745else 8746 echo "$as_me: failed program was:" >&5 8747 cat conftest.$ac_ext >&5 8748 ac_header_preproc=no 8749fi 8750rm -f conftest.err conftest.$ac_ext 8751echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8752echo "${ECHO_T}$ac_header_preproc" >&6 8753 8754# So? What about this header? 8755case $ac_header_compiler:$ac_header_preproc in 8756 yes:no ) 8757 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8758echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8760echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 8761 no:yes ) 8762 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8763echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8764 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8765echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8767echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 8768esac 8769echo "$as_me:$LINENO: checking for $ac_header" >&5 8770echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8771if eval "test \"\${$as_ac_Header+set}\" = set"; then 8772 echo $ECHO_N "(cached) $ECHO_C" >&6 8773else 8774 eval "$as_ac_Header=$ac_header_preproc" 8775fi 8776echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8777echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8778 8779fi 8780if test `eval echo '${'$as_ac_Header'}'` = yes; then 8781 cat >>confdefs.h <<_ACEOF 8782#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8783_ACEOF 8784 8785fi 8786 8787done 8788 8789 8790for ac_header in utime.h 8791do 8792as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8793if eval "test \"\${$as_ac_Header+set}\" = set"; then 8794 echo "$as_me:$LINENO: checking for $ac_header" >&5 8795echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8796if eval "test \"\${$as_ac_Header+set}\" = set"; then 8797 echo $ECHO_N "(cached) $ECHO_C" >&6 8798fi 8799echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8800echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8801else 8802 # Is the header compilable? 8803echo "$as_me:$LINENO: checking $ac_header usability" >&5 8804echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 8805cat >conftest.$ac_ext <<_ACEOF 8806#line $LINENO "configure" 8807#include "confdefs.h" 8808$ac_includes_default 8809#include <$ac_header> 8810_ACEOF 8811rm -f conftest.$ac_objext 8812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8813 (eval $ac_compile) 2>&5 8814 ac_status=$? 8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8816 (exit $ac_status); } && 8817 { ac_try='test -s conftest.$ac_objext' 8818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8819 (eval $ac_try) 2>&5 8820 ac_status=$? 8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8822 (exit $ac_status); }; }; then 8823 ac_header_compiler=yes 8824else 8825 echo "$as_me: failed program was:" >&5 8826cat conftest.$ac_ext >&5 8827ac_header_compiler=no 8828fi 8829rm -f conftest.$ac_objext conftest.$ac_ext 8830echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8831echo "${ECHO_T}$ac_header_compiler" >&6 8832 8833# Is the header present? 8834echo "$as_me:$LINENO: checking $ac_header presence" >&5 8835echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 8836cat >conftest.$ac_ext <<_ACEOF 8837#line $LINENO "configure" 8838#include "confdefs.h" 8839#include <$ac_header> 8840_ACEOF 8841if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8842 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8843 ac_status=$? 8844 egrep -v '^ *\+' conftest.er1 >conftest.err 8845 rm -f conftest.er1 8846 cat conftest.err >&5 8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8848 (exit $ac_status); } >/dev/null; then 8849 if test -s conftest.err; then 8850 ac_cpp_err=$ac_c_preproc_warn_flag 8851 else 8852 ac_cpp_err= 8853 fi 8854else 8855 ac_cpp_err=yes 8856fi 8857if test -z "$ac_cpp_err"; then 8858 ac_header_preproc=yes 8859else 8860 echo "$as_me: failed program was:" >&5 8861 cat conftest.$ac_ext >&5 8862 ac_header_preproc=no 8863fi 8864rm -f conftest.err conftest.$ac_ext 8865echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8866echo "${ECHO_T}$ac_header_preproc" >&6 8867 8868# So? What about this header? 8869case $ac_header_compiler:$ac_header_preproc in 8870 yes:no ) 8871 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8872echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8874echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 8875 no:yes ) 8876 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8877echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8878 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8879echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8881echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 8882esac 8883echo "$as_me:$LINENO: checking for $ac_header" >&5 8884echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8885if eval "test \"\${$as_ac_Header+set}\" = set"; then 8886 echo $ECHO_N "(cached) $ECHO_C" >&6 8887else 8888 eval "$as_ac_Header=$ac_header_preproc" 8889fi 8890echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8891echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8892 8893fi 8894if test `eval echo '${'$as_ac_Header'}'` = yes; then 8895 cat >>confdefs.h <<_ACEOF 8896#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8897_ACEOF 8898 8899fi 8900 8901done 8902 8903 8904for ac_header in sys/utime.h 8905do 8906as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8907if eval "test \"\${$as_ac_Header+set}\" = set"; then 8908 echo "$as_me:$LINENO: checking for $ac_header" >&5 8909echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8910if eval "test \"\${$as_ac_Header+set}\" = set"; then 8911 echo $ECHO_N "(cached) $ECHO_C" >&6 8912fi 8913echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8914echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8915else 8916 # Is the header compilable? 8917echo "$as_me:$LINENO: checking $ac_header usability" >&5 8918echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 8919cat >conftest.$ac_ext <<_ACEOF 8920#line $LINENO "configure" 8921#include "confdefs.h" 8922$ac_includes_default 8923#include <$ac_header> 8924_ACEOF 8925rm -f conftest.$ac_objext 8926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8927 (eval $ac_compile) 2>&5 8928 ac_status=$? 8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8930 (exit $ac_status); } && 8931 { ac_try='test -s conftest.$ac_objext' 8932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8933 (eval $ac_try) 2>&5 8934 ac_status=$? 8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8936 (exit $ac_status); }; }; then 8937 ac_header_compiler=yes 8938else 8939 echo "$as_me: failed program was:" >&5 8940cat conftest.$ac_ext >&5 8941ac_header_compiler=no 8942fi 8943rm -f conftest.$ac_objext conftest.$ac_ext 8944echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8945echo "${ECHO_T}$ac_header_compiler" >&6 8946 8947# Is the header present? 8948echo "$as_me:$LINENO: checking $ac_header presence" >&5 8949echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 8950cat >conftest.$ac_ext <<_ACEOF 8951#line $LINENO "configure" 8952#include "confdefs.h" 8953#include <$ac_header> 8954_ACEOF 8955if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8957 ac_status=$? 8958 egrep -v '^ *\+' conftest.er1 >conftest.err 8959 rm -f conftest.er1 8960 cat conftest.err >&5 8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8962 (exit $ac_status); } >/dev/null; then 8963 if test -s conftest.err; then 8964 ac_cpp_err=$ac_c_preproc_warn_flag 8965 else 8966 ac_cpp_err= 8967 fi 8968else 8969 ac_cpp_err=yes 8970fi 8971if test -z "$ac_cpp_err"; then 8972 ac_header_preproc=yes 8973else 8974 echo "$as_me: failed program was:" >&5 8975 cat conftest.$ac_ext >&5 8976 ac_header_preproc=no 8977fi 8978rm -f conftest.err conftest.$ac_ext 8979echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8980echo "${ECHO_T}$ac_header_preproc" >&6 8981 8982# So? What about this header? 8983case $ac_header_compiler:$ac_header_preproc in 8984 yes:no ) 8985 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8986echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8988echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 8989 no:yes ) 8990 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8991echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8992 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8993echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8995echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 8996esac 8997echo "$as_me:$LINENO: checking for $ac_header" >&5 8998echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8999if eval "test \"\${$as_ac_Header+set}\" = set"; then 9000 echo $ECHO_N "(cached) $ECHO_C" >&6 9001else 9002 eval "$as_ac_Header=$ac_header_preproc" 9003fi 9004echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9005echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9006 9007fi 9008if test `eval echo '${'$as_ac_Header'}'` = yes; then 9009 cat >>confdefs.h <<_ACEOF 9010#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 9011_ACEOF 9012 9013fi 9014 9015done 9016 9017 9018for ac_header in wchar.h 9019do 9020as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 9021if eval "test \"\${$as_ac_Header+set}\" = set"; then 9022 echo "$as_me:$LINENO: checking for $ac_header" >&5 9023echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9024if eval "test \"\${$as_ac_Header+set}\" = set"; then 9025 echo $ECHO_N "(cached) $ECHO_C" >&6 9026fi 9027echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9028echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9029else 9030 # Is the header compilable? 9031echo "$as_me:$LINENO: checking $ac_header usability" >&5 9032echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 9033cat >conftest.$ac_ext <<_ACEOF 9034#line $LINENO "configure" 9035#include "confdefs.h" 9036$ac_includes_default 9037#include <$ac_header> 9038_ACEOF 9039rm -f conftest.$ac_objext 9040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9041 (eval $ac_compile) 2>&5 9042 ac_status=$? 9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9044 (exit $ac_status); } && 9045 { ac_try='test -s conftest.$ac_objext' 9046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9047 (eval $ac_try) 2>&5 9048 ac_status=$? 9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9050 (exit $ac_status); }; }; then 9051 ac_header_compiler=yes 9052else 9053 echo "$as_me: failed program was:" >&5 9054cat conftest.$ac_ext >&5 9055ac_header_compiler=no 9056fi 9057rm -f conftest.$ac_objext conftest.$ac_ext 9058echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9059echo "${ECHO_T}$ac_header_compiler" >&6 9060 9061# Is the header present? 9062echo "$as_me:$LINENO: checking $ac_header presence" >&5 9063echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 9064cat >conftest.$ac_ext <<_ACEOF 9065#line $LINENO "configure" 9066#include "confdefs.h" 9067#include <$ac_header> 9068_ACEOF 9069if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 9070 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9071 ac_status=$? 9072 egrep -v '^ *\+' conftest.er1 >conftest.err 9073 rm -f conftest.er1 9074 cat conftest.err >&5 9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9076 (exit $ac_status); } >/dev/null; then 9077 if test -s conftest.err; then 9078 ac_cpp_err=$ac_c_preproc_warn_flag 9079 else 9080 ac_cpp_err= 9081 fi 9082else 9083 ac_cpp_err=yes 9084fi 9085if test -z "$ac_cpp_err"; then 9086 ac_header_preproc=yes 9087else 9088 echo "$as_me: failed program was:" >&5 9089 cat conftest.$ac_ext >&5 9090 ac_header_preproc=no 9091fi 9092rm -f conftest.err conftest.$ac_ext 9093echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9094echo "${ECHO_T}$ac_header_preproc" >&6 9095 9096# So? What about this header? 9097case $ac_header_compiler:$ac_header_preproc in 9098 yes:no ) 9099 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 9100echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 9101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 9102echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 9103 no:yes ) 9104 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 9105echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 9106 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 9107echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 9108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 9109echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 9110esac 9111echo "$as_me:$LINENO: checking for $ac_header" >&5 9112echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9113if eval "test \"\${$as_ac_Header+set}\" = set"; then 9114 echo $ECHO_N "(cached) $ECHO_C" >&6 9115else 9116 eval "$as_ac_Header=$ac_header_preproc" 9117fi 9118echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9119echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9120 9121fi 9122if test `eval echo '${'$as_ac_Header'}'` = yes; then 9123 cat >>confdefs.h <<_ACEOF 9124#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 9125_ACEOF 9126 9127fi 9128 9129done 9130 9131 9132echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 9133echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 9134if test "${ac_cv_prog_cc_stdc+set}" = set; then 9135 echo $ECHO_N "(cached) $ECHO_C" >&6 9136else 9137 ac_cv_prog_cc_stdc=no 9138ac_save_CC=$CC 9139cat >conftest.$ac_ext <<_ACEOF 9140#line $LINENO "configure" 9141#include "confdefs.h" 9142#include <stdarg.h> 9143#include <stdio.h> 9144#include <sys/types.h> 9145#include <sys/stat.h> 9146/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 9147struct buf { int x; }; 9148FILE * (*rcsopen) (struct buf *, struct stat *, int); 9149static char *e (p, i) 9150 char **p; 9151 int i; 9152{ 9153 return p[i]; 9154} 9155static char *f (char * (*g) (char **, int), char **p, ...) 9156{ 9157 char *s; 9158 va_list v; 9159 va_start (v,p); 9160 s = g (p, va_arg (v,int)); 9161 va_end (v); 9162 return s; 9163} 9164int test (int i, double x); 9165struct s1 {int (*f) (int a);}; 9166struct s2 {int (*f) (double a);}; 9167int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 9168int argc; 9169char **argv; 9170#ifdef F77_DUMMY_MAIN 9171# ifdef __cplusplus 9172 extern "C" 9173# endif 9174 int F77_DUMMY_MAIN() { return 1; } 9175#endif 9176int 9177main () 9178{ 9179return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 9180 ; 9181 return 0; 9182} 9183_ACEOF 9184# Don't try gcc -ansi; that turns off useful extensions and 9185# breaks some systems' header files. 9186# AIX -qlanglvl=ansi 9187# Ultrix and OSF/1 -std1 9188# HP-UX 10.20 and later -Ae 9189# HP-UX older versions -Aa -D_HPUX_SOURCE 9190# SVR4 -Xc -D__EXTENSIONS__ 9191for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 9192do 9193 CC="$ac_save_CC $ac_arg" 9194 rm -f conftest.$ac_objext 9195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9196 (eval $ac_compile) 2>&5 9197 ac_status=$? 9198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9199 (exit $ac_status); } && 9200 { ac_try='test -s conftest.$ac_objext' 9201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9202 (eval $ac_try) 2>&5 9203 ac_status=$? 9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9205 (exit $ac_status); }; }; then 9206 ac_cv_prog_cc_stdc=$ac_arg 9207break 9208else 9209 echo "$as_me: failed program was:" >&5 9210cat conftest.$ac_ext >&5 9211fi 9212rm -f conftest.$ac_objext 9213done 9214rm -f conftest.$ac_ext conftest.$ac_objext 9215CC=$ac_save_CC 9216 9217fi 9218 9219case "x$ac_cv_prog_cc_stdc" in 9220 x|xno) 9221 echo "$as_me:$LINENO: result: none needed" >&5 9222echo "${ECHO_T}none needed" >&6 ;; 9223 *) 9224 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 9225echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 9226 CC="$CC $ac_cv_prog_cc_stdc" ;; 9227esac 9228 9229echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 9230echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 9231if test "${ac_cv_c_const+set}" = set; then 9232 echo $ECHO_N "(cached) $ECHO_C" >&6 9233else 9234 cat >conftest.$ac_ext <<_ACEOF 9235#line $LINENO "configure" 9236#include "confdefs.h" 9237 9238#ifdef F77_DUMMY_MAIN 9239# ifdef __cplusplus 9240 extern "C" 9241# endif 9242 int F77_DUMMY_MAIN() { return 1; } 9243#endif 9244int 9245main () 9246{ 9247/* FIXME: Include the comments suggested by Paul. */ 9248#ifndef __cplusplus 9249 /* Ultrix mips cc rejects this. */ 9250 typedef int charset[2]; 9251 const charset x; 9252 /* SunOS 4.1.1 cc rejects this. */ 9253 char const *const *ccp; 9254 char **p; 9255 /* NEC SVR4.0.2 mips cc rejects this. */ 9256 struct point {int x, y;}; 9257 static struct point const zero = {0,0}; 9258 /* AIX XL C 1.02.0.0 rejects this. 9259 It does not let you subtract one const X* pointer from another in 9260 an arm of an if-expression whose if-part is not a constant 9261 expression */ 9262 const char *g = "string"; 9263 ccp = &g + (g ? g-g : 0); 9264 /* HPUX 7.0 cc rejects these. */ 9265 ++ccp; 9266 p = (char**) ccp; 9267 ccp = (char const *const *) p; 9268 { /* SCO 3.2v4 cc rejects this. */ 9269 char *t; 9270 char const *s = 0 ? (char *) 0 : (char const *) 0; 9271 9272 *t++ = 0; 9273 } 9274 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 9275 int x[] = {25, 17}; 9276 const int *foo = &x[0]; 9277 ++foo; 9278 } 9279 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 9280 typedef const int *iptr; 9281 iptr p = 0; 9282 ++p; 9283 } 9284 { /* AIX XL C 1.02.0.0 rejects this saying 9285 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 9286 struct s { int j; const int *ap[3]; }; 9287 struct s *b; b->j = 5; 9288 } 9289 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 9290 const int foo = 10; 9291 } 9292#endif 9293 9294 ; 9295 return 0; 9296} 9297_ACEOF 9298rm -f conftest.$ac_objext 9299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9300 (eval $ac_compile) 2>&5 9301 ac_status=$? 9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9303 (exit $ac_status); } && 9304 { ac_try='test -s conftest.$ac_objext' 9305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9306 (eval $ac_try) 2>&5 9307 ac_status=$? 9308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9309 (exit $ac_status); }; }; then 9310 ac_cv_c_const=yes 9311else 9312 echo "$as_me: failed program was:" >&5 9313cat conftest.$ac_ext >&5 9314ac_cv_c_const=no 9315fi 9316rm -f conftest.$ac_objext conftest.$ac_ext 9317fi 9318echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 9319echo "${ECHO_T}$ac_cv_c_const" >&6 9320if test $ac_cv_c_const = no; then 9321 9322cat >>confdefs.h <<\_ACEOF 9323#define const 9324_ACEOF 9325 9326fi 9327 9328echo "$as_me:$LINENO: checking for off_t" >&5 9329echo $ECHO_N "checking for off_t... $ECHO_C" >&6 9330if test "${ac_cv_type_off_t+set}" = set; then 9331 echo $ECHO_N "(cached) $ECHO_C" >&6 9332else 9333 cat >conftest.$ac_ext <<_ACEOF 9334#line $LINENO "configure" 9335#include "confdefs.h" 9336$ac_includes_default 9337#ifdef F77_DUMMY_MAIN 9338# ifdef __cplusplus 9339 extern "C" 9340# endif 9341 int F77_DUMMY_MAIN() { return 1; } 9342#endif 9343int 9344main () 9345{ 9346if ((off_t *) 0) 9347 return 0; 9348if (sizeof (off_t)) 9349 return 0; 9350 ; 9351 return 0; 9352} 9353_ACEOF 9354rm -f conftest.$ac_objext 9355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9356 (eval $ac_compile) 2>&5 9357 ac_status=$? 9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9359 (exit $ac_status); } && 9360 { ac_try='test -s conftest.$ac_objext' 9361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9362 (eval $ac_try) 2>&5 9363 ac_status=$? 9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9365 (exit $ac_status); }; }; then 9366 ac_cv_type_off_t=yes 9367else 9368 echo "$as_me: failed program was:" >&5 9369cat conftest.$ac_ext >&5 9370ac_cv_type_off_t=no 9371fi 9372rm -f conftest.$ac_objext conftest.$ac_ext 9373fi 9374echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 9375echo "${ECHO_T}$ac_cv_type_off_t" >&6 9376if test $ac_cv_type_off_t = yes; then 9377 : 9378else 9379 9380cat >>confdefs.h <<_ACEOF 9381#define off_t long 9382_ACEOF 9383 9384fi 9385 9386echo "$as_me:$LINENO: checking for size_t" >&5 9387echo $ECHO_N "checking for size_t... $ECHO_C" >&6 9388if test "${ac_cv_type_size_t+set}" = set; then 9389 echo $ECHO_N "(cached) $ECHO_C" >&6 9390else 9391 cat >conftest.$ac_ext <<_ACEOF 9392#line $LINENO "configure" 9393#include "confdefs.h" 9394$ac_includes_default 9395#ifdef F77_DUMMY_MAIN 9396# ifdef __cplusplus 9397 extern "C" 9398# endif 9399 int F77_DUMMY_MAIN() { return 1; } 9400#endif 9401int 9402main () 9403{ 9404if ((size_t *) 0) 9405 return 0; 9406if (sizeof (size_t)) 9407 return 0; 9408 ; 9409 return 0; 9410} 9411_ACEOF 9412rm -f conftest.$ac_objext 9413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9414 (eval $ac_compile) 2>&5 9415 ac_status=$? 9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9417 (exit $ac_status); } && 9418 { ac_try='test -s conftest.$ac_objext' 9419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9420 (eval $ac_try) 2>&5 9421 ac_status=$? 9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9423 (exit $ac_status); }; }; then 9424 ac_cv_type_size_t=yes 9425else 9426 echo "$as_me: failed program was:" >&5 9427cat conftest.$ac_ext >&5 9428ac_cv_type_size_t=no 9429fi 9430rm -f conftest.$ac_objext conftest.$ac_ext 9431fi 9432echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 9433echo "${ECHO_T}$ac_cv_type_size_t" >&6 9434if test $ac_cv_type_size_t = yes; then 9435 : 9436else 9437 9438cat >>confdefs.h <<_ACEOF 9439#define size_t unsigned 9440_ACEOF 9441 9442fi 9443 9444 9445echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 9446echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 9447if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then 9448 echo $ECHO_N "(cached) $ECHO_C" >&6 9449else 9450 cat >conftest.$ac_ext <<_ACEOF 9451#line $LINENO "configure" 9452#include "confdefs.h" 9453$ac_includes_default 9454#ifdef F77_DUMMY_MAIN 9455# ifdef __cplusplus 9456 extern "C" 9457# endif 9458 int F77_DUMMY_MAIN() { return 1; } 9459#endif 9460int 9461main () 9462{ 9463static struct stat ac_aggr; 9464if (ac_aggr.st_rdev) 9465return 0; 9466 ; 9467 return 0; 9468} 9469_ACEOF 9470rm -f conftest.$ac_objext 9471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9472 (eval $ac_compile) 2>&5 9473 ac_status=$? 9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9475 (exit $ac_status); } && 9476 { ac_try='test -s conftest.$ac_objext' 9477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9478 (eval $ac_try) 2>&5 9479 ac_status=$? 9480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9481 (exit $ac_status); }; }; then 9482 ac_cv_member_struct_stat_st_rdev=yes 9483else 9484 echo "$as_me: failed program was:" >&5 9485cat conftest.$ac_ext >&5 9486ac_cv_member_struct_stat_st_rdev=no 9487fi 9488rm -f conftest.$ac_objext conftest.$ac_ext 9489fi 9490echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 9491echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 9492if test $ac_cv_member_struct_stat_st_rdev = yes; then 9493 9494cat >>confdefs.h <<_ACEOF 9495#define HAVE_STRUCT_STAT_ST_RDEV 1 9496_ACEOF 9497 9498 9499cat >>confdefs.h <<\_ACEOF 9500#define HAVE_ST_RDEV 1 9501_ACEOF 9502 9503fi 9504 9505 9506echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 9507echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 9508if test "${ac_cv_struct_tm+set}" = set; then 9509 echo $ECHO_N "(cached) $ECHO_C" >&6 9510else 9511 cat >conftest.$ac_ext <<_ACEOF 9512#line $LINENO "configure" 9513#include "confdefs.h" 9514#include <sys/types.h> 9515#include <time.h> 9516 9517#ifdef F77_DUMMY_MAIN 9518# ifdef __cplusplus 9519 extern "C" 9520# endif 9521 int F77_DUMMY_MAIN() { return 1; } 9522#endif 9523int 9524main () 9525{ 9526struct tm *tp; tp->tm_sec; 9527 ; 9528 return 0; 9529} 9530_ACEOF 9531rm -f conftest.$ac_objext 9532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9533 (eval $ac_compile) 2>&5 9534 ac_status=$? 9535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9536 (exit $ac_status); } && 9537 { ac_try='test -s conftest.$ac_objext' 9538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9539 (eval $ac_try) 2>&5 9540 ac_status=$? 9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9542 (exit $ac_status); }; }; then 9543 ac_cv_struct_tm=time.h 9544else 9545 echo "$as_me: failed program was:" >&5 9546cat conftest.$ac_ext >&5 9547ac_cv_struct_tm=sys/time.h 9548fi 9549rm -f conftest.$ac_objext conftest.$ac_ext 9550fi 9551echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 9552echo "${ECHO_T}$ac_cv_struct_tm" >&6 9553if test $ac_cv_struct_tm = sys/time.h; then 9554 9555cat >>confdefs.h <<\_ACEOF 9556#define TM_IN_SYS_TIME 1 9557_ACEOF 9558 9559fi 9560 9561echo "$as_me:$LINENO: checking for tm_zone in struct tm" >&5 9562echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6 9563if test "${ac_cv_struct_tm_zone+set}" = set; then 9564 echo $ECHO_N "(cached) $ECHO_C" >&6 9565else 9566 cat >conftest.$ac_ext <<_ACEOF 9567#line $LINENO "configure" 9568#include "confdefs.h" 9569#include <sys/types.h> 9570#include <$ac_cv_struct_tm> 9571#ifdef F77_DUMMY_MAIN 9572# ifdef __cplusplus 9573 extern "C" 9574# endif 9575 int F77_DUMMY_MAIN() { return 1; } 9576#endif 9577int 9578main () 9579{ 9580struct tm tm; tm.tm_zone; 9581 ; 9582 return 0; 9583} 9584_ACEOF 9585rm -f conftest.$ac_objext 9586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9587 (eval $ac_compile) 2>&5 9588 ac_status=$? 9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9590 (exit $ac_status); } && 9591 { ac_try='test -s conftest.$ac_objext' 9592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9593 (eval $ac_try) 2>&5 9594 ac_status=$? 9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9596 (exit $ac_status); }; }; then 9597 ac_cv_struct_tm_zone=yes 9598else 9599 echo "$as_me: failed program was:" >&5 9600cat conftest.$ac_ext >&5 9601ac_cv_struct_tm_zone=no 9602fi 9603rm -f conftest.$ac_objext conftest.$ac_ext 9604fi 9605echo "$as_me:$LINENO: result: $ac_cv_struct_tm_zone" >&5 9606echo "${ECHO_T}$ac_cv_struct_tm_zone" >&6 9607if test "$ac_cv_struct_tm_zone" = yes; then 9608 9609cat >>confdefs.h <<\_ACEOF 9610#define HAVE_TM_ZONE 1 9611_ACEOF 9612 9613fi 9614echo "$as_me:$LINENO: checking for tzname" >&5 9615echo $ECHO_N "checking for tzname... $ECHO_C" >&6 9616if test "${ac_cv_var_tzname+set}" = set; then 9617 echo $ECHO_N "(cached) $ECHO_C" >&6 9618else 9619 cat >conftest.$ac_ext <<_ACEOF 9620#line $LINENO "configure" 9621#include "confdefs.h" 9622#include <time.h> 9623#ifndef tzname /* For SGI. */ 9624extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 9625#endif 9626#ifdef F77_DUMMY_MAIN 9627# ifdef __cplusplus 9628 extern "C" 9629# endif 9630 int F77_DUMMY_MAIN() { return 1; } 9631#endif 9632int 9633main () 9634{ 9635atoi(*tzname); 9636 ; 9637 return 0; 9638} 9639_ACEOF 9640rm -f conftest.$ac_objext conftest$ac_exeext 9641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9642 (eval $ac_link) 2>&5 9643 ac_status=$? 9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9645 (exit $ac_status); } && 9646 { ac_try='test -s conftest$ac_exeext' 9647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9648 (eval $ac_try) 2>&5 9649 ac_status=$? 9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9651 (exit $ac_status); }; }; then 9652 ac_cv_var_tzname=yes 9653else 9654 echo "$as_me: failed program was:" >&5 9655cat conftest.$ac_ext >&5 9656ac_cv_var_tzname=no 9657fi 9658rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9659fi 9660echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 9661echo "${ECHO_T}$ac_cv_var_tzname" >&6 9662 if test $ac_cv_var_tzname = yes; then 9663 9664cat >>confdefs.h <<\_ACEOF 9665#define HAVE_TZNAME 1 9666_ACEOF 9667 9668 fi 9669 9670echo "$as_me:$LINENO: checking for tm_isdst in struct tm" >&5 9671echo $ECHO_N "checking for tm_isdst in struct tm... $ECHO_C" >&6 9672if test "${ac_cv_struct_tm_isdst+set}" = set; then 9673 echo $ECHO_N "(cached) $ECHO_C" >&6 9674else 9675 cat >conftest.$ac_ext <<_ACEOF 9676#line $LINENO "configure" 9677#include "confdefs.h" 9678#include <sys/types.h> 9679#include <$ac_cv_struct_tm> 9680#ifdef F77_DUMMY_MAIN 9681# ifdef __cplusplus 9682 extern "C" 9683# endif 9684 int F77_DUMMY_MAIN() { return 1; } 9685#endif 9686int 9687main () 9688{ 9689struct tm tm; tm.tm_isdst; 9690 ; 9691 return 0; 9692} 9693_ACEOF 9694rm -f conftest.$ac_objext 9695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9696 (eval $ac_compile) 2>&5 9697 ac_status=$? 9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9699 (exit $ac_status); } && 9700 { ac_try='test -s conftest.$ac_objext' 9701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9702 (eval $ac_try) 2>&5 9703 ac_status=$? 9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9705 (exit $ac_status); }; }; then 9706 ac_cv_struct_tm_isdst=yes 9707else 9708 echo "$as_me: failed program was:" >&5 9709cat conftest.$ac_ext >&5 9710ac_cv_struct_tm_isdst=no 9711fi 9712rm -f conftest.$ac_objext conftest.$ac_ext 9713fi 9714echo "$as_me:$LINENO: result: $ac_cv_struct_tm_isdst" >&5 9715echo "${ECHO_T}$ac_cv_struct_tm_isdst" >&6 9716if test "$ac_cv_struct_tm_isdst" = yes; then 9717 cat >>confdefs.h <<\_ACEOF 9718#define HAVE_TM_ISDST 1 9719_ACEOF 9720 9721fi 9722echo "$as_me:$LINENO: checking for daylight" >&5 9723echo $ECHO_N "checking for daylight... $ECHO_C" >&6 9724if test "${ac_cv_var_daylight+set}" = set; then 9725 echo $ECHO_N "(cached) $ECHO_C" >&6 9726else 9727 cat >conftest.$ac_ext <<_ACEOF 9728#line $LINENO "configure" 9729#include "confdefs.h" 9730#include <time.h> 9731#ifndef daylight /* In case IRIX #defines this, too */ 9732extern int daylight; 9733#endif 9734#ifdef F77_DUMMY_MAIN 9735# ifdef __cplusplus 9736 extern "C" 9737# endif 9738 int F77_DUMMY_MAIN() { return 1; } 9739#endif 9740int 9741main () 9742{ 9743atoi(daylight); 9744 ; 9745 return 0; 9746} 9747_ACEOF 9748rm -f conftest.$ac_objext conftest$ac_exeext 9749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9750 (eval $ac_link) 2>&5 9751 ac_status=$? 9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9753 (exit $ac_status); } && 9754 { ac_try='test -s conftest$ac_exeext' 9755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9756 (eval $ac_try) 2>&5 9757 ac_status=$? 9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9759 (exit $ac_status); }; }; then 9760 ac_cv_var_daylight=yes 9761else 9762 echo "$as_me: failed program was:" >&5 9763cat conftest.$ac_ext >&5 9764ac_cv_var_daylight=no 9765fi 9766rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9767fi 9768echo "$as_me:$LINENO: result: $ac_cv_var_daylight" >&5 9769echo "${ECHO_T}$ac_cv_var_daylight" >&6 9770 if test $ac_cv_var_daylight = yes; then 9771 cat >>confdefs.h <<\_ACEOF 9772#define HAVE_DAYLIGHT 1 9773_ACEOF 9774 9775 fi 9776 9777 9778 # Check whether --enable-largefile or --disable-largefile was given. 9779if test "${enable_largefile+set}" = set; then 9780 enableval="$enable_largefile" 9781 9782fi; 9783 if test "$enable_largefile" != no; then 9784 9785 echo "$as_me:$LINENO: checking for special C compiler options needed for large files= 9786" >&5 9787echo $ECHO_N "checking for special C compiler options needed for large files= 9788... $ECHO_C" >&6 9789if test "${ac_cv_sys_largefile_CC+set}" = set; then 9790 echo $ECHO_N "(cached) $ECHO_C" >&6 9791else 9792 ac_cv_sys_largefile_CC=no 9793 if test "$GCC" != yes; then 9794 # IRIX 6.2 and later do not support large files by default, 9795 # so use the C compiler's -n32 option if that helps. 9796 cat >conftest.$ac_ext <<_ACEOF 9797#line $LINENO "configure" 9798#include "confdefs.h" 9799#include <sys/types.h> 9800 /* Check that off_t can represent 2**63 - 1 correctly. 9801 We can't simply "#define LARGE_OFF_T 9223372036854775807", 9802 since some C++ compilers masquerading as C compilers 9803 incorrectly reject 9223372036854775807. */ 9804# define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 9805 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 9806 && LARGE_OFF_T % 2147483647 == 1) 9807 ? 1 : -1]; 9808 9809#ifdef F77_DUMMY_MAIN 9810# ifdef __cplusplus 9811 extern "C" 9812# endif 9813 int F77_DUMMY_MAIN() { return 1; } 9814#endif 9815int 9816main () 9817{ 9818 9819 ; 9820 return 0; 9821} 9822_ACEOF 9823rm -f conftest.$ac_objext 9824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9825 (eval $ac_compile) 2>&5 9826 ac_status=$? 9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9828 (exit $ac_status); } && 9829 { ac_try='test -s conftest.$ac_objext' 9830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9831 (eval $ac_try) 2>&5 9832 ac_status=$? 9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9834 (exit $ac_status); }; }; then 9835 : 9836else 9837 echo "$as_me: failed program was:" >&5 9838cat conftest.$ac_ext >&5 9839ac_save_CC="$CC" 9840 CC="$CC -n32" 9841 cat >conftest.$ac_ext <<_ACEOF 9842#line $LINENO "configure" 9843#include "confdefs.h" 9844#include <sys/types.h> 9845 /* Check that off_t can represent 2**63 - 1 correctly. 9846 We can't simply "#define LARGE_OFF_T 9223372036854775807", 9847 since some C++ compilers masquerading as C compilers 9848 incorrectly reject 9223372036854775807. */ 9849# define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 9850 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 9851 && LARGE_OFF_T % 2147483647 == 1) 9852 ? 1 : -1]; 9853 9854#ifdef F77_DUMMY_MAIN 9855# ifdef __cplusplus 9856 extern "C" 9857# endif 9858 int F77_DUMMY_MAIN() { return 1; } 9859#endif 9860int 9861main () 9862{ 9863 9864 ; 9865 return 0; 9866} 9867_ACEOF 9868rm -f conftest.$ac_objext 9869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9870 (eval $ac_compile) 2>&5 9871 ac_status=$? 9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9873 (exit $ac_status); } && 9874 { ac_try='test -s conftest.$ac_objext' 9875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9876 (eval $ac_try) 2>&5 9877 ac_status=$? 9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9879 (exit $ac_status); }; }; then 9880 ac_cv_sys_largefile_CC=' -n32' 9881else 9882 echo "$as_me: failed program was:" >&5 9883cat conftest.$ac_ext >&5 9884fi 9885rm -f conftest.$ac_objext conftest.$ac_ext 9886 CC="$ac_save_CC" 9887fi 9888rm -f conftest.$ac_objext conftest.$ac_ext 9889 fi 9890fi 9891echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 9892echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 9893 if test "$ac_cv_sys_largefile_CC" != no; then 9894 CC="$CC$ac_cv_sys_largefile_CC" 9895 fi 9896 9897 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 9898echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 9899if test "${ac_cv_sys_file_offset_bits+set}" = set; then 9900 echo $ECHO_N "(cached) $ECHO_C" >&6 9901else 9902 ac_cv_sys_file_offset_bits=no 9903 cat >conftest.$ac_ext <<_ACEOF 9904#line $LINENO "configure" 9905#include "confdefs.h" 9906#include <sys/types.h> 9907 /* Check that off_t can represent 2**63 - 1 correctly. 9908 We can't simply "#define LARGE_OFF_T 9223372036854775807", 9909 since some C++ compilers masquerading as C compilers 9910 incorrectly reject 9223372036854775807. */ 9911# define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 9912 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 9913 && LARGE_OFF_T % 2147483647 == 1) 9914 ? 1 : -1]; 9915 9916#ifdef F77_DUMMY_MAIN 9917# ifdef __cplusplus 9918 extern "C" 9919# endif 9920 int F77_DUMMY_MAIN() { return 1; } 9921#endif 9922int 9923main () 9924{ 9925 9926 ; 9927 return 0; 9928} 9929_ACEOF 9930rm -f conftest.$ac_objext 9931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9932 (eval $ac_compile) 2>&5 9933 ac_status=$? 9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9935 (exit $ac_status); } && 9936 { ac_try='test -s conftest.$ac_objext' 9937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9938 (eval $ac_try) 2>&5 9939 ac_status=$? 9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9941 (exit $ac_status); }; }; then 9942 : 9943else 9944 echo "$as_me: failed program was:" >&5 9945cat conftest.$ac_ext >&5 9946cat >conftest.$ac_ext <<_ACEOF 9947#line $LINENO "configure" 9948#include "confdefs.h" 9949#define _FILE_OFFSET_BITS 64 9950#include <sys/types.h> 9951 /* Check that off_t can represent 2**63 - 1 correctly. 9952 We can't simply "#define LARGE_OFF_T 9223372036854775807", 9953 since some C++ compilers masquerading as C compilers 9954 incorrectly reject 9223372036854775807. */ 9955# define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 9956 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 9957 && LARGE_OFF_T % 2147483647 == 1) 9958 ? 1 : -1]; 9959 9960 9961#ifdef F77_DUMMY_MAIN 9962# ifdef __cplusplus 9963 extern "C" 9964# endif 9965 int F77_DUMMY_MAIN() { return 1; } 9966#endif 9967int 9968main () 9969{ 9970 9971 ; 9972 return 0; 9973} 9974_ACEOF 9975rm -f conftest.$ac_objext 9976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9977 (eval $ac_compile) 2>&5 9978 ac_status=$? 9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9980 (exit $ac_status); } && 9981 { ac_try='test -s conftest.$ac_objext' 9982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9983 (eval $ac_try) 2>&5 9984 ac_status=$? 9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9986 (exit $ac_status); }; }; then 9987 ac_cv_sys_file_offset_bits=64 9988else 9989 echo "$as_me: failed program was:" >&5 9990cat conftest.$ac_ext >&5 9991fi 9992rm -f conftest.$ac_objext conftest.$ac_ext 9993fi 9994rm -f conftest.$ac_objext conftest.$ac_ext 9995fi 9996echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 9997echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 9998 if test "$ac_cv_sys_file_offset_bits" != no; then 9999 10000cat >>confdefs.h <<_ACEOF 10001#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 10002_ACEOF 10003 10004 fi 10005 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 10006echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 10007if test "${ac_cv_sys_large_files+set}" = set; then 10008 echo $ECHO_N "(cached) $ECHO_C" >&6 10009else 10010 ac_cv_sys_large_files=no 10011 cat >conftest.$ac_ext <<_ACEOF 10012#line $LINENO "configure" 10013#include "confdefs.h" 10014#include <sys/types.h> 10015 /* Check that off_t can represent 2**63 - 1 correctly. 10016 We can't simply "#define LARGE_OFF_T 9223372036854775807", 10017 since some C++ compilers masquerading as C compilers 10018 incorrectly reject 9223372036854775807. */ 10019# define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10020 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10021 && LARGE_OFF_T % 2147483647 == 1) 10022 ? 1 : -1]; 10023 10024#ifdef F77_DUMMY_MAIN 10025# ifdef __cplusplus 10026 extern "C" 10027# endif 10028 int F77_DUMMY_MAIN() { return 1; } 10029#endif 10030int 10031main () 10032{ 10033 10034 ; 10035 return 0; 10036} 10037_ACEOF 10038rm -f conftest.$ac_objext 10039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10040 (eval $ac_compile) 2>&5 10041 ac_status=$? 10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10043 (exit $ac_status); } && 10044 { ac_try='test -s conftest.$ac_objext' 10045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10046 (eval $ac_try) 2>&5 10047 ac_status=$? 10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10049 (exit $ac_status); }; }; then 10050 : 10051else 10052 echo "$as_me: failed program was:" >&5 10053cat conftest.$ac_ext >&5 10054cat >conftest.$ac_ext <<_ACEOF 10055#line $LINENO "configure" 10056#include "confdefs.h" 10057#define _LARGE_FILES 1 10058#include <sys/types.h> 10059 /* Check that off_t can represent 2**63 - 1 correctly. 10060 We can't simply "#define LARGE_OFF_T 9223372036854775807", 10061 since some C++ compilers masquerading as C compilers 10062 incorrectly reject 9223372036854775807. */ 10063# define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 10064 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 10065 && LARGE_OFF_T % 2147483647 == 1) 10066 ? 1 : -1]; 10067 10068 10069#ifdef F77_DUMMY_MAIN 10070# ifdef __cplusplus 10071 extern "C" 10072# endif 10073 int F77_DUMMY_MAIN() { return 1; } 10074#endif 10075int 10076main () 10077{ 10078 10079 ; 10080 return 0; 10081} 10082_ACEOF 10083rm -f conftest.$ac_objext 10084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10085 (eval $ac_compile) 2>&5 10086 ac_status=$? 10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10088 (exit $ac_status); } && 10089 { ac_try='test -s conftest.$ac_objext' 10090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10091 (eval $ac_try) 2>&5 10092 ac_status=$? 10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10094 (exit $ac_status); }; }; then 10095 ac_cv_sys_large_files=1 10096else 10097 echo "$as_me: failed program was:" >&5 10098cat conftest.$ac_ext >&5 10099fi 10100rm -f conftest.$ac_objext conftest.$ac_ext 10101fi 10102rm -f conftest.$ac_objext conftest.$ac_ext 10103fi 10104echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 10105echo "${ECHO_T}$ac_cv_sys_large_files" >&6 10106 if test "$ac_cv_sys_large_files" != no; then 10107 10108cat >>confdefs.h <<_ACEOF 10109#define _LARGE_FILES $ac_cv_sys_large_files 10110_ACEOF 10111 10112 fi 10113 fi 10114 10115 10116 10117for ac_header in stdlib.h 10118do 10119as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10120if eval "test \"\${$as_ac_Header+set}\" = set"; then 10121 echo "$as_me:$LINENO: checking for $ac_header" >&5 10122echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10123if eval "test \"\${$as_ac_Header+set}\" = set"; then 10124 echo $ECHO_N "(cached) $ECHO_C" >&6 10125fi 10126echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10127echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10128else 10129 # Is the header compilable? 10130echo "$as_me:$LINENO: checking $ac_header usability" >&5 10131echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 10132cat >conftest.$ac_ext <<_ACEOF 10133#line $LINENO "configure" 10134#include "confdefs.h" 10135$ac_includes_default 10136#include <$ac_header> 10137_ACEOF 10138rm -f conftest.$ac_objext 10139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10140 (eval $ac_compile) 2>&5 10141 ac_status=$? 10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10143 (exit $ac_status); } && 10144 { ac_try='test -s conftest.$ac_objext' 10145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10146 (eval $ac_try) 2>&5 10147 ac_status=$? 10148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10149 (exit $ac_status); }; }; then 10150 ac_header_compiler=yes 10151else 10152 echo "$as_me: failed program was:" >&5 10153cat conftest.$ac_ext >&5 10154ac_header_compiler=no 10155fi 10156rm -f conftest.$ac_objext conftest.$ac_ext 10157echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10158echo "${ECHO_T}$ac_header_compiler" >&6 10159 10160# Is the header present? 10161echo "$as_me:$LINENO: checking $ac_header presence" >&5 10162echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 10163cat >conftest.$ac_ext <<_ACEOF 10164#line $LINENO "configure" 10165#include "confdefs.h" 10166#include <$ac_header> 10167_ACEOF 10168if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10169 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10170 ac_status=$? 10171 egrep -v '^ *\+' conftest.er1 >conftest.err 10172 rm -f conftest.er1 10173 cat conftest.err >&5 10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10175 (exit $ac_status); } >/dev/null; then 10176 if test -s conftest.err; then 10177 ac_cpp_err=$ac_c_preproc_warn_flag 10178 else 10179 ac_cpp_err= 10180 fi 10181else 10182 ac_cpp_err=yes 10183fi 10184if test -z "$ac_cpp_err"; then 10185 ac_header_preproc=yes 10186else 10187 echo "$as_me: failed program was:" >&5 10188 cat conftest.$ac_ext >&5 10189 ac_header_preproc=no 10190fi 10191rm -f conftest.err conftest.$ac_ext 10192echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10193echo "${ECHO_T}$ac_header_preproc" >&6 10194 10195# So? What about this header? 10196case $ac_header_compiler:$ac_header_preproc in 10197 yes:no ) 10198 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10199echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10201echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 10202 no:yes ) 10203 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10204echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10205 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10206echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10208echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 10209esac 10210echo "$as_me:$LINENO: checking for $ac_header" >&5 10211echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10212if eval "test \"\${$as_ac_Header+set}\" = set"; then 10213 echo $ECHO_N "(cached) $ECHO_C" >&6 10214else 10215 eval "$as_ac_Header=$ac_header_preproc" 10216fi 10217echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10218echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10219 10220fi 10221if test `eval echo '${'$as_ac_Header'}'` = yes; then 10222 cat >>confdefs.h <<_ACEOF 10223#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10224_ACEOF 10225 10226fi 10227 10228done 10229 10230 10231 echo "$as_me:$LINENO: checking for mbstate_t" >&5 10232echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6 10233if test "${ac_cv_type_mbstate_t+set}" = set; then 10234 echo $ECHO_N "(cached) $ECHO_C" >&6 10235else 10236 cat >conftest.$ac_ext <<_ACEOF 10237#line $LINENO "configure" 10238#include "confdefs.h" 10239 10240#if HAVE_STDLIB_H 10241# include <stdlib.h> 10242#endif 10243#include <wchar.h> 10244#ifdef F77_DUMMY_MAIN 10245# ifdef __cplusplus 10246 extern "C" 10247# endif 10248 int F77_DUMMY_MAIN() { return 1; } 10249#endif 10250int 10251main () 10252{ 10253mbstate_t x; return sizeof x; 10254 ; 10255 return 0; 10256} 10257_ACEOF 10258rm -f conftest.$ac_objext 10259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10260 (eval $ac_compile) 2>&5 10261 ac_status=$? 10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10263 (exit $ac_status); } && 10264 { ac_try='test -s conftest.$ac_objext' 10265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10266 (eval $ac_try) 2>&5 10267 ac_status=$? 10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10269 (exit $ac_status); }; }; then 10270 ac_cv_type_mbstate_t=yes 10271else 10272 echo "$as_me: failed program was:" >&5 10273cat conftest.$ac_ext >&5 10274ac_cv_type_mbstate_t=no 10275fi 10276rm -f conftest.$ac_objext conftest.$ac_ext 10277fi 10278echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5 10279echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6 10280 if test $ac_cv_type_mbstate_t = no; then 10281 10282cat >>confdefs.h <<\_ACEOF 10283#define mbstate_t int 10284_ACEOF 10285 10286 fi 10287 10288echo "$as_me:$LINENO: checking for uint8_t" >&5 10289echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6 10290if test "${ac_cv_type_uint8_t+set}" = set; then 10291 echo $ECHO_N "(cached) $ECHO_C" >&6 10292else 10293 cat >conftest.$ac_ext <<_ACEOF 10294#line $LINENO "configure" 10295#include "confdefs.h" 10296#if HAVE_STDINT_H 10297#include <stdint.h> 10298#endif 10299#include <sys/types.h> 10300#if STDC_HEADERS 10301#include <stdlib.h> 10302#include <stddef.h> 10303#endif 10304_ACEOF 10305if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10306 egrep "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 10307 ac_cv_type_uint8_t=yes 10308else 10309 ac_cv_type_uint8_t=no 10310fi 10311rm -f conftest* 10312 10313fi 10314echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5 10315echo "${ECHO_T}$ac_cv_type_uint8_t" >&6 10316if test $ac_cv_type_uint8_t = no; then 10317 cat >>confdefs.h <<\_ACEOF 10318#define uint8_t unsigned char 10319_ACEOF 10320 10321fi 10322 10323echo "$as_me:$LINENO: checking for uint16_t" >&5 10324echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6 10325if test "${ac_cv_type_uint16_t+set}" = set; then 10326 echo $ECHO_N "(cached) $ECHO_C" >&6 10327else 10328 cat >conftest.$ac_ext <<_ACEOF 10329#line $LINENO "configure" 10330#include "confdefs.h" 10331#if HAVE_STDINT_H 10332#include <stdint.h> 10333#endif 10334#include <sys/types.h> 10335#if STDC_HEADERS 10336#include <stdlib.h> 10337#include <stddef.h> 10338#endif 10339_ACEOF 10340if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10341 egrep "(^|[^a-zA-Z_0-9])uint16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 10342 ac_cv_type_uint16_t=yes 10343else 10344 ac_cv_type_uint16_t=no 10345fi 10346rm -f conftest* 10347 10348fi 10349echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 10350echo "${ECHO_T}$ac_cv_type_uint16_t" >&6 10351if test $ac_cv_type_uint16_t = no; then 10352 cat >>confdefs.h <<\_ACEOF 10353#define uint16_t unsigned short 10354_ACEOF 10355 10356fi 10357 10358echo "$as_me:$LINENO: checking for uint32_t" >&5 10359echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 10360if test "${ac_cv_type_uint32_t+set}" = set; then 10361 echo $ECHO_N "(cached) $ECHO_C" >&6 10362else 10363 cat >conftest.$ac_ext <<_ACEOF 10364#line $LINENO "configure" 10365#include "confdefs.h" 10366#if HAVE_STDINT_H 10367#include <stdint.h> 10368#endif 10369#include <sys/types.h> 10370#if STDC_HEADERS 10371#include <stdlib.h> 10372#include <stddef.h> 10373#endif 10374_ACEOF 10375if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10376 egrep "(^|[^a-zA-Z_0-9])uint32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 10377 ac_cv_type_uint32_t=yes 10378else 10379 ac_cv_type_uint32_t=no 10380fi 10381rm -f conftest* 10382 10383fi 10384echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 10385echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 10386if test $ac_cv_type_uint32_t = no; then 10387 cat >>confdefs.h <<\_ACEOF 10388#define uint32_t unsigned int 10389_ACEOF 10390 10391fi 10392 10393echo "$as_me:$LINENO: checking for int32_t" >&5 10394echo $ECHO_N "checking for int32_t... $ECHO_C" >&6 10395if test "${ac_cv_type_int32_t+set}" = set; then 10396 echo $ECHO_N "(cached) $ECHO_C" >&6 10397else 10398 cat >conftest.$ac_ext <<_ACEOF 10399#line $LINENO "configure" 10400#include "confdefs.h" 10401#if HAVE_STDINT_H 10402#include <stdint.h> 10403#endif 10404#include <sys/types.h> 10405#if STDC_HEADERS 10406#include <stdlib.h> 10407#include <stddef.h> 10408#endif 10409_ACEOF 10410if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10411 egrep "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 10412 ac_cv_type_int32_t=yes 10413else 10414 ac_cv_type_int32_t=no 10415fi 10416rm -f conftest* 10417 10418fi 10419echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5 10420echo "${ECHO_T}$ac_cv_type_int32_t" >&6 10421if test $ac_cv_type_int32_t = no; then 10422 cat >>confdefs.h <<\_ACEOF 10423#define int32_t int 10424_ACEOF 10425 10426fi 10427 10428echo "$as_me:$LINENO: checking for long long" >&5 10429echo $ECHO_N "checking for long long... $ECHO_C" >&6 10430if test "${ac_cv_c_long_long+set}" = set; then 10431 echo $ECHO_N "(cached) $ECHO_C" >&6 10432else 10433 if test "$GCC" = yes; then 10434 ac_cv_c_long_long=yes 10435else 10436if test "$cross_compiling" = yes; then 10437 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 10438echo "$as_me: error: cannot run test program while cross compiling" >&2;} 10439 { (exit 1); exit 1; }; } 10440else 10441 cat >conftest.$ac_ext <<_ACEOF 10442#line $LINENO "configure" 10443#include "confdefs.h" 10444int main() { 10445long long foo = 0; 10446exit(sizeof(long long) < sizeof(long)); } 10447_ACEOF 10448rm -f conftest$ac_exeext 10449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10450 (eval $ac_link) 2>&5 10451 ac_status=$? 10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10453 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10455 (eval $ac_try) 2>&5 10456 ac_status=$? 10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10458 (exit $ac_status); }; }; then 10459 ac_cv_c_long_long=yes 10460else 10461 echo "$as_me: program exited with status $ac_status" >&5 10462echo "$as_me: failed program was:" >&5 10463cat conftest.$ac_ext >&5 10464( exit $ac_status ) 10465ac_cv_c_long_long=no 10466fi 10467rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10468fi 10469fi 10470fi 10471echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5 10472echo "${ECHO_T}$ac_cv_c_long_long" >&6 10473if test $ac_cv_c_long_long = yes; then 10474 cat >>confdefs.h <<\_ACEOF 10475#define HAVE_LONG_LONG 1 10476_ACEOF 10477 10478fi 10479 10480if test $ac_cv_c_long_long = yes; then 10481 long64='unsigned long long'; 10482else 10483 long64='unsigned long'; 10484fi 10485echo "$as_me:$LINENO: checking for uint64_t" >&5 10486echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 10487if test "${ac_cv_type_uint64_t+set}" = set; then 10488 echo $ECHO_N "(cached) $ECHO_C" >&6 10489else 10490 cat >conftest.$ac_ext <<_ACEOF 10491#line $LINENO "configure" 10492#include "confdefs.h" 10493#if HAVE_STDINT_H 10494#include <stdint.h> 10495#endif 10496#include <sys/types.h> 10497#if STDC_HEADERS 10498#include <stdlib.h> 10499#include <stddef.h> 10500#endif 10501_ACEOF 10502if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10503 egrep "(^|[^a-zA-Z_0-9])uint64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 10504 eval "ac_cv_type_uint64_t=yes" 10505else 10506 eval "ac_cv_type_uint64_t=no" 10507fi 10508rm -f conftest* 10509 10510fi 10511if eval "test \"`echo '$ac_cv_type_'uint64_t`\" = yes"; then 10512 echo "$as_me:$LINENO: result: yes" >&5 10513echo "${ECHO_T}yes" >&6 10514else 10515 echo "$as_me:$LINENO: result: no" >&5 10516echo "${ECHO_T}no" >&6 10517 cat >>confdefs.h <<_ACEOF 10518#define uint64_t $long64 10519_ACEOF 10520 10521fi 10522 10523 10524echo "$as_me:$LINENO: checking size of uint8_t" >&5 10525echo $ECHO_N "checking size of uint8_t... $ECHO_C" >&6 10526if test "${ac_cv_sizeof_uint8_t+set}" = set; then 10527 echo $ECHO_N "(cached) $ECHO_C" >&6 10528else 10529 if test "$cross_compiling" = yes; then 10530 ac_cv_sizeof_uint8_t=0 10531else 10532 cat >conftest.$ac_ext <<_ACEOF 10533#line $LINENO "configure" 10534#include "confdefs.h" 10535#if HAVE_STDINT_H 10536#include <stdint.h> 10537#endif 10538#include <sys/types.h> 10539#ifdef STDC_HEADERS 10540#include <stdlib.h> 10541#endif 10542 10543#include <stdio.h> 10544main() 10545{ 10546 FILE *f=fopen("conftestval", "w"); 10547 if (!f) exit(1); 10548 fprintf(f, "%d\n", sizeof(uint8_t)); 10549 exit(0); 10550} 10551_ACEOF 10552rm -f conftest$ac_exeext 10553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10554 (eval $ac_link) 2>&5 10555 ac_status=$? 10556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10557 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10559 (eval $ac_try) 2>&5 10560 ac_status=$? 10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10562 (exit $ac_status); }; }; then 10563 ac_cv_sizeof_uint8_t=`cat conftestval` 10564else 10565 echo "$as_me: program exited with status $ac_status" >&5 10566echo "$as_me: failed program was:" >&5 10567cat conftest.$ac_ext >&5 10568( exit $ac_status ) 10569ac_cv_sizeof_uint8_t=0 10570fi 10571rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10572fi 10573fi 10574echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint8_t" >&5 10575echo "${ECHO_T}$ac_cv_sizeof_uint8_t" >&6 10576cat >>confdefs.h <<_ACEOF 10577#define SIZEOF_UINT8_T $ac_cv_sizeof_uint8_t 10578_ACEOF 10579 10580 10581 10582echo "$as_me:$LINENO: checking size of uint16_t" >&5 10583echo $ECHO_N "checking size of uint16_t... $ECHO_C" >&6 10584if test "${ac_cv_sizeof_uint16_t+set}" = set; then 10585 echo $ECHO_N "(cached) $ECHO_C" >&6 10586else 10587 if test "$cross_compiling" = yes; then 10588 ac_cv_sizeof_uint16_t=0 10589else 10590 cat >conftest.$ac_ext <<_ACEOF 10591#line $LINENO "configure" 10592#include "confdefs.h" 10593#if HAVE_STDINT_H 10594#include <stdint.h> 10595#endif 10596#include <sys/types.h> 10597#ifdef STDC_HEADERS 10598#include <stdlib.h> 10599#endif 10600 10601#include <stdio.h> 10602main() 10603{ 10604 FILE *f=fopen("conftestval", "w"); 10605 if (!f) exit(1); 10606 fprintf(f, "%d\n", sizeof(uint16_t)); 10607 exit(0); 10608} 10609_ACEOF 10610rm -f conftest$ac_exeext 10611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10612 (eval $ac_link) 2>&5 10613 ac_status=$? 10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10615 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10617 (eval $ac_try) 2>&5 10618 ac_status=$? 10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10620 (exit $ac_status); }; }; then 10621 ac_cv_sizeof_uint16_t=`cat conftestval` 10622else 10623 echo "$as_me: program exited with status $ac_status" >&5 10624echo "$as_me: failed program was:" >&5 10625cat conftest.$ac_ext >&5 10626( exit $ac_status ) 10627ac_cv_sizeof_uint16_t=0 10628fi 10629rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10630fi 10631fi 10632echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint16_t" >&5 10633echo "${ECHO_T}$ac_cv_sizeof_uint16_t" >&6 10634cat >>confdefs.h <<_ACEOF 10635#define SIZEOF_UINT16_T $ac_cv_sizeof_uint16_t 10636_ACEOF 10637 10638 10639 10640echo "$as_me:$LINENO: checking size of uint32_t" >&5 10641echo $ECHO_N "checking size of uint32_t... $ECHO_C" >&6 10642if test "${ac_cv_sizeof_uint32_t+set}" = set; then 10643 echo $ECHO_N "(cached) $ECHO_C" >&6 10644else 10645 if test "$cross_compiling" = yes; then 10646 ac_cv_sizeof_uint32_t=0 10647else 10648 cat >conftest.$ac_ext <<_ACEOF 10649#line $LINENO "configure" 10650#include "confdefs.h" 10651#if HAVE_STDINT_H 10652#include <stdint.h> 10653#endif 10654#include <sys/types.h> 10655#ifdef STDC_HEADERS 10656#include <stdlib.h> 10657#endif 10658 10659#include <stdio.h> 10660main() 10661{ 10662 FILE *f=fopen("conftestval", "w"); 10663 if (!f) exit(1); 10664 fprintf(f, "%d\n", sizeof(uint32_t)); 10665 exit(0); 10666} 10667_ACEOF 10668rm -f conftest$ac_exeext 10669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10670 (eval $ac_link) 2>&5 10671 ac_status=$? 10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10675 (eval $ac_try) 2>&5 10676 ac_status=$? 10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10678 (exit $ac_status); }; }; then 10679 ac_cv_sizeof_uint32_t=`cat conftestval` 10680else 10681 echo "$as_me: program exited with status $ac_status" >&5 10682echo "$as_me: failed program was:" >&5 10683cat conftest.$ac_ext >&5 10684( exit $ac_status ) 10685ac_cv_sizeof_uint32_t=0 10686fi 10687rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10688fi 10689fi 10690echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint32_t" >&5 10691echo "${ECHO_T}$ac_cv_sizeof_uint32_t" >&6 10692cat >>confdefs.h <<_ACEOF 10693#define SIZEOF_UINT32_T $ac_cv_sizeof_uint32_t 10694_ACEOF 10695 10696 10697 10698echo "$as_me:$LINENO: checking size of uint64_t" >&5 10699echo $ECHO_N "checking size of uint64_t... $ECHO_C" >&6 10700if test "${ac_cv_sizeof_uint64_t+set}" = set; then 10701 echo $ECHO_N "(cached) $ECHO_C" >&6 10702else 10703 if test "$cross_compiling" = yes; then 10704 ac_cv_sizeof_uint64_t=0 10705else 10706 cat >conftest.$ac_ext <<_ACEOF 10707#line $LINENO "configure" 10708#include "confdefs.h" 10709#if HAVE_STDINT_H 10710#include <stdint.h> 10711#endif 10712#include <sys/types.h> 10713#ifdef STDC_HEADERS 10714#include <stdlib.h> 10715#endif 10716 10717#include <stdio.h> 10718main() 10719{ 10720 FILE *f=fopen("conftestval", "w"); 10721 if (!f) exit(1); 10722 fprintf(f, "%d\n", sizeof(uint64_t)); 10723 exit(0); 10724} 10725_ACEOF 10726rm -f conftest$ac_exeext 10727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10728 (eval $ac_link) 2>&5 10729 ac_status=$? 10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10731 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10733 (eval $ac_try) 2>&5 10734 ac_status=$? 10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10736 (exit $ac_status); }; }; then 10737 ac_cv_sizeof_uint64_t=`cat conftestval` 10738else 10739 echo "$as_me: program exited with status $ac_status" >&5 10740echo "$as_me: failed program was:" >&5 10741cat conftest.$ac_ext >&5 10742( exit $ac_status ) 10743ac_cv_sizeof_uint64_t=0 10744fi 10745rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10746fi 10747fi 10748echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint64_t" >&5 10749echo "${ECHO_T}$ac_cv_sizeof_uint64_t" >&6 10750cat >>confdefs.h <<_ACEOF 10751#define SIZEOF_UINT64_T $ac_cv_sizeof_uint64_t 10752_ACEOF 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766for ac_func in mmap strerror strtoul mbrtowc mkstemp getopt_long utimes utime wcwidth 10767do 10768as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10769echo "$as_me:$LINENO: checking for $ac_func" >&5 10770echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 10771if eval "test \"\${$as_ac_var+set}\" = set"; then 10772 echo $ECHO_N "(cached) $ECHO_C" >&6 10773else 10774 cat >conftest.$ac_ext <<_ACEOF 10775#line $LINENO "configure" 10776#include "confdefs.h" 10777/* System header to define __stub macros and hopefully few prototypes, 10778 which can conflict with char $ac_func (); below. */ 10779#include <assert.h> 10780/* Override any gcc2 internal prototype to avoid an error. */ 10781#ifdef __cplusplus 10782extern "C" 10783#endif 10784/* We use char because int might match the return type of a gcc2 10785 builtin and then its argument prototype would still apply. */ 10786char $ac_func (); 10787char (*f) (); 10788 10789#ifdef F77_DUMMY_MAIN 10790# ifdef __cplusplus 10791 extern "C" 10792# endif 10793 int F77_DUMMY_MAIN() { return 1; } 10794#endif 10795int 10796main () 10797{ 10798/* The GNU C library defines this for functions which it implements 10799 to always fail with ENOSYS. Some functions are actually named 10800 something starting with __ and the normal name is an alias. */ 10801#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 10802choke me 10803#else 10804f = $ac_func; 10805#endif 10806 10807 ; 10808 return 0; 10809} 10810_ACEOF 10811rm -f conftest.$ac_objext conftest$ac_exeext 10812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10813 (eval $ac_link) 2>&5 10814 ac_status=$? 10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10816 (exit $ac_status); } && 10817 { ac_try='test -s conftest$ac_exeext' 10818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10819 (eval $ac_try) 2>&5 10820 ac_status=$? 10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10822 (exit $ac_status); }; }; then 10823 eval "$as_ac_var=yes" 10824else 10825 echo "$as_me: failed program was:" >&5 10826cat conftest.$ac_ext >&5 10827eval "$as_ac_var=no" 10828fi 10829rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10830fi 10831echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 10832echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 10833if test `eval echo '${'$as_ac_var'}'` = yes; then 10834 cat >>confdefs.h <<_ACEOF 10835#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10836_ACEOF 10837 10838fi 10839done 10840 10841 10842 10843echo "$as_me:$LINENO: checking for gzopen in -lz" >&5 10844echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6 10845if test "${ac_cv_lib_z_gzopen+set}" = set; then 10846 echo $ECHO_N "(cached) $ECHO_C" >&6 10847else 10848 ac_check_lib_save_LIBS=$LIBS 10849LIBS="-lz $LIBS" 10850cat >conftest.$ac_ext <<_ACEOF 10851#line $LINENO "configure" 10852#include "confdefs.h" 10853 10854/* Override any gcc2 internal prototype to avoid an error. */ 10855#ifdef __cplusplus 10856extern "C" 10857#endif 10858/* We use char because int might match the return type of a gcc2 10859 builtin and then its argument prototype would still apply. */ 10860char gzopen (); 10861#ifdef F77_DUMMY_MAIN 10862# ifdef __cplusplus 10863 extern "C" 10864# endif 10865 int F77_DUMMY_MAIN() { return 1; } 10866#endif 10867int 10868main () 10869{ 10870gzopen (); 10871 ; 10872 return 0; 10873} 10874_ACEOF 10875rm -f conftest.$ac_objext conftest$ac_exeext 10876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10877 (eval $ac_link) 2>&5 10878 ac_status=$? 10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10880 (exit $ac_status); } && 10881 { ac_try='test -s conftest$ac_exeext' 10882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10883 (eval $ac_try) 2>&5 10884 ac_status=$? 10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10886 (exit $ac_status); }; }; then 10887 ac_cv_lib_z_gzopen=yes 10888else 10889 echo "$as_me: failed program was:" >&5 10890cat conftest.$ac_ext >&5 10891ac_cv_lib_z_gzopen=no 10892fi 10893rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10894LIBS=$ac_check_lib_save_LIBS 10895fi 10896echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5 10897echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6 10898if test $ac_cv_lib_z_gzopen = yes; then 10899 cat >>confdefs.h <<_ACEOF 10900#define HAVE_LIBZ 1 10901_ACEOF 10902 10903 LIBS="-lz $LIBS" 10904 10905fi 10906 10907 10908ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile doc/Makefile python/Makefile" 10909 10910cat >confcache <<\_ACEOF 10911# This file is a shell script that caches the results of configure 10912# tests run on this system so they can be shared between configure 10913# scripts and configure runs, see configure's option --config-cache. 10914# It is not useful on other systems. If it contains results you don't 10915# want to keep, you may remove or edit it. 10916# 10917# config.status only pays attention to the cache file if you give it 10918# the --recheck option to rerun configure. 10919# 10920# `ac_cv_env_foo' variables (set or unset) will be overriden when 10921# loading this file, other *unset* `ac_cv_foo' will be assigned the 10922# following values. 10923 10924_ACEOF 10925 10926# The following way of writing the cache mishandles newlines in values, 10927# but we know of no workaround that is simple, portable, and efficient. 10928# So, don't put newlines in cache variables' values. 10929# Ultrix sh set writes to stderr and can't be redirected directly, 10930# and sets the high bit in the cache file unless we assign to the vars. 10931{ 10932 (set) 2>&1 | 10933 case `(ac_space=' '; set | grep ac_space) 2>&1` in 10934 *ac_space=\ *) 10935 # `set' does not quote correctly, so add quotes (double-quote 10936 # substitution turns \\\\ into \\, and sed turns \\ into \). 10937 sed -n \ 10938 "s/'/'\\\\''/g; 10939 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10940 ;; 10941 *) 10942 # `set' quotes correctly as required by POSIX, so do not add quotes. 10943 sed -n \ 10944 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 10945 ;; 10946 esac; 10947} | 10948 sed ' 10949 t clear 10950 : clear 10951 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10952 t end 10953 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10954 : end' >>confcache 10955if cmp -s $cache_file confcache; then :; else 10956 if test -w $cache_file; then 10957 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 10958 cat confcache >$cache_file 10959 else 10960 echo "not updating unwritable cache $cache_file" 10961 fi 10962fi 10963rm -f confcache 10964 10965test "x$prefix" = xNONE && prefix=$ac_default_prefix 10966# Let make expand exec_prefix. 10967test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10968 10969# VPATH may cause trouble with some makes, so we remove $(srcdir), 10970# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 10971# trailing colons and then remove the whole line if VPATH becomes empty 10972# (actually we leave an empty line to preserve line numbers). 10973if test "x$srcdir" = x.; then 10974 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 10975s/:*\$(srcdir):*/:/; 10976s/:*\${srcdir}:*/:/; 10977s/:*@srcdir@:*/:/; 10978s/^\([^=]*=[ ]*\):*/\1/; 10979s/:*$//; 10980s/^[^=]*=[ ]*$//; 10981}' 10982fi 10983 10984DEFS=-DHAVE_CONFIG_H 10985 10986if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then 10987 { { echo "$as_me:$LINENO: error: conditional \"FSECT5\" was never defined. 10988Usually this means the macro was only invoked conditionally." >&5 10989echo "$as_me: error: conditional \"FSECT5\" was never defined. 10990Usually this means the macro was only invoked conditionally." >&2;} 10991 { (exit 1); exit 1; }; } 10992fi 10993if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 10994 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 10995Usually this means the macro was only invoked conditionally." >&5 10996echo "$as_me: error: conditional \"AMDEP\" was never defined. 10997Usually this means the macro was only invoked conditionally." >&2;} 10998 { (exit 1); exit 1; }; } 10999fi 11000 11001: ${CONFIG_STATUS=./config.status} 11002ac_clean_files_save=$ac_clean_files 11003ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11004{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 11005echo "$as_me: creating $CONFIG_STATUS" >&6;} 11006cat >$CONFIG_STATUS <<_ACEOF 11007#! $SHELL 11008# Generated by $as_me. 11009# Run this file to recreate the current configuration. 11010# Compiler output produced by configure, useful for debugging 11011# configure, is in config.log if it exists. 11012 11013debug=false 11014SHELL=\${CONFIG_SHELL-$SHELL} 11015_ACEOF 11016 11017cat >>$CONFIG_STATUS <<\_ACEOF 11018 11019## --------------------- ## 11020## M4sh Initialization. ## 11021## --------------------- ## 11022 11023# Be Bourne compatible 11024if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 11025 emulate sh 11026 NULLCMD=: 11027elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 11028 set -o posix 11029fi 11030 11031# NLS nuisances. 11032# Support unset when possible. 11033if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 11034 as_unset=unset 11035else 11036 as_unset=false 11037fi 11038 11039(set +x; test -n "`(LANG=C; export LANG) 2>&1`") && 11040 { $as_unset LANG || test "${LANG+set}" != set; } || 11041 { LANG=C; export LANG; } 11042(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && 11043 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || 11044 { LC_ALL=C; export LC_ALL; } 11045(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && 11046 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || 11047 { LC_TIME=C; export LC_TIME; } 11048(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && 11049 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || 11050 { LC_CTYPE=C; export LC_CTYPE; } 11051(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && 11052 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || 11053 { LANGUAGE=C; export LANGUAGE; } 11054(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && 11055 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || 11056 { LC_COLLATE=C; export LC_COLLATE; } 11057(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && 11058 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || 11059 { LC_NUMERIC=C; export LC_NUMERIC; } 11060(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && 11061 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || 11062 { LC_MESSAGES=C; export LC_MESSAGES; } 11063 11064 11065# Name of the executable. 11066as_me=`(basename "$0") 2>/dev/null || 11067$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11068 X"$0" : 'X\(//\)$' \| \ 11069 X"$0" : 'X\(/\)$' \| \ 11070 . : '\(.\)' 2>/dev/null || 11071echo X/"$0" | 11072 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 11073 /^X\/\(\/\/\)$/{ s//\1/; q; } 11074 /^X\/\(\/\).*/{ s//\1/; q; } 11075 s/.*/./; q'` 11076 11077# PATH needs CR, and LINENO needs CR and PATH. 11078# Avoid depending upon Character Ranges. 11079as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11080as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11081as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11082as_cr_digits='0123456789' 11083as_cr_alnum=$as_cr_Letters$as_cr_digits 11084 11085# The user is always right. 11086if test "${PATH_SEPARATOR+set}" != set; then 11087 echo "#! /bin/sh" >conftest.sh 11088 echo "exit 0" >>conftest.sh 11089 chmod +x conftest.sh 11090 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then 11091 PATH_SEPARATOR=';' 11092 else 11093 PATH_SEPARATOR=: 11094 fi 11095 rm -f conftest.sh 11096fi 11097 11098 11099 as_lineno_1=$LINENO 11100 as_lineno_2=$LINENO 11101 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 11102 test "x$as_lineno_1" != "x$as_lineno_2" && 11103 test "x$as_lineno_3" = "x$as_lineno_2" || { 11104 # Find who we are. Look in the path if we contain no path at all 11105 # relative or not. 11106 case $0 in 11107 *[\\/]* ) as_myself=$0 ;; 11108 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11109for as_dir in $PATH 11110do 11111 IFS=$as_save_IFS 11112 test -z "$as_dir" && as_dir=. 11113 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11114done 11115 11116 ;; 11117 esac 11118 # We did not find ourselves, most probably we were run as `sh COMMAND' 11119 # in which case we are not to be found in the path. 11120 if test "x$as_myself" = x; then 11121 as_myself=$0 11122 fi 11123 if test ! -f "$as_myself"; then 11124 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 11125echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 11126 { (exit 1); exit 1; }; } 11127 fi 11128 case $CONFIG_SHELL in 11129 '') 11130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 11132do 11133 IFS=$as_save_IFS 11134 test -z "$as_dir" && as_dir=. 11135 for as_base in sh bash ksh sh5; do 11136 case $as_dir in 11137 /*) 11138 if ("$as_dir/$as_base" -c ' 11139 as_lineno_1=$LINENO 11140 as_lineno_2=$LINENO 11141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 11142 test "x$as_lineno_1" != "x$as_lineno_2" && 11143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 11144 CONFIG_SHELL=$as_dir/$as_base 11145 export CONFIG_SHELL 11146 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 11147 fi;; 11148 esac 11149 done 11150done 11151;; 11152 esac 11153 11154 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 11155 # uniformly replaced by the line number. The first 'sed' inserts a 11156 # line-number line before each line; the second 'sed' does the real 11157 # work. The second script uses 'N' to pair each line-number line 11158 # with the numbered line, and appends trailing '-' during 11159 # substitution so that $LINENO is not a special case at line end. 11160 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 11161 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 11162 sed '=' <$as_myself | 11163 sed ' 11164 N 11165 s,$,-, 11166 : loop 11167 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 11168 t loop 11169 s,-$,, 11170 s,^['$as_cr_digits']*\n,, 11171 ' >$as_me.lineno && 11172 chmod +x $as_me.lineno || 11173 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 11174echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 11175 { (exit 1); exit 1; }; } 11176 11177 # Don't try to exec as it changes $[0], causing all sort of problems 11178 # (the dirname of $[0] is not the place where we might find the 11179 # original and so on. Autoconf is especially sensible to this). 11180 . ./$as_me.lineno 11181 # Exit status is that of the last command. 11182 exit 11183} 11184 11185 11186case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 11187 *c*,-n*) ECHO_N= ECHO_C=' 11188' ECHO_T=' ' ;; 11189 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 11190 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 11191esac 11192 11193if expr a : '\(a\)' >/dev/null 2>&1; then 11194 as_expr=expr 11195else 11196 as_expr=false 11197fi 11198 11199rm -f conf$$ conf$$.exe conf$$.file 11200echo >conf$$.file 11201if ln -s conf$$.file conf$$ 2>/dev/null; then 11202 # We could just check for DJGPP; but this test a) works b) is more generic 11203 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 11204 if test -f conf$$.exe; then 11205 # Don't use ln at all; we don't have any links 11206 as_ln_s='cp -p' 11207 else 11208 as_ln_s='ln -s' 11209 fi 11210elif ln conf$$.file conf$$ 2>/dev/null; then 11211 as_ln_s=ln 11212else 11213 as_ln_s='cp -p' 11214fi 11215rm -f conf$$ conf$$.exe conf$$.file 11216 11217as_executable_p="test -f" 11218 11219# Sed expression to map a string onto a valid CPP name. 11220as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 11221 11222# Sed expression to map a string onto a valid variable name. 11223as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 11224 11225 11226# IFS 11227# We need space, tab and new line, in precisely that order. 11228as_nl=' 11229' 11230IFS=" $as_nl" 11231 11232# CDPATH. 11233$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } 11234 11235exec 6>&1 11236 11237# Open the log real soon, to keep \$[0] and so on meaningful, and to 11238# report actual input values of CONFIG_FILES etc. instead of their 11239# values after options handling. Logging --version etc. is OK. 11240exec 5>>config.log 11241{ 11242 echo 11243 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11244## Running $as_me. ## 11245_ASBOX 11246} >&5 11247cat >&5 <<_CSEOF 11248 11249This file was extended by $as_me, which was 11250generated by GNU Autoconf 2.53. Invocation command line was 11251 11252 CONFIG_FILES = $CONFIG_FILES 11253 CONFIG_HEADERS = $CONFIG_HEADERS 11254 CONFIG_LINKS = $CONFIG_LINKS 11255 CONFIG_COMMANDS = $CONFIG_COMMANDS 11256 $ $0 $@ 11257 11258_CSEOF 11259echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 11260echo >&5 11261_ACEOF 11262 11263# Files that config.status was made for. 11264if test -n "$ac_config_files"; then 11265 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 11266fi 11267 11268if test -n "$ac_config_headers"; then 11269 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 11270fi 11271 11272if test -n "$ac_config_links"; then 11273 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 11274fi 11275 11276if test -n "$ac_config_commands"; then 11277 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 11278fi 11279 11280cat >>$CONFIG_STATUS <<\_ACEOF 11281 11282ac_cs_usage="\ 11283\`$as_me' instantiates files from templates according to the 11284current configuration. 11285 11286Usage: $0 [OPTIONS] [FILE]... 11287 11288 -h, --help print this help, then exit 11289 -V, --version print version number, then exit 11290 -d, --debug don't remove temporary files 11291 --recheck update $as_me by reconfiguring in the same conditions 11292 --file=FILE[:TEMPLATE] 11293 instantiate the configuration file FILE 11294 --header=FILE[:TEMPLATE] 11295 instantiate the configuration header FILE 11296 11297Configuration files: 11298$config_files 11299 11300Configuration headers: 11301$config_headers 11302 11303Configuration commands: 11304$config_commands 11305 11306Report bugs to <bug-autoconf@gnu.org>." 11307_ACEOF 11308 11309cat >>$CONFIG_STATUS <<_ACEOF 11310ac_cs_version="\\ 11311config.status 11312configured by $0, generated by GNU Autoconf 2.53, 11313 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 11314 11315Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 11316Free Software Foundation, Inc. 11317This config.status script is free software; the Free Software Foundation 11318gives unlimited permission to copy, distribute and modify it." 11319srcdir=$srcdir 11320INSTALL="$INSTALL" 11321_ACEOF 11322 11323cat >>$CONFIG_STATUS <<\_ACEOF 11324# If no file are specified by the user, then we need to provide default 11325# value. By we need to know if files were specified by the user. 11326ac_need_defaults=: 11327while test $# != 0 11328do 11329 case $1 in 11330 --*=*) 11331 ac_option=`expr "x$1" : 'x\([^=]*\)='` 11332 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 11333 shift 11334 set dummy "$ac_option" "$ac_optarg" ${1+"$@"} 11335 shift 11336 ;; 11337 -*);; 11338 *) # This is not an option, so the user has probably given explicit 11339 # arguments. 11340 ac_need_defaults=false;; 11341 esac 11342 11343 case $1 in 11344 # Handling of the options. 11345_ACEOF 11346cat >>$CONFIG_STATUS <<_ACEOF 11347 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11348 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" 11349 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; 11350_ACEOF 11351cat >>$CONFIG_STATUS <<\_ACEOF 11352 --version | --vers* | -V ) 11353 echo "$ac_cs_version"; exit 0 ;; 11354 --he | --h) 11355 # Conflict between --help and --header 11356 { { echo "$as_me:$LINENO: error: ambiguous option: $1 11357Try \`$0 --help' for more information." >&5 11358echo "$as_me: error: ambiguous option: $1 11359Try \`$0 --help' for more information." >&2;} 11360 { (exit 1); exit 1; }; };; 11361 --help | --hel | -h ) 11362 echo "$ac_cs_usage"; exit 0 ;; 11363 --debug | --d* | -d ) 11364 debug=: ;; 11365 --file | --fil | --fi | --f ) 11366 shift 11367 CONFIG_FILES="$CONFIG_FILES $1" 11368 ac_need_defaults=false;; 11369 --header | --heade | --head | --hea ) 11370 shift 11371 CONFIG_HEADERS="$CONFIG_HEADERS $1" 11372 ac_need_defaults=false;; 11373 11374 # This is an error. 11375 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 11376Try \`$0 --help' for more information." >&5 11377echo "$as_me: error: unrecognized option: $1 11378Try \`$0 --help' for more information." >&2;} 11379 { (exit 1); exit 1; }; } ;; 11380 11381 *) ac_config_targets="$ac_config_targets $1" ;; 11382 11383 esac 11384 shift 11385done 11386 11387_ACEOF 11388 11389cat >>$CONFIG_STATUS <<_ACEOF 11390# 11391# INIT-COMMANDS section. 11392# 11393 11394AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11395 11396_ACEOF 11397 11398 11399 11400cat >>$CONFIG_STATUS <<\_ACEOF 11401for ac_config_target in $ac_config_targets 11402do 11403 case "$ac_config_target" in 11404 # Handling of arguments. 11405 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11406 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 11407 "magic/Makefile" ) CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;; 11408 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 11409 "python/Makefile" ) CONFIG_FILES="$CONFIG_FILES python/Makefile" ;; 11410 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11411 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11412 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 11413echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 11414 { (exit 1); exit 1; }; };; 11415 esac 11416done 11417 11418# If the user did not use the arguments to specify the items to instantiate, 11419# then the envvar interface is used. Set only those that are not. 11420# We use the long form for the default assignment because of an extremely 11421# bizarre bug on SunOS 4.1.3. 11422if $ac_need_defaults; then 11423 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11424 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11425 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11426fi 11427 11428# Create a temporary directory, and hook for its removal unless debugging. 11429$debug || 11430{ 11431 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 11432 trap '{ (exit 1); exit 1; }' 1 2 13 15 11433} 11434 11435# Create a (secure) tmp directory for tmp files. 11436: ${TMPDIR=/tmp} 11437{ 11438 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && 11439 test -n "$tmp" && test -d "$tmp" 11440} || 11441{ 11442 tmp=$TMPDIR/cs$$-$RANDOM 11443 (umask 077 && mkdir $tmp) 11444} || 11445{ 11446 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 11447 { (exit 1); exit 1; } 11448} 11449 11450_ACEOF 11451 11452cat >>$CONFIG_STATUS <<_ACEOF 11453 11454# 11455# CONFIG_FILES section. 11456# 11457 11458# No need to generate the scripts if there are no CONFIG_FILES. 11459# This happens for instance when ./config.status config.h 11460if test -n "\$CONFIG_FILES"; then 11461 # Protect against being on the right side of a sed subst in config.status. 11462 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 11463 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 11464s,@SHELL@,$SHELL,;t t 11465s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 11466s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 11467s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 11468s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 11469s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 11470s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 11471s,@exec_prefix@,$exec_prefix,;t t 11472s,@prefix@,$prefix,;t t 11473s,@program_transform_name@,$program_transform_name,;t t 11474s,@bindir@,$bindir,;t t 11475s,@sbindir@,$sbindir,;t t 11476s,@libexecdir@,$libexecdir,;t t 11477s,@datadir@,$datadir,;t t 11478s,@sysconfdir@,$sysconfdir,;t t 11479s,@sharedstatedir@,$sharedstatedir,;t t 11480s,@localstatedir@,$localstatedir,;t t 11481s,@libdir@,$libdir,;t t 11482s,@includedir@,$includedir,;t t 11483s,@oldincludedir@,$oldincludedir,;t t 11484s,@infodir@,$infodir,;t t 11485s,@mandir@,$mandir,;t t 11486s,@build_alias@,$build_alias,;t t 11487s,@host_alias@,$host_alias,;t t 11488s,@target_alias@,$target_alias,;t t 11489s,@DEFS@,$DEFS,;t t 11490s,@ECHO_C@,$ECHO_C,;t t 11491s,@ECHO_N@,$ECHO_N,;t t 11492s,@ECHO_T@,$ECHO_T,;t t 11493s,@LIBS@,$LIBS,;t t 11494s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 11495s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 11496s,@INSTALL_DATA@,$INSTALL_DATA,;t t 11497s,@PACKAGE@,$PACKAGE,;t t 11498s,@VERSION@,$VERSION,;t t 11499s,@ACLOCAL@,$ACLOCAL,;t t 11500s,@AUTOCONF@,$AUTOCONF,;t t 11501s,@AUTOMAKE@,$AUTOMAKE,;t t 11502s,@AUTOHEADER@,$AUTOHEADER,;t t 11503s,@MAKEINFO@,$MAKEINFO,;t t 11504s,@AMTAR@,$AMTAR,;t t 11505s,@install_sh@,$install_sh,;t t 11506s,@STRIP@,$STRIP,;t t 11507s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 11508s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 11509s,@AWK@,$AWK,;t t 11510s,@SET_MAKE@,$SET_MAKE,;t t 11511s,@fsect@,$fsect,;t t 11512s,@FSECT5_TRUE@,$FSECT5_TRUE,;t t 11513s,@FSECT5_FALSE@,$FSECT5_FALSE,;t t 11514s,@CC@,$CC,;t t 11515s,@CFLAGS@,$CFLAGS,;t t 11516s,@LDFLAGS@,$LDFLAGS,;t t 11517s,@CPPFLAGS@,$CPPFLAGS,;t t 11518s,@ac_ct_CC@,$ac_ct_CC,;t t 11519s,@EXEEXT@,$EXEEXT,;t t 11520s,@OBJEXT@,$OBJEXT,;t t 11521s,@DEPDIR@,$DEPDIR,;t t 11522s,@am__include@,$am__include,;t t 11523s,@am__quote@,$am__quote,;t t 11524s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 11525s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 11526s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 11527s,@CCDEPMODE@,$CCDEPMODE,;t t 11528s,@LN_S@,$LN_S,;t t 11529s,@build@,$build,;t t 11530s,@build_cpu@,$build_cpu,;t t 11531s,@build_vendor@,$build_vendor,;t t 11532s,@build_os@,$build_os,;t t 11533s,@host@,$host,;t t 11534s,@host_cpu@,$host_cpu,;t t 11535s,@host_vendor@,$host_vendor,;t t 11536s,@host_os@,$host_os,;t t 11537s,@ECHO@,$ECHO,;t t 11538s,@RANLIB@,$RANLIB,;t t 11539s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 11540s,@CPP@,$CPP,;t t 11541s,@LIBTOOL@,$LIBTOOL,;t t 11542CEOF 11543 11544_ACEOF 11545 11546 cat >>$CONFIG_STATUS <<\_ACEOF 11547 # Split the substitutions into bite-sized pieces for seds with 11548 # small command number limits, like on Digital OSF/1 and HP-UX. 11549 ac_max_sed_lines=48 11550 ac_sed_frag=1 # Number of current file. 11551 ac_beg=1 # First line for current file. 11552 ac_end=$ac_max_sed_lines # Line after last line for current file. 11553 ac_more_lines=: 11554 ac_sed_cmds= 11555 while $ac_more_lines; do 11556 if test $ac_beg -gt 1; then 11557 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 11558 else 11559 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 11560 fi 11561 if test ! -s $tmp/subs.frag; then 11562 ac_more_lines=false 11563 else 11564 # The purpose of the label and of the branching condition is to 11565 # speed up the sed processing (if there are no `@' at all, there 11566 # is no need to browse any of the substitutions). 11567 # These are the two extra sed commands mentioned above. 11568 (echo ':t 11569 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 11570 if test -z "$ac_sed_cmds"; then 11571 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 11572 else 11573 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 11574 fi 11575 ac_sed_frag=`expr $ac_sed_frag + 1` 11576 ac_beg=$ac_end 11577 ac_end=`expr $ac_end + $ac_max_sed_lines` 11578 fi 11579 done 11580 if test -z "$ac_sed_cmds"; then 11581 ac_sed_cmds=cat 11582 fi 11583fi # test -n "$CONFIG_FILES" 11584 11585_ACEOF 11586cat >>$CONFIG_STATUS <<\_ACEOF 11587for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 11588 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 11589 case $ac_file in 11590 - | *:- | *:-:* ) # input from stdin 11591 cat >$tmp/stdin 11592 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 11593 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 11594 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 11595 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 11596 * ) ac_file_in=$ac_file.in ;; 11597 esac 11598 11599 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 11600 ac_dir=`(dirname "$ac_file") 2>/dev/null || 11601$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11602 X"$ac_file" : 'X\(//\)[^/]' \| \ 11603 X"$ac_file" : 'X\(//\)$' \| \ 11604 X"$ac_file" : 'X\(/\)' \| \ 11605 . : '\(.\)' 2>/dev/null || 11606echo X"$ac_file" | 11607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11608 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11609 /^X\(\/\/\)$/{ s//\1/; q; } 11610 /^X\(\/\).*/{ s//\1/; q; } 11611 s/.*/./; q'` 11612 { case "$ac_dir" in 11613 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 11614 *) as_incr_dir=.;; 11615esac 11616as_dummy="$ac_dir" 11617for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 11618 case $as_mkdir_dir in 11619 # Skip DOS drivespec 11620 ?:) as_incr_dir=$as_mkdir_dir ;; 11621 *) 11622 as_incr_dir=$as_incr_dir/$as_mkdir_dir 11623 test -d "$as_incr_dir" || 11624 mkdir "$as_incr_dir" || 11625 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 11626echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} 11627 { (exit 1); exit 1; }; } 11628 ;; 11629 esac 11630done; } 11631 11632 ac_builddir=. 11633 11634if test "$ac_dir" != .; then 11635 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 11636 # A "../" for each directory in $ac_dir_suffix. 11637 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 11638else 11639 ac_dir_suffix= ac_top_builddir= 11640fi 11641 11642case $srcdir in 11643 .) # No --srcdir option. We are building in place. 11644 ac_srcdir=. 11645 if test -z "$ac_top_builddir"; then 11646 ac_top_srcdir=. 11647 else 11648 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 11649 fi ;; 11650 [\\/]* | ?:[\\/]* ) # Absolute path. 11651 ac_srcdir=$srcdir$ac_dir_suffix; 11652 ac_top_srcdir=$srcdir ;; 11653 *) # Relative path. 11654 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 11655 ac_top_srcdir=$ac_top_builddir$srcdir ;; 11656esac 11657# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 11658# absolute. 11659ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 11660ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` 11661ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 11662ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 11663 11664 11665 case $INSTALL in 11666 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11667 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 11668 esac 11669 11670 if test x"$ac_file" != x-; then 11671 { echo "$as_me:$LINENO: creating $ac_file" >&5 11672echo "$as_me: creating $ac_file" >&6;} 11673 rm -f "$ac_file" 11674 fi 11675 # Let's still pretend it is `configure' which instantiates (i.e., don't 11676 # use $as_me), people would be surprised to read: 11677 # /* config.h. Generated by config.status. */ 11678 if test x"$ac_file" = x-; then 11679 configure_input= 11680 else 11681 configure_input="$ac_file. " 11682 fi 11683 configure_input=$configure_input"Generated from `echo $ac_file_in | 11684 sed 's,.*/,,'` by configure." 11685 11686 # First look for the input files in the build tree, otherwise in the 11687 # src tree. 11688 ac_file_inputs=`IFS=: 11689 for f in $ac_file_in; do 11690 case $f in 11691 -) echo $tmp/stdin ;; 11692 [\\/$]*) 11693 # Absolute (can't be DOS-style, as IFS=:) 11694 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 11695echo "$as_me: error: cannot find input file: $f" >&2;} 11696 { (exit 1); exit 1; }; } 11697 echo $f;; 11698 *) # Relative 11699 if test -f "$f"; then 11700 # Build tree 11701 echo $f 11702 elif test -f "$srcdir/$f"; then 11703 # Source tree 11704 echo $srcdir/$f 11705 else 11706 # /dev/null tree 11707 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 11708echo "$as_me: error: cannot find input file: $f" >&2;} 11709 { (exit 1); exit 1; }; } 11710 fi;; 11711 esac 11712 done` || { (exit 1); exit 1; } 11713_ACEOF 11714cat >>$CONFIG_STATUS <<_ACEOF 11715 sed "$ac_vpsub 11716$extrasub 11717_ACEOF 11718cat >>$CONFIG_STATUS <<\_ACEOF 11719:t 11720/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11721s,@configure_input@,$configure_input,;t t 11722s,@srcdir@,$ac_srcdir,;t t 11723s,@abs_srcdir@,$ac_abs_srcdir,;t t 11724s,@top_srcdir@,$ac_top_srcdir,;t t 11725s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 11726s,@builddir@,$ac_builddir,;t t 11727s,@abs_builddir@,$ac_abs_builddir,;t t 11728s,@top_builddir@,$ac_top_builddir,;t t 11729s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 11730s,@INSTALL@,$ac_INSTALL,;t t 11731" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 11732 rm -f $tmp/stdin 11733 if test x"$ac_file" != x-; then 11734 mv $tmp/out $ac_file 11735 else 11736 cat $tmp/out 11737 rm -f $tmp/out 11738 fi 11739 11740done 11741_ACEOF 11742cat >>$CONFIG_STATUS <<\_ACEOF 11743 11744# 11745# CONFIG_HEADER section. 11746# 11747 11748# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 11749# NAME is the cpp macro being defined and VALUE is the value it is being given. 11750# 11751# ac_d sets the value in "#define NAME VALUE" lines. 11752ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 11753ac_dB='[ ].*$,\1#\2' 11754ac_dC=' ' 11755ac_dD=',;t' 11756# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 11757ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 11758ac_uB='$,\1#\2define\3' 11759ac_uC=' ' 11760ac_uD=',;t' 11761 11762for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 11763 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 11764 case $ac_file in 11765 - | *:- | *:-:* ) # input from stdin 11766 cat >$tmp/stdin 11767 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 11768 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 11769 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 11770 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 11771 * ) ac_file_in=$ac_file.in ;; 11772 esac 11773 11774 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 11775echo "$as_me: creating $ac_file" >&6;} 11776 11777 # First look for the input files in the build tree, otherwise in the 11778 # src tree. 11779 ac_file_inputs=`IFS=: 11780 for f in $ac_file_in; do 11781 case $f in 11782 -) echo $tmp/stdin ;; 11783 [\\/$]*) 11784 # Absolute (can't be DOS-style, as IFS=:) 11785 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 11786echo "$as_me: error: cannot find input file: $f" >&2;} 11787 { (exit 1); exit 1; }; } 11788 echo $f;; 11789 *) # Relative 11790 if test -f "$f"; then 11791 # Build tree 11792 echo $f 11793 elif test -f "$srcdir/$f"; then 11794 # Source tree 11795 echo $srcdir/$f 11796 else 11797 # /dev/null tree 11798 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 11799echo "$as_me: error: cannot find input file: $f" >&2;} 11800 { (exit 1); exit 1; }; } 11801 fi;; 11802 esac 11803 done` || { (exit 1); exit 1; } 11804 # Remove the trailing spaces. 11805 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 11806 11807_ACEOF 11808 11809# Transform confdefs.h into two sed scripts, `conftest.defines' and 11810# `conftest.undefs', that substitutes the proper values into 11811# config.h.in to produce config.h. The first handles `#define' 11812# templates, and the second `#undef' templates. 11813# And first: Protect against being on the right side of a sed subst in 11814# config.status. Protect against being in an unquoted here document 11815# in config.status. 11816rm -f conftest.defines conftest.undefs 11817# Using a here document instead of a string reduces the quoting nightmare. 11818# Putting comments in sed scripts is not portable. 11819# 11820# `end' is used to avoid that the second main sed command (meant for 11821# 0-ary CPP macros) applies to n-ary macro definitions. 11822# See the Autoconf documentation for `clear'. 11823cat >confdef2sed.sed <<\_ACEOF 11824s/[\\&,]/\\&/g 11825s,[\\$`],\\&,g 11826t clear 11827: clear 11828s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 11829t end 11830s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 11831: end 11832_ACEOF 11833# If some macros were called several times there might be several times 11834# the same #defines, which is useless. Nevertheless, we may not want to 11835# sort them, since we want the *last* AC-DEFINE to be honored. 11836uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 11837sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 11838rm -f confdef2sed.sed 11839 11840# This sed command replaces #undef with comments. This is necessary, for 11841# example, in the case of _POSIX_SOURCE, which is predefined and required 11842# on some systems where configure will not decide to define it. 11843cat >>conftest.undefs <<\_ACEOF 11844s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 11845_ACEOF 11846 11847# Break up conftest.defines because some shells have a limit on the size 11848# of here documents, and old seds have small limits too (100 cmds). 11849echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 11850echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 11851echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 11852echo ' :' >>$CONFIG_STATUS 11853rm -f conftest.tail 11854while grep . conftest.defines >/dev/null 11855do 11856 # Write a limited-size here document to $tmp/defines.sed. 11857 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 11858 # Speed up: don't consider the non `#define' lines. 11859 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 11860 # Work around the forget-to-reset-the-flag bug. 11861 echo 't clr' >>$CONFIG_STATUS 11862 echo ': clr' >>$CONFIG_STATUS 11863 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 11864 echo 'CEOF 11865 sed -f $tmp/defines.sed $tmp/in >$tmp/out 11866 rm -f $tmp/in 11867 mv $tmp/out $tmp/in 11868' >>$CONFIG_STATUS 11869 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 11870 rm -f conftest.defines 11871 mv conftest.tail conftest.defines 11872done 11873rm -f conftest.defines 11874echo ' fi # egrep' >>$CONFIG_STATUS 11875echo >>$CONFIG_STATUS 11876 11877# Break up conftest.undefs because some shells have a limit on the size 11878# of here documents, and old seds have small limits too (100 cmds). 11879echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 11880rm -f conftest.tail 11881while grep . conftest.undefs >/dev/null 11882do 11883 # Write a limited-size here document to $tmp/undefs.sed. 11884 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 11885 # Speed up: don't consider the non `#undef' 11886 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 11887 # Work around the forget-to-reset-the-flag bug. 11888 echo 't clr' >>$CONFIG_STATUS 11889 echo ': clr' >>$CONFIG_STATUS 11890 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 11891 echo 'CEOF 11892 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 11893 rm -f $tmp/in 11894 mv $tmp/out $tmp/in 11895' >>$CONFIG_STATUS 11896 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 11897 rm -f conftest.undefs 11898 mv conftest.tail conftest.undefs 11899done 11900rm -f conftest.undefs 11901 11902cat >>$CONFIG_STATUS <<\_ACEOF 11903 # Let's still pretend it is `configure' which instantiates (i.e., don't 11904 # use $as_me), people would be surprised to read: 11905 # /* config.h. Generated by config.status. */ 11906 if test x"$ac_file" = x-; then 11907 echo "/* Generated by configure. */" >$tmp/config.h 11908 else 11909 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 11910 fi 11911 cat $tmp/in >>$tmp/config.h 11912 rm -f $tmp/in 11913 if test x"$ac_file" != x-; then 11914 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then 11915 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 11916echo "$as_me: $ac_file is unchanged" >&6;} 11917 else 11918 ac_dir=`(dirname "$ac_file") 2>/dev/null || 11919$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11920 X"$ac_file" : 'X\(//\)[^/]' \| \ 11921 X"$ac_file" : 'X\(//\)$' \| \ 11922 X"$ac_file" : 'X\(/\)' \| \ 11923 . : '\(.\)' 2>/dev/null || 11924echo X"$ac_file" | 11925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11926 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11927 /^X\(\/\/\)$/{ s//\1/; q; } 11928 /^X\(\/\).*/{ s//\1/; q; } 11929 s/.*/./; q'` 11930 { case "$ac_dir" in 11931 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 11932 *) as_incr_dir=.;; 11933esac 11934as_dummy="$ac_dir" 11935for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 11936 case $as_mkdir_dir in 11937 # Skip DOS drivespec 11938 ?:) as_incr_dir=$as_mkdir_dir ;; 11939 *) 11940 as_incr_dir=$as_incr_dir/$as_mkdir_dir 11941 test -d "$as_incr_dir" || 11942 mkdir "$as_incr_dir" || 11943 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 11944echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} 11945 { (exit 1); exit 1; }; } 11946 ;; 11947 esac 11948done; } 11949 11950 rm -f $ac_file 11951 mv $tmp/config.h $ac_file 11952 fi 11953 else 11954 cat $tmp/config.h 11955 rm -f $tmp/config.h 11956 fi 11957 # Run the commands associated with the file. 11958 case $ac_file in 11959 config.h ) # update the timestamp 11960echo 'timestamp for config.h' >"./stamp-h1" 11961 ;; 11962 esac 11963done 11964_ACEOF 11965cat >>$CONFIG_STATUS <<\_ACEOF 11966 11967# 11968# CONFIG_COMMANDS section. 11969# 11970for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 11971 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 11972 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 11973 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 11974$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11975 X"$ac_dest" : 'X\(//\)[^/]' \| \ 11976 X"$ac_dest" : 'X\(//\)$' \| \ 11977 X"$ac_dest" : 'X\(/\)' \| \ 11978 . : '\(.\)' 2>/dev/null || 11979echo X"$ac_dest" | 11980 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 11981 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 11982 /^X\(\/\/\)$/{ s//\1/; q; } 11983 /^X\(\/\).*/{ s//\1/; q; } 11984 s/.*/./; q'` 11985 ac_builddir=. 11986 11987if test "$ac_dir" != .; then 11988 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 11989 # A "../" for each directory in $ac_dir_suffix. 11990 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 11991else 11992 ac_dir_suffix= ac_top_builddir= 11993fi 11994 11995case $srcdir in 11996 .) # No --srcdir option. We are building in place. 11997 ac_srcdir=. 11998 if test -z "$ac_top_builddir"; then 11999 ac_top_srcdir=. 12000 else 12001 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 12002 fi ;; 12003 [\\/]* | ?:[\\/]* ) # Absolute path. 12004 ac_srcdir=$srcdir$ac_dir_suffix; 12005 ac_top_srcdir=$srcdir ;; 12006 *) # Relative path. 12007 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 12008 ac_top_srcdir=$ac_top_builddir$srcdir ;; 12009esac 12010# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 12011# absolute. 12012ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 12013ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` 12014ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 12015ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 12016 12017 12018 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 12019echo "$as_me: executing $ac_dest commands" >&6;} 12020 case $ac_dest in 12021 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 12022 # Strip MF so we end up with the name of the file. 12023 mf=`echo "$mf" | sed -e 's/:.*$//'` 12024 # Check whether this is an Automake generated Makefile or not. 12025 # We used to match only the files named `Makefile.in', but 12026 # some people rename them; so instead we look at the file content. 12027 # Grep'ing the first line is not enough: some people post-process 12028 # each Makefile.in and add a new line on top of each file to say so. 12029 # So let's grep whole file. 12030 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 12031 dirpart=`(dirname "$mf") 2>/dev/null || 12032$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12033 X"$mf" : 'X\(//\)[^/]' \| \ 12034 X"$mf" : 'X\(//\)$' \| \ 12035 X"$mf" : 'X\(/\)' \| \ 12036 . : '\(.\)' 2>/dev/null || 12037echo X"$mf" | 12038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12039 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12040 /^X\(\/\/\)$/{ s//\1/; q; } 12041 /^X\(\/\).*/{ s//\1/; q; } 12042 s/.*/./; q'` 12043 else 12044 continue 12045 fi 12046 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue 12047 # Extract the definition of DEP_FILES from the Makefile without 12048 # running `make'. 12049 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` 12050 test -z "$DEPDIR" && continue 12051 # When using ansi2knr, U may be empty or an underscore; expand it 12052 U=`sed -n -e '/^U = / s///p' < "$mf"` 12053 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 12054 # We invoke sed twice because it is the simplest approach to 12055 # changing $(DEPDIR) to its actual value in the expansion. 12056 for file in `sed -n -e ' 12057 /^DEP_FILES = .*\\\\$/ { 12058 s/^DEP_FILES = // 12059 :loop 12060 s/\\\\$// 12061 p 12062 n 12063 /\\\\$/ b loop 12064 p 12065 } 12066 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 12067 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 12068 # Make sure the directory exists. 12069 test -f "$dirpart/$file" && continue 12070 fdir=`(dirname "$file") 2>/dev/null || 12071$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12072 X"$file" : 'X\(//\)[^/]' \| \ 12073 X"$file" : 'X\(//\)$' \| \ 12074 X"$file" : 'X\(/\)' \| \ 12075 . : '\(.\)' 2>/dev/null || 12076echo X"$file" | 12077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12078 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12079 /^X\(\/\/\)$/{ s//\1/; q; } 12080 /^X\(\/\).*/{ s//\1/; q; } 12081 s/.*/./; q'` 12082 { case $dirpart/$fdir in 12083 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 12084 *) as_incr_dir=.;; 12085esac 12086as_dummy=$dirpart/$fdir 12087for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 12088 case $as_mkdir_dir in 12089 # Skip DOS drivespec 12090 ?:) as_incr_dir=$as_mkdir_dir ;; 12091 *) 12092 as_incr_dir=$as_incr_dir/$as_mkdir_dir 12093 test -d "$as_incr_dir" || 12094 mkdir "$as_incr_dir" || 12095 { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5 12096echo "$as_me: error: cannot create $dirpart/$fdir" >&2;} 12097 { (exit 1); exit 1; }; } 12098 ;; 12099 esac 12100done; } 12101 12102 # echo "creating $dirpart/$file" 12103 echo '# dummy' > "$dirpart/$file" 12104 done 12105done 12106 ;; 12107 esac 12108done 12109_ACEOF 12110 12111cat >>$CONFIG_STATUS <<\_ACEOF 12112 12113{ (exit 0); exit 0; } 12114_ACEOF 12115chmod +x $CONFIG_STATUS 12116ac_clean_files=$ac_clean_files_save 12117 12118 12119# configure is writing to config.log, and then calls config.status. 12120# config.status does its own redirection, appending to config.log. 12121# Unfortunately, on DOS this fails, as config.log is still kept open 12122# by configure, so config.status won't be able to write to it; its 12123# output is simply discarded. So we exec the FD to /dev/null, 12124# effectively closing config.log, so it can be properly (re)opened and 12125# appended to by config.status. When coming back to configure, we 12126# need to make the FD available again. 12127if test "$no_create" != yes; then 12128 ac_cs_success=: 12129 exec 5>/dev/null 12130 $SHELL $CONFIG_STATUS || ac_cs_success=false 12131 exec 5>>config.log 12132 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12133 # would make configure fail if this is the last instruction. 12134 $ac_cs_success || { (exit 1); exit 1; } 12135fi 12136 12137