configure revision b4ee4795
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.65 for libX11 1.3.3. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, 10# Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94case $0 in #(( 95 *[\\/]* ) as_myself=$0 ;; 96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 97for as_dir in $PATH 98do 99 IFS=$as_save_IFS 100 test -z "$as_dir" && as_dir=. 101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 102 done 103IFS=$as_save_IFS 104 105 ;; 106esac 107# We did not find ourselves, most probably we were run as `sh COMMAND' 108# in which case we are not to be found in the path. 109if test "x$as_myself" = x; then 110 as_myself=$0 111fi 112if test ! -f "$as_myself"; then 113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 114 exit 1 115fi 116 117# Unset variables that we do not need and which cause bugs (e.g. in 118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 119# suppresses any "Segmentation fault" message there. '((' could 120# trigger a bug in pdksh 5.2.14. 121for as_var in BASH_ENV ENV MAIL MAILPATH 122do eval test x\${$as_var+set} = xset \ 123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 124done 125PS1='$ ' 126PS2='> ' 127PS4='+ ' 128 129# NLS nuisances. 130LC_ALL=C 131export LC_ALL 132LANGUAGE=C 133export LANGUAGE 134 135# CDPATH. 136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 137 138if test "x$CONFIG_SHELL" = x; then 139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 140 emulate sh 141 NULLCMD=: 142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 143 # is contrary to our usage. Disable this feature. 144 alias -g '\${1+\"\$@\"}'='\"\$@\"' 145 setopt NO_GLOB_SUBST 146else 147 case \`(set -o) 2>/dev/null\` in #( 148 *posix*) : 149 set -o posix ;; #( 150 *) : 151 ;; 152esac 153fi 154" 155 as_required="as_fn_return () { (exit \$1); } 156as_fn_success () { as_fn_return 0; } 157as_fn_failure () { as_fn_return 1; } 158as_fn_ret_success () { return 0; } 159as_fn_ret_failure () { return 1; } 160 161exitcode=0 162as_fn_success || { exitcode=1; echo as_fn_success failed.; } 163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 167 168else 169 exitcode=1; echo positional parameters were not saved. 170fi 171test x\$exitcode = x0 || exit 1" 172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 176test \$(( 1 + 1 )) = 2 || exit 1" 177 if (eval "$as_required") 2>/dev/null; then : 178 as_have_required=yes 179else 180 as_have_required=no 181fi 182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 183 184else 185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 186as_found=false 187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 188do 189 IFS=$as_save_IFS 190 test -z "$as_dir" && as_dir=. 191 as_found=: 192 case $as_dir in #( 193 /*) 194 for as_base in sh bash ksh sh5; do 195 # Try only shells that exist, to save several forks. 196 as_shell=$as_dir/$as_base 197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 199 CONFIG_SHELL=$as_shell as_have_required=yes 200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 201 break 2 202fi 203fi 204 done;; 205 esac 206 as_found=false 207done 208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 210 CONFIG_SHELL=$SHELL as_have_required=yes 211fi; } 212IFS=$as_save_IFS 213 214 215 if test "x$CONFIG_SHELL" != x; then : 216 # We cannot yet assume a decent shell, so we have to provide a 217 # neutralization value for shells without unset; and this also 218 # works around shells that cannot unset nonexistent variables. 219 BASH_ENV=/dev/null 220 ENV=/dev/null 221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 222 export CONFIG_SHELL 223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 224fi 225 226 if test x$as_have_required = xno; then : 227 $as_echo "$0: This script requires a shell more modern than all" 228 $as_echo "$0: the shells that I found on your system." 229 if test x${ZSH_VERSION+set} = xset ; then 230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 231 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 232 else 233 $as_echo "$0: Please tell bug-autoconf@gnu.org and 234$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 235$0: about your system, including any error possibly output 236$0: before this message. Then install a modern shell, or 237$0: manually run the script under such a shell if you do 238$0: have one." 239 fi 240 exit 1 241fi 242fi 243fi 244SHELL=${CONFIG_SHELL-/bin/sh} 245export SHELL 246# Unset more variables known to interfere with behavior of common tools. 247CLICOLOR_FORCE= GREP_OPTIONS= 248unset CLICOLOR_FORCE GREP_OPTIONS 249 250## --------------------- ## 251## M4sh Shell Functions. ## 252## --------------------- ## 253# as_fn_unset VAR 254# --------------- 255# Portably unset VAR. 256as_fn_unset () 257{ 258 { eval $1=; unset $1;} 259} 260as_unset=as_fn_unset 261 262# as_fn_set_status STATUS 263# ----------------------- 264# Set $? to STATUS, without forking. 265as_fn_set_status () 266{ 267 return $1 268} # as_fn_set_status 269 270# as_fn_exit STATUS 271# ----------------- 272# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 273as_fn_exit () 274{ 275 set +e 276 as_fn_set_status $1 277 exit $1 278} # as_fn_exit 279 280# as_fn_mkdir_p 281# ------------- 282# Create "$as_dir" as a directory, including parents if necessary. 283as_fn_mkdir_p () 284{ 285 286 case $as_dir in #( 287 -*) as_dir=./$as_dir;; 288 esac 289 test -d "$as_dir" || eval $as_mkdir_p || { 290 as_dirs= 291 while :; do 292 case $as_dir in #( 293 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 294 *) as_qdir=$as_dir;; 295 esac 296 as_dirs="'$as_qdir' $as_dirs" 297 as_dir=`$as_dirname -- "$as_dir" || 298$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 299 X"$as_dir" : 'X\(//\)[^/]' \| \ 300 X"$as_dir" : 'X\(//\)$' \| \ 301 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 302$as_echo X"$as_dir" | 303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 304 s//\1/ 305 q 306 } 307 /^X\(\/\/\)[^/].*/{ 308 s//\1/ 309 q 310 } 311 /^X\(\/\/\)$/{ 312 s//\1/ 313 q 314 } 315 /^X\(\/\).*/{ 316 s//\1/ 317 q 318 } 319 s/.*/./; q'` 320 test -d "$as_dir" && break 321 done 322 test -z "$as_dirs" || eval "mkdir $as_dirs" 323 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 324 325 326} # as_fn_mkdir_p 327# as_fn_append VAR VALUE 328# ---------------------- 329# Append the text in VALUE to the end of the definition contained in VAR. Take 330# advantage of any shell optimizations that allow amortized linear growth over 331# repeated appends, instead of the typical quadratic growth present in naive 332# implementations. 333if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 334 eval 'as_fn_append () 335 { 336 eval $1+=\$2 337 }' 338else 339 as_fn_append () 340 { 341 eval $1=\$$1\$2 342 } 343fi # as_fn_append 344 345# as_fn_arith ARG... 346# ------------------ 347# Perform arithmetic evaluation on the ARGs, and store the result in the 348# global $as_val. Take advantage of shells that can avoid forks. The arguments 349# must be portable across $(()) and expr. 350if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 351 eval 'as_fn_arith () 352 { 353 as_val=$(( $* )) 354 }' 355else 356 as_fn_arith () 357 { 358 as_val=`expr "$@" || test $? -eq 1` 359 } 360fi # as_fn_arith 361 362 363# as_fn_error ERROR [LINENO LOG_FD] 364# --------------------------------- 365# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 366# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 367# script with status $?, using 1 if that was 0. 368as_fn_error () 369{ 370 as_status=$?; test $as_status -eq 0 && as_status=1 371 if test "$3"; then 372 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 373 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 374 fi 375 $as_echo "$as_me: error: $1" >&2 376 as_fn_exit $as_status 377} # as_fn_error 378 379if expr a : '\(a\)' >/dev/null 2>&1 && 380 test "X`expr 00001 : '.*\(...\)'`" = X001; then 381 as_expr=expr 382else 383 as_expr=false 384fi 385 386if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 387 as_basename=basename 388else 389 as_basename=false 390fi 391 392if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 393 as_dirname=dirname 394else 395 as_dirname=false 396fi 397 398as_me=`$as_basename -- "$0" || 399$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 400 X"$0" : 'X\(//\)$' \| \ 401 X"$0" : 'X\(/\)' \| . 2>/dev/null || 402$as_echo X/"$0" | 403 sed '/^.*\/\([^/][^/]*\)\/*$/{ 404 s//\1/ 405 q 406 } 407 /^X\/\(\/\/\)$/{ 408 s//\1/ 409 q 410 } 411 /^X\/\(\/\).*/{ 412 s//\1/ 413 q 414 } 415 s/.*/./; q'` 416 417# Avoid depending upon Character Ranges. 418as_cr_letters='abcdefghijklmnopqrstuvwxyz' 419as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 420as_cr_Letters=$as_cr_letters$as_cr_LETTERS 421as_cr_digits='0123456789' 422as_cr_alnum=$as_cr_Letters$as_cr_digits 423 424 425 as_lineno_1=$LINENO as_lineno_1a=$LINENO 426 as_lineno_2=$LINENO as_lineno_2a=$LINENO 427 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 428 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 429 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 430 sed -n ' 431 p 432 /[$]LINENO/= 433 ' <$as_myself | 434 sed ' 435 s/[$]LINENO.*/&-/ 436 t lineno 437 b 438 :lineno 439 N 440 :loop 441 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 442 t loop 443 s/-\n.*// 444 ' >$as_me.lineno && 445 chmod +x "$as_me.lineno" || 446 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 447 448 # Don't try to exec as it changes $[0], causing all sort of problems 449 # (the dirname of $[0] is not the place where we might find the 450 # original and so on. Autoconf is especially sensitive to this). 451 . "./$as_me.lineno" 452 # Exit status is that of the last command. 453 exit 454} 455 456ECHO_C= ECHO_N= ECHO_T= 457case `echo -n x` in #((((( 458-n*) 459 case `echo 'xy\c'` in 460 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 461 xy) ECHO_C='\c';; 462 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 463 ECHO_T=' ';; 464 esac;; 465*) 466 ECHO_N='-n';; 467esac 468 469rm -f conf$$ conf$$.exe conf$$.file 470if test -d conf$$.dir; then 471 rm -f conf$$.dir/conf$$.file 472else 473 rm -f conf$$.dir 474 mkdir conf$$.dir 2>/dev/null 475fi 476if (echo >conf$$.file) 2>/dev/null; then 477 if ln -s conf$$.file conf$$ 2>/dev/null; then 478 as_ln_s='ln -s' 479 # ... but there are two gotchas: 480 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 481 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 482 # In both cases, we have to default to `cp -p'. 483 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 484 as_ln_s='cp -p' 485 elif ln conf$$.file conf$$ 2>/dev/null; then 486 as_ln_s=ln 487 else 488 as_ln_s='cp -p' 489 fi 490else 491 as_ln_s='cp -p' 492fi 493rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 494rmdir conf$$.dir 2>/dev/null 495 496if mkdir -p . 2>/dev/null; then 497 as_mkdir_p='mkdir -p "$as_dir"' 498else 499 test -d ./-p && rmdir ./-p 500 as_mkdir_p=false 501fi 502 503if test -x / >/dev/null 2>&1; then 504 as_test_x='test -x' 505else 506 if ls -dL / >/dev/null 2>&1; then 507 as_ls_L_option=L 508 else 509 as_ls_L_option= 510 fi 511 as_test_x=' 512 eval sh -c '\'' 513 if test -d "$1"; then 514 test -d "$1/."; 515 else 516 case $1 in #( 517 -*)set "./$1";; 518 esac; 519 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 520 ???[sx]*):;;*)false;;esac;fi 521 '\'' sh 522 ' 523fi 524as_executable_p=$as_test_x 525 526# Sed expression to map a string onto a valid CPP name. 527as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 528 529# Sed expression to map a string onto a valid variable name. 530as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 531 532 533 534# Check that we are running under the correct shell. 535SHELL=${CONFIG_SHELL-/bin/sh} 536 537case X$ECHO in 538X*--fallback-echo) 539 # Remove one level of quotation (which was required for Make). 540 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 541 ;; 542esac 543 544echo=${ECHO-echo} 545if test "X$1" = X--no-reexec; then 546 # Discard the --no-reexec flag, and continue. 547 shift 548elif test "X$1" = X--fallback-echo; then 549 # Avoid inline document here, it may be left over 550 : 551elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 552 # Yippee, $echo works! 553 : 554else 555 # Restart under the correct shell. 556 exec $SHELL "$0" --no-reexec ${1+"$@"} 557fi 558 559if test "X$1" = X--fallback-echo; then 560 # used as fallback echo 561 shift 562 cat <<EOF 563$* 564EOF 565 exit 0 566fi 567 568# The HP-UX ksh and POSIX shell print the target directory to stdout 569# if CDPATH is set. 570(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 571 572if test -z "$ECHO"; then 573if test "X${echo_test_string+set}" != Xset; then 574# find a string as large as possible, as long as the shell can cope with it 575 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 576 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 577 if (echo_test_string=`eval $cmd`) 2>/dev/null && 578 echo_test_string=`eval $cmd` && 579 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 580 then 581 break 582 fi 583 done 584fi 585 586if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 587 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 588 test "X$echo_testing_string" = "X$echo_test_string"; then 589 : 590else 591 # The Solaris, AIX, and Digital Unix default echo programs unquote 592 # backslashes. This makes it impossible to quote backslashes using 593 # echo "$something" | sed 's/\\/\\\\/g' 594 # 595 # So, first we look for a working echo in the user's PATH. 596 597 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 598 for dir in $PATH /usr/ucb; do 599 IFS="$lt_save_ifs" 600 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 601 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 602 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 603 test "X$echo_testing_string" = "X$echo_test_string"; then 604 echo="$dir/echo" 605 break 606 fi 607 done 608 IFS="$lt_save_ifs" 609 610 if test "X$echo" = Xecho; then 611 # We didn't find a better echo, so look for alternatives. 612 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 613 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 614 test "X$echo_testing_string" = "X$echo_test_string"; then 615 # This shell has a builtin print -r that does the trick. 616 echo='print -r' 617 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 618 test "X$CONFIG_SHELL" != X/bin/ksh; then 619 # If we have ksh, try running configure again with it. 620 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 621 export ORIGINAL_CONFIG_SHELL 622 CONFIG_SHELL=/bin/ksh 623 export CONFIG_SHELL 624 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 625 else 626 # Try using printf. 627 echo='printf %s\n' 628 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 629 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 630 test "X$echo_testing_string" = "X$echo_test_string"; then 631 # Cool, printf works 632 : 633 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 634 test "X$echo_testing_string" = 'X\t' && 635 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 636 test "X$echo_testing_string" = "X$echo_test_string"; then 637 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 638 export CONFIG_SHELL 639 SHELL="$CONFIG_SHELL" 640 export SHELL 641 echo="$CONFIG_SHELL $0 --fallback-echo" 642 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 643 test "X$echo_testing_string" = 'X\t' && 644 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 645 test "X$echo_testing_string" = "X$echo_test_string"; then 646 echo="$CONFIG_SHELL $0 --fallback-echo" 647 else 648 # maybe with a smaller string... 649 prev=: 650 651 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 652 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 653 then 654 break 655 fi 656 prev="$cmd" 657 done 658 659 if test "$prev" != 'sed 50q "$0"'; then 660 echo_test_string=`eval $prev` 661 export echo_test_string 662 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 663 else 664 # Oops. We lost completely, so just stick with echo. 665 echo=echo 666 fi 667 fi 668 fi 669 fi 670fi 671fi 672 673# Copy echo and quote the copy suitably for passing to libtool from 674# the Makefile, instead of quoting the original, which is used later. 675ECHO=$echo 676if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 677 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 678fi 679 680 681 682 683tagnames=${tagnames+${tagnames},}CXX 684 685tagnames=${tagnames+${tagnames},}F77 686 687test -n "$DJDIR" || exec 7<&0 </dev/null 688exec 6>&1 689 690# Name of the host. 691# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 692# so uname gets run too. 693ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 694 695# 696# Initializations. 697# 698ac_default_prefix=/usr/local 699ac_clean_files= 700ac_config_libobj_dir=. 701LIBOBJS= 702cross_compiling=no 703subdirs= 704MFLAGS= 705MAKEFLAGS= 706 707# Identity of this package. 708PACKAGE_NAME='libX11' 709PACKAGE_TARNAME='libX11' 710PACKAGE_VERSION='1.3.3' 711PACKAGE_STRING='libX11 1.3.3' 712PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 713PACKAGE_URL='' 714 715ac_unique_file="Makefile.am" 716# Factoring default headers for most tests. 717ac_includes_default="\ 718#include <stdio.h> 719#ifdef HAVE_SYS_TYPES_H 720# include <sys/types.h> 721#endif 722#ifdef HAVE_SYS_STAT_H 723# include <sys/stat.h> 724#endif 725#ifdef STDC_HEADERS 726# include <stdlib.h> 727# include <stddef.h> 728#else 729# ifdef HAVE_STDLIB_H 730# include <stdlib.h> 731# endif 732#endif 733#ifdef HAVE_STRING_H 734# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 735# include <memory.h> 736# endif 737# include <string.h> 738#endif 739#ifdef HAVE_STRINGS_H 740# include <strings.h> 741#endif 742#ifdef HAVE_INTTYPES_H 743# include <inttypes.h> 744#endif 745#ifdef HAVE_STDINT_H 746# include <stdint.h> 747#endif 748#ifdef HAVE_UNISTD_H 749# include <unistd.h> 750#endif" 751 752ac_header_list= 753ac_subst_vars='am__EXEEXT_FALSE 754am__EXEEXT_TRUE 755LTLIBOBJS 756LIBOBJS 757HAVE_PS2PDF_FALSE 758HAVE_PS2PDF_TRUE 759BUILD_SPECS_FALSE 760BUILD_SPECS_TRUE 761PS2PDF 762GROFF 763XTMALLOC_ZERO_CFLAGS 764XMALLOC_ZERO_CFLAGS 765MALLOC_ZERO_CFLAGS 766XERRORDB 767XKEYSYMDB 768X11_LOCALEDIR 769XLOCALEDIR 770X11_LOCALELIBDIR 771XLOCALELIBDIR 772X11_LOCALEDATADIR 773XLOCALEDATADIR 774X11_LIBS 775X11_CFLAGS 776X11_LIBDIR 777X11_DATADIR 778MAKE_LINT_LIB_FALSE 779MAKE_LINT_LIB_TRUE 780LINTLIB 781LINT_FALSE 782LINT_TRUE 783LINT_FLAGS 784LINT 785XKBPROTO_REQUIRES 786XKB_FALSE 787XKB_TRUE 788MANPAGES_FALSE 789MANPAGES_TRUE 790BIGFONT_LIBS 791BIGFONT_CFLAGS 792XLOCALE_FALSE 793XLOCALE_TRUE 794XCMS_FALSE 795XCMS_TRUE 796UDC_FALSE 797UDC_TRUE 798KEYSYMDEF 799XTHREAD_CFLAGS 800XTHREADLIB 801THRSTUBS_FALSE 802THRSTUBS_TRUE 803LAUNCHD 804OS2_FALSE 805OS2_TRUE 806WCHAR32 807XLIB_LOADABLE_I18N_FALSE 808XLIB_LOADABLE_I18N_TRUE 809I18N_MODULE_LIBS 810X11_EXTRA_DEPS 811XDMCP_LIBS 812XDMCP_CFLAGS 813XCB_FALSE 814XCB_TRUE 815HAVE_PERL_FALSE 816HAVE_PERL_TRUE 817PERL 818RAWCPPFLAGS 819RAWCPP 820CC_FOR_BUILD 821LTCXXCOMPILE 822LTCOMPILE 823DOLT_BASH 824LIBTOOL 825ac_ct_F77 826FFLAGS 827F77 828CXXCPP 829am__fastdepCXX_FALSE 830am__fastdepCXX_TRUE 831CXXDEPMODE 832ac_ct_CXX 833CXXFLAGS 834CXX 835NMEDIT 836DSYMUTIL 837RANLIB 838AR 839ECHO 840LN_S 841SED 842ADMIN_MAN_DIR 843DRIVER_MAN_DIR 844MISC_MAN_DIR 845FILE_MAN_DIR 846LIB_MAN_DIR 847APP_MAN_DIR 848ADMIN_MAN_SUFFIX 849DRIVER_MAN_SUFFIX 850MISC_MAN_SUFFIX 851FILE_MAN_SUFFIX 852LIB_MAN_SUFFIX 853APP_MAN_SUFFIX 854host_os 855host_vendor 856host_cpu 857host 858build_os 859build_vendor 860build_cpu 861build 862INSTALL_CMD 863PKG_CONFIG 864CHANGELOG_CMD 865AM_BACKSLASH 866AM_DEFAULT_VERBOSITY 867CWARNFLAGS 868EGREP 869GREP 870CPP 871am__fastdepCC_FALSE 872am__fastdepCC_TRUE 873CCDEPMODE 874AMDEPBACKSLASH 875AMDEP_FALSE 876AMDEP_TRUE 877am__quote 878am__include 879DEPDIR 880OBJEXT 881EXEEXT 882ac_ct_CC 883CPPFLAGS 884LDFLAGS 885CFLAGS 886CC 887MAINT 888MAINTAINER_MODE_FALSE 889MAINTAINER_MODE_TRUE 890am__untar 891am__tar 892AMTAR 893am__leading_dot 894SET_MAKE 895AWK 896mkdir_p 897MKDIR_P 898INSTALL_STRIP_PROGRAM 899STRIP 900install_sh 901MAKEINFO 902AUTOHEADER 903AUTOMAKE 904AUTOCONF 905ACLOCAL 906VERSION 907PACKAGE 908CYGPATH_W 909am__isrc 910INSTALL_DATA 911INSTALL_SCRIPT 912INSTALL_PROGRAM 913target_alias 914host_alias 915build_alias 916LIBS 917ECHO_T 918ECHO_N 919ECHO_C 920DEFS 921mandir 922localedir 923libdir 924psdir 925pdfdir 926dvidir 927htmldir 928infodir 929docdir 930oldincludedir 931includedir 932localstatedir 933sharedstatedir 934sysconfdir 935datadir 936datarootdir 937libexecdir 938sbindir 939bindir 940program_transform_name 941prefix 942exec_prefix 943PACKAGE_URL 944PACKAGE_BUGREPORT 945PACKAGE_STRING 946PACKAGE_VERSION 947PACKAGE_TARNAME 948PACKAGE_NAME 949PATH_SEPARATOR 950SHELL' 951ac_subst_files='' 952ac_user_opts=' 953enable_option_checking 954enable_maintainer_mode 955enable_dependency_tracking 956enable_silent_rules 957enable_strict_compilation 958with_release_version 959enable_shared 960enable_static 961enable_fast_install 962with_gnu_ld 963enable_libtool_lock 964with_pic 965with_tags 966with_perl 967with_xcb 968enable_unix_transport 969enable_tcp_transport 970enable_ipv6 971enable_local_transport 972enable_secure_rpc 973with_local_transport_order 974enable_loadable_i18n 975enable_loadable_xcursor 976with_launchd 977enable_xthreads 978enable_xcms 979enable_xlocale 980enable_xlocaledir 981enable_xf86bigfont 982enable_xkb 983enable_man_pages 984enable_composecache 985with_lint 986enable_lint_library 987with_locale_lib_dir 988enable_malloc0returnsnull 989enable_specs 990' 991 ac_precious_vars='build_alias 992host_alias 993target_alias 994CC 995CFLAGS 996LDFLAGS 997LIBS 998CPPFLAGS 999CPP 1000PKG_CONFIG 1001CXX 1002CXXFLAGS 1003CCC 1004CXXCPP 1005F77 1006FFLAGS 1007XDMCP_CFLAGS 1008XDMCP_LIBS 1009BIGFONT_CFLAGS 1010BIGFONT_LIBS 1011X11_CFLAGS 1012X11_LIBS 1013GROFF 1014PS2PDF' 1015 1016 1017# Initialize some variables set by options. 1018ac_init_help= 1019ac_init_version=false 1020ac_unrecognized_opts= 1021ac_unrecognized_sep= 1022# The variables have the same names as the options, with 1023# dashes changed to underlines. 1024cache_file=/dev/null 1025exec_prefix=NONE 1026no_create= 1027no_recursion= 1028prefix=NONE 1029program_prefix=NONE 1030program_suffix=NONE 1031program_transform_name=s,x,x, 1032silent= 1033site= 1034srcdir= 1035verbose= 1036x_includes=NONE 1037x_libraries=NONE 1038 1039# Installation directory options. 1040# These are left unexpanded so users can "make install exec_prefix=/foo" 1041# and all the variables that are supposed to be based on exec_prefix 1042# by default will actually change. 1043# Use braces instead of parens because sh, perl, etc. also accept them. 1044# (The list follows the same order as the GNU Coding Standards.) 1045bindir='${exec_prefix}/bin' 1046sbindir='${exec_prefix}/sbin' 1047libexecdir='${exec_prefix}/libexec' 1048datarootdir='${prefix}/share' 1049datadir='${datarootdir}' 1050sysconfdir='${prefix}/etc' 1051sharedstatedir='${prefix}/com' 1052localstatedir='${prefix}/var' 1053includedir='${prefix}/include' 1054oldincludedir='/usr/include' 1055docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1056infodir='${datarootdir}/info' 1057htmldir='${docdir}' 1058dvidir='${docdir}' 1059pdfdir='${docdir}' 1060psdir='${docdir}' 1061libdir='${exec_prefix}/lib' 1062localedir='${datarootdir}/locale' 1063mandir='${datarootdir}/man' 1064 1065ac_prev= 1066ac_dashdash= 1067for ac_option 1068do 1069 # If the previous option needs an argument, assign it. 1070 if test -n "$ac_prev"; then 1071 eval $ac_prev=\$ac_option 1072 ac_prev= 1073 continue 1074 fi 1075 1076 case $ac_option in 1077 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1078 *) ac_optarg=yes ;; 1079 esac 1080 1081 # Accept the important Cygnus configure options, so we can diagnose typos. 1082 1083 case $ac_dashdash$ac_option in 1084 --) 1085 ac_dashdash=yes ;; 1086 1087 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1088 ac_prev=bindir ;; 1089 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1090 bindir=$ac_optarg ;; 1091 1092 -build | --build | --buil | --bui | --bu) 1093 ac_prev=build_alias ;; 1094 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1095 build_alias=$ac_optarg ;; 1096 1097 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1098 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1099 ac_prev=cache_file ;; 1100 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1101 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1102 cache_file=$ac_optarg ;; 1103 1104 --config-cache | -C) 1105 cache_file=config.cache ;; 1106 1107 -datadir | --datadir | --datadi | --datad) 1108 ac_prev=datadir ;; 1109 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1110 datadir=$ac_optarg ;; 1111 1112 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1113 | --dataroo | --dataro | --datar) 1114 ac_prev=datarootdir ;; 1115 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1116 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1117 datarootdir=$ac_optarg ;; 1118 1119 -disable-* | --disable-*) 1120 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1121 # Reject names that are not valid shell variable names. 1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1123 as_fn_error "invalid feature name: $ac_useropt" 1124 ac_useropt_orig=$ac_useropt 1125 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1126 case $ac_user_opts in 1127 *" 1128"enable_$ac_useropt" 1129"*) ;; 1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1131 ac_unrecognized_sep=', ';; 1132 esac 1133 eval enable_$ac_useropt=no ;; 1134 1135 -docdir | --docdir | --docdi | --doc | --do) 1136 ac_prev=docdir ;; 1137 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1138 docdir=$ac_optarg ;; 1139 1140 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1141 ac_prev=dvidir ;; 1142 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1143 dvidir=$ac_optarg ;; 1144 1145 -enable-* | --enable-*) 1146 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1147 # Reject names that are not valid shell variable names. 1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1149 as_fn_error "invalid feature name: $ac_useropt" 1150 ac_useropt_orig=$ac_useropt 1151 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1152 case $ac_user_opts in 1153 *" 1154"enable_$ac_useropt" 1155"*) ;; 1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1157 ac_unrecognized_sep=', ';; 1158 esac 1159 eval enable_$ac_useropt=\$ac_optarg ;; 1160 1161 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1162 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1163 | --exec | --exe | --ex) 1164 ac_prev=exec_prefix ;; 1165 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1166 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1167 | --exec=* | --exe=* | --ex=*) 1168 exec_prefix=$ac_optarg ;; 1169 1170 -gas | --gas | --ga | --g) 1171 # Obsolete; use --with-gas. 1172 with_gas=yes ;; 1173 1174 -help | --help | --hel | --he | -h) 1175 ac_init_help=long ;; 1176 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1177 ac_init_help=recursive ;; 1178 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1179 ac_init_help=short ;; 1180 1181 -host | --host | --hos | --ho) 1182 ac_prev=host_alias ;; 1183 -host=* | --host=* | --hos=* | --ho=*) 1184 host_alias=$ac_optarg ;; 1185 1186 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1187 ac_prev=htmldir ;; 1188 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1189 | --ht=*) 1190 htmldir=$ac_optarg ;; 1191 1192 -includedir | --includedir | --includedi | --included | --include \ 1193 | --includ | --inclu | --incl | --inc) 1194 ac_prev=includedir ;; 1195 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1196 | --includ=* | --inclu=* | --incl=* | --inc=*) 1197 includedir=$ac_optarg ;; 1198 1199 -infodir | --infodir | --infodi | --infod | --info | --inf) 1200 ac_prev=infodir ;; 1201 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1202 infodir=$ac_optarg ;; 1203 1204 -libdir | --libdir | --libdi | --libd) 1205 ac_prev=libdir ;; 1206 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1207 libdir=$ac_optarg ;; 1208 1209 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1210 | --libexe | --libex | --libe) 1211 ac_prev=libexecdir ;; 1212 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1213 | --libexe=* | --libex=* | --libe=*) 1214 libexecdir=$ac_optarg ;; 1215 1216 -localedir | --localedir | --localedi | --localed | --locale) 1217 ac_prev=localedir ;; 1218 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1219 localedir=$ac_optarg ;; 1220 1221 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1222 | --localstate | --localstat | --localsta | --localst | --locals) 1223 ac_prev=localstatedir ;; 1224 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1225 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1226 localstatedir=$ac_optarg ;; 1227 1228 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1229 ac_prev=mandir ;; 1230 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1231 mandir=$ac_optarg ;; 1232 1233 -nfp | --nfp | --nf) 1234 # Obsolete; use --without-fp. 1235 with_fp=no ;; 1236 1237 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1238 | --no-cr | --no-c | -n) 1239 no_create=yes ;; 1240 1241 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1242 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1243 no_recursion=yes ;; 1244 1245 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1246 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1247 | --oldin | --oldi | --old | --ol | --o) 1248 ac_prev=oldincludedir ;; 1249 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1250 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1251 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1252 oldincludedir=$ac_optarg ;; 1253 1254 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1255 ac_prev=prefix ;; 1256 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1257 prefix=$ac_optarg ;; 1258 1259 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1260 | --program-pre | --program-pr | --program-p) 1261 ac_prev=program_prefix ;; 1262 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1263 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1264 program_prefix=$ac_optarg ;; 1265 1266 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1267 | --program-suf | --program-su | --program-s) 1268 ac_prev=program_suffix ;; 1269 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1270 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1271 program_suffix=$ac_optarg ;; 1272 1273 -program-transform-name | --program-transform-name \ 1274 | --program-transform-nam | --program-transform-na \ 1275 | --program-transform-n | --program-transform- \ 1276 | --program-transform | --program-transfor \ 1277 | --program-transfo | --program-transf \ 1278 | --program-trans | --program-tran \ 1279 | --progr-tra | --program-tr | --program-t) 1280 ac_prev=program_transform_name ;; 1281 -program-transform-name=* | --program-transform-name=* \ 1282 | --program-transform-nam=* | --program-transform-na=* \ 1283 | --program-transform-n=* | --program-transform-=* \ 1284 | --program-transform=* | --program-transfor=* \ 1285 | --program-transfo=* | --program-transf=* \ 1286 | --program-trans=* | --program-tran=* \ 1287 | --progr-tra=* | --program-tr=* | --program-t=*) 1288 program_transform_name=$ac_optarg ;; 1289 1290 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1291 ac_prev=pdfdir ;; 1292 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1293 pdfdir=$ac_optarg ;; 1294 1295 -psdir | --psdir | --psdi | --psd | --ps) 1296 ac_prev=psdir ;; 1297 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1298 psdir=$ac_optarg ;; 1299 1300 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1301 | -silent | --silent | --silen | --sile | --sil) 1302 silent=yes ;; 1303 1304 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1305 ac_prev=sbindir ;; 1306 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1307 | --sbi=* | --sb=*) 1308 sbindir=$ac_optarg ;; 1309 1310 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1311 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1312 | --sharedst | --shareds | --shared | --share | --shar \ 1313 | --sha | --sh) 1314 ac_prev=sharedstatedir ;; 1315 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1316 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1317 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1318 | --sha=* | --sh=*) 1319 sharedstatedir=$ac_optarg ;; 1320 1321 -site | --site | --sit) 1322 ac_prev=site ;; 1323 -site=* | --site=* | --sit=*) 1324 site=$ac_optarg ;; 1325 1326 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1327 ac_prev=srcdir ;; 1328 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1329 srcdir=$ac_optarg ;; 1330 1331 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1332 | --syscon | --sysco | --sysc | --sys | --sy) 1333 ac_prev=sysconfdir ;; 1334 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1335 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1336 sysconfdir=$ac_optarg ;; 1337 1338 -target | --target | --targe | --targ | --tar | --ta | --t) 1339 ac_prev=target_alias ;; 1340 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1341 target_alias=$ac_optarg ;; 1342 1343 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1344 verbose=yes ;; 1345 1346 -version | --version | --versio | --versi | --vers | -V) 1347 ac_init_version=: ;; 1348 1349 -with-* | --with-*) 1350 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1351 # Reject names that are not valid shell variable names. 1352 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1353 as_fn_error "invalid package name: $ac_useropt" 1354 ac_useropt_orig=$ac_useropt 1355 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1356 case $ac_user_opts in 1357 *" 1358"with_$ac_useropt" 1359"*) ;; 1360 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1361 ac_unrecognized_sep=', ';; 1362 esac 1363 eval with_$ac_useropt=\$ac_optarg ;; 1364 1365 -without-* | --without-*) 1366 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1367 # Reject names that are not valid shell variable names. 1368 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1369 as_fn_error "invalid package name: $ac_useropt" 1370 ac_useropt_orig=$ac_useropt 1371 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1372 case $ac_user_opts in 1373 *" 1374"with_$ac_useropt" 1375"*) ;; 1376 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1377 ac_unrecognized_sep=', ';; 1378 esac 1379 eval with_$ac_useropt=no ;; 1380 1381 --x) 1382 # Obsolete; use --with-x. 1383 with_x=yes ;; 1384 1385 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1386 | --x-incl | --x-inc | --x-in | --x-i) 1387 ac_prev=x_includes ;; 1388 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1389 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1390 x_includes=$ac_optarg ;; 1391 1392 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1393 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1394 ac_prev=x_libraries ;; 1395 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1396 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1397 x_libraries=$ac_optarg ;; 1398 1399 -*) as_fn_error "unrecognized option: \`$ac_option' 1400Try \`$0 --help' for more information." 1401 ;; 1402 1403 *=*) 1404 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1405 # Reject names that are not valid shell variable names. 1406 case $ac_envvar in #( 1407 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1408 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1409 esac 1410 eval $ac_envvar=\$ac_optarg 1411 export $ac_envvar ;; 1412 1413 *) 1414 # FIXME: should be removed in autoconf 3.0. 1415 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1416 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1417 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1418 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1419 ;; 1420 1421 esac 1422done 1423 1424if test -n "$ac_prev"; then 1425 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1426 as_fn_error "missing argument to $ac_option" 1427fi 1428 1429if test -n "$ac_unrecognized_opts"; then 1430 case $enable_option_checking in 1431 no) ;; 1432 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1433 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1434 esac 1435fi 1436 1437# Check all directory arguments for consistency. 1438for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1439 datadir sysconfdir sharedstatedir localstatedir includedir \ 1440 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1441 libdir localedir mandir 1442do 1443 eval ac_val=\$$ac_var 1444 # Remove trailing slashes. 1445 case $ac_val in 1446 */ ) 1447 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1448 eval $ac_var=\$ac_val;; 1449 esac 1450 # Be sure to have absolute directory names. 1451 case $ac_val in 1452 [\\/$]* | ?:[\\/]* ) continue;; 1453 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1454 esac 1455 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1456done 1457 1458# There might be people who depend on the old broken behavior: `$host' 1459# used to hold the argument of --host etc. 1460# FIXME: To remove some day. 1461build=$build_alias 1462host=$host_alias 1463target=$target_alias 1464 1465# FIXME: To remove some day. 1466if test "x$host_alias" != x; then 1467 if test "x$build_alias" = x; then 1468 cross_compiling=maybe 1469 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1470 If a cross compiler is detected then cross compile mode will be used." >&2 1471 elif test "x$build_alias" != "x$host_alias"; then 1472 cross_compiling=yes 1473 fi 1474fi 1475 1476ac_tool_prefix= 1477test -n "$host_alias" && ac_tool_prefix=$host_alias- 1478 1479test "$silent" = yes && exec 6>/dev/null 1480 1481 1482ac_pwd=`pwd` && test -n "$ac_pwd" && 1483ac_ls_di=`ls -di .` && 1484ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1485 as_fn_error "working directory cannot be determined" 1486test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1487 as_fn_error "pwd does not report name of working directory" 1488 1489 1490# Find the source files, if location was not specified. 1491if test -z "$srcdir"; then 1492 ac_srcdir_defaulted=yes 1493 # Try the directory containing this script, then the parent directory. 1494 ac_confdir=`$as_dirname -- "$as_myself" || 1495$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1496 X"$as_myself" : 'X\(//\)[^/]' \| \ 1497 X"$as_myself" : 'X\(//\)$' \| \ 1498 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1499$as_echo X"$as_myself" | 1500 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1501 s//\1/ 1502 q 1503 } 1504 /^X\(\/\/\)[^/].*/{ 1505 s//\1/ 1506 q 1507 } 1508 /^X\(\/\/\)$/{ 1509 s//\1/ 1510 q 1511 } 1512 /^X\(\/\).*/{ 1513 s//\1/ 1514 q 1515 } 1516 s/.*/./; q'` 1517 srcdir=$ac_confdir 1518 if test ! -r "$srcdir/$ac_unique_file"; then 1519 srcdir=.. 1520 fi 1521else 1522 ac_srcdir_defaulted=no 1523fi 1524if test ! -r "$srcdir/$ac_unique_file"; then 1525 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1526 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1527fi 1528ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1529ac_abs_confdir=`( 1530 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1531 pwd)` 1532# When building in place, set srcdir=. 1533if test "$ac_abs_confdir" = "$ac_pwd"; then 1534 srcdir=. 1535fi 1536# Remove unnecessary trailing slashes from srcdir. 1537# Double slashes in file names in object file debugging info 1538# mess up M-x gdb in Emacs. 1539case $srcdir in 1540*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1541esac 1542for ac_var in $ac_precious_vars; do 1543 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1544 eval ac_env_${ac_var}_value=\$${ac_var} 1545 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1546 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1547done 1548 1549# 1550# Report the --help message. 1551# 1552if test "$ac_init_help" = "long"; then 1553 # Omit some internal or obsolete options to make the list less imposing. 1554 # This message is too long to be a string in the A/UX 3.1 sh. 1555 cat <<_ACEOF 1556\`configure' configures libX11 1.3.3 to adapt to many kinds of systems. 1557 1558Usage: $0 [OPTION]... [VAR=VALUE]... 1559 1560To assign environment variables (e.g., CC, CFLAGS...), specify them as 1561VAR=VALUE. See below for descriptions of some of the useful variables. 1562 1563Defaults for the options are specified in brackets. 1564 1565Configuration: 1566 -h, --help display this help and exit 1567 --help=short display options specific to this package 1568 --help=recursive display the short help of all the included packages 1569 -V, --version display version information and exit 1570 -q, --quiet, --silent do not print \`checking...' messages 1571 --cache-file=FILE cache test results in FILE [disabled] 1572 -C, --config-cache alias for \`--cache-file=config.cache' 1573 -n, --no-create do not create output files 1574 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1575 1576Installation directories: 1577 --prefix=PREFIX install architecture-independent files in PREFIX 1578 [$ac_default_prefix] 1579 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1580 [PREFIX] 1581 1582By default, \`make install' will install all the files in 1583\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1584an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1585for instance \`--prefix=\$HOME'. 1586 1587For better control, use the options below. 1588 1589Fine tuning of the installation directories: 1590 --bindir=DIR user executables [EPREFIX/bin] 1591 --sbindir=DIR system admin executables [EPREFIX/sbin] 1592 --libexecdir=DIR program executables [EPREFIX/libexec] 1593 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1594 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1595 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1596 --libdir=DIR object code libraries [EPREFIX/lib] 1597 --includedir=DIR C header files [PREFIX/include] 1598 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1599 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1600 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1601 --infodir=DIR info documentation [DATAROOTDIR/info] 1602 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1603 --mandir=DIR man documentation [DATAROOTDIR/man] 1604 --docdir=DIR documentation root [DATAROOTDIR/doc/libX11] 1605 --htmldir=DIR html documentation [DOCDIR] 1606 --dvidir=DIR dvi documentation [DOCDIR] 1607 --pdfdir=DIR pdf documentation [DOCDIR] 1608 --psdir=DIR ps documentation [DOCDIR] 1609_ACEOF 1610 1611 cat <<\_ACEOF 1612 1613Program names: 1614 --program-prefix=PREFIX prepend PREFIX to installed program names 1615 --program-suffix=SUFFIX append SUFFIX to installed program names 1616 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1617 1618System types: 1619 --build=BUILD configure for building on BUILD [guessed] 1620 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1621_ACEOF 1622fi 1623 1624if test -n "$ac_init_help"; then 1625 case $ac_init_help in 1626 short | recursive ) echo "Configuration of libX11 1.3.3:";; 1627 esac 1628 cat <<\_ACEOF 1629 1630Optional Features: 1631 --disable-option-checking ignore unrecognized --enable/--with options 1632 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1633 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1634 --enable-maintainer-mode enable make rules and dependencies not useful 1635 (and sometimes confusing) to the casual installer 1636 --disable-dependency-tracking speeds up one-time build 1637 --enable-dependency-tracking do not reject slow dependency extractors 1638 --enable-silent-rules less verbose build output (undo: `make V=1') 1639 --disable-silent-rules verbose build output (undo: `make V=0') 1640 --enable-strict-compilation 1641 Enable all warnings from compiler and make them 1642 errors (default: disabled) 1643 --enable-shared[=PKGS] build shared libraries [default=yes] 1644 --enable-static[=PKGS] build static libraries [default=yes] 1645 --enable-fast-install[=PKGS] 1646 optimize for fast installation [default=yes] 1647 --disable-libtool-lock avoid locking (might break parallel builds) 1648 --enable-unix-transport Enable UNIX domain socket transport 1649 --enable-tcp-transport Enable TCP socket transport 1650 --enable-ipv6 Enable IPv6 support 1651 --enable-local-transport 1652 Enable os-specific local transport 1653 --enable-secure-rpc Enable Secure RPC 1654 --enable-loadable-i18n Controls loadable i18n module support 1655 --disable-loadable-xcursor 1656 Controls loadable xcursor library support 1657 --disable-xthreads Disable Xlib support for Multithreading 1658 --disable-xcms Disable Xlib support for CMS *EXPERIMENTAL* 1659 --disable-xlocale Disable Xlib locale implementation *EXPERIMENTAL* 1660 --enable-xlocaledir Enable XLOCALEDIR environment variable support 1661 --disable-xf86bigfont Disable XF86BigFont extension support 1662 --disable-xkb Disable XKB support *EXPERIMENTAL* 1663 --enable-man-pages=section 1664 Choose manual section for installing man pages 1665 --disable-composecache Disable compose table cache support 1666 --enable-lint-library Create lint library (default: disabled) 1667 --enable-malloc0returnsnull 1668 malloc(0) returns NULL (default: auto) 1669 --enable-specs Enable building of specification docs 1670 1671Optional Packages: 1672 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1673 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1674 --with-release-version=STRING 1675 Use release version string in package name 1676 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1677 --with-pic try to use only PIC/non-PIC objects [default=use 1678 both] 1679 --with-tags[=TAGS] include additional configurations [automatic] 1680 --with-perl=<path> path to perl interpreter for build-time tests 1681 --with-xcb use XCB for low-level protocol implementation 1682 --with-local-transport-order=LIST 1683 preference sorted list of transport types to try for 1684 local connections 1685 --with-launchd Build with support for Apple's launchd (default: 1686 auto) 1687 --with-lint Use a lint-style source code checker (default: 1688 disabled) 1689 --with-locale-lib-dir=DIR 1690 Directory where locale libraries files are installed 1691 (default: $libdir/X11/locale) 1692 1693Some influential environment variables: 1694 CC C compiler command 1695 CFLAGS C compiler flags 1696 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1697 nonstandard directory <lib dir> 1698 LIBS libraries to pass to the linker, e.g. -l<library> 1699 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1700 you have headers in a nonstandard directory <include dir> 1701 CPP C preprocessor 1702 PKG_CONFIG path to pkg-config utility 1703 CXX C++ compiler command 1704 CXXFLAGS C++ compiler flags 1705 CXXCPP C++ preprocessor 1706 F77 Fortran 77 compiler command 1707 FFLAGS Fortran 77 compiler flags 1708 XDMCP_CFLAGS 1709 C compiler flags for XDMCP, overriding pkg-config 1710 XDMCP_LIBS linker flags for XDMCP, overriding pkg-config 1711 BIGFONT_CFLAGS 1712 C compiler flags for BIGFONT, overriding pkg-config 1713 BIGFONT_LIBS 1714 linker flags for BIGFONT, overriding pkg-config 1715 X11_CFLAGS C compiler flags for X11, overriding pkg-config 1716 X11_LIBS linker flags for X11, overriding pkg-config 1717 GROFF Path to a groff executable that supports -ms 1718 PS2PDF Path to a ps2pdf executable 1719 1720Use these variables to override the choices made by `configure' or to help 1721it to find libraries and programs with nonstandard names/locations. 1722 1723Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1724_ACEOF 1725ac_status=$? 1726fi 1727 1728if test "$ac_init_help" = "recursive"; then 1729 # If there are subdirs, report their specific --help. 1730 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1731 test -d "$ac_dir" || 1732 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1733 continue 1734 ac_builddir=. 1735 1736case "$ac_dir" in 1737.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1738*) 1739 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1740 # A ".." for each directory in $ac_dir_suffix. 1741 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1742 case $ac_top_builddir_sub in 1743 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1744 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1745 esac ;; 1746esac 1747ac_abs_top_builddir=$ac_pwd 1748ac_abs_builddir=$ac_pwd$ac_dir_suffix 1749# for backward compatibility: 1750ac_top_builddir=$ac_top_build_prefix 1751 1752case $srcdir in 1753 .) # We are building in place. 1754 ac_srcdir=. 1755 ac_top_srcdir=$ac_top_builddir_sub 1756 ac_abs_top_srcdir=$ac_pwd ;; 1757 [\\/]* | ?:[\\/]* ) # Absolute name. 1758 ac_srcdir=$srcdir$ac_dir_suffix; 1759 ac_top_srcdir=$srcdir 1760 ac_abs_top_srcdir=$srcdir ;; 1761 *) # Relative name. 1762 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1763 ac_top_srcdir=$ac_top_build_prefix$srcdir 1764 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1765esac 1766ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1767 1768 cd "$ac_dir" || { ac_status=$?; continue; } 1769 # Check for guested configure. 1770 if test -f "$ac_srcdir/configure.gnu"; then 1771 echo && 1772 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1773 elif test -f "$ac_srcdir/configure"; then 1774 echo && 1775 $SHELL "$ac_srcdir/configure" --help=recursive 1776 else 1777 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1778 fi || ac_status=$? 1779 cd "$ac_pwd" || { ac_status=$?; break; } 1780 done 1781fi 1782 1783test -n "$ac_init_help" && exit $ac_status 1784if $ac_init_version; then 1785 cat <<\_ACEOF 1786libX11 configure 1.3.3 1787generated by GNU Autoconf 2.65 1788 1789Copyright (C) 2009 Free Software Foundation, Inc. 1790This configure script is free software; the Free Software Foundation 1791gives unlimited permission to copy, distribute and modify it. 1792_ACEOF 1793 exit 1794fi 1795 1796## ------------------------ ## 1797## Autoconf initialization. ## 1798## ------------------------ ## 1799 1800# ac_fn_c_try_compile LINENO 1801# -------------------------- 1802# Try to compile conftest.$ac_ext, and return whether this succeeded. 1803ac_fn_c_try_compile () 1804{ 1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1806 rm -f conftest.$ac_objext 1807 if { { ac_try="$ac_compile" 1808case "(($ac_try" in 1809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1810 *) ac_try_echo=$ac_try;; 1811esac 1812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1813$as_echo "$ac_try_echo"; } >&5 1814 (eval "$ac_compile") 2>conftest.err 1815 ac_status=$? 1816 if test -s conftest.err; then 1817 grep -v '^ *+' conftest.err >conftest.er1 1818 cat conftest.er1 >&5 1819 mv -f conftest.er1 conftest.err 1820 fi 1821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1822 test $ac_status = 0; } && { 1823 test -z "$ac_c_werror_flag" || 1824 test ! -s conftest.err 1825 } && test -s conftest.$ac_objext; then : 1826 ac_retval=0 1827else 1828 $as_echo "$as_me: failed program was:" >&5 1829sed 's/^/| /' conftest.$ac_ext >&5 1830 1831 ac_retval=1 1832fi 1833 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1834 as_fn_set_status $ac_retval 1835 1836} # ac_fn_c_try_compile 1837 1838# ac_fn_c_try_cpp LINENO 1839# ---------------------- 1840# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1841ac_fn_c_try_cpp () 1842{ 1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1844 if { { ac_try="$ac_cpp conftest.$ac_ext" 1845case "(($ac_try" in 1846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1847 *) ac_try_echo=$ac_try;; 1848esac 1849eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1850$as_echo "$ac_try_echo"; } >&5 1851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1852 ac_status=$? 1853 if test -s conftest.err; then 1854 grep -v '^ *+' conftest.err >conftest.er1 1855 cat conftest.er1 >&5 1856 mv -f conftest.er1 conftest.err 1857 fi 1858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1859 test $ac_status = 0; } >/dev/null && { 1860 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1861 test ! -s conftest.err 1862 }; then : 1863 ac_retval=0 1864else 1865 $as_echo "$as_me: failed program was:" >&5 1866sed 's/^/| /' conftest.$ac_ext >&5 1867 1868 ac_retval=1 1869fi 1870 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1871 as_fn_set_status $ac_retval 1872 1873} # ac_fn_c_try_cpp 1874 1875# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1876# ------------------------------------------------------- 1877# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1878# the include files in INCLUDES and setting the cache variable VAR 1879# accordingly. 1880ac_fn_c_check_header_mongrel () 1881{ 1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1883 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1885$as_echo_n "checking for $2... " >&6; } 1886if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1887 $as_echo_n "(cached) " >&6 1888fi 1889eval ac_res=\$$3 1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1891$as_echo "$ac_res" >&6; } 1892else 1893 # Is the header compilable? 1894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1895$as_echo_n "checking $2 usability... " >&6; } 1896cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1897/* end confdefs.h. */ 1898$4 1899#include <$2> 1900_ACEOF 1901if ac_fn_c_try_compile "$LINENO"; then : 1902 ac_header_compiler=yes 1903else 1904 ac_header_compiler=no 1905fi 1906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1908$as_echo "$ac_header_compiler" >&6; } 1909 1910# Is the header present? 1911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1912$as_echo_n "checking $2 presence... " >&6; } 1913cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1914/* end confdefs.h. */ 1915#include <$2> 1916_ACEOF 1917if ac_fn_c_try_cpp "$LINENO"; then : 1918 ac_header_preproc=yes 1919else 1920 ac_header_preproc=no 1921fi 1922rm -f conftest.err conftest.$ac_ext 1923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1924$as_echo "$ac_header_preproc" >&6; } 1925 1926# So? What about this header? 1927case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1928 yes:no: ) 1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1930$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1932$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1933 ;; 1934 no:yes:* ) 1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1936$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1938$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1940$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1942$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1944$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1945( cat <<\_ASBOX 1946## ---------------------------------------------------------------------- ## 1947## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 1948## ---------------------------------------------------------------------- ## 1949_ASBOX 1950 ) | sed "s/^/$as_me: WARNING: /" >&2 1951 ;; 1952esac 1953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1954$as_echo_n "checking for $2... " >&6; } 1955if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1956 $as_echo_n "(cached) " >&6 1957else 1958 eval "$3=\$ac_header_compiler" 1959fi 1960eval ac_res=\$$3 1961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1962$as_echo "$ac_res" >&6; } 1963fi 1964 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1965 1966} # ac_fn_c_check_header_mongrel 1967 1968# ac_fn_c_try_run LINENO 1969# ---------------------- 1970# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1971# that executables *can* be run. 1972ac_fn_c_try_run () 1973{ 1974 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1975 if { { ac_try="$ac_link" 1976case "(($ac_try" in 1977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1978 *) ac_try_echo=$ac_try;; 1979esac 1980eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1981$as_echo "$ac_try_echo"; } >&5 1982 (eval "$ac_link") 2>&5 1983 ac_status=$? 1984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1985 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1986 { { case "(($ac_try" in 1987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1988 *) ac_try_echo=$ac_try;; 1989esac 1990eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1991$as_echo "$ac_try_echo"; } >&5 1992 (eval "$ac_try") 2>&5 1993 ac_status=$? 1994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1995 test $ac_status = 0; }; }; then : 1996 ac_retval=0 1997else 1998 $as_echo "$as_me: program exited with status $ac_status" >&5 1999 $as_echo "$as_me: failed program was:" >&5 2000sed 's/^/| /' conftest.$ac_ext >&5 2001 2002 ac_retval=$ac_status 2003fi 2004 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2005 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2006 as_fn_set_status $ac_retval 2007 2008} # ac_fn_c_try_run 2009 2010# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2011# ------------------------------------------------------- 2012# Tests whether HEADER exists and can be compiled using the include files in 2013# INCLUDES, setting the cache variable VAR accordingly. 2014ac_fn_c_check_header_compile () 2015{ 2016 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2018$as_echo_n "checking for $2... " >&6; } 2019if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2020 $as_echo_n "(cached) " >&6 2021else 2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2023/* end confdefs.h. */ 2024$4 2025#include <$2> 2026_ACEOF 2027if ac_fn_c_try_compile "$LINENO"; then : 2028 eval "$3=yes" 2029else 2030 eval "$3=no" 2031fi 2032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2033fi 2034eval ac_res=\$$3 2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2036$as_echo "$ac_res" >&6; } 2037 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2038 2039} # ac_fn_c_check_header_compile 2040 2041# ac_fn_c_check_decl LINENO SYMBOL VAR 2042# ------------------------------------ 2043# Tests whether SYMBOL is declared, setting cache variable VAR accordingly. 2044ac_fn_c_check_decl () 2045{ 2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 2048$as_echo_n "checking whether $2 is declared... " >&6; } 2049if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2050 $as_echo_n "(cached) " >&6 2051else 2052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2053/* end confdefs.h. */ 2054$4 2055int 2056main () 2057{ 2058#ifndef $2 2059 (void) $2; 2060#endif 2061 2062 ; 2063 return 0; 2064} 2065_ACEOF 2066if ac_fn_c_try_compile "$LINENO"; then : 2067 eval "$3=yes" 2068else 2069 eval "$3=no" 2070fi 2071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2072fi 2073eval ac_res=\$$3 2074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2075$as_echo "$ac_res" >&6; } 2076 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2077 2078} # ac_fn_c_check_decl 2079 2080# ac_fn_c_try_link LINENO 2081# ----------------------- 2082# Try to link conftest.$ac_ext, and return whether this succeeded. 2083ac_fn_c_try_link () 2084{ 2085 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2086 rm -f conftest.$ac_objext conftest$ac_exeext 2087 if { { ac_try="$ac_link" 2088case "(($ac_try" in 2089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2090 *) ac_try_echo=$ac_try;; 2091esac 2092eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2093$as_echo "$ac_try_echo"; } >&5 2094 (eval "$ac_link") 2>conftest.err 2095 ac_status=$? 2096 if test -s conftest.err; then 2097 grep -v '^ *+' conftest.err >conftest.er1 2098 cat conftest.er1 >&5 2099 mv -f conftest.er1 conftest.err 2100 fi 2101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2102 test $ac_status = 0; } && { 2103 test -z "$ac_c_werror_flag" || 2104 test ! -s conftest.err 2105 } && test -s conftest$ac_exeext && { 2106 test "$cross_compiling" = yes || 2107 $as_test_x conftest$ac_exeext 2108 }; then : 2109 ac_retval=0 2110else 2111 $as_echo "$as_me: failed program was:" >&5 2112sed 's/^/| /' conftest.$ac_ext >&5 2113 2114 ac_retval=1 2115fi 2116 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2117 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2118 # interfere with the next link command; also delete a directory that is 2119 # left behind by Apple's compiler. We do this before executing the actions. 2120 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2121 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2122 as_fn_set_status $ac_retval 2123 2124} # ac_fn_c_try_link 2125 2126# ac_fn_c_check_func LINENO FUNC VAR 2127# ---------------------------------- 2128# Tests whether FUNC exists, setting the cache variable VAR accordingly 2129ac_fn_c_check_func () 2130{ 2131 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2133$as_echo_n "checking for $2... " >&6; } 2134if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2135 $as_echo_n "(cached) " >&6 2136else 2137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2138/* end confdefs.h. */ 2139/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2140 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2141#define $2 innocuous_$2 2142 2143/* System header to define __stub macros and hopefully few prototypes, 2144 which can conflict with char $2 (); below. 2145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2146 <limits.h> exists even on freestanding compilers. */ 2147 2148#ifdef __STDC__ 2149# include <limits.h> 2150#else 2151# include <assert.h> 2152#endif 2153 2154#undef $2 2155 2156/* Override any GCC internal prototype to avoid an error. 2157 Use char because int might match the return type of a GCC 2158 builtin and then its argument prototype would still apply. */ 2159#ifdef __cplusplus 2160extern "C" 2161#endif 2162char $2 (); 2163/* The GNU C library defines this for functions which it implements 2164 to always fail with ENOSYS. Some functions are actually named 2165 something starting with __ and the normal name is an alias. */ 2166#if defined __stub_$2 || defined __stub___$2 2167choke me 2168#endif 2169 2170int 2171main () 2172{ 2173return $2 (); 2174 ; 2175 return 0; 2176} 2177_ACEOF 2178if ac_fn_c_try_link "$LINENO"; then : 2179 eval "$3=yes" 2180else 2181 eval "$3=no" 2182fi 2183rm -f core conftest.err conftest.$ac_objext \ 2184 conftest$ac_exeext conftest.$ac_ext 2185fi 2186eval ac_res=\$$3 2187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2188$as_echo "$ac_res" >&6; } 2189 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2190 2191} # ac_fn_c_check_func 2192 2193# ac_fn_cxx_try_compile LINENO 2194# ---------------------------- 2195# Try to compile conftest.$ac_ext, and return whether this succeeded. 2196ac_fn_cxx_try_compile () 2197{ 2198 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2199 rm -f conftest.$ac_objext 2200 if { { ac_try="$ac_compile" 2201case "(($ac_try" in 2202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2203 *) ac_try_echo=$ac_try;; 2204esac 2205eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2206$as_echo "$ac_try_echo"; } >&5 2207 (eval "$ac_compile") 2>conftest.err 2208 ac_status=$? 2209 if test -s conftest.err; then 2210 grep -v '^ *+' conftest.err >conftest.er1 2211 cat conftest.er1 >&5 2212 mv -f conftest.er1 conftest.err 2213 fi 2214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2215 test $ac_status = 0; } && { 2216 test -z "$ac_cxx_werror_flag" || 2217 test ! -s conftest.err 2218 } && test -s conftest.$ac_objext; then : 2219 ac_retval=0 2220else 2221 $as_echo "$as_me: failed program was:" >&5 2222sed 's/^/| /' conftest.$ac_ext >&5 2223 2224 ac_retval=1 2225fi 2226 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2227 as_fn_set_status $ac_retval 2228 2229} # ac_fn_cxx_try_compile 2230 2231# ac_fn_cxx_try_cpp LINENO 2232# ------------------------ 2233# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2234ac_fn_cxx_try_cpp () 2235{ 2236 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2237 if { { ac_try="$ac_cpp conftest.$ac_ext" 2238case "(($ac_try" in 2239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2240 *) ac_try_echo=$ac_try;; 2241esac 2242eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2243$as_echo "$ac_try_echo"; } >&5 2244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2245 ac_status=$? 2246 if test -s conftest.err; then 2247 grep -v '^ *+' conftest.err >conftest.er1 2248 cat conftest.er1 >&5 2249 mv -f conftest.er1 conftest.err 2250 fi 2251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2252 test $ac_status = 0; } >/dev/null && { 2253 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2254 test ! -s conftest.err 2255 }; then : 2256 ac_retval=0 2257else 2258 $as_echo "$as_me: failed program was:" >&5 2259sed 's/^/| /' conftest.$ac_ext >&5 2260 2261 ac_retval=1 2262fi 2263 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2264 as_fn_set_status $ac_retval 2265 2266} # ac_fn_cxx_try_cpp 2267 2268# ac_fn_cxx_try_link LINENO 2269# ------------------------- 2270# Try to link conftest.$ac_ext, and return whether this succeeded. 2271ac_fn_cxx_try_link () 2272{ 2273 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2274 rm -f conftest.$ac_objext conftest$ac_exeext 2275 if { { ac_try="$ac_link" 2276case "(($ac_try" in 2277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2278 *) ac_try_echo=$ac_try;; 2279esac 2280eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2281$as_echo "$ac_try_echo"; } >&5 2282 (eval "$ac_link") 2>conftest.err 2283 ac_status=$? 2284 if test -s conftest.err; then 2285 grep -v '^ *+' conftest.err >conftest.er1 2286 cat conftest.er1 >&5 2287 mv -f conftest.er1 conftest.err 2288 fi 2289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2290 test $ac_status = 0; } && { 2291 test -z "$ac_cxx_werror_flag" || 2292 test ! -s conftest.err 2293 } && test -s conftest$ac_exeext && { 2294 test "$cross_compiling" = yes || 2295 $as_test_x conftest$ac_exeext 2296 }; then : 2297 ac_retval=0 2298else 2299 $as_echo "$as_me: failed program was:" >&5 2300sed 's/^/| /' conftest.$ac_ext >&5 2301 2302 ac_retval=1 2303fi 2304 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2305 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2306 # interfere with the next link command; also delete a directory that is 2307 # left behind by Apple's compiler. We do this before executing the actions. 2308 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2309 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2310 as_fn_set_status $ac_retval 2311 2312} # ac_fn_cxx_try_link 2313 2314# ac_fn_f77_try_compile LINENO 2315# ---------------------------- 2316# Try to compile conftest.$ac_ext, and return whether this succeeded. 2317ac_fn_f77_try_compile () 2318{ 2319 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2320 rm -f conftest.$ac_objext 2321 if { { ac_try="$ac_compile" 2322case "(($ac_try" in 2323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2324 *) ac_try_echo=$ac_try;; 2325esac 2326eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2327$as_echo "$ac_try_echo"; } >&5 2328 (eval "$ac_compile") 2>conftest.err 2329 ac_status=$? 2330 if test -s conftest.err; then 2331 grep -v '^ *+' conftest.err >conftest.er1 2332 cat conftest.er1 >&5 2333 mv -f conftest.er1 conftest.err 2334 fi 2335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2336 test $ac_status = 0; } && { 2337 test -z "$ac_f77_werror_flag" || 2338 test ! -s conftest.err 2339 } && test -s conftest.$ac_objext; then : 2340 ac_retval=0 2341else 2342 $as_echo "$as_me: failed program was:" >&5 2343sed 's/^/| /' conftest.$ac_ext >&5 2344 2345 ac_retval=1 2346fi 2347 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2348 as_fn_set_status $ac_retval 2349 2350} # ac_fn_f77_try_compile 2351 2352# ac_fn_f77_try_link LINENO 2353# ------------------------- 2354# Try to link conftest.$ac_ext, and return whether this succeeded. 2355ac_fn_f77_try_link () 2356{ 2357 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2358 rm -f conftest.$ac_objext conftest$ac_exeext 2359 if { { ac_try="$ac_link" 2360case "(($ac_try" in 2361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2362 *) ac_try_echo=$ac_try;; 2363esac 2364eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2365$as_echo "$ac_try_echo"; } >&5 2366 (eval "$ac_link") 2>conftest.err 2367 ac_status=$? 2368 if test -s conftest.err; then 2369 grep -v '^ *+' conftest.err >conftest.er1 2370 cat conftest.er1 >&5 2371 mv -f conftest.er1 conftest.err 2372 fi 2373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2374 test $ac_status = 0; } && { 2375 test -z "$ac_f77_werror_flag" || 2376 test ! -s conftest.err 2377 } && test -s conftest$ac_exeext && { 2378 test "$cross_compiling" = yes || 2379 $as_test_x conftest$ac_exeext 2380 }; then : 2381 ac_retval=0 2382else 2383 $as_echo "$as_me: failed program was:" >&5 2384sed 's/^/| /' conftest.$ac_ext >&5 2385 2386 ac_retval=1 2387fi 2388 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2389 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2390 # interfere with the next link command; also delete a directory that is 2391 # left behind by Apple's compiler. We do this before executing the actions. 2392 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2393 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2394 as_fn_set_status $ac_retval 2395 2396} # ac_fn_f77_try_link 2397 2398# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2399# ---------------------------------------------------- 2400# Tries to find if the field MEMBER exists in type AGGR, after including 2401# INCLUDES, setting cache variable VAR accordingly. 2402ac_fn_c_check_member () 2403{ 2404 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2406$as_echo_n "checking for $2.$3... " >&6; } 2407if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : 2408 $as_echo_n "(cached) " >&6 2409else 2410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2411/* end confdefs.h. */ 2412$5 2413int 2414main () 2415{ 2416static $2 ac_aggr; 2417if (ac_aggr.$3) 2418return 0; 2419 ; 2420 return 0; 2421} 2422_ACEOF 2423if ac_fn_c_try_compile "$LINENO"; then : 2424 eval "$4=yes" 2425else 2426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2427/* end confdefs.h. */ 2428$5 2429int 2430main () 2431{ 2432static $2 ac_aggr; 2433if (sizeof ac_aggr.$3) 2434return 0; 2435 ; 2436 return 0; 2437} 2438_ACEOF 2439if ac_fn_c_try_compile "$LINENO"; then : 2440 eval "$4=yes" 2441else 2442 eval "$4=no" 2443fi 2444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2445fi 2446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2447fi 2448eval ac_res=\$$4 2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2450$as_echo "$ac_res" >&6; } 2451 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2452 2453} # ac_fn_c_check_member 2454 2455# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2456# ------------------------------------------- 2457# Tests whether TYPE exists after having included INCLUDES, setting cache 2458# variable VAR accordingly. 2459ac_fn_c_check_type () 2460{ 2461 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2463$as_echo_n "checking for $2... " >&6; } 2464if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2465 $as_echo_n "(cached) " >&6 2466else 2467 eval "$3=no" 2468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2469/* end confdefs.h. */ 2470$4 2471int 2472main () 2473{ 2474if (sizeof ($2)) 2475 return 0; 2476 ; 2477 return 0; 2478} 2479_ACEOF 2480if ac_fn_c_try_compile "$LINENO"; then : 2481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2482/* end confdefs.h. */ 2483$4 2484int 2485main () 2486{ 2487if (sizeof (($2))) 2488 return 0; 2489 ; 2490 return 0; 2491} 2492_ACEOF 2493if ac_fn_c_try_compile "$LINENO"; then : 2494 2495else 2496 eval "$3=yes" 2497fi 2498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2499fi 2500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2501fi 2502eval ac_res=\$$3 2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2504$as_echo "$ac_res" >&6; } 2505 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2506 2507} # ac_fn_c_check_type 2508cat >config.log <<_ACEOF 2509This file contains any messages produced by compilers while 2510running configure, to aid debugging if configure makes a mistake. 2511 2512It was created by libX11 $as_me 1.3.3, which was 2513generated by GNU Autoconf 2.65. Invocation command line was 2514 2515 $ $0 $@ 2516 2517_ACEOF 2518exec 5>>config.log 2519{ 2520cat <<_ASUNAME 2521## --------- ## 2522## Platform. ## 2523## --------- ## 2524 2525hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2526uname -m = `(uname -m) 2>/dev/null || echo unknown` 2527uname -r = `(uname -r) 2>/dev/null || echo unknown` 2528uname -s = `(uname -s) 2>/dev/null || echo unknown` 2529uname -v = `(uname -v) 2>/dev/null || echo unknown` 2530 2531/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2532/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2533 2534/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2535/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2536/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2537/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2538/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2539/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2540/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2541 2542_ASUNAME 2543 2544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2545for as_dir in $PATH 2546do 2547 IFS=$as_save_IFS 2548 test -z "$as_dir" && as_dir=. 2549 $as_echo "PATH: $as_dir" 2550 done 2551IFS=$as_save_IFS 2552 2553} >&5 2554 2555cat >&5 <<_ACEOF 2556 2557 2558## ----------- ## 2559## Core tests. ## 2560## ----------- ## 2561 2562_ACEOF 2563 2564 2565# Keep a trace of the command line. 2566# Strip out --no-create and --no-recursion so they do not pile up. 2567# Strip out --silent because we don't want to record it for future runs. 2568# Also quote any args containing shell meta-characters. 2569# Make two passes to allow for proper duplicate-argument suppression. 2570ac_configure_args= 2571ac_configure_args0= 2572ac_configure_args1= 2573ac_must_keep_next=false 2574for ac_pass in 1 2 2575do 2576 for ac_arg 2577 do 2578 case $ac_arg in 2579 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2580 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2581 | -silent | --silent | --silen | --sile | --sil) 2582 continue ;; 2583 *\'*) 2584 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2585 esac 2586 case $ac_pass in 2587 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2588 2) 2589 as_fn_append ac_configure_args1 " '$ac_arg'" 2590 if test $ac_must_keep_next = true; then 2591 ac_must_keep_next=false # Got value, back to normal. 2592 else 2593 case $ac_arg in 2594 *=* | --config-cache | -C | -disable-* | --disable-* \ 2595 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2596 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2597 | -with-* | --with-* | -without-* | --without-* | --x) 2598 case "$ac_configure_args0 " in 2599 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2600 esac 2601 ;; 2602 -* ) ac_must_keep_next=true ;; 2603 esac 2604 fi 2605 as_fn_append ac_configure_args " '$ac_arg'" 2606 ;; 2607 esac 2608 done 2609done 2610{ ac_configure_args0=; unset ac_configure_args0;} 2611{ ac_configure_args1=; unset ac_configure_args1;} 2612 2613# When interrupted or exit'd, cleanup temporary files, and complete 2614# config.log. We remove comments because anyway the quotes in there 2615# would cause problems or look ugly. 2616# WARNING: Use '\'' to represent an apostrophe within the trap. 2617# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2618trap 'exit_status=$? 2619 # Save into config.log some information that might help in debugging. 2620 { 2621 echo 2622 2623 cat <<\_ASBOX 2624## ---------------- ## 2625## Cache variables. ## 2626## ---------------- ## 2627_ASBOX 2628 echo 2629 # The following way of writing the cache mishandles newlines in values, 2630( 2631 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2632 eval ac_val=\$$ac_var 2633 case $ac_val in #( 2634 *${as_nl}*) 2635 case $ac_var in #( 2636 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2637$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2638 esac 2639 case $ac_var in #( 2640 _ | IFS | as_nl) ;; #( 2641 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2642 *) { eval $ac_var=; unset $ac_var;} ;; 2643 esac ;; 2644 esac 2645 done 2646 (set) 2>&1 | 2647 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2648 *${as_nl}ac_space=\ *) 2649 sed -n \ 2650 "s/'\''/'\''\\\\'\'''\''/g; 2651 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2652 ;; #( 2653 *) 2654 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2655 ;; 2656 esac | 2657 sort 2658) 2659 echo 2660 2661 cat <<\_ASBOX 2662## ----------------- ## 2663## Output variables. ## 2664## ----------------- ## 2665_ASBOX 2666 echo 2667 for ac_var in $ac_subst_vars 2668 do 2669 eval ac_val=\$$ac_var 2670 case $ac_val in 2671 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2672 esac 2673 $as_echo "$ac_var='\''$ac_val'\''" 2674 done | sort 2675 echo 2676 2677 if test -n "$ac_subst_files"; then 2678 cat <<\_ASBOX 2679## ------------------- ## 2680## File substitutions. ## 2681## ------------------- ## 2682_ASBOX 2683 echo 2684 for ac_var in $ac_subst_files 2685 do 2686 eval ac_val=\$$ac_var 2687 case $ac_val in 2688 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2689 esac 2690 $as_echo "$ac_var='\''$ac_val'\''" 2691 done | sort 2692 echo 2693 fi 2694 2695 if test -s confdefs.h; then 2696 cat <<\_ASBOX 2697## ----------- ## 2698## confdefs.h. ## 2699## ----------- ## 2700_ASBOX 2701 echo 2702 cat confdefs.h 2703 echo 2704 fi 2705 test "$ac_signal" != 0 && 2706 $as_echo "$as_me: caught signal $ac_signal" 2707 $as_echo "$as_me: exit $exit_status" 2708 } >&5 2709 rm -f core *.core core.conftest.* && 2710 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2711 exit $exit_status 2712' 0 2713for ac_signal in 1 2 13 15; do 2714 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2715done 2716ac_signal=0 2717 2718# confdefs.h avoids OS command line length limits that DEFS can exceed. 2719rm -f -r conftest* confdefs.h 2720 2721$as_echo "/* confdefs.h */" > confdefs.h 2722 2723# Predefined preprocessor variables. 2724 2725cat >>confdefs.h <<_ACEOF 2726#define PACKAGE_NAME "$PACKAGE_NAME" 2727_ACEOF 2728 2729cat >>confdefs.h <<_ACEOF 2730#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2731_ACEOF 2732 2733cat >>confdefs.h <<_ACEOF 2734#define PACKAGE_VERSION "$PACKAGE_VERSION" 2735_ACEOF 2736 2737cat >>confdefs.h <<_ACEOF 2738#define PACKAGE_STRING "$PACKAGE_STRING" 2739_ACEOF 2740 2741cat >>confdefs.h <<_ACEOF 2742#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2743_ACEOF 2744 2745cat >>confdefs.h <<_ACEOF 2746#define PACKAGE_URL "$PACKAGE_URL" 2747_ACEOF 2748 2749 2750# Let the site file select an alternate cache file if it wants to. 2751# Prefer an explicitly selected file to automatically selected ones. 2752ac_site_file1=NONE 2753ac_site_file2=NONE 2754if test -n "$CONFIG_SITE"; then 2755 ac_site_file1=$CONFIG_SITE 2756elif test "x$prefix" != xNONE; then 2757 ac_site_file1=$prefix/share/config.site 2758 ac_site_file2=$prefix/etc/config.site 2759else 2760 ac_site_file1=$ac_default_prefix/share/config.site 2761 ac_site_file2=$ac_default_prefix/etc/config.site 2762fi 2763for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2764do 2765 test "x$ac_site_file" = xNONE && continue 2766 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2767 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2768$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2769 sed 's/^/| /' "$ac_site_file" >&5 2770 . "$ac_site_file" 2771 fi 2772done 2773 2774if test -r "$cache_file"; then 2775 # Some versions of bash will fail to source /dev/null (special files 2776 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2777 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2778 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2779$as_echo "$as_me: loading cache $cache_file" >&6;} 2780 case $cache_file in 2781 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2782 *) . "./$cache_file";; 2783 esac 2784 fi 2785else 2786 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2787$as_echo "$as_me: creating cache $cache_file" >&6;} 2788 >$cache_file 2789fi 2790 2791as_fn_append ac_header_list " stdlib.h" 2792as_fn_append ac_header_list " unistd.h" 2793as_fn_append ac_header_list " sys/param.h" 2794# Check that the precious variables saved in the cache have kept the same 2795# value. 2796ac_cache_corrupted=false 2797for ac_var in $ac_precious_vars; do 2798 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2799 eval ac_new_set=\$ac_env_${ac_var}_set 2800 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2801 eval ac_new_val=\$ac_env_${ac_var}_value 2802 case $ac_old_set,$ac_new_set in 2803 set,) 2804 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2805$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2806 ac_cache_corrupted=: ;; 2807 ,set) 2808 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2809$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2810 ac_cache_corrupted=: ;; 2811 ,);; 2812 *) 2813 if test "x$ac_old_val" != "x$ac_new_val"; then 2814 # differences in whitespace do not lead to failure. 2815 ac_old_val_w=`echo x $ac_old_val` 2816 ac_new_val_w=`echo x $ac_new_val` 2817 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2818 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2819$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2820 ac_cache_corrupted=: 2821 else 2822 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2823$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2824 eval $ac_var=\$ac_old_val 2825 fi 2826 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2827$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2828 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2829$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2830 fi;; 2831 esac 2832 # Pass precious variables to config.status. 2833 if test "$ac_new_set" = set; then 2834 case $ac_new_val in 2835 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2836 *) ac_arg=$ac_var=$ac_new_val ;; 2837 esac 2838 case " $ac_configure_args " in 2839 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2840 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2841 esac 2842 fi 2843done 2844if $ac_cache_corrupted; then 2845 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2846$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2847 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2848$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2849 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2850fi 2851## -------------------- ## 2852## Main body of script. ## 2853## -------------------- ## 2854 2855ac_ext=c 2856ac_cpp='$CPP $CPPFLAGS' 2857ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2858ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2859ac_compiler_gnu=$ac_cv_c_compiler_gnu 2860 2861 2862 2863am__api_version='1.11' 2864 2865ac_aux_dir= 2866for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2867 for ac_t in install-sh install.sh shtool; do 2868 if test -f "$ac_dir/$ac_t"; then 2869 ac_aux_dir=$ac_dir 2870 ac_install_sh="$ac_aux_dir/$ac_t -c" 2871 break 2 2872 fi 2873 done 2874done 2875if test -z "$ac_aux_dir"; then 2876 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2877fi 2878 2879# These three variables are undocumented and unsupported, 2880# and are intended to be withdrawn in a future Autoconf release. 2881# They can cause serious problems if a builder's source tree is in a directory 2882# whose full name contains unusual characters. 2883ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2884ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2885ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2886 2887 2888# Find a good install program. We prefer a C program (faster), 2889# so one script is as good as another. But avoid the broken or 2890# incompatible versions: 2891# SysV /etc/install, /usr/sbin/install 2892# SunOS /usr/etc/install 2893# IRIX /sbin/install 2894# AIX /bin/install 2895# AmigaOS /C/install, which installs bootblocks on floppy discs 2896# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2897# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2898# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2899# OS/2's system install, which has a completely different semantic 2900# ./install, which can be erroneously created by make from ./install.sh. 2901# Reject install programs that cannot install multiple files. 2902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2903$as_echo_n "checking for a BSD-compatible install... " >&6; } 2904if test -z "$INSTALL"; then 2905if test "${ac_cv_path_install+set}" = set; then : 2906 $as_echo_n "(cached) " >&6 2907else 2908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2909for as_dir in $PATH 2910do 2911 IFS=$as_save_IFS 2912 test -z "$as_dir" && as_dir=. 2913 # Account for people who put trailing slashes in PATH elements. 2914case $as_dir/ in #(( 2915 ./ | .// | /[cC]/* | \ 2916 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2917 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2918 /usr/ucb/* ) ;; 2919 *) 2920 # OSF1 and SCO ODT 3.0 have their own names for install. 2921 # Don't use installbsd from OSF since it installs stuff as root 2922 # by default. 2923 for ac_prog in ginstall scoinst install; do 2924 for ac_exec_ext in '' $ac_executable_extensions; do 2925 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2926 if test $ac_prog = install && 2927 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2928 # AIX install. It has an incompatible calling convention. 2929 : 2930 elif test $ac_prog = install && 2931 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2932 # program-specific install script used by HP pwplus--don't use. 2933 : 2934 else 2935 rm -rf conftest.one conftest.two conftest.dir 2936 echo one > conftest.one 2937 echo two > conftest.two 2938 mkdir conftest.dir 2939 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2940 test -s conftest.one && test -s conftest.two && 2941 test -s conftest.dir/conftest.one && 2942 test -s conftest.dir/conftest.two 2943 then 2944 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2945 break 3 2946 fi 2947 fi 2948 fi 2949 done 2950 done 2951 ;; 2952esac 2953 2954 done 2955IFS=$as_save_IFS 2956 2957rm -rf conftest.one conftest.two conftest.dir 2958 2959fi 2960 if test "${ac_cv_path_install+set}" = set; then 2961 INSTALL=$ac_cv_path_install 2962 else 2963 # As a last resort, use the slow shell script. Don't cache a 2964 # value for INSTALL within a source directory, because that will 2965 # break other packages using the cache if that directory is 2966 # removed, or if the value is a relative name. 2967 INSTALL=$ac_install_sh 2968 fi 2969fi 2970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2971$as_echo "$INSTALL" >&6; } 2972 2973# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2974# It thinks the first close brace ends the variable substitution. 2975test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2976 2977test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2978 2979test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2980 2981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2982$as_echo_n "checking whether build environment is sane... " >&6; } 2983# Just in case 2984sleep 1 2985echo timestamp > conftest.file 2986# Reject unsafe characters in $srcdir or the absolute working directory 2987# name. Accept space and tab only in the latter. 2988am_lf=' 2989' 2990case `pwd` in 2991 *[\\\"\#\$\&\'\`$am_lf]*) 2992 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 2993esac 2994case $srcdir in 2995 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2996 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2997esac 2998 2999# Do `set' in a subshell so we don't clobber the current shell's 3000# arguments. Must try -L first in case configure is actually a 3001# symlink; some systems play weird games with the mod time of symlinks 3002# (eg FreeBSD returns the mod time of the symlink's containing 3003# directory). 3004if ( 3005 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3006 if test "$*" = "X"; then 3007 # -L didn't work. 3008 set X `ls -t "$srcdir/configure" conftest.file` 3009 fi 3010 rm -f conftest.file 3011 if test "$*" != "X $srcdir/configure conftest.file" \ 3012 && test "$*" != "X conftest.file $srcdir/configure"; then 3013 3014 # If neither matched, then we have a broken ls. This can happen 3015 # if, for instance, CONFIG_SHELL is bash and it inherits a 3016 # broken ls alias from the environment. This has actually 3017 # happened. Such a system could not be considered "sane". 3018 as_fn_error "ls -t appears to fail. Make sure there is not a broken 3019alias in your environment" "$LINENO" 5 3020 fi 3021 3022 test "$2" = conftest.file 3023 ) 3024then 3025 # Ok. 3026 : 3027else 3028 as_fn_error "newly created file is older than distributed files! 3029Check your system clock" "$LINENO" 5 3030fi 3031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3032$as_echo "yes" >&6; } 3033test "$program_prefix" != NONE && 3034 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3035# Use a double $ so make ignores it. 3036test "$program_suffix" != NONE && 3037 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3038# Double any \ or $. 3039# By default was `s,x,x', remove it if useless. 3040ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3041program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3042 3043# expand $ac_aux_dir to an absolute path 3044am_aux_dir=`cd $ac_aux_dir && pwd` 3045 3046if test x"${MISSING+set}" != xset; then 3047 case $am_aux_dir in 3048 *\ * | *\ *) 3049 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3050 *) 3051 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3052 esac 3053fi 3054# Use eval to expand $SHELL 3055if eval "$MISSING --run true"; then 3056 am_missing_run="$MISSING --run " 3057else 3058 am_missing_run= 3059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 3060$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 3061fi 3062 3063if test x"${install_sh}" != xset; then 3064 case $am_aux_dir in 3065 *\ * | *\ *) 3066 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3067 *) 3068 install_sh="\${SHELL} $am_aux_dir/install-sh" 3069 esac 3070fi 3071 3072# Installed binaries are usually stripped using `strip' when the user 3073# run `make install-strip'. However `strip' might not be the right 3074# tool to use in cross-compilation environments, therefore Automake 3075# will honor the `STRIP' environment variable to overrule this program. 3076if test "$cross_compiling" != no; then 3077 if test -n "$ac_tool_prefix"; then 3078 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3079set dummy ${ac_tool_prefix}strip; ac_word=$2 3080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3081$as_echo_n "checking for $ac_word... " >&6; } 3082if test "${ac_cv_prog_STRIP+set}" = set; then : 3083 $as_echo_n "(cached) " >&6 3084else 3085 if test -n "$STRIP"; then 3086 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3087else 3088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3089for as_dir in $PATH 3090do 3091 IFS=$as_save_IFS 3092 test -z "$as_dir" && as_dir=. 3093 for ac_exec_ext in '' $ac_executable_extensions; do 3094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3095 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3097 break 2 3098 fi 3099done 3100 done 3101IFS=$as_save_IFS 3102 3103fi 3104fi 3105STRIP=$ac_cv_prog_STRIP 3106if test -n "$STRIP"; then 3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3108$as_echo "$STRIP" >&6; } 3109else 3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3111$as_echo "no" >&6; } 3112fi 3113 3114 3115fi 3116if test -z "$ac_cv_prog_STRIP"; then 3117 ac_ct_STRIP=$STRIP 3118 # Extract the first word of "strip", so it can be a program name with args. 3119set dummy strip; ac_word=$2 3120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3121$as_echo_n "checking for $ac_word... " >&6; } 3122if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 3123 $as_echo_n "(cached) " >&6 3124else 3125 if test -n "$ac_ct_STRIP"; then 3126 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3127else 3128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3129for as_dir in $PATH 3130do 3131 IFS=$as_save_IFS 3132 test -z "$as_dir" && as_dir=. 3133 for ac_exec_ext in '' $ac_executable_extensions; do 3134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3135 ac_cv_prog_ac_ct_STRIP="strip" 3136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3137 break 2 3138 fi 3139done 3140 done 3141IFS=$as_save_IFS 3142 3143fi 3144fi 3145ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3146if test -n "$ac_ct_STRIP"; then 3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3148$as_echo "$ac_ct_STRIP" >&6; } 3149else 3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3151$as_echo "no" >&6; } 3152fi 3153 3154 if test "x$ac_ct_STRIP" = x; then 3155 STRIP=":" 3156 else 3157 case $cross_compiling:$ac_tool_warned in 3158yes:) 3159{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3160$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3161ac_tool_warned=yes ;; 3162esac 3163 STRIP=$ac_ct_STRIP 3164 fi 3165else 3166 STRIP="$ac_cv_prog_STRIP" 3167fi 3168 3169fi 3170INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3171 3172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3173$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3174if test -z "$MKDIR_P"; then 3175 if test "${ac_cv_path_mkdir+set}" = set; then : 3176 $as_echo_n "(cached) " >&6 3177else 3178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3179for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3180do 3181 IFS=$as_save_IFS 3182 test -z "$as_dir" && as_dir=. 3183 for ac_prog in mkdir gmkdir; do 3184 for ac_exec_ext in '' $ac_executable_extensions; do 3185 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 3186 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3187 'mkdir (GNU coreutils) '* | \ 3188 'mkdir (coreutils) '* | \ 3189 'mkdir (fileutils) '4.1*) 3190 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3191 break 3;; 3192 esac 3193 done 3194 done 3195 done 3196IFS=$as_save_IFS 3197 3198fi 3199 3200 test -d ./--version && rmdir ./--version 3201 if test "${ac_cv_path_mkdir+set}" = set; then 3202 MKDIR_P="$ac_cv_path_mkdir -p" 3203 else 3204 # As a last resort, use the slow shell script. Don't cache a 3205 # value for MKDIR_P within a source directory, because that will 3206 # break other packages using the cache if that directory is 3207 # removed, or if the value is a relative name. 3208 MKDIR_P="$ac_install_sh -d" 3209 fi 3210fi 3211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3212$as_echo "$MKDIR_P" >&6; } 3213 3214mkdir_p="$MKDIR_P" 3215case $mkdir_p in 3216 [\\/$]* | ?:[\\/]*) ;; 3217 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 3218esac 3219 3220for ac_prog in gawk mawk nawk awk 3221do 3222 # Extract the first word of "$ac_prog", so it can be a program name with args. 3223set dummy $ac_prog; ac_word=$2 3224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3225$as_echo_n "checking for $ac_word... " >&6; } 3226if test "${ac_cv_prog_AWK+set}" = set; then : 3227 $as_echo_n "(cached) " >&6 3228else 3229 if test -n "$AWK"; then 3230 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3231else 3232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3233for as_dir in $PATH 3234do 3235 IFS=$as_save_IFS 3236 test -z "$as_dir" && as_dir=. 3237 for ac_exec_ext in '' $ac_executable_extensions; do 3238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3239 ac_cv_prog_AWK="$ac_prog" 3240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3241 break 2 3242 fi 3243done 3244 done 3245IFS=$as_save_IFS 3246 3247fi 3248fi 3249AWK=$ac_cv_prog_AWK 3250if test -n "$AWK"; then 3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3252$as_echo "$AWK" >&6; } 3253else 3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3255$as_echo "no" >&6; } 3256fi 3257 3258 3259 test -n "$AWK" && break 3260done 3261 3262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3263$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3264set x ${MAKE-make} 3265ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3266if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 3267 $as_echo_n "(cached) " >&6 3268else 3269 cat >conftest.make <<\_ACEOF 3270SHELL = /bin/sh 3271all: 3272 @echo '@@@%%%=$(MAKE)=@@@%%%' 3273_ACEOF 3274# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3275case `${MAKE-make} -f conftest.make 2>/dev/null` in 3276 *@@@%%%=?*=@@@%%%*) 3277 eval ac_cv_prog_make_${ac_make}_set=yes;; 3278 *) 3279 eval ac_cv_prog_make_${ac_make}_set=no;; 3280esac 3281rm -f conftest.make 3282fi 3283if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3285$as_echo "yes" >&6; } 3286 SET_MAKE= 3287else 3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3289$as_echo "no" >&6; } 3290 SET_MAKE="MAKE=${MAKE-make}" 3291fi 3292 3293rm -rf .tst 2>/dev/null 3294mkdir .tst 2>/dev/null 3295if test -d .tst; then 3296 am__leading_dot=. 3297else 3298 am__leading_dot=_ 3299fi 3300rmdir .tst 2>/dev/null 3301 3302if test "`cd $srcdir && pwd`" != "`pwd`"; then 3303 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3304 # is not polluted with repeated "-I." 3305 am__isrc=' -I$(srcdir)' 3306 # test to see if srcdir already configured 3307 if test -f $srcdir/config.status; then 3308 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3309 fi 3310fi 3311 3312# test whether we have cygpath 3313if test -z "$CYGPATH_W"; then 3314 if (cygpath --version) >/dev/null 2>/dev/null; then 3315 CYGPATH_W='cygpath -w' 3316 else 3317 CYGPATH_W=echo 3318 fi 3319fi 3320 3321 3322# Define the identity of the package. 3323 PACKAGE='libX11' 3324 VERSION='1.3.3' 3325 3326 3327cat >>confdefs.h <<_ACEOF 3328#define PACKAGE "$PACKAGE" 3329_ACEOF 3330 3331 3332cat >>confdefs.h <<_ACEOF 3333#define VERSION "$VERSION" 3334_ACEOF 3335 3336# Some tools Automake needs. 3337 3338ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3339 3340 3341AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3342 3343 3344AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3345 3346 3347AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3348 3349 3350MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3351 3352# We need awk for the "check" target. The system "awk" is bad on 3353# some platforms. 3354# Always define AMTAR for backward compatibility. 3355 3356AMTAR=${AMTAR-"${am_missing_run}tar"} 3357 3358am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 3359 3360 3361 3362 3363 3364 3365 3366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3367$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3368 # Check whether --enable-maintainer-mode was given. 3369if test "${enable_maintainer_mode+set}" = set; then : 3370 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3371else 3372 USE_MAINTAINER_MODE=no 3373fi 3374 3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3376$as_echo "$USE_MAINTAINER_MODE" >&6; } 3377 if test $USE_MAINTAINER_MODE = yes; then 3378 MAINTAINER_MODE_TRUE= 3379 MAINTAINER_MODE_FALSE='#' 3380else 3381 MAINTAINER_MODE_TRUE='#' 3382 MAINTAINER_MODE_FALSE= 3383fi 3384 3385 MAINT=$MAINTAINER_MODE_TRUE 3386 3387 3388 3389ac_config_headers="$ac_config_headers src/config.h" 3390 3391ac_config_headers="$ac_config_headers include/X11/XlibConf.h" 3392 3393 3394# Require xorg-macros: XORG_DEFAULT_OPTIONS 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407# Set common system defines for POSIX extensions, such as _GNU_SOURCE 3408# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL) 3409# to avoid autoconf errors. 3410DEPDIR="${am__leading_dot}deps" 3411 3412ac_config_commands="$ac_config_commands depfiles" 3413 3414 3415am_make=${MAKE-make} 3416cat > confinc << 'END' 3417am__doit: 3418 @echo this is the am__doit target 3419.PHONY: am__doit 3420END 3421# If we don't find an include directive, just comment out the code. 3422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3423$as_echo_n "checking for style of include used by $am_make... " >&6; } 3424am__include="#" 3425am__quote= 3426_am_result=none 3427# First try GNU make style include. 3428echo "include confinc" > confmf 3429# Ignore all kinds of additional output from `make'. 3430case `$am_make -s -f confmf 2> /dev/null` in #( 3431*the\ am__doit\ target*) 3432 am__include=include 3433 am__quote= 3434 _am_result=GNU 3435 ;; 3436esac 3437# Now try BSD make style include. 3438if test "$am__include" = "#"; then 3439 echo '.include "confinc"' > confmf 3440 case `$am_make -s -f confmf 2> /dev/null` in #( 3441 *the\ am__doit\ target*) 3442 am__include=.include 3443 am__quote="\"" 3444 _am_result=BSD 3445 ;; 3446 esac 3447fi 3448 3449 3450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3451$as_echo "$_am_result" >&6; } 3452rm -f confinc confmf 3453 3454# Check whether --enable-dependency-tracking was given. 3455if test "${enable_dependency_tracking+set}" = set; then : 3456 enableval=$enable_dependency_tracking; 3457fi 3458 3459if test "x$enable_dependency_tracking" != xno; then 3460 am_depcomp="$ac_aux_dir/depcomp" 3461 AMDEPBACKSLASH='\' 3462fi 3463 if test "x$enable_dependency_tracking" != xno; then 3464 AMDEP_TRUE= 3465 AMDEP_FALSE='#' 3466else 3467 AMDEP_TRUE='#' 3468 AMDEP_FALSE= 3469fi 3470 3471 3472ac_ext=c 3473ac_cpp='$CPP $CPPFLAGS' 3474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3476ac_compiler_gnu=$ac_cv_c_compiler_gnu 3477if test -n "$ac_tool_prefix"; then 3478 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3479set dummy ${ac_tool_prefix}gcc; ac_word=$2 3480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3481$as_echo_n "checking for $ac_word... " >&6; } 3482if test "${ac_cv_prog_CC+set}" = set; then : 3483 $as_echo_n "(cached) " >&6 3484else 3485 if test -n "$CC"; then 3486 ac_cv_prog_CC="$CC" # Let the user override the test. 3487else 3488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3489for as_dir in $PATH 3490do 3491 IFS=$as_save_IFS 3492 test -z "$as_dir" && as_dir=. 3493 for ac_exec_ext in '' $ac_executable_extensions; do 3494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3495 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3497 break 2 3498 fi 3499done 3500 done 3501IFS=$as_save_IFS 3502 3503fi 3504fi 3505CC=$ac_cv_prog_CC 3506if test -n "$CC"; then 3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3508$as_echo "$CC" >&6; } 3509else 3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3511$as_echo "no" >&6; } 3512fi 3513 3514 3515fi 3516if test -z "$ac_cv_prog_CC"; then 3517 ac_ct_CC=$CC 3518 # Extract the first word of "gcc", so it can be a program name with args. 3519set dummy gcc; ac_word=$2 3520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3521$as_echo_n "checking for $ac_word... " >&6; } 3522if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3523 $as_echo_n "(cached) " >&6 3524else 3525 if test -n "$ac_ct_CC"; then 3526 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3527else 3528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3529for as_dir in $PATH 3530do 3531 IFS=$as_save_IFS 3532 test -z "$as_dir" && as_dir=. 3533 for ac_exec_ext in '' $ac_executable_extensions; do 3534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3535 ac_cv_prog_ac_ct_CC="gcc" 3536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3537 break 2 3538 fi 3539done 3540 done 3541IFS=$as_save_IFS 3542 3543fi 3544fi 3545ac_ct_CC=$ac_cv_prog_ac_ct_CC 3546if test -n "$ac_ct_CC"; then 3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3548$as_echo "$ac_ct_CC" >&6; } 3549else 3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3551$as_echo "no" >&6; } 3552fi 3553 3554 if test "x$ac_ct_CC" = x; then 3555 CC="" 3556 else 3557 case $cross_compiling:$ac_tool_warned in 3558yes:) 3559{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3560$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3561ac_tool_warned=yes ;; 3562esac 3563 CC=$ac_ct_CC 3564 fi 3565else 3566 CC="$ac_cv_prog_CC" 3567fi 3568 3569if test -z "$CC"; then 3570 if test -n "$ac_tool_prefix"; then 3571 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3572set dummy ${ac_tool_prefix}cc; ac_word=$2 3573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3574$as_echo_n "checking for $ac_word... " >&6; } 3575if test "${ac_cv_prog_CC+set}" = set; then : 3576 $as_echo_n "(cached) " >&6 3577else 3578 if test -n "$CC"; then 3579 ac_cv_prog_CC="$CC" # Let the user override the test. 3580else 3581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3582for as_dir in $PATH 3583do 3584 IFS=$as_save_IFS 3585 test -z "$as_dir" && as_dir=. 3586 for ac_exec_ext in '' $ac_executable_extensions; do 3587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3588 ac_cv_prog_CC="${ac_tool_prefix}cc" 3589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3590 break 2 3591 fi 3592done 3593 done 3594IFS=$as_save_IFS 3595 3596fi 3597fi 3598CC=$ac_cv_prog_CC 3599if test -n "$CC"; then 3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3601$as_echo "$CC" >&6; } 3602else 3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3604$as_echo "no" >&6; } 3605fi 3606 3607 3608 fi 3609fi 3610if test -z "$CC"; then 3611 # Extract the first word of "cc", so it can be a program name with args. 3612set dummy cc; ac_word=$2 3613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3614$as_echo_n "checking for $ac_word... " >&6; } 3615if test "${ac_cv_prog_CC+set}" = set; then : 3616 $as_echo_n "(cached) " >&6 3617else 3618 if test -n "$CC"; then 3619 ac_cv_prog_CC="$CC" # Let the user override the test. 3620else 3621 ac_prog_rejected=no 3622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3623for as_dir in $PATH 3624do 3625 IFS=$as_save_IFS 3626 test -z "$as_dir" && as_dir=. 3627 for ac_exec_ext in '' $ac_executable_extensions; do 3628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3629 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3630 ac_prog_rejected=yes 3631 continue 3632 fi 3633 ac_cv_prog_CC="cc" 3634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3635 break 2 3636 fi 3637done 3638 done 3639IFS=$as_save_IFS 3640 3641if test $ac_prog_rejected = yes; then 3642 # We found a bogon in the path, so make sure we never use it. 3643 set dummy $ac_cv_prog_CC 3644 shift 3645 if test $# != 0; then 3646 # We chose a different compiler from the bogus one. 3647 # However, it has the same basename, so the bogon will be chosen 3648 # first if we set CC to just the basename; use the full file name. 3649 shift 3650 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3651 fi 3652fi 3653fi 3654fi 3655CC=$ac_cv_prog_CC 3656if test -n "$CC"; then 3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3658$as_echo "$CC" >&6; } 3659else 3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3661$as_echo "no" >&6; } 3662fi 3663 3664 3665fi 3666if test -z "$CC"; then 3667 if test -n "$ac_tool_prefix"; then 3668 for ac_prog in cl.exe 3669 do 3670 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3671set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3673$as_echo_n "checking for $ac_word... " >&6; } 3674if test "${ac_cv_prog_CC+set}" = set; then : 3675 $as_echo_n "(cached) " >&6 3676else 3677 if test -n "$CC"; then 3678 ac_cv_prog_CC="$CC" # Let the user override the test. 3679else 3680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3681for as_dir in $PATH 3682do 3683 IFS=$as_save_IFS 3684 test -z "$as_dir" && as_dir=. 3685 for ac_exec_ext in '' $ac_executable_extensions; do 3686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3687 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3689 break 2 3690 fi 3691done 3692 done 3693IFS=$as_save_IFS 3694 3695fi 3696fi 3697CC=$ac_cv_prog_CC 3698if test -n "$CC"; then 3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3700$as_echo "$CC" >&6; } 3701else 3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3703$as_echo "no" >&6; } 3704fi 3705 3706 3707 test -n "$CC" && break 3708 done 3709fi 3710if test -z "$CC"; then 3711 ac_ct_CC=$CC 3712 for ac_prog in cl.exe 3713do 3714 # Extract the first word of "$ac_prog", so it can be a program name with args. 3715set dummy $ac_prog; ac_word=$2 3716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3717$as_echo_n "checking for $ac_word... " >&6; } 3718if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3719 $as_echo_n "(cached) " >&6 3720else 3721 if test -n "$ac_ct_CC"; then 3722 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3723else 3724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3725for as_dir in $PATH 3726do 3727 IFS=$as_save_IFS 3728 test -z "$as_dir" && as_dir=. 3729 for ac_exec_ext in '' $ac_executable_extensions; do 3730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3731 ac_cv_prog_ac_ct_CC="$ac_prog" 3732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3733 break 2 3734 fi 3735done 3736 done 3737IFS=$as_save_IFS 3738 3739fi 3740fi 3741ac_ct_CC=$ac_cv_prog_ac_ct_CC 3742if test -n "$ac_ct_CC"; then 3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3744$as_echo "$ac_ct_CC" >&6; } 3745else 3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3747$as_echo "no" >&6; } 3748fi 3749 3750 3751 test -n "$ac_ct_CC" && break 3752done 3753 3754 if test "x$ac_ct_CC" = x; then 3755 CC="" 3756 else 3757 case $cross_compiling:$ac_tool_warned in 3758yes:) 3759{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3760$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3761ac_tool_warned=yes ;; 3762esac 3763 CC=$ac_ct_CC 3764 fi 3765fi 3766 3767fi 3768 3769 3770test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3771$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3772as_fn_error "no acceptable C compiler found in \$PATH 3773See \`config.log' for more details." "$LINENO" 5; } 3774 3775# Provide some information about the compiler. 3776$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3777set X $ac_compile 3778ac_compiler=$2 3779for ac_option in --version -v -V -qversion; do 3780 { { ac_try="$ac_compiler $ac_option >&5" 3781case "(($ac_try" in 3782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3783 *) ac_try_echo=$ac_try;; 3784esac 3785eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3786$as_echo "$ac_try_echo"; } >&5 3787 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3788 ac_status=$? 3789 if test -s conftest.err; then 3790 sed '10a\ 3791... rest of stderr output deleted ... 3792 10q' conftest.err >conftest.er1 3793 cat conftest.er1 >&5 3794 fi 3795 rm -f conftest.er1 conftest.err 3796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3797 test $ac_status = 0; } 3798done 3799 3800cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3801/* end confdefs.h. */ 3802 3803int 3804main () 3805{ 3806 3807 ; 3808 return 0; 3809} 3810_ACEOF 3811ac_clean_files_save=$ac_clean_files 3812ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3813# Try to create an executable without -o first, disregard a.out. 3814# It will help us diagnose broken compilers, and finding out an intuition 3815# of exeext. 3816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3817$as_echo_n "checking whether the C compiler works... " >&6; } 3818ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3819 3820# The possible output files: 3821ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3822 3823ac_rmfiles= 3824for ac_file in $ac_files 3825do 3826 case $ac_file in 3827 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3828 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3829 esac 3830done 3831rm -f $ac_rmfiles 3832 3833if { { ac_try="$ac_link_default" 3834case "(($ac_try" in 3835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3836 *) ac_try_echo=$ac_try;; 3837esac 3838eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3839$as_echo "$ac_try_echo"; } >&5 3840 (eval "$ac_link_default") 2>&5 3841 ac_status=$? 3842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3843 test $ac_status = 0; }; then : 3844 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3845# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3846# in a Makefile. We should not override ac_cv_exeext if it was cached, 3847# so that the user can short-circuit this test for compilers unknown to 3848# Autoconf. 3849for ac_file in $ac_files '' 3850do 3851 test -f "$ac_file" || continue 3852 case $ac_file in 3853 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3854 ;; 3855 [ab].out ) 3856 # We found the default executable, but exeext='' is most 3857 # certainly right. 3858 break;; 3859 *.* ) 3860 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3861 then :; else 3862 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3863 fi 3864 # We set ac_cv_exeext here because the later test for it is not 3865 # safe: cross compilers may not add the suffix if given an `-o' 3866 # argument, so we may need to know it at that point already. 3867 # Even if this section looks crufty: it has the advantage of 3868 # actually working. 3869 break;; 3870 * ) 3871 break;; 3872 esac 3873done 3874test "$ac_cv_exeext" = no && ac_cv_exeext= 3875 3876else 3877 ac_file='' 3878fi 3879if test -z "$ac_file"; then : 3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3881$as_echo "no" >&6; } 3882$as_echo "$as_me: failed program was:" >&5 3883sed 's/^/| /' conftest.$ac_ext >&5 3884 3885{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3886$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3887{ as_fn_set_status 77 3888as_fn_error "C compiler cannot create executables 3889See \`config.log' for more details." "$LINENO" 5; }; } 3890else 3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3892$as_echo "yes" >&6; } 3893fi 3894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3895$as_echo_n "checking for C compiler default output file name... " >&6; } 3896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3897$as_echo "$ac_file" >&6; } 3898ac_exeext=$ac_cv_exeext 3899 3900rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3901ac_clean_files=$ac_clean_files_save 3902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3903$as_echo_n "checking for suffix of executables... " >&6; } 3904if { { ac_try="$ac_link" 3905case "(($ac_try" in 3906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3907 *) ac_try_echo=$ac_try;; 3908esac 3909eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3910$as_echo "$ac_try_echo"; } >&5 3911 (eval "$ac_link") 2>&5 3912 ac_status=$? 3913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3914 test $ac_status = 0; }; then : 3915 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3916# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3917# work properly (i.e., refer to `conftest.exe'), while it won't with 3918# `rm'. 3919for ac_file in conftest.exe conftest conftest.*; do 3920 test -f "$ac_file" || continue 3921 case $ac_file in 3922 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3923 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3924 break;; 3925 * ) break;; 3926 esac 3927done 3928else 3929 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3930$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3931as_fn_error "cannot compute suffix of executables: cannot compile and link 3932See \`config.log' for more details." "$LINENO" 5; } 3933fi 3934rm -f conftest conftest$ac_cv_exeext 3935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3936$as_echo "$ac_cv_exeext" >&6; } 3937 3938rm -f conftest.$ac_ext 3939EXEEXT=$ac_cv_exeext 3940ac_exeext=$EXEEXT 3941cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3942/* end confdefs.h. */ 3943#include <stdio.h> 3944int 3945main () 3946{ 3947FILE *f = fopen ("conftest.out", "w"); 3948 return ferror (f) || fclose (f) != 0; 3949 3950 ; 3951 return 0; 3952} 3953_ACEOF 3954ac_clean_files="$ac_clean_files conftest.out" 3955# Check that the compiler produces executables we can run. If not, either 3956# the compiler is broken, or we cross compile. 3957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3958$as_echo_n "checking whether we are cross compiling... " >&6; } 3959if test "$cross_compiling" != yes; then 3960 { { ac_try="$ac_link" 3961case "(($ac_try" in 3962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3963 *) ac_try_echo=$ac_try;; 3964esac 3965eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3966$as_echo "$ac_try_echo"; } >&5 3967 (eval "$ac_link") 2>&5 3968 ac_status=$? 3969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3970 test $ac_status = 0; } 3971 if { ac_try='./conftest$ac_cv_exeext' 3972 { { case "(($ac_try" in 3973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3974 *) ac_try_echo=$ac_try;; 3975esac 3976eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3977$as_echo "$ac_try_echo"; } >&5 3978 (eval "$ac_try") 2>&5 3979 ac_status=$? 3980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3981 test $ac_status = 0; }; }; then 3982 cross_compiling=no 3983 else 3984 if test "$cross_compiling" = maybe; then 3985 cross_compiling=yes 3986 else 3987 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3988$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3989as_fn_error "cannot run C compiled programs. 3990If you meant to cross compile, use \`--host'. 3991See \`config.log' for more details." "$LINENO" 5; } 3992 fi 3993 fi 3994fi 3995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3996$as_echo "$cross_compiling" >&6; } 3997 3998rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3999ac_clean_files=$ac_clean_files_save 4000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4001$as_echo_n "checking for suffix of object files... " >&6; } 4002if test "${ac_cv_objext+set}" = set; then : 4003 $as_echo_n "(cached) " >&6 4004else 4005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4006/* end confdefs.h. */ 4007 4008int 4009main () 4010{ 4011 4012 ; 4013 return 0; 4014} 4015_ACEOF 4016rm -f conftest.o conftest.obj 4017if { { ac_try="$ac_compile" 4018case "(($ac_try" in 4019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4020 *) ac_try_echo=$ac_try;; 4021esac 4022eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4023$as_echo "$ac_try_echo"; } >&5 4024 (eval "$ac_compile") 2>&5 4025 ac_status=$? 4026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4027 test $ac_status = 0; }; then : 4028 for ac_file in conftest.o conftest.obj conftest.*; do 4029 test -f "$ac_file" || continue; 4030 case $ac_file in 4031 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4032 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4033 break;; 4034 esac 4035done 4036else 4037 $as_echo "$as_me: failed program was:" >&5 4038sed 's/^/| /' conftest.$ac_ext >&5 4039 4040{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4041$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4042as_fn_error "cannot compute suffix of object files: cannot compile 4043See \`config.log' for more details." "$LINENO" 5; } 4044fi 4045rm -f conftest.$ac_cv_objext conftest.$ac_ext 4046fi 4047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4048$as_echo "$ac_cv_objext" >&6; } 4049OBJEXT=$ac_cv_objext 4050ac_objext=$OBJEXT 4051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4052$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4053if test "${ac_cv_c_compiler_gnu+set}" = set; then : 4054 $as_echo_n "(cached) " >&6 4055else 4056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4057/* end confdefs.h. */ 4058 4059int 4060main () 4061{ 4062#ifndef __GNUC__ 4063 choke me 4064#endif 4065 4066 ; 4067 return 0; 4068} 4069_ACEOF 4070if ac_fn_c_try_compile "$LINENO"; then : 4071 ac_compiler_gnu=yes 4072else 4073 ac_compiler_gnu=no 4074fi 4075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4076ac_cv_c_compiler_gnu=$ac_compiler_gnu 4077 4078fi 4079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4080$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4081if test $ac_compiler_gnu = yes; then 4082 GCC=yes 4083else 4084 GCC= 4085fi 4086ac_test_CFLAGS=${CFLAGS+set} 4087ac_save_CFLAGS=$CFLAGS 4088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4089$as_echo_n "checking whether $CC accepts -g... " >&6; } 4090if test "${ac_cv_prog_cc_g+set}" = set; then : 4091 $as_echo_n "(cached) " >&6 4092else 4093 ac_save_c_werror_flag=$ac_c_werror_flag 4094 ac_c_werror_flag=yes 4095 ac_cv_prog_cc_g=no 4096 CFLAGS="-g" 4097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4098/* end confdefs.h. */ 4099 4100int 4101main () 4102{ 4103 4104 ; 4105 return 0; 4106} 4107_ACEOF 4108if ac_fn_c_try_compile "$LINENO"; then : 4109 ac_cv_prog_cc_g=yes 4110else 4111 CFLAGS="" 4112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4113/* end confdefs.h. */ 4114 4115int 4116main () 4117{ 4118 4119 ; 4120 return 0; 4121} 4122_ACEOF 4123if ac_fn_c_try_compile "$LINENO"; then : 4124 4125else 4126 ac_c_werror_flag=$ac_save_c_werror_flag 4127 CFLAGS="-g" 4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4129/* end confdefs.h. */ 4130 4131int 4132main () 4133{ 4134 4135 ; 4136 return 0; 4137} 4138_ACEOF 4139if ac_fn_c_try_compile "$LINENO"; then : 4140 ac_cv_prog_cc_g=yes 4141fi 4142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4143fi 4144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4145fi 4146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4147 ac_c_werror_flag=$ac_save_c_werror_flag 4148fi 4149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4150$as_echo "$ac_cv_prog_cc_g" >&6; } 4151if test "$ac_test_CFLAGS" = set; then 4152 CFLAGS=$ac_save_CFLAGS 4153elif test $ac_cv_prog_cc_g = yes; then 4154 if test "$GCC" = yes; then 4155 CFLAGS="-g -O2" 4156 else 4157 CFLAGS="-g" 4158 fi 4159else 4160 if test "$GCC" = yes; then 4161 CFLAGS="-O2" 4162 else 4163 CFLAGS= 4164 fi 4165fi 4166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4167$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4168if test "${ac_cv_prog_cc_c89+set}" = set; then : 4169 $as_echo_n "(cached) " >&6 4170else 4171 ac_cv_prog_cc_c89=no 4172ac_save_CC=$CC 4173cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4174/* end confdefs.h. */ 4175#include <stdarg.h> 4176#include <stdio.h> 4177#include <sys/types.h> 4178#include <sys/stat.h> 4179/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4180struct buf { int x; }; 4181FILE * (*rcsopen) (struct buf *, struct stat *, int); 4182static char *e (p, i) 4183 char **p; 4184 int i; 4185{ 4186 return p[i]; 4187} 4188static char *f (char * (*g) (char **, int), char **p, ...) 4189{ 4190 char *s; 4191 va_list v; 4192 va_start (v,p); 4193 s = g (p, va_arg (v,int)); 4194 va_end (v); 4195 return s; 4196} 4197 4198/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4199 function prototypes and stuff, but not '\xHH' hex character constants. 4200 These don't provoke an error unfortunately, instead are silently treated 4201 as 'x'. The following induces an error, until -std is added to get 4202 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4203 array size at least. It's necessary to write '\x00'==0 to get something 4204 that's true only with -std. */ 4205int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4206 4207/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4208 inside strings and character constants. */ 4209#define FOO(x) 'x' 4210int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4211 4212int test (int i, double x); 4213struct s1 {int (*f) (int a);}; 4214struct s2 {int (*f) (double a);}; 4215int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4216int argc; 4217char **argv; 4218int 4219main () 4220{ 4221return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4222 ; 4223 return 0; 4224} 4225_ACEOF 4226for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4227 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4228do 4229 CC="$ac_save_CC $ac_arg" 4230 if ac_fn_c_try_compile "$LINENO"; then : 4231 ac_cv_prog_cc_c89=$ac_arg 4232fi 4233rm -f core conftest.err conftest.$ac_objext 4234 test "x$ac_cv_prog_cc_c89" != "xno" && break 4235done 4236rm -f conftest.$ac_ext 4237CC=$ac_save_CC 4238 4239fi 4240# AC_CACHE_VAL 4241case "x$ac_cv_prog_cc_c89" in 4242 x) 4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4244$as_echo "none needed" >&6; } ;; 4245 xno) 4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4247$as_echo "unsupported" >&6; } ;; 4248 *) 4249 CC="$CC $ac_cv_prog_cc_c89" 4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4251$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4252esac 4253if test "x$ac_cv_prog_cc_c89" != xno; then : 4254 4255fi 4256 4257ac_ext=c 4258ac_cpp='$CPP $CPPFLAGS' 4259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4261ac_compiler_gnu=$ac_cv_c_compiler_gnu 4262 4263depcc="$CC" am_compiler_list= 4264 4265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4266$as_echo_n "checking dependency style of $depcc... " >&6; } 4267if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 4268 $as_echo_n "(cached) " >&6 4269else 4270 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4271 # We make a subdir and do the tests there. Otherwise we can end up 4272 # making bogus files that we don't know about and never remove. For 4273 # instance it was reported that on HP-UX the gcc test will end up 4274 # making a dummy file named `D' -- because `-MD' means `put the output 4275 # in D'. 4276 mkdir conftest.dir 4277 # Copy depcomp to subdir because otherwise we won't find it if we're 4278 # using a relative directory. 4279 cp "$am_depcomp" conftest.dir 4280 cd conftest.dir 4281 # We will build objects and dependencies in a subdirectory because 4282 # it helps to detect inapplicable dependency modes. For instance 4283 # both Tru64's cc and ICC support -MD to output dependencies as a 4284 # side effect of compilation, but ICC will put the dependencies in 4285 # the current directory while Tru64 will put them in the object 4286 # directory. 4287 mkdir sub 4288 4289 am_cv_CC_dependencies_compiler_type=none 4290 if test "$am_compiler_list" = ""; then 4291 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4292 fi 4293 am__universal=false 4294 case " $depcc " in #( 4295 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4296 esac 4297 4298 for depmode in $am_compiler_list; do 4299 # Setup a source with many dependencies, because some compilers 4300 # like to wrap large dependency lists on column 80 (with \), and 4301 # we should not choose a depcomp mode which is confused by this. 4302 # 4303 # We need to recreate these files for each test, as the compiler may 4304 # overwrite some of them when testing with obscure command lines. 4305 # This happens at least with the AIX C compiler. 4306 : > sub/conftest.c 4307 for i in 1 2 3 4 5 6; do 4308 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4309 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4310 # Solaris 8's {/usr,}/bin/sh. 4311 touch sub/conftst$i.h 4312 done 4313 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4314 4315 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4316 # mode. It turns out that the SunPro C++ compiler does not properly 4317 # handle `-M -o', and we need to detect this. Also, some Intel 4318 # versions had trouble with output in subdirs 4319 am__obj=sub/conftest.${OBJEXT-o} 4320 am__minus_obj="-o $am__obj" 4321 case $depmode in 4322 gcc) 4323 # This depmode causes a compiler race in universal mode. 4324 test "$am__universal" = false || continue 4325 ;; 4326 nosideeffect) 4327 # after this tag, mechanisms are not by side-effect, so they'll 4328 # only be used when explicitly requested 4329 if test "x$enable_dependency_tracking" = xyes; then 4330 continue 4331 else 4332 break 4333 fi 4334 ;; 4335 msvisualcpp | msvcmsys) 4336 # This compiler won't grok `-c -o', but also, the minuso test has 4337 # not run yet. These depmodes are late enough in the game, and 4338 # so weak that their functioning should not be impacted. 4339 am__obj=conftest.${OBJEXT-o} 4340 am__minus_obj= 4341 ;; 4342 none) break ;; 4343 esac 4344 if depmode=$depmode \ 4345 source=sub/conftest.c object=$am__obj \ 4346 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4347 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4348 >/dev/null 2>conftest.err && 4349 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4350 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4351 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4352 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4353 # icc doesn't choke on unknown options, it will just issue warnings 4354 # or remarks (even with -Werror). So we grep stderr for any message 4355 # that says an option was ignored or not supported. 4356 # When given -MP, icc 7.0 and 7.1 complain thusly: 4357 # icc: Command line warning: ignoring option '-M'; no argument required 4358 # The diagnosis changed in icc 8.0: 4359 # icc: Command line remark: option '-MP' not supported 4360 if (grep 'ignoring option' conftest.err || 4361 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4362 am_cv_CC_dependencies_compiler_type=$depmode 4363 break 4364 fi 4365 fi 4366 done 4367 4368 cd .. 4369 rm -rf conftest.dir 4370else 4371 am_cv_CC_dependencies_compiler_type=none 4372fi 4373 4374fi 4375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4376$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4377CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4378 4379 if 4380 test "x$enable_dependency_tracking" != xno \ 4381 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4382 am__fastdepCC_TRUE= 4383 am__fastdepCC_FALSE='#' 4384else 4385 am__fastdepCC_TRUE='#' 4386 am__fastdepCC_FALSE= 4387fi 4388 4389 4390 4391ac_ext=c 4392ac_cpp='$CPP $CPPFLAGS' 4393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4395ac_compiler_gnu=$ac_cv_c_compiler_gnu 4396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4397$as_echo_n "checking how to run the C preprocessor... " >&6; } 4398# On Suns, sometimes $CPP names a directory. 4399if test -n "$CPP" && test -d "$CPP"; then 4400 CPP= 4401fi 4402if test -z "$CPP"; then 4403 if test "${ac_cv_prog_CPP+set}" = set; then : 4404 $as_echo_n "(cached) " >&6 4405else 4406 # Double quotes because CPP needs to be expanded 4407 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4408 do 4409 ac_preproc_ok=false 4410for ac_c_preproc_warn_flag in '' yes 4411do 4412 # Use a header file that comes with gcc, so configuring glibc 4413 # with a fresh cross-compiler works. 4414 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4415 # <limits.h> exists even on freestanding compilers. 4416 # On the NeXT, cc -E runs the code through the compiler's parser, 4417 # not just through cpp. "Syntax error" is here to catch this case. 4418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4419/* end confdefs.h. */ 4420#ifdef __STDC__ 4421# include <limits.h> 4422#else 4423# include <assert.h> 4424#endif 4425 Syntax error 4426_ACEOF 4427if ac_fn_c_try_cpp "$LINENO"; then : 4428 4429else 4430 # Broken: fails on valid input. 4431continue 4432fi 4433rm -f conftest.err conftest.$ac_ext 4434 4435 # OK, works on sane cases. Now check whether nonexistent headers 4436 # can be detected and how. 4437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4438/* end confdefs.h. */ 4439#include <ac_nonexistent.h> 4440_ACEOF 4441if ac_fn_c_try_cpp "$LINENO"; then : 4442 # Broken: success on invalid input. 4443continue 4444else 4445 # Passes both tests. 4446ac_preproc_ok=: 4447break 4448fi 4449rm -f conftest.err conftest.$ac_ext 4450 4451done 4452# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4453rm -f conftest.err conftest.$ac_ext 4454if $ac_preproc_ok; then : 4455 break 4456fi 4457 4458 done 4459 ac_cv_prog_CPP=$CPP 4460 4461fi 4462 CPP=$ac_cv_prog_CPP 4463else 4464 ac_cv_prog_CPP=$CPP 4465fi 4466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4467$as_echo "$CPP" >&6; } 4468ac_preproc_ok=false 4469for ac_c_preproc_warn_flag in '' yes 4470do 4471 # Use a header file that comes with gcc, so configuring glibc 4472 # with a fresh cross-compiler works. 4473 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4474 # <limits.h> exists even on freestanding compilers. 4475 # On the NeXT, cc -E runs the code through the compiler's parser, 4476 # not just through cpp. "Syntax error" is here to catch this case. 4477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4478/* end confdefs.h. */ 4479#ifdef __STDC__ 4480# include <limits.h> 4481#else 4482# include <assert.h> 4483#endif 4484 Syntax error 4485_ACEOF 4486if ac_fn_c_try_cpp "$LINENO"; then : 4487 4488else 4489 # Broken: fails on valid input. 4490continue 4491fi 4492rm -f conftest.err conftest.$ac_ext 4493 4494 # OK, works on sane cases. Now check whether nonexistent headers 4495 # can be detected and how. 4496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4497/* end confdefs.h. */ 4498#include <ac_nonexistent.h> 4499_ACEOF 4500if ac_fn_c_try_cpp "$LINENO"; then : 4501 # Broken: success on invalid input. 4502continue 4503else 4504 # Passes both tests. 4505ac_preproc_ok=: 4506break 4507fi 4508rm -f conftest.err conftest.$ac_ext 4509 4510done 4511# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4512rm -f conftest.err conftest.$ac_ext 4513if $ac_preproc_ok; then : 4514 4515else 4516 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4517$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4518as_fn_error "C preprocessor \"$CPP\" fails sanity check 4519See \`config.log' for more details." "$LINENO" 5; } 4520fi 4521 4522ac_ext=c 4523ac_cpp='$CPP $CPPFLAGS' 4524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4526ac_compiler_gnu=$ac_cv_c_compiler_gnu 4527 4528 4529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4530$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4531if test "${ac_cv_path_GREP+set}" = set; then : 4532 $as_echo_n "(cached) " >&6 4533else 4534 if test -z "$GREP"; then 4535 ac_path_GREP_found=false 4536 # Loop through the user's path and test for each of PROGNAME-LIST 4537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4538for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4539do 4540 IFS=$as_save_IFS 4541 test -z "$as_dir" && as_dir=. 4542 for ac_prog in grep ggrep; do 4543 for ac_exec_ext in '' $ac_executable_extensions; do 4544 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4545 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4546# Check for GNU ac_path_GREP and select it if it is found. 4547 # Check for GNU $ac_path_GREP 4548case `"$ac_path_GREP" --version 2>&1` in 4549*GNU*) 4550 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4551*) 4552 ac_count=0 4553 $as_echo_n 0123456789 >"conftest.in" 4554 while : 4555 do 4556 cat "conftest.in" "conftest.in" >"conftest.tmp" 4557 mv "conftest.tmp" "conftest.in" 4558 cp "conftest.in" "conftest.nl" 4559 $as_echo 'GREP' >> "conftest.nl" 4560 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4561 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4562 as_fn_arith $ac_count + 1 && ac_count=$as_val 4563 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4564 # Best one so far, save it but keep looking for a better one 4565 ac_cv_path_GREP="$ac_path_GREP" 4566 ac_path_GREP_max=$ac_count 4567 fi 4568 # 10*(2^10) chars as input seems more than enough 4569 test $ac_count -gt 10 && break 4570 done 4571 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4572esac 4573 4574 $ac_path_GREP_found && break 3 4575 done 4576 done 4577 done 4578IFS=$as_save_IFS 4579 if test -z "$ac_cv_path_GREP"; then 4580 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4581 fi 4582else 4583 ac_cv_path_GREP=$GREP 4584fi 4585 4586fi 4587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4588$as_echo "$ac_cv_path_GREP" >&6; } 4589 GREP="$ac_cv_path_GREP" 4590 4591 4592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4593$as_echo_n "checking for egrep... " >&6; } 4594if test "${ac_cv_path_EGREP+set}" = set; then : 4595 $as_echo_n "(cached) " >&6 4596else 4597 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4598 then ac_cv_path_EGREP="$GREP -E" 4599 else 4600 if test -z "$EGREP"; then 4601 ac_path_EGREP_found=false 4602 # Loop through the user's path and test for each of PROGNAME-LIST 4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4604for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4605do 4606 IFS=$as_save_IFS 4607 test -z "$as_dir" && as_dir=. 4608 for ac_prog in egrep; do 4609 for ac_exec_ext in '' $ac_executable_extensions; do 4610 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4611 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4612# Check for GNU ac_path_EGREP and select it if it is found. 4613 # Check for GNU $ac_path_EGREP 4614case `"$ac_path_EGREP" --version 2>&1` in 4615*GNU*) 4616 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4617*) 4618 ac_count=0 4619 $as_echo_n 0123456789 >"conftest.in" 4620 while : 4621 do 4622 cat "conftest.in" "conftest.in" >"conftest.tmp" 4623 mv "conftest.tmp" "conftest.in" 4624 cp "conftest.in" "conftest.nl" 4625 $as_echo 'EGREP' >> "conftest.nl" 4626 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4627 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4628 as_fn_arith $ac_count + 1 && ac_count=$as_val 4629 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4630 # Best one so far, save it but keep looking for a better one 4631 ac_cv_path_EGREP="$ac_path_EGREP" 4632 ac_path_EGREP_max=$ac_count 4633 fi 4634 # 10*(2^10) chars as input seems more than enough 4635 test $ac_count -gt 10 && break 4636 done 4637 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4638esac 4639 4640 $ac_path_EGREP_found && break 3 4641 done 4642 done 4643 done 4644IFS=$as_save_IFS 4645 if test -z "$ac_cv_path_EGREP"; then 4646 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4647 fi 4648else 4649 ac_cv_path_EGREP=$EGREP 4650fi 4651 4652 fi 4653fi 4654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4655$as_echo "$ac_cv_path_EGREP" >&6; } 4656 EGREP="$ac_cv_path_EGREP" 4657 4658 4659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4660$as_echo_n "checking for ANSI C header files... " >&6; } 4661if test "${ac_cv_header_stdc+set}" = set; then : 4662 $as_echo_n "(cached) " >&6 4663else 4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4665/* end confdefs.h. */ 4666#include <stdlib.h> 4667#include <stdarg.h> 4668#include <string.h> 4669#include <float.h> 4670 4671int 4672main () 4673{ 4674 4675 ; 4676 return 0; 4677} 4678_ACEOF 4679if ac_fn_c_try_compile "$LINENO"; then : 4680 ac_cv_header_stdc=yes 4681else 4682 ac_cv_header_stdc=no 4683fi 4684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4685 4686if test $ac_cv_header_stdc = yes; then 4687 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4689/* end confdefs.h. */ 4690#include <string.h> 4691 4692_ACEOF 4693if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4694 $EGREP "memchr" >/dev/null 2>&1; then : 4695 4696else 4697 ac_cv_header_stdc=no 4698fi 4699rm -f conftest* 4700 4701fi 4702 4703if test $ac_cv_header_stdc = yes; then 4704 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4706/* end confdefs.h. */ 4707#include <stdlib.h> 4708 4709_ACEOF 4710if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4711 $EGREP "free" >/dev/null 2>&1; then : 4712 4713else 4714 ac_cv_header_stdc=no 4715fi 4716rm -f conftest* 4717 4718fi 4719 4720if test $ac_cv_header_stdc = yes; then 4721 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4722 if test "$cross_compiling" = yes; then : 4723 : 4724else 4725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4726/* end confdefs.h. */ 4727#include <ctype.h> 4728#include <stdlib.h> 4729#if ((' ' & 0x0FF) == 0x020) 4730# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4731# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4732#else 4733# define ISLOWER(c) \ 4734 (('a' <= (c) && (c) <= 'i') \ 4735 || ('j' <= (c) && (c) <= 'r') \ 4736 || ('s' <= (c) && (c) <= 'z')) 4737# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4738#endif 4739 4740#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4741int 4742main () 4743{ 4744 int i; 4745 for (i = 0; i < 256; i++) 4746 if (XOR (islower (i), ISLOWER (i)) 4747 || toupper (i) != TOUPPER (i)) 4748 return 2; 4749 return 0; 4750} 4751_ACEOF 4752if ac_fn_c_try_run "$LINENO"; then : 4753 4754else 4755 ac_cv_header_stdc=no 4756fi 4757rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4758 conftest.$ac_objext conftest.beam conftest.$ac_ext 4759fi 4760 4761fi 4762fi 4763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4764$as_echo "$ac_cv_header_stdc" >&6; } 4765if test $ac_cv_header_stdc = yes; then 4766 4767$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4768 4769fi 4770 4771# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4772for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4773 inttypes.h stdint.h unistd.h 4774do : 4775 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4776ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4777" 4778eval as_val=\$$as_ac_Header 4779 if test "x$as_val" = x""yes; then : 4780 cat >>confdefs.h <<_ACEOF 4781#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4782_ACEOF 4783 4784fi 4785 4786done 4787 4788 4789 4790 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4791if test "x$ac_cv_header_minix_config_h" = x""yes; then : 4792 MINIX=yes 4793else 4794 MINIX= 4795fi 4796 4797 4798 if test "$MINIX" = yes; then 4799 4800$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4801 4802 4803$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4804 4805 4806$as_echo "#define _MINIX 1" >>confdefs.h 4807 4808 fi 4809 4810 4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4812$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4813if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : 4814 $as_echo_n "(cached) " >&6 4815else 4816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4817/* end confdefs.h. */ 4818 4819# define __EXTENSIONS__ 1 4820 $ac_includes_default 4821int 4822main () 4823{ 4824 4825 ; 4826 return 0; 4827} 4828_ACEOF 4829if ac_fn_c_try_compile "$LINENO"; then : 4830 ac_cv_safe_to_define___extensions__=yes 4831else 4832 ac_cv_safe_to_define___extensions__=no 4833fi 4834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4835fi 4836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4837$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4838 test $ac_cv_safe_to_define___extensions__ = yes && 4839 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4840 4841 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4842 4843 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4844 4845 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4846 4847 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4848 4849 4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4851$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4852if test "${ac_cv_prog_cc_c99+set}" = set; then : 4853 $as_echo_n "(cached) " >&6 4854else 4855 ac_cv_prog_cc_c99=no 4856ac_save_CC=$CC 4857cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4858/* end confdefs.h. */ 4859#include <stdarg.h> 4860#include <stdbool.h> 4861#include <stdlib.h> 4862#include <wchar.h> 4863#include <stdio.h> 4864 4865// Check varargs macros. These examples are taken from C99 6.10.3.5. 4866#define debug(...) fprintf (stderr, __VA_ARGS__) 4867#define showlist(...) puts (#__VA_ARGS__) 4868#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4869static void 4870test_varargs_macros (void) 4871{ 4872 int x = 1234; 4873 int y = 5678; 4874 debug ("Flag"); 4875 debug ("X = %d\n", x); 4876 showlist (The first, second, and third items.); 4877 report (x>y, "x is %d but y is %d", x, y); 4878} 4879 4880// Check long long types. 4881#define BIG64 18446744073709551615ull 4882#define BIG32 4294967295ul 4883#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4884#if !BIG_OK 4885 your preprocessor is broken; 4886#endif 4887#if BIG_OK 4888#else 4889 your preprocessor is broken; 4890#endif 4891static long long int bignum = -9223372036854775807LL; 4892static unsigned long long int ubignum = BIG64; 4893 4894struct incomplete_array 4895{ 4896 int datasize; 4897 double data[]; 4898}; 4899 4900struct named_init { 4901 int number; 4902 const wchar_t *name; 4903 double average; 4904}; 4905 4906typedef const char *ccp; 4907 4908static inline int 4909test_restrict (ccp restrict text) 4910{ 4911 // See if C++-style comments work. 4912 // Iterate through items via the restricted pointer. 4913 // Also check for declarations in for loops. 4914 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4915 continue; 4916 return 0; 4917} 4918 4919// Check varargs and va_copy. 4920static void 4921test_varargs (const char *format, ...) 4922{ 4923 va_list args; 4924 va_start (args, format); 4925 va_list args_copy; 4926 va_copy (args_copy, args); 4927 4928 const char *str; 4929 int number; 4930 float fnumber; 4931 4932 while (*format) 4933 { 4934 switch (*format++) 4935 { 4936 case 's': // string 4937 str = va_arg (args_copy, const char *); 4938 break; 4939 case 'd': // int 4940 number = va_arg (args_copy, int); 4941 break; 4942 case 'f': // float 4943 fnumber = va_arg (args_copy, double); 4944 break; 4945 default: 4946 break; 4947 } 4948 } 4949 va_end (args_copy); 4950 va_end (args); 4951} 4952 4953int 4954main () 4955{ 4956 4957 // Check bool. 4958 _Bool success = false; 4959 4960 // Check restrict. 4961 if (test_restrict ("String literal") == 0) 4962 success = true; 4963 char *restrict newvar = "Another string"; 4964 4965 // Check varargs. 4966 test_varargs ("s, d' f .", "string", 65, 34.234); 4967 test_varargs_macros (); 4968 4969 // Check flexible array members. 4970 struct incomplete_array *ia = 4971 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4972 ia->datasize = 10; 4973 for (int i = 0; i < ia->datasize; ++i) 4974 ia->data[i] = i * 1.234; 4975 4976 // Check named initializers. 4977 struct named_init ni = { 4978 .number = 34, 4979 .name = L"Test wide string", 4980 .average = 543.34343, 4981 }; 4982 4983 ni.number = 58; 4984 4985 int dynamic_array[ni.number]; 4986 dynamic_array[ni.number - 1] = 543; 4987 4988 // work around unused variable warnings 4989 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4990 || dynamic_array[ni.number - 1] != 543); 4991 4992 ; 4993 return 0; 4994} 4995_ACEOF 4996for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 4997do 4998 CC="$ac_save_CC $ac_arg" 4999 if ac_fn_c_try_compile "$LINENO"; then : 5000 ac_cv_prog_cc_c99=$ac_arg 5001fi 5002rm -f core conftest.err conftest.$ac_objext 5003 test "x$ac_cv_prog_cc_c99" != "xno" && break 5004done 5005rm -f conftest.$ac_ext 5006CC=$ac_save_CC 5007 5008fi 5009# AC_CACHE_VAL 5010case "x$ac_cv_prog_cc_c99" in 5011 x) 5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5013$as_echo "none needed" >&6; } ;; 5014 xno) 5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5016$as_echo "unsupported" >&6; } ;; 5017 *) 5018 CC="$CC $ac_cv_prog_cc_c99" 5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5020$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 5021esac 5022if test "x$ac_cv_prog_cc_c99" != xno; then : 5023 5024fi 5025 5026 5027 5028 5029if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 5030 if test -n "$ac_tool_prefix"; then 5031 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 5032set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 5033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5034$as_echo_n "checking for $ac_word... " >&6; } 5035if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 5036 $as_echo_n "(cached) " >&6 5037else 5038 case $PKG_CONFIG in 5039 [\\/]* | ?:[\\/]*) 5040 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 5041 ;; 5042 *) 5043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5044for as_dir in $PATH 5045do 5046 IFS=$as_save_IFS 5047 test -z "$as_dir" && as_dir=. 5048 for ac_exec_ext in '' $ac_executable_extensions; do 5049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5050 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5052 break 2 5053 fi 5054done 5055 done 5056IFS=$as_save_IFS 5057 5058 ;; 5059esac 5060fi 5061PKG_CONFIG=$ac_cv_path_PKG_CONFIG 5062if test -n "$PKG_CONFIG"; then 5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 5064$as_echo "$PKG_CONFIG" >&6; } 5065else 5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5067$as_echo "no" >&6; } 5068fi 5069 5070 5071fi 5072if test -z "$ac_cv_path_PKG_CONFIG"; then 5073 ac_pt_PKG_CONFIG=$PKG_CONFIG 5074 # Extract the first word of "pkg-config", so it can be a program name with args. 5075set dummy pkg-config; ac_word=$2 5076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5077$as_echo_n "checking for $ac_word... " >&6; } 5078if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : 5079 $as_echo_n "(cached) " >&6 5080else 5081 case $ac_pt_PKG_CONFIG in 5082 [\\/]* | ?:[\\/]*) 5083 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 5084 ;; 5085 *) 5086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5087for as_dir in $PATH 5088do 5089 IFS=$as_save_IFS 5090 test -z "$as_dir" && as_dir=. 5091 for ac_exec_ext in '' $ac_executable_extensions; do 5092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5093 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5095 break 2 5096 fi 5097done 5098 done 5099IFS=$as_save_IFS 5100 5101 ;; 5102esac 5103fi 5104ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 5105if test -n "$ac_pt_PKG_CONFIG"; then 5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 5107$as_echo "$ac_pt_PKG_CONFIG" >&6; } 5108else 5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5110$as_echo "no" >&6; } 5111fi 5112 5113 if test "x$ac_pt_PKG_CONFIG" = x; then 5114 PKG_CONFIG="" 5115 else 5116 case $cross_compiling:$ac_tool_warned in 5117yes:) 5118{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5119$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5120ac_tool_warned=yes ;; 5121esac 5122 PKG_CONFIG=$ac_pt_PKG_CONFIG 5123 fi 5124else 5125 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 5126fi 5127 5128fi 5129if test -n "$PKG_CONFIG"; then 5130 _pkg_min_version=0.9.0 5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 5132$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 5133 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5135$as_echo "yes" >&6; } 5136 else 5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5138$as_echo "no" >&6; } 5139 PKG_CONFIG="" 5140 fi 5141 5142fi 5143# Make sure we can run config.sub. 5144$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5145 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 5146 5147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5148$as_echo_n "checking build system type... " >&6; } 5149if test "${ac_cv_build+set}" = set; then : 5150 $as_echo_n "(cached) " >&6 5151else 5152 ac_build_alias=$build_alias 5153test "x$ac_build_alias" = x && 5154 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5155test "x$ac_build_alias" = x && 5156 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 5157ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5158 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5159 5160fi 5161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5162$as_echo "$ac_cv_build" >&6; } 5163case $ac_cv_build in 5164*-*-*) ;; 5165*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 5166esac 5167build=$ac_cv_build 5168ac_save_IFS=$IFS; IFS='-' 5169set x $ac_cv_build 5170shift 5171build_cpu=$1 5172build_vendor=$2 5173shift; shift 5174# Remember, the first character of IFS is used to create $*, 5175# except with old shells: 5176build_os=$* 5177IFS=$ac_save_IFS 5178case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5179 5180 5181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5182$as_echo_n "checking host system type... " >&6; } 5183if test "${ac_cv_host+set}" = set; then : 5184 $as_echo_n "(cached) " >&6 5185else 5186 if test "x$host_alias" = x; then 5187 ac_cv_host=$ac_cv_build 5188else 5189 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5190 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5191fi 5192 5193fi 5194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5195$as_echo "$ac_cv_host" >&6; } 5196case $ac_cv_host in 5197*-*-*) ;; 5198*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 5199esac 5200host=$ac_cv_host 5201ac_save_IFS=$IFS; IFS='-' 5202set x $ac_cv_host 5203shift 5204host_cpu=$1 5205host_vendor=$2 5206shift; shift 5207# Remember, the first character of IFS is used to create $*, 5208# except with old shells: 5209host_os=$* 5210IFS=$ac_save_IFS 5211case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5212 5213 5214 5215 5216 5217if test "x$GCC" = xyes ; then 5218 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 5219-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 5220-Wbad-function-cast" 5221 case `$CC -dumpversion` in 5222 3.4.* | 4.*) 5223 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 5224 ;; 5225 esac 5226else 5227 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 5228if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then : 5229 SUNCC="yes" 5230else 5231 SUNCC="no" 5232fi 5233 5234 if test "x$SUNCC" = "xyes"; then 5235 CWARNFLAGS="-v" 5236 fi 5237fi 5238 5239# Check whether --enable-silent-rules was given. 5240if test "${enable_silent_rules+set}" = set; then : 5241 enableval=$enable_silent_rules; 5242fi 5243 5244case $enable_silent_rules in 5245yes) AM_DEFAULT_VERBOSITY=0;; 5246no) AM_DEFAULT_VERBOSITY=1;; 5247*) AM_DEFAULT_VERBOSITY=0;; 5248esac 5249AM_BACKSLASH='\' 5250 5251 5252 5253 5254 5255 5256 5257# Check whether --enable-strict-compilation was given. 5258if test "${enable_strict_compilation+set}" = set; then : 5259 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 5260else 5261 STRICT_COMPILE=no 5262fi 5263 5264if test "x$STRICT_COMPILE" = "xyes"; then 5265 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 5266if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then : 5267 SUNCC="yes" 5268else 5269 SUNCC="no" 5270fi 5271 5272 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 5273if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then : 5274 INTELCC="yes" 5275else 5276 INTELCC="no" 5277fi 5278 5279 if test "x$GCC" = xyes ; then 5280 STRICT_CFLAGS="-pedantic -Werror" 5281 elif test "x$SUNCC" = "xyes"; then 5282 STRICT_CFLAGS="-errwarn" 5283 elif test "x$INTELCC" = "xyes"; then 5284 STRICT_CFLAGS="-Werror" 5285 fi 5286fi 5287CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 5288 5289 5290 5291 5292# Check whether --with-release-version was given. 5293if test "${with_release_version+set}" = set; then : 5294 withval=$with_release_version; RELEASE_VERSION="$withval" 5295else 5296 RELEASE_VERSION="" 5297fi 5298 5299 if test "x$RELEASE_VERSION" != "x"; then 5300 PACKAGE="$PACKAGE-$RELEASE_VERSION" 5301 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 5302 { $as_echo "$as_me:${as_lineno-$LINENO}: Building with package name set to $PACKAGE" >&5 5303$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;} 5304 fi 5305 5306cat >>confdefs.h <<_ACEOF 5307#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 5308_ACEOF 5309 5310 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 5311 if test "x$PVM" = "x"; then 5312 PVM="0" 5313 fi 5314 5315cat >>confdefs.h <<_ACEOF 5316#define PACKAGE_VERSION_MINOR $PVM 5317_ACEOF 5318 5319 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 5320 if test "x$PVP" = "x"; then 5321 PVP="0" 5322 fi 5323 5324cat >>confdefs.h <<_ACEOF 5325#define PACKAGE_VERSION_PATCHLEVEL $PVP 5326_ACEOF 5327 5328 5329 5330CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 5331mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 5332|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 5333echo 'git directory not found: installing possibly empty changelog.' >&2)" 5334 5335 5336 5337 5338macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 5339INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 5340mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 5341|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 5342echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 5343 5344 5345 5346 5347 5348if test x$APP_MAN_SUFFIX = x ; then 5349 APP_MAN_SUFFIX=1 5350fi 5351if test x$APP_MAN_DIR = x ; then 5352 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 5353fi 5354 5355if test x$LIB_MAN_SUFFIX = x ; then 5356 LIB_MAN_SUFFIX=3 5357fi 5358if test x$LIB_MAN_DIR = x ; then 5359 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 5360fi 5361 5362if test x$FILE_MAN_SUFFIX = x ; then 5363 case $host_os in 5364 solaris*) FILE_MAN_SUFFIX=4 ;; 5365 *) FILE_MAN_SUFFIX=5 ;; 5366 esac 5367fi 5368if test x$FILE_MAN_DIR = x ; then 5369 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 5370fi 5371 5372if test x$MISC_MAN_SUFFIX = x ; then 5373 case $host_os in 5374 solaris*) MISC_MAN_SUFFIX=5 ;; 5375 *) MISC_MAN_SUFFIX=7 ;; 5376 esac 5377fi 5378if test x$MISC_MAN_DIR = x ; then 5379 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 5380fi 5381 5382if test x$DRIVER_MAN_SUFFIX = x ; then 5383 case $host_os in 5384 solaris*) DRIVER_MAN_SUFFIX=7 ;; 5385 *) DRIVER_MAN_SUFFIX=4 ;; 5386 esac 5387fi 5388if test x$DRIVER_MAN_DIR = x ; then 5389 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 5390fi 5391 5392if test x$ADMIN_MAN_SUFFIX = x ; then 5393 case $host_os in 5394 solaris*) ADMIN_MAN_SUFFIX=1m ;; 5395 *) ADMIN_MAN_SUFFIX=8 ;; 5396 esac 5397fi 5398if test x$ADMIN_MAN_DIR = x ; then 5399 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 5400fi 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418# Checks for programs. 5419# Check whether --enable-shared was given. 5420if test "${enable_shared+set}" = set; then : 5421 enableval=$enable_shared; p=${PACKAGE-default} 5422 case $enableval in 5423 yes) enable_shared=yes ;; 5424 no) enable_shared=no ;; 5425 *) 5426 enable_shared=no 5427 # Look at the argument we got. We use all the common list separators. 5428 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5429 for pkg in $enableval; do 5430 IFS="$lt_save_ifs" 5431 if test "X$pkg" = "X$p"; then 5432 enable_shared=yes 5433 fi 5434 done 5435 IFS="$lt_save_ifs" 5436 ;; 5437 esac 5438else 5439 enable_shared=yes 5440fi 5441 5442 5443# Check whether --enable-static was given. 5444if test "${enable_static+set}" = set; then : 5445 enableval=$enable_static; p=${PACKAGE-default} 5446 case $enableval in 5447 yes) enable_static=yes ;; 5448 no) enable_static=no ;; 5449 *) 5450 enable_static=no 5451 # Look at the argument we got. We use all the common list separators. 5452 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5453 for pkg in $enableval; do 5454 IFS="$lt_save_ifs" 5455 if test "X$pkg" = "X$p"; then 5456 enable_static=yes 5457 fi 5458 done 5459 IFS="$lt_save_ifs" 5460 ;; 5461 esac 5462else 5463 enable_static=yes 5464fi 5465 5466 5467# Check whether --enable-fast-install was given. 5468if test "${enable_fast_install+set}" = set; then : 5469 enableval=$enable_fast_install; p=${PACKAGE-default} 5470 case $enableval in 5471 yes) enable_fast_install=yes ;; 5472 no) enable_fast_install=no ;; 5473 *) 5474 enable_fast_install=no 5475 # Look at the argument we got. We use all the common list separators. 5476 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5477 for pkg in $enableval; do 5478 IFS="$lt_save_ifs" 5479 if test "X$pkg" = "X$p"; then 5480 enable_fast_install=yes 5481 fi 5482 done 5483 IFS="$lt_save_ifs" 5484 ;; 5485 esac 5486else 5487 enable_fast_install=yes 5488fi 5489 5490 5491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5492$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5493if test "${lt_cv_path_SED+set}" = set; then : 5494 $as_echo_n "(cached) " >&6 5495else 5496 # Loop through the user's path and test for sed and gsed. 5497# Then use that list of sed's as ones to test for truncation. 5498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5499for as_dir in $PATH 5500do 5501 IFS=$as_save_IFS 5502 test -z "$as_dir" && as_dir=. 5503 for lt_ac_prog in sed gsed; do 5504 for ac_exec_ext in '' $ac_executable_extensions; do 5505 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then 5506 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 5507 fi 5508 done 5509 done 5510done 5511IFS=$as_save_IFS 5512lt_ac_max=0 5513lt_ac_count=0 5514# Add /usr/xpg4/bin/sed as it is typically found on Solaris 5515# along with /bin/sed that truncates output. 5516for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 5517 test ! -f $lt_ac_sed && continue 5518 cat /dev/null > conftest.in 5519 lt_ac_count=0 5520 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 5521 # Check for GNU sed and select it if it is found. 5522 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 5523 lt_cv_path_SED=$lt_ac_sed 5524 break 5525 fi 5526 while true; do 5527 cat conftest.in conftest.in >conftest.tmp 5528 mv conftest.tmp conftest.in 5529 cp conftest.in conftest.nl 5530 echo >>conftest.nl 5531 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 5532 cmp -s conftest.out conftest.nl || break 5533 # 10000 chars as input seems more than enough 5534 test $lt_ac_count -gt 10 && break 5535 lt_ac_count=`expr $lt_ac_count + 1` 5536 if test $lt_ac_count -gt $lt_ac_max; then 5537 lt_ac_max=$lt_ac_count 5538 lt_cv_path_SED=$lt_ac_sed 5539 fi 5540 done 5541done 5542 5543fi 5544 5545SED=$lt_cv_path_SED 5546 5547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 5548$as_echo "$SED" >&6; } 5549 5550 5551# Check whether --with-gnu-ld was given. 5552if test "${with_gnu_ld+set}" = set; then : 5553 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5554else 5555 with_gnu_ld=no 5556fi 5557 5558ac_prog=ld 5559if test "$GCC" = yes; then 5560 # Check if gcc -print-prog-name=ld gives a path. 5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5562$as_echo_n "checking for ld used by $CC... " >&6; } 5563 case $host in 5564 *-*-mingw*) 5565 # gcc leaves a trailing carriage return which upsets mingw 5566 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5567 *) 5568 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5569 esac 5570 case $ac_prog in 5571 # Accept absolute paths. 5572 [\\/]* | ?:[\\/]*) 5573 re_direlt='/[^/][^/]*/\.\./' 5574 # Canonicalize the pathname of ld 5575 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 5576 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 5577 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 5578 done 5579 test -z "$LD" && LD="$ac_prog" 5580 ;; 5581 "") 5582 # If it fails, then pretend we aren't using GCC. 5583 ac_prog=ld 5584 ;; 5585 *) 5586 # If it is relative, then search for the first ld in PATH. 5587 with_gnu_ld=unknown 5588 ;; 5589 esac 5590elif test "$with_gnu_ld" = yes; then 5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5592$as_echo_n "checking for GNU ld... " >&6; } 5593else 5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5595$as_echo_n "checking for non-GNU ld... " >&6; } 5596fi 5597if test "${lt_cv_path_LD+set}" = set; then : 5598 $as_echo_n "(cached) " >&6 5599else 5600 if test -z "$LD"; then 5601 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5602 for ac_dir in $PATH; do 5603 IFS="$lt_save_ifs" 5604 test -z "$ac_dir" && ac_dir=. 5605 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5606 lt_cv_path_LD="$ac_dir/$ac_prog" 5607 # Check to see if the program is GNU ld. I'd rather use --version, 5608 # but apparently some variants of GNU ld only accept -v. 5609 # Break only if it was the GNU/non-GNU ld that we prefer. 5610 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5611 *GNU* | *'with BFD'*) 5612 test "$with_gnu_ld" != no && break 5613 ;; 5614 *) 5615 test "$with_gnu_ld" != yes && break 5616 ;; 5617 esac 5618 fi 5619 done 5620 IFS="$lt_save_ifs" 5621else 5622 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5623fi 5624fi 5625 5626LD="$lt_cv_path_LD" 5627if test -n "$LD"; then 5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5629$as_echo "$LD" >&6; } 5630else 5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5632$as_echo "no" >&6; } 5633fi 5634test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 5635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5636$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5637if test "${lt_cv_prog_gnu_ld+set}" = set; then : 5638 $as_echo_n "(cached) " >&6 5639else 5640 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5641case `$LD -v 2>&1 </dev/null` in 5642*GNU* | *'with BFD'*) 5643 lt_cv_prog_gnu_ld=yes 5644 ;; 5645*) 5646 lt_cv_prog_gnu_ld=no 5647 ;; 5648esac 5649fi 5650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5651$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5652with_gnu_ld=$lt_cv_prog_gnu_ld 5653 5654 5655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5656$as_echo_n "checking for $LD option to reload object files... " >&6; } 5657if test "${lt_cv_ld_reload_flag+set}" = set; then : 5658 $as_echo_n "(cached) " >&6 5659else 5660 lt_cv_ld_reload_flag='-r' 5661fi 5662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5663$as_echo "$lt_cv_ld_reload_flag" >&6; } 5664reload_flag=$lt_cv_ld_reload_flag 5665case $reload_flag in 5666"" | " "*) ;; 5667*) reload_flag=" $reload_flag" ;; 5668esac 5669reload_cmds='$LD$reload_flag -o $output$reload_objs' 5670case $host_os in 5671 darwin*) 5672 if test "$GCC" = yes; then 5673 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5674 else 5675 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5676 fi 5677 ;; 5678esac 5679 5680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5 5681$as_echo_n "checking for BSD-compatible nm... " >&6; } 5682if test "${lt_cv_path_NM+set}" = set; then : 5683 $as_echo_n "(cached) " >&6 5684else 5685 if test -n "$NM"; then 5686 # Let the user override the test. 5687 lt_cv_path_NM="$NM" 5688else 5689 lt_nm_to_check="${ac_tool_prefix}nm" 5690 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5691 lt_nm_to_check="$lt_nm_to_check nm" 5692 fi 5693 for lt_tmp_nm in $lt_nm_to_check; do 5694 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5695 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5696 IFS="$lt_save_ifs" 5697 test -z "$ac_dir" && ac_dir=. 5698 tmp_nm="$ac_dir/$lt_tmp_nm" 5699 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5700 # Check to see if the nm accepts a BSD-compat flag. 5701 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5702 # nm: unknown option "B" ignored 5703 # Tru64's nm complains that /dev/null is an invalid object file 5704 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5705 */dev/null* | *'Invalid file or object type'*) 5706 lt_cv_path_NM="$tmp_nm -B" 5707 break 5708 ;; 5709 *) 5710 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5711 */dev/null*) 5712 lt_cv_path_NM="$tmp_nm -p" 5713 break 5714 ;; 5715 *) 5716 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5717 continue # so that we can try to find one that supports BSD flags 5718 ;; 5719 esac 5720 ;; 5721 esac 5722 fi 5723 done 5724 IFS="$lt_save_ifs" 5725 done 5726 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 5727fi 5728fi 5729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5730$as_echo "$lt_cv_path_NM" >&6; } 5731NM="$lt_cv_path_NM" 5732 5733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5734$as_echo_n "checking whether ln -s works... " >&6; } 5735LN_S=$as_ln_s 5736if test "$LN_S" = "ln -s"; then 5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5738$as_echo "yes" >&6; } 5739else 5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5741$as_echo "no, using $LN_S" >&6; } 5742fi 5743 5744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5745$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5746if test "${lt_cv_deplibs_check_method+set}" = set; then : 5747 $as_echo_n "(cached) " >&6 5748else 5749 lt_cv_file_magic_cmd='$MAGIC_CMD' 5750lt_cv_file_magic_test_file= 5751lt_cv_deplibs_check_method='unknown' 5752# Need to set the preceding variable on all platforms that support 5753# interlibrary dependencies. 5754# 'none' -- dependencies not supported. 5755# `unknown' -- same as none, but documents that we really don't know. 5756# 'pass_all' -- all dependencies passed with no checks. 5757# 'test_compile' -- check by making test program. 5758# 'file_magic [[regex]]' -- check by looking for files in library path 5759# which responds to the $file_magic_cmd with a given extended regex. 5760# If you have `file' or equivalent on your system and you're not sure 5761# whether `pass_all' will *always* work, you probably want this one. 5762 5763case $host_os in 5764aix[4-9]*) 5765 lt_cv_deplibs_check_method=pass_all 5766 ;; 5767 5768beos*) 5769 lt_cv_deplibs_check_method=pass_all 5770 ;; 5771 5772bsdi[45]*) 5773 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5774 lt_cv_file_magic_cmd='/usr/bin/file -L' 5775 lt_cv_file_magic_test_file=/shlib/libc.so 5776 ;; 5777 5778cygwin*) 5779 # func_win32_libid is a shell function defined in ltmain.sh 5780 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5781 lt_cv_file_magic_cmd='func_win32_libid' 5782 ;; 5783 5784mingw* | pw32*) 5785 # Base MSYS/MinGW do not provide the 'file' command needed by 5786 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5787 # unless we find 'file', for example because we are cross-compiling. 5788 if ( file / ) >/dev/null 2>&1; then 5789 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5790 lt_cv_file_magic_cmd='func_win32_libid' 5791 else 5792 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5793 lt_cv_file_magic_cmd='$OBJDUMP -f' 5794 fi 5795 ;; 5796 5797darwin* | rhapsody*) 5798 lt_cv_deplibs_check_method=pass_all 5799 ;; 5800 5801freebsd* | dragonfly*) 5802 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 5803 case $host_cpu in 5804 i*86 ) 5805 # Not sure whether the presence of OpenBSD here was a mistake. 5806 # Let's accept both of them until this is cleared up. 5807 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5808 lt_cv_file_magic_cmd=/usr/bin/file 5809 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5810 ;; 5811 esac 5812 else 5813 lt_cv_deplibs_check_method=pass_all 5814 fi 5815 ;; 5816 5817gnu*) 5818 lt_cv_deplibs_check_method=pass_all 5819 ;; 5820 5821hpux10.20* | hpux11*) 5822 lt_cv_file_magic_cmd=/usr/bin/file 5823 case $host_cpu in 5824 ia64*) 5825 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5826 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5827 ;; 5828 hppa*64*) 5829 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]' 5830 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5831 ;; 5832 *) 5833 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 5834 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5835 ;; 5836 esac 5837 ;; 5838 5839interix[3-9]*) 5840 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5841 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5842 ;; 5843 5844irix5* | irix6* | nonstopux*) 5845 case $LD in 5846 *-32|*"-32 ") libmagic=32-bit;; 5847 *-n32|*"-n32 ") libmagic=N32;; 5848 *-64|*"-64 ") libmagic=64-bit;; 5849 *) libmagic=never-match;; 5850 esac 5851 lt_cv_deplibs_check_method=pass_all 5852 ;; 5853 5854# This must be Linux ELF. 5855linux* | k*bsd*-gnu) 5856 lt_cv_deplibs_check_method=pass_all 5857 ;; 5858 5859netbsd*) 5860 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 5861 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5862 else 5863 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5864 fi 5865 ;; 5866 5867newos6*) 5868 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5869 lt_cv_file_magic_cmd=/usr/bin/file 5870 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5871 ;; 5872 5873nto-qnx*) 5874 lt_cv_deplibs_check_method=unknown 5875 ;; 5876 5877openbsd*) 5878 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5879 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5880 else 5881 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5882 fi 5883 ;; 5884 5885osf3* | osf4* | osf5*) 5886 lt_cv_deplibs_check_method=pass_all 5887 ;; 5888 5889rdos*) 5890 lt_cv_deplibs_check_method=pass_all 5891 ;; 5892 5893solaris*) 5894 lt_cv_deplibs_check_method=pass_all 5895 ;; 5896 5897sysv4 | sysv4.3*) 5898 case $host_vendor in 5899 motorola) 5900 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]' 5901 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5902 ;; 5903 ncr) 5904 lt_cv_deplibs_check_method=pass_all 5905 ;; 5906 sequent) 5907 lt_cv_file_magic_cmd='/bin/file' 5908 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5909 ;; 5910 sni) 5911 lt_cv_file_magic_cmd='/bin/file' 5912 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5913 lt_cv_file_magic_test_file=/lib/libc.so 5914 ;; 5915 siemens) 5916 lt_cv_deplibs_check_method=pass_all 5917 ;; 5918 pc) 5919 lt_cv_deplibs_check_method=pass_all 5920 ;; 5921 esac 5922 ;; 5923 5924sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5925 lt_cv_deplibs_check_method=pass_all 5926 ;; 5927esac 5928 5929fi 5930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5931$as_echo "$lt_cv_deplibs_check_method" >&6; } 5932file_magic_cmd=$lt_cv_file_magic_cmd 5933deplibs_check_method=$lt_cv_deplibs_check_method 5934test -z "$deplibs_check_method" && deplibs_check_method=unknown 5935 5936 5937 5938 5939# If no C compiler was specified, use CC. 5940LTCC=${LTCC-"$CC"} 5941 5942# If no C compiler flags were specified, use CFLAGS. 5943LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5944 5945# Allow CC to be a program name with arguments. 5946compiler=$CC 5947 5948# Check whether --enable-libtool-lock was given. 5949if test "${enable_libtool_lock+set}" = set; then : 5950 enableval=$enable_libtool_lock; 5951fi 5952 5953test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5954 5955# Some flags need to be propagated to the compiler or linker for good 5956# libtool support. 5957case $host in 5958ia64-*-hpux*) 5959 # Find out which ABI we are using. 5960 echo 'int i;' > conftest.$ac_ext 5961 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5962 (eval $ac_compile) 2>&5 5963 ac_status=$? 5964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5965 test $ac_status = 0; }; then 5966 case `/usr/bin/file conftest.$ac_objext` in 5967 *ELF-32*) 5968 HPUX_IA64_MODE="32" 5969 ;; 5970 *ELF-64*) 5971 HPUX_IA64_MODE="64" 5972 ;; 5973 esac 5974 fi 5975 rm -rf conftest* 5976 ;; 5977*-*-irix6*) 5978 # Find out which ABI we are using. 5979 echo '#line 5979 "configure"' > conftest.$ac_ext 5980 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5981 (eval $ac_compile) 2>&5 5982 ac_status=$? 5983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5984 test $ac_status = 0; }; then 5985 if test "$lt_cv_prog_gnu_ld" = yes; then 5986 case `/usr/bin/file conftest.$ac_objext` in 5987 *32-bit*) 5988 LD="${LD-ld} -melf32bsmip" 5989 ;; 5990 *N32*) 5991 LD="${LD-ld} -melf32bmipn32" 5992 ;; 5993 *64-bit*) 5994 LD="${LD-ld} -melf64bmip" 5995 ;; 5996 esac 5997 else 5998 case `/usr/bin/file conftest.$ac_objext` in 5999 *32-bit*) 6000 LD="${LD-ld} -32" 6001 ;; 6002 *N32*) 6003 LD="${LD-ld} -n32" 6004 ;; 6005 *64-bit*) 6006 LD="${LD-ld} -64" 6007 ;; 6008 esac 6009 fi 6010 fi 6011 rm -rf conftest* 6012 ;; 6013 6014x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6015s390*-*linux*|sparc*-*linux*) 6016 # Find out which ABI we are using. 6017 echo 'int i;' > conftest.$ac_ext 6018 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6019 (eval $ac_compile) 2>&5 6020 ac_status=$? 6021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6022 test $ac_status = 0; }; then 6023 case `/usr/bin/file conftest.o` in 6024 *32-bit*) 6025 case $host in 6026 x86_64-*kfreebsd*-gnu) 6027 LD="${LD-ld} -m elf_i386_fbsd" 6028 ;; 6029 x86_64-*linux*) 6030 LD="${LD-ld} -m elf_i386" 6031 ;; 6032 ppc64-*linux*|powerpc64-*linux*) 6033 LD="${LD-ld} -m elf32ppclinux" 6034 ;; 6035 s390x-*linux*) 6036 LD="${LD-ld} -m elf_s390" 6037 ;; 6038 sparc64-*linux*) 6039 LD="${LD-ld} -m elf32_sparc" 6040 ;; 6041 esac 6042 ;; 6043 *64-bit*) 6044 case $host in 6045 x86_64-*kfreebsd*-gnu) 6046 LD="${LD-ld} -m elf_x86_64_fbsd" 6047 ;; 6048 x86_64-*linux*) 6049 LD="${LD-ld} -m elf_x86_64" 6050 ;; 6051 ppc*-*linux*|powerpc*-*linux*) 6052 LD="${LD-ld} -m elf64ppc" 6053 ;; 6054 s390*-*linux*) 6055 LD="${LD-ld} -m elf64_s390" 6056 ;; 6057 sparc*-*linux*) 6058 LD="${LD-ld} -m elf64_sparc" 6059 ;; 6060 esac 6061 ;; 6062 esac 6063 fi 6064 rm -rf conftest* 6065 ;; 6066 6067*-*-sco3.2v5*) 6068 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6069 SAVE_CFLAGS="$CFLAGS" 6070 CFLAGS="$CFLAGS -belf" 6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6072$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6073if test "${lt_cv_cc_needs_belf+set}" = set; then : 6074 $as_echo_n "(cached) " >&6 6075else 6076 ac_ext=c 6077ac_cpp='$CPP $CPPFLAGS' 6078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6080ac_compiler_gnu=$ac_cv_c_compiler_gnu 6081 6082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6083/* end confdefs.h. */ 6084 6085int 6086main () 6087{ 6088 6089 ; 6090 return 0; 6091} 6092_ACEOF 6093if ac_fn_c_try_link "$LINENO"; then : 6094 lt_cv_cc_needs_belf=yes 6095else 6096 lt_cv_cc_needs_belf=no 6097fi 6098rm -f core conftest.err conftest.$ac_objext \ 6099 conftest$ac_exeext conftest.$ac_ext 6100 ac_ext=c 6101ac_cpp='$CPP $CPPFLAGS' 6102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6104ac_compiler_gnu=$ac_cv_c_compiler_gnu 6105 6106fi 6107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6108$as_echo "$lt_cv_cc_needs_belf" >&6; } 6109 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6110 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6111 CFLAGS="$SAVE_CFLAGS" 6112 fi 6113 ;; 6114sparc*-*solaris*) 6115 # Find out which ABI we are using. 6116 echo 'int i;' > conftest.$ac_ext 6117 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6118 (eval $ac_compile) 2>&5 6119 ac_status=$? 6120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6121 test $ac_status = 0; }; then 6122 case `/usr/bin/file conftest.o` in 6123 *64-bit*) 6124 case $lt_cv_prog_gnu_ld in 6125 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6126 *) 6127 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6128 LD="${LD-ld} -64" 6129 fi 6130 ;; 6131 esac 6132 ;; 6133 esac 6134 fi 6135 rm -rf conftest* 6136 ;; 6137 6138 6139esac 6140 6141need_locks="$enable_libtool_lock" 6142 6143 6144for ac_header in dlfcn.h 6145do : 6146 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 6147if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 6148 cat >>confdefs.h <<_ACEOF 6149#define HAVE_DLFCN_H 1 6150_ACEOF 6151 6152fi 6153 6154done 6155 6156ac_ext=cpp 6157ac_cpp='$CXXCPP $CPPFLAGS' 6158ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6159ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6160ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6161if test -z "$CXX"; then 6162 if test -n "$CCC"; then 6163 CXX=$CCC 6164 else 6165 if test -n "$ac_tool_prefix"; then 6166 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 6167 do 6168 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6169set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6171$as_echo_n "checking for $ac_word... " >&6; } 6172if test "${ac_cv_prog_CXX+set}" = set; then : 6173 $as_echo_n "(cached) " >&6 6174else 6175 if test -n "$CXX"; then 6176 ac_cv_prog_CXX="$CXX" # Let the user override the test. 6177else 6178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6179for as_dir in $PATH 6180do 6181 IFS=$as_save_IFS 6182 test -z "$as_dir" && as_dir=. 6183 for ac_exec_ext in '' $ac_executable_extensions; do 6184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6185 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 6186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6187 break 2 6188 fi 6189done 6190 done 6191IFS=$as_save_IFS 6192 6193fi 6194fi 6195CXX=$ac_cv_prog_CXX 6196if test -n "$CXX"; then 6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 6198$as_echo "$CXX" >&6; } 6199else 6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6201$as_echo "no" >&6; } 6202fi 6203 6204 6205 test -n "$CXX" && break 6206 done 6207fi 6208if test -z "$CXX"; then 6209 ac_ct_CXX=$CXX 6210 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 6211do 6212 # Extract the first word of "$ac_prog", so it can be a program name with args. 6213set dummy $ac_prog; ac_word=$2 6214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6215$as_echo_n "checking for $ac_word... " >&6; } 6216if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : 6217 $as_echo_n "(cached) " >&6 6218else 6219 if test -n "$ac_ct_CXX"; then 6220 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 6221else 6222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6223for as_dir in $PATH 6224do 6225 IFS=$as_save_IFS 6226 test -z "$as_dir" && as_dir=. 6227 for ac_exec_ext in '' $ac_executable_extensions; do 6228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6229 ac_cv_prog_ac_ct_CXX="$ac_prog" 6230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6231 break 2 6232 fi 6233done 6234 done 6235IFS=$as_save_IFS 6236 6237fi 6238fi 6239ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 6240if test -n "$ac_ct_CXX"; then 6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 6242$as_echo "$ac_ct_CXX" >&6; } 6243else 6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6245$as_echo "no" >&6; } 6246fi 6247 6248 6249 test -n "$ac_ct_CXX" && break 6250done 6251 6252 if test "x$ac_ct_CXX" = x; then 6253 CXX="g++" 6254 else 6255 case $cross_compiling:$ac_tool_warned in 6256yes:) 6257{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6258$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6259ac_tool_warned=yes ;; 6260esac 6261 CXX=$ac_ct_CXX 6262 fi 6263fi 6264 6265 fi 6266fi 6267# Provide some information about the compiler. 6268$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 6269set X $ac_compile 6270ac_compiler=$2 6271for ac_option in --version -v -V -qversion; do 6272 { { ac_try="$ac_compiler $ac_option >&5" 6273case "(($ac_try" in 6274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6275 *) ac_try_echo=$ac_try;; 6276esac 6277eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6278$as_echo "$ac_try_echo"; } >&5 6279 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 6280 ac_status=$? 6281 if test -s conftest.err; then 6282 sed '10a\ 6283... rest of stderr output deleted ... 6284 10q' conftest.err >conftest.er1 6285 cat conftest.er1 >&5 6286 fi 6287 rm -f conftest.er1 conftest.err 6288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6289 test $ac_status = 0; } 6290done 6291 6292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 6293$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 6294if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : 6295 $as_echo_n "(cached) " >&6 6296else 6297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6298/* end confdefs.h. */ 6299 6300int 6301main () 6302{ 6303#ifndef __GNUC__ 6304 choke me 6305#endif 6306 6307 ; 6308 return 0; 6309} 6310_ACEOF 6311if ac_fn_cxx_try_compile "$LINENO"; then : 6312 ac_compiler_gnu=yes 6313else 6314 ac_compiler_gnu=no 6315fi 6316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6317ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 6318 6319fi 6320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 6321$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 6322if test $ac_compiler_gnu = yes; then 6323 GXX=yes 6324else 6325 GXX= 6326fi 6327ac_test_CXXFLAGS=${CXXFLAGS+set} 6328ac_save_CXXFLAGS=$CXXFLAGS 6329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 6330$as_echo_n "checking whether $CXX accepts -g... " >&6; } 6331if test "${ac_cv_prog_cxx_g+set}" = set; then : 6332 $as_echo_n "(cached) " >&6 6333else 6334 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 6335 ac_cxx_werror_flag=yes 6336 ac_cv_prog_cxx_g=no 6337 CXXFLAGS="-g" 6338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6339/* end confdefs.h. */ 6340 6341int 6342main () 6343{ 6344 6345 ; 6346 return 0; 6347} 6348_ACEOF 6349if ac_fn_cxx_try_compile "$LINENO"; then : 6350 ac_cv_prog_cxx_g=yes 6351else 6352 CXXFLAGS="" 6353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6354/* end confdefs.h. */ 6355 6356int 6357main () 6358{ 6359 6360 ; 6361 return 0; 6362} 6363_ACEOF 6364if ac_fn_cxx_try_compile "$LINENO"; then : 6365 6366else 6367 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6368 CXXFLAGS="-g" 6369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6370/* end confdefs.h. */ 6371 6372int 6373main () 6374{ 6375 6376 ; 6377 return 0; 6378} 6379_ACEOF 6380if ac_fn_cxx_try_compile "$LINENO"; then : 6381 ac_cv_prog_cxx_g=yes 6382fi 6383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6384fi 6385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6386fi 6387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6388 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6389fi 6390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 6391$as_echo "$ac_cv_prog_cxx_g" >&6; } 6392if test "$ac_test_CXXFLAGS" = set; then 6393 CXXFLAGS=$ac_save_CXXFLAGS 6394elif test $ac_cv_prog_cxx_g = yes; then 6395 if test "$GXX" = yes; then 6396 CXXFLAGS="-g -O2" 6397 else 6398 CXXFLAGS="-g" 6399 fi 6400else 6401 if test "$GXX" = yes; then 6402 CXXFLAGS="-O2" 6403 else 6404 CXXFLAGS= 6405 fi 6406fi 6407ac_ext=cpp 6408ac_cpp='$CXXCPP $CPPFLAGS' 6409ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6410ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6411ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6412 6413depcc="$CXX" am_compiler_list= 6414 6415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6416$as_echo_n "checking dependency style of $depcc... " >&6; } 6417if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : 6418 $as_echo_n "(cached) " >&6 6419else 6420 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6421 # We make a subdir and do the tests there. Otherwise we can end up 6422 # making bogus files that we don't know about and never remove. For 6423 # instance it was reported that on HP-UX the gcc test will end up 6424 # making a dummy file named `D' -- because `-MD' means `put the output 6425 # in D'. 6426 mkdir conftest.dir 6427 # Copy depcomp to subdir because otherwise we won't find it if we're 6428 # using a relative directory. 6429 cp "$am_depcomp" conftest.dir 6430 cd conftest.dir 6431 # We will build objects and dependencies in a subdirectory because 6432 # it helps to detect inapplicable dependency modes. For instance 6433 # both Tru64's cc and ICC support -MD to output dependencies as a 6434 # side effect of compilation, but ICC will put the dependencies in 6435 # the current directory while Tru64 will put them in the object 6436 # directory. 6437 mkdir sub 6438 6439 am_cv_CXX_dependencies_compiler_type=none 6440 if test "$am_compiler_list" = ""; then 6441 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6442 fi 6443 am__universal=false 6444 case " $depcc " in #( 6445 *\ -arch\ *\ -arch\ *) am__universal=true ;; 6446 esac 6447 6448 for depmode in $am_compiler_list; do 6449 # Setup a source with many dependencies, because some compilers 6450 # like to wrap large dependency lists on column 80 (with \), and 6451 # we should not choose a depcomp mode which is confused by this. 6452 # 6453 # We need to recreate these files for each test, as the compiler may 6454 # overwrite some of them when testing with obscure command lines. 6455 # This happens at least with the AIX C compiler. 6456 : > sub/conftest.c 6457 for i in 1 2 3 4 5 6; do 6458 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6459 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 6460 # Solaris 8's {/usr,}/bin/sh. 6461 touch sub/conftst$i.h 6462 done 6463 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6464 6465 # We check with `-c' and `-o' for the sake of the "dashmstdout" 6466 # mode. It turns out that the SunPro C++ compiler does not properly 6467 # handle `-M -o', and we need to detect this. Also, some Intel 6468 # versions had trouble with output in subdirs 6469 am__obj=sub/conftest.${OBJEXT-o} 6470 am__minus_obj="-o $am__obj" 6471 case $depmode in 6472 gcc) 6473 # This depmode causes a compiler race in universal mode. 6474 test "$am__universal" = false || continue 6475 ;; 6476 nosideeffect) 6477 # after this tag, mechanisms are not by side-effect, so they'll 6478 # only be used when explicitly requested 6479 if test "x$enable_dependency_tracking" = xyes; then 6480 continue 6481 else 6482 break 6483 fi 6484 ;; 6485 msvisualcpp | msvcmsys) 6486 # This compiler won't grok `-c -o', but also, the minuso test has 6487 # not run yet. These depmodes are late enough in the game, and 6488 # so weak that their functioning should not be impacted. 6489 am__obj=conftest.${OBJEXT-o} 6490 am__minus_obj= 6491 ;; 6492 none) break ;; 6493 esac 6494 if depmode=$depmode \ 6495 source=sub/conftest.c object=$am__obj \ 6496 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6497 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6498 >/dev/null 2>conftest.err && 6499 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6500 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6501 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6502 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6503 # icc doesn't choke on unknown options, it will just issue warnings 6504 # or remarks (even with -Werror). So we grep stderr for any message 6505 # that says an option was ignored or not supported. 6506 # When given -MP, icc 7.0 and 7.1 complain thusly: 6507 # icc: Command line warning: ignoring option '-M'; no argument required 6508 # The diagnosis changed in icc 8.0: 6509 # icc: Command line remark: option '-MP' not supported 6510 if (grep 'ignoring option' conftest.err || 6511 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6512 am_cv_CXX_dependencies_compiler_type=$depmode 6513 break 6514 fi 6515 fi 6516 done 6517 6518 cd .. 6519 rm -rf conftest.dir 6520else 6521 am_cv_CXX_dependencies_compiler_type=none 6522fi 6523 6524fi 6525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 6526$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 6527CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 6528 6529 if 6530 test "x$enable_dependency_tracking" != xno \ 6531 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 6532 am__fastdepCXX_TRUE= 6533 am__fastdepCXX_FALSE='#' 6534else 6535 am__fastdepCXX_TRUE='#' 6536 am__fastdepCXX_FALSE= 6537fi 6538 6539 6540 6541 6542if test -n "$CXX" && ( test "X$CXX" != "Xno" && 6543 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 6544 (test "X$CXX" != "Xg++"))) ; then 6545 ac_ext=cpp 6546ac_cpp='$CXXCPP $CPPFLAGS' 6547ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6548ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6549ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 6551$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 6552if test -z "$CXXCPP"; then 6553 if test "${ac_cv_prog_CXXCPP+set}" = set; then : 6554 $as_echo_n "(cached) " >&6 6555else 6556 # Double quotes because CXXCPP needs to be expanded 6557 for CXXCPP in "$CXX -E" "/lib/cpp" 6558 do 6559 ac_preproc_ok=false 6560for ac_cxx_preproc_warn_flag in '' yes 6561do 6562 # Use a header file that comes with gcc, so configuring glibc 6563 # with a fresh cross-compiler works. 6564 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6565 # <limits.h> exists even on freestanding compilers. 6566 # On the NeXT, cc -E runs the code through the compiler's parser, 6567 # not just through cpp. "Syntax error" is here to catch this case. 6568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6569/* end confdefs.h. */ 6570#ifdef __STDC__ 6571# include <limits.h> 6572#else 6573# include <assert.h> 6574#endif 6575 Syntax error 6576_ACEOF 6577if ac_fn_cxx_try_cpp "$LINENO"; then : 6578 6579else 6580 # Broken: fails on valid input. 6581continue 6582fi 6583rm -f conftest.err conftest.$ac_ext 6584 6585 # OK, works on sane cases. Now check whether nonexistent headers 6586 # can be detected and how. 6587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6588/* end confdefs.h. */ 6589#include <ac_nonexistent.h> 6590_ACEOF 6591if ac_fn_cxx_try_cpp "$LINENO"; then : 6592 # Broken: success on invalid input. 6593continue 6594else 6595 # Passes both tests. 6596ac_preproc_ok=: 6597break 6598fi 6599rm -f conftest.err conftest.$ac_ext 6600 6601done 6602# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6603rm -f conftest.err conftest.$ac_ext 6604if $ac_preproc_ok; then : 6605 break 6606fi 6607 6608 done 6609 ac_cv_prog_CXXCPP=$CXXCPP 6610 6611fi 6612 CXXCPP=$ac_cv_prog_CXXCPP 6613else 6614 ac_cv_prog_CXXCPP=$CXXCPP 6615fi 6616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 6617$as_echo "$CXXCPP" >&6; } 6618ac_preproc_ok=false 6619for ac_cxx_preproc_warn_flag in '' yes 6620do 6621 # Use a header file that comes with gcc, so configuring glibc 6622 # with a fresh cross-compiler works. 6623 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6624 # <limits.h> exists even on freestanding compilers. 6625 # On the NeXT, cc -E runs the code through the compiler's parser, 6626 # not just through cpp. "Syntax error" is here to catch this case. 6627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6628/* end confdefs.h. */ 6629#ifdef __STDC__ 6630# include <limits.h> 6631#else 6632# include <assert.h> 6633#endif 6634 Syntax error 6635_ACEOF 6636if ac_fn_cxx_try_cpp "$LINENO"; then : 6637 6638else 6639 # Broken: fails on valid input. 6640continue 6641fi 6642rm -f conftest.err conftest.$ac_ext 6643 6644 # OK, works on sane cases. Now check whether nonexistent headers 6645 # can be detected and how. 6646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6647/* end confdefs.h. */ 6648#include <ac_nonexistent.h> 6649_ACEOF 6650if ac_fn_cxx_try_cpp "$LINENO"; then : 6651 # Broken: success on invalid input. 6652continue 6653else 6654 # Passes both tests. 6655ac_preproc_ok=: 6656break 6657fi 6658rm -f conftest.err conftest.$ac_ext 6659 6660done 6661# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6662rm -f conftest.err conftest.$ac_ext 6663if $ac_preproc_ok; then : 6664 6665else 6666 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6667$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6668as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check 6669See \`config.log' for more details." "$LINENO" 5; } 6670fi 6671 6672ac_ext=cpp 6673ac_cpp='$CXXCPP $CPPFLAGS' 6674ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6675ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6676ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6677 6678fi 6679 6680 6681ac_ext=f 6682ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6683ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6684ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6685if test -n "$ac_tool_prefix"; then 6686 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn 6687 do 6688 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6689set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6691$as_echo_n "checking for $ac_word... " >&6; } 6692if test "${ac_cv_prog_F77+set}" = set; then : 6693 $as_echo_n "(cached) " >&6 6694else 6695 if test -n "$F77"; then 6696 ac_cv_prog_F77="$F77" # Let the user override the test. 6697else 6698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6699for as_dir in $PATH 6700do 6701 IFS=$as_save_IFS 6702 test -z "$as_dir" && as_dir=. 6703 for ac_exec_ext in '' $ac_executable_extensions; do 6704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6705 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6707 break 2 6708 fi 6709done 6710 done 6711IFS=$as_save_IFS 6712 6713fi 6714fi 6715F77=$ac_cv_prog_F77 6716if test -n "$F77"; then 6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5 6718$as_echo "$F77" >&6; } 6719else 6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6721$as_echo "no" >&6; } 6722fi 6723 6724 6725 test -n "$F77" && break 6726 done 6727fi 6728if test -z "$F77"; then 6729 ac_ct_F77=$F77 6730 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn 6731do 6732 # Extract the first word of "$ac_prog", so it can be a program name with args. 6733set dummy $ac_prog; ac_word=$2 6734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6735$as_echo_n "checking for $ac_word... " >&6; } 6736if test "${ac_cv_prog_ac_ct_F77+set}" = set; then : 6737 $as_echo_n "(cached) " >&6 6738else 6739 if test -n "$ac_ct_F77"; then 6740 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6741else 6742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6743for as_dir in $PATH 6744do 6745 IFS=$as_save_IFS 6746 test -z "$as_dir" && as_dir=. 6747 for ac_exec_ext in '' $ac_executable_extensions; do 6748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6749 ac_cv_prog_ac_ct_F77="$ac_prog" 6750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6751 break 2 6752 fi 6753done 6754 done 6755IFS=$as_save_IFS 6756 6757fi 6758fi 6759ac_ct_F77=$ac_cv_prog_ac_ct_F77 6760if test -n "$ac_ct_F77"; then 6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5 6762$as_echo "$ac_ct_F77" >&6; } 6763else 6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6765$as_echo "no" >&6; } 6766fi 6767 6768 6769 test -n "$ac_ct_F77" && break 6770done 6771 6772 if test "x$ac_ct_F77" = x; then 6773 F77="" 6774 else 6775 case $cross_compiling:$ac_tool_warned in 6776yes:) 6777{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6778$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6779ac_tool_warned=yes ;; 6780esac 6781 F77=$ac_ct_F77 6782 fi 6783fi 6784 6785 6786# Provide some information about the compiler. 6787$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5 6788set X $ac_compile 6789ac_compiler=$2 6790for ac_option in --version -v -V -qversion; do 6791 { { ac_try="$ac_compiler $ac_option >&5" 6792case "(($ac_try" in 6793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6794 *) ac_try_echo=$ac_try;; 6795esac 6796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6797$as_echo "$ac_try_echo"; } >&5 6798 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 6799 ac_status=$? 6800 if test -s conftest.err; then 6801 sed '10a\ 6802... rest of stderr output deleted ... 6803 10q' conftest.err >conftest.er1 6804 cat conftest.er1 >&5 6805 fi 6806 rm -f conftest.er1 conftest.err 6807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6808 test $ac_status = 0; } 6809done 6810rm -f a.out 6811 6812# If we don't use `.F' as extension, the preprocessor is not run on the 6813# input file. (Note that this only needs to work for GNU compilers.) 6814ac_save_ext=$ac_ext 6815ac_ext=F 6816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5 6817$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } 6818if test "${ac_cv_f77_compiler_gnu+set}" = set; then : 6819 $as_echo_n "(cached) " >&6 6820else 6821 cat > conftest.$ac_ext <<_ACEOF 6822 program main 6823#ifndef __GNUC__ 6824 choke me 6825#endif 6826 6827 end 6828_ACEOF 6829if ac_fn_f77_try_compile "$LINENO"; then : 6830 ac_compiler_gnu=yes 6831else 6832 ac_compiler_gnu=no 6833fi 6834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6835ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6836 6837fi 6838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5 6839$as_echo "$ac_cv_f77_compiler_gnu" >&6; } 6840ac_ext=$ac_save_ext 6841ac_test_FFLAGS=${FFLAGS+set} 6842ac_save_FFLAGS=$FFLAGS 6843FFLAGS= 6844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5 6845$as_echo_n "checking whether $F77 accepts -g... " >&6; } 6846if test "${ac_cv_prog_f77_g+set}" = set; then : 6847 $as_echo_n "(cached) " >&6 6848else 6849 FFLAGS=-g 6850cat > conftest.$ac_ext <<_ACEOF 6851 program main 6852 6853 end 6854_ACEOF 6855if ac_fn_f77_try_compile "$LINENO"; then : 6856 ac_cv_prog_f77_g=yes 6857else 6858 ac_cv_prog_f77_g=no 6859fi 6860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6861 6862fi 6863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5 6864$as_echo "$ac_cv_prog_f77_g" >&6; } 6865if test "$ac_test_FFLAGS" = set; then 6866 FFLAGS=$ac_save_FFLAGS 6867elif test $ac_cv_prog_f77_g = yes; then 6868 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6869 FFLAGS="-g -O2" 6870 else 6871 FFLAGS="-g" 6872 fi 6873else 6874 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6875 FFLAGS="-O2" 6876 else 6877 FFLAGS= 6878 fi 6879fi 6880 6881if test $ac_compiler_gnu = yes; then 6882 G77=yes 6883else 6884 G77= 6885fi 6886ac_ext=c 6887ac_cpp='$CPP $CPPFLAGS' 6888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6890ac_compiler_gnu=$ac_cv_c_compiler_gnu 6891 6892 6893 6894# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6895# find the maximum length of command line arguments 6896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6897$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6898if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 6899 $as_echo_n "(cached) " >&6 6900else 6901 i=0 6902 teststring="ABCD" 6903 6904 case $build_os in 6905 msdosdjgpp*) 6906 # On DJGPP, this test can blow up pretty badly due to problems in libc 6907 # (any single argument exceeding 2000 bytes causes a buffer overrun 6908 # during glob expansion). Even if it were fixed, the result of this 6909 # check would be larger than it should be. 6910 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6911 ;; 6912 6913 gnu*) 6914 # Under GNU Hurd, this test is not required because there is 6915 # no limit to the length of command line arguments. 6916 # Libtool will interpret -1 as no limit whatsoever 6917 lt_cv_sys_max_cmd_len=-1; 6918 ;; 6919 6920 cygwin* | mingw*) 6921 # On Win9x/ME, this test blows up -- it succeeds, but takes 6922 # about 5 minutes as the teststring grows exponentially. 6923 # Worse, since 9x/ME are not pre-emptively multitasking, 6924 # you end up with a "frozen" computer, even though with patience 6925 # the test eventually succeeds (with a max line length of 256k). 6926 # Instead, let's just punt: use the minimum linelength reported by 6927 # all of the supported platforms: 8192 (on NT/2K/XP). 6928 lt_cv_sys_max_cmd_len=8192; 6929 ;; 6930 6931 amigaos*) 6932 # On AmigaOS with pdksh, this test takes hours, literally. 6933 # So we just punt and use a minimum line length of 8192. 6934 lt_cv_sys_max_cmd_len=8192; 6935 ;; 6936 6937 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6938 # This has been around since 386BSD, at least. Likely further. 6939 if test -x /sbin/sysctl; then 6940 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6941 elif test -x /usr/sbin/sysctl; then 6942 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6943 else 6944 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6945 fi 6946 # And add a safety zone 6947 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6948 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6949 ;; 6950 6951 interix*) 6952 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6953 lt_cv_sys_max_cmd_len=196608 6954 ;; 6955 6956 osf*) 6957 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6958 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6959 # nice to cause kernel panics so lets avoid the loop below. 6960 # First set a reasonable default. 6961 lt_cv_sys_max_cmd_len=16384 6962 # 6963 if test -x /sbin/sysconfig; then 6964 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6965 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6966 esac 6967 fi 6968 ;; 6969 sco3.2v5*) 6970 lt_cv_sys_max_cmd_len=102400 6971 ;; 6972 sysv5* | sco5v6* | sysv4.2uw2*) 6973 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6974 if test -n "$kargmax"; then 6975 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6976 else 6977 lt_cv_sys_max_cmd_len=32768 6978 fi 6979 ;; 6980 *) 6981 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6982 if test -n "$lt_cv_sys_max_cmd_len"; then 6983 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6984 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6985 else 6986 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6987 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6988 = "XX$teststring") >/dev/null 2>&1 && 6989 new_result=`expr "X$teststring" : ".*" 2>&1` && 6990 lt_cv_sys_max_cmd_len=$new_result && 6991 test $i != 17 # 1/2 MB should be enough 6992 do 6993 i=`expr $i + 1` 6994 teststring=$teststring$teststring 6995 done 6996 teststring= 6997 # Add a significant safety factor because C++ compilers can tack on massive 6998 # amounts of additional arguments before passing them to the linker. 6999 # It appears as though 1/2 is a usable value. 7000 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7001 fi 7002 ;; 7003 esac 7004 7005fi 7006 7007if test -n $lt_cv_sys_max_cmd_len ; then 7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 7009$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 7010else 7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 7012$as_echo "none" >&6; } 7013fi 7014 7015 7016 7017 7018 7019# Check for command to grab the raw symbol name followed by C symbol from nm. 7020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7021$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7022if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 7023 $as_echo_n "(cached) " >&6 7024else 7025 7026# These are sane defaults that work on at least a few old systems. 7027# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7028 7029# Character class describing NM global symbol codes. 7030symcode='[BCDEGRST]' 7031 7032# Regexp to match symbols that can be accessed directly from C. 7033sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7034 7035# Transform an extracted symbol line into a proper C declaration 7036lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 7037 7038# Transform an extracted symbol line into symbol name and symbol address 7039lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 7040 7041# Define system-specific variables. 7042case $host_os in 7043aix*) 7044 symcode='[BCDT]' 7045 ;; 7046cygwin* | mingw* | pw32*) 7047 symcode='[ABCDGISTW]' 7048 ;; 7049hpux*) # Its linker distinguishes data from code symbols 7050 if test "$host_cpu" = ia64; then 7051 symcode='[ABCDEGRST]' 7052 fi 7053 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7054 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 7055 ;; 7056linux* | k*bsd*-gnu) 7057 if test "$host_cpu" = ia64; then 7058 symcode='[ABCDGIRSTW]' 7059 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7060 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 7061 fi 7062 ;; 7063irix* | nonstopux*) 7064 symcode='[BCDEGRST]' 7065 ;; 7066osf*) 7067 symcode='[BCDEGQRST]' 7068 ;; 7069solaris*) 7070 symcode='[BDRT]' 7071 ;; 7072sco3.2v5*) 7073 symcode='[DT]' 7074 ;; 7075sysv4.2uw2*) 7076 symcode='[DT]' 7077 ;; 7078sysv5* | sco5v6* | unixware* | OpenUNIX*) 7079 symcode='[ABDT]' 7080 ;; 7081sysv4) 7082 symcode='[DFNSTU]' 7083 ;; 7084esac 7085 7086# Handle CRLF in mingw tool chain 7087opt_cr= 7088case $build_os in 7089mingw*) 7090 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7091 ;; 7092esac 7093 7094# If we're using GNU nm, then use its standard symbol codes. 7095case `$NM -V 2>&1` in 7096*GNU* | *'with BFD'*) 7097 symcode='[ABCDGIRSTW]' ;; 7098esac 7099 7100# Try without a prefix undercore, then with it. 7101for ac_symprfx in "" "_"; do 7102 7103 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7104 symxfrm="\\1 $ac_symprfx\\2 \\2" 7105 7106 # Write the raw and C identifiers. 7107 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7108 7109 # Check to see that the pipe works correctly. 7110 pipe_works=no 7111 7112 rm -f conftest* 7113 cat > conftest.$ac_ext <<EOF 7114#ifdef __cplusplus 7115extern "C" { 7116#endif 7117char nm_test_var; 7118void nm_test_func(){} 7119#ifdef __cplusplus 7120} 7121#endif 7122int main(){nm_test_var='a';nm_test_func();return(0);} 7123EOF 7124 7125 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7126 (eval $ac_compile) 2>&5 7127 ac_status=$? 7128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7129 test $ac_status = 0; }; then 7130 # Now try to grab the symbols. 7131 nlist=conftest.nm 7132 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 7133 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 7134 ac_status=$? 7135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7136 test $ac_status = 0; } && test -s "$nlist"; then 7137 # Try sorting and uniquifying the output. 7138 if sort "$nlist" | uniq > "$nlist"T; then 7139 mv -f "$nlist"T "$nlist" 7140 else 7141 rm -f "$nlist"T 7142 fi 7143 7144 # Make sure that we snagged all the symbols we need. 7145 if grep ' nm_test_var$' "$nlist" >/dev/null; then 7146 if grep ' nm_test_func$' "$nlist" >/dev/null; then 7147 cat <<EOF > conftest.$ac_ext 7148#ifdef __cplusplus 7149extern "C" { 7150#endif 7151 7152EOF 7153 # Now generate the symbol file. 7154 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 7155 7156 cat <<EOF >> conftest.$ac_ext 7157#if defined (__STDC__) && __STDC__ 7158# define lt_ptr_t void * 7159#else 7160# define lt_ptr_t char * 7161# define const 7162#endif 7163 7164/* The mapping between symbol names and symbols. */ 7165const struct { 7166 const char *name; 7167 lt_ptr_t address; 7168} 7169lt_preloaded_symbols[] = 7170{ 7171EOF 7172 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 7173 cat <<\EOF >> conftest.$ac_ext 7174 {0, (lt_ptr_t) 0} 7175}; 7176 7177#ifdef __cplusplus 7178} 7179#endif 7180EOF 7181 # Now try linking the two files. 7182 mv conftest.$ac_objext conftstm.$ac_objext 7183 lt_save_LIBS="$LIBS" 7184 lt_save_CFLAGS="$CFLAGS" 7185 LIBS="conftstm.$ac_objext" 7186 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7187 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7188 (eval $ac_link) 2>&5 7189 ac_status=$? 7190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7191 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7192 pipe_works=yes 7193 fi 7194 LIBS="$lt_save_LIBS" 7195 CFLAGS="$lt_save_CFLAGS" 7196 else 7197 echo "cannot find nm_test_func in $nlist" >&5 7198 fi 7199 else 7200 echo "cannot find nm_test_var in $nlist" >&5 7201 fi 7202 else 7203 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7204 fi 7205 else 7206 echo "$progname: failed program was:" >&5 7207 cat conftest.$ac_ext >&5 7208 fi 7209 rm -rf conftest* conftst* 7210 7211 # Do not use the global_symbol_pipe unless it works. 7212 if test "$pipe_works" = yes; then 7213 break 7214 else 7215 lt_cv_sys_global_symbol_pipe= 7216 fi 7217done 7218 7219fi 7220 7221if test -z "$lt_cv_sys_global_symbol_pipe"; then 7222 lt_cv_sys_global_symbol_to_cdecl= 7223fi 7224if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7226$as_echo "failed" >&6; } 7227else 7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7229$as_echo "ok" >&6; } 7230fi 7231 7232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7233$as_echo_n "checking for objdir... " >&6; } 7234if test "${lt_cv_objdir+set}" = set; then : 7235 $as_echo_n "(cached) " >&6 7236else 7237 rm -f .libs 2>/dev/null 7238mkdir .libs 2>/dev/null 7239if test -d .libs; then 7240 lt_cv_objdir=.libs 7241else 7242 # MS-DOS does not allow filenames that begin with a dot. 7243 lt_cv_objdir=_libs 7244fi 7245rmdir .libs 2>/dev/null 7246fi 7247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7248$as_echo "$lt_cv_objdir" >&6; } 7249objdir=$lt_cv_objdir 7250 7251 7252 7253 7254 7255case $host_os in 7256aix3*) 7257 # AIX sometimes has problems with the GCC collect2 program. For some 7258 # reason, if we set the COLLECT_NAMES environment variable, the problems 7259 # vanish in a puff of smoke. 7260 if test "X${COLLECT_NAMES+set}" != Xset; then 7261 COLLECT_NAMES= 7262 export COLLECT_NAMES 7263 fi 7264 ;; 7265esac 7266 7267# Sed substitution that helps us do robust quoting. It backslashifies 7268# metacharacters that are still active within double-quoted strings. 7269Xsed='sed -e 1s/^X//' 7270sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 7271 7272# Same as above, but do not quote variable references. 7273double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 7274 7275# Sed substitution to delay expansion of an escaped shell variable in a 7276# double_quote_subst'ed string. 7277delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7278 7279# Sed substitution to avoid accidental globbing in evaled expressions 7280no_glob_subst='s/\*/\\\*/g' 7281 7282# Constants: 7283rm="rm -f" 7284 7285# Global variables: 7286default_ofile=libtool 7287can_build_shared=yes 7288 7289# All known linkers require a `.a' archive for static linking (except MSVC, 7290# which needs '.lib'). 7291libext=a 7292ltmain="$ac_aux_dir/ltmain.sh" 7293ofile="$default_ofile" 7294with_gnu_ld="$lt_cv_prog_gnu_ld" 7295 7296if test -n "$ac_tool_prefix"; then 7297 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7298set dummy ${ac_tool_prefix}ar; ac_word=$2 7299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7300$as_echo_n "checking for $ac_word... " >&6; } 7301if test "${ac_cv_prog_AR+set}" = set; then : 7302 $as_echo_n "(cached) " >&6 7303else 7304 if test -n "$AR"; then 7305 ac_cv_prog_AR="$AR" # Let the user override the test. 7306else 7307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7308for as_dir in $PATH 7309do 7310 IFS=$as_save_IFS 7311 test -z "$as_dir" && as_dir=. 7312 for ac_exec_ext in '' $ac_executable_extensions; do 7313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7314 ac_cv_prog_AR="${ac_tool_prefix}ar" 7315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7316 break 2 7317 fi 7318done 7319 done 7320IFS=$as_save_IFS 7321 7322fi 7323fi 7324AR=$ac_cv_prog_AR 7325if test -n "$AR"; then 7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7327$as_echo "$AR" >&6; } 7328else 7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7330$as_echo "no" >&6; } 7331fi 7332 7333 7334fi 7335if test -z "$ac_cv_prog_AR"; then 7336 ac_ct_AR=$AR 7337 # Extract the first word of "ar", so it can be a program name with args. 7338set dummy ar; ac_word=$2 7339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7340$as_echo_n "checking for $ac_word... " >&6; } 7341if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 7342 $as_echo_n "(cached) " >&6 7343else 7344 if test -n "$ac_ct_AR"; then 7345 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7346else 7347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7348for as_dir in $PATH 7349do 7350 IFS=$as_save_IFS 7351 test -z "$as_dir" && as_dir=. 7352 for ac_exec_ext in '' $ac_executable_extensions; do 7353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7354 ac_cv_prog_ac_ct_AR="ar" 7355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7356 break 2 7357 fi 7358done 7359 done 7360IFS=$as_save_IFS 7361 7362fi 7363fi 7364ac_ct_AR=$ac_cv_prog_ac_ct_AR 7365if test -n "$ac_ct_AR"; then 7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7367$as_echo "$ac_ct_AR" >&6; } 7368else 7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7370$as_echo "no" >&6; } 7371fi 7372 7373 if test "x$ac_ct_AR" = x; then 7374 AR="false" 7375 else 7376 case $cross_compiling:$ac_tool_warned in 7377yes:) 7378{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7379$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7380ac_tool_warned=yes ;; 7381esac 7382 AR=$ac_ct_AR 7383 fi 7384else 7385 AR="$ac_cv_prog_AR" 7386fi 7387 7388if test -n "$ac_tool_prefix"; then 7389 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7390set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7392$as_echo_n "checking for $ac_word... " >&6; } 7393if test "${ac_cv_prog_RANLIB+set}" = set; then : 7394 $as_echo_n "(cached) " >&6 7395else 7396 if test -n "$RANLIB"; then 7397 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7398else 7399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7400for as_dir in $PATH 7401do 7402 IFS=$as_save_IFS 7403 test -z "$as_dir" && as_dir=. 7404 for ac_exec_ext in '' $ac_executable_extensions; do 7405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7406 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7408 break 2 7409 fi 7410done 7411 done 7412IFS=$as_save_IFS 7413 7414fi 7415fi 7416RANLIB=$ac_cv_prog_RANLIB 7417if test -n "$RANLIB"; then 7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7419$as_echo "$RANLIB" >&6; } 7420else 7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7422$as_echo "no" >&6; } 7423fi 7424 7425 7426fi 7427if test -z "$ac_cv_prog_RANLIB"; then 7428 ac_ct_RANLIB=$RANLIB 7429 # Extract the first word of "ranlib", so it can be a program name with args. 7430set dummy ranlib; ac_word=$2 7431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7432$as_echo_n "checking for $ac_word... " >&6; } 7433if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 7434 $as_echo_n "(cached) " >&6 7435else 7436 if test -n "$ac_ct_RANLIB"; then 7437 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7438else 7439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7440for as_dir in $PATH 7441do 7442 IFS=$as_save_IFS 7443 test -z "$as_dir" && as_dir=. 7444 for ac_exec_ext in '' $ac_executable_extensions; do 7445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7446 ac_cv_prog_ac_ct_RANLIB="ranlib" 7447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7448 break 2 7449 fi 7450done 7451 done 7452IFS=$as_save_IFS 7453 7454fi 7455fi 7456ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7457if test -n "$ac_ct_RANLIB"; then 7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7459$as_echo "$ac_ct_RANLIB" >&6; } 7460else 7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7462$as_echo "no" >&6; } 7463fi 7464 7465 if test "x$ac_ct_RANLIB" = x; then 7466 RANLIB=":" 7467 else 7468 case $cross_compiling:$ac_tool_warned in 7469yes:) 7470{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7471$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7472ac_tool_warned=yes ;; 7473esac 7474 RANLIB=$ac_ct_RANLIB 7475 fi 7476else 7477 RANLIB="$ac_cv_prog_RANLIB" 7478fi 7479 7480if test -n "$ac_tool_prefix"; then 7481 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7482set dummy ${ac_tool_prefix}strip; ac_word=$2 7483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7484$as_echo_n "checking for $ac_word... " >&6; } 7485if test "${ac_cv_prog_STRIP+set}" = set; then : 7486 $as_echo_n "(cached) " >&6 7487else 7488 if test -n "$STRIP"; then 7489 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7490else 7491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7492for as_dir in $PATH 7493do 7494 IFS=$as_save_IFS 7495 test -z "$as_dir" && as_dir=. 7496 for ac_exec_ext in '' $ac_executable_extensions; do 7497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7498 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7500 break 2 7501 fi 7502done 7503 done 7504IFS=$as_save_IFS 7505 7506fi 7507fi 7508STRIP=$ac_cv_prog_STRIP 7509if test -n "$STRIP"; then 7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7511$as_echo "$STRIP" >&6; } 7512else 7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7514$as_echo "no" >&6; } 7515fi 7516 7517 7518fi 7519if test -z "$ac_cv_prog_STRIP"; then 7520 ac_ct_STRIP=$STRIP 7521 # Extract the first word of "strip", so it can be a program name with args. 7522set dummy strip; ac_word=$2 7523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7524$as_echo_n "checking for $ac_word... " >&6; } 7525if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 7526 $as_echo_n "(cached) " >&6 7527else 7528 if test -n "$ac_ct_STRIP"; then 7529 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7530else 7531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7532for as_dir in $PATH 7533do 7534 IFS=$as_save_IFS 7535 test -z "$as_dir" && as_dir=. 7536 for ac_exec_ext in '' $ac_executable_extensions; do 7537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7538 ac_cv_prog_ac_ct_STRIP="strip" 7539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7540 break 2 7541 fi 7542done 7543 done 7544IFS=$as_save_IFS 7545 7546fi 7547fi 7548ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7549if test -n "$ac_ct_STRIP"; then 7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7551$as_echo "$ac_ct_STRIP" >&6; } 7552else 7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7554$as_echo "no" >&6; } 7555fi 7556 7557 if test "x$ac_ct_STRIP" = x; then 7558 STRIP=":" 7559 else 7560 case $cross_compiling:$ac_tool_warned in 7561yes:) 7562{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7563$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7564ac_tool_warned=yes ;; 7565esac 7566 STRIP=$ac_ct_STRIP 7567 fi 7568else 7569 STRIP="$ac_cv_prog_STRIP" 7570fi 7571 7572 7573old_CC="$CC" 7574old_CFLAGS="$CFLAGS" 7575 7576# Set sane defaults for various variables 7577test -z "$AR" && AR=ar 7578test -z "$AR_FLAGS" && AR_FLAGS=cru 7579test -z "$AS" && AS=as 7580test -z "$CC" && CC=cc 7581test -z "$LTCC" && LTCC=$CC 7582test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7583test -z "$DLLTOOL" && DLLTOOL=dlltool 7584test -z "$LD" && LD=ld 7585test -z "$LN_S" && LN_S="ln -s" 7586test -z "$MAGIC_CMD" && MAGIC_CMD=file 7587test -z "$NM" && NM=nm 7588test -z "$SED" && SED=sed 7589test -z "$OBJDUMP" && OBJDUMP=objdump 7590test -z "$RANLIB" && RANLIB=: 7591test -z "$STRIP" && STRIP=: 7592test -z "$ac_objext" && ac_objext=o 7593 7594# Determine commands to create old-style static archives. 7595old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7596old_postinstall_cmds='chmod 644 $oldlib' 7597old_postuninstall_cmds= 7598 7599if test -n "$RANLIB"; then 7600 case $host_os in 7601 openbsd*) 7602 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7603 ;; 7604 *) 7605 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7606 ;; 7607 esac 7608 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7609fi 7610 7611for cc_temp in $compiler""; do 7612 case $cc_temp in 7613 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7614 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7615 \-*) ;; 7616 *) break;; 7617 esac 7618done 7619cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7620 7621 7622# Only perform the check for file, if the check method requires it 7623case $deplibs_check_method in 7624file_magic*) 7625 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7627$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7628if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7629 $as_echo_n "(cached) " >&6 7630else 7631 case $MAGIC_CMD in 7632[\\/*] | ?:[\\/]*) 7633 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7634 ;; 7635*) 7636 lt_save_MAGIC_CMD="$MAGIC_CMD" 7637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7638 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7639 for ac_dir in $ac_dummy; do 7640 IFS="$lt_save_ifs" 7641 test -z "$ac_dir" && ac_dir=. 7642 if test -f $ac_dir/${ac_tool_prefix}file; then 7643 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7644 if test -n "$file_magic_test_file"; then 7645 case $deplibs_check_method in 7646 "file_magic "*) 7647 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7648 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7649 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7650 $EGREP "$file_magic_regex" > /dev/null; then 7651 : 7652 else 7653 cat <<EOF 1>&2 7654 7655*** Warning: the command libtool uses to detect shared libraries, 7656*** $file_magic_cmd, produces output that libtool cannot recognize. 7657*** The result is that libtool may fail to recognize shared libraries 7658*** as such. This will affect the creation of libtool libraries that 7659*** depend on shared libraries, but programs linked with such libtool 7660*** libraries will work regardless of this problem. Nevertheless, you 7661*** may want to report the problem to your system manager and/or to 7662*** bug-libtool@gnu.org 7663 7664EOF 7665 fi ;; 7666 esac 7667 fi 7668 break 7669 fi 7670 done 7671 IFS="$lt_save_ifs" 7672 MAGIC_CMD="$lt_save_MAGIC_CMD" 7673 ;; 7674esac 7675fi 7676 7677MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7678if test -n "$MAGIC_CMD"; then 7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7680$as_echo "$MAGIC_CMD" >&6; } 7681else 7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7683$as_echo "no" >&6; } 7684fi 7685 7686if test -z "$lt_cv_path_MAGIC_CMD"; then 7687 if test -n "$ac_tool_prefix"; then 7688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7689$as_echo_n "checking for file... " >&6; } 7690if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7691 $as_echo_n "(cached) " >&6 7692else 7693 case $MAGIC_CMD in 7694[\\/*] | ?:[\\/]*) 7695 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7696 ;; 7697*) 7698 lt_save_MAGIC_CMD="$MAGIC_CMD" 7699 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7700 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7701 for ac_dir in $ac_dummy; do 7702 IFS="$lt_save_ifs" 7703 test -z "$ac_dir" && ac_dir=. 7704 if test -f $ac_dir/file; then 7705 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7706 if test -n "$file_magic_test_file"; then 7707 case $deplibs_check_method in 7708 "file_magic "*) 7709 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7710 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7711 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7712 $EGREP "$file_magic_regex" > /dev/null; then 7713 : 7714 else 7715 cat <<EOF 1>&2 7716 7717*** Warning: the command libtool uses to detect shared libraries, 7718*** $file_magic_cmd, produces output that libtool cannot recognize. 7719*** The result is that libtool may fail to recognize shared libraries 7720*** as such. This will affect the creation of libtool libraries that 7721*** depend on shared libraries, but programs linked with such libtool 7722*** libraries will work regardless of this problem. Nevertheless, you 7723*** may want to report the problem to your system manager and/or to 7724*** bug-libtool@gnu.org 7725 7726EOF 7727 fi ;; 7728 esac 7729 fi 7730 break 7731 fi 7732 done 7733 IFS="$lt_save_ifs" 7734 MAGIC_CMD="$lt_save_MAGIC_CMD" 7735 ;; 7736esac 7737fi 7738 7739MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7740if test -n "$MAGIC_CMD"; then 7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7742$as_echo "$MAGIC_CMD" >&6; } 7743else 7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7745$as_echo "no" >&6; } 7746fi 7747 7748 else 7749 MAGIC_CMD=: 7750 fi 7751fi 7752 7753 fi 7754 ;; 7755esac 7756 7757 7758 case $host_os in 7759 rhapsody* | darwin*) 7760 if test -n "$ac_tool_prefix"; then 7761 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7762set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7764$as_echo_n "checking for $ac_word... " >&6; } 7765if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 7766 $as_echo_n "(cached) " >&6 7767else 7768 if test -n "$DSYMUTIL"; then 7769 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7770else 7771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7772for as_dir in $PATH 7773do 7774 IFS=$as_save_IFS 7775 test -z "$as_dir" && as_dir=. 7776 for ac_exec_ext in '' $ac_executable_extensions; do 7777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7778 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7780 break 2 7781 fi 7782done 7783 done 7784IFS=$as_save_IFS 7785 7786fi 7787fi 7788DSYMUTIL=$ac_cv_prog_DSYMUTIL 7789if test -n "$DSYMUTIL"; then 7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7791$as_echo "$DSYMUTIL" >&6; } 7792else 7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7794$as_echo "no" >&6; } 7795fi 7796 7797 7798fi 7799if test -z "$ac_cv_prog_DSYMUTIL"; then 7800 ac_ct_DSYMUTIL=$DSYMUTIL 7801 # Extract the first word of "dsymutil", so it can be a program name with args. 7802set dummy dsymutil; ac_word=$2 7803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7804$as_echo_n "checking for $ac_word... " >&6; } 7805if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 7806 $as_echo_n "(cached) " >&6 7807else 7808 if test -n "$ac_ct_DSYMUTIL"; then 7809 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7810else 7811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7812for as_dir in $PATH 7813do 7814 IFS=$as_save_IFS 7815 test -z "$as_dir" && as_dir=. 7816 for ac_exec_ext in '' $ac_executable_extensions; do 7817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7818 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7820 break 2 7821 fi 7822done 7823 done 7824IFS=$as_save_IFS 7825 7826fi 7827fi 7828ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7829if test -n "$ac_ct_DSYMUTIL"; then 7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7831$as_echo "$ac_ct_DSYMUTIL" >&6; } 7832else 7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7834$as_echo "no" >&6; } 7835fi 7836 7837 if test "x$ac_ct_DSYMUTIL" = x; then 7838 DSYMUTIL=":" 7839 else 7840 case $cross_compiling:$ac_tool_warned in 7841yes:) 7842{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7843$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7844ac_tool_warned=yes ;; 7845esac 7846 DSYMUTIL=$ac_ct_DSYMUTIL 7847 fi 7848else 7849 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7850fi 7851 7852 if test -n "$ac_tool_prefix"; then 7853 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7854set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7856$as_echo_n "checking for $ac_word... " >&6; } 7857if test "${ac_cv_prog_NMEDIT+set}" = set; then : 7858 $as_echo_n "(cached) " >&6 7859else 7860 if test -n "$NMEDIT"; then 7861 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7862else 7863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7864for as_dir in $PATH 7865do 7866 IFS=$as_save_IFS 7867 test -z "$as_dir" && as_dir=. 7868 for ac_exec_ext in '' $ac_executable_extensions; do 7869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7870 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7872 break 2 7873 fi 7874done 7875 done 7876IFS=$as_save_IFS 7877 7878fi 7879fi 7880NMEDIT=$ac_cv_prog_NMEDIT 7881if test -n "$NMEDIT"; then 7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7883$as_echo "$NMEDIT" >&6; } 7884else 7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7886$as_echo "no" >&6; } 7887fi 7888 7889 7890fi 7891if test -z "$ac_cv_prog_NMEDIT"; then 7892 ac_ct_NMEDIT=$NMEDIT 7893 # Extract the first word of "nmedit", so it can be a program name with args. 7894set dummy nmedit; ac_word=$2 7895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7896$as_echo_n "checking for $ac_word... " >&6; } 7897if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 7898 $as_echo_n "(cached) " >&6 7899else 7900 if test -n "$ac_ct_NMEDIT"; then 7901 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7902else 7903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7904for as_dir in $PATH 7905do 7906 IFS=$as_save_IFS 7907 test -z "$as_dir" && as_dir=. 7908 for ac_exec_ext in '' $ac_executable_extensions; do 7909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7910 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7912 break 2 7913 fi 7914done 7915 done 7916IFS=$as_save_IFS 7917 7918fi 7919fi 7920ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7921if test -n "$ac_ct_NMEDIT"; then 7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7923$as_echo "$ac_ct_NMEDIT" >&6; } 7924else 7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7926$as_echo "no" >&6; } 7927fi 7928 7929 if test "x$ac_ct_NMEDIT" = x; then 7930 NMEDIT=":" 7931 else 7932 case $cross_compiling:$ac_tool_warned in 7933yes:) 7934{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7935$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7936ac_tool_warned=yes ;; 7937esac 7938 NMEDIT=$ac_ct_NMEDIT 7939 fi 7940else 7941 NMEDIT="$ac_cv_prog_NMEDIT" 7942fi 7943 7944 7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7946$as_echo_n "checking for -single_module linker flag... " >&6; } 7947if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 7948 $as_echo_n "(cached) " >&6 7949else 7950 lt_cv_apple_cc_single_mod=no 7951 if test -z "${LT_MULTI_MODULE}"; then 7952 # By default we will add the -single_module flag. You can override 7953 # by either setting the environment variable LT_MULTI_MODULE 7954 # non-empty at configure time, or by adding -multi_module to the 7955 # link flags. 7956 echo "int foo(void){return 1;}" > conftest.c 7957 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7958 -dynamiclib ${wl}-single_module conftest.c 7959 if test -f libconftest.dylib; then 7960 lt_cv_apple_cc_single_mod=yes 7961 rm -rf libconftest.dylib* 7962 fi 7963 rm conftest.c 7964 fi 7965fi 7966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7967$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7969$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7970if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 7971 $as_echo_n "(cached) " >&6 7972else 7973 lt_cv_ld_exported_symbols_list=no 7974 save_LDFLAGS=$LDFLAGS 7975 echo "_main" > conftest.sym 7976 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7978/* end confdefs.h. */ 7979 7980int 7981main () 7982{ 7983 7984 ; 7985 return 0; 7986} 7987_ACEOF 7988if ac_fn_c_try_link "$LINENO"; then : 7989 lt_cv_ld_exported_symbols_list=yes 7990else 7991 lt_cv_ld_exported_symbols_list=no 7992fi 7993rm -f core conftest.err conftest.$ac_objext \ 7994 conftest$ac_exeext conftest.$ac_ext 7995 LDFLAGS="$save_LDFLAGS" 7996 7997fi 7998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7999$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8000 case $host_os in 8001 rhapsody* | darwin1.[0123]) 8002 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8003 darwin1.*) 8004 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8005 darwin*) 8006 # if running on 10.5 or later, the deployment target defaults 8007 # to the OS version, if on x86, and 10.4, the deployment 8008 # target defaults to 10.4. Don't you love it? 8009 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8010 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8011 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8012 10.[012]*) 8013 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8014 10.*) 8015 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8016 esac 8017 ;; 8018 esac 8019 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8020 _lt_dar_single_mod='$single_module' 8021 fi 8022 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8023 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8024 else 8025 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" 8026 fi 8027 if test "$DSYMUTIL" != ":"; then 8028 _lt_dsymutil="~$DSYMUTIL \$lib || :" 8029 else 8030 _lt_dsymutil= 8031 fi 8032 ;; 8033 esac 8034 8035 8036enable_dlopen=no 8037enable_win32_dll=no 8038 8039# Check whether --enable-libtool-lock was given. 8040if test "${enable_libtool_lock+set}" = set; then : 8041 enableval=$enable_libtool_lock; 8042fi 8043 8044test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 8045 8046 8047# Check whether --with-pic was given. 8048if test "${with_pic+set}" = set; then : 8049 withval=$with_pic; pic_mode="$withval" 8050else 8051 pic_mode=default 8052fi 8053 8054test -z "$pic_mode" && pic_mode=default 8055 8056# Use C for the default configuration in the libtool script 8057tagname= 8058lt_save_CC="$CC" 8059ac_ext=c 8060ac_cpp='$CPP $CPPFLAGS' 8061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8063ac_compiler_gnu=$ac_cv_c_compiler_gnu 8064 8065 8066# Source file extension for C test sources. 8067ac_ext=c 8068 8069# Object file extension for compiled C test sources. 8070objext=o 8071objext=$objext 8072 8073# Code to be used in simple compile tests 8074lt_simple_compile_test_code="int some_variable = 0;" 8075 8076# Code to be used in simple link tests 8077lt_simple_link_test_code='int main(){return(0);}' 8078 8079 8080# If no C compiler was specified, use CC. 8081LTCC=${LTCC-"$CC"} 8082 8083# If no C compiler flags were specified, use CFLAGS. 8084LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8085 8086# Allow CC to be a program name with arguments. 8087compiler=$CC 8088 8089 8090# save warnings/boilerplate of simple test code 8091ac_outfile=conftest.$ac_objext 8092echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8093eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8094_lt_compiler_boilerplate=`cat conftest.err` 8095$rm conftest* 8096 8097ac_outfile=conftest.$ac_objext 8098echo "$lt_simple_link_test_code" >conftest.$ac_ext 8099eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8100_lt_linker_boilerplate=`cat conftest.err` 8101$rm -r conftest* 8102 8103 8104 8105lt_prog_compiler_no_builtin_flag= 8106 8107if test "$GCC" = yes; then 8108 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 8109 8110 8111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8112$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8113if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 8114 $as_echo_n "(cached) " >&6 8115else 8116 lt_cv_prog_compiler_rtti_exceptions=no 8117 ac_outfile=conftest.$ac_objext 8118 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8119 lt_compiler_flag="-fno-rtti -fno-exceptions" 8120 # Insert the option either (1) after the last *FLAGS variable, or 8121 # (2) before a word containing "conftest.", or (3) at the end. 8122 # Note that $ac_compile itself does not contain backslashes and begins 8123 # with a dollar sign (not a hyphen), so the echo should work correctly. 8124 # The option is referenced via a variable to avoid confusing sed. 8125 lt_compile=`echo "$ac_compile" | $SED \ 8126 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8127 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8128 -e 's:$: $lt_compiler_flag:'` 8129 (eval echo "\"\$as_me:8129: $lt_compile\"" >&5) 8130 (eval "$lt_compile" 2>conftest.err) 8131 ac_status=$? 8132 cat conftest.err >&5 8133 echo "$as_me:8133: \$? = $ac_status" >&5 8134 if (exit $ac_status) && test -s "$ac_outfile"; then 8135 # The compiler can only warn and ignore the option if not recognized 8136 # So say no if there are warnings other than the usual output. 8137 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8138 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8139 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8140 lt_cv_prog_compiler_rtti_exceptions=yes 8141 fi 8142 fi 8143 $rm conftest* 8144 8145fi 8146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8147$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8148 8149if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8150 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8151else 8152 : 8153fi 8154 8155fi 8156 8157lt_prog_compiler_wl= 8158lt_prog_compiler_pic= 8159lt_prog_compiler_static= 8160 8161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8162$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8163 8164 if test "$GCC" = yes; then 8165 lt_prog_compiler_wl='-Wl,' 8166 lt_prog_compiler_static='-static' 8167 8168 case $host_os in 8169 aix*) 8170 # All AIX code is PIC. 8171 if test "$host_cpu" = ia64; then 8172 # AIX 5 now supports IA64 processor 8173 lt_prog_compiler_static='-Bstatic' 8174 fi 8175 ;; 8176 8177 amigaos*) 8178 # FIXME: we need at least 68020 code to build shared libraries, but 8179 # adding the `-m68020' flag to GCC prevents building anything better, 8180 # like `-m68040'. 8181 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8182 ;; 8183 8184 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8185 # PIC is the default for these OSes. 8186 ;; 8187 8188 mingw* | cygwin* | pw32* | os2*) 8189 # This hack is so that the source file can tell whether it is being 8190 # built for inclusion in a dll (and should export symbols for example). 8191 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8192 # (--disable-auto-import) libraries 8193 lt_prog_compiler_pic='-DDLL_EXPORT' 8194 ;; 8195 8196 darwin* | rhapsody*) 8197 # PIC is the default on this platform 8198 # Common symbols not allowed in MH_DYLIB files 8199 lt_prog_compiler_pic='-fno-common' 8200 ;; 8201 8202 interix[3-9]*) 8203 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8204 # Instead, we relocate shared libraries at runtime. 8205 ;; 8206 8207 msdosdjgpp*) 8208 # Just because we use GCC doesn't mean we suddenly get shared libraries 8209 # on systems that don't support them. 8210 lt_prog_compiler_can_build_shared=no 8211 enable_shared=no 8212 ;; 8213 8214 sysv4*MP*) 8215 if test -d /usr/nec; then 8216 lt_prog_compiler_pic=-Kconform_pic 8217 fi 8218 ;; 8219 8220 hpux*) 8221 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8222 # not for PA HP-UX. 8223 case $host_cpu in 8224 hppa*64*|ia64*) 8225 # +Z the default 8226 ;; 8227 *) 8228 lt_prog_compiler_pic='-fPIC' 8229 ;; 8230 esac 8231 ;; 8232 8233 *) 8234 lt_prog_compiler_pic='-fPIC' 8235 ;; 8236 esac 8237 else 8238 # PORTME Check for flag to pass linker flags through the system compiler. 8239 case $host_os in 8240 aix*) 8241 lt_prog_compiler_wl='-Wl,' 8242 if test "$host_cpu" = ia64; then 8243 # AIX 5 now supports IA64 processor 8244 lt_prog_compiler_static='-Bstatic' 8245 else 8246 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8247 fi 8248 ;; 8249 darwin*) 8250 # PIC is the default on this platform 8251 # Common symbols not allowed in MH_DYLIB files 8252 case $cc_basename in 8253 xlc*) 8254 lt_prog_compiler_pic='-qnocommon' 8255 lt_prog_compiler_wl='-Wl,' 8256 ;; 8257 esac 8258 ;; 8259 8260 mingw* | cygwin* | pw32* | os2*) 8261 # This hack is so that the source file can tell whether it is being 8262 # built for inclusion in a dll (and should export symbols for example). 8263 lt_prog_compiler_pic='-DDLL_EXPORT' 8264 ;; 8265 8266 hpux9* | hpux10* | hpux11*) 8267 lt_prog_compiler_wl='-Wl,' 8268 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8269 # not for PA HP-UX. 8270 case $host_cpu in 8271 hppa*64*|ia64*) 8272 # +Z the default 8273 ;; 8274 *) 8275 lt_prog_compiler_pic='+Z' 8276 ;; 8277 esac 8278 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8279 lt_prog_compiler_static='${wl}-a ${wl}archive' 8280 ;; 8281 8282 irix5* | irix6* | nonstopux*) 8283 lt_prog_compiler_wl='-Wl,' 8284 # PIC (with -KPIC) is the default. 8285 lt_prog_compiler_static='-non_shared' 8286 ;; 8287 8288 newsos6) 8289 lt_prog_compiler_pic='-KPIC' 8290 lt_prog_compiler_static='-Bstatic' 8291 ;; 8292 8293 linux* | k*bsd*-gnu) 8294 case $cc_basename in 8295 icc* | ecc*) 8296 lt_prog_compiler_wl='-Wl,' 8297 lt_prog_compiler_pic='-KPIC' 8298 lt_prog_compiler_static='-static' 8299 ;; 8300 pgcc* | pgf77* | pgf90* | pgf95*) 8301 # Portland Group compilers (*not* the Pentium gcc compiler, 8302 # which looks to be a dead project) 8303 lt_prog_compiler_wl='-Wl,' 8304 lt_prog_compiler_pic='-fpic' 8305 lt_prog_compiler_static='-Bstatic' 8306 ;; 8307 ccc*) 8308 lt_prog_compiler_wl='-Wl,' 8309 # All Alpha code is PIC. 8310 lt_prog_compiler_static='-non_shared' 8311 ;; 8312 *) 8313 case `$CC -V 2>&1 | sed 5q` in 8314 *Sun\ C*) 8315 # Sun C 5.9 8316 lt_prog_compiler_pic='-KPIC' 8317 lt_prog_compiler_static='-Bstatic' 8318 lt_prog_compiler_wl='-Wl,' 8319 ;; 8320 *Sun\ F*) 8321 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8322 lt_prog_compiler_pic='-KPIC' 8323 lt_prog_compiler_static='-Bstatic' 8324 lt_prog_compiler_wl='' 8325 ;; 8326 esac 8327 ;; 8328 esac 8329 ;; 8330 8331 osf3* | osf4* | osf5*) 8332 lt_prog_compiler_wl='-Wl,' 8333 # All OSF/1 code is PIC. 8334 lt_prog_compiler_static='-non_shared' 8335 ;; 8336 8337 rdos*) 8338 lt_prog_compiler_static='-non_shared' 8339 ;; 8340 8341 solaris*) 8342 lt_prog_compiler_pic='-KPIC' 8343 lt_prog_compiler_static='-Bstatic' 8344 case $cc_basename in 8345 f77* | f90* | f95*) 8346 lt_prog_compiler_wl='-Qoption ld ';; 8347 *) 8348 lt_prog_compiler_wl='-Wl,';; 8349 esac 8350 ;; 8351 8352 sunos4*) 8353 lt_prog_compiler_wl='-Qoption ld ' 8354 lt_prog_compiler_pic='-PIC' 8355 lt_prog_compiler_static='-Bstatic' 8356 ;; 8357 8358 sysv4 | sysv4.2uw2* | sysv4.3*) 8359 lt_prog_compiler_wl='-Wl,' 8360 lt_prog_compiler_pic='-KPIC' 8361 lt_prog_compiler_static='-Bstatic' 8362 ;; 8363 8364 sysv4*MP*) 8365 if test -d /usr/nec ;then 8366 lt_prog_compiler_pic='-Kconform_pic' 8367 lt_prog_compiler_static='-Bstatic' 8368 fi 8369 ;; 8370 8371 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8372 lt_prog_compiler_wl='-Wl,' 8373 lt_prog_compiler_pic='-KPIC' 8374 lt_prog_compiler_static='-Bstatic' 8375 ;; 8376 8377 unicos*) 8378 lt_prog_compiler_wl='-Wl,' 8379 lt_prog_compiler_can_build_shared=no 8380 ;; 8381 8382 uts4*) 8383 lt_prog_compiler_pic='-pic' 8384 lt_prog_compiler_static='-Bstatic' 8385 ;; 8386 8387 *) 8388 lt_prog_compiler_can_build_shared=no 8389 ;; 8390 esac 8391 fi 8392 8393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8394$as_echo "$lt_prog_compiler_pic" >&6; } 8395 8396# 8397# Check to make sure the PIC flag actually works. 8398# 8399if test -n "$lt_prog_compiler_pic"; then 8400 8401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8402$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8403if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 8404 $as_echo_n "(cached) " >&6 8405else 8406 lt_cv_prog_compiler_pic_works=no 8407 ac_outfile=conftest.$ac_objext 8408 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8409 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8410 # Insert the option either (1) after the last *FLAGS variable, or 8411 # (2) before a word containing "conftest.", or (3) at the end. 8412 # Note that $ac_compile itself does not contain backslashes and begins 8413 # with a dollar sign (not a hyphen), so the echo should work correctly. 8414 # The option is referenced via a variable to avoid confusing sed. 8415 lt_compile=`echo "$ac_compile" | $SED \ 8416 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8417 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8418 -e 's:$: $lt_compiler_flag:'` 8419 (eval echo "\"\$as_me:8419: $lt_compile\"" >&5) 8420 (eval "$lt_compile" 2>conftest.err) 8421 ac_status=$? 8422 cat conftest.err >&5 8423 echo "$as_me:8423: \$? = $ac_status" >&5 8424 if (exit $ac_status) && test -s "$ac_outfile"; then 8425 # The compiler can only warn and ignore the option if not recognized 8426 # So say no if there are warnings other than the usual output. 8427 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8428 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8429 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8430 lt_cv_prog_compiler_pic_works=yes 8431 fi 8432 fi 8433 $rm conftest* 8434 8435fi 8436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8437$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8438 8439if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8440 case $lt_prog_compiler_pic in 8441 "" | " "*) ;; 8442 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8443 esac 8444else 8445 lt_prog_compiler_pic= 8446 lt_prog_compiler_can_build_shared=no 8447fi 8448 8449fi 8450case $host_os in 8451 # For platforms which do not support PIC, -DPIC is meaningless: 8452 *djgpp*) 8453 lt_prog_compiler_pic= 8454 ;; 8455 *) 8456 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8457 ;; 8458esac 8459 8460# 8461# Check to make sure the static flag actually works. 8462# 8463wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8465$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8466if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 8467 $as_echo_n "(cached) " >&6 8468else 8469 lt_cv_prog_compiler_static_works=no 8470 save_LDFLAGS="$LDFLAGS" 8471 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8472 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8473 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8474 # The linker can only warn and ignore the option if not recognized 8475 # So say no if there are warnings 8476 if test -s conftest.err; then 8477 # Append any errors to the config.log. 8478 cat conftest.err 1>&5 8479 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8480 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8481 if diff conftest.exp conftest.er2 >/dev/null; then 8482 lt_cv_prog_compiler_static_works=yes 8483 fi 8484 else 8485 lt_cv_prog_compiler_static_works=yes 8486 fi 8487 fi 8488 $rm -r conftest* 8489 LDFLAGS="$save_LDFLAGS" 8490 8491fi 8492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8493$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8494 8495if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8496 : 8497else 8498 lt_prog_compiler_static= 8499fi 8500 8501 8502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8503$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8504if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8505 $as_echo_n "(cached) " >&6 8506else 8507 lt_cv_prog_compiler_c_o=no 8508 $rm -r conftest 2>/dev/null 8509 mkdir conftest 8510 cd conftest 8511 mkdir out 8512 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8513 8514 lt_compiler_flag="-o out/conftest2.$ac_objext" 8515 # Insert the option either (1) after the last *FLAGS variable, or 8516 # (2) before a word containing "conftest.", or (3) at the end. 8517 # Note that $ac_compile itself does not contain backslashes and begins 8518 # with a dollar sign (not a hyphen), so the echo should work correctly. 8519 lt_compile=`echo "$ac_compile" | $SED \ 8520 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8521 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8522 -e 's:$: $lt_compiler_flag:'` 8523 (eval echo "\"\$as_me:8523: $lt_compile\"" >&5) 8524 (eval "$lt_compile" 2>out/conftest.err) 8525 ac_status=$? 8526 cat out/conftest.err >&5 8527 echo "$as_me:8527: \$? = $ac_status" >&5 8528 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8529 then 8530 # The compiler can only warn and ignore the option if not recognized 8531 # So say no if there are warnings 8532 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8533 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8534 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8535 lt_cv_prog_compiler_c_o=yes 8536 fi 8537 fi 8538 chmod u+w . 2>&5 8539 $rm conftest* 8540 # SGI C++ compiler will create directory out/ii_files/ for 8541 # template instantiation 8542 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 8543 $rm out/* && rmdir out 8544 cd .. 8545 rmdir conftest 8546 $rm conftest* 8547 8548fi 8549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8550$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8551 8552 8553hard_links="nottested" 8554if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8555 # do not overwrite the value of need_locks provided by the user 8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8557$as_echo_n "checking if we can lock with hard links... " >&6; } 8558 hard_links=yes 8559 $rm conftest* 8560 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8561 touch conftest.a 8562 ln conftest.a conftest.b 2>&5 || hard_links=no 8563 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8565$as_echo "$hard_links" >&6; } 8566 if test "$hard_links" = no; then 8567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8568$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8569 need_locks=warn 8570 fi 8571else 8572 need_locks=no 8573fi 8574 8575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8576$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8577 8578 runpath_var= 8579 allow_undefined_flag= 8580 enable_shared_with_static_runtimes=no 8581 archive_cmds= 8582 archive_expsym_cmds= 8583 old_archive_From_new_cmds= 8584 old_archive_from_expsyms_cmds= 8585 export_dynamic_flag_spec= 8586 whole_archive_flag_spec= 8587 thread_safe_flag_spec= 8588 hardcode_libdir_flag_spec= 8589 hardcode_libdir_flag_spec_ld= 8590 hardcode_libdir_separator= 8591 hardcode_direct=no 8592 hardcode_minus_L=no 8593 hardcode_shlibpath_var=unsupported 8594 link_all_deplibs=unknown 8595 hardcode_automatic=no 8596 module_cmds= 8597 module_expsym_cmds= 8598 always_export_symbols=no 8599 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8600 # include_expsyms should be a list of space-separated symbols to be *always* 8601 # included in the symbol list 8602 include_expsyms= 8603 # exclude_expsyms can be an extended regexp of symbols to exclude 8604 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8605 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8606 # as well as any symbol that contains `d'. 8607 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8608 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8609 # platforms (ab)use it in PIC code, but their linkers get confused if 8610 # the symbol is explicitly referenced. Since portable code cannot 8611 # rely on this symbol name, it's probably fine to never include it in 8612 # preloaded symbol tables. 8613 # Exclude shared library initialization/finalization symbols. 8614 extract_expsyms_cmds= 8615 # Just being paranoid about ensuring that cc_basename is set. 8616 for cc_temp in $compiler""; do 8617 case $cc_temp in 8618 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8619 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8620 \-*) ;; 8621 *) break;; 8622 esac 8623done 8624cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8625 8626 case $host_os in 8627 cygwin* | mingw* | pw32*) 8628 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8629 # When not using gcc, we currently assume that we are using 8630 # Microsoft Visual C++. 8631 if test "$GCC" != yes; then 8632 with_gnu_ld=no 8633 fi 8634 ;; 8635 interix*) 8636 # we just hope/assume this is gcc and not c89 (= MSVC++) 8637 with_gnu_ld=yes 8638 ;; 8639 openbsd*) 8640 with_gnu_ld=no 8641 ;; 8642 esac 8643 8644 ld_shlibs=yes 8645 if test "$with_gnu_ld" = yes; then 8646 # If archive_cmds runs LD, not CC, wlarc should be empty 8647 wlarc='${wl}' 8648 8649 # Set some defaults for GNU ld with shared library support. These 8650 # are reset later if shared libraries are not supported. Putting them 8651 # here allows them to be overridden if necessary. 8652 runpath_var=LD_RUN_PATH 8653 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 8654 export_dynamic_flag_spec='${wl}--export-dynamic' 8655 # ancient GNU ld didn't support --whole-archive et. al. 8656 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 8657 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8658 else 8659 whole_archive_flag_spec= 8660 fi 8661 supports_anon_versioning=no 8662 case `$LD -v 2>/dev/null` in 8663 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8664 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8665 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8666 *\ 2.11.*) ;; # other 2.11 versions 8667 *) supports_anon_versioning=yes ;; 8668 esac 8669 8670 # See if GNU ld supports shared libraries. 8671 case $host_os in 8672 aix[3-9]*) 8673 # On AIX/PPC, the GNU linker is very broken 8674 if test "$host_cpu" != ia64; then 8675 ld_shlibs=no 8676 cat <<EOF 1>&2 8677 8678*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8679*** to be unable to reliably create shared libraries on AIX. 8680*** Therefore, libtool is disabling shared libraries support. If you 8681*** really care for shared libraries, you may want to modify your PATH 8682*** so that a non-GNU linker is found, and then restart. 8683 8684EOF 8685 fi 8686 ;; 8687 8688 amigaos*) 8689 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)' 8690 hardcode_libdir_flag_spec='-L$libdir' 8691 hardcode_minus_L=yes 8692 8693 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 8694 # that the semantics of dynamic libraries on AmigaOS, at least up 8695 # to version 4, is to share data among multiple programs linked 8696 # with the same dynamic library. Since this doesn't match the 8697 # behavior of shared libraries on other platforms, we can't use 8698 # them. 8699 ld_shlibs=no 8700 ;; 8701 8702 beos*) 8703 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8704 allow_undefined_flag=unsupported 8705 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8706 # support --undefined. This deserves some investigation. FIXME 8707 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8708 else 8709 ld_shlibs=no 8710 fi 8711 ;; 8712 8713 cygwin* | mingw* | pw32*) 8714 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8715 # as there is no search path for DLLs. 8716 hardcode_libdir_flag_spec='-L$libdir' 8717 allow_undefined_flag=unsupported 8718 always_export_symbols=no 8719 enable_shared_with_static_runtimes=yes 8720 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8721 8722 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8723 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8724 # If the export-symbols file already is a .def file (1st line 8725 # is EXPORTS), use it as is; otherwise, prepend... 8726 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8727 cp $export_symbols $output_objdir/$soname.def; 8728 else 8729 echo EXPORTS > $output_objdir/$soname.def; 8730 cat $export_symbols >> $output_objdir/$soname.def; 8731 fi~ 8732 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8733 else 8734 ld_shlibs=no 8735 fi 8736 ;; 8737 8738 interix[3-9]*) 8739 hardcode_direct=no 8740 hardcode_shlibpath_var=no 8741 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8742 export_dynamic_flag_spec='${wl}-E' 8743 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8744 # Instead, shared libraries are loaded at an image base (0x10000000 by 8745 # default) and relocated if they conflict, which is a slow very memory 8746 # consuming and fragmenting process. To avoid this, we pick a random, 8747 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8748 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8749 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8750 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' 8751 ;; 8752 8753 gnu* | linux* | k*bsd*-gnu) 8754 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8755 tmp_addflag= 8756 case $cc_basename,$host_cpu in 8757 pgcc*) # Portland Group C compiler 8758 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' 8759 tmp_addflag=' $pic_flag' 8760 ;; 8761 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8762 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' 8763 tmp_addflag=' $pic_flag -Mnomain' ;; 8764 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8765 tmp_addflag=' -i_dynamic' ;; 8766 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8767 tmp_addflag=' -i_dynamic -nofor_main' ;; 8768 ifc* | ifort*) # Intel Fortran compiler 8769 tmp_addflag=' -nofor_main' ;; 8770 esac 8771 case `$CC -V 2>&1 | sed 5q` in 8772 *Sun\ C*) # Sun C 5.9 8773 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' 8774 tmp_sharedflag='-G' ;; 8775 *Sun\ F*) # Sun Fortran 8.3 8776 tmp_sharedflag='-G' ;; 8777 *) 8778 tmp_sharedflag='-shared' ;; 8779 esac 8780 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8781 8782 if test $supports_anon_versioning = yes; then 8783 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8784 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8785 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8786 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8787 fi 8788 else 8789 ld_shlibs=no 8790 fi 8791 ;; 8792 8793 netbsd*) 8794 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8795 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8796 wlarc= 8797 else 8798 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8799 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8800 fi 8801 ;; 8802 8803 solaris*) 8804 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8805 ld_shlibs=no 8806 cat <<EOF 1>&2 8807 8808*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8809*** create shared libraries on Solaris systems. Therefore, libtool 8810*** is disabling shared libraries support. We urge you to upgrade GNU 8811*** binutils to release 2.9.1 or newer. Another option is to modify 8812*** your PATH or compiler configuration so that the native linker is 8813*** used, and then restart. 8814 8815EOF 8816 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8817 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8818 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8819 else 8820 ld_shlibs=no 8821 fi 8822 ;; 8823 8824 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8825 case `$LD -v 2>&1` in 8826 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8827 ld_shlibs=no 8828 cat <<_LT_EOF 1>&2 8829 8830*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8831*** reliably create shared libraries on SCO systems. Therefore, libtool 8832*** is disabling shared libraries support. We urge you to upgrade GNU 8833*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8834*** your PATH or compiler configuration so that the native linker is 8835*** used, and then restart. 8836 8837_LT_EOF 8838 ;; 8839 *) 8840 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8841 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8842 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8843 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8844 else 8845 ld_shlibs=no 8846 fi 8847 ;; 8848 esac 8849 ;; 8850 8851 sunos4*) 8852 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8853 wlarc= 8854 hardcode_direct=yes 8855 hardcode_shlibpath_var=no 8856 ;; 8857 8858 *) 8859 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8860 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8861 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8862 else 8863 ld_shlibs=no 8864 fi 8865 ;; 8866 esac 8867 8868 if test "$ld_shlibs" = no; then 8869 runpath_var= 8870 hardcode_libdir_flag_spec= 8871 export_dynamic_flag_spec= 8872 whole_archive_flag_spec= 8873 fi 8874 else 8875 # PORTME fill in a description of your system's linker (not GNU ld) 8876 case $host_os in 8877 aix3*) 8878 allow_undefined_flag=unsupported 8879 always_export_symbols=yes 8880 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' 8881 # Note: this linker hardcodes the directories in LIBPATH if there 8882 # are no directories specified by -L. 8883 hardcode_minus_L=yes 8884 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8885 # Neither direct hardcoding nor static linking is supported with a 8886 # broken collect2. 8887 hardcode_direct=unsupported 8888 fi 8889 ;; 8890 8891 aix[4-9]*) 8892 if test "$host_cpu" = ia64; then 8893 # On IA64, the linker does run time linking by default, so we don't 8894 # have to do anything special. 8895 aix_use_runtimelinking=no 8896 exp_sym_flag='-Bexport' 8897 no_entry_flag="" 8898 else 8899 # If we're using GNU nm, then we don't want the "-C" option. 8900 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8901 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8902 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' 8903 else 8904 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' 8905 fi 8906 aix_use_runtimelinking=no 8907 8908 # Test if we are trying to use run time linking or normal 8909 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8910 # need to do runtime linking. 8911 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8912 for ld_flag in $LDFLAGS; do 8913 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8914 aix_use_runtimelinking=yes 8915 break 8916 fi 8917 done 8918 ;; 8919 esac 8920 8921 exp_sym_flag='-bexport' 8922 no_entry_flag='-bnoentry' 8923 fi 8924 8925 # When large executables or shared objects are built, AIX ld can 8926 # have problems creating the table of contents. If linking a library 8927 # or program results in "error TOC overflow" add -mminimal-toc to 8928 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8929 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8930 8931 archive_cmds='' 8932 hardcode_direct=yes 8933 hardcode_libdir_separator=':' 8934 link_all_deplibs=yes 8935 8936 if test "$GCC" = yes; then 8937 case $host_os in aix4.[012]|aix4.[012].*) 8938 # We only want to do this on AIX 4.2 and lower, the check 8939 # below for broken collect2 doesn't work under 4.3+ 8940 collect2name=`${CC} -print-prog-name=collect2` 8941 if test -f "$collect2name" && \ 8942 strings "$collect2name" | grep resolve_lib_name >/dev/null 8943 then 8944 # We have reworked collect2 8945 : 8946 else 8947 # We have old collect2 8948 hardcode_direct=unsupported 8949 # It fails to find uninstalled libraries when the uninstalled 8950 # path is not listed in the libpath. Setting hardcode_minus_L 8951 # to unsupported forces relinking 8952 hardcode_minus_L=yes 8953 hardcode_libdir_flag_spec='-L$libdir' 8954 hardcode_libdir_separator= 8955 fi 8956 ;; 8957 esac 8958 shared_flag='-shared' 8959 if test "$aix_use_runtimelinking" = yes; then 8960 shared_flag="$shared_flag "'${wl}-G' 8961 fi 8962 else 8963 # not using gcc 8964 if test "$host_cpu" = ia64; then 8965 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8966 # chokes on -Wl,-G. The following line is correct: 8967 shared_flag='-G' 8968 else 8969 if test "$aix_use_runtimelinking" = yes; then 8970 shared_flag='${wl}-G' 8971 else 8972 shared_flag='${wl}-bM:SRE' 8973 fi 8974 fi 8975 fi 8976 8977 # It seems that -bexpall does not export symbols beginning with 8978 # underscore (_), so it is better to generate a list of symbols to export. 8979 always_export_symbols=yes 8980 if test "$aix_use_runtimelinking" = yes; then 8981 # Warning - without using the other runtime loading flags (-brtl), 8982 # -berok will link without error, but may produce a broken library. 8983 allow_undefined_flag='-berok' 8984 # Determine the default libpath from the value encoded in an empty executable. 8985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8986/* end confdefs.h. */ 8987 8988int 8989main () 8990{ 8991 8992 ; 8993 return 0; 8994} 8995_ACEOF 8996if ac_fn_c_try_link "$LINENO"; then : 8997 8998lt_aix_libpath_sed=' 8999 /Import File Strings/,/^$/ { 9000 /^0/ { 9001 s/^0 *\(.*\)$/\1/ 9002 p 9003 } 9004 }' 9005aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9006# Check for a 64-bit object if we didn't find anything. 9007if test -z "$aix_libpath"; then 9008 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9009fi 9010fi 9011rm -f core conftest.err conftest.$ac_objext \ 9012 conftest$ac_exeext conftest.$ac_ext 9013if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9014 9015 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9016 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9017 else 9018 if test "$host_cpu" = ia64; then 9019 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9020 allow_undefined_flag="-z nodefs" 9021 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" 9022 else 9023 # Determine the default libpath from the value encoded in an empty executable. 9024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9025/* end confdefs.h. */ 9026 9027int 9028main () 9029{ 9030 9031 ; 9032 return 0; 9033} 9034_ACEOF 9035if ac_fn_c_try_link "$LINENO"; then : 9036 9037lt_aix_libpath_sed=' 9038 /Import File Strings/,/^$/ { 9039 /^0/ { 9040 s/^0 *\(.*\)$/\1/ 9041 p 9042 } 9043 }' 9044aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9045# Check for a 64-bit object if we didn't find anything. 9046if test -z "$aix_libpath"; then 9047 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9048fi 9049fi 9050rm -f core conftest.err conftest.$ac_objext \ 9051 conftest$ac_exeext conftest.$ac_ext 9052if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9053 9054 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9055 # Warning - without using the other run time loading flags, 9056 # -berok will link without error, but may produce a broken library. 9057 no_undefined_flag=' ${wl}-bernotok' 9058 allow_undefined_flag=' ${wl}-berok' 9059 # Exported symbols can be pulled into shared objects from archives 9060 whole_archive_flag_spec='$convenience' 9061 archive_cmds_need_lc=yes 9062 # This is similar to how AIX traditionally builds its shared libraries. 9063 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' 9064 fi 9065 fi 9066 ;; 9067 9068 amigaos*) 9069 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)' 9070 hardcode_libdir_flag_spec='-L$libdir' 9071 hardcode_minus_L=yes 9072 # see comment about different semantics on the GNU ld section 9073 ld_shlibs=no 9074 ;; 9075 9076 bsdi[45]*) 9077 export_dynamic_flag_spec=-rdynamic 9078 ;; 9079 9080 cygwin* | mingw* | pw32*) 9081 # When not using gcc, we currently assume that we are using 9082 # Microsoft Visual C++. 9083 # hardcode_libdir_flag_spec is actually meaningless, as there is 9084 # no search path for DLLs. 9085 hardcode_libdir_flag_spec=' ' 9086 allow_undefined_flag=unsupported 9087 # Tell ltmain to make .lib files, not .a files. 9088 libext=lib 9089 # Tell ltmain to make .dll files, not .so files. 9090 shrext_cmds=".dll" 9091 # FIXME: Setting linknames here is a bad hack. 9092 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 9093 # The linker will automatically build a .lib file if we build a DLL. 9094 old_archive_From_new_cmds='true' 9095 # FIXME: Should let the user specify the lib program. 9096 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9097 fix_srcfile_path='`cygpath -w "$srcfile"`' 9098 enable_shared_with_static_runtimes=yes 9099 ;; 9100 9101 darwin* | rhapsody*) 9102 case $host_os in 9103 rhapsody* | darwin1.[012]) 9104 allow_undefined_flag='${wl}-undefined ${wl}suppress' 9105 ;; 9106 *) # Darwin 1.3 on 9107 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 9108 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 9109 else 9110 case ${MACOSX_DEPLOYMENT_TARGET} in 9111 10.[012]) 9112 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 9113 ;; 9114 10.*) 9115 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 9116 ;; 9117 esac 9118 fi 9119 ;; 9120 esac 9121 archive_cmds_need_lc=no 9122 hardcode_direct=no 9123 hardcode_automatic=yes 9124 hardcode_shlibpath_var=unsupported 9125 whole_archive_flag_spec='' 9126 link_all_deplibs=yes 9127 if test "$GCC" = yes ; then 9128 output_verbose_link_cmd='echo' 9129 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9130 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9131 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}" 9132 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}" 9133 else 9134 case $cc_basename in 9135 xlc*) 9136 output_verbose_link_cmd='echo' 9137 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 9138 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 9139 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 9140 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 9141 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 9142 ;; 9143 *) 9144 ld_shlibs=no 9145 ;; 9146 esac 9147 fi 9148 ;; 9149 9150 dgux*) 9151 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9152 hardcode_libdir_flag_spec='-L$libdir' 9153 hardcode_shlibpath_var=no 9154 ;; 9155 9156 freebsd1*) 9157 ld_shlibs=no 9158 ;; 9159 9160 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9161 # support. Future versions do this automatically, but an explicit c++rt0.o 9162 # does not break anything, and helps significantly (at the cost of a little 9163 # extra space). 9164 freebsd2.2*) 9165 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9166 hardcode_libdir_flag_spec='-R$libdir' 9167 hardcode_direct=yes 9168 hardcode_shlibpath_var=no 9169 ;; 9170 9171 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9172 freebsd2*) 9173 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9174 hardcode_direct=yes 9175 hardcode_minus_L=yes 9176 hardcode_shlibpath_var=no 9177 ;; 9178 9179 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9180 freebsd* | dragonfly*) 9181 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9182 hardcode_libdir_flag_spec='-R$libdir' 9183 hardcode_direct=yes 9184 hardcode_shlibpath_var=no 9185 ;; 9186 9187 hpux9*) 9188 if test "$GCC" = yes; then 9189 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' 9190 else 9191 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' 9192 fi 9193 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9194 hardcode_libdir_separator=: 9195 hardcode_direct=yes 9196 9197 # hardcode_minus_L: Not really in the search PATH, 9198 # but as the default location of the library. 9199 hardcode_minus_L=yes 9200 export_dynamic_flag_spec='${wl}-E' 9201 ;; 9202 9203 hpux10*) 9204 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9205 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9206 else 9207 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9208 fi 9209 if test "$with_gnu_ld" = no; then 9210 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9211 hardcode_libdir_separator=: 9212 9213 hardcode_direct=yes 9214 export_dynamic_flag_spec='${wl}-E' 9215 9216 # hardcode_minus_L: Not really in the search PATH, 9217 # but as the default location of the library. 9218 hardcode_minus_L=yes 9219 fi 9220 ;; 9221 9222 hpux11*) 9223 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9224 case $host_cpu in 9225 hppa*64*) 9226 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9227 ;; 9228 ia64*) 9229 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9230 ;; 9231 *) 9232 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9233 ;; 9234 esac 9235 else 9236 case $host_cpu in 9237 hppa*64*) 9238 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9239 ;; 9240 ia64*) 9241 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9242 ;; 9243 *) 9244 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9245 ;; 9246 esac 9247 fi 9248 if test "$with_gnu_ld" = no; then 9249 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9250 hardcode_libdir_separator=: 9251 9252 case $host_cpu in 9253 hppa*64*|ia64*) 9254 hardcode_libdir_flag_spec_ld='+b $libdir' 9255 hardcode_direct=no 9256 hardcode_shlibpath_var=no 9257 ;; 9258 *) 9259 hardcode_direct=yes 9260 export_dynamic_flag_spec='${wl}-E' 9261 9262 # hardcode_minus_L: Not really in the search PATH, 9263 # but as the default location of the library. 9264 hardcode_minus_L=yes 9265 ;; 9266 esac 9267 fi 9268 ;; 9269 9270 irix5* | irix6* | nonstopux*) 9271 if test "$GCC" = yes; then 9272 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9273 else 9274 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 9275 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9276 fi 9277 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9278 hardcode_libdir_separator=: 9279 link_all_deplibs=yes 9280 ;; 9281 9282 netbsd*) 9283 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9284 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9285 else 9286 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9287 fi 9288 hardcode_libdir_flag_spec='-R$libdir' 9289 hardcode_direct=yes 9290 hardcode_shlibpath_var=no 9291 ;; 9292 9293 newsos6) 9294 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9295 hardcode_direct=yes 9296 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9297 hardcode_libdir_separator=: 9298 hardcode_shlibpath_var=no 9299 ;; 9300 9301 openbsd*) 9302 if test -f /usr/libexec/ld.so; then 9303 hardcode_direct=yes 9304 hardcode_shlibpath_var=no 9305 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9306 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9307 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9308 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9309 export_dynamic_flag_spec='${wl}-E' 9310 else 9311 case $host_os in 9312 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9313 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9314 hardcode_libdir_flag_spec='-R$libdir' 9315 ;; 9316 *) 9317 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9318 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9319 ;; 9320 esac 9321 fi 9322 else 9323 ld_shlibs=no 9324 fi 9325 ;; 9326 9327 os2*) 9328 hardcode_libdir_flag_spec='-L$libdir' 9329 hardcode_minus_L=yes 9330 allow_undefined_flag=unsupported 9331 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' 9332 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9333 ;; 9334 9335 osf3*) 9336 if test "$GCC" = yes; then 9337 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9338 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9339 else 9340 allow_undefined_flag=' -expect_unresolved \*' 9341 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 9342 fi 9343 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9344 hardcode_libdir_separator=: 9345 ;; 9346 9347 osf4* | osf5*) # as osf3* with the addition of -msym flag 9348 if test "$GCC" = yes; then 9349 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9350 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9351 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9352 else 9353 allow_undefined_flag=' -expect_unresolved \*' 9354 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 9355 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 9356 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 9357 9358 # Both c and cxx compiler support -rpath directly 9359 hardcode_libdir_flag_spec='-rpath $libdir' 9360 fi 9361 hardcode_libdir_separator=: 9362 ;; 9363 9364 solaris*) 9365 no_undefined_flag=' -z text' 9366 if test "$GCC" = yes; then 9367 wlarc='${wl}' 9368 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9369 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 9370 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 9371 else 9372 wlarc='' 9373 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9374 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 9375 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 9376 fi 9377 hardcode_libdir_flag_spec='-R$libdir' 9378 hardcode_shlibpath_var=no 9379 case $host_os in 9380 solaris2.[0-5] | solaris2.[0-5].*) ;; 9381 *) 9382 # The compiler driver will combine and reorder linker options, 9383 # but understands `-z linker_flag'. GCC discards it without `$wl', 9384 # but is careful enough not to reorder. 9385 # Supported since Solaris 2.6 (maybe 2.5.1?) 9386 if test "$GCC" = yes; then 9387 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9388 else 9389 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9390 fi 9391 ;; 9392 esac 9393 link_all_deplibs=yes 9394 ;; 9395 9396 sunos4*) 9397 if test "x$host_vendor" = xsequent; then 9398 # Use $CC to link under sequent, because it throws in some extra .o 9399 # files that make .init and .fini sections work. 9400 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9401 else 9402 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9403 fi 9404 hardcode_libdir_flag_spec='-L$libdir' 9405 hardcode_direct=yes 9406 hardcode_minus_L=yes 9407 hardcode_shlibpath_var=no 9408 ;; 9409 9410 sysv4) 9411 case $host_vendor in 9412 sni) 9413 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9414 hardcode_direct=yes # is this really true??? 9415 ;; 9416 siemens) 9417 ## LD is ld it makes a PLAMLIB 9418 ## CC just makes a GrossModule. 9419 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9420 reload_cmds='$CC -r -o $output$reload_objs' 9421 hardcode_direct=no 9422 ;; 9423 motorola) 9424 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9425 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9426 ;; 9427 esac 9428 runpath_var='LD_RUN_PATH' 9429 hardcode_shlibpath_var=no 9430 ;; 9431 9432 sysv4.3*) 9433 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9434 hardcode_shlibpath_var=no 9435 export_dynamic_flag_spec='-Bexport' 9436 ;; 9437 9438 sysv4*MP*) 9439 if test -d /usr/nec; then 9440 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9441 hardcode_shlibpath_var=no 9442 runpath_var=LD_RUN_PATH 9443 hardcode_runpath_var=yes 9444 ld_shlibs=yes 9445 fi 9446 ;; 9447 9448 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9449 no_undefined_flag='${wl}-z,text' 9450 archive_cmds_need_lc=no 9451 hardcode_shlibpath_var=no 9452 runpath_var='LD_RUN_PATH' 9453 9454 if test "$GCC" = yes; then 9455 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9456 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9457 else 9458 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9459 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9460 fi 9461 ;; 9462 9463 sysv5* | sco3.2v5* | sco5v6*) 9464 # Note: We can NOT use -z defs as we might desire, because we do not 9465 # link with -lc, and that would cause any symbols used from libc to 9466 # always be unresolved, which means just about no library would 9467 # ever link correctly. If we're not using GNU ld we use -z text 9468 # though, which does catch some bad symbols but isn't as heavy-handed 9469 # as -z defs. 9470 no_undefined_flag='${wl}-z,text' 9471 allow_undefined_flag='${wl}-z,nodefs' 9472 archive_cmds_need_lc=no 9473 hardcode_shlibpath_var=no 9474 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 9475 hardcode_libdir_separator=':' 9476 link_all_deplibs=yes 9477 export_dynamic_flag_spec='${wl}-Bexport' 9478 runpath_var='LD_RUN_PATH' 9479 9480 if test "$GCC" = yes; then 9481 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9482 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9483 else 9484 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9485 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9486 fi 9487 ;; 9488 9489 uts4*) 9490 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9491 hardcode_libdir_flag_spec='-L$libdir' 9492 hardcode_shlibpath_var=no 9493 ;; 9494 9495 *) 9496 ld_shlibs=no 9497 ;; 9498 esac 9499 fi 9500 9501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9502$as_echo "$ld_shlibs" >&6; } 9503test "$ld_shlibs" = no && can_build_shared=no 9504 9505# 9506# Do we need to explicitly link libc? 9507# 9508case "x$archive_cmds_need_lc" in 9509x|xyes) 9510 # Assume -lc should be added 9511 archive_cmds_need_lc=yes 9512 9513 if test "$enable_shared" = yes && test "$GCC" = yes; then 9514 case $archive_cmds in 9515 *'~'*) 9516 # FIXME: we may have to deal with multi-command sequences. 9517 ;; 9518 '$CC '*) 9519 # Test whether the compiler implicitly links with -lc since on some 9520 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9521 # to ld, don't add -lc before -lgcc. 9522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9523$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9524 $rm conftest* 9525 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9526 9527 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9528 (eval $ac_compile) 2>&5 9529 ac_status=$? 9530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9531 test $ac_status = 0; } 2>conftest.err; then 9532 soname=conftest 9533 lib=conftest 9534 libobjs=conftest.$ac_objext 9535 deplibs= 9536 wl=$lt_prog_compiler_wl 9537 pic_flag=$lt_prog_compiler_pic 9538 compiler_flags=-v 9539 linker_flags=-v 9540 verstring= 9541 output_objdir=. 9542 libname=conftest 9543 lt_save_allow_undefined_flag=$allow_undefined_flag 9544 allow_undefined_flag= 9545 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9546 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 9547 ac_status=$? 9548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9549 test $ac_status = 0; } 9550 then 9551 archive_cmds_need_lc=no 9552 else 9553 archive_cmds_need_lc=yes 9554 fi 9555 allow_undefined_flag=$lt_save_allow_undefined_flag 9556 else 9557 cat conftest.err 1>&5 9558 fi 9559 $rm conftest* 9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 9561$as_echo "$archive_cmds_need_lc" >&6; } 9562 ;; 9563 esac 9564 fi 9565 ;; 9566esac 9567 9568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9569$as_echo_n "checking dynamic linker characteristics... " >&6; } 9570library_names_spec= 9571libname_spec='lib$name' 9572soname_spec= 9573shrext_cmds=".so" 9574postinstall_cmds= 9575postuninstall_cmds= 9576finish_cmds= 9577finish_eval= 9578shlibpath_var= 9579shlibpath_overrides_runpath=unknown 9580version_type=none 9581dynamic_linker="$host_os ld.so" 9582sys_lib_dlsearch_path_spec="/lib /usr/lib" 9583 9584if test "$GCC" = yes; then 9585 case $host_os in 9586 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9587 *) lt_awk_arg="/^libraries:/" ;; 9588 esac 9589 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9590 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 9591 # if the path contains ";" then we assume it to be the separator 9592 # otherwise default to the standard path separator (i.e. ":") - it is 9593 # assumed that no part of a normal pathname contains ";" but that should 9594 # okay in the real world where ";" in dirpaths is itself problematic. 9595 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9596 else 9597 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9598 fi 9599 # Ok, now we have the path, separated by spaces, we can step through it 9600 # and add multilib dir if necessary. 9601 lt_tmp_lt_search_path_spec= 9602 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9603 for lt_sys_path in $lt_search_path_spec; do 9604 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9605 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9606 else 9607 test -d "$lt_sys_path" && \ 9608 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9609 fi 9610 done 9611 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 9612BEGIN {RS=" "; FS="/|\n";} { 9613 lt_foo=""; 9614 lt_count=0; 9615 for (lt_i = NF; lt_i > 0; lt_i--) { 9616 if ($lt_i != "" && $lt_i != ".") { 9617 if ($lt_i == "..") { 9618 lt_count++; 9619 } else { 9620 if (lt_count == 0) { 9621 lt_foo="/" $lt_i lt_foo; 9622 } else { 9623 lt_count--; 9624 } 9625 } 9626 } 9627 } 9628 if (lt_foo != "") { lt_freq[lt_foo]++; } 9629 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9630}'` 9631 sys_lib_search_path_spec=`echo $lt_search_path_spec` 9632else 9633 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9634fi 9635need_lib_prefix=unknown 9636hardcode_into_libs=no 9637 9638# when you set need_version to no, make sure it does not cause -set_version 9639# flags to be left without arguments 9640need_version=unknown 9641 9642case $host_os in 9643aix3*) 9644 version_type=linux 9645 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9646 shlibpath_var=LIBPATH 9647 9648 # AIX 3 has no versioning support, so we append a major version to the name. 9649 soname_spec='${libname}${release}${shared_ext}$major' 9650 ;; 9651 9652aix[4-9]*) 9653 version_type=linux 9654 need_lib_prefix=no 9655 need_version=no 9656 hardcode_into_libs=yes 9657 if test "$host_cpu" = ia64; then 9658 # AIX 5 supports IA64 9659 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9660 shlibpath_var=LD_LIBRARY_PATH 9661 else 9662 # With GCC up to 2.95.x, collect2 would create an import file 9663 # for dependence libraries. The import file would start with 9664 # the line `#! .'. This would cause the generated library to 9665 # depend on `.', always an invalid library. This was fixed in 9666 # development snapshots of GCC prior to 3.0. 9667 case $host_os in 9668 aix4 | aix4.[01] | aix4.[01].*) 9669 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9670 echo ' yes ' 9671 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9672 : 9673 else 9674 can_build_shared=no 9675 fi 9676 ;; 9677 esac 9678 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9679 # soname into executable. Probably we can add versioning support to 9680 # collect2, so additional links can be useful in future. 9681 if test "$aix_use_runtimelinking" = yes; then 9682 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9683 # instead of lib<name>.a to let people know that these are not 9684 # typical AIX shared libraries. 9685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9686 else 9687 # We preserve .a as extension for shared libraries through AIX4.2 9688 # and later when we are not doing run time linking. 9689 library_names_spec='${libname}${release}.a $libname.a' 9690 soname_spec='${libname}${release}${shared_ext}$major' 9691 fi 9692 shlibpath_var=LIBPATH 9693 fi 9694 ;; 9695 9696amigaos*) 9697 library_names_spec='$libname.ixlibrary $libname.a' 9698 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9699 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' 9700 ;; 9701 9702beos*) 9703 library_names_spec='${libname}${shared_ext}' 9704 dynamic_linker="$host_os ld.so" 9705 shlibpath_var=LIBRARY_PATH 9706 ;; 9707 9708bsdi[45]*) 9709 version_type=linux 9710 need_version=no 9711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9712 soname_spec='${libname}${release}${shared_ext}$major' 9713 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9714 shlibpath_var=LD_LIBRARY_PATH 9715 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9716 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9717 # the default ld.so.conf also contains /usr/contrib/lib and 9718 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9719 # libtool to hard-code these into programs 9720 ;; 9721 9722cygwin* | mingw* | pw32*) 9723 version_type=windows 9724 shrext_cmds=".dll" 9725 need_version=no 9726 need_lib_prefix=no 9727 9728 case $GCC,$host_os in 9729 yes,cygwin* | yes,mingw* | yes,pw32*) 9730 library_names_spec='$libname.dll.a' 9731 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9732 postinstall_cmds='base_file=`basename \${file}`~ 9733 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9734 dldir=$destdir/`dirname \$dlpath`~ 9735 test -d \$dldir || mkdir -p \$dldir~ 9736 $install_prog $dir/$dlname \$dldir/$dlname~ 9737 chmod a+x \$dldir/$dlname' 9738 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9739 dlpath=$dir/\$dldll~ 9740 $rm \$dlpath' 9741 shlibpath_overrides_runpath=yes 9742 9743 case $host_os in 9744 cygwin*) 9745 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9746 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9747 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9748 ;; 9749 mingw*) 9750 # MinGW DLLs use traditional 'lib' prefix 9751 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9752 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9753 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9754 # It is most probably a Windows format PATH printed by 9755 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9756 # path with ; separators, and with drive letters. We can handle the 9757 # drive letters (cygwin fileutils understands them), so leave them, 9758 # especially as we might pass files found there to a mingw objdump, 9759 # which wouldn't understand a cygwinified path. Ahh. 9760 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9761 else 9762 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9763 fi 9764 ;; 9765 pw32*) 9766 # pw32 DLLs use 'pw' prefix rather than 'lib' 9767 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9768 ;; 9769 esac 9770 ;; 9771 9772 *) 9773 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9774 ;; 9775 esac 9776 dynamic_linker='Win32 ld.exe' 9777 # FIXME: first we should search . and the directory the executable is in 9778 shlibpath_var=PATH 9779 ;; 9780 9781darwin* | rhapsody*) 9782 dynamic_linker="$host_os dyld" 9783 version_type=darwin 9784 need_lib_prefix=no 9785 need_version=no 9786 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9787 soname_spec='${libname}${release}${major}$shared_ext' 9788 shlibpath_overrides_runpath=yes 9789 shlibpath_var=DYLD_LIBRARY_PATH 9790 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9791 9792 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9793 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9794 ;; 9795 9796dgux*) 9797 version_type=linux 9798 need_lib_prefix=no 9799 need_version=no 9800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9801 soname_spec='${libname}${release}${shared_ext}$major' 9802 shlibpath_var=LD_LIBRARY_PATH 9803 ;; 9804 9805freebsd1*) 9806 dynamic_linker=no 9807 ;; 9808 9809freebsd* | dragonfly*) 9810 # DragonFly does not have aout. When/if they implement a new 9811 # versioning mechanism, adjust this. 9812 if test -x /usr/bin/objformat; then 9813 objformat=`/usr/bin/objformat` 9814 else 9815 case $host_os in 9816 freebsd[123]*) objformat=aout ;; 9817 *) objformat=elf ;; 9818 esac 9819 fi 9820 version_type=freebsd-$objformat 9821 case $version_type in 9822 freebsd-elf*) 9823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9824 need_version=no 9825 need_lib_prefix=no 9826 ;; 9827 freebsd-*) 9828 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9829 need_version=yes 9830 ;; 9831 esac 9832 shlibpath_var=LD_LIBRARY_PATH 9833 case $host_os in 9834 freebsd2*) 9835 shlibpath_overrides_runpath=yes 9836 ;; 9837 freebsd3.[01]* | freebsdelf3.[01]*) 9838 shlibpath_overrides_runpath=yes 9839 hardcode_into_libs=yes 9840 ;; 9841 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9842 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9843 shlibpath_overrides_runpath=no 9844 hardcode_into_libs=yes 9845 ;; 9846 *) # from 4.6 on, and DragonFly 9847 shlibpath_overrides_runpath=yes 9848 hardcode_into_libs=yes 9849 ;; 9850 esac 9851 ;; 9852 9853gnu*) 9854 version_type=linux 9855 need_lib_prefix=no 9856 need_version=no 9857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9858 soname_spec='${libname}${release}${shared_ext}$major' 9859 shlibpath_var=LD_LIBRARY_PATH 9860 hardcode_into_libs=yes 9861 ;; 9862 9863hpux9* | hpux10* | hpux11*) 9864 # Give a soname corresponding to the major version so that dld.sl refuses to 9865 # link against other versions. 9866 version_type=sunos 9867 need_lib_prefix=no 9868 need_version=no 9869 case $host_cpu in 9870 ia64*) 9871 shrext_cmds='.so' 9872 hardcode_into_libs=yes 9873 dynamic_linker="$host_os dld.so" 9874 shlibpath_var=LD_LIBRARY_PATH 9875 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9877 soname_spec='${libname}${release}${shared_ext}$major' 9878 if test "X$HPUX_IA64_MODE" = X32; then 9879 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9880 else 9881 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9882 fi 9883 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9884 ;; 9885 hppa*64*) 9886 shrext_cmds='.sl' 9887 hardcode_into_libs=yes 9888 dynamic_linker="$host_os dld.sl" 9889 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9890 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9892 soname_spec='${libname}${release}${shared_ext}$major' 9893 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9894 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9895 ;; 9896 *) 9897 shrext_cmds='.sl' 9898 dynamic_linker="$host_os dld.sl" 9899 shlibpath_var=SHLIB_PATH 9900 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9902 soname_spec='${libname}${release}${shared_ext}$major' 9903 ;; 9904 esac 9905 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9906 postinstall_cmds='chmod 555 $lib' 9907 ;; 9908 9909interix[3-9]*) 9910 version_type=linux 9911 need_lib_prefix=no 9912 need_version=no 9913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9914 soname_spec='${libname}${release}${shared_ext}$major' 9915 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9916 shlibpath_var=LD_LIBRARY_PATH 9917 shlibpath_overrides_runpath=no 9918 hardcode_into_libs=yes 9919 ;; 9920 9921irix5* | irix6* | nonstopux*) 9922 case $host_os in 9923 nonstopux*) version_type=nonstopux ;; 9924 *) 9925 if test "$lt_cv_prog_gnu_ld" = yes; then 9926 version_type=linux 9927 else 9928 version_type=irix 9929 fi ;; 9930 esac 9931 need_lib_prefix=no 9932 need_version=no 9933 soname_spec='${libname}${release}${shared_ext}$major' 9934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9935 case $host_os in 9936 irix5* | nonstopux*) 9937 libsuff= shlibsuff= 9938 ;; 9939 *) 9940 case $LD in # libtool.m4 will add one of these switches to LD 9941 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9942 libsuff= shlibsuff= libmagic=32-bit;; 9943 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9944 libsuff=32 shlibsuff=N32 libmagic=N32;; 9945 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9946 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9947 *) libsuff= shlibsuff= libmagic=never-match;; 9948 esac 9949 ;; 9950 esac 9951 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9952 shlibpath_overrides_runpath=no 9953 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9954 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9955 hardcode_into_libs=yes 9956 ;; 9957 9958# No shared lib support for Linux oldld, aout, or coff. 9959linux*oldld* | linux*aout* | linux*coff*) 9960 dynamic_linker=no 9961 ;; 9962 9963# This must be Linux ELF. 9964linux* | k*bsd*-gnu) 9965 version_type=linux 9966 need_lib_prefix=no 9967 need_version=no 9968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9969 soname_spec='${libname}${release}${shared_ext}$major' 9970 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9971 shlibpath_var=LD_LIBRARY_PATH 9972 shlibpath_overrides_runpath=no 9973 # This implies no fast_install, which is unacceptable. 9974 # Some rework will be needed to allow for fast_install 9975 # before this can be enabled. 9976 hardcode_into_libs=yes 9977 9978 # Append ld.so.conf contents to the search path 9979 if test -f /etc/ld.so.conf; then 9980 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' ' '` 9981 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9982 fi 9983 9984 # We used to test for /lib/ld.so.1 and disable shared libraries on 9985 # powerpc, because MkLinux only supported shared libraries with the 9986 # GNU dynamic linker. Since this was broken with cross compilers, 9987 # most powerpc-linux boxes support dynamic linking these days and 9988 # people can always --disable-shared, the test was removed, and we 9989 # assume the GNU/Linux dynamic linker is in use. 9990 dynamic_linker='GNU/Linux ld.so' 9991 ;; 9992 9993netbsd*) 9994 version_type=sunos 9995 need_lib_prefix=no 9996 need_version=no 9997 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9999 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10000 dynamic_linker='NetBSD (a.out) ld.so' 10001 else 10002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10003 soname_spec='${libname}${release}${shared_ext}$major' 10004 dynamic_linker='NetBSD ld.elf_so' 10005 fi 10006 shlibpath_var=LD_LIBRARY_PATH 10007 shlibpath_overrides_runpath=yes 10008 hardcode_into_libs=yes 10009 ;; 10010 10011newsos6) 10012 version_type=linux 10013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10014 shlibpath_var=LD_LIBRARY_PATH 10015 shlibpath_overrides_runpath=yes 10016 ;; 10017 10018nto-qnx*) 10019 version_type=linux 10020 need_lib_prefix=no 10021 need_version=no 10022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10023 soname_spec='${libname}${release}${shared_ext}$major' 10024 shlibpath_var=LD_LIBRARY_PATH 10025 shlibpath_overrides_runpath=yes 10026 ;; 10027 10028openbsd*) 10029 version_type=sunos 10030 sys_lib_dlsearch_path_spec="/usr/lib" 10031 need_lib_prefix=no 10032 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10033 case $host_os in 10034 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10035 *) need_version=no ;; 10036 esac 10037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10038 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10039 shlibpath_var=LD_LIBRARY_PATH 10040 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10041 case $host_os in 10042 openbsd2.[89] | openbsd2.[89].*) 10043 shlibpath_overrides_runpath=no 10044 ;; 10045 *) 10046 shlibpath_overrides_runpath=yes 10047 ;; 10048 esac 10049 else 10050 shlibpath_overrides_runpath=yes 10051 fi 10052 ;; 10053 10054os2*) 10055 libname_spec='$name' 10056 shrext_cmds=".dll" 10057 need_lib_prefix=no 10058 library_names_spec='$libname${shared_ext} $libname.a' 10059 dynamic_linker='OS/2 ld.exe' 10060 shlibpath_var=LIBPATH 10061 ;; 10062 10063osf3* | osf4* | osf5*) 10064 version_type=osf 10065 need_lib_prefix=no 10066 need_version=no 10067 soname_spec='${libname}${release}${shared_ext}$major' 10068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10069 shlibpath_var=LD_LIBRARY_PATH 10070 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10071 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10072 ;; 10073 10074rdos*) 10075 dynamic_linker=no 10076 ;; 10077 10078solaris*) 10079 version_type=linux 10080 need_lib_prefix=no 10081 need_version=no 10082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10083 soname_spec='${libname}${release}${shared_ext}$major' 10084 shlibpath_var=LD_LIBRARY_PATH 10085 shlibpath_overrides_runpath=yes 10086 hardcode_into_libs=yes 10087 # ldd complains unless libraries are executable 10088 postinstall_cmds='chmod +x $lib' 10089 ;; 10090 10091sunos4*) 10092 version_type=sunos 10093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10094 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10095 shlibpath_var=LD_LIBRARY_PATH 10096 shlibpath_overrides_runpath=yes 10097 if test "$with_gnu_ld" = yes; then 10098 need_lib_prefix=no 10099 fi 10100 need_version=yes 10101 ;; 10102 10103sysv4 | sysv4.3*) 10104 version_type=linux 10105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10106 soname_spec='${libname}${release}${shared_ext}$major' 10107 shlibpath_var=LD_LIBRARY_PATH 10108 case $host_vendor in 10109 sni) 10110 shlibpath_overrides_runpath=no 10111 need_lib_prefix=no 10112 export_dynamic_flag_spec='${wl}-Blargedynsym' 10113 runpath_var=LD_RUN_PATH 10114 ;; 10115 siemens) 10116 need_lib_prefix=no 10117 ;; 10118 motorola) 10119 need_lib_prefix=no 10120 need_version=no 10121 shlibpath_overrides_runpath=no 10122 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10123 ;; 10124 esac 10125 ;; 10126 10127sysv4*MP*) 10128 if test -d /usr/nec ;then 10129 version_type=linux 10130 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10131 soname_spec='$libname${shared_ext}.$major' 10132 shlibpath_var=LD_LIBRARY_PATH 10133 fi 10134 ;; 10135 10136sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10137 version_type=freebsd-elf 10138 need_lib_prefix=no 10139 need_version=no 10140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10141 soname_spec='${libname}${release}${shared_ext}$major' 10142 shlibpath_var=LD_LIBRARY_PATH 10143 hardcode_into_libs=yes 10144 if test "$with_gnu_ld" = yes; then 10145 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10146 shlibpath_overrides_runpath=no 10147 else 10148 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10149 shlibpath_overrides_runpath=yes 10150 case $host_os in 10151 sco3.2v5*) 10152 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10153 ;; 10154 esac 10155 fi 10156 sys_lib_dlsearch_path_spec='/usr/lib' 10157 ;; 10158 10159uts4*) 10160 version_type=linux 10161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10162 soname_spec='${libname}${release}${shared_ext}$major' 10163 shlibpath_var=LD_LIBRARY_PATH 10164 ;; 10165 10166*) 10167 dynamic_linker=no 10168 ;; 10169esac 10170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10171$as_echo "$dynamic_linker" >&6; } 10172test "$dynamic_linker" = no && can_build_shared=no 10173 10174if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then : 10175 $as_echo_n "(cached) " >&6 10176else 10177 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 10178fi 10179 10180sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10181if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then : 10182 $as_echo_n "(cached) " >&6 10183else 10184 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 10185fi 10186 10187sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10188 10189variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10190if test "$GCC" = yes; then 10191 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10192fi 10193 10194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10195$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10196hardcode_action= 10197if test -n "$hardcode_libdir_flag_spec" || \ 10198 test -n "$runpath_var" || \ 10199 test "X$hardcode_automatic" = "Xyes" ; then 10200 10201 # We can hardcode non-existant directories. 10202 if test "$hardcode_direct" != no && 10203 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10204 # have to relink, otherwise we might link with an installed library 10205 # when we should be linking with a yet-to-be-installed one 10206 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 10207 test "$hardcode_minus_L" != no; then 10208 # Linking always hardcodes the temporary library directory. 10209 hardcode_action=relink 10210 else 10211 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10212 hardcode_action=immediate 10213 fi 10214else 10215 # We cannot hardcode anything, or else we can only hardcode existing 10216 # directories. 10217 hardcode_action=unsupported 10218fi 10219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10220$as_echo "$hardcode_action" >&6; } 10221 10222if test "$hardcode_action" = relink; then 10223 # Fast installation is not supported 10224 enable_fast_install=no 10225elif test "$shlibpath_overrides_runpath" = yes || 10226 test "$enable_shared" = no; then 10227 # Fast installation is not necessary 10228 enable_fast_install=needless 10229fi 10230 10231striplib= 10232old_striplib= 10233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 10234$as_echo_n "checking whether stripping libraries is possible... " >&6; } 10235if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 10236 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10237 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10239$as_echo "yes" >&6; } 10240else 10241# FIXME - insert some real tests, host_os isn't really good enough 10242 case $host_os in 10243 darwin*) 10244 if test -n "$STRIP" ; then 10245 striplib="$STRIP -x" 10246 old_striplib="$STRIP -S" 10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10248$as_echo "yes" >&6; } 10249 else 10250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10251$as_echo "no" >&6; } 10252fi 10253 ;; 10254 *) 10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10256$as_echo "no" >&6; } 10257 ;; 10258 esac 10259fi 10260 10261if test "x$enable_dlopen" != xyes; then 10262 enable_dlopen=unknown 10263 enable_dlopen_self=unknown 10264 enable_dlopen_self_static=unknown 10265else 10266 lt_cv_dlopen=no 10267 lt_cv_dlopen_libs= 10268 10269 case $host_os in 10270 beos*) 10271 lt_cv_dlopen="load_add_on" 10272 lt_cv_dlopen_libs= 10273 lt_cv_dlopen_self=yes 10274 ;; 10275 10276 mingw* | pw32*) 10277 lt_cv_dlopen="LoadLibrary" 10278 lt_cv_dlopen_libs= 10279 ;; 10280 10281 cygwin*) 10282 lt_cv_dlopen="dlopen" 10283 lt_cv_dlopen_libs= 10284 ;; 10285 10286 darwin*) 10287 # if libdl is installed we need to link against it 10288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10289$as_echo_n "checking for dlopen in -ldl... " >&6; } 10290if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10291 $as_echo_n "(cached) " >&6 10292else 10293 ac_check_lib_save_LIBS=$LIBS 10294LIBS="-ldl $LIBS" 10295cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10296/* end confdefs.h. */ 10297 10298/* Override any GCC internal prototype to avoid an error. 10299 Use char because int might match the return type of a GCC 10300 builtin and then its argument prototype would still apply. */ 10301#ifdef __cplusplus 10302extern "C" 10303#endif 10304char dlopen (); 10305int 10306main () 10307{ 10308return dlopen (); 10309 ; 10310 return 0; 10311} 10312_ACEOF 10313if ac_fn_c_try_link "$LINENO"; then : 10314 ac_cv_lib_dl_dlopen=yes 10315else 10316 ac_cv_lib_dl_dlopen=no 10317fi 10318rm -f core conftest.err conftest.$ac_objext \ 10319 conftest$ac_exeext conftest.$ac_ext 10320LIBS=$ac_check_lib_save_LIBS 10321fi 10322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10323$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10324if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10325 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10326else 10327 10328 lt_cv_dlopen="dyld" 10329 lt_cv_dlopen_libs= 10330 lt_cv_dlopen_self=yes 10331 10332fi 10333 10334 ;; 10335 10336 *) 10337 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10338if test "x$ac_cv_func_shl_load" = x""yes; then : 10339 lt_cv_dlopen="shl_load" 10340else 10341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10342$as_echo_n "checking for shl_load in -ldld... " >&6; } 10343if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 10344 $as_echo_n "(cached) " >&6 10345else 10346 ac_check_lib_save_LIBS=$LIBS 10347LIBS="-ldld $LIBS" 10348cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10349/* end confdefs.h. */ 10350 10351/* Override any GCC internal prototype to avoid an error. 10352 Use char because int might match the return type of a GCC 10353 builtin and then its argument prototype would still apply. */ 10354#ifdef __cplusplus 10355extern "C" 10356#endif 10357char shl_load (); 10358int 10359main () 10360{ 10361return shl_load (); 10362 ; 10363 return 0; 10364} 10365_ACEOF 10366if ac_fn_c_try_link "$LINENO"; then : 10367 ac_cv_lib_dld_shl_load=yes 10368else 10369 ac_cv_lib_dld_shl_load=no 10370fi 10371rm -f core conftest.err conftest.$ac_objext \ 10372 conftest$ac_exeext conftest.$ac_ext 10373LIBS=$ac_check_lib_save_LIBS 10374fi 10375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10376$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10377if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 10378 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10379else 10380 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10381if test "x$ac_cv_func_dlopen" = x""yes; then : 10382 lt_cv_dlopen="dlopen" 10383else 10384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10385$as_echo_n "checking for dlopen in -ldl... " >&6; } 10386if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10387 $as_echo_n "(cached) " >&6 10388else 10389 ac_check_lib_save_LIBS=$LIBS 10390LIBS="-ldl $LIBS" 10391cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10392/* end confdefs.h. */ 10393 10394/* Override any GCC internal prototype to avoid an error. 10395 Use char because int might match the return type of a GCC 10396 builtin and then its argument prototype would still apply. */ 10397#ifdef __cplusplus 10398extern "C" 10399#endif 10400char dlopen (); 10401int 10402main () 10403{ 10404return dlopen (); 10405 ; 10406 return 0; 10407} 10408_ACEOF 10409if ac_fn_c_try_link "$LINENO"; then : 10410 ac_cv_lib_dl_dlopen=yes 10411else 10412 ac_cv_lib_dl_dlopen=no 10413fi 10414rm -f core conftest.err conftest.$ac_objext \ 10415 conftest$ac_exeext conftest.$ac_ext 10416LIBS=$ac_check_lib_save_LIBS 10417fi 10418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10419$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10420if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10421 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10422else 10423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10424$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10425if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 10426 $as_echo_n "(cached) " >&6 10427else 10428 ac_check_lib_save_LIBS=$LIBS 10429LIBS="-lsvld $LIBS" 10430cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10431/* end confdefs.h. */ 10432 10433/* Override any GCC internal prototype to avoid an error. 10434 Use char because int might match the return type of a GCC 10435 builtin and then its argument prototype would still apply. */ 10436#ifdef __cplusplus 10437extern "C" 10438#endif 10439char dlopen (); 10440int 10441main () 10442{ 10443return dlopen (); 10444 ; 10445 return 0; 10446} 10447_ACEOF 10448if ac_fn_c_try_link "$LINENO"; then : 10449 ac_cv_lib_svld_dlopen=yes 10450else 10451 ac_cv_lib_svld_dlopen=no 10452fi 10453rm -f core conftest.err conftest.$ac_objext \ 10454 conftest$ac_exeext conftest.$ac_ext 10455LIBS=$ac_check_lib_save_LIBS 10456fi 10457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10458$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10459if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 10460 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10461else 10462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10463$as_echo_n "checking for dld_link in -ldld... " >&6; } 10464if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 10465 $as_echo_n "(cached) " >&6 10466else 10467 ac_check_lib_save_LIBS=$LIBS 10468LIBS="-ldld $LIBS" 10469cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10470/* end confdefs.h. */ 10471 10472/* Override any GCC internal prototype to avoid an error. 10473 Use char because int might match the return type of a GCC 10474 builtin and then its argument prototype would still apply. */ 10475#ifdef __cplusplus 10476extern "C" 10477#endif 10478char dld_link (); 10479int 10480main () 10481{ 10482return dld_link (); 10483 ; 10484 return 0; 10485} 10486_ACEOF 10487if ac_fn_c_try_link "$LINENO"; then : 10488 ac_cv_lib_dld_dld_link=yes 10489else 10490 ac_cv_lib_dld_dld_link=no 10491fi 10492rm -f core conftest.err conftest.$ac_objext \ 10493 conftest$ac_exeext conftest.$ac_ext 10494LIBS=$ac_check_lib_save_LIBS 10495fi 10496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10497$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10498if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 10499 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10500fi 10501 10502 10503fi 10504 10505 10506fi 10507 10508 10509fi 10510 10511 10512fi 10513 10514 10515fi 10516 10517 ;; 10518 esac 10519 10520 if test "x$lt_cv_dlopen" != xno; then 10521 enable_dlopen=yes 10522 else 10523 enable_dlopen=no 10524 fi 10525 10526 case $lt_cv_dlopen in 10527 dlopen) 10528 save_CPPFLAGS="$CPPFLAGS" 10529 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10530 10531 save_LDFLAGS="$LDFLAGS" 10532 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10533 10534 save_LIBS="$LIBS" 10535 LIBS="$lt_cv_dlopen_libs $LIBS" 10536 10537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10538$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10539if test "${lt_cv_dlopen_self+set}" = set; then : 10540 $as_echo_n "(cached) " >&6 10541else 10542 if test "$cross_compiling" = yes; then : 10543 lt_cv_dlopen_self=cross 10544else 10545 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10546 lt_status=$lt_dlunknown 10547 cat > conftest.$ac_ext <<EOF 10548#line 10548 "configure" 10549#include "confdefs.h" 10550 10551#if HAVE_DLFCN_H 10552#include <dlfcn.h> 10553#endif 10554 10555#include <stdio.h> 10556 10557#ifdef RTLD_GLOBAL 10558# define LT_DLGLOBAL RTLD_GLOBAL 10559#else 10560# ifdef DL_GLOBAL 10561# define LT_DLGLOBAL DL_GLOBAL 10562# else 10563# define LT_DLGLOBAL 0 10564# endif 10565#endif 10566 10567/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10568 find out it does not work in some platform. */ 10569#ifndef LT_DLLAZY_OR_NOW 10570# ifdef RTLD_LAZY 10571# define LT_DLLAZY_OR_NOW RTLD_LAZY 10572# else 10573# ifdef DL_LAZY 10574# define LT_DLLAZY_OR_NOW DL_LAZY 10575# else 10576# ifdef RTLD_NOW 10577# define LT_DLLAZY_OR_NOW RTLD_NOW 10578# else 10579# ifdef DL_NOW 10580# define LT_DLLAZY_OR_NOW DL_NOW 10581# else 10582# define LT_DLLAZY_OR_NOW 0 10583# endif 10584# endif 10585# endif 10586# endif 10587#endif 10588 10589#ifdef __cplusplus 10590extern "C" void exit (int); 10591#endif 10592 10593void fnord() { int i=42;} 10594int main () 10595{ 10596 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10597 int status = $lt_dlunknown; 10598 10599 if (self) 10600 { 10601 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10602 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10603 /* dlclose (self); */ 10604 } 10605 else 10606 puts (dlerror ()); 10607 10608 exit (status); 10609} 10610EOF 10611 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10612 (eval $ac_link) 2>&5 10613 ac_status=$? 10614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10615 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10616 (./conftest; exit; ) >&5 2>/dev/null 10617 lt_status=$? 10618 case x$lt_status in 10619 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10620 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10621 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10622 esac 10623 else : 10624 # compilation failed 10625 lt_cv_dlopen_self=no 10626 fi 10627fi 10628rm -fr conftest* 10629 10630 10631fi 10632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 10633$as_echo "$lt_cv_dlopen_self" >&6; } 10634 10635 if test "x$lt_cv_dlopen_self" = xyes; then 10636 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 10638$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10639if test "${lt_cv_dlopen_self_static+set}" = set; then : 10640 $as_echo_n "(cached) " >&6 10641else 10642 if test "$cross_compiling" = yes; then : 10643 lt_cv_dlopen_self_static=cross 10644else 10645 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10646 lt_status=$lt_dlunknown 10647 cat > conftest.$ac_ext <<EOF 10648#line 10648 "configure" 10649#include "confdefs.h" 10650 10651#if HAVE_DLFCN_H 10652#include <dlfcn.h> 10653#endif 10654 10655#include <stdio.h> 10656 10657#ifdef RTLD_GLOBAL 10658# define LT_DLGLOBAL RTLD_GLOBAL 10659#else 10660# ifdef DL_GLOBAL 10661# define LT_DLGLOBAL DL_GLOBAL 10662# else 10663# define LT_DLGLOBAL 0 10664# endif 10665#endif 10666 10667/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10668 find out it does not work in some platform. */ 10669#ifndef LT_DLLAZY_OR_NOW 10670# ifdef RTLD_LAZY 10671# define LT_DLLAZY_OR_NOW RTLD_LAZY 10672# else 10673# ifdef DL_LAZY 10674# define LT_DLLAZY_OR_NOW DL_LAZY 10675# else 10676# ifdef RTLD_NOW 10677# define LT_DLLAZY_OR_NOW RTLD_NOW 10678# else 10679# ifdef DL_NOW 10680# define LT_DLLAZY_OR_NOW DL_NOW 10681# else 10682# define LT_DLLAZY_OR_NOW 0 10683# endif 10684# endif 10685# endif 10686# endif 10687#endif 10688 10689#ifdef __cplusplus 10690extern "C" void exit (int); 10691#endif 10692 10693void fnord() { int i=42;} 10694int main () 10695{ 10696 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10697 int status = $lt_dlunknown; 10698 10699 if (self) 10700 { 10701 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10702 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10703 /* dlclose (self); */ 10704 } 10705 else 10706 puts (dlerror ()); 10707 10708 exit (status); 10709} 10710EOF 10711 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10712 (eval $ac_link) 2>&5 10713 ac_status=$? 10714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10715 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10716 (./conftest; exit; ) >&5 2>/dev/null 10717 lt_status=$? 10718 case x$lt_status in 10719 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10720 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10721 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10722 esac 10723 else : 10724 # compilation failed 10725 lt_cv_dlopen_self_static=no 10726 fi 10727fi 10728rm -fr conftest* 10729 10730 10731fi 10732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 10733$as_echo "$lt_cv_dlopen_self_static" >&6; } 10734 fi 10735 10736 CPPFLAGS="$save_CPPFLAGS" 10737 LDFLAGS="$save_LDFLAGS" 10738 LIBS="$save_LIBS" 10739 ;; 10740 esac 10741 10742 case $lt_cv_dlopen_self in 10743 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10744 *) enable_dlopen_self=unknown ;; 10745 esac 10746 10747 case $lt_cv_dlopen_self_static in 10748 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10749 *) enable_dlopen_self_static=unknown ;; 10750 esac 10751fi 10752 10753 10754# Report which library types will actually be built 10755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 10756$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 10758$as_echo "$can_build_shared" >&6; } 10759 10760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 10761$as_echo_n "checking whether to build shared libraries... " >&6; } 10762test "$can_build_shared" = "no" && enable_shared=no 10763 10764# On AIX, shared libraries and static libraries use the same namespace, and 10765# are all built from PIC. 10766case $host_os in 10767aix3*) 10768 test "$enable_shared" = yes && enable_static=no 10769 if test -n "$RANLIB"; then 10770 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10771 postinstall_cmds='$RANLIB $lib' 10772 fi 10773 ;; 10774 10775aix[4-9]*) 10776 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10777 test "$enable_shared" = yes && enable_static=no 10778 fi 10779 ;; 10780esac 10781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 10782$as_echo "$enable_shared" >&6; } 10783 10784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 10785$as_echo_n "checking whether to build static libraries... " >&6; } 10786# Make sure either enable_shared or enable_static is yes. 10787test "$enable_shared" = yes || enable_static=yes 10788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 10789$as_echo "$enable_static" >&6; } 10790 10791# The else clause should only fire when bootstrapping the 10792# libtool distribution, otherwise you forgot to ship ltmain.sh 10793# with your package, and you will get complaints that there are 10794# no rules to generate ltmain.sh. 10795if test -f "$ltmain"; then 10796 # See if we are running on zsh, and set the options which allow our commands through 10797 # without removal of \ escapes. 10798 if test -n "${ZSH_VERSION+set}" ; then 10799 setopt NO_GLOB_SUBST 10800 fi 10801 # Now quote all the things that may contain metacharacters while being 10802 # careful not to overquote the AC_SUBSTed values. We take copies of the 10803 # variables and quote the copies for generation of the libtool script. 10804 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10805 SED SHELL STRIP \ 10806 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10807 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10808 deplibs_check_method reload_flag reload_cmds need_locks \ 10809 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10810 lt_cv_sys_global_symbol_to_c_name_address \ 10811 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10812 old_postinstall_cmds old_postuninstall_cmds \ 10813 compiler \ 10814 CC \ 10815 LD \ 10816 lt_prog_compiler_wl \ 10817 lt_prog_compiler_pic \ 10818 lt_prog_compiler_static \ 10819 lt_prog_compiler_no_builtin_flag \ 10820 export_dynamic_flag_spec \ 10821 thread_safe_flag_spec \ 10822 whole_archive_flag_spec \ 10823 enable_shared_with_static_runtimes \ 10824 old_archive_cmds \ 10825 old_archive_from_new_cmds \ 10826 predep_objects \ 10827 postdep_objects \ 10828 predeps \ 10829 postdeps \ 10830 compiler_lib_search_path \ 10831 compiler_lib_search_dirs \ 10832 archive_cmds \ 10833 archive_expsym_cmds \ 10834 postinstall_cmds \ 10835 postuninstall_cmds \ 10836 old_archive_from_expsyms_cmds \ 10837 allow_undefined_flag \ 10838 no_undefined_flag \ 10839 export_symbols_cmds \ 10840 hardcode_libdir_flag_spec \ 10841 hardcode_libdir_flag_spec_ld \ 10842 hardcode_libdir_separator \ 10843 hardcode_automatic \ 10844 module_cmds \ 10845 module_expsym_cmds \ 10846 lt_cv_prog_compiler_c_o \ 10847 fix_srcfile_path \ 10848 exclude_expsyms \ 10849 include_expsyms; do 10850 10851 case $var in 10852 old_archive_cmds | \ 10853 old_archive_from_new_cmds | \ 10854 archive_cmds | \ 10855 archive_expsym_cmds | \ 10856 module_cmds | \ 10857 module_expsym_cmds | \ 10858 old_archive_from_expsyms_cmds | \ 10859 export_symbols_cmds | \ 10860 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10861 postinstall_cmds | postuninstall_cmds | \ 10862 old_postinstall_cmds | old_postuninstall_cmds | \ 10863 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10864 # Double-quote double-evaled strings. 10865 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10866 ;; 10867 *) 10868 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10869 ;; 10870 esac 10871 done 10872 10873 case $lt_echo in 10874 *'\$0 --fallback-echo"') 10875 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10876 ;; 10877 esac 10878 10879cfgfile="${ofile}T" 10880 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10881 $rm -f "$cfgfile" 10882 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5 10883$as_echo "$as_me: creating $ofile" >&6;} 10884 10885 cat <<__EOF__ >> "$cfgfile" 10886#! $SHELL 10887 10888# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10889# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10890# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10891# 10892# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 10893# Free Software Foundation, Inc. 10894# 10895# This file is part of GNU Libtool: 10896# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10897# 10898# This program is free software; you can redistribute it and/or modify 10899# it under the terms of the GNU General Public License as published by 10900# the Free Software Foundation; either version 2 of the License, or 10901# (at your option) any later version. 10902# 10903# This program is distributed in the hope that it will be useful, but 10904# WITHOUT ANY WARRANTY; without even the implied warranty of 10905# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10906# General Public License for more details. 10907# 10908# You should have received a copy of the GNU General Public License 10909# along with this program; if not, write to the Free Software 10910# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10911# 10912# As a special exception to the GNU General Public License, if you 10913# distribute this file as part of a program that contains a 10914# configuration script generated by Autoconf, you may include it under 10915# the same distribution terms that you use for the rest of that program. 10916 10917# A sed program that does not truncate output. 10918SED=$lt_SED 10919 10920# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10921Xsed="$SED -e 1s/^X//" 10922 10923# The HP-UX ksh and POSIX shell print the target directory to stdout 10924# if CDPATH is set. 10925(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10926 10927# The names of the tagged configurations supported by this script. 10928available_tags= 10929 10930# ### BEGIN LIBTOOL CONFIG 10931 10932# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10933 10934# Shell to use when invoking shell scripts. 10935SHELL=$lt_SHELL 10936 10937# Whether or not to build shared libraries. 10938build_libtool_libs=$enable_shared 10939 10940# Whether or not to build static libraries. 10941build_old_libs=$enable_static 10942 10943# Whether or not to add -lc for building shared libraries. 10944build_libtool_need_lc=$archive_cmds_need_lc 10945 10946# Whether or not to disallow shared libs when runtime libs are static 10947allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10948 10949# Whether or not to optimize for fast installation. 10950fast_install=$enable_fast_install 10951 10952# The host system. 10953host_alias=$host_alias 10954host=$host 10955host_os=$host_os 10956 10957# The build system. 10958build_alias=$build_alias 10959build=$build 10960build_os=$build_os 10961 10962# An echo program that does not interpret backslashes. 10963echo=$lt_echo 10964 10965# The archiver. 10966AR=$lt_AR 10967AR_FLAGS=$lt_AR_FLAGS 10968 10969# A C compiler. 10970LTCC=$lt_LTCC 10971 10972# LTCC compiler flags. 10973LTCFLAGS=$lt_LTCFLAGS 10974 10975# A language-specific compiler. 10976CC=$lt_compiler 10977 10978# Is the compiler the GNU C compiler? 10979with_gcc=$GCC 10980 10981# An ERE matcher. 10982EGREP=$lt_EGREP 10983 10984# The linker used to build libraries. 10985LD=$lt_LD 10986 10987# Whether we need hard or soft links. 10988LN_S=$lt_LN_S 10989 10990# A BSD-compatible nm program. 10991NM=$lt_NM 10992 10993# A symbol stripping program 10994STRIP=$lt_STRIP 10995 10996# Used to examine libraries when file_magic_cmd begins "file" 10997MAGIC_CMD=$MAGIC_CMD 10998 10999# Used on cygwin: DLL creation program. 11000DLLTOOL="$DLLTOOL" 11001 11002# Used on cygwin: object dumper. 11003OBJDUMP="$OBJDUMP" 11004 11005# Used on cygwin: assembler. 11006AS="$AS" 11007 11008# The name of the directory that contains temporary libtool files. 11009objdir=$objdir 11010 11011# How to create reloadable object files. 11012reload_flag=$lt_reload_flag 11013reload_cmds=$lt_reload_cmds 11014 11015# How to pass a linker flag through the compiler. 11016wl=$lt_lt_prog_compiler_wl 11017 11018# Object file suffix (normally "o"). 11019objext="$ac_objext" 11020 11021# Old archive suffix (normally "a"). 11022libext="$libext" 11023 11024# Shared library suffix (normally ".so"). 11025shrext_cmds='$shrext_cmds' 11026 11027# Executable file suffix (normally ""). 11028exeext="$exeext" 11029 11030# Additional compiler flags for building library objects. 11031pic_flag=$lt_lt_prog_compiler_pic 11032pic_mode=$pic_mode 11033 11034# What is the maximum length of a command? 11035max_cmd_len=$lt_cv_sys_max_cmd_len 11036 11037# Does compiler simultaneously support -c and -o options? 11038compiler_c_o=$lt_lt_cv_prog_compiler_c_o 11039 11040# Must we lock files when doing compilation? 11041need_locks=$lt_need_locks 11042 11043# Do we need the lib prefix for modules? 11044need_lib_prefix=$need_lib_prefix 11045 11046# Do we need a version for libraries? 11047need_version=$need_version 11048 11049# Whether dlopen is supported. 11050dlopen_support=$enable_dlopen 11051 11052# Whether dlopen of programs is supported. 11053dlopen_self=$enable_dlopen_self 11054 11055# Whether dlopen of statically linked programs is supported. 11056dlopen_self_static=$enable_dlopen_self_static 11057 11058# Compiler flag to prevent dynamic linking. 11059link_static_flag=$lt_lt_prog_compiler_static 11060 11061# Compiler flag to turn off builtin functions. 11062no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 11063 11064# Compiler flag to allow reflexive dlopens. 11065export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 11066 11067# Compiler flag to generate shared objects directly from archives. 11068whole_archive_flag_spec=$lt_whole_archive_flag_spec 11069 11070# Compiler flag to generate thread-safe objects. 11071thread_safe_flag_spec=$lt_thread_safe_flag_spec 11072 11073# Library versioning type. 11074version_type=$version_type 11075 11076# Format of library name prefix. 11077libname_spec=$lt_libname_spec 11078 11079# List of archive names. First name is the real one, the rest are links. 11080# The last name is the one that the linker finds with -lNAME. 11081library_names_spec=$lt_library_names_spec 11082 11083# The coded name of the library, if different from the real name. 11084soname_spec=$lt_soname_spec 11085 11086# Commands used to build and install an old-style archive. 11087RANLIB=$lt_RANLIB 11088old_archive_cmds=$lt_old_archive_cmds 11089old_postinstall_cmds=$lt_old_postinstall_cmds 11090old_postuninstall_cmds=$lt_old_postuninstall_cmds 11091 11092# Create an old-style archive from a shared archive. 11093old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 11094 11095# Create a temporary old-style archive to link instead of a shared archive. 11096old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 11097 11098# Commands used to build and install a shared archive. 11099archive_cmds=$lt_archive_cmds 11100archive_expsym_cmds=$lt_archive_expsym_cmds 11101postinstall_cmds=$lt_postinstall_cmds 11102postuninstall_cmds=$lt_postuninstall_cmds 11103 11104# Commands used to build a loadable module (assumed same as above if empty) 11105module_cmds=$lt_module_cmds 11106module_expsym_cmds=$lt_module_expsym_cmds 11107 11108# Commands to strip libraries. 11109old_striplib=$lt_old_striplib 11110striplib=$lt_striplib 11111 11112# Dependencies to place before the objects being linked to create a 11113# shared library. 11114predep_objects=$lt_predep_objects 11115 11116# Dependencies to place after the objects being linked to create a 11117# shared library. 11118postdep_objects=$lt_postdep_objects 11119 11120# Dependencies to place before the objects being linked to create a 11121# shared library. 11122predeps=$lt_predeps 11123 11124# Dependencies to place after the objects being linked to create a 11125# shared library. 11126postdeps=$lt_postdeps 11127 11128# The directories searched by this compiler when creating a shared 11129# library 11130compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 11131 11132# The library search path used internally by the compiler when linking 11133# a shared library. 11134compiler_lib_search_path=$lt_compiler_lib_search_path 11135 11136# Method to check whether dependent libraries are shared objects. 11137deplibs_check_method=$lt_deplibs_check_method 11138 11139# Command to use when deplibs_check_method == file_magic. 11140file_magic_cmd=$lt_file_magic_cmd 11141 11142# Flag that allows shared libraries with undefined symbols to be built. 11143allow_undefined_flag=$lt_allow_undefined_flag 11144 11145# Flag that forces no undefined symbols. 11146no_undefined_flag=$lt_no_undefined_flag 11147 11148# Commands used to finish a libtool library installation in a directory. 11149finish_cmds=$lt_finish_cmds 11150 11151# Same as above, but a single script fragment to be evaled but not shown. 11152finish_eval=$lt_finish_eval 11153 11154# Take the output of nm and produce a listing of raw symbols and C names. 11155global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 11156 11157# Transform the output of nm in a proper C declaration 11158global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 11159 11160# Transform the output of nm in a C name address pair 11161global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 11162 11163# This is the shared library runtime path variable. 11164runpath_var=$runpath_var 11165 11166# This is the shared library path variable. 11167shlibpath_var=$shlibpath_var 11168 11169# Is shlibpath searched before the hard-coded library search path? 11170shlibpath_overrides_runpath=$shlibpath_overrides_runpath 11171 11172# How to hardcode a shared library path into an executable. 11173hardcode_action=$hardcode_action 11174 11175# Whether we should hardcode library paths into libraries. 11176hardcode_into_libs=$hardcode_into_libs 11177 11178# Flag to hardcode \$libdir into a binary during linking. 11179# This must work even if \$libdir does not exist. 11180hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 11181 11182# If ld is used when linking, flag to hardcode \$libdir into 11183# a binary during linking. This must work even if \$libdir does 11184# not exist. 11185hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 11186 11187# Whether we need a single -rpath flag with a separated argument. 11188hardcode_libdir_separator=$lt_hardcode_libdir_separator 11189 11190# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 11191# resulting binary. 11192hardcode_direct=$hardcode_direct 11193 11194# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 11195# resulting binary. 11196hardcode_minus_L=$hardcode_minus_L 11197 11198# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 11199# the resulting binary. 11200hardcode_shlibpath_var=$hardcode_shlibpath_var 11201 11202# Set to yes if building a shared library automatically hardcodes DIR into the library 11203# and all subsequent libraries and executables linked against it. 11204hardcode_automatic=$hardcode_automatic 11205 11206# Variables whose values should be saved in libtool wrapper scripts and 11207# restored at relink time. 11208variables_saved_for_relink="$variables_saved_for_relink" 11209 11210# Whether libtool must link a program against all its dependency libraries. 11211link_all_deplibs=$link_all_deplibs 11212 11213# Compile-time system search path for libraries 11214sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 11215 11216# Run-time system search path for libraries 11217sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 11218 11219# Fix the shell variable \$srcfile for the compiler. 11220fix_srcfile_path=$lt_fix_srcfile_path 11221 11222# Set to yes if exported symbols are required. 11223always_export_symbols=$always_export_symbols 11224 11225# The commands to list exported symbols. 11226export_symbols_cmds=$lt_export_symbols_cmds 11227 11228# The commands to extract the exported symbol list from a shared archive. 11229extract_expsyms_cmds=$lt_extract_expsyms_cmds 11230 11231# Symbols that should not be listed in the preloaded symbols. 11232exclude_expsyms=$lt_exclude_expsyms 11233 11234# Symbols that must always be exported. 11235include_expsyms=$lt_include_expsyms 11236 11237# ### END LIBTOOL CONFIG 11238 11239__EOF__ 11240 11241 11242 case $host_os in 11243 aix3*) 11244 cat <<\EOF >> "$cfgfile" 11245 11246# AIX sometimes has problems with the GCC collect2 program. For some 11247# reason, if we set the COLLECT_NAMES environment variable, the problems 11248# vanish in a puff of smoke. 11249if test "X${COLLECT_NAMES+set}" != Xset; then 11250 COLLECT_NAMES= 11251 export COLLECT_NAMES 11252fi 11253EOF 11254 ;; 11255 esac 11256 11257 # We use sed instead of cat because bash on DJGPP gets confused if 11258 # if finds mixed CR/LF and LF-only lines. Since sed operates in 11259 # text mode, it properly converts lines to CR/LF. This bash problem 11260 # is reportedly fixed, but why not run on old versions too? 11261 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 11262 11263 mv -f "$cfgfile" "$ofile" || \ 11264 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 11265 chmod +x "$ofile" 11266 11267else 11268 # If there is no Makefile yet, we rely on a make rule to execute 11269 # `config.status --recheck' to rerun these tests and create the 11270 # libtool script then. 11271 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 11272 if test -f "$ltmain_in"; then 11273 test -f Makefile && make "$ltmain" 11274 fi 11275fi 11276 11277 11278ac_ext=c 11279ac_cpp='$CPP $CPPFLAGS' 11280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11282ac_compiler_gnu=$ac_cv_c_compiler_gnu 11283 11284CC="$lt_save_CC" 11285 11286 11287# Check whether --with-tags was given. 11288if test "${with_tags+set}" = set; then : 11289 withval=$with_tags; tagnames="$withval" 11290fi 11291 11292 11293if test -f "$ltmain" && test -n "$tagnames"; then 11294 if test ! -f "${ofile}"; then 11295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5 11296$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 11297 fi 11298 11299 if test -z "$LTCC"; then 11300 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 11301 if test -z "$LTCC"; then 11302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5 11303$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 11304 else 11305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 11306$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 11307 fi 11308 fi 11309 if test -z "$LTCFLAGS"; then 11310 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 11311 fi 11312 11313 # Extract list of available tagged configurations in $ofile. 11314 # Note that this assumes the entire list is on one line. 11315 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 11316 11317 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11318 for tagname in $tagnames; do 11319 IFS="$lt_save_ifs" 11320 # Check whether tagname contains only valid characters 11321 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 11322 "") ;; 11323 *) as_fn_error "invalid tag name: $tagname" "$LINENO" 5 11324 ;; 11325 esac 11326 11327 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11328 then 11329 as_fn_error "tag name \"$tagname\" already exists" "$LINENO" 5 11330 fi 11331 11332 # Update the list of available tags. 11333 if test -n "$tagname"; then 11334 echo appending configuration tag \"$tagname\" to $ofile 11335 11336 case $tagname in 11337 CXX) 11338 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11339 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11340 (test "X$CXX" != "Xg++"))) ; then 11341 ac_ext=cpp 11342ac_cpp='$CXXCPP $CPPFLAGS' 11343ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11344ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11345ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11346 11347 11348 11349 11350archive_cmds_need_lc_CXX=no 11351allow_undefined_flag_CXX= 11352always_export_symbols_CXX=no 11353archive_expsym_cmds_CXX= 11354export_dynamic_flag_spec_CXX= 11355hardcode_direct_CXX=no 11356hardcode_libdir_flag_spec_CXX= 11357hardcode_libdir_flag_spec_ld_CXX= 11358hardcode_libdir_separator_CXX= 11359hardcode_minus_L_CXX=no 11360hardcode_shlibpath_var_CXX=unsupported 11361hardcode_automatic_CXX=no 11362module_cmds_CXX= 11363module_expsym_cmds_CXX= 11364link_all_deplibs_CXX=unknown 11365old_archive_cmds_CXX=$old_archive_cmds 11366no_undefined_flag_CXX= 11367whole_archive_flag_spec_CXX= 11368enable_shared_with_static_runtimes_CXX=no 11369 11370# Dependencies to place before and after the object being linked: 11371predep_objects_CXX= 11372postdep_objects_CXX= 11373predeps_CXX= 11374postdeps_CXX= 11375compiler_lib_search_path_CXX= 11376compiler_lib_search_dirs_CXX= 11377 11378# Source file extension for C++ test sources. 11379ac_ext=cpp 11380 11381# Object file extension for compiled C++ test sources. 11382objext=o 11383objext_CXX=$objext 11384 11385# Code to be used in simple compile tests 11386lt_simple_compile_test_code="int some_variable = 0;" 11387 11388# Code to be used in simple link tests 11389lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 11390 11391# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11392 11393# If no C compiler was specified, use CC. 11394LTCC=${LTCC-"$CC"} 11395 11396# If no C compiler flags were specified, use CFLAGS. 11397LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11398 11399# Allow CC to be a program name with arguments. 11400compiler=$CC 11401 11402 11403# save warnings/boilerplate of simple test code 11404ac_outfile=conftest.$ac_objext 11405echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11406eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11407_lt_compiler_boilerplate=`cat conftest.err` 11408$rm conftest* 11409 11410ac_outfile=conftest.$ac_objext 11411echo "$lt_simple_link_test_code" >conftest.$ac_ext 11412eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11413_lt_linker_boilerplate=`cat conftest.err` 11414$rm -r conftest* 11415 11416 11417# Allow CC to be a program name with arguments. 11418lt_save_CC=$CC 11419lt_save_LD=$LD 11420lt_save_GCC=$GCC 11421GCC=$GXX 11422lt_save_with_gnu_ld=$with_gnu_ld 11423lt_save_path_LD=$lt_cv_path_LD 11424if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11425 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11426else 11427 $as_unset lt_cv_prog_gnu_ld 11428fi 11429if test -n "${lt_cv_path_LDCXX+set}"; then 11430 lt_cv_path_LD=$lt_cv_path_LDCXX 11431else 11432 $as_unset lt_cv_path_LD 11433fi 11434test -z "${LDCXX+set}" || LD=$LDCXX 11435CC=${CXX-"c++"} 11436compiler=$CC 11437compiler_CXX=$CC 11438for cc_temp in $compiler""; do 11439 case $cc_temp in 11440 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11441 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11442 \-*) ;; 11443 *) break;; 11444 esac 11445done 11446cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11447 11448 11449# We don't want -fno-exception wen compiling C++ code, so set the 11450# no_builtin_flag separately 11451if test "$GXX" = yes; then 11452 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11453else 11454 lt_prog_compiler_no_builtin_flag_CXX= 11455fi 11456 11457if test "$GXX" = yes; then 11458 # Set up default GNU C++ configuration 11459 11460 11461# Check whether --with-gnu-ld was given. 11462if test "${with_gnu_ld+set}" = set; then : 11463 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11464else 11465 with_gnu_ld=no 11466fi 11467 11468ac_prog=ld 11469if test "$GCC" = yes; then 11470 # Check if gcc -print-prog-name=ld gives a path. 11471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11472$as_echo_n "checking for ld used by $CC... " >&6; } 11473 case $host in 11474 *-*-mingw*) 11475 # gcc leaves a trailing carriage return which upsets mingw 11476 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11477 *) 11478 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11479 esac 11480 case $ac_prog in 11481 # Accept absolute paths. 11482 [\\/]* | ?:[\\/]*) 11483 re_direlt='/[^/][^/]*/\.\./' 11484 # Canonicalize the pathname of ld 11485 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11486 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11487 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11488 done 11489 test -z "$LD" && LD="$ac_prog" 11490 ;; 11491 "") 11492 # If it fails, then pretend we aren't using GCC. 11493 ac_prog=ld 11494 ;; 11495 *) 11496 # If it is relative, then search for the first ld in PATH. 11497 with_gnu_ld=unknown 11498 ;; 11499 esac 11500elif test "$with_gnu_ld" = yes; then 11501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11502$as_echo_n "checking for GNU ld... " >&6; } 11503else 11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11505$as_echo_n "checking for non-GNU ld... " >&6; } 11506fi 11507if test "${lt_cv_path_LD+set}" = set; then : 11508 $as_echo_n "(cached) " >&6 11509else 11510 if test -z "$LD"; then 11511 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11512 for ac_dir in $PATH; do 11513 IFS="$lt_save_ifs" 11514 test -z "$ac_dir" && ac_dir=. 11515 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11516 lt_cv_path_LD="$ac_dir/$ac_prog" 11517 # Check to see if the program is GNU ld. I'd rather use --version, 11518 # but apparently some variants of GNU ld only accept -v. 11519 # Break only if it was the GNU/non-GNU ld that we prefer. 11520 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11521 *GNU* | *'with BFD'*) 11522 test "$with_gnu_ld" != no && break 11523 ;; 11524 *) 11525 test "$with_gnu_ld" != yes && break 11526 ;; 11527 esac 11528 fi 11529 done 11530 IFS="$lt_save_ifs" 11531else 11532 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11533fi 11534fi 11535 11536LD="$lt_cv_path_LD" 11537if test -n "$LD"; then 11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11539$as_echo "$LD" >&6; } 11540else 11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11542$as_echo "no" >&6; } 11543fi 11544test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 11545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11546$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11547if test "${lt_cv_prog_gnu_ld+set}" = set; then : 11548 $as_echo_n "(cached) " >&6 11549else 11550 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11551case `$LD -v 2>&1 </dev/null` in 11552*GNU* | *'with BFD'*) 11553 lt_cv_prog_gnu_ld=yes 11554 ;; 11555*) 11556 lt_cv_prog_gnu_ld=no 11557 ;; 11558esac 11559fi 11560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11561$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11562with_gnu_ld=$lt_cv_prog_gnu_ld 11563 11564 11565 11566 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11567 # archiving commands below assume that GNU ld is being used. 11568 if test "$with_gnu_ld" = yes; then 11569 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11570 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11571 11572 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11573 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11574 11575 # If archive_cmds runs LD, not CC, wlarc should be empty 11576 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11577 # investigate it a little bit more. (MM) 11578 wlarc='${wl}' 11579 11580 # ancient GNU ld didn't support --whole-archive et. al. 11581 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11582 grep 'no-whole-archive' > /dev/null; then 11583 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11584 else 11585 whole_archive_flag_spec_CXX= 11586 fi 11587 else 11588 with_gnu_ld=no 11589 wlarc= 11590 11591 # A generic and very simple default shared library creation 11592 # command for GNU C++ for the case where it uses the native 11593 # linker, instead of GNU ld. If possible, this setting should 11594 # overridden to take advantage of the native linker features on 11595 # the platform it is being used on. 11596 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11597 fi 11598 11599 # Commands to make compiler produce verbose output that lists 11600 # what "hidden" libraries, object files and flags are used when 11601 # linking a shared library. 11602 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11603 11604else 11605 GXX=no 11606 with_gnu_ld=no 11607 wlarc= 11608fi 11609 11610# PORTME: fill in a description of your system's C++ link characteristics 11611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11612$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11613ld_shlibs_CXX=yes 11614case $host_os in 11615 aix3*) 11616 # FIXME: insert proper C++ library support 11617 ld_shlibs_CXX=no 11618 ;; 11619 aix[4-9]*) 11620 if test "$host_cpu" = ia64; then 11621 # On IA64, the linker does run time linking by default, so we don't 11622 # have to do anything special. 11623 aix_use_runtimelinking=no 11624 exp_sym_flag='-Bexport' 11625 no_entry_flag="" 11626 else 11627 aix_use_runtimelinking=no 11628 11629 # Test if we are trying to use run time linking or normal 11630 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11631 # need to do runtime linking. 11632 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11633 for ld_flag in $LDFLAGS; do 11634 case $ld_flag in 11635 *-brtl*) 11636 aix_use_runtimelinking=yes 11637 break 11638 ;; 11639 esac 11640 done 11641 ;; 11642 esac 11643 11644 exp_sym_flag='-bexport' 11645 no_entry_flag='-bnoentry' 11646 fi 11647 11648 # When large executables or shared objects are built, AIX ld can 11649 # have problems creating the table of contents. If linking a library 11650 # or program results in "error TOC overflow" add -mminimal-toc to 11651 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11652 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11653 11654 archive_cmds_CXX='' 11655 hardcode_direct_CXX=yes 11656 hardcode_libdir_separator_CXX=':' 11657 link_all_deplibs_CXX=yes 11658 11659 if test "$GXX" = yes; then 11660 case $host_os in aix4.[012]|aix4.[012].*) 11661 # We only want to do this on AIX 4.2 and lower, the check 11662 # below for broken collect2 doesn't work under 4.3+ 11663 collect2name=`${CC} -print-prog-name=collect2` 11664 if test -f "$collect2name" && \ 11665 strings "$collect2name" | grep resolve_lib_name >/dev/null 11666 then 11667 # We have reworked collect2 11668 : 11669 else 11670 # We have old collect2 11671 hardcode_direct_CXX=unsupported 11672 # It fails to find uninstalled libraries when the uninstalled 11673 # path is not listed in the libpath. Setting hardcode_minus_L 11674 # to unsupported forces relinking 11675 hardcode_minus_L_CXX=yes 11676 hardcode_libdir_flag_spec_CXX='-L$libdir' 11677 hardcode_libdir_separator_CXX= 11678 fi 11679 ;; 11680 esac 11681 shared_flag='-shared' 11682 if test "$aix_use_runtimelinking" = yes; then 11683 shared_flag="$shared_flag "'${wl}-G' 11684 fi 11685 else 11686 # not using gcc 11687 if test "$host_cpu" = ia64; then 11688 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11689 # chokes on -Wl,-G. The following line is correct: 11690 shared_flag='-G' 11691 else 11692 if test "$aix_use_runtimelinking" = yes; then 11693 shared_flag='${wl}-G' 11694 else 11695 shared_flag='${wl}-bM:SRE' 11696 fi 11697 fi 11698 fi 11699 11700 # It seems that -bexpall does not export symbols beginning with 11701 # underscore (_), so it is better to generate a list of symbols to export. 11702 always_export_symbols_CXX=yes 11703 if test "$aix_use_runtimelinking" = yes; then 11704 # Warning - without using the other runtime loading flags (-brtl), 11705 # -berok will link without error, but may produce a broken library. 11706 allow_undefined_flag_CXX='-berok' 11707 # Determine the default libpath from the value encoded in an empty executable. 11708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11709/* end confdefs.h. */ 11710 11711int 11712main () 11713{ 11714 11715 ; 11716 return 0; 11717} 11718_ACEOF 11719if ac_fn_cxx_try_link "$LINENO"; then : 11720 11721lt_aix_libpath_sed=' 11722 /Import File Strings/,/^$/ { 11723 /^0/ { 11724 s/^0 *\(.*\)$/\1/ 11725 p 11726 } 11727 }' 11728aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11729# Check for a 64-bit object if we didn't find anything. 11730if test -z "$aix_libpath"; then 11731 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11732fi 11733fi 11734rm -f core conftest.err conftest.$ac_objext \ 11735 conftest$ac_exeext conftest.$ac_ext 11736if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11737 11738 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11739 11740 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 11741 else 11742 if test "$host_cpu" = ia64; then 11743 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11744 allow_undefined_flag_CXX="-z nodefs" 11745 archive_expsym_cmds_CXX="\$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" 11746 else 11747 # Determine the default libpath from the value encoded in an empty executable. 11748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11749/* end confdefs.h. */ 11750 11751int 11752main () 11753{ 11754 11755 ; 11756 return 0; 11757} 11758_ACEOF 11759if ac_fn_cxx_try_link "$LINENO"; then : 11760 11761lt_aix_libpath_sed=' 11762 /Import File Strings/,/^$/ { 11763 /^0/ { 11764 s/^0 *\(.*\)$/\1/ 11765 p 11766 } 11767 }' 11768aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11769# Check for a 64-bit object if we didn't find anything. 11770if test -z "$aix_libpath"; then 11771 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11772fi 11773fi 11774rm -f core conftest.err conftest.$ac_objext \ 11775 conftest$ac_exeext conftest.$ac_ext 11776if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11777 11778 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11779 # Warning - without using the other run time loading flags, 11780 # -berok will link without error, but may produce a broken library. 11781 no_undefined_flag_CXX=' ${wl}-bernotok' 11782 allow_undefined_flag_CXX=' ${wl}-berok' 11783 # Exported symbols can be pulled into shared objects from archives 11784 whole_archive_flag_spec_CXX='$convenience' 11785 archive_cmds_need_lc_CXX=yes 11786 # This is similar to how AIX traditionally builds its shared libraries. 11787 archive_expsym_cmds_CXX="\$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' 11788 fi 11789 fi 11790 ;; 11791 11792 beos*) 11793 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11794 allow_undefined_flag_CXX=unsupported 11795 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11796 # support --undefined. This deserves some investigation. FIXME 11797 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11798 else 11799 ld_shlibs_CXX=no 11800 fi 11801 ;; 11802 11803 chorus*) 11804 case $cc_basename in 11805 *) 11806 # FIXME: insert proper C++ library support 11807 ld_shlibs_CXX=no 11808 ;; 11809 esac 11810 ;; 11811 11812 cygwin* | mingw* | pw32*) 11813 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11814 # as there is no search path for DLLs. 11815 hardcode_libdir_flag_spec_CXX='-L$libdir' 11816 allow_undefined_flag_CXX=unsupported 11817 always_export_symbols_CXX=no 11818 enable_shared_with_static_runtimes_CXX=yes 11819 11820 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11821 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11822 # If the export-symbols file already is a .def file (1st line 11823 # is EXPORTS), use it as is; otherwise, prepend... 11824 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11825 cp $export_symbols $output_objdir/$soname.def; 11826 else 11827 echo EXPORTS > $output_objdir/$soname.def; 11828 cat $export_symbols >> $output_objdir/$soname.def; 11829 fi~ 11830 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11831 else 11832 ld_shlibs_CXX=no 11833 fi 11834 ;; 11835 darwin* | rhapsody*) 11836 archive_cmds_need_lc_CXX=no 11837 hardcode_direct_CXX=no 11838 hardcode_automatic_CXX=yes 11839 hardcode_shlibpath_var_CXX=unsupported 11840 whole_archive_flag_spec_CXX='' 11841 link_all_deplibs_CXX=yes 11842 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 11843 if test "$GXX" = yes ; then 11844 output_verbose_link_cmd='echo' 11845 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 11846 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 11847 archive_expsym_cmds_CXX="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}" 11848 module_expsym_cmds_CXX="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}" 11849 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 11850 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" 11851 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" 11852 fi 11853 else 11854 case $cc_basename in 11855 xlc*) 11856 output_verbose_link_cmd='echo' 11857 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 11858 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11859 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11860 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11861 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11862 ;; 11863 *) 11864 ld_shlibs_CXX=no 11865 ;; 11866 esac 11867 fi 11868 ;; 11869 11870 dgux*) 11871 case $cc_basename in 11872 ec++*) 11873 # FIXME: insert proper C++ library support 11874 ld_shlibs_CXX=no 11875 ;; 11876 ghcx*) 11877 # Green Hills C++ Compiler 11878 # FIXME: insert proper C++ library support 11879 ld_shlibs_CXX=no 11880 ;; 11881 *) 11882 # FIXME: insert proper C++ library support 11883 ld_shlibs_CXX=no 11884 ;; 11885 esac 11886 ;; 11887 freebsd[12]*) 11888 # C++ shared libraries reported to be fairly broken before switch to ELF 11889 ld_shlibs_CXX=no 11890 ;; 11891 freebsd-elf*) 11892 archive_cmds_need_lc_CXX=no 11893 ;; 11894 freebsd* | dragonfly*) 11895 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11896 # conventions 11897 ld_shlibs_CXX=yes 11898 ;; 11899 gnu*) 11900 ;; 11901 hpux9*) 11902 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11903 hardcode_libdir_separator_CXX=: 11904 export_dynamic_flag_spec_CXX='${wl}-E' 11905 hardcode_direct_CXX=yes 11906 hardcode_minus_L_CXX=yes # Not in the search PATH, 11907 # but as the default 11908 # location of the library. 11909 11910 case $cc_basename in 11911 CC*) 11912 # FIXME: insert proper C++ library support 11913 ld_shlibs_CXX=no 11914 ;; 11915 aCC*) 11916 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 11917 # Commands to make compiler produce verbose output that lists 11918 # what "hidden" libraries, object files and flags are used when 11919 # linking a shared library. 11920 # 11921 # There doesn't appear to be a way to prevent this compiler from 11922 # explicitly linking system object files so we need to strip them 11923 # from the output so that they don't get included in the library 11924 # dependencies. 11925 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 11926 ;; 11927 *) 11928 if test "$GXX" = yes; then 11929 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 11930 else 11931 # FIXME: insert proper C++ library support 11932 ld_shlibs_CXX=no 11933 fi 11934 ;; 11935 esac 11936 ;; 11937 hpux10*|hpux11*) 11938 if test $with_gnu_ld = no; then 11939 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11940 hardcode_libdir_separator_CXX=: 11941 11942 case $host_cpu in 11943 hppa*64*|ia64*) ;; 11944 *) 11945 export_dynamic_flag_spec_CXX='${wl}-E' 11946 ;; 11947 esac 11948 fi 11949 case $host_cpu in 11950 hppa*64*|ia64*) 11951 hardcode_direct_CXX=no 11952 hardcode_shlibpath_var_CXX=no 11953 ;; 11954 *) 11955 hardcode_direct_CXX=yes 11956 hardcode_minus_L_CXX=yes # Not in the search PATH, 11957 # but as the default 11958 # location of the library. 11959 ;; 11960 esac 11961 11962 case $cc_basename in 11963 CC*) 11964 # FIXME: insert proper C++ library support 11965 ld_shlibs_CXX=no 11966 ;; 11967 aCC*) 11968 case $host_cpu in 11969 hppa*64*) 11970 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11971 ;; 11972 ia64*) 11973 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11974 ;; 11975 *) 11976 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11977 ;; 11978 esac 11979 # Commands to make compiler produce verbose output that lists 11980 # what "hidden" libraries, object files and flags are used when 11981 # linking a shared library. 11982 # 11983 # There doesn't appear to be a way to prevent this compiler from 11984 # explicitly linking system object files so we need to strip them 11985 # from the output so that they don't get included in the library 11986 # dependencies. 11987 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 11988 ;; 11989 *) 11990 if test "$GXX" = yes; then 11991 if test $with_gnu_ld = no; then 11992 case $host_cpu in 11993 hppa*64*) 11994 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11995 ;; 11996 ia64*) 11997 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11998 ;; 11999 *) 12000 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12001 ;; 12002 esac 12003 fi 12004 else 12005 # FIXME: insert proper C++ library support 12006 ld_shlibs_CXX=no 12007 fi 12008 ;; 12009 esac 12010 ;; 12011 interix[3-9]*) 12012 hardcode_direct_CXX=no 12013 hardcode_shlibpath_var_CXX=no 12014 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12015 export_dynamic_flag_spec_CXX='${wl}-E' 12016 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12017 # Instead, shared libraries are loaded at an image base (0x10000000 by 12018 # default) and relocated if they conflict, which is a slow very memory 12019 # consuming and fragmenting process. To avoid this, we pick a random, 12020 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12021 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12022 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 12023 archive_expsym_cmds_CXX='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' 12024 ;; 12025 irix5* | irix6*) 12026 case $cc_basename in 12027 CC*) 12028 # SGI C++ 12029 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 12030 12031 # Archives containing C++ object files must be created using 12032 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 12033 # necessary to make sure instantiated templates are included 12034 # in the archive. 12035 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 12036 ;; 12037 *) 12038 if test "$GXX" = yes; then 12039 if test "$with_gnu_ld" = no; then 12040 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12041 else 12042 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' 12043 fi 12044 fi 12045 link_all_deplibs_CXX=yes 12046 ;; 12047 esac 12048 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12049 hardcode_libdir_separator_CXX=: 12050 ;; 12051 linux* | k*bsd*-gnu) 12052 case $cc_basename in 12053 KCC*) 12054 # Kuck and Associates, Inc. (KAI) C++ Compiler 12055 12056 # KCC will only create a shared library if the output file 12057 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12058 # to its proper name (with version) after linking. 12059 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 12060 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 12061 # Commands to make compiler produce verbose output that lists 12062 # what "hidden" libraries, object files and flags are used when 12063 # linking a shared library. 12064 # 12065 # There doesn't appear to be a way to prevent this compiler from 12066 # explicitly linking system object files so we need to strip them 12067 # from the output so that they don't get included in the library 12068 # dependencies. 12069 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 12070 12071 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 12072 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12073 12074 # Archives containing C++ object files must be created using 12075 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12076 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12077 ;; 12078 icpc*) 12079 # Intel C++ 12080 with_gnu_ld=yes 12081 # version 8.0 and above of icpc choke on multiply defined symbols 12082 # if we add $predep_objects and $postdep_objects, however 7.1 and 12083 # earlier do not add the objects themselves. 12084 case `$CC -V 2>&1` in 12085 *"Version 7."*) 12086 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12087 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12088 ;; 12089 *) # Version 8.0 or newer 12090 tmp_idyn= 12091 case $host_cpu in 12092 ia64*) tmp_idyn=' -i_dynamic';; 12093 esac 12094 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12095 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12096 ;; 12097 esac 12098 archive_cmds_need_lc_CXX=no 12099 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12100 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12101 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12102 ;; 12103 pgCC* | pgcpp*) 12104 # Portland Group C++ compiler 12105 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12106 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 12107 12108 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12109 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12110 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 12111 ;; 12112 cxx*) 12113 # Compaq C++ 12114 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12115 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 12116 12117 runpath_var=LD_RUN_PATH 12118 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12119 hardcode_libdir_separator_CXX=: 12120 12121 # Commands to make compiler produce verbose output that lists 12122 # what "hidden" libraries, object files and flags are used when 12123 # linking a shared library. 12124 # 12125 # There doesn't appear to be a way to prevent this compiler from 12126 # explicitly linking system object files so we need to strip them 12127 # from the output so that they don't get included in the library 12128 # dependencies. 12129 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 12130 ;; 12131 *) 12132 case `$CC -V 2>&1 | sed 5q` in 12133 *Sun\ C*) 12134 # Sun C++ 5.9 12135 no_undefined_flag_CXX=' -zdefs' 12136 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12137 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 12138 hardcode_libdir_flag_spec_CXX='-R$libdir' 12139 whole_archive_flag_spec_CXX='${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' 12140 12141 # Not sure whether something based on 12142 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 12143 # would be better. 12144 output_verbose_link_cmd='echo' 12145 12146 # Archives containing C++ object files must be created using 12147 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12148 # necessary to make sure instantiated templates are included 12149 # in the archive. 12150 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12151 ;; 12152 esac 12153 ;; 12154 esac 12155 ;; 12156 lynxos*) 12157 # FIXME: insert proper C++ library support 12158 ld_shlibs_CXX=no 12159 ;; 12160 m88k*) 12161 # FIXME: insert proper C++ library support 12162 ld_shlibs_CXX=no 12163 ;; 12164 mvs*) 12165 case $cc_basename in 12166 cxx*) 12167 # FIXME: insert proper C++ library support 12168 ld_shlibs_CXX=no 12169 ;; 12170 *) 12171 # FIXME: insert proper C++ library support 12172 ld_shlibs_CXX=no 12173 ;; 12174 esac 12175 ;; 12176 netbsd*) 12177 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12178 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12179 wlarc= 12180 hardcode_libdir_flag_spec_CXX='-R$libdir' 12181 hardcode_direct_CXX=yes 12182 hardcode_shlibpath_var_CXX=no 12183 fi 12184 # Workaround some broken pre-1.5 toolchains 12185 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12186 ;; 12187 openbsd2*) 12188 # C++ shared libraries are fairly broken 12189 ld_shlibs_CXX=no 12190 ;; 12191 openbsd*) 12192 if test -f /usr/libexec/ld.so; then 12193 hardcode_direct_CXX=yes 12194 hardcode_shlibpath_var_CXX=no 12195 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12196 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12197 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12198 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12199 export_dynamic_flag_spec_CXX='${wl}-E' 12200 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12201 fi 12202 output_verbose_link_cmd='echo' 12203 else 12204 ld_shlibs_CXX=no 12205 fi 12206 ;; 12207 osf3*) 12208 case $cc_basename in 12209 KCC*) 12210 # Kuck and Associates, Inc. (KAI) C++ Compiler 12211 12212 # KCC will only create a shared library if the output file 12213 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12214 # to its proper name (with version) after linking. 12215 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 12216 12217 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12218 hardcode_libdir_separator_CXX=: 12219 12220 # Archives containing C++ object files must be created using 12221 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12222 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12223 12224 ;; 12225 RCC*) 12226 # Rational C++ 2.4.1 12227 # FIXME: insert proper C++ library support 12228 ld_shlibs_CXX=no 12229 ;; 12230 cxx*) 12231 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12232 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 12233 12234 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12235 hardcode_libdir_separator_CXX=: 12236 12237 # Commands to make compiler produce verbose output that lists 12238 # what "hidden" libraries, object files and flags are used when 12239 # linking a shared library. 12240 # 12241 # There doesn't appear to be a way to prevent this compiler from 12242 # explicitly linking system object files so we need to strip them 12243 # from the output so that they don't get included in the library 12244 # dependencies. 12245 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 12246 ;; 12247 *) 12248 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12249 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12250 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12251 12252 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12253 hardcode_libdir_separator_CXX=: 12254 12255 # Commands to make compiler produce verbose output that lists 12256 # what "hidden" libraries, object files and flags are used when 12257 # linking a shared library. 12258 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12259 12260 else 12261 # FIXME: insert proper C++ library support 12262 ld_shlibs_CXX=no 12263 fi 12264 ;; 12265 esac 12266 ;; 12267 osf4* | osf5*) 12268 case $cc_basename in 12269 KCC*) 12270 # Kuck and Associates, Inc. (KAI) C++ Compiler 12271 12272 # KCC will only create a shared library if the output file 12273 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12274 # to its proper name (with version) after linking. 12275 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 12276 12277 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12278 hardcode_libdir_separator_CXX=: 12279 12280 # Archives containing C++ object files must be created using 12281 # the KAI C++ compiler. 12282 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12283 ;; 12284 RCC*) 12285 # Rational C++ 2.4.1 12286 # FIXME: insert proper C++ library support 12287 ld_shlibs_CXX=no 12288 ;; 12289 cxx*) 12290 allow_undefined_flag_CXX=' -expect_unresolved \*' 12291 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 12292 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12293 echo "-hidden">> $lib.exp~ 12294 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ 12295 $rm $lib.exp' 12296 12297 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12298 hardcode_libdir_separator_CXX=: 12299 12300 # Commands to make compiler produce verbose output that lists 12301 # what "hidden" libraries, object files and flags are used when 12302 # linking a shared library. 12303 # 12304 # There doesn't appear to be a way to prevent this compiler from 12305 # explicitly linking system object files so we need to strip them 12306 # from the output so that they don't get included in the library 12307 # dependencies. 12308 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 12309 ;; 12310 *) 12311 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12312 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12313 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12314 12315 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12316 hardcode_libdir_separator_CXX=: 12317 12318 # Commands to make compiler produce verbose output that lists 12319 # what "hidden" libraries, object files and flags are used when 12320 # linking a shared library. 12321 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12322 12323 else 12324 # FIXME: insert proper C++ library support 12325 ld_shlibs_CXX=no 12326 fi 12327 ;; 12328 esac 12329 ;; 12330 psos*) 12331 # FIXME: insert proper C++ library support 12332 ld_shlibs_CXX=no 12333 ;; 12334 sunos4*) 12335 case $cc_basename in 12336 CC*) 12337 # Sun C++ 4.x 12338 # FIXME: insert proper C++ library support 12339 ld_shlibs_CXX=no 12340 ;; 12341 lcc*) 12342 # Lucid 12343 # FIXME: insert proper C++ library support 12344 ld_shlibs_CXX=no 12345 ;; 12346 *) 12347 # FIXME: insert proper C++ library support 12348 ld_shlibs_CXX=no 12349 ;; 12350 esac 12351 ;; 12352 solaris*) 12353 case $cc_basename in 12354 CC*) 12355 # Sun C++ 4.2, 5.x and Centerline C++ 12356 archive_cmds_need_lc_CXX=yes 12357 no_undefined_flag_CXX=' -zdefs' 12358 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12359 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12360 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12361 12362 hardcode_libdir_flag_spec_CXX='-R$libdir' 12363 hardcode_shlibpath_var_CXX=no 12364 case $host_os in 12365 solaris2.[0-5] | solaris2.[0-5].*) ;; 12366 *) 12367 # The compiler driver will combine and reorder linker options, 12368 # but understands `-z linker_flag'. 12369 # Supported since Solaris 2.6 (maybe 2.5.1?) 12370 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 12371 ;; 12372 esac 12373 link_all_deplibs_CXX=yes 12374 12375 output_verbose_link_cmd='echo' 12376 12377 # Archives containing C++ object files must be created using 12378 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12379 # necessary to make sure instantiated templates are included 12380 # in the archive. 12381 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12382 ;; 12383 gcx*) 12384 # Green Hills C++ Compiler 12385 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12386 12387 # The C++ compiler must be used to create the archive. 12388 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12389 ;; 12390 *) 12391 # GNU C++ compiler with Solaris linker 12392 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12393 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12394 if $CC --version | grep -v '^2\.7' > /dev/null; then 12395 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12396 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12397 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12398 12399 # Commands to make compiler produce verbose output that lists 12400 # what "hidden" libraries, object files and flags are used when 12401 # linking a shared library. 12402 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12403 else 12404 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12405 # platform. 12406 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12407 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12408 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12409 12410 # Commands to make compiler produce verbose output that lists 12411 # what "hidden" libraries, object files and flags are used when 12412 # linking a shared library. 12413 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12414 fi 12415 12416 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12417 case $host_os in 12418 solaris2.[0-5] | solaris2.[0-5].*) ;; 12419 *) 12420 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12421 ;; 12422 esac 12423 fi 12424 ;; 12425 esac 12426 ;; 12427 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12428 no_undefined_flag_CXX='${wl}-z,text' 12429 archive_cmds_need_lc_CXX=no 12430 hardcode_shlibpath_var_CXX=no 12431 runpath_var='LD_RUN_PATH' 12432 12433 case $cc_basename in 12434 CC*) 12435 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12436 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12437 ;; 12438 *) 12439 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12440 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12441 ;; 12442 esac 12443 ;; 12444 sysv5* | sco3.2v5* | sco5v6*) 12445 # Note: We can NOT use -z defs as we might desire, because we do not 12446 # link with -lc, and that would cause any symbols used from libc to 12447 # always be unresolved, which means just about no library would 12448 # ever link correctly. If we're not using GNU ld we use -z text 12449 # though, which does catch some bad symbols but isn't as heavy-handed 12450 # as -z defs. 12451 # For security reasons, it is highly recommended that you always 12452 # use absolute paths for naming shared libraries, and exclude the 12453 # DT_RUNPATH tag from executables and libraries. But doing so 12454 # requires that you compile everything twice, which is a pain. 12455 # So that behaviour is only enabled if SCOABSPATH is set to a 12456 # non-empty value in the environment. Most likely only useful for 12457 # creating official distributions of packages. 12458 # This is a hack until libtool officially supports absolute path 12459 # names for shared libraries. 12460 no_undefined_flag_CXX='${wl}-z,text' 12461 allow_undefined_flag_CXX='${wl}-z,nodefs' 12462 archive_cmds_need_lc_CXX=no 12463 hardcode_shlibpath_var_CXX=no 12464 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12465 hardcode_libdir_separator_CXX=':' 12466 link_all_deplibs_CXX=yes 12467 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12468 runpath_var='LD_RUN_PATH' 12469 12470 case $cc_basename in 12471 CC*) 12472 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12473 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12474 ;; 12475 *) 12476 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12477 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12478 ;; 12479 esac 12480 ;; 12481 tandem*) 12482 case $cc_basename in 12483 NCC*) 12484 # NonStop-UX NCC 3.20 12485 # FIXME: insert proper C++ library support 12486 ld_shlibs_CXX=no 12487 ;; 12488 *) 12489 # FIXME: insert proper C++ library support 12490 ld_shlibs_CXX=no 12491 ;; 12492 esac 12493 ;; 12494 vxworks*) 12495 # FIXME: insert proper C++ library support 12496 ld_shlibs_CXX=no 12497 ;; 12498 *) 12499 # FIXME: insert proper C++ library support 12500 ld_shlibs_CXX=no 12501 ;; 12502esac 12503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 12504$as_echo "$ld_shlibs_CXX" >&6; } 12505test "$ld_shlibs_CXX" = no && can_build_shared=no 12506 12507GCC_CXX="$GXX" 12508LD_CXX="$LD" 12509 12510cat > conftest.$ac_ext <<EOF 12511class Foo 12512{ 12513public: 12514 Foo (void) { a = 0; } 12515private: 12516 int a; 12517}; 12518EOF 12519 12520if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12521 (eval $ac_compile) 2>&5 12522 ac_status=$? 12523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12524 test $ac_status = 0; }; then 12525 # Parse the compiler output and extract the necessary 12526 # objects, libraries and library flags. 12527 12528 # Sentinel used to keep track of whether or not we are before 12529 # the conftest object file. 12530 pre_test_object_deps_done=no 12531 12532 # The `*' in the case matches for architectures that use `case' in 12533 # $output_verbose_cmd can trigger glob expansion during the loop 12534 # eval without this substitution. 12535 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12536 12537 for p in `eval $output_verbose_link_cmd`; do 12538 case $p in 12539 12540 -L* | -R* | -l*) 12541 # Some compilers place space between "-{L,R}" and the path. 12542 # Remove the space. 12543 if test $p = "-L" \ 12544 || test $p = "-R"; then 12545 prev=$p 12546 continue 12547 else 12548 prev= 12549 fi 12550 12551 if test "$pre_test_object_deps_done" = no; then 12552 case $p in 12553 -L* | -R*) 12554 # Internal compiler library paths should come after those 12555 # provided the user. The postdeps already come after the 12556 # user supplied libs so there is no need to process them. 12557 if test -z "$compiler_lib_search_path_CXX"; then 12558 compiler_lib_search_path_CXX="${prev}${p}" 12559 else 12560 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12561 fi 12562 ;; 12563 # The "-l" case would never come before the object being 12564 # linked, so don't bother handling this case. 12565 esac 12566 else 12567 if test -z "$postdeps_CXX"; then 12568 postdeps_CXX="${prev}${p}" 12569 else 12570 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12571 fi 12572 fi 12573 ;; 12574 12575 *.$objext) 12576 # This assumes that the test object file only shows up 12577 # once in the compiler output. 12578 if test "$p" = "conftest.$objext"; then 12579 pre_test_object_deps_done=yes 12580 continue 12581 fi 12582 12583 if test "$pre_test_object_deps_done" = no; then 12584 if test -z "$predep_objects_CXX"; then 12585 predep_objects_CXX="$p" 12586 else 12587 predep_objects_CXX="$predep_objects_CXX $p" 12588 fi 12589 else 12590 if test -z "$postdep_objects_CXX"; then 12591 postdep_objects_CXX="$p" 12592 else 12593 postdep_objects_CXX="$postdep_objects_CXX $p" 12594 fi 12595 fi 12596 ;; 12597 12598 *) ;; # Ignore the rest. 12599 12600 esac 12601 done 12602 12603 # Clean up. 12604 rm -f a.out a.exe 12605else 12606 echo "libtool.m4: error: problem compiling CXX test program" 12607fi 12608 12609$rm -f confest.$objext 12610 12611compiler_lib_search_dirs_CXX= 12612if test -n "$compiler_lib_search_path_CXX"; then 12613 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 12614fi 12615 12616# PORTME: override above test on systems where it is broken 12617case $host_os in 12618interix[3-9]*) 12619 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12620 # hack all around it, let's just trust "g++" to DTRT. 12621 predep_objects_CXX= 12622 postdep_objects_CXX= 12623 postdeps_CXX= 12624 ;; 12625 12626linux*) 12627 case `$CC -V 2>&1 | sed 5q` in 12628 *Sun\ C*) 12629 # Sun C++ 5.9 12630 # 12631 # The more standards-conforming stlport4 library is 12632 # incompatible with the Cstd library. Avoid specifying 12633 # it if it's in CXXFLAGS. Ignore libCrun as 12634 # -library=stlport4 depends on it. 12635 case " $CXX $CXXFLAGS " in 12636 *" -library=stlport4 "*) 12637 solaris_use_stlport4=yes 12638 ;; 12639 esac 12640 if test "$solaris_use_stlport4" != yes; then 12641 postdeps_CXX='-library=Cstd -library=Crun' 12642 fi 12643 ;; 12644 esac 12645 ;; 12646 12647solaris*) 12648 case $cc_basename in 12649 CC*) 12650 # The more standards-conforming stlport4 library is 12651 # incompatible with the Cstd library. Avoid specifying 12652 # it if it's in CXXFLAGS. Ignore libCrun as 12653 # -library=stlport4 depends on it. 12654 case " $CXX $CXXFLAGS " in 12655 *" -library=stlport4 "*) 12656 solaris_use_stlport4=yes 12657 ;; 12658 esac 12659 12660 # Adding this requires a known-good setup of shared libraries for 12661 # Sun compiler versions before 5.6, else PIC objects from an old 12662 # archive will be linked into the output, leading to subtle bugs. 12663 if test "$solaris_use_stlport4" != yes; then 12664 postdeps_CXX='-library=Cstd -library=Crun' 12665 fi 12666 ;; 12667 esac 12668 ;; 12669esac 12670 12671case " $postdeps_CXX " in 12672*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12673esac 12674 12675lt_prog_compiler_wl_CXX= 12676lt_prog_compiler_pic_CXX= 12677lt_prog_compiler_static_CXX= 12678 12679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 12680$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 12681 12682 # C++ specific cases for pic, static, wl, etc. 12683 if test "$GXX" = yes; then 12684 lt_prog_compiler_wl_CXX='-Wl,' 12685 lt_prog_compiler_static_CXX='-static' 12686 12687 case $host_os in 12688 aix*) 12689 # All AIX code is PIC. 12690 if test "$host_cpu" = ia64; then 12691 # AIX 5 now supports IA64 processor 12692 lt_prog_compiler_static_CXX='-Bstatic' 12693 fi 12694 ;; 12695 amigaos*) 12696 # FIXME: we need at least 68020 code to build shared libraries, but 12697 # adding the `-m68020' flag to GCC prevents building anything better, 12698 # like `-m68040'. 12699 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12700 ;; 12701 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12702 # PIC is the default for these OSes. 12703 ;; 12704 mingw* | cygwin* | os2* | pw32*) 12705 # This hack is so that the source file can tell whether it is being 12706 # built for inclusion in a dll (and should export symbols for example). 12707 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12708 # (--disable-auto-import) libraries 12709 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12710 ;; 12711 darwin* | rhapsody*) 12712 # PIC is the default on this platform 12713 # Common symbols not allowed in MH_DYLIB files 12714 lt_prog_compiler_pic_CXX='-fno-common' 12715 ;; 12716 *djgpp*) 12717 # DJGPP does not support shared libraries at all 12718 lt_prog_compiler_pic_CXX= 12719 ;; 12720 interix[3-9]*) 12721 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12722 # Instead, we relocate shared libraries at runtime. 12723 ;; 12724 sysv4*MP*) 12725 if test -d /usr/nec; then 12726 lt_prog_compiler_pic_CXX=-Kconform_pic 12727 fi 12728 ;; 12729 hpux*) 12730 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12731 # not for PA HP-UX. 12732 case $host_cpu in 12733 hppa*64*|ia64*) 12734 ;; 12735 *) 12736 lt_prog_compiler_pic_CXX='-fPIC' 12737 ;; 12738 esac 12739 ;; 12740 *) 12741 lt_prog_compiler_pic_CXX='-fPIC' 12742 ;; 12743 esac 12744 else 12745 case $host_os in 12746 aix[4-9]*) 12747 # All AIX code is PIC. 12748 if test "$host_cpu" = ia64; then 12749 # AIX 5 now supports IA64 processor 12750 lt_prog_compiler_static_CXX='-Bstatic' 12751 else 12752 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12753 fi 12754 ;; 12755 chorus*) 12756 case $cc_basename in 12757 cxch68*) 12758 # Green Hills C++ Compiler 12759 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 12760 ;; 12761 esac 12762 ;; 12763 darwin*) 12764 # PIC is the default on this platform 12765 # Common symbols not allowed in MH_DYLIB files 12766 case $cc_basename in 12767 xlc*) 12768 lt_prog_compiler_pic_CXX='-qnocommon' 12769 lt_prog_compiler_wl_CXX='-Wl,' 12770 ;; 12771 esac 12772 ;; 12773 dgux*) 12774 case $cc_basename in 12775 ec++*) 12776 lt_prog_compiler_pic_CXX='-KPIC' 12777 ;; 12778 ghcx*) 12779 # Green Hills C++ Compiler 12780 lt_prog_compiler_pic_CXX='-pic' 12781 ;; 12782 *) 12783 ;; 12784 esac 12785 ;; 12786 freebsd* | dragonfly*) 12787 # FreeBSD uses GNU C++ 12788 ;; 12789 hpux9* | hpux10* | hpux11*) 12790 case $cc_basename in 12791 CC*) 12792 lt_prog_compiler_wl_CXX='-Wl,' 12793 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12794 if test "$host_cpu" != ia64; then 12795 lt_prog_compiler_pic_CXX='+Z' 12796 fi 12797 ;; 12798 aCC*) 12799 lt_prog_compiler_wl_CXX='-Wl,' 12800 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12801 case $host_cpu in 12802 hppa*64*|ia64*) 12803 # +Z the default 12804 ;; 12805 *) 12806 lt_prog_compiler_pic_CXX='+Z' 12807 ;; 12808 esac 12809 ;; 12810 *) 12811 ;; 12812 esac 12813 ;; 12814 interix*) 12815 # This is c89, which is MS Visual C++ (no shared libs) 12816 # Anyone wants to do a port? 12817 ;; 12818 irix5* | irix6* | nonstopux*) 12819 case $cc_basename in 12820 CC*) 12821 lt_prog_compiler_wl_CXX='-Wl,' 12822 lt_prog_compiler_static_CXX='-non_shared' 12823 # CC pic flag -KPIC is the default. 12824 ;; 12825 *) 12826 ;; 12827 esac 12828 ;; 12829 linux* | k*bsd*-gnu) 12830 case $cc_basename in 12831 KCC*) 12832 # KAI C++ Compiler 12833 lt_prog_compiler_wl_CXX='--backend -Wl,' 12834 lt_prog_compiler_pic_CXX='-fPIC' 12835 ;; 12836 icpc* | ecpc*) 12837 # Intel C++ 12838 lt_prog_compiler_wl_CXX='-Wl,' 12839 lt_prog_compiler_pic_CXX='-KPIC' 12840 lt_prog_compiler_static_CXX='-static' 12841 ;; 12842 pgCC* | pgcpp*) 12843 # Portland Group C++ compiler. 12844 lt_prog_compiler_wl_CXX='-Wl,' 12845 lt_prog_compiler_pic_CXX='-fpic' 12846 lt_prog_compiler_static_CXX='-Bstatic' 12847 ;; 12848 cxx*) 12849 # Compaq C++ 12850 # Make sure the PIC flag is empty. It appears that all Alpha 12851 # Linux and Compaq Tru64 Unix objects are PIC. 12852 lt_prog_compiler_pic_CXX= 12853 lt_prog_compiler_static_CXX='-non_shared' 12854 ;; 12855 *) 12856 case `$CC -V 2>&1 | sed 5q` in 12857 *Sun\ C*) 12858 # Sun C++ 5.9 12859 lt_prog_compiler_pic_CXX='-KPIC' 12860 lt_prog_compiler_static_CXX='-Bstatic' 12861 lt_prog_compiler_wl_CXX='-Qoption ld ' 12862 ;; 12863 esac 12864 ;; 12865 esac 12866 ;; 12867 lynxos*) 12868 ;; 12869 m88k*) 12870 ;; 12871 mvs*) 12872 case $cc_basename in 12873 cxx*) 12874 lt_prog_compiler_pic_CXX='-W c,exportall' 12875 ;; 12876 *) 12877 ;; 12878 esac 12879 ;; 12880 netbsd*) 12881 ;; 12882 osf3* | osf4* | osf5*) 12883 case $cc_basename in 12884 KCC*) 12885 lt_prog_compiler_wl_CXX='--backend -Wl,' 12886 ;; 12887 RCC*) 12888 # Rational C++ 2.4.1 12889 lt_prog_compiler_pic_CXX='-pic' 12890 ;; 12891 cxx*) 12892 # Digital/Compaq C++ 12893 lt_prog_compiler_wl_CXX='-Wl,' 12894 # Make sure the PIC flag is empty. It appears that all Alpha 12895 # Linux and Compaq Tru64 Unix objects are PIC. 12896 lt_prog_compiler_pic_CXX= 12897 lt_prog_compiler_static_CXX='-non_shared' 12898 ;; 12899 *) 12900 ;; 12901 esac 12902 ;; 12903 psos*) 12904 ;; 12905 solaris*) 12906 case $cc_basename in 12907 CC*) 12908 # Sun C++ 4.2, 5.x and Centerline C++ 12909 lt_prog_compiler_pic_CXX='-KPIC' 12910 lt_prog_compiler_static_CXX='-Bstatic' 12911 lt_prog_compiler_wl_CXX='-Qoption ld ' 12912 ;; 12913 gcx*) 12914 # Green Hills C++ Compiler 12915 lt_prog_compiler_pic_CXX='-PIC' 12916 ;; 12917 *) 12918 ;; 12919 esac 12920 ;; 12921 sunos4*) 12922 case $cc_basename in 12923 CC*) 12924 # Sun C++ 4.x 12925 lt_prog_compiler_pic_CXX='-pic' 12926 lt_prog_compiler_static_CXX='-Bstatic' 12927 ;; 12928 lcc*) 12929 # Lucid 12930 lt_prog_compiler_pic_CXX='-pic' 12931 ;; 12932 *) 12933 ;; 12934 esac 12935 ;; 12936 tandem*) 12937 case $cc_basename in 12938 NCC*) 12939 # NonStop-UX NCC 3.20 12940 lt_prog_compiler_pic_CXX='-KPIC' 12941 ;; 12942 *) 12943 ;; 12944 esac 12945 ;; 12946 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12947 case $cc_basename in 12948 CC*) 12949 lt_prog_compiler_wl_CXX='-Wl,' 12950 lt_prog_compiler_pic_CXX='-KPIC' 12951 lt_prog_compiler_static_CXX='-Bstatic' 12952 ;; 12953 esac 12954 ;; 12955 vxworks*) 12956 ;; 12957 *) 12958 lt_prog_compiler_can_build_shared_CXX=no 12959 ;; 12960 esac 12961 fi 12962 12963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 12964$as_echo "$lt_prog_compiler_pic_CXX" >&6; } 12965 12966# 12967# Check to make sure the PIC flag actually works. 12968# 12969if test -n "$lt_prog_compiler_pic_CXX"; then 12970 12971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12972$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 12973if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : 12974 $as_echo_n "(cached) " >&6 12975else 12976 lt_cv_prog_compiler_pic_works_CXX=no 12977 ac_outfile=conftest.$ac_objext 12978 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12979 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12980 # Insert the option either (1) after the last *FLAGS variable, or 12981 # (2) before a word containing "conftest.", or (3) at the end. 12982 # Note that $ac_compile itself does not contain backslashes and begins 12983 # with a dollar sign (not a hyphen), so the echo should work correctly. 12984 # The option is referenced via a variable to avoid confusing sed. 12985 lt_compile=`echo "$ac_compile" | $SED \ 12986 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12987 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12988 -e 's:$: $lt_compiler_flag:'` 12989 (eval echo "\"\$as_me:12989: $lt_compile\"" >&5) 12990 (eval "$lt_compile" 2>conftest.err) 12991 ac_status=$? 12992 cat conftest.err >&5 12993 echo "$as_me:12993: \$? = $ac_status" >&5 12994 if (exit $ac_status) && test -s "$ac_outfile"; then 12995 # The compiler can only warn and ignore the option if not recognized 12996 # So say no if there are warnings other than the usual output. 12997 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12998 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12999 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13000 lt_cv_prog_compiler_pic_works_CXX=yes 13001 fi 13002 fi 13003 $rm conftest* 13004 13005fi 13006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 13007$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 13008 13009if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 13010 case $lt_prog_compiler_pic_CXX in 13011 "" | " "*) ;; 13012 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 13013 esac 13014else 13015 lt_prog_compiler_pic_CXX= 13016 lt_prog_compiler_can_build_shared_CXX=no 13017fi 13018 13019fi 13020case $host_os in 13021 # For platforms which do not support PIC, -DPIC is meaningless: 13022 *djgpp*) 13023 lt_prog_compiler_pic_CXX= 13024 ;; 13025 *) 13026 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 13027 ;; 13028esac 13029 13030# 13031# Check to make sure the static flag actually works. 13032# 13033wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 13034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13035$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 13036if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : 13037 $as_echo_n "(cached) " >&6 13038else 13039 lt_cv_prog_compiler_static_works_CXX=no 13040 save_LDFLAGS="$LDFLAGS" 13041 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13042 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13043 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13044 # The linker can only warn and ignore the option if not recognized 13045 # So say no if there are warnings 13046 if test -s conftest.err; then 13047 # Append any errors to the config.log. 13048 cat conftest.err 1>&5 13049 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13050 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13051 if diff conftest.exp conftest.er2 >/dev/null; then 13052 lt_cv_prog_compiler_static_works_CXX=yes 13053 fi 13054 else 13055 lt_cv_prog_compiler_static_works_CXX=yes 13056 fi 13057 fi 13058 $rm -r conftest* 13059 LDFLAGS="$save_LDFLAGS" 13060 13061fi 13062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 13063$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 13064 13065if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 13066 : 13067else 13068 lt_prog_compiler_static_CXX= 13069fi 13070 13071 13072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13073$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13074if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : 13075 $as_echo_n "(cached) " >&6 13076else 13077 lt_cv_prog_compiler_c_o_CXX=no 13078 $rm -r conftest 2>/dev/null 13079 mkdir conftest 13080 cd conftest 13081 mkdir out 13082 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13083 13084 lt_compiler_flag="-o out/conftest2.$ac_objext" 13085 # Insert the option either (1) after the last *FLAGS variable, or 13086 # (2) before a word containing "conftest.", or (3) at the end. 13087 # Note that $ac_compile itself does not contain backslashes and begins 13088 # with a dollar sign (not a hyphen), so the echo should work correctly. 13089 lt_compile=`echo "$ac_compile" | $SED \ 13090 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13091 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13092 -e 's:$: $lt_compiler_flag:'` 13093 (eval echo "\"\$as_me:13093: $lt_compile\"" >&5) 13094 (eval "$lt_compile" 2>out/conftest.err) 13095 ac_status=$? 13096 cat out/conftest.err >&5 13097 echo "$as_me:13097: \$? = $ac_status" >&5 13098 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13099 then 13100 # The compiler can only warn and ignore the option if not recognized 13101 # So say no if there are warnings 13102 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13103 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13104 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13105 lt_cv_prog_compiler_c_o_CXX=yes 13106 fi 13107 fi 13108 chmod u+w . 2>&5 13109 $rm conftest* 13110 # SGI C++ compiler will create directory out/ii_files/ for 13111 # template instantiation 13112 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13113 $rm out/* && rmdir out 13114 cd .. 13115 rmdir conftest 13116 $rm conftest* 13117 13118fi 13119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13120$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 13121 13122 13123hard_links="nottested" 13124if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 13125 # do not overwrite the value of need_locks provided by the user 13126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 13127$as_echo_n "checking if we can lock with hard links... " >&6; } 13128 hard_links=yes 13129 $rm conftest* 13130 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13131 touch conftest.a 13132 ln conftest.a conftest.b 2>&5 || hard_links=no 13133 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 13135$as_echo "$hard_links" >&6; } 13136 if test "$hard_links" = no; then 13137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13138$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13139 need_locks=warn 13140 fi 13141else 13142 need_locks=no 13143fi 13144 13145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13146$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13147 13148 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13149 case $host_os in 13150 aix[4-9]*) 13151 # If we're using GNU nm, then we don't want the "-C" option. 13152 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13153 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13154 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 13155 else 13156 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 13157 fi 13158 ;; 13159 pw32*) 13160 export_symbols_cmds_CXX="$ltdll_cmds" 13161 ;; 13162 cygwin* | mingw*) 13163 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 13164 ;; 13165 *) 13166 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13167 ;; 13168 esac 13169 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 13170 13171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 13172$as_echo "$ld_shlibs_CXX" >&6; } 13173test "$ld_shlibs_CXX" = no && can_build_shared=no 13174 13175# 13176# Do we need to explicitly link libc? 13177# 13178case "x$archive_cmds_need_lc_CXX" in 13179x|xyes) 13180 # Assume -lc should be added 13181 archive_cmds_need_lc_CXX=yes 13182 13183 if test "$enable_shared" = yes && test "$GCC" = yes; then 13184 case $archive_cmds_CXX in 13185 *'~'*) 13186 # FIXME: we may have to deal with multi-command sequences. 13187 ;; 13188 '$CC '*) 13189 # Test whether the compiler implicitly links with -lc since on some 13190 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13191 # to ld, don't add -lc before -lgcc. 13192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 13193$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13194 $rm conftest* 13195 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13196 13197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13198 (eval $ac_compile) 2>&5 13199 ac_status=$? 13200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13201 test $ac_status = 0; } 2>conftest.err; then 13202 soname=conftest 13203 lib=conftest 13204 libobjs=conftest.$ac_objext 13205 deplibs= 13206 wl=$lt_prog_compiler_wl_CXX 13207 pic_flag=$lt_prog_compiler_pic_CXX 13208 compiler_flags=-v 13209 linker_flags=-v 13210 verstring= 13211 output_objdir=. 13212 libname=conftest 13213 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13214 allow_undefined_flag_CXX= 13215 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5 13216 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 13217 ac_status=$? 13218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13219 test $ac_status = 0; } 13220 then 13221 archive_cmds_need_lc_CXX=no 13222 else 13223 archive_cmds_need_lc_CXX=yes 13224 fi 13225 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13226 else 13227 cat conftest.err 1>&5 13228 fi 13229 $rm conftest* 13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5 13231$as_echo "$archive_cmds_need_lc_CXX" >&6; } 13232 ;; 13233 esac 13234 fi 13235 ;; 13236esac 13237 13238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 13239$as_echo_n "checking dynamic linker characteristics... " >&6; } 13240library_names_spec= 13241libname_spec='lib$name' 13242soname_spec= 13243shrext_cmds=".so" 13244postinstall_cmds= 13245postuninstall_cmds= 13246finish_cmds= 13247finish_eval= 13248shlibpath_var= 13249shlibpath_overrides_runpath=unknown 13250version_type=none 13251dynamic_linker="$host_os ld.so" 13252sys_lib_dlsearch_path_spec="/lib /usr/lib" 13253 13254need_lib_prefix=unknown 13255hardcode_into_libs=no 13256 13257# when you set need_version to no, make sure it does not cause -set_version 13258# flags to be left without arguments 13259need_version=unknown 13260 13261case $host_os in 13262aix3*) 13263 version_type=linux 13264 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13265 shlibpath_var=LIBPATH 13266 13267 # AIX 3 has no versioning support, so we append a major version to the name. 13268 soname_spec='${libname}${release}${shared_ext}$major' 13269 ;; 13270 13271aix[4-9]*) 13272 version_type=linux 13273 need_lib_prefix=no 13274 need_version=no 13275 hardcode_into_libs=yes 13276 if test "$host_cpu" = ia64; then 13277 # AIX 5 supports IA64 13278 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13279 shlibpath_var=LD_LIBRARY_PATH 13280 else 13281 # With GCC up to 2.95.x, collect2 would create an import file 13282 # for dependence libraries. The import file would start with 13283 # the line `#! .'. This would cause the generated library to 13284 # depend on `.', always an invalid library. This was fixed in 13285 # development snapshots of GCC prior to 3.0. 13286 case $host_os in 13287 aix4 | aix4.[01] | aix4.[01].*) 13288 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13289 echo ' yes ' 13290 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13291 : 13292 else 13293 can_build_shared=no 13294 fi 13295 ;; 13296 esac 13297 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13298 # soname into executable. Probably we can add versioning support to 13299 # collect2, so additional links can be useful in future. 13300 if test "$aix_use_runtimelinking" = yes; then 13301 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13302 # instead of lib<name>.a to let people know that these are not 13303 # typical AIX shared libraries. 13304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13305 else 13306 # We preserve .a as extension for shared libraries through AIX4.2 13307 # and later when we are not doing run time linking. 13308 library_names_spec='${libname}${release}.a $libname.a' 13309 soname_spec='${libname}${release}${shared_ext}$major' 13310 fi 13311 shlibpath_var=LIBPATH 13312 fi 13313 ;; 13314 13315amigaos*) 13316 library_names_spec='$libname.ixlibrary $libname.a' 13317 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13318 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' 13319 ;; 13320 13321beos*) 13322 library_names_spec='${libname}${shared_ext}' 13323 dynamic_linker="$host_os ld.so" 13324 shlibpath_var=LIBRARY_PATH 13325 ;; 13326 13327bsdi[45]*) 13328 version_type=linux 13329 need_version=no 13330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13331 soname_spec='${libname}${release}${shared_ext}$major' 13332 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13333 shlibpath_var=LD_LIBRARY_PATH 13334 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13335 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13336 # the default ld.so.conf also contains /usr/contrib/lib and 13337 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13338 # libtool to hard-code these into programs 13339 ;; 13340 13341cygwin* | mingw* | pw32*) 13342 version_type=windows 13343 shrext_cmds=".dll" 13344 need_version=no 13345 need_lib_prefix=no 13346 13347 case $GCC,$host_os in 13348 yes,cygwin* | yes,mingw* | yes,pw32*) 13349 library_names_spec='$libname.dll.a' 13350 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13351 postinstall_cmds='base_file=`basename \${file}`~ 13352 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13353 dldir=$destdir/`dirname \$dlpath`~ 13354 test -d \$dldir || mkdir -p \$dldir~ 13355 $install_prog $dir/$dlname \$dldir/$dlname~ 13356 chmod a+x \$dldir/$dlname' 13357 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13358 dlpath=$dir/\$dldll~ 13359 $rm \$dlpath' 13360 shlibpath_overrides_runpath=yes 13361 13362 case $host_os in 13363 cygwin*) 13364 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13365 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13366 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13367 ;; 13368 mingw*) 13369 # MinGW DLLs use traditional 'lib' prefix 13370 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13371 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13372 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13373 # It is most probably a Windows format PATH printed by 13374 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13375 # path with ; separators, and with drive letters. We can handle the 13376 # drive letters (cygwin fileutils understands them), so leave them, 13377 # especially as we might pass files found there to a mingw objdump, 13378 # which wouldn't understand a cygwinified path. Ahh. 13379 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13380 else 13381 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13382 fi 13383 ;; 13384 pw32*) 13385 # pw32 DLLs use 'pw' prefix rather than 'lib' 13386 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13387 ;; 13388 esac 13389 ;; 13390 13391 *) 13392 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13393 ;; 13394 esac 13395 dynamic_linker='Win32 ld.exe' 13396 # FIXME: first we should search . and the directory the executable is in 13397 shlibpath_var=PATH 13398 ;; 13399 13400darwin* | rhapsody*) 13401 dynamic_linker="$host_os dyld" 13402 version_type=darwin 13403 need_lib_prefix=no 13404 need_version=no 13405 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13406 soname_spec='${libname}${release}${major}$shared_ext' 13407 shlibpath_overrides_runpath=yes 13408 shlibpath_var=DYLD_LIBRARY_PATH 13409 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13410 13411 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13412 ;; 13413 13414dgux*) 13415 version_type=linux 13416 need_lib_prefix=no 13417 need_version=no 13418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13419 soname_spec='${libname}${release}${shared_ext}$major' 13420 shlibpath_var=LD_LIBRARY_PATH 13421 ;; 13422 13423freebsd1*) 13424 dynamic_linker=no 13425 ;; 13426 13427freebsd* | dragonfly*) 13428 # DragonFly does not have aout. When/if they implement a new 13429 # versioning mechanism, adjust this. 13430 if test -x /usr/bin/objformat; then 13431 objformat=`/usr/bin/objformat` 13432 else 13433 case $host_os in 13434 freebsd[123]*) objformat=aout ;; 13435 *) objformat=elf ;; 13436 esac 13437 fi 13438 version_type=freebsd-$objformat 13439 case $version_type in 13440 freebsd-elf*) 13441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13442 need_version=no 13443 need_lib_prefix=no 13444 ;; 13445 freebsd-*) 13446 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13447 need_version=yes 13448 ;; 13449 esac 13450 shlibpath_var=LD_LIBRARY_PATH 13451 case $host_os in 13452 freebsd2*) 13453 shlibpath_overrides_runpath=yes 13454 ;; 13455 freebsd3.[01]* | freebsdelf3.[01]*) 13456 shlibpath_overrides_runpath=yes 13457 hardcode_into_libs=yes 13458 ;; 13459 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13460 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13461 shlibpath_overrides_runpath=no 13462 hardcode_into_libs=yes 13463 ;; 13464 *) # from 4.6 on, and DragonFly 13465 shlibpath_overrides_runpath=yes 13466 hardcode_into_libs=yes 13467 ;; 13468 esac 13469 ;; 13470 13471gnu*) 13472 version_type=linux 13473 need_lib_prefix=no 13474 need_version=no 13475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13476 soname_spec='${libname}${release}${shared_ext}$major' 13477 shlibpath_var=LD_LIBRARY_PATH 13478 hardcode_into_libs=yes 13479 ;; 13480 13481hpux9* | hpux10* | hpux11*) 13482 # Give a soname corresponding to the major version so that dld.sl refuses to 13483 # link against other versions. 13484 version_type=sunos 13485 need_lib_prefix=no 13486 need_version=no 13487 case $host_cpu in 13488 ia64*) 13489 shrext_cmds='.so' 13490 hardcode_into_libs=yes 13491 dynamic_linker="$host_os dld.so" 13492 shlibpath_var=LD_LIBRARY_PATH 13493 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13495 soname_spec='${libname}${release}${shared_ext}$major' 13496 if test "X$HPUX_IA64_MODE" = X32; then 13497 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13498 else 13499 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13500 fi 13501 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13502 ;; 13503 hppa*64*) 13504 shrext_cmds='.sl' 13505 hardcode_into_libs=yes 13506 dynamic_linker="$host_os dld.sl" 13507 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13508 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13510 soname_spec='${libname}${release}${shared_ext}$major' 13511 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13512 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13513 ;; 13514 *) 13515 shrext_cmds='.sl' 13516 dynamic_linker="$host_os dld.sl" 13517 shlibpath_var=SHLIB_PATH 13518 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13520 soname_spec='${libname}${release}${shared_ext}$major' 13521 ;; 13522 esac 13523 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13524 postinstall_cmds='chmod 555 $lib' 13525 ;; 13526 13527interix[3-9]*) 13528 version_type=linux 13529 need_lib_prefix=no 13530 need_version=no 13531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13532 soname_spec='${libname}${release}${shared_ext}$major' 13533 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13534 shlibpath_var=LD_LIBRARY_PATH 13535 shlibpath_overrides_runpath=no 13536 hardcode_into_libs=yes 13537 ;; 13538 13539irix5* | irix6* | nonstopux*) 13540 case $host_os in 13541 nonstopux*) version_type=nonstopux ;; 13542 *) 13543 if test "$lt_cv_prog_gnu_ld" = yes; then 13544 version_type=linux 13545 else 13546 version_type=irix 13547 fi ;; 13548 esac 13549 need_lib_prefix=no 13550 need_version=no 13551 soname_spec='${libname}${release}${shared_ext}$major' 13552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13553 case $host_os in 13554 irix5* | nonstopux*) 13555 libsuff= shlibsuff= 13556 ;; 13557 *) 13558 case $LD in # libtool.m4 will add one of these switches to LD 13559 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13560 libsuff= shlibsuff= libmagic=32-bit;; 13561 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13562 libsuff=32 shlibsuff=N32 libmagic=N32;; 13563 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13564 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13565 *) libsuff= shlibsuff= libmagic=never-match;; 13566 esac 13567 ;; 13568 esac 13569 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13570 shlibpath_overrides_runpath=no 13571 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13572 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13573 hardcode_into_libs=yes 13574 ;; 13575 13576# No shared lib support for Linux oldld, aout, or coff. 13577linux*oldld* | linux*aout* | linux*coff*) 13578 dynamic_linker=no 13579 ;; 13580 13581# This must be Linux ELF. 13582linux* | k*bsd*-gnu) 13583 version_type=linux 13584 need_lib_prefix=no 13585 need_version=no 13586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13587 soname_spec='${libname}${release}${shared_ext}$major' 13588 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13589 shlibpath_var=LD_LIBRARY_PATH 13590 shlibpath_overrides_runpath=no 13591 # This implies no fast_install, which is unacceptable. 13592 # Some rework will be needed to allow for fast_install 13593 # before this can be enabled. 13594 hardcode_into_libs=yes 13595 13596 # Append ld.so.conf contents to the search path 13597 if test -f /etc/ld.so.conf; then 13598 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' ' '` 13599 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13600 fi 13601 13602 # We used to test for /lib/ld.so.1 and disable shared libraries on 13603 # powerpc, because MkLinux only supported shared libraries with the 13604 # GNU dynamic linker. Since this was broken with cross compilers, 13605 # most powerpc-linux boxes support dynamic linking these days and 13606 # people can always --disable-shared, the test was removed, and we 13607 # assume the GNU/Linux dynamic linker is in use. 13608 dynamic_linker='GNU/Linux ld.so' 13609 ;; 13610 13611netbsd*) 13612 version_type=sunos 13613 need_lib_prefix=no 13614 need_version=no 13615 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13617 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13618 dynamic_linker='NetBSD (a.out) ld.so' 13619 else 13620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13621 soname_spec='${libname}${release}${shared_ext}$major' 13622 dynamic_linker='NetBSD ld.elf_so' 13623 fi 13624 shlibpath_var=LD_LIBRARY_PATH 13625 shlibpath_overrides_runpath=yes 13626 hardcode_into_libs=yes 13627 ;; 13628 13629newsos6) 13630 version_type=linux 13631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13632 shlibpath_var=LD_LIBRARY_PATH 13633 shlibpath_overrides_runpath=yes 13634 ;; 13635 13636nto-qnx*) 13637 version_type=linux 13638 need_lib_prefix=no 13639 need_version=no 13640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13641 soname_spec='${libname}${release}${shared_ext}$major' 13642 shlibpath_var=LD_LIBRARY_PATH 13643 shlibpath_overrides_runpath=yes 13644 ;; 13645 13646openbsd*) 13647 version_type=sunos 13648 sys_lib_dlsearch_path_spec="/usr/lib" 13649 need_lib_prefix=no 13650 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13651 case $host_os in 13652 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13653 *) need_version=no ;; 13654 esac 13655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13656 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13657 shlibpath_var=LD_LIBRARY_PATH 13658 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13659 case $host_os in 13660 openbsd2.[89] | openbsd2.[89].*) 13661 shlibpath_overrides_runpath=no 13662 ;; 13663 *) 13664 shlibpath_overrides_runpath=yes 13665 ;; 13666 esac 13667 else 13668 shlibpath_overrides_runpath=yes 13669 fi 13670 ;; 13671 13672os2*) 13673 libname_spec='$name' 13674 shrext_cmds=".dll" 13675 need_lib_prefix=no 13676 library_names_spec='$libname${shared_ext} $libname.a' 13677 dynamic_linker='OS/2 ld.exe' 13678 shlibpath_var=LIBPATH 13679 ;; 13680 13681osf3* | osf4* | osf5*) 13682 version_type=osf 13683 need_lib_prefix=no 13684 need_version=no 13685 soname_spec='${libname}${release}${shared_ext}$major' 13686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13687 shlibpath_var=LD_LIBRARY_PATH 13688 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13689 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13690 ;; 13691 13692rdos*) 13693 dynamic_linker=no 13694 ;; 13695 13696solaris*) 13697 version_type=linux 13698 need_lib_prefix=no 13699 need_version=no 13700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13701 soname_spec='${libname}${release}${shared_ext}$major' 13702 shlibpath_var=LD_LIBRARY_PATH 13703 shlibpath_overrides_runpath=yes 13704 hardcode_into_libs=yes 13705 # ldd complains unless libraries are executable 13706 postinstall_cmds='chmod +x $lib' 13707 ;; 13708 13709sunos4*) 13710 version_type=sunos 13711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13712 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13713 shlibpath_var=LD_LIBRARY_PATH 13714 shlibpath_overrides_runpath=yes 13715 if test "$with_gnu_ld" = yes; then 13716 need_lib_prefix=no 13717 fi 13718 need_version=yes 13719 ;; 13720 13721sysv4 | sysv4.3*) 13722 version_type=linux 13723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13724 soname_spec='${libname}${release}${shared_ext}$major' 13725 shlibpath_var=LD_LIBRARY_PATH 13726 case $host_vendor in 13727 sni) 13728 shlibpath_overrides_runpath=no 13729 need_lib_prefix=no 13730 export_dynamic_flag_spec='${wl}-Blargedynsym' 13731 runpath_var=LD_RUN_PATH 13732 ;; 13733 siemens) 13734 need_lib_prefix=no 13735 ;; 13736 motorola) 13737 need_lib_prefix=no 13738 need_version=no 13739 shlibpath_overrides_runpath=no 13740 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13741 ;; 13742 esac 13743 ;; 13744 13745sysv4*MP*) 13746 if test -d /usr/nec ;then 13747 version_type=linux 13748 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13749 soname_spec='$libname${shared_ext}.$major' 13750 shlibpath_var=LD_LIBRARY_PATH 13751 fi 13752 ;; 13753 13754sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13755 version_type=freebsd-elf 13756 need_lib_prefix=no 13757 need_version=no 13758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13759 soname_spec='${libname}${release}${shared_ext}$major' 13760 shlibpath_var=LD_LIBRARY_PATH 13761 hardcode_into_libs=yes 13762 if test "$with_gnu_ld" = yes; then 13763 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13764 shlibpath_overrides_runpath=no 13765 else 13766 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13767 shlibpath_overrides_runpath=yes 13768 case $host_os in 13769 sco3.2v5*) 13770 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13771 ;; 13772 esac 13773 fi 13774 sys_lib_dlsearch_path_spec='/usr/lib' 13775 ;; 13776 13777uts4*) 13778 version_type=linux 13779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13780 soname_spec='${libname}${release}${shared_ext}$major' 13781 shlibpath_var=LD_LIBRARY_PATH 13782 ;; 13783 13784*) 13785 dynamic_linker=no 13786 ;; 13787esac 13788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 13789$as_echo "$dynamic_linker" >&6; } 13790test "$dynamic_linker" = no && can_build_shared=no 13791 13792if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then : 13793 $as_echo_n "(cached) " >&6 13794else 13795 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 13796fi 13797 13798sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 13799if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then : 13800 $as_echo_n "(cached) " >&6 13801else 13802 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 13803fi 13804 13805sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 13806 13807variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13808if test "$GCC" = yes; then 13809 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13810fi 13811 13812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13813$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13814hardcode_action_CXX= 13815if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13816 test -n "$runpath_var_CXX" || \ 13817 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13818 13819 # We can hardcode non-existant directories. 13820 if test "$hardcode_direct_CXX" != no && 13821 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13822 # have to relink, otherwise we might link with an installed library 13823 # when we should be linking with a yet-to-be-installed one 13824 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13825 test "$hardcode_minus_L_CXX" != no; then 13826 # Linking always hardcodes the temporary library directory. 13827 hardcode_action_CXX=relink 13828 else 13829 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13830 hardcode_action_CXX=immediate 13831 fi 13832else 13833 # We cannot hardcode anything, or else we can only hardcode existing 13834 # directories. 13835 hardcode_action_CXX=unsupported 13836fi 13837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 13838$as_echo "$hardcode_action_CXX" >&6; } 13839 13840if test "$hardcode_action_CXX" = relink; then 13841 # Fast installation is not supported 13842 enable_fast_install=no 13843elif test "$shlibpath_overrides_runpath" = yes || 13844 test "$enable_shared" = no; then 13845 # Fast installation is not necessary 13846 enable_fast_install=needless 13847fi 13848 13849 13850# The else clause should only fire when bootstrapping the 13851# libtool distribution, otherwise you forgot to ship ltmain.sh 13852# with your package, and you will get complaints that there are 13853# no rules to generate ltmain.sh. 13854if test -f "$ltmain"; then 13855 # See if we are running on zsh, and set the options which allow our commands through 13856 # without removal of \ escapes. 13857 if test -n "${ZSH_VERSION+set}" ; then 13858 setopt NO_GLOB_SUBST 13859 fi 13860 # Now quote all the things that may contain metacharacters while being 13861 # careful not to overquote the AC_SUBSTed values. We take copies of the 13862 # variables and quote the copies for generation of the libtool script. 13863 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13864 SED SHELL STRIP \ 13865 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13866 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13867 deplibs_check_method reload_flag reload_cmds need_locks \ 13868 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13869 lt_cv_sys_global_symbol_to_c_name_address \ 13870 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13871 old_postinstall_cmds old_postuninstall_cmds \ 13872 compiler_CXX \ 13873 CC_CXX \ 13874 LD_CXX \ 13875 lt_prog_compiler_wl_CXX \ 13876 lt_prog_compiler_pic_CXX \ 13877 lt_prog_compiler_static_CXX \ 13878 lt_prog_compiler_no_builtin_flag_CXX \ 13879 export_dynamic_flag_spec_CXX \ 13880 thread_safe_flag_spec_CXX \ 13881 whole_archive_flag_spec_CXX \ 13882 enable_shared_with_static_runtimes_CXX \ 13883 old_archive_cmds_CXX \ 13884 old_archive_from_new_cmds_CXX \ 13885 predep_objects_CXX \ 13886 postdep_objects_CXX \ 13887 predeps_CXX \ 13888 postdeps_CXX \ 13889 compiler_lib_search_path_CXX \ 13890 compiler_lib_search_dirs_CXX \ 13891 archive_cmds_CXX \ 13892 archive_expsym_cmds_CXX \ 13893 postinstall_cmds_CXX \ 13894 postuninstall_cmds_CXX \ 13895 old_archive_from_expsyms_cmds_CXX \ 13896 allow_undefined_flag_CXX \ 13897 no_undefined_flag_CXX \ 13898 export_symbols_cmds_CXX \ 13899 hardcode_libdir_flag_spec_CXX \ 13900 hardcode_libdir_flag_spec_ld_CXX \ 13901 hardcode_libdir_separator_CXX \ 13902 hardcode_automatic_CXX \ 13903 module_cmds_CXX \ 13904 module_expsym_cmds_CXX \ 13905 lt_cv_prog_compiler_c_o_CXX \ 13906 fix_srcfile_path_CXX \ 13907 exclude_expsyms_CXX \ 13908 include_expsyms_CXX; do 13909 13910 case $var in 13911 old_archive_cmds_CXX | \ 13912 old_archive_from_new_cmds_CXX | \ 13913 archive_cmds_CXX | \ 13914 archive_expsym_cmds_CXX | \ 13915 module_cmds_CXX | \ 13916 module_expsym_cmds_CXX | \ 13917 old_archive_from_expsyms_cmds_CXX | \ 13918 export_symbols_cmds_CXX | \ 13919 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13920 postinstall_cmds | postuninstall_cmds | \ 13921 old_postinstall_cmds | old_postuninstall_cmds | \ 13922 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13923 # Double-quote double-evaled strings. 13924 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13925 ;; 13926 *) 13927 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13928 ;; 13929 esac 13930 done 13931 13932 case $lt_echo in 13933 *'\$0 --fallback-echo"') 13934 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13935 ;; 13936 esac 13937 13938cfgfile="$ofile" 13939 13940 cat <<__EOF__ >> "$cfgfile" 13941# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13942 13943# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13944 13945# Shell to use when invoking shell scripts. 13946SHELL=$lt_SHELL 13947 13948# Whether or not to build shared libraries. 13949build_libtool_libs=$enable_shared 13950 13951# Whether or not to build static libraries. 13952build_old_libs=$enable_static 13953 13954# Whether or not to add -lc for building shared libraries. 13955build_libtool_need_lc=$archive_cmds_need_lc_CXX 13956 13957# Whether or not to disallow shared libs when runtime libs are static 13958allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13959 13960# Whether or not to optimize for fast installation. 13961fast_install=$enable_fast_install 13962 13963# The host system. 13964host_alias=$host_alias 13965host=$host 13966host_os=$host_os 13967 13968# The build system. 13969build_alias=$build_alias 13970build=$build 13971build_os=$build_os 13972 13973# An echo program that does not interpret backslashes. 13974echo=$lt_echo 13975 13976# The archiver. 13977AR=$lt_AR 13978AR_FLAGS=$lt_AR_FLAGS 13979 13980# A C compiler. 13981LTCC=$lt_LTCC 13982 13983# LTCC compiler flags. 13984LTCFLAGS=$lt_LTCFLAGS 13985 13986# A language-specific compiler. 13987CC=$lt_compiler_CXX 13988 13989# Is the compiler the GNU C compiler? 13990with_gcc=$GCC_CXX 13991 13992# An ERE matcher. 13993EGREP=$lt_EGREP 13994 13995# The linker used to build libraries. 13996LD=$lt_LD_CXX 13997 13998# Whether we need hard or soft links. 13999LN_S=$lt_LN_S 14000 14001# A BSD-compatible nm program. 14002NM=$lt_NM 14003 14004# A symbol stripping program 14005STRIP=$lt_STRIP 14006 14007# Used to examine libraries when file_magic_cmd begins "file" 14008MAGIC_CMD=$MAGIC_CMD 14009 14010# Used on cygwin: DLL creation program. 14011DLLTOOL="$DLLTOOL" 14012 14013# Used on cygwin: object dumper. 14014OBJDUMP="$OBJDUMP" 14015 14016# Used on cygwin: assembler. 14017AS="$AS" 14018 14019# The name of the directory that contains temporary libtool files. 14020objdir=$objdir 14021 14022# How to create reloadable object files. 14023reload_flag=$lt_reload_flag 14024reload_cmds=$lt_reload_cmds 14025 14026# How to pass a linker flag through the compiler. 14027wl=$lt_lt_prog_compiler_wl_CXX 14028 14029# Object file suffix (normally "o"). 14030objext="$ac_objext" 14031 14032# Old archive suffix (normally "a"). 14033libext="$libext" 14034 14035# Shared library suffix (normally ".so"). 14036shrext_cmds='$shrext_cmds' 14037 14038# Executable file suffix (normally ""). 14039exeext="$exeext" 14040 14041# Additional compiler flags for building library objects. 14042pic_flag=$lt_lt_prog_compiler_pic_CXX 14043pic_mode=$pic_mode 14044 14045# What is the maximum length of a command? 14046max_cmd_len=$lt_cv_sys_max_cmd_len 14047 14048# Does compiler simultaneously support -c and -o options? 14049compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 14050 14051# Must we lock files when doing compilation? 14052need_locks=$lt_need_locks 14053 14054# Do we need the lib prefix for modules? 14055need_lib_prefix=$need_lib_prefix 14056 14057# Do we need a version for libraries? 14058need_version=$need_version 14059 14060# Whether dlopen is supported. 14061dlopen_support=$enable_dlopen 14062 14063# Whether dlopen of programs is supported. 14064dlopen_self=$enable_dlopen_self 14065 14066# Whether dlopen of statically linked programs is supported. 14067dlopen_self_static=$enable_dlopen_self_static 14068 14069# Compiler flag to prevent dynamic linking. 14070link_static_flag=$lt_lt_prog_compiler_static_CXX 14071 14072# Compiler flag to turn off builtin functions. 14073no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 14074 14075# Compiler flag to allow reflexive dlopens. 14076export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 14077 14078# Compiler flag to generate shared objects directly from archives. 14079whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 14080 14081# Compiler flag to generate thread-safe objects. 14082thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 14083 14084# Library versioning type. 14085version_type=$version_type 14086 14087# Format of library name prefix. 14088libname_spec=$lt_libname_spec 14089 14090# List of archive names. First name is the real one, the rest are links. 14091# The last name is the one that the linker finds with -lNAME. 14092library_names_spec=$lt_library_names_spec 14093 14094# The coded name of the library, if different from the real name. 14095soname_spec=$lt_soname_spec 14096 14097# Commands used to build and install an old-style archive. 14098RANLIB=$lt_RANLIB 14099old_archive_cmds=$lt_old_archive_cmds_CXX 14100old_postinstall_cmds=$lt_old_postinstall_cmds 14101old_postuninstall_cmds=$lt_old_postuninstall_cmds 14102 14103# Create an old-style archive from a shared archive. 14104old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 14105 14106# Create a temporary old-style archive to link instead of a shared archive. 14107old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 14108 14109# Commands used to build and install a shared archive. 14110archive_cmds=$lt_archive_cmds_CXX 14111archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 14112postinstall_cmds=$lt_postinstall_cmds 14113postuninstall_cmds=$lt_postuninstall_cmds 14114 14115# Commands used to build a loadable module (assumed same as above if empty) 14116module_cmds=$lt_module_cmds_CXX 14117module_expsym_cmds=$lt_module_expsym_cmds_CXX 14118 14119# Commands to strip libraries. 14120old_striplib=$lt_old_striplib 14121striplib=$lt_striplib 14122 14123# Dependencies to place before the objects being linked to create a 14124# shared library. 14125predep_objects=$lt_predep_objects_CXX 14126 14127# Dependencies to place after the objects being linked to create a 14128# shared library. 14129postdep_objects=$lt_postdep_objects_CXX 14130 14131# Dependencies to place before the objects being linked to create a 14132# shared library. 14133predeps=$lt_predeps_CXX 14134 14135# Dependencies to place after the objects being linked to create a 14136# shared library. 14137postdeps=$lt_postdeps_CXX 14138 14139# The directories searched by this compiler when creating a shared 14140# library 14141compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 14142 14143# The library search path used internally by the compiler when linking 14144# a shared library. 14145compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 14146 14147# Method to check whether dependent libraries are shared objects. 14148deplibs_check_method=$lt_deplibs_check_method 14149 14150# Command to use when deplibs_check_method == file_magic. 14151file_magic_cmd=$lt_file_magic_cmd 14152 14153# Flag that allows shared libraries with undefined symbols to be built. 14154allow_undefined_flag=$lt_allow_undefined_flag_CXX 14155 14156# Flag that forces no undefined symbols. 14157no_undefined_flag=$lt_no_undefined_flag_CXX 14158 14159# Commands used to finish a libtool library installation in a directory. 14160finish_cmds=$lt_finish_cmds 14161 14162# Same as above, but a single script fragment to be evaled but not shown. 14163finish_eval=$lt_finish_eval 14164 14165# Take the output of nm and produce a listing of raw symbols and C names. 14166global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14167 14168# Transform the output of nm in a proper C declaration 14169global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14170 14171# Transform the output of nm in a C name address pair 14172global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14173 14174# This is the shared library runtime path variable. 14175runpath_var=$runpath_var 14176 14177# This is the shared library path variable. 14178shlibpath_var=$shlibpath_var 14179 14180# Is shlibpath searched before the hard-coded library search path? 14181shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14182 14183# How to hardcode a shared library path into an executable. 14184hardcode_action=$hardcode_action_CXX 14185 14186# Whether we should hardcode library paths into libraries. 14187hardcode_into_libs=$hardcode_into_libs 14188 14189# Flag to hardcode \$libdir into a binary during linking. 14190# This must work even if \$libdir does not exist. 14191hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 14192 14193# If ld is used when linking, flag to hardcode \$libdir into 14194# a binary during linking. This must work even if \$libdir does 14195# not exist. 14196hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 14197 14198# Whether we need a single -rpath flag with a separated argument. 14199hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 14200 14201# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14202# resulting binary. 14203hardcode_direct=$hardcode_direct_CXX 14204 14205# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14206# resulting binary. 14207hardcode_minus_L=$hardcode_minus_L_CXX 14208 14209# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14210# the resulting binary. 14211hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 14212 14213# Set to yes if building a shared library automatically hardcodes DIR into the library 14214# and all subsequent libraries and executables linked against it. 14215hardcode_automatic=$hardcode_automatic_CXX 14216 14217# Variables whose values should be saved in libtool wrapper scripts and 14218# restored at relink time. 14219variables_saved_for_relink="$variables_saved_for_relink" 14220 14221# Whether libtool must link a program against all its dependency libraries. 14222link_all_deplibs=$link_all_deplibs_CXX 14223 14224# Compile-time system search path for libraries 14225sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14226 14227# Run-time system search path for libraries 14228sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14229 14230# Fix the shell variable \$srcfile for the compiler. 14231fix_srcfile_path=$lt_fix_srcfile_path 14232 14233# Set to yes if exported symbols are required. 14234always_export_symbols=$always_export_symbols_CXX 14235 14236# The commands to list exported symbols. 14237export_symbols_cmds=$lt_export_symbols_cmds_CXX 14238 14239# The commands to extract the exported symbol list from a shared archive. 14240extract_expsyms_cmds=$lt_extract_expsyms_cmds 14241 14242# Symbols that should not be listed in the preloaded symbols. 14243exclude_expsyms=$lt_exclude_expsyms_CXX 14244 14245# Symbols that must always be exported. 14246include_expsyms=$lt_include_expsyms_CXX 14247 14248# ### END LIBTOOL TAG CONFIG: $tagname 14249 14250__EOF__ 14251 14252 14253else 14254 # If there is no Makefile yet, we rely on a make rule to execute 14255 # `config.status --recheck' to rerun these tests and create the 14256 # libtool script then. 14257 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14258 if test -f "$ltmain_in"; then 14259 test -f Makefile && make "$ltmain" 14260 fi 14261fi 14262 14263 14264ac_ext=c 14265ac_cpp='$CPP $CPPFLAGS' 14266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14268ac_compiler_gnu=$ac_cv_c_compiler_gnu 14269 14270CC=$lt_save_CC 14271LDCXX=$LD 14272LD=$lt_save_LD 14273GCC=$lt_save_GCC 14274with_gnu_ldcxx=$with_gnu_ld 14275with_gnu_ld=$lt_save_with_gnu_ld 14276lt_cv_path_LDCXX=$lt_cv_path_LD 14277lt_cv_path_LD=$lt_save_path_LD 14278lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14279lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14280 14281 else 14282 tagname="" 14283 fi 14284 ;; 14285 14286 F77) 14287 if test -n "$F77" && test "X$F77" != "Xno"; then 14288 14289ac_ext=f 14290ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14291ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14292ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14293 14294 14295archive_cmds_need_lc_F77=no 14296allow_undefined_flag_F77= 14297always_export_symbols_F77=no 14298archive_expsym_cmds_F77= 14299export_dynamic_flag_spec_F77= 14300hardcode_direct_F77=no 14301hardcode_libdir_flag_spec_F77= 14302hardcode_libdir_flag_spec_ld_F77= 14303hardcode_libdir_separator_F77= 14304hardcode_minus_L_F77=no 14305hardcode_automatic_F77=no 14306module_cmds_F77= 14307module_expsym_cmds_F77= 14308link_all_deplibs_F77=unknown 14309old_archive_cmds_F77=$old_archive_cmds 14310no_undefined_flag_F77= 14311whole_archive_flag_spec_F77= 14312enable_shared_with_static_runtimes_F77=no 14313 14314# Source file extension for f77 test sources. 14315ac_ext=f 14316 14317# Object file extension for compiled f77 test sources. 14318objext=o 14319objext_F77=$objext 14320 14321# Code to be used in simple compile tests 14322lt_simple_compile_test_code="\ 14323 subroutine t 14324 return 14325 end 14326" 14327 14328# Code to be used in simple link tests 14329lt_simple_link_test_code="\ 14330 program t 14331 end 14332" 14333 14334# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14335 14336# If no C compiler was specified, use CC. 14337LTCC=${LTCC-"$CC"} 14338 14339# If no C compiler flags were specified, use CFLAGS. 14340LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14341 14342# Allow CC to be a program name with arguments. 14343compiler=$CC 14344 14345 14346# save warnings/boilerplate of simple test code 14347ac_outfile=conftest.$ac_objext 14348echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14349eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14350_lt_compiler_boilerplate=`cat conftest.err` 14351$rm conftest* 14352 14353ac_outfile=conftest.$ac_objext 14354echo "$lt_simple_link_test_code" >conftest.$ac_ext 14355eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14356_lt_linker_boilerplate=`cat conftest.err` 14357$rm -r conftest* 14358 14359 14360# Allow CC to be a program name with arguments. 14361lt_save_CC="$CC" 14362CC=${F77-"f77"} 14363compiler=$CC 14364compiler_F77=$CC 14365for cc_temp in $compiler""; do 14366 case $cc_temp in 14367 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14368 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14369 \-*) ;; 14370 *) break;; 14371 esac 14372done 14373cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14374 14375 14376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 14377$as_echo_n "checking if libtool supports shared libraries... " >&6; } 14378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 14379$as_echo "$can_build_shared" >&6; } 14380 14381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 14382$as_echo_n "checking whether to build shared libraries... " >&6; } 14383test "$can_build_shared" = "no" && enable_shared=no 14384 14385# On AIX, shared libraries and static libraries use the same namespace, and 14386# are all built from PIC. 14387case $host_os in 14388aix3*) 14389 test "$enable_shared" = yes && enable_static=no 14390 if test -n "$RANLIB"; then 14391 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14392 postinstall_cmds='$RANLIB $lib' 14393 fi 14394 ;; 14395aix[4-9]*) 14396 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14397 test "$enable_shared" = yes && enable_static=no 14398 fi 14399 ;; 14400esac 14401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 14402$as_echo "$enable_shared" >&6; } 14403 14404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 14405$as_echo_n "checking whether to build static libraries... " >&6; } 14406# Make sure either enable_shared or enable_static is yes. 14407test "$enable_shared" = yes || enable_static=yes 14408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 14409$as_echo "$enable_static" >&6; } 14410 14411GCC_F77="$G77" 14412LD_F77="$LD" 14413 14414lt_prog_compiler_wl_F77= 14415lt_prog_compiler_pic_F77= 14416lt_prog_compiler_static_F77= 14417 14418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14419$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14420 14421 if test "$GCC" = yes; then 14422 lt_prog_compiler_wl_F77='-Wl,' 14423 lt_prog_compiler_static_F77='-static' 14424 14425 case $host_os in 14426 aix*) 14427 # All AIX code is PIC. 14428 if test "$host_cpu" = ia64; then 14429 # AIX 5 now supports IA64 processor 14430 lt_prog_compiler_static_F77='-Bstatic' 14431 fi 14432 ;; 14433 14434 amigaos*) 14435 # FIXME: we need at least 68020 code to build shared libraries, but 14436 # adding the `-m68020' flag to GCC prevents building anything better, 14437 # like `-m68040'. 14438 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14439 ;; 14440 14441 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14442 # PIC is the default for these OSes. 14443 ;; 14444 14445 mingw* | cygwin* | pw32* | os2*) 14446 # This hack is so that the source file can tell whether it is being 14447 # built for inclusion in a dll (and should export symbols for example). 14448 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14449 # (--disable-auto-import) libraries 14450 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14451 ;; 14452 14453 darwin* | rhapsody*) 14454 # PIC is the default on this platform 14455 # Common symbols not allowed in MH_DYLIB files 14456 lt_prog_compiler_pic_F77='-fno-common' 14457 ;; 14458 14459 interix[3-9]*) 14460 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14461 # Instead, we relocate shared libraries at runtime. 14462 ;; 14463 14464 msdosdjgpp*) 14465 # Just because we use GCC doesn't mean we suddenly get shared libraries 14466 # on systems that don't support them. 14467 lt_prog_compiler_can_build_shared_F77=no 14468 enable_shared=no 14469 ;; 14470 14471 sysv4*MP*) 14472 if test -d /usr/nec; then 14473 lt_prog_compiler_pic_F77=-Kconform_pic 14474 fi 14475 ;; 14476 14477 hpux*) 14478 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14479 # not for PA HP-UX. 14480 case $host_cpu in 14481 hppa*64*|ia64*) 14482 # +Z the default 14483 ;; 14484 *) 14485 lt_prog_compiler_pic_F77='-fPIC' 14486 ;; 14487 esac 14488 ;; 14489 14490 *) 14491 lt_prog_compiler_pic_F77='-fPIC' 14492 ;; 14493 esac 14494 else 14495 # PORTME Check for flag to pass linker flags through the system compiler. 14496 case $host_os in 14497 aix*) 14498 lt_prog_compiler_wl_F77='-Wl,' 14499 if test "$host_cpu" = ia64; then 14500 # AIX 5 now supports IA64 processor 14501 lt_prog_compiler_static_F77='-Bstatic' 14502 else 14503 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14504 fi 14505 ;; 14506 darwin*) 14507 # PIC is the default on this platform 14508 # Common symbols not allowed in MH_DYLIB files 14509 case $cc_basename in 14510 xlc*) 14511 lt_prog_compiler_pic_F77='-qnocommon' 14512 lt_prog_compiler_wl_F77='-Wl,' 14513 ;; 14514 esac 14515 ;; 14516 14517 mingw* | cygwin* | pw32* | os2*) 14518 # This hack is so that the source file can tell whether it is being 14519 # built for inclusion in a dll (and should export symbols for example). 14520 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14521 ;; 14522 14523 hpux9* | hpux10* | hpux11*) 14524 lt_prog_compiler_wl_F77='-Wl,' 14525 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14526 # not for PA HP-UX. 14527 case $host_cpu in 14528 hppa*64*|ia64*) 14529 # +Z the default 14530 ;; 14531 *) 14532 lt_prog_compiler_pic_F77='+Z' 14533 ;; 14534 esac 14535 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14536 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14537 ;; 14538 14539 irix5* | irix6* | nonstopux*) 14540 lt_prog_compiler_wl_F77='-Wl,' 14541 # PIC (with -KPIC) is the default. 14542 lt_prog_compiler_static_F77='-non_shared' 14543 ;; 14544 14545 newsos6) 14546 lt_prog_compiler_pic_F77='-KPIC' 14547 lt_prog_compiler_static_F77='-Bstatic' 14548 ;; 14549 14550 linux* | k*bsd*-gnu) 14551 case $cc_basename in 14552 icc* | ecc*) 14553 lt_prog_compiler_wl_F77='-Wl,' 14554 lt_prog_compiler_pic_F77='-KPIC' 14555 lt_prog_compiler_static_F77='-static' 14556 ;; 14557 pgcc* | pgf77* | pgf90* | pgf95*) 14558 # Portland Group compilers (*not* the Pentium gcc compiler, 14559 # which looks to be a dead project) 14560 lt_prog_compiler_wl_F77='-Wl,' 14561 lt_prog_compiler_pic_F77='-fpic' 14562 lt_prog_compiler_static_F77='-Bstatic' 14563 ;; 14564 ccc*) 14565 lt_prog_compiler_wl_F77='-Wl,' 14566 # All Alpha code is PIC. 14567 lt_prog_compiler_static_F77='-non_shared' 14568 ;; 14569 *) 14570 case `$CC -V 2>&1 | sed 5q` in 14571 *Sun\ C*) 14572 # Sun C 5.9 14573 lt_prog_compiler_pic_F77='-KPIC' 14574 lt_prog_compiler_static_F77='-Bstatic' 14575 lt_prog_compiler_wl_F77='-Wl,' 14576 ;; 14577 *Sun\ F*) 14578 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14579 lt_prog_compiler_pic_F77='-KPIC' 14580 lt_prog_compiler_static_F77='-Bstatic' 14581 lt_prog_compiler_wl_F77='' 14582 ;; 14583 esac 14584 ;; 14585 esac 14586 ;; 14587 14588 osf3* | osf4* | osf5*) 14589 lt_prog_compiler_wl_F77='-Wl,' 14590 # All OSF/1 code is PIC. 14591 lt_prog_compiler_static_F77='-non_shared' 14592 ;; 14593 14594 rdos*) 14595 lt_prog_compiler_static_F77='-non_shared' 14596 ;; 14597 14598 solaris*) 14599 lt_prog_compiler_pic_F77='-KPIC' 14600 lt_prog_compiler_static_F77='-Bstatic' 14601 case $cc_basename in 14602 f77* | f90* | f95*) 14603 lt_prog_compiler_wl_F77='-Qoption ld ';; 14604 *) 14605 lt_prog_compiler_wl_F77='-Wl,';; 14606 esac 14607 ;; 14608 14609 sunos4*) 14610 lt_prog_compiler_wl_F77='-Qoption ld ' 14611 lt_prog_compiler_pic_F77='-PIC' 14612 lt_prog_compiler_static_F77='-Bstatic' 14613 ;; 14614 14615 sysv4 | sysv4.2uw2* | sysv4.3*) 14616 lt_prog_compiler_wl_F77='-Wl,' 14617 lt_prog_compiler_pic_F77='-KPIC' 14618 lt_prog_compiler_static_F77='-Bstatic' 14619 ;; 14620 14621 sysv4*MP*) 14622 if test -d /usr/nec ;then 14623 lt_prog_compiler_pic_F77='-Kconform_pic' 14624 lt_prog_compiler_static_F77='-Bstatic' 14625 fi 14626 ;; 14627 14628 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14629 lt_prog_compiler_wl_F77='-Wl,' 14630 lt_prog_compiler_pic_F77='-KPIC' 14631 lt_prog_compiler_static_F77='-Bstatic' 14632 ;; 14633 14634 unicos*) 14635 lt_prog_compiler_wl_F77='-Wl,' 14636 lt_prog_compiler_can_build_shared_F77=no 14637 ;; 14638 14639 uts4*) 14640 lt_prog_compiler_pic_F77='-pic' 14641 lt_prog_compiler_static_F77='-Bstatic' 14642 ;; 14643 14644 *) 14645 lt_prog_compiler_can_build_shared_F77=no 14646 ;; 14647 esac 14648 fi 14649 14650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5 14651$as_echo "$lt_prog_compiler_pic_F77" >&6; } 14652 14653# 14654# Check to make sure the PIC flag actually works. 14655# 14656if test -n "$lt_prog_compiler_pic_F77"; then 14657 14658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14659$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; } 14660if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then : 14661 $as_echo_n "(cached) " >&6 14662else 14663 lt_cv_prog_compiler_pic_works_F77=no 14664 ac_outfile=conftest.$ac_objext 14665 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14666 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14667 # Insert the option either (1) after the last *FLAGS variable, or 14668 # (2) before a word containing "conftest.", or (3) at the end. 14669 # Note that $ac_compile itself does not contain backslashes and begins 14670 # with a dollar sign (not a hyphen), so the echo should work correctly. 14671 # The option is referenced via a variable to avoid confusing sed. 14672 lt_compile=`echo "$ac_compile" | $SED \ 14673 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14674 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14675 -e 's:$: $lt_compiler_flag:'` 14676 (eval echo "\"\$as_me:14676: $lt_compile\"" >&5) 14677 (eval "$lt_compile" 2>conftest.err) 14678 ac_status=$? 14679 cat conftest.err >&5 14680 echo "$as_me:14680: \$? = $ac_status" >&5 14681 if (exit $ac_status) && test -s "$ac_outfile"; then 14682 # The compiler can only warn and ignore the option if not recognized 14683 # So say no if there are warnings other than the usual output. 14684 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14685 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14686 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14687 lt_cv_prog_compiler_pic_works_F77=yes 14688 fi 14689 fi 14690 $rm conftest* 14691 14692fi 14693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5 14694$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; } 14695 14696if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then 14697 case $lt_prog_compiler_pic_F77 in 14698 "" | " "*) ;; 14699 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14700 esac 14701else 14702 lt_prog_compiler_pic_F77= 14703 lt_prog_compiler_can_build_shared_F77=no 14704fi 14705 14706fi 14707case $host_os in 14708 # For platforms which do not support PIC, -DPIC is meaningless: 14709 *djgpp*) 14710 lt_prog_compiler_pic_F77= 14711 ;; 14712 *) 14713 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14714 ;; 14715esac 14716 14717# 14718# Check to make sure the static flag actually works. 14719# 14720wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14722$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14723if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then : 14724 $as_echo_n "(cached) " >&6 14725else 14726 lt_cv_prog_compiler_static_works_F77=no 14727 save_LDFLAGS="$LDFLAGS" 14728 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14729 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14730 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14731 # The linker can only warn and ignore the option if not recognized 14732 # So say no if there are warnings 14733 if test -s conftest.err; then 14734 # Append any errors to the config.log. 14735 cat conftest.err 1>&5 14736 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14737 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14738 if diff conftest.exp conftest.er2 >/dev/null; then 14739 lt_cv_prog_compiler_static_works_F77=yes 14740 fi 14741 else 14742 lt_cv_prog_compiler_static_works_F77=yes 14743 fi 14744 fi 14745 $rm -r conftest* 14746 LDFLAGS="$save_LDFLAGS" 14747 14748fi 14749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5 14750$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; } 14751 14752if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then 14753 : 14754else 14755 lt_prog_compiler_static_F77= 14756fi 14757 14758 14759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14760$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14761if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then : 14762 $as_echo_n "(cached) " >&6 14763else 14764 lt_cv_prog_compiler_c_o_F77=no 14765 $rm -r conftest 2>/dev/null 14766 mkdir conftest 14767 cd conftest 14768 mkdir out 14769 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14770 14771 lt_compiler_flag="-o out/conftest2.$ac_objext" 14772 # Insert the option either (1) after the last *FLAGS variable, or 14773 # (2) before a word containing "conftest.", or (3) at the end. 14774 # Note that $ac_compile itself does not contain backslashes and begins 14775 # with a dollar sign (not a hyphen), so the echo should work correctly. 14776 lt_compile=`echo "$ac_compile" | $SED \ 14777 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14778 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14779 -e 's:$: $lt_compiler_flag:'` 14780 (eval echo "\"\$as_me:14780: $lt_compile\"" >&5) 14781 (eval "$lt_compile" 2>out/conftest.err) 14782 ac_status=$? 14783 cat out/conftest.err >&5 14784 echo "$as_me:14784: \$? = $ac_status" >&5 14785 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14786 then 14787 # The compiler can only warn and ignore the option if not recognized 14788 # So say no if there are warnings 14789 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14790 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14791 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14792 lt_cv_prog_compiler_c_o_F77=yes 14793 fi 14794 fi 14795 chmod u+w . 2>&5 14796 $rm conftest* 14797 # SGI C++ compiler will create directory out/ii_files/ for 14798 # template instantiation 14799 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14800 $rm out/* && rmdir out 14801 cd .. 14802 rmdir conftest 14803 $rm conftest* 14804 14805fi 14806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5 14807$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; } 14808 14809 14810hard_links="nottested" 14811if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14812 # do not overwrite the value of need_locks provided by the user 14813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14814$as_echo_n "checking if we can lock with hard links... " >&6; } 14815 hard_links=yes 14816 $rm conftest* 14817 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14818 touch conftest.a 14819 ln conftest.a conftest.b 2>&5 || hard_links=no 14820 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14822$as_echo "$hard_links" >&6; } 14823 if test "$hard_links" = no; then 14824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14825$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14826 need_locks=warn 14827 fi 14828else 14829 need_locks=no 14830fi 14831 14832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14833$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14834 14835 runpath_var= 14836 allow_undefined_flag_F77= 14837 enable_shared_with_static_runtimes_F77=no 14838 archive_cmds_F77= 14839 archive_expsym_cmds_F77= 14840 old_archive_From_new_cmds_F77= 14841 old_archive_from_expsyms_cmds_F77= 14842 export_dynamic_flag_spec_F77= 14843 whole_archive_flag_spec_F77= 14844 thread_safe_flag_spec_F77= 14845 hardcode_libdir_flag_spec_F77= 14846 hardcode_libdir_flag_spec_ld_F77= 14847 hardcode_libdir_separator_F77= 14848 hardcode_direct_F77=no 14849 hardcode_minus_L_F77=no 14850 hardcode_shlibpath_var_F77=unsupported 14851 link_all_deplibs_F77=unknown 14852 hardcode_automatic_F77=no 14853 module_cmds_F77= 14854 module_expsym_cmds_F77= 14855 always_export_symbols_F77=no 14856 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14857 # include_expsyms should be a list of space-separated symbols to be *always* 14858 # included in the symbol list 14859 include_expsyms_F77= 14860 # exclude_expsyms can be an extended regexp of symbols to exclude 14861 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14862 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14863 # as well as any symbol that contains `d'. 14864 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14865 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14866 # platforms (ab)use it in PIC code, but their linkers get confused if 14867 # the symbol is explicitly referenced. Since portable code cannot 14868 # rely on this symbol name, it's probably fine to never include it in 14869 # preloaded symbol tables. 14870 # Exclude shared library initialization/finalization symbols. 14871 extract_expsyms_cmds= 14872 # Just being paranoid about ensuring that cc_basename is set. 14873 for cc_temp in $compiler""; do 14874 case $cc_temp in 14875 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14876 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14877 \-*) ;; 14878 *) break;; 14879 esac 14880done 14881cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14882 14883 case $host_os in 14884 cygwin* | mingw* | pw32*) 14885 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14886 # When not using gcc, we currently assume that we are using 14887 # Microsoft Visual C++. 14888 if test "$GCC" != yes; then 14889 with_gnu_ld=no 14890 fi 14891 ;; 14892 interix*) 14893 # we just hope/assume this is gcc and not c89 (= MSVC++) 14894 with_gnu_ld=yes 14895 ;; 14896 openbsd*) 14897 with_gnu_ld=no 14898 ;; 14899 esac 14900 14901 ld_shlibs_F77=yes 14902 if test "$with_gnu_ld" = yes; then 14903 # If archive_cmds runs LD, not CC, wlarc should be empty 14904 wlarc='${wl}' 14905 14906 # Set some defaults for GNU ld with shared library support. These 14907 # are reset later if shared libraries are not supported. Putting them 14908 # here allows them to be overridden if necessary. 14909 runpath_var=LD_RUN_PATH 14910 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14911 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14912 # ancient GNU ld didn't support --whole-archive et. al. 14913 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14914 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14915 else 14916 whole_archive_flag_spec_F77= 14917 fi 14918 supports_anon_versioning=no 14919 case `$LD -v 2>/dev/null` in 14920 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14921 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14922 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14923 *\ 2.11.*) ;; # other 2.11 versions 14924 *) supports_anon_versioning=yes ;; 14925 esac 14926 14927 # See if GNU ld supports shared libraries. 14928 case $host_os in 14929 aix[3-9]*) 14930 # On AIX/PPC, the GNU linker is very broken 14931 if test "$host_cpu" != ia64; then 14932 ld_shlibs_F77=no 14933 cat <<EOF 1>&2 14934 14935*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14936*** to be unable to reliably create shared libraries on AIX. 14937*** Therefore, libtool is disabling shared libraries support. If you 14938*** really care for shared libraries, you may want to modify your PATH 14939*** so that a non-GNU linker is found, and then restart. 14940 14941EOF 14942 fi 14943 ;; 14944 14945 amigaos*) 14946 archive_cmds_F77='$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)' 14947 hardcode_libdir_flag_spec_F77='-L$libdir' 14948 hardcode_minus_L_F77=yes 14949 14950 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14951 # that the semantics of dynamic libraries on AmigaOS, at least up 14952 # to version 4, is to share data among multiple programs linked 14953 # with the same dynamic library. Since this doesn't match the 14954 # behavior of shared libraries on other platforms, we can't use 14955 # them. 14956 ld_shlibs_F77=no 14957 ;; 14958 14959 beos*) 14960 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14961 allow_undefined_flag_F77=unsupported 14962 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14963 # support --undefined. This deserves some investigation. FIXME 14964 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14965 else 14966 ld_shlibs_F77=no 14967 fi 14968 ;; 14969 14970 cygwin* | mingw* | pw32*) 14971 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14972 # as there is no search path for DLLs. 14973 hardcode_libdir_flag_spec_F77='-L$libdir' 14974 allow_undefined_flag_F77=unsupported 14975 always_export_symbols_F77=no 14976 enable_shared_with_static_runtimes_F77=yes 14977 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 14978 14979 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14980 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14981 # If the export-symbols file already is a .def file (1st line 14982 # is EXPORTS), use it as is; otherwise, prepend... 14983 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14984 cp $export_symbols $output_objdir/$soname.def; 14985 else 14986 echo EXPORTS > $output_objdir/$soname.def; 14987 cat $export_symbols >> $output_objdir/$soname.def; 14988 fi~ 14989 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14990 else 14991 ld_shlibs_F77=no 14992 fi 14993 ;; 14994 14995 interix[3-9]*) 14996 hardcode_direct_F77=no 14997 hardcode_shlibpath_var_F77=no 14998 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14999 export_dynamic_flag_spec_F77='${wl}-E' 15000 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15001 # Instead, shared libraries are loaded at an image base (0x10000000 by 15002 # default) and relocated if they conflict, which is a slow very memory 15003 # consuming and fragmenting process. To avoid this, we pick a random, 15004 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15005 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15006 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15007 archive_expsym_cmds_F77='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' 15008 ;; 15009 15010 gnu* | linux* | k*bsd*-gnu) 15011 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15012 tmp_addflag= 15013 case $cc_basename,$host_cpu in 15014 pgcc*) # Portland Group C compiler 15015 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 15016 tmp_addflag=' $pic_flag' 15017 ;; 15018 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 15019 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 15020 tmp_addflag=' $pic_flag -Mnomain' ;; 15021 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15022 tmp_addflag=' -i_dynamic' ;; 15023 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15024 tmp_addflag=' -i_dynamic -nofor_main' ;; 15025 ifc* | ifort*) # Intel Fortran compiler 15026 tmp_addflag=' -nofor_main' ;; 15027 esac 15028 case `$CC -V 2>&1 | sed 5q` in 15029 *Sun\ C*) # Sun C 5.9 15030 whole_archive_flag_spec_F77='${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' 15031 tmp_sharedflag='-G' ;; 15032 *Sun\ F*) # Sun Fortran 8.3 15033 tmp_sharedflag='-G' ;; 15034 *) 15035 tmp_sharedflag='-shared' ;; 15036 esac 15037 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15038 15039 if test $supports_anon_versioning = yes; then 15040 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 15041 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15042 $echo "local: *; };" >> $output_objdir/$libname.ver~ 15043 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15044 fi 15045 else 15046 ld_shlibs_F77=no 15047 fi 15048 ;; 15049 15050 netbsd*) 15051 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15052 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15053 wlarc= 15054 else 15055 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15056 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15057 fi 15058 ;; 15059 15060 solaris*) 15061 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 15062 ld_shlibs_F77=no 15063 cat <<EOF 1>&2 15064 15065*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15066*** create shared libraries on Solaris systems. Therefore, libtool 15067*** is disabling shared libraries support. We urge you to upgrade GNU 15068*** binutils to release 2.9.1 or newer. Another option is to modify 15069*** your PATH or compiler configuration so that the native linker is 15070*** used, and then restart. 15071 15072EOF 15073 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15074 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15075 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15076 else 15077 ld_shlibs_F77=no 15078 fi 15079 ;; 15080 15081 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15082 case `$LD -v 2>&1` in 15083 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15084 ld_shlibs_F77=no 15085 cat <<_LT_EOF 1>&2 15086 15087*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 15088*** reliably create shared libraries on SCO systems. Therefore, libtool 15089*** is disabling shared libraries support. We urge you to upgrade GNU 15090*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15091*** your PATH or compiler configuration so that the native linker is 15092*** used, and then restart. 15093 15094_LT_EOF 15095 ;; 15096 *) 15097 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15098 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 15099 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 15100 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 15101 else 15102 ld_shlibs_F77=no 15103 fi 15104 ;; 15105 esac 15106 ;; 15107 15108 sunos4*) 15109 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15110 wlarc= 15111 hardcode_direct_F77=yes 15112 hardcode_shlibpath_var_F77=no 15113 ;; 15114 15115 *) 15116 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15117 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15118 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15119 else 15120 ld_shlibs_F77=no 15121 fi 15122 ;; 15123 esac 15124 15125 if test "$ld_shlibs_F77" = no; then 15126 runpath_var= 15127 hardcode_libdir_flag_spec_F77= 15128 export_dynamic_flag_spec_F77= 15129 whole_archive_flag_spec_F77= 15130 fi 15131 else 15132 # PORTME fill in a description of your system's linker (not GNU ld) 15133 case $host_os in 15134 aix3*) 15135 allow_undefined_flag_F77=unsupported 15136 always_export_symbols_F77=yes 15137 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 15138 # Note: this linker hardcodes the directories in LIBPATH if there 15139 # are no directories specified by -L. 15140 hardcode_minus_L_F77=yes 15141 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15142 # Neither direct hardcoding nor static linking is supported with a 15143 # broken collect2. 15144 hardcode_direct_F77=unsupported 15145 fi 15146 ;; 15147 15148 aix[4-9]*) 15149 if test "$host_cpu" = ia64; then 15150 # On IA64, the linker does run time linking by default, so we don't 15151 # have to do anything special. 15152 aix_use_runtimelinking=no 15153 exp_sym_flag='-Bexport' 15154 no_entry_flag="" 15155 else 15156 # If we're using GNU nm, then we don't want the "-C" option. 15157 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15158 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 15159 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 15160 else 15161 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 15162 fi 15163 aix_use_runtimelinking=no 15164 15165 # Test if we are trying to use run time linking or normal 15166 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15167 # need to do runtime linking. 15168 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15169 for ld_flag in $LDFLAGS; do 15170 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15171 aix_use_runtimelinking=yes 15172 break 15173 fi 15174 done 15175 ;; 15176 esac 15177 15178 exp_sym_flag='-bexport' 15179 no_entry_flag='-bnoentry' 15180 fi 15181 15182 # When large executables or shared objects are built, AIX ld can 15183 # have problems creating the table of contents. If linking a library 15184 # or program results in "error TOC overflow" add -mminimal-toc to 15185 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15186 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15187 15188 archive_cmds_F77='' 15189 hardcode_direct_F77=yes 15190 hardcode_libdir_separator_F77=':' 15191 link_all_deplibs_F77=yes 15192 15193 if test "$GCC" = yes; then 15194 case $host_os in aix4.[012]|aix4.[012].*) 15195 # We only want to do this on AIX 4.2 and lower, the check 15196 # below for broken collect2 doesn't work under 4.3+ 15197 collect2name=`${CC} -print-prog-name=collect2` 15198 if test -f "$collect2name" && \ 15199 strings "$collect2name" | grep resolve_lib_name >/dev/null 15200 then 15201 # We have reworked collect2 15202 : 15203 else 15204 # We have old collect2 15205 hardcode_direct_F77=unsupported 15206 # It fails to find uninstalled libraries when the uninstalled 15207 # path is not listed in the libpath. Setting hardcode_minus_L 15208 # to unsupported forces relinking 15209 hardcode_minus_L_F77=yes 15210 hardcode_libdir_flag_spec_F77='-L$libdir' 15211 hardcode_libdir_separator_F77= 15212 fi 15213 ;; 15214 esac 15215 shared_flag='-shared' 15216 if test "$aix_use_runtimelinking" = yes; then 15217 shared_flag="$shared_flag "'${wl}-G' 15218 fi 15219 else 15220 # not using gcc 15221 if test "$host_cpu" = ia64; then 15222 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15223 # chokes on -Wl,-G. The following line is correct: 15224 shared_flag='-G' 15225 else 15226 if test "$aix_use_runtimelinking" = yes; then 15227 shared_flag='${wl}-G' 15228 else 15229 shared_flag='${wl}-bM:SRE' 15230 fi 15231 fi 15232 fi 15233 15234 # It seems that -bexpall does not export symbols beginning with 15235 # underscore (_), so it is better to generate a list of symbols to export. 15236 always_export_symbols_F77=yes 15237 if test "$aix_use_runtimelinking" = yes; then 15238 # Warning - without using the other runtime loading flags (-brtl), 15239 # -berok will link without error, but may produce a broken library. 15240 allow_undefined_flag_F77='-berok' 15241 # Determine the default libpath from the value encoded in an empty executable. 15242 cat > conftest.$ac_ext <<_ACEOF 15243 program main 15244 15245 end 15246_ACEOF 15247if ac_fn_f77_try_link "$LINENO"; then : 15248 15249lt_aix_libpath_sed=' 15250 /Import File Strings/,/^$/ { 15251 /^0/ { 15252 s/^0 *\(.*\)$/\1/ 15253 p 15254 } 15255 }' 15256aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15257# Check for a 64-bit object if we didn't find anything. 15258if test -z "$aix_libpath"; then 15259 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15260fi 15261fi 15262rm -f core conftest.err conftest.$ac_objext \ 15263 conftest$ac_exeext conftest.$ac_ext 15264if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15265 15266 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15267 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 15268 else 15269 if test "$host_cpu" = ia64; then 15270 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 15271 allow_undefined_flag_F77="-z nodefs" 15272 archive_expsym_cmds_F77="\$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" 15273 else 15274 # Determine the default libpath from the value encoded in an empty executable. 15275 cat > conftest.$ac_ext <<_ACEOF 15276 program main 15277 15278 end 15279_ACEOF 15280if ac_fn_f77_try_link "$LINENO"; then : 15281 15282lt_aix_libpath_sed=' 15283 /Import File Strings/,/^$/ { 15284 /^0/ { 15285 s/^0 *\(.*\)$/\1/ 15286 p 15287 } 15288 }' 15289aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15290# Check for a 64-bit object if we didn't find anything. 15291if test -z "$aix_libpath"; then 15292 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15293fi 15294fi 15295rm -f core conftest.err conftest.$ac_objext \ 15296 conftest$ac_exeext conftest.$ac_ext 15297if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15298 15299 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15300 # Warning - without using the other run time loading flags, 15301 # -berok will link without error, but may produce a broken library. 15302 no_undefined_flag_F77=' ${wl}-bernotok' 15303 allow_undefined_flag_F77=' ${wl}-berok' 15304 # Exported symbols can be pulled into shared objects from archives 15305 whole_archive_flag_spec_F77='$convenience' 15306 archive_cmds_need_lc_F77=yes 15307 # This is similar to how AIX traditionally builds its shared libraries. 15308 archive_expsym_cmds_F77="\$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' 15309 fi 15310 fi 15311 ;; 15312 15313 amigaos*) 15314 archive_cmds_F77='$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)' 15315 hardcode_libdir_flag_spec_F77='-L$libdir' 15316 hardcode_minus_L_F77=yes 15317 # see comment about different semantics on the GNU ld section 15318 ld_shlibs_F77=no 15319 ;; 15320 15321 bsdi[45]*) 15322 export_dynamic_flag_spec_F77=-rdynamic 15323 ;; 15324 15325 cygwin* | mingw* | pw32*) 15326 # When not using gcc, we currently assume that we are using 15327 # Microsoft Visual C++. 15328 # hardcode_libdir_flag_spec is actually meaningless, as there is 15329 # no search path for DLLs. 15330 hardcode_libdir_flag_spec_F77=' ' 15331 allow_undefined_flag_F77=unsupported 15332 # Tell ltmain to make .lib files, not .a files. 15333 libext=lib 15334 # Tell ltmain to make .dll files, not .so files. 15335 shrext_cmds=".dll" 15336 # FIXME: Setting linknames here is a bad hack. 15337 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15338 # The linker will automatically build a .lib file if we build a DLL. 15339 old_archive_From_new_cmds_F77='true' 15340 # FIXME: Should let the user specify the lib program. 15341 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 15342 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15343 enable_shared_with_static_runtimes_F77=yes 15344 ;; 15345 15346 darwin* | rhapsody*) 15347 case $host_os in 15348 rhapsody* | darwin1.[012]) 15349 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15350 ;; 15351 *) # Darwin 1.3 on 15352 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15353 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15354 else 15355 case ${MACOSX_DEPLOYMENT_TARGET} in 15356 10.[012]) 15357 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15358 ;; 15359 10.*) 15360 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15361 ;; 15362 esac 15363 fi 15364 ;; 15365 esac 15366 archive_cmds_need_lc_F77=no 15367 hardcode_direct_F77=no 15368 hardcode_automatic_F77=yes 15369 hardcode_shlibpath_var_F77=unsupported 15370 whole_archive_flag_spec_F77='' 15371 link_all_deplibs_F77=yes 15372 if test "$GCC" = yes ; then 15373 output_verbose_link_cmd='echo' 15374 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 15375 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 15376 archive_expsym_cmds_F77="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}" 15377 module_expsym_cmds_F77="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}" 15378 else 15379 case $cc_basename in 15380 xlc*) 15381 output_verbose_link_cmd='echo' 15382 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 15383 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15384 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15385 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15386 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15387 ;; 15388 *) 15389 ld_shlibs_F77=no 15390 ;; 15391 esac 15392 fi 15393 ;; 15394 15395 dgux*) 15396 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15397 hardcode_libdir_flag_spec_F77='-L$libdir' 15398 hardcode_shlibpath_var_F77=no 15399 ;; 15400 15401 freebsd1*) 15402 ld_shlibs_F77=no 15403 ;; 15404 15405 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15406 # support. Future versions do this automatically, but an explicit c++rt0.o 15407 # does not break anything, and helps significantly (at the cost of a little 15408 # extra space). 15409 freebsd2.2*) 15410 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15411 hardcode_libdir_flag_spec_F77='-R$libdir' 15412 hardcode_direct_F77=yes 15413 hardcode_shlibpath_var_F77=no 15414 ;; 15415 15416 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15417 freebsd2*) 15418 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15419 hardcode_direct_F77=yes 15420 hardcode_minus_L_F77=yes 15421 hardcode_shlibpath_var_F77=no 15422 ;; 15423 15424 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15425 freebsd* | dragonfly*) 15426 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15427 hardcode_libdir_flag_spec_F77='-R$libdir' 15428 hardcode_direct_F77=yes 15429 hardcode_shlibpath_var_F77=no 15430 ;; 15431 15432 hpux9*) 15433 if test "$GCC" = yes; then 15434 archive_cmds_F77='$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' 15435 else 15436 archive_cmds_F77='$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' 15437 fi 15438 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15439 hardcode_libdir_separator_F77=: 15440 hardcode_direct_F77=yes 15441 15442 # hardcode_minus_L: Not really in the search PATH, 15443 # but as the default location of the library. 15444 hardcode_minus_L_F77=yes 15445 export_dynamic_flag_spec_F77='${wl}-E' 15446 ;; 15447 15448 hpux10*) 15449 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15450 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15451 else 15452 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15453 fi 15454 if test "$with_gnu_ld" = no; then 15455 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15456 hardcode_libdir_separator_F77=: 15457 15458 hardcode_direct_F77=yes 15459 export_dynamic_flag_spec_F77='${wl}-E' 15460 15461 # hardcode_minus_L: Not really in the search PATH, 15462 # but as the default location of the library. 15463 hardcode_minus_L_F77=yes 15464 fi 15465 ;; 15466 15467 hpux11*) 15468 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15469 case $host_cpu in 15470 hppa*64*) 15471 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15472 ;; 15473 ia64*) 15474 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15475 ;; 15476 *) 15477 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15478 ;; 15479 esac 15480 else 15481 case $host_cpu in 15482 hppa*64*) 15483 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15484 ;; 15485 ia64*) 15486 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15487 ;; 15488 *) 15489 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15490 ;; 15491 esac 15492 fi 15493 if test "$with_gnu_ld" = no; then 15494 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15495 hardcode_libdir_separator_F77=: 15496 15497 case $host_cpu in 15498 hppa*64*|ia64*) 15499 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15500 hardcode_direct_F77=no 15501 hardcode_shlibpath_var_F77=no 15502 ;; 15503 *) 15504 hardcode_direct_F77=yes 15505 export_dynamic_flag_spec_F77='${wl}-E' 15506 15507 # hardcode_minus_L: Not really in the search PATH, 15508 # but as the default location of the library. 15509 hardcode_minus_L_F77=yes 15510 ;; 15511 esac 15512 fi 15513 ;; 15514 15515 irix5* | irix6* | nonstopux*) 15516 if test "$GCC" = yes; then 15517 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15518 else 15519 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 15520 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15521 fi 15522 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15523 hardcode_libdir_separator_F77=: 15524 link_all_deplibs_F77=yes 15525 ;; 15526 15527 netbsd*) 15528 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15529 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15530 else 15531 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15532 fi 15533 hardcode_libdir_flag_spec_F77='-R$libdir' 15534 hardcode_direct_F77=yes 15535 hardcode_shlibpath_var_F77=no 15536 ;; 15537 15538 newsos6) 15539 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15540 hardcode_direct_F77=yes 15541 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15542 hardcode_libdir_separator_F77=: 15543 hardcode_shlibpath_var_F77=no 15544 ;; 15545 15546 openbsd*) 15547 if test -f /usr/libexec/ld.so; then 15548 hardcode_direct_F77=yes 15549 hardcode_shlibpath_var_F77=no 15550 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15551 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15552 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15553 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15554 export_dynamic_flag_spec_F77='${wl}-E' 15555 else 15556 case $host_os in 15557 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15558 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15559 hardcode_libdir_flag_spec_F77='-R$libdir' 15560 ;; 15561 *) 15562 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15563 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15564 ;; 15565 esac 15566 fi 15567 else 15568 ld_shlibs_F77=no 15569 fi 15570 ;; 15571 15572 os2*) 15573 hardcode_libdir_flag_spec_F77='-L$libdir' 15574 hardcode_minus_L_F77=yes 15575 allow_undefined_flag_F77=unsupported 15576 archive_cmds_F77='$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' 15577 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15578 ;; 15579 15580 osf3*) 15581 if test "$GCC" = yes; then 15582 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15583 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15584 else 15585 allow_undefined_flag_F77=' -expect_unresolved \*' 15586 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 15587 fi 15588 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15589 hardcode_libdir_separator_F77=: 15590 ;; 15591 15592 osf4* | osf5*) # as osf3* with the addition of -msym flag 15593 if test "$GCC" = yes; then 15594 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15595 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15596 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15597 else 15598 allow_undefined_flag_F77=' -expect_unresolved \*' 15599 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 15600 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 15601 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 15602 15603 # Both c and cxx compiler support -rpath directly 15604 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15605 fi 15606 hardcode_libdir_separator_F77=: 15607 ;; 15608 15609 solaris*) 15610 no_undefined_flag_F77=' -z text' 15611 if test "$GCC" = yes; then 15612 wlarc='${wl}' 15613 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15614 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15615 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15616 else 15617 wlarc='' 15618 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15619 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15620 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15621 fi 15622 hardcode_libdir_flag_spec_F77='-R$libdir' 15623 hardcode_shlibpath_var_F77=no 15624 case $host_os in 15625 solaris2.[0-5] | solaris2.[0-5].*) ;; 15626 *) 15627 # The compiler driver will combine and reorder linker options, 15628 # but understands `-z linker_flag'. GCC discards it without `$wl', 15629 # but is careful enough not to reorder. 15630 # Supported since Solaris 2.6 (maybe 2.5.1?) 15631 if test "$GCC" = yes; then 15632 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15633 else 15634 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 15635 fi 15636 ;; 15637 esac 15638 link_all_deplibs_F77=yes 15639 ;; 15640 15641 sunos4*) 15642 if test "x$host_vendor" = xsequent; then 15643 # Use $CC to link under sequent, because it throws in some extra .o 15644 # files that make .init and .fini sections work. 15645 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15646 else 15647 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15648 fi 15649 hardcode_libdir_flag_spec_F77='-L$libdir' 15650 hardcode_direct_F77=yes 15651 hardcode_minus_L_F77=yes 15652 hardcode_shlibpath_var_F77=no 15653 ;; 15654 15655 sysv4) 15656 case $host_vendor in 15657 sni) 15658 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15659 hardcode_direct_F77=yes # is this really true??? 15660 ;; 15661 siemens) 15662 ## LD is ld it makes a PLAMLIB 15663 ## CC just makes a GrossModule. 15664 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15665 reload_cmds_F77='$CC -r -o $output$reload_objs' 15666 hardcode_direct_F77=no 15667 ;; 15668 motorola) 15669 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15670 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15671 ;; 15672 esac 15673 runpath_var='LD_RUN_PATH' 15674 hardcode_shlibpath_var_F77=no 15675 ;; 15676 15677 sysv4.3*) 15678 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15679 hardcode_shlibpath_var_F77=no 15680 export_dynamic_flag_spec_F77='-Bexport' 15681 ;; 15682 15683 sysv4*MP*) 15684 if test -d /usr/nec; then 15685 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15686 hardcode_shlibpath_var_F77=no 15687 runpath_var=LD_RUN_PATH 15688 hardcode_runpath_var=yes 15689 ld_shlibs_F77=yes 15690 fi 15691 ;; 15692 15693 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15694 no_undefined_flag_F77='${wl}-z,text' 15695 archive_cmds_need_lc_F77=no 15696 hardcode_shlibpath_var_F77=no 15697 runpath_var='LD_RUN_PATH' 15698 15699 if test "$GCC" = yes; then 15700 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15701 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15702 else 15703 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15704 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15705 fi 15706 ;; 15707 15708 sysv5* | sco3.2v5* | sco5v6*) 15709 # Note: We can NOT use -z defs as we might desire, because we do not 15710 # link with -lc, and that would cause any symbols used from libc to 15711 # always be unresolved, which means just about no library would 15712 # ever link correctly. If we're not using GNU ld we use -z text 15713 # though, which does catch some bad symbols but isn't as heavy-handed 15714 # as -z defs. 15715 no_undefined_flag_F77='${wl}-z,text' 15716 allow_undefined_flag_F77='${wl}-z,nodefs' 15717 archive_cmds_need_lc_F77=no 15718 hardcode_shlibpath_var_F77=no 15719 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15720 hardcode_libdir_separator_F77=':' 15721 link_all_deplibs_F77=yes 15722 export_dynamic_flag_spec_F77='${wl}-Bexport' 15723 runpath_var='LD_RUN_PATH' 15724 15725 if test "$GCC" = yes; then 15726 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15727 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15728 else 15729 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15730 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15731 fi 15732 ;; 15733 15734 uts4*) 15735 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15736 hardcode_libdir_flag_spec_F77='-L$libdir' 15737 hardcode_shlibpath_var_F77=no 15738 ;; 15739 15740 *) 15741 ld_shlibs_F77=no 15742 ;; 15743 esac 15744 fi 15745 15746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5 15747$as_echo "$ld_shlibs_F77" >&6; } 15748test "$ld_shlibs_F77" = no && can_build_shared=no 15749 15750# 15751# Do we need to explicitly link libc? 15752# 15753case "x$archive_cmds_need_lc_F77" in 15754x|xyes) 15755 # Assume -lc should be added 15756 archive_cmds_need_lc_F77=yes 15757 15758 if test "$enable_shared" = yes && test "$GCC" = yes; then 15759 case $archive_cmds_F77 in 15760 *'~'*) 15761 # FIXME: we may have to deal with multi-command sequences. 15762 ;; 15763 '$CC '*) 15764 # Test whether the compiler implicitly links with -lc since on some 15765 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15766 # to ld, don't add -lc before -lgcc. 15767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15768$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15769 $rm conftest* 15770 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15771 15772 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15773 (eval $ac_compile) 2>&5 15774 ac_status=$? 15775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15776 test $ac_status = 0; } 2>conftest.err; then 15777 soname=conftest 15778 lib=conftest 15779 libobjs=conftest.$ac_objext 15780 deplibs= 15781 wl=$lt_prog_compiler_wl_F77 15782 pic_flag=$lt_prog_compiler_pic_F77 15783 compiler_flags=-v 15784 linker_flags=-v 15785 verstring= 15786 output_objdir=. 15787 libname=conftest 15788 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15789 allow_undefined_flag_F77= 15790 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15791 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15792 ac_status=$? 15793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15794 test $ac_status = 0; } 15795 then 15796 archive_cmds_need_lc_F77=no 15797 else 15798 archive_cmds_need_lc_F77=yes 15799 fi 15800 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15801 else 15802 cat conftest.err 1>&5 15803 fi 15804 $rm conftest* 15805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5 15806$as_echo "$archive_cmds_need_lc_F77" >&6; } 15807 ;; 15808 esac 15809 fi 15810 ;; 15811esac 15812 15813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15814$as_echo_n "checking dynamic linker characteristics... " >&6; } 15815library_names_spec= 15816libname_spec='lib$name' 15817soname_spec= 15818shrext_cmds=".so" 15819postinstall_cmds= 15820postuninstall_cmds= 15821finish_cmds= 15822finish_eval= 15823shlibpath_var= 15824shlibpath_overrides_runpath=unknown 15825version_type=none 15826dynamic_linker="$host_os ld.so" 15827sys_lib_dlsearch_path_spec="/lib /usr/lib" 15828 15829need_lib_prefix=unknown 15830hardcode_into_libs=no 15831 15832# when you set need_version to no, make sure it does not cause -set_version 15833# flags to be left without arguments 15834need_version=unknown 15835 15836case $host_os in 15837aix3*) 15838 version_type=linux 15839 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15840 shlibpath_var=LIBPATH 15841 15842 # AIX 3 has no versioning support, so we append a major version to the name. 15843 soname_spec='${libname}${release}${shared_ext}$major' 15844 ;; 15845 15846aix[4-9]*) 15847 version_type=linux 15848 need_lib_prefix=no 15849 need_version=no 15850 hardcode_into_libs=yes 15851 if test "$host_cpu" = ia64; then 15852 # AIX 5 supports IA64 15853 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15854 shlibpath_var=LD_LIBRARY_PATH 15855 else 15856 # With GCC up to 2.95.x, collect2 would create an import file 15857 # for dependence libraries. The import file would start with 15858 # the line `#! .'. This would cause the generated library to 15859 # depend on `.', always an invalid library. This was fixed in 15860 # development snapshots of GCC prior to 3.0. 15861 case $host_os in 15862 aix4 | aix4.[01] | aix4.[01].*) 15863 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15864 echo ' yes ' 15865 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15866 : 15867 else 15868 can_build_shared=no 15869 fi 15870 ;; 15871 esac 15872 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15873 # soname into executable. Probably we can add versioning support to 15874 # collect2, so additional links can be useful in future. 15875 if test "$aix_use_runtimelinking" = yes; then 15876 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15877 # instead of lib<name>.a to let people know that these are not 15878 # typical AIX shared libraries. 15879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15880 else 15881 # We preserve .a as extension for shared libraries through AIX4.2 15882 # and later when we are not doing run time linking. 15883 library_names_spec='${libname}${release}.a $libname.a' 15884 soname_spec='${libname}${release}${shared_ext}$major' 15885 fi 15886 shlibpath_var=LIBPATH 15887 fi 15888 ;; 15889 15890amigaos*) 15891 library_names_spec='$libname.ixlibrary $libname.a' 15892 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15893 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' 15894 ;; 15895 15896beos*) 15897 library_names_spec='${libname}${shared_ext}' 15898 dynamic_linker="$host_os ld.so" 15899 shlibpath_var=LIBRARY_PATH 15900 ;; 15901 15902bsdi[45]*) 15903 version_type=linux 15904 need_version=no 15905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15906 soname_spec='${libname}${release}${shared_ext}$major' 15907 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15908 shlibpath_var=LD_LIBRARY_PATH 15909 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15910 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15911 # the default ld.so.conf also contains /usr/contrib/lib and 15912 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15913 # libtool to hard-code these into programs 15914 ;; 15915 15916cygwin* | mingw* | pw32*) 15917 version_type=windows 15918 shrext_cmds=".dll" 15919 need_version=no 15920 need_lib_prefix=no 15921 15922 case $GCC,$host_os in 15923 yes,cygwin* | yes,mingw* | yes,pw32*) 15924 library_names_spec='$libname.dll.a' 15925 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15926 postinstall_cmds='base_file=`basename \${file}`~ 15927 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15928 dldir=$destdir/`dirname \$dlpath`~ 15929 test -d \$dldir || mkdir -p \$dldir~ 15930 $install_prog $dir/$dlname \$dldir/$dlname~ 15931 chmod a+x \$dldir/$dlname' 15932 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15933 dlpath=$dir/\$dldll~ 15934 $rm \$dlpath' 15935 shlibpath_overrides_runpath=yes 15936 15937 case $host_os in 15938 cygwin*) 15939 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15940 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15941 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15942 ;; 15943 mingw*) 15944 # MinGW DLLs use traditional 'lib' prefix 15945 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15946 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15947 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15948 # It is most probably a Windows format PATH printed by 15949 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15950 # path with ; separators, and with drive letters. We can handle the 15951 # drive letters (cygwin fileutils understands them), so leave them, 15952 # especially as we might pass files found there to a mingw objdump, 15953 # which wouldn't understand a cygwinified path. Ahh. 15954 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15955 else 15956 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15957 fi 15958 ;; 15959 pw32*) 15960 # pw32 DLLs use 'pw' prefix rather than 'lib' 15961 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15962 ;; 15963 esac 15964 ;; 15965 15966 *) 15967 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15968 ;; 15969 esac 15970 dynamic_linker='Win32 ld.exe' 15971 # FIXME: first we should search . and the directory the executable is in 15972 shlibpath_var=PATH 15973 ;; 15974 15975darwin* | rhapsody*) 15976 dynamic_linker="$host_os dyld" 15977 version_type=darwin 15978 need_lib_prefix=no 15979 need_version=no 15980 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15981 soname_spec='${libname}${release}${major}$shared_ext' 15982 shlibpath_overrides_runpath=yes 15983 shlibpath_var=DYLD_LIBRARY_PATH 15984 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15985 15986 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15987 ;; 15988 15989dgux*) 15990 version_type=linux 15991 need_lib_prefix=no 15992 need_version=no 15993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15994 soname_spec='${libname}${release}${shared_ext}$major' 15995 shlibpath_var=LD_LIBRARY_PATH 15996 ;; 15997 15998freebsd1*) 15999 dynamic_linker=no 16000 ;; 16001 16002freebsd* | dragonfly*) 16003 # DragonFly does not have aout. When/if they implement a new 16004 # versioning mechanism, adjust this. 16005 if test -x /usr/bin/objformat; then 16006 objformat=`/usr/bin/objformat` 16007 else 16008 case $host_os in 16009 freebsd[123]*) objformat=aout ;; 16010 *) objformat=elf ;; 16011 esac 16012 fi 16013 version_type=freebsd-$objformat 16014 case $version_type in 16015 freebsd-elf*) 16016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16017 need_version=no 16018 need_lib_prefix=no 16019 ;; 16020 freebsd-*) 16021 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16022 need_version=yes 16023 ;; 16024 esac 16025 shlibpath_var=LD_LIBRARY_PATH 16026 case $host_os in 16027 freebsd2*) 16028 shlibpath_overrides_runpath=yes 16029 ;; 16030 freebsd3.[01]* | freebsdelf3.[01]*) 16031 shlibpath_overrides_runpath=yes 16032 hardcode_into_libs=yes 16033 ;; 16034 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16035 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16036 shlibpath_overrides_runpath=no 16037 hardcode_into_libs=yes 16038 ;; 16039 *) # from 4.6 on, and DragonFly 16040 shlibpath_overrides_runpath=yes 16041 hardcode_into_libs=yes 16042 ;; 16043 esac 16044 ;; 16045 16046gnu*) 16047 version_type=linux 16048 need_lib_prefix=no 16049 need_version=no 16050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16051 soname_spec='${libname}${release}${shared_ext}$major' 16052 shlibpath_var=LD_LIBRARY_PATH 16053 hardcode_into_libs=yes 16054 ;; 16055 16056hpux9* | hpux10* | hpux11*) 16057 # Give a soname corresponding to the major version so that dld.sl refuses to 16058 # link against other versions. 16059 version_type=sunos 16060 need_lib_prefix=no 16061 need_version=no 16062 case $host_cpu in 16063 ia64*) 16064 shrext_cmds='.so' 16065 hardcode_into_libs=yes 16066 dynamic_linker="$host_os dld.so" 16067 shlibpath_var=LD_LIBRARY_PATH 16068 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16070 soname_spec='${libname}${release}${shared_ext}$major' 16071 if test "X$HPUX_IA64_MODE" = X32; then 16072 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16073 else 16074 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16075 fi 16076 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16077 ;; 16078 hppa*64*) 16079 shrext_cmds='.sl' 16080 hardcode_into_libs=yes 16081 dynamic_linker="$host_os dld.sl" 16082 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16083 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16085 soname_spec='${libname}${release}${shared_ext}$major' 16086 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16087 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16088 ;; 16089 *) 16090 shrext_cmds='.sl' 16091 dynamic_linker="$host_os dld.sl" 16092 shlibpath_var=SHLIB_PATH 16093 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16095 soname_spec='${libname}${release}${shared_ext}$major' 16096 ;; 16097 esac 16098 # HP-UX runs *really* slowly unless shared libraries are mode 555. 16099 postinstall_cmds='chmod 555 $lib' 16100 ;; 16101 16102interix[3-9]*) 16103 version_type=linux 16104 need_lib_prefix=no 16105 need_version=no 16106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16107 soname_spec='${libname}${release}${shared_ext}$major' 16108 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16109 shlibpath_var=LD_LIBRARY_PATH 16110 shlibpath_overrides_runpath=no 16111 hardcode_into_libs=yes 16112 ;; 16113 16114irix5* | irix6* | nonstopux*) 16115 case $host_os in 16116 nonstopux*) version_type=nonstopux ;; 16117 *) 16118 if test "$lt_cv_prog_gnu_ld" = yes; then 16119 version_type=linux 16120 else 16121 version_type=irix 16122 fi ;; 16123 esac 16124 need_lib_prefix=no 16125 need_version=no 16126 soname_spec='${libname}${release}${shared_ext}$major' 16127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16128 case $host_os in 16129 irix5* | nonstopux*) 16130 libsuff= shlibsuff= 16131 ;; 16132 *) 16133 case $LD in # libtool.m4 will add one of these switches to LD 16134 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16135 libsuff= shlibsuff= libmagic=32-bit;; 16136 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16137 libsuff=32 shlibsuff=N32 libmagic=N32;; 16138 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16139 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16140 *) libsuff= shlibsuff= libmagic=never-match;; 16141 esac 16142 ;; 16143 esac 16144 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16145 shlibpath_overrides_runpath=no 16146 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16147 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16148 hardcode_into_libs=yes 16149 ;; 16150 16151# No shared lib support for Linux oldld, aout, or coff. 16152linux*oldld* | linux*aout* | linux*coff*) 16153 dynamic_linker=no 16154 ;; 16155 16156# This must be Linux ELF. 16157linux* | k*bsd*-gnu) 16158 version_type=linux 16159 need_lib_prefix=no 16160 need_version=no 16161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16162 soname_spec='${libname}${release}${shared_ext}$major' 16163 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16164 shlibpath_var=LD_LIBRARY_PATH 16165 shlibpath_overrides_runpath=no 16166 # This implies no fast_install, which is unacceptable. 16167 # Some rework will be needed to allow for fast_install 16168 # before this can be enabled. 16169 hardcode_into_libs=yes 16170 16171 # Append ld.so.conf contents to the search path 16172 if test -f /etc/ld.so.conf; then 16173 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' ' '` 16174 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16175 fi 16176 16177 # We used to test for /lib/ld.so.1 and disable shared libraries on 16178 # powerpc, because MkLinux only supported shared libraries with the 16179 # GNU dynamic linker. Since this was broken with cross compilers, 16180 # most powerpc-linux boxes support dynamic linking these days and 16181 # people can always --disable-shared, the test was removed, and we 16182 # assume the GNU/Linux dynamic linker is in use. 16183 dynamic_linker='GNU/Linux ld.so' 16184 ;; 16185 16186netbsd*) 16187 version_type=sunos 16188 need_lib_prefix=no 16189 need_version=no 16190 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16192 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16193 dynamic_linker='NetBSD (a.out) ld.so' 16194 else 16195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16196 soname_spec='${libname}${release}${shared_ext}$major' 16197 dynamic_linker='NetBSD ld.elf_so' 16198 fi 16199 shlibpath_var=LD_LIBRARY_PATH 16200 shlibpath_overrides_runpath=yes 16201 hardcode_into_libs=yes 16202 ;; 16203 16204newsos6) 16205 version_type=linux 16206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16207 shlibpath_var=LD_LIBRARY_PATH 16208 shlibpath_overrides_runpath=yes 16209 ;; 16210 16211nto-qnx*) 16212 version_type=linux 16213 need_lib_prefix=no 16214 need_version=no 16215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16216 soname_spec='${libname}${release}${shared_ext}$major' 16217 shlibpath_var=LD_LIBRARY_PATH 16218 shlibpath_overrides_runpath=yes 16219 ;; 16220 16221openbsd*) 16222 version_type=sunos 16223 sys_lib_dlsearch_path_spec="/usr/lib" 16224 need_lib_prefix=no 16225 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16226 case $host_os in 16227 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16228 *) need_version=no ;; 16229 esac 16230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16231 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16232 shlibpath_var=LD_LIBRARY_PATH 16233 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16234 case $host_os in 16235 openbsd2.[89] | openbsd2.[89].*) 16236 shlibpath_overrides_runpath=no 16237 ;; 16238 *) 16239 shlibpath_overrides_runpath=yes 16240 ;; 16241 esac 16242 else 16243 shlibpath_overrides_runpath=yes 16244 fi 16245 ;; 16246 16247os2*) 16248 libname_spec='$name' 16249 shrext_cmds=".dll" 16250 need_lib_prefix=no 16251 library_names_spec='$libname${shared_ext} $libname.a' 16252 dynamic_linker='OS/2 ld.exe' 16253 shlibpath_var=LIBPATH 16254 ;; 16255 16256osf3* | osf4* | osf5*) 16257 version_type=osf 16258 need_lib_prefix=no 16259 need_version=no 16260 soname_spec='${libname}${release}${shared_ext}$major' 16261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16262 shlibpath_var=LD_LIBRARY_PATH 16263 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16264 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16265 ;; 16266 16267rdos*) 16268 dynamic_linker=no 16269 ;; 16270 16271solaris*) 16272 version_type=linux 16273 need_lib_prefix=no 16274 need_version=no 16275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16276 soname_spec='${libname}${release}${shared_ext}$major' 16277 shlibpath_var=LD_LIBRARY_PATH 16278 shlibpath_overrides_runpath=yes 16279 hardcode_into_libs=yes 16280 # ldd complains unless libraries are executable 16281 postinstall_cmds='chmod +x $lib' 16282 ;; 16283 16284sunos4*) 16285 version_type=sunos 16286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16287 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16288 shlibpath_var=LD_LIBRARY_PATH 16289 shlibpath_overrides_runpath=yes 16290 if test "$with_gnu_ld" = yes; then 16291 need_lib_prefix=no 16292 fi 16293 need_version=yes 16294 ;; 16295 16296sysv4 | sysv4.3*) 16297 version_type=linux 16298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16299 soname_spec='${libname}${release}${shared_ext}$major' 16300 shlibpath_var=LD_LIBRARY_PATH 16301 case $host_vendor in 16302 sni) 16303 shlibpath_overrides_runpath=no 16304 need_lib_prefix=no 16305 export_dynamic_flag_spec='${wl}-Blargedynsym' 16306 runpath_var=LD_RUN_PATH 16307 ;; 16308 siemens) 16309 need_lib_prefix=no 16310 ;; 16311 motorola) 16312 need_lib_prefix=no 16313 need_version=no 16314 shlibpath_overrides_runpath=no 16315 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16316 ;; 16317 esac 16318 ;; 16319 16320sysv4*MP*) 16321 if test -d /usr/nec ;then 16322 version_type=linux 16323 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16324 soname_spec='$libname${shared_ext}.$major' 16325 shlibpath_var=LD_LIBRARY_PATH 16326 fi 16327 ;; 16328 16329sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16330 version_type=freebsd-elf 16331 need_lib_prefix=no 16332 need_version=no 16333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16334 soname_spec='${libname}${release}${shared_ext}$major' 16335 shlibpath_var=LD_LIBRARY_PATH 16336 hardcode_into_libs=yes 16337 if test "$with_gnu_ld" = yes; then 16338 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16339 shlibpath_overrides_runpath=no 16340 else 16341 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16342 shlibpath_overrides_runpath=yes 16343 case $host_os in 16344 sco3.2v5*) 16345 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16346 ;; 16347 esac 16348 fi 16349 sys_lib_dlsearch_path_spec='/usr/lib' 16350 ;; 16351 16352uts4*) 16353 version_type=linux 16354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16355 soname_spec='${libname}${release}${shared_ext}$major' 16356 shlibpath_var=LD_LIBRARY_PATH 16357 ;; 16358 16359*) 16360 dynamic_linker=no 16361 ;; 16362esac 16363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16364$as_echo "$dynamic_linker" >&6; } 16365test "$dynamic_linker" = no && can_build_shared=no 16366 16367if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then : 16368 $as_echo_n "(cached) " >&6 16369else 16370 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 16371fi 16372 16373sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 16374if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then : 16375 $as_echo_n "(cached) " >&6 16376else 16377 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 16378fi 16379 16380sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 16381 16382variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16383if test "$GCC" = yes; then 16384 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16385fi 16386 16387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16388$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16389hardcode_action_F77= 16390if test -n "$hardcode_libdir_flag_spec_F77" || \ 16391 test -n "$runpath_var_F77" || \ 16392 test "X$hardcode_automatic_F77" = "Xyes" ; then 16393 16394 # We can hardcode non-existant directories. 16395 if test "$hardcode_direct_F77" != no && 16396 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16397 # have to relink, otherwise we might link with an installed library 16398 # when we should be linking with a yet-to-be-installed one 16399 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16400 test "$hardcode_minus_L_F77" != no; then 16401 # Linking always hardcodes the temporary library directory. 16402 hardcode_action_F77=relink 16403 else 16404 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16405 hardcode_action_F77=immediate 16406 fi 16407else 16408 # We cannot hardcode anything, or else we can only hardcode existing 16409 # directories. 16410 hardcode_action_F77=unsupported 16411fi 16412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5 16413$as_echo "$hardcode_action_F77" >&6; } 16414 16415if test "$hardcode_action_F77" = relink; then 16416 # Fast installation is not supported 16417 enable_fast_install=no 16418elif test "$shlibpath_overrides_runpath" = yes || 16419 test "$enable_shared" = no; then 16420 # Fast installation is not necessary 16421 enable_fast_install=needless 16422fi 16423 16424 16425# The else clause should only fire when bootstrapping the 16426# libtool distribution, otherwise you forgot to ship ltmain.sh 16427# with your package, and you will get complaints that there are 16428# no rules to generate ltmain.sh. 16429if test -f "$ltmain"; then 16430 # See if we are running on zsh, and set the options which allow our commands through 16431 # without removal of \ escapes. 16432 if test -n "${ZSH_VERSION+set}" ; then 16433 setopt NO_GLOB_SUBST 16434 fi 16435 # Now quote all the things that may contain metacharacters while being 16436 # careful not to overquote the AC_SUBSTed values. We take copies of the 16437 # variables and quote the copies for generation of the libtool script. 16438 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16439 SED SHELL STRIP \ 16440 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16441 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16442 deplibs_check_method reload_flag reload_cmds need_locks \ 16443 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16444 lt_cv_sys_global_symbol_to_c_name_address \ 16445 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16446 old_postinstall_cmds old_postuninstall_cmds \ 16447 compiler_F77 \ 16448 CC_F77 \ 16449 LD_F77 \ 16450 lt_prog_compiler_wl_F77 \ 16451 lt_prog_compiler_pic_F77 \ 16452 lt_prog_compiler_static_F77 \ 16453 lt_prog_compiler_no_builtin_flag_F77 \ 16454 export_dynamic_flag_spec_F77 \ 16455 thread_safe_flag_spec_F77 \ 16456 whole_archive_flag_spec_F77 \ 16457 enable_shared_with_static_runtimes_F77 \ 16458 old_archive_cmds_F77 \ 16459 old_archive_from_new_cmds_F77 \ 16460 predep_objects_F77 \ 16461 postdep_objects_F77 \ 16462 predeps_F77 \ 16463 postdeps_F77 \ 16464 compiler_lib_search_path_F77 \ 16465 compiler_lib_search_dirs_F77 \ 16466 archive_cmds_F77 \ 16467 archive_expsym_cmds_F77 \ 16468 postinstall_cmds_F77 \ 16469 postuninstall_cmds_F77 \ 16470 old_archive_from_expsyms_cmds_F77 \ 16471 allow_undefined_flag_F77 \ 16472 no_undefined_flag_F77 \ 16473 export_symbols_cmds_F77 \ 16474 hardcode_libdir_flag_spec_F77 \ 16475 hardcode_libdir_flag_spec_ld_F77 \ 16476 hardcode_libdir_separator_F77 \ 16477 hardcode_automatic_F77 \ 16478 module_cmds_F77 \ 16479 module_expsym_cmds_F77 \ 16480 lt_cv_prog_compiler_c_o_F77 \ 16481 fix_srcfile_path_F77 \ 16482 exclude_expsyms_F77 \ 16483 include_expsyms_F77; do 16484 16485 case $var in 16486 old_archive_cmds_F77 | \ 16487 old_archive_from_new_cmds_F77 | \ 16488 archive_cmds_F77 | \ 16489 archive_expsym_cmds_F77 | \ 16490 module_cmds_F77 | \ 16491 module_expsym_cmds_F77 | \ 16492 old_archive_from_expsyms_cmds_F77 | \ 16493 export_symbols_cmds_F77 | \ 16494 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16495 postinstall_cmds | postuninstall_cmds | \ 16496 old_postinstall_cmds | old_postuninstall_cmds | \ 16497 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16498 # Double-quote double-evaled strings. 16499 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16500 ;; 16501 *) 16502 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16503 ;; 16504 esac 16505 done 16506 16507 case $lt_echo in 16508 *'\$0 --fallback-echo"') 16509 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16510 ;; 16511 esac 16512 16513cfgfile="$ofile" 16514 16515 cat <<__EOF__ >> "$cfgfile" 16516# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16517 16518# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16519 16520# Shell to use when invoking shell scripts. 16521SHELL=$lt_SHELL 16522 16523# Whether or not to build shared libraries. 16524build_libtool_libs=$enable_shared 16525 16526# Whether or not to build static libraries. 16527build_old_libs=$enable_static 16528 16529# Whether or not to add -lc for building shared libraries. 16530build_libtool_need_lc=$archive_cmds_need_lc_F77 16531 16532# Whether or not to disallow shared libs when runtime libs are static 16533allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16534 16535# Whether or not to optimize for fast installation. 16536fast_install=$enable_fast_install 16537 16538# The host system. 16539host_alias=$host_alias 16540host=$host 16541host_os=$host_os 16542 16543# The build system. 16544build_alias=$build_alias 16545build=$build 16546build_os=$build_os 16547 16548# An echo program that does not interpret backslashes. 16549echo=$lt_echo 16550 16551# The archiver. 16552AR=$lt_AR 16553AR_FLAGS=$lt_AR_FLAGS 16554 16555# A C compiler. 16556LTCC=$lt_LTCC 16557 16558# LTCC compiler flags. 16559LTCFLAGS=$lt_LTCFLAGS 16560 16561# A language-specific compiler. 16562CC=$lt_compiler_F77 16563 16564# Is the compiler the GNU C compiler? 16565with_gcc=$GCC_F77 16566 16567# An ERE matcher. 16568EGREP=$lt_EGREP 16569 16570# The linker used to build libraries. 16571LD=$lt_LD_F77 16572 16573# Whether we need hard or soft links. 16574LN_S=$lt_LN_S 16575 16576# A BSD-compatible nm program. 16577NM=$lt_NM 16578 16579# A symbol stripping program 16580STRIP=$lt_STRIP 16581 16582# Used to examine libraries when file_magic_cmd begins "file" 16583MAGIC_CMD=$MAGIC_CMD 16584 16585# Used on cygwin: DLL creation program. 16586DLLTOOL="$DLLTOOL" 16587 16588# Used on cygwin: object dumper. 16589OBJDUMP="$OBJDUMP" 16590 16591# Used on cygwin: assembler. 16592AS="$AS" 16593 16594# The name of the directory that contains temporary libtool files. 16595objdir=$objdir 16596 16597# How to create reloadable object files. 16598reload_flag=$lt_reload_flag 16599reload_cmds=$lt_reload_cmds 16600 16601# How to pass a linker flag through the compiler. 16602wl=$lt_lt_prog_compiler_wl_F77 16603 16604# Object file suffix (normally "o"). 16605objext="$ac_objext" 16606 16607# Old archive suffix (normally "a"). 16608libext="$libext" 16609 16610# Shared library suffix (normally ".so"). 16611shrext_cmds='$shrext_cmds' 16612 16613# Executable file suffix (normally ""). 16614exeext="$exeext" 16615 16616# Additional compiler flags for building library objects. 16617pic_flag=$lt_lt_prog_compiler_pic_F77 16618pic_mode=$pic_mode 16619 16620# What is the maximum length of a command? 16621max_cmd_len=$lt_cv_sys_max_cmd_len 16622 16623# Does compiler simultaneously support -c and -o options? 16624compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16625 16626# Must we lock files when doing compilation? 16627need_locks=$lt_need_locks 16628 16629# Do we need the lib prefix for modules? 16630need_lib_prefix=$need_lib_prefix 16631 16632# Do we need a version for libraries? 16633need_version=$need_version 16634 16635# Whether dlopen is supported. 16636dlopen_support=$enable_dlopen 16637 16638# Whether dlopen of programs is supported. 16639dlopen_self=$enable_dlopen_self 16640 16641# Whether dlopen of statically linked programs is supported. 16642dlopen_self_static=$enable_dlopen_self_static 16643 16644# Compiler flag to prevent dynamic linking. 16645link_static_flag=$lt_lt_prog_compiler_static_F77 16646 16647# Compiler flag to turn off builtin functions. 16648no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16649 16650# Compiler flag to allow reflexive dlopens. 16651export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16652 16653# Compiler flag to generate shared objects directly from archives. 16654whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16655 16656# Compiler flag to generate thread-safe objects. 16657thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16658 16659# Library versioning type. 16660version_type=$version_type 16661 16662# Format of library name prefix. 16663libname_spec=$lt_libname_spec 16664 16665# List of archive names. First name is the real one, the rest are links. 16666# The last name is the one that the linker finds with -lNAME. 16667library_names_spec=$lt_library_names_spec 16668 16669# The coded name of the library, if different from the real name. 16670soname_spec=$lt_soname_spec 16671 16672# Commands used to build and install an old-style archive. 16673RANLIB=$lt_RANLIB 16674old_archive_cmds=$lt_old_archive_cmds_F77 16675old_postinstall_cmds=$lt_old_postinstall_cmds 16676old_postuninstall_cmds=$lt_old_postuninstall_cmds 16677 16678# Create an old-style archive from a shared archive. 16679old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16680 16681# Create a temporary old-style archive to link instead of a shared archive. 16682old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16683 16684# Commands used to build and install a shared archive. 16685archive_cmds=$lt_archive_cmds_F77 16686archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16687postinstall_cmds=$lt_postinstall_cmds 16688postuninstall_cmds=$lt_postuninstall_cmds 16689 16690# Commands used to build a loadable module (assumed same as above if empty) 16691module_cmds=$lt_module_cmds_F77 16692module_expsym_cmds=$lt_module_expsym_cmds_F77 16693 16694# Commands to strip libraries. 16695old_striplib=$lt_old_striplib 16696striplib=$lt_striplib 16697 16698# Dependencies to place before the objects being linked to create a 16699# shared library. 16700predep_objects=$lt_predep_objects_F77 16701 16702# Dependencies to place after the objects being linked to create a 16703# shared library. 16704postdep_objects=$lt_postdep_objects_F77 16705 16706# Dependencies to place before the objects being linked to create a 16707# shared library. 16708predeps=$lt_predeps_F77 16709 16710# Dependencies to place after the objects being linked to create a 16711# shared library. 16712postdeps=$lt_postdeps_F77 16713 16714# The directories searched by this compiler when creating a shared 16715# library 16716compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 16717 16718# The library search path used internally by the compiler when linking 16719# a shared library. 16720compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16721 16722# Method to check whether dependent libraries are shared objects. 16723deplibs_check_method=$lt_deplibs_check_method 16724 16725# Command to use when deplibs_check_method == file_magic. 16726file_magic_cmd=$lt_file_magic_cmd 16727 16728# Flag that allows shared libraries with undefined symbols to be built. 16729allow_undefined_flag=$lt_allow_undefined_flag_F77 16730 16731# Flag that forces no undefined symbols. 16732no_undefined_flag=$lt_no_undefined_flag_F77 16733 16734# Commands used to finish a libtool library installation in a directory. 16735finish_cmds=$lt_finish_cmds 16736 16737# Same as above, but a single script fragment to be evaled but not shown. 16738finish_eval=$lt_finish_eval 16739 16740# Take the output of nm and produce a listing of raw symbols and C names. 16741global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16742 16743# Transform the output of nm in a proper C declaration 16744global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16745 16746# Transform the output of nm in a C name address pair 16747global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16748 16749# This is the shared library runtime path variable. 16750runpath_var=$runpath_var 16751 16752# This is the shared library path variable. 16753shlibpath_var=$shlibpath_var 16754 16755# Is shlibpath searched before the hard-coded library search path? 16756shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16757 16758# How to hardcode a shared library path into an executable. 16759hardcode_action=$hardcode_action_F77 16760 16761# Whether we should hardcode library paths into libraries. 16762hardcode_into_libs=$hardcode_into_libs 16763 16764# Flag to hardcode \$libdir into a binary during linking. 16765# This must work even if \$libdir does not exist. 16766hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16767 16768# If ld is used when linking, flag to hardcode \$libdir into 16769# a binary during linking. This must work even if \$libdir does 16770# not exist. 16771hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16772 16773# Whether we need a single -rpath flag with a separated argument. 16774hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16775 16776# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16777# resulting binary. 16778hardcode_direct=$hardcode_direct_F77 16779 16780# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16781# resulting binary. 16782hardcode_minus_L=$hardcode_minus_L_F77 16783 16784# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16785# the resulting binary. 16786hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16787 16788# Set to yes if building a shared library automatically hardcodes DIR into the library 16789# and all subsequent libraries and executables linked against it. 16790hardcode_automatic=$hardcode_automatic_F77 16791 16792# Variables whose values should be saved in libtool wrapper scripts and 16793# restored at relink time. 16794variables_saved_for_relink="$variables_saved_for_relink" 16795 16796# Whether libtool must link a program against all its dependency libraries. 16797link_all_deplibs=$link_all_deplibs_F77 16798 16799# Compile-time system search path for libraries 16800sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16801 16802# Run-time system search path for libraries 16803sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16804 16805# Fix the shell variable \$srcfile for the compiler. 16806fix_srcfile_path=$lt_fix_srcfile_path 16807 16808# Set to yes if exported symbols are required. 16809always_export_symbols=$always_export_symbols_F77 16810 16811# The commands to list exported symbols. 16812export_symbols_cmds=$lt_export_symbols_cmds_F77 16813 16814# The commands to extract the exported symbol list from a shared archive. 16815extract_expsyms_cmds=$lt_extract_expsyms_cmds 16816 16817# Symbols that should not be listed in the preloaded symbols. 16818exclude_expsyms=$lt_exclude_expsyms_F77 16819 16820# Symbols that must always be exported. 16821include_expsyms=$lt_include_expsyms_F77 16822 16823# ### END LIBTOOL TAG CONFIG: $tagname 16824 16825__EOF__ 16826 16827 16828else 16829 # If there is no Makefile yet, we rely on a make rule to execute 16830 # `config.status --recheck' to rerun these tests and create the 16831 # libtool script then. 16832 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16833 if test -f "$ltmain_in"; then 16834 test -f Makefile && make "$ltmain" 16835 fi 16836fi 16837 16838 16839ac_ext=c 16840ac_cpp='$CPP $CPPFLAGS' 16841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16843ac_compiler_gnu=$ac_cv_c_compiler_gnu 16844 16845CC="$lt_save_CC" 16846 16847 else 16848 tagname="" 16849 fi 16850 ;; 16851 16852 GCJ) 16853 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16854 16855 16856# Source file extension for Java test sources. 16857ac_ext=java 16858 16859# Object file extension for compiled Java test sources. 16860objext=o 16861objext_GCJ=$objext 16862 16863# Code to be used in simple compile tests 16864lt_simple_compile_test_code="class foo {}" 16865 16866# Code to be used in simple link tests 16867lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' 16868 16869# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16870 16871# If no C compiler was specified, use CC. 16872LTCC=${LTCC-"$CC"} 16873 16874# If no C compiler flags were specified, use CFLAGS. 16875LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16876 16877# Allow CC to be a program name with arguments. 16878compiler=$CC 16879 16880 16881# save warnings/boilerplate of simple test code 16882ac_outfile=conftest.$ac_objext 16883echo "$lt_simple_compile_test_code" >conftest.$ac_ext 16884eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16885_lt_compiler_boilerplate=`cat conftest.err` 16886$rm conftest* 16887 16888ac_outfile=conftest.$ac_objext 16889echo "$lt_simple_link_test_code" >conftest.$ac_ext 16890eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16891_lt_linker_boilerplate=`cat conftest.err` 16892$rm -r conftest* 16893 16894 16895# Allow CC to be a program name with arguments. 16896lt_save_CC="$CC" 16897CC=${GCJ-"gcj"} 16898compiler=$CC 16899compiler_GCJ=$CC 16900for cc_temp in $compiler""; do 16901 case $cc_temp in 16902 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16903 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16904 \-*) ;; 16905 *) break;; 16906 esac 16907done 16908cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16909 16910 16911# GCJ did not exist at the time GCC didn't implicitly link libc in. 16912archive_cmds_need_lc_GCJ=no 16913 16914old_archive_cmds_GCJ=$old_archive_cmds 16915 16916 16917lt_prog_compiler_no_builtin_flag_GCJ= 16918 16919if test "$GCC" = yes; then 16920 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16921 16922 16923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16924$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 16925if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 16926 $as_echo_n "(cached) " >&6 16927else 16928 lt_cv_prog_compiler_rtti_exceptions=no 16929 ac_outfile=conftest.$ac_objext 16930 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16931 lt_compiler_flag="-fno-rtti -fno-exceptions" 16932 # Insert the option either (1) after the last *FLAGS variable, or 16933 # (2) before a word containing "conftest.", or (3) at the end. 16934 # Note that $ac_compile itself does not contain backslashes and begins 16935 # with a dollar sign (not a hyphen), so the echo should work correctly. 16936 # The option is referenced via a variable to avoid confusing sed. 16937 lt_compile=`echo "$ac_compile" | $SED \ 16938 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16939 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16940 -e 's:$: $lt_compiler_flag:'` 16941 (eval echo "\"\$as_me:16941: $lt_compile\"" >&5) 16942 (eval "$lt_compile" 2>conftest.err) 16943 ac_status=$? 16944 cat conftest.err >&5 16945 echo "$as_me:16945: \$? = $ac_status" >&5 16946 if (exit $ac_status) && test -s "$ac_outfile"; then 16947 # The compiler can only warn and ignore the option if not recognized 16948 # So say no if there are warnings other than the usual output. 16949 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16950 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16951 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16952 lt_cv_prog_compiler_rtti_exceptions=yes 16953 fi 16954 fi 16955 $rm conftest* 16956 16957fi 16958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16959$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16960 16961if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16962 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16963else 16964 : 16965fi 16966 16967fi 16968 16969lt_prog_compiler_wl_GCJ= 16970lt_prog_compiler_pic_GCJ= 16971lt_prog_compiler_static_GCJ= 16972 16973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 16974$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 16975 16976 if test "$GCC" = yes; then 16977 lt_prog_compiler_wl_GCJ='-Wl,' 16978 lt_prog_compiler_static_GCJ='-static' 16979 16980 case $host_os in 16981 aix*) 16982 # All AIX code is PIC. 16983 if test "$host_cpu" = ia64; then 16984 # AIX 5 now supports IA64 processor 16985 lt_prog_compiler_static_GCJ='-Bstatic' 16986 fi 16987 ;; 16988 16989 amigaos*) 16990 # FIXME: we need at least 68020 code to build shared libraries, but 16991 # adding the `-m68020' flag to GCC prevents building anything better, 16992 # like `-m68040'. 16993 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16994 ;; 16995 16996 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16997 # PIC is the default for these OSes. 16998 ;; 16999 17000 mingw* | cygwin* | pw32* | os2*) 17001 # This hack is so that the source file can tell whether it is being 17002 # built for inclusion in a dll (and should export symbols for example). 17003 # Although the cygwin gcc ignores -fPIC, still need this for old-style 17004 # (--disable-auto-import) libraries 17005 17006 ;; 17007 17008 darwin* | rhapsody*) 17009 # PIC is the default on this platform 17010 # Common symbols not allowed in MH_DYLIB files 17011 lt_prog_compiler_pic_GCJ='-fno-common' 17012 ;; 17013 17014 interix[3-9]*) 17015 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 17016 # Instead, we relocate shared libraries at runtime. 17017 ;; 17018 17019 msdosdjgpp*) 17020 # Just because we use GCC doesn't mean we suddenly get shared libraries 17021 # on systems that don't support them. 17022 lt_prog_compiler_can_build_shared_GCJ=no 17023 enable_shared=no 17024 ;; 17025 17026 sysv4*MP*) 17027 if test -d /usr/nec; then 17028 lt_prog_compiler_pic_GCJ=-Kconform_pic 17029 fi 17030 ;; 17031 17032 hpux*) 17033 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17034 # not for PA HP-UX. 17035 case $host_cpu in 17036 hppa*64*|ia64*) 17037 # +Z the default 17038 ;; 17039 *) 17040 lt_prog_compiler_pic_GCJ='-fPIC' 17041 ;; 17042 esac 17043 ;; 17044 17045 *) 17046 lt_prog_compiler_pic_GCJ='-fPIC' 17047 ;; 17048 esac 17049 else 17050 # PORTME Check for flag to pass linker flags through the system compiler. 17051 case $host_os in 17052 aix*) 17053 lt_prog_compiler_wl_GCJ='-Wl,' 17054 if test "$host_cpu" = ia64; then 17055 # AIX 5 now supports IA64 processor 17056 lt_prog_compiler_static_GCJ='-Bstatic' 17057 else 17058 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 17059 fi 17060 ;; 17061 darwin*) 17062 # PIC is the default on this platform 17063 # Common symbols not allowed in MH_DYLIB files 17064 case $cc_basename in 17065 xlc*) 17066 lt_prog_compiler_pic_GCJ='-qnocommon' 17067 lt_prog_compiler_wl_GCJ='-Wl,' 17068 ;; 17069 esac 17070 ;; 17071 17072 mingw* | cygwin* | pw32* | os2*) 17073 # This hack is so that the source file can tell whether it is being 17074 # built for inclusion in a dll (and should export symbols for example). 17075 17076 ;; 17077 17078 hpux9* | hpux10* | hpux11*) 17079 lt_prog_compiler_wl_GCJ='-Wl,' 17080 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17081 # not for PA HP-UX. 17082 case $host_cpu in 17083 hppa*64*|ia64*) 17084 # +Z the default 17085 ;; 17086 *) 17087 lt_prog_compiler_pic_GCJ='+Z' 17088 ;; 17089 esac 17090 # Is there a better lt_prog_compiler_static that works with the bundled CC? 17091 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 17092 ;; 17093 17094 irix5* | irix6* | nonstopux*) 17095 lt_prog_compiler_wl_GCJ='-Wl,' 17096 # PIC (with -KPIC) is the default. 17097 lt_prog_compiler_static_GCJ='-non_shared' 17098 ;; 17099 17100 newsos6) 17101 lt_prog_compiler_pic_GCJ='-KPIC' 17102 lt_prog_compiler_static_GCJ='-Bstatic' 17103 ;; 17104 17105 linux* | k*bsd*-gnu) 17106 case $cc_basename in 17107 icc* | ecc*) 17108 lt_prog_compiler_wl_GCJ='-Wl,' 17109 lt_prog_compiler_pic_GCJ='-KPIC' 17110 lt_prog_compiler_static_GCJ='-static' 17111 ;; 17112 pgcc* | pgf77* | pgf90* | pgf95*) 17113 # Portland Group compilers (*not* the Pentium gcc compiler, 17114 # which looks to be a dead project) 17115 lt_prog_compiler_wl_GCJ='-Wl,' 17116 lt_prog_compiler_pic_GCJ='-fpic' 17117 lt_prog_compiler_static_GCJ='-Bstatic' 17118 ;; 17119 ccc*) 17120 lt_prog_compiler_wl_GCJ='-Wl,' 17121 # All Alpha code is PIC. 17122 lt_prog_compiler_static_GCJ='-non_shared' 17123 ;; 17124 *) 17125 case `$CC -V 2>&1 | sed 5q` in 17126 *Sun\ C*) 17127 # Sun C 5.9 17128 lt_prog_compiler_pic_GCJ='-KPIC' 17129 lt_prog_compiler_static_GCJ='-Bstatic' 17130 lt_prog_compiler_wl_GCJ='-Wl,' 17131 ;; 17132 *Sun\ F*) 17133 # Sun Fortran 8.3 passes all unrecognized flags to the linker 17134 lt_prog_compiler_pic_GCJ='-KPIC' 17135 lt_prog_compiler_static_GCJ='-Bstatic' 17136 lt_prog_compiler_wl_GCJ='' 17137 ;; 17138 esac 17139 ;; 17140 esac 17141 ;; 17142 17143 osf3* | osf4* | osf5*) 17144 lt_prog_compiler_wl_GCJ='-Wl,' 17145 # All OSF/1 code is PIC. 17146 lt_prog_compiler_static_GCJ='-non_shared' 17147 ;; 17148 17149 rdos*) 17150 lt_prog_compiler_static_GCJ='-non_shared' 17151 ;; 17152 17153 solaris*) 17154 lt_prog_compiler_pic_GCJ='-KPIC' 17155 lt_prog_compiler_static_GCJ='-Bstatic' 17156 case $cc_basename in 17157 f77* | f90* | f95*) 17158 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 17159 *) 17160 lt_prog_compiler_wl_GCJ='-Wl,';; 17161 esac 17162 ;; 17163 17164 sunos4*) 17165 lt_prog_compiler_wl_GCJ='-Qoption ld ' 17166 lt_prog_compiler_pic_GCJ='-PIC' 17167 lt_prog_compiler_static_GCJ='-Bstatic' 17168 ;; 17169 17170 sysv4 | sysv4.2uw2* | sysv4.3*) 17171 lt_prog_compiler_wl_GCJ='-Wl,' 17172 lt_prog_compiler_pic_GCJ='-KPIC' 17173 lt_prog_compiler_static_GCJ='-Bstatic' 17174 ;; 17175 17176 sysv4*MP*) 17177 if test -d /usr/nec ;then 17178 lt_prog_compiler_pic_GCJ='-Kconform_pic' 17179 lt_prog_compiler_static_GCJ='-Bstatic' 17180 fi 17181 ;; 17182 17183 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17184 lt_prog_compiler_wl_GCJ='-Wl,' 17185 lt_prog_compiler_pic_GCJ='-KPIC' 17186 lt_prog_compiler_static_GCJ='-Bstatic' 17187 ;; 17188 17189 unicos*) 17190 lt_prog_compiler_wl_GCJ='-Wl,' 17191 lt_prog_compiler_can_build_shared_GCJ=no 17192 ;; 17193 17194 uts4*) 17195 lt_prog_compiler_pic_GCJ='-pic' 17196 lt_prog_compiler_static_GCJ='-Bstatic' 17197 ;; 17198 17199 *) 17200 lt_prog_compiler_can_build_shared_GCJ=no 17201 ;; 17202 esac 17203 fi 17204 17205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5 17206$as_echo "$lt_prog_compiler_pic_GCJ" >&6; } 17207 17208# 17209# Check to make sure the PIC flag actually works. 17210# 17211if test -n "$lt_prog_compiler_pic_GCJ"; then 17212 17213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 17214$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; } 17215if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then : 17216 $as_echo_n "(cached) " >&6 17217else 17218 lt_cv_prog_compiler_pic_works_GCJ=no 17219 ac_outfile=conftest.$ac_objext 17220 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17221 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 17222 # Insert the option either (1) after the last *FLAGS variable, or 17223 # (2) before a word containing "conftest.", or (3) at the end. 17224 # Note that $ac_compile itself does not contain backslashes and begins 17225 # with a dollar sign (not a hyphen), so the echo should work correctly. 17226 # The option is referenced via a variable to avoid confusing sed. 17227 lt_compile=`echo "$ac_compile" | $SED \ 17228 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17229 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17230 -e 's:$: $lt_compiler_flag:'` 17231 (eval echo "\"\$as_me:17231: $lt_compile\"" >&5) 17232 (eval "$lt_compile" 2>conftest.err) 17233 ac_status=$? 17234 cat conftest.err >&5 17235 echo "$as_me:17235: \$? = $ac_status" >&5 17236 if (exit $ac_status) && test -s "$ac_outfile"; then 17237 # The compiler can only warn and ignore the option if not recognized 17238 # So say no if there are warnings other than the usual output. 17239 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17240 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17241 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17242 lt_cv_prog_compiler_pic_works_GCJ=yes 17243 fi 17244 fi 17245 $rm conftest* 17246 17247fi 17248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5 17249$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; } 17250 17251if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then 17252 case $lt_prog_compiler_pic_GCJ in 17253 "" | " "*) ;; 17254 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 17255 esac 17256else 17257 lt_prog_compiler_pic_GCJ= 17258 lt_prog_compiler_can_build_shared_GCJ=no 17259fi 17260 17261fi 17262case $host_os in 17263 # For platforms which do not support PIC, -DPIC is meaningless: 17264 *djgpp*) 17265 lt_prog_compiler_pic_GCJ= 17266 ;; 17267 *) 17268 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 17269 ;; 17270esac 17271 17272# 17273# Check to make sure the static flag actually works. 17274# 17275wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 17276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17277$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 17278if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then : 17279 $as_echo_n "(cached) " >&6 17280else 17281 lt_cv_prog_compiler_static_works_GCJ=no 17282 save_LDFLAGS="$LDFLAGS" 17283 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17284 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17285 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17286 # The linker can only warn and ignore the option if not recognized 17287 # So say no if there are warnings 17288 if test -s conftest.err; then 17289 # Append any errors to the config.log. 17290 cat conftest.err 1>&5 17291 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17292 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17293 if diff conftest.exp conftest.er2 >/dev/null; then 17294 lt_cv_prog_compiler_static_works_GCJ=yes 17295 fi 17296 else 17297 lt_cv_prog_compiler_static_works_GCJ=yes 17298 fi 17299 fi 17300 $rm -r conftest* 17301 LDFLAGS="$save_LDFLAGS" 17302 17303fi 17304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5 17305$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; } 17306 17307if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then 17308 : 17309else 17310 lt_prog_compiler_static_GCJ= 17311fi 17312 17313 17314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 17315$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17316if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then : 17317 $as_echo_n "(cached) " >&6 17318else 17319 lt_cv_prog_compiler_c_o_GCJ=no 17320 $rm -r conftest 2>/dev/null 17321 mkdir conftest 17322 cd conftest 17323 mkdir out 17324 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17325 17326 lt_compiler_flag="-o out/conftest2.$ac_objext" 17327 # Insert the option either (1) after the last *FLAGS variable, or 17328 # (2) before a word containing "conftest.", or (3) at the end. 17329 # Note that $ac_compile itself does not contain backslashes and begins 17330 # with a dollar sign (not a hyphen), so the echo should work correctly. 17331 lt_compile=`echo "$ac_compile" | $SED \ 17332 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17333 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17334 -e 's:$: $lt_compiler_flag:'` 17335 (eval echo "\"\$as_me:17335: $lt_compile\"" >&5) 17336 (eval "$lt_compile" 2>out/conftest.err) 17337 ac_status=$? 17338 cat out/conftest.err >&5 17339 echo "$as_me:17339: \$? = $ac_status" >&5 17340 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17341 then 17342 # The compiler can only warn and ignore the option if not recognized 17343 # So say no if there are warnings 17344 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17345 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17346 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17347 lt_cv_prog_compiler_c_o_GCJ=yes 17348 fi 17349 fi 17350 chmod u+w . 2>&5 17351 $rm conftest* 17352 # SGI C++ compiler will create directory out/ii_files/ for 17353 # template instantiation 17354 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17355 $rm out/* && rmdir out 17356 cd .. 17357 rmdir conftest 17358 $rm conftest* 17359 17360fi 17361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17362$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; } 17363 17364 17365hard_links="nottested" 17366if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17367 # do not overwrite the value of need_locks provided by the user 17368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 17369$as_echo_n "checking if we can lock with hard links... " >&6; } 17370 hard_links=yes 17371 $rm conftest* 17372 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17373 touch conftest.a 17374 ln conftest.a conftest.b 2>&5 || hard_links=no 17375 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 17377$as_echo "$hard_links" >&6; } 17378 if test "$hard_links" = no; then 17379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17380$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17381 need_locks=warn 17382 fi 17383else 17384 need_locks=no 17385fi 17386 17387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17388$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 17389 17390 runpath_var= 17391 allow_undefined_flag_GCJ= 17392 enable_shared_with_static_runtimes_GCJ=no 17393 archive_cmds_GCJ= 17394 archive_expsym_cmds_GCJ= 17395 old_archive_From_new_cmds_GCJ= 17396 old_archive_from_expsyms_cmds_GCJ= 17397 export_dynamic_flag_spec_GCJ= 17398 whole_archive_flag_spec_GCJ= 17399 thread_safe_flag_spec_GCJ= 17400 hardcode_libdir_flag_spec_GCJ= 17401 hardcode_libdir_flag_spec_ld_GCJ= 17402 hardcode_libdir_separator_GCJ= 17403 hardcode_direct_GCJ=no 17404 hardcode_minus_L_GCJ=no 17405 hardcode_shlibpath_var_GCJ=unsupported 17406 link_all_deplibs_GCJ=unknown 17407 hardcode_automatic_GCJ=no 17408 module_cmds_GCJ= 17409 module_expsym_cmds_GCJ= 17410 always_export_symbols_GCJ=no 17411 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17412 # include_expsyms should be a list of space-separated symbols to be *always* 17413 # included in the symbol list 17414 include_expsyms_GCJ= 17415 # exclude_expsyms can be an extended regexp of symbols to exclude 17416 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17417 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17418 # as well as any symbol that contains `d'. 17419 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 17420 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17421 # platforms (ab)use it in PIC code, but their linkers get confused if 17422 # the symbol is explicitly referenced. Since portable code cannot 17423 # rely on this symbol name, it's probably fine to never include it in 17424 # preloaded symbol tables. 17425 # Exclude shared library initialization/finalization symbols. 17426 extract_expsyms_cmds= 17427 # Just being paranoid about ensuring that cc_basename is set. 17428 for cc_temp in $compiler""; do 17429 case $cc_temp in 17430 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17431 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17432 \-*) ;; 17433 *) break;; 17434 esac 17435done 17436cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17437 17438 case $host_os in 17439 cygwin* | mingw* | pw32*) 17440 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17441 # When not using gcc, we currently assume that we are using 17442 # Microsoft Visual C++. 17443 if test "$GCC" != yes; then 17444 with_gnu_ld=no 17445 fi 17446 ;; 17447 interix*) 17448 # we just hope/assume this is gcc and not c89 (= MSVC++) 17449 with_gnu_ld=yes 17450 ;; 17451 openbsd*) 17452 with_gnu_ld=no 17453 ;; 17454 esac 17455 17456 ld_shlibs_GCJ=yes 17457 if test "$with_gnu_ld" = yes; then 17458 # If archive_cmds runs LD, not CC, wlarc should be empty 17459 wlarc='${wl}' 17460 17461 # Set some defaults for GNU ld with shared library support. These 17462 # are reset later if shared libraries are not supported. Putting them 17463 # here allows them to be overridden if necessary. 17464 runpath_var=LD_RUN_PATH 17465 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17466 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17467 # ancient GNU ld didn't support --whole-archive et. al. 17468 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17469 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17470 else 17471 whole_archive_flag_spec_GCJ= 17472 fi 17473 supports_anon_versioning=no 17474 case `$LD -v 2>/dev/null` in 17475 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17476 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17477 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17478 *\ 2.11.*) ;; # other 2.11 versions 17479 *) supports_anon_versioning=yes ;; 17480 esac 17481 17482 # See if GNU ld supports shared libraries. 17483 case $host_os in 17484 aix[3-9]*) 17485 # On AIX/PPC, the GNU linker is very broken 17486 if test "$host_cpu" != ia64; then 17487 ld_shlibs_GCJ=no 17488 cat <<EOF 1>&2 17489 17490*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17491*** to be unable to reliably create shared libraries on AIX. 17492*** Therefore, libtool is disabling shared libraries support. If you 17493*** really care for shared libraries, you may want to modify your PATH 17494*** so that a non-GNU linker is found, and then restart. 17495 17496EOF 17497 fi 17498 ;; 17499 17500 amigaos*) 17501 archive_cmds_GCJ='$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)' 17502 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17503 hardcode_minus_L_GCJ=yes 17504 17505 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17506 # that the semantics of dynamic libraries on AmigaOS, at least up 17507 # to version 4, is to share data among multiple programs linked 17508 # with the same dynamic library. Since this doesn't match the 17509 # behavior of shared libraries on other platforms, we can't use 17510 # them. 17511 ld_shlibs_GCJ=no 17512 ;; 17513 17514 beos*) 17515 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17516 allow_undefined_flag_GCJ=unsupported 17517 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17518 # support --undefined. This deserves some investigation. FIXME 17519 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17520 else 17521 ld_shlibs_GCJ=no 17522 fi 17523 ;; 17524 17525 cygwin* | mingw* | pw32*) 17526 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17527 # as there is no search path for DLLs. 17528 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17529 allow_undefined_flag_GCJ=unsupported 17530 always_export_symbols_GCJ=no 17531 enable_shared_with_static_runtimes_GCJ=yes 17532 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 17533 17534 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17535 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17536 # If the export-symbols file already is a .def file (1st line 17537 # is EXPORTS), use it as is; otherwise, prepend... 17538 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17539 cp $export_symbols $output_objdir/$soname.def; 17540 else 17541 echo EXPORTS > $output_objdir/$soname.def; 17542 cat $export_symbols >> $output_objdir/$soname.def; 17543 fi~ 17544 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17545 else 17546 ld_shlibs_GCJ=no 17547 fi 17548 ;; 17549 17550 interix[3-9]*) 17551 hardcode_direct_GCJ=no 17552 hardcode_shlibpath_var_GCJ=no 17553 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17554 export_dynamic_flag_spec_GCJ='${wl}-E' 17555 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17556 # Instead, shared libraries are loaded at an image base (0x10000000 by 17557 # default) and relocated if they conflict, which is a slow very memory 17558 # consuming and fragmenting process. To avoid this, we pick a random, 17559 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17560 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17561 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 17562 archive_expsym_cmds_GCJ='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' 17563 ;; 17564 17565 gnu* | linux* | k*bsd*-gnu) 17566 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17567 tmp_addflag= 17568 case $cc_basename,$host_cpu in 17569 pgcc*) # Portland Group C compiler 17570 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 17571 tmp_addflag=' $pic_flag' 17572 ;; 17573 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17574 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 17575 tmp_addflag=' $pic_flag -Mnomain' ;; 17576 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17577 tmp_addflag=' -i_dynamic' ;; 17578 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17579 tmp_addflag=' -i_dynamic -nofor_main' ;; 17580 ifc* | ifort*) # Intel Fortran compiler 17581 tmp_addflag=' -nofor_main' ;; 17582 esac 17583 case `$CC -V 2>&1 | sed 5q` in 17584 *Sun\ C*) # Sun C 5.9 17585 whole_archive_flag_spec_GCJ='${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' 17586 tmp_sharedflag='-G' ;; 17587 *Sun\ F*) # Sun Fortran 8.3 17588 tmp_sharedflag='-G' ;; 17589 *) 17590 tmp_sharedflag='-shared' ;; 17591 esac 17592 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17593 17594 if test $supports_anon_versioning = yes; then 17595 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17596 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17597 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17598 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17599 fi 17600 else 17601 ld_shlibs_GCJ=no 17602 fi 17603 ;; 17604 17605 netbsd*) 17606 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17607 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17608 wlarc= 17609 else 17610 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17611 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17612 fi 17613 ;; 17614 17615 solaris*) 17616 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17617 ld_shlibs_GCJ=no 17618 cat <<EOF 1>&2 17619 17620*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17621*** create shared libraries on Solaris systems. Therefore, libtool 17622*** is disabling shared libraries support. We urge you to upgrade GNU 17623*** binutils to release 2.9.1 or newer. Another option is to modify 17624*** your PATH or compiler configuration so that the native linker is 17625*** used, and then restart. 17626 17627EOF 17628 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17629 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17630 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17631 else 17632 ld_shlibs_GCJ=no 17633 fi 17634 ;; 17635 17636 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17637 case `$LD -v 2>&1` in 17638 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17639 ld_shlibs_GCJ=no 17640 cat <<_LT_EOF 1>&2 17641 17642*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17643*** reliably create shared libraries on SCO systems. Therefore, libtool 17644*** is disabling shared libraries support. We urge you to upgrade GNU 17645*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17646*** your PATH or compiler configuration so that the native linker is 17647*** used, and then restart. 17648 17649_LT_EOF 17650 ;; 17651 *) 17652 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17653 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17654 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17655 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17656 else 17657 ld_shlibs_GCJ=no 17658 fi 17659 ;; 17660 esac 17661 ;; 17662 17663 sunos4*) 17664 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17665 wlarc= 17666 hardcode_direct_GCJ=yes 17667 hardcode_shlibpath_var_GCJ=no 17668 ;; 17669 17670 *) 17671 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17672 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17673 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17674 else 17675 ld_shlibs_GCJ=no 17676 fi 17677 ;; 17678 esac 17679 17680 if test "$ld_shlibs_GCJ" = no; then 17681 runpath_var= 17682 hardcode_libdir_flag_spec_GCJ= 17683 export_dynamic_flag_spec_GCJ= 17684 whole_archive_flag_spec_GCJ= 17685 fi 17686 else 17687 # PORTME fill in a description of your system's linker (not GNU ld) 17688 case $host_os in 17689 aix3*) 17690 allow_undefined_flag_GCJ=unsupported 17691 always_export_symbols_GCJ=yes 17692 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 17693 # Note: this linker hardcodes the directories in LIBPATH if there 17694 # are no directories specified by -L. 17695 hardcode_minus_L_GCJ=yes 17696 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17697 # Neither direct hardcoding nor static linking is supported with a 17698 # broken collect2. 17699 hardcode_direct_GCJ=unsupported 17700 fi 17701 ;; 17702 17703 aix[4-9]*) 17704 if test "$host_cpu" = ia64; then 17705 # On IA64, the linker does run time linking by default, so we don't 17706 # have to do anything special. 17707 aix_use_runtimelinking=no 17708 exp_sym_flag='-Bexport' 17709 no_entry_flag="" 17710 else 17711 # If we're using GNU nm, then we don't want the "-C" option. 17712 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17713 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17714 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 17715 else 17716 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 17717 fi 17718 aix_use_runtimelinking=no 17719 17720 # Test if we are trying to use run time linking or normal 17721 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17722 # need to do runtime linking. 17723 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 17724 for ld_flag in $LDFLAGS; do 17725 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17726 aix_use_runtimelinking=yes 17727 break 17728 fi 17729 done 17730 ;; 17731 esac 17732 17733 exp_sym_flag='-bexport' 17734 no_entry_flag='-bnoentry' 17735 fi 17736 17737 # When large executables or shared objects are built, AIX ld can 17738 # have problems creating the table of contents. If linking a library 17739 # or program results in "error TOC overflow" add -mminimal-toc to 17740 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17741 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17742 17743 archive_cmds_GCJ='' 17744 hardcode_direct_GCJ=yes 17745 hardcode_libdir_separator_GCJ=':' 17746 link_all_deplibs_GCJ=yes 17747 17748 if test "$GCC" = yes; then 17749 case $host_os in aix4.[012]|aix4.[012].*) 17750 # We only want to do this on AIX 4.2 and lower, the check 17751 # below for broken collect2 doesn't work under 4.3+ 17752 collect2name=`${CC} -print-prog-name=collect2` 17753 if test -f "$collect2name" && \ 17754 strings "$collect2name" | grep resolve_lib_name >/dev/null 17755 then 17756 # We have reworked collect2 17757 : 17758 else 17759 # We have old collect2 17760 hardcode_direct_GCJ=unsupported 17761 # It fails to find uninstalled libraries when the uninstalled 17762 # path is not listed in the libpath. Setting hardcode_minus_L 17763 # to unsupported forces relinking 17764 hardcode_minus_L_GCJ=yes 17765 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17766 hardcode_libdir_separator_GCJ= 17767 fi 17768 ;; 17769 esac 17770 shared_flag='-shared' 17771 if test "$aix_use_runtimelinking" = yes; then 17772 shared_flag="$shared_flag "'${wl}-G' 17773 fi 17774 else 17775 # not using gcc 17776 if test "$host_cpu" = ia64; then 17777 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17778 # chokes on -Wl,-G. The following line is correct: 17779 shared_flag='-G' 17780 else 17781 if test "$aix_use_runtimelinking" = yes; then 17782 shared_flag='${wl}-G' 17783 else 17784 shared_flag='${wl}-bM:SRE' 17785 fi 17786 fi 17787 fi 17788 17789 # It seems that -bexpall does not export symbols beginning with 17790 # underscore (_), so it is better to generate a list of symbols to export. 17791 always_export_symbols_GCJ=yes 17792 if test "$aix_use_runtimelinking" = yes; then 17793 # Warning - without using the other runtime loading flags (-brtl), 17794 # -berok will link without error, but may produce a broken library. 17795 allow_undefined_flag_GCJ='-berok' 17796 # Determine the default libpath from the value encoded in an empty executable. 17797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17798/* end confdefs.h. */ 17799 17800int 17801main () 17802{ 17803 17804 ; 17805 return 0; 17806} 17807_ACEOF 17808if ac_fn_c_try_link "$LINENO"; then : 17809 17810lt_aix_libpath_sed=' 17811 /Import File Strings/,/^$/ { 17812 /^0/ { 17813 s/^0 *\(.*\)$/\1/ 17814 p 17815 } 17816 }' 17817aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17818# Check for a 64-bit object if we didn't find anything. 17819if test -z "$aix_libpath"; then 17820 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17821fi 17822fi 17823rm -f core conftest.err conftest.$ac_objext \ 17824 conftest$ac_exeext conftest.$ac_ext 17825if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17826 17827 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17828 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 17829 else 17830 if test "$host_cpu" = ia64; then 17831 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17832 allow_undefined_flag_GCJ="-z nodefs" 17833 archive_expsym_cmds_GCJ="\$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" 17834 else 17835 # Determine the default libpath from the value encoded in an empty executable. 17836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17837/* end confdefs.h. */ 17838 17839int 17840main () 17841{ 17842 17843 ; 17844 return 0; 17845} 17846_ACEOF 17847if ac_fn_c_try_link "$LINENO"; then : 17848 17849lt_aix_libpath_sed=' 17850 /Import File Strings/,/^$/ { 17851 /^0/ { 17852 s/^0 *\(.*\)$/\1/ 17853 p 17854 } 17855 }' 17856aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17857# Check for a 64-bit object if we didn't find anything. 17858if test -z "$aix_libpath"; then 17859 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17860fi 17861fi 17862rm -f core conftest.err conftest.$ac_objext \ 17863 conftest$ac_exeext conftest.$ac_ext 17864if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17865 17866 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17867 # Warning - without using the other run time loading flags, 17868 # -berok will link without error, but may produce a broken library. 17869 no_undefined_flag_GCJ=' ${wl}-bernotok' 17870 allow_undefined_flag_GCJ=' ${wl}-berok' 17871 # Exported symbols can be pulled into shared objects from archives 17872 whole_archive_flag_spec_GCJ='$convenience' 17873 archive_cmds_need_lc_GCJ=yes 17874 # This is similar to how AIX traditionally builds its shared libraries. 17875 archive_expsym_cmds_GCJ="\$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' 17876 fi 17877 fi 17878 ;; 17879 17880 amigaos*) 17881 archive_cmds_GCJ='$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)' 17882 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17883 hardcode_minus_L_GCJ=yes 17884 # see comment about different semantics on the GNU ld section 17885 ld_shlibs_GCJ=no 17886 ;; 17887 17888 bsdi[45]*) 17889 export_dynamic_flag_spec_GCJ=-rdynamic 17890 ;; 17891 17892 cygwin* | mingw* | pw32*) 17893 # When not using gcc, we currently assume that we are using 17894 # Microsoft Visual C++. 17895 # hardcode_libdir_flag_spec is actually meaningless, as there is 17896 # no search path for DLLs. 17897 hardcode_libdir_flag_spec_GCJ=' ' 17898 allow_undefined_flag_GCJ=unsupported 17899 # Tell ltmain to make .lib files, not .a files. 17900 libext=lib 17901 # Tell ltmain to make .dll files, not .so files. 17902 shrext_cmds=".dll" 17903 # FIXME: Setting linknames here is a bad hack. 17904 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17905 # The linker will automatically build a .lib file if we build a DLL. 17906 old_archive_From_new_cmds_GCJ='true' 17907 # FIXME: Should let the user specify the lib program. 17908 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' 17909 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17910 enable_shared_with_static_runtimes_GCJ=yes 17911 ;; 17912 17913 darwin* | rhapsody*) 17914 case $host_os in 17915 rhapsody* | darwin1.[012]) 17916 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17917 ;; 17918 *) # Darwin 1.3 on 17919 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17920 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17921 else 17922 case ${MACOSX_DEPLOYMENT_TARGET} in 17923 10.[012]) 17924 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17925 ;; 17926 10.*) 17927 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17928 ;; 17929 esac 17930 fi 17931 ;; 17932 esac 17933 archive_cmds_need_lc_GCJ=no 17934 hardcode_direct_GCJ=no 17935 hardcode_automatic_GCJ=yes 17936 hardcode_shlibpath_var_GCJ=unsupported 17937 whole_archive_flag_spec_GCJ='' 17938 link_all_deplibs_GCJ=yes 17939 if test "$GCC" = yes ; then 17940 output_verbose_link_cmd='echo' 17941 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 17942 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 17943 archive_expsym_cmds_GCJ="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}" 17944 module_expsym_cmds_GCJ="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}" 17945 else 17946 case $cc_basename in 17947 xlc*) 17948 output_verbose_link_cmd='echo' 17949 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 17950 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17951 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17952 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17953 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17954 ;; 17955 *) 17956 ld_shlibs_GCJ=no 17957 ;; 17958 esac 17959 fi 17960 ;; 17961 17962 dgux*) 17963 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17964 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17965 hardcode_shlibpath_var_GCJ=no 17966 ;; 17967 17968 freebsd1*) 17969 ld_shlibs_GCJ=no 17970 ;; 17971 17972 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17973 # support. Future versions do this automatically, but an explicit c++rt0.o 17974 # does not break anything, and helps significantly (at the cost of a little 17975 # extra space). 17976 freebsd2.2*) 17977 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17978 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17979 hardcode_direct_GCJ=yes 17980 hardcode_shlibpath_var_GCJ=no 17981 ;; 17982 17983 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17984 freebsd2*) 17985 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17986 hardcode_direct_GCJ=yes 17987 hardcode_minus_L_GCJ=yes 17988 hardcode_shlibpath_var_GCJ=no 17989 ;; 17990 17991 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17992 freebsd* | dragonfly*) 17993 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17994 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17995 hardcode_direct_GCJ=yes 17996 hardcode_shlibpath_var_GCJ=no 17997 ;; 17998 17999 hpux9*) 18000 if test "$GCC" = yes; then 18001 archive_cmds_GCJ='$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' 18002 else 18003 archive_cmds_GCJ='$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' 18004 fi 18005 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18006 hardcode_libdir_separator_GCJ=: 18007 hardcode_direct_GCJ=yes 18008 18009 # hardcode_minus_L: Not really in the search PATH, 18010 # but as the default location of the library. 18011 hardcode_minus_L_GCJ=yes 18012 export_dynamic_flag_spec_GCJ='${wl}-E' 18013 ;; 18014 18015 hpux10*) 18016 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18017 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18018 else 18019 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 18020 fi 18021 if test "$with_gnu_ld" = no; then 18022 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18023 hardcode_libdir_separator_GCJ=: 18024 18025 hardcode_direct_GCJ=yes 18026 export_dynamic_flag_spec_GCJ='${wl}-E' 18027 18028 # hardcode_minus_L: Not really in the search PATH, 18029 # but as the default location of the library. 18030 hardcode_minus_L_GCJ=yes 18031 fi 18032 ;; 18033 18034 hpux11*) 18035 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18036 case $host_cpu in 18037 hppa*64*) 18038 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18039 ;; 18040 ia64*) 18041 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18042 ;; 18043 *) 18044 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18045 ;; 18046 esac 18047 else 18048 case $host_cpu in 18049 hppa*64*) 18050 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18051 ;; 18052 ia64*) 18053 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18054 ;; 18055 *) 18056 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18057 ;; 18058 esac 18059 fi 18060 if test "$with_gnu_ld" = no; then 18061 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18062 hardcode_libdir_separator_GCJ=: 18063 18064 case $host_cpu in 18065 hppa*64*|ia64*) 18066 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 18067 hardcode_direct_GCJ=no 18068 hardcode_shlibpath_var_GCJ=no 18069 ;; 18070 *) 18071 hardcode_direct_GCJ=yes 18072 export_dynamic_flag_spec_GCJ='${wl}-E' 18073 18074 # hardcode_minus_L: Not really in the search PATH, 18075 # but as the default location of the library. 18076 hardcode_minus_L_GCJ=yes 18077 ;; 18078 esac 18079 fi 18080 ;; 18081 18082 irix5* | irix6* | nonstopux*) 18083 if test "$GCC" = yes; then 18084 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 18085 else 18086 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 18087 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 18088 fi 18089 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18090 hardcode_libdir_separator_GCJ=: 18091 link_all_deplibs_GCJ=yes 18092 ;; 18093 18094 netbsd*) 18095 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18096 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 18097 else 18098 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 18099 fi 18100 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18101 hardcode_direct_GCJ=yes 18102 hardcode_shlibpath_var_GCJ=no 18103 ;; 18104 18105 newsos6) 18106 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18107 hardcode_direct_GCJ=yes 18108 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18109 hardcode_libdir_separator_GCJ=: 18110 hardcode_shlibpath_var_GCJ=no 18111 ;; 18112 18113 openbsd*) 18114 if test -f /usr/libexec/ld.so; then 18115 hardcode_direct_GCJ=yes 18116 hardcode_shlibpath_var_GCJ=no 18117 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18118 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18119 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 18120 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18121 export_dynamic_flag_spec_GCJ='${wl}-E' 18122 else 18123 case $host_os in 18124 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 18125 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18126 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18127 ;; 18128 *) 18129 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18130 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18131 ;; 18132 esac 18133 fi 18134 else 18135 ld_shlibs_GCJ=no 18136 fi 18137 ;; 18138 18139 os2*) 18140 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18141 hardcode_minus_L_GCJ=yes 18142 allow_undefined_flag_GCJ=unsupported 18143 archive_cmds_GCJ='$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' 18144 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 18145 ;; 18146 18147 osf3*) 18148 if test "$GCC" = yes; then 18149 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18150 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 18151 else 18152 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18153 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 18154 fi 18155 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18156 hardcode_libdir_separator_GCJ=: 18157 ;; 18158 18159 osf4* | osf5*) # as osf3* with the addition of -msym flag 18160 if test "$GCC" = yes; then 18161 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18162 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 18163 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18164 else 18165 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18166 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 18167 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 18168 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 18169 18170 # Both c and cxx compiler support -rpath directly 18171 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 18172 fi 18173 hardcode_libdir_separator_GCJ=: 18174 ;; 18175 18176 solaris*) 18177 no_undefined_flag_GCJ=' -z text' 18178 if test "$GCC" = yes; then 18179 wlarc='${wl}' 18180 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18181 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18182 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 18183 else 18184 wlarc='' 18185 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18186 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18187 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18188 fi 18189 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18190 hardcode_shlibpath_var_GCJ=no 18191 case $host_os in 18192 solaris2.[0-5] | solaris2.[0-5].*) ;; 18193 *) 18194 # The compiler driver will combine and reorder linker options, 18195 # but understands `-z linker_flag'. GCC discards it without `$wl', 18196 # but is careful enough not to reorder. 18197 # Supported since Solaris 2.6 (maybe 2.5.1?) 18198 if test "$GCC" = yes; then 18199 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 18200 else 18201 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' 18202 fi 18203 ;; 18204 esac 18205 link_all_deplibs_GCJ=yes 18206 ;; 18207 18208 sunos4*) 18209 if test "x$host_vendor" = xsequent; then 18210 # Use $CC to link under sequent, because it throws in some extra .o 18211 # files that make .init and .fini sections work. 18212 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18213 else 18214 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18215 fi 18216 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18217 hardcode_direct_GCJ=yes 18218 hardcode_minus_L_GCJ=yes 18219 hardcode_shlibpath_var_GCJ=no 18220 ;; 18221 18222 sysv4) 18223 case $host_vendor in 18224 sni) 18225 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18226 hardcode_direct_GCJ=yes # is this really true??? 18227 ;; 18228 siemens) 18229 ## LD is ld it makes a PLAMLIB 18230 ## CC just makes a GrossModule. 18231 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18232 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18233 hardcode_direct_GCJ=no 18234 ;; 18235 motorola) 18236 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18237 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18238 ;; 18239 esac 18240 runpath_var='LD_RUN_PATH' 18241 hardcode_shlibpath_var_GCJ=no 18242 ;; 18243 18244 sysv4.3*) 18245 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18246 hardcode_shlibpath_var_GCJ=no 18247 export_dynamic_flag_spec_GCJ='-Bexport' 18248 ;; 18249 18250 sysv4*MP*) 18251 if test -d /usr/nec; then 18252 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18253 hardcode_shlibpath_var_GCJ=no 18254 runpath_var=LD_RUN_PATH 18255 hardcode_runpath_var=yes 18256 ld_shlibs_GCJ=yes 18257 fi 18258 ;; 18259 18260 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 18261 no_undefined_flag_GCJ='${wl}-z,text' 18262 archive_cmds_need_lc_GCJ=no 18263 hardcode_shlibpath_var_GCJ=no 18264 runpath_var='LD_RUN_PATH' 18265 18266 if test "$GCC" = yes; then 18267 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18268 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18269 else 18270 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18271 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18272 fi 18273 ;; 18274 18275 sysv5* | sco3.2v5* | sco5v6*) 18276 # Note: We can NOT use -z defs as we might desire, because we do not 18277 # link with -lc, and that would cause any symbols used from libc to 18278 # always be unresolved, which means just about no library would 18279 # ever link correctly. If we're not using GNU ld we use -z text 18280 # though, which does catch some bad symbols but isn't as heavy-handed 18281 # as -z defs. 18282 no_undefined_flag_GCJ='${wl}-z,text' 18283 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18284 archive_cmds_need_lc_GCJ=no 18285 hardcode_shlibpath_var_GCJ=no 18286 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18287 hardcode_libdir_separator_GCJ=':' 18288 link_all_deplibs_GCJ=yes 18289 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18290 runpath_var='LD_RUN_PATH' 18291 18292 if test "$GCC" = yes; then 18293 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18294 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18295 else 18296 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18297 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18298 fi 18299 ;; 18300 18301 uts4*) 18302 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18303 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18304 hardcode_shlibpath_var_GCJ=no 18305 ;; 18306 18307 *) 18308 ld_shlibs_GCJ=no 18309 ;; 18310 esac 18311 fi 18312 18313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5 18314$as_echo "$ld_shlibs_GCJ" >&6; } 18315test "$ld_shlibs_GCJ" = no && can_build_shared=no 18316 18317# 18318# Do we need to explicitly link libc? 18319# 18320case "x$archive_cmds_need_lc_GCJ" in 18321x|xyes) 18322 # Assume -lc should be added 18323 archive_cmds_need_lc_GCJ=yes 18324 18325 if test "$enable_shared" = yes && test "$GCC" = yes; then 18326 case $archive_cmds_GCJ in 18327 *'~'*) 18328 # FIXME: we may have to deal with multi-command sequences. 18329 ;; 18330 '$CC '*) 18331 # Test whether the compiler implicitly links with -lc since on some 18332 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18333 # to ld, don't add -lc before -lgcc. 18334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 18335$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 18336 $rm conftest* 18337 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18338 18339 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 18340 (eval $ac_compile) 2>&5 18341 ac_status=$? 18342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18343 test $ac_status = 0; } 2>conftest.err; then 18344 soname=conftest 18345 lib=conftest 18346 libobjs=conftest.$ac_objext 18347 deplibs= 18348 wl=$lt_prog_compiler_wl_GCJ 18349 pic_flag=$lt_prog_compiler_pic_GCJ 18350 compiler_flags=-v 18351 linker_flags=-v 18352 verstring= 18353 output_objdir=. 18354 libname=conftest 18355 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18356 allow_undefined_flag_GCJ= 18357 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5 18358 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18359 ac_status=$? 18360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18361 test $ac_status = 0; } 18362 then 18363 archive_cmds_need_lc_GCJ=no 18364 else 18365 archive_cmds_need_lc_GCJ=yes 18366 fi 18367 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18368 else 18369 cat conftest.err 1>&5 18370 fi 18371 $rm conftest* 18372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5 18373$as_echo "$archive_cmds_need_lc_GCJ" >&6; } 18374 ;; 18375 esac 18376 fi 18377 ;; 18378esac 18379 18380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 18381$as_echo_n "checking dynamic linker characteristics... " >&6; } 18382library_names_spec= 18383libname_spec='lib$name' 18384soname_spec= 18385shrext_cmds=".so" 18386postinstall_cmds= 18387postuninstall_cmds= 18388finish_cmds= 18389finish_eval= 18390shlibpath_var= 18391shlibpath_overrides_runpath=unknown 18392version_type=none 18393dynamic_linker="$host_os ld.so" 18394sys_lib_dlsearch_path_spec="/lib /usr/lib" 18395 18396need_lib_prefix=unknown 18397hardcode_into_libs=no 18398 18399# when you set need_version to no, make sure it does not cause -set_version 18400# flags to be left without arguments 18401need_version=unknown 18402 18403case $host_os in 18404aix3*) 18405 version_type=linux 18406 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18407 shlibpath_var=LIBPATH 18408 18409 # AIX 3 has no versioning support, so we append a major version to the name. 18410 soname_spec='${libname}${release}${shared_ext}$major' 18411 ;; 18412 18413aix[4-9]*) 18414 version_type=linux 18415 need_lib_prefix=no 18416 need_version=no 18417 hardcode_into_libs=yes 18418 if test "$host_cpu" = ia64; then 18419 # AIX 5 supports IA64 18420 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18421 shlibpath_var=LD_LIBRARY_PATH 18422 else 18423 # With GCC up to 2.95.x, collect2 would create an import file 18424 # for dependence libraries. The import file would start with 18425 # the line `#! .'. This would cause the generated library to 18426 # depend on `.', always an invalid library. This was fixed in 18427 # development snapshots of GCC prior to 3.0. 18428 case $host_os in 18429 aix4 | aix4.[01] | aix4.[01].*) 18430 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18431 echo ' yes ' 18432 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18433 : 18434 else 18435 can_build_shared=no 18436 fi 18437 ;; 18438 esac 18439 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18440 # soname into executable. Probably we can add versioning support to 18441 # collect2, so additional links can be useful in future. 18442 if test "$aix_use_runtimelinking" = yes; then 18443 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18444 # instead of lib<name>.a to let people know that these are not 18445 # typical AIX shared libraries. 18446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18447 else 18448 # We preserve .a as extension for shared libraries through AIX4.2 18449 # and later when we are not doing run time linking. 18450 library_names_spec='${libname}${release}.a $libname.a' 18451 soname_spec='${libname}${release}${shared_ext}$major' 18452 fi 18453 shlibpath_var=LIBPATH 18454 fi 18455 ;; 18456 18457amigaos*) 18458 library_names_spec='$libname.ixlibrary $libname.a' 18459 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18460 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' 18461 ;; 18462 18463beos*) 18464 library_names_spec='${libname}${shared_ext}' 18465 dynamic_linker="$host_os ld.so" 18466 shlibpath_var=LIBRARY_PATH 18467 ;; 18468 18469bsdi[45]*) 18470 version_type=linux 18471 need_version=no 18472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18473 soname_spec='${libname}${release}${shared_ext}$major' 18474 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18475 shlibpath_var=LD_LIBRARY_PATH 18476 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18477 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18478 # the default ld.so.conf also contains /usr/contrib/lib and 18479 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18480 # libtool to hard-code these into programs 18481 ;; 18482 18483cygwin* | mingw* | pw32*) 18484 version_type=windows 18485 shrext_cmds=".dll" 18486 need_version=no 18487 need_lib_prefix=no 18488 18489 case $GCC,$host_os in 18490 yes,cygwin* | yes,mingw* | yes,pw32*) 18491 library_names_spec='$libname.dll.a' 18492 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18493 postinstall_cmds='base_file=`basename \${file}`~ 18494 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18495 dldir=$destdir/`dirname \$dlpath`~ 18496 test -d \$dldir || mkdir -p \$dldir~ 18497 $install_prog $dir/$dlname \$dldir/$dlname~ 18498 chmod a+x \$dldir/$dlname' 18499 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18500 dlpath=$dir/\$dldll~ 18501 $rm \$dlpath' 18502 shlibpath_overrides_runpath=yes 18503 18504 case $host_os in 18505 cygwin*) 18506 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18507 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18508 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18509 ;; 18510 mingw*) 18511 # MinGW DLLs use traditional 'lib' prefix 18512 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18513 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18514 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18515 # It is most probably a Windows format PATH printed by 18516 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18517 # path with ; separators, and with drive letters. We can handle the 18518 # drive letters (cygwin fileutils understands them), so leave them, 18519 # especially as we might pass files found there to a mingw objdump, 18520 # which wouldn't understand a cygwinified path. Ahh. 18521 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18522 else 18523 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18524 fi 18525 ;; 18526 pw32*) 18527 # pw32 DLLs use 'pw' prefix rather than 'lib' 18528 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18529 ;; 18530 esac 18531 ;; 18532 18533 *) 18534 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18535 ;; 18536 esac 18537 dynamic_linker='Win32 ld.exe' 18538 # FIXME: first we should search . and the directory the executable is in 18539 shlibpath_var=PATH 18540 ;; 18541 18542darwin* | rhapsody*) 18543 dynamic_linker="$host_os dyld" 18544 version_type=darwin 18545 need_lib_prefix=no 18546 need_version=no 18547 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18548 soname_spec='${libname}${release}${major}$shared_ext' 18549 shlibpath_overrides_runpath=yes 18550 shlibpath_var=DYLD_LIBRARY_PATH 18551 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18552 18553 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18554 ;; 18555 18556dgux*) 18557 version_type=linux 18558 need_lib_prefix=no 18559 need_version=no 18560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18561 soname_spec='${libname}${release}${shared_ext}$major' 18562 shlibpath_var=LD_LIBRARY_PATH 18563 ;; 18564 18565freebsd1*) 18566 dynamic_linker=no 18567 ;; 18568 18569freebsd* | dragonfly*) 18570 # DragonFly does not have aout. When/if they implement a new 18571 # versioning mechanism, adjust this. 18572 if test -x /usr/bin/objformat; then 18573 objformat=`/usr/bin/objformat` 18574 else 18575 case $host_os in 18576 freebsd[123]*) objformat=aout ;; 18577 *) objformat=elf ;; 18578 esac 18579 fi 18580 version_type=freebsd-$objformat 18581 case $version_type in 18582 freebsd-elf*) 18583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18584 need_version=no 18585 need_lib_prefix=no 18586 ;; 18587 freebsd-*) 18588 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18589 need_version=yes 18590 ;; 18591 esac 18592 shlibpath_var=LD_LIBRARY_PATH 18593 case $host_os in 18594 freebsd2*) 18595 shlibpath_overrides_runpath=yes 18596 ;; 18597 freebsd3.[01]* | freebsdelf3.[01]*) 18598 shlibpath_overrides_runpath=yes 18599 hardcode_into_libs=yes 18600 ;; 18601 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18602 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18603 shlibpath_overrides_runpath=no 18604 hardcode_into_libs=yes 18605 ;; 18606 *) # from 4.6 on, and DragonFly 18607 shlibpath_overrides_runpath=yes 18608 hardcode_into_libs=yes 18609 ;; 18610 esac 18611 ;; 18612 18613gnu*) 18614 version_type=linux 18615 need_lib_prefix=no 18616 need_version=no 18617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18618 soname_spec='${libname}${release}${shared_ext}$major' 18619 shlibpath_var=LD_LIBRARY_PATH 18620 hardcode_into_libs=yes 18621 ;; 18622 18623hpux9* | hpux10* | hpux11*) 18624 # Give a soname corresponding to the major version so that dld.sl refuses to 18625 # link against other versions. 18626 version_type=sunos 18627 need_lib_prefix=no 18628 need_version=no 18629 case $host_cpu in 18630 ia64*) 18631 shrext_cmds='.so' 18632 hardcode_into_libs=yes 18633 dynamic_linker="$host_os dld.so" 18634 shlibpath_var=LD_LIBRARY_PATH 18635 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18637 soname_spec='${libname}${release}${shared_ext}$major' 18638 if test "X$HPUX_IA64_MODE" = X32; then 18639 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18640 else 18641 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18642 fi 18643 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18644 ;; 18645 hppa*64*) 18646 shrext_cmds='.sl' 18647 hardcode_into_libs=yes 18648 dynamic_linker="$host_os dld.sl" 18649 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18650 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18652 soname_spec='${libname}${release}${shared_ext}$major' 18653 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18654 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18655 ;; 18656 *) 18657 shrext_cmds='.sl' 18658 dynamic_linker="$host_os dld.sl" 18659 shlibpath_var=SHLIB_PATH 18660 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18662 soname_spec='${libname}${release}${shared_ext}$major' 18663 ;; 18664 esac 18665 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18666 postinstall_cmds='chmod 555 $lib' 18667 ;; 18668 18669interix[3-9]*) 18670 version_type=linux 18671 need_lib_prefix=no 18672 need_version=no 18673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18674 soname_spec='${libname}${release}${shared_ext}$major' 18675 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18676 shlibpath_var=LD_LIBRARY_PATH 18677 shlibpath_overrides_runpath=no 18678 hardcode_into_libs=yes 18679 ;; 18680 18681irix5* | irix6* | nonstopux*) 18682 case $host_os in 18683 nonstopux*) version_type=nonstopux ;; 18684 *) 18685 if test "$lt_cv_prog_gnu_ld" = yes; then 18686 version_type=linux 18687 else 18688 version_type=irix 18689 fi ;; 18690 esac 18691 need_lib_prefix=no 18692 need_version=no 18693 soname_spec='${libname}${release}${shared_ext}$major' 18694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18695 case $host_os in 18696 irix5* | nonstopux*) 18697 libsuff= shlibsuff= 18698 ;; 18699 *) 18700 case $LD in # libtool.m4 will add one of these switches to LD 18701 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18702 libsuff= shlibsuff= libmagic=32-bit;; 18703 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18704 libsuff=32 shlibsuff=N32 libmagic=N32;; 18705 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18706 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18707 *) libsuff= shlibsuff= libmagic=never-match;; 18708 esac 18709 ;; 18710 esac 18711 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18712 shlibpath_overrides_runpath=no 18713 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18714 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18715 hardcode_into_libs=yes 18716 ;; 18717 18718# No shared lib support for Linux oldld, aout, or coff. 18719linux*oldld* | linux*aout* | linux*coff*) 18720 dynamic_linker=no 18721 ;; 18722 18723# This must be Linux ELF. 18724linux* | k*bsd*-gnu) 18725 version_type=linux 18726 need_lib_prefix=no 18727 need_version=no 18728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18729 soname_spec='${libname}${release}${shared_ext}$major' 18730 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18731 shlibpath_var=LD_LIBRARY_PATH 18732 shlibpath_overrides_runpath=no 18733 # This implies no fast_install, which is unacceptable. 18734 # Some rework will be needed to allow for fast_install 18735 # before this can be enabled. 18736 hardcode_into_libs=yes 18737 18738 # Append ld.so.conf contents to the search path 18739 if test -f /etc/ld.so.conf; then 18740 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' ' '` 18741 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18742 fi 18743 18744 # We used to test for /lib/ld.so.1 and disable shared libraries on 18745 # powerpc, because MkLinux only supported shared libraries with the 18746 # GNU dynamic linker. Since this was broken with cross compilers, 18747 # most powerpc-linux boxes support dynamic linking these days and 18748 # people can always --disable-shared, the test was removed, and we 18749 # assume the GNU/Linux dynamic linker is in use. 18750 dynamic_linker='GNU/Linux ld.so' 18751 ;; 18752 18753netbsd*) 18754 version_type=sunos 18755 need_lib_prefix=no 18756 need_version=no 18757 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18759 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18760 dynamic_linker='NetBSD (a.out) ld.so' 18761 else 18762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18763 soname_spec='${libname}${release}${shared_ext}$major' 18764 dynamic_linker='NetBSD ld.elf_so' 18765 fi 18766 shlibpath_var=LD_LIBRARY_PATH 18767 shlibpath_overrides_runpath=yes 18768 hardcode_into_libs=yes 18769 ;; 18770 18771newsos6) 18772 version_type=linux 18773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18774 shlibpath_var=LD_LIBRARY_PATH 18775 shlibpath_overrides_runpath=yes 18776 ;; 18777 18778nto-qnx*) 18779 version_type=linux 18780 need_lib_prefix=no 18781 need_version=no 18782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18783 soname_spec='${libname}${release}${shared_ext}$major' 18784 shlibpath_var=LD_LIBRARY_PATH 18785 shlibpath_overrides_runpath=yes 18786 ;; 18787 18788openbsd*) 18789 version_type=sunos 18790 sys_lib_dlsearch_path_spec="/usr/lib" 18791 need_lib_prefix=no 18792 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18793 case $host_os in 18794 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18795 *) need_version=no ;; 18796 esac 18797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18798 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18799 shlibpath_var=LD_LIBRARY_PATH 18800 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18801 case $host_os in 18802 openbsd2.[89] | openbsd2.[89].*) 18803 shlibpath_overrides_runpath=no 18804 ;; 18805 *) 18806 shlibpath_overrides_runpath=yes 18807 ;; 18808 esac 18809 else 18810 shlibpath_overrides_runpath=yes 18811 fi 18812 ;; 18813 18814os2*) 18815 libname_spec='$name' 18816 shrext_cmds=".dll" 18817 need_lib_prefix=no 18818 library_names_spec='$libname${shared_ext} $libname.a' 18819 dynamic_linker='OS/2 ld.exe' 18820 shlibpath_var=LIBPATH 18821 ;; 18822 18823osf3* | osf4* | osf5*) 18824 version_type=osf 18825 need_lib_prefix=no 18826 need_version=no 18827 soname_spec='${libname}${release}${shared_ext}$major' 18828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18829 shlibpath_var=LD_LIBRARY_PATH 18830 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18831 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18832 ;; 18833 18834rdos*) 18835 dynamic_linker=no 18836 ;; 18837 18838solaris*) 18839 version_type=linux 18840 need_lib_prefix=no 18841 need_version=no 18842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18843 soname_spec='${libname}${release}${shared_ext}$major' 18844 shlibpath_var=LD_LIBRARY_PATH 18845 shlibpath_overrides_runpath=yes 18846 hardcode_into_libs=yes 18847 # ldd complains unless libraries are executable 18848 postinstall_cmds='chmod +x $lib' 18849 ;; 18850 18851sunos4*) 18852 version_type=sunos 18853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18854 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18855 shlibpath_var=LD_LIBRARY_PATH 18856 shlibpath_overrides_runpath=yes 18857 if test "$with_gnu_ld" = yes; then 18858 need_lib_prefix=no 18859 fi 18860 need_version=yes 18861 ;; 18862 18863sysv4 | sysv4.3*) 18864 version_type=linux 18865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18866 soname_spec='${libname}${release}${shared_ext}$major' 18867 shlibpath_var=LD_LIBRARY_PATH 18868 case $host_vendor in 18869 sni) 18870 shlibpath_overrides_runpath=no 18871 need_lib_prefix=no 18872 export_dynamic_flag_spec='${wl}-Blargedynsym' 18873 runpath_var=LD_RUN_PATH 18874 ;; 18875 siemens) 18876 need_lib_prefix=no 18877 ;; 18878 motorola) 18879 need_lib_prefix=no 18880 need_version=no 18881 shlibpath_overrides_runpath=no 18882 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18883 ;; 18884 esac 18885 ;; 18886 18887sysv4*MP*) 18888 if test -d /usr/nec ;then 18889 version_type=linux 18890 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18891 soname_spec='$libname${shared_ext}.$major' 18892 shlibpath_var=LD_LIBRARY_PATH 18893 fi 18894 ;; 18895 18896sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18897 version_type=freebsd-elf 18898 need_lib_prefix=no 18899 need_version=no 18900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18901 soname_spec='${libname}${release}${shared_ext}$major' 18902 shlibpath_var=LD_LIBRARY_PATH 18903 hardcode_into_libs=yes 18904 if test "$with_gnu_ld" = yes; then 18905 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18906 shlibpath_overrides_runpath=no 18907 else 18908 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18909 shlibpath_overrides_runpath=yes 18910 case $host_os in 18911 sco3.2v5*) 18912 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18913 ;; 18914 esac 18915 fi 18916 sys_lib_dlsearch_path_spec='/usr/lib' 18917 ;; 18918 18919uts4*) 18920 version_type=linux 18921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18922 soname_spec='${libname}${release}${shared_ext}$major' 18923 shlibpath_var=LD_LIBRARY_PATH 18924 ;; 18925 18926*) 18927 dynamic_linker=no 18928 ;; 18929esac 18930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 18931$as_echo "$dynamic_linker" >&6; } 18932test "$dynamic_linker" = no && can_build_shared=no 18933 18934if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then : 18935 $as_echo_n "(cached) " >&6 18936else 18937 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 18938fi 18939 18940sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 18941if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then : 18942 $as_echo_n "(cached) " >&6 18943else 18944 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 18945fi 18946 18947sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 18948 18949variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18950if test "$GCC" = yes; then 18951 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18952fi 18953 18954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 18955$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 18956hardcode_action_GCJ= 18957if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18958 test -n "$runpath_var_GCJ" || \ 18959 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18960 18961 # We can hardcode non-existant directories. 18962 if test "$hardcode_direct_GCJ" != no && 18963 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18964 # have to relink, otherwise we might link with an installed library 18965 # when we should be linking with a yet-to-be-installed one 18966 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18967 test "$hardcode_minus_L_GCJ" != no; then 18968 # Linking always hardcodes the temporary library directory. 18969 hardcode_action_GCJ=relink 18970 else 18971 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18972 hardcode_action_GCJ=immediate 18973 fi 18974else 18975 # We cannot hardcode anything, or else we can only hardcode existing 18976 # directories. 18977 hardcode_action_GCJ=unsupported 18978fi 18979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5 18980$as_echo "$hardcode_action_GCJ" >&6; } 18981 18982if test "$hardcode_action_GCJ" = relink; then 18983 # Fast installation is not supported 18984 enable_fast_install=no 18985elif test "$shlibpath_overrides_runpath" = yes || 18986 test "$enable_shared" = no; then 18987 # Fast installation is not necessary 18988 enable_fast_install=needless 18989fi 18990 18991 18992# The else clause should only fire when bootstrapping the 18993# libtool distribution, otherwise you forgot to ship ltmain.sh 18994# with your package, and you will get complaints that there are 18995# no rules to generate ltmain.sh. 18996if test -f "$ltmain"; then 18997 # See if we are running on zsh, and set the options which allow our commands through 18998 # without removal of \ escapes. 18999 if test -n "${ZSH_VERSION+set}" ; then 19000 setopt NO_GLOB_SUBST 19001 fi 19002 # Now quote all the things that may contain metacharacters while being 19003 # careful not to overquote the AC_SUBSTed values. We take copies of the 19004 # variables and quote the copies for generation of the libtool script. 19005 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19006 SED SHELL STRIP \ 19007 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19008 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19009 deplibs_check_method reload_flag reload_cmds need_locks \ 19010 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19011 lt_cv_sys_global_symbol_to_c_name_address \ 19012 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19013 old_postinstall_cmds old_postuninstall_cmds \ 19014 compiler_GCJ \ 19015 CC_GCJ \ 19016 LD_GCJ \ 19017 lt_prog_compiler_wl_GCJ \ 19018 lt_prog_compiler_pic_GCJ \ 19019 lt_prog_compiler_static_GCJ \ 19020 lt_prog_compiler_no_builtin_flag_GCJ \ 19021 export_dynamic_flag_spec_GCJ \ 19022 thread_safe_flag_spec_GCJ \ 19023 whole_archive_flag_spec_GCJ \ 19024 enable_shared_with_static_runtimes_GCJ \ 19025 old_archive_cmds_GCJ \ 19026 old_archive_from_new_cmds_GCJ \ 19027 predep_objects_GCJ \ 19028 postdep_objects_GCJ \ 19029 predeps_GCJ \ 19030 postdeps_GCJ \ 19031 compiler_lib_search_path_GCJ \ 19032 compiler_lib_search_dirs_GCJ \ 19033 archive_cmds_GCJ \ 19034 archive_expsym_cmds_GCJ \ 19035 postinstall_cmds_GCJ \ 19036 postuninstall_cmds_GCJ \ 19037 old_archive_from_expsyms_cmds_GCJ \ 19038 allow_undefined_flag_GCJ \ 19039 no_undefined_flag_GCJ \ 19040 export_symbols_cmds_GCJ \ 19041 hardcode_libdir_flag_spec_GCJ \ 19042 hardcode_libdir_flag_spec_ld_GCJ \ 19043 hardcode_libdir_separator_GCJ \ 19044 hardcode_automatic_GCJ \ 19045 module_cmds_GCJ \ 19046 module_expsym_cmds_GCJ \ 19047 lt_cv_prog_compiler_c_o_GCJ \ 19048 fix_srcfile_path_GCJ \ 19049 exclude_expsyms_GCJ \ 19050 include_expsyms_GCJ; do 19051 19052 case $var in 19053 old_archive_cmds_GCJ | \ 19054 old_archive_from_new_cmds_GCJ | \ 19055 archive_cmds_GCJ | \ 19056 archive_expsym_cmds_GCJ | \ 19057 module_cmds_GCJ | \ 19058 module_expsym_cmds_GCJ | \ 19059 old_archive_from_expsyms_cmds_GCJ | \ 19060 export_symbols_cmds_GCJ | \ 19061 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19062 postinstall_cmds | postuninstall_cmds | \ 19063 old_postinstall_cmds | old_postuninstall_cmds | \ 19064 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19065 # Double-quote double-evaled strings. 19066 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19067 ;; 19068 *) 19069 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19070 ;; 19071 esac 19072 done 19073 19074 case $lt_echo in 19075 *'\$0 --fallback-echo"') 19076 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19077 ;; 19078 esac 19079 19080cfgfile="$ofile" 19081 19082 cat <<__EOF__ >> "$cfgfile" 19083# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19084 19085# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19086 19087# Shell to use when invoking shell scripts. 19088SHELL=$lt_SHELL 19089 19090# Whether or not to build shared libraries. 19091build_libtool_libs=$enable_shared 19092 19093# Whether or not to build static libraries. 19094build_old_libs=$enable_static 19095 19096# Whether or not to add -lc for building shared libraries. 19097build_libtool_need_lc=$archive_cmds_need_lc_GCJ 19098 19099# Whether or not to disallow shared libs when runtime libs are static 19100allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 19101 19102# Whether or not to optimize for fast installation. 19103fast_install=$enable_fast_install 19104 19105# The host system. 19106host_alias=$host_alias 19107host=$host 19108host_os=$host_os 19109 19110# The build system. 19111build_alias=$build_alias 19112build=$build 19113build_os=$build_os 19114 19115# An echo program that does not interpret backslashes. 19116echo=$lt_echo 19117 19118# The archiver. 19119AR=$lt_AR 19120AR_FLAGS=$lt_AR_FLAGS 19121 19122# A C compiler. 19123LTCC=$lt_LTCC 19124 19125# LTCC compiler flags. 19126LTCFLAGS=$lt_LTCFLAGS 19127 19128# A language-specific compiler. 19129CC=$lt_compiler_GCJ 19130 19131# Is the compiler the GNU C compiler? 19132with_gcc=$GCC_GCJ 19133 19134# An ERE matcher. 19135EGREP=$lt_EGREP 19136 19137# The linker used to build libraries. 19138LD=$lt_LD_GCJ 19139 19140# Whether we need hard or soft links. 19141LN_S=$lt_LN_S 19142 19143# A BSD-compatible nm program. 19144NM=$lt_NM 19145 19146# A symbol stripping program 19147STRIP=$lt_STRIP 19148 19149# Used to examine libraries when file_magic_cmd begins "file" 19150MAGIC_CMD=$MAGIC_CMD 19151 19152# Used on cygwin: DLL creation program. 19153DLLTOOL="$DLLTOOL" 19154 19155# Used on cygwin: object dumper. 19156OBJDUMP="$OBJDUMP" 19157 19158# Used on cygwin: assembler. 19159AS="$AS" 19160 19161# The name of the directory that contains temporary libtool files. 19162objdir=$objdir 19163 19164# How to create reloadable object files. 19165reload_flag=$lt_reload_flag 19166reload_cmds=$lt_reload_cmds 19167 19168# How to pass a linker flag through the compiler. 19169wl=$lt_lt_prog_compiler_wl_GCJ 19170 19171# Object file suffix (normally "o"). 19172objext="$ac_objext" 19173 19174# Old archive suffix (normally "a"). 19175libext="$libext" 19176 19177# Shared library suffix (normally ".so"). 19178shrext_cmds='$shrext_cmds' 19179 19180# Executable file suffix (normally ""). 19181exeext="$exeext" 19182 19183# Additional compiler flags for building library objects. 19184pic_flag=$lt_lt_prog_compiler_pic_GCJ 19185pic_mode=$pic_mode 19186 19187# What is the maximum length of a command? 19188max_cmd_len=$lt_cv_sys_max_cmd_len 19189 19190# Does compiler simultaneously support -c and -o options? 19191compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19192 19193# Must we lock files when doing compilation? 19194need_locks=$lt_need_locks 19195 19196# Do we need the lib prefix for modules? 19197need_lib_prefix=$need_lib_prefix 19198 19199# Do we need a version for libraries? 19200need_version=$need_version 19201 19202# Whether dlopen is supported. 19203dlopen_support=$enable_dlopen 19204 19205# Whether dlopen of programs is supported. 19206dlopen_self=$enable_dlopen_self 19207 19208# Whether dlopen of statically linked programs is supported. 19209dlopen_self_static=$enable_dlopen_self_static 19210 19211# Compiler flag to prevent dynamic linking. 19212link_static_flag=$lt_lt_prog_compiler_static_GCJ 19213 19214# Compiler flag to turn off builtin functions. 19215no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19216 19217# Compiler flag to allow reflexive dlopens. 19218export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19219 19220# Compiler flag to generate shared objects directly from archives. 19221whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19222 19223# Compiler flag to generate thread-safe objects. 19224thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19225 19226# Library versioning type. 19227version_type=$version_type 19228 19229# Format of library name prefix. 19230libname_spec=$lt_libname_spec 19231 19232# List of archive names. First name is the real one, the rest are links. 19233# The last name is the one that the linker finds with -lNAME. 19234library_names_spec=$lt_library_names_spec 19235 19236# The coded name of the library, if different from the real name. 19237soname_spec=$lt_soname_spec 19238 19239# Commands used to build and install an old-style archive. 19240RANLIB=$lt_RANLIB 19241old_archive_cmds=$lt_old_archive_cmds_GCJ 19242old_postinstall_cmds=$lt_old_postinstall_cmds 19243old_postuninstall_cmds=$lt_old_postuninstall_cmds 19244 19245# Create an old-style archive from a shared archive. 19246old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19247 19248# Create a temporary old-style archive to link instead of a shared archive. 19249old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19250 19251# Commands used to build and install a shared archive. 19252archive_cmds=$lt_archive_cmds_GCJ 19253archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19254postinstall_cmds=$lt_postinstall_cmds 19255postuninstall_cmds=$lt_postuninstall_cmds 19256 19257# Commands used to build a loadable module (assumed same as above if empty) 19258module_cmds=$lt_module_cmds_GCJ 19259module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19260 19261# Commands to strip libraries. 19262old_striplib=$lt_old_striplib 19263striplib=$lt_striplib 19264 19265# Dependencies to place before the objects being linked to create a 19266# shared library. 19267predep_objects=$lt_predep_objects_GCJ 19268 19269# Dependencies to place after the objects being linked to create a 19270# shared library. 19271postdep_objects=$lt_postdep_objects_GCJ 19272 19273# Dependencies to place before the objects being linked to create a 19274# shared library. 19275predeps=$lt_predeps_GCJ 19276 19277# Dependencies to place after the objects being linked to create a 19278# shared library. 19279postdeps=$lt_postdeps_GCJ 19280 19281# The directories searched by this compiler when creating a shared 19282# library 19283compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ 19284 19285# The library search path used internally by the compiler when linking 19286# a shared library. 19287compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19288 19289# Method to check whether dependent libraries are shared objects. 19290deplibs_check_method=$lt_deplibs_check_method 19291 19292# Command to use when deplibs_check_method == file_magic. 19293file_magic_cmd=$lt_file_magic_cmd 19294 19295# Flag that allows shared libraries with undefined symbols to be built. 19296allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19297 19298# Flag that forces no undefined symbols. 19299no_undefined_flag=$lt_no_undefined_flag_GCJ 19300 19301# Commands used to finish a libtool library installation in a directory. 19302finish_cmds=$lt_finish_cmds 19303 19304# Same as above, but a single script fragment to be evaled but not shown. 19305finish_eval=$lt_finish_eval 19306 19307# Take the output of nm and produce a listing of raw symbols and C names. 19308global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19309 19310# Transform the output of nm in a proper C declaration 19311global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19312 19313# Transform the output of nm in a C name address pair 19314global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19315 19316# This is the shared library runtime path variable. 19317runpath_var=$runpath_var 19318 19319# This is the shared library path variable. 19320shlibpath_var=$shlibpath_var 19321 19322# Is shlibpath searched before the hard-coded library search path? 19323shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19324 19325# How to hardcode a shared library path into an executable. 19326hardcode_action=$hardcode_action_GCJ 19327 19328# Whether we should hardcode library paths into libraries. 19329hardcode_into_libs=$hardcode_into_libs 19330 19331# Flag to hardcode \$libdir into a binary during linking. 19332# This must work even if \$libdir does not exist. 19333hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19334 19335# If ld is used when linking, flag to hardcode \$libdir into 19336# a binary during linking. This must work even if \$libdir does 19337# not exist. 19338hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19339 19340# Whether we need a single -rpath flag with a separated argument. 19341hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19342 19343# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19344# resulting binary. 19345hardcode_direct=$hardcode_direct_GCJ 19346 19347# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19348# resulting binary. 19349hardcode_minus_L=$hardcode_minus_L_GCJ 19350 19351# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19352# the resulting binary. 19353hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19354 19355# Set to yes if building a shared library automatically hardcodes DIR into the library 19356# and all subsequent libraries and executables linked against it. 19357hardcode_automatic=$hardcode_automatic_GCJ 19358 19359# Variables whose values should be saved in libtool wrapper scripts and 19360# restored at relink time. 19361variables_saved_for_relink="$variables_saved_for_relink" 19362 19363# Whether libtool must link a program against all its dependency libraries. 19364link_all_deplibs=$link_all_deplibs_GCJ 19365 19366# Compile-time system search path for libraries 19367sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19368 19369# Run-time system search path for libraries 19370sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19371 19372# Fix the shell variable \$srcfile for the compiler. 19373fix_srcfile_path=$lt_fix_srcfile_path 19374 19375# Set to yes if exported symbols are required. 19376always_export_symbols=$always_export_symbols_GCJ 19377 19378# The commands to list exported symbols. 19379export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19380 19381# The commands to extract the exported symbol list from a shared archive. 19382extract_expsyms_cmds=$lt_extract_expsyms_cmds 19383 19384# Symbols that should not be listed in the preloaded symbols. 19385exclude_expsyms=$lt_exclude_expsyms_GCJ 19386 19387# Symbols that must always be exported. 19388include_expsyms=$lt_include_expsyms_GCJ 19389 19390# ### END LIBTOOL TAG CONFIG: $tagname 19391 19392__EOF__ 19393 19394 19395else 19396 # If there is no Makefile yet, we rely on a make rule to execute 19397 # `config.status --recheck' to rerun these tests and create the 19398 # libtool script then. 19399 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19400 if test -f "$ltmain_in"; then 19401 test -f Makefile && make "$ltmain" 19402 fi 19403fi 19404 19405 19406ac_ext=c 19407ac_cpp='$CPP $CPPFLAGS' 19408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19410ac_compiler_gnu=$ac_cv_c_compiler_gnu 19411 19412CC="$lt_save_CC" 19413 19414 else 19415 tagname="" 19416 fi 19417 ;; 19418 19419 RC) 19420 19421 19422# Source file extension for RC test sources. 19423ac_ext=rc 19424 19425# Object file extension for compiled RC test sources. 19426objext=o 19427objext_RC=$objext 19428 19429# Code to be used in simple compile tests 19430lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 19431 19432# Code to be used in simple link tests 19433lt_simple_link_test_code="$lt_simple_compile_test_code" 19434 19435# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19436 19437# If no C compiler was specified, use CC. 19438LTCC=${LTCC-"$CC"} 19439 19440# If no C compiler flags were specified, use CFLAGS. 19441LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19442 19443# Allow CC to be a program name with arguments. 19444compiler=$CC 19445 19446 19447# save warnings/boilerplate of simple test code 19448ac_outfile=conftest.$ac_objext 19449echo "$lt_simple_compile_test_code" >conftest.$ac_ext 19450eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19451_lt_compiler_boilerplate=`cat conftest.err` 19452$rm conftest* 19453 19454ac_outfile=conftest.$ac_objext 19455echo "$lt_simple_link_test_code" >conftest.$ac_ext 19456eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19457_lt_linker_boilerplate=`cat conftest.err` 19458$rm -r conftest* 19459 19460 19461# Allow CC to be a program name with arguments. 19462lt_save_CC="$CC" 19463CC=${RC-"windres"} 19464compiler=$CC 19465compiler_RC=$CC 19466for cc_temp in $compiler""; do 19467 case $cc_temp in 19468 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19469 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19470 \-*) ;; 19471 *) break;; 19472 esac 19473done 19474cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19475 19476lt_cv_prog_compiler_c_o_RC=yes 19477 19478# The else clause should only fire when bootstrapping the 19479# libtool distribution, otherwise you forgot to ship ltmain.sh 19480# with your package, and you will get complaints that there are 19481# no rules to generate ltmain.sh. 19482if test -f "$ltmain"; then 19483 # See if we are running on zsh, and set the options which allow our commands through 19484 # without removal of \ escapes. 19485 if test -n "${ZSH_VERSION+set}" ; then 19486 setopt NO_GLOB_SUBST 19487 fi 19488 # Now quote all the things that may contain metacharacters while being 19489 # careful not to overquote the AC_SUBSTed values. We take copies of the 19490 # variables and quote the copies for generation of the libtool script. 19491 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19492 SED SHELL STRIP \ 19493 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19494 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19495 deplibs_check_method reload_flag reload_cmds need_locks \ 19496 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19497 lt_cv_sys_global_symbol_to_c_name_address \ 19498 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19499 old_postinstall_cmds old_postuninstall_cmds \ 19500 compiler_RC \ 19501 CC_RC \ 19502 LD_RC \ 19503 lt_prog_compiler_wl_RC \ 19504 lt_prog_compiler_pic_RC \ 19505 lt_prog_compiler_static_RC \ 19506 lt_prog_compiler_no_builtin_flag_RC \ 19507 export_dynamic_flag_spec_RC \ 19508 thread_safe_flag_spec_RC \ 19509 whole_archive_flag_spec_RC \ 19510 enable_shared_with_static_runtimes_RC \ 19511 old_archive_cmds_RC \ 19512 old_archive_from_new_cmds_RC \ 19513 predep_objects_RC \ 19514 postdep_objects_RC \ 19515 predeps_RC \ 19516 postdeps_RC \ 19517 compiler_lib_search_path_RC \ 19518 compiler_lib_search_dirs_RC \ 19519 archive_cmds_RC \ 19520 archive_expsym_cmds_RC \ 19521 postinstall_cmds_RC \ 19522 postuninstall_cmds_RC \ 19523 old_archive_from_expsyms_cmds_RC \ 19524 allow_undefined_flag_RC \ 19525 no_undefined_flag_RC \ 19526 export_symbols_cmds_RC \ 19527 hardcode_libdir_flag_spec_RC \ 19528 hardcode_libdir_flag_spec_ld_RC \ 19529 hardcode_libdir_separator_RC \ 19530 hardcode_automatic_RC \ 19531 module_cmds_RC \ 19532 module_expsym_cmds_RC \ 19533 lt_cv_prog_compiler_c_o_RC \ 19534 fix_srcfile_path_RC \ 19535 exclude_expsyms_RC \ 19536 include_expsyms_RC; do 19537 19538 case $var in 19539 old_archive_cmds_RC | \ 19540 old_archive_from_new_cmds_RC | \ 19541 archive_cmds_RC | \ 19542 archive_expsym_cmds_RC | \ 19543 module_cmds_RC | \ 19544 module_expsym_cmds_RC | \ 19545 old_archive_from_expsyms_cmds_RC | \ 19546 export_symbols_cmds_RC | \ 19547 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19548 postinstall_cmds | postuninstall_cmds | \ 19549 old_postinstall_cmds | old_postuninstall_cmds | \ 19550 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19551 # Double-quote double-evaled strings. 19552 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19553 ;; 19554 *) 19555 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19556 ;; 19557 esac 19558 done 19559 19560 case $lt_echo in 19561 *'\$0 --fallback-echo"') 19562 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19563 ;; 19564 esac 19565 19566cfgfile="$ofile" 19567 19568 cat <<__EOF__ >> "$cfgfile" 19569# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19570 19571# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19572 19573# Shell to use when invoking shell scripts. 19574SHELL=$lt_SHELL 19575 19576# Whether or not to build shared libraries. 19577build_libtool_libs=$enable_shared 19578 19579# Whether or not to build static libraries. 19580build_old_libs=$enable_static 19581 19582# Whether or not to add -lc for building shared libraries. 19583build_libtool_need_lc=$archive_cmds_need_lc_RC 19584 19585# Whether or not to disallow shared libs when runtime libs are static 19586allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19587 19588# Whether or not to optimize for fast installation. 19589fast_install=$enable_fast_install 19590 19591# The host system. 19592host_alias=$host_alias 19593host=$host 19594host_os=$host_os 19595 19596# The build system. 19597build_alias=$build_alias 19598build=$build 19599build_os=$build_os 19600 19601# An echo program that does not interpret backslashes. 19602echo=$lt_echo 19603 19604# The archiver. 19605AR=$lt_AR 19606AR_FLAGS=$lt_AR_FLAGS 19607 19608# A C compiler. 19609LTCC=$lt_LTCC 19610 19611# LTCC compiler flags. 19612LTCFLAGS=$lt_LTCFLAGS 19613 19614# A language-specific compiler. 19615CC=$lt_compiler_RC 19616 19617# Is the compiler the GNU C compiler? 19618with_gcc=$GCC_RC 19619 19620# An ERE matcher. 19621EGREP=$lt_EGREP 19622 19623# The linker used to build libraries. 19624LD=$lt_LD_RC 19625 19626# Whether we need hard or soft links. 19627LN_S=$lt_LN_S 19628 19629# A BSD-compatible nm program. 19630NM=$lt_NM 19631 19632# A symbol stripping program 19633STRIP=$lt_STRIP 19634 19635# Used to examine libraries when file_magic_cmd begins "file" 19636MAGIC_CMD=$MAGIC_CMD 19637 19638# Used on cygwin: DLL creation program. 19639DLLTOOL="$DLLTOOL" 19640 19641# Used on cygwin: object dumper. 19642OBJDUMP="$OBJDUMP" 19643 19644# Used on cygwin: assembler. 19645AS="$AS" 19646 19647# The name of the directory that contains temporary libtool files. 19648objdir=$objdir 19649 19650# How to create reloadable object files. 19651reload_flag=$lt_reload_flag 19652reload_cmds=$lt_reload_cmds 19653 19654# How to pass a linker flag through the compiler. 19655wl=$lt_lt_prog_compiler_wl_RC 19656 19657# Object file suffix (normally "o"). 19658objext="$ac_objext" 19659 19660# Old archive suffix (normally "a"). 19661libext="$libext" 19662 19663# Shared library suffix (normally ".so"). 19664shrext_cmds='$shrext_cmds' 19665 19666# Executable file suffix (normally ""). 19667exeext="$exeext" 19668 19669# Additional compiler flags for building library objects. 19670pic_flag=$lt_lt_prog_compiler_pic_RC 19671pic_mode=$pic_mode 19672 19673# What is the maximum length of a command? 19674max_cmd_len=$lt_cv_sys_max_cmd_len 19675 19676# Does compiler simultaneously support -c and -o options? 19677compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19678 19679# Must we lock files when doing compilation? 19680need_locks=$lt_need_locks 19681 19682# Do we need the lib prefix for modules? 19683need_lib_prefix=$need_lib_prefix 19684 19685# Do we need a version for libraries? 19686need_version=$need_version 19687 19688# Whether dlopen is supported. 19689dlopen_support=$enable_dlopen 19690 19691# Whether dlopen of programs is supported. 19692dlopen_self=$enable_dlopen_self 19693 19694# Whether dlopen of statically linked programs is supported. 19695dlopen_self_static=$enable_dlopen_self_static 19696 19697# Compiler flag to prevent dynamic linking. 19698link_static_flag=$lt_lt_prog_compiler_static_RC 19699 19700# Compiler flag to turn off builtin functions. 19701no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19702 19703# Compiler flag to allow reflexive dlopens. 19704export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19705 19706# Compiler flag to generate shared objects directly from archives. 19707whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19708 19709# Compiler flag to generate thread-safe objects. 19710thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19711 19712# Library versioning type. 19713version_type=$version_type 19714 19715# Format of library name prefix. 19716libname_spec=$lt_libname_spec 19717 19718# List of archive names. First name is the real one, the rest are links. 19719# The last name is the one that the linker finds with -lNAME. 19720library_names_spec=$lt_library_names_spec 19721 19722# The coded name of the library, if different from the real name. 19723soname_spec=$lt_soname_spec 19724 19725# Commands used to build and install an old-style archive. 19726RANLIB=$lt_RANLIB 19727old_archive_cmds=$lt_old_archive_cmds_RC 19728old_postinstall_cmds=$lt_old_postinstall_cmds 19729old_postuninstall_cmds=$lt_old_postuninstall_cmds 19730 19731# Create an old-style archive from a shared archive. 19732old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19733 19734# Create a temporary old-style archive to link instead of a shared archive. 19735old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19736 19737# Commands used to build and install a shared archive. 19738archive_cmds=$lt_archive_cmds_RC 19739archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19740postinstall_cmds=$lt_postinstall_cmds 19741postuninstall_cmds=$lt_postuninstall_cmds 19742 19743# Commands used to build a loadable module (assumed same as above if empty) 19744module_cmds=$lt_module_cmds_RC 19745module_expsym_cmds=$lt_module_expsym_cmds_RC 19746 19747# Commands to strip libraries. 19748old_striplib=$lt_old_striplib 19749striplib=$lt_striplib 19750 19751# Dependencies to place before the objects being linked to create a 19752# shared library. 19753predep_objects=$lt_predep_objects_RC 19754 19755# Dependencies to place after the objects being linked to create a 19756# shared library. 19757postdep_objects=$lt_postdep_objects_RC 19758 19759# Dependencies to place before the objects being linked to create a 19760# shared library. 19761predeps=$lt_predeps_RC 19762 19763# Dependencies to place after the objects being linked to create a 19764# shared library. 19765postdeps=$lt_postdeps_RC 19766 19767# The directories searched by this compiler when creating a shared 19768# library 19769compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC 19770 19771# The library search path used internally by the compiler when linking 19772# a shared library. 19773compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19774 19775# Method to check whether dependent libraries are shared objects. 19776deplibs_check_method=$lt_deplibs_check_method 19777 19778# Command to use when deplibs_check_method == file_magic. 19779file_magic_cmd=$lt_file_magic_cmd 19780 19781# Flag that allows shared libraries with undefined symbols to be built. 19782allow_undefined_flag=$lt_allow_undefined_flag_RC 19783 19784# Flag that forces no undefined symbols. 19785no_undefined_flag=$lt_no_undefined_flag_RC 19786 19787# Commands used to finish a libtool library installation in a directory. 19788finish_cmds=$lt_finish_cmds 19789 19790# Same as above, but a single script fragment to be evaled but not shown. 19791finish_eval=$lt_finish_eval 19792 19793# Take the output of nm and produce a listing of raw symbols and C names. 19794global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19795 19796# Transform the output of nm in a proper C declaration 19797global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19798 19799# Transform the output of nm in a C name address pair 19800global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19801 19802# This is the shared library runtime path variable. 19803runpath_var=$runpath_var 19804 19805# This is the shared library path variable. 19806shlibpath_var=$shlibpath_var 19807 19808# Is shlibpath searched before the hard-coded library search path? 19809shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19810 19811# How to hardcode a shared library path into an executable. 19812hardcode_action=$hardcode_action_RC 19813 19814# Whether we should hardcode library paths into libraries. 19815hardcode_into_libs=$hardcode_into_libs 19816 19817# Flag to hardcode \$libdir into a binary during linking. 19818# This must work even if \$libdir does not exist. 19819hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19820 19821# If ld is used when linking, flag to hardcode \$libdir into 19822# a binary during linking. This must work even if \$libdir does 19823# not exist. 19824hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19825 19826# Whether we need a single -rpath flag with a separated argument. 19827hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19828 19829# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19830# resulting binary. 19831hardcode_direct=$hardcode_direct_RC 19832 19833# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19834# resulting binary. 19835hardcode_minus_L=$hardcode_minus_L_RC 19836 19837# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19838# the resulting binary. 19839hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19840 19841# Set to yes if building a shared library automatically hardcodes DIR into the library 19842# and all subsequent libraries and executables linked against it. 19843hardcode_automatic=$hardcode_automatic_RC 19844 19845# Variables whose values should be saved in libtool wrapper scripts and 19846# restored at relink time. 19847variables_saved_for_relink="$variables_saved_for_relink" 19848 19849# Whether libtool must link a program against all its dependency libraries. 19850link_all_deplibs=$link_all_deplibs_RC 19851 19852# Compile-time system search path for libraries 19853sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19854 19855# Run-time system search path for libraries 19856sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19857 19858# Fix the shell variable \$srcfile for the compiler. 19859fix_srcfile_path=$lt_fix_srcfile_path 19860 19861# Set to yes if exported symbols are required. 19862always_export_symbols=$always_export_symbols_RC 19863 19864# The commands to list exported symbols. 19865export_symbols_cmds=$lt_export_symbols_cmds_RC 19866 19867# The commands to extract the exported symbol list from a shared archive. 19868extract_expsyms_cmds=$lt_extract_expsyms_cmds 19869 19870# Symbols that should not be listed in the preloaded symbols. 19871exclude_expsyms=$lt_exclude_expsyms_RC 19872 19873# Symbols that must always be exported. 19874include_expsyms=$lt_include_expsyms_RC 19875 19876# ### END LIBTOOL TAG CONFIG: $tagname 19877 19878__EOF__ 19879 19880 19881else 19882 # If there is no Makefile yet, we rely on a make rule to execute 19883 # `config.status --recheck' to rerun these tests and create the 19884 # libtool script then. 19885 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19886 if test -f "$ltmain_in"; then 19887 test -f Makefile && make "$ltmain" 19888 fi 19889fi 19890 19891 19892ac_ext=c 19893ac_cpp='$CPP $CPPFLAGS' 19894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19896ac_compiler_gnu=$ac_cv_c_compiler_gnu 19897 19898CC="$lt_save_CC" 19899 19900 ;; 19901 19902 *) 19903 as_fn_error "Unsupported tag name: $tagname" "$LINENO" 5 19904 ;; 19905 esac 19906 19907 # Append the new tag name to the list of available tags. 19908 if test -n "$tagname" ; then 19909 available_tags="$available_tags $tagname" 19910 fi 19911 fi 19912 done 19913 IFS="$lt_save_ifs" 19914 19915 # Now substitute the updated list of available tags. 19916 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19917 mv "${ofile}T" "$ofile" 19918 chmod +x "$ofile" 19919 else 19920 rm -f "${ofile}T" 19921 as_fn_error "unable to update list of available tagged configurations." "$LINENO" 5 19922 fi 19923fi 19924 19925 19926 19927# This can be used to rebuild libtool when needed 19928LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19929 19930# Always use our own libtool. 19931LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19932 19933# Prevent multiple expansion 19934 19935 19936 19937 19938 19939 19940 19941 19942 19943 19944 19945 19946 19947 19948 19949 19950 19951 19952 19953 19954 19955 19956# dolt, a replacement for libtool 19957# Josh Triplett <josh@freedesktop.org> 19958# Extract the first word of "bash", so it can be a program name with args. 19959set dummy bash; ac_word=$2 19960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19961$as_echo_n "checking for $ac_word... " >&6; } 19962if test "${ac_cv_path_DOLT_BASH+set}" = set; then : 19963 $as_echo_n "(cached) " >&6 19964else 19965 case $DOLT_BASH in 19966 [\\/]* | ?:[\\/]*) 19967 ac_cv_path_DOLT_BASH="$DOLT_BASH" # Let the user override the test with a path. 19968 ;; 19969 *) 19970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19971for as_dir in $PATH 19972do 19973 IFS=$as_save_IFS 19974 test -z "$as_dir" && as_dir=. 19975 for ac_exec_ext in '' $ac_executable_extensions; do 19976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 19977 ac_cv_path_DOLT_BASH="$as_dir/$ac_word$ac_exec_ext" 19978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19979 break 2 19980 fi 19981done 19982 done 19983IFS=$as_save_IFS 19984 19985 ;; 19986esac 19987fi 19988DOLT_BASH=$ac_cv_path_DOLT_BASH 19989if test -n "$DOLT_BASH"; then 19990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOLT_BASH" >&5 19991$as_echo "$DOLT_BASH" >&6; } 19992else 19993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19994$as_echo "no" >&6; } 19995fi 19996 19997 19998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if dolt supports this host" >&5 19999$as_echo_n "checking if dolt supports this host... " >&6; } 20000dolt_supported=yes 20001if test x$DOLT_BASH = x; then 20002 dolt_supported=no 20003fi 20004if test x$GCC != xyes; then 20005 dolt_supported=no 20006fi 20007case $host in 20008i?86-*-linux*|x86_64-*-linux*|powerpc-*-linux* \ 20009|amd64-*-freebsd*|i?86-*-freebsd*|ia64-*-freebsd*) 20010 pic_options='-fPIC' 20011 ;; 20012i?86-pc-cygwin*) 20013 pic_options='-DDLL_EXPORT' 20014 ;; 20015i?86-apple-darwin*) 20016 pic_options='-fno-common' 20017 ;; 20018*) 20019 dolt_supported=no 20020 ;; 20021esac 20022if test x$dolt_supported = xno ; then 20023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, falling back to libtool" >&5 20024$as_echo "no, falling back to libtool" >&6; } 20025 LTCOMPILE='$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(COMPILE)' 20026 LTCXXCOMPILE='$(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXXCOMPILE)' 20027else 20028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, replacing libtool" >&5 20029$as_echo "yes, replacing libtool" >&6; } 20030 20031 cat <<__DOLTCOMPILE__EOF__ >doltcompile 20032#!$DOLT_BASH 20033__DOLTCOMPILE__EOF__ 20034 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 20035args=("$@") 20036for ((arg=0; arg<${#args[@]}; arg++)) ; do 20037 if test x"${args[$arg]}" = x-o ; then 20038 objarg=$((arg+1)) 20039 break 20040 fi 20041done 20042if test x$objarg = x ; then 20043 echo 'Error: no -o on compiler command line' 1>&2 20044 exit 1 20045fi 20046lo="${args[$objarg]}" 20047obj="${lo%.lo}" 20048if test x"$lo" = x"$obj" ; then 20049 echo "Error: libtool object file name \"$lo\" does not end in .lo" 1>&2 20050 exit 1 20051fi 20052objbase="${obj##*/}" 20053__DOLTCOMPILE__EOF__ 20054 20055 if test x$enable_shared = xyes; then 20056 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 20057libobjdir="${obj%$objbase}.libs" 20058if test ! -d "$libobjdir" ; then 20059 mkdir_out="$(mkdir "$libobjdir" 2>&1)" 20060 mkdir_ret=$? 20061 if test "$mkdir_ret" -ne 0 && test ! -d "$libobjdir" ; then 20062 echo "$mkdir_out" 1>&2 20063 exit $mkdir_ret 20064 fi 20065fi 20066pic_object="$libobjdir/$objbase.o" 20067args[$objarg]="$pic_object" 20068__DOLTCOMPILE__EOF__ 20069 cat <<__DOLTCOMPILE__EOF__ >>doltcompile 20070"\${args[@]}" $pic_options -DPIC || exit \$? 20071__DOLTCOMPILE__EOF__ 20072 fi 20073 20074 if test x$enable_static = xyes; then 20075 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 20076non_pic_object="$obj.o" 20077args[$objarg]="$non_pic_object" 20078__DOLTCOMPILE__EOF__ 20079 if test x$enable_shared = xyes; then 20080 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 20081"${args[@]}" >/dev/null 2>&1 || exit $? 20082__DOLTCOMPILE__EOF__ 20083 else 20084 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 20085"${args[@]}" || exit $? 20086__DOLTCOMPILE__EOF__ 20087 fi 20088 fi 20089 20090 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 20091{ 20092echo "# $lo - a libtool object file" 20093echo "# Generated by doltcompile, not libtool" 20094__DOLTCOMPILE__EOF__ 20095 20096 if test x$enable_shared = xyes; then 20097 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 20098echo "pic_object='.libs/${objbase}.o'" 20099__DOLTCOMPILE__EOF__ 20100 else 20101 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 20102echo pic_object=none 20103__DOLTCOMPILE__EOF__ 20104 fi 20105 20106 if test x$enable_static = xyes; then 20107 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 20108echo "non_pic_object='${objbase}.o'" 20109__DOLTCOMPILE__EOF__ 20110 else 20111 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 20112echo non_pic_object=none 20113__DOLTCOMPILE__EOF__ 20114 fi 20115 20116 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile 20117} > "$lo" 20118__DOLTCOMPILE__EOF__ 20119 20120 chmod +x doltcompile 20121 LTCOMPILE='$(top_builddir)/doltcompile $(COMPILE)' 20122 LTCXXCOMPILE='$(top_builddir)/doltcompile $(CXXCOMPILE)' 20123 20124 cat <<__DOLTLIBTOOL__EOF__ > doltlibtool 20125#!$DOLT_BASH 20126__DOLTLIBTOOL__EOF__ 20127 cat <<'__DOLTLIBTOOL__EOF__' >>doltlibtool 20128top_builddir_slash="${0%%doltlibtool}" 20129: ${top_builddir_slash:=./} 20130args=() 20131modeok=false 20132tagok=false 20133for arg in "$@"; do 20134 case "$arg" in 20135 --mode=compile) modeok=true ;; 20136 --tag=CC|--tag=CXX) tagok=true ;; 20137 *) args[${#args[@]}]="$arg" ;; 20138 esac 20139done 20140if $modeok && $tagok ; then 20141 . ${top_builddir_slash}doltcompile "${args[@]}" 20142else 20143 exec ${top_builddir_slash}libtool "$@" 20144fi 20145__DOLTLIBTOOL__EOF__ 20146 20147 chmod +x doltlibtool 20148 LIBTOOL='$(top_builddir)/doltlibtool' 20149fi 20150 20151 20152# end dolt 20153 20154ac_ext=c 20155ac_cpp='$CPP $CPPFLAGS' 20156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20158ac_compiler_gnu=$ac_cv_c_compiler_gnu 20159if test -n "$ac_tool_prefix"; then 20160 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 20161set dummy ${ac_tool_prefix}gcc; ac_word=$2 20162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20163$as_echo_n "checking for $ac_word... " >&6; } 20164if test "${ac_cv_prog_CC+set}" = set; then : 20165 $as_echo_n "(cached) " >&6 20166else 20167 if test -n "$CC"; then 20168 ac_cv_prog_CC="$CC" # Let the user override the test. 20169else 20170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20171for as_dir in $PATH 20172do 20173 IFS=$as_save_IFS 20174 test -z "$as_dir" && as_dir=. 20175 for ac_exec_ext in '' $ac_executable_extensions; do 20176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20177 ac_cv_prog_CC="${ac_tool_prefix}gcc" 20178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20179 break 2 20180 fi 20181done 20182 done 20183IFS=$as_save_IFS 20184 20185fi 20186fi 20187CC=$ac_cv_prog_CC 20188if test -n "$CC"; then 20189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 20190$as_echo "$CC" >&6; } 20191else 20192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20193$as_echo "no" >&6; } 20194fi 20195 20196 20197fi 20198if test -z "$ac_cv_prog_CC"; then 20199 ac_ct_CC=$CC 20200 # Extract the first word of "gcc", so it can be a program name with args. 20201set dummy gcc; ac_word=$2 20202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20203$as_echo_n "checking for $ac_word... " >&6; } 20204if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 20205 $as_echo_n "(cached) " >&6 20206else 20207 if test -n "$ac_ct_CC"; then 20208 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 20209else 20210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20211for as_dir in $PATH 20212do 20213 IFS=$as_save_IFS 20214 test -z "$as_dir" && as_dir=. 20215 for ac_exec_ext in '' $ac_executable_extensions; do 20216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20217 ac_cv_prog_ac_ct_CC="gcc" 20218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20219 break 2 20220 fi 20221done 20222 done 20223IFS=$as_save_IFS 20224 20225fi 20226fi 20227ac_ct_CC=$ac_cv_prog_ac_ct_CC 20228if test -n "$ac_ct_CC"; then 20229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 20230$as_echo "$ac_ct_CC" >&6; } 20231else 20232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20233$as_echo "no" >&6; } 20234fi 20235 20236 if test "x$ac_ct_CC" = x; then 20237 CC="" 20238 else 20239 case $cross_compiling:$ac_tool_warned in 20240yes:) 20241{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 20242$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20243ac_tool_warned=yes ;; 20244esac 20245 CC=$ac_ct_CC 20246 fi 20247else 20248 CC="$ac_cv_prog_CC" 20249fi 20250 20251if test -z "$CC"; then 20252 if test -n "$ac_tool_prefix"; then 20253 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 20254set dummy ${ac_tool_prefix}cc; ac_word=$2 20255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20256$as_echo_n "checking for $ac_word... " >&6; } 20257if test "${ac_cv_prog_CC+set}" = set; then : 20258 $as_echo_n "(cached) " >&6 20259else 20260 if test -n "$CC"; then 20261 ac_cv_prog_CC="$CC" # Let the user override the test. 20262else 20263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20264for as_dir in $PATH 20265do 20266 IFS=$as_save_IFS 20267 test -z "$as_dir" && as_dir=. 20268 for ac_exec_ext in '' $ac_executable_extensions; do 20269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20270 ac_cv_prog_CC="${ac_tool_prefix}cc" 20271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20272 break 2 20273 fi 20274done 20275 done 20276IFS=$as_save_IFS 20277 20278fi 20279fi 20280CC=$ac_cv_prog_CC 20281if test -n "$CC"; then 20282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 20283$as_echo "$CC" >&6; } 20284else 20285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20286$as_echo "no" >&6; } 20287fi 20288 20289 20290 fi 20291fi 20292if test -z "$CC"; then 20293 # Extract the first word of "cc", so it can be a program name with args. 20294set dummy cc; ac_word=$2 20295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20296$as_echo_n "checking for $ac_word... " >&6; } 20297if test "${ac_cv_prog_CC+set}" = set; then : 20298 $as_echo_n "(cached) " >&6 20299else 20300 if test -n "$CC"; then 20301 ac_cv_prog_CC="$CC" # Let the user override the test. 20302else 20303 ac_prog_rejected=no 20304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20305for as_dir in $PATH 20306do 20307 IFS=$as_save_IFS 20308 test -z "$as_dir" && as_dir=. 20309 for ac_exec_ext in '' $ac_executable_extensions; do 20310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20311 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 20312 ac_prog_rejected=yes 20313 continue 20314 fi 20315 ac_cv_prog_CC="cc" 20316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20317 break 2 20318 fi 20319done 20320 done 20321IFS=$as_save_IFS 20322 20323if test $ac_prog_rejected = yes; then 20324 # We found a bogon in the path, so make sure we never use it. 20325 set dummy $ac_cv_prog_CC 20326 shift 20327 if test $# != 0; then 20328 # We chose a different compiler from the bogus one. 20329 # However, it has the same basename, so the bogon will be chosen 20330 # first if we set CC to just the basename; use the full file name. 20331 shift 20332 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 20333 fi 20334fi 20335fi 20336fi 20337CC=$ac_cv_prog_CC 20338if test -n "$CC"; then 20339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 20340$as_echo "$CC" >&6; } 20341else 20342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20343$as_echo "no" >&6; } 20344fi 20345 20346 20347fi 20348if test -z "$CC"; then 20349 if test -n "$ac_tool_prefix"; then 20350 for ac_prog in cl.exe 20351 do 20352 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 20353set dummy $ac_tool_prefix$ac_prog; ac_word=$2 20354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20355$as_echo_n "checking for $ac_word... " >&6; } 20356if test "${ac_cv_prog_CC+set}" = set; then : 20357 $as_echo_n "(cached) " >&6 20358else 20359 if test -n "$CC"; then 20360 ac_cv_prog_CC="$CC" # Let the user override the test. 20361else 20362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20363for as_dir in $PATH 20364do 20365 IFS=$as_save_IFS 20366 test -z "$as_dir" && as_dir=. 20367 for ac_exec_ext in '' $ac_executable_extensions; do 20368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20369 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 20370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20371 break 2 20372 fi 20373done 20374 done 20375IFS=$as_save_IFS 20376 20377fi 20378fi 20379CC=$ac_cv_prog_CC 20380if test -n "$CC"; then 20381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 20382$as_echo "$CC" >&6; } 20383else 20384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20385$as_echo "no" >&6; } 20386fi 20387 20388 20389 test -n "$CC" && break 20390 done 20391fi 20392if test -z "$CC"; then 20393 ac_ct_CC=$CC 20394 for ac_prog in cl.exe 20395do 20396 # Extract the first word of "$ac_prog", so it can be a program name with args. 20397set dummy $ac_prog; ac_word=$2 20398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20399$as_echo_n "checking for $ac_word... " >&6; } 20400if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 20401 $as_echo_n "(cached) " >&6 20402else 20403 if test -n "$ac_ct_CC"; then 20404 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 20405else 20406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20407for as_dir in $PATH 20408do 20409 IFS=$as_save_IFS 20410 test -z "$as_dir" && as_dir=. 20411 for ac_exec_ext in '' $ac_executable_extensions; do 20412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20413 ac_cv_prog_ac_ct_CC="$ac_prog" 20414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20415 break 2 20416 fi 20417done 20418 done 20419IFS=$as_save_IFS 20420 20421fi 20422fi 20423ac_ct_CC=$ac_cv_prog_ac_ct_CC 20424if test -n "$ac_ct_CC"; then 20425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 20426$as_echo "$ac_ct_CC" >&6; } 20427else 20428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20429$as_echo "no" >&6; } 20430fi 20431 20432 20433 test -n "$ac_ct_CC" && break 20434done 20435 20436 if test "x$ac_ct_CC" = x; then 20437 CC="" 20438 else 20439 case $cross_compiling:$ac_tool_warned in 20440yes:) 20441{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 20442$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20443ac_tool_warned=yes ;; 20444esac 20445 CC=$ac_ct_CC 20446 fi 20447fi 20448 20449fi 20450 20451 20452test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20453$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20454as_fn_error "no acceptable C compiler found in \$PATH 20455See \`config.log' for more details." "$LINENO" 5; } 20456 20457# Provide some information about the compiler. 20458$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 20459set X $ac_compile 20460ac_compiler=$2 20461for ac_option in --version -v -V -qversion; do 20462 { { ac_try="$ac_compiler $ac_option >&5" 20463case "(($ac_try" in 20464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20465 *) ac_try_echo=$ac_try;; 20466esac 20467eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 20468$as_echo "$ac_try_echo"; } >&5 20469 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 20470 ac_status=$? 20471 if test -s conftest.err; then 20472 sed '10a\ 20473... rest of stderr output deleted ... 20474 10q' conftest.err >conftest.er1 20475 cat conftest.er1 >&5 20476 fi 20477 rm -f conftest.er1 conftest.err 20478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20479 test $ac_status = 0; } 20480done 20481 20482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 20483$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 20484if test "${ac_cv_c_compiler_gnu+set}" = set; then : 20485 $as_echo_n "(cached) " >&6 20486else 20487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20488/* end confdefs.h. */ 20489 20490int 20491main () 20492{ 20493#ifndef __GNUC__ 20494 choke me 20495#endif 20496 20497 ; 20498 return 0; 20499} 20500_ACEOF 20501if ac_fn_c_try_compile "$LINENO"; then : 20502 ac_compiler_gnu=yes 20503else 20504 ac_compiler_gnu=no 20505fi 20506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20507ac_cv_c_compiler_gnu=$ac_compiler_gnu 20508 20509fi 20510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 20511$as_echo "$ac_cv_c_compiler_gnu" >&6; } 20512if test $ac_compiler_gnu = yes; then 20513 GCC=yes 20514else 20515 GCC= 20516fi 20517ac_test_CFLAGS=${CFLAGS+set} 20518ac_save_CFLAGS=$CFLAGS 20519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 20520$as_echo_n "checking whether $CC accepts -g... " >&6; } 20521if test "${ac_cv_prog_cc_g+set}" = set; then : 20522 $as_echo_n "(cached) " >&6 20523else 20524 ac_save_c_werror_flag=$ac_c_werror_flag 20525 ac_c_werror_flag=yes 20526 ac_cv_prog_cc_g=no 20527 CFLAGS="-g" 20528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20529/* end confdefs.h. */ 20530 20531int 20532main () 20533{ 20534 20535 ; 20536 return 0; 20537} 20538_ACEOF 20539if ac_fn_c_try_compile "$LINENO"; then : 20540 ac_cv_prog_cc_g=yes 20541else 20542 CFLAGS="" 20543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20544/* end confdefs.h. */ 20545 20546int 20547main () 20548{ 20549 20550 ; 20551 return 0; 20552} 20553_ACEOF 20554if ac_fn_c_try_compile "$LINENO"; then : 20555 20556else 20557 ac_c_werror_flag=$ac_save_c_werror_flag 20558 CFLAGS="-g" 20559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20560/* end confdefs.h. */ 20561 20562int 20563main () 20564{ 20565 20566 ; 20567 return 0; 20568} 20569_ACEOF 20570if ac_fn_c_try_compile "$LINENO"; then : 20571 ac_cv_prog_cc_g=yes 20572fi 20573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20574fi 20575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20576fi 20577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20578 ac_c_werror_flag=$ac_save_c_werror_flag 20579fi 20580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 20581$as_echo "$ac_cv_prog_cc_g" >&6; } 20582if test "$ac_test_CFLAGS" = set; then 20583 CFLAGS=$ac_save_CFLAGS 20584elif test $ac_cv_prog_cc_g = yes; then 20585 if test "$GCC" = yes; then 20586 CFLAGS="-g -O2" 20587 else 20588 CFLAGS="-g" 20589 fi 20590else 20591 if test "$GCC" = yes; then 20592 CFLAGS="-O2" 20593 else 20594 CFLAGS= 20595 fi 20596fi 20597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 20598$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 20599if test "${ac_cv_prog_cc_c89+set}" = set; then : 20600 $as_echo_n "(cached) " >&6 20601else 20602 ac_cv_prog_cc_c89=no 20603ac_save_CC=$CC 20604cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20605/* end confdefs.h. */ 20606#include <stdarg.h> 20607#include <stdio.h> 20608#include <sys/types.h> 20609#include <sys/stat.h> 20610/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 20611struct buf { int x; }; 20612FILE * (*rcsopen) (struct buf *, struct stat *, int); 20613static char *e (p, i) 20614 char **p; 20615 int i; 20616{ 20617 return p[i]; 20618} 20619static char *f (char * (*g) (char **, int), char **p, ...) 20620{ 20621 char *s; 20622 va_list v; 20623 va_start (v,p); 20624 s = g (p, va_arg (v,int)); 20625 va_end (v); 20626 return s; 20627} 20628 20629/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 20630 function prototypes and stuff, but not '\xHH' hex character constants. 20631 These don't provoke an error unfortunately, instead are silently treated 20632 as 'x'. The following induces an error, until -std is added to get 20633 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 20634 array size at least. It's necessary to write '\x00'==0 to get something 20635 that's true only with -std. */ 20636int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 20637 20638/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 20639 inside strings and character constants. */ 20640#define FOO(x) 'x' 20641int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 20642 20643int test (int i, double x); 20644struct s1 {int (*f) (int a);}; 20645struct s2 {int (*f) (double a);}; 20646int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 20647int argc; 20648char **argv; 20649int 20650main () 20651{ 20652return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 20653 ; 20654 return 0; 20655} 20656_ACEOF 20657for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 20658 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 20659do 20660 CC="$ac_save_CC $ac_arg" 20661 if ac_fn_c_try_compile "$LINENO"; then : 20662 ac_cv_prog_cc_c89=$ac_arg 20663fi 20664rm -f core conftest.err conftest.$ac_objext 20665 test "x$ac_cv_prog_cc_c89" != "xno" && break 20666done 20667rm -f conftest.$ac_ext 20668CC=$ac_save_CC 20669 20670fi 20671# AC_CACHE_VAL 20672case "x$ac_cv_prog_cc_c89" in 20673 x) 20674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 20675$as_echo "none needed" >&6; } ;; 20676 xno) 20677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 20678$as_echo "unsupported" >&6; } ;; 20679 *) 20680 CC="$CC $ac_cv_prog_cc_c89" 20681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 20682$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 20683esac 20684if test "x$ac_cv_prog_cc_c89" != xno; then : 20685 20686fi 20687 20688ac_ext=c 20689ac_cpp='$CPP $CPPFLAGS' 20690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20692ac_compiler_gnu=$ac_cv_c_compiler_gnu 20693 20694depcc="$CC" am_compiler_list= 20695 20696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 20697$as_echo_n "checking dependency style of $depcc... " >&6; } 20698if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 20699 $as_echo_n "(cached) " >&6 20700else 20701 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 20702 # We make a subdir and do the tests there. Otherwise we can end up 20703 # making bogus files that we don't know about and never remove. For 20704 # instance it was reported that on HP-UX the gcc test will end up 20705 # making a dummy file named `D' -- because `-MD' means `put the output 20706 # in D'. 20707 mkdir conftest.dir 20708 # Copy depcomp to subdir because otherwise we won't find it if we're 20709 # using a relative directory. 20710 cp "$am_depcomp" conftest.dir 20711 cd conftest.dir 20712 # We will build objects and dependencies in a subdirectory because 20713 # it helps to detect inapplicable dependency modes. For instance 20714 # both Tru64's cc and ICC support -MD to output dependencies as a 20715 # side effect of compilation, but ICC will put the dependencies in 20716 # the current directory while Tru64 will put them in the object 20717 # directory. 20718 mkdir sub 20719 20720 am_cv_CC_dependencies_compiler_type=none 20721 if test "$am_compiler_list" = ""; then 20722 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 20723 fi 20724 am__universal=false 20725 case " $depcc " in #( 20726 *\ -arch\ *\ -arch\ *) am__universal=true ;; 20727 esac 20728 20729 for depmode in $am_compiler_list; do 20730 # Setup a source with many dependencies, because some compilers 20731 # like to wrap large dependency lists on column 80 (with \), and 20732 # we should not choose a depcomp mode which is confused by this. 20733 # 20734 # We need to recreate these files for each test, as the compiler may 20735 # overwrite some of them when testing with obscure command lines. 20736 # This happens at least with the AIX C compiler. 20737 : > sub/conftest.c 20738 for i in 1 2 3 4 5 6; do 20739 echo '#include "conftst'$i'.h"' >> sub/conftest.c 20740 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 20741 # Solaris 8's {/usr,}/bin/sh. 20742 touch sub/conftst$i.h 20743 done 20744 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 20745 20746 # We check with `-c' and `-o' for the sake of the "dashmstdout" 20747 # mode. It turns out that the SunPro C++ compiler does not properly 20748 # handle `-M -o', and we need to detect this. Also, some Intel 20749 # versions had trouble with output in subdirs 20750 am__obj=sub/conftest.${OBJEXT-o} 20751 am__minus_obj="-o $am__obj" 20752 case $depmode in 20753 gcc) 20754 # This depmode causes a compiler race in universal mode. 20755 test "$am__universal" = false || continue 20756 ;; 20757 nosideeffect) 20758 # after this tag, mechanisms are not by side-effect, so they'll 20759 # only be used when explicitly requested 20760 if test "x$enable_dependency_tracking" = xyes; then 20761 continue 20762 else 20763 break 20764 fi 20765 ;; 20766 msvisualcpp | msvcmsys) 20767 # This compiler won't grok `-c -o', but also, the minuso test has 20768 # not run yet. These depmodes are late enough in the game, and 20769 # so weak that their functioning should not be impacted. 20770 am__obj=conftest.${OBJEXT-o} 20771 am__minus_obj= 20772 ;; 20773 none) break ;; 20774 esac 20775 if depmode=$depmode \ 20776 source=sub/conftest.c object=$am__obj \ 20777 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 20778 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 20779 >/dev/null 2>conftest.err && 20780 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 20781 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 20782 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 20783 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 20784 # icc doesn't choke on unknown options, it will just issue warnings 20785 # or remarks (even with -Werror). So we grep stderr for any message 20786 # that says an option was ignored or not supported. 20787 # When given -MP, icc 7.0 and 7.1 complain thusly: 20788 # icc: Command line warning: ignoring option '-M'; no argument required 20789 # The diagnosis changed in icc 8.0: 20790 # icc: Command line remark: option '-MP' not supported 20791 if (grep 'ignoring option' conftest.err || 20792 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 20793 am_cv_CC_dependencies_compiler_type=$depmode 20794 break 20795 fi 20796 fi 20797 done 20798 20799 cd .. 20800 rm -rf conftest.dir 20801else 20802 am_cv_CC_dependencies_compiler_type=none 20803fi 20804 20805fi 20806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 20807$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 20808CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 20809 20810 if 20811 test "x$enable_dependency_tracking" != xno \ 20812 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 20813 am__fastdepCC_TRUE= 20814 am__fastdepCC_FALSE='#' 20815else 20816 am__fastdepCC_TRUE='#' 20817 am__fastdepCC_FALSE= 20818fi 20819 20820 20821 20822if test x"$CC_FOR_BUILD" = x; then 20823 if test x"$cross_compiling" = xyes; then 20824 for ac_prog in gcc cc 20825do 20826 # Extract the first word of "$ac_prog", so it can be a program name with args. 20827set dummy $ac_prog; ac_word=$2 20828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20829$as_echo_n "checking for $ac_word... " >&6; } 20830if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then : 20831 $as_echo_n "(cached) " >&6 20832else 20833 if test -n "$CC_FOR_BUILD"; then 20834 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test. 20835else 20836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20837for as_dir in $PATH 20838do 20839 IFS=$as_save_IFS 20840 test -z "$as_dir" && as_dir=. 20841 for ac_exec_ext in '' $ac_executable_extensions; do 20842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20843 ac_cv_prog_CC_FOR_BUILD="$ac_prog" 20844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20845 break 2 20846 fi 20847done 20848 done 20849IFS=$as_save_IFS 20850 20851fi 20852fi 20853CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD 20854if test -n "$CC_FOR_BUILD"; then 20855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5 20856$as_echo "$CC_FOR_BUILD" >&6; } 20857else 20858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20859$as_echo "no" >&6; } 20860fi 20861 20862 20863 test -n "$CC_FOR_BUILD" && break 20864done 20865 20866 else 20867 CC_FOR_BUILD="$CC" 20868 fi 20869fi 20870 20871 20872 20873 20874for ac_prog in cpp 20875do 20876 # Extract the first word of "$ac_prog", so it can be a program name with args. 20877set dummy $ac_prog; ac_word=$2 20878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20879$as_echo_n "checking for $ac_word... " >&6; } 20880if test "${ac_cv_path_RAWCPP+set}" = set; then : 20881 $as_echo_n "(cached) " >&6 20882else 20883 case $RAWCPP in 20884 [\\/]* | ?:[\\/]*) 20885 ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path. 20886 ;; 20887 *) 20888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20889as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 20890for as_dir in $as_dummy 20891do 20892 IFS=$as_save_IFS 20893 test -z "$as_dir" && as_dir=. 20894 for ac_exec_ext in '' $ac_executable_extensions; do 20895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20896 ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext" 20897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20898 break 2 20899 fi 20900done 20901 done 20902IFS=$as_save_IFS 20903 20904 ;; 20905esac 20906fi 20907RAWCPP=$ac_cv_path_RAWCPP 20908if test -n "$RAWCPP"; then 20909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5 20910$as_echo "$RAWCPP" >&6; } 20911else 20912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20913$as_echo "no" >&6; } 20914fi 20915 20916 20917 test -n "$RAWCPP" && break 20918done 20919test -n "$RAWCPP" || RAWCPP="${CPP}" 20920 20921 20922# Check for flag to avoid builtin definitions - assumes unix is predefined, 20923# which is not the best choice for supporting other OS'es, but covers most 20924# of the ones we need for now. 20925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5 20926$as_echo_n "checking if $RAWCPP requires -undef... " >&6; } 20927cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20928/* end confdefs.h. */ 20929Does cpp redefine unix ? 20930_ACEOF 20931if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 20932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20933$as_echo "no" >&6; } 20934else 20935 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 20936 RAWCPPFLAGS=-undef 20937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20938$as_echo "yes" >&6; } 20939 # under Cygwin unix is still defined even with -undef 20940 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 20941 RAWCPPFLAGS="-undef -ansi" 20942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5 20943$as_echo "yes, with -ansi" >&6; } 20944 else 20945 as_fn_error "${RAWCPP} defines unix with or without -undef. I don't know what to do." "$LINENO" 5 20946 fi 20947fi 20948rm -f conftest.$ac_ext 20949 20950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5 20951$as_echo_n "checking if $RAWCPP requires -traditional... " >&6; } 20952cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20953/* end confdefs.h. */ 20954Does cpp preserve "whitespace"? 20955_ACEOF 20956if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 20957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20958$as_echo "no" >&6; } 20959else 20960 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 20961 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 20962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20963$as_echo "yes" >&6; } 20964 else 20965 as_fn_error "${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." "$LINENO" 5 20966 fi 20967fi 20968rm -f conftest.$ac_ext 20969 20970 20971 20972# Find perl for "make check" tests in nls/localerules.in 20973 20974# Check whether --with-perl was given. 20975if test "${with_perl+set}" = set; then : 20976 withval=$with_perl; PERL=$withval ; { $as_echo "$as_me:${as_lineno-$LINENO}: checking perl" >&5 20977$as_echo_n "checking perl... " >&6; } ; 20978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (from --with-perl) $PERL" >&5 20979$as_echo "(from --with-perl) $PERL" >&6; } 20980else 20981 for ac_prog in perl 20982do 20983 # Extract the first word of "$ac_prog", so it can be a program name with args. 20984set dummy $ac_prog; ac_word=$2 20985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20986$as_echo_n "checking for $ac_word... " >&6; } 20987if test "${ac_cv_prog_PERL+set}" = set; then : 20988 $as_echo_n "(cached) " >&6 20989else 20990 if test -n "$PERL"; then 20991 ac_cv_prog_PERL="$PERL" # Let the user override the test. 20992else 20993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20994for as_dir in $PATH 20995do 20996 IFS=$as_save_IFS 20997 test -z "$as_dir" && as_dir=. 20998 for ac_exec_ext in '' $ac_executable_extensions; do 20999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21000 ac_cv_prog_PERL="$ac_prog" 21001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21002 break 2 21003 fi 21004done 21005 done 21006IFS=$as_save_IFS 21007 21008fi 21009fi 21010PERL=$ac_cv_prog_PERL 21011if test -n "$PERL"; then 21012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 21013$as_echo "$PERL" >&6; } 21014else 21015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21016$as_echo "no" >&6; } 21017fi 21018 21019 21020 test -n "$PERL" && break 21021done 21022test -n "$PERL" || PERL="no" 21023 21024fi 21025 21026 if test x$PERL != xno; then 21027 HAVE_PERL_TRUE= 21028 HAVE_PERL_FALSE='#' 21029else 21030 HAVE_PERL_TRUE='#' 21031 HAVE_PERL_FALSE= 21032fi 21033 21034 21035# Build with XCB support? 21036 21037# Check whether --with-xcb was given. 21038if test "${with_xcb+set}" = set; then : 21039 withval=$with_xcb; ac_cv_use_xcb=$withval 21040else 21041 ac_cv_use_xcb=yes 21042fi 21043 21044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use XCB" >&5 21045$as_echo_n "checking whether to use XCB... " >&6; } 21046if test "${ac_cv_use_xcb+set}" = set; then : 21047 $as_echo_n "(cached) " >&6 21048else 21049 ac_cv_use_xcb=yes 21050fi 21051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_use_xcb" >&5 21052$as_echo "$ac_cv_use_xcb" >&6; } 21053 if test x$ac_cv_use_xcb != xno; then 21054 XCB_TRUE= 21055 XCB_FALSE='#' 21056else 21057 XCB_TRUE='#' 21058 XCB_FALSE= 21059fi 21060 21061 21062# Checks for pkg-config packages 21063 21064# Always required 21065X11_REQUIRES='xproto >= 7.0.13 xextproto xtrans' 21066 21067 21068 21069if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 21070 if test -n "$ac_tool_prefix"; then 21071 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 21072set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 21073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21074$as_echo_n "checking for $ac_word... " >&6; } 21075if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 21076 $as_echo_n "(cached) " >&6 21077else 21078 case $PKG_CONFIG in 21079 [\\/]* | ?:[\\/]*) 21080 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 21081 ;; 21082 *) 21083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21084for as_dir in $PATH 21085do 21086 IFS=$as_save_IFS 21087 test -z "$as_dir" && as_dir=. 21088 for ac_exec_ext in '' $ac_executable_extensions; do 21089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21090 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 21091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21092 break 2 21093 fi 21094done 21095 done 21096IFS=$as_save_IFS 21097 21098 ;; 21099esac 21100fi 21101PKG_CONFIG=$ac_cv_path_PKG_CONFIG 21102if test -n "$PKG_CONFIG"; then 21103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 21104$as_echo "$PKG_CONFIG" >&6; } 21105else 21106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21107$as_echo "no" >&6; } 21108fi 21109 21110 21111fi 21112if test -z "$ac_cv_path_PKG_CONFIG"; then 21113 ac_pt_PKG_CONFIG=$PKG_CONFIG 21114 # Extract the first word of "pkg-config", so it can be a program name with args. 21115set dummy pkg-config; ac_word=$2 21116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21117$as_echo_n "checking for $ac_word... " >&6; } 21118if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : 21119 $as_echo_n "(cached) " >&6 21120else 21121 case $ac_pt_PKG_CONFIG in 21122 [\\/]* | ?:[\\/]*) 21123 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 21124 ;; 21125 *) 21126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21127for as_dir in $PATH 21128do 21129 IFS=$as_save_IFS 21130 test -z "$as_dir" && as_dir=. 21131 for ac_exec_ext in '' $ac_executable_extensions; do 21132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 21133 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 21134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21135 break 2 21136 fi 21137done 21138 done 21139IFS=$as_save_IFS 21140 21141 ;; 21142esac 21143fi 21144ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 21145if test -n "$ac_pt_PKG_CONFIG"; then 21146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 21147$as_echo "$ac_pt_PKG_CONFIG" >&6; } 21148else 21149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21150$as_echo "no" >&6; } 21151fi 21152 21153 if test "x$ac_pt_PKG_CONFIG" = x; then 21154 PKG_CONFIG="" 21155 else 21156 case $cross_compiling:$ac_tool_warned in 21157yes:) 21158{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 21159$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 21160ac_tool_warned=yes ;; 21161esac 21162 PKG_CONFIG=$ac_pt_PKG_CONFIG 21163 fi 21164else 21165 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 21166fi 21167 21168fi 21169if test -n "$PKG_CONFIG"; then 21170 _pkg_min_version=0.9.0 21171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 21172$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 21173 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 21174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21175$as_echo "yes" >&6; } 21176 else 21177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21178$as_echo "no" >&6; } 21179 PKG_CONFIG="" 21180 fi 21181 21182fi 21183 21184case "$ac_cv_use_xcb" in 21185no) 21186 X11_REQUIRES="${X11_REQUIRES} xau xcmiscproto bigreqsproto" 21187 X11_EXTRA_DEPS="xau" 21188 21189pkg_failed=no 21190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDMCP" >&5 21191$as_echo_n "checking for XDMCP... " >&6; } 21192 21193if test -n "$XDMCP_CFLAGS"; then 21194 pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS" 21195 elif test -n "$PKG_CONFIG"; then 21196 if test -n "$PKG_CONFIG" && \ 21197 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5 21198 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5 21199 ac_status=$? 21200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21201 test $ac_status = 0; }; then 21202 pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null` 21203else 21204 pkg_failed=yes 21205fi 21206 else 21207 pkg_failed=untried 21208fi 21209if test -n "$XDMCP_LIBS"; then 21210 pkg_cv_XDMCP_LIBS="$XDMCP_LIBS" 21211 elif test -n "$PKG_CONFIG"; then 21212 if test -n "$PKG_CONFIG" && \ 21213 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5 21214 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5 21215 ac_status=$? 21216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21217 test $ac_status = 0; }; then 21218 pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null` 21219else 21220 pkg_failed=yes 21221fi 21222 else 21223 pkg_failed=untried 21224fi 21225 21226 21227 21228if test $pkg_failed = yes; then 21229 21230if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21231 _pkg_short_errors_supported=yes 21232else 21233 _pkg_short_errors_supported=no 21234fi 21235 if test $_pkg_short_errors_supported = yes; then 21236 XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xdmcp" 2>&1` 21237 else 21238 XDMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors "xdmcp" 2>&1` 21239 fi 21240 # Put the nasty error message in config.log where it belongs 21241 echo "$XDMCP_PKG_ERRORS" >&5 21242 21243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21244$as_echo "no" >&6; } 21245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21246$as_echo "no" >&6; } 21247elif test $pkg_failed = untried; then 21248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21249$as_echo "no" >&6; } 21250else 21251 XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS 21252 XDMCP_LIBS=$pkg_cv_XDMCP_LIBS 21253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21254$as_echo "yes" >&6; } 21255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XdmcpWrap in -lXdmcp" >&5 21256$as_echo_n "checking for XdmcpWrap in -lXdmcp... " >&6; } 21257if test "${ac_cv_lib_Xdmcp_XdmcpWrap+set}" = set; then : 21258 $as_echo_n "(cached) " >&6 21259else 21260 ac_check_lib_save_LIBS=$LIBS 21261LIBS="-lXdmcp $XDMCP_LIBS $LIBS" 21262cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21263/* end confdefs.h. */ 21264 21265/* Override any GCC internal prototype to avoid an error. 21266 Use char because int might match the return type of a GCC 21267 builtin and then its argument prototype would still apply. */ 21268#ifdef __cplusplus 21269extern "C" 21270#endif 21271char XdmcpWrap (); 21272int 21273main () 21274{ 21275return XdmcpWrap (); 21276 ; 21277 return 0; 21278} 21279_ACEOF 21280if ac_fn_c_try_link "$LINENO"; then : 21281 ac_cv_lib_Xdmcp_XdmcpWrap=yes 21282else 21283 ac_cv_lib_Xdmcp_XdmcpWrap=no 21284fi 21285rm -f core conftest.err conftest.$ac_objext \ 21286 conftest$ac_exeext conftest.$ac_ext 21287LIBS=$ac_check_lib_save_LIBS 21288fi 21289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp_XdmcpWrap" >&5 21290$as_echo "$ac_cv_lib_Xdmcp_XdmcpWrap" >&6; } 21291if test "x$ac_cv_lib_Xdmcp_XdmcpWrap" = x""yes; then : 21292 21293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XdmcpWrap in -lXdmcp" >&5 21294$as_echo_n "checking for XdmcpWrap in -lXdmcp... " >&6; } 21295if test "${ac_cv_lib_Xdmcp_XdmcpWrap+set}" = set; then : 21296 $as_echo_n "(cached) " >&6 21297else 21298 ac_check_lib_save_LIBS=$LIBS 21299LIBS="-lXdmcp $XDMCP_LIBS $LIBS" 21300cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21301/* end confdefs.h. */ 21302 21303/* Override any GCC internal prototype to avoid an error. 21304 Use char because int might match the return type of a GCC 21305 builtin and then its argument prototype would still apply. */ 21306#ifdef __cplusplus 21307extern "C" 21308#endif 21309char XdmcpWrap (); 21310int 21311main () 21312{ 21313return XdmcpWrap (); 21314 ; 21315 return 0; 21316} 21317_ACEOF 21318if ac_fn_c_try_link "$LINENO"; then : 21319 ac_cv_lib_Xdmcp_XdmcpWrap=yes 21320else 21321 ac_cv_lib_Xdmcp_XdmcpWrap=no 21322fi 21323rm -f core conftest.err conftest.$ac_objext \ 21324 conftest$ac_exeext conftest.$ac_ext 21325LIBS=$ac_check_lib_save_LIBS 21326fi 21327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp_XdmcpWrap" >&5 21328$as_echo "$ac_cv_lib_Xdmcp_XdmcpWrap" >&6; } 21329if test "x$ac_cv_lib_Xdmcp_XdmcpWrap" = x""yes; then : 21330 xdmauth="yes" 21331else 21332 xdmauth="no" 21333fi 21334 21335 X11_EXTRA_DEPS="$X11_EXTRA_DEPS xdmcp" 21336 21337else 21338 21339 XDMCP_CFLAGS= 21340 XDMCP_LIBS= 21341 21342fi 21343 21344fi 21345 21346$as_echo "#define USE_XCB 0" >>confdefs.h 21347 21348 ;; 21349*) 21350 X11_REQUIRES="${X11_REQUIRES} xcb >= 1.1.92" 21351 X11_EXTRA_DEPS="xcb >= 1.1.92" 21352 xdmauth="no" # XCB handles all auth 21353 21354$as_echo "#define USE_XCB 1" >>confdefs.h 21355 21356 ;; 21357esac 21358 21359 21360 21361 21362# Transport selection macro from xtrans.m4 21363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 21364$as_echo_n "checking return type of signal handlers... " >&6; } 21365if test "${ac_cv_type_signal+set}" = set; then : 21366 $as_echo_n "(cached) " >&6 21367else 21368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21369/* end confdefs.h. */ 21370#include <sys/types.h> 21371#include <signal.h> 21372 21373int 21374main () 21375{ 21376return *(signal (0, 0)) (0) == 1; 21377 ; 21378 return 0; 21379} 21380_ACEOF 21381if ac_fn_c_try_compile "$LINENO"; then : 21382 ac_cv_type_signal=int 21383else 21384 ac_cv_type_signal=void 21385fi 21386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21387fi 21388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 21389$as_echo "$ac_cv_type_signal" >&6; } 21390 21391cat >>confdefs.h <<_ACEOF 21392#define RETSIGTYPE $ac_cv_type_signal 21393_ACEOF 21394 21395 21396 21397 21398 21399 case $host_os in 21400 mingw*) unixdef="no" ;; 21401 *) unixdef="yes" ;; 21402 esac 21403 # Check whether --enable-unix-transport was given. 21404if test "${enable_unix_transport+set}" = set; then : 21405 enableval=$enable_unix_transport; UNIXCONN=$enableval 21406else 21407 UNIXCONN=$unixdef 21408fi 21409 21410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 21411$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; } 21412 if test "$UNIXCONN" = "yes"; then 21413 21414$as_echo "#define UNIXCONN 1" >>confdefs.h 21415 21416 fi 21417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 21418$as_echo "$UNIXCONN" >&6; } 21419 # Check whether --enable-tcp-transport was given. 21420if test "${enable_tcp_transport+set}" = set; then : 21421 enableval=$enable_tcp_transport; TCPCONN=$enableval 21422else 21423 TCPCONN=yes 21424fi 21425 21426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 21427$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; } 21428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 21429$as_echo "$TCPCONN" >&6; } 21430 if test "$TCPCONN" = "yes"; then 21431 21432$as_echo "#define TCPCONN 1" >>confdefs.h 21433 21434 21435 # SVR4 hides these in libraries other than libc 21436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 21437$as_echo_n "checking for library containing socket... " >&6; } 21438if test "${ac_cv_search_socket+set}" = set; then : 21439 $as_echo_n "(cached) " >&6 21440else 21441 ac_func_search_save_LIBS=$LIBS 21442cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21443/* end confdefs.h. */ 21444 21445/* Override any GCC internal prototype to avoid an error. 21446 Use char because int might match the return type of a GCC 21447 builtin and then its argument prototype would still apply. */ 21448#ifdef __cplusplus 21449extern "C" 21450#endif 21451char socket (); 21452int 21453main () 21454{ 21455return socket (); 21456 ; 21457 return 0; 21458} 21459_ACEOF 21460for ac_lib in '' socket; do 21461 if test -z "$ac_lib"; then 21462 ac_res="none required" 21463 else 21464 ac_res=-l$ac_lib 21465 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21466 fi 21467 if ac_fn_c_try_link "$LINENO"; then : 21468 ac_cv_search_socket=$ac_res 21469fi 21470rm -f core conftest.err conftest.$ac_objext \ 21471 conftest$ac_exeext 21472 if test "${ac_cv_search_socket+set}" = set; then : 21473 break 21474fi 21475done 21476if test "${ac_cv_search_socket+set}" = set; then : 21477 21478else 21479 ac_cv_search_socket=no 21480fi 21481rm conftest.$ac_ext 21482LIBS=$ac_func_search_save_LIBS 21483fi 21484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 21485$as_echo "$ac_cv_search_socket" >&6; } 21486ac_res=$ac_cv_search_socket 21487if test "$ac_res" != no; then : 21488 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21489 21490fi 21491 21492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 21493$as_echo_n "checking for library containing gethostbyname... " >&6; } 21494if test "${ac_cv_search_gethostbyname+set}" = set; then : 21495 $as_echo_n "(cached) " >&6 21496else 21497 ac_func_search_save_LIBS=$LIBS 21498cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21499/* end confdefs.h. */ 21500 21501/* Override any GCC internal prototype to avoid an error. 21502 Use char because int might match the return type of a GCC 21503 builtin and then its argument prototype would still apply. */ 21504#ifdef __cplusplus 21505extern "C" 21506#endif 21507char gethostbyname (); 21508int 21509main () 21510{ 21511return gethostbyname (); 21512 ; 21513 return 0; 21514} 21515_ACEOF 21516for ac_lib in '' nsl; do 21517 if test -z "$ac_lib"; then 21518 ac_res="none required" 21519 else 21520 ac_res=-l$ac_lib 21521 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21522 fi 21523 if ac_fn_c_try_link "$LINENO"; then : 21524 ac_cv_search_gethostbyname=$ac_res 21525fi 21526rm -f core conftest.err conftest.$ac_objext \ 21527 conftest$ac_exeext 21528 if test "${ac_cv_search_gethostbyname+set}" = set; then : 21529 break 21530fi 21531done 21532if test "${ac_cv_search_gethostbyname+set}" = set; then : 21533 21534else 21535 ac_cv_search_gethostbyname=no 21536fi 21537rm conftest.$ac_ext 21538LIBS=$ac_func_search_save_LIBS 21539fi 21540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 21541$as_echo "$ac_cv_search_gethostbyname" >&6; } 21542ac_res=$ac_cv_search_gethostbyname 21543if test "$ac_res" != no; then : 21544 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21545 21546fi 21547 21548 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 21549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 21550$as_echo_n "checking for main in -lws2_32... " >&6; } 21551if test "${ac_cv_lib_ws2_32_main+set}" = set; then : 21552 $as_echo_n "(cached) " >&6 21553else 21554 ac_check_lib_save_LIBS=$LIBS 21555LIBS="-lws2_32 $LIBS" 21556cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21557/* end confdefs.h. */ 21558 21559 21560int 21561main () 21562{ 21563return main (); 21564 ; 21565 return 0; 21566} 21567_ACEOF 21568if ac_fn_c_try_link "$LINENO"; then : 21569 ac_cv_lib_ws2_32_main=yes 21570else 21571 ac_cv_lib_ws2_32_main=no 21572fi 21573rm -f core conftest.err conftest.$ac_objext \ 21574 conftest$ac_exeext conftest.$ac_ext 21575LIBS=$ac_check_lib_save_LIBS 21576fi 21577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 21578$as_echo "$ac_cv_lib_ws2_32_main" >&6; } 21579if test "x$ac_cv_lib_ws2_32_main" = x""yes; then : 21580 cat >>confdefs.h <<_ACEOF 21581#define HAVE_LIBWS2_32 1 21582_ACEOF 21583 21584 LIBS="-lws2_32 $LIBS" 21585 21586fi 21587ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main 21588 21589 fi 21590 21591 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 21592 # Check whether --enable-ipv6 was given. 21593if test "${enable_ipv6+set}" = set; then : 21594 enableval=$enable_ipv6; IPV6CONN=$enableval 21595else 21596 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 21597if test "x$ac_cv_func_getaddrinfo" = x""yes; then : 21598 IPV6CONN=yes 21599else 21600 IPV6CONN=no 21601fi 21602 21603fi 21604 21605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 21606$as_echo_n "checking if IPv6 support should be built... " >&6; } 21607 if test "$IPV6CONN" = "yes"; then 21608 21609$as_echo "#define IPv6 1" >>confdefs.h 21610 21611 fi 21612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 21613$as_echo "$IPV6CONN" >&6; } 21614 21615 # 4.3BSD-Reno added a new member to struct sockaddr_in 21616 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 21617#include <sys/types.h> 21618#include <sys/socket.h> 21619#include <netinet/in.h> 21620 21621" 21622if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then : 21623 21624$as_echo "#define BSD44SOCKETS 1" >>confdefs.h 21625 21626fi 21627 21628 21629 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 21630 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 21631$ac_includes_default 21632#include <sys/socket.h> 21633" 21634if test "x$ac_cv_type_socklen_t" = x""yes; then : 21635 21636cat >>confdefs.h <<_ACEOF 21637#define HAVE_SOCKLEN_T 1 21638_ACEOF 21639 21640 21641fi 21642 21643 21644 21645 fi 21646 case $host_os in 21647 solaris*|sco*|sysv4*) localdef="yes" ;; 21648 *) localdef="no" ;; 21649 esac 21650 # Check whether --enable-local-transport was given. 21651if test "${enable_local_transport+set}" = set; then : 21652 enableval=$enable_local_transport; LOCALCONN=$enableval 21653else 21654 LOCALCONN=$localdef 21655fi 21656 21657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 21658$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; } 21659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 21660$as_echo "$LOCALCONN" >&6; } 21661 if test "$LOCALCONN" = "yes"; then 21662 21663$as_echo "#define LOCALCONN 1" >>confdefs.h 21664 21665 fi 21666 21667 21668 21669# Secure RPC detection macro from xtrans.m4 21670 21671 # Check whether --enable-secure-rpc was given. 21672if test "${enable_secure_rpc+set}" = set; then : 21673 enableval=$enable_secure_rpc; SECURE_RPC=$enableval 21674else 21675 SECURE_RPC="try" 21676fi 21677 21678 21679 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then 21680 FOUND_SECURE_RPC="no" 21681 for ac_func in authdes_seccreate authdes_create 21682do : 21683 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 21684ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 21685eval as_val=\$$as_ac_var 21686 if test "x$as_val" = x""yes; then : 21687 cat >>confdefs.h <<_ACEOF 21688#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 21689_ACEOF 21690 FOUND_SECURE_RPC="yes" 21691fi 21692done 21693 21694 if test "x$FOUND_SECURE_RPC" = "xno" ; then 21695 if test "x$SECURE_RPC" = "xyes" ; then 21696 as_fn_error "Secure RPC requested, but required functions not found" "$LINENO" 5 21697 fi 21698 SECURE_RPC="no" 21699 else 21700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsecretkey" >&5 21701$as_echo_n "checking for library containing getsecretkey... " >&6; } 21702if test "${ac_cv_search_getsecretkey+set}" = set; then : 21703 $as_echo_n "(cached) " >&6 21704else 21705 ac_func_search_save_LIBS=$LIBS 21706cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21707/* end confdefs.h. */ 21708 21709/* Override any GCC internal prototype to avoid an error. 21710 Use char because int might match the return type of a GCC 21711 builtin and then its argument prototype would still apply. */ 21712#ifdef __cplusplus 21713extern "C" 21714#endif 21715char getsecretkey (); 21716int 21717main () 21718{ 21719return getsecretkey (); 21720 ; 21721 return 0; 21722} 21723_ACEOF 21724for ac_lib in '' rpcsvc; do 21725 if test -z "$ac_lib"; then 21726 ac_res="none required" 21727 else 21728 ac_res=-l$ac_lib 21729 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21730 fi 21731 if ac_fn_c_try_link "$LINENO"; then : 21732 ac_cv_search_getsecretkey=$ac_res 21733fi 21734rm -f core conftest.err conftest.$ac_objext \ 21735 conftest$ac_exeext 21736 if test "${ac_cv_search_getsecretkey+set}" = set; then : 21737 break 21738fi 21739done 21740if test "${ac_cv_search_getsecretkey+set}" = set; then : 21741 21742else 21743 ac_cv_search_getsecretkey=no 21744fi 21745rm conftest.$ac_ext 21746LIBS=$ac_func_search_save_LIBS 21747fi 21748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsecretkey" >&5 21749$as_echo "$ac_cv_search_getsecretkey" >&6; } 21750ac_res=$ac_cv_search_getsecretkey 21751if test "$ac_res" != no; then : 21752 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21753 21754fi 21755 21756 SECURE_RPC="yes" 21757 fi 21758 fi 21759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5 21760$as_echo_n "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... " >&6; } 21761 if test "x$SECURE_RPC" = "xyes" ; then 21762 21763$as_echo "#define SECURE_RPC 1" >>confdefs.h 21764 21765 fi 21766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SECURE_RPC" >&5 21767$as_echo "$SECURE_RPC" >&6; } 21768 21769 21770# Preferred order to try transports for local connections 21771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what order to try transports in for local connections" >&5 21772$as_echo_n "checking what order to try transports in for local connections... " >&6; } 21773case $host_os in 21774 solaris*) 21775 # On Solaris 2.6 through 9, named pipes (LOCAL_TRANS) were 21776 # faster than Unix domain sockets, but on Solaris 10 & later, 21777 # Unix domain sockets are faster now. 21778 DEFAULT_LOCAL_TRANS="UNIX_TRANS,LOCAL_TRANS,TCP_TRANS" 21779 ;; 21780 *) 21781 if test "$LOCALCONN" = "yes"; then 21782 DEFAULT_LOCAL_TRANS="LOCAL_TRANS,UNIX_TRANS,TCP_TRANS" 21783 else 21784 DEFAULT_LOCAL_TRANS="UNIX_TRANS,TCP_TRANS" 21785 fi 21786 ;; 21787esac 21788 21789 21790# Check whether --with-local-transport-order was given. 21791if test "${with_local_transport_order+set}" = set; then : 21792 withval=$with_local_transport_order; LOCAL_TRANSPORT_LIST=$withval 21793else 21794 LOCAL_TRANSPORT_LIST=$DEFAULT_LOCAL_TRANS 21795fi 21796 21797 21798cat >>confdefs.h <<_ACEOF 21799#define LOCAL_TRANSPORT_LIST $LOCAL_TRANSPORT_LIST 21800_ACEOF 21801 21802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCAL_TRANSPORT_LIST" >&5 21803$as_echo "$LOCAL_TRANSPORT_LIST" >&6; } 21804 21805# Check for dlopen 21806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if run-time linking is supported" >&5 21807$as_echo_n "checking if run-time linking is supported... " >&6; } 21808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 21809$as_echo_n "checking for library containing dlopen... " >&6; } 21810if test "${ac_cv_search_dlopen+set}" = set; then : 21811 $as_echo_n "(cached) " >&6 21812else 21813 ac_func_search_save_LIBS=$LIBS 21814cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21815/* end confdefs.h. */ 21816 21817/* Override any GCC internal prototype to avoid an error. 21818 Use char because int might match the return type of a GCC 21819 builtin and then its argument prototype would still apply. */ 21820#ifdef __cplusplus 21821extern "C" 21822#endif 21823char dlopen (); 21824int 21825main () 21826{ 21827return dlopen (); 21828 ; 21829 return 0; 21830} 21831_ACEOF 21832for ac_lib in '' dl svld; do 21833 if test -z "$ac_lib"; then 21834 ac_res="none required" 21835 else 21836 ac_res=-l$ac_lib 21837 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21838 fi 21839 if ac_fn_c_try_link "$LINENO"; then : 21840 ac_cv_search_dlopen=$ac_res 21841fi 21842rm -f core conftest.err conftest.$ac_objext \ 21843 conftest$ac_exeext 21844 if test "${ac_cv_search_dlopen+set}" = set; then : 21845 break 21846fi 21847done 21848if test "${ac_cv_search_dlopen+set}" = set; then : 21849 21850else 21851 ac_cv_search_dlopen=no 21852fi 21853rm conftest.$ac_ext 21854LIBS=$ac_func_search_save_LIBS 21855fi 21856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 21857$as_echo "$ac_cv_search_dlopen" >&6; } 21858ac_res=$ac_cv_search_dlopen 21859if test "$ac_res" != no; then : 21860 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21861 21862fi 21863 21864if test "x$ac_cv_search_dlopen" = xno; then 21865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5 21866$as_echo_n "checking for library containing shl_load... " >&6; } 21867if test "${ac_cv_search_shl_load+set}" = set; then : 21868 $as_echo_n "(cached) " >&6 21869else 21870 ac_func_search_save_LIBS=$LIBS 21871cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21872/* end confdefs.h. */ 21873 21874/* Override any GCC internal prototype to avoid an error. 21875 Use char because int might match the return type of a GCC 21876 builtin and then its argument prototype would still apply. */ 21877#ifdef __cplusplus 21878extern "C" 21879#endif 21880char shl_load (); 21881int 21882main () 21883{ 21884return shl_load (); 21885 ; 21886 return 0; 21887} 21888_ACEOF 21889for ac_lib in '' dld; do 21890 if test -z "$ac_lib"; then 21891 ac_res="none required" 21892 else 21893 ac_res=-l$ac_lib 21894 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21895 fi 21896 if ac_fn_c_try_link "$LINENO"; then : 21897 ac_cv_search_shl_load=$ac_res 21898fi 21899rm -f core conftest.err conftest.$ac_objext \ 21900 conftest$ac_exeext 21901 if test "${ac_cv_search_shl_load+set}" = set; then : 21902 break 21903fi 21904done 21905if test "${ac_cv_search_shl_load+set}" = set; then : 21906 21907else 21908 ac_cv_search_shl_load=no 21909fi 21910rm conftest.$ac_ext 21911LIBS=$ac_func_search_save_LIBS 21912fi 21913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5 21914$as_echo "$ac_cv_search_shl_load" >&6; } 21915ac_res=$ac_cv_search_shl_load 21916if test "$ac_res" != no; then : 21917 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21918 21919fi 21920 21921 if test "x$ac_cv_search_shl_load" != xno; then 21922 21923$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 21924 21925 for ac_header in dl.h 21926do : 21927 ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default" 21928if test "x$ac_cv_header_dl_h" = x""yes; then : 21929 cat >>confdefs.h <<_ACEOF 21930#define HAVE_DL_H 1 21931_ACEOF 21932 21933fi 21934 21935done 21936 21937 fi 21938else 21939 21940$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h 21941 21942 for ac_header in dlfcn.h 21943do : 21944 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 21945if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 21946 cat >>confdefs.h <<_ACEOF 21947#define HAVE_DLFCN_H 1 21948_ACEOF 21949 21950fi 21951 21952done 21953 21954fi 21955if test x$ac_cv_header_dlcfn_h -o x$ac_cv_header_dl_h; then 21956 HAVE_LOADABLE_MODULES=yes 21957else 21958 HAVE_LOADABLE_MODULES=no 21959fi 21960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LOADABLE_MODULES" >&5 21961$as_echo "$HAVE_LOADABLE_MODULES" >&6; } 21962 21963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if loadable i18n module support should be enabled" >&5 21964$as_echo_n "checking if loadable i18n module support should be enabled... " >&6; } 21965# Check whether --enable-loadable-i18n was given. 21966if test "${enable_loadable_i18n+set}" = set; then : 21967 enableval=$enable_loadable_i18n; XLIB_LOADABLE_I18N=$enableval 21968else 21969 XLIB_LOADABLE_I18N="no" 21970fi 21971 21972if test x$XLIB_LOADABLE_I18N = xyes; then 21973 if test x$HAVE_LOADABLE_MODULES = xno; then 21974 as_fn_error "Loadable module support is required to enable loadable i18n module support" "$LINENO" 5 21975 fi 21976 21977$as_echo "#define USE_DYNAMIC_LC 1" >>confdefs.h 21978 21979 I18N_MODULE_LIBS='${top_builddir}/src/libX11.la' 21980 21981fi 21982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_I18N" >&5 21983$as_echo "$XLIB_LOADABLE_I18N" >&6; } 21984 21985 if test x$XLIB_LOADABLE_I18N = xyes; then 21986 XLIB_LOADABLE_I18N_TRUE= 21987 XLIB_LOADABLE_I18N_FALSE='#' 21988else 21989 XLIB_LOADABLE_I18N_TRUE='#' 21990 XLIB_LOADABLE_I18N_FALSE= 21991fi 21992 21993 21994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if loadable Xcursor library support should be enabled" >&5 21995$as_echo_n "checking if loadable Xcursor library support should be enabled... " >&6; } 21996# Check whether --enable-loadable-xcursor was given. 21997if test "${enable_loadable_xcursor+set}" = set; then : 21998 enableval=$enable_loadable_xcursor; XLIB_LOADABLE_XCURSOR=$enableval 21999else 22000 XLIB_LOADABLE_XCURSOR=$HAVE_LOADABLE_MODULES 22001fi 22002 22003if test x$XLIB_LOADABLE_XCURSOR = xyes; then 22004 22005$as_echo "#define USE_DYNAMIC_XCURSOR 1" >>confdefs.h 22006 22007fi 22008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XLIB_LOADABLE_XCURSOR" >&5 22009$as_echo "$XLIB_LOADABLE_XCURSOR" >&6; } 22010 22011# Checks for header files. 22012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 22013$as_echo_n "checking for ANSI C header files... " >&6; } 22014if test "${ac_cv_header_stdc+set}" = set; then : 22015 $as_echo_n "(cached) " >&6 22016else 22017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22018/* end confdefs.h. */ 22019#include <stdlib.h> 22020#include <stdarg.h> 22021#include <string.h> 22022#include <float.h> 22023 22024int 22025main () 22026{ 22027 22028 ; 22029 return 0; 22030} 22031_ACEOF 22032if ac_fn_c_try_compile "$LINENO"; then : 22033 ac_cv_header_stdc=yes 22034else 22035 ac_cv_header_stdc=no 22036fi 22037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22038 22039if test $ac_cv_header_stdc = yes; then 22040 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 22041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22042/* end confdefs.h. */ 22043#include <string.h> 22044 22045_ACEOF 22046if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22047 $EGREP "memchr" >/dev/null 2>&1; then : 22048 22049else 22050 ac_cv_header_stdc=no 22051fi 22052rm -f conftest* 22053 22054fi 22055 22056if test $ac_cv_header_stdc = yes; then 22057 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 22058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22059/* end confdefs.h. */ 22060#include <stdlib.h> 22061 22062_ACEOF 22063if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22064 $EGREP "free" >/dev/null 2>&1; then : 22065 22066else 22067 ac_cv_header_stdc=no 22068fi 22069rm -f conftest* 22070 22071fi 22072 22073if test $ac_cv_header_stdc = yes; then 22074 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 22075 if test "$cross_compiling" = yes; then : 22076 : 22077else 22078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22079/* end confdefs.h. */ 22080#include <ctype.h> 22081#include <stdlib.h> 22082#if ((' ' & 0x0FF) == 0x020) 22083# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 22084# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 22085#else 22086# define ISLOWER(c) \ 22087 (('a' <= (c) && (c) <= 'i') \ 22088 || ('j' <= (c) && (c) <= 'r') \ 22089 || ('s' <= (c) && (c) <= 'z')) 22090# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 22091#endif 22092 22093#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 22094int 22095main () 22096{ 22097 int i; 22098 for (i = 0; i < 256; i++) 22099 if (XOR (islower (i), ISLOWER (i)) 22100 || toupper (i) != TOUPPER (i)) 22101 return 2; 22102 return 0; 22103} 22104_ACEOF 22105if ac_fn_c_try_run "$LINENO"; then : 22106 22107else 22108 ac_cv_header_stdc=no 22109fi 22110rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22111 conftest.$ac_objext conftest.beam conftest.$ac_ext 22112fi 22113 22114fi 22115fi 22116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 22117$as_echo "$ac_cv_header_stdc" >&6; } 22118if test $ac_cv_header_stdc = yes; then 22119 22120$as_echo "#define STDC_HEADERS 1" >>confdefs.h 22121 22122fi 22123 22124for ac_header in sys/select.h 22125do : 22126 ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" 22127if test "x$ac_cv_header_sys_select_h" = x""yes; then : 22128 cat >>confdefs.h <<_ACEOF 22129#define HAVE_SYS_SELECT_H 1 22130_ACEOF 22131 22132fi 22133 22134done 22135 22136 22137# Checks for typedefs, structures, and compiler characteristics. 22138 22139# Checks for library functions. 22140for ac_func in strtol 22141do : 22142 ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol" 22143if test "x$ac_cv_func_strtol" = x""yes; then : 22144 cat >>confdefs.h <<_ACEOF 22145#define HAVE_STRTOL 1 22146_ACEOF 22147 22148fi 22149done 22150 22151# Used in lcFile.c (see also --enable-xlocaledir settings below) 22152XLOCALEDIR_IS_SAFE="no" 22153ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid" 22154if test "x$ac_cv_func_issetugid" = x""yes; then : 22155 XLOCALEDIR_IS_SAFE="yes" 22156 22157$as_echo "#define HASSETUGID 1" >>confdefs.h 22158 22159fi 22160 22161ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid" 22162if test "x$ac_cv_func_getresuid" = x""yes; then : 22163 XLOCALEDIR_IS_SAFE="yes" 22164 22165$as_echo "#define HASGETRESUID 1" >>confdefs.h 22166 22167fi 22168 22169# Used in Font.c 22170ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 22171if test "x$ac_cv_func_shmat" = x""yes; then : 22172 22173$as_echo "#define HAS_SHM 1" >>confdefs.h 22174 22175fi 22176 22177 22178# Checks for system services 22179 22180# arch specific things 22181WCHAR32="1" 22182case $target_alias in 22183 *os2*) os2="true" ; WCHAR32="0" ;; 22184 *) ;; 22185esac 22186 22187 22188 if test x$os2 = xtrue; then 22189 OS2_TRUE= 22190 OS2_FALSE='#' 22191else 22192 OS2_TRUE='#' 22193 OS2_FALSE= 22194fi 22195 22196 22197 22198# Check whether --with-launchd was given. 22199if test "${with_launchd+set}" = set; then : 22200 withval=$with_launchd; LAUNCHD=$withval 22201else 22202 LAUNCHD=auto 22203fi 22204 22205if test "x$LAUNCHD" = xauto; then 22206 unset LAUNCHD 22207 # Extract the first word of "launchd", so it can be a program name with args. 22208set dummy launchd; ac_word=$2 22209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22210$as_echo_n "checking for $ac_word... " >&6; } 22211if test "${ac_cv_prog_LAUNCHD+set}" = set; then : 22212 $as_echo_n "(cached) " >&6 22213else 22214 if test -n "$LAUNCHD"; then 22215 ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test. 22216else 22217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22218for as_dir in $PATH 22219do 22220 IFS=$as_save_IFS 22221 test -z "$as_dir" && as_dir=. 22222 for ac_exec_ext in '' $ac_executable_extensions; do 22223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 22224 ac_cv_prog_LAUNCHD="yes" 22225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22226 break 2 22227 fi 22228done 22229 done 22230IFS=$as_save_IFS 22231 22232 test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no" 22233fi 22234fi 22235LAUNCHD=$ac_cv_prog_LAUNCHD 22236if test -n "$LAUNCHD"; then 22237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5 22238$as_echo "$LAUNCHD" >&6; } 22239else 22240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22241$as_echo "no" >&6; } 22242fi 22243 22244 22245fi 22246 22247if test "x$LAUNCHD" = xyes ; then 22248 22249$as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h 22250 22251 22252$as_echo "#define TRANS_REOPEN 1" >>confdefs.h 22253 22254fi 22255 22256# Check whether --enable-xthreads was given. 22257if test "${enable_xthreads+set}" = set; then : 22258 enableval=$enable_xthreads; xthreads=$enableval 22259else 22260 xthreads=yes 22261fi 22262 22263 22264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwuid_r in -lc" >&5 22265$as_echo_n "checking for getpwuid_r in -lc... " >&6; } 22266if test "${ac_cv_lib_c_getpwuid_r+set}" = set; then : 22267 $as_echo_n "(cached) " >&6 22268else 22269 ac_check_lib_save_LIBS=$LIBS 22270LIBS="-lc $LIBS" 22271cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22272/* end confdefs.h. */ 22273 22274/* Override any GCC internal prototype to avoid an error. 22275 Use char because int might match the return type of a GCC 22276 builtin and then its argument prototype would still apply. */ 22277#ifdef __cplusplus 22278extern "C" 22279#endif 22280char getpwuid_r (); 22281int 22282main () 22283{ 22284return getpwuid_r (); 22285 ; 22286 return 0; 22287} 22288_ACEOF 22289if ac_fn_c_try_link "$LINENO"; then : 22290 ac_cv_lib_c_getpwuid_r=yes 22291else 22292 ac_cv_lib_c_getpwuid_r=no 22293fi 22294rm -f core conftest.err conftest.$ac_objext \ 22295 conftest$ac_exeext conftest.$ac_ext 22296LIBS=$ac_check_lib_save_LIBS 22297fi 22298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getpwuid_r" >&5 22299$as_echo "$ac_cv_lib_c_getpwuid_r" >&6; } 22300if test "x$ac_cv_lib_c_getpwuid_r" = x""yes; then : 22301 mtsafeapi="yes" 22302else 22303 mtsafeapi="no" 22304fi 22305 22306 22307case x$xthreads in 22308xyes) 22309 22310$as_echo "#define XTHREADS 1" >>confdefs.h 22311 22312 if test x$mtsafeapi = xyes 22313 then 22314 22315$as_echo "#define XUSE_MTSAFE_API 1" >>confdefs.h 22316 22317 fi 22318 ;; 22319*) 22320 ;; 22321esac 22322 22323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lc" >&5 22324$as_echo_n "checking for pthread_self in -lc... " >&6; } 22325if test "${ac_cv_lib_c_pthread_self+set}" = set; then : 22326 $as_echo_n "(cached) " >&6 22327else 22328 ac_check_lib_save_LIBS=$LIBS 22329LIBS="-lc $LIBS" 22330cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22331/* end confdefs.h. */ 22332 22333/* Override any GCC internal prototype to avoid an error. 22334 Use char because int might match the return type of a GCC 22335 builtin and then its argument prototype would still apply. */ 22336#ifdef __cplusplus 22337extern "C" 22338#endif 22339char pthread_self (); 22340int 22341main () 22342{ 22343return pthread_self (); 22344 ; 22345 return 0; 22346} 22347_ACEOF 22348if ac_fn_c_try_link "$LINENO"; then : 22349 ac_cv_lib_c_pthread_self=yes 22350else 22351 ac_cv_lib_c_pthread_self=no 22352fi 22353rm -f core conftest.err conftest.$ac_objext \ 22354 conftest$ac_exeext conftest.$ac_ext 22355LIBS=$ac_check_lib_save_LIBS 22356fi 22357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_self" >&5 22358$as_echo "$ac_cv_lib_c_pthread_self" >&6; } 22359if test "x$ac_cv_lib_c_pthread_self" = x""yes; then : 22360 thrstubs="no" 22361else 22362 thrstubs="yes" 22363fi 22364 22365 if test x$thrstubs = xyes; then 22366 THRSTUBS_TRUE= 22367 THRSTUBS_FALSE='#' 22368else 22369 THRSTUBS_TRUE='#' 22370 THRSTUBS_FALSE= 22371fi 22372 22373 22374if test x$xthreads = xyes ; then 22375 case $host_os in 22376 linux*|openbsd*|gnu*|k*bsd*-gnu) 22377 XTHREADLIB=-lpthread ;; 22378 netbsd*) 22379 XTHREAD_CFLAGS="-D_POSIX_THREAD_SAFE_FUNCTIONS" 22380 XTHREADLIB="-lpthread" ;; 22381 freebsd*) 22382 XTHREAD_CFLAGS="-D_THREAD_SAFE" 22383 XTHREADLIB="-pthread" ;; 22384 dragonfly*) 22385 XTHREADLIB="-pthread" ;; 22386 solaris*) 22387 XTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" ;; 22388 esac 22389fi 22390 22391 22392 22393case x$xdmauth in 22394xyes) 22395 XDMCP_CFLAGS="$XDMCP_CFLAGS -DHASXDMAUTH" 22396 ;; 22397xno) 22398 XDMCP_LIBS="" 22399 ;; 22400esac 22401 22402 22403 22404ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 22405if test "x$ac_cv_func_poll" = x""yes; then : 22406 22407$as_echo "#define USE_POLL 1" >>confdefs.h 22408 22409fi 22410 22411 22412# 22413# Find keysymdef.h 22414# 22415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking keysymdef.h" >&5 22416$as_echo_n "checking keysymdef.h... " >&6; } 22417dir=`pkg-config --variable=includedir xproto` 22418KEYSYMDEF="$dir/X11/keysymdef.h" 22419if test -f "$KEYSYMDEF"; then 22420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KEYSYMDEF" >&5 22421$as_echo "$KEYSYMDEF" >&6; } 22422else 22423 as_fn_error "Cannot find keysymdef.h" "$LINENO" 5 22424fi 22425 22426 22427 if test xfalse = xtrue; then 22428 UDC_TRUE= 22429 UDC_FALSE='#' 22430else 22431 UDC_TRUE='#' 22432 UDC_FALSE= 22433fi 22434 22435 22436# Check whether --enable-xcms was given. 22437if test "${enable_xcms+set}" = set; then : 22438 enableval=$enable_xcms; XCMS=$enableval 22439else 22440 XCMS=yes 22441fi 22442 22443 if test x$XCMS = xyes ; then 22444 XCMS_TRUE= 22445 XCMS_FALSE='#' 22446else 22447 XCMS_TRUE='#' 22448 XCMS_FALSE= 22449fi 22450 22451if test x"$XCMS" = "xyes"; then 22452 22453$as_echo "#define XCMS 1" >>confdefs.h 22454 22455fi 22456 22457# Check whether --enable-xlocale was given. 22458if test "${enable_xlocale+set}" = set; then : 22459 enableval=$enable_xlocale; XLOCALE=$enableval 22460else 22461 XLOCALE=yes 22462fi 22463 22464 22465 if test x$XLOCALE = xyes ; then 22466 XLOCALE_TRUE= 22467 XLOCALE_FALSE='#' 22468else 22469 XLOCALE_TRUE='#' 22470 XLOCALE_FALSE= 22471fi 22472 22473if test x"$XLOCALE" = "xyes"; then 22474 22475$as_echo "#define XLOCALE 1" >>confdefs.h 22476 22477fi 22478 22479# This disables XLOCALEDIR. Set it if you're using BuildLoadableXlibI18n, 22480# don't have either issetugid() or getresuid(), and you need to protect 22481# clients that are setgid or setuid to an id other than 0. 22482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XLOCALEDIR support should be enabled" >&5 22483$as_echo_n "checking if XLOCALEDIR support should be enabled... " >&6; } 22484# Check whether --enable-xlocaledir was given. 22485if test "${enable_xlocaledir+set}" = set; then : 22486 enableval=$enable_xlocaledir; ENABLE_XLOCALEDIR=$enableval 22487else 22488 ENABLE_XLOCALEDIR=$XLOCALEDIR_IS_SAFE 22489fi 22490 22491if test "x$ENABLE_XLOCALEDIR" = "xno"; then 22492 22493$as_echo "#define NO_XLOCALEDIR 1" >>confdefs.h 22494 22495fi 22496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_XLOCALEDIR" >&5 22497$as_echo "$ENABLE_XLOCALEDIR" >&6; } 22498 22499# Check whether --enable-xf86bigfont was given. 22500if test "${enable_xf86bigfont+set}" = set; then : 22501 enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval 22502else 22503 XF86BIGFONT="yes" 22504fi 22505 22506if test "x$XF86BIGFONT" = "xyes"; then 22507 22508pkg_failed=no 22509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BIGFONT" >&5 22510$as_echo_n "checking for BIGFONT... " >&6; } 22511 22512if test -n "$BIGFONT_CFLAGS"; then 22513 pkg_cv_BIGFONT_CFLAGS="$BIGFONT_CFLAGS" 22514 elif test -n "$PKG_CONFIG"; then 22515 if test -n "$PKG_CONFIG" && \ 22516 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto\""; } >&5 22517 ($PKG_CONFIG --exists --print-errors "xf86bigfontproto") 2>&5 22518 ac_status=$? 22519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22520 test $ac_status = 0; }; then 22521 pkg_cv_BIGFONT_CFLAGS=`$PKG_CONFIG --cflags "xf86bigfontproto" 2>/dev/null` 22522else 22523 pkg_failed=yes 22524fi 22525 else 22526 pkg_failed=untried 22527fi 22528if test -n "$BIGFONT_LIBS"; then 22529 pkg_cv_BIGFONT_LIBS="$BIGFONT_LIBS" 22530 elif test -n "$PKG_CONFIG"; then 22531 if test -n "$PKG_CONFIG" && \ 22532 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86bigfontproto\""; } >&5 22533 ($PKG_CONFIG --exists --print-errors "xf86bigfontproto") 2>&5 22534 ac_status=$? 22535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22536 test $ac_status = 0; }; then 22537 pkg_cv_BIGFONT_LIBS=`$PKG_CONFIG --libs "xf86bigfontproto" 2>/dev/null` 22538else 22539 pkg_failed=yes 22540fi 22541 else 22542 pkg_failed=untried 22543fi 22544 22545 22546 22547if test $pkg_failed = yes; then 22548 22549if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 22550 _pkg_short_errors_supported=yes 22551else 22552 _pkg_short_errors_supported=no 22553fi 22554 if test $_pkg_short_errors_supported = yes; then 22555 BIGFONT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xf86bigfontproto" 2>&1` 22556 else 22557 BIGFONT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xf86bigfontproto" 2>&1` 22558 fi 22559 # Put the nasty error message in config.log where it belongs 22560 echo "$BIGFONT_PKG_ERRORS" >&5 22561 22562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22563$as_echo "no" >&6; } 22564 XF86BIGFONT="no" 22565elif test $pkg_failed = untried; then 22566 XF86BIGFONT="no" 22567else 22568 BIGFONT_CFLAGS=$pkg_cv_BIGFONT_CFLAGS 22569 BIGFONT_LIBS=$pkg_cv_BIGFONT_LIBS 22570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22571$as_echo "yes" >&6; } 22572 22573$as_echo "#define XF86BIGFONT 1" >>confdefs.h 22574 22575fi 22576 22577 22578fi 22579 22580# Check whether --enable-xkb was given. 22581if test "${enable_xkb+set}" = set; then : 22582 enableval=$enable_xkb; XKB=$enableval 22583else 22584 XKB=yes 22585fi 22586 22587 22588# Check whether --enable-man-pages was given. 22589if test "${enable_man_pages+set}" = set; then : 22590 enableval=$enable_man_pages; LIBMAN=$enableval 22591else 22592 LIBMAN=yes 22593fi 22594 22595 22596if test "x$LIBMAN" != "xyes"; then 22597 LIB_MAN_SUFFIX=$LIBMAN 22598fi 22599 22600 if test x$LIBMAN '!=' xno ; then 22601 MANPAGES_TRUE= 22602 MANPAGES_FALSE='#' 22603else 22604 MANPAGES_TRUE='#' 22605 MANPAGES_FALSE= 22606fi 22607 22608 22609 if test x$XKB = xyes ; then 22610 XKB_TRUE= 22611 XKB_FALSE='#' 22612else 22613 XKB_TRUE='#' 22614 XKB_FALSE= 22615fi 22616 22617if test x"$XKB" = "xyes"; then 22618 XKBPROTO_REQUIRES="kbproto" 22619 X11_REQUIRES="${X11_REQUIRES} kbproto inputproto" 22620 22621$as_echo "#define XKB 1" >>confdefs.h 22622 22623else 22624 XKBPROTO_REQUIRES="" 22625fi 22626 22627 22628 22629 22630 22631 for ac_header in $ac_header_list 22632do : 22633 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 22634ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 22635" 22636eval as_val=\$$as_ac_Header 22637 if test "x$as_val" = x""yes; then : 22638 cat >>confdefs.h <<_ACEOF 22639#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 22640_ACEOF 22641 22642fi 22643 22644done 22645 22646 22647 22648 22649 22650 22651 22652 22653for ac_func in getpagesize 22654do : 22655 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 22656if test "x$ac_cv_func_getpagesize" = x""yes; then : 22657 cat >>confdefs.h <<_ACEOF 22658#define HAVE_GETPAGESIZE 1 22659_ACEOF 22660 22661fi 22662done 22663 22664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 22665$as_echo_n "checking for working mmap... " >&6; } 22666if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : 22667 $as_echo_n "(cached) " >&6 22668else 22669 if test "$cross_compiling" = yes; then : 22670 ac_cv_func_mmap_fixed_mapped=no 22671else 22672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22673/* end confdefs.h. */ 22674$ac_includes_default 22675/* malloc might have been renamed as rpl_malloc. */ 22676#undef malloc 22677 22678/* Thanks to Mike Haertel and Jim Avera for this test. 22679 Here is a matrix of mmap possibilities: 22680 mmap private not fixed 22681 mmap private fixed at somewhere currently unmapped 22682 mmap private fixed at somewhere already mapped 22683 mmap shared not fixed 22684 mmap shared fixed at somewhere currently unmapped 22685 mmap shared fixed at somewhere already mapped 22686 For private mappings, we should verify that changes cannot be read() 22687 back from the file, nor mmap's back from the file at a different 22688 address. (There have been systems where private was not correctly 22689 implemented like the infamous i386 svr4.0, and systems where the 22690 VM page cache was not coherent with the file system buffer cache 22691 like early versions of FreeBSD and possibly contemporary NetBSD.) 22692 For shared mappings, we should conversely verify that changes get 22693 propagated back to all the places they're supposed to be. 22694 22695 Grep wants private fixed already mapped. 22696 The main things grep needs to know about mmap are: 22697 * does it exist and is it safe to write into the mmap'd area 22698 * how to use it (BSD variants) */ 22699 22700#include <fcntl.h> 22701#include <sys/mman.h> 22702 22703#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 22704char *malloc (); 22705#endif 22706 22707/* This mess was copied from the GNU getpagesize.h. */ 22708#ifndef HAVE_GETPAGESIZE 22709# ifdef _SC_PAGESIZE 22710# define getpagesize() sysconf(_SC_PAGESIZE) 22711# else /* no _SC_PAGESIZE */ 22712# ifdef HAVE_SYS_PARAM_H 22713# include <sys/param.h> 22714# ifdef EXEC_PAGESIZE 22715# define getpagesize() EXEC_PAGESIZE 22716# else /* no EXEC_PAGESIZE */ 22717# ifdef NBPG 22718# define getpagesize() NBPG * CLSIZE 22719# ifndef CLSIZE 22720# define CLSIZE 1 22721# endif /* no CLSIZE */ 22722# else /* no NBPG */ 22723# ifdef NBPC 22724# define getpagesize() NBPC 22725# else /* no NBPC */ 22726# ifdef PAGESIZE 22727# define getpagesize() PAGESIZE 22728# endif /* PAGESIZE */ 22729# endif /* no NBPC */ 22730# endif /* no NBPG */ 22731# endif /* no EXEC_PAGESIZE */ 22732# else /* no HAVE_SYS_PARAM_H */ 22733# define getpagesize() 8192 /* punt totally */ 22734# endif /* no HAVE_SYS_PARAM_H */ 22735# endif /* no _SC_PAGESIZE */ 22736 22737#endif /* no HAVE_GETPAGESIZE */ 22738 22739int 22740main () 22741{ 22742 char *data, *data2, *data3; 22743 int i, pagesize; 22744 int fd, fd2; 22745 22746 pagesize = getpagesize (); 22747 22748 /* First, make a file with some known garbage in it. */ 22749 data = (char *) malloc (pagesize); 22750 if (!data) 22751 return 1; 22752 for (i = 0; i < pagesize; ++i) 22753 *(data + i) = rand (); 22754 umask (0); 22755 fd = creat ("conftest.mmap", 0600); 22756 if (fd < 0) 22757 return 2; 22758 if (write (fd, data, pagesize) != pagesize) 22759 return 3; 22760 close (fd); 22761 22762 /* Next, check that the tail of a page is zero-filled. File must have 22763 non-zero length, otherwise we risk SIGBUS for entire page. */ 22764 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 22765 if (fd2 < 0) 22766 return 4; 22767 data2 = ""; 22768 if (write (fd2, data2, 1) != 1) 22769 return 5; 22770 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 22771 if (data2 == MAP_FAILED) 22772 return 6; 22773 for (i = 0; i < pagesize; ++i) 22774 if (*(data2 + i)) 22775 return 7; 22776 close (fd2); 22777 if (munmap (data2, pagesize)) 22778 return 8; 22779 22780 /* Next, try to mmap the file at a fixed address which already has 22781 something else allocated at it. If we can, also make sure that 22782 we see the same garbage. */ 22783 fd = open ("conftest.mmap", O_RDWR); 22784 if (fd < 0) 22785 return 9; 22786 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 22787 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 22788 return 10; 22789 for (i = 0; i < pagesize; ++i) 22790 if (*(data + i) != *(data2 + i)) 22791 return 11; 22792 22793 /* Finally, make sure that changes to the mapped area do not 22794 percolate back to the file as seen by read(). (This is a bug on 22795 some variants of i386 svr4.0.) */ 22796 for (i = 0; i < pagesize; ++i) 22797 *(data2 + i) = *(data2 + i) + 1; 22798 data3 = (char *) malloc (pagesize); 22799 if (!data3) 22800 return 12; 22801 if (read (fd, data3, pagesize) != pagesize) 22802 return 13; 22803 for (i = 0; i < pagesize; ++i) 22804 if (*(data + i) != *(data3 + i)) 22805 return 14; 22806 close (fd); 22807 return 0; 22808} 22809_ACEOF 22810if ac_fn_c_try_run "$LINENO"; then : 22811 ac_cv_func_mmap_fixed_mapped=yes 22812else 22813 ac_cv_func_mmap_fixed_mapped=no 22814fi 22815rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22816 conftest.$ac_objext conftest.beam conftest.$ac_ext 22817fi 22818 22819fi 22820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 22821$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 22822if test $ac_cv_func_mmap_fixed_mapped = yes; then 22823 22824$as_echo "#define HAVE_MMAP 1" >>confdefs.h 22825 22826fi 22827rm -f conftest.mmap conftest.txt 22828 22829composecache_default=$ac_cv_func_mmap_fixed_mapped 22830ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo" 22831if test "x$ac_cv_func_nl_langinfo" = x""yes; then : 22832 22833else 22834 composecache_default=no 22835fi 22836 22837# Check whether --enable-composecache was given. 22838if test "${enable_composecache+set}" = set; then : 22839 enableval=$enable_composecache; COMPOSECACHE=$enableval 22840else 22841 COMPOSECACHE=$composecache_default 22842fi 22843 22844if test x"$COMPOSECACHE" = "xyes"; then 22845 22846$as_echo "#define COMPOSECACHE 1" >>confdefs.h 22847 22848fi 22849 22850 22851 22852# Allow checking code with lint, sparse, etc. 22853 22854# Check whether --with-lint was given. 22855if test "${with_lint+set}" = set; then : 22856 withval=$with_lint; use_lint=$withval 22857else 22858 use_lint=no 22859fi 22860 22861if test "x$use_lint" = "xyes" ; then 22862 LINT="lint" 22863else 22864 LINT="$use_lint" 22865fi 22866if test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then 22867 case $LINT in 22868 lint|*/lint) 22869 case $host_os in 22870 solaris*) 22871 LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 22872 ;; 22873 esac 22874 ;; 22875 esac 22876fi 22877 22878 22879 22880 if test x$LINT != xno; then 22881 LINT_TRUE= 22882 LINT_FALSE='#' 22883else 22884 LINT_TRUE='#' 22885 LINT_FALSE= 22886fi 22887 22888 22889 22890 22891 22892# Build lint "library" for more indepth checks of programs calling this library 22893# Check whether --enable-lint-library was given. 22894if test "${enable_lint_library+set}" = set; then : 22895 enableval=$enable_lint_library; make_lint_lib=$enableval 22896else 22897 make_lint_lib=no 22898fi 22899 22900if test "x$make_lint_lib" != "xno" ; then 22901 if test "x$LINT" = "xno" ; then 22902 as_fn_error "Cannot make lint library without --with-lint" "$LINENO" 5 22903 fi 22904 if test "x$make_lint_lib" = "xyes" ; then 22905 LINTLIB=llib-lX11.ln 22906 else 22907 LINTLIB=$make_lint_lib 22908 fi 22909fi 22910 22911 if test x$make_lint_lib != xno; then 22912 MAKE_LINT_LIB_TRUE= 22913 MAKE_LINT_LIB_FALSE='#' 22914else 22915 MAKE_LINT_LIB_TRUE='#' 22916 MAKE_LINT_LIB_FALSE= 22917fi 22918 22919 22920 22921 22922X11_DATADIR="${datadir}/X11" 22923 22924 prefix_NONE= 22925 exec_prefix_NONE= 22926 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 22927 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 22928 eval ac_define_dir="\"$X11_DATADIR\"" 22929 eval ac_define_dir="\"$ac_define_dir\"" 22930 X11_DATADIR="$ac_define_dir" 22931 22932 22933cat >>confdefs.h <<_ACEOF 22934#define X11_DATADIR "$ac_define_dir" 22935_ACEOF 22936 22937 test "$prefix_NONE" && prefix=NONE 22938 test "$exec_prefix_NONE" && exec_prefix=NONE 22939 22940 22941 22942X11_LIBDIR="${libdir}/X11" 22943 22944 prefix_NONE= 22945 exec_prefix_NONE= 22946 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 22947 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 22948 eval ac_define_dir="\"$X11_LIBDIR\"" 22949 eval ac_define_dir="\"$ac_define_dir\"" 22950 X11_LIBDIR="$ac_define_dir" 22951 22952 22953cat >>confdefs.h <<_ACEOF 22954#define X11_LIBDIR "$ac_define_dir" 22955_ACEOF 22956 22957 test "$prefix_NONE" && prefix=NONE 22958 test "$exec_prefix_NONE" && exec_prefix=NONE 22959 22960 22961 22962 22963pkg_failed=no 22964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5 22965$as_echo_n "checking for X11... " >&6; } 22966 22967if test -n "$X11_CFLAGS"; then 22968 pkg_cv_X11_CFLAGS="$X11_CFLAGS" 22969 elif test -n "$PKG_CONFIG"; then 22970 if test -n "$PKG_CONFIG" && \ 22971 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5 22972 ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5 22973 ac_status=$? 22974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22975 test $ac_status = 0; }; then 22976 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "$X11_REQUIRES" 2>/dev/null` 22977else 22978 pkg_failed=yes 22979fi 22980 else 22981 pkg_failed=untried 22982fi 22983if test -n "$X11_LIBS"; then 22984 pkg_cv_X11_LIBS="$X11_LIBS" 22985 elif test -n "$PKG_CONFIG"; then 22986 if test -n "$PKG_CONFIG" && \ 22987 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$X11_REQUIRES\""; } >&5 22988 ($PKG_CONFIG --exists --print-errors "$X11_REQUIRES") 2>&5 22989 ac_status=$? 22990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22991 test $ac_status = 0; }; then 22992 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "$X11_REQUIRES" 2>/dev/null` 22993else 22994 pkg_failed=yes 22995fi 22996 else 22997 pkg_failed=untried 22998fi 22999 23000 23001 23002if test $pkg_failed = yes; then 23003 23004if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 23005 _pkg_short_errors_supported=yes 23006else 23007 _pkg_short_errors_supported=no 23008fi 23009 if test $_pkg_short_errors_supported = yes; then 23010 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$X11_REQUIRES" 2>&1` 23011 else 23012 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors "$X11_REQUIRES" 2>&1` 23013 fi 23014 # Put the nasty error message in config.log where it belongs 23015 echo "$X11_PKG_ERRORS" >&5 23016 23017 as_fn_error "Package requirements ($X11_REQUIRES) were not met: 23018 23019$X11_PKG_ERRORS 23020 23021Consider adjusting the PKG_CONFIG_PATH environment variable if you 23022installed software in a non-standard prefix. 23023 23024Alternatively, you may set the environment variables X11_CFLAGS 23025and X11_LIBS to avoid the need to call pkg-config. 23026See the pkg-config man page for more details. 23027" "$LINENO" 5 23028elif test $pkg_failed = untried; then 23029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23030$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23031as_fn_error "The pkg-config script could not be found or is too old. Make sure it 23032is in your PATH or set the PKG_CONFIG environment variable to the full 23033path to pkg-config. 23034 23035Alternatively, you may set the environment variables X11_CFLAGS 23036and X11_LIBS to avoid the need to call pkg-config. 23037See the pkg-config man page for more details. 23038 23039To get pkg-config, see <http://pkg-config.freedesktop.org/>. 23040See \`config.log' for more details." "$LINENO" 5; } 23041else 23042 X11_CFLAGS=$pkg_cv_X11_CFLAGS 23043 X11_LIBS=$pkg_cv_X11_LIBS 23044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23045$as_echo "yes" >&6; } 23046 : 23047fi 23048X11_CFLAGS="$CWARNFLAGS $X11_CFLAGS $XTHREAD_CFLAGS" 23049 23050 23051 23052# 23053# Yes, it would be nice to put the locale data in 23054# /usr/share, but the locale stuff includes loadable 23055# libraries which must be located in the same directory 23056# as the other locale data, so for now, everything lives 23057# in ${libdir} 23058# 23059 23060X11_LOCALEDATADIR="${X11_DATADIR}/locale" 23061 23062 prefix_NONE= 23063 exec_prefix_NONE= 23064 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 23065 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 23066 eval ac_define_dir="\"$X11_LOCALEDATADIR\"" 23067 eval ac_define_dir="\"$ac_define_dir\"" 23068 XLOCALEDATADIR="$ac_define_dir" 23069 23070 23071cat >>confdefs.h <<_ACEOF 23072#define XLOCALEDATADIR "$ac_define_dir" 23073_ACEOF 23074 23075 test "$prefix_NONE" && prefix=NONE 23076 test "$exec_prefix_NONE" && exec_prefix=NONE 23077 23078 23079 23080 23081# Check whether --with-locale-lib-dir was given. 23082if test "${with_locale_lib_dir+set}" = set; then : 23083 withval=$with_locale_lib_dir; X11_LOCALELIBDIR="$withval" 23084else 23085 X11_LOCALELIBDIR="${X11_LIBDIR}/locale" 23086fi 23087 23088 23089 prefix_NONE= 23090 exec_prefix_NONE= 23091 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 23092 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 23093 eval ac_define_dir="\"$X11_LOCALELIBDIR\"" 23094 eval ac_define_dir="\"$ac_define_dir\"" 23095 XLOCALELIBDIR="$ac_define_dir" 23096 23097 23098cat >>confdefs.h <<_ACEOF 23099#define XLOCALELIBDIR "$ac_define_dir" 23100_ACEOF 23101 23102 test "$prefix_NONE" && prefix=NONE 23103 test "$exec_prefix_NONE" && exec_prefix=NONE 23104 23105 23106 23107X11_LOCALEDIR="${X11_LOCALEDATADIR}" 23108 23109 prefix_NONE= 23110 exec_prefix_NONE= 23111 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 23112 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 23113 eval ac_define_dir="\"$X11_LOCALEDIR\"" 23114 eval ac_define_dir="\"$ac_define_dir\"" 23115 XLOCALEDIR="$ac_define_dir" 23116 23117 23118cat >>confdefs.h <<_ACEOF 23119#define XLOCALEDIR "$ac_define_dir" 23120_ACEOF 23121 23122 test "$prefix_NONE" && prefix=NONE 23123 test "$exec_prefix_NONE" && exec_prefix=NONE 23124 23125 23126 23127XKEYSYMDB="${X11_DATADIR}/XKeysymDB" 23128 23129 prefix_NONE= 23130 exec_prefix_NONE= 23131 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 23132 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 23133 eval ac_define_dir="\"$XKEYSYMDB\"" 23134 eval ac_define_dir="\"$ac_define_dir\"" 23135 XKEYSYMDB="$ac_define_dir" 23136 23137 23138cat >>confdefs.h <<_ACEOF 23139#define XKEYSYMDB "$ac_define_dir" 23140_ACEOF 23141 23142 test "$prefix_NONE" && prefix=NONE 23143 test "$exec_prefix_NONE" && exec_prefix=NONE 23144 23145 23146XERRORDB="${X11_DATADIR}/XErrorDB" 23147 23148 prefix_NONE= 23149 exec_prefix_NONE= 23150 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 23151 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 23152 eval ac_define_dir="\"$XERRORDB\"" 23153 eval ac_define_dir="\"$ac_define_dir\"" 23154 XERRORDB="$ac_define_dir" 23155 23156 23157cat >>confdefs.h <<_ACEOF 23158#define XERRORDB "$ac_define_dir" 23159_ACEOF 23160 23161 test "$prefix_NONE" && prefix=NONE 23162 test "$exec_prefix_NONE" && exec_prefix=NONE 23163 23164 23165 23166# Check whether --enable-malloc0returnsnull was given. 23167if test "${enable_malloc0returnsnull+set}" = set; then : 23168 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 23169else 23170 MALLOC_ZERO_RETURNS_NULL=auto 23171fi 23172 23173 23174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5 23175$as_echo_n "checking whether malloc(0) returns NULL... " >&6; } 23176if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 23177 if test "$cross_compiling" = yes; then : 23178 MALLOC_ZERO_RETURNS_NULL=yes 23179else 23180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23181/* end confdefs.h. */ 23182 23183char *malloc(); 23184char *realloc(); 23185char *calloc(); 23186main() { 23187 char *m0, *r0, *c0, *p; 23188 m0 = malloc(0); 23189 p = malloc(10); 23190 r0 = realloc(p,0); 23191 c0 = calloc(0); 23192 exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1); 23193} 23194_ACEOF 23195if ac_fn_c_try_run "$LINENO"; then : 23196 MALLOC_ZERO_RETURNS_NULL=yes 23197else 23198 MALLOC_ZERO_RETURNS_NULL=no 23199fi 23200rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23201 conftest.$ac_objext conftest.beam conftest.$ac_ext 23202fi 23203 23204fi 23205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 23206$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; } 23207 23208if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 23209 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 23210 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 23211 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 23212else 23213 MALLOC_ZERO_CFLAGS="" 23214 XMALLOC_ZERO_CFLAGS="" 23215 XTMALLOC_ZERO_CFLAGS="" 23216fi 23217 23218 23219 23220 23221 23222 23223# Specification documents are currently provided in troff format 23224 23225for ac_prog in groff 23226do 23227 # Extract the first word of "$ac_prog", so it can be a program name with args. 23228set dummy $ac_prog; ac_word=$2 23229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23230$as_echo_n "checking for $ac_word... " >&6; } 23231if test "${ac_cv_path_GROFF+set}" = set; then : 23232 $as_echo_n "(cached) " >&6 23233else 23234 case $GROFF in 23235 [\\/]* | ?:[\\/]*) 23236 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. 23237 ;; 23238 *) 23239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23240as_dummy="$PATH:/usr/gnu/bin" 23241for as_dir in $as_dummy 23242do 23243 IFS=$as_save_IFS 23244 test -z "$as_dir" && as_dir=. 23245 for ac_exec_ext in '' $ac_executable_extensions; do 23246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 23247 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" 23248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23249 break 2 23250 fi 23251done 23252 done 23253IFS=$as_save_IFS 23254 23255 ;; 23256esac 23257fi 23258GROFF=$ac_cv_path_GROFF 23259if test -n "$GROFF"; then 23260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5 23261$as_echo "$GROFF" >&6; } 23262else 23263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23264$as_echo "no" >&6; } 23265fi 23266 23267 23268 test -n "$GROFF" && break 23269done 23270test -n "$GROFF" || GROFF="none" 23271 23272 23273 23274for ac_prog in ps2pdf 23275do 23276 # Extract the first word of "$ac_prog", so it can be a program name with args. 23277set dummy $ac_prog; ac_word=$2 23278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23279$as_echo_n "checking for $ac_word... " >&6; } 23280if test "${ac_cv_path_PS2PDF+set}" = set; then : 23281 $as_echo_n "(cached) " >&6 23282else 23283 case $PS2PDF in 23284 [\\/]* | ?:[\\/]*) 23285 ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path. 23286 ;; 23287 *) 23288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23289as_dummy="$PATH:/usr/gnu/bin" 23290for as_dir in $as_dummy 23291do 23292 IFS=$as_save_IFS 23293 test -z "$as_dir" && as_dir=. 23294 for ac_exec_ext in '' $ac_executable_extensions; do 23295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 23296 ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext" 23297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23298 break 2 23299 fi 23300done 23301 done 23302IFS=$as_save_IFS 23303 23304 ;; 23305esac 23306fi 23307PS2PDF=$ac_cv_path_PS2PDF 23308if test -n "$PS2PDF"; then 23309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS2PDF" >&5 23310$as_echo "$PS2PDF" >&6; } 23311else 23312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23313$as_echo "no" >&6; } 23314fi 23315 23316 23317 test -n "$PS2PDF" && break 23318done 23319test -n "$PS2PDF" || PS2PDF="none" 23320 23321 23322if test "x${GROFF}" != xnone ; then 23323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${GROFF} -ms works" >&5 23324$as_echo_n "checking whether ${GROFF} -ms works... " >&6; } 23325 if ${GROFF} -ms -I. /dev/null >/dev/null 2>&1 ; then 23326 groff_ms_works=yes 23327 else 23328 groff_ms_works=no 23329 GROFF=none 23330 fi 23331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${groff_ms_works}" >&5 23332$as_echo "${groff_ms_works}" >&6; } 23333fi 23334 23335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build specifications" >&5 23336$as_echo_n "checking whether to build specifications... " >&6; } 23337# Check whether --enable-specs was given. 23338if test "${enable_specs+set}" = set; then : 23339 enableval=$enable_specs; build_specs="${enableval}" 23340else 23341 build_specs="auto" 23342fi 23343 23344 23345if test "x${build_specs}" = xauto; then 23346 if test "x${GROFF}" = xnone ; then 23347 build_specs=no 23348 else 23349 build_specs=yes 23350 fi 23351fi 23352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${build_specs}" >&5 23353$as_echo "${build_specs}" >&6; } 23354if test "x${build_specs}" = xyes && test "x${GROFF}" = xnone ; then 23355 as_fn_error "can't build documentation without groff" "$LINENO" 5 23356fi 23357 23358 if test x$build_specs = xyes; then 23359 BUILD_SPECS_TRUE= 23360 BUILD_SPECS_FALSE='#' 23361else 23362 BUILD_SPECS_TRUE='#' 23363 BUILD_SPECS_FALSE= 23364fi 23365 23366 if test x$PS2PDF != xnone; then 23367 HAVE_PS2PDF_TRUE= 23368 HAVE_PS2PDF_FALSE='#' 23369else 23370 HAVE_PS2PDF_TRUE='#' 23371 HAVE_PS2PDF_FALSE= 23372fi 23373 23374 23375 23376ac_config_files="$ac_config_files Makefile include/Makefile man/Makefile man/xkb/Makefile src/Makefile src/util/Makefile src/xcms/Makefile src/xlibi18n/Makefile modules/Makefile modules/im/Makefile modules/im/ximcp/Makefile modules/lc/Makefile modules/lc/def/Makefile modules/lc/gen/Makefile modules/lc/Utf8/Makefile modules/lc/xlocale/Makefile modules/om/Makefile modules/om/generic/Makefile src/xkb/Makefile nls/Makefile nls/am_ET.UTF-8/Makefile nls/armscii-8/Makefile nls/C/Makefile nls/el_GR.UTF-8/Makefile nls/en_US.UTF-8/Makefile nls/fi_FI.UTF-8/Makefile nls/georgian-academy/Makefile nls/georgian-ps/Makefile nls/ibm-cp1133/Makefile nls/iscii-dev/Makefile nls/isiri-3342/Makefile nls/iso8859-1/Makefile nls/iso8859-10/Makefile nls/iso8859-11/Makefile nls/iso8859-13/Makefile nls/iso8859-14/Makefile nls/iso8859-15/Makefile nls/iso8859-2/Makefile nls/iso8859-3/Makefile nls/iso8859-4/Makefile nls/iso8859-5/Makefile nls/iso8859-6/Makefile nls/iso8859-7/Makefile nls/iso8859-8/Makefile nls/iso8859-9/Makefile nls/iso8859-9e/Makefile nls/ja/Makefile nls/ja.JIS/Makefile nls/ja_JP.UTF-8/Makefile nls/ja.S90/Makefile nls/ja.SJIS/Makefile nls/ja.U90/Makefile nls/ko/Makefile nls/koi8-c/Makefile nls/koi8-r/Makefile nls/koi8-u/Makefile nls/ko_KR.UTF-8/Makefile nls/microsoft-cp1251/Makefile nls/microsoft-cp1255/Makefile nls/microsoft-cp1256/Makefile nls/mulelao-1/Makefile nls/nokhchi-1/Makefile nls/pt_BR.UTF-8/Makefile nls/ru_RU.UTF-8/Makefile nls/tatar-cyr/Makefile nls/th_TH/Makefile nls/th_TH.UTF-8/Makefile nls/tscii-0/Makefile nls/vi_VN.tcvn/Makefile nls/vi_VN.viscii/Makefile nls/zh_CN/Makefile nls/zh_CN.gb18030/Makefile nls/zh_CN.gbk/Makefile nls/zh_CN.UTF-8/Makefile nls/zh_HK.big5/Makefile nls/zh_HK.big5hkscs/Makefile nls/zh_HK.UTF-8/Makefile nls/zh_TW/Makefile nls/zh_TW.big5/Makefile nls/zh_TW.UTF-8/Makefile specs/Makefile specs/i18n/Makefile specs/libX11/Makefile specs/XIM/Makefile x11.pc x11-xcb.pc" 23377 23378cat >confcache <<\_ACEOF 23379# This file is a shell script that caches the results of configure 23380# tests run on this system so they can be shared between configure 23381# scripts and configure runs, see configure's option --config-cache. 23382# It is not useful on other systems. If it contains results you don't 23383# want to keep, you may remove or edit it. 23384# 23385# config.status only pays attention to the cache file if you give it 23386# the --recheck option to rerun configure. 23387# 23388# `ac_cv_env_foo' variables (set or unset) will be overridden when 23389# loading this file, other *unset* `ac_cv_foo' will be assigned the 23390# following values. 23391 23392_ACEOF 23393 23394# The following way of writing the cache mishandles newlines in values, 23395# but we know of no workaround that is simple, portable, and efficient. 23396# So, we kill variables containing newlines. 23397# Ultrix sh set writes to stderr and can't be redirected directly, 23398# and sets the high bit in the cache file unless we assign to the vars. 23399( 23400 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 23401 eval ac_val=\$$ac_var 23402 case $ac_val in #( 23403 *${as_nl}*) 23404 case $ac_var in #( 23405 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 23406$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 23407 esac 23408 case $ac_var in #( 23409 _ | IFS | as_nl) ;; #( 23410 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 23411 *) { eval $ac_var=; unset $ac_var;} ;; 23412 esac ;; 23413 esac 23414 done 23415 23416 (set) 2>&1 | 23417 case $as_nl`(ac_space=' '; set) 2>&1` in #( 23418 *${as_nl}ac_space=\ *) 23419 # `set' does not quote correctly, so add quotes: double-quote 23420 # substitution turns \\\\ into \\, and sed turns \\ into \. 23421 sed -n \ 23422 "s/'/'\\\\''/g; 23423 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 23424 ;; #( 23425 *) 23426 # `set' quotes correctly as required by POSIX, so do not add quotes. 23427 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 23428 ;; 23429 esac | 23430 sort 23431) | 23432 sed ' 23433 /^ac_cv_env_/b end 23434 t clear 23435 :clear 23436 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 23437 t end 23438 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 23439 :end' >>confcache 23440if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 23441 if test -w "$cache_file"; then 23442 test "x$cache_file" != "x/dev/null" && 23443 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 23444$as_echo "$as_me: updating cache $cache_file" >&6;} 23445 cat confcache >$cache_file 23446 else 23447 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 23448$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 23449 fi 23450fi 23451rm -f confcache 23452 23453test "x$prefix" = xNONE && prefix=$ac_default_prefix 23454# Let make expand exec_prefix. 23455test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 23456 23457DEFS=-DHAVE_CONFIG_H 23458 23459ac_libobjs= 23460ac_ltlibobjs= 23461for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 23462 # 1. Remove the extension, and $U if already installed. 23463 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 23464 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 23465 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 23466 # will be set to the directory where LIBOBJS objects are built. 23467 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 23468 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 23469done 23470LIBOBJS=$ac_libobjs 23471 23472LTLIBOBJS=$ac_ltlibobjs 23473 23474 23475 if test -n "$EXEEXT"; then 23476 am__EXEEXT_TRUE= 23477 am__EXEEXT_FALSE='#' 23478else 23479 am__EXEEXT_TRUE='#' 23480 am__EXEEXT_FALSE= 23481fi 23482 23483if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 23484 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. 23485Usually this means the macro was only invoked conditionally." "$LINENO" 5 23486fi 23487if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 23488 as_fn_error "conditional \"AMDEP\" was never defined. 23489Usually this means the macro was only invoked conditionally." "$LINENO" 5 23490fi 23491if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 23492 as_fn_error "conditional \"am__fastdepCC\" was never defined. 23493Usually this means the macro was only invoked conditionally." "$LINENO" 5 23494fi 23495if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 23496 as_fn_error "conditional \"am__fastdepCXX\" was never defined. 23497Usually this means the macro was only invoked conditionally." "$LINENO" 5 23498fi 23499if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 23500 as_fn_error "conditional \"am__fastdepCC\" was never defined. 23501Usually this means the macro was only invoked conditionally." "$LINENO" 5 23502fi 23503if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then 23504 as_fn_error "conditional \"HAVE_PERL\" was never defined. 23505Usually this means the macro was only invoked conditionally." "$LINENO" 5 23506fi 23507if test -z "${XCB_TRUE}" && test -z "${XCB_FALSE}"; then 23508 as_fn_error "conditional \"XCB\" was never defined. 23509Usually this means the macro was only invoked conditionally." "$LINENO" 5 23510fi 23511if test -z "${XLIB_LOADABLE_I18N_TRUE}" && test -z "${XLIB_LOADABLE_I18N_FALSE}"; then 23512 as_fn_error "conditional \"XLIB_LOADABLE_I18N\" was never defined. 23513Usually this means the macro was only invoked conditionally." "$LINENO" 5 23514fi 23515if test -z "${OS2_TRUE}" && test -z "${OS2_FALSE}"; then 23516 as_fn_error "conditional \"OS2\" was never defined. 23517Usually this means the macro was only invoked conditionally." "$LINENO" 5 23518fi 23519if test -z "${THRSTUBS_TRUE}" && test -z "${THRSTUBS_FALSE}"; then 23520 as_fn_error "conditional \"THRSTUBS\" was never defined. 23521Usually this means the macro was only invoked conditionally." "$LINENO" 5 23522fi 23523if test -z "${UDC_TRUE}" && test -z "${UDC_FALSE}"; then 23524 as_fn_error "conditional \"UDC\" was never defined. 23525Usually this means the macro was only invoked conditionally." "$LINENO" 5 23526fi 23527if test -z "${XCMS_TRUE}" && test -z "${XCMS_FALSE}"; then 23528 as_fn_error "conditional \"XCMS\" was never defined. 23529Usually this means the macro was only invoked conditionally." "$LINENO" 5 23530fi 23531if test -z "${XLOCALE_TRUE}" && test -z "${XLOCALE_FALSE}"; then 23532 as_fn_error "conditional \"XLOCALE\" was never defined. 23533Usually this means the macro was only invoked conditionally." "$LINENO" 5 23534fi 23535if test -z "${MANPAGES_TRUE}" && test -z "${MANPAGES_FALSE}"; then 23536 as_fn_error "conditional \"MANPAGES\" was never defined. 23537Usually this means the macro was only invoked conditionally." "$LINENO" 5 23538fi 23539if test -z "${XKB_TRUE}" && test -z "${XKB_FALSE}"; then 23540 as_fn_error "conditional \"XKB\" was never defined. 23541Usually this means the macro was only invoked conditionally." "$LINENO" 5 23542fi 23543if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 23544 as_fn_error "conditional \"LINT\" was never defined. 23545Usually this means the macro was only invoked conditionally." "$LINENO" 5 23546fi 23547if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then 23548 as_fn_error "conditional \"MAKE_LINT_LIB\" was never defined. 23549Usually this means the macro was only invoked conditionally." "$LINENO" 5 23550fi 23551if test -z "${BUILD_SPECS_TRUE}" && test -z "${BUILD_SPECS_FALSE}"; then 23552 as_fn_error "conditional \"BUILD_SPECS\" was never defined. 23553Usually this means the macro was only invoked conditionally." "$LINENO" 5 23554fi 23555if test -z "${HAVE_PS2PDF_TRUE}" && test -z "${HAVE_PS2PDF_FALSE}"; then 23556 as_fn_error "conditional \"HAVE_PS2PDF\" was never defined. 23557Usually this means the macro was only invoked conditionally." "$LINENO" 5 23558fi 23559 23560: ${CONFIG_STATUS=./config.status} 23561ac_write_fail=0 23562ac_clean_files_save=$ac_clean_files 23563ac_clean_files="$ac_clean_files $CONFIG_STATUS" 23564{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 23565$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 23566as_write_fail=0 23567cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 23568#! $SHELL 23569# Generated by $as_me. 23570# Run this file to recreate the current configuration. 23571# Compiler output produced by configure, useful for debugging 23572# configure, is in config.log if it exists. 23573 23574debug=false 23575ac_cs_recheck=false 23576ac_cs_silent=false 23577 23578SHELL=\${CONFIG_SHELL-$SHELL} 23579export SHELL 23580_ASEOF 23581cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 23582## -------------------- ## 23583## M4sh Initialization. ## 23584## -------------------- ## 23585 23586# Be more Bourne compatible 23587DUALCASE=1; export DUALCASE # for MKS sh 23588if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 23589 emulate sh 23590 NULLCMD=: 23591 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23592 # is contrary to our usage. Disable this feature. 23593 alias -g '${1+"$@"}'='"$@"' 23594 setopt NO_GLOB_SUBST 23595else 23596 case `(set -o) 2>/dev/null` in #( 23597 *posix*) : 23598 set -o posix ;; #( 23599 *) : 23600 ;; 23601esac 23602fi 23603 23604 23605as_nl=' 23606' 23607export as_nl 23608# Printing a long string crashes Solaris 7 /usr/bin/printf. 23609as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 23610as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 23611as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 23612# Prefer a ksh shell builtin over an external printf program on Solaris, 23613# but without wasting forks for bash or zsh. 23614if test -z "$BASH_VERSION$ZSH_VERSION" \ 23615 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 23616 as_echo='print -r --' 23617 as_echo_n='print -rn --' 23618elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 23619 as_echo='printf %s\n' 23620 as_echo_n='printf %s' 23621else 23622 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 23623 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 23624 as_echo_n='/usr/ucb/echo -n' 23625 else 23626 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 23627 as_echo_n_body='eval 23628 arg=$1; 23629 case $arg in #( 23630 *"$as_nl"*) 23631 expr "X$arg" : "X\\(.*\\)$as_nl"; 23632 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 23633 esac; 23634 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 23635 ' 23636 export as_echo_n_body 23637 as_echo_n='sh -c $as_echo_n_body as_echo' 23638 fi 23639 export as_echo_body 23640 as_echo='sh -c $as_echo_body as_echo' 23641fi 23642 23643# The user is always right. 23644if test "${PATH_SEPARATOR+set}" != set; then 23645 PATH_SEPARATOR=: 23646 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 23647 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 23648 PATH_SEPARATOR=';' 23649 } 23650fi 23651 23652 23653# IFS 23654# We need space, tab and new line, in precisely that order. Quoting is 23655# there to prevent editors from complaining about space-tab. 23656# (If _AS_PATH_WALK were called with IFS unset, it would disable word 23657# splitting by setting IFS to empty value.) 23658IFS=" "" $as_nl" 23659 23660# Find who we are. Look in the path if we contain no directory separator. 23661case $0 in #(( 23662 *[\\/]* ) as_myself=$0 ;; 23663 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23664for as_dir in $PATH 23665do 23666 IFS=$as_save_IFS 23667 test -z "$as_dir" && as_dir=. 23668 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 23669 done 23670IFS=$as_save_IFS 23671 23672 ;; 23673esac 23674# We did not find ourselves, most probably we were run as `sh COMMAND' 23675# in which case we are not to be found in the path. 23676if test "x$as_myself" = x; then 23677 as_myself=$0 23678fi 23679if test ! -f "$as_myself"; then 23680 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 23681 exit 1 23682fi 23683 23684# Unset variables that we do not need and which cause bugs (e.g. in 23685# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 23686# suppresses any "Segmentation fault" message there. '((' could 23687# trigger a bug in pdksh 5.2.14. 23688for as_var in BASH_ENV ENV MAIL MAILPATH 23689do eval test x\${$as_var+set} = xset \ 23690 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 23691done 23692PS1='$ ' 23693PS2='> ' 23694PS4='+ ' 23695 23696# NLS nuisances. 23697LC_ALL=C 23698export LC_ALL 23699LANGUAGE=C 23700export LANGUAGE 23701 23702# CDPATH. 23703(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 23704 23705 23706# as_fn_error ERROR [LINENO LOG_FD] 23707# --------------------------------- 23708# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 23709# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 23710# script with status $?, using 1 if that was 0. 23711as_fn_error () 23712{ 23713 as_status=$?; test $as_status -eq 0 && as_status=1 23714 if test "$3"; then 23715 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 23716 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 23717 fi 23718 $as_echo "$as_me: error: $1" >&2 23719 as_fn_exit $as_status 23720} # as_fn_error 23721 23722 23723# as_fn_set_status STATUS 23724# ----------------------- 23725# Set $? to STATUS, without forking. 23726as_fn_set_status () 23727{ 23728 return $1 23729} # as_fn_set_status 23730 23731# as_fn_exit STATUS 23732# ----------------- 23733# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 23734as_fn_exit () 23735{ 23736 set +e 23737 as_fn_set_status $1 23738 exit $1 23739} # as_fn_exit 23740 23741# as_fn_unset VAR 23742# --------------- 23743# Portably unset VAR. 23744as_fn_unset () 23745{ 23746 { eval $1=; unset $1;} 23747} 23748as_unset=as_fn_unset 23749# as_fn_append VAR VALUE 23750# ---------------------- 23751# Append the text in VALUE to the end of the definition contained in VAR. Take 23752# advantage of any shell optimizations that allow amortized linear growth over 23753# repeated appends, instead of the typical quadratic growth present in naive 23754# implementations. 23755if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 23756 eval 'as_fn_append () 23757 { 23758 eval $1+=\$2 23759 }' 23760else 23761 as_fn_append () 23762 { 23763 eval $1=\$$1\$2 23764 } 23765fi # as_fn_append 23766 23767# as_fn_arith ARG... 23768# ------------------ 23769# Perform arithmetic evaluation on the ARGs, and store the result in the 23770# global $as_val. Take advantage of shells that can avoid forks. The arguments 23771# must be portable across $(()) and expr. 23772if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 23773 eval 'as_fn_arith () 23774 { 23775 as_val=$(( $* )) 23776 }' 23777else 23778 as_fn_arith () 23779 { 23780 as_val=`expr "$@" || test $? -eq 1` 23781 } 23782fi # as_fn_arith 23783 23784 23785if expr a : '\(a\)' >/dev/null 2>&1 && 23786 test "X`expr 00001 : '.*\(...\)'`" = X001; then 23787 as_expr=expr 23788else 23789 as_expr=false 23790fi 23791 23792if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 23793 as_basename=basename 23794else 23795 as_basename=false 23796fi 23797 23798if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 23799 as_dirname=dirname 23800else 23801 as_dirname=false 23802fi 23803 23804as_me=`$as_basename -- "$0" || 23805$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 23806 X"$0" : 'X\(//\)$' \| \ 23807 X"$0" : 'X\(/\)' \| . 2>/dev/null || 23808$as_echo X/"$0" | 23809 sed '/^.*\/\([^/][^/]*\)\/*$/{ 23810 s//\1/ 23811 q 23812 } 23813 /^X\/\(\/\/\)$/{ 23814 s//\1/ 23815 q 23816 } 23817 /^X\/\(\/\).*/{ 23818 s//\1/ 23819 q 23820 } 23821 s/.*/./; q'` 23822 23823# Avoid depending upon Character Ranges. 23824as_cr_letters='abcdefghijklmnopqrstuvwxyz' 23825as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 23826as_cr_Letters=$as_cr_letters$as_cr_LETTERS 23827as_cr_digits='0123456789' 23828as_cr_alnum=$as_cr_Letters$as_cr_digits 23829 23830ECHO_C= ECHO_N= ECHO_T= 23831case `echo -n x` in #((((( 23832-n*) 23833 case `echo 'xy\c'` in 23834 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 23835 xy) ECHO_C='\c';; 23836 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 23837 ECHO_T=' ';; 23838 esac;; 23839*) 23840 ECHO_N='-n';; 23841esac 23842 23843rm -f conf$$ conf$$.exe conf$$.file 23844if test -d conf$$.dir; then 23845 rm -f conf$$.dir/conf$$.file 23846else 23847 rm -f conf$$.dir 23848 mkdir conf$$.dir 2>/dev/null 23849fi 23850if (echo >conf$$.file) 2>/dev/null; then 23851 if ln -s conf$$.file conf$$ 2>/dev/null; then 23852 as_ln_s='ln -s' 23853 # ... but there are two gotchas: 23854 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 23855 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 23856 # In both cases, we have to default to `cp -p'. 23857 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 23858 as_ln_s='cp -p' 23859 elif ln conf$$.file conf$$ 2>/dev/null; then 23860 as_ln_s=ln 23861 else 23862 as_ln_s='cp -p' 23863 fi 23864else 23865 as_ln_s='cp -p' 23866fi 23867rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 23868rmdir conf$$.dir 2>/dev/null 23869 23870 23871# as_fn_mkdir_p 23872# ------------- 23873# Create "$as_dir" as a directory, including parents if necessary. 23874as_fn_mkdir_p () 23875{ 23876 23877 case $as_dir in #( 23878 -*) as_dir=./$as_dir;; 23879 esac 23880 test -d "$as_dir" || eval $as_mkdir_p || { 23881 as_dirs= 23882 while :; do 23883 case $as_dir in #( 23884 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 23885 *) as_qdir=$as_dir;; 23886 esac 23887 as_dirs="'$as_qdir' $as_dirs" 23888 as_dir=`$as_dirname -- "$as_dir" || 23889$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23890 X"$as_dir" : 'X\(//\)[^/]' \| \ 23891 X"$as_dir" : 'X\(//\)$' \| \ 23892 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23893$as_echo X"$as_dir" | 23894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23895 s//\1/ 23896 q 23897 } 23898 /^X\(\/\/\)[^/].*/{ 23899 s//\1/ 23900 q 23901 } 23902 /^X\(\/\/\)$/{ 23903 s//\1/ 23904 q 23905 } 23906 /^X\(\/\).*/{ 23907 s//\1/ 23908 q 23909 } 23910 s/.*/./; q'` 23911 test -d "$as_dir" && break 23912 done 23913 test -z "$as_dirs" || eval "mkdir $as_dirs" 23914 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 23915 23916 23917} # as_fn_mkdir_p 23918if mkdir -p . 2>/dev/null; then 23919 as_mkdir_p='mkdir -p "$as_dir"' 23920else 23921 test -d ./-p && rmdir ./-p 23922 as_mkdir_p=false 23923fi 23924 23925if test -x / >/dev/null 2>&1; then 23926 as_test_x='test -x' 23927else 23928 if ls -dL / >/dev/null 2>&1; then 23929 as_ls_L_option=L 23930 else 23931 as_ls_L_option= 23932 fi 23933 as_test_x=' 23934 eval sh -c '\'' 23935 if test -d "$1"; then 23936 test -d "$1/."; 23937 else 23938 case $1 in #( 23939 -*)set "./$1";; 23940 esac; 23941 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 23942 ???[sx]*):;;*)false;;esac;fi 23943 '\'' sh 23944 ' 23945fi 23946as_executable_p=$as_test_x 23947 23948# Sed expression to map a string onto a valid CPP name. 23949as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 23950 23951# Sed expression to map a string onto a valid variable name. 23952as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 23953 23954 23955exec 6>&1 23956## ----------------------------------- ## 23957## Main body of $CONFIG_STATUS script. ## 23958## ----------------------------------- ## 23959_ASEOF 23960test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 23961 23962cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23963# Save the log message, to keep $0 and so on meaningful, and to 23964# report actual input values of CONFIG_FILES etc. instead of their 23965# values after options handling. 23966ac_log=" 23967This file was extended by libX11 $as_me 1.3.3, which was 23968generated by GNU Autoconf 2.65. Invocation command line was 23969 23970 CONFIG_FILES = $CONFIG_FILES 23971 CONFIG_HEADERS = $CONFIG_HEADERS 23972 CONFIG_LINKS = $CONFIG_LINKS 23973 CONFIG_COMMANDS = $CONFIG_COMMANDS 23974 $ $0 $@ 23975 23976on `(hostname || uname -n) 2>/dev/null | sed 1q` 23977" 23978 23979_ACEOF 23980 23981case $ac_config_files in *" 23982"*) set x $ac_config_files; shift; ac_config_files=$*;; 23983esac 23984 23985case $ac_config_headers in *" 23986"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 23987esac 23988 23989 23990cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23991# Files that config.status was made for. 23992config_files="$ac_config_files" 23993config_headers="$ac_config_headers" 23994config_commands="$ac_config_commands" 23995 23996_ACEOF 23997 23998cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23999ac_cs_usage="\ 24000\`$as_me' instantiates files and other configuration actions 24001from templates according to the current configuration. Unless the files 24002and actions are specified as TAGs, all are instantiated by default. 24003 24004Usage: $0 [OPTION]... [TAG]... 24005 24006 -h, --help print this help, then exit 24007 -V, --version print version number and configuration settings, then exit 24008 --config print configuration, then exit 24009 -q, --quiet, --silent 24010 do not print progress messages 24011 -d, --debug don't remove temporary files 24012 --recheck update $as_me by reconfiguring in the same conditions 24013 --file=FILE[:TEMPLATE] 24014 instantiate the configuration file FILE 24015 --header=FILE[:TEMPLATE] 24016 instantiate the configuration header FILE 24017 24018Configuration files: 24019$config_files 24020 24021Configuration headers: 24022$config_headers 24023 24024Configuration commands: 24025$config_commands 24026 24027Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 24028 24029_ACEOF 24030cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24031ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 24032ac_cs_version="\\ 24033libX11 config.status 1.3.3 24034configured by $0, generated by GNU Autoconf 2.65, 24035 with options \\"\$ac_cs_config\\" 24036 24037Copyright (C) 2009 Free Software Foundation, Inc. 24038This config.status script is free software; the Free Software Foundation 24039gives unlimited permission to copy, distribute and modify it." 24040 24041ac_pwd='$ac_pwd' 24042srcdir='$srcdir' 24043INSTALL='$INSTALL' 24044MKDIR_P='$MKDIR_P' 24045AWK='$AWK' 24046test -n "\$AWK" || AWK=awk 24047_ACEOF 24048 24049cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24050# The default lists apply if the user does not specify any file. 24051ac_need_defaults=: 24052while test $# != 0 24053do 24054 case $1 in 24055 --*=*) 24056 ac_option=`expr "X$1" : 'X\([^=]*\)='` 24057 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 24058 ac_shift=: 24059 ;; 24060 *) 24061 ac_option=$1 24062 ac_optarg=$2 24063 ac_shift=shift 24064 ;; 24065 esac 24066 24067 case $ac_option in 24068 # Handling of the options. 24069 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 24070 ac_cs_recheck=: ;; 24071 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 24072 $as_echo "$ac_cs_version"; exit ;; 24073 --config | --confi | --conf | --con | --co | --c ) 24074 $as_echo "$ac_cs_config"; exit ;; 24075 --debug | --debu | --deb | --de | --d | -d ) 24076 debug=: ;; 24077 --file | --fil | --fi | --f ) 24078 $ac_shift 24079 case $ac_optarg in 24080 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 24081 esac 24082 as_fn_append CONFIG_FILES " '$ac_optarg'" 24083 ac_need_defaults=false;; 24084 --header | --heade | --head | --hea ) 24085 $ac_shift 24086 case $ac_optarg in 24087 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 24088 esac 24089 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 24090 ac_need_defaults=false;; 24091 --he | --h) 24092 # Conflict between --help and --header 24093 as_fn_error "ambiguous option: \`$1' 24094Try \`$0 --help' for more information.";; 24095 --help | --hel | -h ) 24096 $as_echo "$ac_cs_usage"; exit ;; 24097 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 24098 | -silent | --silent | --silen | --sile | --sil | --si | --s) 24099 ac_cs_silent=: ;; 24100 24101 # This is an error. 24102 -*) as_fn_error "unrecognized option: \`$1' 24103Try \`$0 --help' for more information." ;; 24104 24105 *) as_fn_append ac_config_targets " $1" 24106 ac_need_defaults=false ;; 24107 24108 esac 24109 shift 24110done 24111 24112ac_configure_extra_args= 24113 24114if $ac_cs_silent; then 24115 exec 6>/dev/null 24116 ac_configure_extra_args="$ac_configure_extra_args --silent" 24117fi 24118 24119_ACEOF 24120cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24121if \$ac_cs_recheck; then 24122 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 24123 shift 24124 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 24125 CONFIG_SHELL='$SHELL' 24126 export CONFIG_SHELL 24127 exec "\$@" 24128fi 24129 24130_ACEOF 24131cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24132exec 5>>config.log 24133{ 24134 echo 24135 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 24136## Running $as_me. ## 24137_ASBOX 24138 $as_echo "$ac_log" 24139} >&5 24140 24141_ACEOF 24142cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24143# 24144# INIT-COMMANDS 24145# 24146AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 24147 24148_ACEOF 24149 24150cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24151 24152# Handling of arguments. 24153for ac_config_target in $ac_config_targets 24154do 24155 case $ac_config_target in 24156 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 24157 "include/X11/XlibConf.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/XlibConf.h" ;; 24158 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 24159 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 24160 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 24161 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 24162 "man/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES man/xkb/Makefile" ;; 24163 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 24164 "src/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;; 24165 "src/xcms/Makefile") CONFIG_FILES="$CONFIG_FILES src/xcms/Makefile" ;; 24166 "src/xlibi18n/Makefile") CONFIG_FILES="$CONFIG_FILES src/xlibi18n/Makefile" ;; 24167 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; 24168 "modules/im/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/Makefile" ;; 24169 "modules/im/ximcp/Makefile") CONFIG_FILES="$CONFIG_FILES modules/im/ximcp/Makefile" ;; 24170 "modules/lc/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Makefile" ;; 24171 "modules/lc/def/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/def/Makefile" ;; 24172 "modules/lc/gen/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/gen/Makefile" ;; 24173 "modules/lc/Utf8/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/Utf8/Makefile" ;; 24174 "modules/lc/xlocale/Makefile") CONFIG_FILES="$CONFIG_FILES modules/lc/xlocale/Makefile" ;; 24175 "modules/om/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/Makefile" ;; 24176 "modules/om/generic/Makefile") CONFIG_FILES="$CONFIG_FILES modules/om/generic/Makefile" ;; 24177 "src/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES src/xkb/Makefile" ;; 24178 "nls/Makefile") CONFIG_FILES="$CONFIG_FILES nls/Makefile" ;; 24179 "nls/am_ET.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/am_ET.UTF-8/Makefile" ;; 24180 "nls/armscii-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/armscii-8/Makefile" ;; 24181 "nls/C/Makefile") CONFIG_FILES="$CONFIG_FILES nls/C/Makefile" ;; 24182 "nls/el_GR.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/el_GR.UTF-8/Makefile" ;; 24183 "nls/en_US.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/en_US.UTF-8/Makefile" ;; 24184 "nls/fi_FI.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/fi_FI.UTF-8/Makefile" ;; 24185 "nls/georgian-academy/Makefile") CONFIG_FILES="$CONFIG_FILES nls/georgian-academy/Makefile" ;; 24186 "nls/georgian-ps/Makefile") CONFIG_FILES="$CONFIG_FILES nls/georgian-ps/Makefile" ;; 24187 "nls/ibm-cp1133/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ibm-cp1133/Makefile" ;; 24188 "nls/iscii-dev/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iscii-dev/Makefile" ;; 24189 "nls/isiri-3342/Makefile") CONFIG_FILES="$CONFIG_FILES nls/isiri-3342/Makefile" ;; 24190 "nls/iso8859-1/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-1/Makefile" ;; 24191 "nls/iso8859-10/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-10/Makefile" ;; 24192 "nls/iso8859-11/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-11/Makefile" ;; 24193 "nls/iso8859-13/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-13/Makefile" ;; 24194 "nls/iso8859-14/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-14/Makefile" ;; 24195 "nls/iso8859-15/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-15/Makefile" ;; 24196 "nls/iso8859-2/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-2/Makefile" ;; 24197 "nls/iso8859-3/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-3/Makefile" ;; 24198 "nls/iso8859-4/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-4/Makefile" ;; 24199 "nls/iso8859-5/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-5/Makefile" ;; 24200 "nls/iso8859-6/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-6/Makefile" ;; 24201 "nls/iso8859-7/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-7/Makefile" ;; 24202 "nls/iso8859-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-8/Makefile" ;; 24203 "nls/iso8859-9/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-9/Makefile" ;; 24204 "nls/iso8859-9e/Makefile") CONFIG_FILES="$CONFIG_FILES nls/iso8859-9e/Makefile" ;; 24205 "nls/ja/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ja/Makefile" ;; 24206 "nls/ja.JIS/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ja.JIS/Makefile" ;; 24207 "nls/ja_JP.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ja_JP.UTF-8/Makefile" ;; 24208 "nls/ja.S90/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ja.S90/Makefile" ;; 24209 "nls/ja.SJIS/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ja.SJIS/Makefile" ;; 24210 "nls/ja.U90/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ja.U90/Makefile" ;; 24211 "nls/ko/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ko/Makefile" ;; 24212 "nls/koi8-c/Makefile") CONFIG_FILES="$CONFIG_FILES nls/koi8-c/Makefile" ;; 24213 "nls/koi8-r/Makefile") CONFIG_FILES="$CONFIG_FILES nls/koi8-r/Makefile" ;; 24214 "nls/koi8-u/Makefile") CONFIG_FILES="$CONFIG_FILES nls/koi8-u/Makefile" ;; 24215 "nls/ko_KR.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ko_KR.UTF-8/Makefile" ;; 24216 "nls/microsoft-cp1251/Makefile") CONFIG_FILES="$CONFIG_FILES nls/microsoft-cp1251/Makefile" ;; 24217 "nls/microsoft-cp1255/Makefile") CONFIG_FILES="$CONFIG_FILES nls/microsoft-cp1255/Makefile" ;; 24218 "nls/microsoft-cp1256/Makefile") CONFIG_FILES="$CONFIG_FILES nls/microsoft-cp1256/Makefile" ;; 24219 "nls/mulelao-1/Makefile") CONFIG_FILES="$CONFIG_FILES nls/mulelao-1/Makefile" ;; 24220 "nls/nokhchi-1/Makefile") CONFIG_FILES="$CONFIG_FILES nls/nokhchi-1/Makefile" ;; 24221 "nls/pt_BR.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/pt_BR.UTF-8/Makefile" ;; 24222 "nls/ru_RU.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/ru_RU.UTF-8/Makefile" ;; 24223 "nls/tatar-cyr/Makefile") CONFIG_FILES="$CONFIG_FILES nls/tatar-cyr/Makefile" ;; 24224 "nls/th_TH/Makefile") CONFIG_FILES="$CONFIG_FILES nls/th_TH/Makefile" ;; 24225 "nls/th_TH.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/th_TH.UTF-8/Makefile" ;; 24226 "nls/tscii-0/Makefile") CONFIG_FILES="$CONFIG_FILES nls/tscii-0/Makefile" ;; 24227 "nls/vi_VN.tcvn/Makefile") CONFIG_FILES="$CONFIG_FILES nls/vi_VN.tcvn/Makefile" ;; 24228 "nls/vi_VN.viscii/Makefile") CONFIG_FILES="$CONFIG_FILES nls/vi_VN.viscii/Makefile" ;; 24229 "nls/zh_CN/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_CN/Makefile" ;; 24230 "nls/zh_CN.gb18030/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_CN.gb18030/Makefile" ;; 24231 "nls/zh_CN.gbk/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_CN.gbk/Makefile" ;; 24232 "nls/zh_CN.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_CN.UTF-8/Makefile" ;; 24233 "nls/zh_HK.big5/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_HK.big5/Makefile" ;; 24234 "nls/zh_HK.big5hkscs/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_HK.big5hkscs/Makefile" ;; 24235 "nls/zh_HK.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_HK.UTF-8/Makefile" ;; 24236 "nls/zh_TW/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_TW/Makefile" ;; 24237 "nls/zh_TW.big5/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_TW.big5/Makefile" ;; 24238 "nls/zh_TW.UTF-8/Makefile") CONFIG_FILES="$CONFIG_FILES nls/zh_TW.UTF-8/Makefile" ;; 24239 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;; 24240 "specs/i18n/Makefile") CONFIG_FILES="$CONFIG_FILES specs/i18n/Makefile" ;; 24241 "specs/libX11/Makefile") CONFIG_FILES="$CONFIG_FILES specs/libX11/Makefile" ;; 24242 "specs/XIM/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XIM/Makefile" ;; 24243 "x11.pc") CONFIG_FILES="$CONFIG_FILES x11.pc" ;; 24244 "x11-xcb.pc") CONFIG_FILES="$CONFIG_FILES x11-xcb.pc" ;; 24245 24246 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 24247 esac 24248done 24249 24250 24251# If the user did not use the arguments to specify the items to instantiate, 24252# then the envvar interface is used. Set only those that are not. 24253# We use the long form for the default assignment because of an extremely 24254# bizarre bug on SunOS 4.1.3. 24255if $ac_need_defaults; then 24256 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 24257 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 24258 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 24259fi 24260 24261# Have a temporary directory for convenience. Make it in the build tree 24262# simply because there is no reason against having it here, and in addition, 24263# creating and moving files from /tmp can sometimes cause problems. 24264# Hook for its removal unless debugging. 24265# Note that there is a small window in which the directory will not be cleaned: 24266# after its creation but before its name has been assigned to `$tmp'. 24267$debug || 24268{ 24269 tmp= 24270 trap 'exit_status=$? 24271 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 24272' 0 24273 trap 'as_fn_exit 1' 1 2 13 15 24274} 24275# Create a (secure) tmp directory for tmp files. 24276 24277{ 24278 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 24279 test -n "$tmp" && test -d "$tmp" 24280} || 24281{ 24282 tmp=./conf$$-$RANDOM 24283 (umask 077 && mkdir "$tmp") 24284} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 24285 24286# Set up the scripts for CONFIG_FILES section. 24287# No need to generate them if there are no CONFIG_FILES. 24288# This happens for instance with `./config.status config.h'. 24289if test -n "$CONFIG_FILES"; then 24290 24291 24292ac_cr=`echo X | tr X '\015'` 24293# On cygwin, bash can eat \r inside `` if the user requested igncr. 24294# But we know of no other shell where ac_cr would be empty at this 24295# point, so we can use a bashism as a fallback. 24296if test "x$ac_cr" = x; then 24297 eval ac_cr=\$\'\\r\' 24298fi 24299ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 24300if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 24301 ac_cs_awk_cr='\r' 24302else 24303 ac_cs_awk_cr=$ac_cr 24304fi 24305 24306echo 'BEGIN {' >"$tmp/subs1.awk" && 24307_ACEOF 24308 24309 24310{ 24311 echo "cat >conf$$subs.awk <<_ACEOF" && 24312 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 24313 echo "_ACEOF" 24314} >conf$$subs.sh || 24315 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 24316ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 24317ac_delim='%!_!# ' 24318for ac_last_try in false false false false false :; do 24319 . ./conf$$subs.sh || 24320 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 24321 24322 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 24323 if test $ac_delim_n = $ac_delim_num; then 24324 break 24325 elif $ac_last_try; then 24326 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 24327 else 24328 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 24329 fi 24330done 24331rm -f conf$$subs.sh 24332 24333cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24334cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 24335_ACEOF 24336sed -n ' 24337h 24338s/^/S["/; s/!.*/"]=/ 24339p 24340g 24341s/^[^!]*!// 24342:repl 24343t repl 24344s/'"$ac_delim"'$// 24345t delim 24346:nl 24347h 24348s/\(.\{148\}\)..*/\1/ 24349t more1 24350s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 24351p 24352n 24353b repl 24354:more1 24355s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 24356p 24357g 24358s/.\{148\}// 24359t nl 24360:delim 24361h 24362s/\(.\{148\}\)..*/\1/ 24363t more2 24364s/["\\]/\\&/g; s/^/"/; s/$/"/ 24365p 24366b 24367:more2 24368s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 24369p 24370g 24371s/.\{148\}// 24372t delim 24373' <conf$$subs.awk | sed ' 24374/^[^""]/{ 24375 N 24376 s/\n// 24377} 24378' >>$CONFIG_STATUS || ac_write_fail=1 24379rm -f conf$$subs.awk 24380cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24381_ACAWK 24382cat >>"\$tmp/subs1.awk" <<_ACAWK && 24383 for (key in S) S_is_set[key] = 1 24384 FS = "" 24385 24386} 24387{ 24388 line = $ 0 24389 nfields = split(line, field, "@") 24390 substed = 0 24391 len = length(field[1]) 24392 for (i = 2; i < nfields; i++) { 24393 key = field[i] 24394 keylen = length(key) 24395 if (S_is_set[key]) { 24396 value = S[key] 24397 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 24398 len += length(value) + length(field[++i]) 24399 substed = 1 24400 } else 24401 len += 1 + keylen 24402 } 24403 24404 print line 24405} 24406 24407_ACAWK 24408_ACEOF 24409cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24410if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 24411 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 24412else 24413 cat 24414fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 24415 || as_fn_error "could not setup config files machinery" "$LINENO" 5 24416_ACEOF 24417 24418# VPATH may cause trouble with some makes, so we remove $(srcdir), 24419# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 24420# trailing colons and then remove the whole line if VPATH becomes empty 24421# (actually we leave an empty line to preserve line numbers). 24422if test "x$srcdir" = x.; then 24423 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 24424s/:*\$(srcdir):*/:/ 24425s/:*\${srcdir}:*/:/ 24426s/:*@srcdir@:*/:/ 24427s/^\([^=]*=[ ]*\):*/\1/ 24428s/:*$// 24429s/^[^=]*=[ ]*$// 24430}' 24431fi 24432 24433cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24434fi # test -n "$CONFIG_FILES" 24435 24436# Set up the scripts for CONFIG_HEADERS section. 24437# No need to generate them if there are no CONFIG_HEADERS. 24438# This happens for instance with `./config.status Makefile'. 24439if test -n "$CONFIG_HEADERS"; then 24440cat >"$tmp/defines.awk" <<\_ACAWK || 24441BEGIN { 24442_ACEOF 24443 24444# Transform confdefs.h into an awk script `defines.awk', embedded as 24445# here-document in config.status, that substitutes the proper values into 24446# config.h.in to produce config.h. 24447 24448# Create a delimiter string that does not exist in confdefs.h, to ease 24449# handling of long lines. 24450ac_delim='%!_!# ' 24451for ac_last_try in false false :; do 24452 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 24453 if test -z "$ac_t"; then 24454 break 24455 elif $ac_last_try; then 24456 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 24457 else 24458 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 24459 fi 24460done 24461 24462# For the awk script, D is an array of macro values keyed by name, 24463# likewise P contains macro parameters if any. Preserve backslash 24464# newline sequences. 24465 24466ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 24467sed -n ' 24468s/.\{148\}/&'"$ac_delim"'/g 24469t rset 24470:rset 24471s/^[ ]*#[ ]*define[ ][ ]*/ / 24472t def 24473d 24474:def 24475s/\\$// 24476t bsnl 24477s/["\\]/\\&/g 24478s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 24479D["\1"]=" \3"/p 24480s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 24481d 24482:bsnl 24483s/["\\]/\\&/g 24484s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 24485D["\1"]=" \3\\\\\\n"\\/p 24486t cont 24487s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 24488t cont 24489d 24490:cont 24491n 24492s/.\{148\}/&'"$ac_delim"'/g 24493t clear 24494:clear 24495s/\\$// 24496t bsnlc 24497s/["\\]/\\&/g; s/^/"/; s/$/"/p 24498d 24499:bsnlc 24500s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 24501b cont 24502' <confdefs.h | sed ' 24503s/'"$ac_delim"'/"\\\ 24504"/g' >>$CONFIG_STATUS || ac_write_fail=1 24505 24506cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24507 for (key in D) D_is_set[key] = 1 24508 FS = "" 24509} 24510/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 24511 line = \$ 0 24512 split(line, arg, " ") 24513 if (arg[1] == "#") { 24514 defundef = arg[2] 24515 mac1 = arg[3] 24516 } else { 24517 defundef = substr(arg[1], 2) 24518 mac1 = arg[2] 24519 } 24520 split(mac1, mac2, "(") #) 24521 macro = mac2[1] 24522 prefix = substr(line, 1, index(line, defundef) - 1) 24523 if (D_is_set[macro]) { 24524 # Preserve the white space surrounding the "#". 24525 print prefix "define", macro P[macro] D[macro] 24526 next 24527 } else { 24528 # Replace #undef with comments. This is necessary, for example, 24529 # in the case of _POSIX_SOURCE, which is predefined and required 24530 # on some systems where configure will not decide to define it. 24531 if (defundef == "undef") { 24532 print "/*", prefix defundef, macro, "*/" 24533 next 24534 } 24535 } 24536} 24537{ print } 24538_ACAWK 24539_ACEOF 24540cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24541 as_fn_error "could not setup config headers machinery" "$LINENO" 5 24542fi # test -n "$CONFIG_HEADERS" 24543 24544 24545eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 24546shift 24547for ac_tag 24548do 24549 case $ac_tag in 24550 :[FHLC]) ac_mode=$ac_tag; continue;; 24551 esac 24552 case $ac_mode$ac_tag in 24553 :[FHL]*:*);; 24554 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 24555 :[FH]-) ac_tag=-:-;; 24556 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 24557 esac 24558 ac_save_IFS=$IFS 24559 IFS=: 24560 set x $ac_tag 24561 IFS=$ac_save_IFS 24562 shift 24563 ac_file=$1 24564 shift 24565 24566 case $ac_mode in 24567 :L) ac_source=$1;; 24568 :[FH]) 24569 ac_file_inputs= 24570 for ac_f 24571 do 24572 case $ac_f in 24573 -) ac_f="$tmp/stdin";; 24574 *) # Look for the file first in the build tree, then in the source tree 24575 # (if the path is not absolute). The absolute path cannot be DOS-style, 24576 # because $ac_f cannot contain `:'. 24577 test -f "$ac_f" || 24578 case $ac_f in 24579 [\\/$]*) false;; 24580 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 24581 esac || 24582 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 24583 esac 24584 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 24585 as_fn_append ac_file_inputs " '$ac_f'" 24586 done 24587 24588 # Let's still pretend it is `configure' which instantiates (i.e., don't 24589 # use $as_me), people would be surprised to read: 24590 # /* config.h. Generated by config.status. */ 24591 configure_input='Generated from '` 24592 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 24593 `' by configure.' 24594 if test x"$ac_file" != x-; then 24595 configure_input="$ac_file. $configure_input" 24596 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 24597$as_echo "$as_me: creating $ac_file" >&6;} 24598 fi 24599 # Neutralize special characters interpreted by sed in replacement strings. 24600 case $configure_input in #( 24601 *\&* | *\|* | *\\* ) 24602 ac_sed_conf_input=`$as_echo "$configure_input" | 24603 sed 's/[\\\\&|]/\\\\&/g'`;; #( 24604 *) ac_sed_conf_input=$configure_input;; 24605 esac 24606 24607 case $ac_tag in 24608 *:-:* | *:-) cat >"$tmp/stdin" \ 24609 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 24610 esac 24611 ;; 24612 esac 24613 24614 ac_dir=`$as_dirname -- "$ac_file" || 24615$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24616 X"$ac_file" : 'X\(//\)[^/]' \| \ 24617 X"$ac_file" : 'X\(//\)$' \| \ 24618 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 24619$as_echo X"$ac_file" | 24620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24621 s//\1/ 24622 q 24623 } 24624 /^X\(\/\/\)[^/].*/{ 24625 s//\1/ 24626 q 24627 } 24628 /^X\(\/\/\)$/{ 24629 s//\1/ 24630 q 24631 } 24632 /^X\(\/\).*/{ 24633 s//\1/ 24634 q 24635 } 24636 s/.*/./; q'` 24637 as_dir="$ac_dir"; as_fn_mkdir_p 24638 ac_builddir=. 24639 24640case "$ac_dir" in 24641.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 24642*) 24643 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 24644 # A ".." for each directory in $ac_dir_suffix. 24645 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 24646 case $ac_top_builddir_sub in 24647 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 24648 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 24649 esac ;; 24650esac 24651ac_abs_top_builddir=$ac_pwd 24652ac_abs_builddir=$ac_pwd$ac_dir_suffix 24653# for backward compatibility: 24654ac_top_builddir=$ac_top_build_prefix 24655 24656case $srcdir in 24657 .) # We are building in place. 24658 ac_srcdir=. 24659 ac_top_srcdir=$ac_top_builddir_sub 24660 ac_abs_top_srcdir=$ac_pwd ;; 24661 [\\/]* | ?:[\\/]* ) # Absolute name. 24662 ac_srcdir=$srcdir$ac_dir_suffix; 24663 ac_top_srcdir=$srcdir 24664 ac_abs_top_srcdir=$srcdir ;; 24665 *) # Relative name. 24666 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 24667 ac_top_srcdir=$ac_top_build_prefix$srcdir 24668 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 24669esac 24670ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 24671 24672 24673 case $ac_mode in 24674 :F) 24675 # 24676 # CONFIG_FILE 24677 # 24678 24679 case $INSTALL in 24680 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 24681 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 24682 esac 24683 ac_MKDIR_P=$MKDIR_P 24684 case $MKDIR_P in 24685 [\\/$]* | ?:[\\/]* ) ;; 24686 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 24687 esac 24688_ACEOF 24689 24690cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24691# If the template does not know about datarootdir, expand it. 24692# FIXME: This hack should be removed a few years after 2.60. 24693ac_datarootdir_hack=; ac_datarootdir_seen= 24694ac_sed_dataroot=' 24695/datarootdir/ { 24696 p 24697 q 24698} 24699/@datadir@/p 24700/@docdir@/p 24701/@infodir@/p 24702/@localedir@/p 24703/@mandir@/p' 24704case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 24705*datarootdir*) ac_datarootdir_seen=yes;; 24706*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 24707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 24708$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 24709_ACEOF 24710cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24711 ac_datarootdir_hack=' 24712 s&@datadir@&$datadir&g 24713 s&@docdir@&$docdir&g 24714 s&@infodir@&$infodir&g 24715 s&@localedir@&$localedir&g 24716 s&@mandir@&$mandir&g 24717 s&\\\${datarootdir}&$datarootdir&g' ;; 24718esac 24719_ACEOF 24720 24721# Neutralize VPATH when `$srcdir' = `.'. 24722# Shell code in configure.ac might set extrasub. 24723# FIXME: do we really want to maintain this feature? 24724cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24725ac_sed_extra="$ac_vpsub 24726$extrasub 24727_ACEOF 24728cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24729:t 24730/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 24731s|@configure_input@|$ac_sed_conf_input|;t t 24732s&@top_builddir@&$ac_top_builddir_sub&;t t 24733s&@top_build_prefix@&$ac_top_build_prefix&;t t 24734s&@srcdir@&$ac_srcdir&;t t 24735s&@abs_srcdir@&$ac_abs_srcdir&;t t 24736s&@top_srcdir@&$ac_top_srcdir&;t t 24737s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 24738s&@builddir@&$ac_builddir&;t t 24739s&@abs_builddir@&$ac_abs_builddir&;t t 24740s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 24741s&@INSTALL@&$ac_INSTALL&;t t 24742s&@MKDIR_P@&$ac_MKDIR_P&;t t 24743$ac_datarootdir_hack 24744" 24745eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 24746 || as_fn_error "could not create $ac_file" "$LINENO" 5 24747 24748test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 24749 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 24750 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 24751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 24752which seems to be undefined. Please make sure it is defined." >&5 24753$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 24754which seems to be undefined. Please make sure it is defined." >&2;} 24755 24756 rm -f "$tmp/stdin" 24757 case $ac_file in 24758 -) cat "$tmp/out" && rm -f "$tmp/out";; 24759 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 24760 esac \ 24761 || as_fn_error "could not create $ac_file" "$LINENO" 5 24762 ;; 24763 :H) 24764 # 24765 # CONFIG_HEADER 24766 # 24767 if test x"$ac_file" != x-; then 24768 { 24769 $as_echo "/* $configure_input */" \ 24770 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 24771 } >"$tmp/config.h" \ 24772 || as_fn_error "could not create $ac_file" "$LINENO" 5 24773 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 24774 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 24775$as_echo "$as_me: $ac_file is unchanged" >&6;} 24776 else 24777 rm -f "$ac_file" 24778 mv "$tmp/config.h" "$ac_file" \ 24779 || as_fn_error "could not create $ac_file" "$LINENO" 5 24780 fi 24781 else 24782 $as_echo "/* $configure_input */" \ 24783 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 24784 || as_fn_error "could not create -" "$LINENO" 5 24785 fi 24786# Compute "$ac_file"'s index in $config_headers. 24787_am_arg="$ac_file" 24788_am_stamp_count=1 24789for _am_header in $config_headers :; do 24790 case $_am_header in 24791 $_am_arg | $_am_arg:* ) 24792 break ;; 24793 * ) 24794 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 24795 esac 24796done 24797echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 24798$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24799 X"$_am_arg" : 'X\(//\)[^/]' \| \ 24800 X"$_am_arg" : 'X\(//\)$' \| \ 24801 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 24802$as_echo X"$_am_arg" | 24803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24804 s//\1/ 24805 q 24806 } 24807 /^X\(\/\/\)[^/].*/{ 24808 s//\1/ 24809 q 24810 } 24811 /^X\(\/\/\)$/{ 24812 s//\1/ 24813 q 24814 } 24815 /^X\(\/\).*/{ 24816 s//\1/ 24817 q 24818 } 24819 s/.*/./; q'`/stamp-h$_am_stamp_count 24820 ;; 24821 24822 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 24823$as_echo "$as_me: executing $ac_file commands" >&6;} 24824 ;; 24825 esac 24826 24827 24828 case $ac_file$ac_mode in 24829 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 24830 # Autoconf 2.62 quotes --file arguments for eval, but not when files 24831 # are listed without --file. Let's play safe and only enable the eval 24832 # if we detect the quoting. 24833 case $CONFIG_FILES in 24834 *\'*) eval set x "$CONFIG_FILES" ;; 24835 *) set x $CONFIG_FILES ;; 24836 esac 24837 shift 24838 for mf 24839 do 24840 # Strip MF so we end up with the name of the file. 24841 mf=`echo "$mf" | sed -e 's/:.*$//'` 24842 # Check whether this is an Automake generated Makefile or not. 24843 # We used to match only the files named `Makefile.in', but 24844 # some people rename them; so instead we look at the file content. 24845 # Grep'ing the first line is not enough: some people post-process 24846 # each Makefile.in and add a new line on top of each file to say so. 24847 # Grep'ing the whole file is not good either: AIX grep has a line 24848 # limit of 2048, but all sed's we know have understand at least 4000. 24849 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 24850 dirpart=`$as_dirname -- "$mf" || 24851$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24852 X"$mf" : 'X\(//\)[^/]' \| \ 24853 X"$mf" : 'X\(//\)$' \| \ 24854 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 24855$as_echo X"$mf" | 24856 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24857 s//\1/ 24858 q 24859 } 24860 /^X\(\/\/\)[^/].*/{ 24861 s//\1/ 24862 q 24863 } 24864 /^X\(\/\/\)$/{ 24865 s//\1/ 24866 q 24867 } 24868 /^X\(\/\).*/{ 24869 s//\1/ 24870 q 24871 } 24872 s/.*/./; q'` 24873 else 24874 continue 24875 fi 24876 # Extract the definition of DEPDIR, am__include, and am__quote 24877 # from the Makefile without running `make'. 24878 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 24879 test -z "$DEPDIR" && continue 24880 am__include=`sed -n 's/^am__include = //p' < "$mf"` 24881 test -z "am__include" && continue 24882 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 24883 # When using ansi2knr, U may be empty or an underscore; expand it 24884 U=`sed -n 's/^U = //p' < "$mf"` 24885 # Find all dependency output files, they are included files with 24886 # $(DEPDIR) in their names. We invoke sed twice because it is the 24887 # simplest approach to changing $(DEPDIR) to its actual value in the 24888 # expansion. 24889 for file in `sed -n " 24890 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 24891 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 24892 # Make sure the directory exists. 24893 test -f "$dirpart/$file" && continue 24894 fdir=`$as_dirname -- "$file" || 24895$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24896 X"$file" : 'X\(//\)[^/]' \| \ 24897 X"$file" : 'X\(//\)$' \| \ 24898 X"$file" : 'X\(/\)' \| . 2>/dev/null || 24899$as_echo X"$file" | 24900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24901 s//\1/ 24902 q 24903 } 24904 /^X\(\/\/\)[^/].*/{ 24905 s//\1/ 24906 q 24907 } 24908 /^X\(\/\/\)$/{ 24909 s//\1/ 24910 q 24911 } 24912 /^X\(\/\).*/{ 24913 s//\1/ 24914 q 24915 } 24916 s/.*/./; q'` 24917 as_dir=$dirpart/$fdir; as_fn_mkdir_p 24918 # echo "creating $dirpart/$file" 24919 echo '# dummy' > "$dirpart/$file" 24920 done 24921 done 24922} 24923 ;; 24924 24925 esac 24926done # for ac_tag 24927 24928 24929as_fn_exit 0 24930_ACEOF 24931ac_clean_files=$ac_clean_files_save 24932 24933test $ac_write_fail = 0 || 24934 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 24935 24936 24937# configure is writing to config.log, and then calls config.status. 24938# config.status does its own redirection, appending to config.log. 24939# Unfortunately, on DOS this fails, as config.log is still kept open 24940# by configure, so config.status won't be able to write to it; its 24941# output is simply discarded. So we exec the FD to /dev/null, 24942# effectively closing config.log, so it can be properly (re)opened and 24943# appended to by config.status. When coming back to configure, we 24944# need to make the FD available again. 24945if test "$no_create" != yes; then 24946 ac_cs_success=: 24947 ac_config_status_args= 24948 test "$silent" = yes && 24949 ac_config_status_args="$ac_config_status_args --quiet" 24950 exec 5>/dev/null 24951 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 24952 exec 5>>config.log 24953 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 24954 # would make configure fail if this is the last instruction. 24955 $ac_cs_success || as_fn_exit $? 24956fi 24957if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 24958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 24959$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 24960fi 24961 24962 24963man_pages_suffix=$LIBMAN_SUFFIX 24964if test -z "$man_pages_suffix"; then 24965 man_pages_suffix=none 24966fi 24967 24968echo "" 24969echo "X11 will be built with the following settings:" 24970echo " Loadable i18n module support: "$XLIB_LOADABLE_I18N 24971echo " Loadable xcursor library support: "$XLIB_LOADABLE_XCURSOR 24972echo " Use XCB: "$ac_cv_use_xcb 24973echo " Threading support: "$xthreads 24974echo " Use Threads safe API: "$mtsafeapi 24975echo " Threads stubs in libX11: "$thrstubs 24976echo " XCMS: "$XCMS 24977echo " Internationalization support: "$XLOCALE 24978echo " XF86BigFont support: "$XF86BIGFONT 24979echo " XKB support: "$XKB 24980echo " XLOCALEDIR environment variable support: "$ENABLE_XLOCALEDIR 24981echo " Manual pages suffix: "$man_pages_suffix 24982echo " Compose table cache enabled: "$COMPOSECACHE 24983echo "" 24984