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/a52dec.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 --enable-maintainer-mode enable make rules and dependencies not useful 994 (and sometimes confusing) to the casual installer 995 --enable-shared=PKGS build shared libraries default=no 996 --enable-static=PKGS build static libraries default=yes 997 --enable-fast-install=PKGS optimize for fast installation default=yes 998 --disable-libtool-lock avoid locking (might break parallel builds) 999 --enable-double use double-precision samples 1000 --enable-djbfft make a version using djbfft 1001 --disable-oss make a version not using oss 1002 --disable-solaris-audio make a version not using solaris audio 1003 --disable-al-audio make a version not using al audio 1004 --disable-win make a version not using win audio 1005 --enable-warnings treat warnings as errors 1006 --enable-gprof make a version using gprof 1007 1008Optional Packages: 1009 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1010 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1011 --with-gnu-ld assume the C compiler uses GNU ld default=no 1012 --with-pic try to use only PIC/non-PIC objects default=use both 1013 1014Some influential environment variables: 1015 CC C compiler command 1016 CFLAGS C compiler flags 1017 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1018 nonstandard directory <lib dir> 1019 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1020 headers in a nonstandard directory <include dir> 1021 CPP C preprocessor 1022 1023Use these variables to override the choices made by `configure' or to help 1024it to find libraries and programs with nonstandard names/locations. 1025 1026_ACEOF 1027fi 1028 1029if test "$ac_init_help" = "recursive"; then 1030 # If there are subdirs, report their specific --help. 1031 ac_popdir=`pwd` 1032 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1033 test -d $ac_dir || continue 1034 ac_builddir=. 1035 1036if test "$ac_dir" != .; then 1037 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1038 # A "../" for each directory in $ac_dir_suffix. 1039 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1040else 1041 ac_dir_suffix= ac_top_builddir= 1042fi 1043 1044case $srcdir in 1045 .) # No --srcdir option. We are building in place. 1046 ac_srcdir=. 1047 if test -z "$ac_top_builddir"; then 1048 ac_top_srcdir=. 1049 else 1050 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1051 fi ;; 1052 [\\/]* | ?:[\\/]* ) # Absolute path. 1053 ac_srcdir=$srcdir$ac_dir_suffix; 1054 ac_top_srcdir=$srcdir ;; 1055 *) # Relative path. 1056 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1057 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1058esac 1059# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 1060# absolute. 1061ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 1062ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` 1063ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 1064ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 1065 1066 cd $ac_dir 1067 # Check for guested configure; otherwise get Cygnus style configure. 1068 if test -f $ac_srcdir/configure.gnu; then 1069 echo 1070 $SHELL $ac_srcdir/configure.gnu --help=recursive 1071 elif test -f $ac_srcdir/configure; then 1072 echo 1073 $SHELL $ac_srcdir/configure --help=recursive 1074 elif test -f $ac_srcdir/configure.ac || 1075 test -f $ac_srcdir/configure.in; then 1076 echo 1077 $ac_configure --help 1078 else 1079 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1080 fi 1081 cd $ac_popdir 1082 done 1083fi 1084 1085test -n "$ac_init_help" && exit 0 1086if $ac_init_version; then 1087 cat <<\_ACEOF 1088 1089Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 1090Free Software Foundation, Inc. 1091This configure script is free software; the Free Software Foundation 1092gives unlimited permission to copy, distribute and modify it. 1093_ACEOF 1094 exit 0 1095fi 1096exec 5>config.log 1097cat >&5 <<_ACEOF 1098This file contains any messages produced by compilers while 1099running configure, to aid debugging if configure makes a mistake. 1100 1101It was created by $as_me, which was 1102generated by GNU Autoconf 2.53. Invocation command line was 1103 1104 $ $0 $@ 1105 1106_ACEOF 1107{ 1108cat <<_ASUNAME 1109## --------- ## 1110## Platform. ## 1111## --------- ## 1112 1113hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1114uname -m = `(uname -m) 2>/dev/null || echo unknown` 1115uname -r = `(uname -r) 2>/dev/null || echo unknown` 1116uname -s = `(uname -s) 2>/dev/null || echo unknown` 1117uname -v = `(uname -v) 2>/dev/null || echo unknown` 1118 1119/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1120/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1121 1122/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1123/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1124/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1125hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1126/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1127/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1128/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1129 1130_ASUNAME 1131 1132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1133for as_dir in $PATH 1134do 1135 IFS=$as_save_IFS 1136 test -z "$as_dir" && as_dir=. 1137 echo "PATH: $as_dir" 1138done 1139 1140} >&5 1141 1142cat >&5 <<_ACEOF 1143 1144 1145## ----------- ## 1146## Core tests. ## 1147## ----------- ## 1148 1149_ACEOF 1150 1151 1152# Keep a trace of the command line. 1153# Strip out --no-create and --no-recursion so they do not pile up. 1154# Also quote any args containing shell meta-characters. 1155ac_configure_args= 1156ac_sep= 1157for ac_arg 1158do 1159 case $ac_arg in 1160 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1161 | --no-cr | --no-c | -n ) continue ;; 1162 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1163 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1164 continue ;; 1165 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1166 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1167 esac 1168 case " $ac_configure_args " in 1169 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1170 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1171 ac_sep=" " ;; 1172 esac 1173 # Get rid of the leading space. 1174done 1175 1176# When interrupted or exit'd, cleanup temporary files, and complete 1177# config.log. We remove comments because anyway the quotes in there 1178# would cause problems or look ugly. 1179# WARNING: Be sure not to use single quotes in there, as some shells, 1180# such as our DU 5.0 friend, will then `close' the trap. 1181trap 'exit_status=$? 1182 # Save into config.log some information that might help in debugging. 1183 { 1184 echo 1185 cat <<\_ASBOX 1186## ---------------- ## 1187## Cache variables. ## 1188## ---------------- ## 1189_ASBOX 1190 echo 1191 # The following way of writing the cache mishandles newlines in values, 1192{ 1193 (set) 2>&1 | 1194 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1195 *ac_space=\ *) 1196 sed -n \ 1197 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1198 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1199 ;; 1200 *) 1201 sed -n \ 1202 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1203 ;; 1204 esac; 1205} 1206 echo 1207 if test -s confdefs.h; then 1208 cat <<\_ASBOX 1209## ----------- ## 1210## confdefs.h. ## 1211## ----------- ## 1212_ASBOX 1213 echo 1214 sed "/^$/d" confdefs.h 1215 echo 1216 fi 1217 test "$ac_signal" != 0 && 1218 echo "$as_me: caught signal $ac_signal" 1219 echo "$as_me: exit $exit_status" 1220 } >&5 1221 rm -f core core.* *.core && 1222 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1223 exit $exit_status 1224 ' 0 1225for ac_signal in 1 2 13 15; do 1226 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1227done 1228ac_signal=0 1229 1230# confdefs.h avoids OS command line length limits that DEFS can exceed. 1231rm -rf conftest* confdefs.h 1232# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1233echo >confdefs.h 1234 1235# Predefined preprocessor variables. 1236 1237cat >>confdefs.h <<_ACEOF 1238#define PACKAGE_NAME "$PACKAGE_NAME" 1239_ACEOF 1240 1241 1242cat >>confdefs.h <<_ACEOF 1243#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1244_ACEOF 1245 1246 1247cat >>confdefs.h <<_ACEOF 1248#define PACKAGE_VERSION "$PACKAGE_VERSION" 1249_ACEOF 1250 1251 1252cat >>confdefs.h <<_ACEOF 1253#define PACKAGE_STRING "$PACKAGE_STRING" 1254_ACEOF 1255 1256 1257cat >>confdefs.h <<_ACEOF 1258#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1259_ACEOF 1260 1261 1262# Let the site file select an alternate cache file if it wants to. 1263# Prefer explicitly selected file to automatically selected ones. 1264if test -z "$CONFIG_SITE"; then 1265 if test "x$prefix" != xNONE; then 1266 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1267 else 1268 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1269 fi 1270fi 1271for ac_site_file in $CONFIG_SITE; do 1272 if test -r "$ac_site_file"; then 1273 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1274echo "$as_me: loading site script $ac_site_file" >&6;} 1275 sed 's/^/| /' "$ac_site_file" >&5 1276 . "$ac_site_file" 1277 fi 1278done 1279 1280if test -r "$cache_file"; then 1281 # Some versions of bash will fail to source /dev/null (special 1282 # files actually), so we avoid doing that. 1283 if test -f "$cache_file"; then 1284 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1285echo "$as_me: loading cache $cache_file" >&6;} 1286 case $cache_file in 1287 [\\/]* | ?:[\\/]* ) . $cache_file;; 1288 *) . ./$cache_file;; 1289 esac 1290 fi 1291else 1292 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1293echo "$as_me: creating cache $cache_file" >&6;} 1294 >$cache_file 1295fi 1296 1297# Check that the precious variables saved in the cache have kept the same 1298# value. 1299ac_cache_corrupted=false 1300for ac_var in `(set) 2>&1 | 1301 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1302 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1303 eval ac_new_set=\$ac_env_${ac_var}_set 1304 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1305 eval ac_new_val="\$ac_env_${ac_var}_value" 1306 case $ac_old_set,$ac_new_set in 1307 set,) 1308 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1309echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1310 ac_cache_corrupted=: ;; 1311 ,set) 1312 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1313echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1314 ac_cache_corrupted=: ;; 1315 ,);; 1316 *) 1317 if test "x$ac_old_val" != "x$ac_new_val"; then 1318 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1319echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1320 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1321echo "$as_me: former value: $ac_old_val" >&2;} 1322 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1323echo "$as_me: current value: $ac_new_val" >&2;} 1324 ac_cache_corrupted=: 1325 fi;; 1326 esac 1327 # Pass precious variables to config.status. 1328 if test "$ac_new_set" = set; then 1329 case $ac_new_val in 1330 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1331 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1332 *) ac_arg=$ac_var=$ac_new_val ;; 1333 esac 1334 case " $ac_configure_args " in 1335 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1336 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1337 esac 1338 fi 1339done 1340if $ac_cache_corrupted; then 1341 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1342echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1343 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1344echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1345 { (exit 1); exit 1; }; } 1346fi 1347 1348ac_ext=c 1349ac_cpp='$CPP $CPPFLAGS' 1350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1352ac_compiler_gnu=$ac_cv_c_compiler_gnu 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372ac_aux_dir= 1373for ac_dir in autotools $srcdir/autotools; do 1374 if test -f $ac_dir/install-sh; then 1375 ac_aux_dir=$ac_dir 1376 ac_install_sh="$ac_aux_dir/install-sh -c" 1377 break 1378 elif test -f $ac_dir/install.sh; then 1379 ac_aux_dir=$ac_dir 1380 ac_install_sh="$ac_aux_dir/install.sh -c" 1381 break 1382 elif test -f $ac_dir/shtool; then 1383 ac_aux_dir=$ac_dir 1384 ac_install_sh="$ac_aux_dir/shtool install -c" 1385 break 1386 fi 1387done 1388if test -z "$ac_aux_dir"; then 1389 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autotools $srcdir/autotools" >&5 1390echo "$as_me: error: cannot find install-sh or install.sh in autotools $srcdir/autotools" >&2;} 1391 { (exit 1); exit 1; }; } 1392fi 1393ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1394ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1395ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1396 1397ac_config_files="$ac_config_files Makefile autotools/Makefile include/Makefile test/Makefile doc/Makefile src/Makefile liba52/Makefile libao/Makefile vc++/Makefile" 1398 1399# Find a good install program. We prefer a C program (faster), 1400# so one script is as good as another. But avoid the broken or 1401# incompatible versions: 1402# SysV /etc/install, /usr/sbin/install 1403# SunOS /usr/etc/install 1404# IRIX /sbin/install 1405# AIX /bin/install 1406# AmigaOS /C/install, which installs bootblocks on floppy discs 1407# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1408# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1409# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1410# ./install, which can be erroneously created by make from ./install.sh. 1411echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1412echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1413if test -z "$INSTALL"; then 1414if test "${ac_cv_path_install+set}" = set; then 1415 echo $ECHO_N "(cached) $ECHO_C" >&6 1416else 1417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1418for as_dir in $PATH 1419do 1420 IFS=$as_save_IFS 1421 test -z "$as_dir" && as_dir=. 1422 # Account for people who put trailing slashes in PATH elements. 1423case $as_dir/ in 1424 ./ | .// | /cC/* | \ 1425 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1426 /usr/ucb/* ) ;; 1427 *) 1428 # OSF1 and SCO ODT 3.0 have their own names for install. 1429 # Don't use installbsd from OSF since it installs stuff as root 1430 # by default. 1431 for ac_prog in ginstall scoinst install; do 1432 for ac_exec_ext in '' $ac_executable_extensions; do 1433 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1434 if test $ac_prog = install && 1435 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1436 # AIX install. It has an incompatible calling convention. 1437 : 1438 elif test $ac_prog = install && 1439 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1440 # program-specific install script used by HP pwplus--don't use. 1441 : 1442 else 1443 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1444 break 3 1445 fi 1446 fi 1447 done 1448 done 1449 ;; 1450esac 1451done 1452 1453 1454fi 1455 if test "${ac_cv_path_install+set}" = set; then 1456 INSTALL=$ac_cv_path_install 1457 else 1458 # As a last resort, use the slow shell script. We don't cache a 1459 # path for INSTALL within a source directory, because that will 1460 # break other packages using the cache if that directory is 1461 # removed, or if the path is relative. 1462 INSTALL=$ac_install_sh 1463 fi 1464fi 1465echo "$as_me:$LINENO: result: $INSTALL" >&5 1466echo "${ECHO_T}$INSTALL" >&6 1467 1468# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1469# It thinks the first close brace ends the variable substitution. 1470test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1471 1472test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1473 1474test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1475 1476echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1477echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1478# Just in case 1479sleep 1 1480echo timestamp > conftestfile 1481# Do `set' in a subshell so we don't clobber the current shell's 1482# arguments. Must try -L first in case configure is actually a 1483# symlink; some systems play weird games with the mod time of symlinks 1484# (eg FreeBSD returns the mod time of the symlink's containing 1485# directory). 1486if ( 1487 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` 1488 if test "$*" = "X"; then 1489 # -L didn't work. 1490 set X `ls -t $srcdir/configure conftestfile` 1491 fi 1492 if test "$*" != "X $srcdir/configure conftestfile" \ 1493 && test "$*" != "X conftestfile $srcdir/configure"; then 1494 1495 # If neither matched, then we have a broken ls. This can happen 1496 # if, for instance, CONFIG_SHELL is bash and it inherits a 1497 # broken ls alias from the environment. This has actually 1498 # happened. Such a system could not be considered "sane". 1499 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1500alias in your environment" >&5 1501echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1502alias in your environment" >&2;} 1503 { (exit 1); exit 1; }; } 1504 fi 1505 1506 test "$2" = conftestfile 1507 ) 1508then 1509 # Ok. 1510 : 1511else 1512 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1513Check your system clock" >&5 1514echo "$as_me: error: newly created file is older than distributed files! 1515Check your system clock" >&2;} 1516 { (exit 1); exit 1; }; } 1517fi 1518rm -f conftest* 1519echo "$as_me:$LINENO: result: yes" >&5 1520echo "${ECHO_T}yes" >&6 1521test "$program_prefix" != NONE && 1522 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1523# Use a double $ so make ignores it. 1524test "$program_suffix" != NONE && 1525 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1526# Double any \ or $. echo might interpret backslashes. 1527# By default was `s,x,x', remove it if useless. 1528cat <<\_ACEOF >conftest.sed 1529s/[\\$]/&&/g;s/;s,x,x,$// 1530_ACEOF 1531program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1532rm conftest.sed 1533 1534echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5 1535echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 1536set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 1537if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1538 echo $ECHO_N "(cached) $ECHO_C" >&6 1539else 1540 cat >conftest.make <<\_ACEOF 1541all: 1542 @echo 'ac_maketemp="${MAKE}"' 1543_ACEOF 1544# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1545eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1546if test -n "$ac_maketemp"; then 1547 eval ac_cv_prog_make_${ac_make}_set=yes 1548else 1549 eval ac_cv_prog_make_${ac_make}_set=no 1550fi 1551rm -f conftest.make 1552fi 1553if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1554 echo "$as_me:$LINENO: result: yes" >&5 1555echo "${ECHO_T}yes" >&6 1556 SET_MAKE= 1557else 1558 echo "$as_me:$LINENO: result: no" >&5 1559echo "${ECHO_T}no" >&6 1560 SET_MAKE="MAKE=${MAKE-make}" 1561fi 1562 1563 1564PACKAGE=a52dec 1565 1566VERSION=0.7.4 1567 1568if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then 1569 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1570echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1571 { (exit 1); exit 1; }; } 1572fi 1573 1574cat >>confdefs.h <<_ACEOF 1575#define PACKAGE "$PACKAGE" 1576_ACEOF 1577 1578 1579cat >>confdefs.h <<_ACEOF 1580#define VERSION "$VERSION" 1581_ACEOF 1582 1583 1584 1585missing_dir=`cd $ac_aux_dir && pwd` 1586echo "$as_me:$LINENO: checking for working aclocal" >&5 1587echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6 1588# Run test in a subshell; some versions of sh will print an error if 1589# an executable is not found, even if stderr is redirected. 1590# Redirect stdin to placate older versions of autoconf. Sigh. 1591if (aclocal --version) < /dev/null > /dev/null 2>&1; then 1592 ACLOCAL=aclocal 1593 echo "$as_me:$LINENO: result: found" >&5 1594echo "${ECHO_T}found" >&6 1595else 1596 ACLOCAL="$missing_dir/missing aclocal" 1597 echo "$as_me:$LINENO: result: missing" >&5 1598echo "${ECHO_T}missing" >&6 1599fi 1600 1601echo "$as_me:$LINENO: checking for working autoconf" >&5 1602echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6 1603# Run test in a subshell; some versions of sh will print an error if 1604# an executable is not found, even if stderr is redirected. 1605# Redirect stdin to placate older versions of autoconf. Sigh. 1606if (autoconf --version) < /dev/null > /dev/null 2>&1; then 1607 AUTOCONF=autoconf 1608 echo "$as_me:$LINENO: result: found" >&5 1609echo "${ECHO_T}found" >&6 1610else 1611 AUTOCONF="$missing_dir/missing autoconf" 1612 echo "$as_me:$LINENO: result: missing" >&5 1613echo "${ECHO_T}missing" >&6 1614fi 1615 1616echo "$as_me:$LINENO: checking for working automake" >&5 1617echo $ECHO_N "checking for working automake... $ECHO_C" >&6 1618# Run test in a subshell; some versions of sh will print an error if 1619# an executable is not found, even if stderr is redirected. 1620# Redirect stdin to placate older versions of autoconf. Sigh. 1621if (automake --version) < /dev/null > /dev/null 2>&1; then 1622 AUTOMAKE=automake 1623 echo "$as_me:$LINENO: result: found" >&5 1624echo "${ECHO_T}found" >&6 1625else 1626 AUTOMAKE="$missing_dir/missing automake" 1627 echo "$as_me:$LINENO: result: missing" >&5 1628echo "${ECHO_T}missing" >&6 1629fi 1630 1631echo "$as_me:$LINENO: checking for working autoheader" >&5 1632echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6 1633# Run test in a subshell; some versions of sh will print an error if 1634# an executable is not found, even if stderr is redirected. 1635# Redirect stdin to placate older versions of autoconf. Sigh. 1636if (autoheader --version) < /dev/null > /dev/null 2>&1; then 1637 AUTOHEADER=autoheader 1638 echo "$as_me:$LINENO: result: found" >&5 1639echo "${ECHO_T}found" >&6 1640else 1641 AUTOHEADER="$missing_dir/missing autoheader" 1642 echo "$as_me:$LINENO: result: missing" >&5 1643echo "${ECHO_T}missing" >&6 1644fi 1645 1646echo "$as_me:$LINENO: checking for working makeinfo" >&5 1647echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6 1648# Run test in a subshell; some versions of sh will print an error if 1649# an executable is not found, even if stderr is redirected. 1650# Redirect stdin to placate older versions of autoconf. Sigh. 1651if (makeinfo --version) < /dev/null > /dev/null 2>&1; then 1652 MAKEINFO=makeinfo 1653 echo "$as_me:$LINENO: result: found" >&5 1654echo "${ECHO_T}found" >&6 1655else 1656 MAKEINFO="$missing_dir/missing makeinfo" 1657 echo "$as_me:$LINENO: result: missing" >&5 1658echo "${ECHO_T}missing" >&6 1659fi 1660 1661 1662 1663ac_config_headers="$ac_config_headers include/config.h" 1664 1665ac_config_commands="$ac_config_commands default-1" 1666 1667echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 1668echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 1669 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 1670if test "${enable_maintainer_mode+set}" = set; then 1671 enableval="$enable_maintainer_mode" 1672 USE_MAINTAINER_MODE=$enableval 1673else 1674 USE_MAINTAINER_MODE=no 1675fi; 1676 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 1677echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 1678 1679 1680if test $USE_MAINTAINER_MODE = yes; then 1681 MAINTAINER_MODE_TRUE= 1682 MAINTAINER_MODE_FALSE='#' 1683else 1684 MAINTAINER_MODE_TRUE='#' 1685 MAINTAINER_MODE_FALSE= 1686fi 1687 MAINT=$MAINTAINER_MODE_TRUE 1688 1689 1690# Make sure we can run config.sub. 1691$ac_config_sub sun4 >/dev/null 2>&1 || 1692 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1693echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1694 { (exit 1); exit 1; }; } 1695 1696echo "$as_me:$LINENO: checking build system type" >&5 1697echo $ECHO_N "checking build system type... $ECHO_C" >&6 1698if test "${ac_cv_build+set}" = set; then 1699 echo $ECHO_N "(cached) $ECHO_C" >&6 1700else 1701 ac_cv_build_alias=$build_alias 1702test -z "$ac_cv_build_alias" && 1703 ac_cv_build_alias=`$ac_config_guess` 1704test -z "$ac_cv_build_alias" && 1705 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1706echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1707 { (exit 1); exit 1; }; } 1708ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1709 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1710echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1711 { (exit 1); exit 1; }; } 1712 1713fi 1714echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1715echo "${ECHO_T}$ac_cv_build" >&6 1716build=$ac_cv_build 1717build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1718build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1719build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1720 1721 1722echo "$as_me:$LINENO: checking host system type" >&5 1723echo $ECHO_N "checking host system type... $ECHO_C" >&6 1724if test "${ac_cv_host+set}" = set; then 1725 echo $ECHO_N "(cached) $ECHO_C" >&6 1726else 1727 ac_cv_host_alias=$host_alias 1728test -z "$ac_cv_host_alias" && 1729 ac_cv_host_alias=$ac_cv_build_alias 1730ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1731 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1732echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1733 { (exit 1); exit 1; }; } 1734 1735fi 1736echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1737echo "${ECHO_T}$ac_cv_host" >&6 1738host=$ac_cv_host 1739host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1740host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1741host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1742 1743 1744 1745ac_ext=c 1746ac_cpp='$CPP $CPPFLAGS' 1747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1749ac_compiler_gnu=$ac_cv_c_compiler_gnu 1750if test -n "$ac_tool_prefix"; then 1751 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1752set dummy ${ac_tool_prefix}gcc; ac_word=$2 1753echo "$as_me:$LINENO: checking for $ac_word" >&5 1754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1755if test "${ac_cv_prog_CC+set}" = set; then 1756 echo $ECHO_N "(cached) $ECHO_C" >&6 1757else 1758 if test -n "$CC"; then 1759 ac_cv_prog_CC="$CC" # Let the user override the test. 1760else 1761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1762for as_dir in $PATH 1763do 1764 IFS=$as_save_IFS 1765 test -z "$as_dir" && as_dir=. 1766 for ac_exec_ext in '' $ac_executable_extensions; do 1767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1768 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1770 break 2 1771 fi 1772done 1773done 1774 1775fi 1776fi 1777CC=$ac_cv_prog_CC 1778if test -n "$CC"; then 1779 echo "$as_me:$LINENO: result: $CC" >&5 1780echo "${ECHO_T}$CC" >&6 1781else 1782 echo "$as_me:$LINENO: result: no" >&5 1783echo "${ECHO_T}no" >&6 1784fi 1785 1786fi 1787if test -z "$ac_cv_prog_CC"; then 1788 ac_ct_CC=$CC 1789 # Extract the first word of "gcc", so it can be a program name with args. 1790set dummy gcc; ac_word=$2 1791echo "$as_me:$LINENO: checking for $ac_word" >&5 1792echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1793if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1794 echo $ECHO_N "(cached) $ECHO_C" >&6 1795else 1796 if test -n "$ac_ct_CC"; then 1797 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1798else 1799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1800for as_dir in $PATH 1801do 1802 IFS=$as_save_IFS 1803 test -z "$as_dir" && as_dir=. 1804 for ac_exec_ext in '' $ac_executable_extensions; do 1805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1806 ac_cv_prog_ac_ct_CC="gcc" 1807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1808 break 2 1809 fi 1810done 1811done 1812 1813fi 1814fi 1815ac_ct_CC=$ac_cv_prog_ac_ct_CC 1816if test -n "$ac_ct_CC"; then 1817 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1818echo "${ECHO_T}$ac_ct_CC" >&6 1819else 1820 echo "$as_me:$LINENO: result: no" >&5 1821echo "${ECHO_T}no" >&6 1822fi 1823 1824 CC=$ac_ct_CC 1825else 1826 CC="$ac_cv_prog_CC" 1827fi 1828 1829if test -z "$CC"; then 1830 if test -n "$ac_tool_prefix"; then 1831 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1832set dummy ${ac_tool_prefix}cc; ac_word=$2 1833echo "$as_me:$LINENO: checking for $ac_word" >&5 1834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1835if test "${ac_cv_prog_CC+set}" = set; then 1836 echo $ECHO_N "(cached) $ECHO_C" >&6 1837else 1838 if test -n "$CC"; then 1839 ac_cv_prog_CC="$CC" # Let the user override the test. 1840else 1841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1842for as_dir in $PATH 1843do 1844 IFS=$as_save_IFS 1845 test -z "$as_dir" && as_dir=. 1846 for ac_exec_ext in '' $ac_executable_extensions; do 1847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1848 ac_cv_prog_CC="${ac_tool_prefix}cc" 1849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1850 break 2 1851 fi 1852done 1853done 1854 1855fi 1856fi 1857CC=$ac_cv_prog_CC 1858if test -n "$CC"; then 1859 echo "$as_me:$LINENO: result: $CC" >&5 1860echo "${ECHO_T}$CC" >&6 1861else 1862 echo "$as_me:$LINENO: result: no" >&5 1863echo "${ECHO_T}no" >&6 1864fi 1865 1866fi 1867if test -z "$ac_cv_prog_CC"; then 1868 ac_ct_CC=$CC 1869 # Extract the first word of "cc", so it can be a program name with args. 1870set dummy cc; ac_word=$2 1871echo "$as_me:$LINENO: checking for $ac_word" >&5 1872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1873if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1874 echo $ECHO_N "(cached) $ECHO_C" >&6 1875else 1876 if test -n "$ac_ct_CC"; then 1877 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1878else 1879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1880for as_dir in $PATH 1881do 1882 IFS=$as_save_IFS 1883 test -z "$as_dir" && as_dir=. 1884 for ac_exec_ext in '' $ac_executable_extensions; do 1885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1886 ac_cv_prog_ac_ct_CC="cc" 1887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1888 break 2 1889 fi 1890done 1891done 1892 1893fi 1894fi 1895ac_ct_CC=$ac_cv_prog_ac_ct_CC 1896if test -n "$ac_ct_CC"; then 1897 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1898echo "${ECHO_T}$ac_ct_CC" >&6 1899else 1900 echo "$as_me:$LINENO: result: no" >&5 1901echo "${ECHO_T}no" >&6 1902fi 1903 1904 CC=$ac_ct_CC 1905else 1906 CC="$ac_cv_prog_CC" 1907fi 1908 1909fi 1910if test -z "$CC"; then 1911 # Extract the first word of "cc", so it can be a program name with args. 1912set dummy cc; ac_word=$2 1913echo "$as_me:$LINENO: checking for $ac_word" >&5 1914echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1915if test "${ac_cv_prog_CC+set}" = set; then 1916 echo $ECHO_N "(cached) $ECHO_C" >&6 1917else 1918 if test -n "$CC"; then 1919 ac_cv_prog_CC="$CC" # Let the user override the test. 1920else 1921 ac_prog_rejected=no 1922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1923for as_dir in $PATH 1924do 1925 IFS=$as_save_IFS 1926 test -z "$as_dir" && as_dir=. 1927 for ac_exec_ext in '' $ac_executable_extensions; do 1928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1929 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1930 ac_prog_rejected=yes 1931 continue 1932 fi 1933 ac_cv_prog_CC="cc" 1934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1935 break 2 1936 fi 1937done 1938done 1939 1940if test $ac_prog_rejected = yes; then 1941 # We found a bogon in the path, so make sure we never use it. 1942 set dummy $ac_cv_prog_CC 1943 shift 1944 if test $# != 0; then 1945 # We chose a different compiler from the bogus one. 1946 # However, it has the same basename, so the bogon will be chosen 1947 # first if we set CC to just the basename; use the full file name. 1948 shift 1949 set dummy "$as_dir/$ac_word" ${1+"$@"} 1950 shift 1951 ac_cv_prog_CC="$@" 1952 fi 1953fi 1954fi 1955fi 1956CC=$ac_cv_prog_CC 1957if test -n "$CC"; then 1958 echo "$as_me:$LINENO: result: $CC" >&5 1959echo "${ECHO_T}$CC" >&6 1960else 1961 echo "$as_me:$LINENO: result: no" >&5 1962echo "${ECHO_T}no" >&6 1963fi 1964 1965fi 1966if test -z "$CC"; then 1967 if test -n "$ac_tool_prefix"; then 1968 for ac_prog in cl 1969 do 1970 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1971set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1972echo "$as_me:$LINENO: checking for $ac_word" >&5 1973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1974if test "${ac_cv_prog_CC+set}" = set; then 1975 echo $ECHO_N "(cached) $ECHO_C" >&6 1976else 1977 if test -n "$CC"; then 1978 ac_cv_prog_CC="$CC" # Let the user override the test. 1979else 1980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1981for as_dir in $PATH 1982do 1983 IFS=$as_save_IFS 1984 test -z "$as_dir" && as_dir=. 1985 for ac_exec_ext in '' $ac_executable_extensions; do 1986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1987 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1989 break 2 1990 fi 1991done 1992done 1993 1994fi 1995fi 1996CC=$ac_cv_prog_CC 1997if test -n "$CC"; then 1998 echo "$as_me:$LINENO: result: $CC" >&5 1999echo "${ECHO_T}$CC" >&6 2000else 2001 echo "$as_me:$LINENO: result: no" >&5 2002echo "${ECHO_T}no" >&6 2003fi 2004 2005 test -n "$CC" && break 2006 done 2007fi 2008if test -z "$CC"; then 2009 ac_ct_CC=$CC 2010 for ac_prog in cl 2011do 2012 # Extract the first word of "$ac_prog", so it can be a program name with args. 2013set dummy $ac_prog; ac_word=$2 2014echo "$as_me:$LINENO: checking for $ac_word" >&5 2015echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2016if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2017 echo $ECHO_N "(cached) $ECHO_C" >&6 2018else 2019 if test -n "$ac_ct_CC"; then 2020 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2021else 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 ac_cv_prog_ac_ct_CC="$ac_prog" 2030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2031 break 2 2032 fi 2033done 2034done 2035 2036fi 2037fi 2038ac_ct_CC=$ac_cv_prog_ac_ct_CC 2039if test -n "$ac_ct_CC"; then 2040 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2041echo "${ECHO_T}$ac_ct_CC" >&6 2042else 2043 echo "$as_me:$LINENO: result: no" >&5 2044echo "${ECHO_T}no" >&6 2045fi 2046 2047 test -n "$ac_ct_CC" && break 2048done 2049 2050 CC=$ac_ct_CC 2051fi 2052 2053fi 2054 2055 2056test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 2057echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} 2058 { (exit 1); exit 1; }; } 2059 2060# Provide some information about the compiler. 2061echo "$as_me:$LINENO:" \ 2062 "checking for C compiler version" >&5 2063ac_compiler=`set X $ac_compile; echo $2` 2064{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2065 (eval $ac_compiler --version </dev/null >&5) 2>&5 2066 ac_status=$? 2067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2068 (exit $ac_status); } 2069{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2070 (eval $ac_compiler -v </dev/null >&5) 2>&5 2071 ac_status=$? 2072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2073 (exit $ac_status); } 2074{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2075 (eval $ac_compiler -V </dev/null >&5) 2>&5 2076 ac_status=$? 2077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2078 (exit $ac_status); } 2079 2080cat >conftest.$ac_ext <<_ACEOF 2081#line $LINENO "configure" 2082#include "confdefs.h" 2083 2084#ifdef F77_DUMMY_MAIN 2085# ifdef __cplusplus 2086 extern "C" 2087# endif 2088 int F77_DUMMY_MAIN() { return 1; } 2089#endif 2090int 2091main () 2092{ 2093 2094 ; 2095 return 0; 2096} 2097_ACEOF 2098ac_clean_files_save=$ac_clean_files 2099ac_clean_files="$ac_clean_files a.out a.exe" 2100# Try to create an executable without -o first, disregard a.out. 2101# It will help us diagnose broken compilers, and finding out an intuition 2102# of exeext. 2103echo "$as_me:$LINENO: checking for C compiler default output" >&5 2104echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 2105ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2106if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2107 (eval $ac_link_default) 2>&5 2108 ac_status=$? 2109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2110 (exit $ac_status); }; then 2111 # Find the output, starting from the most likely. This scheme is 2112# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2113# resort. 2114 2115# Be careful to initialize this variable, since it used to be cached. 2116# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2117ac_cv_exeext= 2118for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; 2119 ls a.out conftest 2>/dev/null; 2120 ls a.* conftest.* 2>/dev/null`; do 2121 case $ac_file in 2122 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; 2123 a.out ) # We found the default executable, but exeext='' is most 2124 # certainly right. 2125 break;; 2126 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2127 # FIXME: I believe we export ac_cv_exeext for Libtool --akim. 2128 export ac_cv_exeext 2129 break;; 2130 * ) break;; 2131 esac 2132done 2133else 2134 echo "$as_me: failed program was:" >&5 2135cat conftest.$ac_ext >&5 2136{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5 2137echo "$as_me: error: C compiler cannot create executables" >&2;} 2138 { (exit 77); exit 77; }; } 2139fi 2140 2141ac_exeext=$ac_cv_exeext 2142echo "$as_me:$LINENO: result: $ac_file" >&5 2143echo "${ECHO_T}$ac_file" >&6 2144 2145# Check the compiler produces executables we can run. If not, either 2146# the compiler is broken, or we cross compile. 2147echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2148echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2149# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2150# If not cross compiling, check that we can run a simple program. 2151if test "$cross_compiling" != yes; then 2152 if { ac_try='./$ac_file' 2153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2154 (eval $ac_try) 2>&5 2155 ac_status=$? 2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2157 (exit $ac_status); }; }; then 2158 cross_compiling=no 2159 else 2160 if test "$cross_compiling" = maybe; then 2161 cross_compiling=yes 2162 else 2163 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2164If you meant to cross compile, use \`--host'." >&5 2165echo "$as_me: error: cannot run C compiled programs. 2166If you meant to cross compile, use \`--host'." >&2;} 2167 { (exit 1); exit 1; }; } 2168 fi 2169 fi 2170fi 2171echo "$as_me:$LINENO: result: yes" >&5 2172echo "${ECHO_T}yes" >&6 2173 2174rm -f a.out a.exe conftest$ac_cv_exeext 2175ac_clean_files=$ac_clean_files_save 2176# Check the compiler produces executables we can run. If not, either 2177# the compiler is broken, or we cross compile. 2178echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2179echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2180echo "$as_me:$LINENO: result: $cross_compiling" >&5 2181echo "${ECHO_T}$cross_compiling" >&6 2182 2183echo "$as_me:$LINENO: checking for suffix of executables" >&5 2184echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2186 (eval $ac_link) 2>&5 2187 ac_status=$? 2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2189 (exit $ac_status); }; then 2190 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2191# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2192# work properly (i.e., refer to `conftest.exe'), while it won't with 2193# `rm'. 2194for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do 2195 case $ac_file in 2196 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; 2197 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2198 export ac_cv_exeext 2199 break;; 2200 * ) break;; 2201 esac 2202done 2203else 2204 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 2205echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} 2206 { (exit 1); exit 1; }; } 2207fi 2208 2209rm -f conftest$ac_cv_exeext 2210echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2211echo "${ECHO_T}$ac_cv_exeext" >&6 2212 2213rm -f conftest.$ac_ext 2214EXEEXT=$ac_cv_exeext 2215ac_exeext=$EXEEXT 2216echo "$as_me:$LINENO: checking for suffix of object files" >&5 2217echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2218if test "${ac_cv_objext+set}" = set; then 2219 echo $ECHO_N "(cached) $ECHO_C" >&6 2220else 2221 cat >conftest.$ac_ext <<_ACEOF 2222#line $LINENO "configure" 2223#include "confdefs.h" 2224 2225#ifdef F77_DUMMY_MAIN 2226# ifdef __cplusplus 2227 extern "C" 2228# endif 2229 int F77_DUMMY_MAIN() { return 1; } 2230#endif 2231int 2232main () 2233{ 2234 2235 ; 2236 return 0; 2237} 2238_ACEOF 2239rm -f conftest.o conftest.obj 2240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2241 (eval $ac_compile) 2>&5 2242 ac_status=$? 2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2244 (exit $ac_status); }; then 2245 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2246 case $ac_file in 2247 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; 2248 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2249 break;; 2250 esac 2251done 2252else 2253 echo "$as_me: failed program was:" >&5 2254cat conftest.$ac_ext >&5 2255{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 2256echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} 2257 { (exit 1); exit 1; }; } 2258fi 2259 2260rm -f conftest.$ac_cv_objext conftest.$ac_ext 2261fi 2262echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2263echo "${ECHO_T}$ac_cv_objext" >&6 2264OBJEXT=$ac_cv_objext 2265ac_objext=$OBJEXT 2266echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2267echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2268if test "${ac_cv_c_compiler_gnu+set}" = set; then 2269 echo $ECHO_N "(cached) $ECHO_C" >&6 2270else 2271 cat >conftest.$ac_ext <<_ACEOF 2272#line $LINENO "configure" 2273#include "confdefs.h" 2274 2275#ifdef F77_DUMMY_MAIN 2276# ifdef __cplusplus 2277 extern "C" 2278# endif 2279 int F77_DUMMY_MAIN() { return 1; } 2280#endif 2281int 2282main () 2283{ 2284#ifndef __GNUC__ 2285 choke me 2286#endif 2287 2288 ; 2289 return 0; 2290} 2291_ACEOF 2292rm -f conftest.$ac_objext 2293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2294 (eval $ac_compile) 2>&5 2295 ac_status=$? 2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2297 (exit $ac_status); } && 2298 { ac_try='test -s conftest.$ac_objext' 2299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2300 (eval $ac_try) 2>&5 2301 ac_status=$? 2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2303 (exit $ac_status); }; }; then 2304 ac_compiler_gnu=yes 2305else 2306 echo "$as_me: failed program was:" >&5 2307cat conftest.$ac_ext >&5 2308ac_compiler_gnu=no 2309fi 2310rm -f conftest.$ac_objext conftest.$ac_ext 2311ac_cv_c_compiler_gnu=$ac_compiler_gnu 2312 2313fi 2314echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2315echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2316GCC=`test $ac_compiler_gnu = yes && echo yes` 2317ac_test_CFLAGS=${CFLAGS+set} 2318ac_save_CFLAGS=$CFLAGS 2319CFLAGS="-g" 2320echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2321echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2322if test "${ac_cv_prog_cc_g+set}" = set; then 2323 echo $ECHO_N "(cached) $ECHO_C" >&6 2324else 2325 cat >conftest.$ac_ext <<_ACEOF 2326#line $LINENO "configure" 2327#include "confdefs.h" 2328 2329#ifdef F77_DUMMY_MAIN 2330# ifdef __cplusplus 2331 extern "C" 2332# endif 2333 int F77_DUMMY_MAIN() { return 1; } 2334#endif 2335int 2336main () 2337{ 2338 2339 ; 2340 return 0; 2341} 2342_ACEOF 2343rm -f conftest.$ac_objext 2344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2345 (eval $ac_compile) 2>&5 2346 ac_status=$? 2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2348 (exit $ac_status); } && 2349 { ac_try='test -s conftest.$ac_objext' 2350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2351 (eval $ac_try) 2>&5 2352 ac_status=$? 2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2354 (exit $ac_status); }; }; then 2355 ac_cv_prog_cc_g=yes 2356else 2357 echo "$as_me: failed program was:" >&5 2358cat conftest.$ac_ext >&5 2359ac_cv_prog_cc_g=no 2360fi 2361rm -f conftest.$ac_objext conftest.$ac_ext 2362fi 2363echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2364echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2365if test "$ac_test_CFLAGS" = set; then 2366 CFLAGS=$ac_save_CFLAGS 2367elif test $ac_cv_prog_cc_g = yes; then 2368 if test "$GCC" = yes; then 2369 CFLAGS="-g -O2" 2370 else 2371 CFLAGS="-g" 2372 fi 2373else 2374 if test "$GCC" = yes; then 2375 CFLAGS="-O2" 2376 else 2377 CFLAGS= 2378 fi 2379fi 2380# Some people use a C++ compiler to compile C. Since we use `exit', 2381# in C++ we need to declare it. In case someone uses the same compiler 2382# for both compiling C and C++ we need to have the C++ compiler decide 2383# the declaration of exit, since it's the most demanding environment. 2384cat >conftest.$ac_ext <<_ACEOF 2385#ifndef __cplusplus 2386 choke me 2387#endif 2388_ACEOF 2389rm -f conftest.$ac_objext 2390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2391 (eval $ac_compile) 2>&5 2392 ac_status=$? 2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2394 (exit $ac_status); } && 2395 { ac_try='test -s conftest.$ac_objext' 2396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2397 (eval $ac_try) 2>&5 2398 ac_status=$? 2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2400 (exit $ac_status); }; }; then 2401 for ac_declaration in \ 2402 ''\ 2403 '#include <stdlib.h>' \ 2404 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2405 'extern "C" void std::exit (int); using std::exit;' \ 2406 'extern "C" void exit (int) throw ();' \ 2407 'extern "C" void exit (int);' \ 2408 'void exit (int);' 2409do 2410 cat >conftest.$ac_ext <<_ACEOF 2411#line $LINENO "configure" 2412#include "confdefs.h" 2413#include <stdlib.h> 2414$ac_declaration 2415#ifdef F77_DUMMY_MAIN 2416# ifdef __cplusplus 2417 extern "C" 2418# endif 2419 int F77_DUMMY_MAIN() { return 1; } 2420#endif 2421int 2422main () 2423{ 2424exit (42); 2425 ; 2426 return 0; 2427} 2428_ACEOF 2429rm -f conftest.$ac_objext 2430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2431 (eval $ac_compile) 2>&5 2432 ac_status=$? 2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2434 (exit $ac_status); } && 2435 { ac_try='test -s conftest.$ac_objext' 2436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2437 (eval $ac_try) 2>&5 2438 ac_status=$? 2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2440 (exit $ac_status); }; }; then 2441 : 2442else 2443 echo "$as_me: failed program was:" >&5 2444cat conftest.$ac_ext >&5 2445continue 2446fi 2447rm -f conftest.$ac_objext conftest.$ac_ext 2448 cat >conftest.$ac_ext <<_ACEOF 2449#line $LINENO "configure" 2450#include "confdefs.h" 2451$ac_declaration 2452#ifdef F77_DUMMY_MAIN 2453# ifdef __cplusplus 2454 extern "C" 2455# endif 2456 int F77_DUMMY_MAIN() { return 1; } 2457#endif 2458int 2459main () 2460{ 2461exit (42); 2462 ; 2463 return 0; 2464} 2465_ACEOF 2466rm -f conftest.$ac_objext 2467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2468 (eval $ac_compile) 2>&5 2469 ac_status=$? 2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2471 (exit $ac_status); } && 2472 { ac_try='test -s conftest.$ac_objext' 2473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2474 (eval $ac_try) 2>&5 2475 ac_status=$? 2476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2477 (exit $ac_status); }; }; then 2478 break 2479else 2480 echo "$as_me: failed program was:" >&5 2481cat conftest.$ac_ext >&5 2482fi 2483rm -f conftest.$ac_objext conftest.$ac_ext 2484done 2485rm -f conftest* 2486if test -n "$ac_declaration"; then 2487 echo '#ifdef __cplusplus' >>confdefs.h 2488 echo $ac_declaration >>confdefs.h 2489 echo '#endif' >>confdefs.h 2490fi 2491 2492else 2493 echo "$as_me: failed program was:" >&5 2494cat conftest.$ac_ext >&5 2495fi 2496rm -f conftest.$ac_objext conftest.$ac_ext 2497ac_ext=c 2498ac_cpp='$CPP $CPPFLAGS' 2499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2501ac_compiler_gnu=$ac_cv_c_compiler_gnu 2502 2503 2504ac_ext=c 2505ac_cpp='$CPP $CPPFLAGS' 2506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2508ac_compiler_gnu=$ac_cv_c_compiler_gnu 2509echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2510echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2511# On Suns, sometimes $CPP names a directory. 2512if test -n "$CPP" && test -d "$CPP"; then 2513 CPP= 2514fi 2515if test -z "$CPP"; then 2516 if test "${ac_cv_prog_CPP+set}" = set; then 2517 echo $ECHO_N "(cached) $ECHO_C" >&6 2518else 2519 # Double quotes because CPP needs to be expanded 2520 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2521 do 2522 ac_preproc_ok=false 2523for ac_c_preproc_warn_flag in '' yes 2524do 2525 # Use a header file that comes with gcc, so configuring glibc 2526 # with a fresh cross-compiler works. 2527 # On the NeXT, cc -E runs the code through the compiler's parser, 2528 # not just through cpp. "Syntax error" is here to catch this case. 2529 cat >conftest.$ac_ext <<_ACEOF 2530#line $LINENO "configure" 2531#include "confdefs.h" 2532#include <assert.h> 2533 Syntax error 2534_ACEOF 2535if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2536 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2537 ac_status=$? 2538 egrep -v '^ *\+' conftest.er1 >conftest.err 2539 rm -f conftest.er1 2540 cat conftest.err >&5 2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2542 (exit $ac_status); } >/dev/null; then 2543 if test -s conftest.err; then 2544 ac_cpp_err=$ac_c_preproc_warn_flag 2545 else 2546 ac_cpp_err= 2547 fi 2548else 2549 ac_cpp_err=yes 2550fi 2551if test -z "$ac_cpp_err"; then 2552 : 2553else 2554 echo "$as_me: failed program was:" >&5 2555 cat conftest.$ac_ext >&5 2556 # Broken: fails on valid input. 2557continue 2558fi 2559rm -f conftest.err conftest.$ac_ext 2560 2561 # OK, works on sane cases. Now check whether non-existent headers 2562 # can be detected and how. 2563 cat >conftest.$ac_ext <<_ACEOF 2564#line $LINENO "configure" 2565#include "confdefs.h" 2566#include <ac_nonexistent.h> 2567_ACEOF 2568if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2569 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2570 ac_status=$? 2571 egrep -v '^ *\+' conftest.er1 >conftest.err 2572 rm -f conftest.er1 2573 cat conftest.err >&5 2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2575 (exit $ac_status); } >/dev/null; then 2576 if test -s conftest.err; then 2577 ac_cpp_err=$ac_c_preproc_warn_flag 2578 else 2579 ac_cpp_err= 2580 fi 2581else 2582 ac_cpp_err=yes 2583fi 2584if test -z "$ac_cpp_err"; then 2585 # Broken: success on invalid input. 2586continue 2587else 2588 echo "$as_me: failed program was:" >&5 2589 cat conftest.$ac_ext >&5 2590 # Passes both tests. 2591ac_preproc_ok=: 2592break 2593fi 2594rm -f conftest.err conftest.$ac_ext 2595 2596done 2597# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2598rm -f conftest.err conftest.$ac_ext 2599if $ac_preproc_ok; then 2600 break 2601fi 2602 2603 done 2604 ac_cv_prog_CPP=$CPP 2605 2606fi 2607 CPP=$ac_cv_prog_CPP 2608else 2609 ac_cv_prog_CPP=$CPP 2610fi 2611echo "$as_me:$LINENO: result: $CPP" >&5 2612echo "${ECHO_T}$CPP" >&6 2613ac_preproc_ok=false 2614for ac_c_preproc_warn_flag in '' yes 2615do 2616 # Use a header file that comes with gcc, so configuring glibc 2617 # with a fresh cross-compiler works. 2618 # On the NeXT, cc -E runs the code through the compiler's parser, 2619 # not just through cpp. "Syntax error" is here to catch this case. 2620 cat >conftest.$ac_ext <<_ACEOF 2621#line $LINENO "configure" 2622#include "confdefs.h" 2623#include <assert.h> 2624 Syntax error 2625_ACEOF 2626if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2627 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2628 ac_status=$? 2629 egrep -v '^ *\+' conftest.er1 >conftest.err 2630 rm -f conftest.er1 2631 cat conftest.err >&5 2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2633 (exit $ac_status); } >/dev/null; then 2634 if test -s conftest.err; then 2635 ac_cpp_err=$ac_c_preproc_warn_flag 2636 else 2637 ac_cpp_err= 2638 fi 2639else 2640 ac_cpp_err=yes 2641fi 2642if test -z "$ac_cpp_err"; then 2643 : 2644else 2645 echo "$as_me: failed program was:" >&5 2646 cat conftest.$ac_ext >&5 2647 # Broken: fails on valid input. 2648continue 2649fi 2650rm -f conftest.err conftest.$ac_ext 2651 2652 # OK, works on sane cases. Now check whether non-existent headers 2653 # can be detected and how. 2654 cat >conftest.$ac_ext <<_ACEOF 2655#line $LINENO "configure" 2656#include "confdefs.h" 2657#include <ac_nonexistent.h> 2658_ACEOF 2659if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2660 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2661 ac_status=$? 2662 egrep -v '^ *\+' conftest.er1 >conftest.err 2663 rm -f conftest.er1 2664 cat conftest.err >&5 2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2666 (exit $ac_status); } >/dev/null; then 2667 if test -s conftest.err; then 2668 ac_cpp_err=$ac_c_preproc_warn_flag 2669 else 2670 ac_cpp_err= 2671 fi 2672else 2673 ac_cpp_err=yes 2674fi 2675if test -z "$ac_cpp_err"; then 2676 # Broken: success on invalid input. 2677continue 2678else 2679 echo "$as_me: failed program was:" >&5 2680 cat conftest.$ac_ext >&5 2681 # Passes both tests. 2682ac_preproc_ok=: 2683break 2684fi 2685rm -f conftest.err conftest.$ac_ext 2686 2687done 2688# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2689rm -f conftest.err conftest.$ac_ext 2690if $ac_preproc_ok; then 2691 : 2692else 2693 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 2694echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} 2695 { (exit 1); exit 1; }; } 2696fi 2697 2698ac_ext=c 2699ac_cpp='$CPP $CPPFLAGS' 2700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2702ac_compiler_gnu=$ac_cv_c_compiler_gnu 2703 2704 2705if test $ac_cv_c_compiler_gnu = yes; then 2706 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 2707echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 2708if test "${ac_cv_prog_gcc_traditional+set}" = set; then 2709 echo $ECHO_N "(cached) $ECHO_C" >&6 2710else 2711 ac_pattern="Autoconf.*'x'" 2712 cat >conftest.$ac_ext <<_ACEOF 2713#line $LINENO "configure" 2714#include "confdefs.h" 2715#include <sgtty.h> 2716Autoconf TIOCGETP 2717_ACEOF 2718if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2719 egrep "$ac_pattern" >/dev/null 2>&1; then 2720 ac_cv_prog_gcc_traditional=yes 2721else 2722 ac_cv_prog_gcc_traditional=no 2723fi 2724rm -f conftest* 2725 2726 2727 if test $ac_cv_prog_gcc_traditional = no; then 2728 cat >conftest.$ac_ext <<_ACEOF 2729#line $LINENO "configure" 2730#include "confdefs.h" 2731#include <termio.h> 2732Autoconf TCGETA 2733_ACEOF 2734if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2735 egrep "$ac_pattern" >/dev/null 2>&1; then 2736 ac_cv_prog_gcc_traditional=yes 2737fi 2738rm -f conftest* 2739 2740 fi 2741fi 2742echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 2743echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 2744 if test $ac_cv_prog_gcc_traditional = yes; then 2745 CC="$CC -traditional" 2746 fi 2747fi 2748 2749 2750if test x"$GCC" = x"yes"; then 2751 2752 2753 2754 OPT_CFLAGS=`echo "$CFLAGS"|sed "s/-O[0-9]*//g"` 2755 2756 OPT_CFLAGS="$OPT_CFLAGS -pipe -O2 -fno-strict-aliasing " 2757 echo "$as_me:$LINENO: checking if $CC supports $OPT_CFLAGS flags" >&5 2758echo $ECHO_N "checking if $CC supports $OPT_CFLAGS flags... $ECHO_C" >&6 2759 SAVE_CFLAGS="$CFLAGS" 2760 CFLAGS="$OPT_CFLAGS" 2761 cat >conftest.$ac_ext <<_ACEOF 2762#line $LINENO "configure" 2763#include "confdefs.h" 2764 2765#ifdef F77_DUMMY_MAIN 2766# ifdef __cplusplus 2767 extern "C" 2768# endif 2769 int F77_DUMMY_MAIN() { return 1; } 2770#endif 2771int 2772main () 2773{ 2774 2775 ; 2776 return 0; 2777} 2778_ACEOF 2779rm -f conftest.$ac_objext 2780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2781 (eval $ac_compile) 2>&5 2782 ac_status=$? 2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2784 (exit $ac_status); } && 2785 { ac_try='test -s conftest.$ac_objext' 2786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2787 (eval $ac_try) 2>&5 2788 ac_status=$? 2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2790 (exit $ac_status); }; }; then 2791 ac_cv_try_cflags_ok=yes 2792else 2793 echo "$as_me: failed program was:" >&5 2794cat conftest.$ac_ext >&5 2795ac_cv_try_cflags_ok=no 2796fi 2797rm -f conftest.$ac_objext conftest.$ac_ext 2798 CFLAGS="$SAVE_CFLAGS" 2799 echo "$as_me:$LINENO: result: $ac_cv_try_cflags_ok" >&5 2800echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6 2801 if test x"$ac_cv_try_cflags_ok" = x"yes"; then 2802 CFLAGS=$OPT_CFLAGS 2803 else 2804 : 2805 fi 2806 2807 OPT_CFLAGS="$CFLAGS -fomit-frame-pointer" 2808 echo "$as_me:$LINENO: checking if $CC supports $OPT_CFLAGS flags" >&5 2809echo $ECHO_N "checking if $CC supports $OPT_CFLAGS flags... $ECHO_C" >&6 2810 SAVE_CFLAGS="$CFLAGS" 2811 CFLAGS="$OPT_CFLAGS" 2812 cat >conftest.$ac_ext <<_ACEOF 2813#line $LINENO "configure" 2814#include "confdefs.h" 2815 2816#ifdef F77_DUMMY_MAIN 2817# ifdef __cplusplus 2818 extern "C" 2819# endif 2820 int F77_DUMMY_MAIN() { return 1; } 2821#endif 2822int 2823main () 2824{ 2825 2826 ; 2827 return 0; 2828} 2829_ACEOF 2830rm -f conftest.$ac_objext 2831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2832 (eval $ac_compile) 2>&5 2833 ac_status=$? 2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2835 (exit $ac_status); } && 2836 { ac_try='test -s conftest.$ac_objext' 2837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2838 (eval $ac_try) 2>&5 2839 ac_status=$? 2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2841 (exit $ac_status); }; }; then 2842 ac_cv_try_cflags_ok=yes 2843else 2844 echo "$as_me: failed program was:" >&5 2845cat conftest.$ac_ext >&5 2846ac_cv_try_cflags_ok=no 2847fi 2848rm -f conftest.$ac_objext conftest.$ac_ext 2849 CFLAGS="$SAVE_CFLAGS" 2850 echo "$as_me:$LINENO: result: $ac_cv_try_cflags_ok" >&5 2851echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6 2852 if test x"$ac_cv_try_cflags_ok" = x"yes"; then 2853 CFLAGS=$OPT_CFLAGS 2854 else 2855 : 2856 fi 2857 2858 case "$host" in 2859 i?86-* | k?-*) 2860 case "$host" in 2861 i386-*) OPT_CFLAGS="$CFLAGS ";; 2862 i486-*) OPT_CFLAGS="$CFLAGS ";; 2863 i586-*) OPT_CFLAGS="$CFLAGS ";; 2864 i686-*) OPT_CFLAGS="$CFLAGS ";; 2865 k6-*) OPT_CFLAGS="$CFLAGS ";; 2866 esac 2867 echo "$as_me:$LINENO: checking if $CC supports $OPT_CFLAGS flags" >&5 2868echo $ECHO_N "checking if $CC supports $OPT_CFLAGS flags... $ECHO_C" >&6 2869 SAVE_CFLAGS="$CFLAGS" 2870 CFLAGS="$OPT_CFLAGS" 2871 cat >conftest.$ac_ext <<_ACEOF 2872#line $LINENO "configure" 2873#include "confdefs.h" 2874 2875#ifdef F77_DUMMY_MAIN 2876# ifdef __cplusplus 2877 extern "C" 2878# endif 2879 int F77_DUMMY_MAIN() { return 1; } 2880#endif 2881int 2882main () 2883{ 2884 2885 ; 2886 return 0; 2887} 2888_ACEOF 2889rm -f conftest.$ac_objext 2890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2891 (eval $ac_compile) 2>&5 2892 ac_status=$? 2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2894 (exit $ac_status); } && 2895 { ac_try='test -s conftest.$ac_objext' 2896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2897 (eval $ac_try) 2>&5 2898 ac_status=$? 2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2900 (exit $ac_status); }; }; then 2901 ac_cv_try_cflags_ok=yes 2902else 2903 echo "$as_me: failed program was:" >&5 2904cat conftest.$ac_ext >&5 2905ac_cv_try_cflags_ok=no 2906fi 2907rm -f conftest.$ac_objext conftest.$ac_ext 2908 CFLAGS="$SAVE_CFLAGS" 2909 echo "$as_me:$LINENO: result: $ac_cv_try_cflags_ok" >&5 2910echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6 2911 if test x"$ac_cv_try_cflags_ok" = x"yes"; then 2912 CFLAGS=$OPT_CFLAGS 2913 else 2914 : 2915 fi;; 2916 sparc-* | sparc64-*) 2917 OPT_CFLAGS="$CFLAGS -mtune=ultrasparc" 2918 echo "$as_me:$LINENO: checking if $CC supports $OPT_CFLAGS flags" >&5 2919echo $ECHO_N "checking if $CC supports $OPT_CFLAGS flags... $ECHO_C" >&6 2920 SAVE_CFLAGS="$CFLAGS" 2921 CFLAGS="$OPT_CFLAGS" 2922 cat >conftest.$ac_ext <<_ACEOF 2923#line $LINENO "configure" 2924#include "confdefs.h" 2925 2926#ifdef F77_DUMMY_MAIN 2927# ifdef __cplusplus 2928 extern "C" 2929# endif 2930 int F77_DUMMY_MAIN() { return 1; } 2931#endif 2932int 2933main () 2934{ 2935 2936 ; 2937 return 0; 2938} 2939_ACEOF 2940rm -f conftest.$ac_objext 2941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2942 (eval $ac_compile) 2>&5 2943 ac_status=$? 2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2945 (exit $ac_status); } && 2946 { ac_try='test -s conftest.$ac_objext' 2947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2948 (eval $ac_try) 2>&5 2949 ac_status=$? 2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2951 (exit $ac_status); }; }; then 2952 ac_cv_try_cflags_ok=yes 2953else 2954 echo "$as_me: failed program was:" >&5 2955cat conftest.$ac_ext >&5 2956ac_cv_try_cflags_ok=no 2957fi 2958rm -f conftest.$ac_objext conftest.$ac_ext 2959 CFLAGS="$SAVE_CFLAGS" 2960 echo "$as_me:$LINENO: result: $ac_cv_try_cflags_ok" >&5 2961echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6 2962 if test x"$ac_cv_try_cflags_ok" = x"yes"; then 2963 CFLAGS=$OPT_CFLAGS 2964 else 2965 : 2966 fi;; 2967 mips-sgi-irix6.*) OPT_CFLAGS="$CFLAGS -mabi=64" 2968 echo "$as_me:$LINENO: checking if $CC supports $OPT_CFLAGS flags" >&5 2969echo $ECHO_N "checking if $CC supports $OPT_CFLAGS flags... $ECHO_C" >&6 2970 SAVE_CFLAGS="$CFLAGS" 2971 CFLAGS="$OPT_CFLAGS" 2972 cat >conftest.$ac_ext <<_ACEOF 2973#line $LINENO "configure" 2974#include "confdefs.h" 2975 2976#ifdef F77_DUMMY_MAIN 2977# ifdef __cplusplus 2978 extern "C" 2979# endif 2980 int F77_DUMMY_MAIN() { return 1; } 2981#endif 2982int 2983main () 2984{ 2985 2986 ; 2987 return 0; 2988} 2989_ACEOF 2990rm -f conftest.$ac_objext 2991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2992 (eval $ac_compile) 2>&5 2993 ac_status=$? 2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2995 (exit $ac_status); } && 2996 { ac_try='test -s conftest.$ac_objext' 2997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2998 (eval $ac_try) 2>&5 2999 ac_status=$? 3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3001 (exit $ac_status); }; }; then 3002 ac_cv_try_cflags_ok=yes 3003else 3004 echo "$as_me: failed program was:" >&5 3005cat conftest.$ac_ext >&5 3006ac_cv_try_cflags_ok=no 3007fi 3008rm -f conftest.$ac_objext conftest.$ac_ext 3009 CFLAGS="$SAVE_CFLAGS" 3010 echo "$as_me:$LINENO: result: $ac_cv_try_cflags_ok" >&5 3011echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6 3012 if test x"$ac_cv_try_cflags_ok" = x"yes"; then 3013 CFLAGS=$OPT_CFLAGS 3014 else 3015 : 3016 fi;; 3017 esac 3018elif test x"$CC" = x"tcc" -a x"`$CC -version 2>&1 | grep TenDRA`" != x""; then 3019 TENDRA=yes 3020 CFLAGS="-Xp -Yansi -f`pwd`/include/tendra.h -DELIDE_CODE" 3021 enable_mlib=no 3022 enable_oss=no 3023 enable_solaris_audio=no 3024elif test x"$CC" = x"icc" -a x"`$CC -V 2>&1 | grep Intel`" != x""; then 3025 CFLAGS="-g -pipe -O2 -fno-strict-aliasing -unroll -ip" 3026else 3027 case "$host" in 3028 mips-sgi-irix6.*) 3029 OPT_CFLAGS="$CFLAGS -64" 3030 echo "$as_me:$LINENO: checking if $CC supports $OPT_CFLAGS flags" >&5 3031echo $ECHO_N "checking if $CC supports $OPT_CFLAGS flags... $ECHO_C" >&6 3032 SAVE_CFLAGS="$CFLAGS" 3033 CFLAGS="$OPT_CFLAGS" 3034 cat >conftest.$ac_ext <<_ACEOF 3035#line $LINENO "configure" 3036#include "confdefs.h" 3037 3038#ifdef F77_DUMMY_MAIN 3039# ifdef __cplusplus 3040 extern "C" 3041# endif 3042 int F77_DUMMY_MAIN() { return 1; } 3043#endif 3044int 3045main () 3046{ 3047 3048 ; 3049 return 0; 3050} 3051_ACEOF 3052rm -f conftest.$ac_objext 3053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3054 (eval $ac_compile) 2>&5 3055 ac_status=$? 3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3057 (exit $ac_status); } && 3058 { ac_try='test -s conftest.$ac_objext' 3059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3060 (eval $ac_try) 2>&5 3061 ac_status=$? 3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3063 (exit $ac_status); }; }; then 3064 ac_cv_try_cflags_ok=yes 3065else 3066 echo "$as_me: failed program was:" >&5 3067cat conftest.$ac_ext >&5 3068ac_cv_try_cflags_ok=no 3069fi 3070rm -f conftest.$ac_objext conftest.$ac_ext 3071 CFLAGS="$SAVE_CFLAGS" 3072 echo "$as_me:$LINENO: result: $ac_cv_try_cflags_ok" >&5 3073echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6 3074 if test x"$ac_cv_try_cflags_ok" = x"yes"; then 3075 CFLAGS=$OPT_CFLAGS 3076 else 3077 : 3078 fi;; 3079 sparc-sun-solaris*) 3080 OPT_CFLAGS="$CFLAGS -xCC -fast -xO5" 3081 echo "$as_me:$LINENO: checking if $CC supports $OPT_CFLAGS flags" >&5 3082echo $ECHO_N "checking if $CC supports $OPT_CFLAGS flags... $ECHO_C" >&6 3083 SAVE_CFLAGS="$CFLAGS" 3084 CFLAGS="$OPT_CFLAGS" 3085 cat >conftest.$ac_ext <<_ACEOF 3086#line $LINENO "configure" 3087#include "confdefs.h" 3088 3089#ifdef F77_DUMMY_MAIN 3090# ifdef __cplusplus 3091 extern "C" 3092# endif 3093 int F77_DUMMY_MAIN() { return 1; } 3094#endif 3095int 3096main () 3097{ 3098 3099 ; 3100 return 0; 3101} 3102_ACEOF 3103rm -f conftest.$ac_objext 3104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3105 (eval $ac_compile) 2>&5 3106 ac_status=$? 3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3108 (exit $ac_status); } && 3109 { ac_try='test -s conftest.$ac_objext' 3110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3111 (eval $ac_try) 2>&5 3112 ac_status=$? 3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3114 (exit $ac_status); }; }; then 3115 ac_cv_try_cflags_ok=yes 3116else 3117 echo "$as_me: failed program was:" >&5 3118cat conftest.$ac_ext >&5 3119ac_cv_try_cflags_ok=no 3120fi 3121rm -f conftest.$ac_objext conftest.$ac_ext 3122 CFLAGS="$SAVE_CFLAGS" 3123 echo "$as_me:$LINENO: result: $ac_cv_try_cflags_ok" >&5 3124echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6 3125 if test x"$ac_cv_try_cflags_ok" = x"yes"; then 3126 CFLAGS=$OPT_CFLAGS 3127 else 3128 : 3129 fi;; 3130 esac 3131fi 3132 3133# Check whether --enable-shared or --disable-shared was given. 3134if test "${enable_shared+set}" = set; then 3135 enableval="$enable_shared" 3136 p=${PACKAGE-default} 3137case $enableval in 3138yes) enable_shared=yes ;; 3139no) enable_shared=no ;; 3140*) 3141 enable_shared=no 3142 # Look at the argument we got. We use all the common list separators. 3143 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 3144 for pkg in $enableval; do 3145 if test "X$pkg" = "X$p"; then 3146 enable_shared=yes 3147 fi 3148 done 3149 IFS="$ac_save_ifs" 3150 ;; 3151esac 3152else 3153 enable_shared=no 3154fi; 3155 3156# Check whether --enable-static or --disable-static was given. 3157if test "${enable_static+set}" = set; then 3158 enableval="$enable_static" 3159 p=${PACKAGE-default} 3160case $enableval in 3161yes) enable_static=yes ;; 3162no) enable_static=no ;; 3163*) 3164 enable_static=no 3165 # Look at the argument we got. We use all the common list separators. 3166 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 3167 for pkg in $enableval; do 3168 if test "X$pkg" = "X$p"; then 3169 enable_static=yes 3170 fi 3171 done 3172 IFS="$ac_save_ifs" 3173 ;; 3174esac 3175else 3176 enable_static=yes 3177fi; 3178# Check whether --enable-fast-install or --disable-fast-install was given. 3179if test "${enable_fast_install+set}" = set; then 3180 enableval="$enable_fast_install" 3181 p=${PACKAGE-default} 3182case $enableval in 3183yes) enable_fast_install=yes ;; 3184no) enable_fast_install=no ;; 3185*) 3186 enable_fast_install=no 3187 # Look at the argument we got. We use all the common list separators. 3188 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 3189 for pkg in $enableval; do 3190 if test "X$pkg" = "X$p"; then 3191 enable_fast_install=yes 3192 fi 3193 done 3194 IFS="$ac_save_ifs" 3195 ;; 3196esac 3197else 3198 enable_fast_install=yes 3199fi; 3200# Find the correct PATH separator. Usually this is `:', but 3201# DJGPP uses `;' like DOS. 3202if test "X${PATH_SEPARATOR+set}" != Xset; then 3203 UNAME=${UNAME-`uname 2>/dev/null`} 3204 case X$UNAME in 3205 *-DOS) lt_cv_sys_path_separator=';' ;; 3206 *) lt_cv_sys_path_separator=':' ;; 3207 esac 3208 PATH_SEPARATOR=$lt_cv_sys_path_separator 3209fi 3210 3211 3212# Check whether --with-gnu-ld or --without-gnu-ld was given. 3213if test "${with_gnu_ld+set}" = set; then 3214 withval="$with_gnu_ld" 3215 test "$withval" = no || with_gnu_ld=yes 3216else 3217 with_gnu_ld=no 3218fi; 3219ac_prog=ld 3220if test "$GCC" = yes; then 3221 # Check if gcc -print-prog-name=ld gives a path. 3222 echo "$as_me:$LINENO: checking for ld used by GCC" >&5 3223echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 3224 case $host in 3225 *-*-mingw*) 3226 # gcc leaves a trailing carriage return which upsets mingw 3227 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3228 *) 3229 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3230 esac 3231 case $ac_prog in 3232 # Accept absolute paths. 3233 [\\/]* | [A-Za-z]:[\\/]*) 3234 re_direlt='/[^/][^/]*/\.\./' 3235 # Canonicalize the path of ld 3236 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 3237 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3238 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 3239 done 3240 test -z "$LD" && LD="$ac_prog" 3241 ;; 3242 "") 3243 # If it fails, then pretend we aren't using GCC. 3244 ac_prog=ld 3245 ;; 3246 *) 3247 # If it is relative, then search for the first ld in PATH. 3248 with_gnu_ld=unknown 3249 ;; 3250 esac 3251elif test "$with_gnu_ld" = yes; then 3252 echo "$as_me:$LINENO: checking for GNU ld" >&5 3253echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 3254else 3255 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3256echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 3257fi 3258if test "${lt_cv_path_LD+set}" = set; then 3259 echo $ECHO_N "(cached) $ECHO_C" >&6 3260else 3261 if test -z "$LD"; then 3262 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3263 for ac_dir in $PATH; do 3264 test -z "$ac_dir" && ac_dir=. 3265 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3266 lt_cv_path_LD="$ac_dir/$ac_prog" 3267 # Check to see if the program is GNU ld. I'd rather use --version, 3268 # but apparently some GNU ld's only accept -v. 3269 # Break only if it was the GNU/non-GNU ld that we prefer. 3270 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 3271 test "$with_gnu_ld" != no && break 3272 else 3273 test "$with_gnu_ld" != yes && break 3274 fi 3275 fi 3276 done 3277 IFS="$ac_save_ifs" 3278else 3279 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3280fi 3281fi 3282 3283LD="$lt_cv_path_LD" 3284if test -n "$LD"; then 3285 echo "$as_me:$LINENO: result: $LD" >&5 3286echo "${ECHO_T}$LD" >&6 3287else 3288 echo "$as_me:$LINENO: result: no" >&5 3289echo "${ECHO_T}no" >&6 3290fi 3291test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3292echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3293 { (exit 1); exit 1; }; } 3294echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3295echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 3296if test "${lt_cv_prog_gnu_ld+set}" = set; then 3297 echo $ECHO_N "(cached) $ECHO_C" >&6 3298else 3299 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 3300if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 3301 lt_cv_prog_gnu_ld=yes 3302else 3303 lt_cv_prog_gnu_ld=no 3304fi 3305fi 3306echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3307echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 3308with_gnu_ld=$lt_cv_prog_gnu_ld 3309 3310 3311echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3312echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 3313if test "${lt_cv_ld_reload_flag+set}" = set; then 3314 echo $ECHO_N "(cached) $ECHO_C" >&6 3315else 3316 lt_cv_ld_reload_flag='-r' 3317fi 3318echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 3319echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 3320reload_flag=$lt_cv_ld_reload_flag 3321test -n "$reload_flag" && reload_flag=" $reload_flag" 3322 3323echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 3324echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 3325if test "${lt_cv_path_NM+set}" = set; then 3326 echo $ECHO_N "(cached) $ECHO_C" >&6 3327else 3328 if test -n "$NM"; then 3329 # Let the user override the test. 3330 lt_cv_path_NM="$NM" 3331else 3332 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3333 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 3334 test -z "$ac_dir" && ac_dir=. 3335 tmp_nm=$ac_dir/${ac_tool_prefix}nm 3336 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then 3337 # Check to see if the nm accepts a BSD-compat flag. 3338 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3339 # nm: unknown option "B" ignored 3340 # Tru64's nm complains that /dev/null is an invalid object file 3341 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then 3342 lt_cv_path_NM="$tmp_nm -B" 3343 break 3344 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 3345 lt_cv_path_NM="$tmp_nm -p" 3346 break 3347 else 3348 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3349 continue # so that we can try to find one that supports BSD flags 3350 fi 3351 fi 3352 done 3353 IFS="$ac_save_ifs" 3354 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3355fi 3356fi 3357 3358NM="$lt_cv_path_NM" 3359echo "$as_me:$LINENO: result: $NM" >&5 3360echo "${ECHO_T}$NM" >&6 3361 3362echo "$as_me:$LINENO: checking whether ln -s works" >&5 3363echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3364LN_S=$as_ln_s 3365if test "$LN_S" = "ln -s"; then 3366 echo "$as_me:$LINENO: result: yes" >&5 3367echo "${ECHO_T}yes" >&6 3368else 3369 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3370echo "${ECHO_T}no, using $LN_S" >&6 3371fi 3372 3373echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 3374echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 3375if test "${lt_cv_deplibs_check_method+set}" = set; then 3376 echo $ECHO_N "(cached) $ECHO_C" >&6 3377else 3378 lt_cv_file_magic_cmd='$MAGIC_CMD' 3379lt_cv_file_magic_test_file= 3380lt_cv_deplibs_check_method='unknown' 3381# Need to set the preceding variable on all platforms that support 3382# interlibrary dependencies. 3383# 'none' -- dependencies not supported. 3384# `unknown' -- same as none, but documents that we really don't know. 3385# 'pass_all' -- all dependencies passed with no checks. 3386# 'test_compile' -- check by making test program. 3387# 'file_magic [[regex]]' -- check by looking for files in library path 3388# which responds to the $file_magic_cmd with a given egrep regex. 3389# If you have `file' or equivalent on your system and you're not sure 3390# whether `pass_all' will *always* work, you probably want this one. 3391 3392case $host_os in 3393aix4* | aix5*) 3394 lt_cv_deplibs_check_method=pass_all 3395 ;; 3396 3397beos*) 3398 lt_cv_deplibs_check_method=pass_all 3399 ;; 3400 3401bsdi4*) 3402 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 3403 lt_cv_file_magic_cmd='/usr/bin/file -L' 3404 lt_cv_file_magic_test_file=/shlib/libc.so 3405 ;; 3406 3407cygwin* | mingw* | pw32*) 3408 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3409 lt_cv_file_magic_cmd='$OBJDUMP -f' 3410 ;; 3411 3412darwin* | rhapsody*) 3413 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' 3414 lt_cv_file_magic_cmd='/usr/bin/file -L' 3415 case "$host_os" in 3416 rhapsody* | darwin1.[012]) 3417 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` 3418 ;; 3419 *) # Darwin 1.3 on 3420 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' 3421 ;; 3422 esac 3423 ;; 3424 3425freebsd*) 3426 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3427 case $host_cpu in 3428 i*86 ) 3429 # Not sure whether the presence of OpenBSD here was a mistake. 3430 # Let's accept both of them until this is cleared up. 3431 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' 3432 lt_cv_file_magic_cmd=/usr/bin/file 3433 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3434 ;; 3435 esac 3436 else 3437 lt_cv_deplibs_check_method=pass_all 3438 fi 3439 ;; 3440 3441gnu*) 3442 lt_cv_deplibs_check_method=pass_all 3443 ;; 3444 3445hpux10.20*|hpux11*) 3446 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 3447 lt_cv_file_magic_cmd=/usr/bin/file 3448 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3449 ;; 3450 3451irix5* | irix6* | nonstopux*) 3452 case $host_os in 3453 irix5* | nonstopux*) 3454 # this will be overridden with pass_all, but let us keep it just in case 3455 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" 3456 ;; 3457 *) 3458 case $LD in 3459 *-32|*"-32 ") libmagic=32-bit;; 3460 *-n32|*"-n32 ") libmagic=N32;; 3461 *-64|*"-64 ") libmagic=64-bit;; 3462 *) libmagic=never-match;; 3463 esac 3464 # this will be overridden with pass_all, but let us keep it just in case 3465 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" 3466 ;; 3467 esac 3468 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` 3469 lt_cv_deplibs_check_method=pass_all 3470 ;; 3471 3472# This must be Linux ELF. 3473linux-gnu*) 3474 lt_cv_deplibs_check_method=pass_all 3475 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` 3476 ;; 3477 3478netbsd*) 3479 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3480 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' 3481 else 3482 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' 3483 fi 3484 ;; 3485 3486newos6*) 3487 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 3488 lt_cv_file_magic_cmd=/usr/bin/file 3489 lt_cv_file_magic_test_file=/usr/lib/libnls.so 3490 ;; 3491 3492openbsd*) 3493 lt_cv_file_magic_cmd=/usr/bin/file 3494 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3495 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3496 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' 3497 else 3498 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' 3499 fi 3500 ;; 3501 3502osf3* | osf4* | osf5*) 3503 # this will be overridden with pass_all, but let us keep it just in case 3504 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' 3505 lt_cv_file_magic_test_file=/shlib/libc.so 3506 lt_cv_deplibs_check_method=pass_all 3507 ;; 3508 3509sco3.2v5*) 3510 lt_cv_deplibs_check_method=pass_all 3511 ;; 3512 3513solaris*) 3514 lt_cv_deplibs_check_method=pass_all 3515 lt_cv_file_magic_test_file=/lib/libc.so 3516 ;; 3517 3518sysv5uw[78]* | sysv4*uw2*) 3519 lt_cv_deplibs_check_method=pass_all 3520 ;; 3521 3522sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 3523 case $host_vendor in 3524 motorola) 3525 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]' 3526 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3527 ;; 3528 ncr) 3529 lt_cv_deplibs_check_method=pass_all 3530 ;; 3531 sequent) 3532 lt_cv_file_magic_cmd='/bin/file' 3533 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 3534 ;; 3535 sni) 3536 lt_cv_file_magic_cmd='/bin/file' 3537 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 3538 lt_cv_file_magic_test_file=/lib/libc.so 3539 ;; 3540 esac 3541 ;; 3542esac 3543 3544fi 3545echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 3546echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 3547file_magic_cmd=$lt_cv_file_magic_cmd 3548deplibs_check_method=$lt_cv_deplibs_check_method 3549 3550 3551 3552 3553 3554 3555 3556# Check for command to grab the raw symbol name followed by C symbol from nm. 3557echo "$as_me:$LINENO: checking command to parse $NM output" >&5 3558echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6 3559if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 3560 echo $ECHO_N "(cached) $ECHO_C" >&6 3561else 3562 3563# These are sane defaults that work on at least a few old systems. 3564# [They come from Ultrix. What could be older than Ultrix?!! ;)] 3565 3566# Character class describing NM global symbol codes. 3567symcode='[BCDEGRST]' 3568 3569# Regexp to match symbols that can be accessed directly from C. 3570sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 3571 3572# Transform the above into a raw symbol and a C symbol. 3573symxfrm='\1 \2\3 \3' 3574 3575# Transform an extracted symbol line into a proper C declaration 3576lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" 3577 3578# Transform an extracted symbol line into symbol name and symbol address 3579lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 3580 3581# Define system-specific variables. 3582case $host_os in 3583aix*) 3584 symcode='[BCDT]' 3585 ;; 3586cygwin* | mingw* | pw32*) 3587 symcode='[ABCDGISTW]' 3588 ;; 3589hpux*) # Its linker distinguishes data from code symbols 3590 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 3591 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'" 3592 ;; 3593irix* | nonstopux*) 3594 symcode='[BCDEGRST]' 3595 ;; 3596solaris* | sysv5*) 3597 symcode='[BDT]' 3598 ;; 3599sysv4) 3600 symcode='[DFNSTU]' 3601 ;; 3602esac 3603 3604# Handle CRLF in mingw tool chain 3605opt_cr= 3606case $host_os in 3607mingw*) 3608 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 3609 ;; 3610esac 3611 3612# If we're using GNU nm, then use its standard symbol codes. 3613if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then 3614 symcode='[ABCDGISTW]' 3615fi 3616 3617# Try without a prefix undercore, then with it. 3618for ac_symprfx in "" "_"; do 3619 3620 # Write the raw and C identifiers. 3621lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" 3622 3623 # Check to see that the pipe works correctly. 3624 pipe_works=no 3625 rm -f conftest* 3626 cat > conftest.$ac_ext <<EOF 3627#ifdef __cplusplus 3628extern "C" { 3629#endif 3630char nm_test_var; 3631void nm_test_func(){} 3632#ifdef __cplusplus 3633} 3634#endif 3635int main(){nm_test_var='a';nm_test_func();return(0);} 3636EOF 3637 3638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3639 (eval $ac_compile) 2>&5 3640 ac_status=$? 3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3642 (exit $ac_status); }; then 3643 # Now try to grab the symbols. 3644 nlist=conftest.nm 3645 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 3646 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 3647 ac_status=$? 3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3649 (exit $ac_status); } && test -s "$nlist"; then 3650 # Try sorting and uniquifying the output. 3651 if sort "$nlist" | uniq > "$nlist"T; then 3652 mv -f "$nlist"T "$nlist" 3653 else 3654 rm -f "$nlist"T 3655 fi 3656 3657 # Make sure that we snagged all the symbols we need. 3658 if egrep ' nm_test_var$' "$nlist" >/dev/null; then 3659 if egrep ' nm_test_func$' "$nlist" >/dev/null; then 3660 cat <<EOF > conftest.$ac_ext 3661#ifdef __cplusplus 3662extern "C" { 3663#endif 3664 3665EOF 3666 # Now generate the symbol file. 3667 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' 3668 3669 cat <<EOF >> conftest.$ac_ext 3670#if defined (__STDC__) && __STDC__ 3671# define lt_ptr void * 3672#else 3673# define lt_ptr char * 3674# define const 3675#endif 3676 3677/* The mapping between symbol names and symbols. */ 3678const struct { 3679 const char *name; 3680 lt_ptr address; 3681} 3682lt_preloaded_symbols[] = 3683{ 3684EOF 3685 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext 3686 cat <<\EOF >> conftest.$ac_ext 3687 {0, (lt_ptr) 0} 3688}; 3689 3690#ifdef __cplusplus 3691} 3692#endif 3693EOF 3694 # Now try linking the two files. 3695 mv conftest.$ac_objext conftstm.$ac_objext 3696 save_LIBS="$LIBS" 3697 save_CFLAGS="$CFLAGS" 3698 LIBS="conftstm.$ac_objext" 3699 CFLAGS="$CFLAGS$no_builtin_flag" 3700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3701 (eval $ac_link) 2>&5 3702 ac_status=$? 3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3704 (exit $ac_status); } && test -s conftest; then 3705 pipe_works=yes 3706 fi 3707 LIBS="$save_LIBS" 3708 CFLAGS="$save_CFLAGS" 3709 else 3710 echo "cannot find nm_test_func in $nlist" >&5 3711 fi 3712 else 3713 echo "cannot find nm_test_var in $nlist" >&5 3714 fi 3715 else 3716 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 3717 fi 3718 else 3719 echo "$progname: failed program was:" >&5 3720 cat conftest.$ac_ext >&5 3721 fi 3722 rm -f conftest* conftst* 3723 3724 # Do not use the global_symbol_pipe unless it works. 3725 if test "$pipe_works" = yes; then 3726 break 3727 else 3728 lt_cv_sys_global_symbol_pipe= 3729 fi 3730done 3731 3732fi 3733 3734global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" 3735if test -z "$lt_cv_sys_global_symbol_pipe"; then 3736 global_symbol_to_cdecl= 3737 global_symbol_to_c_name_address= 3738else 3739 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" 3740 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address" 3741fi 3742if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address"; 3743then 3744 echo "$as_me:$LINENO: result: failed" >&5 3745echo "${ECHO_T}failed" >&6 3746else 3747 echo "$as_me:$LINENO: result: ok" >&5 3748echo "${ECHO_T}ok" >&6 3749fi 3750 3751echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3752echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3753if test "${ac_cv_header_stdc+set}" = set; then 3754 echo $ECHO_N "(cached) $ECHO_C" >&6 3755else 3756 cat >conftest.$ac_ext <<_ACEOF 3757#line $LINENO "configure" 3758#include "confdefs.h" 3759#include <stdlib.h> 3760#include <stdarg.h> 3761#include <string.h> 3762#include <float.h> 3763 3764_ACEOF 3765if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3766 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3767 ac_status=$? 3768 egrep -v '^ *\+' conftest.er1 >conftest.err 3769 rm -f conftest.er1 3770 cat conftest.err >&5 3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3772 (exit $ac_status); } >/dev/null; then 3773 if test -s conftest.err; then 3774 ac_cpp_err=$ac_c_preproc_warn_flag 3775 else 3776 ac_cpp_err= 3777 fi 3778else 3779 ac_cpp_err=yes 3780fi 3781if test -z "$ac_cpp_err"; then 3782 ac_cv_header_stdc=yes 3783else 3784 echo "$as_me: failed program was:" >&5 3785 cat conftest.$ac_ext >&5 3786 ac_cv_header_stdc=no 3787fi 3788rm -f conftest.err conftest.$ac_ext 3789 3790if test $ac_cv_header_stdc = yes; then 3791 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3792 cat >conftest.$ac_ext <<_ACEOF 3793#line $LINENO "configure" 3794#include "confdefs.h" 3795#include <string.h> 3796 3797_ACEOF 3798if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3799 egrep "memchr" >/dev/null 2>&1; then 3800 : 3801else 3802 ac_cv_header_stdc=no 3803fi 3804rm -f conftest* 3805 3806fi 3807 3808if test $ac_cv_header_stdc = yes; then 3809 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3810 cat >conftest.$ac_ext <<_ACEOF 3811#line $LINENO "configure" 3812#include "confdefs.h" 3813#include <stdlib.h> 3814 3815_ACEOF 3816if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3817 egrep "free" >/dev/null 2>&1; then 3818 : 3819else 3820 ac_cv_header_stdc=no 3821fi 3822rm -f conftest* 3823 3824fi 3825 3826if test $ac_cv_header_stdc = yes; then 3827 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3828 if test "$cross_compiling" = yes; then 3829 : 3830else 3831 cat >conftest.$ac_ext <<_ACEOF 3832#line $LINENO "configure" 3833#include "confdefs.h" 3834#include <ctype.h> 3835#if ((' ' & 0x0FF) == 0x020) 3836# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3837# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3838#else 3839# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 3840 || ('j' <= (c) && (c) <= 'r') \ 3841 || ('s' <= (c) && (c) <= 'z')) 3842# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3843#endif 3844 3845#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3846int 3847main () 3848{ 3849 int i; 3850 for (i = 0; i < 256; i++) 3851 if (XOR (islower (i), ISLOWER (i)) 3852 || toupper (i) != TOUPPER (i)) 3853 exit(2); 3854 exit (0); 3855} 3856_ACEOF 3857rm -f conftest$ac_exeext 3858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3859 (eval $ac_link) 2>&5 3860 ac_status=$? 3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3862 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3864 (eval $ac_try) 2>&5 3865 ac_status=$? 3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3867 (exit $ac_status); }; }; then 3868 : 3869else 3870 echo "$as_me: program exited with status $ac_status" >&5 3871echo "$as_me: failed program was:" >&5 3872cat conftest.$ac_ext >&5 3873( exit $ac_status ) 3874ac_cv_header_stdc=no 3875fi 3876rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3877fi 3878fi 3879fi 3880echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3881echo "${ECHO_T}$ac_cv_header_stdc" >&6 3882if test $ac_cv_header_stdc = yes; then 3883 3884cat >>confdefs.h <<\_ACEOF 3885#define STDC_HEADERS 1 3886_ACEOF 3887 3888fi 3889 3890# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3901 inttypes.h stdint.h unistd.h 3902do 3903as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3904echo "$as_me:$LINENO: checking for $ac_header" >&5 3905echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3906if eval "test \"\${$as_ac_Header+set}\" = set"; then 3907 echo $ECHO_N "(cached) $ECHO_C" >&6 3908else 3909 cat >conftest.$ac_ext <<_ACEOF 3910#line $LINENO "configure" 3911#include "confdefs.h" 3912$ac_includes_default 3913 3914#include <$ac_header> 3915_ACEOF 3916rm -f conftest.$ac_objext 3917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3918 (eval $ac_compile) 2>&5 3919 ac_status=$? 3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3921 (exit $ac_status); } && 3922 { ac_try='test -s conftest.$ac_objext' 3923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3924 (eval $ac_try) 2>&5 3925 ac_status=$? 3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3927 (exit $ac_status); }; }; then 3928 eval "$as_ac_Header=yes" 3929else 3930 echo "$as_me: failed program was:" >&5 3931cat conftest.$ac_ext >&5 3932eval "$as_ac_Header=no" 3933fi 3934rm -f conftest.$ac_objext conftest.$ac_ext 3935fi 3936echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3937echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3938if test `eval echo '${'$as_ac_Header'}'` = yes; then 3939 cat >>confdefs.h <<_ACEOF 3940#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3941_ACEOF 3942 3943fi 3944 3945done 3946 3947 3948 3949for ac_header in dlfcn.h 3950do 3951as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3952if eval "test \"\${$as_ac_Header+set}\" = set"; then 3953 echo "$as_me:$LINENO: checking for $ac_header" >&5 3954echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3955if eval "test \"\${$as_ac_Header+set}\" = set"; then 3956 echo $ECHO_N "(cached) $ECHO_C" >&6 3957fi 3958echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3959echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3960else 3961 # Is the header compilable? 3962echo "$as_me:$LINENO: checking $ac_header usability" >&5 3963echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 3964cat >conftest.$ac_ext <<_ACEOF 3965#line $LINENO "configure" 3966#include "confdefs.h" 3967$ac_includes_default 3968#include <$ac_header> 3969_ACEOF 3970rm -f conftest.$ac_objext 3971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3972 (eval $ac_compile) 2>&5 3973 ac_status=$? 3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3975 (exit $ac_status); } && 3976 { ac_try='test -s conftest.$ac_objext' 3977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3978 (eval $ac_try) 2>&5 3979 ac_status=$? 3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3981 (exit $ac_status); }; }; then 3982 ac_header_compiler=yes 3983else 3984 echo "$as_me: failed program was:" >&5 3985cat conftest.$ac_ext >&5 3986ac_header_compiler=no 3987fi 3988rm -f conftest.$ac_objext conftest.$ac_ext 3989echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3990echo "${ECHO_T}$ac_header_compiler" >&6 3991 3992# Is the header present? 3993echo "$as_me:$LINENO: checking $ac_header presence" >&5 3994echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 3995cat >conftest.$ac_ext <<_ACEOF 3996#line $LINENO "configure" 3997#include "confdefs.h" 3998#include <$ac_header> 3999_ACEOF 4000if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4002 ac_status=$? 4003 egrep -v '^ *\+' conftest.er1 >conftest.err 4004 rm -f conftest.er1 4005 cat conftest.err >&5 4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4007 (exit $ac_status); } >/dev/null; then 4008 if test -s conftest.err; then 4009 ac_cpp_err=$ac_c_preproc_warn_flag 4010 else 4011 ac_cpp_err= 4012 fi 4013else 4014 ac_cpp_err=yes 4015fi 4016if test -z "$ac_cpp_err"; then 4017 ac_header_preproc=yes 4018else 4019 echo "$as_me: failed program was:" >&5 4020 cat conftest.$ac_ext >&5 4021 ac_header_preproc=no 4022fi 4023rm -f conftest.err conftest.$ac_ext 4024echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4025echo "${ECHO_T}$ac_header_preproc" >&6 4026 4027# So? What about this header? 4028case $ac_header_compiler:$ac_header_preproc in 4029 yes:no ) 4030 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4031echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4033echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 4034 no:yes ) 4035 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4036echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4037 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4038echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4040echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 4041esac 4042echo "$as_me:$LINENO: checking for $ac_header" >&5 4043echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4044if eval "test \"\${$as_ac_Header+set}\" = set"; then 4045 echo $ECHO_N "(cached) $ECHO_C" >&6 4046else 4047 eval "$as_ac_Header=$ac_header_preproc" 4048fi 4049echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4050echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4051 4052fi 4053if test `eval echo '${'$as_ac_Header'}'` = yes; then 4054 cat >>confdefs.h <<_ACEOF 4055#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4056_ACEOF 4057 4058fi 4059 4060done 4061 4062 4063 4064 4065 4066# Only perform the check for file, if the check method requires it 4067case $deplibs_check_method in 4068file_magic*) 4069 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 4070 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 4071echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 4072if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 4073 echo $ECHO_N "(cached) $ECHO_C" >&6 4074else 4075 case $MAGIC_CMD in 4076 /*) 4077 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 4078 ;; 4079 ?:/*) 4080 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. 4081 ;; 4082 *) 4083 ac_save_MAGIC_CMD="$MAGIC_CMD" 4084 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4085 ac_dummy="/usr/bin:$PATH" 4086 for ac_dir in $ac_dummy; do 4087 test -z "$ac_dir" && ac_dir=. 4088 if test -f $ac_dir/${ac_tool_prefix}file; then 4089 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 4090 if test -n "$file_magic_test_file"; then 4091 case $deplibs_check_method in 4092 "file_magic "*) 4093 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 4094 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 4095 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 4096 egrep "$file_magic_regex" > /dev/null; then 4097 : 4098 else 4099 cat <<EOF 1>&2 4100 4101*** Warning: the command libtool uses to detect shared libraries, 4102*** $file_magic_cmd, produces output that libtool cannot recognize. 4103*** The result is that libtool may fail to recognize shared libraries 4104*** as such. This will affect the creation of libtool libraries that 4105*** depend on shared libraries, but programs linked with such libtool 4106*** libraries will work regardless of this problem. Nevertheless, you 4107*** may want to report the problem to your system manager and/or to 4108*** bug-libtool@gnu.org 4109 4110EOF 4111 fi ;; 4112 esac 4113 fi 4114 break 4115 fi 4116 done 4117 IFS="$ac_save_ifs" 4118 MAGIC_CMD="$ac_save_MAGIC_CMD" 4119 ;; 4120esac 4121fi 4122 4123MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 4124if test -n "$MAGIC_CMD"; then 4125 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 4126echo "${ECHO_T}$MAGIC_CMD" >&6 4127else 4128 echo "$as_me:$LINENO: result: no" >&5 4129echo "${ECHO_T}no" >&6 4130fi 4131 4132if test -z "$lt_cv_path_MAGIC_CMD"; then 4133 if test -n "$ac_tool_prefix"; then 4134 echo "$as_me:$LINENO: checking for file" >&5 4135echo $ECHO_N "checking for file... $ECHO_C" >&6 4136if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 4137 echo $ECHO_N "(cached) $ECHO_C" >&6 4138else 4139 case $MAGIC_CMD in 4140 /*) 4141 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 4142 ;; 4143 ?:/*) 4144 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. 4145 ;; 4146 *) 4147 ac_save_MAGIC_CMD="$MAGIC_CMD" 4148 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4149 ac_dummy="/usr/bin:$PATH" 4150 for ac_dir in $ac_dummy; do 4151 test -z "$ac_dir" && ac_dir=. 4152 if test -f $ac_dir/file; then 4153 lt_cv_path_MAGIC_CMD="$ac_dir/file" 4154 if test -n "$file_magic_test_file"; then 4155 case $deplibs_check_method in 4156 "file_magic "*) 4157 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 4158 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 4159 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 4160 egrep "$file_magic_regex" > /dev/null; then 4161 : 4162 else 4163 cat <<EOF 1>&2 4164 4165*** Warning: the command libtool uses to detect shared libraries, 4166*** $file_magic_cmd, produces output that libtool cannot recognize. 4167*** The result is that libtool may fail to recognize shared libraries 4168*** as such. This will affect the creation of libtool libraries that 4169*** depend on shared libraries, but programs linked with such libtool 4170*** libraries will work regardless of this problem. Nevertheless, you 4171*** may want to report the problem to your system manager and/or to 4172*** bug-libtool@gnu.org 4173 4174EOF 4175 fi ;; 4176 esac 4177 fi 4178 break 4179 fi 4180 done 4181 IFS="$ac_save_ifs" 4182 MAGIC_CMD="$ac_save_MAGIC_CMD" 4183 ;; 4184esac 4185fi 4186 4187MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 4188if test -n "$MAGIC_CMD"; then 4189 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 4190echo "${ECHO_T}$MAGIC_CMD" >&6 4191else 4192 echo "$as_me:$LINENO: result: no" >&5 4193echo "${ECHO_T}no" >&6 4194fi 4195 4196 else 4197 MAGIC_CMD=: 4198 fi 4199fi 4200 4201 fi 4202 ;; 4203esac 4204 4205if test -n "$ac_tool_prefix"; then 4206 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4207set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4208echo "$as_me:$LINENO: checking for $ac_word" >&5 4209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4210if test "${ac_cv_prog_RANLIB+set}" = set; then 4211 echo $ECHO_N "(cached) $ECHO_C" >&6 4212else 4213 if test -n "$RANLIB"; then 4214 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4215else 4216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4217for as_dir in $PATH 4218do 4219 IFS=$as_save_IFS 4220 test -z "$as_dir" && as_dir=. 4221 for ac_exec_ext in '' $ac_executable_extensions; do 4222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4223 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4225 break 2 4226 fi 4227done 4228done 4229 4230fi 4231fi 4232RANLIB=$ac_cv_prog_RANLIB 4233if test -n "$RANLIB"; then 4234 echo "$as_me:$LINENO: result: $RANLIB" >&5 4235echo "${ECHO_T}$RANLIB" >&6 4236else 4237 echo "$as_me:$LINENO: result: no" >&5 4238echo "${ECHO_T}no" >&6 4239fi 4240 4241fi 4242if test -z "$ac_cv_prog_RANLIB"; then 4243 ac_ct_RANLIB=$RANLIB 4244 # Extract the first word of "ranlib", so it can be a program name with args. 4245set dummy ranlib; ac_word=$2 4246echo "$as_me:$LINENO: checking for $ac_word" >&5 4247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4248if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 4249 echo $ECHO_N "(cached) $ECHO_C" >&6 4250else 4251 if test -n "$ac_ct_RANLIB"; then 4252 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4253else 4254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4255for as_dir in $PATH 4256do 4257 IFS=$as_save_IFS 4258 test -z "$as_dir" && as_dir=. 4259 for ac_exec_ext in '' $ac_executable_extensions; do 4260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4261 ac_cv_prog_ac_ct_RANLIB="ranlib" 4262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4263 break 2 4264 fi 4265done 4266done 4267 4268 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 4269fi 4270fi 4271ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4272if test -n "$ac_ct_RANLIB"; then 4273 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 4274echo "${ECHO_T}$ac_ct_RANLIB" >&6 4275else 4276 echo "$as_me:$LINENO: result: no" >&5 4277echo "${ECHO_T}no" >&6 4278fi 4279 4280 RANLIB=$ac_ct_RANLIB 4281else 4282 RANLIB="$ac_cv_prog_RANLIB" 4283fi 4284 4285if test -n "$ac_tool_prefix"; then 4286 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4287set dummy ${ac_tool_prefix}strip; ac_word=$2 4288echo "$as_me:$LINENO: checking for $ac_word" >&5 4289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4290if test "${ac_cv_prog_STRIP+set}" = set; then 4291 echo $ECHO_N "(cached) $ECHO_C" >&6 4292else 4293 if test -n "$STRIP"; then 4294 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4295else 4296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4297for as_dir in $PATH 4298do 4299 IFS=$as_save_IFS 4300 test -z "$as_dir" && as_dir=. 4301 for ac_exec_ext in '' $ac_executable_extensions; do 4302 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4303 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4305 break 2 4306 fi 4307done 4308done 4309 4310fi 4311fi 4312STRIP=$ac_cv_prog_STRIP 4313if test -n "$STRIP"; then 4314 echo "$as_me:$LINENO: result: $STRIP" >&5 4315echo "${ECHO_T}$STRIP" >&6 4316else 4317 echo "$as_me:$LINENO: result: no" >&5 4318echo "${ECHO_T}no" >&6 4319fi 4320 4321fi 4322if test -z "$ac_cv_prog_STRIP"; then 4323 ac_ct_STRIP=$STRIP 4324 # Extract the first word of "strip", so it can be a program name with args. 4325set dummy strip; ac_word=$2 4326echo "$as_me:$LINENO: checking for $ac_word" >&5 4327echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4328if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 4329 echo $ECHO_N "(cached) $ECHO_C" >&6 4330else 4331 if test -n "$ac_ct_STRIP"; then 4332 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4333else 4334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4335for as_dir in $PATH 4336do 4337 IFS=$as_save_IFS 4338 test -z "$as_dir" && as_dir=. 4339 for ac_exec_ext in '' $ac_executable_extensions; do 4340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4341 ac_cv_prog_ac_ct_STRIP="strip" 4342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4343 break 2 4344 fi 4345done 4346done 4347 4348 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 4349fi 4350fi 4351ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4352if test -n "$ac_ct_STRIP"; then 4353 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 4354echo "${ECHO_T}$ac_ct_STRIP" >&6 4355else 4356 echo "$as_me:$LINENO: result: no" >&5 4357echo "${ECHO_T}no" >&6 4358fi 4359 4360 STRIP=$ac_ct_STRIP 4361else 4362 STRIP="$ac_cv_prog_STRIP" 4363fi 4364 4365 4366enable_dlopen=no 4367enable_win32_dll=no 4368 4369# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 4370if test "${enable_libtool_lock+set}" = set; then 4371 enableval="$enable_libtool_lock" 4372 4373fi; 4374test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4375 4376# Some flags need to be propagated to the compiler or linker for good 4377# libtool support. 4378case $host in 4379*-*-irix6*) 4380 # Find out which ABI we are using. 4381 echo '#line 4381 "configure"' > conftest.$ac_ext 4382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4383 (eval $ac_compile) 2>&5 4384 ac_status=$? 4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4386 (exit $ac_status); }; then 4387 case `/usr/bin/file conftest.$ac_objext` in 4388 *32-bit*) 4389 LD="${LD-ld} -32" 4390 ;; 4391 *N32*) 4392 LD="${LD-ld} -n32" 4393 ;; 4394 *64-bit*) 4395 LD="${LD-ld} -64" 4396 ;; 4397 esac 4398 fi 4399 rm -rf conftest* 4400 ;; 4401 4402*-*-sco3.2v5*) 4403 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4404 SAVE_CFLAGS="$CFLAGS" 4405 CFLAGS="$CFLAGS -belf" 4406 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4407echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 4408if test "${lt_cv_cc_needs_belf+set}" = set; then 4409 echo $ECHO_N "(cached) $ECHO_C" >&6 4410else 4411 4412 4413 ac_ext=c 4414ac_cpp='$CPP $CPPFLAGS' 4415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4417ac_compiler_gnu=$ac_cv_c_compiler_gnu 4418 4419 cat >conftest.$ac_ext <<_ACEOF 4420#line $LINENO "configure" 4421#include "confdefs.h" 4422 4423#ifdef F77_DUMMY_MAIN 4424# ifdef __cplusplus 4425 extern "C" 4426# endif 4427 int F77_DUMMY_MAIN() { return 1; } 4428#endif 4429int 4430main () 4431{ 4432 4433 ; 4434 return 0; 4435} 4436_ACEOF 4437rm -f conftest.$ac_objext conftest$ac_exeext 4438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4439 (eval $ac_link) 2>&5 4440 ac_status=$? 4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4442 (exit $ac_status); } && 4443 { ac_try='test -s conftest$ac_exeext' 4444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4445 (eval $ac_try) 2>&5 4446 ac_status=$? 4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4448 (exit $ac_status); }; }; then 4449 lt_cv_cc_needs_belf=yes 4450else 4451 echo "$as_me: failed program was:" >&5 4452cat conftest.$ac_ext >&5 4453lt_cv_cc_needs_belf=no 4454fi 4455rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4456 ac_ext=c 4457ac_cpp='$CPP $CPPFLAGS' 4458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4460ac_compiler_gnu=$ac_cv_c_compiler_gnu 4461 4462fi 4463echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4464echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 4465 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4466 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4467 CFLAGS="$SAVE_CFLAGS" 4468 fi 4469 ;; 4470 4471 4472esac 4473 4474# Sed substitution that helps us do robust quoting. It backslashifies 4475# metacharacters that are still active within double-quoted strings. 4476Xsed='sed -e s/^X//' 4477sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 4478 4479# Same as above, but do not quote variable references. 4480double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 4481 4482# Sed substitution to delay expansion of an escaped shell variable in a 4483# double_quote_subst'ed string. 4484delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4485 4486# Constants: 4487rm="rm -f" 4488 4489# Global variables: 4490default_ofile=libtool 4491can_build_shared=yes 4492 4493# All known linkers require a `.a' archive for static linking (except M$VC, 4494# which needs '.lib'). 4495libext=a 4496ltmain="$ac_aux_dir/ltmain.sh" 4497ofile="$default_ofile" 4498with_gnu_ld="$lt_cv_prog_gnu_ld" 4499need_locks="$enable_libtool_lock" 4500 4501old_CC="$CC" 4502old_CFLAGS="$CFLAGS" 4503 4504# Set sane defaults for various variables 4505test -z "$AR" && AR=ar 4506test -z "$AR_FLAGS" && AR_FLAGS=cru 4507test -z "$AS" && AS=as 4508test -z "$CC" && CC=cc 4509test -z "$DLLTOOL" && DLLTOOL=dlltool 4510test -z "$LD" && LD=ld 4511test -z "$LN_S" && LN_S="ln -s" 4512test -z "$MAGIC_CMD" && MAGIC_CMD=file 4513test -z "$NM" && NM=nm 4514test -z "$OBJDUMP" && OBJDUMP=objdump 4515test -z "$RANLIB" && RANLIB=: 4516test -z "$STRIP" && STRIP=: 4517test -z "$ac_objext" && ac_objext=o 4518 4519if test x"$host" != x"$build"; then 4520 ac_tool_prefix=${host_alias}- 4521else 4522 ac_tool_prefix= 4523fi 4524 4525# Transform linux* to *-*-linux-gnu*, to support old configure scripts. 4526case $host_os in 4527linux-gnu*) ;; 4528linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` 4529esac 4530 4531case $host_os in 4532aix3*) 4533 # AIX sometimes has problems with the GCC collect2 program. For some 4534 # reason, if we set the COLLECT_NAMES environment variable, the problems 4535 # vanish in a puff of smoke. 4536 if test "X${COLLECT_NAMES+set}" != Xset; then 4537 COLLECT_NAMES= 4538 export COLLECT_NAMES 4539 fi 4540 ;; 4541esac 4542 4543# Determine commands to create old-style static archives. 4544old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 4545old_postinstall_cmds='chmod 644 $oldlib' 4546old_postuninstall_cmds= 4547 4548if test -n "$RANLIB"; then 4549 case $host_os in 4550 openbsd*) 4551 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 4552 ;; 4553 *) 4554 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 4555 ;; 4556 esac 4557 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 4558fi 4559 4560# Allow CC to be a program name with arguments. 4561set dummy $CC 4562compiler="$2" 4563 4564echo "$as_me:$LINENO: checking for objdir" >&5 4565echo $ECHO_N "checking for objdir... $ECHO_C" >&6 4566rm -f .libs 2>/dev/null 4567mkdir .libs 2>/dev/null 4568if test -d .libs; then 4569 objdir=.libs 4570else 4571 # MS-DOS does not allow filenames that begin with a dot. 4572 objdir=_libs 4573fi 4574rmdir .libs 2>/dev/null 4575echo "$as_me:$LINENO: result: $objdir" >&5 4576echo "${ECHO_T}$objdir" >&6 4577 4578 4579 4580# Check whether --with-pic or --without-pic was given. 4581if test "${with_pic+set}" = set; then 4582 withval="$with_pic" 4583 pic_mode="$withval" 4584else 4585 pic_mode=default 4586fi; 4587test -z "$pic_mode" && pic_mode=default 4588 4589# We assume here that the value for lt_cv_prog_cc_pic will not be cached 4590# in isolation, and that seeing it set (from the cache) indicates that 4591# the associated values are set (in the cache) correctly too. 4592echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 4593echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 4594if test "${lt_cv_prog_cc_pic+set}" = set; then 4595 echo $ECHO_N "(cached) $ECHO_C" >&6 4596else 4597 lt_cv_prog_cc_pic= 4598 lt_cv_prog_cc_shlib= 4599 lt_cv_prog_cc_wl= 4600 lt_cv_prog_cc_static= 4601 lt_cv_prog_cc_no_builtin= 4602 lt_cv_prog_cc_can_build_shared=$can_build_shared 4603 4604 if test "$GCC" = yes; then 4605 lt_cv_prog_cc_wl='-Wl,' 4606 lt_cv_prog_cc_static='-static' 4607 4608 case $host_os in 4609 aix*) 4610 # Below there is a dirty hack to force normal static linking with -ldl 4611 # The problem is because libdl dynamically linked with both libc and 4612 # libC (AIX C++ library), which obviously doesn't included in libraries 4613 # list by gcc. This cause undefined symbols with -static flags. 4614 # This hack allows C programs to be linked with "-static -ldl", but 4615 # not sure about C++ programs. 4616 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" 4617 ;; 4618 amigaos*) 4619 # FIXME: we need at least 68020 code to build shared libraries, but 4620 # adding the `-m68020' flag to GCC prevents building anything better, 4621 # like `-m68040'. 4622 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' 4623 ;; 4624 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 4625 # PIC is the default for these OSes. 4626 ;; 4627 darwin* | rhapsody*) 4628 # PIC is the default on this platform 4629 # Common symbols not allowed in MH_DYLIB files 4630 lt_cv_prog_cc_pic='-fno-common' 4631 ;; 4632 cygwin* | mingw* | pw32* | os2*) 4633 # This hack is so that the source file can tell whether it is being 4634 # built for inclusion in a dll (and should export symbols for example). 4635 lt_cv_prog_cc_pic='-DDLL_EXPORT' 4636 ;; 4637 sysv4*MP*) 4638 if test -d /usr/nec; then 4639 lt_cv_prog_cc_pic=-Kconform_pic 4640 fi 4641 ;; 4642 *) 4643 lt_cv_prog_cc_pic='-fPIC' 4644 ;; 4645 esac 4646 else 4647 # PORTME Check for PIC flags for the system compiler. 4648 case $host_os in 4649 aix3* | aix4* | aix5*) 4650 lt_cv_prog_cc_wl='-Wl,' 4651 # All AIX code is PIC. 4652 if test "$host_cpu" = ia64; then 4653 # AIX 5 now supports IA64 processor 4654 lt_cv_prog_cc_static='-Bstatic' 4655 else 4656 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' 4657 fi 4658 ;; 4659 4660 hpux9* | hpux10* | hpux11*) 4661 # Is there a better lt_cv_prog_cc_static that works with the bundled CC? 4662 lt_cv_prog_cc_wl='-Wl,' 4663 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" 4664 lt_cv_prog_cc_pic='+Z' 4665 ;; 4666 4667 irix5* | irix6* | nonstopux*) 4668 lt_cv_prog_cc_wl='-Wl,' 4669 lt_cv_prog_cc_static='-non_shared' 4670 # PIC (with -KPIC) is the default. 4671 ;; 4672 4673 cygwin* | mingw* | pw32* | os2*) 4674 # This hack is so that the source file can tell whether it is being 4675 # built for inclusion in a dll (and should export symbols for example). 4676 lt_cv_prog_cc_pic='-DDLL_EXPORT' 4677 ;; 4678 4679 newsos6) 4680 lt_cv_prog_cc_pic='-KPIC' 4681 lt_cv_prog_cc_static='-Bstatic' 4682 ;; 4683 4684 osf3* | osf4* | osf5*) 4685 # All OSF/1 code is PIC. 4686 lt_cv_prog_cc_wl='-Wl,' 4687 lt_cv_prog_cc_static='-non_shared' 4688 ;; 4689 4690 sco3.2v5*) 4691 lt_cv_prog_cc_pic='-Kpic' 4692 lt_cv_prog_cc_static='-dn' 4693 lt_cv_prog_cc_shlib='-belf' 4694 ;; 4695 4696 solaris*) 4697 lt_cv_prog_cc_pic='-KPIC' 4698 lt_cv_prog_cc_static='-Bstatic' 4699 lt_cv_prog_cc_wl='-Wl,' 4700 ;; 4701 4702 sunos4*) 4703 lt_cv_prog_cc_pic='-PIC' 4704 lt_cv_prog_cc_static='-Bstatic' 4705 lt_cv_prog_cc_wl='-Qoption ld ' 4706 ;; 4707 4708 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 4709 lt_cv_prog_cc_pic='-KPIC' 4710 lt_cv_prog_cc_static='-Bstatic' 4711 if test "x$host_vendor" = xsni; then 4712 lt_cv_prog_cc_wl='-LD' 4713 else 4714 lt_cv_prog_cc_wl='-Wl,' 4715 fi 4716 ;; 4717 4718 uts4*) 4719 lt_cv_prog_cc_pic='-pic' 4720 lt_cv_prog_cc_static='-Bstatic' 4721 ;; 4722 4723 sysv4*MP*) 4724 if test -d /usr/nec ;then 4725 lt_cv_prog_cc_pic='-Kconform_pic' 4726 lt_cv_prog_cc_static='-Bstatic' 4727 fi 4728 ;; 4729 4730 *) 4731 lt_cv_prog_cc_can_build_shared=no 4732 ;; 4733 esac 4734 fi 4735 4736fi 4737 4738if test -z "$lt_cv_prog_cc_pic"; then 4739 echo "$as_me:$LINENO: result: none" >&5 4740echo "${ECHO_T}none" >&6 4741else 4742 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5 4743echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6 4744 4745 # Check to make sure the pic_flag actually works. 4746 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5 4747echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6 4748 if test "${lt_cv_prog_cc_pic_works+set}" = set; then 4749 echo $ECHO_N "(cached) $ECHO_C" >&6 4750else 4751 save_CFLAGS="$CFLAGS" 4752 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" 4753 cat >conftest.$ac_ext <<_ACEOF 4754#line $LINENO "configure" 4755#include "confdefs.h" 4756 4757#ifdef F77_DUMMY_MAIN 4758# ifdef __cplusplus 4759 extern "C" 4760# endif 4761 int F77_DUMMY_MAIN() { return 1; } 4762#endif 4763int 4764main () 4765{ 4766 4767 ; 4768 return 0; 4769} 4770_ACEOF 4771rm -f conftest.$ac_objext 4772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4773 (eval $ac_compile) 2>&5 4774 ac_status=$? 4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4776 (exit $ac_status); } && 4777 { ac_try='test -s conftest.$ac_objext' 4778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4779 (eval $ac_try) 2>&5 4780 ac_status=$? 4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4782 (exit $ac_status); }; }; then 4783 case $host_os in 4784 hpux9* | hpux10* | hpux11*) 4785 # On HP-UX, both CC and GCC only warn that PIC is supported... then 4786 # they create non-PIC objects. So, if there were any warnings, we 4787 # assume that PIC is not supported. 4788 if test -s conftest.err; then 4789 lt_cv_prog_cc_pic_works=no 4790 else 4791 lt_cv_prog_cc_pic_works=yes 4792 fi 4793 ;; 4794 *) 4795 lt_cv_prog_cc_pic_works=yes 4796 ;; 4797 esac 4798 4799else 4800 echo "$as_me: failed program was:" >&5 4801cat conftest.$ac_ext >&5 4802 lt_cv_prog_cc_pic_works=no 4803 4804fi 4805rm -f conftest.$ac_objext conftest.$ac_ext 4806 CFLAGS="$save_CFLAGS" 4807 4808fi 4809 4810 4811 if test "X$lt_cv_prog_cc_pic_works" = Xno; then 4812 lt_cv_prog_cc_pic= 4813 lt_cv_prog_cc_can_build_shared=no 4814 else 4815 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" 4816 fi 4817 4818 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5 4819echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6 4820fi 4821 4822# Check for any special shared library compilation flags. 4823if test -n "$lt_cv_prog_cc_shlib"; then 4824 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5 4825echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;} 4826 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then : 4827 else 4828 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 4829echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 4830 lt_cv_prog_cc_can_build_shared=no 4831 fi 4832fi 4833 4834echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5 4835echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6 4836if test "${lt_cv_prog_cc_static_works+set}" = set; then 4837 echo $ECHO_N "(cached) $ECHO_C" >&6 4838else 4839 lt_cv_prog_cc_static_works=no 4840 save_LDFLAGS="$LDFLAGS" 4841 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" 4842 cat >conftest.$ac_ext <<_ACEOF 4843#line $LINENO "configure" 4844#include "confdefs.h" 4845 4846#ifdef F77_DUMMY_MAIN 4847# ifdef __cplusplus 4848 extern "C" 4849# endif 4850 int F77_DUMMY_MAIN() { return 1; } 4851#endif 4852int 4853main () 4854{ 4855 4856 ; 4857 return 0; 4858} 4859_ACEOF 4860rm -f conftest.$ac_objext conftest$ac_exeext 4861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4862 (eval $ac_link) 2>&5 4863 ac_status=$? 4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4865 (exit $ac_status); } && 4866 { ac_try='test -s conftest$ac_exeext' 4867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4868 (eval $ac_try) 2>&5 4869 ac_status=$? 4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4871 (exit $ac_status); }; }; then 4872 lt_cv_prog_cc_static_works=yes 4873else 4874 echo "$as_me: failed program was:" >&5 4875cat conftest.$ac_ext >&5 4876fi 4877rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4878 LDFLAGS="$save_LDFLAGS" 4879 4880fi 4881 4882 4883# Belt *and* braces to stop my trousers falling down: 4884test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= 4885echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5 4886echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6 4887 4888pic_flag="$lt_cv_prog_cc_pic" 4889special_shlib_compile_flags="$lt_cv_prog_cc_shlib" 4890wl="$lt_cv_prog_cc_wl" 4891link_static_flag="$lt_cv_prog_cc_static" 4892no_builtin_flag="$lt_cv_prog_cc_no_builtin" 4893can_build_shared="$lt_cv_prog_cc_can_build_shared" 4894 4895 4896# Check to see if options -o and -c are simultaneously supported by compiler 4897echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 4898echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 4899if test "${lt_cv_compiler_c_o+set}" = set; then 4900 echo $ECHO_N "(cached) $ECHO_C" >&6 4901else 4902 4903$rm -r conftest 2>/dev/null 4904mkdir conftest 4905cd conftest 4906echo "int some_variable = 0;" > conftest.$ac_ext 4907mkdir out 4908# According to Tom Tromey, Ian Lance Taylor reported there are C compilers 4909# that will create temporary files in the current directory regardless of 4910# the output directory. Thus, making CWD read-only will cause this test 4911# to fail, enabling locking or at least warning the user not to do parallel 4912# builds. 4913chmod -w . 4914save_CFLAGS="$CFLAGS" 4915CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" 4916compiler_c_o=no 4917if { (eval echo configure:4917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then 4918 # The compiler can only warn and ignore the option if not recognized 4919 # So say no if there are warnings 4920 if test -s out/conftest.err; then 4921 lt_cv_compiler_c_o=no 4922 else 4923 lt_cv_compiler_c_o=yes 4924 fi 4925else 4926 # Append any errors to the config.log. 4927 cat out/conftest.err 1>&5 4928 lt_cv_compiler_c_o=no 4929fi 4930CFLAGS="$save_CFLAGS" 4931chmod u+w . 4932$rm conftest* out/* 4933rmdir out 4934cd .. 4935rmdir conftest 4936$rm -r conftest 2>/dev/null 4937 4938fi 4939 4940compiler_c_o=$lt_cv_compiler_c_o 4941echo "$as_me:$LINENO: result: $compiler_c_o" >&5 4942echo "${ECHO_T}$compiler_c_o" >&6 4943 4944if test x"$compiler_c_o" = x"yes"; then 4945 # Check to see if we can write to a .lo 4946 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5 4947echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6 4948 if test "${lt_cv_compiler_o_lo+set}" = set; then 4949 echo $ECHO_N "(cached) $ECHO_C" >&6 4950else 4951 4952 lt_cv_compiler_o_lo=no 4953 save_CFLAGS="$CFLAGS" 4954 CFLAGS="$CFLAGS -c -o conftest.lo" 4955 save_objext="$ac_objext" 4956 ac_objext=lo 4957 cat >conftest.$ac_ext <<_ACEOF 4958#line $LINENO "configure" 4959#include "confdefs.h" 4960 4961#ifdef F77_DUMMY_MAIN 4962# ifdef __cplusplus 4963 extern "C" 4964# endif 4965 int F77_DUMMY_MAIN() { return 1; } 4966#endif 4967int 4968main () 4969{ 4970int some_variable = 0; 4971 ; 4972 return 0; 4973} 4974_ACEOF 4975rm -f conftest.$ac_objext 4976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4977 (eval $ac_compile) 2>&5 4978 ac_status=$? 4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4980 (exit $ac_status); } && 4981 { ac_try='test -s conftest.$ac_objext' 4982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4983 (eval $ac_try) 2>&5 4984 ac_status=$? 4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4986 (exit $ac_status); }; }; then 4987 # The compiler can only warn and ignore the option if not recognized 4988 # So say no if there are warnings 4989 if test -s conftest.err; then 4990 lt_cv_compiler_o_lo=no 4991 else 4992 lt_cv_compiler_o_lo=yes 4993 fi 4994 4995else 4996 echo "$as_me: failed program was:" >&5 4997cat conftest.$ac_ext >&5 4998fi 4999rm -f conftest.$ac_objext conftest.$ac_ext 5000 ac_objext="$save_objext" 5001 CFLAGS="$save_CFLAGS" 5002 5003fi 5004 5005 compiler_o_lo=$lt_cv_compiler_o_lo 5006 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5 5007echo "${ECHO_T}$compiler_o_lo" >&6 5008else 5009 compiler_o_lo=no 5010fi 5011 5012# Check to see if we can do hard links to lock some files if needed 5013hard_links="nottested" 5014if test "$compiler_c_o" = no && test "$need_locks" != no; then 5015 # do not overwrite the value of need_locks provided by the user 5016 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 5017echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 5018 hard_links=yes 5019 $rm conftest* 5020 ln conftest.a conftest.b 2>/dev/null && hard_links=no 5021 touch conftest.a 5022 ln conftest.a conftest.b 2>&5 || hard_links=no 5023 ln conftest.a conftest.b 2>/dev/null && hard_links=no 5024 echo "$as_me:$LINENO: result: $hard_links" >&5 5025echo "${ECHO_T}$hard_links" >&6 5026 if test "$hard_links" = no; then 5027 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 5028echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 5029 need_locks=warn 5030 fi 5031else 5032 need_locks=no 5033fi 5034 5035if test "$GCC" = yes; then 5036 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler 5037 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 5038echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 5039 echo "int some_variable = 0;" > conftest.$ac_ext 5040 save_CFLAGS="$CFLAGS" 5041 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" 5042 compiler_rtti_exceptions=no 5043 cat >conftest.$ac_ext <<_ACEOF 5044#line $LINENO "configure" 5045#include "confdefs.h" 5046 5047#ifdef F77_DUMMY_MAIN 5048# ifdef __cplusplus 5049 extern "C" 5050# endif 5051 int F77_DUMMY_MAIN() { return 1; } 5052#endif 5053int 5054main () 5055{ 5056int some_variable = 0; 5057 ; 5058 return 0; 5059} 5060_ACEOF 5061rm -f conftest.$ac_objext 5062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5063 (eval $ac_compile) 2>&5 5064 ac_status=$? 5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5066 (exit $ac_status); } && 5067 { ac_try='test -s conftest.$ac_objext' 5068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5069 (eval $ac_try) 2>&5 5070 ac_status=$? 5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5072 (exit $ac_status); }; }; then 5073 # The compiler can only warn and ignore the option if not recognized 5074 # So say no if there are warnings 5075 if test -s conftest.err; then 5076 compiler_rtti_exceptions=no 5077 else 5078 compiler_rtti_exceptions=yes 5079 fi 5080 5081else 5082 echo "$as_me: failed program was:" >&5 5083cat conftest.$ac_ext >&5 5084fi 5085rm -f conftest.$ac_objext conftest.$ac_ext 5086 CFLAGS="$save_CFLAGS" 5087 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5 5088echo "${ECHO_T}$compiler_rtti_exceptions" >&6 5089 5090 if test "$compiler_rtti_exceptions" = "yes"; then 5091 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' 5092 else 5093 no_builtin_flag=' -fno-builtin' 5094 fi 5095fi 5096 5097# See if the linker supports building shared libraries. 5098echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5 5099echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6 5100 5101allow_undefined_flag= 5102no_undefined_flag= 5103need_lib_prefix=unknown 5104need_version=unknown 5105# when you set need_version to no, make sure it does not cause -set_version 5106# flags to be left without arguments 5107archive_cmds= 5108archive_expsym_cmds= 5109old_archive_from_new_cmds= 5110old_archive_from_expsyms_cmds= 5111export_dynamic_flag_spec= 5112whole_archive_flag_spec= 5113thread_safe_flag_spec= 5114hardcode_into_libs=no 5115hardcode_libdir_flag_spec= 5116hardcode_libdir_separator= 5117hardcode_direct=no 5118hardcode_minus_L=no 5119hardcode_shlibpath_var=unsupported 5120runpath_var= 5121link_all_deplibs=unknown 5122always_export_symbols=no 5123export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' 5124# include_expsyms should be a list of space-separated symbols to be *always* 5125# included in the symbol list 5126include_expsyms= 5127# exclude_expsyms can be an egrep regular expression of symbols to exclude 5128# it will be wrapped by ` (' and `)$', so one must not match beginning or 5129# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 5130# as well as any symbol that contains `d'. 5131exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 5132# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 5133# platforms (ab)use it in PIC code, but their linkers get confused if 5134# the symbol is explicitly referenced. Since portable code cannot 5135# rely on this symbol name, it's probably fine to never include it in 5136# preloaded symbol tables. 5137extract_expsyms_cmds= 5138 5139case $host_os in 5140cygwin* | mingw* | pw32*) 5141 # FIXME: the MSVC++ port hasn't been tested in a loooong time 5142 # When not using gcc, we currently assume that we are using 5143 # Microsoft Visual C++. 5144 if test "$GCC" != yes; then 5145 with_gnu_ld=no 5146 fi 5147 ;; 5148openbsd*) 5149 with_gnu_ld=no 5150 ;; 5151esac 5152 5153ld_shlibs=yes 5154if test "$with_gnu_ld" = yes; then 5155 # If archive_cmds runs LD, not CC, wlarc should be empty 5156 wlarc='${wl}' 5157 5158 # See if GNU ld supports shared libraries. 5159 case $host_os in 5160 aix3* | aix4* | aix5*) 5161 # On AIX, the GNU linker is very broken 5162 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available. 5163 ld_shlibs=no 5164 cat <<EOF 1>&2 5165 5166*** Warning: the GNU linker, at least up to release 2.9.1, is reported 5167*** to be unable to reliably create shared libraries on AIX. 5168*** Therefore, libtool is disabling shared libraries support. If you 5169*** really care for shared libraries, you may want to modify your PATH 5170*** so that a non-GNU linker is found, and then restart. 5171 5172EOF 5173 ;; 5174 5175 amigaos*) 5176 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)' 5177 hardcode_libdir_flag_spec='-L$libdir' 5178 hardcode_minus_L=yes 5179 5180 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 5181 # that the semantics of dynamic libraries on AmigaOS, at least up 5182 # to version 4, is to share data among multiple programs linked 5183 # with the same dynamic library. Since this doesn't match the 5184 # behavior of shared libraries on other platforms, we can use 5185 # them. 5186 ld_shlibs=no 5187 ;; 5188 5189 beos*) 5190 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 5191 allow_undefined_flag=unsupported 5192 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 5193 # support --undefined. This deserves some investigation. FIXME 5194 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5195 else 5196 ld_shlibs=no 5197 fi 5198 ;; 5199 5200 cygwin* | mingw* | pw32*) 5201 # hardcode_libdir_flag_spec is actually meaningless, as there is 5202 # no search path for DLLs. 5203 hardcode_libdir_flag_spec='-L$libdir' 5204 allow_undefined_flag=unsupported 5205 always_export_symbols=yes 5206 5207 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ 5208 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ 5209 test -f $output_objdir/impgen.exe || (cd $output_objdir && \ 5210 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ 5211 else $CC -o impgen impgen.c ; fi)~ 5212 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' 5213 5214 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' 5215 5216 # cygwin and mingw dlls have different entry points and sets of symbols 5217 # to exclude. 5218 # FIXME: what about values for MSVC? 5219 dll_entry=__cygwin_dll_entry@12 5220 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ 5221 case $host_os in 5222 mingw*) 5223 # mingw values 5224 dll_entry=_DllMainCRTStartup@12 5225 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ 5226 ;; 5227 esac 5228 5229 # mingw and cygwin differ, and it's simplest to just exclude the union 5230 # of the two symbol sets. 5231 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 5232 5233 # recent cygwin and mingw systems supply a stub DllMain which the user 5234 # can override, but on older systems we have to supply one (in ltdll.c) 5235 if test "x$lt_cv_need_dllmain" = "xyes"; then 5236 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " 5237 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~ 5238 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' 5239 else 5240 ltdll_obj= 5241 ltdll_cmds= 5242 fi 5243 5244 # Extract the symbol export list from an `--export-all' def file, 5245 # then regenerate the def file from the symbol export list, so that 5246 # the compiled dll only exports the symbol export list. 5247 # Be careful not to strip the DATA tag left be newer dlltools. 5248 export_symbols_cmds="$ltdll_cmds"' 5249 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ 5250 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' 5251 5252 # If the export-symbols file already is a .def file (1st line 5253 # is EXPORTS), use it as is. 5254 # If DATA tags from a recent dlltool are present, honour them! 5255 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then 5256 cp $export_symbols $output_objdir/$soname-def; 5257 else 5258 echo EXPORTS > $output_objdir/$soname-def; 5259 _lt_hint=1; 5260 cat $export_symbols | while read symbol; do 5261 set dummy \$symbol; 5262 case \$# in 5263 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; 5264 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; 5265 esac; 5266 _lt_hint=`expr 1 + \$_lt_hint`; 5267 done; 5268 fi~ 5269 '"$ltdll_cmds"' 5270 $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~ 5271 $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~ 5272 $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~ 5273 $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~ 5274 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' 5275 ;; 5276 5277 netbsd*) 5278 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 5279 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 5280 wlarc= 5281 else 5282 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5283 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 5284 fi 5285 ;; 5286 5287 solaris* | sysv5*) 5288 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then 5289 ld_shlibs=no 5290 cat <<EOF 1>&2 5291 5292*** Warning: The releases 2.8.* of the GNU linker cannot reliably 5293*** create shared libraries on Solaris systems. Therefore, libtool 5294*** is disabling shared libraries support. We urge you to upgrade GNU 5295*** binutils to release 2.9.1 or newer. Another option is to modify 5296*** your PATH or compiler configuration so that the native linker is 5297*** used, and then restart. 5298 5299EOF 5300 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 5301 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5302 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 5303 else 5304 ld_shlibs=no 5305 fi 5306 ;; 5307 5308 sunos4*) 5309 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 5310 wlarc= 5311 hardcode_direct=yes 5312 hardcode_shlibpath_var=no 5313 ;; 5314 5315 *) 5316 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 5317 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5318 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 5319 else 5320 ld_shlibs=no 5321 fi 5322 ;; 5323 esac 5324 5325 if test "$ld_shlibs" = yes; then 5326 runpath_var=LD_RUN_PATH 5327 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 5328 export_dynamic_flag_spec='${wl}--export-dynamic' 5329 case $host_os in 5330 cygwin* | mingw* | pw32*) 5331 # dlltool doesn't understand --whole-archive et. al. 5332 whole_archive_flag_spec= 5333 ;; 5334 *) 5335 # ancient GNU ld didn't support --whole-archive et. al. 5336 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then 5337 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 5338 else 5339 whole_archive_flag_spec= 5340 fi 5341 ;; 5342 esac 5343 fi 5344else 5345 # PORTME fill in a description of your system's linker (not GNU ld) 5346 case $host_os in 5347 aix3*) 5348 allow_undefined_flag=unsupported 5349 always_export_symbols=yes 5350 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' 5351 # Note: this linker hardcodes the directories in LIBPATH if there 5352 # are no directories specified by -L. 5353 hardcode_minus_L=yes 5354 if test "$GCC" = yes && test -z "$link_static_flag"; then 5355 # Neither direct hardcoding nor static linking is supported with a 5356 # broken collect2. 5357 hardcode_direct=unsupported 5358 fi 5359 ;; 5360 5361 aix4* | aix5*) 5362 if test "$host_cpu" = ia64; then 5363 # On IA64, the linker does run time linking by default, so we don't 5364 # have to do anything special. 5365 aix_use_runtimelinking=no 5366 exp_sym_flag='-Bexport' 5367 no_entry_flag="" 5368 else 5369 aix_use_runtimelinking=no 5370 5371 # Test if we are trying to use run time linking or normal 5372 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 5373 # need to do runtime linking. 5374 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 5375 for ld_flag in $LDFLAGS; do 5376 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 5377 aix_use_runtimelinking=yes 5378 break 5379 fi 5380 done 5381 esac 5382 5383 exp_sym_flag='-bexport' 5384 no_entry_flag='-bnoentry' 5385 fi 5386 5387 # When large executables or shared objects are built, AIX ld can 5388 # have problems creating the table of contents. If linking a library 5389 # or program results in "error TOC overflow" add -mminimal-toc to 5390 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 5391 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 5392 5393 hardcode_direct=yes 5394 archive_cmds='' 5395 hardcode_libdir_separator=':' 5396 if test "$GCC" = yes; then 5397 case $host_os in aix4.[012]|aix4.[012].*) 5398 collect2name=`${CC} -print-prog-name=collect2` 5399 if test -f "$collect2name" && \ 5400 strings "$collect2name" | grep resolve_lib_name >/dev/null 5401 then 5402 # We have reworked collect2 5403 hardcode_direct=yes 5404 else 5405 # We have old collect2 5406 hardcode_direct=unsupported 5407 # It fails to find uninstalled libraries when the uninstalled 5408 # path is not listed in the libpath. Setting hardcode_minus_L 5409 # to unsupported forces relinking 5410 hardcode_minus_L=yes 5411 hardcode_libdir_flag_spec='-L$libdir' 5412 hardcode_libdir_separator= 5413 fi 5414 esac 5415 5416 shared_flag='-shared' 5417 else 5418 # not using gcc 5419 if test "$host_cpu" = ia64; then 5420 shared_flag='${wl}-G' 5421 else 5422 if test "$aix_use_runtimelinking" = yes; then 5423 shared_flag='${wl}-G' 5424 else 5425 shared_flag='${wl}-bM:SRE' 5426 fi 5427 fi 5428 fi 5429 5430 # It seems that -bexpall can do strange things, so it is better to 5431 # generate a list of symbols to export. 5432 always_export_symbols=yes 5433 if test "$aix_use_runtimelinking" = yes; then 5434 # Warning - without using the other runtime loading flags (-brtl), 5435 # -berok will link without error, but may produce a broken library. 5436 allow_undefined_flag='-berok' 5437 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' 5438 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" 5439 else 5440 if test "$host_cpu" = ia64; then 5441 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 5442 allow_undefined_flag="-z nodefs" 5443 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" 5444 else 5445 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' 5446 # Warning - without using the other run time loading flags, 5447 # -berok will link without error, but may produce a broken library. 5448 allow_undefined_flag='${wl}-berok' 5449 # This is a bit strange, but is similar to how AIX traditionally builds 5450 # it's shared libraries. 5451 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' 5452 fi 5453 fi 5454 ;; 5455 5456 amigaos*) 5457 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)' 5458 hardcode_libdir_flag_spec='-L$libdir' 5459 hardcode_minus_L=yes 5460 # see comment about different semantics on the GNU ld section 5461 ld_shlibs=no 5462 ;; 5463 5464 cygwin* | mingw* | pw32*) 5465 # When not using gcc, we currently assume that we are using 5466 # Microsoft Visual C++. 5467 # hardcode_libdir_flag_spec is actually meaningless, as there is 5468 # no search path for DLLs. 5469 hardcode_libdir_flag_spec=' ' 5470 allow_undefined_flag=unsupported 5471 # Tell ltmain to make .lib files, not .a files. 5472 libext=lib 5473 # FIXME: Setting linknames here is a bad hack. 5474 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 5475 # The linker will automatically build a .lib file if we build a DLL. 5476 old_archive_from_new_cmds='true' 5477 # FIXME: Should let the user specify the lib program. 5478 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 5479 fix_srcfile_path='`cygpath -w "$srcfile"`' 5480 ;; 5481 5482 darwin* | rhapsody*) 5483 case "$host_os" in 5484 rhapsody* | darwin1.[012]) 5485 allow_undefined_flag='-undefined suppress' 5486 ;; 5487 *) # Darwin 1.3 on 5488 allow_undefined_flag='-flat_namespace -undefined suppress' 5489 ;; 5490 esac 5491 # FIXME: Relying on posixy $() will cause problems for 5492 # cross-compilation, but unfortunately the echo tests do not 5493 # yet detect zsh echo's removal of \ escapes. Also zsh mangles 5494 # `"' quotes if we put them in here... so don't! 5495 archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring' 5496 # We need to add '_' to the symbols in $export_symbols first 5497 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' 5498 hardcode_direct=yes 5499 hardcode_shlibpath_var=no 5500 whole_archive_flag_spec='-all_load $convenience' 5501 ;; 5502 5503 freebsd1*) 5504 ld_shlibs=no 5505 ;; 5506 5507 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 5508 # support. Future versions do this automatically, but an explicit c++rt0.o 5509 # does not break anything, and helps significantly (at the cost of a little 5510 # extra space). 5511 freebsd2.2*) 5512 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 5513 hardcode_libdir_flag_spec='-R$libdir' 5514 hardcode_direct=yes 5515 hardcode_shlibpath_var=no 5516 ;; 5517 5518 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 5519 freebsd2*) 5520 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 5521 hardcode_direct=yes 5522 hardcode_minus_L=yes 5523 hardcode_shlibpath_var=no 5524 ;; 5525 5526 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 5527 freebsd*) 5528 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 5529 hardcode_libdir_flag_spec='-R$libdir' 5530 hardcode_direct=yes 5531 hardcode_shlibpath_var=no 5532 ;; 5533 5534 hpux9* | hpux10* | hpux11*) 5535 case $host_os in 5536 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' ;; 5537 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; 5538 esac 5539 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 5540 hardcode_libdir_separator=: 5541 hardcode_direct=yes 5542 hardcode_minus_L=yes # Not in the search PATH, but as the default 5543 # location of the library. 5544 export_dynamic_flag_spec='${wl}-E' 5545 ;; 5546 5547 irix5* | irix6* | nonstopux*) 5548 if test "$GCC" = yes; then 5549 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' 5550 else 5551 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' 5552 fi 5553 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 5554 hardcode_libdir_separator=: 5555 link_all_deplibs=yes 5556 ;; 5557 5558 netbsd*) 5559 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 5560 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 5561 else 5562 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 5563 fi 5564 hardcode_libdir_flag_spec='-R$libdir' 5565 hardcode_direct=yes 5566 hardcode_shlibpath_var=no 5567 ;; 5568 5569 newsos6) 5570 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5571 hardcode_direct=yes 5572 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 5573 hardcode_libdir_separator=: 5574 hardcode_shlibpath_var=no 5575 ;; 5576 5577 openbsd*) 5578 hardcode_direct=yes 5579 hardcode_shlibpath_var=no 5580 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5581 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' 5582 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 5583 export_dynamic_flag_spec='${wl}-E' 5584 else 5585 case "$host_os" in 5586 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 5587 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 5588 hardcode_libdir_flag_spec='-R$libdir' 5589 ;; 5590 *) 5591 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' 5592 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 5593 ;; 5594 esac 5595 fi 5596 ;; 5597 5598 os2*) 5599 hardcode_libdir_flag_spec='-L$libdir' 5600 hardcode_minus_L=yes 5601 allow_undefined_flag=unsupported 5602 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' 5603 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 5604 ;; 5605 5606 osf3*) 5607 if test "$GCC" = yes; then 5608 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 5609 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' 5610 else 5611 allow_undefined_flag=' -expect_unresolved \*' 5612 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' 5613 fi 5614 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 5615 hardcode_libdir_separator=: 5616 ;; 5617 5618 osf4* | osf5*) # as osf3* with the addition of -msym flag 5619 if test "$GCC" = yes; then 5620 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 5621 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' 5622 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 5623 else 5624 allow_undefined_flag=' -expect_unresolved \*' 5625 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' 5626 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 5627 $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' 5628 5629 #Both c and cxx compiler support -rpath directly 5630 hardcode_libdir_flag_spec='-rpath $libdir' 5631 fi 5632 hardcode_libdir_separator=: 5633 ;; 5634 5635 sco3.2v5*) 5636 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5637 hardcode_shlibpath_var=no 5638 runpath_var=LD_RUN_PATH 5639 hardcode_runpath_var=yes 5640 export_dynamic_flag_spec='${wl}-Bexport' 5641 ;; 5642 5643 solaris*) 5644 # gcc --version < 3.0 without binutils cannot create self contained 5645 # shared libraries reliably, requiring libgcc.a to resolve some of 5646 # the object symbols generated in some cases. Libraries that use 5647 # assert need libgcc.a to resolve __eprintf, for example. Linking 5648 # a copy of libgcc.a into every shared library to guarantee resolving 5649 # such symbols causes other problems: According to Tim Van Holder 5650 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate 5651 # (to the application) exception stack for one thing. 5652 no_undefined_flag=' -z defs' 5653 if test "$GCC" = yes; then 5654 case `$CC --version 2>/dev/null` in 5655 [12].*) 5656 cat <<EOF 1>&2 5657 5658*** Warning: Releases of GCC earlier than version 3.0 cannot reliably 5659*** create self contained shared libraries on Solaris systems, without 5660*** introducing a dependency on libgcc.a. Therefore, libtool is disabling 5661*** -no-undefined support, which will at least allow you to build shared 5662*** libraries. However, you may find that when you link such libraries 5663*** into an application without using GCC, you have to manually add 5664*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to 5665*** upgrade to a newer version of GCC. Another option is to rebuild your 5666*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer. 5667 5668EOF 5669 no_undefined_flag= 5670 ;; 5671 esac 5672 fi 5673 # $CC -shared without GNU ld will not create a library from C++ 5674 # object files and a static libstdc++, better avoid it by now 5675 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 5676 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 5677 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 5678 hardcode_libdir_flag_spec='-R$libdir' 5679 hardcode_shlibpath_var=no 5680 case $host_os in 5681 solaris2.[0-5] | solaris2.[0-5].*) ;; 5682 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 5683 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 5684 esac 5685 link_all_deplibs=yes 5686 ;; 5687 5688 sunos4*) 5689 if test "x$host_vendor" = xsequent; then 5690 # Use $CC to link under sequent, because it throws in some extra .o 5691 # files that make .init and .fini sections work. 5692 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 5693 else 5694 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 5695 fi 5696 hardcode_libdir_flag_spec='-L$libdir' 5697 hardcode_direct=yes 5698 hardcode_minus_L=yes 5699 hardcode_shlibpath_var=no 5700 ;; 5701 5702 sysv4) 5703 if test "x$host_vendor" = xsno; then 5704 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags' 5705 hardcode_direct=yes # is this really true??? 5706 else 5707 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5708 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 5709 fi 5710 runpath_var='LD_RUN_PATH' 5711 hardcode_shlibpath_var=no 5712 ;; 5713 5714 sysv4.3*) 5715 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5716 hardcode_shlibpath_var=no 5717 export_dynamic_flag_spec='-Bexport' 5718 ;; 5719 5720 sysv5*) 5721 no_undefined_flag=' -z text' 5722 # $CC -shared without GNU ld will not create a library from C++ 5723 # object files and a static libstdc++, better avoid it by now 5724 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 5725 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 5726 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 5727 hardcode_libdir_flag_spec= 5728 hardcode_shlibpath_var=no 5729 runpath_var='LD_RUN_PATH' 5730 ;; 5731 5732 uts4*) 5733 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5734 hardcode_libdir_flag_spec='-L$libdir' 5735 hardcode_shlibpath_var=no 5736 ;; 5737 5738 dgux*) 5739 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5740 hardcode_libdir_flag_spec='-L$libdir' 5741 hardcode_shlibpath_var=no 5742 ;; 5743 5744 sysv4*MP*) 5745 if test -d /usr/nec; then 5746 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5747 hardcode_shlibpath_var=no 5748 runpath_var=LD_RUN_PATH 5749 hardcode_runpath_var=yes 5750 ld_shlibs=yes 5751 fi 5752 ;; 5753 5754 sysv4.2uw2*) 5755 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 5756 hardcode_direct=yes 5757 hardcode_minus_L=no 5758 hardcode_shlibpath_var=no 5759 hardcode_runpath_var=yes 5760 runpath_var=LD_RUN_PATH 5761 ;; 5762 5763 sysv5uw7* | unixware7*) 5764 no_undefined_flag='${wl}-z ${wl}text' 5765 if test "$GCC" = yes; then 5766 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 5767 else 5768 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 5769 fi 5770 runpath_var='LD_RUN_PATH' 5771 hardcode_shlibpath_var=no 5772 ;; 5773 5774 *) 5775 ld_shlibs=no 5776 ;; 5777 esac 5778fi 5779echo "$as_me:$LINENO: result: $ld_shlibs" >&5 5780echo "${ECHO_T}$ld_shlibs" >&6 5781test "$ld_shlibs" = no && can_build_shared=no 5782 5783# Check hardcoding attributes. 5784echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 5785echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 5786hardcode_action= 5787if test -n "$hardcode_libdir_flag_spec" || \ 5788 test -n "$runpath_var"; then 5789 5790 # We can hardcode non-existant directories. 5791 if test "$hardcode_direct" != no && 5792 # If the only mechanism to avoid hardcoding is shlibpath_var, we 5793 # have to relink, otherwise we might link with an installed library 5794 # when we should be linking with a yet-to-be-installed one 5795 ## test "$hardcode_shlibpath_var" != no && 5796 test "$hardcode_minus_L" != no; then 5797 # Linking always hardcodes the temporary library directory. 5798 hardcode_action=relink 5799 else 5800 # We can link without hardcoding, and we can hardcode nonexisting dirs. 5801 hardcode_action=immediate 5802 fi 5803else 5804 # We cannot hardcode anything, or else we can only hardcode existing 5805 # directories. 5806 hardcode_action=unsupported 5807fi 5808echo "$as_me:$LINENO: result: $hardcode_action" >&5 5809echo "${ECHO_T}$hardcode_action" >&6 5810 5811striplib= 5812old_striplib= 5813echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 5814echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 5815if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 5816 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 5817 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 5818 echo "$as_me:$LINENO: result: yes" >&5 5819echo "${ECHO_T}yes" >&6 5820else 5821 echo "$as_me:$LINENO: result: no" >&5 5822echo "${ECHO_T}no" >&6 5823fi 5824 5825reload_cmds='$LD$reload_flag -o $output$reload_objs' 5826test -z "$deplibs_check_method" && deplibs_check_method=unknown 5827 5828# PORTME Fill in your ld.so characteristics 5829echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 5830echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 5831library_names_spec= 5832libname_spec='lib$name' 5833soname_spec= 5834postinstall_cmds= 5835postuninstall_cmds= 5836finish_cmds= 5837finish_eval= 5838shlibpath_var= 5839shlibpath_overrides_runpath=unknown 5840version_type=none 5841dynamic_linker="$host_os ld.so" 5842sys_lib_dlsearch_path_spec="/lib /usr/lib" 5843sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 5844 5845case $host_os in 5846aix3*) 5847 version_type=linux 5848 library_names_spec='${libname}${release}.so$versuffix $libname.a' 5849 shlibpath_var=LIBPATH 5850 5851 # AIX has no versioning support, so we append a major version to the name. 5852 soname_spec='${libname}${release}.so$major' 5853 ;; 5854 5855aix4* | aix5*) 5856 version_type=linux 5857 if test "$host_cpu" = ia64; then 5858 # AIX 5 supports IA64 5859 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' 5860 shlibpath_var=LD_LIBRARY_PATH 5861 else 5862 # With GCC up to 2.95.x, collect2 would create an import file 5863 # for dependence libraries. The import file would start with 5864 # the line `#! .'. This would cause the generated library to 5865 # depend on `.', always an invalid library. This was fixed in 5866 # development snapshots of GCC prior to 3.0. 5867 case $host_os in 5868 aix4 | aix4.[01] | aix4.[01].*) 5869 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 5870 echo ' yes ' 5871 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 5872 : 5873 else 5874 can_build_shared=no 5875 fi 5876 ;; 5877 esac 5878 # AIX (on Power*) has no versioning support, so currently we can 5879 # not hardcode correct soname into executable. Probably we can 5880 # add versioning support to collect2, so additional links can 5881 # be useful in future. 5882 if test "$aix_use_runtimelinking" = yes; then 5883 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 5884 # instead of lib<name>.a to let people know that these are not 5885 # typical AIX shared libraries. 5886 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 5887 else 5888 # We preserve .a as extension for shared libraries through AIX4.2 5889 # and later when we are not doing run time linking. 5890 library_names_spec='${libname}${release}.a $libname.a' 5891 soname_spec='${libname}${release}.so$major' 5892 fi 5893 shlibpath_var=LIBPATH 5894 fi 5895 ;; 5896 5897amigaos*) 5898 library_names_spec='$libname.ixlibrary $libname.a' 5899 # Create ${libname}_ixlibrary.a entries in /sys/libs. 5900 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' 5901 ;; 5902 5903beos*) 5904 library_names_spec='${libname}.so' 5905 dynamic_linker="$host_os ld.so" 5906 shlibpath_var=LIBRARY_PATH 5907 ;; 5908 5909bsdi4*) 5910 version_type=linux 5911 need_version=no 5912 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 5913 soname_spec='${libname}${release}.so$major' 5914 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 5915 shlibpath_var=LD_LIBRARY_PATH 5916 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 5917 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 5918 export_dynamic_flag_spec=-rdynamic 5919 # the default ld.so.conf also contains /usr/contrib/lib and 5920 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 5921 # libtool to hard-code these into programs 5922 ;; 5923 5924cygwin* | mingw* | pw32*) 5925 version_type=windows 5926 need_version=no 5927 need_lib_prefix=no 5928 case $GCC,$host_os in 5929 yes,cygwin*) 5930 library_names_spec='$libname.dll.a' 5931 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' 5932 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ 5933 dldir=$destdir/`dirname \$dlpath`~ 5934 test -d \$dldir || mkdir -p \$dldir~ 5935 $install_prog .libs/$dlname \$dldir/$dlname' 5936 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ 5937 dlpath=$dir/\$dldll~ 5938 $rm \$dlpath' 5939 ;; 5940 yes,mingw*) 5941 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' 5942 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"` 5943 ;; 5944 yes,pw32*) 5945 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' 5946 ;; 5947 *) 5948 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' 5949 ;; 5950 esac 5951 dynamic_linker='Win32 ld.exe' 5952 # FIXME: first we should search . and the directory the executable is in 5953 shlibpath_var=PATH 5954 ;; 5955 5956darwin* | rhapsody*) 5957 dynamic_linker="$host_os dyld" 5958 version_type=darwin 5959 need_lib_prefix=no 5960 need_version=no 5961 # FIXME: Relying on posixy $() will cause problems for 5962 # cross-compilation, but unfortunately the echo tests do not 5963 # yet detect zsh echo's removal of \ escapes. 5964 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)' 5965 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' 5966 shlibpath_overrides_runpath=yes 5967 shlibpath_var=DYLD_LIBRARY_PATH 5968 ;; 5969 5970freebsd1*) 5971 dynamic_linker=no 5972 ;; 5973 5974freebsd*) 5975 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 5976 version_type=freebsd-$objformat 5977 case $version_type in 5978 freebsd-elf*) 5979 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' 5980 need_version=no 5981 need_lib_prefix=no 5982 ;; 5983 freebsd-*) 5984 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' 5985 need_version=yes 5986 ;; 5987 esac 5988 shlibpath_var=LD_LIBRARY_PATH 5989 case $host_os in 5990 freebsd2*) 5991 shlibpath_overrides_runpath=yes 5992 ;; 5993 *) 5994 shlibpath_overrides_runpath=no 5995 hardcode_into_libs=yes 5996 ;; 5997 esac 5998 ;; 5999 6000gnu*) 6001 version_type=linux 6002 need_lib_prefix=no 6003 need_version=no 6004 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' 6005 soname_spec='${libname}${release}.so$major' 6006 shlibpath_var=LD_LIBRARY_PATH 6007 hardcode_into_libs=yes 6008 ;; 6009 6010hpux9* | hpux10* | hpux11*) 6011 # Give a soname corresponding to the major version so that dld.sl refuses to 6012 # link against other versions. 6013 dynamic_linker="$host_os dld.sl" 6014 version_type=sunos 6015 need_lib_prefix=no 6016 need_version=no 6017 shlibpath_var=SHLIB_PATH 6018 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 6019 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' 6020 soname_spec='${libname}${release}.sl$major' 6021 # HP-UX runs *really* slowly unless shared libraries are mode 555. 6022 postinstall_cmds='chmod 555 $lib' 6023 ;; 6024 6025irix5* | irix6* | nonstopux*) 6026 case $host_os in 6027 nonstopux*) version_type=nonstopux ;; 6028 *) version_type=irix ;; 6029 esac 6030 need_lib_prefix=no 6031 need_version=no 6032 soname_spec='${libname}${release}.so$major' 6033 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' 6034 case $host_os in 6035 irix5* | nonstopux*) 6036 libsuff= shlibsuff= 6037 ;; 6038 *) 6039 case $LD in # libtool.m4 will add one of these switches to LD 6040 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; 6041 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; 6042 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; 6043 *) libsuff= shlibsuff= libmagic=never-match;; 6044 esac 6045 ;; 6046 esac 6047 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 6048 shlibpath_overrides_runpath=no 6049 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 6050 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 6051 ;; 6052 6053# No shared lib support for Linux oldld, aout, or coff. 6054linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) 6055 dynamic_linker=no 6056 ;; 6057 6058# This must be Linux ELF. 6059linux-gnu*) 6060 version_type=linux 6061 need_lib_prefix=no 6062 need_version=no 6063 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6064 soname_spec='${libname}${release}.so$major' 6065 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 6066 shlibpath_var=LD_LIBRARY_PATH 6067 shlibpath_overrides_runpath=no 6068 # This implies no fast_install, which is unacceptable. 6069 # Some rework will be needed to allow for fast_install 6070 # before this can be enabled. 6071 hardcode_into_libs=yes 6072 6073 # We used to test for /lib/ld.so.1 and disable shared libraries on 6074 # powerpc, because MkLinux only supported shared libraries with the 6075 # GNU dynamic linker. Since this was broken with cross compilers, 6076 # most powerpc-linux boxes support dynamic linking these days and 6077 # people can always --disable-shared, the test was removed, and we 6078 # assume the GNU/Linux dynamic linker is in use. 6079 dynamic_linker='GNU/Linux ld.so' 6080 ;; 6081 6082netbsd*) 6083 version_type=sunos 6084 need_lib_prefix=no 6085 need_version=no 6086 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6087 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' 6088 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 6089 dynamic_linker='NetBSD (a.out) ld.so' 6090 else 6091 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' 6092 soname_spec='${libname}${release}.so$major' 6093 dynamic_linker='NetBSD ld.elf_so' 6094 fi 6095 shlibpath_var=LD_LIBRARY_PATH 6096 shlibpath_overrides_runpath=yes 6097 hardcode_into_libs=yes 6098 ;; 6099 6100newsos6) 6101 version_type=linux 6102 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6103 shlibpath_var=LD_LIBRARY_PATH 6104 shlibpath_overrides_runpath=yes 6105 ;; 6106 6107openbsd*) 6108 version_type=sunos 6109 need_lib_prefix=no 6110 need_version=no 6111 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6112 case "$host_os" in 6113 openbsd2.[89] | openbsd2.[89].*) 6114 shlibpath_overrides_runpath=no 6115 ;; 6116 *) 6117 shlibpath_overrides_runpath=yes 6118 ;; 6119 esac 6120 else 6121 shlibpath_overrides_runpath=yes 6122 fi 6123 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' 6124 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 6125 shlibpath_var=LD_LIBRARY_PATH 6126 ;; 6127 6128os2*) 6129 libname_spec='$name' 6130 need_lib_prefix=no 6131 library_names_spec='$libname.dll $libname.a' 6132 dynamic_linker='OS/2 ld.exe' 6133 shlibpath_var=LIBPATH 6134 ;; 6135 6136osf3* | osf4* | osf5*) 6137 version_type=osf 6138 need_version=no 6139 need_lib_prefix=no 6140 soname_spec='${libname}${release}.so' 6141 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' 6142 shlibpath_var=LD_LIBRARY_PATH 6143 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 6144 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 6145 ;; 6146 6147sco3.2v5*) 6148 version_type=osf 6149 soname_spec='${libname}${release}.so$major' 6150 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6151 shlibpath_var=LD_LIBRARY_PATH 6152 ;; 6153 6154solaris*) 6155 version_type=linux 6156 need_lib_prefix=no 6157 need_version=no 6158 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6159 soname_spec='${libname}${release}.so$major' 6160 shlibpath_var=LD_LIBRARY_PATH 6161 shlibpath_overrides_runpath=yes 6162 hardcode_into_libs=yes 6163 # ldd complains unless libraries are executable 6164 postinstall_cmds='chmod +x $lib' 6165 ;; 6166 6167sunos4*) 6168 version_type=sunos 6169 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' 6170 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 6171 shlibpath_var=LD_LIBRARY_PATH 6172 shlibpath_overrides_runpath=yes 6173 if test "$with_gnu_ld" = yes; then 6174 need_lib_prefix=no 6175 fi 6176 need_version=yes 6177 ;; 6178 6179sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 6180 version_type=linux 6181 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6182 soname_spec='${libname}${release}.so$major' 6183 shlibpath_var=LD_LIBRARY_PATH 6184 case $host_vendor in 6185 sni) 6186 shlibpath_overrides_runpath=no 6187 ;; 6188 motorola) 6189 need_lib_prefix=no 6190 need_version=no 6191 shlibpath_overrides_runpath=no 6192 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 6193 ;; 6194 esac 6195 ;; 6196 6197uts4*) 6198 version_type=linux 6199 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6200 soname_spec='${libname}${release}.so$major' 6201 shlibpath_var=LD_LIBRARY_PATH 6202 ;; 6203 6204dgux*) 6205 version_type=linux 6206 need_lib_prefix=no 6207 need_version=no 6208 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6209 soname_spec='${libname}${release}.so$major' 6210 shlibpath_var=LD_LIBRARY_PATH 6211 ;; 6212 6213sysv4*MP*) 6214 if test -d /usr/nec ;then 6215 version_type=linux 6216 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' 6217 soname_spec='$libname.so.$major' 6218 shlibpath_var=LD_LIBRARY_PATH 6219 fi 6220 ;; 6221 6222*) 6223 dynamic_linker=no 6224 ;; 6225esac 6226echo "$as_me:$LINENO: result: $dynamic_linker" >&5 6227echo "${ECHO_T}$dynamic_linker" >&6 6228test "$dynamic_linker" = no && can_build_shared=no 6229 6230# Report the final consequences. 6231echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 6232echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 6233echo "$as_me:$LINENO: result: $can_build_shared" >&5 6234echo "${ECHO_T}$can_build_shared" >&6 6235 6236echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 6237echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 6238test "$can_build_shared" = "no" && enable_shared=no 6239 6240# On AIX, shared libraries and static libraries use the same namespace, and 6241# are all built from PIC. 6242case "$host_os" in 6243aix3*) 6244 test "$enable_shared" = yes && enable_static=no 6245 if test -n "$RANLIB"; then 6246 archive_cmds="$archive_cmds~\$RANLIB \$lib" 6247 postinstall_cmds='$RANLIB $lib' 6248 fi 6249 ;; 6250 6251aix4*) 6252 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 6253 test "$enable_shared" = yes && enable_static=no 6254 fi 6255 ;; 6256esac 6257echo "$as_me:$LINENO: result: $enable_shared" >&5 6258echo "${ECHO_T}$enable_shared" >&6 6259 6260echo "$as_me:$LINENO: checking whether to build static libraries" >&5 6261echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 6262# Make sure either enable_shared or enable_static is yes. 6263test "$enable_shared" = yes || enable_static=yes 6264echo "$as_me:$LINENO: result: $enable_static" >&5 6265echo "${ECHO_T}$enable_static" >&6 6266 6267if test "$hardcode_action" = relink; then 6268 # Fast installation is not supported 6269 enable_fast_install=no 6270elif test "$shlibpath_overrides_runpath" = yes || 6271 test "$enable_shared" = no; then 6272 # Fast installation is not necessary 6273 enable_fast_install=needless 6274fi 6275 6276variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 6277if test "$GCC" = yes; then 6278 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 6279fi 6280 6281if test "x$enable_dlopen" != xyes; then 6282 enable_dlopen=unknown 6283 enable_dlopen_self=unknown 6284 enable_dlopen_self_static=unknown 6285else 6286 lt_cv_dlopen=no 6287 lt_cv_dlopen_libs= 6288 6289 case $host_os in 6290 beos*) 6291 lt_cv_dlopen="load_add_on" 6292 lt_cv_dlopen_libs= 6293 lt_cv_dlopen_self=yes 6294 ;; 6295 6296 cygwin* | mingw* | pw32*) 6297 lt_cv_dlopen="LoadLibrary" 6298 lt_cv_dlopen_libs= 6299 ;; 6300 6301 *) 6302 echo "$as_me:$LINENO: checking for shl_load" >&5 6303echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 6304if test "${ac_cv_func_shl_load+set}" = set; then 6305 echo $ECHO_N "(cached) $ECHO_C" >&6 6306else 6307 cat >conftest.$ac_ext <<_ACEOF 6308#line $LINENO "configure" 6309#include "confdefs.h" 6310/* System header to define __stub macros and hopefully few prototypes, 6311 which can conflict with char shl_load (); below. */ 6312#include <assert.h> 6313/* Override any gcc2 internal prototype to avoid an error. */ 6314#ifdef __cplusplus 6315extern "C" 6316#endif 6317/* We use char because int might match the return type of a gcc2 6318 builtin and then its argument prototype would still apply. */ 6319char shl_load (); 6320char (*f) (); 6321 6322#ifdef F77_DUMMY_MAIN 6323# ifdef __cplusplus 6324 extern "C" 6325# endif 6326 int F77_DUMMY_MAIN() { return 1; } 6327#endif 6328int 6329main () 6330{ 6331/* The GNU C library defines this for functions which it implements 6332 to always fail with ENOSYS. Some functions are actually named 6333 something starting with __ and the normal name is an alias. */ 6334#if defined (__stub_shl_load) || defined (__stub___shl_load) 6335choke me 6336#else 6337f = shl_load; 6338#endif 6339 6340 ; 6341 return 0; 6342} 6343_ACEOF 6344rm -f conftest.$ac_objext conftest$ac_exeext 6345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6346 (eval $ac_link) 2>&5 6347 ac_status=$? 6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6349 (exit $ac_status); } && 6350 { ac_try='test -s conftest$ac_exeext' 6351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6352 (eval $ac_try) 2>&5 6353 ac_status=$? 6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6355 (exit $ac_status); }; }; then 6356 ac_cv_func_shl_load=yes 6357else 6358 echo "$as_me: failed program was:" >&5 6359cat conftest.$ac_ext >&5 6360ac_cv_func_shl_load=no 6361fi 6362rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6363fi 6364echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 6365echo "${ECHO_T}$ac_cv_func_shl_load" >&6 6366if test $ac_cv_func_shl_load = yes; then 6367 lt_cv_dlopen="shl_load" 6368else 6369 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 6370echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 6371if test "${ac_cv_lib_dld_shl_load+set}" = set; then 6372 echo $ECHO_N "(cached) $ECHO_C" >&6 6373else 6374 ac_check_lib_save_LIBS=$LIBS 6375LIBS="-ldld $LIBS" 6376cat >conftest.$ac_ext <<_ACEOF 6377#line $LINENO "configure" 6378#include "confdefs.h" 6379 6380/* Override any gcc2 internal prototype to avoid an error. */ 6381#ifdef __cplusplus 6382extern "C" 6383#endif 6384/* We use char because int might match the return type of a gcc2 6385 builtin and then its argument prototype would still apply. */ 6386char shl_load (); 6387#ifdef F77_DUMMY_MAIN 6388# ifdef __cplusplus 6389 extern "C" 6390# endif 6391 int F77_DUMMY_MAIN() { return 1; } 6392#endif 6393int 6394main () 6395{ 6396shl_load (); 6397 ; 6398 return 0; 6399} 6400_ACEOF 6401rm -f conftest.$ac_objext conftest$ac_exeext 6402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6403 (eval $ac_link) 2>&5 6404 ac_status=$? 6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6406 (exit $ac_status); } && 6407 { ac_try='test -s conftest$ac_exeext' 6408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6409 (eval $ac_try) 2>&5 6410 ac_status=$? 6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6412 (exit $ac_status); }; }; then 6413 ac_cv_lib_dld_shl_load=yes 6414else 6415 echo "$as_me: failed program was:" >&5 6416cat conftest.$ac_ext >&5 6417ac_cv_lib_dld_shl_load=no 6418fi 6419rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6420LIBS=$ac_check_lib_save_LIBS 6421fi 6422echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 6423echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 6424if test $ac_cv_lib_dld_shl_load = yes; then 6425 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 6426else 6427 echo "$as_me:$LINENO: checking for dlopen" >&5 6428echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 6429if test "${ac_cv_func_dlopen+set}" = set; then 6430 echo $ECHO_N "(cached) $ECHO_C" >&6 6431else 6432 cat >conftest.$ac_ext <<_ACEOF 6433#line $LINENO "configure" 6434#include "confdefs.h" 6435/* System header to define __stub macros and hopefully few prototypes, 6436 which can conflict with char dlopen (); below. */ 6437#include <assert.h> 6438/* Override any gcc2 internal prototype to avoid an error. */ 6439#ifdef __cplusplus 6440extern "C" 6441#endif 6442/* We use char because int might match the return type of a gcc2 6443 builtin and then its argument prototype would still apply. */ 6444char dlopen (); 6445char (*f) (); 6446 6447#ifdef F77_DUMMY_MAIN 6448# ifdef __cplusplus 6449 extern "C" 6450# endif 6451 int F77_DUMMY_MAIN() { return 1; } 6452#endif 6453int 6454main () 6455{ 6456/* The GNU C library defines this for functions which it implements 6457 to always fail with ENOSYS. Some functions are actually named 6458 something starting with __ and the normal name is an alias. */ 6459#if defined (__stub_dlopen) || defined (__stub___dlopen) 6460choke me 6461#else 6462f = dlopen; 6463#endif 6464 6465 ; 6466 return 0; 6467} 6468_ACEOF 6469rm -f conftest.$ac_objext conftest$ac_exeext 6470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6471 (eval $ac_link) 2>&5 6472 ac_status=$? 6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6474 (exit $ac_status); } && 6475 { ac_try='test -s conftest$ac_exeext' 6476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6477 (eval $ac_try) 2>&5 6478 ac_status=$? 6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6480 (exit $ac_status); }; }; then 6481 ac_cv_func_dlopen=yes 6482else 6483 echo "$as_me: failed program was:" >&5 6484cat conftest.$ac_ext >&5 6485ac_cv_func_dlopen=no 6486fi 6487rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6488fi 6489echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 6490echo "${ECHO_T}$ac_cv_func_dlopen" >&6 6491if test $ac_cv_func_dlopen = yes; then 6492 lt_cv_dlopen="dlopen" 6493else 6494 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 6495echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 6496if test "${ac_cv_lib_dl_dlopen+set}" = set; then 6497 echo $ECHO_N "(cached) $ECHO_C" >&6 6498else 6499 ac_check_lib_save_LIBS=$LIBS 6500LIBS="-ldl $LIBS" 6501cat >conftest.$ac_ext <<_ACEOF 6502#line $LINENO "configure" 6503#include "confdefs.h" 6504 6505/* Override any gcc2 internal prototype to avoid an error. */ 6506#ifdef __cplusplus 6507extern "C" 6508#endif 6509/* We use char because int might match the return type of a gcc2 6510 builtin and then its argument prototype would still apply. */ 6511char dlopen (); 6512#ifdef F77_DUMMY_MAIN 6513# ifdef __cplusplus 6514 extern "C" 6515# endif 6516 int F77_DUMMY_MAIN() { return 1; } 6517#endif 6518int 6519main () 6520{ 6521dlopen (); 6522 ; 6523 return 0; 6524} 6525_ACEOF 6526rm -f conftest.$ac_objext conftest$ac_exeext 6527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6528 (eval $ac_link) 2>&5 6529 ac_status=$? 6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6531 (exit $ac_status); } && 6532 { ac_try='test -s conftest$ac_exeext' 6533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6534 (eval $ac_try) 2>&5 6535 ac_status=$? 6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6537 (exit $ac_status); }; }; then 6538 ac_cv_lib_dl_dlopen=yes 6539else 6540 echo "$as_me: failed program was:" >&5 6541cat conftest.$ac_ext >&5 6542ac_cv_lib_dl_dlopen=no 6543fi 6544rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6545LIBS=$ac_check_lib_save_LIBS 6546fi 6547echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 6548echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 6549if test $ac_cv_lib_dl_dlopen = yes; then 6550 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 6551else 6552 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 6553echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 6554if test "${ac_cv_lib_svld_dlopen+set}" = set; then 6555 echo $ECHO_N "(cached) $ECHO_C" >&6 6556else 6557 ac_check_lib_save_LIBS=$LIBS 6558LIBS="-lsvld $LIBS" 6559cat >conftest.$ac_ext <<_ACEOF 6560#line $LINENO "configure" 6561#include "confdefs.h" 6562 6563/* Override any gcc2 internal prototype to avoid an error. */ 6564#ifdef __cplusplus 6565extern "C" 6566#endif 6567/* We use char because int might match the return type of a gcc2 6568 builtin and then its argument prototype would still apply. */ 6569char dlopen (); 6570#ifdef F77_DUMMY_MAIN 6571# ifdef __cplusplus 6572 extern "C" 6573# endif 6574 int F77_DUMMY_MAIN() { return 1; } 6575#endif 6576int 6577main () 6578{ 6579dlopen (); 6580 ; 6581 return 0; 6582} 6583_ACEOF 6584rm -f conftest.$ac_objext conftest$ac_exeext 6585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6586 (eval $ac_link) 2>&5 6587 ac_status=$? 6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6589 (exit $ac_status); } && 6590 { ac_try='test -s conftest$ac_exeext' 6591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6592 (eval $ac_try) 2>&5 6593 ac_status=$? 6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6595 (exit $ac_status); }; }; then 6596 ac_cv_lib_svld_dlopen=yes 6597else 6598 echo "$as_me: failed program was:" >&5 6599cat conftest.$ac_ext >&5 6600ac_cv_lib_svld_dlopen=no 6601fi 6602rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6603LIBS=$ac_check_lib_save_LIBS 6604fi 6605echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 6606echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 6607if test $ac_cv_lib_svld_dlopen = yes; then 6608 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 6609else 6610 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 6611echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 6612if test "${ac_cv_lib_dld_dld_link+set}" = set; then 6613 echo $ECHO_N "(cached) $ECHO_C" >&6 6614else 6615 ac_check_lib_save_LIBS=$LIBS 6616LIBS="-ldld $LIBS" 6617cat >conftest.$ac_ext <<_ACEOF 6618#line $LINENO "configure" 6619#include "confdefs.h" 6620 6621/* Override any gcc2 internal prototype to avoid an error. */ 6622#ifdef __cplusplus 6623extern "C" 6624#endif 6625/* We use char because int might match the return type of a gcc2 6626 builtin and then its argument prototype would still apply. */ 6627char dld_link (); 6628#ifdef F77_DUMMY_MAIN 6629# ifdef __cplusplus 6630 extern "C" 6631# endif 6632 int F77_DUMMY_MAIN() { return 1; } 6633#endif 6634int 6635main () 6636{ 6637dld_link (); 6638 ; 6639 return 0; 6640} 6641_ACEOF 6642rm -f conftest.$ac_objext conftest$ac_exeext 6643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6644 (eval $ac_link) 2>&5 6645 ac_status=$? 6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6647 (exit $ac_status); } && 6648 { ac_try='test -s conftest$ac_exeext' 6649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6650 (eval $ac_try) 2>&5 6651 ac_status=$? 6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6653 (exit $ac_status); }; }; then 6654 ac_cv_lib_dld_dld_link=yes 6655else 6656 echo "$as_me: failed program was:" >&5 6657cat conftest.$ac_ext >&5 6658ac_cv_lib_dld_dld_link=no 6659fi 6660rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6661LIBS=$ac_check_lib_save_LIBS 6662fi 6663echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 6664echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 6665if test $ac_cv_lib_dld_dld_link = yes; then 6666 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 6667fi 6668 6669 6670fi 6671 6672 6673fi 6674 6675 6676fi 6677 6678 6679fi 6680 6681 6682fi 6683 6684 ;; 6685 esac 6686 6687 if test "x$lt_cv_dlopen" != xno; then 6688 enable_dlopen=yes 6689 else 6690 enable_dlopen=no 6691 fi 6692 6693 case $lt_cv_dlopen in 6694 dlopen) 6695 save_CPPFLAGS="$CPPFLAGS" 6696 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 6697 6698 save_LDFLAGS="$LDFLAGS" 6699 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 6700 6701 save_LIBS="$LIBS" 6702 LIBS="$lt_cv_dlopen_libs $LIBS" 6703 6704 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 6705echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 6706if test "${lt_cv_dlopen_self+set}" = set; then 6707 echo $ECHO_N "(cached) $ECHO_C" >&6 6708else 6709 if test "$cross_compiling" = yes; then : 6710 lt_cv_dlopen_self=cross 6711else 6712 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 6713 lt_status=$lt_dlunknown 6714 cat > conftest.$ac_ext <<EOF 6715#line 6715 "configure" 6716#include "confdefs.h" 6717 6718#if HAVE_DLFCN_H 6719#include <dlfcn.h> 6720#endif 6721 6722#include <stdio.h> 6723 6724#ifdef RTLD_GLOBAL 6725# define LT_DLGLOBAL RTLD_GLOBAL 6726#else 6727# ifdef DL_GLOBAL 6728# define LT_DLGLOBAL DL_GLOBAL 6729# else 6730# define LT_DLGLOBAL 0 6731# endif 6732#endif 6733 6734/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 6735 find out it does not work in some platform. */ 6736#ifndef LT_DLLAZY_OR_NOW 6737# ifdef RTLD_LAZY 6738# define LT_DLLAZY_OR_NOW RTLD_LAZY 6739# else 6740# ifdef DL_LAZY 6741# define LT_DLLAZY_OR_NOW DL_LAZY 6742# else 6743# ifdef RTLD_NOW 6744# define LT_DLLAZY_OR_NOW RTLD_NOW 6745# else 6746# ifdef DL_NOW 6747# define LT_DLLAZY_OR_NOW DL_NOW 6748# else 6749# define LT_DLLAZY_OR_NOW 0 6750# endif 6751# endif 6752# endif 6753# endif 6754#endif 6755 6756#ifdef __cplusplus 6757extern "C" void exit (int); 6758#endif 6759 6760void fnord() { int i=42;} 6761int main () 6762{ 6763 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 6764 int status = $lt_dlunknown; 6765 6766 if (self) 6767 { 6768 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 6769 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 6770 /* dlclose (self); */ 6771 } 6772 6773 exit (status); 6774} 6775EOF 6776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6777 (eval $ac_link) 2>&5 6778 ac_status=$? 6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6780 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 6781 (./conftest; exit; ) 2>/dev/null 6782 lt_status=$? 6783 case x$lt_status in 6784 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 6785 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 6786 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 6787 esac 6788 else : 6789 # compilation failed 6790 lt_cv_dlopen_self=no 6791 fi 6792fi 6793rm -fr conftest* 6794 6795 6796fi 6797echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 6798echo "${ECHO_T}$lt_cv_dlopen_self" >&6 6799 6800 if test "x$lt_cv_dlopen_self" = xyes; then 6801 LDFLAGS="$LDFLAGS $link_static_flag" 6802 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 6803echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 6804if test "${lt_cv_dlopen_self_static+set}" = set; then 6805 echo $ECHO_N "(cached) $ECHO_C" >&6 6806else 6807 if test "$cross_compiling" = yes; then : 6808 lt_cv_dlopen_self_static=cross 6809else 6810 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 6811 lt_status=$lt_dlunknown 6812 cat > conftest.$ac_ext <<EOF 6813#line 6813 "configure" 6814#include "confdefs.h" 6815 6816#if HAVE_DLFCN_H 6817#include <dlfcn.h> 6818#endif 6819 6820#include <stdio.h> 6821 6822#ifdef RTLD_GLOBAL 6823# define LT_DLGLOBAL RTLD_GLOBAL 6824#else 6825# ifdef DL_GLOBAL 6826# define LT_DLGLOBAL DL_GLOBAL 6827# else 6828# define LT_DLGLOBAL 0 6829# endif 6830#endif 6831 6832/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 6833 find out it does not work in some platform. */ 6834#ifndef LT_DLLAZY_OR_NOW 6835# ifdef RTLD_LAZY 6836# define LT_DLLAZY_OR_NOW RTLD_LAZY 6837# else 6838# ifdef DL_LAZY 6839# define LT_DLLAZY_OR_NOW DL_LAZY 6840# else 6841# ifdef RTLD_NOW 6842# define LT_DLLAZY_OR_NOW RTLD_NOW 6843# else 6844# ifdef DL_NOW 6845# define LT_DLLAZY_OR_NOW DL_NOW 6846# else 6847# define LT_DLLAZY_OR_NOW 0 6848# endif 6849# endif 6850# endif 6851# endif 6852#endif 6853 6854#ifdef __cplusplus 6855extern "C" void exit (int); 6856#endif 6857 6858void fnord() { int i=42;} 6859int main () 6860{ 6861 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 6862 int status = $lt_dlunknown; 6863 6864 if (self) 6865 { 6866 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 6867 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 6868 /* dlclose (self); */ 6869 } 6870 6871 exit (status); 6872} 6873EOF 6874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6875 (eval $ac_link) 2>&5 6876 ac_status=$? 6877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6878 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 6879 (./conftest; exit; ) 2>/dev/null 6880 lt_status=$? 6881 case x$lt_status in 6882 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 6883 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 6884 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 6885 esac 6886 else : 6887 # compilation failed 6888 lt_cv_dlopen_self_static=no 6889 fi 6890fi 6891rm -fr conftest* 6892 6893 6894fi 6895echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 6896echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 6897 fi 6898 6899 CPPFLAGS="$save_CPPFLAGS" 6900 LDFLAGS="$save_LDFLAGS" 6901 LIBS="$save_LIBS" 6902 ;; 6903 esac 6904 6905 case $lt_cv_dlopen_self in 6906 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 6907 *) enable_dlopen_self=unknown ;; 6908 esac 6909 6910 case $lt_cv_dlopen_self_static in 6911 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 6912 *) enable_dlopen_self_static=unknown ;; 6913 esac 6914fi 6915 6916 6917if test "$enable_shared" = yes && test "$GCC" = yes; then 6918 case $archive_cmds in 6919 *'~'*) 6920 # FIXME: we may have to deal with multi-command sequences. 6921 ;; 6922 '$CC '*) 6923 # Test whether the compiler implicitly links with -lc since on some 6924 # systems, -lgcc has to come before -lc. If gcc already passes -lc 6925 # to ld, don't add -lc before -lgcc. 6926 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 6927echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 6928 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then 6929 echo $ECHO_N "(cached) $ECHO_C" >&6 6930else 6931 $rm conftest* 6932 echo 'static int dummy;' > conftest.$ac_ext 6933 6934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6935 (eval $ac_compile) 2>&5 6936 ac_status=$? 6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6938 (exit $ac_status); }; then 6939 soname=conftest 6940 lib=conftest 6941 libobjs=conftest.$ac_objext 6942 deplibs= 6943 wl=$lt_cv_prog_cc_wl 6944 compiler_flags=-v 6945 linker_flags=-v 6946 verstring= 6947 output_objdir=. 6948 libname=conftest 6949 save_allow_undefined_flag=$allow_undefined_flag 6950 allow_undefined_flag= 6951 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 6952 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 6953 ac_status=$? 6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6955 (exit $ac_status); } 6956 then 6957 lt_cv_archive_cmds_need_lc=no 6958 else 6959 lt_cv_archive_cmds_need_lc=yes 6960 fi 6961 allow_undefined_flag=$save_allow_undefined_flag 6962 else 6963 cat conftest.err 1>&5 6964 fi 6965fi 6966 6967 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5 6968echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6 6969 ;; 6970 esac 6971fi 6972need_lc=${lt_cv_archive_cmds_need_lc-yes} 6973 6974# The second clause should only fire when bootstrapping the 6975# libtool distribution, otherwise you forgot to ship ltmain.sh 6976# with your package, and you will get complaints that there are 6977# no rules to generate ltmain.sh. 6978if test -f "$ltmain"; then 6979 : 6980else 6981 # If there is no Makefile yet, we rely on a make rule to execute 6982 # `config.status --recheck' to rerun these tests and create the 6983 # libtool script then. 6984 test -f Makefile && make "$ltmain" 6985fi 6986 6987if test -f "$ltmain"; then 6988 trap "$rm \"${ofile}T\"; exit 1" 1 2 15 6989 $rm -f "${ofile}T" 6990 6991 echo creating $ofile 6992 6993 # Now quote all the things that may contain metacharacters while being 6994 # careful not to overquote the AC_SUBSTed values. We take copies of the 6995 # variables and quote the copies for generation of the libtool script. 6996 for var in echo old_CC old_CFLAGS \ 6997 AR AR_FLAGS CC LD LN_S NM SHELL \ 6998 reload_flag reload_cmds wl \ 6999 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ 7000 thread_safe_flag_spec whole_archive_flag_spec libname_spec \ 7001 library_names_spec soname_spec \ 7002 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ 7003 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \ 7004 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \ 7005 old_striplib striplib file_magic_cmd export_symbols_cmds \ 7006 deplibs_check_method allow_undefined_flag no_undefined_flag \ 7007 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ 7008 global_symbol_to_c_name_address \ 7009 hardcode_libdir_flag_spec hardcode_libdir_separator \ 7010 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 7011 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do 7012 7013 case $var in 7014 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ 7015 old_postinstall_cmds | old_postuninstall_cmds | \ 7016 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ 7017 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \ 7018 postinstall_cmds | postuninstall_cmds | \ 7019 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 7020 # Double-quote double-evaled strings. 7021 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 7022 ;; 7023 *) 7024 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 7025 ;; 7026 esac 7027 done 7028 7029 cat <<__EOF__ > "${ofile}T" 7030#! $SHELL 7031 7032# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 7033# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 7034# NOTE: Changes made to this file will be lost: look at ltmain.sh. 7035# 7036# Copyright (C) 1996-2000 Free Software Foundation, Inc. 7037# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 7038# 7039# This program is free software; you can redistribute it and/or modify 7040# it under the terms of the GNU General Public License as published by 7041# the Free Software Foundation; either version 2 of the License, or 7042# (at your option) any later version. 7043# 7044# This program is distributed in the hope that it will be useful, but 7045# WITHOUT ANY WARRANTY; without even the implied warranty of 7046# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 7047# General Public License for more details. 7048# 7049# You should have received a copy of the GNU General Public License 7050# along with this program; if not, write to the Free Software 7051# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 7052# 7053# As a special exception to the GNU General Public License, if you 7054# distribute this file as part of a program that contains a 7055# configuration script generated by Autoconf, you may include it under 7056# the same distribution terms that you use for the rest of that program. 7057 7058# Sed that helps us avoid accidentally triggering echo(1) options like -n. 7059Xsed="sed -e s/^X//" 7060 7061# The HP-UX ksh and POSIX shell print the target directory to stdout 7062# if CDPATH is set. 7063if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 7064 7065# ### BEGIN LIBTOOL CONFIG 7066 7067# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 7068 7069# Shell to use when invoking shell scripts. 7070SHELL=$lt_SHELL 7071 7072# Whether or not to build shared libraries. 7073build_libtool_libs=$enable_shared 7074 7075# Whether or not to build static libraries. 7076build_old_libs=$enable_static 7077 7078# Whether or not to add -lc for building shared libraries. 7079build_libtool_need_lc=$need_lc 7080 7081# Whether or not to optimize for fast installation. 7082fast_install=$enable_fast_install 7083 7084# The host system. 7085host_alias=$host_alias 7086host=$host 7087 7088# An echo program that does not interpret backslashes. 7089echo=$lt_echo 7090 7091# The archiver. 7092AR=$lt_AR 7093AR_FLAGS=$lt_AR_FLAGS 7094 7095# The default C compiler. 7096CC=$lt_CC 7097 7098# Is the compiler the GNU C compiler? 7099with_gcc=$GCC 7100 7101# The linker used to build libraries. 7102LD=$lt_LD 7103 7104# Whether we need hard or soft links. 7105LN_S=$lt_LN_S 7106 7107# A BSD-compatible nm program. 7108NM=$lt_NM 7109 7110# A symbol stripping program 7111STRIP=$STRIP 7112 7113# Used to examine libraries when file_magic_cmd begins "file" 7114MAGIC_CMD=$MAGIC_CMD 7115 7116# Used on cygwin: DLL creation program. 7117DLLTOOL="$DLLTOOL" 7118 7119# Used on cygwin: object dumper. 7120OBJDUMP="$OBJDUMP" 7121 7122# Used on cygwin: assembler. 7123AS="$AS" 7124 7125# The name of the directory that contains temporary libtool files. 7126objdir=$objdir 7127 7128# How to create reloadable object files. 7129reload_flag=$lt_reload_flag 7130reload_cmds=$lt_reload_cmds 7131 7132# How to pass a linker flag through the compiler. 7133wl=$lt_wl 7134 7135# Object file suffix (normally "o"). 7136objext="$ac_objext" 7137 7138# Old archive suffix (normally "a"). 7139libext="$libext" 7140 7141# Executable file suffix (normally ""). 7142exeext="$exeext" 7143 7144# Additional compiler flags for building library objects. 7145pic_flag=$lt_pic_flag 7146pic_mode=$pic_mode 7147 7148# Does compiler simultaneously support -c and -o options? 7149compiler_c_o=$lt_compiler_c_o 7150 7151# Can we write directly to a .lo ? 7152compiler_o_lo=$lt_compiler_o_lo 7153 7154# Must we lock files when doing compilation ? 7155need_locks=$lt_need_locks 7156 7157# Do we need the lib prefix for modules? 7158need_lib_prefix=$need_lib_prefix 7159 7160# Do we need a version for libraries? 7161need_version=$need_version 7162 7163# Whether dlopen is supported. 7164dlopen_support=$enable_dlopen 7165 7166# Whether dlopen of programs is supported. 7167dlopen_self=$enable_dlopen_self 7168 7169# Whether dlopen of statically linked programs is supported. 7170dlopen_self_static=$enable_dlopen_self_static 7171 7172# Compiler flag to prevent dynamic linking. 7173link_static_flag=$lt_link_static_flag 7174 7175# Compiler flag to turn off builtin functions. 7176no_builtin_flag=$lt_no_builtin_flag 7177 7178# Compiler flag to allow reflexive dlopens. 7179export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 7180 7181# Compiler flag to generate shared objects directly from archives. 7182whole_archive_flag_spec=$lt_whole_archive_flag_spec 7183 7184# Compiler flag to generate thread-safe objects. 7185thread_safe_flag_spec=$lt_thread_safe_flag_spec 7186 7187# Library versioning type. 7188version_type=$version_type 7189 7190# Format of library name prefix. 7191libname_spec=$lt_libname_spec 7192 7193# List of archive names. First name is the real one, the rest are links. 7194# The last name is the one that the linker finds with -lNAME. 7195library_names_spec=$lt_library_names_spec 7196 7197# The coded name of the library, if different from the real name. 7198soname_spec=$lt_soname_spec 7199 7200# Commands used to build and install an old-style archive. 7201RANLIB=$lt_RANLIB 7202old_archive_cmds=$lt_old_archive_cmds 7203old_postinstall_cmds=$lt_old_postinstall_cmds 7204old_postuninstall_cmds=$lt_old_postuninstall_cmds 7205 7206# Create an old-style archive from a shared archive. 7207old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 7208 7209# Create a temporary old-style archive to link instead of a shared archive. 7210old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 7211 7212# Commands used to build and install a shared archive. 7213archive_cmds=$lt_archive_cmds 7214archive_expsym_cmds=$lt_archive_expsym_cmds 7215postinstall_cmds=$lt_postinstall_cmds 7216postuninstall_cmds=$lt_postuninstall_cmds 7217 7218# Commands to strip libraries. 7219old_striplib=$lt_old_striplib 7220striplib=$lt_striplib 7221 7222# Method to check whether dependent libraries are shared objects. 7223deplibs_check_method=$lt_deplibs_check_method 7224 7225# Command to use when deplibs_check_method == file_magic. 7226file_magic_cmd=$lt_file_magic_cmd 7227 7228# Flag that allows shared libraries with undefined symbols to be built. 7229allow_undefined_flag=$lt_allow_undefined_flag 7230 7231# Flag that forces no undefined symbols. 7232no_undefined_flag=$lt_no_undefined_flag 7233 7234# Commands used to finish a libtool library installation in a directory. 7235finish_cmds=$lt_finish_cmds 7236 7237# Same as above, but a single script fragment to be evaled but not shown. 7238finish_eval=$lt_finish_eval 7239 7240# Take the output of nm and produce a listing of raw symbols and C names. 7241global_symbol_pipe=$lt_global_symbol_pipe 7242 7243# Transform the output of nm in a proper C declaration 7244global_symbol_to_cdecl=$lt_global_symbol_to_cdecl 7245 7246# Transform the output of nm in a C name address pair 7247global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address 7248 7249# This is the shared library runtime path variable. 7250runpath_var=$runpath_var 7251 7252# This is the shared library path variable. 7253shlibpath_var=$shlibpath_var 7254 7255# Is shlibpath searched before the hard-coded library search path? 7256shlibpath_overrides_runpath=$shlibpath_overrides_runpath 7257 7258# How to hardcode a shared library path into an executable. 7259hardcode_action=$hardcode_action 7260 7261# Whether we should hardcode library paths into libraries. 7262hardcode_into_libs=$hardcode_into_libs 7263 7264# Flag to hardcode \$libdir into a binary during linking. 7265# This must work even if \$libdir does not exist. 7266hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 7267 7268# Whether we need a single -rpath flag with a separated argument. 7269hardcode_libdir_separator=$lt_hardcode_libdir_separator 7270 7271# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the 7272# resulting binary. 7273hardcode_direct=$hardcode_direct 7274 7275# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 7276# resulting binary. 7277hardcode_minus_L=$hardcode_minus_L 7278 7279# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 7280# the resulting binary. 7281hardcode_shlibpath_var=$hardcode_shlibpath_var 7282 7283# Variables whose values should be saved in libtool wrapper scripts and 7284# restored at relink time. 7285variables_saved_for_relink="$variables_saved_for_relink" 7286 7287# Whether libtool must link a program against all its dependency libraries. 7288link_all_deplibs=$link_all_deplibs 7289 7290# Compile-time system search path for libraries 7291sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 7292 7293# Run-time system search path for libraries 7294sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 7295 7296# Fix the shell variable \$srcfile for the compiler. 7297fix_srcfile_path="$fix_srcfile_path" 7298 7299# Set to yes if exported symbols are required. 7300always_export_symbols=$always_export_symbols 7301 7302# The commands to list exported symbols. 7303export_symbols_cmds=$lt_export_symbols_cmds 7304 7305# The commands to extract the exported symbol list from a shared archive. 7306extract_expsyms_cmds=$lt_extract_expsyms_cmds 7307 7308# Symbols that should not be listed in the preloaded symbols. 7309exclude_expsyms=$lt_exclude_expsyms 7310 7311# Symbols that must always be exported. 7312include_expsyms=$lt_include_expsyms 7313 7314# ### END LIBTOOL CONFIG 7315 7316__EOF__ 7317 7318 case $host_os in 7319 aix3*) 7320 cat <<\EOF >> "${ofile}T" 7321 7322# AIX sometimes has problems with the GCC collect2 program. For some 7323# reason, if we set the COLLECT_NAMES environment variable, the problems 7324# vanish in a puff of smoke. 7325if test "X${COLLECT_NAMES+set}" != Xset; then 7326 COLLECT_NAMES= 7327 export COLLECT_NAMES 7328fi 7329EOF 7330 ;; 7331 esac 7332 7333 case $host_os in 7334 cygwin* | mingw* | pw32* | os2*) 7335 cat <<'EOF' >> "${ofile}T" 7336 # This is a source program that is used to create dlls on Windows 7337 # Don't remove nor modify the starting and closing comments 7338# /* ltdll.c starts here */ 7339# #define WIN32_LEAN_AND_MEAN 7340# #include <windows.h> 7341# #undef WIN32_LEAN_AND_MEAN 7342# #include <stdio.h> 7343# 7344# #ifndef __CYGWIN__ 7345# # ifdef __CYGWIN32__ 7346# # define __CYGWIN__ __CYGWIN32__ 7347# # endif 7348# #endif 7349# 7350# #ifdef __cplusplus 7351# extern "C" { 7352# #endif 7353# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); 7354# #ifdef __cplusplus 7355# } 7356# #endif 7357# 7358# #ifdef __CYGWIN__ 7359# #include <cygwin/cygwin_dll.h> 7360# DECLARE_CYGWIN_DLL( DllMain ); 7361# #endif 7362# HINSTANCE __hDllInstance_base; 7363# 7364# BOOL APIENTRY 7365# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) 7366# { 7367# __hDllInstance_base = hInst; 7368# return TRUE; 7369# } 7370# /* ltdll.c ends here */ 7371 # This is a source program that is used to create import libraries 7372 # on Windows for dlls which lack them. Don't remove nor modify the 7373 # starting and closing comments 7374# /* impgen.c starts here */ 7375# /* Copyright (C) 1999-2000 Free Software Foundation, Inc. 7376# 7377# This file is part of GNU libtool. 7378# 7379# This program is free software; you can redistribute it and/or modify 7380# it under the terms of the GNU General Public License as published by 7381# the Free Software Foundation; either version 2 of the License, or 7382# (at your option) any later version. 7383# 7384# This program is distributed in the hope that it will be useful, 7385# but WITHOUT ANY WARRANTY; without even the implied warranty of 7386# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 7387# GNU General Public License for more details. 7388# 7389# You should have received a copy of the GNU General Public License 7390# along with this program; if not, write to the Free Software 7391# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 7392# */ 7393# 7394# #include <stdio.h> /* for printf() */ 7395# #include <unistd.h> /* for open(), lseek(), read() */ 7396# #include <fcntl.h> /* for O_RDONLY, O_BINARY */ 7397# #include <string.h> /* for strdup() */ 7398# 7399# /* O_BINARY isn't required (or even defined sometimes) under Unix */ 7400# #ifndef O_BINARY 7401# #define O_BINARY 0 7402# #endif 7403# 7404# static unsigned int 7405# pe_get16 (fd, offset) 7406# int fd; 7407# int offset; 7408# { 7409# unsigned char b[2]; 7410# lseek (fd, offset, SEEK_SET); 7411# read (fd, b, 2); 7412# return b[0] + (b[1]<<8); 7413# } 7414# 7415# static unsigned int 7416# pe_get32 (fd, offset) 7417# int fd; 7418# int offset; 7419# { 7420# unsigned char b[4]; 7421# lseek (fd, offset, SEEK_SET); 7422# read (fd, b, 4); 7423# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); 7424# } 7425# 7426# static unsigned int 7427# pe_as32 (ptr) 7428# void *ptr; 7429# { 7430# unsigned char *b = ptr; 7431# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); 7432# } 7433# 7434# int 7435# main (argc, argv) 7436# int argc; 7437# char *argv[]; 7438# { 7439# int dll; 7440# unsigned long pe_header_offset, opthdr_ofs, num_entries, i; 7441# unsigned long export_rva, export_size, nsections, secptr, expptr; 7442# unsigned long name_rvas, nexp; 7443# unsigned char *expdata, *erva; 7444# char *filename, *dll_name; 7445# 7446# filename = argv[1]; 7447# 7448# dll = open(filename, O_RDONLY|O_BINARY); 7449# if (dll < 1) 7450# return 1; 7451# 7452# dll_name = filename; 7453# 7454# for (i=0; filename[i]; i++) 7455# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') 7456# dll_name = filename + i +1; 7457# 7458# pe_header_offset = pe_get32 (dll, 0x3c); 7459# opthdr_ofs = pe_header_offset + 4 + 20; 7460# num_entries = pe_get32 (dll, opthdr_ofs + 92); 7461# 7462# if (num_entries < 1) /* no exports */ 7463# return 1; 7464# 7465# export_rva = pe_get32 (dll, opthdr_ofs + 96); 7466# export_size = pe_get32 (dll, opthdr_ofs + 100); 7467# nsections = pe_get16 (dll, pe_header_offset + 4 +2); 7468# secptr = (pe_header_offset + 4 + 20 + 7469# pe_get16 (dll, pe_header_offset + 4 + 16)); 7470# 7471# expptr = 0; 7472# for (i = 0; i < nsections; i++) 7473# { 7474# char sname[8]; 7475# unsigned long secptr1 = secptr + 40 * i; 7476# unsigned long vaddr = pe_get32 (dll, secptr1 + 12); 7477# unsigned long vsize = pe_get32 (dll, secptr1 + 16); 7478# unsigned long fptr = pe_get32 (dll, secptr1 + 20); 7479# lseek(dll, secptr1, SEEK_SET); 7480# read(dll, sname, 8); 7481# if (vaddr <= export_rva && vaddr+vsize > export_rva) 7482# { 7483# expptr = fptr + (export_rva - vaddr); 7484# if (export_rva + export_size > vaddr + vsize) 7485# export_size = vsize - (export_rva - vaddr); 7486# break; 7487# } 7488# } 7489# 7490# expdata = (unsigned char*)malloc(export_size); 7491# lseek (dll, expptr, SEEK_SET); 7492# read (dll, expdata, export_size); 7493# erva = expdata - export_rva; 7494# 7495# nexp = pe_as32 (expdata+24); 7496# name_rvas = pe_as32 (expdata+32); 7497# 7498# printf ("EXPORTS\n"); 7499# for (i = 0; i<nexp; i++) 7500# { 7501# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); 7502# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); 7503# } 7504# 7505# return 0; 7506# } 7507# /* impgen.c ends here */ 7508 7509EOF 7510 ;; 7511 esac 7512 7513 # We use sed instead of cat because bash on DJGPP gets confused if 7514 # if finds mixed CR/LF and LF-only lines. Since sed operates in 7515 # text mode, it properly converts lines to CR/LF. This bash problem 7516 # is reportedly fixed, but why not run on old versions too? 7517 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1) 7518 7519 mv -f "${ofile}T" "$ofile" || \ 7520 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") 7521 chmod +x "$ofile" 7522fi 7523 7524 7525 7526 7527 7528# This can be used to rebuild libtool when needed 7529LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 7530 7531# Always use our own libtool. 7532LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7533 7534# Prevent multiple expansion 7535 7536 7537 7538 7539INCLUDES='-I$(top_srcdir)/include -I$(top_builddir)/include' 7540 7541 7542 7543 7544for ac_header in sys/time.h sys/timeb.h io.h 7545do 7546as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7547if eval "test \"\${$as_ac_Header+set}\" = set"; then 7548 echo "$as_me:$LINENO: checking for $ac_header" >&5 7549echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7550if eval "test \"\${$as_ac_Header+set}\" = set"; then 7551 echo $ECHO_N "(cached) $ECHO_C" >&6 7552fi 7553echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7554echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7555else 7556 # Is the header compilable? 7557echo "$as_me:$LINENO: checking $ac_header usability" >&5 7558echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 7559cat >conftest.$ac_ext <<_ACEOF 7560#line $LINENO "configure" 7561#include "confdefs.h" 7562$ac_includes_default 7563#include <$ac_header> 7564_ACEOF 7565rm -f conftest.$ac_objext 7566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7567 (eval $ac_compile) 2>&5 7568 ac_status=$? 7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7570 (exit $ac_status); } && 7571 { ac_try='test -s conftest.$ac_objext' 7572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7573 (eval $ac_try) 2>&5 7574 ac_status=$? 7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7576 (exit $ac_status); }; }; then 7577 ac_header_compiler=yes 7578else 7579 echo "$as_me: failed program was:" >&5 7580cat conftest.$ac_ext >&5 7581ac_header_compiler=no 7582fi 7583rm -f conftest.$ac_objext conftest.$ac_ext 7584echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7585echo "${ECHO_T}$ac_header_compiler" >&6 7586 7587# Is the header present? 7588echo "$as_me:$LINENO: checking $ac_header presence" >&5 7589echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 7590cat >conftest.$ac_ext <<_ACEOF 7591#line $LINENO "configure" 7592#include "confdefs.h" 7593#include <$ac_header> 7594_ACEOF 7595if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7596 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7597 ac_status=$? 7598 egrep -v '^ *\+' conftest.er1 >conftest.err 7599 rm -f conftest.er1 7600 cat conftest.err >&5 7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7602 (exit $ac_status); } >/dev/null; then 7603 if test -s conftest.err; then 7604 ac_cpp_err=$ac_c_preproc_warn_flag 7605 else 7606 ac_cpp_err= 7607 fi 7608else 7609 ac_cpp_err=yes 7610fi 7611if test -z "$ac_cpp_err"; then 7612 ac_header_preproc=yes 7613else 7614 echo "$as_me: failed program was:" >&5 7615 cat conftest.$ac_ext >&5 7616 ac_header_preproc=no 7617fi 7618rm -f conftest.err conftest.$ac_ext 7619echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7620echo "${ECHO_T}$ac_header_preproc" >&6 7621 7622# So? What about this header? 7623case $ac_header_compiler:$ac_header_preproc in 7624 yes:no ) 7625 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 7626echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 7627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 7628echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 7629 no:yes ) 7630 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 7631echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 7632 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 7633echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 7634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 7635echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 7636esac 7637echo "$as_me:$LINENO: checking for $ac_header" >&5 7638echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7639if eval "test \"\${$as_ac_Header+set}\" = set"; then 7640 echo $ECHO_N "(cached) $ECHO_C" >&6 7641else 7642 eval "$as_ac_Header=$ac_header_preproc" 7643fi 7644echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7645echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7646 7647fi 7648if test `eval echo '${'$as_ac_Header'}'` = yes; then 7649 cat >>confdefs.h <<_ACEOF 7650#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7651_ACEOF 7652 7653fi 7654 7655done 7656 7657rm -f include/inttypes.h 7658 if test "${ac_cv_header_inttypes_h+set}" = set; then 7659 echo "$as_me:$LINENO: checking for inttypes.h" >&5 7660echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6 7661if test "${ac_cv_header_inttypes_h+set}" = set; then 7662 echo $ECHO_N "(cached) $ECHO_C" >&6 7663fi 7664echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5 7665echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6 7666else 7667 # Is the header compilable? 7668echo "$as_me:$LINENO: checking inttypes.h usability" >&5 7669echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6 7670cat >conftest.$ac_ext <<_ACEOF 7671#line $LINENO "configure" 7672#include "confdefs.h" 7673$ac_includes_default 7674#include <inttypes.h> 7675_ACEOF 7676rm -f conftest.$ac_objext 7677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7678 (eval $ac_compile) 2>&5 7679 ac_status=$? 7680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7681 (exit $ac_status); } && 7682 { ac_try='test -s conftest.$ac_objext' 7683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7684 (eval $ac_try) 2>&5 7685 ac_status=$? 7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7687 (exit $ac_status); }; }; then 7688 ac_header_compiler=yes 7689else 7690 echo "$as_me: failed program was:" >&5 7691cat conftest.$ac_ext >&5 7692ac_header_compiler=no 7693fi 7694rm -f conftest.$ac_objext conftest.$ac_ext 7695echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7696echo "${ECHO_T}$ac_header_compiler" >&6 7697 7698# Is the header present? 7699echo "$as_me:$LINENO: checking inttypes.h presence" >&5 7700echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6 7701cat >conftest.$ac_ext <<_ACEOF 7702#line $LINENO "configure" 7703#include "confdefs.h" 7704#include <inttypes.h> 7705_ACEOF 7706if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7707 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7708 ac_status=$? 7709 egrep -v '^ *\+' conftest.er1 >conftest.err 7710 rm -f conftest.er1 7711 cat conftest.err >&5 7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7713 (exit $ac_status); } >/dev/null; then 7714 if test -s conftest.err; then 7715 ac_cpp_err=$ac_c_preproc_warn_flag 7716 else 7717 ac_cpp_err= 7718 fi 7719else 7720 ac_cpp_err=yes 7721fi 7722if test -z "$ac_cpp_err"; then 7723 ac_header_preproc=yes 7724else 7725 echo "$as_me: failed program was:" >&5 7726 cat conftest.$ac_ext >&5 7727 ac_header_preproc=no 7728fi 7729rm -f conftest.err conftest.$ac_ext 7730echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7731echo "${ECHO_T}$ac_header_preproc" >&6 7732 7733# So? What about this header? 7734case $ac_header_compiler:$ac_header_preproc in 7735 yes:no ) 7736 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5 7737echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 7738 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5 7739echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;};; 7740 no:yes ) 7741 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5 7742echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;} 7743 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5 7744echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;} 7745 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5 7746echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;};; 7747esac 7748echo "$as_me:$LINENO: checking for inttypes.h" >&5 7749echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6 7750if test "${ac_cv_header_inttypes_h+set}" = set; then 7751 echo $ECHO_N "(cached) $ECHO_C" >&6 7752else 7753 ac_cv_header_inttypes_h=$ac_header_preproc 7754fi 7755echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5 7756echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6 7757 7758fi 7759if test $ac_cv_header_inttypes_h = yes; then 7760 : 7761else 7762 echo "$as_me:$LINENO: checking for char" >&5 7763echo $ECHO_N "checking for char... $ECHO_C" >&6 7764if test "${ac_cv_type_char+set}" = set; then 7765 echo $ECHO_N "(cached) $ECHO_C" >&6 7766else 7767 cat >conftest.$ac_ext <<_ACEOF 7768#line $LINENO "configure" 7769#include "confdefs.h" 7770$ac_includes_default 7771#ifdef F77_DUMMY_MAIN 7772# ifdef __cplusplus 7773 extern "C" 7774# endif 7775 int F77_DUMMY_MAIN() { return 1; } 7776#endif 7777int 7778main () 7779{ 7780if ((char *) 0) 7781 return 0; 7782if (sizeof (char)) 7783 return 0; 7784 ; 7785 return 0; 7786} 7787_ACEOF 7788rm -f conftest.$ac_objext 7789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7790 (eval $ac_compile) 2>&5 7791 ac_status=$? 7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7793 (exit $ac_status); } && 7794 { ac_try='test -s conftest.$ac_objext' 7795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7796 (eval $ac_try) 2>&5 7797 ac_status=$? 7798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7799 (exit $ac_status); }; }; then 7800 ac_cv_type_char=yes 7801else 7802 echo "$as_me: failed program was:" >&5 7803cat conftest.$ac_ext >&5 7804ac_cv_type_char=no 7805fi 7806rm -f conftest.$ac_objext conftest.$ac_ext 7807fi 7808echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 7809echo "${ECHO_T}$ac_cv_type_char" >&6 7810 7811echo "$as_me:$LINENO: checking size of char" >&5 7812echo $ECHO_N "checking size of char... $ECHO_C" >&6 7813if test "${ac_cv_sizeof_char+set}" = set; then 7814 echo $ECHO_N "(cached) $ECHO_C" >&6 7815else 7816 if test "$ac_cv_type_char" = yes; then 7817 # The cast to unsigned long works around a bug in the HP C Compiler 7818 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7819 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7820 # This bug is HP SR number 8606223364. 7821 if test "$cross_compiling" = yes; then 7822 # Depending upon the size, compute the lo and hi bounds. 7823cat >conftest.$ac_ext <<_ACEOF 7824#line $LINENO "configure" 7825#include "confdefs.h" 7826$ac_includes_default 7827#ifdef F77_DUMMY_MAIN 7828# ifdef __cplusplus 7829 extern "C" 7830# endif 7831 int F77_DUMMY_MAIN() { return 1; } 7832#endif 7833int 7834main () 7835{ 7836static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; 7837test_array [0] = 0 7838 7839 ; 7840 return 0; 7841} 7842_ACEOF 7843rm -f conftest.$ac_objext 7844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7845 (eval $ac_compile) 2>&5 7846 ac_status=$? 7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7848 (exit $ac_status); } && 7849 { ac_try='test -s conftest.$ac_objext' 7850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7851 (eval $ac_try) 2>&5 7852 ac_status=$? 7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7854 (exit $ac_status); }; }; then 7855 ac_lo=0 ac_mid=0 7856 while :; do 7857 cat >conftest.$ac_ext <<_ACEOF 7858#line $LINENO "configure" 7859#include "confdefs.h" 7860$ac_includes_default 7861#ifdef F77_DUMMY_MAIN 7862# ifdef __cplusplus 7863 extern "C" 7864# endif 7865 int F77_DUMMY_MAIN() { return 1; } 7866#endif 7867int 7868main () 7869{ 7870static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; 7871test_array [0] = 0 7872 7873 ; 7874 return 0; 7875} 7876_ACEOF 7877rm -f conftest.$ac_objext 7878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7879 (eval $ac_compile) 2>&5 7880 ac_status=$? 7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7882 (exit $ac_status); } && 7883 { ac_try='test -s conftest.$ac_objext' 7884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7885 (eval $ac_try) 2>&5 7886 ac_status=$? 7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7888 (exit $ac_status); }; }; then 7889 ac_hi=$ac_mid; break 7890else 7891 echo "$as_me: failed program was:" >&5 7892cat conftest.$ac_ext >&5 7893ac_lo=`expr $ac_mid + 1` 7894 if test $ac_lo -le $ac_mid; then 7895 ac_lo= ac_hi= 7896 break 7897 fi 7898 ac_mid=`expr 2 '*' $ac_mid + 1` 7899fi 7900rm -f conftest.$ac_objext conftest.$ac_ext 7901 done 7902else 7903 echo "$as_me: failed program was:" >&5 7904cat conftest.$ac_ext >&5 7905cat >conftest.$ac_ext <<_ACEOF 7906#line $LINENO "configure" 7907#include "confdefs.h" 7908$ac_includes_default 7909#ifdef F77_DUMMY_MAIN 7910# ifdef __cplusplus 7911 extern "C" 7912# endif 7913 int F77_DUMMY_MAIN() { return 1; } 7914#endif 7915int 7916main () 7917{ 7918static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; 7919test_array [0] = 0 7920 7921 ; 7922 return 0; 7923} 7924_ACEOF 7925rm -f conftest.$ac_objext 7926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7927 (eval $ac_compile) 2>&5 7928 ac_status=$? 7929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7930 (exit $ac_status); } && 7931 { ac_try='test -s conftest.$ac_objext' 7932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7933 (eval $ac_try) 2>&5 7934 ac_status=$? 7935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7936 (exit $ac_status); }; }; then 7937 ac_hi=-1 ac_mid=-1 7938 while :; do 7939 cat >conftest.$ac_ext <<_ACEOF 7940#line $LINENO "configure" 7941#include "confdefs.h" 7942$ac_includes_default 7943#ifdef F77_DUMMY_MAIN 7944# ifdef __cplusplus 7945 extern "C" 7946# endif 7947 int F77_DUMMY_MAIN() { return 1; } 7948#endif 7949int 7950main () 7951{ 7952static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; 7953test_array [0] = 0 7954 7955 ; 7956 return 0; 7957} 7958_ACEOF 7959rm -f conftest.$ac_objext 7960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7961 (eval $ac_compile) 2>&5 7962 ac_status=$? 7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7964 (exit $ac_status); } && 7965 { ac_try='test -s conftest.$ac_objext' 7966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7967 (eval $ac_try) 2>&5 7968 ac_status=$? 7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7970 (exit $ac_status); }; }; then 7971 ac_lo=$ac_mid; break 7972else 7973 echo "$as_me: failed program was:" >&5 7974cat conftest.$ac_ext >&5 7975ac_hi=`expr '(' $ac_mid ')' - 1` 7976 if test $ac_mid -le $ac_hi; then 7977 ac_lo= ac_hi= 7978 break 7979 fi 7980 ac_mid=`expr 2 '*' $ac_mid` 7981fi 7982rm -f conftest.$ac_objext conftest.$ac_ext 7983 done 7984else 7985 echo "$as_me: failed program was:" >&5 7986cat conftest.$ac_ext >&5 7987ac_lo= ac_hi= 7988fi 7989rm -f conftest.$ac_objext conftest.$ac_ext 7990fi 7991rm -f conftest.$ac_objext conftest.$ac_ext 7992# Binary search between lo and hi bounds. 7993while test "x$ac_lo" != "x$ac_hi"; do 7994 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 7995 cat >conftest.$ac_ext <<_ACEOF 7996#line $LINENO "configure" 7997#include "confdefs.h" 7998$ac_includes_default 7999#ifdef F77_DUMMY_MAIN 8000# ifdef __cplusplus 8001 extern "C" 8002# endif 8003 int F77_DUMMY_MAIN() { return 1; } 8004#endif 8005int 8006main () 8007{ 8008static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; 8009test_array [0] = 0 8010 8011 ; 8012 return 0; 8013} 8014_ACEOF 8015rm -f conftest.$ac_objext 8016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8017 (eval $ac_compile) 2>&5 8018 ac_status=$? 8019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8020 (exit $ac_status); } && 8021 { ac_try='test -s conftest.$ac_objext' 8022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8023 (eval $ac_try) 2>&5 8024 ac_status=$? 8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8026 (exit $ac_status); }; }; then 8027 ac_hi=$ac_mid 8028else 8029 echo "$as_me: failed program was:" >&5 8030cat conftest.$ac_ext >&5 8031ac_lo=`expr '(' $ac_mid ')' + 1` 8032fi 8033rm -f conftest.$ac_objext conftest.$ac_ext 8034done 8035case $ac_lo in 8036?*) ac_cv_sizeof_char=$ac_lo;; 8037'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 8038echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} 8039 { (exit 1); exit 1; }; } ;; 8040esac 8041else 8042 if test "$cross_compiling" = yes; then 8043 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 8044echo "$as_me: error: cannot run test program while cross compiling" >&2;} 8045 { (exit 1); exit 1; }; } 8046else 8047 cat >conftest.$ac_ext <<_ACEOF 8048#line $LINENO "configure" 8049#include "confdefs.h" 8050$ac_includes_default 8051long longval () { return (long) (sizeof (char)); } 8052unsigned long ulongval () { return (long) (sizeof (char)); } 8053#include <stdio.h> 8054#include <stdlib.h> 8055#ifdef F77_DUMMY_MAIN 8056# ifdef __cplusplus 8057 extern "C" 8058# endif 8059 int F77_DUMMY_MAIN() { return 1; } 8060#endif 8061int 8062main () 8063{ 8064 8065 FILE *f = fopen ("conftest.val", "w"); 8066 if (! f) 8067 exit (1); 8068 if (((long) (sizeof (char))) < 0) 8069 { 8070 long i = longval (); 8071 if (i != ((long) (sizeof (char)))) 8072 exit (1); 8073 fprintf (f, "%ld\n", i); 8074 } 8075 else 8076 { 8077 unsigned long i = ulongval (); 8078 if (i != ((long) (sizeof (char)))) 8079 exit (1); 8080 fprintf (f, "%lu\n", i); 8081 } 8082 exit (ferror (f) || fclose (f) != 0); 8083 8084 ; 8085 return 0; 8086} 8087_ACEOF 8088rm -f conftest$ac_exeext 8089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8090 (eval $ac_link) 2>&5 8091 ac_status=$? 8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8093 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8095 (eval $ac_try) 2>&5 8096 ac_status=$? 8097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8098 (exit $ac_status); }; }; then 8099 ac_cv_sizeof_char=`cat conftest.val` 8100else 8101 echo "$as_me: program exited with status $ac_status" >&5 8102echo "$as_me: failed program was:" >&5 8103cat conftest.$ac_ext >&5 8104( exit $ac_status ) 8105{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 8106echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} 8107 { (exit 1); exit 1; }; } 8108fi 8109rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8110fi 8111fi 8112rm -f conftest.val 8113else 8114 ac_cv_sizeof_char=0 8115fi 8116fi 8117echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 8118echo "${ECHO_T}$ac_cv_sizeof_char" >&6 8119cat >>confdefs.h <<_ACEOF 8120#define SIZEOF_CHAR $ac_cv_sizeof_char 8121_ACEOF 8122 8123 8124 echo "$as_me:$LINENO: checking for short" >&5 8125echo $ECHO_N "checking for short... $ECHO_C" >&6 8126if test "${ac_cv_type_short+set}" = set; then 8127 echo $ECHO_N "(cached) $ECHO_C" >&6 8128else 8129 cat >conftest.$ac_ext <<_ACEOF 8130#line $LINENO "configure" 8131#include "confdefs.h" 8132$ac_includes_default 8133#ifdef F77_DUMMY_MAIN 8134# ifdef __cplusplus 8135 extern "C" 8136# endif 8137 int F77_DUMMY_MAIN() { return 1; } 8138#endif 8139int 8140main () 8141{ 8142if ((short *) 0) 8143 return 0; 8144if (sizeof (short)) 8145 return 0; 8146 ; 8147 return 0; 8148} 8149_ACEOF 8150rm -f conftest.$ac_objext 8151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8152 (eval $ac_compile) 2>&5 8153 ac_status=$? 8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8155 (exit $ac_status); } && 8156 { ac_try='test -s conftest.$ac_objext' 8157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8158 (eval $ac_try) 2>&5 8159 ac_status=$? 8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8161 (exit $ac_status); }; }; then 8162 ac_cv_type_short=yes 8163else 8164 echo "$as_me: failed program was:" >&5 8165cat conftest.$ac_ext >&5 8166ac_cv_type_short=no 8167fi 8168rm -f conftest.$ac_objext conftest.$ac_ext 8169fi 8170echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 8171echo "${ECHO_T}$ac_cv_type_short" >&6 8172 8173echo "$as_me:$LINENO: checking size of short" >&5 8174echo $ECHO_N "checking size of short... $ECHO_C" >&6 8175if test "${ac_cv_sizeof_short+set}" = set; then 8176 echo $ECHO_N "(cached) $ECHO_C" >&6 8177else 8178 if test "$ac_cv_type_short" = yes; then 8179 # The cast to unsigned long works around a bug in the HP C Compiler 8180 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8181 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8182 # This bug is HP SR number 8606223364. 8183 if test "$cross_compiling" = yes; then 8184 # Depending upon the size, compute the lo and hi bounds. 8185cat >conftest.$ac_ext <<_ACEOF 8186#line $LINENO "configure" 8187#include "confdefs.h" 8188$ac_includes_default 8189#ifdef F77_DUMMY_MAIN 8190# ifdef __cplusplus 8191 extern "C" 8192# endif 8193 int F77_DUMMY_MAIN() { return 1; } 8194#endif 8195int 8196main () 8197{ 8198static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; 8199test_array [0] = 0 8200 8201 ; 8202 return 0; 8203} 8204_ACEOF 8205rm -f conftest.$ac_objext 8206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8207 (eval $ac_compile) 2>&5 8208 ac_status=$? 8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8210 (exit $ac_status); } && 8211 { ac_try='test -s conftest.$ac_objext' 8212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8213 (eval $ac_try) 2>&5 8214 ac_status=$? 8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8216 (exit $ac_status); }; }; then 8217 ac_lo=0 ac_mid=0 8218 while :; do 8219 cat >conftest.$ac_ext <<_ACEOF 8220#line $LINENO "configure" 8221#include "confdefs.h" 8222$ac_includes_default 8223#ifdef F77_DUMMY_MAIN 8224# ifdef __cplusplus 8225 extern "C" 8226# endif 8227 int F77_DUMMY_MAIN() { return 1; } 8228#endif 8229int 8230main () 8231{ 8232static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 8233test_array [0] = 0 8234 8235 ; 8236 return 0; 8237} 8238_ACEOF 8239rm -f conftest.$ac_objext 8240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8241 (eval $ac_compile) 2>&5 8242 ac_status=$? 8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8244 (exit $ac_status); } && 8245 { ac_try='test -s conftest.$ac_objext' 8246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8247 (eval $ac_try) 2>&5 8248 ac_status=$? 8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8250 (exit $ac_status); }; }; then 8251 ac_hi=$ac_mid; break 8252else 8253 echo "$as_me: failed program was:" >&5 8254cat conftest.$ac_ext >&5 8255ac_lo=`expr $ac_mid + 1` 8256 if test $ac_lo -le $ac_mid; then 8257 ac_lo= ac_hi= 8258 break 8259 fi 8260 ac_mid=`expr 2 '*' $ac_mid + 1` 8261fi 8262rm -f conftest.$ac_objext conftest.$ac_ext 8263 done 8264else 8265 echo "$as_me: failed program was:" >&5 8266cat conftest.$ac_ext >&5 8267cat >conftest.$ac_ext <<_ACEOF 8268#line $LINENO "configure" 8269#include "confdefs.h" 8270$ac_includes_default 8271#ifdef F77_DUMMY_MAIN 8272# ifdef __cplusplus 8273 extern "C" 8274# endif 8275 int F77_DUMMY_MAIN() { return 1; } 8276#endif 8277int 8278main () 8279{ 8280static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; 8281test_array [0] = 0 8282 8283 ; 8284 return 0; 8285} 8286_ACEOF 8287rm -f conftest.$ac_objext 8288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8289 (eval $ac_compile) 2>&5 8290 ac_status=$? 8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8292 (exit $ac_status); } && 8293 { ac_try='test -s conftest.$ac_objext' 8294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8295 (eval $ac_try) 2>&5 8296 ac_status=$? 8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8298 (exit $ac_status); }; }; then 8299 ac_hi=-1 ac_mid=-1 8300 while :; do 8301 cat >conftest.$ac_ext <<_ACEOF 8302#line $LINENO "configure" 8303#include "confdefs.h" 8304$ac_includes_default 8305#ifdef F77_DUMMY_MAIN 8306# ifdef __cplusplus 8307 extern "C" 8308# endif 8309 int F77_DUMMY_MAIN() { return 1; } 8310#endif 8311int 8312main () 8313{ 8314static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; 8315test_array [0] = 0 8316 8317 ; 8318 return 0; 8319} 8320_ACEOF 8321rm -f conftest.$ac_objext 8322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8323 (eval $ac_compile) 2>&5 8324 ac_status=$? 8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8326 (exit $ac_status); } && 8327 { ac_try='test -s conftest.$ac_objext' 8328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8329 (eval $ac_try) 2>&5 8330 ac_status=$? 8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8332 (exit $ac_status); }; }; then 8333 ac_lo=$ac_mid; break 8334else 8335 echo "$as_me: failed program was:" >&5 8336cat conftest.$ac_ext >&5 8337ac_hi=`expr '(' $ac_mid ')' - 1` 8338 if test $ac_mid -le $ac_hi; then 8339 ac_lo= ac_hi= 8340 break 8341 fi 8342 ac_mid=`expr 2 '*' $ac_mid` 8343fi 8344rm -f conftest.$ac_objext conftest.$ac_ext 8345 done 8346else 8347 echo "$as_me: failed program was:" >&5 8348cat conftest.$ac_ext >&5 8349ac_lo= ac_hi= 8350fi 8351rm -f conftest.$ac_objext conftest.$ac_ext 8352fi 8353rm -f conftest.$ac_objext conftest.$ac_ext 8354# Binary search between lo and hi bounds. 8355while test "x$ac_lo" != "x$ac_hi"; do 8356 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 8357 cat >conftest.$ac_ext <<_ACEOF 8358#line $LINENO "configure" 8359#include "confdefs.h" 8360$ac_includes_default 8361#ifdef F77_DUMMY_MAIN 8362# ifdef __cplusplus 8363 extern "C" 8364# endif 8365 int F77_DUMMY_MAIN() { return 1; } 8366#endif 8367int 8368main () 8369{ 8370static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 8371test_array [0] = 0 8372 8373 ; 8374 return 0; 8375} 8376_ACEOF 8377rm -f conftest.$ac_objext 8378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8379 (eval $ac_compile) 2>&5 8380 ac_status=$? 8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8382 (exit $ac_status); } && 8383 { ac_try='test -s conftest.$ac_objext' 8384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8385 (eval $ac_try) 2>&5 8386 ac_status=$? 8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8388 (exit $ac_status); }; }; then 8389 ac_hi=$ac_mid 8390else 8391 echo "$as_me: failed program was:" >&5 8392cat conftest.$ac_ext >&5 8393ac_lo=`expr '(' $ac_mid ')' + 1` 8394fi 8395rm -f conftest.$ac_objext conftest.$ac_ext 8396done 8397case $ac_lo in 8398?*) ac_cv_sizeof_short=$ac_lo;; 8399'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5 8400echo "$as_me: error: cannot compute sizeof (short), 77" >&2;} 8401 { (exit 1); exit 1; }; } ;; 8402esac 8403else 8404 if test "$cross_compiling" = yes; then 8405 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 8406echo "$as_me: error: cannot run test program while cross compiling" >&2;} 8407 { (exit 1); exit 1; }; } 8408else 8409 cat >conftest.$ac_ext <<_ACEOF 8410#line $LINENO "configure" 8411#include "confdefs.h" 8412$ac_includes_default 8413long longval () { return (long) (sizeof (short)); } 8414unsigned long ulongval () { return (long) (sizeof (short)); } 8415#include <stdio.h> 8416#include <stdlib.h> 8417#ifdef F77_DUMMY_MAIN 8418# ifdef __cplusplus 8419 extern "C" 8420# endif 8421 int F77_DUMMY_MAIN() { return 1; } 8422#endif 8423int 8424main () 8425{ 8426 8427 FILE *f = fopen ("conftest.val", "w"); 8428 if (! f) 8429 exit (1); 8430 if (((long) (sizeof (short))) < 0) 8431 { 8432 long i = longval (); 8433 if (i != ((long) (sizeof (short)))) 8434 exit (1); 8435 fprintf (f, "%ld\n", i); 8436 } 8437 else 8438 { 8439 unsigned long i = ulongval (); 8440 if (i != ((long) (sizeof (short)))) 8441 exit (1); 8442 fprintf (f, "%lu\n", i); 8443 } 8444 exit (ferror (f) || fclose (f) != 0); 8445 8446 ; 8447 return 0; 8448} 8449_ACEOF 8450rm -f conftest$ac_exeext 8451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8452 (eval $ac_link) 2>&5 8453 ac_status=$? 8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8455 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8457 (eval $ac_try) 2>&5 8458 ac_status=$? 8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8460 (exit $ac_status); }; }; then 8461 ac_cv_sizeof_short=`cat conftest.val` 8462else 8463 echo "$as_me: program exited with status $ac_status" >&5 8464echo "$as_me: failed program was:" >&5 8465cat conftest.$ac_ext >&5 8466( exit $ac_status ) 8467{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5 8468echo "$as_me: error: cannot compute sizeof (short), 77" >&2;} 8469 { (exit 1); exit 1; }; } 8470fi 8471rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8472fi 8473fi 8474rm -f conftest.val 8475else 8476 ac_cv_sizeof_short=0 8477fi 8478fi 8479echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 8480echo "${ECHO_T}$ac_cv_sizeof_short" >&6 8481cat >>confdefs.h <<_ACEOF 8482#define SIZEOF_SHORT $ac_cv_sizeof_short 8483_ACEOF 8484 8485 8486 echo "$as_me:$LINENO: checking for int" >&5 8487echo $ECHO_N "checking for int... $ECHO_C" >&6 8488if test "${ac_cv_type_int+set}" = set; then 8489 echo $ECHO_N "(cached) $ECHO_C" >&6 8490else 8491 cat >conftest.$ac_ext <<_ACEOF 8492#line $LINENO "configure" 8493#include "confdefs.h" 8494$ac_includes_default 8495#ifdef F77_DUMMY_MAIN 8496# ifdef __cplusplus 8497 extern "C" 8498# endif 8499 int F77_DUMMY_MAIN() { return 1; } 8500#endif 8501int 8502main () 8503{ 8504if ((int *) 0) 8505 return 0; 8506if (sizeof (int)) 8507 return 0; 8508 ; 8509 return 0; 8510} 8511_ACEOF 8512rm -f conftest.$ac_objext 8513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8514 (eval $ac_compile) 2>&5 8515 ac_status=$? 8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8517 (exit $ac_status); } && 8518 { ac_try='test -s conftest.$ac_objext' 8519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8520 (eval $ac_try) 2>&5 8521 ac_status=$? 8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8523 (exit $ac_status); }; }; then 8524 ac_cv_type_int=yes 8525else 8526 echo "$as_me: failed program was:" >&5 8527cat conftest.$ac_ext >&5 8528ac_cv_type_int=no 8529fi 8530rm -f conftest.$ac_objext conftest.$ac_ext 8531fi 8532echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 8533echo "${ECHO_T}$ac_cv_type_int" >&6 8534 8535echo "$as_me:$LINENO: checking size of int" >&5 8536echo $ECHO_N "checking size of int... $ECHO_C" >&6 8537if test "${ac_cv_sizeof_int+set}" = set; then 8538 echo $ECHO_N "(cached) $ECHO_C" >&6 8539else 8540 if test "$ac_cv_type_int" = yes; then 8541 # The cast to unsigned long works around a bug in the HP C Compiler 8542 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8543 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8544 # This bug is HP SR number 8606223364. 8545 if test "$cross_compiling" = yes; then 8546 # Depending upon the size, compute the lo and hi bounds. 8547cat >conftest.$ac_ext <<_ACEOF 8548#line $LINENO "configure" 8549#include "confdefs.h" 8550$ac_includes_default 8551#ifdef F77_DUMMY_MAIN 8552# ifdef __cplusplus 8553 extern "C" 8554# endif 8555 int F77_DUMMY_MAIN() { return 1; } 8556#endif 8557int 8558main () 8559{ 8560static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; 8561test_array [0] = 0 8562 8563 ; 8564 return 0; 8565} 8566_ACEOF 8567rm -f conftest.$ac_objext 8568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8569 (eval $ac_compile) 2>&5 8570 ac_status=$? 8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8572 (exit $ac_status); } && 8573 { ac_try='test -s conftest.$ac_objext' 8574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8575 (eval $ac_try) 2>&5 8576 ac_status=$? 8577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8578 (exit $ac_status); }; }; then 8579 ac_lo=0 ac_mid=0 8580 while :; do 8581 cat >conftest.$ac_ext <<_ACEOF 8582#line $LINENO "configure" 8583#include "confdefs.h" 8584$ac_includes_default 8585#ifdef F77_DUMMY_MAIN 8586# ifdef __cplusplus 8587 extern "C" 8588# endif 8589 int F77_DUMMY_MAIN() { return 1; } 8590#endif 8591int 8592main () 8593{ 8594static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 8595test_array [0] = 0 8596 8597 ; 8598 return 0; 8599} 8600_ACEOF 8601rm -f conftest.$ac_objext 8602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8603 (eval $ac_compile) 2>&5 8604 ac_status=$? 8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8606 (exit $ac_status); } && 8607 { ac_try='test -s conftest.$ac_objext' 8608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8609 (eval $ac_try) 2>&5 8610 ac_status=$? 8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8612 (exit $ac_status); }; }; then 8613 ac_hi=$ac_mid; break 8614else 8615 echo "$as_me: failed program was:" >&5 8616cat conftest.$ac_ext >&5 8617ac_lo=`expr $ac_mid + 1` 8618 if test $ac_lo -le $ac_mid; then 8619 ac_lo= ac_hi= 8620 break 8621 fi 8622 ac_mid=`expr 2 '*' $ac_mid + 1` 8623fi 8624rm -f conftest.$ac_objext conftest.$ac_ext 8625 done 8626else 8627 echo "$as_me: failed program was:" >&5 8628cat conftest.$ac_ext >&5 8629cat >conftest.$ac_ext <<_ACEOF 8630#line $LINENO "configure" 8631#include "confdefs.h" 8632$ac_includes_default 8633#ifdef F77_DUMMY_MAIN 8634# ifdef __cplusplus 8635 extern "C" 8636# endif 8637 int F77_DUMMY_MAIN() { return 1; } 8638#endif 8639int 8640main () 8641{ 8642static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; 8643test_array [0] = 0 8644 8645 ; 8646 return 0; 8647} 8648_ACEOF 8649rm -f conftest.$ac_objext 8650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8651 (eval $ac_compile) 2>&5 8652 ac_status=$? 8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8654 (exit $ac_status); } && 8655 { ac_try='test -s conftest.$ac_objext' 8656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8657 (eval $ac_try) 2>&5 8658 ac_status=$? 8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8660 (exit $ac_status); }; }; then 8661 ac_hi=-1 ac_mid=-1 8662 while :; do 8663 cat >conftest.$ac_ext <<_ACEOF 8664#line $LINENO "configure" 8665#include "confdefs.h" 8666$ac_includes_default 8667#ifdef F77_DUMMY_MAIN 8668# ifdef __cplusplus 8669 extern "C" 8670# endif 8671 int F77_DUMMY_MAIN() { return 1; } 8672#endif 8673int 8674main () 8675{ 8676static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; 8677test_array [0] = 0 8678 8679 ; 8680 return 0; 8681} 8682_ACEOF 8683rm -f conftest.$ac_objext 8684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8685 (eval $ac_compile) 2>&5 8686 ac_status=$? 8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8688 (exit $ac_status); } && 8689 { ac_try='test -s conftest.$ac_objext' 8690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8691 (eval $ac_try) 2>&5 8692 ac_status=$? 8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8694 (exit $ac_status); }; }; then 8695 ac_lo=$ac_mid; break 8696else 8697 echo "$as_me: failed program was:" >&5 8698cat conftest.$ac_ext >&5 8699ac_hi=`expr '(' $ac_mid ')' - 1` 8700 if test $ac_mid -le $ac_hi; then 8701 ac_lo= ac_hi= 8702 break 8703 fi 8704 ac_mid=`expr 2 '*' $ac_mid` 8705fi 8706rm -f conftest.$ac_objext conftest.$ac_ext 8707 done 8708else 8709 echo "$as_me: failed program was:" >&5 8710cat conftest.$ac_ext >&5 8711ac_lo= ac_hi= 8712fi 8713rm -f conftest.$ac_objext conftest.$ac_ext 8714fi 8715rm -f conftest.$ac_objext conftest.$ac_ext 8716# Binary search between lo and hi bounds. 8717while test "x$ac_lo" != "x$ac_hi"; do 8718 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 8719 cat >conftest.$ac_ext <<_ACEOF 8720#line $LINENO "configure" 8721#include "confdefs.h" 8722$ac_includes_default 8723#ifdef F77_DUMMY_MAIN 8724# ifdef __cplusplus 8725 extern "C" 8726# endif 8727 int F77_DUMMY_MAIN() { return 1; } 8728#endif 8729int 8730main () 8731{ 8732static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 8733test_array [0] = 0 8734 8735 ; 8736 return 0; 8737} 8738_ACEOF 8739rm -f conftest.$ac_objext 8740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8741 (eval $ac_compile) 2>&5 8742 ac_status=$? 8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8744 (exit $ac_status); } && 8745 { ac_try='test -s conftest.$ac_objext' 8746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8747 (eval $ac_try) 2>&5 8748 ac_status=$? 8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8750 (exit $ac_status); }; }; then 8751 ac_hi=$ac_mid 8752else 8753 echo "$as_me: failed program was:" >&5 8754cat conftest.$ac_ext >&5 8755ac_lo=`expr '(' $ac_mid ')' + 1` 8756fi 8757rm -f conftest.$ac_objext conftest.$ac_ext 8758done 8759case $ac_lo in 8760?*) ac_cv_sizeof_int=$ac_lo;; 8761'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 8762echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} 8763 { (exit 1); exit 1; }; } ;; 8764esac 8765else 8766 if test "$cross_compiling" = yes; then 8767 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 8768echo "$as_me: error: cannot run test program while cross compiling" >&2;} 8769 { (exit 1); exit 1; }; } 8770else 8771 cat >conftest.$ac_ext <<_ACEOF 8772#line $LINENO "configure" 8773#include "confdefs.h" 8774$ac_includes_default 8775long longval () { return (long) (sizeof (int)); } 8776unsigned long ulongval () { return (long) (sizeof (int)); } 8777#include <stdio.h> 8778#include <stdlib.h> 8779#ifdef F77_DUMMY_MAIN 8780# ifdef __cplusplus 8781 extern "C" 8782# endif 8783 int F77_DUMMY_MAIN() { return 1; } 8784#endif 8785int 8786main () 8787{ 8788 8789 FILE *f = fopen ("conftest.val", "w"); 8790 if (! f) 8791 exit (1); 8792 if (((long) (sizeof (int))) < 0) 8793 { 8794 long i = longval (); 8795 if (i != ((long) (sizeof (int)))) 8796 exit (1); 8797 fprintf (f, "%ld\n", i); 8798 } 8799 else 8800 { 8801 unsigned long i = ulongval (); 8802 if (i != ((long) (sizeof (int)))) 8803 exit (1); 8804 fprintf (f, "%lu\n", i); 8805 } 8806 exit (ferror (f) || fclose (f) != 0); 8807 8808 ; 8809 return 0; 8810} 8811_ACEOF 8812rm -f conftest$ac_exeext 8813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8814 (eval $ac_link) 2>&5 8815 ac_status=$? 8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8817 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 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_cv_sizeof_int=`cat conftest.val` 8824else 8825 echo "$as_me: program exited with status $ac_status" >&5 8826echo "$as_me: failed program was:" >&5 8827cat conftest.$ac_ext >&5 8828( exit $ac_status ) 8829{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 8830echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} 8831 { (exit 1); exit 1; }; } 8832fi 8833rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8834fi 8835fi 8836rm -f conftest.val 8837else 8838 ac_cv_sizeof_int=0 8839fi 8840fi 8841echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 8842echo "${ECHO_T}$ac_cv_sizeof_int" >&6 8843cat >>confdefs.h <<_ACEOF 8844#define SIZEOF_INT $ac_cv_sizeof_int 8845_ACEOF 8846 8847 8848 if test x"$ac_cv_sizeof_char" != x"1" -o \ 8849 x"$ac_cv_sizeof_short" != x"2" -o \ 8850 x"$ac_cv_sizeof_int" != x"4"; then 8851 { { echo "$as_me:$LINENO: error: can not build a default inttypes.h" >&5 8852echo "$as_me: error: can not build a default inttypes.h" >&2;} 8853 { (exit 1); exit 1; }; } 8854 fi 8855 cat >include/inttypes.h << EOF 8856/* default inttypes.h for people who do not have it on their system */ 8857 8858#ifndef _INTTYPES_H 8859#define _INTTYPES_H 8860#if (!defined __int8_t_defined) && (!defined __BIT_TYPES_DEFINED__) 8861#define __int8_t_defined 8862typedef signed char int8_t; 8863typedef signed short int16_t; 8864typedef signed int int32_t; 8865#ifdef ARCH_X86 8866typedef signed long long int64_t; 8867#endif 8868#endif 8869#if (!defined _LINUX_TYPES_H) 8870typedef unsigned char uint8_t; 8871typedef unsigned short uint16_t; 8872typedef unsigned int uint32_t; 8873#ifdef ARCH_X86 8874typedef unsigned long long uint64_t; 8875#endif 8876#endif 8877#endif 8878EOF 8879 8880fi 8881 8882 8883 8884echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 8885echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 8886if test "${ac_cv_prog_cc_stdc+set}" = set; then 8887 echo $ECHO_N "(cached) $ECHO_C" >&6 8888else 8889 ac_cv_prog_cc_stdc=no 8890ac_save_CC=$CC 8891cat >conftest.$ac_ext <<_ACEOF 8892#line $LINENO "configure" 8893#include "confdefs.h" 8894#include <stdarg.h> 8895#include <stdio.h> 8896#include <sys/types.h> 8897#include <sys/stat.h> 8898/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 8899struct buf { int x; }; 8900FILE * (*rcsopen) (struct buf *, struct stat *, int); 8901static char *e (p, i) 8902 char **p; 8903 int i; 8904{ 8905 return p[i]; 8906} 8907static char *f (char * (*g) (char **, int), char **p, ...) 8908{ 8909 char *s; 8910 va_list v; 8911 va_start (v,p); 8912 s = g (p, va_arg (v,int)); 8913 va_end (v); 8914 return s; 8915} 8916int test (int i, double x); 8917struct s1 {int (*f) (int a);}; 8918struct s2 {int (*f) (double a);}; 8919int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 8920int argc; 8921char **argv; 8922#ifdef F77_DUMMY_MAIN 8923# ifdef __cplusplus 8924 extern "C" 8925# endif 8926 int F77_DUMMY_MAIN() { return 1; } 8927#endif 8928int 8929main () 8930{ 8931return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 8932 ; 8933 return 0; 8934} 8935_ACEOF 8936# Don't try gcc -ansi; that turns off useful extensions and 8937# breaks some systems' header files. 8938# AIX -qlanglvl=ansi 8939# Ultrix and OSF/1 -std1 8940# HP-UX 10.20 and later -Ae 8941# HP-UX older versions -Aa -D_HPUX_SOURCE 8942# SVR4 -Xc -D__EXTENSIONS__ 8943for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 8944do 8945 CC="$ac_save_CC $ac_arg" 8946 rm -f conftest.$ac_objext 8947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8948 (eval $ac_compile) 2>&5 8949 ac_status=$? 8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8951 (exit $ac_status); } && 8952 { ac_try='test -s conftest.$ac_objext' 8953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8954 (eval $ac_try) 2>&5 8955 ac_status=$? 8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8957 (exit $ac_status); }; }; then 8958 ac_cv_prog_cc_stdc=$ac_arg 8959break 8960else 8961 echo "$as_me: failed program was:" >&5 8962cat conftest.$ac_ext >&5 8963fi 8964rm -f conftest.$ac_objext 8965done 8966rm -f conftest.$ac_ext conftest.$ac_objext 8967CC=$ac_save_CC 8968 8969fi 8970 8971case "x$ac_cv_prog_cc_stdc" in 8972 x|xno) 8973 echo "$as_me:$LINENO: result: none needed" >&5 8974echo "${ECHO_T}none needed" >&6 ;; 8975 *) 8976 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 8977echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 8978 CC="$CC $ac_cv_prog_cc_stdc" ;; 8979esac 8980 8981echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 8982echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 8983if test "${ac_cv_c_const+set}" = set; then 8984 echo $ECHO_N "(cached) $ECHO_C" >&6 8985else 8986 cat >conftest.$ac_ext <<_ACEOF 8987#line $LINENO "configure" 8988#include "confdefs.h" 8989 8990#ifdef F77_DUMMY_MAIN 8991# ifdef __cplusplus 8992 extern "C" 8993# endif 8994 int F77_DUMMY_MAIN() { return 1; } 8995#endif 8996int 8997main () 8998{ 8999/* FIXME: Include the comments suggested by Paul. */ 9000#ifndef __cplusplus 9001 /* Ultrix mips cc rejects this. */ 9002 typedef int charset[2]; 9003 const charset x; 9004 /* SunOS 4.1.1 cc rejects this. */ 9005 char const *const *ccp; 9006 char **p; 9007 /* NEC SVR4.0.2 mips cc rejects this. */ 9008 struct point {int x, y;}; 9009 static struct point const zero = {0,0}; 9010 /* AIX XL C 1.02.0.0 rejects this. 9011 It does not let you subtract one const X* pointer from another in 9012 an arm of an if-expression whose if-part is not a constant 9013 expression */ 9014 const char *g = "string"; 9015 ccp = &g + (g ? g-g : 0); 9016 /* HPUX 7.0 cc rejects these. */ 9017 ++ccp; 9018 p = (char**) ccp; 9019 ccp = (char const *const *) p; 9020 { /* SCO 3.2v4 cc rejects this. */ 9021 char *t; 9022 char const *s = 0 ? (char *) 0 : (char const *) 0; 9023 9024 *t++ = 0; 9025 } 9026 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 9027 int x[] = {25, 17}; 9028 const int *foo = &x[0]; 9029 ++foo; 9030 } 9031 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 9032 typedef const int *iptr; 9033 iptr p = 0; 9034 ++p; 9035 } 9036 { /* AIX XL C 1.02.0.0 rejects this saying 9037 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 9038 struct s { int j; const int *ap[3]; }; 9039 struct s *b; b->j = 5; 9040 } 9041 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 9042 const int foo = 10; 9043 } 9044#endif 9045 9046 ; 9047 return 0; 9048} 9049_ACEOF 9050rm -f conftest.$ac_objext 9051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9052 (eval $ac_compile) 2>&5 9053 ac_status=$? 9054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9055 (exit $ac_status); } && 9056 { ac_try='test -s conftest.$ac_objext' 9057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9058 (eval $ac_try) 2>&5 9059 ac_status=$? 9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9061 (exit $ac_status); }; }; then 9062 ac_cv_c_const=yes 9063else 9064 echo "$as_me: failed program was:" >&5 9065cat conftest.$ac_ext >&5 9066ac_cv_c_const=no 9067fi 9068rm -f conftest.$ac_objext conftest.$ac_ext 9069fi 9070echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 9071echo "${ECHO_T}$ac_cv_c_const" >&6 9072if test $ac_cv_c_const = no; then 9073 9074cat >>confdefs.h <<\_ACEOF 9075#define const 9076_ACEOF 9077 9078fi 9079 9080echo "$as_me:$LINENO: checking for inline" >&5 9081echo $ECHO_N "checking for inline... $ECHO_C" >&6 9082if test "${ac_cv_c_inline+set}" = set; then 9083 echo $ECHO_N "(cached) $ECHO_C" >&6 9084else 9085 ac_cv_c_inline=no 9086for ac_kw in inline __inline__ __inline; do 9087 cat >conftest.$ac_ext <<_ACEOF 9088#line $LINENO "configure" 9089#include "confdefs.h" 9090#ifndef __cplusplus 9091static $ac_kw int static_foo () {return 0; } 9092$ac_kw int foo () {return 0; } 9093#endif 9094 9095_ACEOF 9096rm -f conftest.$ac_objext 9097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9098 (eval $ac_compile) 2>&5 9099 ac_status=$? 9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9101 (exit $ac_status); } && 9102 { ac_try='test -s conftest.$ac_objext' 9103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9104 (eval $ac_try) 2>&5 9105 ac_status=$? 9106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9107 (exit $ac_status); }; }; then 9108 ac_cv_c_inline=$ac_kw; break 9109else 9110 echo "$as_me: failed program was:" >&5 9111cat conftest.$ac_ext >&5 9112fi 9113rm -f conftest.$ac_objext conftest.$ac_ext 9114done 9115 9116fi 9117echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 9118echo "${ECHO_T}$ac_cv_c_inline" >&6 9119case $ac_cv_c_inline in 9120 inline | yes) ;; 9121 no) 9122cat >>confdefs.h <<\_ACEOF 9123#define inline 9124_ACEOF 9125 ;; 9126 *) cat >>confdefs.h <<_ACEOF 9127#define inline $ac_cv_c_inline 9128_ACEOF 9129 ;; 9130esac 9131 9132 if test x"$GCC" = x"yes" -a x"$ac_cv_c_inline" = x"inline"; then 9133 echo "$as_me:$LINENO: checking for always_inline" >&5 9134echo $ECHO_N "checking for always_inline... $ECHO_C" >&6 9135 SAVE_CFLAGS="$CFLAGS" 9136 CFLAGS="$CFLAGS -Wall -Werror" 9137 cat >conftest.$ac_ext <<_ACEOF 9138#line $LINENO "configure" 9139#include "confdefs.h" 9140 9141#ifdef F77_DUMMY_MAIN 9142# ifdef __cplusplus 9143 extern "C" 9144# endif 9145 int F77_DUMMY_MAIN() { return 1; } 9146#endif 9147int 9148main () 9149{ 9150__attribute__ ((__always_inline__)) void f (void); 9151 ; 9152 return 0; 9153} 9154_ACEOF 9155rm -f conftest.$ac_objext 9156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9157 (eval $ac_compile) 2>&5 9158 ac_status=$? 9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9160 (exit $ac_status); } && 9161 { ac_try='test -s conftest.$ac_objext' 9162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9163 (eval $ac_try) 2>&5 9164 ac_status=$? 9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9166 (exit $ac_status); }; }; then 9167 ac_cv_always_inline=yes 9168else 9169 echo "$as_me: failed program was:" >&5 9170cat conftest.$ac_ext >&5 9171ac_cv_always_inline=no 9172fi 9173rm -f conftest.$ac_objext conftest.$ac_ext 9174 CFLAGS="$SAVE_CFLAGS" 9175 echo "$as_me:$LINENO: result: $ac_cv_always_inline" >&5 9176echo "${ECHO_T}$ac_cv_always_inline" >&6 9177 if test x"$ac_cv_always_inline" = x"yes"; then 9178 cat >>confdefs.h <<_ACEOF 9179#define inline __attribute__ ((__always_inline__)) 9180_ACEOF 9181 9182 fi 9183 fi 9184echo "$as_me:$LINENO: checking for restrict" >&5 9185echo $ECHO_N "checking for restrict... $ECHO_C" >&6 9186 ac_cv_c_restrict=no 9187 for ac_kw in restrict __restrict__ __restrict; do 9188 cat >conftest.$ac_ext <<_ACEOF 9189#line $LINENO "configure" 9190#include "confdefs.h" 9191 9192#ifdef F77_DUMMY_MAIN 9193# ifdef __cplusplus 9194 extern "C" 9195# endif 9196 int F77_DUMMY_MAIN() { return 1; } 9197#endif 9198int 9199main () 9200{ 9201char * $ac_kw p; 9202 ; 9203 return 0; 9204} 9205_ACEOF 9206rm -f conftest.$ac_objext 9207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9208 (eval $ac_compile) 2>&5 9209 ac_status=$? 9210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9211 (exit $ac_status); } && 9212 { ac_try='test -s conftest.$ac_objext' 9213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9214 (eval $ac_try) 2>&5 9215 ac_status=$? 9216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9217 (exit $ac_status); }; }; then 9218 ac_cv_c_restrict=$ac_kw; break 9219else 9220 echo "$as_me: failed program was:" >&5 9221cat conftest.$ac_ext >&5 9222fi 9223rm -f conftest.$ac_objext conftest.$ac_ext 9224 done 9225 echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5 9226echo "${ECHO_T}$ac_cv_c_restrict" >&6 9227 case $ac_cv_c_restrict in 9228 restrict) ;; 9229 no) 9230cat >>confdefs.h <<\_ACEOF 9231#define restrict 9232_ACEOF 9233 ;; 9234 *) cat >>confdefs.h <<_ACEOF 9235#define restrict $ac_cv_c_restrict 9236_ACEOF 9237 ;; 9238 esac 9239echo "$as_me:$LINENO: checking for size_t" >&5 9240echo $ECHO_N "checking for size_t... $ECHO_C" >&6 9241if test "${ac_cv_type_size_t+set}" = set; then 9242 echo $ECHO_N "(cached) $ECHO_C" >&6 9243else 9244 cat >conftest.$ac_ext <<_ACEOF 9245#line $LINENO "configure" 9246#include "confdefs.h" 9247$ac_includes_default 9248#ifdef F77_DUMMY_MAIN 9249# ifdef __cplusplus 9250 extern "C" 9251# endif 9252 int F77_DUMMY_MAIN() { return 1; } 9253#endif 9254int 9255main () 9256{ 9257if ((size_t *) 0) 9258 return 0; 9259if (sizeof (size_t)) 9260 return 0; 9261 ; 9262 return 0; 9263} 9264_ACEOF 9265rm -f conftest.$ac_objext 9266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9267 (eval $ac_compile) 2>&5 9268 ac_status=$? 9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9270 (exit $ac_status); } && 9271 { ac_try='test -s conftest.$ac_objext' 9272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9273 (eval $ac_try) 2>&5 9274 ac_status=$? 9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9276 (exit $ac_status); }; }; then 9277 ac_cv_type_size_t=yes 9278else 9279 echo "$as_me: failed program was:" >&5 9280cat conftest.$ac_ext >&5 9281ac_cv_type_size_t=no 9282fi 9283rm -f conftest.$ac_objext conftest.$ac_ext 9284fi 9285echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 9286echo "${ECHO_T}$ac_cv_type_size_t" >&6 9287if test $ac_cv_type_size_t = yes; then 9288 : 9289else 9290 9291cat >>confdefs.h <<_ACEOF 9292#define size_t unsigned 9293_ACEOF 9294 9295fi 9296 9297echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 9298echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 9299if test "${ac_cv_c_bigendian+set}" = set; then 9300 echo $ECHO_N "(cached) $ECHO_C" >&6 9301else 9302 # See if sys/param.h defines the BYTE_ORDER macro. 9303cat >conftest.$ac_ext <<_ACEOF 9304#line $LINENO "configure" 9305#include "confdefs.h" 9306#include <sys/types.h> 9307#include <sys/param.h> 9308 9309#ifdef F77_DUMMY_MAIN 9310# ifdef __cplusplus 9311 extern "C" 9312# endif 9313 int F77_DUMMY_MAIN() { return 1; } 9314#endif 9315int 9316main () 9317{ 9318#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 9319 bogus endian macros 9320#endif 9321 9322 ; 9323 return 0; 9324} 9325_ACEOF 9326rm -f conftest.$ac_objext 9327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9328 (eval $ac_compile) 2>&5 9329 ac_status=$? 9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9331 (exit $ac_status); } && 9332 { ac_try='test -s conftest.$ac_objext' 9333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9334 (eval $ac_try) 2>&5 9335 ac_status=$? 9336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9337 (exit $ac_status); }; }; then 9338 # It does; now see whether it defined to BIG_ENDIAN or not. 9339cat >conftest.$ac_ext <<_ACEOF 9340#line $LINENO "configure" 9341#include "confdefs.h" 9342#include <sys/types.h> 9343#include <sys/param.h> 9344 9345#ifdef F77_DUMMY_MAIN 9346# ifdef __cplusplus 9347 extern "C" 9348# endif 9349 int F77_DUMMY_MAIN() { return 1; } 9350#endif 9351int 9352main () 9353{ 9354#if BYTE_ORDER != BIG_ENDIAN 9355 not big endian 9356#endif 9357 9358 ; 9359 return 0; 9360} 9361_ACEOF 9362rm -f conftest.$ac_objext 9363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9364 (eval $ac_compile) 2>&5 9365 ac_status=$? 9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9367 (exit $ac_status); } && 9368 { ac_try='test -s conftest.$ac_objext' 9369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9370 (eval $ac_try) 2>&5 9371 ac_status=$? 9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9373 (exit $ac_status); }; }; then 9374 ac_cv_c_bigendian=yes 9375else 9376 echo "$as_me: failed program was:" >&5 9377cat conftest.$ac_ext >&5 9378ac_cv_c_bigendian=no 9379fi 9380rm -f conftest.$ac_objext conftest.$ac_ext 9381else 9382 echo "$as_me: failed program was:" >&5 9383cat conftest.$ac_ext >&5 9384# It does not; compile a test program. 9385if test "$cross_compiling" = yes; then 9386 # try to guess the endianess by grep'ing values into an object file 9387 ac_cv_c_bigendian=unknown 9388 cat >conftest.$ac_ext <<_ACEOF 9389#line $LINENO "configure" 9390#include "confdefs.h" 9391short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 9392short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 9393void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 9394short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 9395short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 9396void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 9397#ifdef F77_DUMMY_MAIN 9398# ifdef __cplusplus 9399 extern "C" 9400# endif 9401 int F77_DUMMY_MAIN() { return 1; } 9402#endif 9403int 9404main () 9405{ 9406 _ascii (); _ebcdic (); 9407 ; 9408 return 0; 9409} 9410_ACEOF 9411rm -f conftest.$ac_objext 9412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9413 (eval $ac_compile) 2>&5 9414 ac_status=$? 9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9416 (exit $ac_status); } && 9417 { ac_try='test -s conftest.$ac_objext' 9418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9419 (eval $ac_try) 2>&5 9420 ac_status=$? 9421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9422 (exit $ac_status); }; }; then 9423 if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 9424 ac_cv_c_bigendian=yes 9425fi 9426if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 9427 if test "$ac_cv_c_bigendian" = unknown; then 9428 ac_cv_c_bigendian=no 9429 else 9430 # finding both strings is unlikely to happen, but who knows? 9431 ac_cv_c_bigendian=unknown 9432 fi 9433fi 9434else 9435 echo "$as_me: failed program was:" >&5 9436cat conftest.$ac_ext >&5 9437fi 9438rm -f conftest.$ac_objext conftest.$ac_ext 9439else 9440 cat >conftest.$ac_ext <<_ACEOF 9441#line $LINENO "configure" 9442#include "confdefs.h" 9443int 9444main () 9445{ 9446 /* Are we little or big endian? From Harbison&Steele. */ 9447 union 9448 { 9449 long l; 9450 char c[sizeof (long)]; 9451 } u; 9452 u.l = 1; 9453 exit (u.c[sizeof (long) - 1] == 1); 9454} 9455_ACEOF 9456rm -f conftest$ac_exeext 9457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9458 (eval $ac_link) 2>&5 9459 ac_status=$? 9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9461 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9463 (eval $ac_try) 2>&5 9464 ac_status=$? 9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9466 (exit $ac_status); }; }; then 9467 ac_cv_c_bigendian=no 9468else 9469 echo "$as_me: program exited with status $ac_status" >&5 9470echo "$as_me: failed program was:" >&5 9471cat conftest.$ac_ext >&5 9472( exit $ac_status ) 9473ac_cv_c_bigendian=yes 9474fi 9475rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9476fi 9477fi 9478rm -f conftest.$ac_objext conftest.$ac_ext 9479fi 9480echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 9481echo "${ECHO_T}$ac_cv_c_bigendian" >&6 9482case $ac_cv_c_bigendian in 9483 yes) 9484 9485cat >>confdefs.h <<\_ACEOF 9486#define WORDS_BIGENDIAN 1 9487_ACEOF 9488 ;; 9489 no) 9490 ;; 9491 *) 9492 { { echo "$as_me:$LINENO: error: unknown endianess 9493presetting ac_cv_c_bigendian=no (or yes) will help" >&5 9494echo "$as_me: error: unknown endianess 9495presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 9496 { (exit 1); exit 1; }; } ;; 9497esac 9498 9499 9500 9501 9502 9503for ac_func in memalign gettimeofday ftime 9504do 9505as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9506echo "$as_me:$LINENO: checking for $ac_func" >&5 9507echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9508if eval "test \"\${$as_ac_var+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/* System header to define __stub macros and hopefully few prototypes, 9515 which can conflict with char $ac_func (); below. */ 9516#include <assert.h> 9517/* Override any gcc2 internal prototype to avoid an error. */ 9518#ifdef __cplusplus 9519extern "C" 9520#endif 9521/* We use char because int might match the return type of a gcc2 9522 builtin and then its argument prototype would still apply. */ 9523char $ac_func (); 9524char (*f) (); 9525 9526#ifdef F77_DUMMY_MAIN 9527# ifdef __cplusplus 9528 extern "C" 9529# endif 9530 int F77_DUMMY_MAIN() { return 1; } 9531#endif 9532int 9533main () 9534{ 9535/* The GNU C library defines this for functions which it implements 9536 to always fail with ENOSYS. Some functions are actually named 9537 something starting with __ and the normal name is an alias. */ 9538#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9539choke me 9540#else 9541f = $ac_func; 9542#endif 9543 9544 ; 9545 return 0; 9546} 9547_ACEOF 9548rm -f conftest.$ac_objext conftest$ac_exeext 9549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9550 (eval $ac_link) 2>&5 9551 ac_status=$? 9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9553 (exit $ac_status); } && 9554 { ac_try='test -s conftest$ac_exeext' 9555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9556 (eval $ac_try) 2>&5 9557 ac_status=$? 9558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9559 (exit $ac_status); }; }; then 9560 eval "$as_ac_var=yes" 9561else 9562 echo "$as_me: failed program was:" >&5 9563cat conftest.$ac_ext >&5 9564eval "$as_ac_var=no" 9565fi 9566rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9567fi 9568echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9569echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9570if test `eval echo '${'$as_ac_var'}'` = yes; then 9571 cat >>confdefs.h <<_ACEOF 9572#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9573_ACEOF 9574 9575fi 9576done 9577 9578echo "$as_me:$LINENO: checking return type of signal handlers" >&5 9579echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 9580if test "${ac_cv_type_signal+set}" = set; then 9581 echo $ECHO_N "(cached) $ECHO_C" >&6 9582else 9583 cat >conftest.$ac_ext <<_ACEOF 9584#line $LINENO "configure" 9585#include "confdefs.h" 9586#include <sys/types.h> 9587#include <signal.h> 9588#ifdef signal 9589# undef signal 9590#endif 9591#ifdef __cplusplus 9592extern "C" void (*signal (int, void (*)(int)))(int); 9593#else 9594void (*signal ()) (); 9595#endif 9596 9597#ifdef F77_DUMMY_MAIN 9598# ifdef __cplusplus 9599 extern "C" 9600# endif 9601 int F77_DUMMY_MAIN() { return 1; } 9602#endif 9603int 9604main () 9605{ 9606int i; 9607 ; 9608 return 0; 9609} 9610_ACEOF 9611rm -f conftest.$ac_objext 9612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9613 (eval $ac_compile) 2>&5 9614 ac_status=$? 9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9616 (exit $ac_status); } && 9617 { ac_try='test -s conftest.$ac_objext' 9618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9619 (eval $ac_try) 2>&5 9620 ac_status=$? 9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9622 (exit $ac_status); }; }; then 9623 ac_cv_type_signal=void 9624else 9625 echo "$as_me: failed program was:" >&5 9626cat conftest.$ac_ext >&5 9627ac_cv_type_signal=int 9628fi 9629rm -f conftest.$ac_objext conftest.$ac_ext 9630fi 9631echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 9632echo "${ECHO_T}$ac_cv_type_signal" >&6 9633 9634cat >>confdefs.h <<_ACEOF 9635#define RETSIGTYPE $ac_cv_type_signal 9636_ACEOF 9637 9638 9639 9640 9641 9642 9643 9644# Check whether --enable-double or --disable-double was given. 9645if test "${enable_double+set}" = set; then 9646 enableval="$enable_double" 9647 9648fi; 9649if test x"$enable_double" = x"yes"; then 9650 9651cat >>confdefs.h <<\_ACEOF 9652#define LIBA52_DOUBLE 9653_ACEOF 9654 9655fi 9656 9657# Check whether --enable-djbfft or --disable-djbfft was given. 9658if test "${enable_djbfft+set}" = set; then 9659 enableval="$enable_djbfft" 9660 9661fi; 9662if test x"$enable_djbfft" = x"yes"; then 9663 9664cat >>confdefs.h <<\_ACEOF 9665#define LIBA52_DJBFFT 9666_ACEOF 9667 9668 LIBA52_LIBS="$LIBA52_LIBS -ldjbfft" 9669fi 9670 9671 9672 9673# Check whether --enable-oss or --disable-oss was given. 9674if test "${enable_oss+set}" = set; then 9675 enableval="$enable_oss" 9676 9677fi; 9678if test x"$enable_oss" != x"no"; then 9679 case "$host" in 9680 *-linux*|*-openbsd*|*-freebsd*|*-bsdi*) 9681 9682cat >>confdefs.h <<\_ACEOF 9683#define LIBAO_OSS 9684_ACEOF 9685 9686 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5 9687echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6 9688if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then 9689 echo $ECHO_N "(cached) $ECHO_C" >&6 9690else 9691 ac_check_lib_save_LIBS=$LIBS 9692LIBS="-lossaudio $LIBS" 9693cat >conftest.$ac_ext <<_ACEOF 9694#line $LINENO "configure" 9695#include "confdefs.h" 9696 9697/* Override any gcc2 internal prototype to avoid an error. */ 9698#ifdef __cplusplus 9699extern "C" 9700#endif 9701/* We use char because int might match the return type of a gcc2 9702 builtin and then its argument prototype would still apply. */ 9703char _oss_ioctl (); 9704#ifdef F77_DUMMY_MAIN 9705# ifdef __cplusplus 9706 extern "C" 9707# endif 9708 int F77_DUMMY_MAIN() { return 1; } 9709#endif 9710int 9711main () 9712{ 9713_oss_ioctl (); 9714 ; 9715 return 0; 9716} 9717_ACEOF 9718rm -f conftest.$ac_objext conftest$ac_exeext 9719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9720 (eval $ac_link) 2>&5 9721 ac_status=$? 9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9723 (exit $ac_status); } && 9724 { ac_try='test -s conftest$ac_exeext' 9725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9726 (eval $ac_try) 2>&5 9727 ac_status=$? 9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9729 (exit $ac_status); }; }; then 9730 ac_cv_lib_ossaudio__oss_ioctl=yes 9731else 9732 echo "$as_me: failed program was:" >&5 9733cat conftest.$ac_ext >&5 9734ac_cv_lib_ossaudio__oss_ioctl=no 9735fi 9736rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9737LIBS=$ac_check_lib_save_LIBS 9738fi 9739echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 9740echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6 9741if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then 9742 LIBAO_LIBS="$LIBAO_LIBS -lossaudio" 9743fi 9744;; 9745 esac 9746fi 9747 9748# Check whether --enable-solaris-audio or --disable-solaris-audio was given. 9749if test "${enable_solaris_audio+set}" = set; then 9750 enableval="$enable_solaris_audio" 9751 9752fi; 9753if test x"$enable_solaris_audio" != x"no"; then 9754 case "$host" in 9755 *-sun-solaris*) 9756 9757cat >>confdefs.h <<\_ACEOF 9758#define LIBAO_SOLARIS 9759_ACEOF 9760;; 9761 esac 9762fi 9763 9764# Check whether --enable-al-audio or --disable-al-audio was given. 9765if test "${enable_al_audio+set}" = set; then 9766 enableval="$enable_al_audio" 9767 9768fi; 9769if test x"$enable_al" != x"no"; then 9770 case "$host" in 9771 *-sgi-irix*) 9772 LIBAO_LIBS="$LIBAO_LIBS -laudio" 9773 9774cat >>confdefs.h <<\_ACEOF 9775#define LIBAO_AL 9776_ACEOF 9777;; 9778 esac 9779fi 9780 9781# Check whether --enable-win or --disable-win was given. 9782if test "${enable_win+set}" = set; then 9783 enableval="$enable_win" 9784 9785fi; 9786if test x"$enable_win" != x"no"; then 9787 case "$host" in 9788 *-mingw32*|*-cygwin) 9789 LIBAO_LIBS="$LIBAO_LIBS -lwinmm" 9790 9791cat >>confdefs.h <<\_ACEOF 9792#define LIBAO_WIN 9793_ACEOF 9794;; 9795 esac 9796fi 9797 9798 9799# Check whether --enable-warnings or --disable-warnings was given. 9800if test "${enable_warnings+set}" = set; then 9801 enableval="$enable_warnings" 9802 9803fi; 9804if test x"$enable_warnings" = x"yes" -a x"$GCC" = x"yes"; then 9805 OPT_CFLAGS="$CFLAGS -Wall -Werror" 9806 echo "$as_me:$LINENO: checking if $CC supports $OPT_CFLAGS flags" >&5 9807echo $ECHO_N "checking if $CC supports $OPT_CFLAGS flags... $ECHO_C" >&6 9808 SAVE_CFLAGS="$CFLAGS" 9809 CFLAGS="$OPT_CFLAGS" 9810 cat >conftest.$ac_ext <<_ACEOF 9811#line $LINENO "configure" 9812#include "confdefs.h" 9813 9814#ifdef F77_DUMMY_MAIN 9815# ifdef __cplusplus 9816 extern "C" 9817# endif 9818 int F77_DUMMY_MAIN() { return 1; } 9819#endif 9820int 9821main () 9822{ 9823 9824 ; 9825 return 0; 9826} 9827_ACEOF 9828rm -f conftest.$ac_objext 9829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9830 (eval $ac_compile) 2>&5 9831 ac_status=$? 9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9833 (exit $ac_status); } && 9834 { ac_try='test -s conftest.$ac_objext' 9835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9836 (eval $ac_try) 2>&5 9837 ac_status=$? 9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9839 (exit $ac_status); }; }; then 9840 ac_cv_try_cflags_ok=yes 9841else 9842 echo "$as_me: failed program was:" >&5 9843cat conftest.$ac_ext >&5 9844ac_cv_try_cflags_ok=no 9845fi 9846rm -f conftest.$ac_objext conftest.$ac_ext 9847 CFLAGS="$SAVE_CFLAGS" 9848 echo "$as_me:$LINENO: result: $ac_cv_try_cflags_ok" >&5 9849echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6 9850 if test x"$ac_cv_try_cflags_ok" = x"yes"; then 9851 CFLAGS=$OPT_CFLAGS 9852 else 9853 : 9854 fi 9855elif test x"$TENDRA" = x"yes"; then 9856 CFLAGS="$CFLAGS -DTenDRA_check" 9857fi 9858 9859 9860 9861A52DEC_CFLAGS="$CFLAGS" 9862 9863# Check whether --enable-gprof or --disable-gprof was given. 9864if test "${enable_gprof+set}" = set; then 9865 enableval="$enable_gprof" 9866 9867fi; 9868if test x"$enable_gprof" = x"yes"; then 9869 A52DEC_CFLAGS=`echo "$A52DEC_CFLAGS"|sed "s/-fomit-frame-pointer//g"` 9870 A52DEC_CFLAGS="$A52DEC_CFLAGS -p" 9871fi 9872 9873 9874echo "$as_me:$LINENO: checking __attribute__ ((aligned ())) support" >&5 9875echo $ECHO_N "checking __attribute__ ((aligned ())) support... $ECHO_C" >&6 9876if test "${ac_cv_c_attribute_aligned+set}" = set; then 9877 echo $ECHO_N "(cached) $ECHO_C" >&6 9878else 9879 ac_cv_c_attribute_aligned=0 9880 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do 9881 cat >conftest.$ac_ext <<_ACEOF 9882#line $LINENO "configure" 9883#include "confdefs.h" 9884 9885#ifdef F77_DUMMY_MAIN 9886# ifdef __cplusplus 9887 extern "C" 9888# endif 9889 int F77_DUMMY_MAIN() { return 1; } 9890#endif 9891int 9892main () 9893{ 9894static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c; 9895 ; 9896 return 0; 9897} 9898_ACEOF 9899rm -f conftest.$ac_objext 9900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9901 (eval $ac_compile) 2>&5 9902 ac_status=$? 9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9904 (exit $ac_status); } && 9905 { ac_try='test -s conftest.$ac_objext' 9906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9907 (eval $ac_try) 2>&5 9908 ac_status=$? 9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9910 (exit $ac_status); }; }; then 9911 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try 9912else 9913 echo "$as_me: failed program was:" >&5 9914cat conftest.$ac_ext >&5 9915fi 9916rm -f conftest.$ac_objext conftest.$ac_ext 9917 done 9918fi 9919echo "$as_me:$LINENO: result: $ac_cv_c_attribute_aligned" >&5 9920echo "${ECHO_T}$ac_cv_c_attribute_aligned" >&6 9921 if test x"$ac_cv_c_attribute_aligned" != x"0"; then 9922 9923cat >>confdefs.h <<_ACEOF 9924#define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned 9925_ACEOF 9926 9927 fi 9928 9929cat >confcache <<\_ACEOF 9930# This file is a shell script that caches the results of configure 9931# tests run on this system so they can be shared between configure 9932# scripts and configure runs, see configure's option --config-cache. 9933# It is not useful on other systems. If it contains results you don't 9934# want to keep, you may remove or edit it. 9935# 9936# config.status only pays attention to the cache file if you give it 9937# the --recheck option to rerun configure. 9938# 9939# `ac_cv_env_foo' variables (set or unset) will be overriden when 9940# loading this file, other *unset* `ac_cv_foo' will be assigned the 9941# following values. 9942 9943_ACEOF 9944 9945# The following way of writing the cache mishandles newlines in values, 9946# but we know of no workaround that is simple, portable, and efficient. 9947# So, don't put newlines in cache variables' values. 9948# Ultrix sh set writes to stderr and can't be redirected directly, 9949# and sets the high bit in the cache file unless we assign to the vars. 9950{ 9951 (set) 2>&1 | 9952 case `(ac_space=' '; set | grep ac_space) 2>&1` in 9953 *ac_space=\ *) 9954 # `set' does not quote correctly, so add quotes (double-quote 9955 # substitution turns \\\\ into \\, and sed turns \\ into \). 9956 sed -n \ 9957 "s/'/'\\\\''/g; 9958 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 9959 ;; 9960 *) 9961 # `set' quotes correctly as required by POSIX, so do not add quotes. 9962 sed -n \ 9963 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 9964 ;; 9965 esac; 9966} | 9967 sed ' 9968 t clear 9969 : clear 9970 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 9971 t end 9972 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 9973 : end' >>confcache 9974if cmp -s $cache_file confcache; then :; else 9975 if test -w $cache_file; then 9976 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 9977 cat confcache >$cache_file 9978 else 9979 echo "not updating unwritable cache $cache_file" 9980 fi 9981fi 9982rm -f confcache 9983 9984test "x$prefix" = xNONE && prefix=$ac_default_prefix 9985# Let make expand exec_prefix. 9986test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 9987 9988# VPATH may cause trouble with some makes, so we remove $(srcdir), 9989# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 9990# trailing colons and then remove the whole line if VPATH becomes empty 9991# (actually we leave an empty line to preserve line numbers). 9992if test "x$srcdir" = x.; then 9993 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 9994s/:*\$(srcdir):*/:/; 9995s/:*\${srcdir}:*/:/; 9996s/:*@srcdir@:*/:/; 9997s/^\([^=]*=[ ]*\):*/\1/; 9998s/:*$//; 9999s/^[^=]*=[ ]*$//; 10000}' 10001fi 10002 10003DEFS=-DHAVE_CONFIG_H 10004 10005 10006: ${CONFIG_STATUS=./config.status} 10007ac_clean_files_save=$ac_clean_files 10008ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10009{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 10010echo "$as_me: creating $CONFIG_STATUS" >&6;} 10011cat >$CONFIG_STATUS <<_ACEOF 10012#! $SHELL 10013# Generated by $as_me. 10014# Run this file to recreate the current configuration. 10015# Compiler output produced by configure, useful for debugging 10016# configure, is in config.log if it exists. 10017 10018debug=false 10019SHELL=\${CONFIG_SHELL-$SHELL} 10020_ACEOF 10021 10022cat >>$CONFIG_STATUS <<\_ACEOF 10023 10024## --------------------- ## 10025## M4sh Initialization. ## 10026## --------------------- ## 10027 10028# Be Bourne compatible 10029if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 10030 emulate sh 10031 NULLCMD=: 10032elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 10033 set -o posix 10034fi 10035 10036# NLS nuisances. 10037# Support unset when possible. 10038if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 10039 as_unset=unset 10040else 10041 as_unset=false 10042fi 10043 10044(set +x; test -n "`(LANG=C; export LANG) 2>&1`") && 10045 { $as_unset LANG || test "${LANG+set}" != set; } || 10046 { LANG=C; export LANG; } 10047(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && 10048 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || 10049 { LC_ALL=C; export LC_ALL; } 10050(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && 10051 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || 10052 { LC_TIME=C; export LC_TIME; } 10053(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && 10054 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || 10055 { LC_CTYPE=C; export LC_CTYPE; } 10056(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && 10057 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || 10058 { LANGUAGE=C; export LANGUAGE; } 10059(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && 10060 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || 10061 { LC_COLLATE=C; export LC_COLLATE; } 10062(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && 10063 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || 10064 { LC_NUMERIC=C; export LC_NUMERIC; } 10065(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && 10066 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || 10067 { LC_MESSAGES=C; export LC_MESSAGES; } 10068 10069 10070# Name of the executable. 10071as_me=`(basename "$0") 2>/dev/null || 10072$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 10073 X"$0" : 'X\(//\)$' \| \ 10074 X"$0" : 'X\(/\)$' \| \ 10075 . : '\(.\)' 2>/dev/null || 10076echo X/"$0" | 10077 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 10078 /^X\/\(\/\/\)$/{ s//\1/; q; } 10079 /^X\/\(\/\).*/{ s//\1/; q; } 10080 s/.*/./; q'` 10081 10082# PATH needs CR, and LINENO needs CR and PATH. 10083# Avoid depending upon Character Ranges. 10084as_cr_letters='abcdefghijklmnopqrstuvwxyz' 10085as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 10086as_cr_Letters=$as_cr_letters$as_cr_LETTERS 10087as_cr_digits='0123456789' 10088as_cr_alnum=$as_cr_Letters$as_cr_digits 10089 10090# The user is always right. 10091if test "${PATH_SEPARATOR+set}" != set; then 10092 echo "#! /bin/sh" >conftest.sh 10093 echo "exit 0" >>conftest.sh 10094 chmod +x conftest.sh 10095 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then 10096 PATH_SEPARATOR=';' 10097 else 10098 PATH_SEPARATOR=: 10099 fi 10100 rm -f conftest.sh 10101fi 10102 10103 10104 as_lineno_1=$LINENO 10105 as_lineno_2=$LINENO 10106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 10107 test "x$as_lineno_1" != "x$as_lineno_2" && 10108 test "x$as_lineno_3" = "x$as_lineno_2" || { 10109 # Find who we are. Look in the path if we contain no path at all 10110 # relative or not. 10111 case $0 in 10112 *[\\/]* ) as_myself=$0 ;; 10113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10114for as_dir in $PATH 10115do 10116 IFS=$as_save_IFS 10117 test -z "$as_dir" && as_dir=. 10118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10119done 10120 10121 ;; 10122 esac 10123 # We did not find ourselves, most probably we were run as `sh COMMAND' 10124 # in which case we are not to be found in the path. 10125 if test "x$as_myself" = x; then 10126 as_myself=$0 10127 fi 10128 if test ! -f "$as_myself"; then 10129 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 10130echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 10131 { (exit 1); exit 1; }; } 10132 fi 10133 case $CONFIG_SHELL in 10134 '') 10135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10136for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 10137do 10138 IFS=$as_save_IFS 10139 test -z "$as_dir" && as_dir=. 10140 for as_base in sh bash ksh sh5; do 10141 case $as_dir in 10142 /*) 10143 if ("$as_dir/$as_base" -c ' 10144 as_lineno_1=$LINENO 10145 as_lineno_2=$LINENO 10146 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 10147 test "x$as_lineno_1" != "x$as_lineno_2" && 10148 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 10149 CONFIG_SHELL=$as_dir/$as_base 10150 export CONFIG_SHELL 10151 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 10152 fi;; 10153 esac 10154 done 10155done 10156;; 10157 esac 10158 10159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 10160 # uniformly replaced by the line number. The first 'sed' inserts a 10161 # line-number line before each line; the second 'sed' does the real 10162 # work. The second script uses 'N' to pair each line-number line 10163 # with the numbered line, and appends trailing '-' during 10164 # substitution so that $LINENO is not a special case at line end. 10165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 10166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 10167 sed '=' <$as_myself | 10168 sed ' 10169 N 10170 s,$,-, 10171 : loop 10172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 10173 t loop 10174 s,-$,, 10175 s,^['$as_cr_digits']*\n,, 10176 ' >$as_me.lineno && 10177 chmod +x $as_me.lineno || 10178 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 10179echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 10180 { (exit 1); exit 1; }; } 10181 10182 # Don't try to exec as it changes $[0], causing all sort of problems 10183 # (the dirname of $[0] is not the place where we might find the 10184 # original and so on. Autoconf is especially sensible to this). 10185 . ./$as_me.lineno 10186 # Exit status is that of the last command. 10187 exit 10188} 10189 10190 10191case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 10192 *c*,-n*) ECHO_N= ECHO_C=' 10193' ECHO_T=' ' ;; 10194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 10195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 10196esac 10197 10198if expr a : '\(a\)' >/dev/null 2>&1; then 10199 as_expr=expr 10200else 10201 as_expr=false 10202fi 10203 10204rm -f conf$$ conf$$.exe conf$$.file 10205echo >conf$$.file 10206if ln -s conf$$.file conf$$ 2>/dev/null; then 10207 # We could just check for DJGPP; but this test a) works b) is more generic 10208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 10209 if test -f conf$$.exe; then 10210 # Don't use ln at all; we don't have any links 10211 as_ln_s='cp -p' 10212 else 10213 as_ln_s='ln -s' 10214 fi 10215elif ln conf$$.file conf$$ 2>/dev/null; then 10216 as_ln_s=ln 10217else 10218 as_ln_s='cp -p' 10219fi 10220rm -f conf$$ conf$$.exe conf$$.file 10221 10222as_executable_p="test -f" 10223 10224# Sed expression to map a string onto a valid CPP name. 10225as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 10226 10227# Sed expression to map a string onto a valid variable name. 10228as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 10229 10230 10231# IFS 10232# We need space, tab and new line, in precisely that order. 10233as_nl=' 10234' 10235IFS=" $as_nl" 10236 10237# CDPATH. 10238$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } 10239 10240exec 6>&1 10241 10242# Open the log real soon, to keep \$[0] and so on meaningful, and to 10243# report actual input values of CONFIG_FILES etc. instead of their 10244# values after options handling. Logging --version etc. is OK. 10245exec 5>>config.log 10246{ 10247 echo 10248 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 10249## Running $as_me. ## 10250_ASBOX 10251} >&5 10252cat >&5 <<_CSEOF 10253 10254This file was extended by $as_me, which was 10255generated by GNU Autoconf 2.53. Invocation command line was 10256 10257 CONFIG_FILES = $CONFIG_FILES 10258 CONFIG_HEADERS = $CONFIG_HEADERS 10259 CONFIG_LINKS = $CONFIG_LINKS 10260 CONFIG_COMMANDS = $CONFIG_COMMANDS 10261 $ $0 $@ 10262 10263_CSEOF 10264echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 10265echo >&5 10266_ACEOF 10267 10268# Files that config.status was made for. 10269if test -n "$ac_config_files"; then 10270 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 10271fi 10272 10273if test -n "$ac_config_headers"; then 10274 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 10275fi 10276 10277if test -n "$ac_config_links"; then 10278 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 10279fi 10280 10281if test -n "$ac_config_commands"; then 10282 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 10283fi 10284 10285cat >>$CONFIG_STATUS <<\_ACEOF 10286 10287ac_cs_usage="\ 10288\`$as_me' instantiates files from templates according to the 10289current configuration. 10290 10291Usage: $0 [OPTIONS] [FILE]... 10292 10293 -h, --help print this help, then exit 10294 -V, --version print version number, then exit 10295 -d, --debug don't remove temporary files 10296 --recheck update $as_me by reconfiguring in the same conditions 10297 --file=FILE[:TEMPLATE] 10298 instantiate the configuration file FILE 10299 --header=FILE[:TEMPLATE] 10300 instantiate the configuration header FILE 10301 10302Configuration files: 10303$config_files 10304 10305Configuration headers: 10306$config_headers 10307 10308Configuration commands: 10309$config_commands 10310 10311Report bugs to <bug-autoconf@gnu.org>." 10312_ACEOF 10313 10314cat >>$CONFIG_STATUS <<_ACEOF 10315ac_cs_version="\\ 10316config.status 10317configured by $0, generated by GNU Autoconf 2.53, 10318 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 10319 10320Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 10321Free Software Foundation, Inc. 10322This config.status script is free software; the Free Software Foundation 10323gives unlimited permission to copy, distribute and modify it." 10324srcdir=$srcdir 10325INSTALL="$INSTALL" 10326_ACEOF 10327 10328cat >>$CONFIG_STATUS <<\_ACEOF 10329# If no file are specified by the user, then we need to provide default 10330# value. By we need to know if files were specified by the user. 10331ac_need_defaults=: 10332while test $# != 0 10333do 10334 case $1 in 10335 --*=*) 10336 ac_option=`expr "x$1" : 'x\([^=]*\)='` 10337 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 10338 shift 10339 set dummy "$ac_option" "$ac_optarg" ${1+"$@"} 10340 shift 10341 ;; 10342 -*);; 10343 *) # This is not an option, so the user has probably given explicit 10344 # arguments. 10345 ac_need_defaults=false;; 10346 esac 10347 10348 case $1 in 10349 # Handling of the options. 10350_ACEOF 10351cat >>$CONFIG_STATUS <<_ACEOF 10352 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 10353 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" 10354 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; 10355_ACEOF 10356cat >>$CONFIG_STATUS <<\_ACEOF 10357 --version | --vers* | -V ) 10358 echo "$ac_cs_version"; exit 0 ;; 10359 --he | --h) 10360 # Conflict between --help and --header 10361 { { echo "$as_me:$LINENO: error: ambiguous option: $1 10362Try \`$0 --help' for more information." >&5 10363echo "$as_me: error: ambiguous option: $1 10364Try \`$0 --help' for more information." >&2;} 10365 { (exit 1); exit 1; }; };; 10366 --help | --hel | -h ) 10367 echo "$ac_cs_usage"; exit 0 ;; 10368 --debug | --d* | -d ) 10369 debug=: ;; 10370 --file | --fil | --fi | --f ) 10371 shift 10372 CONFIG_FILES="$CONFIG_FILES $1" 10373 ac_need_defaults=false;; 10374 --header | --heade | --head | --hea ) 10375 shift 10376 CONFIG_HEADERS="$CONFIG_HEADERS $1" 10377 ac_need_defaults=false;; 10378 10379 # This is an error. 10380 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 10381Try \`$0 --help' for more information." >&5 10382echo "$as_me: error: unrecognized option: $1 10383Try \`$0 --help' for more information." >&2;} 10384 { (exit 1); exit 1; }; } ;; 10385 10386 *) ac_config_targets="$ac_config_targets $1" ;; 10387 10388 esac 10389 shift 10390done 10391 10392_ACEOF 10393 10394cat >>$CONFIG_STATUS <<_ACEOF 10395# 10396# INIT-COMMANDS section. 10397# 10398 10399 10400 10401_ACEOF 10402 10403 10404 10405cat >>$CONFIG_STATUS <<\_ACEOF 10406for ac_config_target in $ac_config_targets 10407do 10408 case "$ac_config_target" in 10409 # Handling of arguments. 10410 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 10411 "autotools/Makefile" ) CONFIG_FILES="$CONFIG_FILES autotools/Makefile" ;; 10412 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 10413 "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 10414 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 10415 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 10416 "liba52/Makefile" ) CONFIG_FILES="$CONFIG_FILES liba52/Makefile" ;; 10417 "libao/Makefile" ) CONFIG_FILES="$CONFIG_FILES libao/Makefile" ;; 10418 "vc++/Makefile" ) CONFIG_FILES="$CONFIG_FILES vc++/Makefile" ;; 10419 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 10420 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; 10421 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 10422echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 10423 { (exit 1); exit 1; }; };; 10424 esac 10425done 10426 10427# If the user did not use the arguments to specify the items to instantiate, 10428# then the envvar interface is used. Set only those that are not. 10429# We use the long form for the default assignment because of an extremely 10430# bizarre bug on SunOS 4.1.3. 10431if $ac_need_defaults; then 10432 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 10433 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 10434 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 10435fi 10436 10437# Create a temporary directory, and hook for its removal unless debugging. 10438$debug || 10439{ 10440 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 10441 trap '{ (exit 1); exit 1; }' 1 2 13 15 10442} 10443 10444# Create a (secure) tmp directory for tmp files. 10445: ${TMPDIR=/tmp} 10446{ 10447 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && 10448 test -n "$tmp" && test -d "$tmp" 10449} || 10450{ 10451 tmp=$TMPDIR/cs$$-$RANDOM 10452 (umask 077 && mkdir $tmp) 10453} || 10454{ 10455 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 10456 { (exit 1); exit 1; } 10457} 10458 10459_ACEOF 10460 10461cat >>$CONFIG_STATUS <<_ACEOF 10462 10463# 10464# CONFIG_FILES section. 10465# 10466 10467# No need to generate the scripts if there are no CONFIG_FILES. 10468# This happens for instance when ./config.status config.h 10469if test -n "\$CONFIG_FILES"; then 10470 # Protect against being on the right side of a sed subst in config.status. 10471 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 10472 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 10473s,@SHELL@,$SHELL,;t t 10474s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 10475s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 10476s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 10477s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 10478s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 10479s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 10480s,@exec_prefix@,$exec_prefix,;t t 10481s,@prefix@,$prefix,;t t 10482s,@program_transform_name@,$program_transform_name,;t t 10483s,@bindir@,$bindir,;t t 10484s,@sbindir@,$sbindir,;t t 10485s,@libexecdir@,$libexecdir,;t t 10486s,@datadir@,$datadir,;t t 10487s,@sysconfdir@,$sysconfdir,;t t 10488s,@sharedstatedir@,$sharedstatedir,;t t 10489s,@localstatedir@,$localstatedir,;t t 10490s,@libdir@,$libdir,;t t 10491s,@includedir@,$includedir,;t t 10492s,@oldincludedir@,$oldincludedir,;t t 10493s,@infodir@,$infodir,;t t 10494s,@mandir@,$mandir,;t t 10495s,@build_alias@,$build_alias,;t t 10496s,@host_alias@,$host_alias,;t t 10497s,@target_alias@,$target_alias,;t t 10498s,@DEFS@,$DEFS,;t t 10499s,@ECHO_C@,$ECHO_C,;t t 10500s,@ECHO_N@,$ECHO_N,;t t 10501s,@ECHO_T@,$ECHO_T,;t t 10502s,@LIBS@,$LIBS,;t t 10503s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 10504s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 10505s,@INSTALL_DATA@,$INSTALL_DATA,;t t 10506s,@PACKAGE@,$PACKAGE,;t t 10507s,@VERSION@,$VERSION,;t t 10508s,@ACLOCAL@,$ACLOCAL,;t t 10509s,@AUTOCONF@,$AUTOCONF,;t t 10510s,@AUTOMAKE@,$AUTOMAKE,;t t 10511s,@AUTOHEADER@,$AUTOHEADER,;t t 10512s,@MAKEINFO@,$MAKEINFO,;t t 10513s,@SET_MAKE@,$SET_MAKE,;t t 10514s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t 10515s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t 10516s,@MAINT@,$MAINT,;t t 10517s,@build@,$build,;t t 10518s,@build_cpu@,$build_cpu,;t t 10519s,@build_vendor@,$build_vendor,;t t 10520s,@build_os@,$build_os,;t t 10521s,@host@,$host,;t t 10522s,@host_cpu@,$host_cpu,;t t 10523s,@host_vendor@,$host_vendor,;t t 10524s,@host_os@,$host_os,;t t 10525s,@CC@,$CC,;t t 10526s,@CFLAGS@,$CFLAGS,;t t 10527s,@LDFLAGS@,$LDFLAGS,;t t 10528s,@CPPFLAGS@,$CPPFLAGS,;t t 10529s,@ac_ct_CC@,$ac_ct_CC,;t t 10530s,@EXEEXT@,$EXEEXT,;t t 10531s,@OBJEXT@,$OBJEXT,;t t 10532s,@CPP@,$CPP,;t t 10533s,@LN_S@,$LN_S,;t t 10534s,@ECHO@,$ECHO,;t t 10535s,@RANLIB@,$RANLIB,;t t 10536s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 10537s,@STRIP@,$STRIP,;t t 10538s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 10539s,@LIBTOOL@,$LIBTOOL,;t t 10540s,@INCLUDES@,$INCLUDES,;t t 10541s,@LIBA52_CFLAGS@,$LIBA52_CFLAGS,;t t 10542s,@LIBA52_LIBS@,$LIBA52_LIBS,;t t 10543s,@LIBAO_LIBS@,$LIBAO_LIBS,;t t 10544s,@A52DEC_CFLAGS@,$A52DEC_CFLAGS,;t t 10545CEOF 10546 10547_ACEOF 10548 10549 cat >>$CONFIG_STATUS <<\_ACEOF 10550 # Split the substitutions into bite-sized pieces for seds with 10551 # small command number limits, like on Digital OSF/1 and HP-UX. 10552 ac_max_sed_lines=48 10553 ac_sed_frag=1 # Number of current file. 10554 ac_beg=1 # First line for current file. 10555 ac_end=$ac_max_sed_lines # Line after last line for current file. 10556 ac_more_lines=: 10557 ac_sed_cmds= 10558 while $ac_more_lines; do 10559 if test $ac_beg -gt 1; then 10560 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 10561 else 10562 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 10563 fi 10564 if test ! -s $tmp/subs.frag; then 10565 ac_more_lines=false 10566 else 10567 # The purpose of the label and of the branching condition is to 10568 # speed up the sed processing (if there are no `@' at all, there 10569 # is no need to browse any of the substitutions). 10570 # These are the two extra sed commands mentioned above. 10571 (echo ':t 10572 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 10573 if test -z "$ac_sed_cmds"; then 10574 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 10575 else 10576 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 10577 fi 10578 ac_sed_frag=`expr $ac_sed_frag + 1` 10579 ac_beg=$ac_end 10580 ac_end=`expr $ac_end + $ac_max_sed_lines` 10581 fi 10582 done 10583 if test -z "$ac_sed_cmds"; then 10584 ac_sed_cmds=cat 10585 fi 10586fi # test -n "$CONFIG_FILES" 10587 10588_ACEOF 10589cat >>$CONFIG_STATUS <<\_ACEOF 10590for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 10591 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 10592 case $ac_file in 10593 - | *:- | *:-:* ) # input from stdin 10594 cat >$tmp/stdin 10595 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 10596 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 10597 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 10598 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 10599 * ) ac_file_in=$ac_file.in ;; 10600 esac 10601 10602 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 10603 ac_dir=`(dirname "$ac_file") 2>/dev/null || 10604$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10605 X"$ac_file" : 'X\(//\)[^/]' \| \ 10606 X"$ac_file" : 'X\(//\)$' \| \ 10607 X"$ac_file" : 'X\(/\)' \| \ 10608 . : '\(.\)' 2>/dev/null || 10609echo X"$ac_file" | 10610 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 10611 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 10612 /^X\(\/\/\)$/{ s//\1/; q; } 10613 /^X\(\/\).*/{ s//\1/; q; } 10614 s/.*/./; q'` 10615 { case "$ac_dir" in 10616 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 10617 *) as_incr_dir=.;; 10618esac 10619as_dummy="$ac_dir" 10620for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 10621 case $as_mkdir_dir in 10622 # Skip DOS drivespec 10623 ?:) as_incr_dir=$as_mkdir_dir ;; 10624 *) 10625 as_incr_dir=$as_incr_dir/$as_mkdir_dir 10626 test -d "$as_incr_dir" || 10627 mkdir "$as_incr_dir" || 10628 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 10629echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} 10630 { (exit 1); exit 1; }; } 10631 ;; 10632 esac 10633done; } 10634 10635 ac_builddir=. 10636 10637if test "$ac_dir" != .; then 10638 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 10639 # A "../" for each directory in $ac_dir_suffix. 10640 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 10641else 10642 ac_dir_suffix= ac_top_builddir= 10643fi 10644 10645case $srcdir in 10646 .) # No --srcdir option. We are building in place. 10647 ac_srcdir=. 10648 if test -z "$ac_top_builddir"; then 10649 ac_top_srcdir=. 10650 else 10651 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 10652 fi ;; 10653 [\\/]* | ?:[\\/]* ) # Absolute path. 10654 ac_srcdir=$srcdir$ac_dir_suffix; 10655 ac_top_srcdir=$srcdir ;; 10656 *) # Relative path. 10657 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 10658 ac_top_srcdir=$ac_top_builddir$srcdir ;; 10659esac 10660# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 10661# absolute. 10662ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 10663ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` 10664ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 10665ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 10666 10667 10668 case $INSTALL in 10669 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 10670 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 10671 esac 10672 10673 if test x"$ac_file" != x-; then 10674 { echo "$as_me:$LINENO: creating $ac_file" >&5 10675echo "$as_me: creating $ac_file" >&6;} 10676 rm -f "$ac_file" 10677 fi 10678 # Let's still pretend it is `configure' which instantiates (i.e., don't 10679 # use $as_me), people would be surprised to read: 10680 # /* config.h. Generated by config.status. */ 10681 if test x"$ac_file" = x-; then 10682 configure_input= 10683 else 10684 configure_input="$ac_file. " 10685 fi 10686 configure_input=$configure_input"Generated from `echo $ac_file_in | 10687 sed 's,.*/,,'` by configure." 10688 10689 # First look for the input files in the build tree, otherwise in the 10690 # src tree. 10691 ac_file_inputs=`IFS=: 10692 for f in $ac_file_in; do 10693 case $f in 10694 -) echo $tmp/stdin ;; 10695 [\\/$]*) 10696 # Absolute (can't be DOS-style, as IFS=:) 10697 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 10698echo "$as_me: error: cannot find input file: $f" >&2;} 10699 { (exit 1); exit 1; }; } 10700 echo $f;; 10701 *) # Relative 10702 if test -f "$f"; then 10703 # Build tree 10704 echo $f 10705 elif test -f "$srcdir/$f"; then 10706 # Source tree 10707 echo $srcdir/$f 10708 else 10709 # /dev/null tree 10710 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 10711echo "$as_me: error: cannot find input file: $f" >&2;} 10712 { (exit 1); exit 1; }; } 10713 fi;; 10714 esac 10715 done` || { (exit 1); exit 1; } 10716_ACEOF 10717cat >>$CONFIG_STATUS <<_ACEOF 10718 sed "$ac_vpsub 10719$extrasub 10720_ACEOF 10721cat >>$CONFIG_STATUS <<\_ACEOF 10722:t 10723/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 10724s,@configure_input@,$configure_input,;t t 10725s,@srcdir@,$ac_srcdir,;t t 10726s,@abs_srcdir@,$ac_abs_srcdir,;t t 10727s,@top_srcdir@,$ac_top_srcdir,;t t 10728s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 10729s,@builddir@,$ac_builddir,;t t 10730s,@abs_builddir@,$ac_abs_builddir,;t t 10731s,@top_builddir@,$ac_top_builddir,;t t 10732s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 10733s,@INSTALL@,$ac_INSTALL,;t t 10734" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 10735 rm -f $tmp/stdin 10736 if test x"$ac_file" != x-; then 10737 mv $tmp/out $ac_file 10738 else 10739 cat $tmp/out 10740 rm -f $tmp/out 10741 fi 10742 10743done 10744_ACEOF 10745cat >>$CONFIG_STATUS <<\_ACEOF 10746 10747# 10748# CONFIG_HEADER section. 10749# 10750 10751# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 10752# NAME is the cpp macro being defined and VALUE is the value it is being given. 10753# 10754# ac_d sets the value in "#define NAME VALUE" lines. 10755ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 10756ac_dB='[ ].*$,\1#\2' 10757ac_dC=' ' 10758ac_dD=',;t' 10759# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 10760ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 10761ac_uB='$,\1#\2define\3' 10762ac_uC=' ' 10763ac_uD=',;t' 10764 10765for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 10766 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 10767 case $ac_file in 10768 - | *:- | *:-:* ) # input from stdin 10769 cat >$tmp/stdin 10770 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 10771 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 10772 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 10773 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 10774 * ) ac_file_in=$ac_file.in ;; 10775 esac 10776 10777 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 10778echo "$as_me: creating $ac_file" >&6;} 10779 10780 # First look for the input files in the build tree, otherwise in the 10781 # src tree. 10782 ac_file_inputs=`IFS=: 10783 for f in $ac_file_in; do 10784 case $f in 10785 -) echo $tmp/stdin ;; 10786 [\\/$]*) 10787 # Absolute (can't be DOS-style, as IFS=:) 10788 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 10789echo "$as_me: error: cannot find input file: $f" >&2;} 10790 { (exit 1); exit 1; }; } 10791 echo $f;; 10792 *) # Relative 10793 if test -f "$f"; then 10794 # Build tree 10795 echo $f 10796 elif test -f "$srcdir/$f"; then 10797 # Source tree 10798 echo $srcdir/$f 10799 else 10800 # /dev/null tree 10801 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 10802echo "$as_me: error: cannot find input file: $f" >&2;} 10803 { (exit 1); exit 1; }; } 10804 fi;; 10805 esac 10806 done` || { (exit 1); exit 1; } 10807 # Remove the trailing spaces. 10808 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 10809 10810_ACEOF 10811 10812# Transform confdefs.h into two sed scripts, `conftest.defines' and 10813# `conftest.undefs', that substitutes the proper values into 10814# config.h.in to produce config.h. The first handles `#define' 10815# templates, and the second `#undef' templates. 10816# And first: Protect against being on the right side of a sed subst in 10817# config.status. Protect against being in an unquoted here document 10818# in config.status. 10819rm -f conftest.defines conftest.undefs 10820# Using a here document instead of a string reduces the quoting nightmare. 10821# Putting comments in sed scripts is not portable. 10822# 10823# `end' is used to avoid that the second main sed command (meant for 10824# 0-ary CPP macros) applies to n-ary macro definitions. 10825# See the Autoconf documentation for `clear'. 10826cat >confdef2sed.sed <<\_ACEOF 10827s/[\\&,]/\\&/g 10828s,[\\$`],\\&,g 10829t clear 10830: clear 10831s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 10832t end 10833s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 10834: end 10835_ACEOF 10836# If some macros were called several times there might be several times 10837# the same #defines, which is useless. Nevertheless, we may not want to 10838# sort them, since we want the *last* AC-DEFINE to be honored. 10839uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 10840sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 10841rm -f confdef2sed.sed 10842 10843# This sed command replaces #undef with comments. This is necessary, for 10844# example, in the case of _POSIX_SOURCE, which is predefined and required 10845# on some systems where configure will not decide to define it. 10846cat >>conftest.undefs <<\_ACEOF 10847s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 10848_ACEOF 10849 10850# Break up conftest.defines because some shells have a limit on the size 10851# of here documents, and old seds have small limits too (100 cmds). 10852echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 10853echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 10854echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 10855echo ' :' >>$CONFIG_STATUS 10856rm -f conftest.tail 10857while grep . conftest.defines >/dev/null 10858do 10859 # Write a limited-size here document to $tmp/defines.sed. 10860 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 10861 # Speed up: don't consider the non `#define' lines. 10862 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 10863 # Work around the forget-to-reset-the-flag bug. 10864 echo 't clr' >>$CONFIG_STATUS 10865 echo ': clr' >>$CONFIG_STATUS 10866 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 10867 echo 'CEOF 10868 sed -f $tmp/defines.sed $tmp/in >$tmp/out 10869 rm -f $tmp/in 10870 mv $tmp/out $tmp/in 10871' >>$CONFIG_STATUS 10872 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 10873 rm -f conftest.defines 10874 mv conftest.tail conftest.defines 10875done 10876rm -f conftest.defines 10877echo ' fi # egrep' >>$CONFIG_STATUS 10878echo >>$CONFIG_STATUS 10879 10880# Break up conftest.undefs because some shells have a limit on the size 10881# of here documents, and old seds have small limits too (100 cmds). 10882echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 10883rm -f conftest.tail 10884while grep . conftest.undefs >/dev/null 10885do 10886 # Write a limited-size here document to $tmp/undefs.sed. 10887 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 10888 # Speed up: don't consider the non `#undef' 10889 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 10890 # Work around the forget-to-reset-the-flag bug. 10891 echo 't clr' >>$CONFIG_STATUS 10892 echo ': clr' >>$CONFIG_STATUS 10893 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 10894 echo 'CEOF 10895 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 10896 rm -f $tmp/in 10897 mv $tmp/out $tmp/in 10898' >>$CONFIG_STATUS 10899 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 10900 rm -f conftest.undefs 10901 mv conftest.tail conftest.undefs 10902done 10903rm -f conftest.undefs 10904 10905cat >>$CONFIG_STATUS <<\_ACEOF 10906 # Let's still pretend it is `configure' which instantiates (i.e., don't 10907 # use $as_me), people would be surprised to read: 10908 # /* config.h. Generated by config.status. */ 10909 if test x"$ac_file" = x-; then 10910 echo "/* Generated by configure. */" >$tmp/config.h 10911 else 10912 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 10913 fi 10914 cat $tmp/in >>$tmp/config.h 10915 rm -f $tmp/in 10916 if test x"$ac_file" != x-; then 10917 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then 10918 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 10919echo "$as_me: $ac_file is unchanged" >&6;} 10920 else 10921 ac_dir=`(dirname "$ac_file") 2>/dev/null || 10922$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10923 X"$ac_file" : 'X\(//\)[^/]' \| \ 10924 X"$ac_file" : 'X\(//\)$' \| \ 10925 X"$ac_file" : 'X\(/\)' \| \ 10926 . : '\(.\)' 2>/dev/null || 10927echo X"$ac_file" | 10928 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 10929 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 10930 /^X\(\/\/\)$/{ s//\1/; q; } 10931 /^X\(\/\).*/{ s//\1/; q; } 10932 s/.*/./; q'` 10933 { case "$ac_dir" in 10934 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 10935 *) as_incr_dir=.;; 10936esac 10937as_dummy="$ac_dir" 10938for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 10939 case $as_mkdir_dir in 10940 # Skip DOS drivespec 10941 ?:) as_incr_dir=$as_mkdir_dir ;; 10942 *) 10943 as_incr_dir=$as_incr_dir/$as_mkdir_dir 10944 test -d "$as_incr_dir" || 10945 mkdir "$as_incr_dir" || 10946 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 10947echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} 10948 { (exit 1); exit 1; }; } 10949 ;; 10950 esac 10951done; } 10952 10953 rm -f $ac_file 10954 mv $tmp/config.h $ac_file 10955 fi 10956 else 10957 cat $tmp/config.h 10958 rm -f $tmp/config.h 10959 fi 10960done 10961_ACEOF 10962cat >>$CONFIG_STATUS <<\_ACEOF 10963 10964# 10965# CONFIG_COMMANDS section. 10966# 10967for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 10968 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 10969 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 10970 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 10971$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10972 X"$ac_dest" : 'X\(//\)[^/]' \| \ 10973 X"$ac_dest" : 'X\(//\)$' \| \ 10974 X"$ac_dest" : 'X\(/\)' \| \ 10975 . : '\(.\)' 2>/dev/null || 10976echo X"$ac_dest" | 10977 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 10978 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 10979 /^X\(\/\/\)$/{ s//\1/; q; } 10980 /^X\(\/\).*/{ s//\1/; q; } 10981 s/.*/./; q'` 10982 ac_builddir=. 10983 10984if test "$ac_dir" != .; then 10985 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 10986 # A "../" for each directory in $ac_dir_suffix. 10987 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 10988else 10989 ac_dir_suffix= ac_top_builddir= 10990fi 10991 10992case $srcdir in 10993 .) # No --srcdir option. We are building in place. 10994 ac_srcdir=. 10995 if test -z "$ac_top_builddir"; then 10996 ac_top_srcdir=. 10997 else 10998 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 10999 fi ;; 11000 [\\/]* | ?:[\\/]* ) # Absolute path. 11001 ac_srcdir=$srcdir$ac_dir_suffix; 11002 ac_top_srcdir=$srcdir ;; 11003 *) # Relative path. 11004 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 11005 ac_top_srcdir=$ac_top_builddir$srcdir ;; 11006esac 11007# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 11008# absolute. 11009ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 11010ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` 11011ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 11012ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 11013 11014 11015 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 11016echo "$as_me: executing $ac_dest commands" >&6;} 11017 case $ac_dest in 11018 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h ;; 11019 esac 11020done 11021_ACEOF 11022 11023cat >>$CONFIG_STATUS <<\_ACEOF 11024 11025{ (exit 0); exit 0; } 11026_ACEOF 11027chmod +x $CONFIG_STATUS 11028ac_clean_files=$ac_clean_files_save 11029 11030 11031# configure is writing to config.log, and then calls config.status. 11032# config.status does its own redirection, appending to config.log. 11033# Unfortunately, on DOS this fails, as config.log is still kept open 11034# by configure, so config.status won't be able to write to it; its 11035# output is simply discarded. So we exec the FD to /dev/null, 11036# effectively closing config.log, so it can be properly (re)opened and 11037# appended to by config.status. When coming back to configure, we 11038# need to make the FD available again. 11039if test "$no_create" != yes; then 11040 ac_cs_success=: 11041 exec 5>/dev/null 11042 $SHELL $CONFIG_STATUS || ac_cs_success=false 11043 exec 5>>config.log 11044 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 11045 # would make configure fail if this is the last instruction. 11046 $ac_cs_success || { (exit 1); exit 1; } 11047fi 11048 11049