1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.65 for libjpeg 8.0.2. 4# 5# 6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, 8# Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92case $0 in #(( 93 *[\\/]* ) as_myself=$0 ;; 94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 95for as_dir in $PATH 96do 97 IFS=$as_save_IFS 98 test -z "$as_dir" && as_dir=. 99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 100 done 101IFS=$as_save_IFS 102 103 ;; 104esac 105# We did not find ourselves, most probably we were run as `sh COMMAND' 106# in which case we are not to be found in the path. 107if test "x$as_myself" = x; then 108 as_myself=$0 109fi 110if test ! -f "$as_myself"; then 111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 112 exit 1 113fi 114 115# Unset variables that we do not need and which cause bugs (e.g. in 116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 117# suppresses any "Segmentation fault" message there. '((' could 118# trigger a bug in pdksh 5.2.14. 119for as_var in BASH_ENV ENV MAIL MAILPATH 120do eval test x\${$as_var+set} = xset \ 121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 122done 123PS1='$ ' 124PS2='> ' 125PS4='+ ' 126 127# NLS nuisances. 128LC_ALL=C 129export LC_ALL 130LANGUAGE=C 131export LANGUAGE 132 133# CDPATH. 134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 135 136if test "x$CONFIG_SHELL" = x; then 137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 138 emulate sh 139 NULLCMD=: 140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 141 # is contrary to our usage. Disable this feature. 142 alias -g '\${1+\"\$@\"}'='\"\$@\"' 143 setopt NO_GLOB_SUBST 144else 145 case \`(set -o) 2>/dev/null\` in #( 146 *posix*) : 147 set -o posix ;; #( 148 *) : 149 ;; 150esac 151fi 152" 153 as_required="as_fn_return () { (exit \$1); } 154as_fn_success () { as_fn_return 0; } 155as_fn_failure () { as_fn_return 1; } 156as_fn_ret_success () { return 0; } 157as_fn_ret_failure () { return 1; } 158 159exitcode=0 160as_fn_success || { exitcode=1; echo as_fn_success failed.; } 161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 165 166else 167 exitcode=1; echo positional parameters were not saved. 168fi 169test x\$exitcode = x0 || exit 1" 170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 174test \$(( 1 + 1 )) = 2 || exit 1" 175 if (eval "$as_required") 2>/dev/null; then : 176 as_have_required=yes 177else 178 as_have_required=no 179fi 180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 181 182else 183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 184as_found=false 185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 186do 187 IFS=$as_save_IFS 188 test -z "$as_dir" && as_dir=. 189 as_found=: 190 case $as_dir in #( 191 /*) 192 for as_base in sh bash ksh sh5; do 193 # Try only shells that exist, to save several forks. 194 as_shell=$as_dir/$as_base 195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 197 CONFIG_SHELL=$as_shell as_have_required=yes 198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 199 break 2 200fi 201fi 202 done;; 203 esac 204 as_found=false 205done 206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 208 CONFIG_SHELL=$SHELL as_have_required=yes 209fi; } 210IFS=$as_save_IFS 211 212 213 if test "x$CONFIG_SHELL" != x; then : 214 # We cannot yet assume a decent shell, so we have to provide a 215 # neutralization value for shells without unset; and this also 216 # works around shells that cannot unset nonexistent variables. 217 BASH_ENV=/dev/null 218 ENV=/dev/null 219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 220 export CONFIG_SHELL 221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 222fi 223 224 if test x$as_have_required = xno; then : 225 $as_echo "$0: This script requires a shell more modern than all" 226 $as_echo "$0: the shells that I found on your system." 227 if test x${ZSH_VERSION+set} = xset ; then 228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 229 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 230 else 231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 232$0: including any error possibly output before this 233$0: message. Then install a modern shell, or manually run 234$0: the script under such a shell if you do have one." 235 fi 236 exit 1 237fi 238fi 239fi 240SHELL=${CONFIG_SHELL-/bin/sh} 241export SHELL 242# Unset more variables known to interfere with behavior of common tools. 243CLICOLOR_FORCE= GREP_OPTIONS= 244unset CLICOLOR_FORCE GREP_OPTIONS 245 246## --------------------- ## 247## M4sh Shell Functions. ## 248## --------------------- ## 249# as_fn_unset VAR 250# --------------- 251# Portably unset VAR. 252as_fn_unset () 253{ 254 { eval $1=; unset $1;} 255} 256as_unset=as_fn_unset 257 258# as_fn_set_status STATUS 259# ----------------------- 260# Set $? to STATUS, without forking. 261as_fn_set_status () 262{ 263 return $1 264} # as_fn_set_status 265 266# as_fn_exit STATUS 267# ----------------- 268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 269as_fn_exit () 270{ 271 set +e 272 as_fn_set_status $1 273 exit $1 274} # as_fn_exit 275 276# as_fn_mkdir_p 277# ------------- 278# Create "$as_dir" as a directory, including parents if necessary. 279as_fn_mkdir_p () 280{ 281 282 case $as_dir in #( 283 -*) as_dir=./$as_dir;; 284 esac 285 test -d "$as_dir" || eval $as_mkdir_p || { 286 as_dirs= 287 while :; do 288 case $as_dir in #( 289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 290 *) as_qdir=$as_dir;; 291 esac 292 as_dirs="'$as_qdir' $as_dirs" 293 as_dir=`$as_dirname -- "$as_dir" || 294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 295 X"$as_dir" : 'X\(//\)[^/]' \| \ 296 X"$as_dir" : 'X\(//\)$' \| \ 297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 298$as_echo X"$as_dir" | 299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 300 s//\1/ 301 q 302 } 303 /^X\(\/\/\)[^/].*/{ 304 s//\1/ 305 q 306 } 307 /^X\(\/\/\)$/{ 308 s//\1/ 309 q 310 } 311 /^X\(\/\).*/{ 312 s//\1/ 313 q 314 } 315 s/.*/./; q'` 316 test -d "$as_dir" && break 317 done 318 test -z "$as_dirs" || eval "mkdir $as_dirs" 319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 320 321 322} # as_fn_mkdir_p 323# as_fn_append VAR VALUE 324# ---------------------- 325# Append the text in VALUE to the end of the definition contained in VAR. Take 326# advantage of any shell optimizations that allow amortized linear growth over 327# repeated appends, instead of the typical quadratic growth present in naive 328# implementations. 329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 330 eval 'as_fn_append () 331 { 332 eval $1+=\$2 333 }' 334else 335 as_fn_append () 336 { 337 eval $1=\$$1\$2 338 } 339fi # as_fn_append 340 341# as_fn_arith ARG... 342# ------------------ 343# Perform arithmetic evaluation on the ARGs, and store the result in the 344# global $as_val. Take advantage of shells that can avoid forks. The arguments 345# must be portable across $(()) and expr. 346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 347 eval 'as_fn_arith () 348 { 349 as_val=$(( $* )) 350 }' 351else 352 as_fn_arith () 353 { 354 as_val=`expr "$@" || test $? -eq 1` 355 } 356fi # as_fn_arith 357 358 359# as_fn_error ERROR [LINENO LOG_FD] 360# --------------------------------- 361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 363# script with status $?, using 1 if that was 0. 364as_fn_error () 365{ 366 as_status=$?; test $as_status -eq 0 && as_status=1 367 if test "$3"; then 368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 370 fi 371 $as_echo "$as_me: error: $1" >&2 372 as_fn_exit $as_status 373} # as_fn_error 374 375if expr a : '\(a\)' >/dev/null 2>&1 && 376 test "X`expr 00001 : '.*\(...\)'`" = X001; then 377 as_expr=expr 378else 379 as_expr=false 380fi 381 382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 383 as_basename=basename 384else 385 as_basename=false 386fi 387 388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 389 as_dirname=dirname 390else 391 as_dirname=false 392fi 393 394as_me=`$as_basename -- "$0" || 395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 396 X"$0" : 'X\(//\)$' \| \ 397 X"$0" : 'X\(/\)' \| . 2>/dev/null || 398$as_echo X/"$0" | 399 sed '/^.*\/\([^/][^/]*\)\/*$/{ 400 s//\1/ 401 q 402 } 403 /^X\/\(\/\/\)$/{ 404 s//\1/ 405 q 406 } 407 /^X\/\(\/\).*/{ 408 s//\1/ 409 q 410 } 411 s/.*/./; q'` 412 413# Avoid depending upon Character Ranges. 414as_cr_letters='abcdefghijklmnopqrstuvwxyz' 415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 416as_cr_Letters=$as_cr_letters$as_cr_LETTERS 417as_cr_digits='0123456789' 418as_cr_alnum=$as_cr_Letters$as_cr_digits 419 420 421 as_lineno_1=$LINENO as_lineno_1a=$LINENO 422 as_lineno_2=$LINENO as_lineno_2a=$LINENO 423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 426 sed -n ' 427 p 428 /[$]LINENO/= 429 ' <$as_myself | 430 sed ' 431 s/[$]LINENO.*/&-/ 432 t lineno 433 b 434 :lineno 435 N 436 :loop 437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 438 t loop 439 s/-\n.*// 440 ' >$as_me.lineno && 441 chmod +x "$as_me.lineno" || 442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 443 444 # Don't try to exec as it changes $[0], causing all sort of problems 445 # (the dirname of $[0] is not the place where we might find the 446 # original and so on. Autoconf is especially sensitive to this). 447 . "./$as_me.lineno" 448 # Exit status is that of the last command. 449 exit 450} 451 452ECHO_C= ECHO_N= ECHO_T= 453case `echo -n x` in #((((( 454-n*) 455 case `echo 'xy\c'` in 456 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 457 xy) ECHO_C='\c';; 458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 459 ECHO_T=' ';; 460 esac;; 461*) 462 ECHO_N='-n';; 463esac 464 465rm -f conf$$ conf$$.exe conf$$.file 466if test -d conf$$.dir; then 467 rm -f conf$$.dir/conf$$.file 468else 469 rm -f conf$$.dir 470 mkdir conf$$.dir 2>/dev/null 471fi 472if (echo >conf$$.file) 2>/dev/null; then 473 if ln -s conf$$.file conf$$ 2>/dev/null; then 474 as_ln_s='ln -s' 475 # ... but there are two gotchas: 476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 478 # In both cases, we have to default to `cp -p'. 479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 480 as_ln_s='cp -p' 481 elif ln conf$$.file conf$$ 2>/dev/null; then 482 as_ln_s=ln 483 else 484 as_ln_s='cp -p' 485 fi 486else 487 as_ln_s='cp -p' 488fi 489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 490rmdir conf$$.dir 2>/dev/null 491 492if mkdir -p . 2>/dev/null; then 493 as_mkdir_p='mkdir -p "$as_dir"' 494else 495 test -d ./-p && rmdir ./-p 496 as_mkdir_p=false 497fi 498 499if test -x / >/dev/null 2>&1; then 500 as_test_x='test -x' 501else 502 if ls -dL / >/dev/null 2>&1; then 503 as_ls_L_option=L 504 else 505 as_ls_L_option= 506 fi 507 as_test_x=' 508 eval sh -c '\'' 509 if test -d "$1"; then 510 test -d "$1/."; 511 else 512 case $1 in #( 513 -*)set "./$1";; 514 esac; 515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 516 ???[sx]*):;;*)false;;esac;fi 517 '\'' sh 518 ' 519fi 520as_executable_p=$as_test_x 521 522# Sed expression to map a string onto a valid CPP name. 523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 524 525# Sed expression to map a string onto a valid variable name. 526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 527 528 529 530# Check that we are running under the correct shell. 531SHELL=${CONFIG_SHELL-/bin/sh} 532 533case X$lt_ECHO in 534X*--fallback-echo) 535 # Remove one level of quotation (which was required for Make). 536 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 537 ;; 538esac 539 540ECHO=${lt_ECHO-echo} 541if test "X$1" = X--no-reexec; then 542 # Discard the --no-reexec flag, and continue. 543 shift 544elif test "X$1" = X--fallback-echo; then 545 # Avoid inline document here, it may be left over 546 : 547elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 548 # Yippee, $ECHO works! 549 : 550else 551 # Restart under the correct shell. 552 exec $SHELL "$0" --no-reexec ${1+"$@"} 553fi 554 555if test "X$1" = X--fallback-echo; then 556 # used as fallback echo 557 shift 558 cat <<_LT_EOF 559$* 560_LT_EOF 561 exit 0 562fi 563 564# The HP-UX ksh and POSIX shell print the target directory to stdout 565# if CDPATH is set. 566(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 567 568if test -z "$lt_ECHO"; then 569 if test "X${echo_test_string+set}" != Xset; then 570 # find a string as large as possible, as long as the shell can cope with it 571 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 572 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 573 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 574 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 575 then 576 break 577 fi 578 done 579 fi 580 581 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 582 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 583 test "X$echo_testing_string" = "X$echo_test_string"; then 584 : 585 else 586 # The Solaris, AIX, and Digital Unix default echo programs unquote 587 # backslashes. This makes it impossible to quote backslashes using 588 # echo "$something" | sed 's/\\/\\\\/g' 589 # 590 # So, first we look for a working echo in the user's PATH. 591 592 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 593 for dir in $PATH /usr/ucb; do 594 IFS="$lt_save_ifs" 595 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 596 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 597 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 598 test "X$echo_testing_string" = "X$echo_test_string"; then 599 ECHO="$dir/echo" 600 break 601 fi 602 done 603 IFS="$lt_save_ifs" 604 605 if test "X$ECHO" = Xecho; then 606 # We didn't find a better echo, so look for alternatives. 607 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 608 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 609 test "X$echo_testing_string" = "X$echo_test_string"; then 610 # This shell has a builtin print -r that does the trick. 611 ECHO='print -r' 612 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 613 test "X$CONFIG_SHELL" != X/bin/ksh; then 614 # If we have ksh, try running configure again with it. 615 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 616 export ORIGINAL_CONFIG_SHELL 617 CONFIG_SHELL=/bin/ksh 618 export CONFIG_SHELL 619 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 620 else 621 # Try using printf. 622 ECHO='printf %s\n' 623 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 624 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 625 test "X$echo_testing_string" = "X$echo_test_string"; then 626 # Cool, printf works 627 : 628 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 629 test "X$echo_testing_string" = 'X\t' && 630 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 631 test "X$echo_testing_string" = "X$echo_test_string"; then 632 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 633 export CONFIG_SHELL 634 SHELL="$CONFIG_SHELL" 635 export SHELL 636 ECHO="$CONFIG_SHELL $0 --fallback-echo" 637 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 638 test "X$echo_testing_string" = 'X\t' && 639 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 640 test "X$echo_testing_string" = "X$echo_test_string"; then 641 ECHO="$CONFIG_SHELL $0 --fallback-echo" 642 else 643 # maybe with a smaller string... 644 prev=: 645 646 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 647 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 648 then 649 break 650 fi 651 prev="$cmd" 652 done 653 654 if test "$prev" != 'sed 50q "$0"'; then 655 echo_test_string=`eval $prev` 656 export echo_test_string 657 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 658 else 659 # Oops. We lost completely, so just stick with echo. 660 ECHO=echo 661 fi 662 fi 663 fi 664 fi 665 fi 666fi 667 668# Copy echo and quote the copy suitably for passing to libtool from 669# the Makefile, instead of quoting the original, which is used later. 670lt_ECHO=$ECHO 671if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 672 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 673fi 674 675 676 677 678test -n "$DJDIR" || exec 7<&0 </dev/null 679exec 6>&1 680 681# Name of the host. 682# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 683# so uname gets run too. 684ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 685 686# 687# Initializations. 688# 689ac_default_prefix=/usr/local 690ac_clean_files= 691ac_config_libobj_dir=. 692LIBOBJS= 693cross_compiling=no 694subdirs= 695MFLAGS= 696MAKEFLAGS= 697 698# Identity of this package. 699PACKAGE_NAME='libjpeg' 700PACKAGE_TARNAME='libjpeg' 701PACKAGE_VERSION='8.0.2' 702PACKAGE_STRING='libjpeg 8.0.2' 703PACKAGE_BUGREPORT='' 704PACKAGE_URL='' 705 706# Factoring default headers for most tests. 707ac_includes_default="\ 708#include <stdio.h> 709#ifdef HAVE_SYS_TYPES_H 710# include <sys/types.h> 711#endif 712#ifdef HAVE_SYS_STAT_H 713# include <sys/stat.h> 714#endif 715#ifdef STDC_HEADERS 716# include <stdlib.h> 717# include <stddef.h> 718#else 719# ifdef HAVE_STDLIB_H 720# include <stdlib.h> 721# endif 722#endif 723#ifdef HAVE_STRING_H 724# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 725# include <memory.h> 726# endif 727# include <string.h> 728#endif 729#ifdef HAVE_STRINGS_H 730# include <strings.h> 731#endif 732#ifdef HAVE_INTTYPES_H 733# include <inttypes.h> 734#endif 735#ifdef HAVE_STDINT_H 736# include <stdint.h> 737#endif 738#ifdef HAVE_UNISTD_H 739# include <unistd.h> 740#endif" 741 742ac_subst_vars='am__EXEEXT_FALSE 743am__EXEEXT_TRUE 744LTLIBOBJS 745LIBOBJS 746JPEG_LIB_VERSION 747MEMORYMGR 748OTOOL64 749OTOOL 750LIPO 751NMEDIT 752DSYMUTIL 753lt_ECHO 754RANLIB 755AR 756NM 757ac_ct_DUMPBIN 758DUMPBIN 759LD 760FGREP 761SED 762LIBTOOL 763OBJDUMP 764DLLTOOL 765AS 766HAVE_LD_VERSION_SCRIPT_FALSE 767HAVE_LD_VERSION_SCRIPT_TRUE 768LN_S 769MAINT 770MAINTAINER_MODE_FALSE 771MAINTAINER_MODE_TRUE 772ANSI2KNR 773U 774EGREP 775GREP 776CPP 777am__fastdepCC_FALSE 778am__fastdepCC_TRUE 779CCDEPMODE 780AMDEPBACKSLASH 781AMDEP_FALSE 782AMDEP_TRUE 783am__quote 784am__include 785DEPDIR 786OBJEXT 787EXEEXT 788ac_ct_CC 789CPPFLAGS 790LDFLAGS 791CFLAGS 792CC 793AM_BACKSLASH 794AM_DEFAULT_VERBOSITY 795am__untar 796am__tar 797AMTAR 798am__leading_dot 799SET_MAKE 800AWK 801mkdir_p 802MKDIR_P 803INSTALL_STRIP_PROGRAM 804STRIP 805install_sh 806MAKEINFO 807AUTOHEADER 808AUTOMAKE 809AUTOCONF 810ACLOCAL 811VERSION 812PACKAGE 813CYGPATH_W 814am__isrc 815INSTALL_DATA 816INSTALL_SCRIPT 817INSTALL_PROGRAM 818target_os 819target_vendor 820target_cpu 821target 822host_os 823host_vendor 824host_cpu 825host 826build_os 827build_vendor 828build_cpu 829build 830target_alias 831host_alias 832build_alias 833LIBS 834ECHO_T 835ECHO_N 836ECHO_C 837DEFS 838mandir 839localedir 840libdir 841psdir 842pdfdir 843dvidir 844htmldir 845infodir 846docdir 847oldincludedir 848includedir 849localstatedir 850sharedstatedir 851sysconfdir 852datadir 853datarootdir 854libexecdir 855sbindir 856bindir 857program_transform_name 858prefix 859exec_prefix 860PACKAGE_URL 861PACKAGE_BUGREPORT 862PACKAGE_STRING 863PACKAGE_VERSION 864PACKAGE_TARNAME 865PACKAGE_NAME 866PATH_SEPARATOR 867SHELL' 868ac_subst_files='' 869ac_user_opts=' 870enable_option_checking 871enable_silent_rules 872enable_dependency_tracking 873enable_maintainer_mode 874enable_ld_version_script 875enable_shared 876enable_static 877with_pic 878enable_fast_install 879with_gnu_ld 880enable_libtool_lock 881enable_maxmem 882' 883 ac_precious_vars='build_alias 884host_alias 885target_alias 886CC 887CFLAGS 888LDFLAGS 889LIBS 890CPPFLAGS 891CPP' 892 893 894# Initialize some variables set by options. 895ac_init_help= 896ac_init_version=false 897ac_unrecognized_opts= 898ac_unrecognized_sep= 899# The variables have the same names as the options, with 900# dashes changed to underlines. 901cache_file=/dev/null 902exec_prefix=NONE 903no_create= 904no_recursion= 905prefix=NONE 906program_prefix=NONE 907program_suffix=NONE 908program_transform_name=s,x,x, 909silent= 910site= 911srcdir= 912verbose= 913x_includes=NONE 914x_libraries=NONE 915 916# Installation directory options. 917# These are left unexpanded so users can "make install exec_prefix=/foo" 918# and all the variables that are supposed to be based on exec_prefix 919# by default will actually change. 920# Use braces instead of parens because sh, perl, etc. also accept them. 921# (The list follows the same order as the GNU Coding Standards.) 922bindir='${exec_prefix}/bin' 923sbindir='${exec_prefix}/sbin' 924libexecdir='${exec_prefix}/libexec' 925datarootdir='${prefix}/share' 926datadir='${datarootdir}' 927sysconfdir='${prefix}/etc' 928sharedstatedir='${prefix}/com' 929localstatedir='${prefix}/var' 930includedir='${prefix}/include' 931oldincludedir='/usr/include' 932docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 933infodir='${datarootdir}/info' 934htmldir='${docdir}' 935dvidir='${docdir}' 936pdfdir='${docdir}' 937psdir='${docdir}' 938libdir='${exec_prefix}/lib' 939localedir='${datarootdir}/locale' 940mandir='${datarootdir}/man' 941 942ac_prev= 943ac_dashdash= 944for ac_option 945do 946 # If the previous option needs an argument, assign it. 947 if test -n "$ac_prev"; then 948 eval $ac_prev=\$ac_option 949 ac_prev= 950 continue 951 fi 952 953 case $ac_option in 954 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 955 *) ac_optarg=yes ;; 956 esac 957 958 # Accept the important Cygnus configure options, so we can diagnose typos. 959 960 case $ac_dashdash$ac_option in 961 --) 962 ac_dashdash=yes ;; 963 964 -bindir | --bindir | --bindi | --bind | --bin | --bi) 965 ac_prev=bindir ;; 966 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 967 bindir=$ac_optarg ;; 968 969 -build | --build | --buil | --bui | --bu) 970 ac_prev=build_alias ;; 971 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 972 build_alias=$ac_optarg ;; 973 974 -cache-file | --cache-file | --cache-fil | --cache-fi \ 975 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 976 ac_prev=cache_file ;; 977 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 978 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 979 cache_file=$ac_optarg ;; 980 981 --config-cache | -C) 982 cache_file=config.cache ;; 983 984 -datadir | --datadir | --datadi | --datad) 985 ac_prev=datadir ;; 986 -datadir=* | --datadir=* | --datadi=* | --datad=*) 987 datadir=$ac_optarg ;; 988 989 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 990 | --dataroo | --dataro | --datar) 991 ac_prev=datarootdir ;; 992 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 993 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 994 datarootdir=$ac_optarg ;; 995 996 -disable-* | --disable-*) 997 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 998 # Reject names that are not valid shell variable names. 999 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1000 as_fn_error "invalid feature name: $ac_useropt" 1001 ac_useropt_orig=$ac_useropt 1002 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1003 case $ac_user_opts in 1004 *" 1005"enable_$ac_useropt" 1006"*) ;; 1007 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1008 ac_unrecognized_sep=', ';; 1009 esac 1010 eval enable_$ac_useropt=no ;; 1011 1012 -docdir | --docdir | --docdi | --doc | --do) 1013 ac_prev=docdir ;; 1014 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1015 docdir=$ac_optarg ;; 1016 1017 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1018 ac_prev=dvidir ;; 1019 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1020 dvidir=$ac_optarg ;; 1021 1022 -enable-* | --enable-*) 1023 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1024 # Reject names that are not valid shell variable names. 1025 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1026 as_fn_error "invalid feature name: $ac_useropt" 1027 ac_useropt_orig=$ac_useropt 1028 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1029 case $ac_user_opts in 1030 *" 1031"enable_$ac_useropt" 1032"*) ;; 1033 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1034 ac_unrecognized_sep=', ';; 1035 esac 1036 eval enable_$ac_useropt=\$ac_optarg ;; 1037 1038 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1039 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1040 | --exec | --exe | --ex) 1041 ac_prev=exec_prefix ;; 1042 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1043 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1044 | --exec=* | --exe=* | --ex=*) 1045 exec_prefix=$ac_optarg ;; 1046 1047 -gas | --gas | --ga | --g) 1048 # Obsolete; use --with-gas. 1049 with_gas=yes ;; 1050 1051 -help | --help | --hel | --he | -h) 1052 ac_init_help=long ;; 1053 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1054 ac_init_help=recursive ;; 1055 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1056 ac_init_help=short ;; 1057 1058 -host | --host | --hos | --ho) 1059 ac_prev=host_alias ;; 1060 -host=* | --host=* | --hos=* | --ho=*) 1061 host_alias=$ac_optarg ;; 1062 1063 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1064 ac_prev=htmldir ;; 1065 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1066 | --ht=*) 1067 htmldir=$ac_optarg ;; 1068 1069 -includedir | --includedir | --includedi | --included | --include \ 1070 | --includ | --inclu | --incl | --inc) 1071 ac_prev=includedir ;; 1072 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1073 | --includ=* | --inclu=* | --incl=* | --inc=*) 1074 includedir=$ac_optarg ;; 1075 1076 -infodir | --infodir | --infodi | --infod | --info | --inf) 1077 ac_prev=infodir ;; 1078 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1079 infodir=$ac_optarg ;; 1080 1081 -libdir | --libdir | --libdi | --libd) 1082 ac_prev=libdir ;; 1083 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1084 libdir=$ac_optarg ;; 1085 1086 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1087 | --libexe | --libex | --libe) 1088 ac_prev=libexecdir ;; 1089 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1090 | --libexe=* | --libex=* | --libe=*) 1091 libexecdir=$ac_optarg ;; 1092 1093 -localedir | --localedir | --localedi | --localed | --locale) 1094 ac_prev=localedir ;; 1095 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1096 localedir=$ac_optarg ;; 1097 1098 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1099 | --localstate | --localstat | --localsta | --localst | --locals) 1100 ac_prev=localstatedir ;; 1101 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1102 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1103 localstatedir=$ac_optarg ;; 1104 1105 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1106 ac_prev=mandir ;; 1107 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1108 mandir=$ac_optarg ;; 1109 1110 -nfp | --nfp | --nf) 1111 # Obsolete; use --without-fp. 1112 with_fp=no ;; 1113 1114 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1115 | --no-cr | --no-c | -n) 1116 no_create=yes ;; 1117 1118 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1119 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1120 no_recursion=yes ;; 1121 1122 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1123 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1124 | --oldin | --oldi | --old | --ol | --o) 1125 ac_prev=oldincludedir ;; 1126 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1127 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1128 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1129 oldincludedir=$ac_optarg ;; 1130 1131 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1132 ac_prev=prefix ;; 1133 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1134 prefix=$ac_optarg ;; 1135 1136 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1137 | --program-pre | --program-pr | --program-p) 1138 ac_prev=program_prefix ;; 1139 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1140 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1141 program_prefix=$ac_optarg ;; 1142 1143 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1144 | --program-suf | --program-su | --program-s) 1145 ac_prev=program_suffix ;; 1146 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1147 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1148 program_suffix=$ac_optarg ;; 1149 1150 -program-transform-name | --program-transform-name \ 1151 | --program-transform-nam | --program-transform-na \ 1152 | --program-transform-n | --program-transform- \ 1153 | --program-transform | --program-transfor \ 1154 | --program-transfo | --program-transf \ 1155 | --program-trans | --program-tran \ 1156 | --progr-tra | --program-tr | --program-t) 1157 ac_prev=program_transform_name ;; 1158 -program-transform-name=* | --program-transform-name=* \ 1159 | --program-transform-nam=* | --program-transform-na=* \ 1160 | --program-transform-n=* | --program-transform-=* \ 1161 | --program-transform=* | --program-transfor=* \ 1162 | --program-transfo=* | --program-transf=* \ 1163 | --program-trans=* | --program-tran=* \ 1164 | --progr-tra=* | --program-tr=* | --program-t=*) 1165 program_transform_name=$ac_optarg ;; 1166 1167 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1168 ac_prev=pdfdir ;; 1169 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1170 pdfdir=$ac_optarg ;; 1171 1172 -psdir | --psdir | --psdi | --psd | --ps) 1173 ac_prev=psdir ;; 1174 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1175 psdir=$ac_optarg ;; 1176 1177 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1178 | -silent | --silent | --silen | --sile | --sil) 1179 silent=yes ;; 1180 1181 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1182 ac_prev=sbindir ;; 1183 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1184 | --sbi=* | --sb=*) 1185 sbindir=$ac_optarg ;; 1186 1187 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1188 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1189 | --sharedst | --shareds | --shared | --share | --shar \ 1190 | --sha | --sh) 1191 ac_prev=sharedstatedir ;; 1192 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1193 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1194 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1195 | --sha=* | --sh=*) 1196 sharedstatedir=$ac_optarg ;; 1197 1198 -site | --site | --sit) 1199 ac_prev=site ;; 1200 -site=* | --site=* | --sit=*) 1201 site=$ac_optarg ;; 1202 1203 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1204 ac_prev=srcdir ;; 1205 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1206 srcdir=$ac_optarg ;; 1207 1208 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1209 | --syscon | --sysco | --sysc | --sys | --sy) 1210 ac_prev=sysconfdir ;; 1211 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1212 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1213 sysconfdir=$ac_optarg ;; 1214 1215 -target | --target | --targe | --targ | --tar | --ta | --t) 1216 ac_prev=target_alias ;; 1217 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1218 target_alias=$ac_optarg ;; 1219 1220 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1221 verbose=yes ;; 1222 1223 -version | --version | --versio | --versi | --vers | -V) 1224 ac_init_version=: ;; 1225 1226 -with-* | --with-*) 1227 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1228 # Reject names that are not valid shell variable names. 1229 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1230 as_fn_error "invalid package name: $ac_useropt" 1231 ac_useropt_orig=$ac_useropt 1232 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1233 case $ac_user_opts in 1234 *" 1235"with_$ac_useropt" 1236"*) ;; 1237 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1238 ac_unrecognized_sep=', ';; 1239 esac 1240 eval with_$ac_useropt=\$ac_optarg ;; 1241 1242 -without-* | --without-*) 1243 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1244 # Reject names that are not valid shell variable names. 1245 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1246 as_fn_error "invalid package name: $ac_useropt" 1247 ac_useropt_orig=$ac_useropt 1248 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1249 case $ac_user_opts in 1250 *" 1251"with_$ac_useropt" 1252"*) ;; 1253 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1254 ac_unrecognized_sep=', ';; 1255 esac 1256 eval with_$ac_useropt=no ;; 1257 1258 --x) 1259 # Obsolete; use --with-x. 1260 with_x=yes ;; 1261 1262 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1263 | --x-incl | --x-inc | --x-in | --x-i) 1264 ac_prev=x_includes ;; 1265 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1266 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1267 x_includes=$ac_optarg ;; 1268 1269 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1270 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1271 ac_prev=x_libraries ;; 1272 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1273 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1274 x_libraries=$ac_optarg ;; 1275 1276 -*) as_fn_error "unrecognized option: \`$ac_option' 1277Try \`$0 --help' for more information." 1278 ;; 1279 1280 *=*) 1281 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1282 # Reject names that are not valid shell variable names. 1283 case $ac_envvar in #( 1284 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1285 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1286 esac 1287 eval $ac_envvar=\$ac_optarg 1288 export $ac_envvar ;; 1289 1290 *) 1291 # FIXME: should be removed in autoconf 3.0. 1292 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1293 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1294 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1295 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1296 ;; 1297 1298 esac 1299done 1300 1301if test -n "$ac_prev"; then 1302 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1303 as_fn_error "missing argument to $ac_option" 1304fi 1305 1306if test -n "$ac_unrecognized_opts"; then 1307 case $enable_option_checking in 1308 no) ;; 1309 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1310 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1311 esac 1312fi 1313 1314# Check all directory arguments for consistency. 1315for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1316 datadir sysconfdir sharedstatedir localstatedir includedir \ 1317 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1318 libdir localedir mandir 1319do 1320 eval ac_val=\$$ac_var 1321 # Remove trailing slashes. 1322 case $ac_val in 1323 */ ) 1324 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1325 eval $ac_var=\$ac_val;; 1326 esac 1327 # Be sure to have absolute directory names. 1328 case $ac_val in 1329 [\\/$]* | ?:[\\/]* ) continue;; 1330 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1331 esac 1332 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1333done 1334 1335# There might be people who depend on the old broken behavior: `$host' 1336# used to hold the argument of --host etc. 1337# FIXME: To remove some day. 1338build=$build_alias 1339host=$host_alias 1340target=$target_alias 1341 1342# FIXME: To remove some day. 1343if test "x$host_alias" != x; then 1344 if test "x$build_alias" = x; then 1345 cross_compiling=maybe 1346 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1347 If a cross compiler is detected then cross compile mode will be used." >&2 1348 elif test "x$build_alias" != "x$host_alias"; then 1349 cross_compiling=yes 1350 fi 1351fi 1352 1353ac_tool_prefix= 1354test -n "$host_alias" && ac_tool_prefix=$host_alias- 1355 1356test "$silent" = yes && exec 6>/dev/null 1357 1358 1359ac_pwd=`pwd` && test -n "$ac_pwd" && 1360ac_ls_di=`ls -di .` && 1361ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1362 as_fn_error "working directory cannot be determined" 1363test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1364 as_fn_error "pwd does not report name of working directory" 1365 1366 1367# Find the source files, if location was not specified. 1368if test -z "$srcdir"; then 1369 ac_srcdir_defaulted=yes 1370 # Try the directory containing this script, then the parent directory. 1371 ac_confdir=`$as_dirname -- "$as_myself" || 1372$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1373 X"$as_myself" : 'X\(//\)[^/]' \| \ 1374 X"$as_myself" : 'X\(//\)$' \| \ 1375 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1376$as_echo X"$as_myself" | 1377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1378 s//\1/ 1379 q 1380 } 1381 /^X\(\/\/\)[^/].*/{ 1382 s//\1/ 1383 q 1384 } 1385 /^X\(\/\/\)$/{ 1386 s//\1/ 1387 q 1388 } 1389 /^X\(\/\).*/{ 1390 s//\1/ 1391 q 1392 } 1393 s/.*/./; q'` 1394 srcdir=$ac_confdir 1395 if test ! -r "$srcdir/$ac_unique_file"; then 1396 srcdir=.. 1397 fi 1398else 1399 ac_srcdir_defaulted=no 1400fi 1401if test ! -r "$srcdir/$ac_unique_file"; then 1402 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1403 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1404fi 1405ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1406ac_abs_confdir=`( 1407 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1408 pwd)` 1409# When building in place, set srcdir=. 1410if test "$ac_abs_confdir" = "$ac_pwd"; then 1411 srcdir=. 1412fi 1413# Remove unnecessary trailing slashes from srcdir. 1414# Double slashes in file names in object file debugging info 1415# mess up M-x gdb in Emacs. 1416case $srcdir in 1417*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1418esac 1419for ac_var in $ac_precious_vars; do 1420 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1421 eval ac_env_${ac_var}_value=\$${ac_var} 1422 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1423 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1424done 1425 1426# 1427# Report the --help message. 1428# 1429if test "$ac_init_help" = "long"; then 1430 # Omit some internal or obsolete options to make the list less imposing. 1431 # This message is too long to be a string in the A/UX 3.1 sh. 1432 cat <<_ACEOF 1433\`configure' configures libjpeg 8.0.2 to adapt to many kinds of systems. 1434 1435Usage: $0 [OPTION]... [VAR=VALUE]... 1436 1437To assign environment variables (e.g., CC, CFLAGS...), specify them as 1438VAR=VALUE. See below for descriptions of some of the useful variables. 1439 1440Defaults for the options are specified in brackets. 1441 1442Configuration: 1443 -h, --help display this help and exit 1444 --help=short display options specific to this package 1445 --help=recursive display the short help of all the included packages 1446 -V, --version display version information and exit 1447 -q, --quiet, --silent do not print \`checking...' messages 1448 --cache-file=FILE cache test results in FILE [disabled] 1449 -C, --config-cache alias for \`--cache-file=config.cache' 1450 -n, --no-create do not create output files 1451 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1452 1453Installation directories: 1454 --prefix=PREFIX install architecture-independent files in PREFIX 1455 [$ac_default_prefix] 1456 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1457 [PREFIX] 1458 1459By default, \`make install' will install all the files in 1460\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1461an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1462for instance \`--prefix=\$HOME'. 1463 1464For better control, use the options below. 1465 1466Fine tuning of the installation directories: 1467 --bindir=DIR user executables [EPREFIX/bin] 1468 --sbindir=DIR system admin executables [EPREFIX/sbin] 1469 --libexecdir=DIR program executables [EPREFIX/libexec] 1470 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1471 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1472 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1473 --libdir=DIR object code libraries [EPREFIX/lib] 1474 --includedir=DIR C header files [PREFIX/include] 1475 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1476 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1477 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1478 --infodir=DIR info documentation [DATAROOTDIR/info] 1479 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1480 --mandir=DIR man documentation [DATAROOTDIR/man] 1481 --docdir=DIR documentation root [DATAROOTDIR/doc/libjpeg] 1482 --htmldir=DIR html documentation [DOCDIR] 1483 --dvidir=DIR dvi documentation [DOCDIR] 1484 --pdfdir=DIR pdf documentation [DOCDIR] 1485 --psdir=DIR ps documentation [DOCDIR] 1486_ACEOF 1487 1488 cat <<\_ACEOF 1489 1490Program names: 1491 --program-prefix=PREFIX prepend PREFIX to installed program names 1492 --program-suffix=SUFFIX append SUFFIX to installed program names 1493 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1494 1495System types: 1496 --build=BUILD configure for building on BUILD [guessed] 1497 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1498 --target=TARGET configure for building compilers for TARGET [HOST] 1499_ACEOF 1500fi 1501 1502if test -n "$ac_init_help"; then 1503 case $ac_init_help in 1504 short | recursive ) echo "Configuration of libjpeg 8.0.2:";; 1505 esac 1506 cat <<\_ACEOF 1507 1508Optional Features: 1509 --disable-option-checking ignore unrecognized --enable/--with options 1510 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1511 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1512 --enable-silent-rules less verbose build output (undo: `make V=1') 1513 --disable-silent-rules verbose build output (undo: `make V=0') 1514 --disable-dependency-tracking speeds up one-time build 1515 --enable-dependency-tracking do not reject slow dependency extractors 1516 --enable-maintainer-mode enable make rules and dependencies not useful 1517 (and sometimes confusing) to the casual installer 1518 --enable-ld-version-script 1519 enable linker version script (default is enabled 1520 when possible) 1521 --enable-shared[=PKGS] build shared libraries [default=yes] 1522 --enable-static[=PKGS] build static libraries [default=yes] 1523 --enable-fast-install[=PKGS] 1524 optimize for fast installation [default=yes] 1525 --disable-libtool-lock avoid locking (might break parallel builds) 1526 --enable-maxmem=N enable use of temp files, set max mem usage to N MB 1527 1528Optional Packages: 1529 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1530 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1531 --with-pic try to use only PIC/non-PIC objects [default=use 1532 both] 1533 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1534 1535Some influential environment variables: 1536 CC C compiler command 1537 CFLAGS C compiler flags 1538 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1539 nonstandard directory <lib dir> 1540 LIBS libraries to pass to the linker, e.g. -l<library> 1541 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1542 you have headers in a nonstandard directory <include dir> 1543 CPP C preprocessor 1544 1545Use these variables to override the choices made by `configure' or to help 1546it to find libraries and programs with nonstandard names/locations. 1547 1548Report bugs to the package provider. 1549_ACEOF 1550ac_status=$? 1551fi 1552 1553if test "$ac_init_help" = "recursive"; then 1554 # If there are subdirs, report their specific --help. 1555 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1556 test -d "$ac_dir" || 1557 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1558 continue 1559 ac_builddir=. 1560 1561case "$ac_dir" in 1562.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1563*) 1564 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1565 # A ".." for each directory in $ac_dir_suffix. 1566 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1567 case $ac_top_builddir_sub in 1568 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1569 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1570 esac ;; 1571esac 1572ac_abs_top_builddir=$ac_pwd 1573ac_abs_builddir=$ac_pwd$ac_dir_suffix 1574# for backward compatibility: 1575ac_top_builddir=$ac_top_build_prefix 1576 1577case $srcdir in 1578 .) # We are building in place. 1579 ac_srcdir=. 1580 ac_top_srcdir=$ac_top_builddir_sub 1581 ac_abs_top_srcdir=$ac_pwd ;; 1582 [\\/]* | ?:[\\/]* ) # Absolute name. 1583 ac_srcdir=$srcdir$ac_dir_suffix; 1584 ac_top_srcdir=$srcdir 1585 ac_abs_top_srcdir=$srcdir ;; 1586 *) # Relative name. 1587 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1588 ac_top_srcdir=$ac_top_build_prefix$srcdir 1589 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1590esac 1591ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1592 1593 cd "$ac_dir" || { ac_status=$?; continue; } 1594 # Check for guested configure. 1595 if test -f "$ac_srcdir/configure.gnu"; then 1596 echo && 1597 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1598 elif test -f "$ac_srcdir/configure"; then 1599 echo && 1600 $SHELL "$ac_srcdir/configure" --help=recursive 1601 else 1602 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1603 fi || ac_status=$? 1604 cd "$ac_pwd" || { ac_status=$?; break; } 1605 done 1606fi 1607 1608test -n "$ac_init_help" && exit $ac_status 1609if $ac_init_version; then 1610 cat <<\_ACEOF 1611libjpeg configure 8.0.2 1612generated by GNU Autoconf 2.65 1613 1614Copyright (C) 2009 Free Software Foundation, Inc. 1615This configure script is free software; the Free Software Foundation 1616gives unlimited permission to copy, distribute and modify it. 1617_ACEOF 1618 exit 1619fi 1620 1621## ------------------------ ## 1622## Autoconf initialization. ## 1623## ------------------------ ## 1624 1625# ac_fn_c_try_compile LINENO 1626# -------------------------- 1627# Try to compile conftest.$ac_ext, and return whether this succeeded. 1628ac_fn_c_try_compile () 1629{ 1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1631 rm -f conftest.$ac_objext 1632 if { { ac_try="$ac_compile" 1633case "(($ac_try" in 1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1635 *) ac_try_echo=$ac_try;; 1636esac 1637eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1638$as_echo "$ac_try_echo"; } >&5 1639 (eval "$ac_compile") 2>conftest.err 1640 ac_status=$? 1641 if test -s conftest.err; then 1642 grep -v '^ *+' conftest.err >conftest.er1 1643 cat conftest.er1 >&5 1644 mv -f conftest.er1 conftest.err 1645 fi 1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1647 test $ac_status = 0; } && { 1648 test -z "$ac_c_werror_flag" || 1649 test ! -s conftest.err 1650 } && test -s conftest.$ac_objext; then : 1651 ac_retval=0 1652else 1653 $as_echo "$as_me: failed program was:" >&5 1654sed 's/^/| /' conftest.$ac_ext >&5 1655 1656 ac_retval=1 1657fi 1658 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1659 as_fn_set_status $ac_retval 1660 1661} # ac_fn_c_try_compile 1662 1663# ac_fn_c_try_cpp LINENO 1664# ---------------------- 1665# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1666ac_fn_c_try_cpp () 1667{ 1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1669 if { { ac_try="$ac_cpp conftest.$ac_ext" 1670case "(($ac_try" in 1671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1672 *) ac_try_echo=$ac_try;; 1673esac 1674eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1675$as_echo "$ac_try_echo"; } >&5 1676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1677 ac_status=$? 1678 if test -s conftest.err; then 1679 grep -v '^ *+' conftest.err >conftest.er1 1680 cat conftest.er1 >&5 1681 mv -f conftest.er1 conftest.err 1682 fi 1683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1684 test $ac_status = 0; } >/dev/null && { 1685 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1686 test ! -s conftest.err 1687 }; then : 1688 ac_retval=0 1689else 1690 $as_echo "$as_me: failed program was:" >&5 1691sed 's/^/| /' conftest.$ac_ext >&5 1692 1693 ac_retval=1 1694fi 1695 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1696 as_fn_set_status $ac_retval 1697 1698} # ac_fn_c_try_cpp 1699 1700# ac_fn_c_try_run LINENO 1701# ---------------------- 1702# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1703# that executables *can* be run. 1704ac_fn_c_try_run () 1705{ 1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1707 if { { ac_try="$ac_link" 1708case "(($ac_try" in 1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1710 *) ac_try_echo=$ac_try;; 1711esac 1712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1713$as_echo "$ac_try_echo"; } >&5 1714 (eval "$ac_link") 2>&5 1715 ac_status=$? 1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1717 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1718 { { case "(($ac_try" in 1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1720 *) ac_try_echo=$ac_try;; 1721esac 1722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1723$as_echo "$ac_try_echo"; } >&5 1724 (eval "$ac_try") 2>&5 1725 ac_status=$? 1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1727 test $ac_status = 0; }; }; then : 1728 ac_retval=0 1729else 1730 $as_echo "$as_me: program exited with status $ac_status" >&5 1731 $as_echo "$as_me: failed program was:" >&5 1732sed 's/^/| /' conftest.$ac_ext >&5 1733 1734 ac_retval=$ac_status 1735fi 1736 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1737 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1738 as_fn_set_status $ac_retval 1739 1740} # ac_fn_c_try_run 1741 1742# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1743# ------------------------------------------------------- 1744# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1745# the include files in INCLUDES and setting the cache variable VAR 1746# accordingly. 1747ac_fn_c_check_header_mongrel () 1748{ 1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1750 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1752$as_echo_n "checking for $2... " >&6; } 1753if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1754 $as_echo_n "(cached) " >&6 1755fi 1756eval ac_res=\$$3 1757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1758$as_echo "$ac_res" >&6; } 1759else 1760 # Is the header compilable? 1761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1762$as_echo_n "checking $2 usability... " >&6; } 1763cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1764/* end confdefs.h. */ 1765$4 1766#include <$2> 1767_ACEOF 1768if ac_fn_c_try_compile "$LINENO"; then : 1769 ac_header_compiler=yes 1770else 1771 ac_header_compiler=no 1772fi 1773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1775$as_echo "$ac_header_compiler" >&6; } 1776 1777# Is the header present? 1778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1779$as_echo_n "checking $2 presence... " >&6; } 1780cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1781/* end confdefs.h. */ 1782#include <$2> 1783_ACEOF 1784if ac_fn_c_try_cpp "$LINENO"; then : 1785 ac_header_preproc=yes 1786else 1787 ac_header_preproc=no 1788fi 1789rm -f conftest.err conftest.$ac_ext 1790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1791$as_echo "$ac_header_preproc" >&6; } 1792 1793# So? What about this header? 1794case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1795 yes:no: ) 1796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1797$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1799$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1800 ;; 1801 no:yes:* ) 1802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1803$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1805$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1807$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1809$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1811$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1812 ;; 1813esac 1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1815$as_echo_n "checking for $2... " >&6; } 1816if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1817 $as_echo_n "(cached) " >&6 1818else 1819 eval "$3=\$ac_header_compiler" 1820fi 1821eval ac_res=\$$3 1822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1823$as_echo "$ac_res" >&6; } 1824fi 1825 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1826 1827} # ac_fn_c_check_header_mongrel 1828 1829# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1830# ------------------------------------------------------- 1831# Tests whether HEADER exists and can be compiled using the include files in 1832# INCLUDES, setting the cache variable VAR accordingly. 1833ac_fn_c_check_header_compile () 1834{ 1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1837$as_echo_n "checking for $2... " >&6; } 1838if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1839 $as_echo_n "(cached) " >&6 1840else 1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1842/* end confdefs.h. */ 1843$4 1844#include <$2> 1845_ACEOF 1846if ac_fn_c_try_compile "$LINENO"; then : 1847 eval "$3=yes" 1848else 1849 eval "$3=no" 1850fi 1851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1852fi 1853eval ac_res=\$$3 1854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1855$as_echo "$ac_res" >&6; } 1856 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1857 1858} # ac_fn_c_check_header_compile 1859 1860# ac_fn_c_try_link LINENO 1861# ----------------------- 1862# Try to link conftest.$ac_ext, and return whether this succeeded. 1863ac_fn_c_try_link () 1864{ 1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1866 rm -f conftest.$ac_objext conftest$ac_exeext 1867 if { { ac_try="$ac_link" 1868case "(($ac_try" in 1869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1870 *) ac_try_echo=$ac_try;; 1871esac 1872eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1873$as_echo "$ac_try_echo"; } >&5 1874 (eval "$ac_link") 2>conftest.err 1875 ac_status=$? 1876 if test -s conftest.err; then 1877 grep -v '^ *+' conftest.err >conftest.er1 1878 cat conftest.er1 >&5 1879 mv -f conftest.er1 conftest.err 1880 fi 1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1882 test $ac_status = 0; } && { 1883 test -z "$ac_c_werror_flag" || 1884 test ! -s conftest.err 1885 } && test -s conftest$ac_exeext && { 1886 test "$cross_compiling" = yes || 1887 $as_test_x conftest$ac_exeext 1888 }; then : 1889 ac_retval=0 1890else 1891 $as_echo "$as_me: failed program was:" >&5 1892sed 's/^/| /' conftest.$ac_ext >&5 1893 1894 ac_retval=1 1895fi 1896 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1897 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1898 # interfere with the next link command; also delete a directory that is 1899 # left behind by Apple's compiler. We do this before executing the actions. 1900 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1901 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1902 as_fn_set_status $ac_retval 1903 1904} # ac_fn_c_try_link 1905 1906# ac_fn_c_check_func LINENO FUNC VAR 1907# ---------------------------------- 1908# Tests whether FUNC exists, setting the cache variable VAR accordingly 1909ac_fn_c_check_func () 1910{ 1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1913$as_echo_n "checking for $2... " >&6; } 1914if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1915 $as_echo_n "(cached) " >&6 1916else 1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1918/* end confdefs.h. */ 1919/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1920 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1921#define $2 innocuous_$2 1922 1923/* System header to define __stub macros and hopefully few prototypes, 1924 which can conflict with char $2 (); below. 1925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1926 <limits.h> exists even on freestanding compilers. */ 1927 1928#ifdef __STDC__ 1929# include <limits.h> 1930#else 1931# include <assert.h> 1932#endif 1933 1934#undef $2 1935 1936/* Override any GCC internal prototype to avoid an error. 1937 Use char because int might match the return type of a GCC 1938 builtin and then its argument prototype would still apply. */ 1939#ifdef __cplusplus 1940extern "C" 1941#endif 1942char $2 (); 1943/* The GNU C library defines this for functions which it implements 1944 to always fail with ENOSYS. Some functions are actually named 1945 something starting with __ and the normal name is an alias. */ 1946#if defined __stub_$2 || defined __stub___$2 1947choke me 1948#endif 1949 1950int 1951main () 1952{ 1953return $2 (); 1954 ; 1955 return 0; 1956} 1957_ACEOF 1958if ac_fn_c_try_link "$LINENO"; then : 1959 eval "$3=yes" 1960else 1961 eval "$3=no" 1962fi 1963rm -f core conftest.err conftest.$ac_objext \ 1964 conftest$ac_exeext conftest.$ac_ext 1965fi 1966eval ac_res=\$$3 1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1968$as_echo "$ac_res" >&6; } 1969 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1970 1971} # ac_fn_c_check_func 1972cat >config.log <<_ACEOF 1973This file contains any messages produced by compilers while 1974running configure, to aid debugging if configure makes a mistake. 1975 1976It was created by libjpeg $as_me 8.0.2, which was 1977generated by GNU Autoconf 2.65. Invocation command line was 1978 1979 $ $0 $@ 1980 1981_ACEOF 1982exec 5>>config.log 1983{ 1984cat <<_ASUNAME 1985## --------- ## 1986## Platform. ## 1987## --------- ## 1988 1989hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1990uname -m = `(uname -m) 2>/dev/null || echo unknown` 1991uname -r = `(uname -r) 2>/dev/null || echo unknown` 1992uname -s = `(uname -s) 2>/dev/null || echo unknown` 1993uname -v = `(uname -v) 2>/dev/null || echo unknown` 1994 1995/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1996/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1997 1998/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1999/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2000/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2001/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2002/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2003/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2004/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2005 2006_ASUNAME 2007 2008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2009for as_dir in $PATH 2010do 2011 IFS=$as_save_IFS 2012 test -z "$as_dir" && as_dir=. 2013 $as_echo "PATH: $as_dir" 2014 done 2015IFS=$as_save_IFS 2016 2017} >&5 2018 2019cat >&5 <<_ACEOF 2020 2021 2022## ----------- ## 2023## Core tests. ## 2024## ----------- ## 2025 2026_ACEOF 2027 2028 2029# Keep a trace of the command line. 2030# Strip out --no-create and --no-recursion so they do not pile up. 2031# Strip out --silent because we don't want to record it for future runs. 2032# Also quote any args containing shell meta-characters. 2033# Make two passes to allow for proper duplicate-argument suppression. 2034ac_configure_args= 2035ac_configure_args0= 2036ac_configure_args1= 2037ac_must_keep_next=false 2038for ac_pass in 1 2 2039do 2040 for ac_arg 2041 do 2042 case $ac_arg in 2043 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2044 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2045 | -silent | --silent | --silen | --sile | --sil) 2046 continue ;; 2047 *\'*) 2048 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2049 esac 2050 case $ac_pass in 2051 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2052 2) 2053 as_fn_append ac_configure_args1 " '$ac_arg'" 2054 if test $ac_must_keep_next = true; then 2055 ac_must_keep_next=false # Got value, back to normal. 2056 else 2057 case $ac_arg in 2058 *=* | --config-cache | -C | -disable-* | --disable-* \ 2059 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2060 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2061 | -with-* | --with-* | -without-* | --without-* | --x) 2062 case "$ac_configure_args0 " in 2063 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2064 esac 2065 ;; 2066 -* ) ac_must_keep_next=true ;; 2067 esac 2068 fi 2069 as_fn_append ac_configure_args " '$ac_arg'" 2070 ;; 2071 esac 2072 done 2073done 2074{ ac_configure_args0=; unset ac_configure_args0;} 2075{ ac_configure_args1=; unset ac_configure_args1;} 2076 2077# When interrupted or exit'd, cleanup temporary files, and complete 2078# config.log. We remove comments because anyway the quotes in there 2079# would cause problems or look ugly. 2080# WARNING: Use '\'' to represent an apostrophe within the trap. 2081# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2082trap 'exit_status=$? 2083 # Save into config.log some information that might help in debugging. 2084 { 2085 echo 2086 2087 cat <<\_ASBOX 2088## ---------------- ## 2089## Cache variables. ## 2090## ---------------- ## 2091_ASBOX 2092 echo 2093 # The following way of writing the cache mishandles newlines in values, 2094( 2095 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2096 eval ac_val=\$$ac_var 2097 case $ac_val in #( 2098 *${as_nl}*) 2099 case $ac_var in #( 2100 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2101$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2102 esac 2103 case $ac_var in #( 2104 _ | IFS | as_nl) ;; #( 2105 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2106 *) { eval $ac_var=; unset $ac_var;} ;; 2107 esac ;; 2108 esac 2109 done 2110 (set) 2>&1 | 2111 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2112 *${as_nl}ac_space=\ *) 2113 sed -n \ 2114 "s/'\''/'\''\\\\'\'''\''/g; 2115 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2116 ;; #( 2117 *) 2118 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2119 ;; 2120 esac | 2121 sort 2122) 2123 echo 2124 2125 cat <<\_ASBOX 2126## ----------------- ## 2127## Output variables. ## 2128## ----------------- ## 2129_ASBOX 2130 echo 2131 for ac_var in $ac_subst_vars 2132 do 2133 eval ac_val=\$$ac_var 2134 case $ac_val in 2135 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2136 esac 2137 $as_echo "$ac_var='\''$ac_val'\''" 2138 done | sort 2139 echo 2140 2141 if test -n "$ac_subst_files"; then 2142 cat <<\_ASBOX 2143## ------------------- ## 2144## File substitutions. ## 2145## ------------------- ## 2146_ASBOX 2147 echo 2148 for ac_var in $ac_subst_files 2149 do 2150 eval ac_val=\$$ac_var 2151 case $ac_val in 2152 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2153 esac 2154 $as_echo "$ac_var='\''$ac_val'\''" 2155 done | sort 2156 echo 2157 fi 2158 2159 if test -s confdefs.h; then 2160 cat <<\_ASBOX 2161## ----------- ## 2162## confdefs.h. ## 2163## ----------- ## 2164_ASBOX 2165 echo 2166 cat confdefs.h 2167 echo 2168 fi 2169 test "$ac_signal" != 0 && 2170 $as_echo "$as_me: caught signal $ac_signal" 2171 $as_echo "$as_me: exit $exit_status" 2172 } >&5 2173 rm -f core *.core core.conftest.* && 2174 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2175 exit $exit_status 2176' 0 2177for ac_signal in 1 2 13 15; do 2178 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2179done 2180ac_signal=0 2181 2182# confdefs.h avoids OS command line length limits that DEFS can exceed. 2183rm -f -r conftest* confdefs.h 2184 2185$as_echo "/* confdefs.h */" > confdefs.h 2186 2187# Predefined preprocessor variables. 2188 2189cat >>confdefs.h <<_ACEOF 2190#define PACKAGE_NAME "$PACKAGE_NAME" 2191_ACEOF 2192 2193cat >>confdefs.h <<_ACEOF 2194#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2195_ACEOF 2196 2197cat >>confdefs.h <<_ACEOF 2198#define PACKAGE_VERSION "$PACKAGE_VERSION" 2199_ACEOF 2200 2201cat >>confdefs.h <<_ACEOF 2202#define PACKAGE_STRING "$PACKAGE_STRING" 2203_ACEOF 2204 2205cat >>confdefs.h <<_ACEOF 2206#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2207_ACEOF 2208 2209cat >>confdefs.h <<_ACEOF 2210#define PACKAGE_URL "$PACKAGE_URL" 2211_ACEOF 2212 2213 2214# Let the site file select an alternate cache file if it wants to. 2215# Prefer an explicitly selected file to automatically selected ones. 2216ac_site_file1=NONE 2217ac_site_file2=NONE 2218if test -n "$CONFIG_SITE"; then 2219 ac_site_file1=$CONFIG_SITE 2220elif test "x$prefix" != xNONE; then 2221 ac_site_file1=$prefix/share/config.site 2222 ac_site_file2=$prefix/etc/config.site 2223else 2224 ac_site_file1=$ac_default_prefix/share/config.site 2225 ac_site_file2=$ac_default_prefix/etc/config.site 2226fi 2227for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2228do 2229 test "x$ac_site_file" = xNONE && continue 2230 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2231 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2232$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2233 sed 's/^/| /' "$ac_site_file" >&5 2234 . "$ac_site_file" 2235 fi 2236done 2237 2238if test -r "$cache_file"; then 2239 # Some versions of bash will fail to source /dev/null (special files 2240 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2241 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2242 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2243$as_echo "$as_me: loading cache $cache_file" >&6;} 2244 case $cache_file in 2245 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2246 *) . "./$cache_file";; 2247 esac 2248 fi 2249else 2250 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2251$as_echo "$as_me: creating cache $cache_file" >&6;} 2252 >$cache_file 2253fi 2254 2255# Check that the precious variables saved in the cache have kept the same 2256# value. 2257ac_cache_corrupted=false 2258for ac_var in $ac_precious_vars; do 2259 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2260 eval ac_new_set=\$ac_env_${ac_var}_set 2261 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2262 eval ac_new_val=\$ac_env_${ac_var}_value 2263 case $ac_old_set,$ac_new_set in 2264 set,) 2265 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2266$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2267 ac_cache_corrupted=: ;; 2268 ,set) 2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2270$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2271 ac_cache_corrupted=: ;; 2272 ,);; 2273 *) 2274 if test "x$ac_old_val" != "x$ac_new_val"; then 2275 # differences in whitespace do not lead to failure. 2276 ac_old_val_w=`echo x $ac_old_val` 2277 ac_new_val_w=`echo x $ac_new_val` 2278 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2280$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2281 ac_cache_corrupted=: 2282 else 2283 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2284$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2285 eval $ac_var=\$ac_old_val 2286 fi 2287 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2288$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2289 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2290$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2291 fi;; 2292 esac 2293 # Pass precious variables to config.status. 2294 if test "$ac_new_set" = set; then 2295 case $ac_new_val in 2296 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2297 *) ac_arg=$ac_var=$ac_new_val ;; 2298 esac 2299 case " $ac_configure_args " in 2300 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2301 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2302 esac 2303 fi 2304done 2305if $ac_cache_corrupted; then 2306 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2307$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2308 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2309$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2310 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2311fi 2312## -------------------- ## 2313## Main body of script. ## 2314## -------------------- ## 2315 2316ac_ext=c 2317ac_cpp='$CPP $CPPFLAGS' 2318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2320ac_compiler_gnu=$ac_cv_c_compiler_gnu 2321 2322 2323 2324# Directory where autotools helper scripts lives. 2325ac_aux_dir= 2326for ac_dir in . "$srcdir"/.; do 2327 for ac_t in install-sh install.sh shtool; do 2328 if test -f "$ac_dir/$ac_t"; then 2329 ac_aux_dir=$ac_dir 2330 ac_install_sh="$ac_aux_dir/$ac_t -c" 2331 break 2 2332 fi 2333 done 2334done 2335if test -z "$ac_aux_dir"; then 2336 as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2337fi 2338 2339# These three variables are undocumented and unsupported, 2340# and are intended to be withdrawn in a future Autoconf release. 2341# They can cause serious problems if a builder's source tree is in a directory 2342# whose full name contains unusual characters. 2343ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2344ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2345ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2346 2347 2348 2349# Generate configuration headers. 2350ac_config_headers="$ac_config_headers jconfig.h:jconfig.cfg" 2351 2352 2353# Hack: disable autoheader so that it doesn't overwrite our cfg template. 2354AUTOHEADER="echo autoheader ignored" 2355 2356# Check system type 2357# Make sure we can run config.sub. 2358$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2359 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2360 2361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2362$as_echo_n "checking build system type... " >&6; } 2363if test "${ac_cv_build+set}" = set; then : 2364 $as_echo_n "(cached) " >&6 2365else 2366 ac_build_alias=$build_alias 2367test "x$ac_build_alias" = x && 2368 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2369test "x$ac_build_alias" = x && 2370 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 2371ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2372 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2373 2374fi 2375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2376$as_echo "$ac_cv_build" >&6; } 2377case $ac_cv_build in 2378*-*-*) ;; 2379*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 2380esac 2381build=$ac_cv_build 2382ac_save_IFS=$IFS; IFS='-' 2383set x $ac_cv_build 2384shift 2385build_cpu=$1 2386build_vendor=$2 2387shift; shift 2388# Remember, the first character of IFS is used to create $*, 2389# except with old shells: 2390build_os=$* 2391IFS=$ac_save_IFS 2392case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2393 2394 2395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2396$as_echo_n "checking host system type... " >&6; } 2397if test "${ac_cv_host+set}" = set; then : 2398 $as_echo_n "(cached) " >&6 2399else 2400 if test "x$host_alias" = x; then 2401 ac_cv_host=$ac_cv_build 2402else 2403 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2404 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2405fi 2406 2407fi 2408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2409$as_echo "$ac_cv_host" >&6; } 2410case $ac_cv_host in 2411*-*-*) ;; 2412*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 2413esac 2414host=$ac_cv_host 2415ac_save_IFS=$IFS; IFS='-' 2416set x $ac_cv_host 2417shift 2418host_cpu=$1 2419host_vendor=$2 2420shift; shift 2421# Remember, the first character of IFS is used to create $*, 2422# except with old shells: 2423host_os=$* 2424IFS=$ac_save_IFS 2425case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2426 2427 2428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2429$as_echo_n "checking target system type... " >&6; } 2430if test "${ac_cv_target+set}" = set; then : 2431 $as_echo_n "(cached) " >&6 2432else 2433 if test "x$target_alias" = x; then 2434 ac_cv_target=$ac_cv_host 2435else 2436 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2437 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2438fi 2439 2440fi 2441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2442$as_echo "$ac_cv_target" >&6; } 2443case $ac_cv_target in 2444*-*-*) ;; 2445*) as_fn_error "invalid value of canonical target" "$LINENO" 5;; 2446esac 2447target=$ac_cv_target 2448ac_save_IFS=$IFS; IFS='-' 2449set x $ac_cv_target 2450shift 2451target_cpu=$1 2452target_vendor=$2 2453shift; shift 2454# Remember, the first character of IFS is used to create $*, 2455# except with old shells: 2456target_os=$* 2457IFS=$ac_save_IFS 2458case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2459 2460 2461# The aliases save the names the user supplied, while $host etc. 2462# will get canonicalized. 2463test -n "$target_alias" && 2464 test "$program_prefix$program_suffix$program_transform_name" = \ 2465 NONENONEs,x,x, && 2466 program_prefix=${target_alias}- 2467 2468# Initialize Automake 2469# Don't require all the GNU mandated files 2470am__api_version='1.11' 2471 2472# Find a good install program. We prefer a C program (faster), 2473# so one script is as good as another. But avoid the broken or 2474# incompatible versions: 2475# SysV /etc/install, /usr/sbin/install 2476# SunOS /usr/etc/install 2477# IRIX /sbin/install 2478# AIX /bin/install 2479# AmigaOS /C/install, which installs bootblocks on floppy discs 2480# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2481# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2482# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2483# OS/2's system install, which has a completely different semantic 2484# ./install, which can be erroneously created by make from ./install.sh. 2485# Reject install programs that cannot install multiple files. 2486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2487$as_echo_n "checking for a BSD-compatible install... " >&6; } 2488if test -z "$INSTALL"; then 2489if test "${ac_cv_path_install+set}" = set; then : 2490 $as_echo_n "(cached) " >&6 2491else 2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2493for as_dir in $PATH 2494do 2495 IFS=$as_save_IFS 2496 test -z "$as_dir" && as_dir=. 2497 # Account for people who put trailing slashes in PATH elements. 2498case $as_dir/ in #(( 2499 ./ | .// | /[cC]/* | \ 2500 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2501 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2502 /usr/ucb/* ) ;; 2503 *) 2504 # OSF1 and SCO ODT 3.0 have their own names for install. 2505 # Don't use installbsd from OSF since it installs stuff as root 2506 # by default. 2507 for ac_prog in ginstall scoinst install; do 2508 for ac_exec_ext in '' $ac_executable_extensions; do 2509 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2510 if test $ac_prog = install && 2511 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2512 # AIX install. It has an incompatible calling convention. 2513 : 2514 elif test $ac_prog = install && 2515 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2516 # program-specific install script used by HP pwplus--don't use. 2517 : 2518 else 2519 rm -rf conftest.one conftest.two conftest.dir 2520 echo one > conftest.one 2521 echo two > conftest.two 2522 mkdir conftest.dir 2523 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2524 test -s conftest.one && test -s conftest.two && 2525 test -s conftest.dir/conftest.one && 2526 test -s conftest.dir/conftest.two 2527 then 2528 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2529 break 3 2530 fi 2531 fi 2532 fi 2533 done 2534 done 2535 ;; 2536esac 2537 2538 done 2539IFS=$as_save_IFS 2540 2541rm -rf conftest.one conftest.two conftest.dir 2542 2543fi 2544 if test "${ac_cv_path_install+set}" = set; then 2545 INSTALL=$ac_cv_path_install 2546 else 2547 # As a last resort, use the slow shell script. Don't cache a 2548 # value for INSTALL within a source directory, because that will 2549 # break other packages using the cache if that directory is 2550 # removed, or if the value is a relative name. 2551 INSTALL=$ac_install_sh 2552 fi 2553fi 2554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2555$as_echo "$INSTALL" >&6; } 2556 2557# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2558# It thinks the first close brace ends the variable substitution. 2559test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2560 2561test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2562 2563test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2564 2565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2566$as_echo_n "checking whether build environment is sane... " >&6; } 2567# Just in case 2568sleep 1 2569echo timestamp > conftest.file 2570# Reject unsafe characters in $srcdir or the absolute working directory 2571# name. Accept space and tab only in the latter. 2572am_lf=' 2573' 2574case `pwd` in 2575 *[\\\"\#\$\&\'\`$am_lf]*) 2576 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 2577esac 2578case $srcdir in 2579 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2580 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2581esac 2582 2583# Do `set' in a subshell so we don't clobber the current shell's 2584# arguments. Must try -L first in case configure is actually a 2585# symlink; some systems play weird games with the mod time of symlinks 2586# (eg FreeBSD returns the mod time of the symlink's containing 2587# directory). 2588if ( 2589 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2590 if test "$*" = "X"; then 2591 # -L didn't work. 2592 set X `ls -t "$srcdir/configure" conftest.file` 2593 fi 2594 rm -f conftest.file 2595 if test "$*" != "X $srcdir/configure conftest.file" \ 2596 && test "$*" != "X conftest.file $srcdir/configure"; then 2597 2598 # If neither matched, then we have a broken ls. This can happen 2599 # if, for instance, CONFIG_SHELL is bash and it inherits a 2600 # broken ls alias from the environment. This has actually 2601 # happened. Such a system could not be considered "sane". 2602 as_fn_error "ls -t appears to fail. Make sure there is not a broken 2603alias in your environment" "$LINENO" 5 2604 fi 2605 2606 test "$2" = conftest.file 2607 ) 2608then 2609 # Ok. 2610 : 2611else 2612 as_fn_error "newly created file is older than distributed files! 2613Check your system clock" "$LINENO" 5 2614fi 2615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2616$as_echo "yes" >&6; } 2617test "$program_prefix" != NONE && 2618 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2619# Use a double $ so make ignores it. 2620test "$program_suffix" != NONE && 2621 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2622# Double any \ or $. 2623# By default was `s,x,x', remove it if useless. 2624ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2625program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2626 2627# expand $ac_aux_dir to an absolute path 2628am_aux_dir=`cd $ac_aux_dir && pwd` 2629 2630if test x"${MISSING+set}" != xset; then 2631 case $am_aux_dir in 2632 *\ * | *\ *) 2633 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2634 *) 2635 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2636 esac 2637fi 2638# Use eval to expand $SHELL 2639if eval "$MISSING --run true"; then 2640 am_missing_run="$MISSING --run " 2641else 2642 am_missing_run= 2643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2644$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2645fi 2646 2647if test x"${install_sh}" != xset; then 2648 case $am_aux_dir in 2649 *\ * | *\ *) 2650 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2651 *) 2652 install_sh="\${SHELL} $am_aux_dir/install-sh" 2653 esac 2654fi 2655 2656# Installed binaries are usually stripped using `strip' when the user 2657# run `make install-strip'. However `strip' might not be the right 2658# tool to use in cross-compilation environments, therefore Automake 2659# will honor the `STRIP' environment variable to overrule this program. 2660if test "$cross_compiling" != no; then 2661 if test -n "$ac_tool_prefix"; then 2662 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2663set dummy ${ac_tool_prefix}strip; ac_word=$2 2664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2665$as_echo_n "checking for $ac_word... " >&6; } 2666if test "${ac_cv_prog_STRIP+set}" = set; then : 2667 $as_echo_n "(cached) " >&6 2668else 2669 if test -n "$STRIP"; then 2670 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2671else 2672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2673for as_dir in $PATH 2674do 2675 IFS=$as_save_IFS 2676 test -z "$as_dir" && as_dir=. 2677 for ac_exec_ext in '' $ac_executable_extensions; do 2678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2679 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2681 break 2 2682 fi 2683done 2684 done 2685IFS=$as_save_IFS 2686 2687fi 2688fi 2689STRIP=$ac_cv_prog_STRIP 2690if test -n "$STRIP"; then 2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2692$as_echo "$STRIP" >&6; } 2693else 2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2695$as_echo "no" >&6; } 2696fi 2697 2698 2699fi 2700if test -z "$ac_cv_prog_STRIP"; then 2701 ac_ct_STRIP=$STRIP 2702 # Extract the first word of "strip", so it can be a program name with args. 2703set dummy strip; ac_word=$2 2704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2705$as_echo_n "checking for $ac_word... " >&6; } 2706if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2707 $as_echo_n "(cached) " >&6 2708else 2709 if test -n "$ac_ct_STRIP"; then 2710 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2711else 2712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2713for as_dir in $PATH 2714do 2715 IFS=$as_save_IFS 2716 test -z "$as_dir" && as_dir=. 2717 for ac_exec_ext in '' $ac_executable_extensions; do 2718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2719 ac_cv_prog_ac_ct_STRIP="strip" 2720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2721 break 2 2722 fi 2723done 2724 done 2725IFS=$as_save_IFS 2726 2727fi 2728fi 2729ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2730if test -n "$ac_ct_STRIP"; then 2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2732$as_echo "$ac_ct_STRIP" >&6; } 2733else 2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2735$as_echo "no" >&6; } 2736fi 2737 2738 if test "x$ac_ct_STRIP" = x; then 2739 STRIP=":" 2740 else 2741 case $cross_compiling:$ac_tool_warned in 2742yes:) 2743{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2744$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2745ac_tool_warned=yes ;; 2746esac 2747 STRIP=$ac_ct_STRIP 2748 fi 2749else 2750 STRIP="$ac_cv_prog_STRIP" 2751fi 2752 2753fi 2754INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2755 2756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2757$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2758if test -z "$MKDIR_P"; then 2759 if test "${ac_cv_path_mkdir+set}" = set; then : 2760 $as_echo_n "(cached) " >&6 2761else 2762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2763for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2764do 2765 IFS=$as_save_IFS 2766 test -z "$as_dir" && as_dir=. 2767 for ac_prog in mkdir gmkdir; do 2768 for ac_exec_ext in '' $ac_executable_extensions; do 2769 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2770 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2771 'mkdir (GNU coreutils) '* | \ 2772 'mkdir (coreutils) '* | \ 2773 'mkdir (fileutils) '4.1*) 2774 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2775 break 3;; 2776 esac 2777 done 2778 done 2779 done 2780IFS=$as_save_IFS 2781 2782fi 2783 2784 test -d ./--version && rmdir ./--version 2785 if test "${ac_cv_path_mkdir+set}" = set; then 2786 MKDIR_P="$ac_cv_path_mkdir -p" 2787 else 2788 # As a last resort, use the slow shell script. Don't cache a 2789 # value for MKDIR_P within a source directory, because that will 2790 # break other packages using the cache if that directory is 2791 # removed, or if the value is a relative name. 2792 MKDIR_P="$ac_install_sh -d" 2793 fi 2794fi 2795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2796$as_echo "$MKDIR_P" >&6; } 2797 2798mkdir_p="$MKDIR_P" 2799case $mkdir_p in 2800 [\\/$]* | ?:[\\/]*) ;; 2801 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2802esac 2803 2804for ac_prog in gawk mawk nawk awk 2805do 2806 # Extract the first word of "$ac_prog", so it can be a program name with args. 2807set dummy $ac_prog; ac_word=$2 2808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2809$as_echo_n "checking for $ac_word... " >&6; } 2810if test "${ac_cv_prog_AWK+set}" = set; then : 2811 $as_echo_n "(cached) " >&6 2812else 2813 if test -n "$AWK"; then 2814 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2815else 2816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2817for as_dir in $PATH 2818do 2819 IFS=$as_save_IFS 2820 test -z "$as_dir" && as_dir=. 2821 for ac_exec_ext in '' $ac_executable_extensions; do 2822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2823 ac_cv_prog_AWK="$ac_prog" 2824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2825 break 2 2826 fi 2827done 2828 done 2829IFS=$as_save_IFS 2830 2831fi 2832fi 2833AWK=$ac_cv_prog_AWK 2834if test -n "$AWK"; then 2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2836$as_echo "$AWK" >&6; } 2837else 2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2839$as_echo "no" >&6; } 2840fi 2841 2842 2843 test -n "$AWK" && break 2844done 2845 2846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2847$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2848set x ${MAKE-make} 2849ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2850if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 2851 $as_echo_n "(cached) " >&6 2852else 2853 cat >conftest.make <<\_ACEOF 2854SHELL = /bin/sh 2855all: 2856 @echo '@@@%%%=$(MAKE)=@@@%%%' 2857_ACEOF 2858# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2859case `${MAKE-make} -f conftest.make 2>/dev/null` in 2860 *@@@%%%=?*=@@@%%%*) 2861 eval ac_cv_prog_make_${ac_make}_set=yes;; 2862 *) 2863 eval ac_cv_prog_make_${ac_make}_set=no;; 2864esac 2865rm -f conftest.make 2866fi 2867if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2869$as_echo "yes" >&6; } 2870 SET_MAKE= 2871else 2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2873$as_echo "no" >&6; } 2874 SET_MAKE="MAKE=${MAKE-make}" 2875fi 2876 2877rm -rf .tst 2>/dev/null 2878mkdir .tst 2>/dev/null 2879if test -d .tst; then 2880 am__leading_dot=. 2881else 2882 am__leading_dot=_ 2883fi 2884rmdir .tst 2>/dev/null 2885 2886if test "`cd $srcdir && pwd`" != "`pwd`"; then 2887 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2888 # is not polluted with repeated "-I." 2889 am__isrc=' -I$(srcdir)' 2890 # test to see if srcdir already configured 2891 if test -f $srcdir/config.status; then 2892 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2893 fi 2894fi 2895 2896# test whether we have cygpath 2897if test -z "$CYGPATH_W"; then 2898 if (cygpath --version) >/dev/null 2>/dev/null; then 2899 CYGPATH_W='cygpath -w' 2900 else 2901 CYGPATH_W=echo 2902 fi 2903fi 2904 2905 2906# Define the identity of the package. 2907 PACKAGE='libjpeg' 2908 VERSION='8.0.2' 2909 2910 2911cat >>confdefs.h <<_ACEOF 2912#define PACKAGE "$PACKAGE" 2913_ACEOF 2914 2915 2916cat >>confdefs.h <<_ACEOF 2917#define VERSION "$VERSION" 2918_ACEOF 2919 2920# Some tools Automake needs. 2921 2922ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2923 2924 2925AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2926 2927 2928AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2929 2930 2931AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2932 2933 2934MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2935 2936# We need awk for the "check" target. The system "awk" is bad on 2937# some platforms. 2938# Always define AMTAR for backward compatibility. 2939 2940AMTAR=${AMTAR-"${am_missing_run}tar"} 2941 2942am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2943 2944 2945 2946 2947 2948 2949# Make --enable-silent-rules the default. 2950# To get verbose build output you may configure 2951# with --disable-silent-rules or use "make V=1". 2952# Check whether --enable-silent-rules was given. 2953if test "${enable_silent_rules+set}" = set; then : 2954 enableval=$enable_silent_rules; 2955fi 2956 2957case $enable_silent_rules in 2958yes) AM_DEFAULT_VERBOSITY=0;; 2959no) AM_DEFAULT_VERBOSITY=1;; 2960*) AM_DEFAULT_VERBOSITY=0;; 2961esac 2962AM_BACKSLASH='\' 2963 2964 2965# This is required when using the de-ANSI-fication feature. 2966DEPDIR="${am__leading_dot}deps" 2967 2968ac_config_commands="$ac_config_commands depfiles" 2969 2970 2971am_make=${MAKE-make} 2972cat > confinc << 'END' 2973am__doit: 2974 @echo this is the am__doit target 2975.PHONY: am__doit 2976END 2977# If we don't find an include directive, just comment out the code. 2978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2979$as_echo_n "checking for style of include used by $am_make... " >&6; } 2980am__include="#" 2981am__quote= 2982_am_result=none 2983# First try GNU make style include. 2984echo "include confinc" > confmf 2985# Ignore all kinds of additional output from `make'. 2986case `$am_make -s -f confmf 2> /dev/null` in #( 2987*the\ am__doit\ target*) 2988 am__include=include 2989 am__quote= 2990 _am_result=GNU 2991 ;; 2992esac 2993# Now try BSD make style include. 2994if test "$am__include" = "#"; then 2995 echo '.include "confinc"' > confmf 2996 case `$am_make -s -f confmf 2> /dev/null` in #( 2997 *the\ am__doit\ target*) 2998 am__include=.include 2999 am__quote="\"" 3000 _am_result=BSD 3001 ;; 3002 esac 3003fi 3004 3005 3006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3007$as_echo "$_am_result" >&6; } 3008rm -f confinc confmf 3009 3010# Check whether --enable-dependency-tracking was given. 3011if test "${enable_dependency_tracking+set}" = set; then : 3012 enableval=$enable_dependency_tracking; 3013fi 3014 3015if test "x$enable_dependency_tracking" != xno; then 3016 am_depcomp="$ac_aux_dir/depcomp" 3017 AMDEPBACKSLASH='\' 3018fi 3019 if test "x$enable_dependency_tracking" != xno; then 3020 AMDEP_TRUE= 3021 AMDEP_FALSE='#' 3022else 3023 AMDEP_TRUE='#' 3024 AMDEP_FALSE= 3025fi 3026 3027 3028ac_ext=c 3029ac_cpp='$CPP $CPPFLAGS' 3030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3032ac_compiler_gnu=$ac_cv_c_compiler_gnu 3033if test -n "$ac_tool_prefix"; then 3034 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3035set dummy ${ac_tool_prefix}gcc; ac_word=$2 3036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3037$as_echo_n "checking for $ac_word... " >&6; } 3038if test "${ac_cv_prog_CC+set}" = set; then : 3039 $as_echo_n "(cached) " >&6 3040else 3041 if test -n "$CC"; then 3042 ac_cv_prog_CC="$CC" # Let the user override the test. 3043else 3044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3045for as_dir in $PATH 3046do 3047 IFS=$as_save_IFS 3048 test -z "$as_dir" && as_dir=. 3049 for ac_exec_ext in '' $ac_executable_extensions; do 3050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3051 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3053 break 2 3054 fi 3055done 3056 done 3057IFS=$as_save_IFS 3058 3059fi 3060fi 3061CC=$ac_cv_prog_CC 3062if test -n "$CC"; then 3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3064$as_echo "$CC" >&6; } 3065else 3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3067$as_echo "no" >&6; } 3068fi 3069 3070 3071fi 3072if test -z "$ac_cv_prog_CC"; then 3073 ac_ct_CC=$CC 3074 # Extract the first word of "gcc", so it can be a program name with args. 3075set dummy gcc; ac_word=$2 3076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3077$as_echo_n "checking for $ac_word... " >&6; } 3078if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3079 $as_echo_n "(cached) " >&6 3080else 3081 if test -n "$ac_ct_CC"; then 3082 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3083else 3084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3085for as_dir in $PATH 3086do 3087 IFS=$as_save_IFS 3088 test -z "$as_dir" && as_dir=. 3089 for ac_exec_ext in '' $ac_executable_extensions; do 3090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3091 ac_cv_prog_ac_ct_CC="gcc" 3092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3093 break 2 3094 fi 3095done 3096 done 3097IFS=$as_save_IFS 3098 3099fi 3100fi 3101ac_ct_CC=$ac_cv_prog_ac_ct_CC 3102if test -n "$ac_ct_CC"; then 3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3104$as_echo "$ac_ct_CC" >&6; } 3105else 3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3107$as_echo "no" >&6; } 3108fi 3109 3110 if test "x$ac_ct_CC" = x; then 3111 CC="" 3112 else 3113 case $cross_compiling:$ac_tool_warned in 3114yes:) 3115{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3116$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3117ac_tool_warned=yes ;; 3118esac 3119 CC=$ac_ct_CC 3120 fi 3121else 3122 CC="$ac_cv_prog_CC" 3123fi 3124 3125if test -z "$CC"; then 3126 if test -n "$ac_tool_prefix"; then 3127 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3128set dummy ${ac_tool_prefix}cc; ac_word=$2 3129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3130$as_echo_n "checking for $ac_word... " >&6; } 3131if test "${ac_cv_prog_CC+set}" = set; then : 3132 $as_echo_n "(cached) " >&6 3133else 3134 if test -n "$CC"; then 3135 ac_cv_prog_CC="$CC" # Let the user override the test. 3136else 3137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3138for as_dir in $PATH 3139do 3140 IFS=$as_save_IFS 3141 test -z "$as_dir" && as_dir=. 3142 for ac_exec_ext in '' $ac_executable_extensions; do 3143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3144 ac_cv_prog_CC="${ac_tool_prefix}cc" 3145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3146 break 2 3147 fi 3148done 3149 done 3150IFS=$as_save_IFS 3151 3152fi 3153fi 3154CC=$ac_cv_prog_CC 3155if test -n "$CC"; then 3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3157$as_echo "$CC" >&6; } 3158else 3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3160$as_echo "no" >&6; } 3161fi 3162 3163 3164 fi 3165fi 3166if test -z "$CC"; then 3167 # Extract the first word of "cc", so it can be a program name with args. 3168set dummy cc; ac_word=$2 3169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3170$as_echo_n "checking for $ac_word... " >&6; } 3171if test "${ac_cv_prog_CC+set}" = set; then : 3172 $as_echo_n "(cached) " >&6 3173else 3174 if test -n "$CC"; then 3175 ac_cv_prog_CC="$CC" # Let the user override the test. 3176else 3177 ac_prog_rejected=no 3178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3179for as_dir in $PATH 3180do 3181 IFS=$as_save_IFS 3182 test -z "$as_dir" && as_dir=. 3183 for ac_exec_ext in '' $ac_executable_extensions; do 3184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3185 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3186 ac_prog_rejected=yes 3187 continue 3188 fi 3189 ac_cv_prog_CC="cc" 3190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3191 break 2 3192 fi 3193done 3194 done 3195IFS=$as_save_IFS 3196 3197if test $ac_prog_rejected = yes; then 3198 # We found a bogon in the path, so make sure we never use it. 3199 set dummy $ac_cv_prog_CC 3200 shift 3201 if test $# != 0; then 3202 # We chose a different compiler from the bogus one. 3203 # However, it has the same basename, so the bogon will be chosen 3204 # first if we set CC to just the basename; use the full file name. 3205 shift 3206 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3207 fi 3208fi 3209fi 3210fi 3211CC=$ac_cv_prog_CC 3212if test -n "$CC"; then 3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3214$as_echo "$CC" >&6; } 3215else 3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3217$as_echo "no" >&6; } 3218fi 3219 3220 3221fi 3222if test -z "$CC"; then 3223 if test -n "$ac_tool_prefix"; then 3224 for ac_prog in cl.exe 3225 do 3226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3227set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3229$as_echo_n "checking for $ac_word... " >&6; } 3230if test "${ac_cv_prog_CC+set}" = set; then : 3231 $as_echo_n "(cached) " >&6 3232else 3233 if test -n "$CC"; then 3234 ac_cv_prog_CC="$CC" # Let the user override the test. 3235else 3236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3237for as_dir in $PATH 3238do 3239 IFS=$as_save_IFS 3240 test -z "$as_dir" && as_dir=. 3241 for ac_exec_ext in '' $ac_executable_extensions; do 3242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3243 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3245 break 2 3246 fi 3247done 3248 done 3249IFS=$as_save_IFS 3250 3251fi 3252fi 3253CC=$ac_cv_prog_CC 3254if test -n "$CC"; then 3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3256$as_echo "$CC" >&6; } 3257else 3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3259$as_echo "no" >&6; } 3260fi 3261 3262 3263 test -n "$CC" && break 3264 done 3265fi 3266if test -z "$CC"; then 3267 ac_ct_CC=$CC 3268 for ac_prog in cl.exe 3269do 3270 # Extract the first word of "$ac_prog", so it can be a program name with args. 3271set dummy $ac_prog; ac_word=$2 3272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3273$as_echo_n "checking for $ac_word... " >&6; } 3274if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3275 $as_echo_n "(cached) " >&6 3276else 3277 if test -n "$ac_ct_CC"; then 3278 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3279else 3280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3281for as_dir in $PATH 3282do 3283 IFS=$as_save_IFS 3284 test -z "$as_dir" && as_dir=. 3285 for ac_exec_ext in '' $ac_executable_extensions; do 3286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3287 ac_cv_prog_ac_ct_CC="$ac_prog" 3288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3289 break 2 3290 fi 3291done 3292 done 3293IFS=$as_save_IFS 3294 3295fi 3296fi 3297ac_ct_CC=$ac_cv_prog_ac_ct_CC 3298if test -n "$ac_ct_CC"; then 3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3300$as_echo "$ac_ct_CC" >&6; } 3301else 3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3303$as_echo "no" >&6; } 3304fi 3305 3306 3307 test -n "$ac_ct_CC" && break 3308done 3309 3310 if test "x$ac_ct_CC" = x; then 3311 CC="" 3312 else 3313 case $cross_compiling:$ac_tool_warned in 3314yes:) 3315{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3316$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3317ac_tool_warned=yes ;; 3318esac 3319 CC=$ac_ct_CC 3320 fi 3321fi 3322 3323fi 3324 3325 3326test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3327$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3328as_fn_error "no acceptable C compiler found in \$PATH 3329See \`config.log' for more details." "$LINENO" 5; } 3330 3331# Provide some information about the compiler. 3332$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3333set X $ac_compile 3334ac_compiler=$2 3335for ac_option in --version -v -V -qversion; do 3336 { { ac_try="$ac_compiler $ac_option >&5" 3337case "(($ac_try" in 3338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3339 *) ac_try_echo=$ac_try;; 3340esac 3341eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3342$as_echo "$ac_try_echo"; } >&5 3343 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3344 ac_status=$? 3345 if test -s conftest.err; then 3346 sed '10a\ 3347... rest of stderr output deleted ... 3348 10q' conftest.err >conftest.er1 3349 cat conftest.er1 >&5 3350 fi 3351 rm -f conftest.er1 conftest.err 3352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3353 test $ac_status = 0; } 3354done 3355 3356cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3357/* end confdefs.h. */ 3358 3359int 3360main () 3361{ 3362 3363 ; 3364 return 0; 3365} 3366_ACEOF 3367ac_clean_files_save=$ac_clean_files 3368ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3369# Try to create an executable without -o first, disregard a.out. 3370# It will help us diagnose broken compilers, and finding out an intuition 3371# of exeext. 3372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3373$as_echo_n "checking whether the C compiler works... " >&6; } 3374ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3375 3376# The possible output files: 3377ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3378 3379ac_rmfiles= 3380for ac_file in $ac_files 3381do 3382 case $ac_file in 3383 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3384 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3385 esac 3386done 3387rm -f $ac_rmfiles 3388 3389if { { ac_try="$ac_link_default" 3390case "(($ac_try" in 3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3392 *) ac_try_echo=$ac_try;; 3393esac 3394eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3395$as_echo "$ac_try_echo"; } >&5 3396 (eval "$ac_link_default") 2>&5 3397 ac_status=$? 3398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3399 test $ac_status = 0; }; then : 3400 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3401# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3402# in a Makefile. We should not override ac_cv_exeext if it was cached, 3403# so that the user can short-circuit this test for compilers unknown to 3404# Autoconf. 3405for ac_file in $ac_files '' 3406do 3407 test -f "$ac_file" || continue 3408 case $ac_file in 3409 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3410 ;; 3411 [ab].out ) 3412 # We found the default executable, but exeext='' is most 3413 # certainly right. 3414 break;; 3415 *.* ) 3416 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3417 then :; else 3418 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3419 fi 3420 # We set ac_cv_exeext here because the later test for it is not 3421 # safe: cross compilers may not add the suffix if given an `-o' 3422 # argument, so we may need to know it at that point already. 3423 # Even if this section looks crufty: it has the advantage of 3424 # actually working. 3425 break;; 3426 * ) 3427 break;; 3428 esac 3429done 3430test "$ac_cv_exeext" = no && ac_cv_exeext= 3431 3432else 3433 ac_file='' 3434fi 3435if test -z "$ac_file"; then : 3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3437$as_echo "no" >&6; } 3438$as_echo "$as_me: failed program was:" >&5 3439sed 's/^/| /' conftest.$ac_ext >&5 3440 3441{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3442$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3443{ as_fn_set_status 77 3444as_fn_error "C compiler cannot create executables 3445See \`config.log' for more details." "$LINENO" 5; }; } 3446else 3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3448$as_echo "yes" >&6; } 3449fi 3450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3451$as_echo_n "checking for C compiler default output file name... " >&6; } 3452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3453$as_echo "$ac_file" >&6; } 3454ac_exeext=$ac_cv_exeext 3455 3456rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3457ac_clean_files=$ac_clean_files_save 3458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3459$as_echo_n "checking for suffix of executables... " >&6; } 3460if { { ac_try="$ac_link" 3461case "(($ac_try" in 3462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3463 *) ac_try_echo=$ac_try;; 3464esac 3465eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3466$as_echo "$ac_try_echo"; } >&5 3467 (eval "$ac_link") 2>&5 3468 ac_status=$? 3469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3470 test $ac_status = 0; }; then : 3471 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3472# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3473# work properly (i.e., refer to `conftest.exe'), while it won't with 3474# `rm'. 3475for ac_file in conftest.exe conftest conftest.*; do 3476 test -f "$ac_file" || continue 3477 case $ac_file in 3478 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3479 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3480 break;; 3481 * ) break;; 3482 esac 3483done 3484else 3485 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3486$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3487as_fn_error "cannot compute suffix of executables: cannot compile and link 3488See \`config.log' for more details." "$LINENO" 5; } 3489fi 3490rm -f conftest conftest$ac_cv_exeext 3491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3492$as_echo "$ac_cv_exeext" >&6; } 3493 3494rm -f conftest.$ac_ext 3495EXEEXT=$ac_cv_exeext 3496ac_exeext=$EXEEXT 3497cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3498/* end confdefs.h. */ 3499#include <stdio.h> 3500int 3501main () 3502{ 3503FILE *f = fopen ("conftest.out", "w"); 3504 return ferror (f) || fclose (f) != 0; 3505 3506 ; 3507 return 0; 3508} 3509_ACEOF 3510ac_clean_files="$ac_clean_files conftest.out" 3511# Check that the compiler produces executables we can run. If not, either 3512# the compiler is broken, or we cross compile. 3513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3514$as_echo_n "checking whether we are cross compiling... " >&6; } 3515if test "$cross_compiling" != yes; then 3516 { { ac_try="$ac_link" 3517case "(($ac_try" in 3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3519 *) ac_try_echo=$ac_try;; 3520esac 3521eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3522$as_echo "$ac_try_echo"; } >&5 3523 (eval "$ac_link") 2>&5 3524 ac_status=$? 3525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3526 test $ac_status = 0; } 3527 if { ac_try='./conftest$ac_cv_exeext' 3528 { { case "(($ac_try" in 3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3530 *) ac_try_echo=$ac_try;; 3531esac 3532eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3533$as_echo "$ac_try_echo"; } >&5 3534 (eval "$ac_try") 2>&5 3535 ac_status=$? 3536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3537 test $ac_status = 0; }; }; then 3538 cross_compiling=no 3539 else 3540 if test "$cross_compiling" = maybe; then 3541 cross_compiling=yes 3542 else 3543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3544$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3545as_fn_error "cannot run C compiled programs. 3546If you meant to cross compile, use \`--host'. 3547See \`config.log' for more details." "$LINENO" 5; } 3548 fi 3549 fi 3550fi 3551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3552$as_echo "$cross_compiling" >&6; } 3553 3554rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3555ac_clean_files=$ac_clean_files_save 3556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3557$as_echo_n "checking for suffix of object files... " >&6; } 3558if test "${ac_cv_objext+set}" = set; then : 3559 $as_echo_n "(cached) " >&6 3560else 3561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3562/* end confdefs.h. */ 3563 3564int 3565main () 3566{ 3567 3568 ; 3569 return 0; 3570} 3571_ACEOF 3572rm -f conftest.o conftest.obj 3573if { { ac_try="$ac_compile" 3574case "(($ac_try" in 3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3576 *) ac_try_echo=$ac_try;; 3577esac 3578eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3579$as_echo "$ac_try_echo"; } >&5 3580 (eval "$ac_compile") 2>&5 3581 ac_status=$? 3582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3583 test $ac_status = 0; }; then : 3584 for ac_file in conftest.o conftest.obj conftest.*; do 3585 test -f "$ac_file" || continue; 3586 case $ac_file in 3587 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3588 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3589 break;; 3590 esac 3591done 3592else 3593 $as_echo "$as_me: failed program was:" >&5 3594sed 's/^/| /' conftest.$ac_ext >&5 3595 3596{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3597$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3598as_fn_error "cannot compute suffix of object files: cannot compile 3599See \`config.log' for more details." "$LINENO" 5; } 3600fi 3601rm -f conftest.$ac_cv_objext conftest.$ac_ext 3602fi 3603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3604$as_echo "$ac_cv_objext" >&6; } 3605OBJEXT=$ac_cv_objext 3606ac_objext=$OBJEXT 3607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3608$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3609if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3610 $as_echo_n "(cached) " >&6 3611else 3612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3613/* end confdefs.h. */ 3614 3615int 3616main () 3617{ 3618#ifndef __GNUC__ 3619 choke me 3620#endif 3621 3622 ; 3623 return 0; 3624} 3625_ACEOF 3626if ac_fn_c_try_compile "$LINENO"; then : 3627 ac_compiler_gnu=yes 3628else 3629 ac_compiler_gnu=no 3630fi 3631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3632ac_cv_c_compiler_gnu=$ac_compiler_gnu 3633 3634fi 3635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3636$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3637if test $ac_compiler_gnu = yes; then 3638 GCC=yes 3639else 3640 GCC= 3641fi 3642ac_test_CFLAGS=${CFLAGS+set} 3643ac_save_CFLAGS=$CFLAGS 3644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3645$as_echo_n "checking whether $CC accepts -g... " >&6; } 3646if test "${ac_cv_prog_cc_g+set}" = set; then : 3647 $as_echo_n "(cached) " >&6 3648else 3649 ac_save_c_werror_flag=$ac_c_werror_flag 3650 ac_c_werror_flag=yes 3651 ac_cv_prog_cc_g=no 3652 CFLAGS="-g" 3653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3654/* end confdefs.h. */ 3655 3656int 3657main () 3658{ 3659 3660 ; 3661 return 0; 3662} 3663_ACEOF 3664if ac_fn_c_try_compile "$LINENO"; then : 3665 ac_cv_prog_cc_g=yes 3666else 3667 CFLAGS="" 3668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3669/* end confdefs.h. */ 3670 3671int 3672main () 3673{ 3674 3675 ; 3676 return 0; 3677} 3678_ACEOF 3679if ac_fn_c_try_compile "$LINENO"; then : 3680 3681else 3682 ac_c_werror_flag=$ac_save_c_werror_flag 3683 CFLAGS="-g" 3684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3685/* end confdefs.h. */ 3686 3687int 3688main () 3689{ 3690 3691 ; 3692 return 0; 3693} 3694_ACEOF 3695if ac_fn_c_try_compile "$LINENO"; then : 3696 ac_cv_prog_cc_g=yes 3697fi 3698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3699fi 3700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3701fi 3702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3703 ac_c_werror_flag=$ac_save_c_werror_flag 3704fi 3705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3706$as_echo "$ac_cv_prog_cc_g" >&6; } 3707if test "$ac_test_CFLAGS" = set; then 3708 CFLAGS=$ac_save_CFLAGS 3709elif test $ac_cv_prog_cc_g = yes; then 3710 if test "$GCC" = yes; then 3711 CFLAGS="-g -O2" 3712 else 3713 CFLAGS="-g" 3714 fi 3715else 3716 if test "$GCC" = yes; then 3717 CFLAGS="-O2" 3718 else 3719 CFLAGS= 3720 fi 3721fi 3722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3723$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3724if test "${ac_cv_prog_cc_c89+set}" = set; then : 3725 $as_echo_n "(cached) " >&6 3726else 3727 ac_cv_prog_cc_c89=no 3728ac_save_CC=$CC 3729cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3730/* end confdefs.h. */ 3731#include <stdarg.h> 3732#include <stdio.h> 3733#include <sys/types.h> 3734#include <sys/stat.h> 3735/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3736struct buf { int x; }; 3737FILE * (*rcsopen) (struct buf *, struct stat *, int); 3738static char *e (p, i) 3739 char **p; 3740 int i; 3741{ 3742 return p[i]; 3743} 3744static char *f (char * (*g) (char **, int), char **p, ...) 3745{ 3746 char *s; 3747 va_list v; 3748 va_start (v,p); 3749 s = g (p, va_arg (v,int)); 3750 va_end (v); 3751 return s; 3752} 3753 3754/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3755 function prototypes and stuff, but not '\xHH' hex character constants. 3756 These don't provoke an error unfortunately, instead are silently treated 3757 as 'x'. The following induces an error, until -std is added to get 3758 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3759 array size at least. It's necessary to write '\x00'==0 to get something 3760 that's true only with -std. */ 3761int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3762 3763/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3764 inside strings and character constants. */ 3765#define FOO(x) 'x' 3766int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3767 3768int test (int i, double x); 3769struct s1 {int (*f) (int a);}; 3770struct s2 {int (*f) (double a);}; 3771int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3772int argc; 3773char **argv; 3774int 3775main () 3776{ 3777return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3778 ; 3779 return 0; 3780} 3781_ACEOF 3782for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3783 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3784do 3785 CC="$ac_save_CC $ac_arg" 3786 if ac_fn_c_try_compile "$LINENO"; then : 3787 ac_cv_prog_cc_c89=$ac_arg 3788fi 3789rm -f core conftest.err conftest.$ac_objext 3790 test "x$ac_cv_prog_cc_c89" != "xno" && break 3791done 3792rm -f conftest.$ac_ext 3793CC=$ac_save_CC 3794 3795fi 3796# AC_CACHE_VAL 3797case "x$ac_cv_prog_cc_c89" in 3798 x) 3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3800$as_echo "none needed" >&6; } ;; 3801 xno) 3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3803$as_echo "unsupported" >&6; } ;; 3804 *) 3805 CC="$CC $ac_cv_prog_cc_c89" 3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3807$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3808esac 3809if test "x$ac_cv_prog_cc_c89" != xno; then : 3810 3811fi 3812 3813ac_ext=c 3814ac_cpp='$CPP $CPPFLAGS' 3815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3817ac_compiler_gnu=$ac_cv_c_compiler_gnu 3818 3819depcc="$CC" am_compiler_list= 3820 3821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3822$as_echo_n "checking dependency style of $depcc... " >&6; } 3823if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 3824 $as_echo_n "(cached) " >&6 3825else 3826 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3827 # We make a subdir and do the tests there. Otherwise we can end up 3828 # making bogus files that we don't know about and never remove. For 3829 # instance it was reported that on HP-UX the gcc test will end up 3830 # making a dummy file named `D' -- because `-MD' means `put the output 3831 # in D'. 3832 mkdir conftest.dir 3833 # Copy depcomp to subdir because otherwise we won't find it if we're 3834 # using a relative directory. 3835 cp "$am_depcomp" conftest.dir 3836 cd conftest.dir 3837 # We will build objects and dependencies in a subdirectory because 3838 # it helps to detect inapplicable dependency modes. For instance 3839 # both Tru64's cc and ICC support -MD to output dependencies as a 3840 # side effect of compilation, but ICC will put the dependencies in 3841 # the current directory while Tru64 will put them in the object 3842 # directory. 3843 mkdir sub 3844 3845 am_cv_CC_dependencies_compiler_type=none 3846 if test "$am_compiler_list" = ""; then 3847 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3848 fi 3849 am__universal=false 3850 case " $depcc " in #( 3851 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3852 esac 3853 3854 for depmode in $am_compiler_list; do 3855 # Setup a source with many dependencies, because some compilers 3856 # like to wrap large dependency lists on column 80 (with \), and 3857 # we should not choose a depcomp mode which is confused by this. 3858 # 3859 # We need to recreate these files for each test, as the compiler may 3860 # overwrite some of them when testing with obscure command lines. 3861 # This happens at least with the AIX C compiler. 3862 : > sub/conftest.c 3863 for i in 1 2 3 4 5 6; do 3864 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3865 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3866 # Solaris 8's {/usr,}/bin/sh. 3867 touch sub/conftst$i.h 3868 done 3869 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3870 3871 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3872 # mode. It turns out that the SunPro C++ compiler does not properly 3873 # handle `-M -o', and we need to detect this. Also, some Intel 3874 # versions had trouble with output in subdirs 3875 am__obj=sub/conftest.${OBJEXT-o} 3876 am__minus_obj="-o $am__obj" 3877 case $depmode in 3878 gcc) 3879 # This depmode causes a compiler race in universal mode. 3880 test "$am__universal" = false || continue 3881 ;; 3882 nosideeffect) 3883 # after this tag, mechanisms are not by side-effect, so they'll 3884 # only be used when explicitly requested 3885 if test "x$enable_dependency_tracking" = xyes; then 3886 continue 3887 else 3888 break 3889 fi 3890 ;; 3891 msvisualcpp | msvcmsys) 3892 # This compiler won't grok `-c -o', but also, the minuso test has 3893 # not run yet. These depmodes are late enough in the game, and 3894 # so weak that their functioning should not be impacted. 3895 am__obj=conftest.${OBJEXT-o} 3896 am__minus_obj= 3897 ;; 3898 none) break ;; 3899 esac 3900 if depmode=$depmode \ 3901 source=sub/conftest.c object=$am__obj \ 3902 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3903 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3904 >/dev/null 2>conftest.err && 3905 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3906 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3907 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3908 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3909 # icc doesn't choke on unknown options, it will just issue warnings 3910 # or remarks (even with -Werror). So we grep stderr for any message 3911 # that says an option was ignored or not supported. 3912 # When given -MP, icc 7.0 and 7.1 complain thusly: 3913 # icc: Command line warning: ignoring option '-M'; no argument required 3914 # The diagnosis changed in icc 8.0: 3915 # icc: Command line remark: option '-MP' not supported 3916 if (grep 'ignoring option' conftest.err || 3917 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3918 am_cv_CC_dependencies_compiler_type=$depmode 3919 break 3920 fi 3921 fi 3922 done 3923 3924 cd .. 3925 rm -rf conftest.dir 3926else 3927 am_cv_CC_dependencies_compiler_type=none 3928fi 3929 3930fi 3931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3932$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3933CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3934 3935 if 3936 test "x$enable_dependency_tracking" != xno \ 3937 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3938 am__fastdepCC_TRUE= 3939 am__fastdepCC_FALSE='#' 3940else 3941 am__fastdepCC_TRUE='#' 3942 am__fastdepCC_FALSE= 3943fi 3944 3945 3946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5 3947$as_echo_n "checking for function prototypes... " >&6; } 3948if test "$ac_cv_prog_cc_c89" != no; then 3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3950$as_echo "yes" >&6; } 3951 3952$as_echo "#define PROTOTYPES 1" >>confdefs.h 3953 3954 3955$as_echo "#define __PROTOTYPES 1" >>confdefs.h 3956 3957else 3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3959$as_echo "no" >&6; } 3960fi 3961 3962 3963ac_ext=c 3964ac_cpp='$CPP $CPPFLAGS' 3965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3967ac_compiler_gnu=$ac_cv_c_compiler_gnu 3968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3969$as_echo_n "checking how to run the C preprocessor... " >&6; } 3970# On Suns, sometimes $CPP names a directory. 3971if test -n "$CPP" && test -d "$CPP"; then 3972 CPP= 3973fi 3974if test -z "$CPP"; then 3975 if test "${ac_cv_prog_CPP+set}" = set; then : 3976 $as_echo_n "(cached) " >&6 3977else 3978 # Double quotes because CPP needs to be expanded 3979 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3980 do 3981 ac_preproc_ok=false 3982for ac_c_preproc_warn_flag in '' yes 3983do 3984 # Use a header file that comes with gcc, so configuring glibc 3985 # with a fresh cross-compiler works. 3986 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3987 # <limits.h> exists even on freestanding compilers. 3988 # On the NeXT, cc -E runs the code through the compiler's parser, 3989 # not just through cpp. "Syntax error" is here to catch this case. 3990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3991/* end confdefs.h. */ 3992#ifdef __STDC__ 3993# include <limits.h> 3994#else 3995# include <assert.h> 3996#endif 3997 Syntax error 3998_ACEOF 3999if ac_fn_c_try_cpp "$LINENO"; then : 4000 4001else 4002 # Broken: fails on valid input. 4003continue 4004fi 4005rm -f conftest.err conftest.$ac_ext 4006 4007 # OK, works on sane cases. Now check whether nonexistent headers 4008 # can be detected and how. 4009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4010/* end confdefs.h. */ 4011#include <ac_nonexistent.h> 4012_ACEOF 4013if ac_fn_c_try_cpp "$LINENO"; then : 4014 # Broken: success on invalid input. 4015continue 4016else 4017 # Passes both tests. 4018ac_preproc_ok=: 4019break 4020fi 4021rm -f conftest.err conftest.$ac_ext 4022 4023done 4024# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4025rm -f conftest.err conftest.$ac_ext 4026if $ac_preproc_ok; then : 4027 break 4028fi 4029 4030 done 4031 ac_cv_prog_CPP=$CPP 4032 4033fi 4034 CPP=$ac_cv_prog_CPP 4035else 4036 ac_cv_prog_CPP=$CPP 4037fi 4038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4039$as_echo "$CPP" >&6; } 4040ac_preproc_ok=false 4041for ac_c_preproc_warn_flag in '' yes 4042do 4043 # Use a header file that comes with gcc, so configuring glibc 4044 # with a fresh cross-compiler works. 4045 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4046 # <limits.h> exists even on freestanding compilers. 4047 # On the NeXT, cc -E runs the code through the compiler's parser, 4048 # not just through cpp. "Syntax error" is here to catch this case. 4049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4050/* end confdefs.h. */ 4051#ifdef __STDC__ 4052# include <limits.h> 4053#else 4054# include <assert.h> 4055#endif 4056 Syntax error 4057_ACEOF 4058if ac_fn_c_try_cpp "$LINENO"; then : 4059 4060else 4061 # Broken: fails on valid input. 4062continue 4063fi 4064rm -f conftest.err conftest.$ac_ext 4065 4066 # OK, works on sane cases. Now check whether nonexistent headers 4067 # can be detected and how. 4068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4069/* end confdefs.h. */ 4070#include <ac_nonexistent.h> 4071_ACEOF 4072if ac_fn_c_try_cpp "$LINENO"; then : 4073 # Broken: success on invalid input. 4074continue 4075else 4076 # Passes both tests. 4077ac_preproc_ok=: 4078break 4079fi 4080rm -f conftest.err conftest.$ac_ext 4081 4082done 4083# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4084rm -f conftest.err conftest.$ac_ext 4085if $ac_preproc_ok; then : 4086 4087else 4088 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4089$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4090as_fn_error "C preprocessor \"$CPP\" fails sanity check 4091See \`config.log' for more details." "$LINENO" 5; } 4092fi 4093 4094ac_ext=c 4095ac_cpp='$CPP $CPPFLAGS' 4096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4098ac_compiler_gnu=$ac_cv_c_compiler_gnu 4099 4100 4101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4102$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4103if test "${ac_cv_path_GREP+set}" = set; then : 4104 $as_echo_n "(cached) " >&6 4105else 4106 if test -z "$GREP"; then 4107 ac_path_GREP_found=false 4108 # Loop through the user's path and test for each of PROGNAME-LIST 4109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4110for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4111do 4112 IFS=$as_save_IFS 4113 test -z "$as_dir" && as_dir=. 4114 for ac_prog in grep ggrep; do 4115 for ac_exec_ext in '' $ac_executable_extensions; do 4116 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4117 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4118# Check for GNU ac_path_GREP and select it if it is found. 4119 # Check for GNU $ac_path_GREP 4120case `"$ac_path_GREP" --version 2>&1` in 4121*GNU*) 4122 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4123*) 4124 ac_count=0 4125 $as_echo_n 0123456789 >"conftest.in" 4126 while : 4127 do 4128 cat "conftest.in" "conftest.in" >"conftest.tmp" 4129 mv "conftest.tmp" "conftest.in" 4130 cp "conftest.in" "conftest.nl" 4131 $as_echo 'GREP' >> "conftest.nl" 4132 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4133 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4134 as_fn_arith $ac_count + 1 && ac_count=$as_val 4135 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4136 # Best one so far, save it but keep looking for a better one 4137 ac_cv_path_GREP="$ac_path_GREP" 4138 ac_path_GREP_max=$ac_count 4139 fi 4140 # 10*(2^10) chars as input seems more than enough 4141 test $ac_count -gt 10 && break 4142 done 4143 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4144esac 4145 4146 $ac_path_GREP_found && break 3 4147 done 4148 done 4149 done 4150IFS=$as_save_IFS 4151 if test -z "$ac_cv_path_GREP"; then 4152 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4153 fi 4154else 4155 ac_cv_path_GREP=$GREP 4156fi 4157 4158fi 4159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4160$as_echo "$ac_cv_path_GREP" >&6; } 4161 GREP="$ac_cv_path_GREP" 4162 4163 4164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4165$as_echo_n "checking for egrep... " >&6; } 4166if test "${ac_cv_path_EGREP+set}" = set; then : 4167 $as_echo_n "(cached) " >&6 4168else 4169 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4170 then ac_cv_path_EGREP="$GREP -E" 4171 else 4172 if test -z "$EGREP"; then 4173 ac_path_EGREP_found=false 4174 # Loop through the user's path and test for each of PROGNAME-LIST 4175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4176for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4177do 4178 IFS=$as_save_IFS 4179 test -z "$as_dir" && as_dir=. 4180 for ac_prog in egrep; do 4181 for ac_exec_ext in '' $ac_executable_extensions; do 4182 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4183 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4184# Check for GNU ac_path_EGREP and select it if it is found. 4185 # Check for GNU $ac_path_EGREP 4186case `"$ac_path_EGREP" --version 2>&1` in 4187*GNU*) 4188 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4189*) 4190 ac_count=0 4191 $as_echo_n 0123456789 >"conftest.in" 4192 while : 4193 do 4194 cat "conftest.in" "conftest.in" >"conftest.tmp" 4195 mv "conftest.tmp" "conftest.in" 4196 cp "conftest.in" "conftest.nl" 4197 $as_echo 'EGREP' >> "conftest.nl" 4198 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4199 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4200 as_fn_arith $ac_count + 1 && ac_count=$as_val 4201 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4202 # Best one so far, save it but keep looking for a better one 4203 ac_cv_path_EGREP="$ac_path_EGREP" 4204 ac_path_EGREP_max=$ac_count 4205 fi 4206 # 10*(2^10) chars as input seems more than enough 4207 test $ac_count -gt 10 && break 4208 done 4209 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4210esac 4211 4212 $ac_path_EGREP_found && break 3 4213 done 4214 done 4215 done 4216IFS=$as_save_IFS 4217 if test -z "$ac_cv_path_EGREP"; then 4218 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4219 fi 4220else 4221 ac_cv_path_EGREP=$EGREP 4222fi 4223 4224 fi 4225fi 4226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4227$as_echo "$ac_cv_path_EGREP" >&6; } 4228 EGREP="$ac_cv_path_EGREP" 4229 4230 4231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4232$as_echo_n "checking for ANSI C header files... " >&6; } 4233if test "${ac_cv_header_stdc+set}" = set; then : 4234 $as_echo_n "(cached) " >&6 4235else 4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4237/* end confdefs.h. */ 4238#include <stdlib.h> 4239#include <stdarg.h> 4240#include <string.h> 4241#include <float.h> 4242 4243int 4244main () 4245{ 4246 4247 ; 4248 return 0; 4249} 4250_ACEOF 4251if ac_fn_c_try_compile "$LINENO"; then : 4252 ac_cv_header_stdc=yes 4253else 4254 ac_cv_header_stdc=no 4255fi 4256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4257 4258if test $ac_cv_header_stdc = yes; then 4259 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4261/* end confdefs.h. */ 4262#include <string.h> 4263 4264_ACEOF 4265if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4266 $EGREP "memchr" >/dev/null 2>&1; then : 4267 4268else 4269 ac_cv_header_stdc=no 4270fi 4271rm -f conftest* 4272 4273fi 4274 4275if test $ac_cv_header_stdc = yes; then 4276 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4278/* end confdefs.h. */ 4279#include <stdlib.h> 4280 4281_ACEOF 4282if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4283 $EGREP "free" >/dev/null 2>&1; then : 4284 4285else 4286 ac_cv_header_stdc=no 4287fi 4288rm -f conftest* 4289 4290fi 4291 4292if test $ac_cv_header_stdc = yes; then 4293 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4294 if test "$cross_compiling" = yes; then : 4295 : 4296else 4297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4298/* end confdefs.h. */ 4299#include <ctype.h> 4300#include <stdlib.h> 4301#if ((' ' & 0x0FF) == 0x020) 4302# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4303# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4304#else 4305# define ISLOWER(c) \ 4306 (('a' <= (c) && (c) <= 'i') \ 4307 || ('j' <= (c) && (c) <= 'r') \ 4308 || ('s' <= (c) && (c) <= 'z')) 4309# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4310#endif 4311 4312#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4313int 4314main () 4315{ 4316 int i; 4317 for (i = 0; i < 256; i++) 4318 if (XOR (islower (i), ISLOWER (i)) 4319 || toupper (i) != TOUPPER (i)) 4320 return 2; 4321 return 0; 4322} 4323_ACEOF 4324if ac_fn_c_try_run "$LINENO"; then : 4325 4326else 4327 ac_cv_header_stdc=no 4328fi 4329rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4330 conftest.$ac_objext conftest.beam conftest.$ac_ext 4331fi 4332 4333fi 4334fi 4335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4336$as_echo "$ac_cv_header_stdc" >&6; } 4337if test $ac_cv_header_stdc = yes; then 4338 4339$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4340 4341fi 4342 4343# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4344for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4345 inttypes.h stdint.h unistd.h 4346do : 4347 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4348ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4349" 4350eval as_val=\$$as_ac_Header 4351 if test "x$as_val" = x""yes; then : 4352 cat >>confdefs.h <<_ACEOF 4353#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4354_ACEOF 4355 4356fi 4357 4358done 4359 4360 4361 4362if test "$ac_cv_prog_cc_stdc" != no; then 4363 U= ANSI2KNR= 4364else 4365 U=_ ANSI2KNR=./ansi2knr 4366fi 4367# Ensure some checks needed by ansi2knr itself. 4368 4369for ac_header in string.h 4370do : 4371 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" 4372if test "x$ac_cv_header_string_h" = x""yes; then : 4373 cat >>confdefs.h <<_ACEOF 4374#define HAVE_STRING_H 1 4375_ACEOF 4376 4377fi 4378 4379done 4380 4381 4382 4383# Add configure option --enable-maintainer-mode which enables 4384# dependency checking and generation useful to package maintainers. 4385# This is made an option to avoid confusing end users. 4386 4387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 4388$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 4389 # Check whether --enable-maintainer-mode was given. 4390if test "${enable_maintainer_mode+set}" = set; then : 4391 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 4392else 4393 USE_MAINTAINER_MODE=no 4394fi 4395 4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 4397$as_echo "$USE_MAINTAINER_MODE" >&6; } 4398 if test $USE_MAINTAINER_MODE = yes; then 4399 MAINTAINER_MODE_TRUE= 4400 MAINTAINER_MODE_FALSE='#' 4401else 4402 MAINTAINER_MODE_TRUE='#' 4403 MAINTAINER_MODE_FALSE= 4404fi 4405 4406 MAINT=$MAINTAINER_MODE_TRUE 4407 4408 4409 4410# Check for programs 4411ac_ext=c 4412ac_cpp='$CPP $CPPFLAGS' 4413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4415ac_compiler_gnu=$ac_cv_c_compiler_gnu 4416if test -n "$ac_tool_prefix"; then 4417 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4418set dummy ${ac_tool_prefix}gcc; ac_word=$2 4419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4420$as_echo_n "checking for $ac_word... " >&6; } 4421if test "${ac_cv_prog_CC+set}" = set; then : 4422 $as_echo_n "(cached) " >&6 4423else 4424 if test -n "$CC"; then 4425 ac_cv_prog_CC="$CC" # Let the user override the test. 4426else 4427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4428for as_dir in $PATH 4429do 4430 IFS=$as_save_IFS 4431 test -z "$as_dir" && as_dir=. 4432 for ac_exec_ext in '' $ac_executable_extensions; do 4433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4434 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4436 break 2 4437 fi 4438done 4439 done 4440IFS=$as_save_IFS 4441 4442fi 4443fi 4444CC=$ac_cv_prog_CC 4445if test -n "$CC"; then 4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4447$as_echo "$CC" >&6; } 4448else 4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4450$as_echo "no" >&6; } 4451fi 4452 4453 4454fi 4455if test -z "$ac_cv_prog_CC"; then 4456 ac_ct_CC=$CC 4457 # Extract the first word of "gcc", so it can be a program name with args. 4458set dummy gcc; ac_word=$2 4459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4460$as_echo_n "checking for $ac_word... " >&6; } 4461if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 4462 $as_echo_n "(cached) " >&6 4463else 4464 if test -n "$ac_ct_CC"; then 4465 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4466else 4467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4468for as_dir in $PATH 4469do 4470 IFS=$as_save_IFS 4471 test -z "$as_dir" && as_dir=. 4472 for ac_exec_ext in '' $ac_executable_extensions; do 4473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4474 ac_cv_prog_ac_ct_CC="gcc" 4475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4476 break 2 4477 fi 4478done 4479 done 4480IFS=$as_save_IFS 4481 4482fi 4483fi 4484ac_ct_CC=$ac_cv_prog_ac_ct_CC 4485if test -n "$ac_ct_CC"; then 4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4487$as_echo "$ac_ct_CC" >&6; } 4488else 4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4490$as_echo "no" >&6; } 4491fi 4492 4493 if test "x$ac_ct_CC" = x; then 4494 CC="" 4495 else 4496 case $cross_compiling:$ac_tool_warned in 4497yes:) 4498{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4499$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4500ac_tool_warned=yes ;; 4501esac 4502 CC=$ac_ct_CC 4503 fi 4504else 4505 CC="$ac_cv_prog_CC" 4506fi 4507 4508if test -z "$CC"; then 4509 if test -n "$ac_tool_prefix"; then 4510 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4511set dummy ${ac_tool_prefix}cc; ac_word=$2 4512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4513$as_echo_n "checking for $ac_word... " >&6; } 4514if test "${ac_cv_prog_CC+set}" = set; then : 4515 $as_echo_n "(cached) " >&6 4516else 4517 if test -n "$CC"; then 4518 ac_cv_prog_CC="$CC" # Let the user override the test. 4519else 4520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4521for as_dir in $PATH 4522do 4523 IFS=$as_save_IFS 4524 test -z "$as_dir" && as_dir=. 4525 for ac_exec_ext in '' $ac_executable_extensions; do 4526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4527 ac_cv_prog_CC="${ac_tool_prefix}cc" 4528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4529 break 2 4530 fi 4531done 4532 done 4533IFS=$as_save_IFS 4534 4535fi 4536fi 4537CC=$ac_cv_prog_CC 4538if test -n "$CC"; then 4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4540$as_echo "$CC" >&6; } 4541else 4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4543$as_echo "no" >&6; } 4544fi 4545 4546 4547 fi 4548fi 4549if test -z "$CC"; then 4550 # Extract the first word of "cc", so it can be a program name with args. 4551set dummy cc; ac_word=$2 4552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4553$as_echo_n "checking for $ac_word... " >&6; } 4554if test "${ac_cv_prog_CC+set}" = set; then : 4555 $as_echo_n "(cached) " >&6 4556else 4557 if test -n "$CC"; then 4558 ac_cv_prog_CC="$CC" # Let the user override the test. 4559else 4560 ac_prog_rejected=no 4561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4562for as_dir in $PATH 4563do 4564 IFS=$as_save_IFS 4565 test -z "$as_dir" && as_dir=. 4566 for ac_exec_ext in '' $ac_executable_extensions; do 4567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4568 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4569 ac_prog_rejected=yes 4570 continue 4571 fi 4572 ac_cv_prog_CC="cc" 4573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4574 break 2 4575 fi 4576done 4577 done 4578IFS=$as_save_IFS 4579 4580if test $ac_prog_rejected = yes; then 4581 # We found a bogon in the path, so make sure we never use it. 4582 set dummy $ac_cv_prog_CC 4583 shift 4584 if test $# != 0; then 4585 # We chose a different compiler from the bogus one. 4586 # However, it has the same basename, so the bogon will be chosen 4587 # first if we set CC to just the basename; use the full file name. 4588 shift 4589 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4590 fi 4591fi 4592fi 4593fi 4594CC=$ac_cv_prog_CC 4595if test -n "$CC"; then 4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4597$as_echo "$CC" >&6; } 4598else 4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4600$as_echo "no" >&6; } 4601fi 4602 4603 4604fi 4605if test -z "$CC"; then 4606 if test -n "$ac_tool_prefix"; then 4607 for ac_prog in cl.exe 4608 do 4609 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4610set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4612$as_echo_n "checking for $ac_word... " >&6; } 4613if test "${ac_cv_prog_CC+set}" = set; then : 4614 $as_echo_n "(cached) " >&6 4615else 4616 if test -n "$CC"; then 4617 ac_cv_prog_CC="$CC" # Let the user override the test. 4618else 4619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4620for as_dir in $PATH 4621do 4622 IFS=$as_save_IFS 4623 test -z "$as_dir" && as_dir=. 4624 for ac_exec_ext in '' $ac_executable_extensions; do 4625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4626 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4628 break 2 4629 fi 4630done 4631 done 4632IFS=$as_save_IFS 4633 4634fi 4635fi 4636CC=$ac_cv_prog_CC 4637if test -n "$CC"; then 4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4639$as_echo "$CC" >&6; } 4640else 4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4642$as_echo "no" >&6; } 4643fi 4644 4645 4646 test -n "$CC" && break 4647 done 4648fi 4649if test -z "$CC"; then 4650 ac_ct_CC=$CC 4651 for ac_prog in cl.exe 4652do 4653 # Extract the first word of "$ac_prog", so it can be a program name with args. 4654set dummy $ac_prog; ac_word=$2 4655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4656$as_echo_n "checking for $ac_word... " >&6; } 4657if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 4658 $as_echo_n "(cached) " >&6 4659else 4660 if test -n "$ac_ct_CC"; then 4661 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4662else 4663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4664for as_dir in $PATH 4665do 4666 IFS=$as_save_IFS 4667 test -z "$as_dir" && as_dir=. 4668 for ac_exec_ext in '' $ac_executable_extensions; do 4669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4670 ac_cv_prog_ac_ct_CC="$ac_prog" 4671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4672 break 2 4673 fi 4674done 4675 done 4676IFS=$as_save_IFS 4677 4678fi 4679fi 4680ac_ct_CC=$ac_cv_prog_ac_ct_CC 4681if test -n "$ac_ct_CC"; then 4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4683$as_echo "$ac_ct_CC" >&6; } 4684else 4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4686$as_echo "no" >&6; } 4687fi 4688 4689 4690 test -n "$ac_ct_CC" && break 4691done 4692 4693 if test "x$ac_ct_CC" = x; then 4694 CC="" 4695 else 4696 case $cross_compiling:$ac_tool_warned in 4697yes:) 4698{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4699$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4700ac_tool_warned=yes ;; 4701esac 4702 CC=$ac_ct_CC 4703 fi 4704fi 4705 4706fi 4707 4708 4709test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4710$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4711as_fn_error "no acceptable C compiler found in \$PATH 4712See \`config.log' for more details." "$LINENO" 5; } 4713 4714# Provide some information about the compiler. 4715$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4716set X $ac_compile 4717ac_compiler=$2 4718for ac_option in --version -v -V -qversion; do 4719 { { ac_try="$ac_compiler $ac_option >&5" 4720case "(($ac_try" in 4721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4722 *) ac_try_echo=$ac_try;; 4723esac 4724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4725$as_echo "$ac_try_echo"; } >&5 4726 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4727 ac_status=$? 4728 if test -s conftest.err; then 4729 sed '10a\ 4730... rest of stderr output deleted ... 4731 10q' conftest.err >conftest.er1 4732 cat conftest.er1 >&5 4733 fi 4734 rm -f conftest.er1 conftest.err 4735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4736 test $ac_status = 0; } 4737done 4738 4739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4740$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4741if test "${ac_cv_c_compiler_gnu+set}" = set; then : 4742 $as_echo_n "(cached) " >&6 4743else 4744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4745/* end confdefs.h. */ 4746 4747int 4748main () 4749{ 4750#ifndef __GNUC__ 4751 choke me 4752#endif 4753 4754 ; 4755 return 0; 4756} 4757_ACEOF 4758if ac_fn_c_try_compile "$LINENO"; then : 4759 ac_compiler_gnu=yes 4760else 4761 ac_compiler_gnu=no 4762fi 4763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4764ac_cv_c_compiler_gnu=$ac_compiler_gnu 4765 4766fi 4767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4768$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4769if test $ac_compiler_gnu = yes; then 4770 GCC=yes 4771else 4772 GCC= 4773fi 4774ac_test_CFLAGS=${CFLAGS+set} 4775ac_save_CFLAGS=$CFLAGS 4776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4777$as_echo_n "checking whether $CC accepts -g... " >&6; } 4778if test "${ac_cv_prog_cc_g+set}" = set; then : 4779 $as_echo_n "(cached) " >&6 4780else 4781 ac_save_c_werror_flag=$ac_c_werror_flag 4782 ac_c_werror_flag=yes 4783 ac_cv_prog_cc_g=no 4784 CFLAGS="-g" 4785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4786/* end confdefs.h. */ 4787 4788int 4789main () 4790{ 4791 4792 ; 4793 return 0; 4794} 4795_ACEOF 4796if ac_fn_c_try_compile "$LINENO"; then : 4797 ac_cv_prog_cc_g=yes 4798else 4799 CFLAGS="" 4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4801/* end confdefs.h. */ 4802 4803int 4804main () 4805{ 4806 4807 ; 4808 return 0; 4809} 4810_ACEOF 4811if ac_fn_c_try_compile "$LINENO"; then : 4812 4813else 4814 ac_c_werror_flag=$ac_save_c_werror_flag 4815 CFLAGS="-g" 4816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4817/* end confdefs.h. */ 4818 4819int 4820main () 4821{ 4822 4823 ; 4824 return 0; 4825} 4826_ACEOF 4827if ac_fn_c_try_compile "$LINENO"; then : 4828 ac_cv_prog_cc_g=yes 4829fi 4830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4831fi 4832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4833fi 4834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4835 ac_c_werror_flag=$ac_save_c_werror_flag 4836fi 4837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4838$as_echo "$ac_cv_prog_cc_g" >&6; } 4839if test "$ac_test_CFLAGS" = set; then 4840 CFLAGS=$ac_save_CFLAGS 4841elif test $ac_cv_prog_cc_g = yes; then 4842 if test "$GCC" = yes; then 4843 CFLAGS="-g -O2" 4844 else 4845 CFLAGS="-g" 4846 fi 4847else 4848 if test "$GCC" = yes; then 4849 CFLAGS="-O2" 4850 else 4851 CFLAGS= 4852 fi 4853fi 4854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4855$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4856if test "${ac_cv_prog_cc_c89+set}" = set; then : 4857 $as_echo_n "(cached) " >&6 4858else 4859 ac_cv_prog_cc_c89=no 4860ac_save_CC=$CC 4861cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4862/* end confdefs.h. */ 4863#include <stdarg.h> 4864#include <stdio.h> 4865#include <sys/types.h> 4866#include <sys/stat.h> 4867/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4868struct buf { int x; }; 4869FILE * (*rcsopen) (struct buf *, struct stat *, int); 4870static char *e (p, i) 4871 char **p; 4872 int i; 4873{ 4874 return p[i]; 4875} 4876static char *f (char * (*g) (char **, int), char **p, ...) 4877{ 4878 char *s; 4879 va_list v; 4880 va_start (v,p); 4881 s = g (p, va_arg (v,int)); 4882 va_end (v); 4883 return s; 4884} 4885 4886/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4887 function prototypes and stuff, but not '\xHH' hex character constants. 4888 These don't provoke an error unfortunately, instead are silently treated 4889 as 'x'. The following induces an error, until -std is added to get 4890 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4891 array size at least. It's necessary to write '\x00'==0 to get something 4892 that's true only with -std. */ 4893int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4894 4895/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4896 inside strings and character constants. */ 4897#define FOO(x) 'x' 4898int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4899 4900int test (int i, double x); 4901struct s1 {int (*f) (int a);}; 4902struct s2 {int (*f) (double a);}; 4903int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4904int argc; 4905char **argv; 4906int 4907main () 4908{ 4909return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4910 ; 4911 return 0; 4912} 4913_ACEOF 4914for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4915 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4916do 4917 CC="$ac_save_CC $ac_arg" 4918 if ac_fn_c_try_compile "$LINENO"; then : 4919 ac_cv_prog_cc_c89=$ac_arg 4920fi 4921rm -f core conftest.err conftest.$ac_objext 4922 test "x$ac_cv_prog_cc_c89" != "xno" && break 4923done 4924rm -f conftest.$ac_ext 4925CC=$ac_save_CC 4926 4927fi 4928# AC_CACHE_VAL 4929case "x$ac_cv_prog_cc_c89" in 4930 x) 4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4932$as_echo "none needed" >&6; } ;; 4933 xno) 4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4935$as_echo "unsupported" >&6; } ;; 4936 *) 4937 CC="$CC $ac_cv_prog_cc_c89" 4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4939$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4940esac 4941if test "x$ac_cv_prog_cc_c89" != xno; then : 4942 4943fi 4944 4945ac_ext=c 4946ac_cpp='$CPP $CPPFLAGS' 4947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4949ac_compiler_gnu=$ac_cv_c_compiler_gnu 4950 4951depcc="$CC" am_compiler_list= 4952 4953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4954$as_echo_n "checking dependency style of $depcc... " >&6; } 4955if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 4956 $as_echo_n "(cached) " >&6 4957else 4958 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4959 # We make a subdir and do the tests there. Otherwise we can end up 4960 # making bogus files that we don't know about and never remove. For 4961 # instance it was reported that on HP-UX the gcc test will end up 4962 # making a dummy file named `D' -- because `-MD' means `put the output 4963 # in D'. 4964 mkdir conftest.dir 4965 # Copy depcomp to subdir because otherwise we won't find it if we're 4966 # using a relative directory. 4967 cp "$am_depcomp" conftest.dir 4968 cd conftest.dir 4969 # We will build objects and dependencies in a subdirectory because 4970 # it helps to detect inapplicable dependency modes. For instance 4971 # both Tru64's cc and ICC support -MD to output dependencies as a 4972 # side effect of compilation, but ICC will put the dependencies in 4973 # the current directory while Tru64 will put them in the object 4974 # directory. 4975 mkdir sub 4976 4977 am_cv_CC_dependencies_compiler_type=none 4978 if test "$am_compiler_list" = ""; then 4979 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4980 fi 4981 am__universal=false 4982 case " $depcc " in #( 4983 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4984 esac 4985 4986 for depmode in $am_compiler_list; do 4987 # Setup a source with many dependencies, because some compilers 4988 # like to wrap large dependency lists on column 80 (with \), and 4989 # we should not choose a depcomp mode which is confused by this. 4990 # 4991 # We need to recreate these files for each test, as the compiler may 4992 # overwrite some of them when testing with obscure command lines. 4993 # This happens at least with the AIX C compiler. 4994 : > sub/conftest.c 4995 for i in 1 2 3 4 5 6; do 4996 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4997 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4998 # Solaris 8's {/usr,}/bin/sh. 4999 touch sub/conftst$i.h 5000 done 5001 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5002 5003 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5004 # mode. It turns out that the SunPro C++ compiler does not properly 5005 # handle `-M -o', and we need to detect this. Also, some Intel 5006 # versions had trouble with output in subdirs 5007 am__obj=sub/conftest.${OBJEXT-o} 5008 am__minus_obj="-o $am__obj" 5009 case $depmode in 5010 gcc) 5011 # This depmode causes a compiler race in universal mode. 5012 test "$am__universal" = false || continue 5013 ;; 5014 nosideeffect) 5015 # after this tag, mechanisms are not by side-effect, so they'll 5016 # only be used when explicitly requested 5017 if test "x$enable_dependency_tracking" = xyes; then 5018 continue 5019 else 5020 break 5021 fi 5022 ;; 5023 msvisualcpp | msvcmsys) 5024 # This compiler won't grok `-c -o', but also, the minuso test has 5025 # not run yet. These depmodes are late enough in the game, and 5026 # so weak that their functioning should not be impacted. 5027 am__obj=conftest.${OBJEXT-o} 5028 am__minus_obj= 5029 ;; 5030 none) break ;; 5031 esac 5032 if depmode=$depmode \ 5033 source=sub/conftest.c object=$am__obj \ 5034 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5035 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5036 >/dev/null 2>conftest.err && 5037 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5038 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5039 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5040 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5041 # icc doesn't choke on unknown options, it will just issue warnings 5042 # or remarks (even with -Werror). So we grep stderr for any message 5043 # that says an option was ignored or not supported. 5044 # When given -MP, icc 7.0 and 7.1 complain thusly: 5045 # icc: Command line warning: ignoring option '-M'; no argument required 5046 # The diagnosis changed in icc 8.0: 5047 # icc: Command line remark: option '-MP' not supported 5048 if (grep 'ignoring option' conftest.err || 5049 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5050 am_cv_CC_dependencies_compiler_type=$depmode 5051 break 5052 fi 5053 fi 5054 done 5055 5056 cd .. 5057 rm -rf conftest.dir 5058else 5059 am_cv_CC_dependencies_compiler_type=none 5060fi 5061 5062fi 5063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5064$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5065CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5066 5067 if 5068 test "x$enable_dependency_tracking" != xno \ 5069 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5070 am__fastdepCC_TRUE= 5071 am__fastdepCC_FALSE='#' 5072else 5073 am__fastdepCC_TRUE='#' 5074 am__fastdepCC_FALSE= 5075fi 5076 5077 5078 case $ac_cv_prog_cc_stdc in #( 5079 no) : 5080 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( 5081 *) : 5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 5083$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 5084if test "${ac_cv_prog_cc_c99+set}" = set; then : 5085 $as_echo_n "(cached) " >&6 5086else 5087 ac_cv_prog_cc_c99=no 5088ac_save_CC=$CC 5089cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5090/* end confdefs.h. */ 5091#include <stdarg.h> 5092#include <stdbool.h> 5093#include <stdlib.h> 5094#include <wchar.h> 5095#include <stdio.h> 5096 5097// Check varargs macros. These examples are taken from C99 6.10.3.5. 5098#define debug(...) fprintf (stderr, __VA_ARGS__) 5099#define showlist(...) puts (#__VA_ARGS__) 5100#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 5101static void 5102test_varargs_macros (void) 5103{ 5104 int x = 1234; 5105 int y = 5678; 5106 debug ("Flag"); 5107 debug ("X = %d\n", x); 5108 showlist (The first, second, and third items.); 5109 report (x>y, "x is %d but y is %d", x, y); 5110} 5111 5112// Check long long types. 5113#define BIG64 18446744073709551615ull 5114#define BIG32 4294967295ul 5115#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 5116#if !BIG_OK 5117 your preprocessor is broken; 5118#endif 5119#if BIG_OK 5120#else 5121 your preprocessor is broken; 5122#endif 5123static long long int bignum = -9223372036854775807LL; 5124static unsigned long long int ubignum = BIG64; 5125 5126struct incomplete_array 5127{ 5128 int datasize; 5129 double data[]; 5130}; 5131 5132struct named_init { 5133 int number; 5134 const wchar_t *name; 5135 double average; 5136}; 5137 5138typedef const char *ccp; 5139 5140static inline int 5141test_restrict (ccp restrict text) 5142{ 5143 // See if C++-style comments work. 5144 // Iterate through items via the restricted pointer. 5145 // Also check for declarations in for loops. 5146 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 5147 continue; 5148 return 0; 5149} 5150 5151// Check varargs and va_copy. 5152static void 5153test_varargs (const char *format, ...) 5154{ 5155 va_list args; 5156 va_start (args, format); 5157 va_list args_copy; 5158 va_copy (args_copy, args); 5159 5160 const char *str; 5161 int number; 5162 float fnumber; 5163 5164 while (*format) 5165 { 5166 switch (*format++) 5167 { 5168 case 's': // string 5169 str = va_arg (args_copy, const char *); 5170 break; 5171 case 'd': // int 5172 number = va_arg (args_copy, int); 5173 break; 5174 case 'f': // float 5175 fnumber = va_arg (args_copy, double); 5176 break; 5177 default: 5178 break; 5179 } 5180 } 5181 va_end (args_copy); 5182 va_end (args); 5183} 5184 5185int 5186main () 5187{ 5188 5189 // Check bool. 5190 _Bool success = false; 5191 5192 // Check restrict. 5193 if (test_restrict ("String literal") == 0) 5194 success = true; 5195 char *restrict newvar = "Another string"; 5196 5197 // Check varargs. 5198 test_varargs ("s, d' f .", "string", 65, 34.234); 5199 test_varargs_macros (); 5200 5201 // Check flexible array members. 5202 struct incomplete_array *ia = 5203 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 5204 ia->datasize = 10; 5205 for (int i = 0; i < ia->datasize; ++i) 5206 ia->data[i] = i * 1.234; 5207 5208 // Check named initializers. 5209 struct named_init ni = { 5210 .number = 34, 5211 .name = L"Test wide string", 5212 .average = 543.34343, 5213 }; 5214 5215 ni.number = 58; 5216 5217 int dynamic_array[ni.number]; 5218 dynamic_array[ni.number - 1] = 543; 5219 5220 // work around unused variable warnings 5221 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 5222 || dynamic_array[ni.number - 1] != 543); 5223 5224 ; 5225 return 0; 5226} 5227_ACEOF 5228for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 5229do 5230 CC="$ac_save_CC $ac_arg" 5231 if ac_fn_c_try_compile "$LINENO"; then : 5232 ac_cv_prog_cc_c99=$ac_arg 5233fi 5234rm -f core conftest.err conftest.$ac_objext 5235 test "x$ac_cv_prog_cc_c99" != "xno" && break 5236done 5237rm -f conftest.$ac_ext 5238CC=$ac_save_CC 5239 5240fi 5241# AC_CACHE_VAL 5242case "x$ac_cv_prog_cc_c99" in 5243 x) 5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5245$as_echo "none needed" >&6; } ;; 5246 xno) 5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5248$as_echo "unsupported" >&6; } ;; 5249 *) 5250 CC="$CC $ac_cv_prog_cc_c99" 5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5252$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 5253esac 5254if test "x$ac_cv_prog_cc_c99" != xno; then : 5255 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 5256else 5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5258$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5259if test "${ac_cv_prog_cc_c89+set}" = set; then : 5260 $as_echo_n "(cached) " >&6 5261else 5262 ac_cv_prog_cc_c89=no 5263ac_save_CC=$CC 5264cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5265/* end confdefs.h. */ 5266#include <stdarg.h> 5267#include <stdio.h> 5268#include <sys/types.h> 5269#include <sys/stat.h> 5270/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5271struct buf { int x; }; 5272FILE * (*rcsopen) (struct buf *, struct stat *, int); 5273static char *e (p, i) 5274 char **p; 5275 int i; 5276{ 5277 return p[i]; 5278} 5279static char *f (char * (*g) (char **, int), char **p, ...) 5280{ 5281 char *s; 5282 va_list v; 5283 va_start (v,p); 5284 s = g (p, va_arg (v,int)); 5285 va_end (v); 5286 return s; 5287} 5288 5289/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5290 function prototypes and stuff, but not '\xHH' hex character constants. 5291 These don't provoke an error unfortunately, instead are silently treated 5292 as 'x'. The following induces an error, until -std is added to get 5293 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5294 array size at least. It's necessary to write '\x00'==0 to get something 5295 that's true only with -std. */ 5296int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5297 5298/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5299 inside strings and character constants. */ 5300#define FOO(x) 'x' 5301int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5302 5303int test (int i, double x); 5304struct s1 {int (*f) (int a);}; 5305struct s2 {int (*f) (double a);}; 5306int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5307int argc; 5308char **argv; 5309int 5310main () 5311{ 5312return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5313 ; 5314 return 0; 5315} 5316_ACEOF 5317for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5318 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5319do 5320 CC="$ac_save_CC $ac_arg" 5321 if ac_fn_c_try_compile "$LINENO"; then : 5322 ac_cv_prog_cc_c89=$ac_arg 5323fi 5324rm -f core conftest.err conftest.$ac_objext 5325 test "x$ac_cv_prog_cc_c89" != "xno" && break 5326done 5327rm -f conftest.$ac_ext 5328CC=$ac_save_CC 5329 5330fi 5331# AC_CACHE_VAL 5332case "x$ac_cv_prog_cc_c89" in 5333 x) 5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5335$as_echo "none needed" >&6; } ;; 5336 xno) 5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5338$as_echo "unsupported" >&6; } ;; 5339 *) 5340 CC="$CC $ac_cv_prog_cc_c89" 5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5342$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5343esac 5344if test "x$ac_cv_prog_cc_c89" != xno; then : 5345 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 5346else 5347 ac_cv_prog_cc_stdc=no 5348fi 5349 5350fi 5351 ;; 5352esac 5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 5354$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } 5355 if test "${ac_cv_prog_cc_stdc+set}" = set; then : 5356 $as_echo_n "(cached) " >&6 5357fi 5358 5359 case $ac_cv_prog_cc_stdc in #( 5360 no) : 5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5362$as_echo "unsupported" >&6; } ;; #( 5363 '') : 5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5365$as_echo "none needed" >&6; } ;; #( 5366 *) : 5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 5368$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; 5369esac 5370 5371ac_ext=c 5372ac_cpp='$CPP $CPPFLAGS' 5373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5375ac_compiler_gnu=$ac_cv_c_compiler_gnu 5376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5377$as_echo_n "checking how to run the C preprocessor... " >&6; } 5378# On Suns, sometimes $CPP names a directory. 5379if test -n "$CPP" && test -d "$CPP"; then 5380 CPP= 5381fi 5382if test -z "$CPP"; then 5383 if test "${ac_cv_prog_CPP+set}" = set; then : 5384 $as_echo_n "(cached) " >&6 5385else 5386 # Double quotes because CPP needs to be expanded 5387 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5388 do 5389 ac_preproc_ok=false 5390for ac_c_preproc_warn_flag in '' yes 5391do 5392 # Use a header file that comes with gcc, so configuring glibc 5393 # with a fresh cross-compiler works. 5394 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5395 # <limits.h> exists even on freestanding compilers. 5396 # On the NeXT, cc -E runs the code through the compiler's parser, 5397 # not just through cpp. "Syntax error" is here to catch this case. 5398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5399/* end confdefs.h. */ 5400#ifdef __STDC__ 5401# include <limits.h> 5402#else 5403# include <assert.h> 5404#endif 5405 Syntax error 5406_ACEOF 5407if ac_fn_c_try_cpp "$LINENO"; then : 5408 5409else 5410 # Broken: fails on valid input. 5411continue 5412fi 5413rm -f conftest.err conftest.$ac_ext 5414 5415 # OK, works on sane cases. Now check whether nonexistent headers 5416 # can be detected and how. 5417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5418/* end confdefs.h. */ 5419#include <ac_nonexistent.h> 5420_ACEOF 5421if ac_fn_c_try_cpp "$LINENO"; then : 5422 # Broken: success on invalid input. 5423continue 5424else 5425 # Passes both tests. 5426ac_preproc_ok=: 5427break 5428fi 5429rm -f conftest.err conftest.$ac_ext 5430 5431done 5432# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5433rm -f conftest.err conftest.$ac_ext 5434if $ac_preproc_ok; then : 5435 break 5436fi 5437 5438 done 5439 ac_cv_prog_CPP=$CPP 5440 5441fi 5442 CPP=$ac_cv_prog_CPP 5443else 5444 ac_cv_prog_CPP=$CPP 5445fi 5446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5447$as_echo "$CPP" >&6; } 5448ac_preproc_ok=false 5449for ac_c_preproc_warn_flag in '' yes 5450do 5451 # Use a header file that comes with gcc, so configuring glibc 5452 # with a fresh cross-compiler works. 5453 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5454 # <limits.h> exists even on freestanding compilers. 5455 # On the NeXT, cc -E runs the code through the compiler's parser, 5456 # not just through cpp. "Syntax error" is here to catch this case. 5457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5458/* end confdefs.h. */ 5459#ifdef __STDC__ 5460# include <limits.h> 5461#else 5462# include <assert.h> 5463#endif 5464 Syntax error 5465_ACEOF 5466if ac_fn_c_try_cpp "$LINENO"; then : 5467 5468else 5469 # Broken: fails on valid input. 5470continue 5471fi 5472rm -f conftest.err conftest.$ac_ext 5473 5474 # OK, works on sane cases. Now check whether nonexistent headers 5475 # can be detected and how. 5476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5477/* end confdefs.h. */ 5478#include <ac_nonexistent.h> 5479_ACEOF 5480if ac_fn_c_try_cpp "$LINENO"; then : 5481 # Broken: success on invalid input. 5482continue 5483else 5484 # Passes both tests. 5485ac_preproc_ok=: 5486break 5487fi 5488rm -f conftest.err conftest.$ac_ext 5489 5490done 5491# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5492rm -f conftest.err conftest.$ac_ext 5493if $ac_preproc_ok; then : 5494 5495else 5496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5497$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5498as_fn_error "C preprocessor \"$CPP\" fails sanity check 5499See \`config.log' for more details." "$LINENO" 5; } 5500fi 5501 5502ac_ext=c 5503ac_cpp='$CPP $CPPFLAGS' 5504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5506ac_compiler_gnu=$ac_cv_c_compiler_gnu 5507 5508 5509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 5510$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 5511set x ${MAKE-make} 5512ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 5513if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 5514 $as_echo_n "(cached) " >&6 5515else 5516 cat >conftest.make <<\_ACEOF 5517SHELL = /bin/sh 5518all: 5519 @echo '@@@%%%=$(MAKE)=@@@%%%' 5520_ACEOF 5521# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 5522case `${MAKE-make} -f conftest.make 2>/dev/null` in 5523 *@@@%%%=?*=@@@%%%*) 5524 eval ac_cv_prog_make_${ac_make}_set=yes;; 5525 *) 5526 eval ac_cv_prog_make_${ac_make}_set=no;; 5527esac 5528rm -f conftest.make 5529fi 5530if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5532$as_echo "yes" >&6; } 5533 SET_MAKE= 5534else 5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5536$as_echo "no" >&6; } 5537 SET_MAKE="MAKE=${MAKE-make}" 5538fi 5539 5540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5541$as_echo_n "checking whether ln -s works... " >&6; } 5542LN_S=$as_ln_s 5543if test "$LN_S" = "ln -s"; then 5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5545$as_echo "yes" >&6; } 5546else 5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5548$as_echo "no, using $LN_S" >&6; } 5549fi 5550 5551 5552# Check if LD supports linker scripts, 5553# and define automake conditional HAVE_LD_VERSION_SCRIPT if so. 5554# Check whether --enable-ld-version-script was given. 5555if test "${enable_ld_version_script+set}" = set; then : 5556 enableval=$enable_ld_version_script; have_ld_version_script=$enableval 5557fi 5558 5559if test -z "$have_ld_version_script"; then 5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5 5561$as_echo_n "checking if LD -Wl,--version-script works... " >&6; } 5562 save_LDFLAGS="$LDFLAGS" 5563 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map" 5564 cat > conftest.map <<EOF 5565VERS_1 { 5566 global: sym; 5567}; 5568 5569VERS_2 { 5570 global: sym; 5571} VERS_1; 5572EOF 5573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5574/* end confdefs.h. */ 5575 5576int 5577main () 5578{ 5579 5580 ; 5581 return 0; 5582} 5583_ACEOF 5584if ac_fn_c_try_link "$LINENO"; then : 5585 have_ld_version_script=yes 5586else 5587 have_ld_version_script=no 5588fi 5589rm -f core conftest.err conftest.$ac_objext \ 5590 conftest$ac_exeext conftest.$ac_ext 5591 rm -f conftest.map 5592 LDFLAGS="$save_LDFLAGS" 5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5 5594$as_echo "$have_ld_version_script" >&6; } 5595fi 5596 if test "$have_ld_version_script" = "yes"; then 5597 HAVE_LD_VERSION_SCRIPT_TRUE= 5598 HAVE_LD_VERSION_SCRIPT_FALSE='#' 5599else 5600 HAVE_LD_VERSION_SCRIPT_TRUE='#' 5601 HAVE_LD_VERSION_SCRIPT_FALSE= 5602fi 5603 5604 5605# See if compiler supports prototypes. 5606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5 5607$as_echo_n "checking for function prototypes... " >&6; } 5608if test "${ijg_cv_have_prototypes+set}" = set; then : 5609 $as_echo_n "(cached) " >&6 5610else 5611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5612/* end confdefs.h. */ 5613 5614int testfunction (int arg1, int * arg2); /* check prototypes */ 5615struct methods_struct { /* check method-pointer declarations */ 5616 int (*error_exit) (char *msgtext); 5617 int (*trace_message) (char *msgtext); 5618 int (*another_method) (void); 5619}; 5620int testfunction (int arg1, int * arg2) /* check definitions */ 5621{ return arg2[arg1]; } 5622int test2function (void) /* check void arg list */ 5623{ return 0; } 5624 5625int 5626main () 5627{ 5628 5629 ; 5630 return 0; 5631} 5632_ACEOF 5633if ac_fn_c_try_compile "$LINENO"; then : 5634 ijg_cv_have_prototypes=yes 5635else 5636 ijg_cv_have_prototypes=no 5637fi 5638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5639fi 5640 5641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ijg_cv_have_prototypes" >&5 5642$as_echo "$ijg_cv_have_prototypes" >&6; } 5643if test $ijg_cv_have_prototypes = yes; then 5644 5645$as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h 5646 5647else 5648 echo Your compiler does not seem to know about function prototypes. 5649 echo Perhaps it needs a special switch to enable ANSI C mode. 5650 echo If so, we recommend running configure like this: 5651 echo " ./configure CC='cc -switch'" 5652 echo where -switch is the proper switch. 5653fi 5654 5655# Check header files 5656for ac_header in stddef.h stdlib.h locale.h 5657do : 5658 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5659ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 5660eval as_val=\$$as_ac_Header 5661 if test "x$as_val" = x""yes; then : 5662 cat >>confdefs.h <<_ACEOF 5663#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5664_ACEOF 5665 5666fi 5667 5668done 5669 5670ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" 5671if test "x$ac_cv_header_string_h" = x""yes; then : 5672 5673else 5674 5675$as_echo "#define NEED_BSD_STRINGS 1" >>confdefs.h 5676 5677fi 5678 5679 5680 5681# See whether type size_t is defined in any ANSI-standard places; 5682# if not, perhaps it is defined in <sys/types.h>. 5683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t" >&5 5684$as_echo_n "checking for size_t... " >&6; } 5685cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5686/* end confdefs.h. */ 5687 5688#ifdef HAVE_STDDEF_H 5689#include <stddef.h> 5690#endif 5691#ifdef HAVE_STDLIB_H 5692#include <stdlib.h> 5693#endif 5694#include <stdio.h> 5695#ifdef NEED_BSD_STRINGS 5696#include <strings.h> 5697#else 5698#include <string.h> 5699#endif 5700typedef size_t my_size_t; 5701 5702int 5703main () 5704{ 5705 my_size_t foovar; 5706 ; 5707 return 0; 5708} 5709_ACEOF 5710if ac_fn_c_try_compile "$LINENO"; then : 5711 ijg_size_t_ok=yes 5712else 5713 ijg_size_t_ok="not ANSI, perhaps it is in sys/types.h" 5714fi 5715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ijg_size_t_ok" >&5 5717$as_echo "$ijg_size_t_ok" >&6; } 5718if test "$ijg_size_t_ok" != yes; then 5719ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 5720if test "x$ac_cv_header_sys_types_h" = x""yes; then : 5721 5722$as_echo "#define NEED_SYS_TYPES_H 1" >>confdefs.h 5723 5724cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5725/* end confdefs.h. */ 5726#include <sys/types.h> 5727_ACEOF 5728if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5729 $EGREP "size_t" >/dev/null 2>&1; then : 5730 ijg_size_t_ok="size_t is in sys/types.h" 5731else 5732 ijg_size_t_ok=no 5733fi 5734rm -f conftest* 5735 5736else 5737 ijg_size_t_ok=no 5738fi 5739 5740 5741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ijg_size_t_ok" >&5 5742$as_echo "$ijg_size_t_ok" >&6; } 5743if test "$ijg_size_t_ok" = no; then 5744 echo Type size_t is not defined in any of the usual places. 5745 echo Try putting '"typedef unsigned int size_t;"' in jconfig.h. 5746fi 5747fi 5748 5749# Check compiler characteristics 5750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type unsigned char" >&5 5751$as_echo_n "checking for type unsigned char... " >&6; } 5752cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5753/* end confdefs.h. */ 5754 5755int 5756main () 5757{ 5758 unsigned char un_char; 5759 ; 5760 return 0; 5761} 5762_ACEOF 5763if ac_fn_c_try_compile "$LINENO"; then : 5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5765$as_echo "yes" >&6; } 5766 5767$as_echo "#define HAVE_UNSIGNED_CHAR 1" >>confdefs.h 5768 5769else 5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5771$as_echo "no" >&6; } 5772fi 5773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type unsigned short" >&5 5775$as_echo_n "checking for type unsigned short... " >&6; } 5776cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5777/* end confdefs.h. */ 5778 5779int 5780main () 5781{ 5782 unsigned short un_short; 5783 ; 5784 return 0; 5785} 5786_ACEOF 5787if ac_fn_c_try_compile "$LINENO"; then : 5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5789$as_echo "yes" >&6; } 5790 5791$as_echo "#define HAVE_UNSIGNED_SHORT 1" >>confdefs.h 5792 5793else 5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5795$as_echo "no" >&6; } 5796fi 5797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type void" >&5 5799$as_echo_n "checking for type void... " >&6; } 5800cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5801/* end confdefs.h. */ 5802 5803/* Caution: a C++ compiler will insist on valid prototypes */ 5804typedef void * void_ptr; /* check void * */ 5805#ifdef HAVE_PROTOTYPES /* check ptr to function returning void */ 5806typedef void (*void_func) (int a, int b); 5807#else 5808typedef void (*void_func) (); 5809#endif 5810 5811#ifdef HAVE_PROTOTYPES /* check void function result */ 5812void test3function (void_ptr arg1, void_func arg2) 5813#else 5814void test3function (arg1, arg2) 5815 void_ptr arg1; 5816 void_func arg2; 5817#endif 5818{ 5819 char * locptr = (char *) arg1; /* check casting to and from void * */ 5820 arg1 = (void *) locptr; 5821 (*arg2) (1, 2); /* check call of fcn returning void */ 5822} 5823 5824int 5825main () 5826{ 5827 5828 ; 5829 return 0; 5830} 5831_ACEOF 5832if ac_fn_c_try_compile "$LINENO"; then : 5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5834$as_echo "yes" >&6; } 5835else 5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5837$as_echo "no" >&6; } 5838 5839$as_echo "#define void char" >>confdefs.h 5840 5841fi 5842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 5844$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 5845if test "${ac_cv_c_const+set}" = set; then : 5846 $as_echo_n "(cached) " >&6 5847else 5848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5849/* end confdefs.h. */ 5850 5851int 5852main () 5853{ 5854/* FIXME: Include the comments suggested by Paul. */ 5855#ifndef __cplusplus 5856 /* Ultrix mips cc rejects this. */ 5857 typedef int charset[2]; 5858 const charset cs; 5859 /* SunOS 4.1.1 cc rejects this. */ 5860 char const *const *pcpcc; 5861 char **ppc; 5862 /* NEC SVR4.0.2 mips cc rejects this. */ 5863 struct point {int x, y;}; 5864 static struct point const zero = {0,0}; 5865 /* AIX XL C 1.02.0.0 rejects this. 5866 It does not let you subtract one const X* pointer from another in 5867 an arm of an if-expression whose if-part is not a constant 5868 expression */ 5869 const char *g = "string"; 5870 pcpcc = &g + (g ? g-g : 0); 5871 /* HPUX 7.0 cc rejects these. */ 5872 ++pcpcc; 5873 ppc = (char**) pcpcc; 5874 pcpcc = (char const *const *) ppc; 5875 { /* SCO 3.2v4 cc rejects this. */ 5876 char *t; 5877 char const *s = 0 ? (char *) 0 : (char const *) 0; 5878 5879 *t++ = 0; 5880 if (s) return 0; 5881 } 5882 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 5883 int x[] = {25, 17}; 5884 const int *foo = &x[0]; 5885 ++foo; 5886 } 5887 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 5888 typedef const int *iptr; 5889 iptr p = 0; 5890 ++p; 5891 } 5892 { /* AIX XL C 1.02.0.0 rejects this saying 5893 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 5894 struct s { int j; const int *ap[3]; }; 5895 struct s *b; b->j = 5; 5896 } 5897 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 5898 const int foo = 10; 5899 if (!foo) return 0; 5900 } 5901 return !cs[0] && !zero.x; 5902#endif 5903 5904 ; 5905 return 0; 5906} 5907_ACEOF 5908if ac_fn_c_try_compile "$LINENO"; then : 5909 ac_cv_c_const=yes 5910else 5911 ac_cv_c_const=no 5912fi 5913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5914fi 5915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 5916$as_echo "$ac_cv_c_const" >&6; } 5917if test $ac_cv_c_const = no; then 5918 5919$as_echo "#define const /**/" >>confdefs.h 5920 5921fi 5922 5923 5924# Check for non-broken inline under various spellings 5925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 5926$as_echo_n "checking for inline... " >&6; } 5927ijg_cv_inline="" 5928cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5929/* end confdefs.h. */ 5930 5931int 5932main () 5933{ 5934} __inline__ int foo() { return 0; } 5935int bar() { return foo(); 5936 ; 5937 return 0; 5938} 5939_ACEOF 5940if ac_fn_c_try_compile "$LINENO"; then : 5941 ijg_cv_inline="__inline__" 5942else 5943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5944/* end confdefs.h. */ 5945 5946int 5947main () 5948{ 5949} __inline int foo() { return 0; } 5950int bar() { return foo(); 5951 ; 5952 return 0; 5953} 5954_ACEOF 5955if ac_fn_c_try_compile "$LINENO"; then : 5956 ijg_cv_inline="__inline" 5957else 5958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5959/* end confdefs.h. */ 5960 5961int 5962main () 5963{ 5964} inline int foo() { return 0; } 5965int bar() { return foo(); 5966 ; 5967 return 0; 5968} 5969_ACEOF 5970if ac_fn_c_try_compile "$LINENO"; then : 5971 ijg_cv_inline="inline" 5972fi 5973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5974fi 5975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5976fi 5977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ijg_cv_inline" >&5 5979$as_echo "$ijg_cv_inline" >&6; } 5980 5981cat >>confdefs.h <<_ACEOF 5982#define INLINE $ijg_cv_inline 5983_ACEOF 5984 5985 5986# We cannot check for bogus warnings, but at least we can check for errors 5987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken incomplete types" >&5 5988$as_echo_n "checking for broken incomplete types... " >&6; } 5989cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5990/* end confdefs.h. */ 5991 typedef struct undefined_structure * undef_struct_ptr; 5992int 5993main () 5994{ 5995 5996 ; 5997 return 0; 5998} 5999_ACEOF 6000if ac_fn_c_try_compile "$LINENO"; then : 6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6002$as_echo "ok" >&6; } 6003else 6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: broken" >&5 6005$as_echo "broken" >&6; } 6006 6007$as_echo "#define INCOMPLETE_TYPES_BROKEN 1" >>confdefs.h 6008 6009fi 6010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6011 6012# Test whether global names are unique to at least 15 chars 6013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for short external names" >&5 6014$as_echo_n "checking for short external names... " >&6; } 6015cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6016/* end confdefs.h. */ 6017 6018int possibly_duplicate_function () { return 0; } 6019int possibly_dupli_function () { return 1; } 6020 6021int 6022main () 6023{ 6024 6025 ; 6026 return 0; 6027} 6028_ACEOF 6029if ac_fn_c_try_link "$LINENO"; then : 6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6031$as_echo "ok" >&6; } 6032else 6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: short" >&5 6034$as_echo "short" >&6; } 6035 6036$as_echo "#define NEED_SHORT_EXTERNAL_NAMES 1" >>confdefs.h 6037 6038fi 6039rm -f core conftest.err conftest.$ac_objext \ 6040 conftest$ac_exeext conftest.$ac_ext 6041 6042# Run-time checks 6043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if char is signed" >&5 6044$as_echo_n "checking to see if char is signed... " >&6; } 6045if test "$cross_compiling" = yes; then : 6046 echo Assuming that char is signed on target machine. 6047echo If it is unsigned, this will be a little bit inefficient. 6048 6049else 6050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6051/* end confdefs.h. */ 6052 6053#ifdef HAVE_PROTOTYPES 6054int is_char_signed (int arg) 6055#else 6056int is_char_signed (arg) 6057 int arg; 6058#endif 6059{ 6060 if (arg == 189) { /* expected result for unsigned char */ 6061 return 0; /* type char is unsigned */ 6062 } 6063 else if (arg != -67) { /* expected result for signed char */ 6064 printf("Hmm, it seems 'char' is not eight bits wide on your machine.\n"); 6065 printf("I fear the JPEG software will not work at all.\n\n"); 6066 } 6067 return 1; /* assume char is signed otherwise */ 6068} 6069char signed_char_check = (char) (-67); 6070int main() { 6071 exit(is_char_signed((int) signed_char_check)); 6072} 6073_ACEOF 6074if ac_fn_c_try_run "$LINENO"; then : 6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6076$as_echo "no" >&6; } 6077 6078$as_echo "#define CHAR_IS_UNSIGNED 1" >>confdefs.h 6079 6080else 6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6082$as_echo "yes" >&6; } 6083fi 6084rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6085 conftest.$ac_objext conftest.beam conftest.$ac_ext 6086fi 6087 6088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if right shift is signed" >&5 6089$as_echo_n "checking to see if right shift is signed... " >&6; } 6090if test "$cross_compiling" = yes; then : 6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Assuming that right shift is signed on target machine." >&5 6092$as_echo "Assuming that right shift is signed on target machine." >&6; } 6093else 6094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6095/* end confdefs.h. */ 6096 6097#ifdef HAVE_PROTOTYPES 6098int is_shifting_signed (long arg) 6099#else 6100int is_shifting_signed (arg) 6101 long arg; 6102#endif 6103/* See whether right-shift on a long is signed or not. */ 6104{ 6105 long res = arg >> 4; 6106 6107 if (res == -0x7F7E80CL) { /* expected result for signed shift */ 6108 return 1; /* right shift is signed */ 6109 } 6110 /* see if unsigned-shift hack will fix it. */ 6111 /* we can't just test exact value since it depends on width of long... */ 6112 res |= (~0L) << (32-4); 6113 if (res == -0x7F7E80CL) { /* expected result now? */ 6114 return 0; /* right shift is unsigned */ 6115 } 6116 printf("Right shift isn't acting as I expect it to.\n"); 6117 printf("I fear the JPEG software will not work at all.\n\n"); 6118 return 0; /* try it with unsigned anyway */ 6119} 6120int main() { 6121 exit(is_shifting_signed(-0x7F7E80B1L)); 6122} 6123_ACEOF 6124if ac_fn_c_try_run "$LINENO"; then : 6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6126$as_echo "no" >&6; } 6127 6128$as_echo "#define RIGHT_SHIFT_IS_UNSIGNED 1" >>confdefs.h 6129 6130else 6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6132$as_echo "yes" >&6; } 6133fi 6134rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6135 conftest.$ac_objext conftest.beam conftest.$ac_ext 6136fi 6137 6138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if fopen accepts b spec" >&5 6139$as_echo_n "checking to see if fopen accepts b spec... " >&6; } 6140if test "$cross_compiling" = yes; then : 6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Assuming that it does." >&5 6142$as_echo "Assuming that it does." >&6; } 6143else 6144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6145/* end confdefs.h. */ 6146 6147#include <stdio.h> 6148int main() { 6149 if (fopen("conftestdata", "wb") != NULL) 6150 exit(0); 6151 exit(1); 6152} 6153_ACEOF 6154if ac_fn_c_try_run "$LINENO"; then : 6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6156$as_echo "yes" >&6; } 6157else 6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6159$as_echo "no" >&6; } 6160 6161$as_echo "#define DONT_USE_B_MODE 1" >>confdefs.h 6162 6163fi 6164rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6165 conftest.$ac_objext conftest.beam conftest.$ac_ext 6166fi 6167 6168 6169# Configure libtool 6170enable_win32_dll=yes 6171 6172case $host in 6173*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) 6174 if test -n "$ac_tool_prefix"; then 6175 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 6176set dummy ${ac_tool_prefix}as; ac_word=$2 6177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6178$as_echo_n "checking for $ac_word... " >&6; } 6179if test "${ac_cv_prog_AS+set}" = set; then : 6180 $as_echo_n "(cached) " >&6 6181else 6182 if test -n "$AS"; then 6183 ac_cv_prog_AS="$AS" # Let the user override the test. 6184else 6185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6186for as_dir in $PATH 6187do 6188 IFS=$as_save_IFS 6189 test -z "$as_dir" && as_dir=. 6190 for ac_exec_ext in '' $ac_executable_extensions; do 6191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6192 ac_cv_prog_AS="${ac_tool_prefix}as" 6193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6194 break 2 6195 fi 6196done 6197 done 6198IFS=$as_save_IFS 6199 6200fi 6201fi 6202AS=$ac_cv_prog_AS 6203if test -n "$AS"; then 6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 6205$as_echo "$AS" >&6; } 6206else 6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6208$as_echo "no" >&6; } 6209fi 6210 6211 6212fi 6213if test -z "$ac_cv_prog_AS"; then 6214 ac_ct_AS=$AS 6215 # Extract the first word of "as", so it can be a program name with args. 6216set dummy as; ac_word=$2 6217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6218$as_echo_n "checking for $ac_word... " >&6; } 6219if test "${ac_cv_prog_ac_ct_AS+set}" = set; then : 6220 $as_echo_n "(cached) " >&6 6221else 6222 if test -n "$ac_ct_AS"; then 6223 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 6224else 6225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6226for as_dir in $PATH 6227do 6228 IFS=$as_save_IFS 6229 test -z "$as_dir" && as_dir=. 6230 for ac_exec_ext in '' $ac_executable_extensions; do 6231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6232 ac_cv_prog_ac_ct_AS="as" 6233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6234 break 2 6235 fi 6236done 6237 done 6238IFS=$as_save_IFS 6239 6240fi 6241fi 6242ac_ct_AS=$ac_cv_prog_ac_ct_AS 6243if test -n "$ac_ct_AS"; then 6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 6245$as_echo "$ac_ct_AS" >&6; } 6246else 6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6248$as_echo "no" >&6; } 6249fi 6250 6251 if test "x$ac_ct_AS" = x; then 6252 AS="false" 6253 else 6254 case $cross_compiling:$ac_tool_warned in 6255yes:) 6256{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6257$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6258ac_tool_warned=yes ;; 6259esac 6260 AS=$ac_ct_AS 6261 fi 6262else 6263 AS="$ac_cv_prog_AS" 6264fi 6265 6266 if test -n "$ac_tool_prefix"; then 6267 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6268set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6270$as_echo_n "checking for $ac_word... " >&6; } 6271if test "${ac_cv_prog_DLLTOOL+set}" = set; then : 6272 $as_echo_n "(cached) " >&6 6273else 6274 if test -n "$DLLTOOL"; then 6275 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6276else 6277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6278for as_dir in $PATH 6279do 6280 IFS=$as_save_IFS 6281 test -z "$as_dir" && as_dir=. 6282 for ac_exec_ext in '' $ac_executable_extensions; do 6283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6284 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6286 break 2 6287 fi 6288done 6289 done 6290IFS=$as_save_IFS 6291 6292fi 6293fi 6294DLLTOOL=$ac_cv_prog_DLLTOOL 6295if test -n "$DLLTOOL"; then 6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6297$as_echo "$DLLTOOL" >&6; } 6298else 6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6300$as_echo "no" >&6; } 6301fi 6302 6303 6304fi 6305if test -z "$ac_cv_prog_DLLTOOL"; then 6306 ac_ct_DLLTOOL=$DLLTOOL 6307 # Extract the first word of "dlltool", so it can be a program name with args. 6308set dummy dlltool; ac_word=$2 6309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6310$as_echo_n "checking for $ac_word... " >&6; } 6311if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then : 6312 $as_echo_n "(cached) " >&6 6313else 6314 if test -n "$ac_ct_DLLTOOL"; then 6315 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6316else 6317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6318for as_dir in $PATH 6319do 6320 IFS=$as_save_IFS 6321 test -z "$as_dir" && as_dir=. 6322 for ac_exec_ext in '' $ac_executable_extensions; do 6323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6324 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6326 break 2 6327 fi 6328done 6329 done 6330IFS=$as_save_IFS 6331 6332fi 6333fi 6334ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6335if test -n "$ac_ct_DLLTOOL"; then 6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6337$as_echo "$ac_ct_DLLTOOL" >&6; } 6338else 6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6340$as_echo "no" >&6; } 6341fi 6342 6343 if test "x$ac_ct_DLLTOOL" = x; then 6344 DLLTOOL="false" 6345 else 6346 case $cross_compiling:$ac_tool_warned in 6347yes:) 6348{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6349$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6350ac_tool_warned=yes ;; 6351esac 6352 DLLTOOL=$ac_ct_DLLTOOL 6353 fi 6354else 6355 DLLTOOL="$ac_cv_prog_DLLTOOL" 6356fi 6357 6358 if test -n "$ac_tool_prefix"; then 6359 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6360set dummy ${ac_tool_prefix}objdump; ac_word=$2 6361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6362$as_echo_n "checking for $ac_word... " >&6; } 6363if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 6364 $as_echo_n "(cached) " >&6 6365else 6366 if test -n "$OBJDUMP"; then 6367 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6368else 6369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6370for as_dir in $PATH 6371do 6372 IFS=$as_save_IFS 6373 test -z "$as_dir" && as_dir=. 6374 for ac_exec_ext in '' $ac_executable_extensions; do 6375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6376 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6378 break 2 6379 fi 6380done 6381 done 6382IFS=$as_save_IFS 6383 6384fi 6385fi 6386OBJDUMP=$ac_cv_prog_OBJDUMP 6387if test -n "$OBJDUMP"; then 6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6389$as_echo "$OBJDUMP" >&6; } 6390else 6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6392$as_echo "no" >&6; } 6393fi 6394 6395 6396fi 6397if test -z "$ac_cv_prog_OBJDUMP"; then 6398 ac_ct_OBJDUMP=$OBJDUMP 6399 # Extract the first word of "objdump", so it can be a program name with args. 6400set dummy objdump; ac_word=$2 6401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6402$as_echo_n "checking for $ac_word... " >&6; } 6403if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 6404 $as_echo_n "(cached) " >&6 6405else 6406 if test -n "$ac_ct_OBJDUMP"; then 6407 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6408else 6409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6410for as_dir in $PATH 6411do 6412 IFS=$as_save_IFS 6413 test -z "$as_dir" && as_dir=. 6414 for ac_exec_ext in '' $ac_executable_extensions; do 6415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6416 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6418 break 2 6419 fi 6420done 6421 done 6422IFS=$as_save_IFS 6423 6424fi 6425fi 6426ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6427if test -n "$ac_ct_OBJDUMP"; then 6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6429$as_echo "$ac_ct_OBJDUMP" >&6; } 6430else 6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6432$as_echo "no" >&6; } 6433fi 6434 6435 if test "x$ac_ct_OBJDUMP" = x; then 6436 OBJDUMP="false" 6437 else 6438 case $cross_compiling:$ac_tool_warned in 6439yes:) 6440{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6441$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6442ac_tool_warned=yes ;; 6443esac 6444 OBJDUMP=$ac_ct_OBJDUMP 6445 fi 6446else 6447 OBJDUMP="$ac_cv_prog_OBJDUMP" 6448fi 6449 6450 ;; 6451esac 6452 6453test -z "$AS" && AS=as 6454 6455 6456 6457 6458 6459test -z "$DLLTOOL" && DLLTOOL=dlltool 6460 6461 6462 6463 6464 6465test -z "$OBJDUMP" && OBJDUMP=objdump 6466 6467 6468 6469 6470 6471 6472 6473case `pwd` in 6474 *\ * | *\ *) 6475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 6476$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 6477esac 6478 6479 6480 6481macro_version='2.2.6b' 6482macro_revision='1.3017' 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496ltmain="$ac_aux_dir/ltmain.sh" 6497 6498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6499$as_echo_n "checking for a sed that does not truncate output... " >&6; } 6500if test "${ac_cv_path_SED+set}" = set; then : 6501 $as_echo_n "(cached) " >&6 6502else 6503 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6504 for ac_i in 1 2 3 4 5 6 7; do 6505 ac_script="$ac_script$as_nl$ac_script" 6506 done 6507 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6508 { ac_script=; unset ac_script;} 6509 if test -z "$SED"; then 6510 ac_path_SED_found=false 6511 # Loop through the user's path and test for each of PROGNAME-LIST 6512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6513for as_dir in $PATH 6514do 6515 IFS=$as_save_IFS 6516 test -z "$as_dir" && as_dir=. 6517 for ac_prog in sed gsed; do 6518 for ac_exec_ext in '' $ac_executable_extensions; do 6519 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 6520 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 6521# Check for GNU ac_path_SED and select it if it is found. 6522 # Check for GNU $ac_path_SED 6523case `"$ac_path_SED" --version 2>&1` in 6524*GNU*) 6525 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6526*) 6527 ac_count=0 6528 $as_echo_n 0123456789 >"conftest.in" 6529 while : 6530 do 6531 cat "conftest.in" "conftest.in" >"conftest.tmp" 6532 mv "conftest.tmp" "conftest.in" 6533 cp "conftest.in" "conftest.nl" 6534 $as_echo '' >> "conftest.nl" 6535 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6536 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6537 as_fn_arith $ac_count + 1 && ac_count=$as_val 6538 if test $ac_count -gt ${ac_path_SED_max-0}; then 6539 # Best one so far, save it but keep looking for a better one 6540 ac_cv_path_SED="$ac_path_SED" 6541 ac_path_SED_max=$ac_count 6542 fi 6543 # 10*(2^10) chars as input seems more than enough 6544 test $ac_count -gt 10 && break 6545 done 6546 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6547esac 6548 6549 $ac_path_SED_found && break 3 6550 done 6551 done 6552 done 6553IFS=$as_save_IFS 6554 if test -z "$ac_cv_path_SED"; then 6555 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 6556 fi 6557else 6558 ac_cv_path_SED=$SED 6559fi 6560 6561fi 6562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6563$as_echo "$ac_cv_path_SED" >&6; } 6564 SED="$ac_cv_path_SED" 6565 rm -f conftest.sed 6566 6567test -z "$SED" && SED=sed 6568Xsed="$SED -e 1s/^X//" 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 6581$as_echo_n "checking for fgrep... " >&6; } 6582if test "${ac_cv_path_FGREP+set}" = set; then : 6583 $as_echo_n "(cached) " >&6 6584else 6585 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 6586 then ac_cv_path_FGREP="$GREP -F" 6587 else 6588 if test -z "$FGREP"; then 6589 ac_path_FGREP_found=false 6590 # Loop through the user's path and test for each of PROGNAME-LIST 6591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6592for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6593do 6594 IFS=$as_save_IFS 6595 test -z "$as_dir" && as_dir=. 6596 for ac_prog in fgrep; do 6597 for ac_exec_ext in '' $ac_executable_extensions; do 6598 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 6599 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 6600# Check for GNU ac_path_FGREP and select it if it is found. 6601 # Check for GNU $ac_path_FGREP 6602case `"$ac_path_FGREP" --version 2>&1` in 6603*GNU*) 6604 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 6605*) 6606 ac_count=0 6607 $as_echo_n 0123456789 >"conftest.in" 6608 while : 6609 do 6610 cat "conftest.in" "conftest.in" >"conftest.tmp" 6611 mv "conftest.tmp" "conftest.in" 6612 cp "conftest.in" "conftest.nl" 6613 $as_echo 'FGREP' >> "conftest.nl" 6614 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6615 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6616 as_fn_arith $ac_count + 1 && ac_count=$as_val 6617 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6618 # Best one so far, save it but keep looking for a better one 6619 ac_cv_path_FGREP="$ac_path_FGREP" 6620 ac_path_FGREP_max=$ac_count 6621 fi 6622 # 10*(2^10) chars as input seems more than enough 6623 test $ac_count -gt 10 && break 6624 done 6625 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6626esac 6627 6628 $ac_path_FGREP_found && break 3 6629 done 6630 done 6631 done 6632IFS=$as_save_IFS 6633 if test -z "$ac_cv_path_FGREP"; then 6634 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6635 fi 6636else 6637 ac_cv_path_FGREP=$FGREP 6638fi 6639 6640 fi 6641fi 6642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6643$as_echo "$ac_cv_path_FGREP" >&6; } 6644 FGREP="$ac_cv_path_FGREP" 6645 6646 6647test -z "$GREP" && GREP=grep 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667# Check whether --with-gnu-ld was given. 6668if test "${with_gnu_ld+set}" = set; then : 6669 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 6670else 6671 with_gnu_ld=no 6672fi 6673 6674ac_prog=ld 6675if test "$GCC" = yes; then 6676 # Check if gcc -print-prog-name=ld gives a path. 6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6678$as_echo_n "checking for ld used by $CC... " >&6; } 6679 case $host in 6680 *-*-mingw*) 6681 # gcc leaves a trailing carriage return which upsets mingw 6682 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6683 *) 6684 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6685 esac 6686 case $ac_prog in 6687 # Accept absolute paths. 6688 [\\/]* | ?:[\\/]*) 6689 re_direlt='/[^/][^/]*/\.\./' 6690 # Canonicalize the pathname of ld 6691 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6692 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6693 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6694 done 6695 test -z "$LD" && LD="$ac_prog" 6696 ;; 6697 "") 6698 # If it fails, then pretend we aren't using GCC. 6699 ac_prog=ld 6700 ;; 6701 *) 6702 # If it is relative, then search for the first ld in PATH. 6703 with_gnu_ld=unknown 6704 ;; 6705 esac 6706elif test "$with_gnu_ld" = yes; then 6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6708$as_echo_n "checking for GNU ld... " >&6; } 6709else 6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6711$as_echo_n "checking for non-GNU ld... " >&6; } 6712fi 6713if test "${lt_cv_path_LD+set}" = set; then : 6714 $as_echo_n "(cached) " >&6 6715else 6716 if test -z "$LD"; then 6717 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6718 for ac_dir in $PATH; do 6719 IFS="$lt_save_ifs" 6720 test -z "$ac_dir" && ac_dir=. 6721 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6722 lt_cv_path_LD="$ac_dir/$ac_prog" 6723 # Check to see if the program is GNU ld. I'd rather use --version, 6724 # but apparently some variants of GNU ld only accept -v. 6725 # Break only if it was the GNU/non-GNU ld that we prefer. 6726 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6727 *GNU* | *'with BFD'*) 6728 test "$with_gnu_ld" != no && break 6729 ;; 6730 *) 6731 test "$with_gnu_ld" != yes && break 6732 ;; 6733 esac 6734 fi 6735 done 6736 IFS="$lt_save_ifs" 6737else 6738 lt_cv_path_LD="$LD" # Let the user override the test with a path. 6739fi 6740fi 6741 6742LD="$lt_cv_path_LD" 6743if test -n "$LD"; then 6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6745$as_echo "$LD" >&6; } 6746else 6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6748$as_echo "no" >&6; } 6749fi 6750test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 6751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6752$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 6753if test "${lt_cv_prog_gnu_ld+set}" = set; then : 6754 $as_echo_n "(cached) " >&6 6755else 6756 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6757case `$LD -v 2>&1 </dev/null` in 6758*GNU* | *'with BFD'*) 6759 lt_cv_prog_gnu_ld=yes 6760 ;; 6761*) 6762 lt_cv_prog_gnu_ld=no 6763 ;; 6764esac 6765fi 6766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6767$as_echo "$lt_cv_prog_gnu_ld" >&6; } 6768with_gnu_ld=$lt_cv_prog_gnu_ld 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6779$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6780if test "${lt_cv_path_NM+set}" = set; then : 6781 $as_echo_n "(cached) " >&6 6782else 6783 if test -n "$NM"; then 6784 # Let the user override the test. 6785 lt_cv_path_NM="$NM" 6786else 6787 lt_nm_to_check="${ac_tool_prefix}nm" 6788 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6789 lt_nm_to_check="$lt_nm_to_check nm" 6790 fi 6791 for lt_tmp_nm in $lt_nm_to_check; do 6792 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6793 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6794 IFS="$lt_save_ifs" 6795 test -z "$ac_dir" && ac_dir=. 6796 tmp_nm="$ac_dir/$lt_tmp_nm" 6797 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 6798 # Check to see if the nm accepts a BSD-compat flag. 6799 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 6800 # nm: unknown option "B" ignored 6801 # Tru64's nm complains that /dev/null is an invalid object file 6802 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 6803 */dev/null* | *'Invalid file or object type'*) 6804 lt_cv_path_NM="$tmp_nm -B" 6805 break 6806 ;; 6807 *) 6808 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6809 */dev/null*) 6810 lt_cv_path_NM="$tmp_nm -p" 6811 break 6812 ;; 6813 *) 6814 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6815 continue # so that we can try to find one that supports BSD flags 6816 ;; 6817 esac 6818 ;; 6819 esac 6820 fi 6821 done 6822 IFS="$lt_save_ifs" 6823 done 6824 : ${lt_cv_path_NM=no} 6825fi 6826fi 6827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6828$as_echo "$lt_cv_path_NM" >&6; } 6829if test "$lt_cv_path_NM" != "no"; then 6830 NM="$lt_cv_path_NM" 6831else 6832 # Didn't find any BSD compatible name lister, look for dumpbin. 6833 if test -n "$ac_tool_prefix"; then 6834 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 6835 do 6836 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6837set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6839$as_echo_n "checking for $ac_word... " >&6; } 6840if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 6841 $as_echo_n "(cached) " >&6 6842else 6843 if test -n "$DUMPBIN"; then 6844 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6845else 6846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6847for as_dir in $PATH 6848do 6849 IFS=$as_save_IFS 6850 test -z "$as_dir" && as_dir=. 6851 for ac_exec_ext in '' $ac_executable_extensions; do 6852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6853 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6855 break 2 6856 fi 6857done 6858 done 6859IFS=$as_save_IFS 6860 6861fi 6862fi 6863DUMPBIN=$ac_cv_prog_DUMPBIN 6864if test -n "$DUMPBIN"; then 6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6866$as_echo "$DUMPBIN" >&6; } 6867else 6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6869$as_echo "no" >&6; } 6870fi 6871 6872 6873 test -n "$DUMPBIN" && break 6874 done 6875fi 6876if test -z "$DUMPBIN"; then 6877 ac_ct_DUMPBIN=$DUMPBIN 6878 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 6879do 6880 # Extract the first word of "$ac_prog", so it can be a program name with args. 6881set dummy $ac_prog; ac_word=$2 6882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6883$as_echo_n "checking for $ac_word... " >&6; } 6884if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 6885 $as_echo_n "(cached) " >&6 6886else 6887 if test -n "$ac_ct_DUMPBIN"; then 6888 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6889else 6890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6891for as_dir in $PATH 6892do 6893 IFS=$as_save_IFS 6894 test -z "$as_dir" && as_dir=. 6895 for ac_exec_ext in '' $ac_executable_extensions; do 6896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6897 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6899 break 2 6900 fi 6901done 6902 done 6903IFS=$as_save_IFS 6904 6905fi 6906fi 6907ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6908if test -n "$ac_ct_DUMPBIN"; then 6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6910$as_echo "$ac_ct_DUMPBIN" >&6; } 6911else 6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6913$as_echo "no" >&6; } 6914fi 6915 6916 6917 test -n "$ac_ct_DUMPBIN" && break 6918done 6919 6920 if test "x$ac_ct_DUMPBIN" = x; then 6921 DUMPBIN=":" 6922 else 6923 case $cross_compiling:$ac_tool_warned in 6924yes:) 6925{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6926$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6927ac_tool_warned=yes ;; 6928esac 6929 DUMPBIN=$ac_ct_DUMPBIN 6930 fi 6931fi 6932 6933 6934 if test "$DUMPBIN" != ":"; then 6935 NM="$DUMPBIN" 6936 fi 6937fi 6938test -z "$NM" && NM=nm 6939 6940 6941 6942 6943 6944 6945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6946$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6947if test "${lt_cv_nm_interface+set}" = set; then : 6948 $as_echo_n "(cached) " >&6 6949else 6950 lt_cv_nm_interface="BSD nm" 6951 echo "int some_variable = 0;" > conftest.$ac_ext 6952 (eval echo "\"\$as_me:6952: $ac_compile\"" >&5) 6953 (eval "$ac_compile" 2>conftest.err) 6954 cat conftest.err >&5 6955 (eval echo "\"\$as_me:6955: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6956 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6957 cat conftest.err >&5 6958 (eval echo "\"\$as_me:6958: output\"" >&5) 6959 cat conftest.out >&5 6960 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6961 lt_cv_nm_interface="MS dumpbin" 6962 fi 6963 rm -f conftest* 6964fi 6965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6966$as_echo "$lt_cv_nm_interface" >&6; } 6967 6968# find the maximum length of command line arguments 6969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6970$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6971if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 6972 $as_echo_n "(cached) " >&6 6973else 6974 i=0 6975 teststring="ABCD" 6976 6977 case $build_os in 6978 msdosdjgpp*) 6979 # On DJGPP, this test can blow up pretty badly due to problems in libc 6980 # (any single argument exceeding 2000 bytes causes a buffer overrun 6981 # during glob expansion). Even if it were fixed, the result of this 6982 # check would be larger than it should be. 6983 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6984 ;; 6985 6986 gnu*) 6987 # Under GNU Hurd, this test is not required because there is 6988 # no limit to the length of command line arguments. 6989 # Libtool will interpret -1 as no limit whatsoever 6990 lt_cv_sys_max_cmd_len=-1; 6991 ;; 6992 6993 cygwin* | mingw* | cegcc*) 6994 # On Win9x/ME, this test blows up -- it succeeds, but takes 6995 # about 5 minutes as the teststring grows exponentially. 6996 # Worse, since 9x/ME are not pre-emptively multitasking, 6997 # you end up with a "frozen" computer, even though with patience 6998 # the test eventually succeeds (with a max line length of 256k). 6999 # Instead, let's just punt: use the minimum linelength reported by 7000 # all of the supported platforms: 8192 (on NT/2K/XP). 7001 lt_cv_sys_max_cmd_len=8192; 7002 ;; 7003 7004 amigaos*) 7005 # On AmigaOS with pdksh, this test takes hours, literally. 7006 # So we just punt and use a minimum line length of 8192. 7007 lt_cv_sys_max_cmd_len=8192; 7008 ;; 7009 7010 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 7011 # This has been around since 386BSD, at least. Likely further. 7012 if test -x /sbin/sysctl; then 7013 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7014 elif test -x /usr/sbin/sysctl; then 7015 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7016 else 7017 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7018 fi 7019 # And add a safety zone 7020 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7021 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7022 ;; 7023 7024 interix*) 7025 # We know the value 262144 and hardcode it with a safety zone (like BSD) 7026 lt_cv_sys_max_cmd_len=196608 7027 ;; 7028 7029 osf*) 7030 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7031 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7032 # nice to cause kernel panics so lets avoid the loop below. 7033 # First set a reasonable default. 7034 lt_cv_sys_max_cmd_len=16384 7035 # 7036 if test -x /sbin/sysconfig; then 7037 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7038 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7039 esac 7040 fi 7041 ;; 7042 sco3.2v5*) 7043 lt_cv_sys_max_cmd_len=102400 7044 ;; 7045 sysv5* | sco5v6* | sysv4.2uw2*) 7046 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7047 if test -n "$kargmax"; then 7048 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 7049 else 7050 lt_cv_sys_max_cmd_len=32768 7051 fi 7052 ;; 7053 *) 7054 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 7055 if test -n "$lt_cv_sys_max_cmd_len"; then 7056 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7057 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7058 else 7059 # Make teststring a little bigger before we do anything with it. 7060 # a 1K string should be a reasonable start. 7061 for i in 1 2 3 4 5 6 7 8 ; do 7062 teststring=$teststring$teststring 7063 done 7064 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7065 # If test is not a shell built-in, we'll probably end up computing a 7066 # maximum length that is only half of the actual maximum length, but 7067 # we can't tell. 7068 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 7069 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 7070 test $i != 17 # 1/2 MB should be enough 7071 do 7072 i=`expr $i + 1` 7073 teststring=$teststring$teststring 7074 done 7075 # Only check the string length outside the loop. 7076 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 7077 teststring= 7078 # Add a significant safety factor because C++ compilers can tack on 7079 # massive amounts of additional arguments before passing them to the 7080 # linker. It appears as though 1/2 is a usable value. 7081 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7082 fi 7083 ;; 7084 esac 7085 7086fi 7087 7088if test -n $lt_cv_sys_max_cmd_len ; then 7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 7090$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 7091else 7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 7093$as_echo "none" >&6; } 7094fi 7095max_cmd_len=$lt_cv_sys_max_cmd_len 7096 7097 7098 7099 7100 7101 7102: ${CP="cp -f"} 7103: ${MV="mv -f"} 7104: ${RM="rm -f"} 7105 7106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 7107$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 7108# Try some XSI features 7109xsi_shell=no 7110( _lt_dummy="a/b/c" 7111 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 7112 = c,a/b,, \ 7113 && eval 'test $(( 1 + 1 )) -eq 2 \ 7114 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 7115 && xsi_shell=yes 7116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 7117$as_echo "$xsi_shell" >&6; } 7118 7119 7120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 7121$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 7122lt_shell_append=no 7123( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 7124 >/dev/null 2>&1 \ 7125 && lt_shell_append=yes 7126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 7127$as_echo "$lt_shell_append" >&6; } 7128 7129 7130if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7131 lt_unset=unset 7132else 7133 lt_unset=false 7134fi 7135 7136 7137 7138 7139 7140# test EBCDIC or ASCII 7141case `echo X|tr X '\101'` in 7142 A) # ASCII based system 7143 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 7144 lt_SP2NL='tr \040 \012' 7145 lt_NL2SP='tr \015\012 \040\040' 7146 ;; 7147 *) # EBCDIC based system 7148 lt_SP2NL='tr \100 \n' 7149 lt_NL2SP='tr \r\n \100\100' 7150 ;; 7151esac 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 7162$as_echo_n "checking for $LD option to reload object files... " >&6; } 7163if test "${lt_cv_ld_reload_flag+set}" = set; then : 7164 $as_echo_n "(cached) " >&6 7165else 7166 lt_cv_ld_reload_flag='-r' 7167fi 7168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 7169$as_echo "$lt_cv_ld_reload_flag" >&6; } 7170reload_flag=$lt_cv_ld_reload_flag 7171case $reload_flag in 7172"" | " "*) ;; 7173*) reload_flag=" $reload_flag" ;; 7174esac 7175reload_cmds='$LD$reload_flag -o $output$reload_objs' 7176case $host_os in 7177 darwin*) 7178 if test "$GCC" = yes; then 7179 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 7180 else 7181 reload_cmds='$LD$reload_flag -o $output$reload_objs' 7182 fi 7183 ;; 7184esac 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194if test -n "$ac_tool_prefix"; then 7195 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7196set dummy ${ac_tool_prefix}objdump; ac_word=$2 7197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7198$as_echo_n "checking for $ac_word... " >&6; } 7199if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 7200 $as_echo_n "(cached) " >&6 7201else 7202 if test -n "$OBJDUMP"; then 7203 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7204else 7205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7206for as_dir in $PATH 7207do 7208 IFS=$as_save_IFS 7209 test -z "$as_dir" && as_dir=. 7210 for ac_exec_ext in '' $ac_executable_extensions; do 7211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7212 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7214 break 2 7215 fi 7216done 7217 done 7218IFS=$as_save_IFS 7219 7220fi 7221fi 7222OBJDUMP=$ac_cv_prog_OBJDUMP 7223if test -n "$OBJDUMP"; then 7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7225$as_echo "$OBJDUMP" >&6; } 7226else 7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7228$as_echo "no" >&6; } 7229fi 7230 7231 7232fi 7233if test -z "$ac_cv_prog_OBJDUMP"; then 7234 ac_ct_OBJDUMP=$OBJDUMP 7235 # Extract the first word of "objdump", so it can be a program name with args. 7236set dummy objdump; ac_word=$2 7237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7238$as_echo_n "checking for $ac_word... " >&6; } 7239if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 7240 $as_echo_n "(cached) " >&6 7241else 7242 if test -n "$ac_ct_OBJDUMP"; then 7243 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7244else 7245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7246for as_dir in $PATH 7247do 7248 IFS=$as_save_IFS 7249 test -z "$as_dir" && as_dir=. 7250 for ac_exec_ext in '' $ac_executable_extensions; do 7251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7252 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7254 break 2 7255 fi 7256done 7257 done 7258IFS=$as_save_IFS 7259 7260fi 7261fi 7262ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7263if test -n "$ac_ct_OBJDUMP"; then 7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7265$as_echo "$ac_ct_OBJDUMP" >&6; } 7266else 7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7268$as_echo "no" >&6; } 7269fi 7270 7271 if test "x$ac_ct_OBJDUMP" = x; then 7272 OBJDUMP="false" 7273 else 7274 case $cross_compiling:$ac_tool_warned in 7275yes:) 7276{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7277$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7278ac_tool_warned=yes ;; 7279esac 7280 OBJDUMP=$ac_ct_OBJDUMP 7281 fi 7282else 7283 OBJDUMP="$ac_cv_prog_OBJDUMP" 7284fi 7285 7286test -z "$OBJDUMP" && OBJDUMP=objdump 7287 7288 7289 7290 7291 7292 7293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 7294$as_echo_n "checking how to recognize dependent libraries... " >&6; } 7295if test "${lt_cv_deplibs_check_method+set}" = set; then : 7296 $as_echo_n "(cached) " >&6 7297else 7298 lt_cv_file_magic_cmd='$MAGIC_CMD' 7299lt_cv_file_magic_test_file= 7300lt_cv_deplibs_check_method='unknown' 7301# Need to set the preceding variable on all platforms that support 7302# interlibrary dependencies. 7303# 'none' -- dependencies not supported. 7304# `unknown' -- same as none, but documents that we really don't know. 7305# 'pass_all' -- all dependencies passed with no checks. 7306# 'test_compile' -- check by making test program. 7307# 'file_magic [[regex]]' -- check by looking for files in library path 7308# which responds to the $file_magic_cmd with a given extended regex. 7309# If you have `file' or equivalent on your system and you're not sure 7310# whether `pass_all' will *always* work, you probably want this one. 7311 7312case $host_os in 7313aix[4-9]*) 7314 lt_cv_deplibs_check_method=pass_all 7315 ;; 7316 7317beos*) 7318 lt_cv_deplibs_check_method=pass_all 7319 ;; 7320 7321bsdi[45]*) 7322 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 7323 lt_cv_file_magic_cmd='/usr/bin/file -L' 7324 lt_cv_file_magic_test_file=/shlib/libc.so 7325 ;; 7326 7327cygwin*) 7328 # func_win32_libid is a shell function defined in ltmain.sh 7329 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7330 lt_cv_file_magic_cmd='func_win32_libid' 7331 ;; 7332 7333mingw* | pw32*) 7334 # Base MSYS/MinGW do not provide the 'file' command needed by 7335 # func_win32_libid shell function, so use a weaker test based on 'objdump', 7336 # unless we find 'file', for example because we are cross-compiling. 7337 if ( file / ) >/dev/null 2>&1; then 7338 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7339 lt_cv_file_magic_cmd='func_win32_libid' 7340 else 7341 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 7342 lt_cv_file_magic_cmd='$OBJDUMP -f' 7343 fi 7344 ;; 7345 7346cegcc) 7347 # use the weaker test based on 'objdump'. See mingw*. 7348 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 7349 lt_cv_file_magic_cmd='$OBJDUMP -f' 7350 ;; 7351 7352darwin* | rhapsody*) 7353 lt_cv_deplibs_check_method=pass_all 7354 ;; 7355 7356freebsd* | dragonfly*) 7357 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7358 case $host_cpu in 7359 i*86 ) 7360 # Not sure whether the presence of OpenBSD here was a mistake. 7361 # Let's accept both of them until this is cleared up. 7362 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 7363 lt_cv_file_magic_cmd=/usr/bin/file 7364 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 7365 ;; 7366 esac 7367 else 7368 lt_cv_deplibs_check_method=pass_all 7369 fi 7370 ;; 7371 7372gnu*) 7373 lt_cv_deplibs_check_method=pass_all 7374 ;; 7375 7376hpux10.20* | hpux11*) 7377 lt_cv_file_magic_cmd=/usr/bin/file 7378 case $host_cpu in 7379 ia64*) 7380 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 7381 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 7382 ;; 7383 hppa*64*) 7384 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' 7385 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 7386 ;; 7387 *) 7388 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 7389 lt_cv_file_magic_test_file=/usr/lib/libc.sl 7390 ;; 7391 esac 7392 ;; 7393 7394interix[3-9]*) 7395 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 7396 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 7397 ;; 7398 7399irix5* | irix6* | nonstopux*) 7400 case $LD in 7401 *-32|*"-32 ") libmagic=32-bit;; 7402 *-n32|*"-n32 ") libmagic=N32;; 7403 *-64|*"-64 ") libmagic=64-bit;; 7404 *) libmagic=never-match;; 7405 esac 7406 lt_cv_deplibs_check_method=pass_all 7407 ;; 7408 7409# This must be Linux ELF. 7410linux* | k*bsd*-gnu) 7411 lt_cv_deplibs_check_method=pass_all 7412 ;; 7413 7414netbsd*) 7415 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7416 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7417 else 7418 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 7419 fi 7420 ;; 7421 7422newos6*) 7423 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 7424 lt_cv_file_magic_cmd=/usr/bin/file 7425 lt_cv_file_magic_test_file=/usr/lib/libnls.so 7426 ;; 7427 7428*nto* | *qnx*) 7429 lt_cv_deplibs_check_method=pass_all 7430 ;; 7431 7432openbsd*) 7433 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7434 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 7435 else 7436 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7437 fi 7438 ;; 7439 7440osf3* | osf4* | osf5*) 7441 lt_cv_deplibs_check_method=pass_all 7442 ;; 7443 7444rdos*) 7445 lt_cv_deplibs_check_method=pass_all 7446 ;; 7447 7448solaris*) 7449 lt_cv_deplibs_check_method=pass_all 7450 ;; 7451 7452sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7453 lt_cv_deplibs_check_method=pass_all 7454 ;; 7455 7456sysv4 | sysv4.3*) 7457 case $host_vendor in 7458 motorola) 7459 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]' 7460 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7461 ;; 7462 ncr) 7463 lt_cv_deplibs_check_method=pass_all 7464 ;; 7465 sequent) 7466 lt_cv_file_magic_cmd='/bin/file' 7467 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7468 ;; 7469 sni) 7470 lt_cv_file_magic_cmd='/bin/file' 7471 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7472 lt_cv_file_magic_test_file=/lib/libc.so 7473 ;; 7474 siemens) 7475 lt_cv_deplibs_check_method=pass_all 7476 ;; 7477 pc) 7478 lt_cv_deplibs_check_method=pass_all 7479 ;; 7480 esac 7481 ;; 7482 7483tpf*) 7484 lt_cv_deplibs_check_method=pass_all 7485 ;; 7486esac 7487 7488fi 7489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 7490$as_echo "$lt_cv_deplibs_check_method" >&6; } 7491file_magic_cmd=$lt_cv_file_magic_cmd 7492deplibs_check_method=$lt_cv_deplibs_check_method 7493test -z "$deplibs_check_method" && deplibs_check_method=unknown 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506if test -n "$ac_tool_prefix"; then 7507 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7508set dummy ${ac_tool_prefix}ar; ac_word=$2 7509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7510$as_echo_n "checking for $ac_word... " >&6; } 7511if test "${ac_cv_prog_AR+set}" = set; then : 7512 $as_echo_n "(cached) " >&6 7513else 7514 if test -n "$AR"; then 7515 ac_cv_prog_AR="$AR" # Let the user override the test. 7516else 7517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7518for as_dir in $PATH 7519do 7520 IFS=$as_save_IFS 7521 test -z "$as_dir" && as_dir=. 7522 for ac_exec_ext in '' $ac_executable_extensions; do 7523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7524 ac_cv_prog_AR="${ac_tool_prefix}ar" 7525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7526 break 2 7527 fi 7528done 7529 done 7530IFS=$as_save_IFS 7531 7532fi 7533fi 7534AR=$ac_cv_prog_AR 7535if test -n "$AR"; then 7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7537$as_echo "$AR" >&6; } 7538else 7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7540$as_echo "no" >&6; } 7541fi 7542 7543 7544fi 7545if test -z "$ac_cv_prog_AR"; then 7546 ac_ct_AR=$AR 7547 # Extract the first word of "ar", so it can be a program name with args. 7548set dummy ar; ac_word=$2 7549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7550$as_echo_n "checking for $ac_word... " >&6; } 7551if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 7552 $as_echo_n "(cached) " >&6 7553else 7554 if test -n "$ac_ct_AR"; then 7555 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7556else 7557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7558for as_dir in $PATH 7559do 7560 IFS=$as_save_IFS 7561 test -z "$as_dir" && as_dir=. 7562 for ac_exec_ext in '' $ac_executable_extensions; do 7563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7564 ac_cv_prog_ac_ct_AR="ar" 7565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7566 break 2 7567 fi 7568done 7569 done 7570IFS=$as_save_IFS 7571 7572fi 7573fi 7574ac_ct_AR=$ac_cv_prog_ac_ct_AR 7575if test -n "$ac_ct_AR"; then 7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7577$as_echo "$ac_ct_AR" >&6; } 7578else 7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7580$as_echo "no" >&6; } 7581fi 7582 7583 if test "x$ac_ct_AR" = x; then 7584 AR="false" 7585 else 7586 case $cross_compiling:$ac_tool_warned in 7587yes:) 7588{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7589$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7590ac_tool_warned=yes ;; 7591esac 7592 AR=$ac_ct_AR 7593 fi 7594else 7595 AR="$ac_cv_prog_AR" 7596fi 7597 7598test -z "$AR" && AR=ar 7599test -z "$AR_FLAGS" && AR_FLAGS=cru 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611if test -n "$ac_tool_prefix"; then 7612 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7613set dummy ${ac_tool_prefix}strip; ac_word=$2 7614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7615$as_echo_n "checking for $ac_word... " >&6; } 7616if test "${ac_cv_prog_STRIP+set}" = set; then : 7617 $as_echo_n "(cached) " >&6 7618else 7619 if test -n "$STRIP"; then 7620 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7621else 7622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7623for as_dir in $PATH 7624do 7625 IFS=$as_save_IFS 7626 test -z "$as_dir" && as_dir=. 7627 for ac_exec_ext in '' $ac_executable_extensions; do 7628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7629 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7631 break 2 7632 fi 7633done 7634 done 7635IFS=$as_save_IFS 7636 7637fi 7638fi 7639STRIP=$ac_cv_prog_STRIP 7640if test -n "$STRIP"; then 7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7642$as_echo "$STRIP" >&6; } 7643else 7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7645$as_echo "no" >&6; } 7646fi 7647 7648 7649fi 7650if test -z "$ac_cv_prog_STRIP"; then 7651 ac_ct_STRIP=$STRIP 7652 # Extract the first word of "strip", so it can be a program name with args. 7653set dummy strip; ac_word=$2 7654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7655$as_echo_n "checking for $ac_word... " >&6; } 7656if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 7657 $as_echo_n "(cached) " >&6 7658else 7659 if test -n "$ac_ct_STRIP"; then 7660 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7661else 7662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7663for as_dir in $PATH 7664do 7665 IFS=$as_save_IFS 7666 test -z "$as_dir" && as_dir=. 7667 for ac_exec_ext in '' $ac_executable_extensions; do 7668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7669 ac_cv_prog_ac_ct_STRIP="strip" 7670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7671 break 2 7672 fi 7673done 7674 done 7675IFS=$as_save_IFS 7676 7677fi 7678fi 7679ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7680if test -n "$ac_ct_STRIP"; then 7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7682$as_echo "$ac_ct_STRIP" >&6; } 7683else 7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7685$as_echo "no" >&6; } 7686fi 7687 7688 if test "x$ac_ct_STRIP" = x; then 7689 STRIP=":" 7690 else 7691 case $cross_compiling:$ac_tool_warned in 7692yes:) 7693{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7694$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7695ac_tool_warned=yes ;; 7696esac 7697 STRIP=$ac_ct_STRIP 7698 fi 7699else 7700 STRIP="$ac_cv_prog_STRIP" 7701fi 7702 7703test -z "$STRIP" && STRIP=: 7704 7705 7706 7707 7708 7709 7710if test -n "$ac_tool_prefix"; then 7711 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7712set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7714$as_echo_n "checking for $ac_word... " >&6; } 7715if test "${ac_cv_prog_RANLIB+set}" = set; then : 7716 $as_echo_n "(cached) " >&6 7717else 7718 if test -n "$RANLIB"; then 7719 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7720else 7721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7722for as_dir in $PATH 7723do 7724 IFS=$as_save_IFS 7725 test -z "$as_dir" && as_dir=. 7726 for ac_exec_ext in '' $ac_executable_extensions; do 7727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7728 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7730 break 2 7731 fi 7732done 7733 done 7734IFS=$as_save_IFS 7735 7736fi 7737fi 7738RANLIB=$ac_cv_prog_RANLIB 7739if test -n "$RANLIB"; then 7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7741$as_echo "$RANLIB" >&6; } 7742else 7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7744$as_echo "no" >&6; } 7745fi 7746 7747 7748fi 7749if test -z "$ac_cv_prog_RANLIB"; then 7750 ac_ct_RANLIB=$RANLIB 7751 # Extract the first word of "ranlib", so it can be a program name with args. 7752set dummy ranlib; ac_word=$2 7753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7754$as_echo_n "checking for $ac_word... " >&6; } 7755if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 7756 $as_echo_n "(cached) " >&6 7757else 7758 if test -n "$ac_ct_RANLIB"; then 7759 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7760else 7761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7762for as_dir in $PATH 7763do 7764 IFS=$as_save_IFS 7765 test -z "$as_dir" && as_dir=. 7766 for ac_exec_ext in '' $ac_executable_extensions; do 7767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7768 ac_cv_prog_ac_ct_RANLIB="ranlib" 7769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7770 break 2 7771 fi 7772done 7773 done 7774IFS=$as_save_IFS 7775 7776fi 7777fi 7778ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7779if test -n "$ac_ct_RANLIB"; then 7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7781$as_echo "$ac_ct_RANLIB" >&6; } 7782else 7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7784$as_echo "no" >&6; } 7785fi 7786 7787 if test "x$ac_ct_RANLIB" = x; then 7788 RANLIB=":" 7789 else 7790 case $cross_compiling:$ac_tool_warned in 7791yes:) 7792{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7793$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7794ac_tool_warned=yes ;; 7795esac 7796 RANLIB=$ac_ct_RANLIB 7797 fi 7798else 7799 RANLIB="$ac_cv_prog_RANLIB" 7800fi 7801 7802test -z "$RANLIB" && RANLIB=: 7803 7804 7805 7806 7807 7808 7809# Determine commands to create old-style static archives. 7810old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7811old_postinstall_cmds='chmod 644 $oldlib' 7812old_postuninstall_cmds= 7813 7814if test -n "$RANLIB"; then 7815 case $host_os in 7816 openbsd*) 7817 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7818 ;; 7819 *) 7820 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7821 ;; 7822 esac 7823 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7824fi 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859# If no C compiler was specified, use CC. 7860LTCC=${LTCC-"$CC"} 7861 7862# If no C compiler flags were specified, use CFLAGS. 7863LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7864 7865# Allow CC to be a program name with arguments. 7866compiler=$CC 7867 7868 7869# Check for command to grab the raw symbol name followed by C symbol from nm. 7870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7871$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7872if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 7873 $as_echo_n "(cached) " >&6 7874else 7875 7876# These are sane defaults that work on at least a few old systems. 7877# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7878 7879# Character class describing NM global symbol codes. 7880symcode='[BCDEGRST]' 7881 7882# Regexp to match symbols that can be accessed directly from C. 7883sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7884 7885# Define system-specific variables. 7886case $host_os in 7887aix*) 7888 symcode='[BCDT]' 7889 ;; 7890cygwin* | mingw* | pw32* | cegcc*) 7891 symcode='[ABCDGISTW]' 7892 ;; 7893hpux*) 7894 if test "$host_cpu" = ia64; then 7895 symcode='[ABCDEGRST]' 7896 fi 7897 ;; 7898irix* | nonstopux*) 7899 symcode='[BCDEGRST]' 7900 ;; 7901osf*) 7902 symcode='[BCDEGQRST]' 7903 ;; 7904solaris*) 7905 symcode='[BDRT]' 7906 ;; 7907sco3.2v5*) 7908 symcode='[DT]' 7909 ;; 7910sysv4.2uw2*) 7911 symcode='[DT]' 7912 ;; 7913sysv5* | sco5v6* | unixware* | OpenUNIX*) 7914 symcode='[ABDT]' 7915 ;; 7916sysv4) 7917 symcode='[DFNSTU]' 7918 ;; 7919esac 7920 7921# If we're using GNU nm, then use its standard symbol codes. 7922case `$NM -V 2>&1` in 7923*GNU* | *'with BFD'*) 7924 symcode='[ABCDGIRSTW]' ;; 7925esac 7926 7927# Transform an extracted symbol line into a proper C declaration. 7928# Some systems (esp. on ia64) link data and code symbols differently, 7929# so use this general approach. 7930lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7931 7932# Transform an extracted symbol line into symbol name and symbol address 7933lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 7934lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 7935 7936# Handle CRLF in mingw tool chain 7937opt_cr= 7938case $build_os in 7939mingw*) 7940 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7941 ;; 7942esac 7943 7944# Try without a prefix underscore, then with it. 7945for ac_symprfx in "" "_"; do 7946 7947 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7948 symxfrm="\\1 $ac_symprfx\\2 \\2" 7949 7950 # Write the raw and C identifiers. 7951 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7952 # Fake it for dumpbin and say T for any non-static function 7953 # and D for any global variable. 7954 # Also find C++ and __fastcall symbols from MSVC++, 7955 # which start with @ or ?. 7956 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7957" {last_section=section; section=\$ 3};"\ 7958" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7959" \$ 0!~/External *\|/{next};"\ 7960" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7961" {if(hide[section]) next};"\ 7962" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 7963" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 7964" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 7965" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 7966" ' prfx=^$ac_symprfx" 7967 else 7968 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7969 fi 7970 7971 # Check to see that the pipe works correctly. 7972 pipe_works=no 7973 7974 rm -f conftest* 7975 cat > conftest.$ac_ext <<_LT_EOF 7976#ifdef __cplusplus 7977extern "C" { 7978#endif 7979char nm_test_var; 7980void nm_test_func(void); 7981void nm_test_func(void){} 7982#ifdef __cplusplus 7983} 7984#endif 7985int main(){nm_test_var='a';nm_test_func();return(0);} 7986_LT_EOF 7987 7988 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7989 (eval $ac_compile) 2>&5 7990 ac_status=$? 7991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7992 test $ac_status = 0; }; then 7993 # Now try to grab the symbols. 7994 nlist=conftest.nm 7995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 7996 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 7997 ac_status=$? 7998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7999 test $ac_status = 0; } && test -s "$nlist"; then 8000 # Try sorting and uniquifying the output. 8001 if sort "$nlist" | uniq > "$nlist"T; then 8002 mv -f "$nlist"T "$nlist" 8003 else 8004 rm -f "$nlist"T 8005 fi 8006 8007 # Make sure that we snagged all the symbols we need. 8008 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 8009 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 8010 cat <<_LT_EOF > conftest.$ac_ext 8011#ifdef __cplusplus 8012extern "C" { 8013#endif 8014 8015_LT_EOF 8016 # Now generate the symbol file. 8017 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 8018 8019 cat <<_LT_EOF >> conftest.$ac_ext 8020 8021/* The mapping between symbol names and symbols. */ 8022const struct { 8023 const char *name; 8024 void *address; 8025} 8026lt__PROGRAM__LTX_preloaded_symbols[] = 8027{ 8028 { "@PROGRAM@", (void *) 0 }, 8029_LT_EOF 8030 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 8031 cat <<\_LT_EOF >> conftest.$ac_ext 8032 {0, (void *) 0} 8033}; 8034 8035/* This works around a problem in FreeBSD linker */ 8036#ifdef FREEBSD_WORKAROUND 8037static const void *lt_preloaded_setup() { 8038 return lt__PROGRAM__LTX_preloaded_symbols; 8039} 8040#endif 8041 8042#ifdef __cplusplus 8043} 8044#endif 8045_LT_EOF 8046 # Now try linking the two files. 8047 mv conftest.$ac_objext conftstm.$ac_objext 8048 lt_save_LIBS="$LIBS" 8049 lt_save_CFLAGS="$CFLAGS" 8050 LIBS="conftstm.$ac_objext" 8051 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 8052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 8053 (eval $ac_link) 2>&5 8054 ac_status=$? 8055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8056 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 8057 pipe_works=yes 8058 fi 8059 LIBS="$lt_save_LIBS" 8060 CFLAGS="$lt_save_CFLAGS" 8061 else 8062 echo "cannot find nm_test_func in $nlist" >&5 8063 fi 8064 else 8065 echo "cannot find nm_test_var in $nlist" >&5 8066 fi 8067 else 8068 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 8069 fi 8070 else 8071 echo "$progname: failed program was:" >&5 8072 cat conftest.$ac_ext >&5 8073 fi 8074 rm -rf conftest* conftst* 8075 8076 # Do not use the global_symbol_pipe unless it works. 8077 if test "$pipe_works" = yes; then 8078 break 8079 else 8080 lt_cv_sys_global_symbol_pipe= 8081 fi 8082done 8083 8084fi 8085 8086if test -z "$lt_cv_sys_global_symbol_pipe"; then 8087 lt_cv_sys_global_symbol_to_cdecl= 8088fi 8089if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 8091$as_echo "failed" >&6; } 8092else 8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 8094$as_echo "ok" >&6; } 8095fi 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118# Check whether --enable-libtool-lock was given. 8119if test "${enable_libtool_lock+set}" = set; then : 8120 enableval=$enable_libtool_lock; 8121fi 8122 8123test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 8124 8125# Some flags need to be propagated to the compiler or linker for good 8126# libtool support. 8127case $host in 8128ia64-*-hpux*) 8129 # Find out which ABI we are using. 8130 echo 'int i;' > conftest.$ac_ext 8131 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8132 (eval $ac_compile) 2>&5 8133 ac_status=$? 8134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8135 test $ac_status = 0; }; then 8136 case `/usr/bin/file conftest.$ac_objext` in 8137 *ELF-32*) 8138 HPUX_IA64_MODE="32" 8139 ;; 8140 *ELF-64*) 8141 HPUX_IA64_MODE="64" 8142 ;; 8143 esac 8144 fi 8145 rm -rf conftest* 8146 ;; 8147*-*-irix6*) 8148 # Find out which ABI we are using. 8149 echo '#line 8149 "configure"' > conftest.$ac_ext 8150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8151 (eval $ac_compile) 2>&5 8152 ac_status=$? 8153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8154 test $ac_status = 0; }; then 8155 if test "$lt_cv_prog_gnu_ld" = yes; then 8156 case `/usr/bin/file conftest.$ac_objext` in 8157 *32-bit*) 8158 LD="${LD-ld} -melf32bsmip" 8159 ;; 8160 *N32*) 8161 LD="${LD-ld} -melf32bmipn32" 8162 ;; 8163 *64-bit*) 8164 LD="${LD-ld} -melf64bmip" 8165 ;; 8166 esac 8167 else 8168 case `/usr/bin/file conftest.$ac_objext` in 8169 *32-bit*) 8170 LD="${LD-ld} -32" 8171 ;; 8172 *N32*) 8173 LD="${LD-ld} -n32" 8174 ;; 8175 *64-bit*) 8176 LD="${LD-ld} -64" 8177 ;; 8178 esac 8179 fi 8180 fi 8181 rm -rf conftest* 8182 ;; 8183 8184x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 8185s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8186 # Find out which ABI we are using. 8187 echo 'int i;' > conftest.$ac_ext 8188 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8189 (eval $ac_compile) 2>&5 8190 ac_status=$? 8191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8192 test $ac_status = 0; }; then 8193 case `/usr/bin/file conftest.o` in 8194 *32-bit*) 8195 case $host in 8196 x86_64-*kfreebsd*-gnu) 8197 LD="${LD-ld} -m elf_i386_fbsd" 8198 ;; 8199 x86_64-*linux*) 8200 LD="${LD-ld} -m elf_i386" 8201 ;; 8202 ppc64-*linux*|powerpc64-*linux*) 8203 LD="${LD-ld} -m elf32ppclinux" 8204 ;; 8205 s390x-*linux*) 8206 LD="${LD-ld} -m elf_s390" 8207 ;; 8208 sparc64-*linux*) 8209 LD="${LD-ld} -m elf32_sparc" 8210 ;; 8211 esac 8212 ;; 8213 *64-bit*) 8214 case $host in 8215 x86_64-*kfreebsd*-gnu) 8216 LD="${LD-ld} -m elf_x86_64_fbsd" 8217 ;; 8218 x86_64-*linux*) 8219 LD="${LD-ld} -m elf_x86_64" 8220 ;; 8221 ppc*-*linux*|powerpc*-*linux*) 8222 LD="${LD-ld} -m elf64ppc" 8223 ;; 8224 s390*-*linux*|s390*-*tpf*) 8225 LD="${LD-ld} -m elf64_s390" 8226 ;; 8227 sparc*-*linux*) 8228 LD="${LD-ld} -m elf64_sparc" 8229 ;; 8230 esac 8231 ;; 8232 esac 8233 fi 8234 rm -rf conftest* 8235 ;; 8236 8237*-*-sco3.2v5*) 8238 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8239 SAVE_CFLAGS="$CFLAGS" 8240 CFLAGS="$CFLAGS -belf" 8241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8242$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 8243if test "${lt_cv_cc_needs_belf+set}" = set; then : 8244 $as_echo_n "(cached) " >&6 8245else 8246 ac_ext=c 8247ac_cpp='$CPP $CPPFLAGS' 8248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8250ac_compiler_gnu=$ac_cv_c_compiler_gnu 8251 8252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8253/* end confdefs.h. */ 8254 8255int 8256main () 8257{ 8258 8259 ; 8260 return 0; 8261} 8262_ACEOF 8263if ac_fn_c_try_link "$LINENO"; then : 8264 lt_cv_cc_needs_belf=yes 8265else 8266 lt_cv_cc_needs_belf=no 8267fi 8268rm -f core conftest.err conftest.$ac_objext \ 8269 conftest$ac_exeext conftest.$ac_ext 8270 ac_ext=c 8271ac_cpp='$CPP $CPPFLAGS' 8272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8274ac_compiler_gnu=$ac_cv_c_compiler_gnu 8275 8276fi 8277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8278$as_echo "$lt_cv_cc_needs_belf" >&6; } 8279 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 8280 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8281 CFLAGS="$SAVE_CFLAGS" 8282 fi 8283 ;; 8284sparc*-*solaris*) 8285 # Find out which ABI we are using. 8286 echo 'int i;' > conftest.$ac_ext 8287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8288 (eval $ac_compile) 2>&5 8289 ac_status=$? 8290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8291 test $ac_status = 0; }; then 8292 case `/usr/bin/file conftest.o` in 8293 *64-bit*) 8294 case $lt_cv_prog_gnu_ld in 8295 yes*) LD="${LD-ld} -m elf64_sparc" ;; 8296 *) 8297 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8298 LD="${LD-ld} -64" 8299 fi 8300 ;; 8301 esac 8302 ;; 8303 esac 8304 fi 8305 rm -rf conftest* 8306 ;; 8307esac 8308 8309need_locks="$enable_libtool_lock" 8310 8311 8312 case $host_os in 8313 rhapsody* | darwin*) 8314 if test -n "$ac_tool_prefix"; then 8315 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8316set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8318$as_echo_n "checking for $ac_word... " >&6; } 8319if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 8320 $as_echo_n "(cached) " >&6 8321else 8322 if test -n "$DSYMUTIL"; then 8323 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8324else 8325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8326for as_dir in $PATH 8327do 8328 IFS=$as_save_IFS 8329 test -z "$as_dir" && as_dir=. 8330 for ac_exec_ext in '' $ac_executable_extensions; do 8331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8332 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8334 break 2 8335 fi 8336done 8337 done 8338IFS=$as_save_IFS 8339 8340fi 8341fi 8342DSYMUTIL=$ac_cv_prog_DSYMUTIL 8343if test -n "$DSYMUTIL"; then 8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8345$as_echo "$DSYMUTIL" >&6; } 8346else 8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8348$as_echo "no" >&6; } 8349fi 8350 8351 8352fi 8353if test -z "$ac_cv_prog_DSYMUTIL"; then 8354 ac_ct_DSYMUTIL=$DSYMUTIL 8355 # Extract the first word of "dsymutil", so it can be a program name with args. 8356set dummy dsymutil; ac_word=$2 8357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8358$as_echo_n "checking for $ac_word... " >&6; } 8359if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 8360 $as_echo_n "(cached) " >&6 8361else 8362 if test -n "$ac_ct_DSYMUTIL"; then 8363 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8364else 8365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8366for as_dir in $PATH 8367do 8368 IFS=$as_save_IFS 8369 test -z "$as_dir" && as_dir=. 8370 for ac_exec_ext in '' $ac_executable_extensions; do 8371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8372 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8374 break 2 8375 fi 8376done 8377 done 8378IFS=$as_save_IFS 8379 8380fi 8381fi 8382ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8383if test -n "$ac_ct_DSYMUTIL"; then 8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8385$as_echo "$ac_ct_DSYMUTIL" >&6; } 8386else 8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8388$as_echo "no" >&6; } 8389fi 8390 8391 if test "x$ac_ct_DSYMUTIL" = x; then 8392 DSYMUTIL=":" 8393 else 8394 case $cross_compiling:$ac_tool_warned in 8395yes:) 8396{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8397$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8398ac_tool_warned=yes ;; 8399esac 8400 DSYMUTIL=$ac_ct_DSYMUTIL 8401 fi 8402else 8403 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8404fi 8405 8406 if test -n "$ac_tool_prefix"; then 8407 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8408set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8410$as_echo_n "checking for $ac_word... " >&6; } 8411if test "${ac_cv_prog_NMEDIT+set}" = set; then : 8412 $as_echo_n "(cached) " >&6 8413else 8414 if test -n "$NMEDIT"; then 8415 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8416else 8417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8418for as_dir in $PATH 8419do 8420 IFS=$as_save_IFS 8421 test -z "$as_dir" && as_dir=. 8422 for ac_exec_ext in '' $ac_executable_extensions; do 8423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8424 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8426 break 2 8427 fi 8428done 8429 done 8430IFS=$as_save_IFS 8431 8432fi 8433fi 8434NMEDIT=$ac_cv_prog_NMEDIT 8435if test -n "$NMEDIT"; then 8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8437$as_echo "$NMEDIT" >&6; } 8438else 8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8440$as_echo "no" >&6; } 8441fi 8442 8443 8444fi 8445if test -z "$ac_cv_prog_NMEDIT"; then 8446 ac_ct_NMEDIT=$NMEDIT 8447 # Extract the first word of "nmedit", so it can be a program name with args. 8448set dummy nmedit; ac_word=$2 8449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8450$as_echo_n "checking for $ac_word... " >&6; } 8451if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 8452 $as_echo_n "(cached) " >&6 8453else 8454 if test -n "$ac_ct_NMEDIT"; then 8455 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8456else 8457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8458for as_dir in $PATH 8459do 8460 IFS=$as_save_IFS 8461 test -z "$as_dir" && as_dir=. 8462 for ac_exec_ext in '' $ac_executable_extensions; do 8463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8464 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8466 break 2 8467 fi 8468done 8469 done 8470IFS=$as_save_IFS 8471 8472fi 8473fi 8474ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8475if test -n "$ac_ct_NMEDIT"; then 8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8477$as_echo "$ac_ct_NMEDIT" >&6; } 8478else 8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8480$as_echo "no" >&6; } 8481fi 8482 8483 if test "x$ac_ct_NMEDIT" = x; then 8484 NMEDIT=":" 8485 else 8486 case $cross_compiling:$ac_tool_warned in 8487yes:) 8488{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8489$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8490ac_tool_warned=yes ;; 8491esac 8492 NMEDIT=$ac_ct_NMEDIT 8493 fi 8494else 8495 NMEDIT="$ac_cv_prog_NMEDIT" 8496fi 8497 8498 if test -n "$ac_tool_prefix"; then 8499 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8500set dummy ${ac_tool_prefix}lipo; ac_word=$2 8501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8502$as_echo_n "checking for $ac_word... " >&6; } 8503if test "${ac_cv_prog_LIPO+set}" = set; then : 8504 $as_echo_n "(cached) " >&6 8505else 8506 if test -n "$LIPO"; then 8507 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8508else 8509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8510for as_dir in $PATH 8511do 8512 IFS=$as_save_IFS 8513 test -z "$as_dir" && as_dir=. 8514 for ac_exec_ext in '' $ac_executable_extensions; do 8515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8516 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8518 break 2 8519 fi 8520done 8521 done 8522IFS=$as_save_IFS 8523 8524fi 8525fi 8526LIPO=$ac_cv_prog_LIPO 8527if test -n "$LIPO"; then 8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8529$as_echo "$LIPO" >&6; } 8530else 8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8532$as_echo "no" >&6; } 8533fi 8534 8535 8536fi 8537if test -z "$ac_cv_prog_LIPO"; then 8538 ac_ct_LIPO=$LIPO 8539 # Extract the first word of "lipo", so it can be a program name with args. 8540set dummy lipo; ac_word=$2 8541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8542$as_echo_n "checking for $ac_word... " >&6; } 8543if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 8544 $as_echo_n "(cached) " >&6 8545else 8546 if test -n "$ac_ct_LIPO"; then 8547 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8548else 8549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8550for as_dir in $PATH 8551do 8552 IFS=$as_save_IFS 8553 test -z "$as_dir" && as_dir=. 8554 for ac_exec_ext in '' $ac_executable_extensions; do 8555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8556 ac_cv_prog_ac_ct_LIPO="lipo" 8557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8558 break 2 8559 fi 8560done 8561 done 8562IFS=$as_save_IFS 8563 8564fi 8565fi 8566ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8567if test -n "$ac_ct_LIPO"; then 8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8569$as_echo "$ac_ct_LIPO" >&6; } 8570else 8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8572$as_echo "no" >&6; } 8573fi 8574 8575 if test "x$ac_ct_LIPO" = x; then 8576 LIPO=":" 8577 else 8578 case $cross_compiling:$ac_tool_warned in 8579yes:) 8580{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8581$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8582ac_tool_warned=yes ;; 8583esac 8584 LIPO=$ac_ct_LIPO 8585 fi 8586else 8587 LIPO="$ac_cv_prog_LIPO" 8588fi 8589 8590 if test -n "$ac_tool_prefix"; then 8591 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8592set dummy ${ac_tool_prefix}otool; ac_word=$2 8593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8594$as_echo_n "checking for $ac_word... " >&6; } 8595if test "${ac_cv_prog_OTOOL+set}" = set; then : 8596 $as_echo_n "(cached) " >&6 8597else 8598 if test -n "$OTOOL"; then 8599 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8600else 8601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8602for as_dir in $PATH 8603do 8604 IFS=$as_save_IFS 8605 test -z "$as_dir" && as_dir=. 8606 for ac_exec_ext in '' $ac_executable_extensions; do 8607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8608 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8610 break 2 8611 fi 8612done 8613 done 8614IFS=$as_save_IFS 8615 8616fi 8617fi 8618OTOOL=$ac_cv_prog_OTOOL 8619if test -n "$OTOOL"; then 8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8621$as_echo "$OTOOL" >&6; } 8622else 8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8624$as_echo "no" >&6; } 8625fi 8626 8627 8628fi 8629if test -z "$ac_cv_prog_OTOOL"; then 8630 ac_ct_OTOOL=$OTOOL 8631 # Extract the first word of "otool", so it can be a program name with args. 8632set dummy otool; ac_word=$2 8633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8634$as_echo_n "checking for $ac_word... " >&6; } 8635if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 8636 $as_echo_n "(cached) " >&6 8637else 8638 if test -n "$ac_ct_OTOOL"; then 8639 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8640else 8641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8642for as_dir in $PATH 8643do 8644 IFS=$as_save_IFS 8645 test -z "$as_dir" && as_dir=. 8646 for ac_exec_ext in '' $ac_executable_extensions; do 8647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8648 ac_cv_prog_ac_ct_OTOOL="otool" 8649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8650 break 2 8651 fi 8652done 8653 done 8654IFS=$as_save_IFS 8655 8656fi 8657fi 8658ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8659if test -n "$ac_ct_OTOOL"; then 8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8661$as_echo "$ac_ct_OTOOL" >&6; } 8662else 8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8664$as_echo "no" >&6; } 8665fi 8666 8667 if test "x$ac_ct_OTOOL" = x; then 8668 OTOOL=":" 8669 else 8670 case $cross_compiling:$ac_tool_warned in 8671yes:) 8672{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8673$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8674ac_tool_warned=yes ;; 8675esac 8676 OTOOL=$ac_ct_OTOOL 8677 fi 8678else 8679 OTOOL="$ac_cv_prog_OTOOL" 8680fi 8681 8682 if test -n "$ac_tool_prefix"; then 8683 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8684set dummy ${ac_tool_prefix}otool64; ac_word=$2 8685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8686$as_echo_n "checking for $ac_word... " >&6; } 8687if test "${ac_cv_prog_OTOOL64+set}" = set; then : 8688 $as_echo_n "(cached) " >&6 8689else 8690 if test -n "$OTOOL64"; then 8691 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8692else 8693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8694for as_dir in $PATH 8695do 8696 IFS=$as_save_IFS 8697 test -z "$as_dir" && as_dir=. 8698 for ac_exec_ext in '' $ac_executable_extensions; do 8699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8700 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8702 break 2 8703 fi 8704done 8705 done 8706IFS=$as_save_IFS 8707 8708fi 8709fi 8710OTOOL64=$ac_cv_prog_OTOOL64 8711if test -n "$OTOOL64"; then 8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8713$as_echo "$OTOOL64" >&6; } 8714else 8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8716$as_echo "no" >&6; } 8717fi 8718 8719 8720fi 8721if test -z "$ac_cv_prog_OTOOL64"; then 8722 ac_ct_OTOOL64=$OTOOL64 8723 # Extract the first word of "otool64", so it can be a program name with args. 8724set dummy otool64; ac_word=$2 8725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8726$as_echo_n "checking for $ac_word... " >&6; } 8727if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 8728 $as_echo_n "(cached) " >&6 8729else 8730 if test -n "$ac_ct_OTOOL64"; then 8731 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8732else 8733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8734for as_dir in $PATH 8735do 8736 IFS=$as_save_IFS 8737 test -z "$as_dir" && as_dir=. 8738 for ac_exec_ext in '' $ac_executable_extensions; do 8739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8740 ac_cv_prog_ac_ct_OTOOL64="otool64" 8741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8742 break 2 8743 fi 8744done 8745 done 8746IFS=$as_save_IFS 8747 8748fi 8749fi 8750ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8751if test -n "$ac_ct_OTOOL64"; then 8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8753$as_echo "$ac_ct_OTOOL64" >&6; } 8754else 8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8756$as_echo "no" >&6; } 8757fi 8758 8759 if test "x$ac_ct_OTOOL64" = x; then 8760 OTOOL64=":" 8761 else 8762 case $cross_compiling:$ac_tool_warned in 8763yes:) 8764{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8765$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8766ac_tool_warned=yes ;; 8767esac 8768 OTOOL64=$ac_ct_OTOOL64 8769 fi 8770else 8771 OTOOL64="$ac_cv_prog_OTOOL64" 8772fi 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8801$as_echo_n "checking for -single_module linker flag... " >&6; } 8802if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 8803 $as_echo_n "(cached) " >&6 8804else 8805 lt_cv_apple_cc_single_mod=no 8806 if test -z "${LT_MULTI_MODULE}"; then 8807 # By default we will add the -single_module flag. You can override 8808 # by either setting the environment variable LT_MULTI_MODULE 8809 # non-empty at configure time, or by adding -multi_module to the 8810 # link flags. 8811 rm -rf libconftest.dylib* 8812 echo "int foo(void){return 1;}" > conftest.c 8813 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8814-dynamiclib -Wl,-single_module conftest.c" >&5 8815 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8816 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8817 _lt_result=$? 8818 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 8819 lt_cv_apple_cc_single_mod=yes 8820 else 8821 cat conftest.err >&5 8822 fi 8823 rm -rf libconftest.dylib* 8824 rm -f conftest.* 8825 fi 8826fi 8827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8828$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8830$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8831if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 8832 $as_echo_n "(cached) " >&6 8833else 8834 lt_cv_ld_exported_symbols_list=no 8835 save_LDFLAGS=$LDFLAGS 8836 echo "_main" > conftest.sym 8837 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8839/* end confdefs.h. */ 8840 8841int 8842main () 8843{ 8844 8845 ; 8846 return 0; 8847} 8848_ACEOF 8849if ac_fn_c_try_link "$LINENO"; then : 8850 lt_cv_ld_exported_symbols_list=yes 8851else 8852 lt_cv_ld_exported_symbols_list=no 8853fi 8854rm -f core conftest.err conftest.$ac_objext \ 8855 conftest$ac_exeext conftest.$ac_ext 8856 LDFLAGS="$save_LDFLAGS" 8857 8858fi 8859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8860$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8861 case $host_os in 8862 rhapsody* | darwin1.[012]) 8863 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8864 darwin1.*) 8865 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8866 darwin*) # darwin 5.x on 8867 # if running on 10.5 or later, the deployment target defaults 8868 # to the OS version, if on x86, and 10.4, the deployment 8869 # target defaults to 10.4. Don't you love it? 8870 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8871 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8872 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8873 10.[012]*) 8874 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8875 10.*) 8876 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8877 esac 8878 ;; 8879 esac 8880 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8881 _lt_dar_single_mod='$single_module' 8882 fi 8883 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8884 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8885 else 8886 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 8887 fi 8888 if test "$DSYMUTIL" != ":"; then 8889 _lt_dsymutil='~$DSYMUTIL $lib || :' 8890 else 8891 _lt_dsymutil= 8892 fi 8893 ;; 8894 esac 8895 8896for ac_header in dlfcn.h 8897do : 8898 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8899" 8900if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 8901 cat >>confdefs.h <<_ACEOF 8902#define HAVE_DLFCN_H 1 8903_ACEOF 8904 8905fi 8906 8907done 8908 8909 8910 8911# Set options 8912 8913 8914 8915 enable_dlopen=no 8916 8917 8918 8919 # Check whether --enable-shared was given. 8920if test "${enable_shared+set}" = set; then : 8921 enableval=$enable_shared; p=${PACKAGE-default} 8922 case $enableval in 8923 yes) enable_shared=yes ;; 8924 no) enable_shared=no ;; 8925 *) 8926 enable_shared=no 8927 # Look at the argument we got. We use all the common list separators. 8928 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8929 for pkg in $enableval; do 8930 IFS="$lt_save_ifs" 8931 if test "X$pkg" = "X$p"; then 8932 enable_shared=yes 8933 fi 8934 done 8935 IFS="$lt_save_ifs" 8936 ;; 8937 esac 8938else 8939 enable_shared=yes 8940fi 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 # Check whether --enable-static was given. 8951if test "${enable_static+set}" = set; then : 8952 enableval=$enable_static; p=${PACKAGE-default} 8953 case $enableval in 8954 yes) enable_static=yes ;; 8955 no) enable_static=no ;; 8956 *) 8957 enable_static=no 8958 # Look at the argument we got. We use all the common list separators. 8959 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8960 for pkg in $enableval; do 8961 IFS="$lt_save_ifs" 8962 if test "X$pkg" = "X$p"; then 8963 enable_static=yes 8964 fi 8965 done 8966 IFS="$lt_save_ifs" 8967 ;; 8968 esac 8969else 8970 enable_static=yes 8971fi 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982# Check whether --with-pic was given. 8983if test "${with_pic+set}" = set; then : 8984 withval=$with_pic; pic_mode="$withval" 8985else 8986 pic_mode=default 8987fi 8988 8989 8990test -z "$pic_mode" && pic_mode=default 8991 8992 8993 8994 8995 8996 8997 8998 # Check whether --enable-fast-install was given. 8999if test "${enable_fast_install+set}" = set; then : 9000 enableval=$enable_fast_install; p=${PACKAGE-default} 9001 case $enableval in 9002 yes) enable_fast_install=yes ;; 9003 no) enable_fast_install=no ;; 9004 *) 9005 enable_fast_install=no 9006 # Look at the argument we got. We use all the common list separators. 9007 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9008 for pkg in $enableval; do 9009 IFS="$lt_save_ifs" 9010 if test "X$pkg" = "X$p"; then 9011 enable_fast_install=yes 9012 fi 9013 done 9014 IFS="$lt_save_ifs" 9015 ;; 9016 esac 9017else 9018 enable_fast_install=yes 9019fi 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031# This can be used to rebuild libtool when needed 9032LIBTOOL_DEPS="$ltmain" 9033 9034# Always use our own libtool. 9035LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061test -z "$LN_S" && LN_S="ln -s" 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076if test -n "${ZSH_VERSION+set}" ; then 9077 setopt NO_GLOB_SUBST 9078fi 9079 9080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9081$as_echo_n "checking for objdir... " >&6; } 9082if test "${lt_cv_objdir+set}" = set; then : 9083 $as_echo_n "(cached) " >&6 9084else 9085 rm -f .libs 2>/dev/null 9086mkdir .libs 2>/dev/null 9087if test -d .libs; then 9088 lt_cv_objdir=.libs 9089else 9090 # MS-DOS does not allow filenames that begin with a dot. 9091 lt_cv_objdir=_libs 9092fi 9093rmdir .libs 2>/dev/null 9094fi 9095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9096$as_echo "$lt_cv_objdir" >&6; } 9097objdir=$lt_cv_objdir 9098 9099 9100 9101 9102 9103cat >>confdefs.h <<_ACEOF 9104#define LT_OBJDIR "$lt_cv_objdir/" 9105_ACEOF 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123case $host_os in 9124aix3*) 9125 # AIX sometimes has problems with the GCC collect2 program. For some 9126 # reason, if we set the COLLECT_NAMES environment variable, the problems 9127 # vanish in a puff of smoke. 9128 if test "X${COLLECT_NAMES+set}" != Xset; then 9129 COLLECT_NAMES= 9130 export COLLECT_NAMES 9131 fi 9132 ;; 9133esac 9134 9135# Sed substitution that helps us do robust quoting. It backslashifies 9136# metacharacters that are still active within double-quoted strings. 9137sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 9138 9139# Same as above, but do not quote variable references. 9140double_quote_subst='s/\(["`\\]\)/\\\1/g' 9141 9142# Sed substitution to delay expansion of an escaped shell variable in a 9143# double_quote_subst'ed string. 9144delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 9145 9146# Sed substitution to delay expansion of an escaped single quote. 9147delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 9148 9149# Sed substitution to avoid accidental globbing in evaled expressions 9150no_glob_subst='s/\*/\\\*/g' 9151 9152# Global variables: 9153ofile=libtool 9154can_build_shared=yes 9155 9156# All known linkers require a `.a' archive for static linking (except MSVC, 9157# which needs '.lib'). 9158libext=a 9159 9160with_gnu_ld="$lt_cv_prog_gnu_ld" 9161 9162old_CC="$CC" 9163old_CFLAGS="$CFLAGS" 9164 9165# Set sane defaults for various variables 9166test -z "$CC" && CC=cc 9167test -z "$LTCC" && LTCC=$CC 9168test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9169test -z "$LD" && LD=ld 9170test -z "$ac_objext" && ac_objext=o 9171 9172for cc_temp in $compiler""; do 9173 case $cc_temp in 9174 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9175 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9176 \-*) ;; 9177 *) break;; 9178 esac 9179done 9180cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 9181 9182 9183# Only perform the check for file, if the check method requires it 9184test -z "$MAGIC_CMD" && MAGIC_CMD=file 9185case $deplibs_check_method in 9186file_magic*) 9187 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9189$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9190if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 9191 $as_echo_n "(cached) " >&6 9192else 9193 case $MAGIC_CMD in 9194[\\/*] | ?:[\\/]*) 9195 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 9196 ;; 9197*) 9198 lt_save_MAGIC_CMD="$MAGIC_CMD" 9199 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9200 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9201 for ac_dir in $ac_dummy; do 9202 IFS="$lt_save_ifs" 9203 test -z "$ac_dir" && ac_dir=. 9204 if test -f $ac_dir/${ac_tool_prefix}file; then 9205 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 9206 if test -n "$file_magic_test_file"; then 9207 case $deplibs_check_method in 9208 "file_magic "*) 9209 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9210 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9211 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9212 $EGREP "$file_magic_regex" > /dev/null; then 9213 : 9214 else 9215 cat <<_LT_EOF 1>&2 9216 9217*** Warning: the command libtool uses to detect shared libraries, 9218*** $file_magic_cmd, produces output that libtool cannot recognize. 9219*** The result is that libtool may fail to recognize shared libraries 9220*** as such. This will affect the creation of libtool libraries that 9221*** depend on shared libraries, but programs linked with such libtool 9222*** libraries will work regardless of this problem. Nevertheless, you 9223*** may want to report the problem to your system manager and/or to 9224*** bug-libtool@gnu.org 9225 9226_LT_EOF 9227 fi ;; 9228 esac 9229 fi 9230 break 9231 fi 9232 done 9233 IFS="$lt_save_ifs" 9234 MAGIC_CMD="$lt_save_MAGIC_CMD" 9235 ;; 9236esac 9237fi 9238 9239MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9240if test -n "$MAGIC_CMD"; then 9241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9242$as_echo "$MAGIC_CMD" >&6; } 9243else 9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9245$as_echo "no" >&6; } 9246fi 9247 9248 9249 9250 9251 9252if test -z "$lt_cv_path_MAGIC_CMD"; then 9253 if test -n "$ac_tool_prefix"; then 9254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9255$as_echo_n "checking for file... " >&6; } 9256if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 9257 $as_echo_n "(cached) " >&6 9258else 9259 case $MAGIC_CMD in 9260[\\/*] | ?:[\\/]*) 9261 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 9262 ;; 9263*) 9264 lt_save_MAGIC_CMD="$MAGIC_CMD" 9265 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9266 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9267 for ac_dir in $ac_dummy; do 9268 IFS="$lt_save_ifs" 9269 test -z "$ac_dir" && ac_dir=. 9270 if test -f $ac_dir/file; then 9271 lt_cv_path_MAGIC_CMD="$ac_dir/file" 9272 if test -n "$file_magic_test_file"; then 9273 case $deplibs_check_method in 9274 "file_magic "*) 9275 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9276 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9277 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9278 $EGREP "$file_magic_regex" > /dev/null; then 9279 : 9280 else 9281 cat <<_LT_EOF 1>&2 9282 9283*** Warning: the command libtool uses to detect shared libraries, 9284*** $file_magic_cmd, produces output that libtool cannot recognize. 9285*** The result is that libtool may fail to recognize shared libraries 9286*** as such. This will affect the creation of libtool libraries that 9287*** depend on shared libraries, but programs linked with such libtool 9288*** libraries will work regardless of this problem. Nevertheless, you 9289*** may want to report the problem to your system manager and/or to 9290*** bug-libtool@gnu.org 9291 9292_LT_EOF 9293 fi ;; 9294 esac 9295 fi 9296 break 9297 fi 9298 done 9299 IFS="$lt_save_ifs" 9300 MAGIC_CMD="$lt_save_MAGIC_CMD" 9301 ;; 9302esac 9303fi 9304 9305MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9306if test -n "$MAGIC_CMD"; then 9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9308$as_echo "$MAGIC_CMD" >&6; } 9309else 9310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9311$as_echo "no" >&6; } 9312fi 9313 9314 9315 else 9316 MAGIC_CMD=: 9317 fi 9318fi 9319 9320 fi 9321 ;; 9322esac 9323 9324# Use C for the default configuration in the libtool script 9325 9326lt_save_CC="$CC" 9327ac_ext=c 9328ac_cpp='$CPP $CPPFLAGS' 9329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9331ac_compiler_gnu=$ac_cv_c_compiler_gnu 9332 9333 9334# Source file extension for C test sources. 9335ac_ext=c 9336 9337# Object file extension for compiled C test sources. 9338objext=o 9339objext=$objext 9340 9341# Code to be used in simple compile tests 9342lt_simple_compile_test_code="int some_variable = 0;" 9343 9344# Code to be used in simple link tests 9345lt_simple_link_test_code='int main(){return(0);}' 9346 9347 9348 9349 9350 9351 9352 9353# If no C compiler was specified, use CC. 9354LTCC=${LTCC-"$CC"} 9355 9356# If no C compiler flags were specified, use CFLAGS. 9357LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9358 9359# Allow CC to be a program name with arguments. 9360compiler=$CC 9361 9362# Save the default compiler, since it gets overwritten when the other 9363# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9364compiler_DEFAULT=$CC 9365 9366# save warnings/boilerplate of simple test code 9367ac_outfile=conftest.$ac_objext 9368echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9369eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9370_lt_compiler_boilerplate=`cat conftest.err` 9371$RM conftest* 9372 9373ac_outfile=conftest.$ac_objext 9374echo "$lt_simple_link_test_code" >conftest.$ac_ext 9375eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9376_lt_linker_boilerplate=`cat conftest.err` 9377$RM -r conftest* 9378 9379 9380if test -n "$compiler"; then 9381 9382lt_prog_compiler_no_builtin_flag= 9383 9384if test "$GCC" = yes; then 9385 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 9386 9387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9388$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9389if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 9390 $as_echo_n "(cached) " >&6 9391else 9392 lt_cv_prog_compiler_rtti_exceptions=no 9393 ac_outfile=conftest.$ac_objext 9394 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9395 lt_compiler_flag="-fno-rtti -fno-exceptions" 9396 # Insert the option either (1) after the last *FLAGS variable, or 9397 # (2) before a word containing "conftest.", or (3) at the end. 9398 # Note that $ac_compile itself does not contain backslashes and begins 9399 # with a dollar sign (not a hyphen), so the echo should work correctly. 9400 # The option is referenced via a variable to avoid confusing sed. 9401 lt_compile=`echo "$ac_compile" | $SED \ 9402 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9403 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9404 -e 's:$: $lt_compiler_flag:'` 9405 (eval echo "\"\$as_me:9405: $lt_compile\"" >&5) 9406 (eval "$lt_compile" 2>conftest.err) 9407 ac_status=$? 9408 cat conftest.err >&5 9409 echo "$as_me:9409: \$? = $ac_status" >&5 9410 if (exit $ac_status) && test -s "$ac_outfile"; then 9411 # The compiler can only warn and ignore the option if not recognized 9412 # So say no if there are warnings other than the usual output. 9413 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 9414 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9415 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9416 lt_cv_prog_compiler_rtti_exceptions=yes 9417 fi 9418 fi 9419 $RM conftest* 9420 9421fi 9422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9423$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9424 9425if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 9426 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9427else 9428 : 9429fi 9430 9431fi 9432 9433 9434 9435 9436 9437 9438 lt_prog_compiler_wl= 9439lt_prog_compiler_pic= 9440lt_prog_compiler_static= 9441 9442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9443$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9444 9445 if test "$GCC" = yes; then 9446 lt_prog_compiler_wl='-Wl,' 9447 lt_prog_compiler_static='-static' 9448 9449 case $host_os in 9450 aix*) 9451 # All AIX code is PIC. 9452 if test "$host_cpu" = ia64; then 9453 # AIX 5 now supports IA64 processor 9454 lt_prog_compiler_static='-Bstatic' 9455 fi 9456 ;; 9457 9458 amigaos*) 9459 case $host_cpu in 9460 powerpc) 9461 # see comment about AmigaOS4 .so support 9462 lt_prog_compiler_pic='-fPIC' 9463 ;; 9464 m68k) 9465 # FIXME: we need at least 68020 code to build shared libraries, but 9466 # adding the `-m68020' flag to GCC prevents building anything better, 9467 # like `-m68040'. 9468 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9469 ;; 9470 esac 9471 ;; 9472 9473 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9474 # PIC is the default for these OSes. 9475 ;; 9476 9477 mingw* | cygwin* | pw32* | os2* | cegcc*) 9478 # This hack is so that the source file can tell whether it is being 9479 # built for inclusion in a dll (and should export symbols for example). 9480 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9481 # (--disable-auto-import) libraries 9482 lt_prog_compiler_pic='-DDLL_EXPORT' 9483 ;; 9484 9485 darwin* | rhapsody*) 9486 # PIC is the default on this platform 9487 # Common symbols not allowed in MH_DYLIB files 9488 lt_prog_compiler_pic='-fno-common' 9489 ;; 9490 9491 hpux*) 9492 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9493 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9494 # sets the default TLS model and affects inlining. 9495 case $host_cpu in 9496 hppa*64*) 9497 # +Z the default 9498 ;; 9499 *) 9500 lt_prog_compiler_pic='-fPIC' 9501 ;; 9502 esac 9503 ;; 9504 9505 interix[3-9]*) 9506 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9507 # Instead, we relocate shared libraries at runtime. 9508 ;; 9509 9510 msdosdjgpp*) 9511 # Just because we use GCC doesn't mean we suddenly get shared libraries 9512 # on systems that don't support them. 9513 lt_prog_compiler_can_build_shared=no 9514 enable_shared=no 9515 ;; 9516 9517 *nto* | *qnx*) 9518 # QNX uses GNU C++, but need to define -shared option too, otherwise 9519 # it will coredump. 9520 lt_prog_compiler_pic='-fPIC -shared' 9521 ;; 9522 9523 sysv4*MP*) 9524 if test -d /usr/nec; then 9525 lt_prog_compiler_pic=-Kconform_pic 9526 fi 9527 ;; 9528 9529 *) 9530 lt_prog_compiler_pic='-fPIC' 9531 ;; 9532 esac 9533 else 9534 # PORTME Check for flag to pass linker flags through the system compiler. 9535 case $host_os in 9536 aix*) 9537 lt_prog_compiler_wl='-Wl,' 9538 if test "$host_cpu" = ia64; then 9539 # AIX 5 now supports IA64 processor 9540 lt_prog_compiler_static='-Bstatic' 9541 else 9542 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9543 fi 9544 ;; 9545 9546 mingw* | cygwin* | pw32* | os2* | cegcc*) 9547 # This hack is so that the source file can tell whether it is being 9548 # built for inclusion in a dll (and should export symbols for example). 9549 lt_prog_compiler_pic='-DDLL_EXPORT' 9550 ;; 9551 9552 hpux9* | hpux10* | hpux11*) 9553 lt_prog_compiler_wl='-Wl,' 9554 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9555 # not for PA HP-UX. 9556 case $host_cpu in 9557 hppa*64*|ia64*) 9558 # +Z the default 9559 ;; 9560 *) 9561 lt_prog_compiler_pic='+Z' 9562 ;; 9563 esac 9564 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9565 lt_prog_compiler_static='${wl}-a ${wl}archive' 9566 ;; 9567 9568 irix5* | irix6* | nonstopux*) 9569 lt_prog_compiler_wl='-Wl,' 9570 # PIC (with -KPIC) is the default. 9571 lt_prog_compiler_static='-non_shared' 9572 ;; 9573 9574 linux* | k*bsd*-gnu) 9575 case $cc_basename in 9576 # old Intel for x86_64 which still supported -KPIC. 9577 ecc*) 9578 lt_prog_compiler_wl='-Wl,' 9579 lt_prog_compiler_pic='-KPIC' 9580 lt_prog_compiler_static='-static' 9581 ;; 9582 # icc used to be incompatible with GCC. 9583 # ICC 10 doesn't accept -KPIC any more. 9584 icc* | ifort*) 9585 lt_prog_compiler_wl='-Wl,' 9586 lt_prog_compiler_pic='-fPIC' 9587 lt_prog_compiler_static='-static' 9588 ;; 9589 # Lahey Fortran 8.1. 9590 lf95*) 9591 lt_prog_compiler_wl='-Wl,' 9592 lt_prog_compiler_pic='--shared' 9593 lt_prog_compiler_static='--static' 9594 ;; 9595 pgcc* | pgf77* | pgf90* | pgf95*) 9596 # Portland Group compilers (*not* the Pentium gcc compiler, 9597 # which looks to be a dead project) 9598 lt_prog_compiler_wl='-Wl,' 9599 lt_prog_compiler_pic='-fpic' 9600 lt_prog_compiler_static='-Bstatic' 9601 ;; 9602 ccc*) 9603 lt_prog_compiler_wl='-Wl,' 9604 # All Alpha code is PIC. 9605 lt_prog_compiler_static='-non_shared' 9606 ;; 9607 xl*) 9608 # IBM XL C 8.0/Fortran 10.1 on PPC 9609 lt_prog_compiler_wl='-Wl,' 9610 lt_prog_compiler_pic='-qpic' 9611 lt_prog_compiler_static='-qstaticlink' 9612 ;; 9613 *) 9614 case `$CC -V 2>&1 | sed 5q` in 9615 *Sun\ C*) 9616 # Sun C 5.9 9617 lt_prog_compiler_pic='-KPIC' 9618 lt_prog_compiler_static='-Bstatic' 9619 lt_prog_compiler_wl='-Wl,' 9620 ;; 9621 *Sun\ F*) 9622 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9623 lt_prog_compiler_pic='-KPIC' 9624 lt_prog_compiler_static='-Bstatic' 9625 lt_prog_compiler_wl='' 9626 ;; 9627 esac 9628 ;; 9629 esac 9630 ;; 9631 9632 newsos6) 9633 lt_prog_compiler_pic='-KPIC' 9634 lt_prog_compiler_static='-Bstatic' 9635 ;; 9636 9637 *nto* | *qnx*) 9638 # QNX uses GNU C++, but need to define -shared option too, otherwise 9639 # it will coredump. 9640 lt_prog_compiler_pic='-fPIC -shared' 9641 ;; 9642 9643 osf3* | osf4* | osf5*) 9644 lt_prog_compiler_wl='-Wl,' 9645 # All OSF/1 code is PIC. 9646 lt_prog_compiler_static='-non_shared' 9647 ;; 9648 9649 rdos*) 9650 lt_prog_compiler_static='-non_shared' 9651 ;; 9652 9653 solaris*) 9654 lt_prog_compiler_pic='-KPIC' 9655 lt_prog_compiler_static='-Bstatic' 9656 case $cc_basename in 9657 f77* | f90* | f95*) 9658 lt_prog_compiler_wl='-Qoption ld ';; 9659 *) 9660 lt_prog_compiler_wl='-Wl,';; 9661 esac 9662 ;; 9663 9664 sunos4*) 9665 lt_prog_compiler_wl='-Qoption ld ' 9666 lt_prog_compiler_pic='-PIC' 9667 lt_prog_compiler_static='-Bstatic' 9668 ;; 9669 9670 sysv4 | sysv4.2uw2* | sysv4.3*) 9671 lt_prog_compiler_wl='-Wl,' 9672 lt_prog_compiler_pic='-KPIC' 9673 lt_prog_compiler_static='-Bstatic' 9674 ;; 9675 9676 sysv4*MP*) 9677 if test -d /usr/nec ;then 9678 lt_prog_compiler_pic='-Kconform_pic' 9679 lt_prog_compiler_static='-Bstatic' 9680 fi 9681 ;; 9682 9683 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9684 lt_prog_compiler_wl='-Wl,' 9685 lt_prog_compiler_pic='-KPIC' 9686 lt_prog_compiler_static='-Bstatic' 9687 ;; 9688 9689 unicos*) 9690 lt_prog_compiler_wl='-Wl,' 9691 lt_prog_compiler_can_build_shared=no 9692 ;; 9693 9694 uts4*) 9695 lt_prog_compiler_pic='-pic' 9696 lt_prog_compiler_static='-Bstatic' 9697 ;; 9698 9699 *) 9700 lt_prog_compiler_can_build_shared=no 9701 ;; 9702 esac 9703 fi 9704 9705case $host_os in 9706 # For platforms which do not support PIC, -DPIC is meaningless: 9707 *djgpp*) 9708 lt_prog_compiler_pic= 9709 ;; 9710 *) 9711 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9712 ;; 9713esac 9714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 9715$as_echo "$lt_prog_compiler_pic" >&6; } 9716 9717 9718 9719 9720 9721 9722# 9723# Check to make sure the PIC flag actually works. 9724# 9725if test -n "$lt_prog_compiler_pic"; then 9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9727$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9728if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 9729 $as_echo_n "(cached) " >&6 9730else 9731 lt_cv_prog_compiler_pic_works=no 9732 ac_outfile=conftest.$ac_objext 9733 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9734 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9735 # Insert the option either (1) after the last *FLAGS variable, or 9736 # (2) before a word containing "conftest.", or (3) at the end. 9737 # Note that $ac_compile itself does not contain backslashes and begins 9738 # with a dollar sign (not a hyphen), so the echo should work correctly. 9739 # The option is referenced via a variable to avoid confusing sed. 9740 lt_compile=`echo "$ac_compile" | $SED \ 9741 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9742 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9743 -e 's:$: $lt_compiler_flag:'` 9744 (eval echo "\"\$as_me:9744: $lt_compile\"" >&5) 9745 (eval "$lt_compile" 2>conftest.err) 9746 ac_status=$? 9747 cat conftest.err >&5 9748 echo "$as_me:9748: \$? = $ac_status" >&5 9749 if (exit $ac_status) && test -s "$ac_outfile"; then 9750 # The compiler can only warn and ignore the option if not recognized 9751 # So say no if there are warnings other than the usual output. 9752 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 9753 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9754 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9755 lt_cv_prog_compiler_pic_works=yes 9756 fi 9757 fi 9758 $RM conftest* 9759 9760fi 9761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9762$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9763 9764if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9765 case $lt_prog_compiler_pic in 9766 "" | " "*) ;; 9767 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9768 esac 9769else 9770 lt_prog_compiler_pic= 9771 lt_prog_compiler_can_build_shared=no 9772fi 9773 9774fi 9775 9776 9777 9778 9779 9780 9781# 9782# Check to make sure the static flag actually works. 9783# 9784wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9786$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9787if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 9788 $as_echo_n "(cached) " >&6 9789else 9790 lt_cv_prog_compiler_static_works=no 9791 save_LDFLAGS="$LDFLAGS" 9792 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9793 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9794 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9795 # The linker can only warn and ignore the option if not recognized 9796 # So say no if there are warnings 9797 if test -s conftest.err; then 9798 # Append any errors to the config.log. 9799 cat conftest.err 1>&5 9800 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 9801 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9802 if diff conftest.exp conftest.er2 >/dev/null; then 9803 lt_cv_prog_compiler_static_works=yes 9804 fi 9805 else 9806 lt_cv_prog_compiler_static_works=yes 9807 fi 9808 fi 9809 $RM -r conftest* 9810 LDFLAGS="$save_LDFLAGS" 9811 9812fi 9813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9814$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9815 9816if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9817 : 9818else 9819 lt_prog_compiler_static= 9820fi 9821 9822 9823 9824 9825 9826 9827 9828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9829$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9830if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 9831 $as_echo_n "(cached) " >&6 9832else 9833 lt_cv_prog_compiler_c_o=no 9834 $RM -r conftest 2>/dev/null 9835 mkdir conftest 9836 cd conftest 9837 mkdir out 9838 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9839 9840 lt_compiler_flag="-o out/conftest2.$ac_objext" 9841 # Insert the option either (1) after the last *FLAGS variable, or 9842 # (2) before a word containing "conftest.", or (3) at the end. 9843 # Note that $ac_compile itself does not contain backslashes and begins 9844 # with a dollar sign (not a hyphen), so the echo should work correctly. 9845 lt_compile=`echo "$ac_compile" | $SED \ 9846 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9847 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9848 -e 's:$: $lt_compiler_flag:'` 9849 (eval echo "\"\$as_me:9849: $lt_compile\"" >&5) 9850 (eval "$lt_compile" 2>out/conftest.err) 9851 ac_status=$? 9852 cat out/conftest.err >&5 9853 echo "$as_me:9853: \$? = $ac_status" >&5 9854 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9855 then 9856 # The compiler can only warn and ignore the option if not recognized 9857 # So say no if there are warnings 9858 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 9859 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9860 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9861 lt_cv_prog_compiler_c_o=yes 9862 fi 9863 fi 9864 chmod u+w . 2>&5 9865 $RM conftest* 9866 # SGI C++ compiler will create directory out/ii_files/ for 9867 # template instantiation 9868 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9869 $RM out/* && rmdir out 9870 cd .. 9871 $RM -r conftest 9872 $RM conftest* 9873 9874fi 9875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9876$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9877 9878 9879 9880 9881 9882 9883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9884$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9885if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 9886 $as_echo_n "(cached) " >&6 9887else 9888 lt_cv_prog_compiler_c_o=no 9889 $RM -r conftest 2>/dev/null 9890 mkdir conftest 9891 cd conftest 9892 mkdir out 9893 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9894 9895 lt_compiler_flag="-o out/conftest2.$ac_objext" 9896 # Insert the option either (1) after the last *FLAGS variable, or 9897 # (2) before a word containing "conftest.", or (3) at the end. 9898 # Note that $ac_compile itself does not contain backslashes and begins 9899 # with a dollar sign (not a hyphen), so the echo should work correctly. 9900 lt_compile=`echo "$ac_compile" | $SED \ 9901 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9902 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9903 -e 's:$: $lt_compiler_flag:'` 9904 (eval echo "\"\$as_me:9904: $lt_compile\"" >&5) 9905 (eval "$lt_compile" 2>out/conftest.err) 9906 ac_status=$? 9907 cat out/conftest.err >&5 9908 echo "$as_me:9908: \$? = $ac_status" >&5 9909 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9910 then 9911 # The compiler can only warn and ignore the option if not recognized 9912 # So say no if there are warnings 9913 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 9914 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9915 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9916 lt_cv_prog_compiler_c_o=yes 9917 fi 9918 fi 9919 chmod u+w . 2>&5 9920 $RM conftest* 9921 # SGI C++ compiler will create directory out/ii_files/ for 9922 # template instantiation 9923 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9924 $RM out/* && rmdir out 9925 cd .. 9926 $RM -r conftest 9927 $RM conftest* 9928 9929fi 9930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9931$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9932 9933 9934 9935 9936hard_links="nottested" 9937if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9938 # do not overwrite the value of need_locks provided by the user 9939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9940$as_echo_n "checking if we can lock with hard links... " >&6; } 9941 hard_links=yes 9942 $RM conftest* 9943 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9944 touch conftest.a 9945 ln conftest.a conftest.b 2>&5 || hard_links=no 9946 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9948$as_echo "$hard_links" >&6; } 9949 if test "$hard_links" = no; then 9950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9951$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9952 need_locks=warn 9953 fi 9954else 9955 need_locks=no 9956fi 9957 9958 9959 9960 9961 9962 9963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9964$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9965 9966 runpath_var= 9967 allow_undefined_flag= 9968 always_export_symbols=no 9969 archive_cmds= 9970 archive_expsym_cmds= 9971 compiler_needs_object=no 9972 enable_shared_with_static_runtimes=no 9973 export_dynamic_flag_spec= 9974 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9975 hardcode_automatic=no 9976 hardcode_direct=no 9977 hardcode_direct_absolute=no 9978 hardcode_libdir_flag_spec= 9979 hardcode_libdir_flag_spec_ld= 9980 hardcode_libdir_separator= 9981 hardcode_minus_L=no 9982 hardcode_shlibpath_var=unsupported 9983 inherit_rpath=no 9984 link_all_deplibs=unknown 9985 module_cmds= 9986 module_expsym_cmds= 9987 old_archive_from_new_cmds= 9988 old_archive_from_expsyms_cmds= 9989 thread_safe_flag_spec= 9990 whole_archive_flag_spec= 9991 # include_expsyms should be a list of space-separated symbols to be *always* 9992 # included in the symbol list 9993 include_expsyms= 9994 # exclude_expsyms can be an extended regexp of symbols to exclude 9995 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9996 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9997 # as well as any symbol that contains `d'. 9998 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9999 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10000 # platforms (ab)use it in PIC code, but their linkers get confused if 10001 # the symbol is explicitly referenced. Since portable code cannot 10002 # rely on this symbol name, it's probably fine to never include it in 10003 # preloaded symbol tables. 10004 # Exclude shared library initialization/finalization symbols. 10005 extract_expsyms_cmds= 10006 10007 case $host_os in 10008 cygwin* | mingw* | pw32* | cegcc*) 10009 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10010 # When not using gcc, we currently assume that we are using 10011 # Microsoft Visual C++. 10012 if test "$GCC" != yes; then 10013 with_gnu_ld=no 10014 fi 10015 ;; 10016 interix*) 10017 # we just hope/assume this is gcc and not c89 (= MSVC++) 10018 with_gnu_ld=yes 10019 ;; 10020 openbsd*) 10021 with_gnu_ld=no 10022 ;; 10023 esac 10024 10025 ld_shlibs=yes 10026 if test "$with_gnu_ld" = yes; then 10027 # If archive_cmds runs LD, not CC, wlarc should be empty 10028 wlarc='${wl}' 10029 10030 # Set some defaults for GNU ld with shared library support. These 10031 # are reset later if shared libraries are not supported. Putting them 10032 # here allows them to be overridden if necessary. 10033 runpath_var=LD_RUN_PATH 10034 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10035 export_dynamic_flag_spec='${wl}--export-dynamic' 10036 # ancient GNU ld didn't support --whole-archive et. al. 10037 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10038 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10039 else 10040 whole_archive_flag_spec= 10041 fi 10042 supports_anon_versioning=no 10043 case `$LD -v 2>&1` in 10044 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10045 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10046 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10047 *\ 2.11.*) ;; # other 2.11 versions 10048 *) supports_anon_versioning=yes ;; 10049 esac 10050 10051 # See if GNU ld supports shared libraries. 10052 case $host_os in 10053 aix[3-9]*) 10054 # On AIX/PPC, the GNU linker is very broken 10055 if test "$host_cpu" != ia64; then 10056 ld_shlibs=no 10057 cat <<_LT_EOF 1>&2 10058 10059*** Warning: the GNU linker, at least up to release 2.9.1, is reported 10060*** to be unable to reliably create shared libraries on AIX. 10061*** Therefore, libtool is disabling shared libraries support. If you 10062*** really care for shared libraries, you may want to modify your PATH 10063*** so that a non-GNU linker is found, and then restart. 10064 10065_LT_EOF 10066 fi 10067 ;; 10068 10069 amigaos*) 10070 case $host_cpu in 10071 powerpc) 10072 # see comment about AmigaOS4 .so support 10073 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10074 archive_expsym_cmds='' 10075 ;; 10076 m68k) 10077 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)' 10078 hardcode_libdir_flag_spec='-L$libdir' 10079 hardcode_minus_L=yes 10080 ;; 10081 esac 10082 ;; 10083 10084 beos*) 10085 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10086 allow_undefined_flag=unsupported 10087 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10088 # support --undefined. This deserves some investigation. FIXME 10089 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10090 else 10091 ld_shlibs=no 10092 fi 10093 ;; 10094 10095 cygwin* | mingw* | pw32* | cegcc*) 10096 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10097 # as there is no search path for DLLs. 10098 hardcode_libdir_flag_spec='-L$libdir' 10099 allow_undefined_flag=unsupported 10100 always_export_symbols=no 10101 enable_shared_with_static_runtimes=yes 10102 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10103 10104 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10105 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10106 # If the export-symbols file already is a .def file (1st line 10107 # is EXPORTS), use it as is; otherwise, prepend... 10108 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10109 cp $export_symbols $output_objdir/$soname.def; 10110 else 10111 echo EXPORTS > $output_objdir/$soname.def; 10112 cat $export_symbols >> $output_objdir/$soname.def; 10113 fi~ 10114 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10115 else 10116 ld_shlibs=no 10117 fi 10118 ;; 10119 10120 interix[3-9]*) 10121 hardcode_direct=no 10122 hardcode_shlibpath_var=no 10123 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10124 export_dynamic_flag_spec='${wl}-E' 10125 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10126 # Instead, shared libraries are loaded at an image base (0x10000000 by 10127 # default) and relocated if they conflict, which is a slow very memory 10128 # consuming and fragmenting process. To avoid this, we pick a random, 10129 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10130 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10131 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10132 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10133 ;; 10134 10135 gnu* | linux* | tpf* | k*bsd*-gnu) 10136 tmp_diet=no 10137 if test "$host_os" = linux-dietlibc; then 10138 case $cc_basename in 10139 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10140 esac 10141 fi 10142 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10143 && test "$tmp_diet" = no 10144 then 10145 tmp_addflag= 10146 tmp_sharedflag='-shared' 10147 case $cc_basename,$host_cpu in 10148 pgcc*) # Portland Group C compiler 10149 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 10150 tmp_addflag=' $pic_flag' 10151 ;; 10152 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 10153 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 10154 tmp_addflag=' $pic_flag -Mnomain' ;; 10155 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10156 tmp_addflag=' -i_dynamic' ;; 10157 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10158 tmp_addflag=' -i_dynamic -nofor_main' ;; 10159 ifc* | ifort*) # Intel Fortran compiler 10160 tmp_addflag=' -nofor_main' ;; 10161 lf95*) # Lahey Fortran 8.1 10162 whole_archive_flag_spec= 10163 tmp_sharedflag='--shared' ;; 10164 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10165 tmp_sharedflag='-qmkshrobj' 10166 tmp_addflag= ;; 10167 esac 10168 case `$CC -V 2>&1 | sed 5q` in 10169 *Sun\ C*) # Sun C 5.9 10170 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 10171 compiler_needs_object=yes 10172 tmp_sharedflag='-G' ;; 10173 *Sun\ F*) # Sun Fortran 8.3 10174 tmp_sharedflag='-G' ;; 10175 esac 10176 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10177 10178 if test "x$supports_anon_versioning" = xyes; then 10179 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10180 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10181 echo "local: *; };" >> $output_objdir/$libname.ver~ 10182 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 10183 fi 10184 10185 case $cc_basename in 10186 xlf*) 10187 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10188 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10189 hardcode_libdir_flag_spec= 10190 hardcode_libdir_flag_spec_ld='-rpath $libdir' 10191 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 10192 if test "x$supports_anon_versioning" = xyes; then 10193 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10194 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10195 echo "local: *; };" >> $output_objdir/$libname.ver~ 10196 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10197 fi 10198 ;; 10199 esac 10200 else 10201 ld_shlibs=no 10202 fi 10203 ;; 10204 10205 netbsd*) 10206 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10207 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10208 wlarc= 10209 else 10210 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10211 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10212 fi 10213 ;; 10214 10215 solaris*) 10216 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10217 ld_shlibs=no 10218 cat <<_LT_EOF 1>&2 10219 10220*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10221*** create shared libraries on Solaris systems. Therefore, libtool 10222*** is disabling shared libraries support. We urge you to upgrade GNU 10223*** binutils to release 2.9.1 or newer. Another option is to modify 10224*** your PATH or compiler configuration so that the native linker is 10225*** used, and then restart. 10226 10227_LT_EOF 10228 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10229 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10230 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10231 else 10232 ld_shlibs=no 10233 fi 10234 ;; 10235 10236 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10237 case `$LD -v 2>&1` in 10238 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10239 ld_shlibs=no 10240 cat <<_LT_EOF 1>&2 10241 10242*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 10243*** reliably create shared libraries on SCO systems. Therefore, libtool 10244*** is disabling shared libraries support. We urge you to upgrade GNU 10245*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10246*** your PATH or compiler configuration so that the native linker is 10247*** used, and then restart. 10248 10249_LT_EOF 10250 ;; 10251 *) 10252 # For security reasons, it is highly recommended that you always 10253 # use absolute paths for naming shared libraries, and exclude the 10254 # DT_RUNPATH tag from executables and libraries. But doing so 10255 # requires that you compile everything twice, which is a pain. 10256 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10257 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10258 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10259 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10260 else 10261 ld_shlibs=no 10262 fi 10263 ;; 10264 esac 10265 ;; 10266 10267 sunos4*) 10268 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10269 wlarc= 10270 hardcode_direct=yes 10271 hardcode_shlibpath_var=no 10272 ;; 10273 10274 *) 10275 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10276 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10277 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10278 else 10279 ld_shlibs=no 10280 fi 10281 ;; 10282 esac 10283 10284 if test "$ld_shlibs" = no; then 10285 runpath_var= 10286 hardcode_libdir_flag_spec= 10287 export_dynamic_flag_spec= 10288 whole_archive_flag_spec= 10289 fi 10290 else 10291 # PORTME fill in a description of your system's linker (not GNU ld) 10292 case $host_os in 10293 aix3*) 10294 allow_undefined_flag=unsupported 10295 always_export_symbols=yes 10296 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' 10297 # Note: this linker hardcodes the directories in LIBPATH if there 10298 # are no directories specified by -L. 10299 hardcode_minus_L=yes 10300 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 10301 # Neither direct hardcoding nor static linking is supported with a 10302 # broken collect2. 10303 hardcode_direct=unsupported 10304 fi 10305 ;; 10306 10307 aix[4-9]*) 10308 if test "$host_cpu" = ia64; then 10309 # On IA64, the linker does run time linking by default, so we don't 10310 # have to do anything special. 10311 aix_use_runtimelinking=no 10312 exp_sym_flag='-Bexport' 10313 no_entry_flag="" 10314 else 10315 # If we're using GNU nm, then we don't want the "-C" option. 10316 # -C means demangle to AIX nm, but means don't demangle with GNU nm 10317 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10318 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 10319 else 10320 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 10321 fi 10322 aix_use_runtimelinking=no 10323 10324 # Test if we are trying to use run time linking or normal 10325 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10326 # need to do runtime linking. 10327 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10328 for ld_flag in $LDFLAGS; do 10329 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 10330 aix_use_runtimelinking=yes 10331 break 10332 fi 10333 done 10334 ;; 10335 esac 10336 10337 exp_sym_flag='-bexport' 10338 no_entry_flag='-bnoentry' 10339 fi 10340 10341 # When large executables or shared objects are built, AIX ld can 10342 # have problems creating the table of contents. If linking a library 10343 # or program results in "error TOC overflow" add -mminimal-toc to 10344 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10345 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10346 10347 archive_cmds='' 10348 hardcode_direct=yes 10349 hardcode_direct_absolute=yes 10350 hardcode_libdir_separator=':' 10351 link_all_deplibs=yes 10352 file_list_spec='${wl}-f,' 10353 10354 if test "$GCC" = yes; then 10355 case $host_os in aix4.[012]|aix4.[012].*) 10356 # We only want to do this on AIX 4.2 and lower, the check 10357 # below for broken collect2 doesn't work under 4.3+ 10358 collect2name=`${CC} -print-prog-name=collect2` 10359 if test -f "$collect2name" && 10360 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10361 then 10362 # We have reworked collect2 10363 : 10364 else 10365 # We have old collect2 10366 hardcode_direct=unsupported 10367 # It fails to find uninstalled libraries when the uninstalled 10368 # path is not listed in the libpath. Setting hardcode_minus_L 10369 # to unsupported forces relinking 10370 hardcode_minus_L=yes 10371 hardcode_libdir_flag_spec='-L$libdir' 10372 hardcode_libdir_separator= 10373 fi 10374 ;; 10375 esac 10376 shared_flag='-shared' 10377 if test "$aix_use_runtimelinking" = yes; then 10378 shared_flag="$shared_flag "'${wl}-G' 10379 fi 10380 else 10381 # not using gcc 10382 if test "$host_cpu" = ia64; then 10383 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10384 # chokes on -Wl,-G. The following line is correct: 10385 shared_flag='-G' 10386 else 10387 if test "$aix_use_runtimelinking" = yes; then 10388 shared_flag='${wl}-G' 10389 else 10390 shared_flag='${wl}-bM:SRE' 10391 fi 10392 fi 10393 fi 10394 10395 export_dynamic_flag_spec='${wl}-bexpall' 10396 # It seems that -bexpall does not export symbols beginning with 10397 # underscore (_), so it is better to generate a list of symbols to export. 10398 always_export_symbols=yes 10399 if test "$aix_use_runtimelinking" = yes; then 10400 # Warning - without using the other runtime loading flags (-brtl), 10401 # -berok will link without error, but may produce a broken library. 10402 allow_undefined_flag='-berok' 10403 # Determine the default libpath from the value encoded in an 10404 # empty executable. 10405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10406/* end confdefs.h. */ 10407 10408int 10409main () 10410{ 10411 10412 ; 10413 return 0; 10414} 10415_ACEOF 10416if ac_fn_c_try_link "$LINENO"; then : 10417 10418lt_aix_libpath_sed=' 10419 /Import File Strings/,/^$/ { 10420 /^0/ { 10421 s/^0 *\(.*\)$/\1/ 10422 p 10423 } 10424 }' 10425aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10426# Check for a 64-bit object if we didn't find anything. 10427if test -z "$aix_libpath"; then 10428 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10429fi 10430fi 10431rm -f core conftest.err conftest.$ac_objext \ 10432 conftest$ac_exeext conftest.$ac_ext 10433if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10434 10435 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10436 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 10437 else 10438 if test "$host_cpu" = ia64; then 10439 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 10440 allow_undefined_flag="-z nodefs" 10441 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 10442 else 10443 # Determine the default libpath from the value encoded in an 10444 # empty executable. 10445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10446/* end confdefs.h. */ 10447 10448int 10449main () 10450{ 10451 10452 ; 10453 return 0; 10454} 10455_ACEOF 10456if ac_fn_c_try_link "$LINENO"; then : 10457 10458lt_aix_libpath_sed=' 10459 /Import File Strings/,/^$/ { 10460 /^0/ { 10461 s/^0 *\(.*\)$/\1/ 10462 p 10463 } 10464 }' 10465aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10466# Check for a 64-bit object if we didn't find anything. 10467if test -z "$aix_libpath"; then 10468 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10469fi 10470fi 10471rm -f core conftest.err conftest.$ac_objext \ 10472 conftest$ac_exeext conftest.$ac_ext 10473if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10474 10475 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10476 # Warning - without using the other run time loading flags, 10477 # -berok will link without error, but may produce a broken library. 10478 no_undefined_flag=' ${wl}-bernotok' 10479 allow_undefined_flag=' ${wl}-berok' 10480 # Exported symbols can be pulled into shared objects from archives 10481 whole_archive_flag_spec='$convenience' 10482 archive_cmds_need_lc=yes 10483 # This is similar to how AIX traditionally builds its shared libraries. 10484 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 10485 fi 10486 fi 10487 ;; 10488 10489 amigaos*) 10490 case $host_cpu in 10491 powerpc) 10492 # see comment about AmigaOS4 .so support 10493 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10494 archive_expsym_cmds='' 10495 ;; 10496 m68k) 10497 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)' 10498 hardcode_libdir_flag_spec='-L$libdir' 10499 hardcode_minus_L=yes 10500 ;; 10501 esac 10502 ;; 10503 10504 bsdi[45]*) 10505 export_dynamic_flag_spec=-rdynamic 10506 ;; 10507 10508 cygwin* | mingw* | pw32* | cegcc*) 10509 # When not using gcc, we currently assume that we are using 10510 # Microsoft Visual C++. 10511 # hardcode_libdir_flag_spec is actually meaningless, as there is 10512 # no search path for DLLs. 10513 hardcode_libdir_flag_spec=' ' 10514 allow_undefined_flag=unsupported 10515 # Tell ltmain to make .lib files, not .a files. 10516 libext=lib 10517 # Tell ltmain to make .dll files, not .so files. 10518 shrext_cmds=".dll" 10519 # FIXME: Setting linknames here is a bad hack. 10520 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 10521 # The linker will automatically build a .lib file if we build a DLL. 10522 old_archive_from_new_cmds='true' 10523 # FIXME: Should let the user specify the lib program. 10524 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10525 fix_srcfile_path='`cygpath -w "$srcfile"`' 10526 enable_shared_with_static_runtimes=yes 10527 ;; 10528 10529 darwin* | rhapsody*) 10530 10531 10532 archive_cmds_need_lc=no 10533 hardcode_direct=no 10534 hardcode_automatic=yes 10535 hardcode_shlibpath_var=unsupported 10536 whole_archive_flag_spec='' 10537 link_all_deplibs=yes 10538 allow_undefined_flag="$_lt_dar_allow_undefined" 10539 case $cc_basename in 10540 ifort*) _lt_dar_can_shared=yes ;; 10541 *) _lt_dar_can_shared=$GCC ;; 10542 esac 10543 if test "$_lt_dar_can_shared" = "yes"; then 10544 output_verbose_link_cmd=echo 10545 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 10546 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 10547 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 10548 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 10549 10550 else 10551 ld_shlibs=no 10552 fi 10553 10554 ;; 10555 10556 dgux*) 10557 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10558 hardcode_libdir_flag_spec='-L$libdir' 10559 hardcode_shlibpath_var=no 10560 ;; 10561 10562 freebsd1*) 10563 ld_shlibs=no 10564 ;; 10565 10566 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10567 # support. Future versions do this automatically, but an explicit c++rt0.o 10568 # does not break anything, and helps significantly (at the cost of a little 10569 # extra space). 10570 freebsd2.2*) 10571 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10572 hardcode_libdir_flag_spec='-R$libdir' 10573 hardcode_direct=yes 10574 hardcode_shlibpath_var=no 10575 ;; 10576 10577 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10578 freebsd2*) 10579 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10580 hardcode_direct=yes 10581 hardcode_minus_L=yes 10582 hardcode_shlibpath_var=no 10583 ;; 10584 10585 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10586 freebsd* | dragonfly*) 10587 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 10588 hardcode_libdir_flag_spec='-R$libdir' 10589 hardcode_direct=yes 10590 hardcode_shlibpath_var=no 10591 ;; 10592 10593 hpux9*) 10594 if test "$GCC" = yes; then 10595 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10596 else 10597 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' 10598 fi 10599 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10600 hardcode_libdir_separator=: 10601 hardcode_direct=yes 10602 10603 # hardcode_minus_L: Not really in the search PATH, 10604 # but as the default location of the library. 10605 hardcode_minus_L=yes 10606 export_dynamic_flag_spec='${wl}-E' 10607 ;; 10608 10609 hpux10*) 10610 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 10611 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10612 else 10613 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10614 fi 10615 if test "$with_gnu_ld" = no; then 10616 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10617 hardcode_libdir_flag_spec_ld='+b $libdir' 10618 hardcode_libdir_separator=: 10619 hardcode_direct=yes 10620 hardcode_direct_absolute=yes 10621 export_dynamic_flag_spec='${wl}-E' 10622 # hardcode_minus_L: Not really in the search PATH, 10623 # but as the default location of the library. 10624 hardcode_minus_L=yes 10625 fi 10626 ;; 10627 10628 hpux11*) 10629 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 10630 case $host_cpu in 10631 hppa*64*) 10632 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10633 ;; 10634 ia64*) 10635 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10636 ;; 10637 *) 10638 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10639 ;; 10640 esac 10641 else 10642 case $host_cpu in 10643 hppa*64*) 10644 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10645 ;; 10646 ia64*) 10647 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10648 ;; 10649 *) 10650 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10651 ;; 10652 esac 10653 fi 10654 if test "$with_gnu_ld" = no; then 10655 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10656 hardcode_libdir_separator=: 10657 10658 case $host_cpu in 10659 hppa*64*|ia64*) 10660 hardcode_direct=no 10661 hardcode_shlibpath_var=no 10662 ;; 10663 *) 10664 hardcode_direct=yes 10665 hardcode_direct_absolute=yes 10666 export_dynamic_flag_spec='${wl}-E' 10667 10668 # hardcode_minus_L: Not really in the search PATH, 10669 # but as the default location of the library. 10670 hardcode_minus_L=yes 10671 ;; 10672 esac 10673 fi 10674 ;; 10675 10676 irix5* | irix6* | nonstopux*) 10677 if test "$GCC" = yes; then 10678 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10679 # Try to use the -exported_symbol ld option, if it does not 10680 # work, assume that -exports_file does not work either and 10681 # implicitly export all symbols. 10682 save_LDFLAGS="$LDFLAGS" 10683 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10685/* end confdefs.h. */ 10686int foo(void) {} 10687_ACEOF 10688if ac_fn_c_try_link "$LINENO"; then : 10689 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 10690 10691fi 10692rm -f core conftest.err conftest.$ac_objext \ 10693 conftest$ac_exeext conftest.$ac_ext 10694 LDFLAGS="$save_LDFLAGS" 10695 else 10696 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 10697 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 10698 fi 10699 archive_cmds_need_lc='no' 10700 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10701 hardcode_libdir_separator=: 10702 inherit_rpath=yes 10703 link_all_deplibs=yes 10704 ;; 10705 10706 netbsd*) 10707 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10708 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10709 else 10710 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10711 fi 10712 hardcode_libdir_flag_spec='-R$libdir' 10713 hardcode_direct=yes 10714 hardcode_shlibpath_var=no 10715 ;; 10716 10717 newsos6) 10718 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10719 hardcode_direct=yes 10720 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10721 hardcode_libdir_separator=: 10722 hardcode_shlibpath_var=no 10723 ;; 10724 10725 *nto* | *qnx*) 10726 ;; 10727 10728 openbsd*) 10729 if test -f /usr/libexec/ld.so; then 10730 hardcode_direct=yes 10731 hardcode_shlibpath_var=no 10732 hardcode_direct_absolute=yes 10733 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10734 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10735 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10736 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10737 export_dynamic_flag_spec='${wl}-E' 10738 else 10739 case $host_os in 10740 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10741 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10742 hardcode_libdir_flag_spec='-R$libdir' 10743 ;; 10744 *) 10745 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10746 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10747 ;; 10748 esac 10749 fi 10750 else 10751 ld_shlibs=no 10752 fi 10753 ;; 10754 10755 os2*) 10756 hardcode_libdir_flag_spec='-L$libdir' 10757 hardcode_minus_L=yes 10758 allow_undefined_flag=unsupported 10759 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' 10760 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10761 ;; 10762 10763 osf3*) 10764 if test "$GCC" = yes; then 10765 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10766 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10767 else 10768 allow_undefined_flag=' -expect_unresolved \*' 10769 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 10770 fi 10771 archive_cmds_need_lc='no' 10772 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10773 hardcode_libdir_separator=: 10774 ;; 10775 10776 osf4* | osf5*) # as osf3* with the addition of -msym flag 10777 if test "$GCC" = yes; then 10778 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10779 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10780 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10781 else 10782 allow_undefined_flag=' -expect_unresolved \*' 10783 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 10784 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 10785 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 10786 10787 # Both c and cxx compiler support -rpath directly 10788 hardcode_libdir_flag_spec='-rpath $libdir' 10789 fi 10790 archive_cmds_need_lc='no' 10791 hardcode_libdir_separator=: 10792 ;; 10793 10794 solaris*) 10795 no_undefined_flag=' -z defs' 10796 if test "$GCC" = yes; then 10797 wlarc='${wl}' 10798 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10799 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10800 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10801 else 10802 case `$CC -V 2>&1` in 10803 *"Compilers 5.0"*) 10804 wlarc='' 10805 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10806 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10807 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10808 ;; 10809 *) 10810 wlarc='${wl}' 10811 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10812 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10813 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10814 ;; 10815 esac 10816 fi 10817 hardcode_libdir_flag_spec='-R$libdir' 10818 hardcode_shlibpath_var=no 10819 case $host_os in 10820 solaris2.[0-5] | solaris2.[0-5].*) ;; 10821 *) 10822 # The compiler driver will combine and reorder linker options, 10823 # but understands `-z linker_flag'. GCC discards it without `$wl', 10824 # but is careful enough not to reorder. 10825 # Supported since Solaris 2.6 (maybe 2.5.1?) 10826 if test "$GCC" = yes; then 10827 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10828 else 10829 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10830 fi 10831 ;; 10832 esac 10833 link_all_deplibs=yes 10834 ;; 10835 10836 sunos4*) 10837 if test "x$host_vendor" = xsequent; then 10838 # Use $CC to link under sequent, because it throws in some extra .o 10839 # files that make .init and .fini sections work. 10840 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10841 else 10842 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10843 fi 10844 hardcode_libdir_flag_spec='-L$libdir' 10845 hardcode_direct=yes 10846 hardcode_minus_L=yes 10847 hardcode_shlibpath_var=no 10848 ;; 10849 10850 sysv4) 10851 case $host_vendor in 10852 sni) 10853 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10854 hardcode_direct=yes # is this really true??? 10855 ;; 10856 siemens) 10857 ## LD is ld it makes a PLAMLIB 10858 ## CC just makes a GrossModule. 10859 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10860 reload_cmds='$CC -r -o $output$reload_objs' 10861 hardcode_direct=no 10862 ;; 10863 motorola) 10864 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10865 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10866 ;; 10867 esac 10868 runpath_var='LD_RUN_PATH' 10869 hardcode_shlibpath_var=no 10870 ;; 10871 10872 sysv4.3*) 10873 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10874 hardcode_shlibpath_var=no 10875 export_dynamic_flag_spec='-Bexport' 10876 ;; 10877 10878 sysv4*MP*) 10879 if test -d /usr/nec; then 10880 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10881 hardcode_shlibpath_var=no 10882 runpath_var=LD_RUN_PATH 10883 hardcode_runpath_var=yes 10884 ld_shlibs=yes 10885 fi 10886 ;; 10887 10888 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10889 no_undefined_flag='${wl}-z,text' 10890 archive_cmds_need_lc=no 10891 hardcode_shlibpath_var=no 10892 runpath_var='LD_RUN_PATH' 10893 10894 if test "$GCC" = yes; then 10895 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10896 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10897 else 10898 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10899 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10900 fi 10901 ;; 10902 10903 sysv5* | sco3.2v5* | sco5v6*) 10904 # Note: We can NOT use -z defs as we might desire, because we do not 10905 # link with -lc, and that would cause any symbols used from libc to 10906 # always be unresolved, which means just about no library would 10907 # ever link correctly. If we're not using GNU ld we use -z text 10908 # though, which does catch some bad symbols but isn't as heavy-handed 10909 # as -z defs. 10910 no_undefined_flag='${wl}-z,text' 10911 allow_undefined_flag='${wl}-z,nodefs' 10912 archive_cmds_need_lc=no 10913 hardcode_shlibpath_var=no 10914 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10915 hardcode_libdir_separator=':' 10916 link_all_deplibs=yes 10917 export_dynamic_flag_spec='${wl}-Bexport' 10918 runpath_var='LD_RUN_PATH' 10919 10920 if test "$GCC" = yes; then 10921 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10922 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10923 else 10924 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10925 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10926 fi 10927 ;; 10928 10929 uts4*) 10930 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10931 hardcode_libdir_flag_spec='-L$libdir' 10932 hardcode_shlibpath_var=no 10933 ;; 10934 10935 *) 10936 ld_shlibs=no 10937 ;; 10938 esac 10939 10940 if test x$host_vendor = xsni; then 10941 case $host in 10942 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10943 export_dynamic_flag_spec='${wl}-Blargedynsym' 10944 ;; 10945 esac 10946 fi 10947 fi 10948 10949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10950$as_echo "$ld_shlibs" >&6; } 10951test "$ld_shlibs" = no && can_build_shared=no 10952 10953with_gnu_ld=$with_gnu_ld 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969# 10970# Do we need to explicitly link libc? 10971# 10972case "x$archive_cmds_need_lc" in 10973x|xyes) 10974 # Assume -lc should be added 10975 archive_cmds_need_lc=yes 10976 10977 if test "$enable_shared" = yes && test "$GCC" = yes; then 10978 case $archive_cmds in 10979 *'~'*) 10980 # FIXME: we may have to deal with multi-command sequences. 10981 ;; 10982 '$CC '*) 10983 # Test whether the compiler implicitly links with -lc since on some 10984 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10985 # to ld, don't add -lc before -lgcc. 10986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10987$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10988 $RM conftest* 10989 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10990 10991 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10992 (eval $ac_compile) 2>&5 10993 ac_status=$? 10994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10995 test $ac_status = 0; } 2>conftest.err; then 10996 soname=conftest 10997 lib=conftest 10998 libobjs=conftest.$ac_objext 10999 deplibs= 11000 wl=$lt_prog_compiler_wl 11001 pic_flag=$lt_prog_compiler_pic 11002 compiler_flags=-v 11003 linker_flags=-v 11004 verstring= 11005 output_objdir=. 11006 libname=conftest 11007 lt_save_allow_undefined_flag=$allow_undefined_flag 11008 allow_undefined_flag= 11009 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11010 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11011 ac_status=$? 11012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11013 test $ac_status = 0; } 11014 then 11015 archive_cmds_need_lc=no 11016 else 11017 archive_cmds_need_lc=yes 11018 fi 11019 allow_undefined_flag=$lt_save_allow_undefined_flag 11020 else 11021 cat conftest.err 1>&5 11022 fi 11023 $RM conftest* 11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 11025$as_echo "$archive_cmds_need_lc" >&6; } 11026 ;; 11027 esac 11028 fi 11029 ;; 11030esac 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11189$as_echo_n "checking dynamic linker characteristics... " >&6; } 11190 11191if test "$GCC" = yes; then 11192 case $host_os in 11193 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 11194 *) lt_awk_arg="/^libraries:/" ;; 11195 esac 11196 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11197 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 11198 # if the path contains ";" then we assume it to be the separator 11199 # otherwise default to the standard path separator (i.e. ":") - it is 11200 # assumed that no part of a normal pathname contains ";" but that should 11201 # okay in the real world where ";" in dirpaths is itself problematic. 11202 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 11203 else 11204 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11205 fi 11206 # Ok, now we have the path, separated by spaces, we can step through it 11207 # and add multilib dir if necessary. 11208 lt_tmp_lt_search_path_spec= 11209 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11210 for lt_sys_path in $lt_search_path_spec; do 11211 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 11212 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 11213 else 11214 test -d "$lt_sys_path" && \ 11215 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11216 fi 11217 done 11218 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 11219BEGIN {RS=" "; FS="/|\n";} { 11220 lt_foo=""; 11221 lt_count=0; 11222 for (lt_i = NF; lt_i > 0; lt_i--) { 11223 if ($lt_i != "" && $lt_i != ".") { 11224 if ($lt_i == "..") { 11225 lt_count++; 11226 } else { 11227 if (lt_count == 0) { 11228 lt_foo="/" $lt_i lt_foo; 11229 } else { 11230 lt_count--; 11231 } 11232 } 11233 } 11234 } 11235 if (lt_foo != "") { lt_freq[lt_foo]++; } 11236 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11237}'` 11238 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 11239else 11240 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11241fi 11242library_names_spec= 11243libname_spec='lib$name' 11244soname_spec= 11245shrext_cmds=".so" 11246postinstall_cmds= 11247postuninstall_cmds= 11248finish_cmds= 11249finish_eval= 11250shlibpath_var= 11251shlibpath_overrides_runpath=unknown 11252version_type=none 11253dynamic_linker="$host_os ld.so" 11254sys_lib_dlsearch_path_spec="/lib /usr/lib" 11255need_lib_prefix=unknown 11256hardcode_into_libs=no 11257 11258# when you set need_version to no, make sure it does not cause -set_version 11259# flags to be left without arguments 11260need_version=unknown 11261 11262case $host_os in 11263aix3*) 11264 version_type=linux 11265 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11266 shlibpath_var=LIBPATH 11267 11268 # AIX 3 has no versioning support, so we append a major version to the name. 11269 soname_spec='${libname}${release}${shared_ext}$major' 11270 ;; 11271 11272aix[4-9]*) 11273 version_type=linux 11274 need_lib_prefix=no 11275 need_version=no 11276 hardcode_into_libs=yes 11277 if test "$host_cpu" = ia64; then 11278 # AIX 5 supports IA64 11279 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11280 shlibpath_var=LD_LIBRARY_PATH 11281 else 11282 # With GCC up to 2.95.x, collect2 would create an import file 11283 # for dependence libraries. The import file would start with 11284 # the line `#! .'. This would cause the generated library to 11285 # depend on `.', always an invalid library. This was fixed in 11286 # development snapshots of GCC prior to 3.0. 11287 case $host_os in 11288 aix4 | aix4.[01] | aix4.[01].*) 11289 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11290 echo ' yes ' 11291 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 11292 : 11293 else 11294 can_build_shared=no 11295 fi 11296 ;; 11297 esac 11298 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11299 # soname into executable. Probably we can add versioning support to 11300 # collect2, so additional links can be useful in future. 11301 if test "$aix_use_runtimelinking" = yes; then 11302 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11303 # instead of lib<name>.a to let people know that these are not 11304 # typical AIX shared libraries. 11305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11306 else 11307 # We preserve .a as extension for shared libraries through AIX4.2 11308 # and later when we are not doing run time linking. 11309 library_names_spec='${libname}${release}.a $libname.a' 11310 soname_spec='${libname}${release}${shared_ext}$major' 11311 fi 11312 shlibpath_var=LIBPATH 11313 fi 11314 ;; 11315 11316amigaos*) 11317 case $host_cpu in 11318 powerpc) 11319 # Since July 2007 AmigaOS4 officially supports .so libraries. 11320 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11322 ;; 11323 m68k) 11324 library_names_spec='$libname.ixlibrary $libname.a' 11325 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11326 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' 11327 ;; 11328 esac 11329 ;; 11330 11331beos*) 11332 library_names_spec='${libname}${shared_ext}' 11333 dynamic_linker="$host_os ld.so" 11334 shlibpath_var=LIBRARY_PATH 11335 ;; 11336 11337bsdi[45]*) 11338 version_type=linux 11339 need_version=no 11340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11341 soname_spec='${libname}${release}${shared_ext}$major' 11342 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11343 shlibpath_var=LD_LIBRARY_PATH 11344 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11345 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11346 # the default ld.so.conf also contains /usr/contrib/lib and 11347 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11348 # libtool to hard-code these into programs 11349 ;; 11350 11351cygwin* | mingw* | pw32* | cegcc*) 11352 version_type=windows 11353 shrext_cmds=".dll" 11354 need_version=no 11355 need_lib_prefix=no 11356 11357 case $GCC,$host_os in 11358 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 11359 library_names_spec='$libname.dll.a' 11360 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11361 postinstall_cmds='base_file=`basename \${file}`~ 11362 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11363 dldir=$destdir/`dirname \$dlpath`~ 11364 test -d \$dldir || mkdir -p \$dldir~ 11365 $install_prog $dir/$dlname \$dldir/$dlname~ 11366 chmod a+x \$dldir/$dlname~ 11367 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11368 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11369 fi' 11370 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11371 dlpath=$dir/\$dldll~ 11372 $RM \$dlpath' 11373 shlibpath_overrides_runpath=yes 11374 11375 case $host_os in 11376 cygwin*) 11377 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11378 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11379 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 11380 ;; 11381 mingw* | cegcc*) 11382 # MinGW DLLs use traditional 'lib' prefix 11383 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11384 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11385 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11386 # It is most probably a Windows format PATH printed by 11387 # mingw gcc, but we are running on Cygwin. Gcc prints its search 11388 # path with ; separators, and with drive letters. We can handle the 11389 # drive letters (cygwin fileutils understands them), so leave them, 11390 # especially as we might pass files found there to a mingw objdump, 11391 # which wouldn't understand a cygwinified path. Ahh. 11392 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11393 else 11394 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11395 fi 11396 ;; 11397 pw32*) 11398 # pw32 DLLs use 'pw' prefix rather than 'lib' 11399 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11400 ;; 11401 esac 11402 ;; 11403 11404 *) 11405 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11406 ;; 11407 esac 11408 dynamic_linker='Win32 ld.exe' 11409 # FIXME: first we should search . and the directory the executable is in 11410 shlibpath_var=PATH 11411 ;; 11412 11413darwin* | rhapsody*) 11414 dynamic_linker="$host_os dyld" 11415 version_type=darwin 11416 need_lib_prefix=no 11417 need_version=no 11418 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11419 soname_spec='${libname}${release}${major}$shared_ext' 11420 shlibpath_overrides_runpath=yes 11421 shlibpath_var=DYLD_LIBRARY_PATH 11422 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11423 11424 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11425 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11426 ;; 11427 11428dgux*) 11429 version_type=linux 11430 need_lib_prefix=no 11431 need_version=no 11432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11433 soname_spec='${libname}${release}${shared_ext}$major' 11434 shlibpath_var=LD_LIBRARY_PATH 11435 ;; 11436 11437freebsd1*) 11438 dynamic_linker=no 11439 ;; 11440 11441freebsd* | dragonfly*) 11442 # DragonFly does not have aout. When/if they implement a new 11443 # versioning mechanism, adjust this. 11444 if test -x /usr/bin/objformat; then 11445 objformat=`/usr/bin/objformat` 11446 else 11447 case $host_os in 11448 freebsd[123]*) objformat=aout ;; 11449 *) objformat=elf ;; 11450 esac 11451 fi 11452 version_type=freebsd-$objformat 11453 case $version_type in 11454 freebsd-elf*) 11455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11456 need_version=no 11457 need_lib_prefix=no 11458 ;; 11459 freebsd-*) 11460 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11461 need_version=yes 11462 ;; 11463 esac 11464 shlibpath_var=LD_LIBRARY_PATH 11465 case $host_os in 11466 freebsd2*) 11467 shlibpath_overrides_runpath=yes 11468 ;; 11469 freebsd3.[01]* | freebsdelf3.[01]*) 11470 shlibpath_overrides_runpath=yes 11471 hardcode_into_libs=yes 11472 ;; 11473 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11474 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11475 shlibpath_overrides_runpath=no 11476 hardcode_into_libs=yes 11477 ;; 11478 *) # from 4.6 on, and DragonFly 11479 shlibpath_overrides_runpath=yes 11480 hardcode_into_libs=yes 11481 ;; 11482 esac 11483 ;; 11484 11485gnu*) 11486 version_type=linux 11487 need_lib_prefix=no 11488 need_version=no 11489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11490 soname_spec='${libname}${release}${shared_ext}$major' 11491 shlibpath_var=LD_LIBRARY_PATH 11492 hardcode_into_libs=yes 11493 ;; 11494 11495hpux9* | hpux10* | hpux11*) 11496 # Give a soname corresponding to the major version so that dld.sl refuses to 11497 # link against other versions. 11498 version_type=sunos 11499 need_lib_prefix=no 11500 need_version=no 11501 case $host_cpu in 11502 ia64*) 11503 shrext_cmds='.so' 11504 hardcode_into_libs=yes 11505 dynamic_linker="$host_os dld.so" 11506 shlibpath_var=LD_LIBRARY_PATH 11507 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11509 soname_spec='${libname}${release}${shared_ext}$major' 11510 if test "X$HPUX_IA64_MODE" = X32; then 11511 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11512 else 11513 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11514 fi 11515 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11516 ;; 11517 hppa*64*) 11518 shrext_cmds='.sl' 11519 hardcode_into_libs=yes 11520 dynamic_linker="$host_os dld.sl" 11521 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11522 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11524 soname_spec='${libname}${release}${shared_ext}$major' 11525 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11526 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11527 ;; 11528 *) 11529 shrext_cmds='.sl' 11530 dynamic_linker="$host_os dld.sl" 11531 shlibpath_var=SHLIB_PATH 11532 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11534 soname_spec='${libname}${release}${shared_ext}$major' 11535 ;; 11536 esac 11537 # HP-UX runs *really* slowly unless shared libraries are mode 555. 11538 postinstall_cmds='chmod 555 $lib' 11539 ;; 11540 11541interix[3-9]*) 11542 version_type=linux 11543 need_lib_prefix=no 11544 need_version=no 11545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11546 soname_spec='${libname}${release}${shared_ext}$major' 11547 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11548 shlibpath_var=LD_LIBRARY_PATH 11549 shlibpath_overrides_runpath=no 11550 hardcode_into_libs=yes 11551 ;; 11552 11553irix5* | irix6* | nonstopux*) 11554 case $host_os in 11555 nonstopux*) version_type=nonstopux ;; 11556 *) 11557 if test "$lt_cv_prog_gnu_ld" = yes; then 11558 version_type=linux 11559 else 11560 version_type=irix 11561 fi ;; 11562 esac 11563 need_lib_prefix=no 11564 need_version=no 11565 soname_spec='${libname}${release}${shared_ext}$major' 11566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11567 case $host_os in 11568 irix5* | nonstopux*) 11569 libsuff= shlibsuff= 11570 ;; 11571 *) 11572 case $LD in # libtool.m4 will add one of these switches to LD 11573 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11574 libsuff= shlibsuff= libmagic=32-bit;; 11575 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11576 libsuff=32 shlibsuff=N32 libmagic=N32;; 11577 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11578 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11579 *) libsuff= shlibsuff= libmagic=never-match;; 11580 esac 11581 ;; 11582 esac 11583 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11584 shlibpath_overrides_runpath=no 11585 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11586 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11587 hardcode_into_libs=yes 11588 ;; 11589 11590# No shared lib support for Linux oldld, aout, or coff. 11591linux*oldld* | linux*aout* | linux*coff*) 11592 dynamic_linker=no 11593 ;; 11594 11595# This must be Linux ELF. 11596linux* | k*bsd*-gnu) 11597 version_type=linux 11598 need_lib_prefix=no 11599 need_version=no 11600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11601 soname_spec='${libname}${release}${shared_ext}$major' 11602 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11603 shlibpath_var=LD_LIBRARY_PATH 11604 shlibpath_overrides_runpath=no 11605 # Some binutils ld are patched to set DT_RUNPATH 11606 save_LDFLAGS=$LDFLAGS 11607 save_libdir=$libdir 11608 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11609 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11611/* end confdefs.h. */ 11612 11613int 11614main () 11615{ 11616 11617 ; 11618 return 0; 11619} 11620_ACEOF 11621if ac_fn_c_try_link "$LINENO"; then : 11622 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11623 shlibpath_overrides_runpath=yes 11624fi 11625fi 11626rm -f core conftest.err conftest.$ac_objext \ 11627 conftest$ac_exeext conftest.$ac_ext 11628 LDFLAGS=$save_LDFLAGS 11629 libdir=$save_libdir 11630 11631 # This implies no fast_install, which is unacceptable. 11632 # Some rework will be needed to allow for fast_install 11633 # before this can be enabled. 11634 hardcode_into_libs=yes 11635 11636 # Append ld.so.conf contents to the search path 11637 if test -f /etc/ld.so.conf; then 11638 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 11639 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11640 fi 11641 11642 # We used to test for /lib/ld.so.1 and disable shared libraries on 11643 # powerpc, because MkLinux only supported shared libraries with the 11644 # GNU dynamic linker. Since this was broken with cross compilers, 11645 # most powerpc-linux boxes support dynamic linking these days and 11646 # people can always --disable-shared, the test was removed, and we 11647 # assume the GNU/Linux dynamic linker is in use. 11648 dynamic_linker='GNU/Linux ld.so' 11649 ;; 11650 11651netbsd*) 11652 version_type=sunos 11653 need_lib_prefix=no 11654 need_version=no 11655 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11657 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11658 dynamic_linker='NetBSD (a.out) ld.so' 11659 else 11660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11661 soname_spec='${libname}${release}${shared_ext}$major' 11662 dynamic_linker='NetBSD ld.elf_so' 11663 fi 11664 shlibpath_var=LD_LIBRARY_PATH 11665 shlibpath_overrides_runpath=yes 11666 hardcode_into_libs=yes 11667 ;; 11668 11669newsos6) 11670 version_type=linux 11671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11672 shlibpath_var=LD_LIBRARY_PATH 11673 shlibpath_overrides_runpath=yes 11674 ;; 11675 11676*nto* | *qnx*) 11677 version_type=qnx 11678 need_lib_prefix=no 11679 need_version=no 11680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11681 soname_spec='${libname}${release}${shared_ext}$major' 11682 shlibpath_var=LD_LIBRARY_PATH 11683 shlibpath_overrides_runpath=no 11684 hardcode_into_libs=yes 11685 dynamic_linker='ldqnx.so' 11686 ;; 11687 11688openbsd*) 11689 version_type=sunos 11690 sys_lib_dlsearch_path_spec="/usr/lib" 11691 need_lib_prefix=no 11692 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11693 case $host_os in 11694 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11695 *) need_version=no ;; 11696 esac 11697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11698 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11699 shlibpath_var=LD_LIBRARY_PATH 11700 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11701 case $host_os in 11702 openbsd2.[89] | openbsd2.[89].*) 11703 shlibpath_overrides_runpath=no 11704 ;; 11705 *) 11706 shlibpath_overrides_runpath=yes 11707 ;; 11708 esac 11709 else 11710 shlibpath_overrides_runpath=yes 11711 fi 11712 ;; 11713 11714os2*) 11715 libname_spec='$name' 11716 shrext_cmds=".dll" 11717 need_lib_prefix=no 11718 library_names_spec='$libname${shared_ext} $libname.a' 11719 dynamic_linker='OS/2 ld.exe' 11720 shlibpath_var=LIBPATH 11721 ;; 11722 11723osf3* | osf4* | osf5*) 11724 version_type=osf 11725 need_lib_prefix=no 11726 need_version=no 11727 soname_spec='${libname}${release}${shared_ext}$major' 11728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11729 shlibpath_var=LD_LIBRARY_PATH 11730 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11731 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11732 ;; 11733 11734rdos*) 11735 dynamic_linker=no 11736 ;; 11737 11738solaris*) 11739 version_type=linux 11740 need_lib_prefix=no 11741 need_version=no 11742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11743 soname_spec='${libname}${release}${shared_ext}$major' 11744 shlibpath_var=LD_LIBRARY_PATH 11745 shlibpath_overrides_runpath=yes 11746 hardcode_into_libs=yes 11747 # ldd complains unless libraries are executable 11748 postinstall_cmds='chmod +x $lib' 11749 ;; 11750 11751sunos4*) 11752 version_type=sunos 11753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11754 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11755 shlibpath_var=LD_LIBRARY_PATH 11756 shlibpath_overrides_runpath=yes 11757 if test "$with_gnu_ld" = yes; then 11758 need_lib_prefix=no 11759 fi 11760 need_version=yes 11761 ;; 11762 11763sysv4 | sysv4.3*) 11764 version_type=linux 11765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11766 soname_spec='${libname}${release}${shared_ext}$major' 11767 shlibpath_var=LD_LIBRARY_PATH 11768 case $host_vendor in 11769 sni) 11770 shlibpath_overrides_runpath=no 11771 need_lib_prefix=no 11772 runpath_var=LD_RUN_PATH 11773 ;; 11774 siemens) 11775 need_lib_prefix=no 11776 ;; 11777 motorola) 11778 need_lib_prefix=no 11779 need_version=no 11780 shlibpath_overrides_runpath=no 11781 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11782 ;; 11783 esac 11784 ;; 11785 11786sysv4*MP*) 11787 if test -d /usr/nec ;then 11788 version_type=linux 11789 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11790 soname_spec='$libname${shared_ext}.$major' 11791 shlibpath_var=LD_LIBRARY_PATH 11792 fi 11793 ;; 11794 11795sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11796 version_type=freebsd-elf 11797 need_lib_prefix=no 11798 need_version=no 11799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11800 soname_spec='${libname}${release}${shared_ext}$major' 11801 shlibpath_var=LD_LIBRARY_PATH 11802 shlibpath_overrides_runpath=yes 11803 hardcode_into_libs=yes 11804 if test "$with_gnu_ld" = yes; then 11805 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11806 else 11807 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11808 case $host_os in 11809 sco3.2v5*) 11810 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11811 ;; 11812 esac 11813 fi 11814 sys_lib_dlsearch_path_spec='/usr/lib' 11815 ;; 11816 11817tpf*) 11818 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11819 version_type=linux 11820 need_lib_prefix=no 11821 need_version=no 11822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11823 shlibpath_var=LD_LIBRARY_PATH 11824 shlibpath_overrides_runpath=no 11825 hardcode_into_libs=yes 11826 ;; 11827 11828uts4*) 11829 version_type=linux 11830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11831 soname_spec='${libname}${release}${shared_ext}$major' 11832 shlibpath_var=LD_LIBRARY_PATH 11833 ;; 11834 11835*) 11836 dynamic_linker=no 11837 ;; 11838esac 11839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11840$as_echo "$dynamic_linker" >&6; } 11841test "$dynamic_linker" = no && can_build_shared=no 11842 11843variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11844if test "$GCC" = yes; then 11845 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11846fi 11847 11848if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11849 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11850fi 11851if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11852 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11853fi 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11942$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11943hardcode_action= 11944if test -n "$hardcode_libdir_flag_spec" || 11945 test -n "$runpath_var" || 11946 test "X$hardcode_automatic" = "Xyes" ; then 11947 11948 # We can hardcode non-existent directories. 11949 if test "$hardcode_direct" != no && 11950 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11951 # have to relink, otherwise we might link with an installed library 11952 # when we should be linking with a yet-to-be-installed one 11953 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11954 test "$hardcode_minus_L" != no; then 11955 # Linking always hardcodes the temporary library directory. 11956 hardcode_action=relink 11957 else 11958 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11959 hardcode_action=immediate 11960 fi 11961else 11962 # We cannot hardcode anything, or else we can only hardcode existing 11963 # directories. 11964 hardcode_action=unsupported 11965fi 11966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11967$as_echo "$hardcode_action" >&6; } 11968 11969if test "$hardcode_action" = relink || 11970 test "$inherit_rpath" = yes; then 11971 # Fast installation is not supported 11972 enable_fast_install=no 11973elif test "$shlibpath_overrides_runpath" = yes || 11974 test "$enable_shared" = no; then 11975 # Fast installation is not necessary 11976 enable_fast_install=needless 11977fi 11978 11979 11980 11981 11982 11983 11984 if test "x$enable_dlopen" != xyes; then 11985 enable_dlopen=unknown 11986 enable_dlopen_self=unknown 11987 enable_dlopen_self_static=unknown 11988else 11989 lt_cv_dlopen=no 11990 lt_cv_dlopen_libs= 11991 11992 case $host_os in 11993 beos*) 11994 lt_cv_dlopen="load_add_on" 11995 lt_cv_dlopen_libs= 11996 lt_cv_dlopen_self=yes 11997 ;; 11998 11999 mingw* | pw32* | cegcc*) 12000 lt_cv_dlopen="LoadLibrary" 12001 lt_cv_dlopen_libs= 12002 ;; 12003 12004 cygwin*) 12005 lt_cv_dlopen="dlopen" 12006 lt_cv_dlopen_libs= 12007 ;; 12008 12009 darwin*) 12010 # if libdl is installed we need to link against it 12011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12012$as_echo_n "checking for dlopen in -ldl... " >&6; } 12013if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 12014 $as_echo_n "(cached) " >&6 12015else 12016 ac_check_lib_save_LIBS=$LIBS 12017LIBS="-ldl $LIBS" 12018cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12019/* end confdefs.h. */ 12020 12021/* Override any GCC internal prototype to avoid an error. 12022 Use char because int might match the return type of a GCC 12023 builtin and then its argument prototype would still apply. */ 12024#ifdef __cplusplus 12025extern "C" 12026#endif 12027char dlopen (); 12028int 12029main () 12030{ 12031return dlopen (); 12032 ; 12033 return 0; 12034} 12035_ACEOF 12036if ac_fn_c_try_link "$LINENO"; then : 12037 ac_cv_lib_dl_dlopen=yes 12038else 12039 ac_cv_lib_dl_dlopen=no 12040fi 12041rm -f core conftest.err conftest.$ac_objext \ 12042 conftest$ac_exeext conftest.$ac_ext 12043LIBS=$ac_check_lib_save_LIBS 12044fi 12045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12046$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12047if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 12048 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12049else 12050 12051 lt_cv_dlopen="dyld" 12052 lt_cv_dlopen_libs= 12053 lt_cv_dlopen_self=yes 12054 12055fi 12056 12057 ;; 12058 12059 *) 12060 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12061if test "x$ac_cv_func_shl_load" = x""yes; then : 12062 lt_cv_dlopen="shl_load" 12063else 12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12065$as_echo_n "checking for shl_load in -ldld... " >&6; } 12066if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 12067 $as_echo_n "(cached) " >&6 12068else 12069 ac_check_lib_save_LIBS=$LIBS 12070LIBS="-ldld $LIBS" 12071cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12072/* end confdefs.h. */ 12073 12074/* Override any GCC internal prototype to avoid an error. 12075 Use char because int might match the return type of a GCC 12076 builtin and then its argument prototype would still apply. */ 12077#ifdef __cplusplus 12078extern "C" 12079#endif 12080char shl_load (); 12081int 12082main () 12083{ 12084return shl_load (); 12085 ; 12086 return 0; 12087} 12088_ACEOF 12089if ac_fn_c_try_link "$LINENO"; then : 12090 ac_cv_lib_dld_shl_load=yes 12091else 12092 ac_cv_lib_dld_shl_load=no 12093fi 12094rm -f core conftest.err conftest.$ac_objext \ 12095 conftest$ac_exeext conftest.$ac_ext 12096LIBS=$ac_check_lib_save_LIBS 12097fi 12098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12099$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12100if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 12101 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 12102else 12103 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12104if test "x$ac_cv_func_dlopen" = x""yes; then : 12105 lt_cv_dlopen="dlopen" 12106else 12107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12108$as_echo_n "checking for dlopen in -ldl... " >&6; } 12109if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 12110 $as_echo_n "(cached) " >&6 12111else 12112 ac_check_lib_save_LIBS=$LIBS 12113LIBS="-ldl $LIBS" 12114cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12115/* end confdefs.h. */ 12116 12117/* Override any GCC internal prototype to avoid an error. 12118 Use char because int might match the return type of a GCC 12119 builtin and then its argument prototype would still apply. */ 12120#ifdef __cplusplus 12121extern "C" 12122#endif 12123char dlopen (); 12124int 12125main () 12126{ 12127return dlopen (); 12128 ; 12129 return 0; 12130} 12131_ACEOF 12132if ac_fn_c_try_link "$LINENO"; then : 12133 ac_cv_lib_dl_dlopen=yes 12134else 12135 ac_cv_lib_dl_dlopen=no 12136fi 12137rm -f core conftest.err conftest.$ac_objext \ 12138 conftest$ac_exeext conftest.$ac_ext 12139LIBS=$ac_check_lib_save_LIBS 12140fi 12141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12142$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12143if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 12144 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12145else 12146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12147$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12148if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 12149 $as_echo_n "(cached) " >&6 12150else 12151 ac_check_lib_save_LIBS=$LIBS 12152LIBS="-lsvld $LIBS" 12153cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12154/* end confdefs.h. */ 12155 12156/* Override any GCC internal prototype to avoid an error. 12157 Use char because int might match the return type of a GCC 12158 builtin and then its argument prototype would still apply. */ 12159#ifdef __cplusplus 12160extern "C" 12161#endif 12162char dlopen (); 12163int 12164main () 12165{ 12166return dlopen (); 12167 ; 12168 return 0; 12169} 12170_ACEOF 12171if ac_fn_c_try_link "$LINENO"; then : 12172 ac_cv_lib_svld_dlopen=yes 12173else 12174 ac_cv_lib_svld_dlopen=no 12175fi 12176rm -f core conftest.err conftest.$ac_objext \ 12177 conftest$ac_exeext conftest.$ac_ext 12178LIBS=$ac_check_lib_save_LIBS 12179fi 12180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12181$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12182if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 12183 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12184else 12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12186$as_echo_n "checking for dld_link in -ldld... " >&6; } 12187if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 12188 $as_echo_n "(cached) " >&6 12189else 12190 ac_check_lib_save_LIBS=$LIBS 12191LIBS="-ldld $LIBS" 12192cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12193/* end confdefs.h. */ 12194 12195/* Override any GCC internal prototype to avoid an error. 12196 Use char because int might match the return type of a GCC 12197 builtin and then its argument prototype would still apply. */ 12198#ifdef __cplusplus 12199extern "C" 12200#endif 12201char dld_link (); 12202int 12203main () 12204{ 12205return dld_link (); 12206 ; 12207 return 0; 12208} 12209_ACEOF 12210if ac_fn_c_try_link "$LINENO"; then : 12211 ac_cv_lib_dld_dld_link=yes 12212else 12213 ac_cv_lib_dld_dld_link=no 12214fi 12215rm -f core conftest.err conftest.$ac_objext \ 12216 conftest$ac_exeext conftest.$ac_ext 12217LIBS=$ac_check_lib_save_LIBS 12218fi 12219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12220$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12221if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 12222 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 12223fi 12224 12225 12226fi 12227 12228 12229fi 12230 12231 12232fi 12233 12234 12235fi 12236 12237 12238fi 12239 12240 ;; 12241 esac 12242 12243 if test "x$lt_cv_dlopen" != xno; then 12244 enable_dlopen=yes 12245 else 12246 enable_dlopen=no 12247 fi 12248 12249 case $lt_cv_dlopen in 12250 dlopen) 12251 save_CPPFLAGS="$CPPFLAGS" 12252 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12253 12254 save_LDFLAGS="$LDFLAGS" 12255 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12256 12257 save_LIBS="$LIBS" 12258 LIBS="$lt_cv_dlopen_libs $LIBS" 12259 12260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12261$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12262if test "${lt_cv_dlopen_self+set}" = set; then : 12263 $as_echo_n "(cached) " >&6 12264else 12265 if test "$cross_compiling" = yes; then : 12266 lt_cv_dlopen_self=cross 12267else 12268 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12269 lt_status=$lt_dlunknown 12270 cat > conftest.$ac_ext <<_LT_EOF 12271#line 12271 "configure" 12272#include "confdefs.h" 12273 12274#if HAVE_DLFCN_H 12275#include <dlfcn.h> 12276#endif 12277 12278#include <stdio.h> 12279 12280#ifdef RTLD_GLOBAL 12281# define LT_DLGLOBAL RTLD_GLOBAL 12282#else 12283# ifdef DL_GLOBAL 12284# define LT_DLGLOBAL DL_GLOBAL 12285# else 12286# define LT_DLGLOBAL 0 12287# endif 12288#endif 12289 12290/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12291 find out it does not work in some platform. */ 12292#ifndef LT_DLLAZY_OR_NOW 12293# ifdef RTLD_LAZY 12294# define LT_DLLAZY_OR_NOW RTLD_LAZY 12295# else 12296# ifdef DL_LAZY 12297# define LT_DLLAZY_OR_NOW DL_LAZY 12298# else 12299# ifdef RTLD_NOW 12300# define LT_DLLAZY_OR_NOW RTLD_NOW 12301# else 12302# ifdef DL_NOW 12303# define LT_DLLAZY_OR_NOW DL_NOW 12304# else 12305# define LT_DLLAZY_OR_NOW 0 12306# endif 12307# endif 12308# endif 12309# endif 12310#endif 12311 12312void fnord() { int i=42;} 12313int main () 12314{ 12315 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12316 int status = $lt_dlunknown; 12317 12318 if (self) 12319 { 12320 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12321 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12322 /* dlclose (self); */ 12323 } 12324 else 12325 puts (dlerror ()); 12326 12327 return status; 12328} 12329_LT_EOF 12330 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12331 (eval $ac_link) 2>&5 12332 ac_status=$? 12333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12334 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12335 (./conftest; exit; ) >&5 2>/dev/null 12336 lt_status=$? 12337 case x$lt_status in 12338 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12339 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12340 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12341 esac 12342 else : 12343 # compilation failed 12344 lt_cv_dlopen_self=no 12345 fi 12346fi 12347rm -fr conftest* 12348 12349 12350fi 12351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12352$as_echo "$lt_cv_dlopen_self" >&6; } 12353 12354 if test "x$lt_cv_dlopen_self" = xyes; then 12355 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12357$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12358if test "${lt_cv_dlopen_self_static+set}" = set; then : 12359 $as_echo_n "(cached) " >&6 12360else 12361 if test "$cross_compiling" = yes; then : 12362 lt_cv_dlopen_self_static=cross 12363else 12364 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12365 lt_status=$lt_dlunknown 12366 cat > conftest.$ac_ext <<_LT_EOF 12367#line 12367 "configure" 12368#include "confdefs.h" 12369 12370#if HAVE_DLFCN_H 12371#include <dlfcn.h> 12372#endif 12373 12374#include <stdio.h> 12375 12376#ifdef RTLD_GLOBAL 12377# define LT_DLGLOBAL RTLD_GLOBAL 12378#else 12379# ifdef DL_GLOBAL 12380# define LT_DLGLOBAL DL_GLOBAL 12381# else 12382# define LT_DLGLOBAL 0 12383# endif 12384#endif 12385 12386/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12387 find out it does not work in some platform. */ 12388#ifndef LT_DLLAZY_OR_NOW 12389# ifdef RTLD_LAZY 12390# define LT_DLLAZY_OR_NOW RTLD_LAZY 12391# else 12392# ifdef DL_LAZY 12393# define LT_DLLAZY_OR_NOW DL_LAZY 12394# else 12395# ifdef RTLD_NOW 12396# define LT_DLLAZY_OR_NOW RTLD_NOW 12397# else 12398# ifdef DL_NOW 12399# define LT_DLLAZY_OR_NOW DL_NOW 12400# else 12401# define LT_DLLAZY_OR_NOW 0 12402# endif 12403# endif 12404# endif 12405# endif 12406#endif 12407 12408void fnord() { int i=42;} 12409int main () 12410{ 12411 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12412 int status = $lt_dlunknown; 12413 12414 if (self) 12415 { 12416 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12417 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12418 /* dlclose (self); */ 12419 } 12420 else 12421 puts (dlerror ()); 12422 12423 return status; 12424} 12425_LT_EOF 12426 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12427 (eval $ac_link) 2>&5 12428 ac_status=$? 12429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12430 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12431 (./conftest; exit; ) >&5 2>/dev/null 12432 lt_status=$? 12433 case x$lt_status in 12434 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12435 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12436 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12437 esac 12438 else : 12439 # compilation failed 12440 lt_cv_dlopen_self_static=no 12441 fi 12442fi 12443rm -fr conftest* 12444 12445 12446fi 12447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12448$as_echo "$lt_cv_dlopen_self_static" >&6; } 12449 fi 12450 12451 CPPFLAGS="$save_CPPFLAGS" 12452 LDFLAGS="$save_LDFLAGS" 12453 LIBS="$save_LIBS" 12454 ;; 12455 esac 12456 12457 case $lt_cv_dlopen_self in 12458 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12459 *) enable_dlopen_self=unknown ;; 12460 esac 12461 12462 case $lt_cv_dlopen_self_static in 12463 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12464 *) enable_dlopen_self_static=unknown ;; 12465 esac 12466fi 12467 12468 12469 12470 12471 12472 12473 12474 12475 12476 12477 12478 12479 12480 12481 12482 12483 12484striplib= 12485old_striplib= 12486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12487$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12488if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12489 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12490 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12492$as_echo "yes" >&6; } 12493else 12494# FIXME - insert some real tests, host_os isn't really good enough 12495 case $host_os in 12496 darwin*) 12497 if test -n "$STRIP" ; then 12498 striplib="$STRIP -x" 12499 old_striplib="$STRIP -S" 12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12501$as_echo "yes" >&6; } 12502 else 12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12504$as_echo "no" >&6; } 12505 fi 12506 ;; 12507 *) 12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12509$as_echo "no" >&6; } 12510 ;; 12511 esac 12512fi 12513 12514 12515 12516 12517 12518 12519 12520 12521 12522 12523 12524 12525 # Report which library types will actually be built 12526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12527$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12529$as_echo "$can_build_shared" >&6; } 12530 12531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12532$as_echo_n "checking whether to build shared libraries... " >&6; } 12533 test "$can_build_shared" = "no" && enable_shared=no 12534 12535 # On AIX, shared libraries and static libraries use the same namespace, and 12536 # are all built from PIC. 12537 case $host_os in 12538 aix3*) 12539 test "$enable_shared" = yes && enable_static=no 12540 if test -n "$RANLIB"; then 12541 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12542 postinstall_cmds='$RANLIB $lib' 12543 fi 12544 ;; 12545 12546 aix[4-9]*) 12547 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12548 test "$enable_shared" = yes && enable_static=no 12549 fi 12550 ;; 12551 esac 12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12553$as_echo "$enable_shared" >&6; } 12554 12555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12556$as_echo_n "checking whether to build static libraries... " >&6; } 12557 # Make sure either enable_shared or enable_static is yes. 12558 test "$enable_shared" = yes || enable_static=yes 12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12560$as_echo "$enable_static" >&6; } 12561 12562 12563 12564 12565fi 12566ac_ext=c 12567ac_cpp='$CPP $CPPFLAGS' 12568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12570ac_compiler_gnu=$ac_cv_c_compiler_gnu 12571 12572CC="$lt_save_CC" 12573 12574 12575 12576 12577 12578 12579 12580 12581 12582 12583 12584 12585 12586 ac_config_commands="$ac_config_commands libtool" 12587 12588 12589 12590 12591# Only expand once: 12592 12593 12594 12595# Select memory manager depending on user input. 12596# If no "-enable-maxmem", use jmemnobs 12597MEMORYMGR='jmemnobs' 12598MAXMEM="no" 12599# Check whether --enable-maxmem was given. 12600if test "${enable_maxmem+set}" = set; then : 12601 enableval=$enable_maxmem; MAXMEM="$enableval" 12602fi 12603 12604if test "x$MAXMEM" = xyes; then 12605 MAXMEM=1 12606fi 12607if test "x$MAXMEM" != xno; then 12608 if test -n "`echo $MAXMEM | sed 's/[0-9]//g'`"; then 12609 as_fn_error "non-numeric argument to --enable-maxmem" "$LINENO" 5 12610 fi 12611 DEFAULTMAXMEM=`expr $MAXMEM \* 1048576` 12612 12613cat >>confdefs.h <<_ACEOF 12614#define DEFAULT_MAX_MEM ${DEFAULTMAXMEM} 12615_ACEOF 12616 12617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for 'tmpfile()'" >&5 12618$as_echo_n "checking for 'tmpfile()'... " >&6; } 12619cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12620/* end confdefs.h. */ 12621#include <stdio.h> 12622int 12623main () 12624{ 12625 FILE * tfile = tmpfile(); 12626 ; 12627 return 0; 12628} 12629_ACEOF 12630if ac_fn_c_try_link "$LINENO"; then : 12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12632$as_echo "yes" >&6; } 12633MEMORYMGR='jmemansi' 12634else 12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12636$as_echo "no" >&6; } 12637MEMORYMGR='jmemname' 12638 12639# Test for the need to remove temporary files using a signal handler (for cjpeg/djpeg) 12640 12641$as_echo "#define NEED_SIGNAL_CATCHER 1" >>confdefs.h 12642 12643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for 'mktemp()'" >&5 12644$as_echo_n "checking for 'mktemp()'... " >&6; } 12645cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12646/* end confdefs.h. */ 12647 12648int 12649main () 12650{ 12651 char fname[80]; mktemp(fname); 12652 ; 12653 return 0; 12654} 12655_ACEOF 12656if ac_fn_c_try_link "$LINENO"; then : 12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12658$as_echo "yes" >&6; } 12659else 12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12661$as_echo "no" >&6; } 12662 12663$as_echo "#define NO_MKTEMP 1" >>confdefs.h 12664 12665fi 12666rm -f core conftest.err conftest.$ac_objext \ 12667 conftest$ac_exeext conftest.$ac_ext 12668fi 12669rm -f core conftest.err conftest.$ac_objext \ 12670 conftest$ac_exeext conftest.$ac_ext 12671fi 12672 12673 12674# Extract the library version ID from jpeglib.h. 12675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking libjpeg version number" >&5 12676$as_echo_n "checking libjpeg version number... " >&6; } 12677JPEG_LIB_VERSION=`sed -e '/^#define JPEG_LIB_VERSION/!d' -e 's/^[^0-9]*\([0-9][0-9]*\).*$/\1/' $srcdir/jpeglib.h` 12678JPEG_LIB_VERSION="`expr $JPEG_LIB_VERSION / 10`:2" 12679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $JPEG_LIB_VERSION" >&5 12680$as_echo "$JPEG_LIB_VERSION" >&6; } 12681 12682 12683ac_config_files="$ac_config_files Makefile" 12684 12685cat >confcache <<\_ACEOF 12686# This file is a shell script that caches the results of configure 12687# tests run on this system so they can be shared between configure 12688# scripts and configure runs, see configure's option --config-cache. 12689# It is not useful on other systems. If it contains results you don't 12690# want to keep, you may remove or edit it. 12691# 12692# config.status only pays attention to the cache file if you give it 12693# the --recheck option to rerun configure. 12694# 12695# `ac_cv_env_foo' variables (set or unset) will be overridden when 12696# loading this file, other *unset* `ac_cv_foo' will be assigned the 12697# following values. 12698 12699_ACEOF 12700 12701# The following way of writing the cache mishandles newlines in values, 12702# but we know of no workaround that is simple, portable, and efficient. 12703# So, we kill variables containing newlines. 12704# Ultrix sh set writes to stderr and can't be redirected directly, 12705# and sets the high bit in the cache file unless we assign to the vars. 12706( 12707 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12708 eval ac_val=\$$ac_var 12709 case $ac_val in #( 12710 *${as_nl}*) 12711 case $ac_var in #( 12712 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12713$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12714 esac 12715 case $ac_var in #( 12716 _ | IFS | as_nl) ;; #( 12717 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12718 *) { eval $ac_var=; unset $ac_var;} ;; 12719 esac ;; 12720 esac 12721 done 12722 12723 (set) 2>&1 | 12724 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12725 *${as_nl}ac_space=\ *) 12726 # `set' does not quote correctly, so add quotes: double-quote 12727 # substitution turns \\\\ into \\, and sed turns \\ into \. 12728 sed -n \ 12729 "s/'/'\\\\''/g; 12730 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12731 ;; #( 12732 *) 12733 # `set' quotes correctly as required by POSIX, so do not add quotes. 12734 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12735 ;; 12736 esac | 12737 sort 12738) | 12739 sed ' 12740 /^ac_cv_env_/b end 12741 t clear 12742 :clear 12743 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12744 t end 12745 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12746 :end' >>confcache 12747if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12748 if test -w "$cache_file"; then 12749 test "x$cache_file" != "x/dev/null" && 12750 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12751$as_echo "$as_me: updating cache $cache_file" >&6;} 12752 cat confcache >$cache_file 12753 else 12754 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12755$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12756 fi 12757fi 12758rm -f confcache 12759 12760test "x$prefix" = xNONE && prefix=$ac_default_prefix 12761# Let make expand exec_prefix. 12762test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12763 12764DEFS=-DHAVE_CONFIG_H 12765 12766ac_libobjs= 12767ac_ltlibobjs= 12768for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12769 # 1. Remove the extension, and $U if already installed. 12770 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12771 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 12772 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12773 # will be set to the directory where LIBOBJS objects are built. 12774 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12775 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12776done 12777LIBOBJS=$ac_libobjs 12778 12779LTLIBOBJS=$ac_ltlibobjs 12780 12781 12782 if test -n "$EXEEXT"; then 12783 am__EXEEXT_TRUE= 12784 am__EXEEXT_FALSE='#' 12785else 12786 am__EXEEXT_TRUE='#' 12787 am__EXEEXT_FALSE= 12788fi 12789 12790if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12791 as_fn_error "conditional \"AMDEP\" was never defined. 12792Usually this means the macro was only invoked conditionally." "$LINENO" 5 12793fi 12794if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12795 as_fn_error "conditional \"am__fastdepCC\" was never defined. 12796Usually this means the macro was only invoked conditionally." "$LINENO" 5 12797fi 12798if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 12799 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. 12800Usually this means the macro was only invoked conditionally." "$LINENO" 5 12801fi 12802if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12803 as_fn_error "conditional \"am__fastdepCC\" was never defined. 12804Usually this means the macro was only invoked conditionally." "$LINENO" 5 12805fi 12806if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then 12807 as_fn_error "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined. 12808Usually this means the macro was only invoked conditionally." "$LINENO" 5 12809fi 12810 12811: ${CONFIG_STATUS=./config.status} 12812ac_write_fail=0 12813ac_clean_files_save=$ac_clean_files 12814ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12815{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12816$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 12817as_write_fail=0 12818cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12819#! $SHELL 12820# Generated by $as_me. 12821# Run this file to recreate the current configuration. 12822# Compiler output produced by configure, useful for debugging 12823# configure, is in config.log if it exists. 12824 12825debug=false 12826ac_cs_recheck=false 12827ac_cs_silent=false 12828 12829SHELL=\${CONFIG_SHELL-$SHELL} 12830export SHELL 12831_ASEOF 12832cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12833## -------------------- ## 12834## M4sh Initialization. ## 12835## -------------------- ## 12836 12837# Be more Bourne compatible 12838DUALCASE=1; export DUALCASE # for MKS sh 12839if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 12840 emulate sh 12841 NULLCMD=: 12842 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12843 # is contrary to our usage. Disable this feature. 12844 alias -g '${1+"$@"}'='"$@"' 12845 setopt NO_GLOB_SUBST 12846else 12847 case `(set -o) 2>/dev/null` in #( 12848 *posix*) : 12849 set -o posix ;; #( 12850 *) : 12851 ;; 12852esac 12853fi 12854 12855 12856as_nl=' 12857' 12858export as_nl 12859# Printing a long string crashes Solaris 7 /usr/bin/printf. 12860as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12861as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 12862as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 12863# Prefer a ksh shell builtin over an external printf program on Solaris, 12864# but without wasting forks for bash or zsh. 12865if test -z "$BASH_VERSION$ZSH_VERSION" \ 12866 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 12867 as_echo='print -r --' 12868 as_echo_n='print -rn --' 12869elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 12870 as_echo='printf %s\n' 12871 as_echo_n='printf %s' 12872else 12873 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 12874 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 12875 as_echo_n='/usr/ucb/echo -n' 12876 else 12877 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 12878 as_echo_n_body='eval 12879 arg=$1; 12880 case $arg in #( 12881 *"$as_nl"*) 12882 expr "X$arg" : "X\\(.*\\)$as_nl"; 12883 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 12884 esac; 12885 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 12886 ' 12887 export as_echo_n_body 12888 as_echo_n='sh -c $as_echo_n_body as_echo' 12889 fi 12890 export as_echo_body 12891 as_echo='sh -c $as_echo_body as_echo' 12892fi 12893 12894# The user is always right. 12895if test "${PATH_SEPARATOR+set}" != set; then 12896 PATH_SEPARATOR=: 12897 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12898 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12899 PATH_SEPARATOR=';' 12900 } 12901fi 12902 12903 12904# IFS 12905# We need space, tab and new line, in precisely that order. Quoting is 12906# there to prevent editors from complaining about space-tab. 12907# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12908# splitting by setting IFS to empty value.) 12909IFS=" "" $as_nl" 12910 12911# Find who we are. Look in the path if we contain no directory separator. 12912case $0 in #(( 12913 *[\\/]* ) as_myself=$0 ;; 12914 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12915for as_dir in $PATH 12916do 12917 IFS=$as_save_IFS 12918 test -z "$as_dir" && as_dir=. 12919 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12920 done 12921IFS=$as_save_IFS 12922 12923 ;; 12924esac 12925# We did not find ourselves, most probably we were run as `sh COMMAND' 12926# in which case we are not to be found in the path. 12927if test "x$as_myself" = x; then 12928 as_myself=$0 12929fi 12930if test ! -f "$as_myself"; then 12931 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12932 exit 1 12933fi 12934 12935# Unset variables that we do not need and which cause bugs (e.g. in 12936# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 12937# suppresses any "Segmentation fault" message there. '((' could 12938# trigger a bug in pdksh 5.2.14. 12939for as_var in BASH_ENV ENV MAIL MAILPATH 12940do eval test x\${$as_var+set} = xset \ 12941 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12942done 12943PS1='$ ' 12944PS2='> ' 12945PS4='+ ' 12946 12947# NLS nuisances. 12948LC_ALL=C 12949export LC_ALL 12950LANGUAGE=C 12951export LANGUAGE 12952 12953# CDPATH. 12954(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12955 12956 12957# as_fn_error ERROR [LINENO LOG_FD] 12958# --------------------------------- 12959# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12960# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12961# script with status $?, using 1 if that was 0. 12962as_fn_error () 12963{ 12964 as_status=$?; test $as_status -eq 0 && as_status=1 12965 if test "$3"; then 12966 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12967 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 12968 fi 12969 $as_echo "$as_me: error: $1" >&2 12970 as_fn_exit $as_status 12971} # as_fn_error 12972 12973 12974# as_fn_set_status STATUS 12975# ----------------------- 12976# Set $? to STATUS, without forking. 12977as_fn_set_status () 12978{ 12979 return $1 12980} # as_fn_set_status 12981 12982# as_fn_exit STATUS 12983# ----------------- 12984# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12985as_fn_exit () 12986{ 12987 set +e 12988 as_fn_set_status $1 12989 exit $1 12990} # as_fn_exit 12991 12992# as_fn_unset VAR 12993# --------------- 12994# Portably unset VAR. 12995as_fn_unset () 12996{ 12997 { eval $1=; unset $1;} 12998} 12999as_unset=as_fn_unset 13000# as_fn_append VAR VALUE 13001# ---------------------- 13002# Append the text in VALUE to the end of the definition contained in VAR. Take 13003# advantage of any shell optimizations that allow amortized linear growth over 13004# repeated appends, instead of the typical quadratic growth present in naive 13005# implementations. 13006if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13007 eval 'as_fn_append () 13008 { 13009 eval $1+=\$2 13010 }' 13011else 13012 as_fn_append () 13013 { 13014 eval $1=\$$1\$2 13015 } 13016fi # as_fn_append 13017 13018# as_fn_arith ARG... 13019# ------------------ 13020# Perform arithmetic evaluation on the ARGs, and store the result in the 13021# global $as_val. Take advantage of shells that can avoid forks. The arguments 13022# must be portable across $(()) and expr. 13023if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13024 eval 'as_fn_arith () 13025 { 13026 as_val=$(( $* )) 13027 }' 13028else 13029 as_fn_arith () 13030 { 13031 as_val=`expr "$@" || test $? -eq 1` 13032 } 13033fi # as_fn_arith 13034 13035 13036if expr a : '\(a\)' >/dev/null 2>&1 && 13037 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13038 as_expr=expr 13039else 13040 as_expr=false 13041fi 13042 13043if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13044 as_basename=basename 13045else 13046 as_basename=false 13047fi 13048 13049if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13050 as_dirname=dirname 13051else 13052 as_dirname=false 13053fi 13054 13055as_me=`$as_basename -- "$0" || 13056$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13057 X"$0" : 'X\(//\)$' \| \ 13058 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13059$as_echo X/"$0" | 13060 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13061 s//\1/ 13062 q 13063 } 13064 /^X\/\(\/\/\)$/{ 13065 s//\1/ 13066 q 13067 } 13068 /^X\/\(\/\).*/{ 13069 s//\1/ 13070 q 13071 } 13072 s/.*/./; q'` 13073 13074# Avoid depending upon Character Ranges. 13075as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13076as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13077as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13078as_cr_digits='0123456789' 13079as_cr_alnum=$as_cr_Letters$as_cr_digits 13080 13081ECHO_C= ECHO_N= ECHO_T= 13082case `echo -n x` in #((((( 13083-n*) 13084 case `echo 'xy\c'` in 13085 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13086 xy) ECHO_C='\c';; 13087 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13088 ECHO_T=' ';; 13089 esac;; 13090*) 13091 ECHO_N='-n';; 13092esac 13093 13094rm -f conf$$ conf$$.exe conf$$.file 13095if test -d conf$$.dir; then 13096 rm -f conf$$.dir/conf$$.file 13097else 13098 rm -f conf$$.dir 13099 mkdir conf$$.dir 2>/dev/null 13100fi 13101if (echo >conf$$.file) 2>/dev/null; then 13102 if ln -s conf$$.file conf$$ 2>/dev/null; then 13103 as_ln_s='ln -s' 13104 # ... but there are two gotchas: 13105 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13106 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13107 # In both cases, we have to default to `cp -p'. 13108 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13109 as_ln_s='cp -p' 13110 elif ln conf$$.file conf$$ 2>/dev/null; then 13111 as_ln_s=ln 13112 else 13113 as_ln_s='cp -p' 13114 fi 13115else 13116 as_ln_s='cp -p' 13117fi 13118rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13119rmdir conf$$.dir 2>/dev/null 13120 13121 13122# as_fn_mkdir_p 13123# ------------- 13124# Create "$as_dir" as a directory, including parents if necessary. 13125as_fn_mkdir_p () 13126{ 13127 13128 case $as_dir in #( 13129 -*) as_dir=./$as_dir;; 13130 esac 13131 test -d "$as_dir" || eval $as_mkdir_p || { 13132 as_dirs= 13133 while :; do 13134 case $as_dir in #( 13135 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13136 *) as_qdir=$as_dir;; 13137 esac 13138 as_dirs="'$as_qdir' $as_dirs" 13139 as_dir=`$as_dirname -- "$as_dir" || 13140$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13141 X"$as_dir" : 'X\(//\)[^/]' \| \ 13142 X"$as_dir" : 'X\(//\)$' \| \ 13143 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13144$as_echo X"$as_dir" | 13145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13146 s//\1/ 13147 q 13148 } 13149 /^X\(\/\/\)[^/].*/{ 13150 s//\1/ 13151 q 13152 } 13153 /^X\(\/\/\)$/{ 13154 s//\1/ 13155 q 13156 } 13157 /^X\(\/\).*/{ 13158 s//\1/ 13159 q 13160 } 13161 s/.*/./; q'` 13162 test -d "$as_dir" && break 13163 done 13164 test -z "$as_dirs" || eval "mkdir $as_dirs" 13165 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 13166 13167 13168} # as_fn_mkdir_p 13169if mkdir -p . 2>/dev/null; then 13170 as_mkdir_p='mkdir -p "$as_dir"' 13171else 13172 test -d ./-p && rmdir ./-p 13173 as_mkdir_p=false 13174fi 13175 13176if test -x / >/dev/null 2>&1; then 13177 as_test_x='test -x' 13178else 13179 if ls -dL / >/dev/null 2>&1; then 13180 as_ls_L_option=L 13181 else 13182 as_ls_L_option= 13183 fi 13184 as_test_x=' 13185 eval sh -c '\'' 13186 if test -d "$1"; then 13187 test -d "$1/."; 13188 else 13189 case $1 in #( 13190 -*)set "./$1";; 13191 esac; 13192 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 13193 ???[sx]*):;;*)false;;esac;fi 13194 '\'' sh 13195 ' 13196fi 13197as_executable_p=$as_test_x 13198 13199# Sed expression to map a string onto a valid CPP name. 13200as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13201 13202# Sed expression to map a string onto a valid variable name. 13203as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13204 13205 13206exec 6>&1 13207## ----------------------------------- ## 13208## Main body of $CONFIG_STATUS script. ## 13209## ----------------------------------- ## 13210_ASEOF 13211test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13212 13213cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13214# Save the log message, to keep $0 and so on meaningful, and to 13215# report actual input values of CONFIG_FILES etc. instead of their 13216# values after options handling. 13217ac_log=" 13218This file was extended by libjpeg $as_me 8.0.2, which was 13219generated by GNU Autoconf 2.65. Invocation command line was 13220 13221 CONFIG_FILES = $CONFIG_FILES 13222 CONFIG_HEADERS = $CONFIG_HEADERS 13223 CONFIG_LINKS = $CONFIG_LINKS 13224 CONFIG_COMMANDS = $CONFIG_COMMANDS 13225 $ $0 $@ 13226 13227on `(hostname || uname -n) 2>/dev/null | sed 1q` 13228" 13229 13230_ACEOF 13231 13232case $ac_config_files in *" 13233"*) set x $ac_config_files; shift; ac_config_files=$*;; 13234esac 13235 13236case $ac_config_headers in *" 13237"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13238esac 13239 13240 13241cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13242# Files that config.status was made for. 13243config_files="$ac_config_files" 13244config_headers="$ac_config_headers" 13245config_commands="$ac_config_commands" 13246 13247_ACEOF 13248 13249cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13250ac_cs_usage="\ 13251\`$as_me' instantiates files and other configuration actions 13252from templates according to the current configuration. Unless the files 13253and actions are specified as TAGs, all are instantiated by default. 13254 13255Usage: $0 [OPTION]... [TAG]... 13256 13257 -h, --help print this help, then exit 13258 -V, --version print version number and configuration settings, then exit 13259 --config print configuration, then exit 13260 -q, --quiet, --silent 13261 do not print progress messages 13262 -d, --debug don't remove temporary files 13263 --recheck update $as_me by reconfiguring in the same conditions 13264 --file=FILE[:TEMPLATE] 13265 instantiate the configuration file FILE 13266 --header=FILE[:TEMPLATE] 13267 instantiate the configuration header FILE 13268 13269Configuration files: 13270$config_files 13271 13272Configuration headers: 13273$config_headers 13274 13275Configuration commands: 13276$config_commands 13277 13278Report bugs to the package provider." 13279 13280_ACEOF 13281cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13282ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 13283ac_cs_version="\\ 13284libjpeg config.status 8.0.2 13285configured by $0, generated by GNU Autoconf 2.65, 13286 with options \\"\$ac_cs_config\\" 13287 13288Copyright (C) 2009 Free Software Foundation, Inc. 13289This config.status script is free software; the Free Software Foundation 13290gives unlimited permission to copy, distribute and modify it." 13291 13292ac_pwd='$ac_pwd' 13293srcdir='$srcdir' 13294INSTALL='$INSTALL' 13295MKDIR_P='$MKDIR_P' 13296AWK='$AWK' 13297test -n "\$AWK" || AWK=awk 13298_ACEOF 13299 13300cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13301# The default lists apply if the user does not specify any file. 13302ac_need_defaults=: 13303while test $# != 0 13304do 13305 case $1 in 13306 --*=*) 13307 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13308 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13309 ac_shift=: 13310 ;; 13311 *) 13312 ac_option=$1 13313 ac_optarg=$2 13314 ac_shift=shift 13315 ;; 13316 esac 13317 13318 case $ac_option in 13319 # Handling of the options. 13320 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13321 ac_cs_recheck=: ;; 13322 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13323 $as_echo "$ac_cs_version"; exit ;; 13324 --config | --confi | --conf | --con | --co | --c ) 13325 $as_echo "$ac_cs_config"; exit ;; 13326 --debug | --debu | --deb | --de | --d | -d ) 13327 debug=: ;; 13328 --file | --fil | --fi | --f ) 13329 $ac_shift 13330 case $ac_optarg in 13331 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13332 esac 13333 as_fn_append CONFIG_FILES " '$ac_optarg'" 13334 ac_need_defaults=false;; 13335 --header | --heade | --head | --hea ) 13336 $ac_shift 13337 case $ac_optarg in 13338 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13339 esac 13340 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 13341 ac_need_defaults=false;; 13342 --he | --h) 13343 # Conflict between --help and --header 13344 as_fn_error "ambiguous option: \`$1' 13345Try \`$0 --help' for more information.";; 13346 --help | --hel | -h ) 13347 $as_echo "$ac_cs_usage"; exit ;; 13348 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13349 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13350 ac_cs_silent=: ;; 13351 13352 # This is an error. 13353 -*) as_fn_error "unrecognized option: \`$1' 13354Try \`$0 --help' for more information." ;; 13355 13356 *) as_fn_append ac_config_targets " $1" 13357 ac_need_defaults=false ;; 13358 13359 esac 13360 shift 13361done 13362 13363ac_configure_extra_args= 13364 13365if $ac_cs_silent; then 13366 exec 6>/dev/null 13367 ac_configure_extra_args="$ac_configure_extra_args --silent" 13368fi 13369 13370_ACEOF 13371cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13372if \$ac_cs_recheck; then 13373 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13374 shift 13375 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13376 CONFIG_SHELL='$SHELL' 13377 export CONFIG_SHELL 13378 exec "\$@" 13379fi 13380 13381_ACEOF 13382cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13383exec 5>>config.log 13384{ 13385 echo 13386 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13387## Running $as_me. ## 13388_ASBOX 13389 $as_echo "$ac_log" 13390} >&5 13391 13392_ACEOF 13393cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13394# 13395# INIT-COMMANDS 13396# 13397AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 13398 13399 13400# The HP-UX ksh and POSIX shell print the target directory to stdout 13401# if CDPATH is set. 13402(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13403 13404sed_quote_subst='$sed_quote_subst' 13405double_quote_subst='$double_quote_subst' 13406delay_variable_subst='$delay_variable_subst' 13407AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`' 13408DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`' 13409OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 13410macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 13411macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 13412enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 13413enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 13414pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 13415enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 13416host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 13417host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 13418host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 13419build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 13420build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 13421build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 13422SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 13423Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 13424GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 13425EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 13426FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 13427LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 13428NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 13429LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 13430max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 13431ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 13432exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 13433lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 13434lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 13435lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 13436reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 13437reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13438deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 13439file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 13440AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 13441AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 13442STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 13443RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 13444old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13445old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13446old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13447CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 13448CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 13449compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 13450GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 13451lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 13452lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 13453lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' 13454lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 13455objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 13456SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 13457ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 13458MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 13459lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 13460lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 13461lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 13462lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 13463lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 13464need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 13465DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 13466NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 13467LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 13468OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 13469OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 13470libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 13471shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13472extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13473archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 13474enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 13475export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13476whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13477compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 13478old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13479old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13480archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13481archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13482module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13483module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13484with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 13485allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 13486no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 13487hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 13488hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 13489hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 13490hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 13491hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 13492hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 13493hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13494hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 13495inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 13496link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 13497fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 13498always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 13499export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13500exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 13501include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 13502prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13503file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 13504variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 13505need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 13506need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 13507version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 13508runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13509shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 13510shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 13511libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 13512library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 13513soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 13514postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13515postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13516finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 13517finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 13518hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 13519sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 13520sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 13521hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 13522enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 13523enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 13524enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 13525old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 13526striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 13527 13528LTCC='$LTCC' 13529LTCFLAGS='$LTCFLAGS' 13530compiler='$compiler_DEFAULT' 13531 13532# Quote evaled strings. 13533for var in SED \ 13534GREP \ 13535EGREP \ 13536FGREP \ 13537LD \ 13538NM \ 13539LN_S \ 13540lt_SP2NL \ 13541lt_NL2SP \ 13542reload_flag \ 13543deplibs_check_method \ 13544file_magic_cmd \ 13545AR \ 13546AR_FLAGS \ 13547STRIP \ 13548RANLIB \ 13549CC \ 13550CFLAGS \ 13551compiler \ 13552lt_cv_sys_global_symbol_pipe \ 13553lt_cv_sys_global_symbol_to_cdecl \ 13554lt_cv_sys_global_symbol_to_c_name_address \ 13555lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 13556SHELL \ 13557ECHO \ 13558lt_prog_compiler_no_builtin_flag \ 13559lt_prog_compiler_wl \ 13560lt_prog_compiler_pic \ 13561lt_prog_compiler_static \ 13562lt_cv_prog_compiler_c_o \ 13563need_locks \ 13564DSYMUTIL \ 13565NMEDIT \ 13566LIPO \ 13567OTOOL \ 13568OTOOL64 \ 13569shrext_cmds \ 13570export_dynamic_flag_spec \ 13571whole_archive_flag_spec \ 13572compiler_needs_object \ 13573with_gnu_ld \ 13574allow_undefined_flag \ 13575no_undefined_flag \ 13576hardcode_libdir_flag_spec \ 13577hardcode_libdir_flag_spec_ld \ 13578hardcode_libdir_separator \ 13579fix_srcfile_path \ 13580exclude_expsyms \ 13581include_expsyms \ 13582file_list_spec \ 13583variables_saved_for_relink \ 13584libname_spec \ 13585library_names_spec \ 13586soname_spec \ 13587finish_eval \ 13588old_striplib \ 13589striplib; do 13590 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 13591 *[\\\\\\\`\\"\\\$]*) 13592 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 13593 ;; 13594 *) 13595 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13596 ;; 13597 esac 13598done 13599 13600# Double-quote double-evaled strings. 13601for var in reload_cmds \ 13602old_postinstall_cmds \ 13603old_postuninstall_cmds \ 13604old_archive_cmds \ 13605extract_expsyms_cmds \ 13606old_archive_from_new_cmds \ 13607old_archive_from_expsyms_cmds \ 13608archive_cmds \ 13609archive_expsym_cmds \ 13610module_cmds \ 13611module_expsym_cmds \ 13612export_symbols_cmds \ 13613prelink_cmds \ 13614postinstall_cmds \ 13615postuninstall_cmds \ 13616finish_cmds \ 13617sys_lib_search_path_spec \ 13618sys_lib_dlsearch_path_spec; do 13619 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 13620 *[\\\\\\\`\\"\\\$]*) 13621 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 13622 ;; 13623 *) 13624 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13625 ;; 13626 esac 13627done 13628 13629# Fix-up fallback echo if it was mangled by the above quoting rules. 13630case \$lt_ECHO in 13631*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 13632 ;; 13633esac 13634 13635ac_aux_dir='$ac_aux_dir' 13636xsi_shell='$xsi_shell' 13637lt_shell_append='$lt_shell_append' 13638 13639# See if we are running on zsh, and set the options which allow our 13640# commands through without removal of \ escapes INIT. 13641if test -n "\${ZSH_VERSION+set}" ; then 13642 setopt NO_GLOB_SUBST 13643fi 13644 13645 13646 PACKAGE='$PACKAGE' 13647 VERSION='$VERSION' 13648 TIMESTAMP='$TIMESTAMP' 13649 RM='$RM' 13650 ofile='$ofile' 13651 13652 13653 13654 13655_ACEOF 13656 13657cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13658 13659# Handling of arguments. 13660for ac_config_target in $ac_config_targets 13661do 13662 case $ac_config_target in 13663 "jconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS jconfig.h:jconfig.cfg" ;; 13664 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13665 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 13666 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13667 13668 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 13669 esac 13670done 13671 13672 13673# If the user did not use the arguments to specify the items to instantiate, 13674# then the envvar interface is used. Set only those that are not. 13675# We use the long form for the default assignment because of an extremely 13676# bizarre bug on SunOS 4.1.3. 13677if $ac_need_defaults; then 13678 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13679 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 13680 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13681fi 13682 13683# Have a temporary directory for convenience. Make it in the build tree 13684# simply because there is no reason against having it here, and in addition, 13685# creating and moving files from /tmp can sometimes cause problems. 13686# Hook for its removal unless debugging. 13687# Note that there is a small window in which the directory will not be cleaned: 13688# after its creation but before its name has been assigned to `$tmp'. 13689$debug || 13690{ 13691 tmp= 13692 trap 'exit_status=$? 13693 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 13694' 0 13695 trap 'as_fn_exit 1' 1 2 13 15 13696} 13697# Create a (secure) tmp directory for tmp files. 13698 13699{ 13700 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13701 test -n "$tmp" && test -d "$tmp" 13702} || 13703{ 13704 tmp=./conf$$-$RANDOM 13705 (umask 077 && mkdir "$tmp") 13706} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 13707 13708# Set up the scripts for CONFIG_FILES section. 13709# No need to generate them if there are no CONFIG_FILES. 13710# This happens for instance with `./config.status config.h'. 13711if test -n "$CONFIG_FILES"; then 13712 13713 13714ac_cr=`echo X | tr X '\015'` 13715# On cygwin, bash can eat \r inside `` if the user requested igncr. 13716# But we know of no other shell where ac_cr would be empty at this 13717# point, so we can use a bashism as a fallback. 13718if test "x$ac_cr" = x; then 13719 eval ac_cr=\$\'\\r\' 13720fi 13721ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13722if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13723 ac_cs_awk_cr='\r' 13724else 13725 ac_cs_awk_cr=$ac_cr 13726fi 13727 13728echo 'BEGIN {' >"$tmp/subs1.awk" && 13729_ACEOF 13730 13731 13732{ 13733 echo "cat >conf$$subs.awk <<_ACEOF" && 13734 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13735 echo "_ACEOF" 13736} >conf$$subs.sh || 13737 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 13738ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 13739ac_delim='%!_!# ' 13740for ac_last_try in false false false false false :; do 13741 . ./conf$$subs.sh || 13742 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 13743 13744 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13745 if test $ac_delim_n = $ac_delim_num; then 13746 break 13747 elif $ac_last_try; then 13748 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 13749 else 13750 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13751 fi 13752done 13753rm -f conf$$subs.sh 13754 13755cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13756cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 13757_ACEOF 13758sed -n ' 13759h 13760s/^/S["/; s/!.*/"]=/ 13761p 13762g 13763s/^[^!]*!// 13764:repl 13765t repl 13766s/'"$ac_delim"'$// 13767t delim 13768:nl 13769h 13770s/\(.\{148\}\)..*/\1/ 13771t more1 13772s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13773p 13774n 13775b repl 13776:more1 13777s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13778p 13779g 13780s/.\{148\}// 13781t nl 13782:delim 13783h 13784s/\(.\{148\}\)..*/\1/ 13785t more2 13786s/["\\]/\\&/g; s/^/"/; s/$/"/ 13787p 13788b 13789:more2 13790s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13791p 13792g 13793s/.\{148\}// 13794t delim 13795' <conf$$subs.awk | sed ' 13796/^[^""]/{ 13797 N 13798 s/\n// 13799} 13800' >>$CONFIG_STATUS || ac_write_fail=1 13801rm -f conf$$subs.awk 13802cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13803_ACAWK 13804cat >>"\$tmp/subs1.awk" <<_ACAWK && 13805 for (key in S) S_is_set[key] = 1 13806 FS = "" 13807 13808} 13809{ 13810 line = $ 0 13811 nfields = split(line, field, "@") 13812 substed = 0 13813 len = length(field[1]) 13814 for (i = 2; i < nfields; i++) { 13815 key = field[i] 13816 keylen = length(key) 13817 if (S_is_set[key]) { 13818 value = S[key] 13819 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13820 len += length(value) + length(field[++i]) 13821 substed = 1 13822 } else 13823 len += 1 + keylen 13824 } 13825 13826 print line 13827} 13828 13829_ACAWK 13830_ACEOF 13831cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13832if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13833 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13834else 13835 cat 13836fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 13837 || as_fn_error "could not setup config files machinery" "$LINENO" 5 13838_ACEOF 13839 13840# VPATH may cause trouble with some makes, so we remove $(srcdir), 13841# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 13842# trailing colons and then remove the whole line if VPATH becomes empty 13843# (actually we leave an empty line to preserve line numbers). 13844if test "x$srcdir" = x.; then 13845 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 13846s/:*\$(srcdir):*/:/ 13847s/:*\${srcdir}:*/:/ 13848s/:*@srcdir@:*/:/ 13849s/^\([^=]*=[ ]*\):*/\1/ 13850s/:*$// 13851s/^[^=]*=[ ]*$// 13852}' 13853fi 13854 13855cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13856fi # test -n "$CONFIG_FILES" 13857 13858# Set up the scripts for CONFIG_HEADERS section. 13859# No need to generate them if there are no CONFIG_HEADERS. 13860# This happens for instance with `./config.status Makefile'. 13861if test -n "$CONFIG_HEADERS"; then 13862cat >"$tmp/defines.awk" <<\_ACAWK || 13863BEGIN { 13864_ACEOF 13865 13866# Transform confdefs.h into an awk script `defines.awk', embedded as 13867# here-document in config.status, that substitutes the proper values into 13868# config.h.in to produce config.h. 13869 13870# Create a delimiter string that does not exist in confdefs.h, to ease 13871# handling of long lines. 13872ac_delim='%!_!# ' 13873for ac_last_try in false false :; do 13874 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 13875 if test -z "$ac_t"; then 13876 break 13877 elif $ac_last_try; then 13878 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 13879 else 13880 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13881 fi 13882done 13883 13884# For the awk script, D is an array of macro values keyed by name, 13885# likewise P contains macro parameters if any. Preserve backslash 13886# newline sequences. 13887 13888ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13889sed -n ' 13890s/.\{148\}/&'"$ac_delim"'/g 13891t rset 13892:rset 13893s/^[ ]*#[ ]*define[ ][ ]*/ / 13894t def 13895d 13896:def 13897s/\\$// 13898t bsnl 13899s/["\\]/\\&/g 13900s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13901D["\1"]=" \3"/p 13902s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13903d 13904:bsnl 13905s/["\\]/\\&/g 13906s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13907D["\1"]=" \3\\\\\\n"\\/p 13908t cont 13909s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13910t cont 13911d 13912:cont 13913n 13914s/.\{148\}/&'"$ac_delim"'/g 13915t clear 13916:clear 13917s/\\$// 13918t bsnlc 13919s/["\\]/\\&/g; s/^/"/; s/$/"/p 13920d 13921:bsnlc 13922s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13923b cont 13924' <confdefs.h | sed ' 13925s/'"$ac_delim"'/"\\\ 13926"/g' >>$CONFIG_STATUS || ac_write_fail=1 13927 13928cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13929 for (key in D) D_is_set[key] = 1 13930 FS = "" 13931} 13932/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13933 line = \$ 0 13934 split(line, arg, " ") 13935 if (arg[1] == "#") { 13936 defundef = arg[2] 13937 mac1 = arg[3] 13938 } else { 13939 defundef = substr(arg[1], 2) 13940 mac1 = arg[2] 13941 } 13942 split(mac1, mac2, "(") #) 13943 macro = mac2[1] 13944 prefix = substr(line, 1, index(line, defundef) - 1) 13945 if (D_is_set[macro]) { 13946 # Preserve the white space surrounding the "#". 13947 print prefix "define", macro P[macro] D[macro] 13948 next 13949 } else { 13950 # Replace #undef with comments. This is necessary, for example, 13951 # in the case of _POSIX_SOURCE, which is predefined and required 13952 # on some systems where configure will not decide to define it. 13953 if (defundef == "undef") { 13954 print "/*", prefix defundef, macro, "*/" 13955 next 13956 } 13957 } 13958} 13959{ print } 13960_ACAWK 13961_ACEOF 13962cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13963 as_fn_error "could not setup config headers machinery" "$LINENO" 5 13964fi # test -n "$CONFIG_HEADERS" 13965 13966 13967eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13968shift 13969for ac_tag 13970do 13971 case $ac_tag in 13972 :[FHLC]) ac_mode=$ac_tag; continue;; 13973 esac 13974 case $ac_mode$ac_tag in 13975 :[FHL]*:*);; 13976 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 13977 :[FH]-) ac_tag=-:-;; 13978 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13979 esac 13980 ac_save_IFS=$IFS 13981 IFS=: 13982 set x $ac_tag 13983 IFS=$ac_save_IFS 13984 shift 13985 ac_file=$1 13986 shift 13987 13988 case $ac_mode in 13989 :L) ac_source=$1;; 13990 :[FH]) 13991 ac_file_inputs= 13992 for ac_f 13993 do 13994 case $ac_f in 13995 -) ac_f="$tmp/stdin";; 13996 *) # Look for the file first in the build tree, then in the source tree 13997 # (if the path is not absolute). The absolute path cannot be DOS-style, 13998 # because $ac_f cannot contain `:'. 13999 test -f "$ac_f" || 14000 case $ac_f in 14001 [\\/$]*) false;; 14002 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14003 esac || 14004 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 14005 esac 14006 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14007 as_fn_append ac_file_inputs " '$ac_f'" 14008 done 14009 14010 # Let's still pretend it is `configure' which instantiates (i.e., don't 14011 # use $as_me), people would be surprised to read: 14012 # /* config.h. Generated by config.status. */ 14013 configure_input='Generated from '` 14014 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14015 `' by configure.' 14016 if test x"$ac_file" != x-; then 14017 configure_input="$ac_file. $configure_input" 14018 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14019$as_echo "$as_me: creating $ac_file" >&6;} 14020 fi 14021 # Neutralize special characters interpreted by sed in replacement strings. 14022 case $configure_input in #( 14023 *\&* | *\|* | *\\* ) 14024 ac_sed_conf_input=`$as_echo "$configure_input" | 14025 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14026 *) ac_sed_conf_input=$configure_input;; 14027 esac 14028 14029 case $ac_tag in 14030 *:-:* | *:-) cat >"$tmp/stdin" \ 14031 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 14032 esac 14033 ;; 14034 esac 14035 14036 ac_dir=`$as_dirname -- "$ac_file" || 14037$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14038 X"$ac_file" : 'X\(//\)[^/]' \| \ 14039 X"$ac_file" : 'X\(//\)$' \| \ 14040 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14041$as_echo X"$ac_file" | 14042 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14043 s//\1/ 14044 q 14045 } 14046 /^X\(\/\/\)[^/].*/{ 14047 s//\1/ 14048 q 14049 } 14050 /^X\(\/\/\)$/{ 14051 s//\1/ 14052 q 14053 } 14054 /^X\(\/\).*/{ 14055 s//\1/ 14056 q 14057 } 14058 s/.*/./; q'` 14059 as_dir="$ac_dir"; as_fn_mkdir_p 14060 ac_builddir=. 14061 14062case "$ac_dir" in 14063.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14064*) 14065 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14066 # A ".." for each directory in $ac_dir_suffix. 14067 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14068 case $ac_top_builddir_sub in 14069 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14070 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14071 esac ;; 14072esac 14073ac_abs_top_builddir=$ac_pwd 14074ac_abs_builddir=$ac_pwd$ac_dir_suffix 14075# for backward compatibility: 14076ac_top_builddir=$ac_top_build_prefix 14077 14078case $srcdir in 14079 .) # We are building in place. 14080 ac_srcdir=. 14081 ac_top_srcdir=$ac_top_builddir_sub 14082 ac_abs_top_srcdir=$ac_pwd ;; 14083 [\\/]* | ?:[\\/]* ) # Absolute name. 14084 ac_srcdir=$srcdir$ac_dir_suffix; 14085 ac_top_srcdir=$srcdir 14086 ac_abs_top_srcdir=$srcdir ;; 14087 *) # Relative name. 14088 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14089 ac_top_srcdir=$ac_top_build_prefix$srcdir 14090 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14091esac 14092ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14093 14094 14095 case $ac_mode in 14096 :F) 14097 # 14098 # CONFIG_FILE 14099 # 14100 14101 case $INSTALL in 14102 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14103 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14104 esac 14105 ac_MKDIR_P=$MKDIR_P 14106 case $MKDIR_P in 14107 [\\/$]* | ?:[\\/]* ) ;; 14108 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14109 esac 14110_ACEOF 14111 14112cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14113# If the template does not know about datarootdir, expand it. 14114# FIXME: This hack should be removed a few years after 2.60. 14115ac_datarootdir_hack=; ac_datarootdir_seen= 14116ac_sed_dataroot=' 14117/datarootdir/ { 14118 p 14119 q 14120} 14121/@datadir@/p 14122/@docdir@/p 14123/@infodir@/p 14124/@localedir@/p 14125/@mandir@/p' 14126case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14127*datarootdir*) ac_datarootdir_seen=yes;; 14128*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14130$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14131_ACEOF 14132cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14133 ac_datarootdir_hack=' 14134 s&@datadir@&$datadir&g 14135 s&@docdir@&$docdir&g 14136 s&@infodir@&$infodir&g 14137 s&@localedir@&$localedir&g 14138 s&@mandir@&$mandir&g 14139 s&\\\${datarootdir}&$datarootdir&g' ;; 14140esac 14141_ACEOF 14142 14143# Neutralize VPATH when `$srcdir' = `.'. 14144# Shell code in configure.ac might set extrasub. 14145# FIXME: do we really want to maintain this feature? 14146cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14147ac_sed_extra="$ac_vpsub 14148$extrasub 14149_ACEOF 14150cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14151:t 14152/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14153s|@configure_input@|$ac_sed_conf_input|;t t 14154s&@top_builddir@&$ac_top_builddir_sub&;t t 14155s&@top_build_prefix@&$ac_top_build_prefix&;t t 14156s&@srcdir@&$ac_srcdir&;t t 14157s&@abs_srcdir@&$ac_abs_srcdir&;t t 14158s&@top_srcdir@&$ac_top_srcdir&;t t 14159s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14160s&@builddir@&$ac_builddir&;t t 14161s&@abs_builddir@&$ac_abs_builddir&;t t 14162s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14163s&@INSTALL@&$ac_INSTALL&;t t 14164s&@MKDIR_P@&$ac_MKDIR_P&;t t 14165$ac_datarootdir_hack 14166" 14167eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 14168 || as_fn_error "could not create $ac_file" "$LINENO" 5 14169 14170test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14171 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 14172 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 14173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14174which seems to be undefined. Please make sure it is defined." >&5 14175$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14176which seems to be undefined. Please make sure it is defined." >&2;} 14177 14178 rm -f "$tmp/stdin" 14179 case $ac_file in 14180 -) cat "$tmp/out" && rm -f "$tmp/out";; 14181 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 14182 esac \ 14183 || as_fn_error "could not create $ac_file" "$LINENO" 5 14184 ;; 14185 :H) 14186 # 14187 # CONFIG_HEADER 14188 # 14189 if test x"$ac_file" != x-; then 14190 { 14191 $as_echo "/* $configure_input */" \ 14192 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 14193 } >"$tmp/config.h" \ 14194 || as_fn_error "could not create $ac_file" "$LINENO" 5 14195 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 14196 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 14197$as_echo "$as_me: $ac_file is unchanged" >&6;} 14198 else 14199 rm -f "$ac_file" 14200 mv "$tmp/config.h" "$ac_file" \ 14201 || as_fn_error "could not create $ac_file" "$LINENO" 5 14202 fi 14203 else 14204 $as_echo "/* $configure_input */" \ 14205 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 14206 || as_fn_error "could not create -" "$LINENO" 5 14207 fi 14208# Compute "$ac_file"'s index in $config_headers. 14209_am_arg="$ac_file" 14210_am_stamp_count=1 14211for _am_header in $config_headers :; do 14212 case $_am_header in 14213 $_am_arg | $_am_arg:* ) 14214 break ;; 14215 * ) 14216 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14217 esac 14218done 14219echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14220$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14221 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14222 X"$_am_arg" : 'X\(//\)$' \| \ 14223 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14224$as_echo X"$_am_arg" | 14225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14226 s//\1/ 14227 q 14228 } 14229 /^X\(\/\/\)[^/].*/{ 14230 s//\1/ 14231 q 14232 } 14233 /^X\(\/\/\)$/{ 14234 s//\1/ 14235 q 14236 } 14237 /^X\(\/\).*/{ 14238 s//\1/ 14239 q 14240 } 14241 s/.*/./; q'`/stamp-h$_am_stamp_count 14242 ;; 14243 14244 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14245$as_echo "$as_me: executing $ac_file commands" >&6;} 14246 ;; 14247 esac 14248 14249 14250 case $ac_file$ac_mode in 14251 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14252 # Autoconf 2.62 quotes --file arguments for eval, but not when files 14253 # are listed without --file. Let's play safe and only enable the eval 14254 # if we detect the quoting. 14255 case $CONFIG_FILES in 14256 *\'*) eval set x "$CONFIG_FILES" ;; 14257 *) set x $CONFIG_FILES ;; 14258 esac 14259 shift 14260 for mf 14261 do 14262 # Strip MF so we end up with the name of the file. 14263 mf=`echo "$mf" | sed -e 's/:.*$//'` 14264 # Check whether this is an Automake generated Makefile or not. 14265 # We used to match only the files named `Makefile.in', but 14266 # some people rename them; so instead we look at the file content. 14267 # Grep'ing the first line is not enough: some people post-process 14268 # each Makefile.in and add a new line on top of each file to say so. 14269 # Grep'ing the whole file is not good either: AIX grep has a line 14270 # limit of 2048, but all sed's we know have understand at least 4000. 14271 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 14272 dirpart=`$as_dirname -- "$mf" || 14273$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14274 X"$mf" : 'X\(//\)[^/]' \| \ 14275 X"$mf" : 'X\(//\)$' \| \ 14276 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 14277$as_echo X"$mf" | 14278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14279 s//\1/ 14280 q 14281 } 14282 /^X\(\/\/\)[^/].*/{ 14283 s//\1/ 14284 q 14285 } 14286 /^X\(\/\/\)$/{ 14287 s//\1/ 14288 q 14289 } 14290 /^X\(\/\).*/{ 14291 s//\1/ 14292 q 14293 } 14294 s/.*/./; q'` 14295 else 14296 continue 14297 fi 14298 # Extract the definition of DEPDIR, am__include, and am__quote 14299 # from the Makefile without running `make'. 14300 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 14301 test -z "$DEPDIR" && continue 14302 am__include=`sed -n 's/^am__include = //p' < "$mf"` 14303 test -z "am__include" && continue 14304 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 14305 # When using ansi2knr, U may be empty or an underscore; expand it 14306 U=`sed -n 's/^U = //p' < "$mf"` 14307 # Find all dependency output files, they are included files with 14308 # $(DEPDIR) in their names. We invoke sed twice because it is the 14309 # simplest approach to changing $(DEPDIR) to its actual value in the 14310 # expansion. 14311 for file in `sed -n " 14312 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 14313 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 14314 # Make sure the directory exists. 14315 test -f "$dirpart/$file" && continue 14316 fdir=`$as_dirname -- "$file" || 14317$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14318 X"$file" : 'X\(//\)[^/]' \| \ 14319 X"$file" : 'X\(//\)$' \| \ 14320 X"$file" : 'X\(/\)' \| . 2>/dev/null || 14321$as_echo X"$file" | 14322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14323 s//\1/ 14324 q 14325 } 14326 /^X\(\/\/\)[^/].*/{ 14327 s//\1/ 14328 q 14329 } 14330 /^X\(\/\/\)$/{ 14331 s//\1/ 14332 q 14333 } 14334 /^X\(\/\).*/{ 14335 s//\1/ 14336 q 14337 } 14338 s/.*/./; q'` 14339 as_dir=$dirpart/$fdir; as_fn_mkdir_p 14340 # echo "creating $dirpart/$file" 14341 echo '# dummy' > "$dirpart/$file" 14342 done 14343 done 14344} 14345 ;; 14346 "libtool":C) 14347 14348 # See if we are running on zsh, and set the options which allow our 14349 # commands through without removal of \ escapes. 14350 if test -n "${ZSH_VERSION+set}" ; then 14351 setopt NO_GLOB_SUBST 14352 fi 14353 14354 cfgfile="${ofile}T" 14355 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14356 $RM "$cfgfile" 14357 14358 cat <<_LT_EOF >> "$cfgfile" 14359#! $SHELL 14360 14361# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 14362# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 14363# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14364# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14365# 14366# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 14367# 2006, 2007, 2008 Free Software Foundation, Inc. 14368# Written by Gordon Matzigkeit, 1996 14369# 14370# This file is part of GNU Libtool. 14371# 14372# GNU Libtool is free software; you can redistribute it and/or 14373# modify it under the terms of the GNU General Public License as 14374# published by the Free Software Foundation; either version 2 of 14375# the License, or (at your option) any later version. 14376# 14377# As a special exception to the GNU General Public License, 14378# if you distribute this file as part of a program or library that 14379# is built using GNU Libtool, you may include this file under the 14380# same distribution terms that you use for the rest of that program. 14381# 14382# GNU Libtool is distributed in the hope that it will be useful, 14383# but WITHOUT ANY WARRANTY; without even the implied warranty of 14384# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14385# GNU General Public License for more details. 14386# 14387# You should have received a copy of the GNU General Public License 14388# along with GNU Libtool; see the file COPYING. If not, a copy 14389# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 14390# obtained by writing to the Free Software Foundation, Inc., 14391# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 14392 14393 14394# The names of the tagged configurations supported by this script. 14395available_tags="" 14396 14397# ### BEGIN LIBTOOL CONFIG 14398 14399# Assembler program. 14400AS=$AS 14401 14402# DLL creation program. 14403DLLTOOL=$DLLTOOL 14404 14405# Object dumper program. 14406OBJDUMP=$OBJDUMP 14407 14408# Which release of libtool.m4 was used? 14409macro_version=$macro_version 14410macro_revision=$macro_revision 14411 14412# Whether or not to build shared libraries. 14413build_libtool_libs=$enable_shared 14414 14415# Whether or not to build static libraries. 14416build_old_libs=$enable_static 14417 14418# What type of objects to build. 14419pic_mode=$pic_mode 14420 14421# Whether or not to optimize for fast installation. 14422fast_install=$enable_fast_install 14423 14424# The host system. 14425host_alias=$host_alias 14426host=$host 14427host_os=$host_os 14428 14429# The build system. 14430build_alias=$build_alias 14431build=$build 14432build_os=$build_os 14433 14434# A sed program that does not truncate output. 14435SED=$lt_SED 14436 14437# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14438Xsed="\$SED -e 1s/^X//" 14439 14440# A grep program that handles long lines. 14441GREP=$lt_GREP 14442 14443# An ERE matcher. 14444EGREP=$lt_EGREP 14445 14446# A literal string matcher. 14447FGREP=$lt_FGREP 14448 14449# A BSD- or MS-compatible name lister. 14450NM=$lt_NM 14451 14452# Whether we need soft or hard links. 14453LN_S=$lt_LN_S 14454 14455# What is the maximum length of a command? 14456max_cmd_len=$max_cmd_len 14457 14458# Object file suffix (normally "o"). 14459objext=$ac_objext 14460 14461# Executable file suffix (normally ""). 14462exeext=$exeext 14463 14464# whether the shell understands "unset". 14465lt_unset=$lt_unset 14466 14467# turn spaces into newlines. 14468SP2NL=$lt_lt_SP2NL 14469 14470# turn newlines into spaces. 14471NL2SP=$lt_lt_NL2SP 14472 14473# How to create reloadable object files. 14474reload_flag=$lt_reload_flag 14475reload_cmds=$lt_reload_cmds 14476 14477# Method to check whether dependent libraries are shared objects. 14478deplibs_check_method=$lt_deplibs_check_method 14479 14480# Command to use when deplibs_check_method == "file_magic". 14481file_magic_cmd=$lt_file_magic_cmd 14482 14483# The archiver. 14484AR=$lt_AR 14485AR_FLAGS=$lt_AR_FLAGS 14486 14487# A symbol stripping program. 14488STRIP=$lt_STRIP 14489 14490# Commands used to install an old-style archive. 14491RANLIB=$lt_RANLIB 14492old_postinstall_cmds=$lt_old_postinstall_cmds 14493old_postuninstall_cmds=$lt_old_postuninstall_cmds 14494 14495# A C compiler. 14496LTCC=$lt_CC 14497 14498# LTCC compiler flags. 14499LTCFLAGS=$lt_CFLAGS 14500 14501# Take the output of nm and produce a listing of raw symbols and C names. 14502global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14503 14504# Transform the output of nm in a proper C declaration. 14505global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14506 14507# Transform the output of nm in a C name address pair. 14508global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14509 14510# Transform the output of nm in a C name address pair when lib prefix is needed. 14511global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14512 14513# The name of the directory that contains temporary libtool files. 14514objdir=$objdir 14515 14516# Shell to use when invoking shell scripts. 14517SHELL=$lt_SHELL 14518 14519# An echo program that does not interpret backslashes. 14520ECHO=$lt_ECHO 14521 14522# Used to examine libraries when file_magic_cmd begins with "file". 14523MAGIC_CMD=$MAGIC_CMD 14524 14525# Must we lock files when doing compilation? 14526need_locks=$lt_need_locks 14527 14528# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14529DSYMUTIL=$lt_DSYMUTIL 14530 14531# Tool to change global to local symbols on Mac OS X. 14532NMEDIT=$lt_NMEDIT 14533 14534# Tool to manipulate fat objects and archives on Mac OS X. 14535LIPO=$lt_LIPO 14536 14537# ldd/readelf like tool for Mach-O binaries on Mac OS X. 14538OTOOL=$lt_OTOOL 14539 14540# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 14541OTOOL64=$lt_OTOOL64 14542 14543# Old archive suffix (normally "a"). 14544libext=$libext 14545 14546# Shared library suffix (normally ".so"). 14547shrext_cmds=$lt_shrext_cmds 14548 14549# The commands to extract the exported symbol list from a shared archive. 14550extract_expsyms_cmds=$lt_extract_expsyms_cmds 14551 14552# Variables whose values should be saved in libtool wrapper scripts and 14553# restored at link time. 14554variables_saved_for_relink=$lt_variables_saved_for_relink 14555 14556# Do we need the "lib" prefix for modules? 14557need_lib_prefix=$need_lib_prefix 14558 14559# Do we need a version for libraries? 14560need_version=$need_version 14561 14562# Library versioning type. 14563version_type=$version_type 14564 14565# Shared library runtime path variable. 14566runpath_var=$runpath_var 14567 14568# Shared library path variable. 14569shlibpath_var=$shlibpath_var 14570 14571# Is shlibpath searched before the hard-coded library search path? 14572shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14573 14574# Format of library name prefix. 14575libname_spec=$lt_libname_spec 14576 14577# List of archive names. First name is the real one, the rest are links. 14578# The last name is the one that the linker finds with -lNAME 14579library_names_spec=$lt_library_names_spec 14580 14581# The coded name of the library, if different from the real name. 14582soname_spec=$lt_soname_spec 14583 14584# Command to use after installation of a shared archive. 14585postinstall_cmds=$lt_postinstall_cmds 14586 14587# Command to use after uninstallation of a shared archive. 14588postuninstall_cmds=$lt_postuninstall_cmds 14589 14590# Commands used to finish a libtool library installation in a directory. 14591finish_cmds=$lt_finish_cmds 14592 14593# As "finish_cmds", except a single script fragment to be evaled but 14594# not shown. 14595finish_eval=$lt_finish_eval 14596 14597# Whether we should hardcode library paths into libraries. 14598hardcode_into_libs=$hardcode_into_libs 14599 14600# Compile-time system search path for libraries. 14601sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14602 14603# Run-time system search path for libraries. 14604sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14605 14606# Whether dlopen is supported. 14607dlopen_support=$enable_dlopen 14608 14609# Whether dlopen of programs is supported. 14610dlopen_self=$enable_dlopen_self 14611 14612# Whether dlopen of statically linked programs is supported. 14613dlopen_self_static=$enable_dlopen_self_static 14614 14615# Commands to strip libraries. 14616old_striplib=$lt_old_striplib 14617striplib=$lt_striplib 14618 14619 14620# The linker used to build libraries. 14621LD=$lt_LD 14622 14623# Commands used to build an old-style archive. 14624old_archive_cmds=$lt_old_archive_cmds 14625 14626# A language specific compiler. 14627CC=$lt_compiler 14628 14629# Is the compiler the GNU compiler? 14630with_gcc=$GCC 14631 14632# Compiler flag to turn off builtin functions. 14633no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 14634 14635# How to pass a linker flag through the compiler. 14636wl=$lt_lt_prog_compiler_wl 14637 14638# Additional compiler flags for building library objects. 14639pic_flag=$lt_lt_prog_compiler_pic 14640 14641# Compiler flag to prevent dynamic linking. 14642link_static_flag=$lt_lt_prog_compiler_static 14643 14644# Does compiler simultaneously support -c and -o options? 14645compiler_c_o=$lt_lt_cv_prog_compiler_c_o 14646 14647# Whether or not to add -lc for building shared libraries. 14648build_libtool_need_lc=$archive_cmds_need_lc 14649 14650# Whether or not to disallow shared libs when runtime libs are static. 14651allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 14652 14653# Compiler flag to allow reflexive dlopens. 14654export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 14655 14656# Compiler flag to generate shared objects directly from archives. 14657whole_archive_flag_spec=$lt_whole_archive_flag_spec 14658 14659# Whether the compiler copes with passing no objects directly. 14660compiler_needs_object=$lt_compiler_needs_object 14661 14662# Create an old-style archive from a shared archive. 14663old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 14664 14665# Create a temporary old-style archive to link instead of a shared archive. 14666old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 14667 14668# Commands used to build a shared archive. 14669archive_cmds=$lt_archive_cmds 14670archive_expsym_cmds=$lt_archive_expsym_cmds 14671 14672# Commands used to build a loadable module if different from building 14673# a shared archive. 14674module_cmds=$lt_module_cmds 14675module_expsym_cmds=$lt_module_expsym_cmds 14676 14677# Whether we are building with GNU ld or not. 14678with_gnu_ld=$lt_with_gnu_ld 14679 14680# Flag that allows shared libraries with undefined symbols to be built. 14681allow_undefined_flag=$lt_allow_undefined_flag 14682 14683# Flag that enforces no undefined symbols. 14684no_undefined_flag=$lt_no_undefined_flag 14685 14686# Flag to hardcode \$libdir into a binary during linking. 14687# This must work even if \$libdir does not exist 14688hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 14689 14690# If ld is used when linking, flag to hardcode \$libdir into a binary 14691# during linking. This must work even if \$libdir does not exist. 14692hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 14693 14694# Whether we need a single "-rpath" flag with a separated argument. 14695hardcode_libdir_separator=$lt_hardcode_libdir_separator 14696 14697# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14698# DIR into the resulting binary. 14699hardcode_direct=$hardcode_direct 14700 14701# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14702# DIR into the resulting binary and the resulting library dependency is 14703# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 14704# library is relocated. 14705hardcode_direct_absolute=$hardcode_direct_absolute 14706 14707# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 14708# into the resulting binary. 14709hardcode_minus_L=$hardcode_minus_L 14710 14711# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 14712# into the resulting binary. 14713hardcode_shlibpath_var=$hardcode_shlibpath_var 14714 14715# Set to "yes" if building a shared library automatically hardcodes DIR 14716# into the library and all subsequent libraries and executables linked 14717# against it. 14718hardcode_automatic=$hardcode_automatic 14719 14720# Set to yes if linker adds runtime paths of dependent libraries 14721# to runtime path list. 14722inherit_rpath=$inherit_rpath 14723 14724# Whether libtool must link a program against all its dependency libraries. 14725link_all_deplibs=$link_all_deplibs 14726 14727# Fix the shell variable \$srcfile for the compiler. 14728fix_srcfile_path=$lt_fix_srcfile_path 14729 14730# Set to "yes" if exported symbols are required. 14731always_export_symbols=$always_export_symbols 14732 14733# The commands to list exported symbols. 14734export_symbols_cmds=$lt_export_symbols_cmds 14735 14736# Symbols that should not be listed in the preloaded symbols. 14737exclude_expsyms=$lt_exclude_expsyms 14738 14739# Symbols that must always be exported. 14740include_expsyms=$lt_include_expsyms 14741 14742# Commands necessary for linking programs (against libraries) with templates. 14743prelink_cmds=$lt_prelink_cmds 14744 14745# Specify filename containing input files. 14746file_list_spec=$lt_file_list_spec 14747 14748# How to hardcode a shared library path into an executable. 14749hardcode_action=$hardcode_action 14750 14751# ### END LIBTOOL CONFIG 14752 14753_LT_EOF 14754 14755 case $host_os in 14756 aix3*) 14757 cat <<\_LT_EOF >> "$cfgfile" 14758# AIX sometimes has problems with the GCC collect2 program. For some 14759# reason, if we set the COLLECT_NAMES environment variable, the problems 14760# vanish in a puff of smoke. 14761if test "X${COLLECT_NAMES+set}" != Xset; then 14762 COLLECT_NAMES= 14763 export COLLECT_NAMES 14764fi 14765_LT_EOF 14766 ;; 14767 esac 14768 14769 14770ltmain="$ac_aux_dir/ltmain.sh" 14771 14772 14773 # We use sed instead of cat because bash on DJGPP gets confused if 14774 # if finds mixed CR/LF and LF-only lines. Since sed operates in 14775 # text mode, it properly converts lines to CR/LF. This bash problem 14776 # is reportedly fixed, but why not run on old versions too? 14777 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 14778 || (rm -f "$cfgfile"; exit 1) 14779 14780 case $xsi_shell in 14781 yes) 14782 cat << \_LT_EOF >> "$cfgfile" 14783 14784# func_dirname file append nondir_replacement 14785# Compute the dirname of FILE. If nonempty, add APPEND to the result, 14786# otherwise set result to NONDIR_REPLACEMENT. 14787func_dirname () 14788{ 14789 case ${1} in 14790 */*) func_dirname_result="${1%/*}${2}" ;; 14791 * ) func_dirname_result="${3}" ;; 14792 esac 14793} 14794 14795# func_basename file 14796func_basename () 14797{ 14798 func_basename_result="${1##*/}" 14799} 14800 14801# func_dirname_and_basename file append nondir_replacement 14802# perform func_basename and func_dirname in a single function 14803# call: 14804# dirname: Compute the dirname of FILE. If nonempty, 14805# add APPEND to the result, otherwise set result 14806# to NONDIR_REPLACEMENT. 14807# value returned in "$func_dirname_result" 14808# basename: Compute filename of FILE. 14809# value retuned in "$func_basename_result" 14810# Implementation must be kept synchronized with func_dirname 14811# and func_basename. For efficiency, we do not delegate to 14812# those functions but instead duplicate the functionality here. 14813func_dirname_and_basename () 14814{ 14815 case ${1} in 14816 */*) func_dirname_result="${1%/*}${2}" ;; 14817 * ) func_dirname_result="${3}" ;; 14818 esac 14819 func_basename_result="${1##*/}" 14820} 14821 14822# func_stripname prefix suffix name 14823# strip PREFIX and SUFFIX off of NAME. 14824# PREFIX and SUFFIX must not contain globbing or regex special 14825# characters, hashes, percent signs, but SUFFIX may contain a leading 14826# dot (in which case that matches only a dot). 14827func_stripname () 14828{ 14829 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 14830 # positional parameters, so assign one to ordinary parameter first. 14831 func_stripname_result=${3} 14832 func_stripname_result=${func_stripname_result#"${1}"} 14833 func_stripname_result=${func_stripname_result%"${2}"} 14834} 14835 14836# func_opt_split 14837func_opt_split () 14838{ 14839 func_opt_split_opt=${1%%=*} 14840 func_opt_split_arg=${1#*=} 14841} 14842 14843# func_lo2o object 14844func_lo2o () 14845{ 14846 case ${1} in 14847 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 14848 *) func_lo2o_result=${1} ;; 14849 esac 14850} 14851 14852# func_xform libobj-or-source 14853func_xform () 14854{ 14855 func_xform_result=${1%.*}.lo 14856} 14857 14858# func_arith arithmetic-term... 14859func_arith () 14860{ 14861 func_arith_result=$(( $* )) 14862} 14863 14864# func_len string 14865# STRING may not start with a hyphen. 14866func_len () 14867{ 14868 func_len_result=${#1} 14869} 14870 14871_LT_EOF 14872 ;; 14873 *) # Bourne compatible functions. 14874 cat << \_LT_EOF >> "$cfgfile" 14875 14876# func_dirname file append nondir_replacement 14877# Compute the dirname of FILE. If nonempty, add APPEND to the result, 14878# otherwise set result to NONDIR_REPLACEMENT. 14879func_dirname () 14880{ 14881 # Extract subdirectory from the argument. 14882 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 14883 if test "X$func_dirname_result" = "X${1}"; then 14884 func_dirname_result="${3}" 14885 else 14886 func_dirname_result="$func_dirname_result${2}" 14887 fi 14888} 14889 14890# func_basename file 14891func_basename () 14892{ 14893 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 14894} 14895 14896 14897# func_stripname prefix suffix name 14898# strip PREFIX and SUFFIX off of NAME. 14899# PREFIX and SUFFIX must not contain globbing or regex special 14900# characters, hashes, percent signs, but SUFFIX may contain a leading 14901# dot (in which case that matches only a dot). 14902# func_strip_suffix prefix name 14903func_stripname () 14904{ 14905 case ${2} in 14906 .*) func_stripname_result=`$ECHO "X${3}" \ 14907 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 14908 *) func_stripname_result=`$ECHO "X${3}" \ 14909 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 14910 esac 14911} 14912 14913# sed scripts: 14914my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 14915my_sed_long_arg='1s/^-[^=]*=//' 14916 14917# func_opt_split 14918func_opt_split () 14919{ 14920 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 14921 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 14922} 14923 14924# func_lo2o object 14925func_lo2o () 14926{ 14927 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 14928} 14929 14930# func_xform libobj-or-source 14931func_xform () 14932{ 14933 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 14934} 14935 14936# func_arith arithmetic-term... 14937func_arith () 14938{ 14939 func_arith_result=`expr "$@"` 14940} 14941 14942# func_len string 14943# STRING may not start with a hyphen. 14944func_len () 14945{ 14946 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 14947} 14948 14949_LT_EOF 14950esac 14951 14952case $lt_shell_append in 14953 yes) 14954 cat << \_LT_EOF >> "$cfgfile" 14955 14956# func_append var value 14957# Append VALUE to the end of shell variable VAR. 14958func_append () 14959{ 14960 eval "$1+=\$2" 14961} 14962_LT_EOF 14963 ;; 14964 *) 14965 cat << \_LT_EOF >> "$cfgfile" 14966 14967# func_append var value 14968# Append VALUE to the end of shell variable VAR. 14969func_append () 14970{ 14971 eval "$1=\$$1\$2" 14972} 14973 14974_LT_EOF 14975 ;; 14976 esac 14977 14978 14979 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 14980 || (rm -f "$cfgfile"; exit 1) 14981 14982 mv -f "$cfgfile" "$ofile" || 14983 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 14984 chmod +x "$ofile" 14985 14986 ;; 14987 14988 esac 14989done # for ac_tag 14990 14991 14992as_fn_exit 0 14993_ACEOF 14994ac_clean_files=$ac_clean_files_save 14995 14996test $ac_write_fail = 0 || 14997 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 14998 14999 15000# configure is writing to config.log, and then calls config.status. 15001# config.status does its own redirection, appending to config.log. 15002# Unfortunately, on DOS this fails, as config.log is still kept open 15003# by configure, so config.status won't be able to write to it; its 15004# output is simply discarded. So we exec the FD to /dev/null, 15005# effectively closing config.log, so it can be properly (re)opened and 15006# appended to by config.status. When coming back to configure, we 15007# need to make the FD available again. 15008if test "$no_create" != yes; then 15009 ac_cs_success=: 15010 ac_config_status_args= 15011 test "$silent" = yes && 15012 ac_config_status_args="$ac_config_status_args --quiet" 15013 exec 5>/dev/null 15014 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15015 exec 5>>config.log 15016 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15017 # would make configure fail if this is the last instruction. 15018 $ac_cs_success || as_fn_exit $? 15019fi 15020if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15022$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15023fi 15024 15025