1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for scim-input-pad 0.1.3.1. 4# 5# Report bugs to <suzhe@tsinghua.org.cn>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, 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. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177test \$(( 1 + 1 )) = 2 || exit 1" 178 if (eval "$as_required") 2>/dev/null; then : 179 as_have_required=yes 180else 181 as_have_required=no 182fi 183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 184 185else 186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 187as_found=false 188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 189do 190 IFS=$as_save_IFS 191 test -z "$as_dir" && as_dir=. 192 as_found=: 193 case $as_dir in #( 194 /*) 195 for as_base in sh bash ksh sh5; do 196 # Try only shells that exist, to save several forks. 197 as_shell=$as_dir/$as_base 198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 200 CONFIG_SHELL=$as_shell as_have_required=yes 201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 202 break 2 203fi 204fi 205 done;; 206 esac 207 as_found=false 208done 209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 211 CONFIG_SHELL=$SHELL as_have_required=yes 212fi; } 213IFS=$as_save_IFS 214 215 216 if test "x$CONFIG_SHELL" != x; then : 217 # We cannot yet assume a decent shell, so we have to provide a 218 # neutralization value for shells without unset; and this also 219 # works around shells that cannot unset nonexistent variables. 220 # Preserve -v and -x to the replacement shell. 221 BASH_ENV=/dev/null 222 ENV=/dev/null 223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 224 export CONFIG_SHELL 225 case $- in # (((( 226 *v*x* | *x*v* ) as_opts=-vx ;; 227 *v* ) as_opts=-v ;; 228 *x* ) as_opts=-x ;; 229 * ) as_opts= ;; 230 esac 231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 232fi 233 234 if test x$as_have_required = xno; then : 235 $as_echo "$0: This script requires a shell more modern than all" 236 $as_echo "$0: the shells that I found on your system." 237 if test x${ZSH_VERSION+set} = xset ; then 238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 239 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 240 else 241 $as_echo "$0: Please tell bug-autoconf@gnu.org and 242$0: suzhe@tsinghua.org.cn about your system, including any 243$0: error possibly output before this message. Then install 244$0: a modern shell, or manually run the script under such a 245$0: shell if you do have one." 246 fi 247 exit 1 248fi 249fi 250fi 251SHELL=${CONFIG_SHELL-/bin/sh} 252export SHELL 253# Unset more variables known to interfere with behavior of common tools. 254CLICOLOR_FORCE= GREP_OPTIONS= 255unset CLICOLOR_FORCE GREP_OPTIONS 256 257## --------------------- ## 258## M4sh Shell Functions. ## 259## --------------------- ## 260# as_fn_unset VAR 261# --------------- 262# Portably unset VAR. 263as_fn_unset () 264{ 265 { eval $1=; unset $1;} 266} 267as_unset=as_fn_unset 268 269# as_fn_set_status STATUS 270# ----------------------- 271# Set $? to STATUS, without forking. 272as_fn_set_status () 273{ 274 return $1 275} # as_fn_set_status 276 277# as_fn_exit STATUS 278# ----------------- 279# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 280as_fn_exit () 281{ 282 set +e 283 as_fn_set_status $1 284 exit $1 285} # as_fn_exit 286 287# as_fn_mkdir_p 288# ------------- 289# Create "$as_dir" as a directory, including parents if necessary. 290as_fn_mkdir_p () 291{ 292 293 case $as_dir in #( 294 -*) as_dir=./$as_dir;; 295 esac 296 test -d "$as_dir" || eval $as_mkdir_p || { 297 as_dirs= 298 while :; do 299 case $as_dir in #( 300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 301 *) as_qdir=$as_dir;; 302 esac 303 as_dirs="'$as_qdir' $as_dirs" 304 as_dir=`$as_dirname -- "$as_dir" || 305$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 306 X"$as_dir" : 'X\(//\)[^/]' \| \ 307 X"$as_dir" : 'X\(//\)$' \| \ 308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 309$as_echo X"$as_dir" | 310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 311 s//\1/ 312 q 313 } 314 /^X\(\/\/\)[^/].*/{ 315 s//\1/ 316 q 317 } 318 /^X\(\/\/\)$/{ 319 s//\1/ 320 q 321 } 322 /^X\(\/\).*/{ 323 s//\1/ 324 q 325 } 326 s/.*/./; q'` 327 test -d "$as_dir" && break 328 done 329 test -z "$as_dirs" || eval "mkdir $as_dirs" 330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 331 332 333} # as_fn_mkdir_p 334# as_fn_append VAR VALUE 335# ---------------------- 336# Append the text in VALUE to the end of the definition contained in VAR. Take 337# advantage of any shell optimizations that allow amortized linear growth over 338# repeated appends, instead of the typical quadratic growth present in naive 339# implementations. 340if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 341 eval 'as_fn_append () 342 { 343 eval $1+=\$2 344 }' 345else 346 as_fn_append () 347 { 348 eval $1=\$$1\$2 349 } 350fi # as_fn_append 351 352# as_fn_arith ARG... 353# ------------------ 354# Perform arithmetic evaluation on the ARGs, and store the result in the 355# global $as_val. Take advantage of shells that can avoid forks. The arguments 356# must be portable across $(()) and expr. 357if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 358 eval 'as_fn_arith () 359 { 360 as_val=$(( $* )) 361 }' 362else 363 as_fn_arith () 364 { 365 as_val=`expr "$@" || test $? -eq 1` 366 } 367fi # as_fn_arith 368 369 370# as_fn_error STATUS ERROR [LINENO LOG_FD] 371# ---------------------------------------- 372# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 373# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 374# script with STATUS, using 1 if that was 0. 375as_fn_error () 376{ 377 as_status=$1; test $as_status -eq 0 && as_status=1 378 if test "$4"; then 379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 381 fi 382 $as_echo "$as_me: error: $2" >&2 383 as_fn_exit $as_status 384} # as_fn_error 385 386if expr a : '\(a\)' >/dev/null 2>&1 && 387 test "X`expr 00001 : '.*\(...\)'`" = X001; then 388 as_expr=expr 389else 390 as_expr=false 391fi 392 393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 394 as_basename=basename 395else 396 as_basename=false 397fi 398 399if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 400 as_dirname=dirname 401else 402 as_dirname=false 403fi 404 405as_me=`$as_basename -- "$0" || 406$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 407 X"$0" : 'X\(//\)$' \| \ 408 X"$0" : 'X\(/\)' \| . 2>/dev/null || 409$as_echo X/"$0" | 410 sed '/^.*\/\([^/][^/]*\)\/*$/{ 411 s//\1/ 412 q 413 } 414 /^X\/\(\/\/\)$/{ 415 s//\1/ 416 q 417 } 418 /^X\/\(\/\).*/{ 419 s//\1/ 420 q 421 } 422 s/.*/./; q'` 423 424# Avoid depending upon Character Ranges. 425as_cr_letters='abcdefghijklmnopqrstuvwxyz' 426as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 427as_cr_Letters=$as_cr_letters$as_cr_LETTERS 428as_cr_digits='0123456789' 429as_cr_alnum=$as_cr_Letters$as_cr_digits 430 431 432 as_lineno_1=$LINENO as_lineno_1a=$LINENO 433 as_lineno_2=$LINENO as_lineno_2a=$LINENO 434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 437 sed -n ' 438 p 439 /[$]LINENO/= 440 ' <$as_myself | 441 sed ' 442 s/[$]LINENO.*/&-/ 443 t lineno 444 b 445 :lineno 446 N 447 :loop 448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 449 t loop 450 s/-\n.*// 451 ' >$as_me.lineno && 452 chmod +x "$as_me.lineno" || 453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 454 455 # Don't try to exec as it changes $[0], causing all sort of problems 456 # (the dirname of $[0] is not the place where we might find the 457 # original and so on. Autoconf is especially sensitive to this). 458 . "./$as_me.lineno" 459 # Exit status is that of the last command. 460 exit 461} 462 463ECHO_C= ECHO_N= ECHO_T= 464case `echo -n x` in #((((( 465-n*) 466 case `echo 'xy\c'` in 467 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 468 xy) ECHO_C='\c';; 469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 470 ECHO_T=' ';; 471 esac;; 472*) 473 ECHO_N='-n';; 474esac 475 476rm -f conf$$ conf$$.exe conf$$.file 477if test -d conf$$.dir; then 478 rm -f conf$$.dir/conf$$.file 479else 480 rm -f conf$$.dir 481 mkdir conf$$.dir 2>/dev/null 482fi 483if (echo >conf$$.file) 2>/dev/null; then 484 if ln -s conf$$.file conf$$ 2>/dev/null; then 485 as_ln_s='ln -s' 486 # ... but there are two gotchas: 487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 489 # In both cases, we have to default to `cp -p'. 490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 491 as_ln_s='cp -p' 492 elif ln conf$$.file conf$$ 2>/dev/null; then 493 as_ln_s=ln 494 else 495 as_ln_s='cp -p' 496 fi 497else 498 as_ln_s='cp -p' 499fi 500rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 501rmdir conf$$.dir 2>/dev/null 502 503if mkdir -p . 2>/dev/null; then 504 as_mkdir_p='mkdir -p "$as_dir"' 505else 506 test -d ./-p && rmdir ./-p 507 as_mkdir_p=false 508fi 509 510if test -x / >/dev/null 2>&1; then 511 as_test_x='test -x' 512else 513 if ls -dL / >/dev/null 2>&1; then 514 as_ls_L_option=L 515 else 516 as_ls_L_option= 517 fi 518 as_test_x=' 519 eval sh -c '\'' 520 if test -d "$1"; then 521 test -d "$1/."; 522 else 523 case $1 in #( 524 -*)set "./$1";; 525 esac; 526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 527 ???[sx]*):;;*)false;;esac;fi 528 '\'' sh 529 ' 530fi 531as_executable_p=$as_test_x 532 533# Sed expression to map a string onto a valid CPP name. 534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 535 536# Sed expression to map a string onto a valid variable name. 537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 538 539 540 541# Check that we are running under the correct shell. 542SHELL=${CONFIG_SHELL-/bin/sh} 543 544case X$lt_ECHO in 545X*--fallback-echo) 546 # Remove one level of quotation (which was required for Make). 547 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 548 ;; 549esac 550 551ECHO=${lt_ECHO-echo} 552if test "X$1" = X--no-reexec; then 553 # Discard the --no-reexec flag, and continue. 554 shift 555elif test "X$1" = X--fallback-echo; then 556 # Avoid inline document here, it may be left over 557 : 558elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 559 # Yippee, $ECHO works! 560 : 561else 562 # Restart under the correct shell. 563 exec $SHELL "$0" --no-reexec ${1+"$@"} 564fi 565 566if test "X$1" = X--fallback-echo; then 567 # used as fallback echo 568 shift 569 cat <<_LT_EOF 570$* 571_LT_EOF 572 exit 0 573fi 574 575# The HP-UX ksh and POSIX shell print the target directory to stdout 576# if CDPATH is set. 577(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 578 579if test -z "$lt_ECHO"; then 580 if test "X${echo_test_string+set}" != Xset; then 581 # find a string as large as possible, as long as the shell can cope with it 582 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 583 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 584 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 585 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 586 then 587 break 588 fi 589 done 590 fi 591 592 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 593 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 594 test "X$echo_testing_string" = "X$echo_test_string"; then 595 : 596 else 597 # The Solaris, AIX, and Digital Unix default echo programs unquote 598 # backslashes. This makes it impossible to quote backslashes using 599 # echo "$something" | sed 's/\\/\\\\/g' 600 # 601 # So, first we look for a working echo in the user's PATH. 602 603 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 604 for dir in $PATH /usr/ucb; do 605 IFS="$lt_save_ifs" 606 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 607 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 608 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 609 test "X$echo_testing_string" = "X$echo_test_string"; then 610 ECHO="$dir/echo" 611 break 612 fi 613 done 614 IFS="$lt_save_ifs" 615 616 if test "X$ECHO" = Xecho; then 617 # We didn't find a better echo, so look for alternatives. 618 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 619 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 620 test "X$echo_testing_string" = "X$echo_test_string"; then 621 # This shell has a builtin print -r that does the trick. 622 ECHO='print -r' 623 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 624 test "X$CONFIG_SHELL" != X/bin/ksh; then 625 # If we have ksh, try running configure again with it. 626 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 627 export ORIGINAL_CONFIG_SHELL 628 CONFIG_SHELL=/bin/ksh 629 export CONFIG_SHELL 630 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 631 else 632 # Try using printf. 633 ECHO='printf %s\n' 634 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 635 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 636 test "X$echo_testing_string" = "X$echo_test_string"; then 637 # Cool, printf works 638 : 639 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 640 test "X$echo_testing_string" = 'X\t' && 641 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 642 test "X$echo_testing_string" = "X$echo_test_string"; then 643 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 644 export CONFIG_SHELL 645 SHELL="$CONFIG_SHELL" 646 export SHELL 647 ECHO="$CONFIG_SHELL $0 --fallback-echo" 648 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 649 test "X$echo_testing_string" = 'X\t' && 650 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 651 test "X$echo_testing_string" = "X$echo_test_string"; then 652 ECHO="$CONFIG_SHELL $0 --fallback-echo" 653 else 654 # maybe with a smaller string... 655 prev=: 656 657 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 658 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 659 then 660 break 661 fi 662 prev="$cmd" 663 done 664 665 if test "$prev" != 'sed 50q "$0"'; then 666 echo_test_string=`eval $prev` 667 export echo_test_string 668 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 669 else 670 # Oops. We lost completely, so just stick with echo. 671 ECHO=echo 672 fi 673 fi 674 fi 675 fi 676 fi 677fi 678 679# Copy echo and quote the copy suitably for passing to libtool from 680# the Makefile, instead of quoting the original, which is used later. 681lt_ECHO=$ECHO 682if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 683 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 684fi 685 686 687 688 689lt_ltdl_dir='libltdl' 690 691lt_dlopen_dir="$lt_ltdl_dir" 692 693test -n "$DJDIR" || exec 7<&0 </dev/null 694exec 6>&1 695 696# Name of the host. 697# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 698# so uname gets run too. 699ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 700 701# 702# Initializations. 703# 704ac_default_prefix=/usr/local 705ac_clean_files= 706ac_config_libobj_dir=. 707LIBOBJS= 708cross_compiling=no 709subdirs= 710MFLAGS= 711MAKEFLAGS= 712 713# Identity of this package. 714PACKAGE_NAME='scim-input-pad' 715PACKAGE_TARNAME='scim-input-pad' 716PACKAGE_VERSION='0.1.3.1' 717PACKAGE_STRING='scim-input-pad 0.1.3.1' 718PACKAGE_BUGREPORT='suzhe@tsinghua.org.cn' 719PACKAGE_URL='' 720 721ac_unique_file="src/scim_input_pad.cpp" 722# Factoring default headers for most tests. 723ac_includes_default="\ 724#include <stdio.h> 725#ifdef HAVE_SYS_TYPES_H 726# include <sys/types.h> 727#endif 728#ifdef HAVE_SYS_STAT_H 729# include <sys/stat.h> 730#endif 731#ifdef STDC_HEADERS 732# include <stdlib.h> 733# include <stddef.h> 734#else 735# ifdef HAVE_STDLIB_H 736# include <stdlib.h> 737# endif 738#endif 739#ifdef HAVE_STRING_H 740# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 741# include <memory.h> 742# endif 743# include <string.h> 744#endif 745#ifdef HAVE_STRINGS_H 746# include <strings.h> 747#endif 748#ifdef HAVE_INTTYPES_H 749# include <inttypes.h> 750#endif 751#ifdef HAVE_STDINT_H 752# include <stdint.h> 753#endif 754#ifdef HAVE_UNISTD_H 755# include <unistd.h> 756#endif" 757 758ac_header_list= 759enable_option_checking=no 760ac_subst_vars='ltdl_LTLIBOBJS 761ltdl_LIBOBJS 762am__EXEEXT_FALSE 763am__EXEEXT_TRUE 764LTLIBOBJS 765LIBOBJS 766SCIM_INPUT_PAD_USER_DATADIR 767SCIM_INPUT_PAD_DATADIR 768SCIM_LIBEXECDIR 769SCIM_DATADIR 770SCIM_MODULEDIR 771SCIM_ICONDIR 772LIBTOOL_EXPORT_OPTIONS 773GTK2_LIBS 774GTK2_CFLAGS 775SCIM_LIBS 776SCIM_CFLAGS 777PKG_CONFIG_LIBDIR 778PKG_CONFIG_PATH 779PKG_CONFIG 780CXXCPP 781am__fastdepCXX_FALSE 782am__fastdepCXX_TRUE 783CXXDEPMODE 784ac_ct_CXX 785CXXFLAGS 786CXX 787LIBTOOL_DEPS 788LTDLOPEN 789LT_CONFIG_H 790subdirs 791CONVENIENCE_LTDL_FALSE 792CONVENIENCE_LTDL_TRUE 793INSTALL_LTDL_FALSE 794INSTALL_LTDL_TRUE 795ARGZ_H 796sys_symbol_underscore 797LIBADD_DL 798LT_DLPREOPEN 799LIBADD_DLD_LINK 800LIBADD_SHL_LOAD 801LIBADD_DLOPEN 802LT_DLLOADERS 803INCLTDL 804LTDLINCL 805LTDLDEPS 806LIBLTDL 807OTOOL64 808OTOOL 809LIPO 810NMEDIT 811DSYMUTIL 812lt_ECHO 813AR 814LN_S 815NM 816ac_ct_DUMPBIN 817DUMPBIN 818LD 819FGREP 820SED 821LIBTOOL 822OBJDUMP 823DLLTOOL 824AS 825INTLTOOL_XGETTEXT 826INTLTOOL_MSGMERGE 827INTLTOOL_MSGFMT 828INTLTOOL_ICONV 829INTLTOOL_PERL 830INTLTOOL_UPDATE 831INTLTOOL_MERGE 832INTLTOOL_EXTRACT 833INTLTOOL_THEME_RULE 834INTLTOOL_SCHEMAS_RULE 835INTLTOOL_CAVES_RULE 836INTLTOOL_XML_NOMERGE_RULE 837INTLTOOL_XML_RULE 838INTLTOOL_KBD_RULE 839INTLTOOL_XAM_RULE 840INTLTOOL_UI_RULE 841INTLTOOL_SOUNDLIST_RULE 842INTLTOOL_SHEET_RULE 843INTLTOOL_SERVER_RULE 844INTLTOOL_PONG_RULE 845INTLTOOL_OAF_RULE 846INTLTOOL_PROP_RULE 847INTLTOOL_KEYS_RULE 848INTLTOOL_DIRECTORY_RULE 849INTLTOOL_DESKTOP_RULE 850POSUB 851LTLIBINTL 852LIBINTL 853INTLLIBS 854INTL_LIBTOOL_SUFFIX_PREFIX 855INTLOBJS 856GENCAT 857INSTOBJEXT 858DATADIRNAME 859CATOBJEXT 860USE_INCLUDED_LIBINTL 861BUILD_INCLUDED_LIBINTL 862INTLBISON 863LTLIBICONV 864LIBICONV 865HAVE_WPRINTF 866HAVE_SNPRINTF 867HAVE_ASPRINTF 868HAVE_POSIX_PRINTF 869GLIBC21 870ALLOCA 871EGREP 872GREP 873CPP 874RANLIB 875host_os 876host_vendor 877host_cpu 878host 879build_os 880build_vendor 881build_cpu 882build 883am__fastdepCC_FALSE 884am__fastdepCC_TRUE 885CCDEPMODE 886AMDEPBACKSLASH 887AMDEP_FALSE 888AMDEP_TRUE 889am__quote 890am__include 891DEPDIR 892OBJEXT 893EXEEXT 894ac_ct_CC 895CPPFLAGS 896LDFLAGS 897CFLAGS 898CC 899MSGMERGE 900XGETTEXT 901GMSGFMT 902MSGFMT 903USE_NLS 904MKINSTALLDIRS 905am__untar 906am__tar 907AMTAR 908am__leading_dot 909SET_MAKE 910AWK 911mkdir_p 912MKDIR_P 913INSTALL_STRIP_PROGRAM 914STRIP 915install_sh 916MAKEINFO 917AUTOHEADER 918AUTOMAKE 919AUTOCONF 920ACLOCAL 921VERSION 922PACKAGE 923CYGPATH_W 924am__isrc 925INSTALL_DATA 926INSTALL_SCRIPT 927INSTALL_PROGRAM 928GETTEXT_PACKAGE 929SCIM_INPUT_PAD_AGE 930SCIM_INPUT_PAD_REVISION 931SCIM_INPUT_PAD_CURRENT 932GTK_VERSION 933SCIM_VERSION 934target_alias 935host_alias 936build_alias 937LIBS 938ECHO_T 939ECHO_N 940ECHO_C 941DEFS 942mandir 943localedir 944libdir 945psdir 946pdfdir 947dvidir 948htmldir 949infodir 950docdir 951oldincludedir 952includedir 953localstatedir 954sharedstatedir 955sysconfdir 956datadir 957datarootdir 958libexecdir 959sbindir 960bindir 961program_transform_name 962prefix 963exec_prefix 964PACKAGE_URL 965PACKAGE_BUGREPORT 966PACKAGE_STRING 967PACKAGE_VERSION 968PACKAGE_TARNAME 969PACKAGE_NAME 970PATH_SEPARATOR 971SHELL' 972ac_subst_files='' 973ac_user_opts=' 974enable_option_checking 975enable_nls 976enable_dependency_tracking 977with_gnu_ld 978enable_rpath 979with_libiconv_prefix 980with_included_gettext 981with_libintl_prefix 982enable_shared 983enable_static 984with_pic 985enable_fast_install 986enable_libtool_lock 987with_included_ltdl 988with_ltdl_include 989with_ltdl_lib 990enable_ltdl_install 991enable_debug 992' 993 ac_precious_vars='build_alias 994host_alias 995target_alias 996CC 997CFLAGS 998LDFLAGS 999LIBS 1000CPPFLAGS 1001CPP 1002CXX 1003CXXFLAGS 1004CCC 1005CXXCPP 1006PKG_CONFIG 1007PKG_CONFIG_PATH 1008PKG_CONFIG_LIBDIR 1009SCIM_CFLAGS 1010SCIM_LIBS 1011GTK2_CFLAGS 1012GTK2_LIBS' 1013ac_subdirs_all='libltdl' 1014 1015# Initialize some variables set by options. 1016ac_init_help= 1017ac_init_version=false 1018ac_unrecognized_opts= 1019ac_unrecognized_sep= 1020# The variables have the same names as the options, with 1021# dashes changed to underlines. 1022cache_file=/dev/null 1023exec_prefix=NONE 1024no_create= 1025no_recursion= 1026prefix=NONE 1027program_prefix=NONE 1028program_suffix=NONE 1029program_transform_name=s,x,x, 1030silent= 1031site= 1032srcdir= 1033verbose= 1034x_includes=NONE 1035x_libraries=NONE 1036 1037# Installation directory options. 1038# These are left unexpanded so users can "make install exec_prefix=/foo" 1039# and all the variables that are supposed to be based on exec_prefix 1040# by default will actually change. 1041# Use braces instead of parens because sh, perl, etc. also accept them. 1042# (The list follows the same order as the GNU Coding Standards.) 1043bindir='${exec_prefix}/bin' 1044sbindir='${exec_prefix}/sbin' 1045libexecdir='${exec_prefix}/libexec' 1046datarootdir='${prefix}/share' 1047datadir='${datarootdir}' 1048sysconfdir='${prefix}/etc' 1049sharedstatedir='${prefix}/com' 1050localstatedir='${prefix}/var' 1051includedir='${prefix}/include' 1052oldincludedir='/usr/include' 1053docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1054infodir='${datarootdir}/info' 1055htmldir='${docdir}' 1056dvidir='${docdir}' 1057pdfdir='${docdir}' 1058psdir='${docdir}' 1059libdir='${exec_prefix}/lib' 1060localedir='${datarootdir}/locale' 1061mandir='${datarootdir}/man' 1062 1063ac_prev= 1064ac_dashdash= 1065for ac_option 1066do 1067 # If the previous option needs an argument, assign it. 1068 if test -n "$ac_prev"; then 1069 eval $ac_prev=\$ac_option 1070 ac_prev= 1071 continue 1072 fi 1073 1074 case $ac_option in 1075 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1076 *=) ac_optarg= ;; 1077 *) ac_optarg=yes ;; 1078 esac 1079 1080 # Accept the important Cygnus configure options, so we can diagnose typos. 1081 1082 case $ac_dashdash$ac_option in 1083 --) 1084 ac_dashdash=yes ;; 1085 1086 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1087 ac_prev=bindir ;; 1088 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1089 bindir=$ac_optarg ;; 1090 1091 -build | --build | --buil | --bui | --bu) 1092 ac_prev=build_alias ;; 1093 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1094 build_alias=$ac_optarg ;; 1095 1096 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1097 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1098 ac_prev=cache_file ;; 1099 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1100 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1101 cache_file=$ac_optarg ;; 1102 1103 --config-cache | -C) 1104 cache_file=config.cache ;; 1105 1106 -datadir | --datadir | --datadi | --datad) 1107 ac_prev=datadir ;; 1108 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1109 datadir=$ac_optarg ;; 1110 1111 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1112 | --dataroo | --dataro | --datar) 1113 ac_prev=datarootdir ;; 1114 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1115 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1116 datarootdir=$ac_optarg ;; 1117 1118 -disable-* | --disable-*) 1119 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1120 # Reject names that are not valid shell variable names. 1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1122 as_fn_error $? "invalid feature name: $ac_useropt" 1123 ac_useropt_orig=$ac_useropt 1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1125 case $ac_user_opts in 1126 *" 1127"enable_$ac_useropt" 1128"*) ;; 1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1130 ac_unrecognized_sep=', ';; 1131 esac 1132 eval enable_$ac_useropt=no ;; 1133 1134 -docdir | --docdir | --docdi | --doc | --do) 1135 ac_prev=docdir ;; 1136 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1137 docdir=$ac_optarg ;; 1138 1139 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1140 ac_prev=dvidir ;; 1141 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1142 dvidir=$ac_optarg ;; 1143 1144 -enable-* | --enable-*) 1145 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1146 # Reject names that are not valid shell variable names. 1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1148 as_fn_error $? "invalid feature name: $ac_useropt" 1149 ac_useropt_orig=$ac_useropt 1150 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1151 case $ac_user_opts in 1152 *" 1153"enable_$ac_useropt" 1154"*) ;; 1155 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1156 ac_unrecognized_sep=', ';; 1157 esac 1158 eval enable_$ac_useropt=\$ac_optarg ;; 1159 1160 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1161 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1162 | --exec | --exe | --ex) 1163 ac_prev=exec_prefix ;; 1164 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1165 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1166 | --exec=* | --exe=* | --ex=*) 1167 exec_prefix=$ac_optarg ;; 1168 1169 -gas | --gas | --ga | --g) 1170 # Obsolete; use --with-gas. 1171 with_gas=yes ;; 1172 1173 -help | --help | --hel | --he | -h) 1174 ac_init_help=long ;; 1175 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1176 ac_init_help=recursive ;; 1177 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1178 ac_init_help=short ;; 1179 1180 -host | --host | --hos | --ho) 1181 ac_prev=host_alias ;; 1182 -host=* | --host=* | --hos=* | --ho=*) 1183 host_alias=$ac_optarg ;; 1184 1185 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1186 ac_prev=htmldir ;; 1187 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1188 | --ht=*) 1189 htmldir=$ac_optarg ;; 1190 1191 -includedir | --includedir | --includedi | --included | --include \ 1192 | --includ | --inclu | --incl | --inc) 1193 ac_prev=includedir ;; 1194 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1195 | --includ=* | --inclu=* | --incl=* | --inc=*) 1196 includedir=$ac_optarg ;; 1197 1198 -infodir | --infodir | --infodi | --infod | --info | --inf) 1199 ac_prev=infodir ;; 1200 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1201 infodir=$ac_optarg ;; 1202 1203 -libdir | --libdir | --libdi | --libd) 1204 ac_prev=libdir ;; 1205 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1206 libdir=$ac_optarg ;; 1207 1208 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1209 | --libexe | --libex | --libe) 1210 ac_prev=libexecdir ;; 1211 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1212 | --libexe=* | --libex=* | --libe=*) 1213 libexecdir=$ac_optarg ;; 1214 1215 -localedir | --localedir | --localedi | --localed | --locale) 1216 ac_prev=localedir ;; 1217 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1218 localedir=$ac_optarg ;; 1219 1220 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1221 | --localstate | --localstat | --localsta | --localst | --locals) 1222 ac_prev=localstatedir ;; 1223 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1224 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1225 localstatedir=$ac_optarg ;; 1226 1227 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1228 ac_prev=mandir ;; 1229 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1230 mandir=$ac_optarg ;; 1231 1232 -nfp | --nfp | --nf) 1233 # Obsolete; use --without-fp. 1234 with_fp=no ;; 1235 1236 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1237 | --no-cr | --no-c | -n) 1238 no_create=yes ;; 1239 1240 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1241 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1242 no_recursion=yes ;; 1243 1244 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1245 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1246 | --oldin | --oldi | --old | --ol | --o) 1247 ac_prev=oldincludedir ;; 1248 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1249 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1250 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1251 oldincludedir=$ac_optarg ;; 1252 1253 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1254 ac_prev=prefix ;; 1255 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1256 prefix=$ac_optarg ;; 1257 1258 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1259 | --program-pre | --program-pr | --program-p) 1260 ac_prev=program_prefix ;; 1261 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1262 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1263 program_prefix=$ac_optarg ;; 1264 1265 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1266 | --program-suf | --program-su | --program-s) 1267 ac_prev=program_suffix ;; 1268 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1269 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1270 program_suffix=$ac_optarg ;; 1271 1272 -program-transform-name | --program-transform-name \ 1273 | --program-transform-nam | --program-transform-na \ 1274 | --program-transform-n | --program-transform- \ 1275 | --program-transform | --program-transfor \ 1276 | --program-transfo | --program-transf \ 1277 | --program-trans | --program-tran \ 1278 | --progr-tra | --program-tr | --program-t) 1279 ac_prev=program_transform_name ;; 1280 -program-transform-name=* | --program-transform-name=* \ 1281 | --program-transform-nam=* | --program-transform-na=* \ 1282 | --program-transform-n=* | --program-transform-=* \ 1283 | --program-transform=* | --program-transfor=* \ 1284 | --program-transfo=* | --program-transf=* \ 1285 | --program-trans=* | --program-tran=* \ 1286 | --progr-tra=* | --program-tr=* | --program-t=*) 1287 program_transform_name=$ac_optarg ;; 1288 1289 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1290 ac_prev=pdfdir ;; 1291 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1292 pdfdir=$ac_optarg ;; 1293 1294 -psdir | --psdir | --psdi | --psd | --ps) 1295 ac_prev=psdir ;; 1296 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1297 psdir=$ac_optarg ;; 1298 1299 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1300 | -silent | --silent | --silen | --sile | --sil) 1301 silent=yes ;; 1302 1303 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1304 ac_prev=sbindir ;; 1305 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1306 | --sbi=* | --sb=*) 1307 sbindir=$ac_optarg ;; 1308 1309 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1310 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1311 | --sharedst | --shareds | --shared | --share | --shar \ 1312 | --sha | --sh) 1313 ac_prev=sharedstatedir ;; 1314 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1315 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1316 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1317 | --sha=* | --sh=*) 1318 sharedstatedir=$ac_optarg ;; 1319 1320 -site | --site | --sit) 1321 ac_prev=site ;; 1322 -site=* | --site=* | --sit=*) 1323 site=$ac_optarg ;; 1324 1325 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1326 ac_prev=srcdir ;; 1327 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1328 srcdir=$ac_optarg ;; 1329 1330 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1331 | --syscon | --sysco | --sysc | --sys | --sy) 1332 ac_prev=sysconfdir ;; 1333 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1334 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1335 sysconfdir=$ac_optarg ;; 1336 1337 -target | --target | --targe | --targ | --tar | --ta | --t) 1338 ac_prev=target_alias ;; 1339 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1340 target_alias=$ac_optarg ;; 1341 1342 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1343 verbose=yes ;; 1344 1345 -version | --version | --versio | --versi | --vers | -V) 1346 ac_init_version=: ;; 1347 1348 -with-* | --with-*) 1349 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1350 # Reject names that are not valid shell variable names. 1351 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1352 as_fn_error $? "invalid package name: $ac_useropt" 1353 ac_useropt_orig=$ac_useropt 1354 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1355 case $ac_user_opts in 1356 *" 1357"with_$ac_useropt" 1358"*) ;; 1359 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1360 ac_unrecognized_sep=', ';; 1361 esac 1362 eval with_$ac_useropt=\$ac_optarg ;; 1363 1364 -without-* | --without-*) 1365 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1366 # Reject names that are not valid shell variable names. 1367 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1368 as_fn_error $? "invalid package name: $ac_useropt" 1369 ac_useropt_orig=$ac_useropt 1370 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1371 case $ac_user_opts in 1372 *" 1373"with_$ac_useropt" 1374"*) ;; 1375 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1376 ac_unrecognized_sep=', ';; 1377 esac 1378 eval with_$ac_useropt=no ;; 1379 1380 --x) 1381 # Obsolete; use --with-x. 1382 with_x=yes ;; 1383 1384 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1385 | --x-incl | --x-inc | --x-in | --x-i) 1386 ac_prev=x_includes ;; 1387 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1388 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1389 x_includes=$ac_optarg ;; 1390 1391 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1392 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1393 ac_prev=x_libraries ;; 1394 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1395 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1396 x_libraries=$ac_optarg ;; 1397 1398 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1399Try \`$0 --help' for more information" 1400 ;; 1401 1402 *=*) 1403 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1404 # Reject names that are not valid shell variable names. 1405 case $ac_envvar in #( 1406 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1407 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1408 esac 1409 eval $ac_envvar=\$ac_optarg 1410 export $ac_envvar ;; 1411 1412 *) 1413 # FIXME: should be removed in autoconf 3.0. 1414 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1415 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1416 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1417 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1418 ;; 1419 1420 esac 1421done 1422 1423if test -n "$ac_prev"; then 1424 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1425 as_fn_error $? "missing argument to $ac_option" 1426fi 1427 1428if test -n "$ac_unrecognized_opts"; then 1429 case $enable_option_checking in 1430 no) ;; 1431 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1432 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1433 esac 1434fi 1435 1436# Check all directory arguments for consistency. 1437for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1438 datadir sysconfdir sharedstatedir localstatedir includedir \ 1439 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1440 libdir localedir mandir 1441do 1442 eval ac_val=\$$ac_var 1443 # Remove trailing slashes. 1444 case $ac_val in 1445 */ ) 1446 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1447 eval $ac_var=\$ac_val;; 1448 esac 1449 # Be sure to have absolute directory names. 1450 case $ac_val in 1451 [\\/$]* | ?:[\\/]* ) continue;; 1452 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1453 esac 1454 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1455done 1456 1457# There might be people who depend on the old broken behavior: `$host' 1458# used to hold the argument of --host etc. 1459# FIXME: To remove some day. 1460build=$build_alias 1461host=$host_alias 1462target=$target_alias 1463 1464# FIXME: To remove some day. 1465if test "x$host_alias" != x; then 1466 if test "x$build_alias" = x; then 1467 cross_compiling=maybe 1468 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1469 If a cross compiler is detected then cross compile mode will be used" >&2 1470 elif test "x$build_alias" != "x$host_alias"; then 1471 cross_compiling=yes 1472 fi 1473fi 1474 1475ac_tool_prefix= 1476test -n "$host_alias" && ac_tool_prefix=$host_alias- 1477 1478test "$silent" = yes && exec 6>/dev/null 1479 1480 1481ac_pwd=`pwd` && test -n "$ac_pwd" && 1482ac_ls_di=`ls -di .` && 1483ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1484 as_fn_error $? "working directory cannot be determined" 1485test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1486 as_fn_error $? "pwd does not report name of working directory" 1487 1488 1489# Find the source files, if location was not specified. 1490if test -z "$srcdir"; then 1491 ac_srcdir_defaulted=yes 1492 # Try the directory containing this script, then the parent directory. 1493 ac_confdir=`$as_dirname -- "$as_myself" || 1494$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1495 X"$as_myself" : 'X\(//\)[^/]' \| \ 1496 X"$as_myself" : 'X\(//\)$' \| \ 1497 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1498$as_echo X"$as_myself" | 1499 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1500 s//\1/ 1501 q 1502 } 1503 /^X\(\/\/\)[^/].*/{ 1504 s//\1/ 1505 q 1506 } 1507 /^X\(\/\/\)$/{ 1508 s//\1/ 1509 q 1510 } 1511 /^X\(\/\).*/{ 1512 s//\1/ 1513 q 1514 } 1515 s/.*/./; q'` 1516 srcdir=$ac_confdir 1517 if test ! -r "$srcdir/$ac_unique_file"; then 1518 srcdir=.. 1519 fi 1520else 1521 ac_srcdir_defaulted=no 1522fi 1523if test ! -r "$srcdir/$ac_unique_file"; then 1524 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1525 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1526fi 1527ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1528ac_abs_confdir=`( 1529 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1530 pwd)` 1531# When building in place, set srcdir=. 1532if test "$ac_abs_confdir" = "$ac_pwd"; then 1533 srcdir=. 1534fi 1535# Remove unnecessary trailing slashes from srcdir. 1536# Double slashes in file names in object file debugging info 1537# mess up M-x gdb in Emacs. 1538case $srcdir in 1539*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1540esac 1541for ac_var in $ac_precious_vars; do 1542 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1543 eval ac_env_${ac_var}_value=\$${ac_var} 1544 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1545 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1546done 1547 1548# 1549# Report the --help message. 1550# 1551if test "$ac_init_help" = "long"; then 1552 # Omit some internal or obsolete options to make the list less imposing. 1553 # This message is too long to be a string in the A/UX 3.1 sh. 1554 cat <<_ACEOF 1555\`configure' configures scim-input-pad 0.1.3.1 to adapt to many kinds of systems. 1556 1557Usage: $0 [OPTION]... [VAR=VALUE]... 1558 1559To assign environment variables (e.g., CC, CFLAGS...), specify them as 1560VAR=VALUE. See below for descriptions of some of the useful variables. 1561 1562Defaults for the options are specified in brackets. 1563 1564Configuration: 1565 -h, --help display this help and exit 1566 --help=short display options specific to this package 1567 --help=recursive display the short help of all the included packages 1568 -V, --version display version information and exit 1569 -q, --quiet, --silent do not print \`checking ...' messages 1570 --cache-file=FILE cache test results in FILE [disabled] 1571 -C, --config-cache alias for \`--cache-file=config.cache' 1572 -n, --no-create do not create output files 1573 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1574 1575Installation directories: 1576 --prefix=PREFIX install architecture-independent files in PREFIX 1577 [$ac_default_prefix] 1578 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1579 [PREFIX] 1580 1581By default, \`make install' will install all the files in 1582\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1583an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1584for instance \`--prefix=\$HOME'. 1585 1586For better control, use the options below. 1587 1588Fine tuning of the installation directories: 1589 --bindir=DIR user executables [EPREFIX/bin] 1590 --sbindir=DIR system admin executables [EPREFIX/sbin] 1591 --libexecdir=DIR program executables [EPREFIX/libexec] 1592 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1593 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1594 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1595 --libdir=DIR object code libraries [EPREFIX/lib] 1596 --includedir=DIR C header files [PREFIX/include] 1597 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1598 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1599 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1600 --infodir=DIR info documentation [DATAROOTDIR/info] 1601 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1602 --mandir=DIR man documentation [DATAROOTDIR/man] 1603 --docdir=DIR documentation root [DATAROOTDIR/doc/scim-input-pad] 1604 --htmldir=DIR html documentation [DOCDIR] 1605 --dvidir=DIR dvi documentation [DOCDIR] 1606 --pdfdir=DIR pdf documentation [DOCDIR] 1607 --psdir=DIR ps documentation [DOCDIR] 1608_ACEOF 1609 1610 cat <<\_ACEOF 1611 1612Program names: 1613 --program-prefix=PREFIX prepend PREFIX to installed program names 1614 --program-suffix=SUFFIX append SUFFIX to installed program names 1615 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1616 1617System types: 1618 --build=BUILD configure for building on BUILD [guessed] 1619 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1620_ACEOF 1621fi 1622 1623if test -n "$ac_init_help"; then 1624 case $ac_init_help in 1625 short | recursive ) echo "Configuration of scim-input-pad 0.1.3.1:";; 1626 esac 1627 cat <<\_ACEOF 1628 1629Optional Features: 1630 --disable-option-checking ignore unrecognized --enable/--with options 1631 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1632 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1633 --disable-nls do not use Native Language Support 1634 --disable-dependency-tracking speeds up one-time build 1635 --enable-dependency-tracking do not reject slow dependency extractors 1636 --disable-rpath do not hardcode runtime library paths 1637 --enable-shared[=PKGS] build shared libraries [default=yes] 1638 --enable-static[=PKGS] build static libraries [default=yes] 1639 --enable-fast-install[=PKGS] 1640 optimize for fast installation [default=yes] 1641 --disable-libtool-lock avoid locking (might break parallel builds) 1642 --enable-ltdl-install install libltdl 1643 --enable-debug Turn on debugging 1644 1645Optional Packages: 1646 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1647 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1648 --with-gnu-ld assume the C compiler uses GNU ld default=no 1649 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1650 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1651 --with-included-gettext use the GNU gettext library included here 1652 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 1653 --without-libintl-prefix don't search for libintl in includedir and libdir 1654 --with-pic try to use only PIC/non-PIC objects [default=use 1655 both] 1656 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1657 --with-included-ltdl use the GNU ltdl sources included here 1658 --with-ltdl-include=DIR use the ltdl headers installed in DIR 1659 --with-ltdl-lib=DIR use the libltdl.la installed in DIR 1660 1661Some influential environment variables: 1662 CC C compiler command 1663 CFLAGS C compiler flags 1664 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1665 nonstandard directory <lib dir> 1666 LIBS libraries to pass to the linker, e.g. -l<library> 1667 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1668 you have headers in a nonstandard directory <include dir> 1669 CPP C preprocessor 1670 CXX C++ compiler command 1671 CXXFLAGS C++ compiler flags 1672 CXXCPP C++ preprocessor 1673 PKG_CONFIG path to pkg-config utility 1674 PKG_CONFIG_PATH 1675 directories to add to pkg-config's search path 1676 PKG_CONFIG_LIBDIR 1677 path overriding pkg-config's built-in search path 1678 SCIM_CFLAGS C compiler flags for SCIM, overriding pkg-config 1679 SCIM_LIBS linker flags for SCIM, overriding pkg-config 1680 GTK2_CFLAGS C compiler flags for GTK2, overriding pkg-config 1681 GTK2_LIBS linker flags for GTK2, overriding pkg-config 1682 1683Use these variables to override the choices made by `configure' or to help 1684it to find libraries and programs with nonstandard names/locations. 1685 1686Report bugs to <suzhe@tsinghua.org.cn>. 1687_ACEOF 1688ac_status=$? 1689fi 1690 1691if test "$ac_init_help" = "recursive"; then 1692 # If there are subdirs, report their specific --help. 1693 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1694 test -d "$ac_dir" || 1695 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1696 continue 1697 ac_builddir=. 1698 1699case "$ac_dir" in 1700.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1701*) 1702 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1703 # A ".." for each directory in $ac_dir_suffix. 1704 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1705 case $ac_top_builddir_sub in 1706 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1707 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1708 esac ;; 1709esac 1710ac_abs_top_builddir=$ac_pwd 1711ac_abs_builddir=$ac_pwd$ac_dir_suffix 1712# for backward compatibility: 1713ac_top_builddir=$ac_top_build_prefix 1714 1715case $srcdir in 1716 .) # We are building in place. 1717 ac_srcdir=. 1718 ac_top_srcdir=$ac_top_builddir_sub 1719 ac_abs_top_srcdir=$ac_pwd ;; 1720 [\\/]* | ?:[\\/]* ) # Absolute name. 1721 ac_srcdir=$srcdir$ac_dir_suffix; 1722 ac_top_srcdir=$srcdir 1723 ac_abs_top_srcdir=$srcdir ;; 1724 *) # Relative name. 1725 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1726 ac_top_srcdir=$ac_top_build_prefix$srcdir 1727 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1728esac 1729ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1730 1731 cd "$ac_dir" || { ac_status=$?; continue; } 1732 # Check for guested configure. 1733 if test -f "$ac_srcdir/configure.gnu"; then 1734 echo && 1735 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1736 elif test -f "$ac_srcdir/configure"; then 1737 echo && 1738 $SHELL "$ac_srcdir/configure" --help=recursive 1739 else 1740 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1741 fi || ac_status=$? 1742 cd "$ac_pwd" || { ac_status=$?; break; } 1743 done 1744fi 1745 1746test -n "$ac_init_help" && exit $ac_status 1747if $ac_init_version; then 1748 cat <<\_ACEOF 1749scim-input-pad configure 0.1.3.1 1750generated by GNU Autoconf 2.68 1751 1752Copyright (C) 2010 Free Software Foundation, Inc. 1753This configure script is free software; the Free Software Foundation 1754gives unlimited permission to copy, distribute and modify it. 1755_ACEOF 1756 exit 1757fi 1758 1759## ------------------------ ## 1760## Autoconf initialization. ## 1761## ------------------------ ## 1762 1763# ac_fn_c_try_compile LINENO 1764# -------------------------- 1765# Try to compile conftest.$ac_ext, and return whether this succeeded. 1766ac_fn_c_try_compile () 1767{ 1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1769 rm -f conftest.$ac_objext 1770 if { { ac_try="$ac_compile" 1771case "(($ac_try" in 1772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1773 *) ac_try_echo=$ac_try;; 1774esac 1775eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1776$as_echo "$ac_try_echo"; } >&5 1777 (eval "$ac_compile") 2>conftest.err 1778 ac_status=$? 1779 if test -s conftest.err; then 1780 grep -v '^ *+' conftest.err >conftest.er1 1781 cat conftest.er1 >&5 1782 mv -f conftest.er1 conftest.err 1783 fi 1784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1785 test $ac_status = 0; } && { 1786 test -z "$ac_c_werror_flag" || 1787 test ! -s conftest.err 1788 } && test -s conftest.$ac_objext; then : 1789 ac_retval=0 1790else 1791 $as_echo "$as_me: failed program was:" >&5 1792sed 's/^/| /' conftest.$ac_ext >&5 1793 1794 ac_retval=1 1795fi 1796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1797 as_fn_set_status $ac_retval 1798 1799} # ac_fn_c_try_compile 1800 1801# ac_fn_c_try_link LINENO 1802# ----------------------- 1803# Try to link conftest.$ac_ext, and return whether this succeeded. 1804ac_fn_c_try_link () 1805{ 1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1807 rm -f conftest.$ac_objext conftest$ac_exeext 1808 if { { ac_try="$ac_link" 1809case "(($ac_try" in 1810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1811 *) ac_try_echo=$ac_try;; 1812esac 1813eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1814$as_echo "$ac_try_echo"; } >&5 1815 (eval "$ac_link") 2>conftest.err 1816 ac_status=$? 1817 if test -s conftest.err; then 1818 grep -v '^ *+' conftest.err >conftest.er1 1819 cat conftest.er1 >&5 1820 mv -f conftest.er1 conftest.err 1821 fi 1822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1823 test $ac_status = 0; } && { 1824 test -z "$ac_c_werror_flag" || 1825 test ! -s conftest.err 1826 } && test -s conftest$ac_exeext && { 1827 test "$cross_compiling" = yes || 1828 $as_test_x conftest$ac_exeext 1829 }; then : 1830 ac_retval=0 1831else 1832 $as_echo "$as_me: failed program was:" >&5 1833sed 's/^/| /' conftest.$ac_ext >&5 1834 1835 ac_retval=1 1836fi 1837 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1838 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1839 # interfere with the next link command; also delete a directory that is 1840 # left behind by Apple's compiler. We do this before executing the actions. 1841 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1843 as_fn_set_status $ac_retval 1844 1845} # ac_fn_c_try_link 1846 1847# ac_fn_c_try_cpp LINENO 1848# ---------------------- 1849# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1850ac_fn_c_try_cpp () 1851{ 1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1853 if { { ac_try="$ac_cpp conftest.$ac_ext" 1854case "(($ac_try" in 1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1856 *) ac_try_echo=$ac_try;; 1857esac 1858eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1859$as_echo "$ac_try_echo"; } >&5 1860 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1861 ac_status=$? 1862 if test -s conftest.err; then 1863 grep -v '^ *+' conftest.err >conftest.er1 1864 cat conftest.er1 >&5 1865 mv -f conftest.er1 conftest.err 1866 fi 1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1868 test $ac_status = 0; } > conftest.i && { 1869 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1870 test ! -s conftest.err 1871 }; then : 1872 ac_retval=0 1873else 1874 $as_echo "$as_me: failed program was:" >&5 1875sed 's/^/| /' conftest.$ac_ext >&5 1876 1877 ac_retval=1 1878fi 1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1880 as_fn_set_status $ac_retval 1881 1882} # ac_fn_c_try_cpp 1883 1884# ac_fn_c_try_run LINENO 1885# ---------------------- 1886# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1887# that executables *can* be run. 1888ac_fn_c_try_run () 1889{ 1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1891 if { { ac_try="$ac_link" 1892case "(($ac_try" in 1893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1894 *) ac_try_echo=$ac_try;; 1895esac 1896eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1897$as_echo "$ac_try_echo"; } >&5 1898 (eval "$ac_link") 2>&5 1899 ac_status=$? 1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1901 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1902 { { case "(($ac_try" in 1903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1904 *) ac_try_echo=$ac_try;; 1905esac 1906eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1907$as_echo "$ac_try_echo"; } >&5 1908 (eval "$ac_try") 2>&5 1909 ac_status=$? 1910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1911 test $ac_status = 0; }; }; then : 1912 ac_retval=0 1913else 1914 $as_echo "$as_me: program exited with status $ac_status" >&5 1915 $as_echo "$as_me: failed program was:" >&5 1916sed 's/^/| /' conftest.$ac_ext >&5 1917 1918 ac_retval=$ac_status 1919fi 1920 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1922 as_fn_set_status $ac_retval 1923 1924} # ac_fn_c_try_run 1925 1926# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1927# ------------------------------------------- 1928# Tests whether TYPE exists after having included INCLUDES, setting cache 1929# variable VAR accordingly. 1930ac_fn_c_check_type () 1931{ 1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1934$as_echo_n "checking for $2... " >&6; } 1935if eval \${$3+:} false; then : 1936 $as_echo_n "(cached) " >&6 1937else 1938 eval "$3=no" 1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1940/* end confdefs.h. */ 1941$4 1942int 1943main () 1944{ 1945if (sizeof ($2)) 1946 return 0; 1947 ; 1948 return 0; 1949} 1950_ACEOF 1951if ac_fn_c_try_compile "$LINENO"; then : 1952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1953/* end confdefs.h. */ 1954$4 1955int 1956main () 1957{ 1958if (sizeof (($2))) 1959 return 0; 1960 ; 1961 return 0; 1962} 1963_ACEOF 1964if ac_fn_c_try_compile "$LINENO"; then : 1965 1966else 1967 eval "$3=yes" 1968fi 1969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1970fi 1971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1972fi 1973eval ac_res=\$$3 1974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1975$as_echo "$ac_res" >&6; } 1976 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1977 1978} # ac_fn_c_check_type 1979 1980# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1981# ------------------------------------------------------- 1982# Tests whether HEADER exists and can be compiled using the include files in 1983# INCLUDES, setting the cache variable VAR accordingly. 1984ac_fn_c_check_header_compile () 1985{ 1986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1988$as_echo_n "checking for $2... " >&6; } 1989if eval \${$3+:} false; then : 1990 $as_echo_n "(cached) " >&6 1991else 1992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1993/* end confdefs.h. */ 1994$4 1995#include <$2> 1996_ACEOF 1997if ac_fn_c_try_compile "$LINENO"; then : 1998 eval "$3=yes" 1999else 2000 eval "$3=no" 2001fi 2002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2003fi 2004eval ac_res=\$$3 2005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2006$as_echo "$ac_res" >&6; } 2007 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2008 2009} # ac_fn_c_check_header_compile 2010 2011# ac_fn_c_check_func LINENO FUNC VAR 2012# ---------------------------------- 2013# Tests whether FUNC exists, setting the cache variable VAR accordingly 2014ac_fn_c_check_func () 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 eval \${$3+:} false; then : 2020 $as_echo_n "(cached) " >&6 2021else 2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2023/* end confdefs.h. */ 2024/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2025 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2026#define $2 innocuous_$2 2027 2028/* System header to define __stub macros and hopefully few prototypes, 2029 which can conflict with char $2 (); below. 2030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2031 <limits.h> exists even on freestanding compilers. */ 2032 2033#ifdef __STDC__ 2034# include <limits.h> 2035#else 2036# include <assert.h> 2037#endif 2038 2039#undef $2 2040 2041/* Override any GCC internal prototype to avoid an error. 2042 Use char because int might match the return type of a GCC 2043 builtin and then its argument prototype would still apply. */ 2044#ifdef __cplusplus 2045extern "C" 2046#endif 2047char $2 (); 2048/* The GNU C library defines this for functions which it implements 2049 to always fail with ENOSYS. Some functions are actually named 2050 something starting with __ and the normal name is an alias. */ 2051#if defined __stub_$2 || defined __stub___$2 2052choke me 2053#endif 2054 2055int 2056main () 2057{ 2058return $2 (); 2059 ; 2060 return 0; 2061} 2062_ACEOF 2063if ac_fn_c_try_link "$LINENO"; then : 2064 eval "$3=yes" 2065else 2066 eval "$3=no" 2067fi 2068rm -f core conftest.err conftest.$ac_objext \ 2069 conftest$ac_exeext conftest.$ac_ext 2070fi 2071eval ac_res=\$$3 2072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2073$as_echo "$ac_res" >&6; } 2074 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2075 2076} # ac_fn_c_check_func 2077 2078# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2079# ------------------------------------------------------- 2080# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2081# the include files in INCLUDES and setting the cache variable VAR 2082# accordingly. 2083ac_fn_c_check_header_mongrel () 2084{ 2085 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2086 if eval \${$3+:} false; then : 2087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2088$as_echo_n "checking for $2... " >&6; } 2089if eval \${$3+:} false; then : 2090 $as_echo_n "(cached) " >&6 2091fi 2092eval ac_res=\$$3 2093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2094$as_echo "$ac_res" >&6; } 2095else 2096 # Is the header compilable? 2097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2098$as_echo_n "checking $2 usability... " >&6; } 2099cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2100/* end confdefs.h. */ 2101$4 2102#include <$2> 2103_ACEOF 2104if ac_fn_c_try_compile "$LINENO"; then : 2105 ac_header_compiler=yes 2106else 2107 ac_header_compiler=no 2108fi 2109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2111$as_echo "$ac_header_compiler" >&6; } 2112 2113# Is the header present? 2114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2115$as_echo_n "checking $2 presence... " >&6; } 2116cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2117/* end confdefs.h. */ 2118#include <$2> 2119_ACEOF 2120if ac_fn_c_try_cpp "$LINENO"; then : 2121 ac_header_preproc=yes 2122else 2123 ac_header_preproc=no 2124fi 2125rm -f conftest.err conftest.i conftest.$ac_ext 2126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2127$as_echo "$ac_header_preproc" >&6; } 2128 2129# So? What about this header? 2130case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2131 yes:no: ) 2132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2133$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2135$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2136 ;; 2137 no:yes:* ) 2138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2139$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2141$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2143$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2145$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2147$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2148( $as_echo "## ------------------------------------ ## 2149## Report this to suzhe@tsinghua.org.cn ## 2150## ------------------------------------ ##" 2151 ) | sed "s/^/$as_me: WARNING: /" >&2 2152 ;; 2153esac 2154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2155$as_echo_n "checking for $2... " >&6; } 2156if eval \${$3+:} false; then : 2157 $as_echo_n "(cached) " >&6 2158else 2159 eval "$3=\$ac_header_compiler" 2160fi 2161eval ac_res=\$$3 2162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2163$as_echo "$ac_res" >&6; } 2164fi 2165 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2166 2167} # ac_fn_c_check_header_mongrel 2168 2169# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2170# -------------------------------------------- 2171# Tries to find the compile-time value of EXPR in a program that includes 2172# INCLUDES, setting VAR accordingly. Returns whether the value could be 2173# computed 2174ac_fn_c_compute_int () 2175{ 2176 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2177 if test "$cross_compiling" = yes; then 2178 # Depending upon the size, compute the lo and hi bounds. 2179cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2180/* end confdefs.h. */ 2181$4 2182int 2183main () 2184{ 2185static int test_array [1 - 2 * !(($2) >= 0)]; 2186test_array [0] = 0 2187 2188 ; 2189 return 0; 2190} 2191_ACEOF 2192if ac_fn_c_try_compile "$LINENO"; then : 2193 ac_lo=0 ac_mid=0 2194 while :; do 2195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2196/* end confdefs.h. */ 2197$4 2198int 2199main () 2200{ 2201static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2202test_array [0] = 0 2203 2204 ; 2205 return 0; 2206} 2207_ACEOF 2208if ac_fn_c_try_compile "$LINENO"; then : 2209 ac_hi=$ac_mid; break 2210else 2211 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2212 if test $ac_lo -le $ac_mid; then 2213 ac_lo= ac_hi= 2214 break 2215 fi 2216 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2217fi 2218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2219 done 2220else 2221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2222/* end confdefs.h. */ 2223$4 2224int 2225main () 2226{ 2227static int test_array [1 - 2 * !(($2) < 0)]; 2228test_array [0] = 0 2229 2230 ; 2231 return 0; 2232} 2233_ACEOF 2234if ac_fn_c_try_compile "$LINENO"; then : 2235 ac_hi=-1 ac_mid=-1 2236 while :; do 2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2238/* end confdefs.h. */ 2239$4 2240int 2241main () 2242{ 2243static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2244test_array [0] = 0 2245 2246 ; 2247 return 0; 2248} 2249_ACEOF 2250if ac_fn_c_try_compile "$LINENO"; then : 2251 ac_lo=$ac_mid; break 2252else 2253 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2254 if test $ac_mid -le $ac_hi; then 2255 ac_lo= ac_hi= 2256 break 2257 fi 2258 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2259fi 2260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2261 done 2262else 2263 ac_lo= ac_hi= 2264fi 2265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2266fi 2267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2268# Binary search between lo and hi bounds. 2269while test "x$ac_lo" != "x$ac_hi"; do 2270 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2272/* end confdefs.h. */ 2273$4 2274int 2275main () 2276{ 2277static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2278test_array [0] = 0 2279 2280 ; 2281 return 0; 2282} 2283_ACEOF 2284if ac_fn_c_try_compile "$LINENO"; then : 2285 ac_hi=$ac_mid 2286else 2287 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2288fi 2289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2290done 2291case $ac_lo in #(( 2292?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2293'') ac_retval=1 ;; 2294esac 2295 else 2296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2297/* end confdefs.h. */ 2298$4 2299static long int longval () { return $2; } 2300static unsigned long int ulongval () { return $2; } 2301#include <stdio.h> 2302#include <stdlib.h> 2303int 2304main () 2305{ 2306 2307 FILE *f = fopen ("conftest.val", "w"); 2308 if (! f) 2309 return 1; 2310 if (($2) < 0) 2311 { 2312 long int i = longval (); 2313 if (i != ($2)) 2314 return 1; 2315 fprintf (f, "%ld", i); 2316 } 2317 else 2318 { 2319 unsigned long int i = ulongval (); 2320 if (i != ($2)) 2321 return 1; 2322 fprintf (f, "%lu", i); 2323 } 2324 /* Do not output a trailing newline, as this causes \r\n confusion 2325 on some platforms. */ 2326 return ferror (f) || fclose (f) != 0; 2327 2328 ; 2329 return 0; 2330} 2331_ACEOF 2332if ac_fn_c_try_run "$LINENO"; then : 2333 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2334else 2335 ac_retval=1 2336fi 2337rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2338 conftest.$ac_objext conftest.beam conftest.$ac_ext 2339rm -f conftest.val 2340 2341 fi 2342 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2343 as_fn_set_status $ac_retval 2344 2345} # ac_fn_c_compute_int 2346 2347# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2348# --------------------------------------------- 2349# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2350# accordingly. 2351ac_fn_c_check_decl () 2352{ 2353 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2354 as_decl_name=`echo $2|sed 's/ *(.*//'` 2355 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2357$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2358if eval \${$3+:} false; then : 2359 $as_echo_n "(cached) " >&6 2360else 2361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2362/* end confdefs.h. */ 2363$4 2364int 2365main () 2366{ 2367#ifndef $as_decl_name 2368#ifdef __cplusplus 2369 (void) $as_decl_use; 2370#else 2371 (void) $as_decl_name; 2372#endif 2373#endif 2374 2375 ; 2376 return 0; 2377} 2378_ACEOF 2379if ac_fn_c_try_compile "$LINENO"; then : 2380 eval "$3=yes" 2381else 2382 eval "$3=no" 2383fi 2384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2385fi 2386eval ac_res=\$$3 2387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2388$as_echo "$ac_res" >&6; } 2389 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2390 2391} # ac_fn_c_check_decl 2392 2393# ac_fn_cxx_try_compile LINENO 2394# ---------------------------- 2395# Try to compile conftest.$ac_ext, and return whether this succeeded. 2396ac_fn_cxx_try_compile () 2397{ 2398 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2399 rm -f conftest.$ac_objext 2400 if { { ac_try="$ac_compile" 2401case "(($ac_try" in 2402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2403 *) ac_try_echo=$ac_try;; 2404esac 2405eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2406$as_echo "$ac_try_echo"; } >&5 2407 (eval "$ac_compile") 2>conftest.err 2408 ac_status=$? 2409 if test -s conftest.err; then 2410 grep -v '^ *+' conftest.err >conftest.er1 2411 cat conftest.er1 >&5 2412 mv -f conftest.er1 conftest.err 2413 fi 2414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2415 test $ac_status = 0; } && { 2416 test -z "$ac_cxx_werror_flag" || 2417 test ! -s conftest.err 2418 } && test -s conftest.$ac_objext; then : 2419 ac_retval=0 2420else 2421 $as_echo "$as_me: failed program was:" >&5 2422sed 's/^/| /' conftest.$ac_ext >&5 2423 2424 ac_retval=1 2425fi 2426 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2427 as_fn_set_status $ac_retval 2428 2429} # ac_fn_cxx_try_compile 2430 2431# ac_fn_cxx_try_cpp LINENO 2432# ------------------------ 2433# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2434ac_fn_cxx_try_cpp () 2435{ 2436 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2437 if { { ac_try="$ac_cpp conftest.$ac_ext" 2438case "(($ac_try" in 2439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2440 *) ac_try_echo=$ac_try;; 2441esac 2442eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2443$as_echo "$ac_try_echo"; } >&5 2444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2445 ac_status=$? 2446 if test -s conftest.err; then 2447 grep -v '^ *+' conftest.err >conftest.er1 2448 cat conftest.er1 >&5 2449 mv -f conftest.er1 conftest.err 2450 fi 2451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2452 test $ac_status = 0; } > conftest.i && { 2453 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2454 test ! -s conftest.err 2455 }; then : 2456 ac_retval=0 2457else 2458 $as_echo "$as_me: failed program was:" >&5 2459sed 's/^/| /' conftest.$ac_ext >&5 2460 2461 ac_retval=1 2462fi 2463 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2464 as_fn_set_status $ac_retval 2465 2466} # ac_fn_cxx_try_cpp 2467 2468# ac_fn_cxx_try_link LINENO 2469# ------------------------- 2470# Try to link conftest.$ac_ext, and return whether this succeeded. 2471ac_fn_cxx_try_link () 2472{ 2473 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2474 rm -f conftest.$ac_objext conftest$ac_exeext 2475 if { { ac_try="$ac_link" 2476case "(($ac_try" in 2477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2478 *) ac_try_echo=$ac_try;; 2479esac 2480eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2481$as_echo "$ac_try_echo"; } >&5 2482 (eval "$ac_link") 2>conftest.err 2483 ac_status=$? 2484 if test -s conftest.err; then 2485 grep -v '^ *+' conftest.err >conftest.er1 2486 cat conftest.er1 >&5 2487 mv -f conftest.er1 conftest.err 2488 fi 2489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2490 test $ac_status = 0; } && { 2491 test -z "$ac_cxx_werror_flag" || 2492 test ! -s conftest.err 2493 } && test -s conftest$ac_exeext && { 2494 test "$cross_compiling" = yes || 2495 $as_test_x conftest$ac_exeext 2496 }; then : 2497 ac_retval=0 2498else 2499 $as_echo "$as_me: failed program was:" >&5 2500sed 's/^/| /' conftest.$ac_ext >&5 2501 2502 ac_retval=1 2503fi 2504 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2505 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2506 # interfere with the next link command; also delete a directory that is 2507 # left behind by Apple's compiler. We do this before executing the actions. 2508 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2509 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2510 as_fn_set_status $ac_retval 2511 2512} # ac_fn_cxx_try_link 2513 2514# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES 2515# --------------------------------------------- 2516# Tests whether TYPE exists after having included INCLUDES, setting cache 2517# variable VAR accordingly. 2518ac_fn_cxx_check_type () 2519{ 2520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2522$as_echo_n "checking for $2... " >&6; } 2523if eval \${$3+:} false; then : 2524 $as_echo_n "(cached) " >&6 2525else 2526 eval "$3=no" 2527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2528/* end confdefs.h. */ 2529$4 2530int 2531main () 2532{ 2533if (sizeof ($2)) 2534 return 0; 2535 ; 2536 return 0; 2537} 2538_ACEOF 2539if ac_fn_cxx_try_compile "$LINENO"; then : 2540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2541/* end confdefs.h. */ 2542$4 2543int 2544main () 2545{ 2546if (sizeof (($2))) 2547 return 0; 2548 ; 2549 return 0; 2550} 2551_ACEOF 2552if ac_fn_cxx_try_compile "$LINENO"; then : 2553 2554else 2555 eval "$3=yes" 2556fi 2557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2558fi 2559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2560fi 2561eval ac_res=\$$3 2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2563$as_echo "$ac_res" >&6; } 2564 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2565 2566} # ac_fn_cxx_check_type 2567 2568# ac_fn_cxx_try_run LINENO 2569# ------------------------ 2570# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2571# that executables *can* be run. 2572ac_fn_cxx_try_run () 2573{ 2574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2575 if { { ac_try="$ac_link" 2576case "(($ac_try" in 2577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2578 *) ac_try_echo=$ac_try;; 2579esac 2580eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2581$as_echo "$ac_try_echo"; } >&5 2582 (eval "$ac_link") 2>&5 2583 ac_status=$? 2584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2585 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2586 { { case "(($ac_try" in 2587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2588 *) ac_try_echo=$ac_try;; 2589esac 2590eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2591$as_echo "$ac_try_echo"; } >&5 2592 (eval "$ac_try") 2>&5 2593 ac_status=$? 2594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2595 test $ac_status = 0; }; }; then : 2596 ac_retval=0 2597else 2598 $as_echo "$as_me: program exited with status $ac_status" >&5 2599 $as_echo "$as_me: failed program was:" >&5 2600sed 's/^/| /' conftest.$ac_ext >&5 2601 2602 ac_retval=$ac_status 2603fi 2604 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2605 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2606 as_fn_set_status $ac_retval 2607 2608} # ac_fn_cxx_try_run 2609 2610# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2611# --------------------------------------------------------- 2612# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2613# the include files in INCLUDES and setting the cache variable VAR 2614# accordingly. 2615ac_fn_cxx_check_header_mongrel () 2616{ 2617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2618 if eval \${$3+:} false; then : 2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2620$as_echo_n "checking for $2... " >&6; } 2621if eval \${$3+:} false; then : 2622 $as_echo_n "(cached) " >&6 2623fi 2624eval ac_res=\$$3 2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2626$as_echo "$ac_res" >&6; } 2627else 2628 # Is the header compilable? 2629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2630$as_echo_n "checking $2 usability... " >&6; } 2631cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2632/* end confdefs.h. */ 2633$4 2634#include <$2> 2635_ACEOF 2636if ac_fn_cxx_try_compile "$LINENO"; then : 2637 ac_header_compiler=yes 2638else 2639 ac_header_compiler=no 2640fi 2641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2643$as_echo "$ac_header_compiler" >&6; } 2644 2645# Is the header present? 2646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2647$as_echo_n "checking $2 presence... " >&6; } 2648cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2649/* end confdefs.h. */ 2650#include <$2> 2651_ACEOF 2652if ac_fn_cxx_try_cpp "$LINENO"; then : 2653 ac_header_preproc=yes 2654else 2655 ac_header_preproc=no 2656fi 2657rm -f conftest.err conftest.i conftest.$ac_ext 2658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2659$as_echo "$ac_header_preproc" >&6; } 2660 2661# So? What about this header? 2662case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2663 yes:no: ) 2664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2665$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2667$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2668 ;; 2669 no:yes:* ) 2670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2671$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2673$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2675$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2677$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2679$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2680( $as_echo "## ------------------------------------ ## 2681## Report this to suzhe@tsinghua.org.cn ## 2682## ------------------------------------ ##" 2683 ) | sed "s/^/$as_me: WARNING: /" >&2 2684 ;; 2685esac 2686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2687$as_echo_n "checking for $2... " >&6; } 2688if eval \${$3+:} false; then : 2689 $as_echo_n "(cached) " >&6 2690else 2691 eval "$3=\$ac_header_compiler" 2692fi 2693eval ac_res=\$$3 2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2695$as_echo "$ac_res" >&6; } 2696fi 2697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2698 2699} # ac_fn_cxx_check_header_mongrel 2700cat >config.log <<_ACEOF 2701This file contains any messages produced by compilers while 2702running configure, to aid debugging if configure makes a mistake. 2703 2704It was created by scim-input-pad $as_me 0.1.3.1, which was 2705generated by GNU Autoconf 2.68. Invocation command line was 2706 2707 $ $0 $@ 2708 2709_ACEOF 2710exec 5>>config.log 2711{ 2712cat <<_ASUNAME 2713## --------- ## 2714## Platform. ## 2715## --------- ## 2716 2717hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2718uname -m = `(uname -m) 2>/dev/null || echo unknown` 2719uname -r = `(uname -r) 2>/dev/null || echo unknown` 2720uname -s = `(uname -s) 2>/dev/null || echo unknown` 2721uname -v = `(uname -v) 2>/dev/null || echo unknown` 2722 2723/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2724/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2725 2726/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2727/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2728/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2729/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2730/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2731/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2732/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2733 2734_ASUNAME 2735 2736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2737for as_dir in $PATH 2738do 2739 IFS=$as_save_IFS 2740 test -z "$as_dir" && as_dir=. 2741 $as_echo "PATH: $as_dir" 2742 done 2743IFS=$as_save_IFS 2744 2745} >&5 2746 2747cat >&5 <<_ACEOF 2748 2749 2750## ----------- ## 2751## Core tests. ## 2752## ----------- ## 2753 2754_ACEOF 2755 2756 2757# Keep a trace of the command line. 2758# Strip out --no-create and --no-recursion so they do not pile up. 2759# Strip out --silent because we don't want to record it for future runs. 2760# Also quote any args containing shell meta-characters. 2761# Make two passes to allow for proper duplicate-argument suppression. 2762ac_configure_args= 2763ac_configure_args0= 2764ac_configure_args1= 2765ac_must_keep_next=false 2766for ac_pass in 1 2 2767do 2768 for ac_arg 2769 do 2770 case $ac_arg in 2771 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2772 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2773 | -silent | --silent | --silen | --sile | --sil) 2774 continue ;; 2775 *\'*) 2776 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2777 esac 2778 case $ac_pass in 2779 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2780 2) 2781 as_fn_append ac_configure_args1 " '$ac_arg'" 2782 if test $ac_must_keep_next = true; then 2783 ac_must_keep_next=false # Got value, back to normal. 2784 else 2785 case $ac_arg in 2786 *=* | --config-cache | -C | -disable-* | --disable-* \ 2787 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2788 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2789 | -with-* | --with-* | -without-* | --without-* | --x) 2790 case "$ac_configure_args0 " in 2791 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2792 esac 2793 ;; 2794 -* ) ac_must_keep_next=true ;; 2795 esac 2796 fi 2797 as_fn_append ac_configure_args " '$ac_arg'" 2798 ;; 2799 esac 2800 done 2801done 2802{ ac_configure_args0=; unset ac_configure_args0;} 2803{ ac_configure_args1=; unset ac_configure_args1;} 2804 2805# When interrupted or exit'd, cleanup temporary files, and complete 2806# config.log. We remove comments because anyway the quotes in there 2807# would cause problems or look ugly. 2808# WARNING: Use '\'' to represent an apostrophe within the trap. 2809# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2810trap 'exit_status=$? 2811 # Save into config.log some information that might help in debugging. 2812 { 2813 echo 2814 2815 $as_echo "## ---------------- ## 2816## Cache variables. ## 2817## ---------------- ##" 2818 echo 2819 # The following way of writing the cache mishandles newlines in values, 2820( 2821 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2822 eval ac_val=\$$ac_var 2823 case $ac_val in #( 2824 *${as_nl}*) 2825 case $ac_var in #( 2826 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2827$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2828 esac 2829 case $ac_var in #( 2830 _ | IFS | as_nl) ;; #( 2831 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2832 *) { eval $ac_var=; unset $ac_var;} ;; 2833 esac ;; 2834 esac 2835 done 2836 (set) 2>&1 | 2837 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2838 *${as_nl}ac_space=\ *) 2839 sed -n \ 2840 "s/'\''/'\''\\\\'\'''\''/g; 2841 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2842 ;; #( 2843 *) 2844 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2845 ;; 2846 esac | 2847 sort 2848) 2849 echo 2850 2851 $as_echo "## ----------------- ## 2852## Output variables. ## 2853## ----------------- ##" 2854 echo 2855 for ac_var in $ac_subst_vars 2856 do 2857 eval ac_val=\$$ac_var 2858 case $ac_val in 2859 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2860 esac 2861 $as_echo "$ac_var='\''$ac_val'\''" 2862 done | sort 2863 echo 2864 2865 if test -n "$ac_subst_files"; then 2866 $as_echo "## ------------------- ## 2867## File substitutions. ## 2868## ------------------- ##" 2869 echo 2870 for ac_var in $ac_subst_files 2871 do 2872 eval ac_val=\$$ac_var 2873 case $ac_val in 2874 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2875 esac 2876 $as_echo "$ac_var='\''$ac_val'\''" 2877 done | sort 2878 echo 2879 fi 2880 2881 if test -s confdefs.h; then 2882 $as_echo "## ----------- ## 2883## confdefs.h. ## 2884## ----------- ##" 2885 echo 2886 cat confdefs.h 2887 echo 2888 fi 2889 test "$ac_signal" != 0 && 2890 $as_echo "$as_me: caught signal $ac_signal" 2891 $as_echo "$as_me: exit $exit_status" 2892 } >&5 2893 rm -f core *.core core.conftest.* && 2894 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2895 exit $exit_status 2896' 0 2897for ac_signal in 1 2 13 15; do 2898 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2899done 2900ac_signal=0 2901 2902# confdefs.h avoids OS command line length limits that DEFS can exceed. 2903rm -f -r conftest* confdefs.h 2904 2905$as_echo "/* confdefs.h */" > confdefs.h 2906 2907# Predefined preprocessor variables. 2908 2909cat >>confdefs.h <<_ACEOF 2910#define PACKAGE_NAME "$PACKAGE_NAME" 2911_ACEOF 2912 2913cat >>confdefs.h <<_ACEOF 2914#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2915_ACEOF 2916 2917cat >>confdefs.h <<_ACEOF 2918#define PACKAGE_VERSION "$PACKAGE_VERSION" 2919_ACEOF 2920 2921cat >>confdefs.h <<_ACEOF 2922#define PACKAGE_STRING "$PACKAGE_STRING" 2923_ACEOF 2924 2925cat >>confdefs.h <<_ACEOF 2926#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2927_ACEOF 2928 2929cat >>confdefs.h <<_ACEOF 2930#define PACKAGE_URL "$PACKAGE_URL" 2931_ACEOF 2932 2933 2934# Let the site file select an alternate cache file if it wants to. 2935# Prefer an explicitly selected file to automatically selected ones. 2936ac_site_file1=NONE 2937ac_site_file2=NONE 2938if test -n "$CONFIG_SITE"; then 2939 # We do not want a PATH search for config.site. 2940 case $CONFIG_SITE in #(( 2941 -*) ac_site_file1=./$CONFIG_SITE;; 2942 */*) ac_site_file1=$CONFIG_SITE;; 2943 *) ac_site_file1=./$CONFIG_SITE;; 2944 esac 2945elif test "x$prefix" != xNONE; then 2946 ac_site_file1=$prefix/share/config.site 2947 ac_site_file2=$prefix/etc/config.site 2948else 2949 ac_site_file1=$ac_default_prefix/share/config.site 2950 ac_site_file2=$ac_default_prefix/etc/config.site 2951fi 2952for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2953do 2954 test "x$ac_site_file" = xNONE && continue 2955 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2956 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2957$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2958 sed 's/^/| /' "$ac_site_file" >&5 2959 . "$ac_site_file" \ 2960 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2961$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2962as_fn_error $? "failed to load site script $ac_site_file 2963See \`config.log' for more details" "$LINENO" 5; } 2964 fi 2965done 2966 2967if test -r "$cache_file"; then 2968 # Some versions of bash will fail to source /dev/null (special files 2969 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2970 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2971 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2972$as_echo "$as_me: loading cache $cache_file" >&6;} 2973 case $cache_file in 2974 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2975 *) . "./$cache_file";; 2976 esac 2977 fi 2978else 2979 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2980$as_echo "$as_me: creating cache $cache_file" >&6;} 2981 >$cache_file 2982fi 2983 2984as_fn_append ac_header_list " stdlib.h" 2985as_fn_append ac_header_list " unistd.h" 2986as_fn_append ac_header_list " sys/param.h" 2987# Check that the precious variables saved in the cache have kept the same 2988# value. 2989ac_cache_corrupted=false 2990for ac_var in $ac_precious_vars; do 2991 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2992 eval ac_new_set=\$ac_env_${ac_var}_set 2993 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2994 eval ac_new_val=\$ac_env_${ac_var}_value 2995 case $ac_old_set,$ac_new_set in 2996 set,) 2997 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2998$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2999 ac_cache_corrupted=: ;; 3000 ,set) 3001 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3002$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3003 ac_cache_corrupted=: ;; 3004 ,);; 3005 *) 3006 if test "x$ac_old_val" != "x$ac_new_val"; then 3007 # differences in whitespace do not lead to failure. 3008 ac_old_val_w=`echo x $ac_old_val` 3009 ac_new_val_w=`echo x $ac_new_val` 3010 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3011 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3012$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3013 ac_cache_corrupted=: 3014 else 3015 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3016$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3017 eval $ac_var=\$ac_old_val 3018 fi 3019 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3020$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3021 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3022$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3023 fi;; 3024 esac 3025 # Pass precious variables to config.status. 3026 if test "$ac_new_set" = set; then 3027 case $ac_new_val in 3028 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3029 *) ac_arg=$ac_var=$ac_new_val ;; 3030 esac 3031 case " $ac_configure_args " in 3032 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3033 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3034 esac 3035 fi 3036done 3037if $ac_cache_corrupted; then 3038 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3039$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3040 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3041$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3042 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3043fi 3044## -------------------- ## 3045## Main body of script. ## 3046## -------------------- ## 3047 3048ac_ext=c 3049ac_cpp='$CPP $CPPFLAGS' 3050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3052ac_compiler_gnu=$ac_cv_c_compiler_gnu 3053 3054 3055 3056 3057SCIM_VERSION=1.2.0 3058GTK_VERSION=2.4.0 3059 3060 3061 3062 3063# libtool versioning for SCIM Input Pad 3064 3065# increment if the interface has additions, changes, removals. 3066SCIM_INPUT_PAD_CURRENT=1 3067 3068# increment any time the source changes; set to 0 if you increment CURRENT 3069SCIM_INPUT_PAD_REVISION=0 3070 3071# increment if any interfaces have been added; set to 0 3072# if any interfaces have been removed. removal has 3073# precedence over adding, so set to 0 if both happened. 3074SCIM_INPUT_PAD_AGE=1 3075 3076 3077 3078 3079 3080GETTEXT_PACKAGE=scim-input-pad 3081 3082 3083cat >>confdefs.h <<_ACEOF 3084#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE" 3085_ACEOF 3086 3087 3088# Init automake stuff 3089am__api_version='1.11' 3090 3091ac_aux_dir= 3092for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3093 if test -f "$ac_dir/install-sh"; then 3094 ac_aux_dir=$ac_dir 3095 ac_install_sh="$ac_aux_dir/install-sh -c" 3096 break 3097 elif test -f "$ac_dir/install.sh"; then 3098 ac_aux_dir=$ac_dir 3099 ac_install_sh="$ac_aux_dir/install.sh -c" 3100 break 3101 elif test -f "$ac_dir/shtool"; then 3102 ac_aux_dir=$ac_dir 3103 ac_install_sh="$ac_aux_dir/shtool install -c" 3104 break 3105 fi 3106done 3107if test -z "$ac_aux_dir"; then 3108 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 3109fi 3110 3111# These three variables are undocumented and unsupported, 3112# and are intended to be withdrawn in a future Autoconf release. 3113# They can cause serious problems if a builder's source tree is in a directory 3114# whose full name contains unusual characters. 3115ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3116ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3117ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3118 3119 3120# Find a good install program. We prefer a C program (faster), 3121# so one script is as good as another. But avoid the broken or 3122# incompatible versions: 3123# SysV /etc/install, /usr/sbin/install 3124# SunOS /usr/etc/install 3125# IRIX /sbin/install 3126# AIX /bin/install 3127# AmigaOS /C/install, which installs bootblocks on floppy discs 3128# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3129# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3130# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3131# OS/2's system install, which has a completely different semantic 3132# ./install, which can be erroneously created by make from ./install.sh. 3133# Reject install programs that cannot install multiple files. 3134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3135$as_echo_n "checking for a BSD-compatible install... " >&6; } 3136if test -z "$INSTALL"; then 3137if ${ac_cv_path_install+:} false; then : 3138 $as_echo_n "(cached) " >&6 3139else 3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3141for as_dir in $PATH 3142do 3143 IFS=$as_save_IFS 3144 test -z "$as_dir" && as_dir=. 3145 # Account for people who put trailing slashes in PATH elements. 3146case $as_dir/ in #(( 3147 ./ | .// | /[cC]/* | \ 3148 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3149 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3150 /usr/ucb/* ) ;; 3151 *) 3152 # OSF1 and SCO ODT 3.0 have their own names for install. 3153 # Don't use installbsd from OSF since it installs stuff as root 3154 # by default. 3155 for ac_prog in ginstall scoinst install; do 3156 for ac_exec_ext in '' $ac_executable_extensions; do 3157 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3158 if test $ac_prog = install && 3159 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3160 # AIX install. It has an incompatible calling convention. 3161 : 3162 elif test $ac_prog = install && 3163 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3164 # program-specific install script used by HP pwplus--don't use. 3165 : 3166 else 3167 rm -rf conftest.one conftest.two conftest.dir 3168 echo one > conftest.one 3169 echo two > conftest.two 3170 mkdir conftest.dir 3171 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3172 test -s conftest.one && test -s conftest.two && 3173 test -s conftest.dir/conftest.one && 3174 test -s conftest.dir/conftest.two 3175 then 3176 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3177 break 3 3178 fi 3179 fi 3180 fi 3181 done 3182 done 3183 ;; 3184esac 3185 3186 done 3187IFS=$as_save_IFS 3188 3189rm -rf conftest.one conftest.two conftest.dir 3190 3191fi 3192 if test "${ac_cv_path_install+set}" = set; then 3193 INSTALL=$ac_cv_path_install 3194 else 3195 # As a last resort, use the slow shell script. Don't cache a 3196 # value for INSTALL within a source directory, because that will 3197 # break other packages using the cache if that directory is 3198 # removed, or if the value is a relative name. 3199 INSTALL=$ac_install_sh 3200 fi 3201fi 3202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3203$as_echo "$INSTALL" >&6; } 3204 3205# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3206# It thinks the first close brace ends the variable substitution. 3207test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3208 3209test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3210 3211test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3212 3213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3214$as_echo_n "checking whether build environment is sane... " >&6; } 3215# Just in case 3216sleep 1 3217echo timestamp > conftest.file 3218# Reject unsafe characters in $srcdir or the absolute working directory 3219# name. Accept space and tab only in the latter. 3220am_lf=' 3221' 3222case `pwd` in 3223 *[\\\"\#\$\&\'\`$am_lf]*) 3224 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3225esac 3226case $srcdir in 3227 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3228 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 3229esac 3230 3231# Do `set' in a subshell so we don't clobber the current shell's 3232# arguments. Must try -L first in case configure is actually a 3233# symlink; some systems play weird games with the mod time of symlinks 3234# (eg FreeBSD returns the mod time of the symlink's containing 3235# directory). 3236if ( 3237 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3238 if test "$*" = "X"; then 3239 # -L didn't work. 3240 set X `ls -t "$srcdir/configure" conftest.file` 3241 fi 3242 rm -f conftest.file 3243 if test "$*" != "X $srcdir/configure conftest.file" \ 3244 && test "$*" != "X conftest.file $srcdir/configure"; then 3245 3246 # If neither matched, then we have a broken ls. This can happen 3247 # if, for instance, CONFIG_SHELL is bash and it inherits a 3248 # broken ls alias from the environment. This has actually 3249 # happened. Such a system could not be considered "sane". 3250 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3251alias in your environment" "$LINENO" 5 3252 fi 3253 3254 test "$2" = conftest.file 3255 ) 3256then 3257 # Ok. 3258 : 3259else 3260 as_fn_error $? "newly created file is older than distributed files! 3261Check your system clock" "$LINENO" 5 3262fi 3263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3264$as_echo "yes" >&6; } 3265test "$program_prefix" != NONE && 3266 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3267# Use a double $ so make ignores it. 3268test "$program_suffix" != NONE && 3269 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3270# Double any \ or $. 3271# By default was `s,x,x', remove it if useless. 3272ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3273program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3274 3275# expand $ac_aux_dir to an absolute path 3276am_aux_dir=`cd $ac_aux_dir && pwd` 3277 3278if test x"${MISSING+set}" != xset; then 3279 case $am_aux_dir in 3280 *\ * | *\ *) 3281 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3282 *) 3283 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3284 esac 3285fi 3286# Use eval to expand $SHELL 3287if eval "$MISSING --run true"; then 3288 am_missing_run="$MISSING --run " 3289else 3290 am_missing_run= 3291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 3292$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 3293fi 3294 3295if test x"${install_sh}" != xset; then 3296 case $am_aux_dir in 3297 *\ * | *\ *) 3298 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3299 *) 3300 install_sh="\${SHELL} $am_aux_dir/install-sh" 3301 esac 3302fi 3303 3304# Installed binaries are usually stripped using `strip' when the user 3305# run `make install-strip'. However `strip' might not be the right 3306# tool to use in cross-compilation environments, therefore Automake 3307# will honor the `STRIP' environment variable to overrule this program. 3308if test "$cross_compiling" != no; then 3309 if test -n "$ac_tool_prefix"; then 3310 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3311set dummy ${ac_tool_prefix}strip; ac_word=$2 3312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3313$as_echo_n "checking for $ac_word... " >&6; } 3314if ${ac_cv_prog_STRIP+:} false; then : 3315 $as_echo_n "(cached) " >&6 3316else 3317 if test -n "$STRIP"; then 3318 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3319else 3320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3321for as_dir in $PATH 3322do 3323 IFS=$as_save_IFS 3324 test -z "$as_dir" && as_dir=. 3325 for ac_exec_ext in '' $ac_executable_extensions; do 3326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3327 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3329 break 2 3330 fi 3331done 3332 done 3333IFS=$as_save_IFS 3334 3335fi 3336fi 3337STRIP=$ac_cv_prog_STRIP 3338if test -n "$STRIP"; then 3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3340$as_echo "$STRIP" >&6; } 3341else 3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3343$as_echo "no" >&6; } 3344fi 3345 3346 3347fi 3348if test -z "$ac_cv_prog_STRIP"; then 3349 ac_ct_STRIP=$STRIP 3350 # Extract the first word of "strip", so it can be a program name with args. 3351set dummy strip; ac_word=$2 3352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3353$as_echo_n "checking for $ac_word... " >&6; } 3354if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3355 $as_echo_n "(cached) " >&6 3356else 3357 if test -n "$ac_ct_STRIP"; then 3358 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3359else 3360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3361for as_dir in $PATH 3362do 3363 IFS=$as_save_IFS 3364 test -z "$as_dir" && as_dir=. 3365 for ac_exec_ext in '' $ac_executable_extensions; do 3366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3367 ac_cv_prog_ac_ct_STRIP="strip" 3368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3369 break 2 3370 fi 3371done 3372 done 3373IFS=$as_save_IFS 3374 3375fi 3376fi 3377ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3378if test -n "$ac_ct_STRIP"; then 3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3380$as_echo "$ac_ct_STRIP" >&6; } 3381else 3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3383$as_echo "no" >&6; } 3384fi 3385 3386 if test "x$ac_ct_STRIP" = x; then 3387 STRIP=":" 3388 else 3389 case $cross_compiling:$ac_tool_warned in 3390yes:) 3391{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3392$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3393ac_tool_warned=yes ;; 3394esac 3395 STRIP=$ac_ct_STRIP 3396 fi 3397else 3398 STRIP="$ac_cv_prog_STRIP" 3399fi 3400 3401fi 3402INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3403 3404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3405$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3406if test -z "$MKDIR_P"; then 3407 if ${ac_cv_path_mkdir+:} false; then : 3408 $as_echo_n "(cached) " >&6 3409else 3410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3411for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3412do 3413 IFS=$as_save_IFS 3414 test -z "$as_dir" && as_dir=. 3415 for ac_prog in mkdir gmkdir; do 3416 for ac_exec_ext in '' $ac_executable_extensions; do 3417 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 3418 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3419 'mkdir (GNU coreutils) '* | \ 3420 'mkdir (coreutils) '* | \ 3421 'mkdir (fileutils) '4.1*) 3422 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3423 break 3;; 3424 esac 3425 done 3426 done 3427 done 3428IFS=$as_save_IFS 3429 3430fi 3431 3432 test -d ./--version && rmdir ./--version 3433 if test "${ac_cv_path_mkdir+set}" = set; then 3434 MKDIR_P="$ac_cv_path_mkdir -p" 3435 else 3436 # As a last resort, use the slow shell script. Don't cache a 3437 # value for MKDIR_P within a source directory, because that will 3438 # break other packages using the cache if that directory is 3439 # removed, or if the value is a relative name. 3440 MKDIR_P="$ac_install_sh -d" 3441 fi 3442fi 3443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3444$as_echo "$MKDIR_P" >&6; } 3445 3446mkdir_p="$MKDIR_P" 3447case $mkdir_p in 3448 [\\/$]* | ?:[\\/]*) ;; 3449 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 3450esac 3451 3452for ac_prog in gawk mawk nawk awk 3453do 3454 # Extract the first word of "$ac_prog", so it can be a program name with args. 3455set dummy $ac_prog; ac_word=$2 3456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3457$as_echo_n "checking for $ac_word... " >&6; } 3458if ${ac_cv_prog_AWK+:} false; then : 3459 $as_echo_n "(cached) " >&6 3460else 3461 if test -n "$AWK"; then 3462 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3463else 3464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3465for as_dir in $PATH 3466do 3467 IFS=$as_save_IFS 3468 test -z "$as_dir" && as_dir=. 3469 for ac_exec_ext in '' $ac_executable_extensions; do 3470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3471 ac_cv_prog_AWK="$ac_prog" 3472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3473 break 2 3474 fi 3475done 3476 done 3477IFS=$as_save_IFS 3478 3479fi 3480fi 3481AWK=$ac_cv_prog_AWK 3482if test -n "$AWK"; then 3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3484$as_echo "$AWK" >&6; } 3485else 3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3487$as_echo "no" >&6; } 3488fi 3489 3490 3491 test -n "$AWK" && break 3492done 3493 3494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3495$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3496set x ${MAKE-make} 3497ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3498if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3499 $as_echo_n "(cached) " >&6 3500else 3501 cat >conftest.make <<\_ACEOF 3502SHELL = /bin/sh 3503all: 3504 @echo '@@@%%%=$(MAKE)=@@@%%%' 3505_ACEOF 3506# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3507case `${MAKE-make} -f conftest.make 2>/dev/null` in 3508 *@@@%%%=?*=@@@%%%*) 3509 eval ac_cv_prog_make_${ac_make}_set=yes;; 3510 *) 3511 eval ac_cv_prog_make_${ac_make}_set=no;; 3512esac 3513rm -f conftest.make 3514fi 3515if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3517$as_echo "yes" >&6; } 3518 SET_MAKE= 3519else 3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3521$as_echo "no" >&6; } 3522 SET_MAKE="MAKE=${MAKE-make}" 3523fi 3524 3525rm -rf .tst 2>/dev/null 3526mkdir .tst 2>/dev/null 3527if test -d .tst; then 3528 am__leading_dot=. 3529else 3530 am__leading_dot=_ 3531fi 3532rmdir .tst 2>/dev/null 3533 3534if test "`cd $srcdir && pwd`" != "`pwd`"; then 3535 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3536 # is not polluted with repeated "-I." 3537 am__isrc=' -I$(srcdir)' 3538 # test to see if srcdir already configured 3539 if test -f $srcdir/config.status; then 3540 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3541 fi 3542fi 3543 3544# test whether we have cygpath 3545if test -z "$CYGPATH_W"; then 3546 if (cygpath --version) >/dev/null 2>/dev/null; then 3547 CYGPATH_W='cygpath -w' 3548 else 3549 CYGPATH_W=echo 3550 fi 3551fi 3552 3553 3554# Define the identity of the package. 3555 PACKAGE='scim-input-pad' 3556 VERSION='0.1.3.1' 3557 3558 3559cat >>confdefs.h <<_ACEOF 3560#define PACKAGE "$PACKAGE" 3561_ACEOF 3562 3563 3564cat >>confdefs.h <<_ACEOF 3565#define VERSION "$VERSION" 3566_ACEOF 3567 3568# Some tools Automake needs. 3569 3570ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3571 3572 3573AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3574 3575 3576AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3577 3578 3579AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3580 3581 3582MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3583 3584# We need awk for the "check" target. The system "awk" is bad on 3585# some platforms. 3586# Always define AMTAR for backward compatibility. 3587 3588AMTAR=${AMTAR-"${am_missing_run}tar"} 3589 3590am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 3591 3592 3593 3594 3595 3596ac_config_headers="$ac_config_headers config.h" 3597 3598 3599# Init gettext 3600ALL_LINGUAS="zh_CN zh_TW pa ja de fr it nl" 3601 3602 MKINSTALLDIRS= 3603 if test -n "$ac_aux_dir"; then 3604 case "$ac_aux_dir" in 3605 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; 3606 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; 3607 esac 3608 fi 3609 if test -z "$MKINSTALLDIRS"; then 3610 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 3611 fi 3612 3613 3614 3615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 3616$as_echo_n "checking whether NLS is requested... " >&6; } 3617 # Check whether --enable-nls was given. 3618if test "${enable_nls+set}" = set; then : 3619 enableval=$enable_nls; USE_NLS=$enableval 3620else 3621 USE_NLS=yes 3622fi 3623 3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 3625$as_echo "$USE_NLS" >&6; } 3626 3627 3628 3629 3630 3631 3632# Prepare PATH_SEPARATOR. 3633# The user is always right. 3634if test "${PATH_SEPARATOR+set}" != set; then 3635 echo "#! /bin/sh" >conf$$.sh 3636 echo "exit 0" >>conf$$.sh 3637 chmod +x conf$$.sh 3638 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 3639 PATH_SEPARATOR=';' 3640 else 3641 PATH_SEPARATOR=: 3642 fi 3643 rm -f conf$$.sh 3644fi 3645 3646# Find out how to test for executable files. Don't use a zero-byte file, 3647# as systems may use methods other than mode bits to determine executability. 3648cat >conf$$.file <<_ASEOF 3649#! /bin/sh 3650exit 0 3651_ASEOF 3652chmod +x conf$$.file 3653if test -x conf$$.file >/dev/null 2>&1; then 3654 ac_executable_p="test -x" 3655else 3656 ac_executable_p="test -f" 3657fi 3658rm -f conf$$.file 3659 3660# Extract the first word of "msgfmt", so it can be a program name with args. 3661set dummy msgfmt; ac_word=$2 3662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3663$as_echo_n "checking for $ac_word... " >&6; } 3664if ${ac_cv_path_MSGFMT+:} false; then : 3665 $as_echo_n "(cached) " >&6 3666else 3667 case "$MSGFMT" in 3668 [\\/]* | ?:[\\/]*) 3669 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 3670 ;; 3671 *) 3672 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 3673 for ac_dir in $PATH; do 3674 IFS="$ac_save_IFS" 3675 test -z "$ac_dir" && ac_dir=. 3676 for ac_exec_ext in '' $ac_executable_extensions; do 3677 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 3678 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && 3679 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 3680 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 3681 break 2 3682 fi 3683 fi 3684 done 3685 done 3686 IFS="$ac_save_IFS" 3687 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 3688 ;; 3689esac 3690fi 3691MSGFMT="$ac_cv_path_MSGFMT" 3692if test "$MSGFMT" != ":"; then 3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 3694$as_echo "$MSGFMT" >&6; } 3695else 3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3697$as_echo "no" >&6; } 3698fi 3699 3700 # Extract the first word of "gmsgfmt", so it can be a program name with args. 3701set dummy gmsgfmt; ac_word=$2 3702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3703$as_echo_n "checking for $ac_word... " >&6; } 3704if ${ac_cv_path_GMSGFMT+:} false; then : 3705 $as_echo_n "(cached) " >&6 3706else 3707 case $GMSGFMT in 3708 [\\/]* | ?:[\\/]*) 3709 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 3710 ;; 3711 *) 3712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3713for as_dir in $PATH 3714do 3715 IFS=$as_save_IFS 3716 test -z "$as_dir" && as_dir=. 3717 for ac_exec_ext in '' $ac_executable_extensions; do 3718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3719 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 3720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3721 break 2 3722 fi 3723done 3724 done 3725IFS=$as_save_IFS 3726 3727 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 3728 ;; 3729esac 3730fi 3731GMSGFMT=$ac_cv_path_GMSGFMT 3732if test -n "$GMSGFMT"; then 3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 3734$as_echo "$GMSGFMT" >&6; } 3735else 3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3737$as_echo "no" >&6; } 3738fi 3739 3740 3741 3742 3743# Prepare PATH_SEPARATOR. 3744# The user is always right. 3745if test "${PATH_SEPARATOR+set}" != set; then 3746 echo "#! /bin/sh" >conf$$.sh 3747 echo "exit 0" >>conf$$.sh 3748 chmod +x conf$$.sh 3749 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 3750 PATH_SEPARATOR=';' 3751 else 3752 PATH_SEPARATOR=: 3753 fi 3754 rm -f conf$$.sh 3755fi 3756 3757# Find out how to test for executable files. Don't use a zero-byte file, 3758# as systems may use methods other than mode bits to determine executability. 3759cat >conf$$.file <<_ASEOF 3760#! /bin/sh 3761exit 0 3762_ASEOF 3763chmod +x conf$$.file 3764if test -x conf$$.file >/dev/null 2>&1; then 3765 ac_executable_p="test -x" 3766else 3767 ac_executable_p="test -f" 3768fi 3769rm -f conf$$.file 3770 3771# Extract the first word of "xgettext", so it can be a program name with args. 3772set dummy xgettext; ac_word=$2 3773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3774$as_echo_n "checking for $ac_word... " >&6; } 3775if ${ac_cv_path_XGETTEXT+:} false; then : 3776 $as_echo_n "(cached) " >&6 3777else 3778 case "$XGETTEXT" in 3779 [\\/]* | ?:[\\/]*) 3780 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 3781 ;; 3782 *) 3783 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 3784 for ac_dir in $PATH; do 3785 IFS="$ac_save_IFS" 3786 test -z "$ac_dir" && ac_dir=. 3787 for ac_exec_ext in '' $ac_executable_extensions; do 3788 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 3789 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 3790 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 3791 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 3792 break 2 3793 fi 3794 fi 3795 done 3796 done 3797 IFS="$ac_save_IFS" 3798 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 3799 ;; 3800esac 3801fi 3802XGETTEXT="$ac_cv_path_XGETTEXT" 3803if test "$XGETTEXT" != ":"; then 3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 3805$as_echo "$XGETTEXT" >&6; } 3806else 3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3808$as_echo "no" >&6; } 3809fi 3810 3811 rm -f messages.po 3812 3813 3814# Prepare PATH_SEPARATOR. 3815# The user is always right. 3816if test "${PATH_SEPARATOR+set}" != set; then 3817 echo "#! /bin/sh" >conf$$.sh 3818 echo "exit 0" >>conf$$.sh 3819 chmod +x conf$$.sh 3820 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 3821 PATH_SEPARATOR=';' 3822 else 3823 PATH_SEPARATOR=: 3824 fi 3825 rm -f conf$$.sh 3826fi 3827 3828# Find out how to test for executable files. Don't use a zero-byte file, 3829# as systems may use methods other than mode bits to determine executability. 3830cat >conf$$.file <<_ASEOF 3831#! /bin/sh 3832exit 0 3833_ASEOF 3834chmod +x conf$$.file 3835if test -x conf$$.file >/dev/null 2>&1; then 3836 ac_executable_p="test -x" 3837else 3838 ac_executable_p="test -f" 3839fi 3840rm -f conf$$.file 3841 3842# Extract the first word of "msgmerge", so it can be a program name with args. 3843set dummy msgmerge; ac_word=$2 3844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3845$as_echo_n "checking for $ac_word... " >&6; } 3846if ${ac_cv_path_MSGMERGE+:} false; then : 3847 $as_echo_n "(cached) " >&6 3848else 3849 case "$MSGMERGE" in 3850 [\\/]* | ?:[\\/]*) 3851 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 3852 ;; 3853 *) 3854 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 3855 for ac_dir in $PATH; do 3856 IFS="$ac_save_IFS" 3857 test -z "$ac_dir" && ac_dir=. 3858 for ac_exec_ext in '' $ac_executable_extensions; do 3859 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 3860 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then 3861 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 3862 break 2 3863 fi 3864 fi 3865 done 3866 done 3867 IFS="$ac_save_IFS" 3868 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 3869 ;; 3870esac 3871fi 3872MSGMERGE="$ac_cv_path_MSGMERGE" 3873if test "$MSGMERGE" != ":"; then 3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 3875$as_echo "$MSGMERGE" >&6; } 3876else 3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3878$as_echo "no" >&6; } 3879fi 3880 3881 3882 if test "$GMSGFMT" != ":"; then 3883 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && 3884 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 3885 : ; 3886 else 3887 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` 3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 3889$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } 3890 GMSGFMT=":" 3891 fi 3892 fi 3893 3894 if test "$XGETTEXT" != ":"; then 3895 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 3896 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 3897 : ; 3898 else 3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 3900$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } 3901 XGETTEXT=":" 3902 fi 3903 rm -f messages.po 3904 fi 3905 3906 ac_config_commands="$ac_config_commands default-1" 3907 3908 3909DEPDIR="${am__leading_dot}deps" 3910 3911ac_config_commands="$ac_config_commands depfiles" 3912 3913 3914am_make=${MAKE-make} 3915cat > confinc << 'END' 3916am__doit: 3917 @echo this is the am__doit target 3918.PHONY: am__doit 3919END 3920# If we don't find an include directive, just comment out the code. 3921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3922$as_echo_n "checking for style of include used by $am_make... " >&6; } 3923am__include="#" 3924am__quote= 3925_am_result=none 3926# First try GNU make style include. 3927echo "include confinc" > confmf 3928# Ignore all kinds of additional output from `make'. 3929case `$am_make -s -f confmf 2> /dev/null` in #( 3930*the\ am__doit\ target*) 3931 am__include=include 3932 am__quote= 3933 _am_result=GNU 3934 ;; 3935esac 3936# Now try BSD make style include. 3937if test "$am__include" = "#"; then 3938 echo '.include "confinc"' > confmf 3939 case `$am_make -s -f confmf 2> /dev/null` in #( 3940 *the\ am__doit\ target*) 3941 am__include=.include 3942 am__quote="\"" 3943 _am_result=BSD 3944 ;; 3945 esac 3946fi 3947 3948 3949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3950$as_echo "$_am_result" >&6; } 3951rm -f confinc confmf 3952 3953# Check whether --enable-dependency-tracking was given. 3954if test "${enable_dependency_tracking+set}" = set; then : 3955 enableval=$enable_dependency_tracking; 3956fi 3957 3958if test "x$enable_dependency_tracking" != xno; then 3959 am_depcomp="$ac_aux_dir/depcomp" 3960 AMDEPBACKSLASH='\' 3961fi 3962 if test "x$enable_dependency_tracking" != xno; then 3963 AMDEP_TRUE= 3964 AMDEP_FALSE='#' 3965else 3966 AMDEP_TRUE='#' 3967 AMDEP_FALSE= 3968fi 3969 3970 3971ac_ext=c 3972ac_cpp='$CPP $CPPFLAGS' 3973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3975ac_compiler_gnu=$ac_cv_c_compiler_gnu 3976if test -n "$ac_tool_prefix"; then 3977 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3978set dummy ${ac_tool_prefix}gcc; ac_word=$2 3979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3980$as_echo_n "checking for $ac_word... " >&6; } 3981if ${ac_cv_prog_CC+:} false; then : 3982 $as_echo_n "(cached) " >&6 3983else 3984 if test -n "$CC"; then 3985 ac_cv_prog_CC="$CC" # Let the user override the test. 3986else 3987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3988for as_dir in $PATH 3989do 3990 IFS=$as_save_IFS 3991 test -z "$as_dir" && as_dir=. 3992 for ac_exec_ext in '' $ac_executable_extensions; do 3993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3994 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3996 break 2 3997 fi 3998done 3999 done 4000IFS=$as_save_IFS 4001 4002fi 4003fi 4004CC=$ac_cv_prog_CC 4005if test -n "$CC"; then 4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4007$as_echo "$CC" >&6; } 4008else 4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4010$as_echo "no" >&6; } 4011fi 4012 4013 4014fi 4015if test -z "$ac_cv_prog_CC"; then 4016 ac_ct_CC=$CC 4017 # Extract the first word of "gcc", so it can be a program name with args. 4018set dummy gcc; ac_word=$2 4019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4020$as_echo_n "checking for $ac_word... " >&6; } 4021if ${ac_cv_prog_ac_ct_CC+:} false; then : 4022 $as_echo_n "(cached) " >&6 4023else 4024 if test -n "$ac_ct_CC"; then 4025 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4026else 4027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4028for as_dir in $PATH 4029do 4030 IFS=$as_save_IFS 4031 test -z "$as_dir" && as_dir=. 4032 for ac_exec_ext in '' $ac_executable_extensions; do 4033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4034 ac_cv_prog_ac_ct_CC="gcc" 4035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4036 break 2 4037 fi 4038done 4039 done 4040IFS=$as_save_IFS 4041 4042fi 4043fi 4044ac_ct_CC=$ac_cv_prog_ac_ct_CC 4045if test -n "$ac_ct_CC"; then 4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4047$as_echo "$ac_ct_CC" >&6; } 4048else 4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4050$as_echo "no" >&6; } 4051fi 4052 4053 if test "x$ac_ct_CC" = x; then 4054 CC="" 4055 else 4056 case $cross_compiling:$ac_tool_warned in 4057yes:) 4058{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4059$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4060ac_tool_warned=yes ;; 4061esac 4062 CC=$ac_ct_CC 4063 fi 4064else 4065 CC="$ac_cv_prog_CC" 4066fi 4067 4068if test -z "$CC"; then 4069 if test -n "$ac_tool_prefix"; then 4070 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4071set dummy ${ac_tool_prefix}cc; ac_word=$2 4072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4073$as_echo_n "checking for $ac_word... " >&6; } 4074if ${ac_cv_prog_CC+:} false; then : 4075 $as_echo_n "(cached) " >&6 4076else 4077 if test -n "$CC"; then 4078 ac_cv_prog_CC="$CC" # Let the user override the test. 4079else 4080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4081for as_dir in $PATH 4082do 4083 IFS=$as_save_IFS 4084 test -z "$as_dir" && as_dir=. 4085 for ac_exec_ext in '' $ac_executable_extensions; do 4086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4087 ac_cv_prog_CC="${ac_tool_prefix}cc" 4088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4089 break 2 4090 fi 4091done 4092 done 4093IFS=$as_save_IFS 4094 4095fi 4096fi 4097CC=$ac_cv_prog_CC 4098if test -n "$CC"; then 4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4100$as_echo "$CC" >&6; } 4101else 4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4103$as_echo "no" >&6; } 4104fi 4105 4106 4107 fi 4108fi 4109if test -z "$CC"; then 4110 # Extract the first word of "cc", so it can be a program name with args. 4111set dummy cc; ac_word=$2 4112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4113$as_echo_n "checking for $ac_word... " >&6; } 4114if ${ac_cv_prog_CC+:} false; then : 4115 $as_echo_n "(cached) " >&6 4116else 4117 if test -n "$CC"; then 4118 ac_cv_prog_CC="$CC" # Let the user override the test. 4119else 4120 ac_prog_rejected=no 4121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4122for as_dir in $PATH 4123do 4124 IFS=$as_save_IFS 4125 test -z "$as_dir" && as_dir=. 4126 for ac_exec_ext in '' $ac_executable_extensions; do 4127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4128 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4129 ac_prog_rejected=yes 4130 continue 4131 fi 4132 ac_cv_prog_CC="cc" 4133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4134 break 2 4135 fi 4136done 4137 done 4138IFS=$as_save_IFS 4139 4140if test $ac_prog_rejected = yes; then 4141 # We found a bogon in the path, so make sure we never use it. 4142 set dummy $ac_cv_prog_CC 4143 shift 4144 if test $# != 0; then 4145 # We chose a different compiler from the bogus one. 4146 # However, it has the same basename, so the bogon will be chosen 4147 # first if we set CC to just the basename; use the full file name. 4148 shift 4149 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4150 fi 4151fi 4152fi 4153fi 4154CC=$ac_cv_prog_CC 4155if test -n "$CC"; then 4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4157$as_echo "$CC" >&6; } 4158else 4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4160$as_echo "no" >&6; } 4161fi 4162 4163 4164fi 4165if test -z "$CC"; then 4166 if test -n "$ac_tool_prefix"; then 4167 for ac_prog in cl.exe 4168 do 4169 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4170set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4172$as_echo_n "checking for $ac_word... " >&6; } 4173if ${ac_cv_prog_CC+:} false; then : 4174 $as_echo_n "(cached) " >&6 4175else 4176 if test -n "$CC"; then 4177 ac_cv_prog_CC="$CC" # Let the user override the test. 4178else 4179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4180for as_dir in $PATH 4181do 4182 IFS=$as_save_IFS 4183 test -z "$as_dir" && as_dir=. 4184 for ac_exec_ext in '' $ac_executable_extensions; do 4185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4186 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4188 break 2 4189 fi 4190done 4191 done 4192IFS=$as_save_IFS 4193 4194fi 4195fi 4196CC=$ac_cv_prog_CC 4197if test -n "$CC"; then 4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4199$as_echo "$CC" >&6; } 4200else 4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4202$as_echo "no" >&6; } 4203fi 4204 4205 4206 test -n "$CC" && break 4207 done 4208fi 4209if test -z "$CC"; then 4210 ac_ct_CC=$CC 4211 for ac_prog in cl.exe 4212do 4213 # Extract the first word of "$ac_prog", so it can be a program name with args. 4214set dummy $ac_prog; ac_word=$2 4215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4216$as_echo_n "checking for $ac_word... " >&6; } 4217if ${ac_cv_prog_ac_ct_CC+:} false; then : 4218 $as_echo_n "(cached) " >&6 4219else 4220 if test -n "$ac_ct_CC"; then 4221 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4222else 4223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4224for as_dir in $PATH 4225do 4226 IFS=$as_save_IFS 4227 test -z "$as_dir" && as_dir=. 4228 for ac_exec_ext in '' $ac_executable_extensions; do 4229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4230 ac_cv_prog_ac_ct_CC="$ac_prog" 4231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4232 break 2 4233 fi 4234done 4235 done 4236IFS=$as_save_IFS 4237 4238fi 4239fi 4240ac_ct_CC=$ac_cv_prog_ac_ct_CC 4241if test -n "$ac_ct_CC"; then 4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4243$as_echo "$ac_ct_CC" >&6; } 4244else 4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4246$as_echo "no" >&6; } 4247fi 4248 4249 4250 test -n "$ac_ct_CC" && break 4251done 4252 4253 if test "x$ac_ct_CC" = x; then 4254 CC="" 4255 else 4256 case $cross_compiling:$ac_tool_warned in 4257yes:) 4258{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4259$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4260ac_tool_warned=yes ;; 4261esac 4262 CC=$ac_ct_CC 4263 fi 4264fi 4265 4266fi 4267 4268 4269test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4270$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4271as_fn_error $? "no acceptable C compiler found in \$PATH 4272See \`config.log' for more details" "$LINENO" 5; } 4273 4274# Provide some information about the compiler. 4275$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4276set X $ac_compile 4277ac_compiler=$2 4278for ac_option in --version -v -V -qversion; do 4279 { { ac_try="$ac_compiler $ac_option >&5" 4280case "(($ac_try" in 4281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4282 *) ac_try_echo=$ac_try;; 4283esac 4284eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4285$as_echo "$ac_try_echo"; } >&5 4286 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4287 ac_status=$? 4288 if test -s conftest.err; then 4289 sed '10a\ 4290... rest of stderr output deleted ... 4291 10q' conftest.err >conftest.er1 4292 cat conftest.er1 >&5 4293 fi 4294 rm -f conftest.er1 conftest.err 4295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4296 test $ac_status = 0; } 4297done 4298 4299cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4300/* end confdefs.h. */ 4301 4302int 4303main () 4304{ 4305 4306 ; 4307 return 0; 4308} 4309_ACEOF 4310ac_clean_files_save=$ac_clean_files 4311ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4312# Try to create an executable without -o first, disregard a.out. 4313# It will help us diagnose broken compilers, and finding out an intuition 4314# of exeext. 4315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4316$as_echo_n "checking whether the C compiler works... " >&6; } 4317ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4318 4319# The possible output files: 4320ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4321 4322ac_rmfiles= 4323for ac_file in $ac_files 4324do 4325 case $ac_file in 4326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4327 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4328 esac 4329done 4330rm -f $ac_rmfiles 4331 4332if { { ac_try="$ac_link_default" 4333case "(($ac_try" in 4334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4335 *) ac_try_echo=$ac_try;; 4336esac 4337eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4338$as_echo "$ac_try_echo"; } >&5 4339 (eval "$ac_link_default") 2>&5 4340 ac_status=$? 4341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4342 test $ac_status = 0; }; then : 4343 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4344# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4345# in a Makefile. We should not override ac_cv_exeext if it was cached, 4346# so that the user can short-circuit this test for compilers unknown to 4347# Autoconf. 4348for ac_file in $ac_files '' 4349do 4350 test -f "$ac_file" || continue 4351 case $ac_file in 4352 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4353 ;; 4354 [ab].out ) 4355 # We found the default executable, but exeext='' is most 4356 # certainly right. 4357 break;; 4358 *.* ) 4359 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4360 then :; else 4361 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4362 fi 4363 # We set ac_cv_exeext here because the later test for it is not 4364 # safe: cross compilers may not add the suffix if given an `-o' 4365 # argument, so we may need to know it at that point already. 4366 # Even if this section looks crufty: it has the advantage of 4367 # actually working. 4368 break;; 4369 * ) 4370 break;; 4371 esac 4372done 4373test "$ac_cv_exeext" = no && ac_cv_exeext= 4374 4375else 4376 ac_file='' 4377fi 4378if test -z "$ac_file"; then : 4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4380$as_echo "no" >&6; } 4381$as_echo "$as_me: failed program was:" >&5 4382sed 's/^/| /' conftest.$ac_ext >&5 4383 4384{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4385$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4386as_fn_error 77 "C compiler cannot create executables 4387See \`config.log' for more details" "$LINENO" 5; } 4388else 4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4390$as_echo "yes" >&6; } 4391fi 4392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4393$as_echo_n "checking for C compiler default output file name... " >&6; } 4394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4395$as_echo "$ac_file" >&6; } 4396ac_exeext=$ac_cv_exeext 4397 4398rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4399ac_clean_files=$ac_clean_files_save 4400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4401$as_echo_n "checking for suffix of executables... " >&6; } 4402if { { ac_try="$ac_link" 4403case "(($ac_try" in 4404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4405 *) ac_try_echo=$ac_try;; 4406esac 4407eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4408$as_echo "$ac_try_echo"; } >&5 4409 (eval "$ac_link") 2>&5 4410 ac_status=$? 4411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4412 test $ac_status = 0; }; then : 4413 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4414# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4415# work properly (i.e., refer to `conftest.exe'), while it won't with 4416# `rm'. 4417for ac_file in conftest.exe conftest conftest.*; do 4418 test -f "$ac_file" || continue 4419 case $ac_file in 4420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4421 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4422 break;; 4423 * ) break;; 4424 esac 4425done 4426else 4427 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4428$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4429as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4430See \`config.log' for more details" "$LINENO" 5; } 4431fi 4432rm -f conftest conftest$ac_cv_exeext 4433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4434$as_echo "$ac_cv_exeext" >&6; } 4435 4436rm -f conftest.$ac_ext 4437EXEEXT=$ac_cv_exeext 4438ac_exeext=$EXEEXT 4439cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4440/* end confdefs.h. */ 4441#include <stdio.h> 4442int 4443main () 4444{ 4445FILE *f = fopen ("conftest.out", "w"); 4446 return ferror (f) || fclose (f) != 0; 4447 4448 ; 4449 return 0; 4450} 4451_ACEOF 4452ac_clean_files="$ac_clean_files conftest.out" 4453# Check that the compiler produces executables we can run. If not, either 4454# the compiler is broken, or we cross compile. 4455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4456$as_echo_n "checking whether we are cross compiling... " >&6; } 4457if test "$cross_compiling" != yes; then 4458 { { ac_try="$ac_link" 4459case "(($ac_try" in 4460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4461 *) ac_try_echo=$ac_try;; 4462esac 4463eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4464$as_echo "$ac_try_echo"; } >&5 4465 (eval "$ac_link") 2>&5 4466 ac_status=$? 4467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4468 test $ac_status = 0; } 4469 if { ac_try='./conftest$ac_cv_exeext' 4470 { { case "(($ac_try" in 4471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4472 *) ac_try_echo=$ac_try;; 4473esac 4474eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4475$as_echo "$ac_try_echo"; } >&5 4476 (eval "$ac_try") 2>&5 4477 ac_status=$? 4478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4479 test $ac_status = 0; }; }; then 4480 cross_compiling=no 4481 else 4482 if test "$cross_compiling" = maybe; then 4483 cross_compiling=yes 4484 else 4485 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4486$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4487as_fn_error $? "cannot run C compiled programs. 4488If you meant to cross compile, use \`--host'. 4489See \`config.log' for more details" "$LINENO" 5; } 4490 fi 4491 fi 4492fi 4493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4494$as_echo "$cross_compiling" >&6; } 4495 4496rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4497ac_clean_files=$ac_clean_files_save 4498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4499$as_echo_n "checking for suffix of object files... " >&6; } 4500if ${ac_cv_objext+:} false; then : 4501 $as_echo_n "(cached) " >&6 4502else 4503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4504/* end confdefs.h. */ 4505 4506int 4507main () 4508{ 4509 4510 ; 4511 return 0; 4512} 4513_ACEOF 4514rm -f conftest.o conftest.obj 4515if { { ac_try="$ac_compile" 4516case "(($ac_try" in 4517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4518 *) ac_try_echo=$ac_try;; 4519esac 4520eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4521$as_echo "$ac_try_echo"; } >&5 4522 (eval "$ac_compile") 2>&5 4523 ac_status=$? 4524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4525 test $ac_status = 0; }; then : 4526 for ac_file in conftest.o conftest.obj conftest.*; do 4527 test -f "$ac_file" || continue; 4528 case $ac_file in 4529 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4530 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4531 break;; 4532 esac 4533done 4534else 4535 $as_echo "$as_me: failed program was:" >&5 4536sed 's/^/| /' conftest.$ac_ext >&5 4537 4538{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4539$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4540as_fn_error $? "cannot compute suffix of object files: cannot compile 4541See \`config.log' for more details" "$LINENO" 5; } 4542fi 4543rm -f conftest.$ac_cv_objext conftest.$ac_ext 4544fi 4545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4546$as_echo "$ac_cv_objext" >&6; } 4547OBJEXT=$ac_cv_objext 4548ac_objext=$OBJEXT 4549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4550$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4551if ${ac_cv_c_compiler_gnu+:} false; then : 4552 $as_echo_n "(cached) " >&6 4553else 4554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4555/* end confdefs.h. */ 4556 4557int 4558main () 4559{ 4560#ifndef __GNUC__ 4561 choke me 4562#endif 4563 4564 ; 4565 return 0; 4566} 4567_ACEOF 4568if ac_fn_c_try_compile "$LINENO"; then : 4569 ac_compiler_gnu=yes 4570else 4571 ac_compiler_gnu=no 4572fi 4573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4574ac_cv_c_compiler_gnu=$ac_compiler_gnu 4575 4576fi 4577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4578$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4579if test $ac_compiler_gnu = yes; then 4580 GCC=yes 4581else 4582 GCC= 4583fi 4584ac_test_CFLAGS=${CFLAGS+set} 4585ac_save_CFLAGS=$CFLAGS 4586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4587$as_echo_n "checking whether $CC accepts -g... " >&6; } 4588if ${ac_cv_prog_cc_g+:} false; then : 4589 $as_echo_n "(cached) " >&6 4590else 4591 ac_save_c_werror_flag=$ac_c_werror_flag 4592 ac_c_werror_flag=yes 4593 ac_cv_prog_cc_g=no 4594 CFLAGS="-g" 4595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4596/* end confdefs.h. */ 4597 4598int 4599main () 4600{ 4601 4602 ; 4603 return 0; 4604} 4605_ACEOF 4606if ac_fn_c_try_compile "$LINENO"; then : 4607 ac_cv_prog_cc_g=yes 4608else 4609 CFLAGS="" 4610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4611/* end confdefs.h. */ 4612 4613int 4614main () 4615{ 4616 4617 ; 4618 return 0; 4619} 4620_ACEOF 4621if ac_fn_c_try_compile "$LINENO"; then : 4622 4623else 4624 ac_c_werror_flag=$ac_save_c_werror_flag 4625 CFLAGS="-g" 4626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4627/* end confdefs.h. */ 4628 4629int 4630main () 4631{ 4632 4633 ; 4634 return 0; 4635} 4636_ACEOF 4637if ac_fn_c_try_compile "$LINENO"; then : 4638 ac_cv_prog_cc_g=yes 4639fi 4640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4641fi 4642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4643fi 4644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4645 ac_c_werror_flag=$ac_save_c_werror_flag 4646fi 4647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4648$as_echo "$ac_cv_prog_cc_g" >&6; } 4649if test "$ac_test_CFLAGS" = set; then 4650 CFLAGS=$ac_save_CFLAGS 4651elif test $ac_cv_prog_cc_g = yes; then 4652 if test "$GCC" = yes; then 4653 CFLAGS="-g -O2" 4654 else 4655 CFLAGS="-g" 4656 fi 4657else 4658 if test "$GCC" = yes; then 4659 CFLAGS="-O2" 4660 else 4661 CFLAGS= 4662 fi 4663fi 4664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4665$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4666if ${ac_cv_prog_cc_c89+:} false; then : 4667 $as_echo_n "(cached) " >&6 4668else 4669 ac_cv_prog_cc_c89=no 4670ac_save_CC=$CC 4671cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4672/* end confdefs.h. */ 4673#include <stdarg.h> 4674#include <stdio.h> 4675#include <sys/types.h> 4676#include <sys/stat.h> 4677/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4678struct buf { int x; }; 4679FILE * (*rcsopen) (struct buf *, struct stat *, int); 4680static char *e (p, i) 4681 char **p; 4682 int i; 4683{ 4684 return p[i]; 4685} 4686static char *f (char * (*g) (char **, int), char **p, ...) 4687{ 4688 char *s; 4689 va_list v; 4690 va_start (v,p); 4691 s = g (p, va_arg (v,int)); 4692 va_end (v); 4693 return s; 4694} 4695 4696/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4697 function prototypes and stuff, but not '\xHH' hex character constants. 4698 These don't provoke an error unfortunately, instead are silently treated 4699 as 'x'. The following induces an error, until -std is added to get 4700 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4701 array size at least. It's necessary to write '\x00'==0 to get something 4702 that's true only with -std. */ 4703int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4704 4705/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4706 inside strings and character constants. */ 4707#define FOO(x) 'x' 4708int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4709 4710int test (int i, double x); 4711struct s1 {int (*f) (int a);}; 4712struct s2 {int (*f) (double a);}; 4713int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4714int argc; 4715char **argv; 4716int 4717main () 4718{ 4719return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4720 ; 4721 return 0; 4722} 4723_ACEOF 4724for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4725 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4726do 4727 CC="$ac_save_CC $ac_arg" 4728 if ac_fn_c_try_compile "$LINENO"; then : 4729 ac_cv_prog_cc_c89=$ac_arg 4730fi 4731rm -f core conftest.err conftest.$ac_objext 4732 test "x$ac_cv_prog_cc_c89" != "xno" && break 4733done 4734rm -f conftest.$ac_ext 4735CC=$ac_save_CC 4736 4737fi 4738# AC_CACHE_VAL 4739case "x$ac_cv_prog_cc_c89" in 4740 x) 4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4742$as_echo "none needed" >&6; } ;; 4743 xno) 4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4745$as_echo "unsupported" >&6; } ;; 4746 *) 4747 CC="$CC $ac_cv_prog_cc_c89" 4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4749$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4750esac 4751if test "x$ac_cv_prog_cc_c89" != xno; then : 4752 4753fi 4754 4755ac_ext=c 4756ac_cpp='$CPP $CPPFLAGS' 4757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4759ac_compiler_gnu=$ac_cv_c_compiler_gnu 4760 4761depcc="$CC" am_compiler_list= 4762 4763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4764$as_echo_n "checking dependency style of $depcc... " >&6; } 4765if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4766 $as_echo_n "(cached) " >&6 4767else 4768 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4769 # We make a subdir and do the tests there. Otherwise we can end up 4770 # making bogus files that we don't know about and never remove. For 4771 # instance it was reported that on HP-UX the gcc test will end up 4772 # making a dummy file named `D' -- because `-MD' means `put the output 4773 # in D'. 4774 mkdir conftest.dir 4775 # Copy depcomp to subdir because otherwise we won't find it if we're 4776 # using a relative directory. 4777 cp "$am_depcomp" conftest.dir 4778 cd conftest.dir 4779 # We will build objects and dependencies in a subdirectory because 4780 # it helps to detect inapplicable dependency modes. For instance 4781 # both Tru64's cc and ICC support -MD to output dependencies as a 4782 # side effect of compilation, but ICC will put the dependencies in 4783 # the current directory while Tru64 will put them in the object 4784 # directory. 4785 mkdir sub 4786 4787 am_cv_CC_dependencies_compiler_type=none 4788 if test "$am_compiler_list" = ""; then 4789 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4790 fi 4791 am__universal=false 4792 case " $depcc " in #( 4793 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4794 esac 4795 4796 for depmode in $am_compiler_list; do 4797 # Setup a source with many dependencies, because some compilers 4798 # like to wrap large dependency lists on column 80 (with \), and 4799 # we should not choose a depcomp mode which is confused by this. 4800 # 4801 # We need to recreate these files for each test, as the compiler may 4802 # overwrite some of them when testing with obscure command lines. 4803 # This happens at least with the AIX C compiler. 4804 : > sub/conftest.c 4805 for i in 1 2 3 4 5 6; do 4806 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4807 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4808 # Solaris 8's {/usr,}/bin/sh. 4809 touch sub/conftst$i.h 4810 done 4811 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4812 4813 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4814 # mode. It turns out that the SunPro C++ compiler does not properly 4815 # handle `-M -o', and we need to detect this. Also, some Intel 4816 # versions had trouble with output in subdirs 4817 am__obj=sub/conftest.${OBJEXT-o} 4818 am__minus_obj="-o $am__obj" 4819 case $depmode in 4820 gcc) 4821 # This depmode causes a compiler race in universal mode. 4822 test "$am__universal" = false || continue 4823 ;; 4824 nosideeffect) 4825 # after this tag, mechanisms are not by side-effect, so they'll 4826 # only be used when explicitly requested 4827 if test "x$enable_dependency_tracking" = xyes; then 4828 continue 4829 else 4830 break 4831 fi 4832 ;; 4833 msvisualcpp | msvcmsys) 4834 # This compiler won't grok `-c -o', but also, the minuso test has 4835 # not run yet. These depmodes are late enough in the game, and 4836 # so weak that their functioning should not be impacted. 4837 am__obj=conftest.${OBJEXT-o} 4838 am__minus_obj= 4839 ;; 4840 none) break ;; 4841 esac 4842 if depmode=$depmode \ 4843 source=sub/conftest.c object=$am__obj \ 4844 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4845 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4846 >/dev/null 2>conftest.err && 4847 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4848 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4849 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4850 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4851 # icc doesn't choke on unknown options, it will just issue warnings 4852 # or remarks (even with -Werror). So we grep stderr for any message 4853 # that says an option was ignored or not supported. 4854 # When given -MP, icc 7.0 and 7.1 complain thusly: 4855 # icc: Command line warning: ignoring option '-M'; no argument required 4856 # The diagnosis changed in icc 8.0: 4857 # icc: Command line remark: option '-MP' not supported 4858 if (grep 'ignoring option' conftest.err || 4859 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4860 am_cv_CC_dependencies_compiler_type=$depmode 4861 break 4862 fi 4863 fi 4864 done 4865 4866 cd .. 4867 rm -rf conftest.dir 4868else 4869 am_cv_CC_dependencies_compiler_type=none 4870fi 4871 4872fi 4873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4874$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4875CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4876 4877 if 4878 test "x$enable_dependency_tracking" != xno \ 4879 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4880 am__fastdepCC_TRUE= 4881 am__fastdepCC_FALSE='#' 4882else 4883 am__fastdepCC_TRUE='#' 4884 am__fastdepCC_FALSE= 4885fi 4886 4887 4888# Make sure we can run config.sub. 4889$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4890 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4891 4892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4893$as_echo_n "checking build system type... " >&6; } 4894if ${ac_cv_build+:} false; then : 4895 $as_echo_n "(cached) " >&6 4896else 4897 ac_build_alias=$build_alias 4898test "x$ac_build_alias" = x && 4899 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4900test "x$ac_build_alias" = x && 4901 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4902ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4903 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4904 4905fi 4906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4907$as_echo "$ac_cv_build" >&6; } 4908case $ac_cv_build in 4909*-*-*) ;; 4910*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4911esac 4912build=$ac_cv_build 4913ac_save_IFS=$IFS; IFS='-' 4914set x $ac_cv_build 4915shift 4916build_cpu=$1 4917build_vendor=$2 4918shift; shift 4919# Remember, the first character of IFS is used to create $*, 4920# except with old shells: 4921build_os=$* 4922IFS=$ac_save_IFS 4923case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4924 4925 4926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4927$as_echo_n "checking host system type... " >&6; } 4928if ${ac_cv_host+:} false; then : 4929 $as_echo_n "(cached) " >&6 4930else 4931 if test "x$host_alias" = x; then 4932 ac_cv_host=$ac_cv_build 4933else 4934 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4935 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4936fi 4937 4938fi 4939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4940$as_echo "$ac_cv_host" >&6; } 4941case $ac_cv_host in 4942*-*-*) ;; 4943*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4944esac 4945host=$ac_cv_host 4946ac_save_IFS=$IFS; IFS='-' 4947set x $ac_cv_host 4948shift 4949host_cpu=$1 4950host_vendor=$2 4951shift; shift 4952# Remember, the first character of IFS is used to create $*, 4953# except with old shells: 4954host_os=$* 4955IFS=$ac_save_IFS 4956case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4957 4958 4959if test -n "$ac_tool_prefix"; then 4960 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4961set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4963$as_echo_n "checking for $ac_word... " >&6; } 4964if ${ac_cv_prog_RANLIB+:} false; then : 4965 $as_echo_n "(cached) " >&6 4966else 4967 if test -n "$RANLIB"; then 4968 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4969else 4970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4971for as_dir in $PATH 4972do 4973 IFS=$as_save_IFS 4974 test -z "$as_dir" && as_dir=. 4975 for ac_exec_ext in '' $ac_executable_extensions; do 4976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4977 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4979 break 2 4980 fi 4981done 4982 done 4983IFS=$as_save_IFS 4984 4985fi 4986fi 4987RANLIB=$ac_cv_prog_RANLIB 4988if test -n "$RANLIB"; then 4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4990$as_echo "$RANLIB" >&6; } 4991else 4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4993$as_echo "no" >&6; } 4994fi 4995 4996 4997fi 4998if test -z "$ac_cv_prog_RANLIB"; then 4999 ac_ct_RANLIB=$RANLIB 5000 # Extract the first word of "ranlib", so it can be a program name with args. 5001set dummy ranlib; ac_word=$2 5002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5003$as_echo_n "checking for $ac_word... " >&6; } 5004if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5005 $as_echo_n "(cached) " >&6 5006else 5007 if test -n "$ac_ct_RANLIB"; then 5008 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5009else 5010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5011for as_dir in $PATH 5012do 5013 IFS=$as_save_IFS 5014 test -z "$as_dir" && as_dir=. 5015 for ac_exec_ext in '' $ac_executable_extensions; do 5016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5017 ac_cv_prog_ac_ct_RANLIB="ranlib" 5018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5019 break 2 5020 fi 5021done 5022 done 5023IFS=$as_save_IFS 5024 5025fi 5026fi 5027ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5028if test -n "$ac_ct_RANLIB"; then 5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5030$as_echo "$ac_ct_RANLIB" >&6; } 5031else 5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5033$as_echo "no" >&6; } 5034fi 5035 5036 if test "x$ac_ct_RANLIB" = x; then 5037 RANLIB=":" 5038 else 5039 case $cross_compiling:$ac_tool_warned in 5040yes:) 5041{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5042$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5043ac_tool_warned=yes ;; 5044esac 5045 RANLIB=$ac_ct_RANLIB 5046 fi 5047else 5048 RANLIB="$ac_cv_prog_RANLIB" 5049fi 5050 5051 5052 5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5 5054$as_echo_n "checking for strerror in -lcposix... " >&6; } 5055if ${ac_cv_lib_cposix_strerror+:} false; then : 5056 $as_echo_n "(cached) " >&6 5057else 5058 ac_check_lib_save_LIBS=$LIBS 5059LIBS="-lcposix $LIBS" 5060cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5061/* end confdefs.h. */ 5062 5063/* Override any GCC internal prototype to avoid an error. 5064 Use char because int might match the return type of a GCC 5065 builtin and then its argument prototype would still apply. */ 5066#ifdef __cplusplus 5067extern "C" 5068#endif 5069char strerror (); 5070int 5071main () 5072{ 5073return strerror (); 5074 ; 5075 return 0; 5076} 5077_ACEOF 5078if ac_fn_c_try_link "$LINENO"; then : 5079 ac_cv_lib_cposix_strerror=yes 5080else 5081 ac_cv_lib_cposix_strerror=no 5082fi 5083rm -f core conftest.err conftest.$ac_objext \ 5084 conftest$ac_exeext conftest.$ac_ext 5085LIBS=$ac_check_lib_save_LIBS 5086fi 5087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5 5088$as_echo "$ac_cv_lib_cposix_strerror" >&6; } 5089if test "x$ac_cv_lib_cposix_strerror" = xyes; then : 5090 LIBS="$LIBS -lcposix" 5091fi 5092 5093 5094 5095ac_ext=c 5096ac_cpp='$CPP $CPPFLAGS' 5097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5099ac_compiler_gnu=$ac_cv_c_compiler_gnu 5100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5101$as_echo_n "checking how to run the C preprocessor... " >&6; } 5102# On Suns, sometimes $CPP names a directory. 5103if test -n "$CPP" && test -d "$CPP"; then 5104 CPP= 5105fi 5106if test -z "$CPP"; then 5107 if ${ac_cv_prog_CPP+:} false; then : 5108 $as_echo_n "(cached) " >&6 5109else 5110 # Double quotes because CPP needs to be expanded 5111 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5112 do 5113 ac_preproc_ok=false 5114for ac_c_preproc_warn_flag in '' yes 5115do 5116 # Use a header file that comes with gcc, so configuring glibc 5117 # with a fresh cross-compiler works. 5118 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5119 # <limits.h> exists even on freestanding compilers. 5120 # On the NeXT, cc -E runs the code through the compiler's parser, 5121 # not just through cpp. "Syntax error" is here to catch this case. 5122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5123/* end confdefs.h. */ 5124#ifdef __STDC__ 5125# include <limits.h> 5126#else 5127# include <assert.h> 5128#endif 5129 Syntax error 5130_ACEOF 5131if ac_fn_c_try_cpp "$LINENO"; then : 5132 5133else 5134 # Broken: fails on valid input. 5135continue 5136fi 5137rm -f conftest.err conftest.i conftest.$ac_ext 5138 5139 # OK, works on sane cases. Now check whether nonexistent headers 5140 # can be detected and how. 5141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5142/* end confdefs.h. */ 5143#include <ac_nonexistent.h> 5144_ACEOF 5145if ac_fn_c_try_cpp "$LINENO"; then : 5146 # Broken: success on invalid input. 5147continue 5148else 5149 # Passes both tests. 5150ac_preproc_ok=: 5151break 5152fi 5153rm -f conftest.err conftest.i conftest.$ac_ext 5154 5155done 5156# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5157rm -f conftest.i conftest.err conftest.$ac_ext 5158if $ac_preproc_ok; then : 5159 break 5160fi 5161 5162 done 5163 ac_cv_prog_CPP=$CPP 5164 5165fi 5166 CPP=$ac_cv_prog_CPP 5167else 5168 ac_cv_prog_CPP=$CPP 5169fi 5170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5171$as_echo "$CPP" >&6; } 5172ac_preproc_ok=false 5173for ac_c_preproc_warn_flag in '' yes 5174do 5175 # Use a header file that comes with gcc, so configuring glibc 5176 # with a fresh cross-compiler works. 5177 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5178 # <limits.h> exists even on freestanding compilers. 5179 # On the NeXT, cc -E runs the code through the compiler's parser, 5180 # not just through cpp. "Syntax error" is here to catch this case. 5181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5182/* end confdefs.h. */ 5183#ifdef __STDC__ 5184# include <limits.h> 5185#else 5186# include <assert.h> 5187#endif 5188 Syntax error 5189_ACEOF 5190if ac_fn_c_try_cpp "$LINENO"; then : 5191 5192else 5193 # Broken: fails on valid input. 5194continue 5195fi 5196rm -f conftest.err conftest.i conftest.$ac_ext 5197 5198 # OK, works on sane cases. Now check whether nonexistent headers 5199 # can be detected and how. 5200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5201/* end confdefs.h. */ 5202#include <ac_nonexistent.h> 5203_ACEOF 5204if ac_fn_c_try_cpp "$LINENO"; then : 5205 # Broken: success on invalid input. 5206continue 5207else 5208 # Passes both tests. 5209ac_preproc_ok=: 5210break 5211fi 5212rm -f conftest.err conftest.i conftest.$ac_ext 5213 5214done 5215# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5216rm -f conftest.i conftest.err conftest.$ac_ext 5217if $ac_preproc_ok; then : 5218 5219else 5220 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5221$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5222as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5223See \`config.log' for more details" "$LINENO" 5; } 5224fi 5225 5226ac_ext=c 5227ac_cpp='$CPP $CPPFLAGS' 5228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5230ac_compiler_gnu=$ac_cv_c_compiler_gnu 5231 5232 5233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5234$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5235if ${ac_cv_path_GREP+:} false; then : 5236 $as_echo_n "(cached) " >&6 5237else 5238 if test -z "$GREP"; then 5239 ac_path_GREP_found=false 5240 # Loop through the user's path and test for each of PROGNAME-LIST 5241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5242for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5243do 5244 IFS=$as_save_IFS 5245 test -z "$as_dir" && as_dir=. 5246 for ac_prog in grep ggrep; do 5247 for ac_exec_ext in '' $ac_executable_extensions; do 5248 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5249 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 5250# Check for GNU ac_path_GREP and select it if it is found. 5251 # Check for GNU $ac_path_GREP 5252case `"$ac_path_GREP" --version 2>&1` in 5253*GNU*) 5254 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5255*) 5256 ac_count=0 5257 $as_echo_n 0123456789 >"conftest.in" 5258 while : 5259 do 5260 cat "conftest.in" "conftest.in" >"conftest.tmp" 5261 mv "conftest.tmp" "conftest.in" 5262 cp "conftest.in" "conftest.nl" 5263 $as_echo 'GREP' >> "conftest.nl" 5264 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5265 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5266 as_fn_arith $ac_count + 1 && ac_count=$as_val 5267 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5268 # Best one so far, save it but keep looking for a better one 5269 ac_cv_path_GREP="$ac_path_GREP" 5270 ac_path_GREP_max=$ac_count 5271 fi 5272 # 10*(2^10) chars as input seems more than enough 5273 test $ac_count -gt 10 && break 5274 done 5275 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5276esac 5277 5278 $ac_path_GREP_found && break 3 5279 done 5280 done 5281 done 5282IFS=$as_save_IFS 5283 if test -z "$ac_cv_path_GREP"; then 5284 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5285 fi 5286else 5287 ac_cv_path_GREP=$GREP 5288fi 5289 5290fi 5291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5292$as_echo "$ac_cv_path_GREP" >&6; } 5293 GREP="$ac_cv_path_GREP" 5294 5295 5296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5297$as_echo_n "checking for egrep... " >&6; } 5298if ${ac_cv_path_EGREP+:} false; then : 5299 $as_echo_n "(cached) " >&6 5300else 5301 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5302 then ac_cv_path_EGREP="$GREP -E" 5303 else 5304 if test -z "$EGREP"; then 5305 ac_path_EGREP_found=false 5306 # Loop through the user's path and test for each of PROGNAME-LIST 5307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5308for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5309do 5310 IFS=$as_save_IFS 5311 test -z "$as_dir" && as_dir=. 5312 for ac_prog in egrep; do 5313 for ac_exec_ext in '' $ac_executable_extensions; do 5314 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5315 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 5316# Check for GNU ac_path_EGREP and select it if it is found. 5317 # Check for GNU $ac_path_EGREP 5318case `"$ac_path_EGREP" --version 2>&1` in 5319*GNU*) 5320 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5321*) 5322 ac_count=0 5323 $as_echo_n 0123456789 >"conftest.in" 5324 while : 5325 do 5326 cat "conftest.in" "conftest.in" >"conftest.tmp" 5327 mv "conftest.tmp" "conftest.in" 5328 cp "conftest.in" "conftest.nl" 5329 $as_echo 'EGREP' >> "conftest.nl" 5330 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5331 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5332 as_fn_arith $ac_count + 1 && ac_count=$as_val 5333 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5334 # Best one so far, save it but keep looking for a better one 5335 ac_cv_path_EGREP="$ac_path_EGREP" 5336 ac_path_EGREP_max=$ac_count 5337 fi 5338 # 10*(2^10) chars as input seems more than enough 5339 test $ac_count -gt 10 && break 5340 done 5341 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5342esac 5343 5344 $ac_path_EGREP_found && break 3 5345 done 5346 done 5347 done 5348IFS=$as_save_IFS 5349 if test -z "$ac_cv_path_EGREP"; then 5350 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5351 fi 5352else 5353 ac_cv_path_EGREP=$EGREP 5354fi 5355 5356 fi 5357fi 5358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5359$as_echo "$ac_cv_path_EGREP" >&6; } 5360 EGREP="$ac_cv_path_EGREP" 5361 5362 5363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5364$as_echo_n "checking for ANSI C header files... " >&6; } 5365if ${ac_cv_header_stdc+:} false; then : 5366 $as_echo_n "(cached) " >&6 5367else 5368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5369/* end confdefs.h. */ 5370#include <stdlib.h> 5371#include <stdarg.h> 5372#include <string.h> 5373#include <float.h> 5374 5375int 5376main () 5377{ 5378 5379 ; 5380 return 0; 5381} 5382_ACEOF 5383if ac_fn_c_try_compile "$LINENO"; then : 5384 ac_cv_header_stdc=yes 5385else 5386 ac_cv_header_stdc=no 5387fi 5388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5389 5390if test $ac_cv_header_stdc = yes; then 5391 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5393/* end confdefs.h. */ 5394#include <string.h> 5395 5396_ACEOF 5397if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5398 $EGREP "memchr" >/dev/null 2>&1; then : 5399 5400else 5401 ac_cv_header_stdc=no 5402fi 5403rm -f conftest* 5404 5405fi 5406 5407if test $ac_cv_header_stdc = yes; then 5408 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5410/* end confdefs.h. */ 5411#include <stdlib.h> 5412 5413_ACEOF 5414if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5415 $EGREP "free" >/dev/null 2>&1; then : 5416 5417else 5418 ac_cv_header_stdc=no 5419fi 5420rm -f conftest* 5421 5422fi 5423 5424if test $ac_cv_header_stdc = yes; then 5425 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5426 if test "$cross_compiling" = yes; then : 5427 : 5428else 5429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5430/* end confdefs.h. */ 5431#include <ctype.h> 5432#include <stdlib.h> 5433#if ((' ' & 0x0FF) == 0x020) 5434# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5435# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5436#else 5437# define ISLOWER(c) \ 5438 (('a' <= (c) && (c) <= 'i') \ 5439 || ('j' <= (c) && (c) <= 'r') \ 5440 || ('s' <= (c) && (c) <= 'z')) 5441# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5442#endif 5443 5444#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5445int 5446main () 5447{ 5448 int i; 5449 for (i = 0; i < 256; i++) 5450 if (XOR (islower (i), ISLOWER (i)) 5451 || toupper (i) != TOUPPER (i)) 5452 return 2; 5453 return 0; 5454} 5455_ACEOF 5456if ac_fn_c_try_run "$LINENO"; then : 5457 5458else 5459 ac_cv_header_stdc=no 5460fi 5461rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5462 conftest.$ac_objext conftest.beam conftest.$ac_ext 5463fi 5464 5465fi 5466fi 5467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5468$as_echo "$ac_cv_header_stdc" >&6; } 5469if test $ac_cv_header_stdc = yes; then 5470 5471$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5472 5473fi 5474 5475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 5476$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 5477if ${ac_cv_c_const+:} false; then : 5478 $as_echo_n "(cached) " >&6 5479else 5480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5481/* end confdefs.h. */ 5482 5483int 5484main () 5485{ 5486/* FIXME: Include the comments suggested by Paul. */ 5487#ifndef __cplusplus 5488 /* Ultrix mips cc rejects this. */ 5489 typedef int charset[2]; 5490 const charset cs; 5491 /* SunOS 4.1.1 cc rejects this. */ 5492 char const *const *pcpcc; 5493 char **ppc; 5494 /* NEC SVR4.0.2 mips cc rejects this. */ 5495 struct point {int x, y;}; 5496 static struct point const zero = {0,0}; 5497 /* AIX XL C 1.02.0.0 rejects this. 5498 It does not let you subtract one const X* pointer from another in 5499 an arm of an if-expression whose if-part is not a constant 5500 expression */ 5501 const char *g = "string"; 5502 pcpcc = &g + (g ? g-g : 0); 5503 /* HPUX 7.0 cc rejects these. */ 5504 ++pcpcc; 5505 ppc = (char**) pcpcc; 5506 pcpcc = (char const *const *) ppc; 5507 { /* SCO 3.2v4 cc rejects this. */ 5508 char *t; 5509 char const *s = 0 ? (char *) 0 : (char const *) 0; 5510 5511 *t++ = 0; 5512 if (s) return 0; 5513 } 5514 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 5515 int x[] = {25, 17}; 5516 const int *foo = &x[0]; 5517 ++foo; 5518 } 5519 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 5520 typedef const int *iptr; 5521 iptr p = 0; 5522 ++p; 5523 } 5524 { /* AIX XL C 1.02.0.0 rejects this saying 5525 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 5526 struct s { int j; const int *ap[3]; }; 5527 struct s *b; b->j = 5; 5528 } 5529 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 5530 const int foo = 10; 5531 if (!foo) return 0; 5532 } 5533 return !cs[0] && !zero.x; 5534#endif 5535 5536 ; 5537 return 0; 5538} 5539_ACEOF 5540if ac_fn_c_try_compile "$LINENO"; then : 5541 ac_cv_c_const=yes 5542else 5543 ac_cv_c_const=no 5544fi 5545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5546fi 5547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 5548$as_echo "$ac_cv_c_const" >&6; } 5549if test $ac_cv_c_const = no; then 5550 5551$as_echo "#define const /**/" >>confdefs.h 5552 5553fi 5554 5555 5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5 5557$as_echo_n "checking for signed... " >&6; } 5558if ${bh_cv_c_signed+:} false; then : 5559 $as_echo_n "(cached) " >&6 5560else 5561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5562/* end confdefs.h. */ 5563 5564int 5565main () 5566{ 5567signed char x; 5568 ; 5569 return 0; 5570} 5571_ACEOF 5572if ac_fn_c_try_compile "$LINENO"; then : 5573 bh_cv_c_signed=yes 5574else 5575 bh_cv_c_signed=no 5576fi 5577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5578fi 5579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5 5580$as_echo "$bh_cv_c_signed" >&6; } 5581 if test $bh_cv_c_signed = no; then 5582 5583$as_echo "#define signed /**/" >>confdefs.h 5584 5585 fi 5586 5587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 5588$as_echo_n "checking for inline... " >&6; } 5589if ${ac_cv_c_inline+:} false; then : 5590 $as_echo_n "(cached) " >&6 5591else 5592 ac_cv_c_inline=no 5593for ac_kw in inline __inline__ __inline; do 5594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5595/* end confdefs.h. */ 5596#ifndef __cplusplus 5597typedef int foo_t; 5598static $ac_kw foo_t static_foo () {return 0; } 5599$ac_kw foo_t foo () {return 0; } 5600#endif 5601 5602_ACEOF 5603if ac_fn_c_try_compile "$LINENO"; then : 5604 ac_cv_c_inline=$ac_kw 5605fi 5606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5607 test "$ac_cv_c_inline" != no && break 5608done 5609 5610fi 5611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 5612$as_echo "$ac_cv_c_inline" >&6; } 5613 5614case $ac_cv_c_inline in 5615 inline | yes) ;; 5616 *) 5617 case $ac_cv_c_inline in 5618 no) ac_val=;; 5619 *) ac_val=$ac_cv_c_inline;; 5620 esac 5621 cat >>confdefs.h <<_ACEOF 5622#ifndef __cplusplus 5623#define inline $ac_val 5624#endif 5625_ACEOF 5626 ;; 5627esac 5628 5629# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5630for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5631 inttypes.h stdint.h unistd.h 5632do : 5633 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5634ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5635" 5636if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5637 cat >>confdefs.h <<_ACEOF 5638#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5639_ACEOF 5640 5641fi 5642 5643done 5644 5645 5646ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 5647if test "x$ac_cv_type_off_t" = xyes; then : 5648 5649else 5650 5651cat >>confdefs.h <<_ACEOF 5652#define off_t long int 5653_ACEOF 5654 5655fi 5656 5657ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 5658if test "x$ac_cv_type_size_t" = xyes; then : 5659 5660else 5661 5662cat >>confdefs.h <<_ACEOF 5663#define size_t unsigned int 5664_ACEOF 5665 5666fi 5667 5668 5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5 5670$as_echo_n "checking for long long... " >&6; } 5671if ${ac_cv_type_long_long+:} false; then : 5672 $as_echo_n "(cached) " >&6 5673else 5674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5675/* end confdefs.h. */ 5676long long ll = 1LL; int i = 63; 5677int 5678main () 5679{ 5680long long llmax = (long long) -1; 5681 return ll << i | ll >> i | llmax / ll | llmax % ll; 5682 ; 5683 return 0; 5684} 5685_ACEOF 5686if ac_fn_c_try_link "$LINENO"; then : 5687 ac_cv_type_long_long=yes 5688else 5689 ac_cv_type_long_long=no 5690fi 5691rm -f core conftest.err conftest.$ac_objext \ 5692 conftest$ac_exeext conftest.$ac_ext 5693fi 5694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5 5695$as_echo "$ac_cv_type_long_long" >&6; } 5696 if test $ac_cv_type_long_long = yes; then 5697 5698$as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h 5699 5700 fi 5701 5702 5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 5704$as_echo_n "checking for long double... " >&6; } 5705if ${gt_cv_c_long_double+:} false; then : 5706 $as_echo_n "(cached) " >&6 5707else 5708 if test "$GCC" = yes; then 5709 gt_cv_c_long_double=yes 5710 else 5711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5712/* end confdefs.h. */ 5713 5714 /* The Stardent Vistra knows sizeof(long double), but does not support it. */ 5715 long double foo = 0.0; 5716 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ 5717 int array [2*(sizeof(long double) >= sizeof(double)) - 1]; 5718 5719int 5720main () 5721{ 5722 5723 ; 5724 return 0; 5725} 5726_ACEOF 5727if ac_fn_c_try_compile "$LINENO"; then : 5728 gt_cv_c_long_double=yes 5729else 5730 gt_cv_c_long_double=no 5731fi 5732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5733 fi 5734fi 5735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5 5736$as_echo "$gt_cv_c_long_double" >&6; } 5737 if test $gt_cv_c_long_double = yes; then 5738 5739$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h 5740 5741 fi 5742 5743 5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 5745$as_echo_n "checking for wchar_t... " >&6; } 5746if ${gt_cv_c_wchar_t+:} false; then : 5747 $as_echo_n "(cached) " >&6 5748else 5749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5750/* end confdefs.h. */ 5751#include <stddef.h> 5752 wchar_t foo = (wchar_t)'\0'; 5753int 5754main () 5755{ 5756 5757 ; 5758 return 0; 5759} 5760_ACEOF 5761if ac_fn_c_try_compile "$LINENO"; then : 5762 gt_cv_c_wchar_t=yes 5763else 5764 gt_cv_c_wchar_t=no 5765fi 5766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5767fi 5768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 5769$as_echo "$gt_cv_c_wchar_t" >&6; } 5770 if test $gt_cv_c_wchar_t = yes; then 5771 5772$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h 5773 5774 fi 5775 5776 5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 5778$as_echo_n "checking for wint_t... " >&6; } 5779if ${gt_cv_c_wint_t+:} false; then : 5780 $as_echo_n "(cached) " >&6 5781else 5782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5783/* end confdefs.h. */ 5784#include <wchar.h> 5785 wint_t foo = (wchar_t)'\0'; 5786int 5787main () 5788{ 5789 5790 ; 5791 return 0; 5792} 5793_ACEOF 5794if ac_fn_c_try_compile "$LINENO"; then : 5795 gt_cv_c_wint_t=yes 5796else 5797 gt_cv_c_wint_t=no 5798fi 5799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5800fi 5801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 5802$as_echo "$gt_cv_c_wint_t" >&6; } 5803 if test $gt_cv_c_wint_t = yes; then 5804 5805$as_echo "#define HAVE_WINT_T 1" >>confdefs.h 5806 5807 fi 5808 5809 5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 5811$as_echo_n "checking for inttypes.h... " >&6; } 5812if ${jm_ac_cv_header_inttypes_h+:} false; then : 5813 $as_echo_n "(cached) " >&6 5814else 5815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5816/* end confdefs.h. */ 5817#include <sys/types.h> 5818#include <inttypes.h> 5819int 5820main () 5821{ 5822uintmax_t i = (uintmax_t) -1; 5823 ; 5824 return 0; 5825} 5826_ACEOF 5827if ac_fn_c_try_compile "$LINENO"; then : 5828 jm_ac_cv_header_inttypes_h=yes 5829else 5830 jm_ac_cv_header_inttypes_h=no 5831fi 5832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5833fi 5834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5 5835$as_echo "$jm_ac_cv_header_inttypes_h" >&6; } 5836 if test $jm_ac_cv_header_inttypes_h = yes; then 5837 5838cat >>confdefs.h <<_ACEOF 5839#define HAVE_INTTYPES_H_WITH_UINTMAX 1 5840_ACEOF 5841 5842 fi 5843 5844 5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 5846$as_echo_n "checking for stdint.h... " >&6; } 5847if ${jm_ac_cv_header_stdint_h+:} false; then : 5848 $as_echo_n "(cached) " >&6 5849else 5850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5851/* end confdefs.h. */ 5852#include <sys/types.h> 5853#include <stdint.h> 5854int 5855main () 5856{ 5857uintmax_t i = (uintmax_t) -1; 5858 ; 5859 return 0; 5860} 5861_ACEOF 5862if ac_fn_c_try_compile "$LINENO"; then : 5863 jm_ac_cv_header_stdint_h=yes 5864else 5865 jm_ac_cv_header_stdint_h=no 5866fi 5867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5868fi 5869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5 5870$as_echo "$jm_ac_cv_header_stdint_h" >&6; } 5871 if test $jm_ac_cv_header_stdint_h = yes; then 5872 5873cat >>confdefs.h <<_ACEOF 5874#define HAVE_STDINT_H_WITH_UINTMAX 1 5875_ACEOF 5876 5877 fi 5878 5879 5880 5881 5882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5 5883$as_echo_n "checking for intmax_t... " >&6; } 5884if ${gt_cv_c_intmax_t+:} false; then : 5885 $as_echo_n "(cached) " >&6 5886else 5887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5888/* end confdefs.h. */ 5889 5890#include <stddef.h> 5891#include <stdlib.h> 5892#if HAVE_STDINT_H_WITH_UINTMAX 5893#include <stdint.h> 5894#endif 5895#if HAVE_INTTYPES_H_WITH_UINTMAX 5896#include <inttypes.h> 5897#endif 5898 5899int 5900main () 5901{ 5902intmax_t x = -1; 5903 ; 5904 return 0; 5905} 5906_ACEOF 5907if ac_fn_c_try_compile "$LINENO"; then : 5908 gt_cv_c_intmax_t=yes 5909else 5910 gt_cv_c_intmax_t=no 5911fi 5912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5913fi 5914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5 5915$as_echo "$gt_cv_c_intmax_t" >&6; } 5916 if test $gt_cv_c_intmax_t = yes; then 5917 5918$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h 5919 5920 fi 5921 5922 5923 5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5 5925$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; } 5926if ${gt_cv_func_printf_posix+:} false; then : 5927 $as_echo_n "(cached) " >&6 5928else 5929 5930 if test "$cross_compiling" = yes; then : 5931 5932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5933/* end confdefs.h. */ 5934 5935#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ 5936 notposix 5937#endif 5938 5939_ACEOF 5940if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5941 $EGREP "notposix" >/dev/null 2>&1; then : 5942 gt_cv_func_printf_posix="guessing no" 5943else 5944 gt_cv_func_printf_posix="guessing yes" 5945fi 5946rm -f conftest* 5947 5948 5949else 5950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5951/* end confdefs.h. */ 5952 5953#include <stdio.h> 5954#include <string.h> 5955/* The string "%2$d %1$d", with dollar characters protected from the shell's 5956 dollar expansion (possibly an autoconf bug). */ 5957static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; 5958static char buf[100]; 5959int main () 5960{ 5961 sprintf (buf, format, 33, 55); 5962 return (strcmp (buf, "55 33") != 0); 5963} 5964_ACEOF 5965if ac_fn_c_try_run "$LINENO"; then : 5966 gt_cv_func_printf_posix=yes 5967else 5968 gt_cv_func_printf_posix=no 5969fi 5970rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5971 conftest.$ac_objext conftest.beam conftest.$ac_ext 5972fi 5973 5974 5975fi 5976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5 5977$as_echo "$gt_cv_func_printf_posix" >&6; } 5978 case $gt_cv_func_printf_posix in 5979 *yes) 5980 5981$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h 5982 5983 ;; 5984 esac 5985 5986# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 5987# for constant arguments. Useless! 5988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 5989$as_echo_n "checking for working alloca.h... " >&6; } 5990if ${ac_cv_working_alloca_h+:} false; then : 5991 $as_echo_n "(cached) " >&6 5992else 5993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5994/* end confdefs.h. */ 5995#include <alloca.h> 5996int 5997main () 5998{ 5999char *p = (char *) alloca (2 * sizeof (int)); 6000 if (p) return 0; 6001 ; 6002 return 0; 6003} 6004_ACEOF 6005if ac_fn_c_try_link "$LINENO"; then : 6006 ac_cv_working_alloca_h=yes 6007else 6008 ac_cv_working_alloca_h=no 6009fi 6010rm -f core conftest.err conftest.$ac_objext \ 6011 conftest$ac_exeext conftest.$ac_ext 6012fi 6013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 6014$as_echo "$ac_cv_working_alloca_h" >&6; } 6015if test $ac_cv_working_alloca_h = yes; then 6016 6017$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 6018 6019fi 6020 6021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 6022$as_echo_n "checking for alloca... " >&6; } 6023if ${ac_cv_func_alloca_works+:} false; then : 6024 $as_echo_n "(cached) " >&6 6025else 6026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6027/* end confdefs.h. */ 6028#ifdef __GNUC__ 6029# define alloca __builtin_alloca 6030#else 6031# ifdef _MSC_VER 6032# include <malloc.h> 6033# define alloca _alloca 6034# else 6035# ifdef HAVE_ALLOCA_H 6036# include <alloca.h> 6037# else 6038# ifdef _AIX 6039 #pragma alloca 6040# else 6041# ifndef alloca /* predefined by HP cc +Olibcalls */ 6042void *alloca (size_t); 6043# endif 6044# endif 6045# endif 6046# endif 6047#endif 6048 6049int 6050main () 6051{ 6052char *p = (char *) alloca (1); 6053 if (p) return 0; 6054 ; 6055 return 0; 6056} 6057_ACEOF 6058if ac_fn_c_try_link "$LINENO"; then : 6059 ac_cv_func_alloca_works=yes 6060else 6061 ac_cv_func_alloca_works=no 6062fi 6063rm -f core conftest.err conftest.$ac_objext \ 6064 conftest$ac_exeext conftest.$ac_ext 6065fi 6066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 6067$as_echo "$ac_cv_func_alloca_works" >&6; } 6068 6069if test $ac_cv_func_alloca_works = yes; then 6070 6071$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 6072 6073else 6074 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 6075# that cause trouble. Some versions do not even contain alloca or 6076# contain a buggy version. If you still want to use their alloca, 6077# use ar to extract alloca.o from them instead of compiling alloca.c. 6078 6079ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 6080 6081$as_echo "#define C_ALLOCA 1" >>confdefs.h 6082 6083 6084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 6085$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 6086if ${ac_cv_os_cray+:} false; then : 6087 $as_echo_n "(cached) " >&6 6088else 6089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6090/* end confdefs.h. */ 6091#if defined CRAY && ! defined CRAY2 6092webecray 6093#else 6094wenotbecray 6095#endif 6096 6097_ACEOF 6098if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6099 $EGREP "webecray" >/dev/null 2>&1; then : 6100 ac_cv_os_cray=yes 6101else 6102 ac_cv_os_cray=no 6103fi 6104rm -f conftest* 6105 6106fi 6107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 6108$as_echo "$ac_cv_os_cray" >&6; } 6109if test $ac_cv_os_cray = yes; then 6110 for ac_func in _getb67 GETB67 getb67; do 6111 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6112ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 6113if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 6114 6115cat >>confdefs.h <<_ACEOF 6116#define CRAY_STACKSEG_END $ac_func 6117_ACEOF 6118 6119 break 6120fi 6121 6122 done 6123fi 6124 6125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 6126$as_echo_n "checking stack direction for C alloca... " >&6; } 6127if ${ac_cv_c_stack_direction+:} false; then : 6128 $as_echo_n "(cached) " >&6 6129else 6130 if test "$cross_compiling" = yes; then : 6131 ac_cv_c_stack_direction=0 6132else 6133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6134/* end confdefs.h. */ 6135$ac_includes_default 6136int 6137find_stack_direction () 6138{ 6139 static char *addr = 0; 6140 auto char dummy; 6141 if (addr == 0) 6142 { 6143 addr = &dummy; 6144 return find_stack_direction (); 6145 } 6146 else 6147 return (&dummy > addr) ? 1 : -1; 6148} 6149 6150int 6151main () 6152{ 6153 return find_stack_direction () < 0; 6154} 6155_ACEOF 6156if ac_fn_c_try_run "$LINENO"; then : 6157 ac_cv_c_stack_direction=1 6158else 6159 ac_cv_c_stack_direction=-1 6160fi 6161rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6162 conftest.$ac_objext conftest.beam conftest.$ac_ext 6163fi 6164 6165fi 6166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 6167$as_echo "$ac_cv_c_stack_direction" >&6; } 6168cat >>confdefs.h <<_ACEOF 6169#define STACK_DIRECTION $ac_cv_c_stack_direction 6170_ACEOF 6171 6172 6173fi 6174 6175 6176 6177 6178 for ac_header in $ac_header_list 6179do : 6180 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6181ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 6182" 6183if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6184 cat >>confdefs.h <<_ACEOF 6185#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6186_ACEOF 6187 6188fi 6189 6190done 6191 6192 6193 6194 6195 6196 6197 6198 6199for ac_func in getpagesize 6200do : 6201 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 6202if test "x$ac_cv_func_getpagesize" = xyes; then : 6203 cat >>confdefs.h <<_ACEOF 6204#define HAVE_GETPAGESIZE 1 6205_ACEOF 6206 6207fi 6208done 6209 6210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 6211$as_echo_n "checking for working mmap... " >&6; } 6212if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 6213 $as_echo_n "(cached) " >&6 6214else 6215 if test "$cross_compiling" = yes; then : 6216 ac_cv_func_mmap_fixed_mapped=no 6217else 6218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6219/* end confdefs.h. */ 6220$ac_includes_default 6221/* malloc might have been renamed as rpl_malloc. */ 6222#undef malloc 6223 6224/* Thanks to Mike Haertel and Jim Avera for this test. 6225 Here is a matrix of mmap possibilities: 6226 mmap private not fixed 6227 mmap private fixed at somewhere currently unmapped 6228 mmap private fixed at somewhere already mapped 6229 mmap shared not fixed 6230 mmap shared fixed at somewhere currently unmapped 6231 mmap shared fixed at somewhere already mapped 6232 For private mappings, we should verify that changes cannot be read() 6233 back from the file, nor mmap's back from the file at a different 6234 address. (There have been systems where private was not correctly 6235 implemented like the infamous i386 svr4.0, and systems where the 6236 VM page cache was not coherent with the file system buffer cache 6237 like early versions of FreeBSD and possibly contemporary NetBSD.) 6238 For shared mappings, we should conversely verify that changes get 6239 propagated back to all the places they're supposed to be. 6240 6241 Grep wants private fixed already mapped. 6242 The main things grep needs to know about mmap are: 6243 * does it exist and is it safe to write into the mmap'd area 6244 * how to use it (BSD variants) */ 6245 6246#include <fcntl.h> 6247#include <sys/mman.h> 6248 6249#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 6250char *malloc (); 6251#endif 6252 6253/* This mess was copied from the GNU getpagesize.h. */ 6254#ifndef HAVE_GETPAGESIZE 6255# ifdef _SC_PAGESIZE 6256# define getpagesize() sysconf(_SC_PAGESIZE) 6257# else /* no _SC_PAGESIZE */ 6258# ifdef HAVE_SYS_PARAM_H 6259# include <sys/param.h> 6260# ifdef EXEC_PAGESIZE 6261# define getpagesize() EXEC_PAGESIZE 6262# else /* no EXEC_PAGESIZE */ 6263# ifdef NBPG 6264# define getpagesize() NBPG * CLSIZE 6265# ifndef CLSIZE 6266# define CLSIZE 1 6267# endif /* no CLSIZE */ 6268# else /* no NBPG */ 6269# ifdef NBPC 6270# define getpagesize() NBPC 6271# else /* no NBPC */ 6272# ifdef PAGESIZE 6273# define getpagesize() PAGESIZE 6274# endif /* PAGESIZE */ 6275# endif /* no NBPC */ 6276# endif /* no NBPG */ 6277# endif /* no EXEC_PAGESIZE */ 6278# else /* no HAVE_SYS_PARAM_H */ 6279# define getpagesize() 8192 /* punt totally */ 6280# endif /* no HAVE_SYS_PARAM_H */ 6281# endif /* no _SC_PAGESIZE */ 6282 6283#endif /* no HAVE_GETPAGESIZE */ 6284 6285int 6286main () 6287{ 6288 char *data, *data2, *data3; 6289 const char *cdata2; 6290 int i, pagesize; 6291 int fd, fd2; 6292 6293 pagesize = getpagesize (); 6294 6295 /* First, make a file with some known garbage in it. */ 6296 data = (char *) malloc (pagesize); 6297 if (!data) 6298 return 1; 6299 for (i = 0; i < pagesize; ++i) 6300 *(data + i) = rand (); 6301 umask (0); 6302 fd = creat ("conftest.mmap", 0600); 6303 if (fd < 0) 6304 return 2; 6305 if (write (fd, data, pagesize) != pagesize) 6306 return 3; 6307 close (fd); 6308 6309 /* Next, check that the tail of a page is zero-filled. File must have 6310 non-zero length, otherwise we risk SIGBUS for entire page. */ 6311 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 6312 if (fd2 < 0) 6313 return 4; 6314 cdata2 = ""; 6315 if (write (fd2, cdata2, 1) != 1) 6316 return 5; 6317 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 6318 if (data2 == MAP_FAILED) 6319 return 6; 6320 for (i = 0; i < pagesize; ++i) 6321 if (*(data2 + i)) 6322 return 7; 6323 close (fd2); 6324 if (munmap (data2, pagesize)) 6325 return 8; 6326 6327 /* Next, try to mmap the file at a fixed address which already has 6328 something else allocated at it. If we can, also make sure that 6329 we see the same garbage. */ 6330 fd = open ("conftest.mmap", O_RDWR); 6331 if (fd < 0) 6332 return 9; 6333 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 6334 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 6335 return 10; 6336 for (i = 0; i < pagesize; ++i) 6337 if (*(data + i) != *(data2 + i)) 6338 return 11; 6339 6340 /* Finally, make sure that changes to the mapped area do not 6341 percolate back to the file as seen by read(). (This is a bug on 6342 some variants of i386 svr4.0.) */ 6343 for (i = 0; i < pagesize; ++i) 6344 *(data2 + i) = *(data2 + i) + 1; 6345 data3 = (char *) malloc (pagesize); 6346 if (!data3) 6347 return 12; 6348 if (read (fd, data3, pagesize) != pagesize) 6349 return 13; 6350 for (i = 0; i < pagesize; ++i) 6351 if (*(data + i) != *(data3 + i)) 6352 return 14; 6353 close (fd); 6354 return 0; 6355} 6356_ACEOF 6357if ac_fn_c_try_run "$LINENO"; then : 6358 ac_cv_func_mmap_fixed_mapped=yes 6359else 6360 ac_cv_func_mmap_fixed_mapped=no 6361fi 6362rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6363 conftest.$ac_objext conftest.beam conftest.$ac_ext 6364fi 6365 6366fi 6367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 6368$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 6369if test $ac_cv_func_mmap_fixed_mapped = yes; then 6370 6371$as_echo "#define HAVE_MMAP 1" >>confdefs.h 6372 6373fi 6374rm -f conftest.mmap conftest.txt 6375 6376 6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5 6378$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; } 6379if ${ac_cv_gnu_library_2_1+:} false; then : 6380 $as_echo_n "(cached) " >&6 6381else 6382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6383/* end confdefs.h. */ 6384 6385#include <features.h> 6386#ifdef __GNU_LIBRARY__ 6387 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) 6388 Lucky GNU user 6389 #endif 6390#endif 6391 6392_ACEOF 6393if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6394 $EGREP "Lucky GNU user" >/dev/null 2>&1; then : 6395 ac_cv_gnu_library_2_1=yes 6396else 6397 ac_cv_gnu_library_2_1=no 6398fi 6399rm -f conftest* 6400 6401 6402 6403fi 6404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5 6405$as_echo "$ac_cv_gnu_library_2_1" >&6; } 6406 6407 GLIBC21="$ac_cv_gnu_library_2_1" 6408 6409 6410 6411 6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5 6413$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; } 6414if ${gt_cv_int_divbyzero_sigfpe+:} false; then : 6415 $as_echo_n "(cached) " >&6 6416else 6417 6418 if test "$cross_compiling" = yes; then : 6419 6420 # Guess based on the CPU. 6421 case "$host_cpu" in 6422 alpha* | i3456786 | m68k | s390*) 6423 gt_cv_int_divbyzero_sigfpe="guessing yes";; 6424 *) 6425 gt_cv_int_divbyzero_sigfpe="guessing no";; 6426 esac 6427 6428else 6429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6430/* end confdefs.h. */ 6431 6432#include <stdlib.h> 6433#include <signal.h> 6434 6435static void 6436#ifdef __cplusplus 6437sigfpe_handler (int sig) 6438#else 6439sigfpe_handler (sig) int sig; 6440#endif 6441{ 6442 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ 6443 exit (sig != SIGFPE); 6444} 6445 6446int x = 1; 6447int y = 0; 6448int z; 6449int nan; 6450 6451int main () 6452{ 6453 signal (SIGFPE, sigfpe_handler); 6454/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ 6455#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) 6456 signal (SIGTRAP, sigfpe_handler); 6457#endif 6458/* Linux/SPARC yields signal SIGILL. */ 6459#if defined (__sparc__) && defined (__linux__) 6460 signal (SIGILL, sigfpe_handler); 6461#endif 6462 6463 z = x / y; 6464 nan = y / y; 6465 exit (1); 6466} 6467 6468_ACEOF 6469if ac_fn_c_try_run "$LINENO"; then : 6470 gt_cv_int_divbyzero_sigfpe=yes 6471else 6472 gt_cv_int_divbyzero_sigfpe=no 6473fi 6474rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6475 conftest.$ac_objext conftest.beam conftest.$ac_ext 6476fi 6477 6478 6479fi 6480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5 6481$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; } 6482 case "$gt_cv_int_divbyzero_sigfpe" in 6483 *yes) value=1;; 6484 *) value=0;; 6485 esac 6486 6487cat >>confdefs.h <<_ACEOF 6488#define INTDIV0_RAISES_SIGFPE $value 6489_ACEOF 6490 6491 6492 6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5 6494$as_echo_n "checking for unsigned long long... " >&6; } 6495if ${ac_cv_type_unsigned_long_long+:} false; then : 6496 $as_echo_n "(cached) " >&6 6497else 6498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6499/* end confdefs.h. */ 6500unsigned long long ull = 1ULL; int i = 63; 6501int 6502main () 6503{ 6504unsigned long long ullmax = (unsigned long long) -1; 6505 return ull << i | ull >> i | ullmax / ull | ullmax % ull; 6506 ; 6507 return 0; 6508} 6509_ACEOF 6510if ac_fn_c_try_link "$LINENO"; then : 6511 ac_cv_type_unsigned_long_long=yes 6512else 6513 ac_cv_type_unsigned_long_long=no 6514fi 6515rm -f core conftest.err conftest.$ac_objext \ 6516 conftest$ac_exeext conftest.$ac_ext 6517fi 6518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5 6519$as_echo "$ac_cv_type_unsigned_long_long" >&6; } 6520 if test $ac_cv_type_unsigned_long_long = yes; then 6521 6522$as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h 6523 6524 fi 6525 6526 6527 6528 6529 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then 6530 6531 test $ac_cv_type_unsigned_long_long = yes \ 6532 && ac_type='unsigned long long' \ 6533 || ac_type='unsigned long' 6534 6535cat >>confdefs.h <<_ACEOF 6536#define uintmax_t $ac_type 6537_ACEOF 6538 6539 else 6540 6541$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h 6542 6543 fi 6544 6545 6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 6547$as_echo_n "checking for inttypes.h... " >&6; } 6548if ${gt_cv_header_inttypes_h+:} false; then : 6549 $as_echo_n "(cached) " >&6 6550else 6551 6552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6553/* end confdefs.h. */ 6554#include <sys/types.h> 6555#include <inttypes.h> 6556int 6557main () 6558{ 6559 6560 ; 6561 return 0; 6562} 6563_ACEOF 6564if ac_fn_c_try_compile "$LINENO"; then : 6565 gt_cv_header_inttypes_h=yes 6566else 6567 gt_cv_header_inttypes_h=no 6568fi 6569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6570 6571fi 6572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5 6573$as_echo "$gt_cv_header_inttypes_h" >&6; } 6574 if test $gt_cv_header_inttypes_h = yes; then 6575 6576cat >>confdefs.h <<_ACEOF 6577#define HAVE_INTTYPES_H 1 6578_ACEOF 6579 6580 fi 6581 6582 6583 6584 if test $gt_cv_header_inttypes_h = yes; then 6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5 6586$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } 6587if ${gt_cv_inttypes_pri_broken+:} false; then : 6588 $as_echo_n "(cached) " >&6 6589else 6590 6591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6592/* end confdefs.h. */ 6593#include <inttypes.h> 6594#ifdef PRId32 6595char *p = PRId32; 6596#endif 6597 6598int 6599main () 6600{ 6601 6602 ; 6603 return 0; 6604} 6605_ACEOF 6606if ac_fn_c_try_compile "$LINENO"; then : 6607 gt_cv_inttypes_pri_broken=no 6608else 6609 gt_cv_inttypes_pri_broken=yes 6610fi 6611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6612 6613fi 6614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5 6615$as_echo "$gt_cv_inttypes_pri_broken" >&6; } 6616 fi 6617 if test "$gt_cv_inttypes_pri_broken" = yes; then 6618 6619cat >>confdefs.h <<_ACEOF 6620#define PRI_MACROS_BROKEN 1 6621_ACEOF 6622 6623 fi 6624 6625 6626 for ac_header in stdint.h 6627do : 6628 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 6629if test "x$ac_cv_header_stdint_h" = xyes; then : 6630 cat >>confdefs.h <<_ACEOF 6631#define HAVE_STDINT_H 1 6632_ACEOF 6633 6634fi 6635 6636done 6637 6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5 6639$as_echo_n "checking for SIZE_MAX... " >&6; } 6640 result= 6641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6642/* end confdefs.h. */ 6643 6644#include <limits.h> 6645#if HAVE_STDINT_H 6646#include <stdint.h> 6647#endif 6648#ifdef SIZE_MAX 6649Found it 6650#endif 6651 6652_ACEOF 6653if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6654 $EGREP "Found it" >/dev/null 2>&1; then : 6655 result=yes 6656fi 6657rm -f conftest* 6658 6659 if test -z "$result"; then 6660 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then : 6661 6662else 6663 result=? 6664fi 6665 6666 6667 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then : 6668 6669else 6670 result=? 6671fi 6672 6673 6674 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then : 6675 6676else 6677 result=? 6678fi 6679 6680 6681 if test "$fits_in_uint" = 1; then 6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6683/* end confdefs.h. */ 6684#include <stddef.h> 6685 extern size_t foo; 6686 extern unsigned long foo; 6687 6688int 6689main () 6690{ 6691 6692 ; 6693 return 0; 6694} 6695_ACEOF 6696if ac_fn_c_try_compile "$LINENO"; then : 6697 fits_in_uint=0 6698fi 6699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6700 fi 6701 if test -z "$result"; then 6702 if test "$fits_in_uint" = 1; then 6703 result="$res_hi$res_lo"U 6704 else 6705 result="$res_hi$res_lo"UL 6706 fi 6707 else 6708 result='~(size_t)0' 6709 fi 6710 fi 6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 6712$as_echo "$result" >&6; } 6713 if test "$result" != yes; then 6714 6715cat >>confdefs.h <<_ACEOF 6716#define SIZE_MAX $result 6717_ACEOF 6718 6719 fi 6720 6721 6722 6723 for ac_header in stdint.h 6724do : 6725 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 6726if test "x$ac_cv_header_stdint_h" = xyes; then : 6727 cat >>confdefs.h <<_ACEOF 6728#define HAVE_STDINT_H 1 6729_ACEOF 6730 6731fi 6732 6733done 6734 6735 6736 6737 if test "X$prefix" = "XNONE"; then 6738 acl_final_prefix="$ac_default_prefix" 6739 else 6740 acl_final_prefix="$prefix" 6741 fi 6742 if test "X$exec_prefix" = "XNONE"; then 6743 acl_final_exec_prefix='${prefix}' 6744 else 6745 acl_final_exec_prefix="$exec_prefix" 6746 fi 6747 acl_save_prefix="$prefix" 6748 prefix="$acl_final_prefix" 6749 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 6750 prefix="$acl_save_prefix" 6751 6752 6753# Check whether --with-gnu-ld was given. 6754if test "${with_gnu_ld+set}" = set; then : 6755 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 6756else 6757 with_gnu_ld=no 6758fi 6759 6760# Prepare PATH_SEPARATOR. 6761# The user is always right. 6762if test "${PATH_SEPARATOR+set}" != set; then 6763 echo "#! /bin/sh" >conf$$.sh 6764 echo "exit 0" >>conf$$.sh 6765 chmod +x conf$$.sh 6766 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 6767 PATH_SEPARATOR=';' 6768 else 6769 PATH_SEPARATOR=: 6770 fi 6771 rm -f conf$$.sh 6772fi 6773ac_prog=ld 6774if test "$GCC" = yes; then 6775 # Check if gcc -print-prog-name=ld gives a path. 6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 6777$as_echo_n "checking for ld used by GCC... " >&6; } 6778 case $host in 6779 *-*-mingw*) 6780 # gcc leaves a trailing carriage return which upsets mingw 6781 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6782 *) 6783 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6784 esac 6785 case $ac_prog in 6786 # Accept absolute paths. 6787 [\\/]* | [A-Za-z]:[\\/]*) 6788 re_direlt='/[^/][^/]*/\.\./' 6789 # Canonicalize the path of ld 6790 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 6791 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 6792 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 6793 done 6794 test -z "$LD" && LD="$ac_prog" 6795 ;; 6796 "") 6797 # If it fails, then pretend we aren't using GCC. 6798 ac_prog=ld 6799 ;; 6800 *) 6801 # If it is relative, then search for the first ld in PATH. 6802 with_gnu_ld=unknown 6803 ;; 6804 esac 6805elif test "$with_gnu_ld" = yes; then 6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6807$as_echo_n "checking for GNU ld... " >&6; } 6808else 6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6810$as_echo_n "checking for non-GNU ld... " >&6; } 6811fi 6812if ${acl_cv_path_LD+:} false; then : 6813 $as_echo_n "(cached) " >&6 6814else 6815 if test -z "$LD"; then 6816 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 6817 for ac_dir in $PATH; do 6818 test -z "$ac_dir" && ac_dir=. 6819 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6820 acl_cv_path_LD="$ac_dir/$ac_prog" 6821 # Check to see if the program is GNU ld. I'd rather use --version, 6822 # but apparently some GNU ld's only accept -v. 6823 # Break only if it was the GNU/non-GNU ld that we prefer. 6824 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in 6825 *GNU* | *'with BFD'*) 6826 test "$with_gnu_ld" != no && break ;; 6827 *) 6828 test "$with_gnu_ld" != yes && break ;; 6829 esac 6830 fi 6831 done 6832 IFS="$ac_save_ifs" 6833else 6834 acl_cv_path_LD="$LD" # Let the user override the test with a path. 6835fi 6836fi 6837 6838LD="$acl_cv_path_LD" 6839if test -n "$LD"; then 6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6841$as_echo "$LD" >&6; } 6842else 6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6844$as_echo "no" >&6; } 6845fi 6846test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6848$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 6849if ${acl_cv_prog_gnu_ld+:} false; then : 6850 $as_echo_n "(cached) " >&6 6851else 6852 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 6853case `$LD -v 2>&1 </dev/null` in 6854*GNU* | *'with BFD'*) 6855 acl_cv_prog_gnu_ld=yes ;; 6856*) 6857 acl_cv_prog_gnu_ld=no ;; 6858esac 6859fi 6860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 6861$as_echo "$acl_cv_prog_gnu_ld" >&6; } 6862with_gnu_ld=$acl_cv_prog_gnu_ld 6863 6864 6865 6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 6867$as_echo_n "checking for shared library run path origin... " >&6; } 6868if ${acl_cv_rpath+:} false; then : 6869 $as_echo_n "(cached) " >&6 6870else 6871 6872 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 6873 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 6874 . ./conftest.sh 6875 rm -f ./conftest.sh 6876 acl_cv_rpath=done 6877 6878fi 6879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 6880$as_echo "$acl_cv_rpath" >&6; } 6881 wl="$acl_cv_wl" 6882 libext="$acl_cv_libext" 6883 shlibext="$acl_cv_shlibext" 6884 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 6885 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 6886 hardcode_direct="$acl_cv_hardcode_direct" 6887 hardcode_minus_L="$acl_cv_hardcode_minus_L" 6888 # Check whether --enable-rpath was given. 6889if test "${enable_rpath+set}" = set; then : 6890 enableval=$enable_rpath; : 6891else 6892 enable_rpath=yes 6893fi 6894 6895 6896 6897 6898 6899 6900 6901 6902 use_additional=yes 6903 6904 acl_save_prefix="$prefix" 6905 prefix="$acl_final_prefix" 6906 acl_save_exec_prefix="$exec_prefix" 6907 exec_prefix="$acl_final_exec_prefix" 6908 6909 eval additional_includedir=\"$includedir\" 6910 eval additional_libdir=\"$libdir\" 6911 6912 exec_prefix="$acl_save_exec_prefix" 6913 prefix="$acl_save_prefix" 6914 6915 6916# Check whether --with-libiconv-prefix was given. 6917if test "${with_libiconv_prefix+set}" = set; then : 6918 withval=$with_libiconv_prefix; 6919 if test "X$withval" = "Xno"; then 6920 use_additional=no 6921 else 6922 if test "X$withval" = "X"; then 6923 6924 acl_save_prefix="$prefix" 6925 prefix="$acl_final_prefix" 6926 acl_save_exec_prefix="$exec_prefix" 6927 exec_prefix="$acl_final_exec_prefix" 6928 6929 eval additional_includedir=\"$includedir\" 6930 eval additional_libdir=\"$libdir\" 6931 6932 exec_prefix="$acl_save_exec_prefix" 6933 prefix="$acl_save_prefix" 6934 6935 else 6936 additional_includedir="$withval/include" 6937 additional_libdir="$withval/lib" 6938 fi 6939 fi 6940 6941fi 6942 6943 LIBICONV= 6944 LTLIBICONV= 6945 INCICONV= 6946 rpathdirs= 6947 ltrpathdirs= 6948 names_already_handled= 6949 names_next_round='iconv ' 6950 while test -n "$names_next_round"; do 6951 names_this_round="$names_next_round" 6952 names_next_round= 6953 for name in $names_this_round; do 6954 already_handled= 6955 for n in $names_already_handled; do 6956 if test "$n" = "$name"; then 6957 already_handled=yes 6958 break 6959 fi 6960 done 6961 if test -z "$already_handled"; then 6962 names_already_handled="$names_already_handled $name" 6963 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 6964 eval value=\"\$HAVE_LIB$uppername\" 6965 if test -n "$value"; then 6966 if test "$value" = yes; then 6967 eval value=\"\$LIB$uppername\" 6968 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 6969 eval value=\"\$LTLIB$uppername\" 6970 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 6971 else 6972 : 6973 fi 6974 else 6975 found_dir= 6976 found_la= 6977 found_so= 6978 found_a= 6979 if test $use_additional = yes; then 6980 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 6981 found_dir="$additional_libdir" 6982 found_so="$additional_libdir/lib$name.$shlibext" 6983 if test -f "$additional_libdir/lib$name.la"; then 6984 found_la="$additional_libdir/lib$name.la" 6985 fi 6986 else 6987 if test -f "$additional_libdir/lib$name.$libext"; then 6988 found_dir="$additional_libdir" 6989 found_a="$additional_libdir/lib$name.$libext" 6990 if test -f "$additional_libdir/lib$name.la"; then 6991 found_la="$additional_libdir/lib$name.la" 6992 fi 6993 fi 6994 fi 6995 fi 6996 if test "X$found_dir" = "X"; then 6997 for x in $LDFLAGS $LTLIBICONV; do 6998 6999 acl_save_prefix="$prefix" 7000 prefix="$acl_final_prefix" 7001 acl_save_exec_prefix="$exec_prefix" 7002 exec_prefix="$acl_final_exec_prefix" 7003 eval x=\"$x\" 7004 exec_prefix="$acl_save_exec_prefix" 7005 prefix="$acl_save_prefix" 7006 7007 case "$x" in 7008 -L*) 7009 dir=`echo "X$x" | sed -e 's/^X-L//'` 7010 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 7011 found_dir="$dir" 7012 found_so="$dir/lib$name.$shlibext" 7013 if test -f "$dir/lib$name.la"; then 7014 found_la="$dir/lib$name.la" 7015 fi 7016 else 7017 if test -f "$dir/lib$name.$libext"; then 7018 found_dir="$dir" 7019 found_a="$dir/lib$name.$libext" 7020 if test -f "$dir/lib$name.la"; then 7021 found_la="$dir/lib$name.la" 7022 fi 7023 fi 7024 fi 7025 ;; 7026 esac 7027 if test "X$found_dir" != "X"; then 7028 break 7029 fi 7030 done 7031 fi 7032 if test "X$found_dir" != "X"; then 7033 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 7034 if test "X$found_so" != "X"; then 7035 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 7036 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 7037 else 7038 haveit= 7039 for x in $ltrpathdirs; do 7040 if test "X$x" = "X$found_dir"; then 7041 haveit=yes 7042 break 7043 fi 7044 done 7045 if test -z "$haveit"; then 7046 ltrpathdirs="$ltrpathdirs $found_dir" 7047 fi 7048 if test "$hardcode_direct" = yes; then 7049 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 7050 else 7051 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 7052 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 7053 haveit= 7054 for x in $rpathdirs; do 7055 if test "X$x" = "X$found_dir"; then 7056 haveit=yes 7057 break 7058 fi 7059 done 7060 if test -z "$haveit"; then 7061 rpathdirs="$rpathdirs $found_dir" 7062 fi 7063 else 7064 haveit= 7065 for x in $LDFLAGS $LIBICONV; do 7066 7067 acl_save_prefix="$prefix" 7068 prefix="$acl_final_prefix" 7069 acl_save_exec_prefix="$exec_prefix" 7070 exec_prefix="$acl_final_exec_prefix" 7071 eval x=\"$x\" 7072 exec_prefix="$acl_save_exec_prefix" 7073 prefix="$acl_save_prefix" 7074 7075 if test "X$x" = "X-L$found_dir"; then 7076 haveit=yes 7077 break 7078 fi 7079 done 7080 if test -z "$haveit"; then 7081 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 7082 fi 7083 if test "$hardcode_minus_L" != no; then 7084 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 7085 else 7086 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 7087 fi 7088 fi 7089 fi 7090 fi 7091 else 7092 if test "X$found_a" != "X"; then 7093 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 7094 else 7095 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 7096 fi 7097 fi 7098 additional_includedir= 7099 case "$found_dir" in 7100 */lib | */lib/) 7101 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 7102 additional_includedir="$basedir/include" 7103 ;; 7104 esac 7105 if test "X$additional_includedir" != "X"; then 7106 if test "X$additional_includedir" != "X/usr/include"; then 7107 haveit= 7108 if test "X$additional_includedir" = "X/usr/local/include"; then 7109 if test -n "$GCC"; then 7110 case $host_os in 7111 linux*) haveit=yes;; 7112 esac 7113 fi 7114 fi 7115 if test -z "$haveit"; then 7116 for x in $CPPFLAGS $INCICONV; do 7117 7118 acl_save_prefix="$prefix" 7119 prefix="$acl_final_prefix" 7120 acl_save_exec_prefix="$exec_prefix" 7121 exec_prefix="$acl_final_exec_prefix" 7122 eval x=\"$x\" 7123 exec_prefix="$acl_save_exec_prefix" 7124 prefix="$acl_save_prefix" 7125 7126 if test "X$x" = "X-I$additional_includedir"; then 7127 haveit=yes 7128 break 7129 fi 7130 done 7131 if test -z "$haveit"; then 7132 if test -d "$additional_includedir"; then 7133 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 7134 fi 7135 fi 7136 fi 7137 fi 7138 fi 7139 if test -n "$found_la"; then 7140 save_libdir="$libdir" 7141 case "$found_la" in 7142 */* | *\\*) . "$found_la" ;; 7143 *) . "./$found_la" ;; 7144 esac 7145 libdir="$save_libdir" 7146 for dep in $dependency_libs; do 7147 case "$dep" in 7148 -L*) 7149 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 7150 if test "X$additional_libdir" != "X/usr/lib"; then 7151 haveit= 7152 if test "X$additional_libdir" = "X/usr/local/lib"; then 7153 if test -n "$GCC"; then 7154 case $host_os in 7155 linux*) haveit=yes;; 7156 esac 7157 fi 7158 fi 7159 if test -z "$haveit"; then 7160 haveit= 7161 for x in $LDFLAGS $LIBICONV; do 7162 7163 acl_save_prefix="$prefix" 7164 prefix="$acl_final_prefix" 7165 acl_save_exec_prefix="$exec_prefix" 7166 exec_prefix="$acl_final_exec_prefix" 7167 eval x=\"$x\" 7168 exec_prefix="$acl_save_exec_prefix" 7169 prefix="$acl_save_prefix" 7170 7171 if test "X$x" = "X-L$additional_libdir"; then 7172 haveit=yes 7173 break 7174 fi 7175 done 7176 if test -z "$haveit"; then 7177 if test -d "$additional_libdir"; then 7178 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 7179 fi 7180 fi 7181 haveit= 7182 for x in $LDFLAGS $LTLIBICONV; do 7183 7184 acl_save_prefix="$prefix" 7185 prefix="$acl_final_prefix" 7186 acl_save_exec_prefix="$exec_prefix" 7187 exec_prefix="$acl_final_exec_prefix" 7188 eval x=\"$x\" 7189 exec_prefix="$acl_save_exec_prefix" 7190 prefix="$acl_save_prefix" 7191 7192 if test "X$x" = "X-L$additional_libdir"; then 7193 haveit=yes 7194 break 7195 fi 7196 done 7197 if test -z "$haveit"; then 7198 if test -d "$additional_libdir"; then 7199 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 7200 fi 7201 fi 7202 fi 7203 fi 7204 ;; 7205 -R*) 7206 dir=`echo "X$dep" | sed -e 's/^X-R//'` 7207 if test "$enable_rpath" != no; then 7208 haveit= 7209 for x in $rpathdirs; do 7210 if test "X$x" = "X$dir"; then 7211 haveit=yes 7212 break 7213 fi 7214 done 7215 if test -z "$haveit"; then 7216 rpathdirs="$rpathdirs $dir" 7217 fi 7218 haveit= 7219 for x in $ltrpathdirs; do 7220 if test "X$x" = "X$dir"; then 7221 haveit=yes 7222 break 7223 fi 7224 done 7225 if test -z "$haveit"; then 7226 ltrpathdirs="$ltrpathdirs $dir" 7227 fi 7228 fi 7229 ;; 7230 -l*) 7231 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 7232 ;; 7233 *.la) 7234 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 7235 ;; 7236 *) 7237 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 7238 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 7239 ;; 7240 esac 7241 done 7242 fi 7243 else 7244 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 7245 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 7246 fi 7247 fi 7248 fi 7249 done 7250 done 7251 if test "X$rpathdirs" != "X"; then 7252 if test -n "$hardcode_libdir_separator"; then 7253 alldirs= 7254 for found_dir in $rpathdirs; do 7255 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 7256 done 7257 acl_save_libdir="$libdir" 7258 libdir="$alldirs" 7259 eval flag=\"$hardcode_libdir_flag_spec\" 7260 libdir="$acl_save_libdir" 7261 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 7262 else 7263 for found_dir in $rpathdirs; do 7264 acl_save_libdir="$libdir" 7265 libdir="$found_dir" 7266 eval flag=\"$hardcode_libdir_flag_spec\" 7267 libdir="$acl_save_libdir" 7268 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 7269 done 7270 fi 7271 fi 7272 if test "X$ltrpathdirs" != "X"; then 7273 for found_dir in $ltrpathdirs; do 7274 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 7275 done 7276 fi 7277 7278 7279 7280 7281 7282 7283 7284 7285 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 7286if test "x$ac_cv_type_ptrdiff_t" = xyes; then : 7287 7288else 7289 7290$as_echo "#define ptrdiff_t long" >>confdefs.h 7291 7292 7293fi 7294 7295 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ 7296stdlib.h string.h unistd.h sys/param.h 7297do : 7298 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7299ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 7300if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7301 cat >>confdefs.h <<_ACEOF 7302#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7303_ACEOF 7304 7305fi 7306 7307done 7308 7309 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \ 7310mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ 7311strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ 7312__fsetlocking 7313do : 7314 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7315ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 7316if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 7317 cat >>confdefs.h <<_ACEOF 7318#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 7319_ACEOF 7320 7321fi 7322done 7323 7324 7325 7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5 7327$as_echo_n "checking whether _snprintf is declared... " >&6; } 7328if ${ac_cv_have_decl__snprintf+:} false; then : 7329 $as_echo_n "(cached) " >&6 7330else 7331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7332/* end confdefs.h. */ 7333#include <stdio.h> 7334int 7335main () 7336{ 7337 7338#ifndef _snprintf 7339 char *p = (char *) _snprintf; 7340#endif 7341 7342 ; 7343 return 0; 7344} 7345_ACEOF 7346if ac_fn_c_try_compile "$LINENO"; then : 7347 ac_cv_have_decl__snprintf=yes 7348else 7349 ac_cv_have_decl__snprintf=no 7350fi 7351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7352fi 7353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5 7354$as_echo "$ac_cv_have_decl__snprintf" >&6; } 7355 if test $ac_cv_have_decl__snprintf = yes; then 7356 gt_value=1 7357 else 7358 gt_value=0 7359 fi 7360 7361cat >>confdefs.h <<_ACEOF 7362#define HAVE_DECL__SNPRINTF $gt_value 7363_ACEOF 7364 7365 7366 7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5 7368$as_echo_n "checking whether _snwprintf is declared... " >&6; } 7369if ${ac_cv_have_decl__snwprintf+:} false; then : 7370 $as_echo_n "(cached) " >&6 7371else 7372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7373/* end confdefs.h. */ 7374#include <stdio.h> 7375int 7376main () 7377{ 7378 7379#ifndef _snwprintf 7380 char *p = (char *) _snwprintf; 7381#endif 7382 7383 ; 7384 return 0; 7385} 7386_ACEOF 7387if ac_fn_c_try_compile "$LINENO"; then : 7388 ac_cv_have_decl__snwprintf=yes 7389else 7390 ac_cv_have_decl__snwprintf=no 7391fi 7392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7393fi 7394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5 7395$as_echo "$ac_cv_have_decl__snwprintf" >&6; } 7396 if test $ac_cv_have_decl__snwprintf = yes; then 7397 gt_value=1 7398 else 7399 gt_value=0 7400 fi 7401 7402cat >>confdefs.h <<_ACEOF 7403#define HAVE_DECL__SNWPRINTF $gt_value 7404_ACEOF 7405 7406 7407 7408 7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5 7410$as_echo_n "checking whether feof_unlocked is declared... " >&6; } 7411if ${ac_cv_have_decl_feof_unlocked+:} false; then : 7412 $as_echo_n "(cached) " >&6 7413else 7414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7415/* end confdefs.h. */ 7416#include <stdio.h> 7417int 7418main () 7419{ 7420 7421#ifndef feof_unlocked 7422 char *p = (char *) feof_unlocked; 7423#endif 7424 7425 ; 7426 return 0; 7427} 7428_ACEOF 7429if ac_fn_c_try_compile "$LINENO"; then : 7430 ac_cv_have_decl_feof_unlocked=yes 7431else 7432 ac_cv_have_decl_feof_unlocked=no 7433fi 7434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7435fi 7436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5 7437$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; } 7438 if test $ac_cv_have_decl_feof_unlocked = yes; then 7439 gt_value=1 7440 else 7441 gt_value=0 7442 fi 7443 7444cat >>confdefs.h <<_ACEOF 7445#define HAVE_DECL_FEOF_UNLOCKED $gt_value 7446_ACEOF 7447 7448 7449 7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5 7451$as_echo_n "checking whether fgets_unlocked is declared... " >&6; } 7452if ${ac_cv_have_decl_fgets_unlocked+:} false; then : 7453 $as_echo_n "(cached) " >&6 7454else 7455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7456/* end confdefs.h. */ 7457#include <stdio.h> 7458int 7459main () 7460{ 7461 7462#ifndef fgets_unlocked 7463 char *p = (char *) fgets_unlocked; 7464#endif 7465 7466 ; 7467 return 0; 7468} 7469_ACEOF 7470if ac_fn_c_try_compile "$LINENO"; then : 7471 ac_cv_have_decl_fgets_unlocked=yes 7472else 7473 ac_cv_have_decl_fgets_unlocked=no 7474fi 7475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7476fi 7477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5 7478$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; } 7479 if test $ac_cv_have_decl_fgets_unlocked = yes; then 7480 gt_value=1 7481 else 7482 gt_value=0 7483 fi 7484 7485cat >>confdefs.h <<_ACEOF 7486#define HAVE_DECL_FGETS_UNLOCKED $gt_value 7487_ACEOF 7488 7489 7490 7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5 7492$as_echo_n "checking whether getc_unlocked is declared... " >&6; } 7493if ${ac_cv_have_decl_getc_unlocked+:} false; then : 7494 $as_echo_n "(cached) " >&6 7495else 7496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7497/* end confdefs.h. */ 7498#include <stdio.h> 7499int 7500main () 7501{ 7502 7503#ifndef getc_unlocked 7504 char *p = (char *) getc_unlocked; 7505#endif 7506 7507 ; 7508 return 0; 7509} 7510_ACEOF 7511if ac_fn_c_try_compile "$LINENO"; then : 7512 ac_cv_have_decl_getc_unlocked=yes 7513else 7514 ac_cv_have_decl_getc_unlocked=no 7515fi 7516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7517fi 7518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5 7519$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; } 7520 if test $ac_cv_have_decl_getc_unlocked = yes; then 7521 gt_value=1 7522 else 7523 gt_value=0 7524 fi 7525 7526cat >>confdefs.h <<_ACEOF 7527#define HAVE_DECL_GETC_UNLOCKED $gt_value 7528_ACEOF 7529 7530 7531 7532 case $gt_cv_func_printf_posix in 7533 *yes) HAVE_POSIX_PRINTF=1 ;; 7534 *) HAVE_POSIX_PRINTF=0 ;; 7535 esac 7536 7537 if test "$ac_cv_func_asprintf" = yes; then 7538 HAVE_ASPRINTF=1 7539 else 7540 HAVE_ASPRINTF=0 7541 fi 7542 7543 if test "$ac_cv_func_snprintf" = yes; then 7544 HAVE_SNPRINTF=1 7545 else 7546 HAVE_SNPRINTF=0 7547 fi 7548 7549 if test "$ac_cv_func_wprintf" = yes; then 7550 HAVE_WPRINTF=1 7551 else 7552 HAVE_WPRINTF=0 7553 fi 7554 7555 7556 7557 7558 7559 7560 7561 am_save_CPPFLAGS="$CPPFLAGS" 7562 7563 for element in $INCICONV; do 7564 haveit= 7565 for x in $CPPFLAGS; do 7566 7567 acl_save_prefix="$prefix" 7568 prefix="$acl_final_prefix" 7569 acl_save_exec_prefix="$exec_prefix" 7570 exec_prefix="$acl_final_exec_prefix" 7571 eval x=\"$x\" 7572 exec_prefix="$acl_save_exec_prefix" 7573 prefix="$acl_save_prefix" 7574 7575 if test "X$x" = "X$element"; then 7576 haveit=yes 7577 break 7578 fi 7579 done 7580 if test -z "$haveit"; then 7581 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 7582 fi 7583 done 7584 7585 7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 7587$as_echo_n "checking for iconv... " >&6; } 7588if ${am_cv_func_iconv+:} false; then : 7589 $as_echo_n "(cached) " >&6 7590else 7591 7592 am_cv_func_iconv="no, consider installing GNU libiconv" 7593 am_cv_lib_iconv=no 7594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7595/* end confdefs.h. */ 7596#include <stdlib.h> 7597#include <iconv.h> 7598int 7599main () 7600{ 7601iconv_t cd = iconv_open("",""); 7602 iconv(cd,NULL,NULL,NULL,NULL); 7603 iconv_close(cd); 7604 ; 7605 return 0; 7606} 7607_ACEOF 7608if ac_fn_c_try_link "$LINENO"; then : 7609 am_cv_func_iconv=yes 7610fi 7611rm -f core conftest.err conftest.$ac_objext \ 7612 conftest$ac_exeext conftest.$ac_ext 7613 if test "$am_cv_func_iconv" != yes; then 7614 am_save_LIBS="$LIBS" 7615 LIBS="$LIBS $LIBICONV" 7616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7617/* end confdefs.h. */ 7618#include <stdlib.h> 7619#include <iconv.h> 7620int 7621main () 7622{ 7623iconv_t cd = iconv_open("",""); 7624 iconv(cd,NULL,NULL,NULL,NULL); 7625 iconv_close(cd); 7626 ; 7627 return 0; 7628} 7629_ACEOF 7630if ac_fn_c_try_link "$LINENO"; then : 7631 am_cv_lib_iconv=yes 7632 am_cv_func_iconv=yes 7633fi 7634rm -f core conftest.err conftest.$ac_objext \ 7635 conftest$ac_exeext conftest.$ac_ext 7636 LIBS="$am_save_LIBS" 7637 fi 7638 7639fi 7640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 7641$as_echo "$am_cv_func_iconv" >&6; } 7642 if test "$am_cv_func_iconv" = yes; then 7643 7644$as_echo "#define HAVE_ICONV 1" >>confdefs.h 7645 7646 fi 7647 if test "$am_cv_lib_iconv" = yes; then 7648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 7649$as_echo_n "checking how to link with libiconv... " >&6; } 7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 7651$as_echo "$LIBICONV" >&6; } 7652 else 7653 CPPFLAGS="$am_save_CPPFLAGS" 7654 LIBICONV= 7655 LTLIBICONV= 7656 fi 7657 7658 7659 7660 if test "$am_cv_func_iconv" = yes; then 7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 7662$as_echo_n "checking for iconv declaration... " >&6; } 7663 if ${am_cv_proto_iconv+:} false; then : 7664 $as_echo_n "(cached) " >&6 7665else 7666 7667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7668/* end confdefs.h. */ 7669 7670#include <stdlib.h> 7671#include <iconv.h> 7672extern 7673#ifdef __cplusplus 7674"C" 7675#endif 7676#if defined(__STDC__) || defined(__cplusplus) 7677size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 7678#else 7679size_t iconv(); 7680#endif 7681 7682int 7683main () 7684{ 7685 7686 ; 7687 return 0; 7688} 7689_ACEOF 7690if ac_fn_c_try_compile "$LINENO"; then : 7691 am_cv_proto_iconv_arg1="" 7692else 7693 am_cv_proto_iconv_arg1="const" 7694fi 7695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7696 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" 7697fi 7698 7699 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- 7701 }$am_cv_proto_iconv" >&5 7702$as_echo "${ac_t:- 7703 }$am_cv_proto_iconv" >&6; } 7704 7705cat >>confdefs.h <<_ACEOF 7706#define ICONV_CONST $am_cv_proto_iconv_arg1 7707_ACEOF 7708 7709 fi 7710 7711 7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 7713$as_echo_n "checking for nl_langinfo and CODESET... " >&6; } 7714if ${am_cv_langinfo_codeset+:} false; then : 7715 $as_echo_n "(cached) " >&6 7716else 7717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7718/* end confdefs.h. */ 7719#include <langinfo.h> 7720int 7721main () 7722{ 7723char* cs = nl_langinfo(CODESET); 7724 ; 7725 return 0; 7726} 7727_ACEOF 7728if ac_fn_c_try_link "$LINENO"; then : 7729 am_cv_langinfo_codeset=yes 7730else 7731 am_cv_langinfo_codeset=no 7732fi 7733rm -f core conftest.err conftest.$ac_objext \ 7734 conftest$ac_exeext conftest.$ac_ext 7735 7736fi 7737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 7738$as_echo "$am_cv_langinfo_codeset" >&6; } 7739 if test $am_cv_langinfo_codeset = yes; then 7740 7741$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h 7742 7743 fi 7744 7745 if test $ac_cv_header_locale_h = yes; then 7746 7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 7748$as_echo_n "checking for LC_MESSAGES... " >&6; } 7749if ${am_cv_val_LC_MESSAGES+:} false; then : 7750 $as_echo_n "(cached) " >&6 7751else 7752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7753/* end confdefs.h. */ 7754#include <locale.h> 7755int 7756main () 7757{ 7758return LC_MESSAGES 7759 ; 7760 return 0; 7761} 7762_ACEOF 7763if ac_fn_c_try_link "$LINENO"; then : 7764 am_cv_val_LC_MESSAGES=yes 7765else 7766 am_cv_val_LC_MESSAGES=no 7767fi 7768rm -f core conftest.err conftest.$ac_objext \ 7769 conftest$ac_exeext conftest.$ac_ext 7770fi 7771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 7772$as_echo "$am_cv_val_LC_MESSAGES" >&6; } 7773 if test $am_cv_val_LC_MESSAGES = yes; then 7774 7775$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h 7776 7777 fi 7778 7779 fi 7780 7781 for ac_prog in bison 7782do 7783 # Extract the first word of "$ac_prog", so it can be a program name with args. 7784set dummy $ac_prog; ac_word=$2 7785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7786$as_echo_n "checking for $ac_word... " >&6; } 7787if ${ac_cv_prog_INTLBISON+:} false; then : 7788 $as_echo_n "(cached) " >&6 7789else 7790 if test -n "$INTLBISON"; then 7791 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. 7792else 7793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7794for as_dir in $PATH 7795do 7796 IFS=$as_save_IFS 7797 test -z "$as_dir" && as_dir=. 7798 for ac_exec_ext in '' $ac_executable_extensions; do 7799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7800 ac_cv_prog_INTLBISON="$ac_prog" 7801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7802 break 2 7803 fi 7804done 7805 done 7806IFS=$as_save_IFS 7807 7808fi 7809fi 7810INTLBISON=$ac_cv_prog_INTLBISON 7811if test -n "$INTLBISON"; then 7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5 7813$as_echo "$INTLBISON" >&6; } 7814else 7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7816$as_echo "no" >&6; } 7817fi 7818 7819 7820 test -n "$INTLBISON" && break 7821done 7822 7823 if test -z "$INTLBISON"; then 7824 ac_verc_fail=yes 7825 else 7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5 7827$as_echo_n "checking version of bison... " >&6; } 7828 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` 7829 case $ac_prog_version in 7830 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; 7831 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) 7832 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; 7833 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; 7834 esac 7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 7836$as_echo "$ac_prog_version" >&6; } 7837 fi 7838 if test $ac_verc_fail = yes; then 7839 INTLBISON=: 7840 fi 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 7858$as_echo_n "checking whether NLS is requested... " >&6; } 7859 # Check whether --enable-nls was given. 7860if test "${enable_nls+set}" = set; then : 7861 enableval=$enable_nls; USE_NLS=$enableval 7862else 7863 USE_NLS=yes 7864fi 7865 7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 7867$as_echo "$USE_NLS" >&6; } 7868 7869 7870 7871 7872 BUILD_INCLUDED_LIBINTL=no 7873 USE_INCLUDED_LIBINTL=no 7874 7875 LIBINTL= 7876 LTLIBINTL= 7877 POSUB= 7878 7879 if test "$USE_NLS" = "yes"; then 7880 gt_use_preinstalled_gnugettext=no 7881 7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5 7883$as_echo_n "checking whether included gettext is requested... " >&6; } 7884 7885# Check whether --with-included-gettext was given. 7886if test "${with_included_gettext+set}" = set; then : 7887 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval 7888else 7889 nls_cv_force_use_gnu_gettext=no 7890fi 7891 7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5 7893$as_echo "$nls_cv_force_use_gnu_gettext" >&6; } 7894 7895 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 7896 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 7897 7898 7899 7900 7901 7902 7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 7904$as_echo_n "checking for GNU gettext in libc... " >&6; } 7905if ${gt_cv_func_gnugettext1_libc+:} false; then : 7906 $as_echo_n "(cached) " >&6 7907else 7908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7909/* end confdefs.h. */ 7910#include <libintl.h> 7911extern int _nl_msg_cat_cntr; 7912extern int *_nl_domain_bindings; 7913int 7914main () 7915{ 7916bindtextdomain ("", ""); 7917return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings 7918 ; 7919 return 0; 7920} 7921_ACEOF 7922if ac_fn_c_try_link "$LINENO"; then : 7923 gt_cv_func_gnugettext1_libc=yes 7924else 7925 gt_cv_func_gnugettext1_libc=no 7926fi 7927rm -f core conftest.err conftest.$ac_objext \ 7928 conftest$ac_exeext conftest.$ac_ext 7929fi 7930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5 7931$as_echo "$gt_cv_func_gnugettext1_libc" >&6; } 7932 7933 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then 7934 7935 7936 7937 use_additional=yes 7938 7939 acl_save_prefix="$prefix" 7940 prefix="$acl_final_prefix" 7941 acl_save_exec_prefix="$exec_prefix" 7942 exec_prefix="$acl_final_exec_prefix" 7943 7944 eval additional_includedir=\"$includedir\" 7945 eval additional_libdir=\"$libdir\" 7946 7947 exec_prefix="$acl_save_exec_prefix" 7948 prefix="$acl_save_prefix" 7949 7950 7951# Check whether --with-libintl-prefix was given. 7952if test "${with_libintl_prefix+set}" = set; then : 7953 withval=$with_libintl_prefix; 7954 if test "X$withval" = "Xno"; then 7955 use_additional=no 7956 else 7957 if test "X$withval" = "X"; then 7958 7959 acl_save_prefix="$prefix" 7960 prefix="$acl_final_prefix" 7961 acl_save_exec_prefix="$exec_prefix" 7962 exec_prefix="$acl_final_exec_prefix" 7963 7964 eval additional_includedir=\"$includedir\" 7965 eval additional_libdir=\"$libdir\" 7966 7967 exec_prefix="$acl_save_exec_prefix" 7968 prefix="$acl_save_prefix" 7969 7970 else 7971 additional_includedir="$withval/include" 7972 additional_libdir="$withval/lib" 7973 fi 7974 fi 7975 7976fi 7977 7978 LIBINTL= 7979 LTLIBINTL= 7980 INCINTL= 7981 rpathdirs= 7982 ltrpathdirs= 7983 names_already_handled= 7984 names_next_round='intl ' 7985 while test -n "$names_next_round"; do 7986 names_this_round="$names_next_round" 7987 names_next_round= 7988 for name in $names_this_round; do 7989 already_handled= 7990 for n in $names_already_handled; do 7991 if test "$n" = "$name"; then 7992 already_handled=yes 7993 break 7994 fi 7995 done 7996 if test -z "$already_handled"; then 7997 names_already_handled="$names_already_handled $name" 7998 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 7999 eval value=\"\$HAVE_LIB$uppername\" 8000 if test -n "$value"; then 8001 if test "$value" = yes; then 8002 eval value=\"\$LIB$uppername\" 8003 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 8004 eval value=\"\$LTLIB$uppername\" 8005 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 8006 else 8007 : 8008 fi 8009 else 8010 found_dir= 8011 found_la= 8012 found_so= 8013 found_a= 8014 if test $use_additional = yes; then 8015 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 8016 found_dir="$additional_libdir" 8017 found_so="$additional_libdir/lib$name.$shlibext" 8018 if test -f "$additional_libdir/lib$name.la"; then 8019 found_la="$additional_libdir/lib$name.la" 8020 fi 8021 else 8022 if test -f "$additional_libdir/lib$name.$libext"; then 8023 found_dir="$additional_libdir" 8024 found_a="$additional_libdir/lib$name.$libext" 8025 if test -f "$additional_libdir/lib$name.la"; then 8026 found_la="$additional_libdir/lib$name.la" 8027 fi 8028 fi 8029 fi 8030 fi 8031 if test "X$found_dir" = "X"; then 8032 for x in $LDFLAGS $LTLIBINTL; do 8033 8034 acl_save_prefix="$prefix" 8035 prefix="$acl_final_prefix" 8036 acl_save_exec_prefix="$exec_prefix" 8037 exec_prefix="$acl_final_exec_prefix" 8038 eval x=\"$x\" 8039 exec_prefix="$acl_save_exec_prefix" 8040 prefix="$acl_save_prefix" 8041 8042 case "$x" in 8043 -L*) 8044 dir=`echo "X$x" | sed -e 's/^X-L//'` 8045 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 8046 found_dir="$dir" 8047 found_so="$dir/lib$name.$shlibext" 8048 if test -f "$dir/lib$name.la"; then 8049 found_la="$dir/lib$name.la" 8050 fi 8051 else 8052 if test -f "$dir/lib$name.$libext"; then 8053 found_dir="$dir" 8054 found_a="$dir/lib$name.$libext" 8055 if test -f "$dir/lib$name.la"; then 8056 found_la="$dir/lib$name.la" 8057 fi 8058 fi 8059 fi 8060 ;; 8061 esac 8062 if test "X$found_dir" != "X"; then 8063 break 8064 fi 8065 done 8066 fi 8067 if test "X$found_dir" != "X"; then 8068 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 8069 if test "X$found_so" != "X"; then 8070 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 8071 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 8072 else 8073 haveit= 8074 for x in $ltrpathdirs; do 8075 if test "X$x" = "X$found_dir"; then 8076 haveit=yes 8077 break 8078 fi 8079 done 8080 if test -z "$haveit"; then 8081 ltrpathdirs="$ltrpathdirs $found_dir" 8082 fi 8083 if test "$hardcode_direct" = yes; then 8084 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 8085 else 8086 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 8087 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 8088 haveit= 8089 for x in $rpathdirs; do 8090 if test "X$x" = "X$found_dir"; then 8091 haveit=yes 8092 break 8093 fi 8094 done 8095 if test -z "$haveit"; then 8096 rpathdirs="$rpathdirs $found_dir" 8097 fi 8098 else 8099 haveit= 8100 for x in $LDFLAGS $LIBINTL; do 8101 8102 acl_save_prefix="$prefix" 8103 prefix="$acl_final_prefix" 8104 acl_save_exec_prefix="$exec_prefix" 8105 exec_prefix="$acl_final_exec_prefix" 8106 eval x=\"$x\" 8107 exec_prefix="$acl_save_exec_prefix" 8108 prefix="$acl_save_prefix" 8109 8110 if test "X$x" = "X-L$found_dir"; then 8111 haveit=yes 8112 break 8113 fi 8114 done 8115 if test -z "$haveit"; then 8116 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 8117 fi 8118 if test "$hardcode_minus_L" != no; then 8119 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 8120 else 8121 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 8122 fi 8123 fi 8124 fi 8125 fi 8126 else 8127 if test "X$found_a" != "X"; then 8128 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 8129 else 8130 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 8131 fi 8132 fi 8133 additional_includedir= 8134 case "$found_dir" in 8135 */lib | */lib/) 8136 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 8137 additional_includedir="$basedir/include" 8138 ;; 8139 esac 8140 if test "X$additional_includedir" != "X"; then 8141 if test "X$additional_includedir" != "X/usr/include"; then 8142 haveit= 8143 if test "X$additional_includedir" = "X/usr/local/include"; then 8144 if test -n "$GCC"; then 8145 case $host_os in 8146 linux*) haveit=yes;; 8147 esac 8148 fi 8149 fi 8150 if test -z "$haveit"; then 8151 for x in $CPPFLAGS $INCINTL; do 8152 8153 acl_save_prefix="$prefix" 8154 prefix="$acl_final_prefix" 8155 acl_save_exec_prefix="$exec_prefix" 8156 exec_prefix="$acl_final_exec_prefix" 8157 eval x=\"$x\" 8158 exec_prefix="$acl_save_exec_prefix" 8159 prefix="$acl_save_prefix" 8160 8161 if test "X$x" = "X-I$additional_includedir"; then 8162 haveit=yes 8163 break 8164 fi 8165 done 8166 if test -z "$haveit"; then 8167 if test -d "$additional_includedir"; then 8168 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 8169 fi 8170 fi 8171 fi 8172 fi 8173 fi 8174 if test -n "$found_la"; then 8175 save_libdir="$libdir" 8176 case "$found_la" in 8177 */* | *\\*) . "$found_la" ;; 8178 *) . "./$found_la" ;; 8179 esac 8180 libdir="$save_libdir" 8181 for dep in $dependency_libs; do 8182 case "$dep" in 8183 -L*) 8184 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 8185 if test "X$additional_libdir" != "X/usr/lib"; then 8186 haveit= 8187 if test "X$additional_libdir" = "X/usr/local/lib"; then 8188 if test -n "$GCC"; then 8189 case $host_os in 8190 linux*) haveit=yes;; 8191 esac 8192 fi 8193 fi 8194 if test -z "$haveit"; then 8195 haveit= 8196 for x in $LDFLAGS $LIBINTL; do 8197 8198 acl_save_prefix="$prefix" 8199 prefix="$acl_final_prefix" 8200 acl_save_exec_prefix="$exec_prefix" 8201 exec_prefix="$acl_final_exec_prefix" 8202 eval x=\"$x\" 8203 exec_prefix="$acl_save_exec_prefix" 8204 prefix="$acl_save_prefix" 8205 8206 if test "X$x" = "X-L$additional_libdir"; then 8207 haveit=yes 8208 break 8209 fi 8210 done 8211 if test -z "$haveit"; then 8212 if test -d "$additional_libdir"; then 8213 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 8214 fi 8215 fi 8216 haveit= 8217 for x in $LDFLAGS $LTLIBINTL; do 8218 8219 acl_save_prefix="$prefix" 8220 prefix="$acl_final_prefix" 8221 acl_save_exec_prefix="$exec_prefix" 8222 exec_prefix="$acl_final_exec_prefix" 8223 eval x=\"$x\" 8224 exec_prefix="$acl_save_exec_prefix" 8225 prefix="$acl_save_prefix" 8226 8227 if test "X$x" = "X-L$additional_libdir"; then 8228 haveit=yes 8229 break 8230 fi 8231 done 8232 if test -z "$haveit"; then 8233 if test -d "$additional_libdir"; then 8234 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 8235 fi 8236 fi 8237 fi 8238 fi 8239 ;; 8240 -R*) 8241 dir=`echo "X$dep" | sed -e 's/^X-R//'` 8242 if test "$enable_rpath" != no; then 8243 haveit= 8244 for x in $rpathdirs; do 8245 if test "X$x" = "X$dir"; then 8246 haveit=yes 8247 break 8248 fi 8249 done 8250 if test -z "$haveit"; then 8251 rpathdirs="$rpathdirs $dir" 8252 fi 8253 haveit= 8254 for x in $ltrpathdirs; do 8255 if test "X$x" = "X$dir"; then 8256 haveit=yes 8257 break 8258 fi 8259 done 8260 if test -z "$haveit"; then 8261 ltrpathdirs="$ltrpathdirs $dir" 8262 fi 8263 fi 8264 ;; 8265 -l*) 8266 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 8267 ;; 8268 *.la) 8269 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 8270 ;; 8271 *) 8272 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 8273 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 8274 ;; 8275 esac 8276 done 8277 fi 8278 else 8279 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 8280 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 8281 fi 8282 fi 8283 fi 8284 done 8285 done 8286 if test "X$rpathdirs" != "X"; then 8287 if test -n "$hardcode_libdir_separator"; then 8288 alldirs= 8289 for found_dir in $rpathdirs; do 8290 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 8291 done 8292 acl_save_libdir="$libdir" 8293 libdir="$alldirs" 8294 eval flag=\"$hardcode_libdir_flag_spec\" 8295 libdir="$acl_save_libdir" 8296 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 8297 else 8298 for found_dir in $rpathdirs; do 8299 acl_save_libdir="$libdir" 8300 libdir="$found_dir" 8301 eval flag=\"$hardcode_libdir_flag_spec\" 8302 libdir="$acl_save_libdir" 8303 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 8304 done 8305 fi 8306 fi 8307 if test "X$ltrpathdirs" != "X"; then 8308 for found_dir in $ltrpathdirs; do 8309 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 8310 done 8311 fi 8312 8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 8314$as_echo_n "checking for GNU gettext in libintl... " >&6; } 8315if ${gt_cv_func_gnugettext1_libintl+:} false; then : 8316 $as_echo_n "(cached) " >&6 8317else 8318 gt_save_CPPFLAGS="$CPPFLAGS" 8319 CPPFLAGS="$CPPFLAGS $INCINTL" 8320 gt_save_LIBS="$LIBS" 8321 LIBS="$LIBS $LIBINTL" 8322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8323/* end confdefs.h. */ 8324#include <libintl.h> 8325extern int _nl_msg_cat_cntr; 8326extern 8327#ifdef __cplusplus 8328"C" 8329#endif 8330const char *_nl_expand_alias (); 8331int 8332main () 8333{ 8334bindtextdomain ("", ""); 8335return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) 8336 ; 8337 return 0; 8338} 8339_ACEOF 8340if ac_fn_c_try_link "$LINENO"; then : 8341 gt_cv_func_gnugettext1_libintl=yes 8342else 8343 gt_cv_func_gnugettext1_libintl=no 8344fi 8345rm -f core conftest.err conftest.$ac_objext \ 8346 conftest$ac_exeext conftest.$ac_ext 8347 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then 8348 LIBS="$LIBS $LIBICONV" 8349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8350/* end confdefs.h. */ 8351#include <libintl.h> 8352extern int _nl_msg_cat_cntr; 8353extern 8354#ifdef __cplusplus 8355"C" 8356#endif 8357const char *_nl_expand_alias (); 8358int 8359main () 8360{ 8361bindtextdomain ("", ""); 8362return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) 8363 ; 8364 return 0; 8365} 8366_ACEOF 8367if ac_fn_c_try_link "$LINENO"; then : 8368 LIBINTL="$LIBINTL $LIBICONV" 8369 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 8370 gt_cv_func_gnugettext1_libintl=yes 8371 8372fi 8373rm -f core conftest.err conftest.$ac_objext \ 8374 conftest$ac_exeext conftest.$ac_ext 8375 fi 8376 CPPFLAGS="$gt_save_CPPFLAGS" 8377 LIBS="$gt_save_LIBS" 8378fi 8379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5 8380$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; } 8381 fi 8382 8383 if test "$gt_cv_func_gnugettext1_libc" = "yes" \ 8384 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ 8385 && test "$PACKAGE" != gettext-runtime \ 8386 && test "$PACKAGE" != gettext-tools; }; then 8387 gt_use_preinstalled_gnugettext=yes 8388 else 8389 LIBINTL= 8390 LTLIBINTL= 8391 INCINTL= 8392 fi 8393 8394 8395 if test "$gt_use_preinstalled_gnugettext" != "yes"; then 8396 nls_cv_use_gnu_gettext=yes 8397 fi 8398 fi 8399 8400 if test "$nls_cv_use_gnu_gettext" = "yes"; then 8401 BUILD_INCLUDED_LIBINTL=yes 8402 USE_INCLUDED_LIBINTL=yes 8403 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" 8404 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" 8405 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` 8406 fi 8407 8408 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 8409 || test "$nls_cv_use_gnu_gettext" = "yes"; then 8410 CATOBJEXT=.gmo 8411 fi 8412 8413 8414 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 8415 || test "$nls_cv_use_gnu_gettext" = "yes"; then 8416 8417$as_echo "#define ENABLE_NLS 1" >>confdefs.h 8418 8419 else 8420 USE_NLS=no 8421 fi 8422 fi 8423 8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 8425$as_echo_n "checking whether to use NLS... " >&6; } 8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 8427$as_echo "$USE_NLS" >&6; } 8428 if test "$USE_NLS" = "yes"; then 8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 8430$as_echo_n "checking where the gettext function comes from... " >&6; } 8431 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 8432 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 8433 gt_source="external libintl" 8434 else 8435 gt_source="libc" 8436 fi 8437 else 8438 gt_source="included intl directory" 8439 fi 8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 8441$as_echo "$gt_source" >&6; } 8442 fi 8443 8444 if test "$USE_NLS" = "yes"; then 8445 8446 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 8447 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 8449$as_echo_n "checking how to link with libintl... " >&6; } 8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 8451$as_echo "$LIBINTL" >&6; } 8452 8453 for element in $INCINTL; do 8454 haveit= 8455 for x in $CPPFLAGS; do 8456 8457 acl_save_prefix="$prefix" 8458 prefix="$acl_final_prefix" 8459 acl_save_exec_prefix="$exec_prefix" 8460 exec_prefix="$acl_final_exec_prefix" 8461 eval x=\"$x\" 8462 exec_prefix="$acl_save_exec_prefix" 8463 prefix="$acl_save_prefix" 8464 8465 if test "X$x" = "X$element"; then 8466 haveit=yes 8467 break 8468 fi 8469 done 8470 if test -z "$haveit"; then 8471 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 8472 fi 8473 done 8474 8475 fi 8476 8477 8478$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 8479 8480 8481$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h 8482 8483 fi 8484 8485 POSUB=po 8486 fi 8487 8488 8489 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then 8490 BUILD_INCLUDED_LIBINTL=yes 8491 fi 8492 8493 8494 8495 8496 8497 nls_cv_header_intl= 8498 nls_cv_header_libgt= 8499 8500 DATADIRNAME=share 8501 8502 8503 INSTOBJEXT=.mo 8504 8505 8506 GENCAT=gencat 8507 8508 8509 if test "$USE_INCLUDED_LIBINTL" = yes; then 8510 INTLOBJS="\$(GETTOBJS)" 8511 fi 8512 8513 8514 INTL_LIBTOOL_SUFFIX_PREFIX= 8515 8516 8517 8518 INTLLIBS="$LIBINTL" 8519 8520 8521 8522 8523 8524 8525 8526# Check intltool 8527 8528 8529if test -n "0.33"; then 8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.33" >&5 8531$as_echo_n "checking for intltool >= 0.33... " >&6; } 8532 8533 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.33 | awk -F. '{ printf "%d", $1 * 100 + $2; }'` 8534 INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { printf $2; }' < ${ac_aux_dir}/intltool-update.in` 8535 8536 INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($2, VERSION, "."); printf "%d\n", VERSION[1] * 100 + VERSION[2];}' < ${ac_aux_dir}/intltool-update.in` 8537 8538 8539 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT"; then 8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5 8541$as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; } 8542 else 8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool 0.33 or later." >&5 8544$as_echo "$INTLTOOL_APPLIED_VERSION found. Your intltool is too old. You need intltool 0.33 or later." >&6; } 8545 exit 1 8546 fi 8547fi 8548 8549 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 8550INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 8551 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 8552 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 8553 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@' 8554 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 8555 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 8556 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 8557INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 8558 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 8559 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 8560 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@' 8561 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 8562 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 8563 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 8564 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 8565 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@' 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585# Use the tools built into the package, not the ones that are installed. 8586 8587INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract' 8588INTLTOOL_MERGE='$(top_builddir)/intltool-merge' 8589INTLTOOL_UPDATE='$(top_builddir)/intltool-update' 8590 8591 8592 8593 8594 8595# Extract the first word of "perl", so it can be a program name with args. 8596set dummy perl; ac_word=$2 8597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8598$as_echo_n "checking for $ac_word... " >&6; } 8599if ${ac_cv_path_INTLTOOL_PERL+:} false; then : 8600 $as_echo_n "(cached) " >&6 8601else 8602 case $INTLTOOL_PERL in 8603 [\\/]* | ?:[\\/]*) 8604 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path. 8605 ;; 8606 *) 8607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8608for as_dir in $PATH 8609do 8610 IFS=$as_save_IFS 8611 test -z "$as_dir" && as_dir=. 8612 for ac_exec_ext in '' $ac_executable_extensions; do 8613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8614 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext" 8615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8616 break 2 8617 fi 8618done 8619 done 8620IFS=$as_save_IFS 8621 8622 ;; 8623esac 8624fi 8625INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL 8626if test -n "$INTLTOOL_PERL"; then 8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5 8628$as_echo "$INTLTOOL_PERL" >&6; } 8629else 8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8631$as_echo "no" >&6; } 8632fi 8633 8634 8635if test -z "$INTLTOOL_PERL"; then 8636 as_fn_error $? "perl not found; required for intltool" "$LINENO" 5 8637fi 8638if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then 8639 as_fn_error $? "perl 5.x required for intltool" "$LINENO" 5 8640fi 8641if test "xno-xml" != "xno-xml"; then 8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5 8643$as_echo_n "checking for XML::Parser... " >&6; } 8644 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then 8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 8646$as_echo "ok" >&6; } 8647 else 8648 as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5 8649 fi 8650fi 8651 8652# Extract the first word of "iconv", so it can be a program name with args. 8653set dummy iconv; ac_word=$2 8654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8655$as_echo_n "checking for $ac_word... " >&6; } 8656if ${ac_cv_path_INTLTOOL_ICONV+:} false; then : 8657 $as_echo_n "(cached) " >&6 8658else 8659 case $INTLTOOL_ICONV in 8660 [\\/]* | ?:[\\/]*) 8661 ac_cv_path_INTLTOOL_ICONV="$INTLTOOL_ICONV" # Let the user override the test with a path. 8662 ;; 8663 *) 8664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8665for as_dir in $PATH 8666do 8667 IFS=$as_save_IFS 8668 test -z "$as_dir" && as_dir=. 8669 for ac_exec_ext in '' $ac_executable_extensions; do 8670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8671 ac_cv_path_INTLTOOL_ICONV="$as_dir/$ac_word$ac_exec_ext" 8672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8673 break 2 8674 fi 8675done 8676 done 8677IFS=$as_save_IFS 8678 8679 test -z "$ac_cv_path_INTLTOOL_ICONV" && ac_cv_path_INTLTOOL_ICONV="iconv" 8680 ;; 8681esac 8682fi 8683INTLTOOL_ICONV=$ac_cv_path_INTLTOOL_ICONV 8684if test -n "$INTLTOOL_ICONV"; then 8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_ICONV" >&5 8686$as_echo "$INTLTOOL_ICONV" >&6; } 8687else 8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8689$as_echo "no" >&6; } 8690fi 8691 8692 8693# Extract the first word of "msgfmt", so it can be a program name with args. 8694set dummy msgfmt; ac_word=$2 8695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8696$as_echo_n "checking for $ac_word... " >&6; } 8697if ${ac_cv_path_INTLTOOL_MSGFMT+:} false; then : 8698 $as_echo_n "(cached) " >&6 8699else 8700 case $INTLTOOL_MSGFMT in 8701 [\\/]* | ?:[\\/]*) 8702 ac_cv_path_INTLTOOL_MSGFMT="$INTLTOOL_MSGFMT" # Let the user override the test with a path. 8703 ;; 8704 *) 8705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8706for as_dir in $PATH 8707do 8708 IFS=$as_save_IFS 8709 test -z "$as_dir" && as_dir=. 8710 for ac_exec_ext in '' $ac_executable_extensions; do 8711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8712 ac_cv_path_INTLTOOL_MSGFMT="$as_dir/$ac_word$ac_exec_ext" 8713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8714 break 2 8715 fi 8716done 8717 done 8718IFS=$as_save_IFS 8719 8720 test -z "$ac_cv_path_INTLTOOL_MSGFMT" && ac_cv_path_INTLTOOL_MSGFMT="msgfmt" 8721 ;; 8722esac 8723fi 8724INTLTOOL_MSGFMT=$ac_cv_path_INTLTOOL_MSGFMT 8725if test -n "$INTLTOOL_MSGFMT"; then 8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MSGFMT" >&5 8727$as_echo "$INTLTOOL_MSGFMT" >&6; } 8728else 8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8730$as_echo "no" >&6; } 8731fi 8732 8733 8734# Extract the first word of "msgmerge", so it can be a program name with args. 8735set dummy msgmerge; ac_word=$2 8736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8737$as_echo_n "checking for $ac_word... " >&6; } 8738if ${ac_cv_path_INTLTOOL_MSGMERGE+:} false; then : 8739 $as_echo_n "(cached) " >&6 8740else 8741 case $INTLTOOL_MSGMERGE in 8742 [\\/]* | ?:[\\/]*) 8743 ac_cv_path_INTLTOOL_MSGMERGE="$INTLTOOL_MSGMERGE" # Let the user override the test with a path. 8744 ;; 8745 *) 8746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8747for as_dir in $PATH 8748do 8749 IFS=$as_save_IFS 8750 test -z "$as_dir" && as_dir=. 8751 for ac_exec_ext in '' $ac_executable_extensions; do 8752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8753 ac_cv_path_INTLTOOL_MSGMERGE="$as_dir/$ac_word$ac_exec_ext" 8754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8755 break 2 8756 fi 8757done 8758 done 8759IFS=$as_save_IFS 8760 8761 test -z "$ac_cv_path_INTLTOOL_MSGMERGE" && ac_cv_path_INTLTOOL_MSGMERGE="msgmerge" 8762 ;; 8763esac 8764fi 8765INTLTOOL_MSGMERGE=$ac_cv_path_INTLTOOL_MSGMERGE 8766if test -n "$INTLTOOL_MSGMERGE"; then 8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MSGMERGE" >&5 8768$as_echo "$INTLTOOL_MSGMERGE" >&6; } 8769else 8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8771$as_echo "no" >&6; } 8772fi 8773 8774 8775# Extract the first word of "xgettext", so it can be a program name with args. 8776set dummy xgettext; ac_word=$2 8777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8778$as_echo_n "checking for $ac_word... " >&6; } 8779if ${ac_cv_path_INTLTOOL_XGETTEXT+:} false; then : 8780 $as_echo_n "(cached) " >&6 8781else 8782 case $INTLTOOL_XGETTEXT in 8783 [\\/]* | ?:[\\/]*) 8784 ac_cv_path_INTLTOOL_XGETTEXT="$INTLTOOL_XGETTEXT" # Let the user override the test with a path. 8785 ;; 8786 *) 8787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8788for as_dir in $PATH 8789do 8790 IFS=$as_save_IFS 8791 test -z "$as_dir" && as_dir=. 8792 for ac_exec_ext in '' $ac_executable_extensions; do 8793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8794 ac_cv_path_INTLTOOL_XGETTEXT="$as_dir/$ac_word$ac_exec_ext" 8795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8796 break 2 8797 fi 8798done 8799 done 8800IFS=$as_save_IFS 8801 8802 test -z "$ac_cv_path_INTLTOOL_XGETTEXT" && ac_cv_path_INTLTOOL_XGETTEXT="xgettext" 8803 ;; 8804esac 8805fi 8806INTLTOOL_XGETTEXT=$ac_cv_path_INTLTOOL_XGETTEXT 8807if test -n "$INTLTOOL_XGETTEXT"; then 8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_XGETTEXT" >&5 8809$as_echo "$INTLTOOL_XGETTEXT" >&6; } 8810else 8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8812$as_echo "no" >&6; } 8813fi 8814 8815 8816 8817# Remove file type tags (using []) from po/POTFILES. 8818 8819 8820 8821 8822 8823 8824############################################################################ 8825## Take this bit from AM_PROG_MKDIR_P to set mkdir_p for automake 1.4 users 8826############################################################################ 8827if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 8828 # Keeping the `.' argument allows $(mkdir_p) to be used without 8829 # argument. Indeed, we sometimes output rules like 8830 # $(mkdir_p) $(somedir) 8831 # where $(somedir) is conditionally defined. 8832 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more 8833 # expensive solution, as it forces Make to start a sub-shell.) 8834 mkdir_p='mkdir -p -- .' 8835else 8836 # On NextStep and OpenStep, the `mkdir' command does not 8837 # recognize any option. It will interpret all options as 8838 # directories to create, and then abort because `.' already 8839 # exists. 8840 for d in ./-p ./--version; 8841 do 8842 test -d $d && rmdir $d 8843 done 8844 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 8845 if test -f "$ac_aux_dir/mkinstalldirs"; then 8846 mkdir_p='$(mkinstalldirs)' 8847 else 8848 mkdir_p='$(install_sh) -d' 8849 fi 8850fi 8851 8852 8853 8854# Manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT. 8855 8856ac_config_commands="$ac_config_commands intltool" 8857 8858 8859 8860 8861enable_win32_dll=yes 8862 8863case $host in 8864*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) 8865 if test -n "$ac_tool_prefix"; then 8866 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 8867set dummy ${ac_tool_prefix}as; ac_word=$2 8868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8869$as_echo_n "checking for $ac_word... " >&6; } 8870if ${ac_cv_prog_AS+:} false; then : 8871 $as_echo_n "(cached) " >&6 8872else 8873 if test -n "$AS"; then 8874 ac_cv_prog_AS="$AS" # Let the user override the test. 8875else 8876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8877for as_dir in $PATH 8878do 8879 IFS=$as_save_IFS 8880 test -z "$as_dir" && as_dir=. 8881 for ac_exec_ext in '' $ac_executable_extensions; do 8882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8883 ac_cv_prog_AS="${ac_tool_prefix}as" 8884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8885 break 2 8886 fi 8887done 8888 done 8889IFS=$as_save_IFS 8890 8891fi 8892fi 8893AS=$ac_cv_prog_AS 8894if test -n "$AS"; then 8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 8896$as_echo "$AS" >&6; } 8897else 8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8899$as_echo "no" >&6; } 8900fi 8901 8902 8903fi 8904if test -z "$ac_cv_prog_AS"; then 8905 ac_ct_AS=$AS 8906 # Extract the first word of "as", so it can be a program name with args. 8907set dummy as; ac_word=$2 8908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8909$as_echo_n "checking for $ac_word... " >&6; } 8910if ${ac_cv_prog_ac_ct_AS+:} false; then : 8911 $as_echo_n "(cached) " >&6 8912else 8913 if test -n "$ac_ct_AS"; then 8914 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 8915else 8916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8917for as_dir in $PATH 8918do 8919 IFS=$as_save_IFS 8920 test -z "$as_dir" && as_dir=. 8921 for ac_exec_ext in '' $ac_executable_extensions; do 8922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8923 ac_cv_prog_ac_ct_AS="as" 8924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8925 break 2 8926 fi 8927done 8928 done 8929IFS=$as_save_IFS 8930 8931fi 8932fi 8933ac_ct_AS=$ac_cv_prog_ac_ct_AS 8934if test -n "$ac_ct_AS"; then 8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 8936$as_echo "$ac_ct_AS" >&6; } 8937else 8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8939$as_echo "no" >&6; } 8940fi 8941 8942 if test "x$ac_ct_AS" = x; then 8943 AS="false" 8944 else 8945 case $cross_compiling:$ac_tool_warned in 8946yes:) 8947{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8948$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8949ac_tool_warned=yes ;; 8950esac 8951 AS=$ac_ct_AS 8952 fi 8953else 8954 AS="$ac_cv_prog_AS" 8955fi 8956 8957 if test -n "$ac_tool_prefix"; then 8958 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8959set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8961$as_echo_n "checking for $ac_word... " >&6; } 8962if ${ac_cv_prog_DLLTOOL+:} false; then : 8963 $as_echo_n "(cached) " >&6 8964else 8965 if test -n "$DLLTOOL"; then 8966 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8967else 8968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8969for as_dir in $PATH 8970do 8971 IFS=$as_save_IFS 8972 test -z "$as_dir" && as_dir=. 8973 for ac_exec_ext in '' $ac_executable_extensions; do 8974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8975 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8977 break 2 8978 fi 8979done 8980 done 8981IFS=$as_save_IFS 8982 8983fi 8984fi 8985DLLTOOL=$ac_cv_prog_DLLTOOL 8986if test -n "$DLLTOOL"; then 8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8988$as_echo "$DLLTOOL" >&6; } 8989else 8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8991$as_echo "no" >&6; } 8992fi 8993 8994 8995fi 8996if test -z "$ac_cv_prog_DLLTOOL"; then 8997 ac_ct_DLLTOOL=$DLLTOOL 8998 # Extract the first word of "dlltool", so it can be a program name with args. 8999set dummy dlltool; ac_word=$2 9000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9001$as_echo_n "checking for $ac_word... " >&6; } 9002if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 9003 $as_echo_n "(cached) " >&6 9004else 9005 if test -n "$ac_ct_DLLTOOL"; then 9006 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 9007else 9008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9009for as_dir in $PATH 9010do 9011 IFS=$as_save_IFS 9012 test -z "$as_dir" && as_dir=. 9013 for ac_exec_ext in '' $ac_executable_extensions; do 9014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9015 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 9016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9017 break 2 9018 fi 9019done 9020 done 9021IFS=$as_save_IFS 9022 9023fi 9024fi 9025ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 9026if test -n "$ac_ct_DLLTOOL"; then 9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 9028$as_echo "$ac_ct_DLLTOOL" >&6; } 9029else 9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9031$as_echo "no" >&6; } 9032fi 9033 9034 if test "x$ac_ct_DLLTOOL" = x; then 9035 DLLTOOL="false" 9036 else 9037 case $cross_compiling:$ac_tool_warned in 9038yes:) 9039{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9040$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9041ac_tool_warned=yes ;; 9042esac 9043 DLLTOOL=$ac_ct_DLLTOOL 9044 fi 9045else 9046 DLLTOOL="$ac_cv_prog_DLLTOOL" 9047fi 9048 9049 if test -n "$ac_tool_prefix"; then 9050 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 9051set dummy ${ac_tool_prefix}objdump; ac_word=$2 9052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9053$as_echo_n "checking for $ac_word... " >&6; } 9054if ${ac_cv_prog_OBJDUMP+:} false; then : 9055 $as_echo_n "(cached) " >&6 9056else 9057 if test -n "$OBJDUMP"; then 9058 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 9059else 9060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9061for as_dir in $PATH 9062do 9063 IFS=$as_save_IFS 9064 test -z "$as_dir" && as_dir=. 9065 for ac_exec_ext in '' $ac_executable_extensions; do 9066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9067 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 9068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9069 break 2 9070 fi 9071done 9072 done 9073IFS=$as_save_IFS 9074 9075fi 9076fi 9077OBJDUMP=$ac_cv_prog_OBJDUMP 9078if test -n "$OBJDUMP"; then 9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 9080$as_echo "$OBJDUMP" >&6; } 9081else 9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9083$as_echo "no" >&6; } 9084fi 9085 9086 9087fi 9088if test -z "$ac_cv_prog_OBJDUMP"; then 9089 ac_ct_OBJDUMP=$OBJDUMP 9090 # Extract the first word of "objdump", so it can be a program name with args. 9091set dummy objdump; ac_word=$2 9092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9093$as_echo_n "checking for $ac_word... " >&6; } 9094if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 9095 $as_echo_n "(cached) " >&6 9096else 9097 if test -n "$ac_ct_OBJDUMP"; then 9098 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 9099else 9100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9101for as_dir in $PATH 9102do 9103 IFS=$as_save_IFS 9104 test -z "$as_dir" && as_dir=. 9105 for ac_exec_ext in '' $ac_executable_extensions; do 9106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9107 ac_cv_prog_ac_ct_OBJDUMP="objdump" 9108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9109 break 2 9110 fi 9111done 9112 done 9113IFS=$as_save_IFS 9114 9115fi 9116fi 9117ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 9118if test -n "$ac_ct_OBJDUMP"; then 9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 9120$as_echo "$ac_ct_OBJDUMP" >&6; } 9121else 9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9123$as_echo "no" >&6; } 9124fi 9125 9126 if test "x$ac_ct_OBJDUMP" = x; then 9127 OBJDUMP="false" 9128 else 9129 case $cross_compiling:$ac_tool_warned in 9130yes:) 9131{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9132$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9133ac_tool_warned=yes ;; 9134esac 9135 OBJDUMP=$ac_ct_OBJDUMP 9136 fi 9137else 9138 OBJDUMP="$ac_cv_prog_OBJDUMP" 9139fi 9140 9141 ;; 9142esac 9143 9144test -z "$AS" && AS=as 9145 9146 9147 9148 9149 9150test -z "$DLLTOOL" && DLLTOOL=dlltool 9151 9152 9153 9154 9155 9156test -z "$OBJDUMP" && OBJDUMP=objdump 9157 9158 9159 9160 9161 9162 9163 9164enable_dlopen=yes 9165 9166 9167 9168case `pwd` in 9169 *\ * | *\ *) 9170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 9171$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 9172esac 9173 9174 9175 9176macro_version='2.2.6b' 9177macro_revision='1.3018' 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191ltmain="$ac_aux_dir/ltmain.sh" 9192 9193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 9194$as_echo_n "checking for a sed that does not truncate output... " >&6; } 9195if ${ac_cv_path_SED+:} false; then : 9196 $as_echo_n "(cached) " >&6 9197else 9198 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 9199 for ac_i in 1 2 3 4 5 6 7; do 9200 ac_script="$ac_script$as_nl$ac_script" 9201 done 9202 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 9203 { ac_script=; unset ac_script;} 9204 if test -z "$SED"; then 9205 ac_path_SED_found=false 9206 # Loop through the user's path and test for each of PROGNAME-LIST 9207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9208for as_dir in $PATH 9209do 9210 IFS=$as_save_IFS 9211 test -z "$as_dir" && as_dir=. 9212 for ac_prog in sed gsed; do 9213 for ac_exec_ext in '' $ac_executable_extensions; do 9214 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 9215 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 9216# Check for GNU ac_path_SED and select it if it is found. 9217 # Check for GNU $ac_path_SED 9218case `"$ac_path_SED" --version 2>&1` in 9219*GNU*) 9220 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 9221*) 9222 ac_count=0 9223 $as_echo_n 0123456789 >"conftest.in" 9224 while : 9225 do 9226 cat "conftest.in" "conftest.in" >"conftest.tmp" 9227 mv "conftest.tmp" "conftest.in" 9228 cp "conftest.in" "conftest.nl" 9229 $as_echo '' >> "conftest.nl" 9230 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 9231 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 9232 as_fn_arith $ac_count + 1 && ac_count=$as_val 9233 if test $ac_count -gt ${ac_path_SED_max-0}; then 9234 # Best one so far, save it but keep looking for a better one 9235 ac_cv_path_SED="$ac_path_SED" 9236 ac_path_SED_max=$ac_count 9237 fi 9238 # 10*(2^10) chars as input seems more than enough 9239 test $ac_count -gt 10 && break 9240 done 9241 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 9242esac 9243 9244 $ac_path_SED_found && break 3 9245 done 9246 done 9247 done 9248IFS=$as_save_IFS 9249 if test -z "$ac_cv_path_SED"; then 9250 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 9251 fi 9252else 9253 ac_cv_path_SED=$SED 9254fi 9255 9256fi 9257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 9258$as_echo "$ac_cv_path_SED" >&6; } 9259 SED="$ac_cv_path_SED" 9260 rm -f conftest.sed 9261 9262test -z "$SED" && SED=sed 9263Xsed="$SED -e 1s/^X//" 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 9276$as_echo_n "checking for fgrep... " >&6; } 9277if ${ac_cv_path_FGREP+:} false; then : 9278 $as_echo_n "(cached) " >&6 9279else 9280 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 9281 then ac_cv_path_FGREP="$GREP -F" 9282 else 9283 if test -z "$FGREP"; then 9284 ac_path_FGREP_found=false 9285 # Loop through the user's path and test for each of PROGNAME-LIST 9286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9287for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 9288do 9289 IFS=$as_save_IFS 9290 test -z "$as_dir" && as_dir=. 9291 for ac_prog in fgrep; do 9292 for ac_exec_ext in '' $ac_executable_extensions; do 9293 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 9294 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 9295# Check for GNU ac_path_FGREP and select it if it is found. 9296 # Check for GNU $ac_path_FGREP 9297case `"$ac_path_FGREP" --version 2>&1` in 9298*GNU*) 9299 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 9300*) 9301 ac_count=0 9302 $as_echo_n 0123456789 >"conftest.in" 9303 while : 9304 do 9305 cat "conftest.in" "conftest.in" >"conftest.tmp" 9306 mv "conftest.tmp" "conftest.in" 9307 cp "conftest.in" "conftest.nl" 9308 $as_echo 'FGREP' >> "conftest.nl" 9309 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 9310 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 9311 as_fn_arith $ac_count + 1 && ac_count=$as_val 9312 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 9313 # Best one so far, save it but keep looking for a better one 9314 ac_cv_path_FGREP="$ac_path_FGREP" 9315 ac_path_FGREP_max=$ac_count 9316 fi 9317 # 10*(2^10) chars as input seems more than enough 9318 test $ac_count -gt 10 && break 9319 done 9320 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 9321esac 9322 9323 $ac_path_FGREP_found && break 3 9324 done 9325 done 9326 done 9327IFS=$as_save_IFS 9328 if test -z "$ac_cv_path_FGREP"; then 9329 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 9330 fi 9331else 9332 ac_cv_path_FGREP=$FGREP 9333fi 9334 9335 fi 9336fi 9337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 9338$as_echo "$ac_cv_path_FGREP" >&6; } 9339 FGREP="$ac_cv_path_FGREP" 9340 9341 9342test -z "$GREP" && GREP=grep 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362# Check whether --with-gnu-ld was given. 9363if test "${with_gnu_ld+set}" = set; then : 9364 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 9365else 9366 with_gnu_ld=no 9367fi 9368 9369ac_prog=ld 9370if test "$GCC" = yes; then 9371 # Check if gcc -print-prog-name=ld gives a path. 9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 9373$as_echo_n "checking for ld used by $CC... " >&6; } 9374 case $host in 9375 *-*-mingw*) 9376 # gcc leaves a trailing carriage return which upsets mingw 9377 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 9378 *) 9379 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 9380 esac 9381 case $ac_prog in 9382 # Accept absolute paths. 9383 [\\/]* | ?:[\\/]*) 9384 re_direlt='/[^/][^/]*/\.\./' 9385 # Canonicalize the pathname of ld 9386 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 9387 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 9388 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 9389 done 9390 test -z "$LD" && LD="$ac_prog" 9391 ;; 9392 "") 9393 # If it fails, then pretend we aren't using GCC. 9394 ac_prog=ld 9395 ;; 9396 *) 9397 # If it is relative, then search for the first ld in PATH. 9398 with_gnu_ld=unknown 9399 ;; 9400 esac 9401elif test "$with_gnu_ld" = yes; then 9402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 9403$as_echo_n "checking for GNU ld... " >&6; } 9404else 9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 9406$as_echo_n "checking for non-GNU ld... " >&6; } 9407fi 9408if ${lt_cv_path_LD+:} false; then : 9409 $as_echo_n "(cached) " >&6 9410else 9411 if test -z "$LD"; then 9412 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9413 for ac_dir in $PATH; do 9414 IFS="$lt_save_ifs" 9415 test -z "$ac_dir" && ac_dir=. 9416 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 9417 lt_cv_path_LD="$ac_dir/$ac_prog" 9418 # Check to see if the program is GNU ld. I'd rather use --version, 9419 # but apparently some variants of GNU ld only accept -v. 9420 # Break only if it was the GNU/non-GNU ld that we prefer. 9421 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 9422 *GNU* | *'with BFD'*) 9423 test "$with_gnu_ld" != no && break 9424 ;; 9425 *) 9426 test "$with_gnu_ld" != yes && break 9427 ;; 9428 esac 9429 fi 9430 done 9431 IFS="$lt_save_ifs" 9432else 9433 lt_cv_path_LD="$LD" # Let the user override the test with a path. 9434fi 9435fi 9436 9437LD="$lt_cv_path_LD" 9438if test -n "$LD"; then 9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 9440$as_echo "$LD" >&6; } 9441else 9442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9443$as_echo "no" >&6; } 9444fi 9445test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 9446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 9447$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 9448if ${lt_cv_prog_gnu_ld+:} false; then : 9449 $as_echo_n "(cached) " >&6 9450else 9451 # I'd rather use --version here, but apparently some GNU lds only accept -v. 9452case `$LD -v 2>&1 </dev/null` in 9453*GNU* | *'with BFD'*) 9454 lt_cv_prog_gnu_ld=yes 9455 ;; 9456*) 9457 lt_cv_prog_gnu_ld=no 9458 ;; 9459esac 9460fi 9461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 9462$as_echo "$lt_cv_prog_gnu_ld" >&6; } 9463with_gnu_ld=$lt_cv_prog_gnu_ld 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 9474$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 9475if ${lt_cv_path_NM+:} false; then : 9476 $as_echo_n "(cached) " >&6 9477else 9478 if test -n "$NM"; then 9479 # Let the user override the test. 9480 lt_cv_path_NM="$NM" 9481else 9482 lt_nm_to_check="${ac_tool_prefix}nm" 9483 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 9484 lt_nm_to_check="$lt_nm_to_check nm" 9485 fi 9486 for lt_tmp_nm in $lt_nm_to_check; do 9487 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9488 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 9489 IFS="$lt_save_ifs" 9490 test -z "$ac_dir" && ac_dir=. 9491 tmp_nm="$ac_dir/$lt_tmp_nm" 9492 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 9493 # Check to see if the nm accepts a BSD-compat flag. 9494 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 9495 # nm: unknown option "B" ignored 9496 # Tru64's nm complains that /dev/null is an invalid object file 9497 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 9498 */dev/null* | *'Invalid file or object type'*) 9499 lt_cv_path_NM="$tmp_nm -B" 9500 break 9501 ;; 9502 *) 9503 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 9504 */dev/null*) 9505 lt_cv_path_NM="$tmp_nm -p" 9506 break 9507 ;; 9508 *) 9509 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 9510 continue # so that we can try to find one that supports BSD flags 9511 ;; 9512 esac 9513 ;; 9514 esac 9515 fi 9516 done 9517 IFS="$lt_save_ifs" 9518 done 9519 : ${lt_cv_path_NM=no} 9520fi 9521fi 9522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 9523$as_echo "$lt_cv_path_NM" >&6; } 9524if test "$lt_cv_path_NM" != "no"; then 9525 NM="$lt_cv_path_NM" 9526else 9527 # Didn't find any BSD compatible name lister, look for dumpbin. 9528 if test -n "$ac_tool_prefix"; then 9529 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 9530 do 9531 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 9532set dummy $ac_tool_prefix$ac_prog; ac_word=$2 9533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9534$as_echo_n "checking for $ac_word... " >&6; } 9535if ${ac_cv_prog_DUMPBIN+:} false; then : 9536 $as_echo_n "(cached) " >&6 9537else 9538 if test -n "$DUMPBIN"; then 9539 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 9540else 9541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9542for as_dir in $PATH 9543do 9544 IFS=$as_save_IFS 9545 test -z "$as_dir" && as_dir=. 9546 for ac_exec_ext in '' $ac_executable_extensions; do 9547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9548 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 9549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9550 break 2 9551 fi 9552done 9553 done 9554IFS=$as_save_IFS 9555 9556fi 9557fi 9558DUMPBIN=$ac_cv_prog_DUMPBIN 9559if test -n "$DUMPBIN"; then 9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 9561$as_echo "$DUMPBIN" >&6; } 9562else 9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9564$as_echo "no" >&6; } 9565fi 9566 9567 9568 test -n "$DUMPBIN" && break 9569 done 9570fi 9571if test -z "$DUMPBIN"; then 9572 ac_ct_DUMPBIN=$DUMPBIN 9573 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 9574do 9575 # Extract the first word of "$ac_prog", so it can be a program name with args. 9576set dummy $ac_prog; ac_word=$2 9577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9578$as_echo_n "checking for $ac_word... " >&6; } 9579if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 9580 $as_echo_n "(cached) " >&6 9581else 9582 if test -n "$ac_ct_DUMPBIN"; then 9583 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 9584else 9585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9586for as_dir in $PATH 9587do 9588 IFS=$as_save_IFS 9589 test -z "$as_dir" && as_dir=. 9590 for ac_exec_ext in '' $ac_executable_extensions; do 9591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9592 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 9593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9594 break 2 9595 fi 9596done 9597 done 9598IFS=$as_save_IFS 9599 9600fi 9601fi 9602ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 9603if test -n "$ac_ct_DUMPBIN"; then 9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 9605$as_echo "$ac_ct_DUMPBIN" >&6; } 9606else 9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9608$as_echo "no" >&6; } 9609fi 9610 9611 9612 test -n "$ac_ct_DUMPBIN" && break 9613done 9614 9615 if test "x$ac_ct_DUMPBIN" = x; then 9616 DUMPBIN=":" 9617 else 9618 case $cross_compiling:$ac_tool_warned in 9619yes:) 9620{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9621$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9622ac_tool_warned=yes ;; 9623esac 9624 DUMPBIN=$ac_ct_DUMPBIN 9625 fi 9626fi 9627 9628 9629 if test "$DUMPBIN" != ":"; then 9630 NM="$DUMPBIN" 9631 fi 9632fi 9633test -z "$NM" && NM=nm 9634 9635 9636 9637 9638 9639 9640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 9641$as_echo_n "checking the name lister ($NM) interface... " >&6; } 9642if ${lt_cv_nm_interface+:} false; then : 9643 $as_echo_n "(cached) " >&6 9644else 9645 lt_cv_nm_interface="BSD nm" 9646 echo "int some_variable = 0;" > conftest.$ac_ext 9647 (eval echo "\"\$as_me:9647: $ac_compile\"" >&5) 9648 (eval "$ac_compile" 2>conftest.err) 9649 cat conftest.err >&5 9650 (eval echo "\"\$as_me:9650: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 9651 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 9652 cat conftest.err >&5 9653 (eval echo "\"\$as_me:9653: output\"" >&5) 9654 cat conftest.out >&5 9655 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 9656 lt_cv_nm_interface="MS dumpbin" 9657 fi 9658 rm -f conftest* 9659fi 9660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 9661$as_echo "$lt_cv_nm_interface" >&6; } 9662 9663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 9664$as_echo_n "checking whether ln -s works... " >&6; } 9665LN_S=$as_ln_s 9666if test "$LN_S" = "ln -s"; then 9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9668$as_echo "yes" >&6; } 9669else 9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 9671$as_echo "no, using $LN_S" >&6; } 9672fi 9673 9674# find the maximum length of command line arguments 9675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 9676$as_echo_n "checking the maximum length of command line arguments... " >&6; } 9677if ${lt_cv_sys_max_cmd_len+:} false; then : 9678 $as_echo_n "(cached) " >&6 9679else 9680 i=0 9681 teststring="ABCD" 9682 9683 case $build_os in 9684 msdosdjgpp*) 9685 # On DJGPP, this test can blow up pretty badly due to problems in libc 9686 # (any single argument exceeding 2000 bytes causes a buffer overrun 9687 # during glob expansion). Even if it were fixed, the result of this 9688 # check would be larger than it should be. 9689 lt_cv_sys_max_cmd_len=12288; # 12K is about right 9690 ;; 9691 9692 gnu*) 9693 # Under GNU Hurd, this test is not required because there is 9694 # no limit to the length of command line arguments. 9695 # Libtool will interpret -1 as no limit whatsoever 9696 lt_cv_sys_max_cmd_len=-1; 9697 ;; 9698 9699 cygwin* | mingw* | cegcc*) 9700 # On Win9x/ME, this test blows up -- it succeeds, but takes 9701 # about 5 minutes as the teststring grows exponentially. 9702 # Worse, since 9x/ME are not pre-emptively multitasking, 9703 # you end up with a "frozen" computer, even though with patience 9704 # the test eventually succeeds (with a max line length of 256k). 9705 # Instead, let's just punt: use the minimum linelength reported by 9706 # all of the supported platforms: 8192 (on NT/2K/XP). 9707 lt_cv_sys_max_cmd_len=8192; 9708 ;; 9709 9710 amigaos*) 9711 # On AmigaOS with pdksh, this test takes hours, literally. 9712 # So we just punt and use a minimum line length of 8192. 9713 lt_cv_sys_max_cmd_len=8192; 9714 ;; 9715 9716 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 9717 # This has been around since 386BSD, at least. Likely further. 9718 if test -x /sbin/sysctl; then 9719 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 9720 elif test -x /usr/sbin/sysctl; then 9721 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 9722 else 9723 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 9724 fi 9725 # And add a safety zone 9726 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 9727 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 9728 ;; 9729 9730 interix*) 9731 # We know the value 262144 and hardcode it with a safety zone (like BSD) 9732 lt_cv_sys_max_cmd_len=196608 9733 ;; 9734 9735 osf*) 9736 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 9737 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 9738 # nice to cause kernel panics so lets avoid the loop below. 9739 # First set a reasonable default. 9740 lt_cv_sys_max_cmd_len=16384 9741 # 9742 if test -x /sbin/sysconfig; then 9743 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 9744 *1*) lt_cv_sys_max_cmd_len=-1 ;; 9745 esac 9746 fi 9747 ;; 9748 sco3.2v5*) 9749 lt_cv_sys_max_cmd_len=102400 9750 ;; 9751 sysv5* | sco5v6* | sysv4.2uw2*) 9752 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 9753 if test -n "$kargmax"; then 9754 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 9755 else 9756 lt_cv_sys_max_cmd_len=32768 9757 fi 9758 ;; 9759 *) 9760 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 9761 if test -n "$lt_cv_sys_max_cmd_len"; then 9762 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 9763 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 9764 else 9765 # Make teststring a little bigger before we do anything with it. 9766 # a 1K string should be a reasonable start. 9767 for i in 1 2 3 4 5 6 7 8 ; do 9768 teststring=$teststring$teststring 9769 done 9770 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 9771 # If test is not a shell built-in, we'll probably end up computing a 9772 # maximum length that is only half of the actual maximum length, but 9773 # we can't tell. 9774 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 9775 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 9776 test $i != 17 # 1/2 MB should be enough 9777 do 9778 i=`expr $i + 1` 9779 teststring=$teststring$teststring 9780 done 9781 # Only check the string length outside the loop. 9782 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 9783 teststring= 9784 # Add a significant safety factor because C++ compilers can tack on 9785 # massive amounts of additional arguments before passing them to the 9786 # linker. It appears as though 1/2 is a usable value. 9787 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 9788 fi 9789 ;; 9790 esac 9791 9792fi 9793 9794if test -n $lt_cv_sys_max_cmd_len ; then 9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 9796$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 9797else 9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 9799$as_echo "none" >&6; } 9800fi 9801max_cmd_len=$lt_cv_sys_max_cmd_len 9802 9803 9804 9805 9806 9807 9808: ${CP="cp -f"} 9809: ${MV="mv -f"} 9810: ${RM="rm -f"} 9811 9812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 9813$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 9814# Try some XSI features 9815xsi_shell=no 9816( _lt_dummy="a/b/c" 9817 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 9818 = c,a/b,, \ 9819 && eval 'test $(( 1 + 1 )) -eq 2 \ 9820 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 9821 && xsi_shell=yes 9822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 9823$as_echo "$xsi_shell" >&6; } 9824 9825 9826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 9827$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 9828lt_shell_append=no 9829( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 9830 >/dev/null 2>&1 \ 9831 && lt_shell_append=yes 9832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 9833$as_echo "$lt_shell_append" >&6; } 9834 9835 9836if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 9837 lt_unset=unset 9838else 9839 lt_unset=false 9840fi 9841 9842 9843 9844 9845 9846# test EBCDIC or ASCII 9847case `echo X|tr X '\101'` in 9848 A) # ASCII based system 9849 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 9850 lt_SP2NL='tr \040 \012' 9851 lt_NL2SP='tr \015\012 \040\040' 9852 ;; 9853 *) # EBCDIC based system 9854 lt_SP2NL='tr \100 \n' 9855 lt_NL2SP='tr \r\n \100\100' 9856 ;; 9857esac 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 9868$as_echo_n "checking for $LD option to reload object files... " >&6; } 9869if ${lt_cv_ld_reload_flag+:} false; then : 9870 $as_echo_n "(cached) " >&6 9871else 9872 lt_cv_ld_reload_flag='-r' 9873fi 9874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 9875$as_echo "$lt_cv_ld_reload_flag" >&6; } 9876reload_flag=$lt_cv_ld_reload_flag 9877case $reload_flag in 9878"" | " "*) ;; 9879*) reload_flag=" $reload_flag" ;; 9880esac 9881reload_cmds='$LD$reload_flag -o $output$reload_objs' 9882case $host_os in 9883 darwin*) 9884 if test "$GCC" = yes; then 9885 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 9886 else 9887 reload_cmds='$LD$reload_flag -o $output$reload_objs' 9888 fi 9889 ;; 9890esac 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900if test -n "$ac_tool_prefix"; then 9901 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 9902set dummy ${ac_tool_prefix}objdump; ac_word=$2 9903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9904$as_echo_n "checking for $ac_word... " >&6; } 9905if ${ac_cv_prog_OBJDUMP+:} false; then : 9906 $as_echo_n "(cached) " >&6 9907else 9908 if test -n "$OBJDUMP"; then 9909 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 9910else 9911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9912for as_dir in $PATH 9913do 9914 IFS=$as_save_IFS 9915 test -z "$as_dir" && as_dir=. 9916 for ac_exec_ext in '' $ac_executable_extensions; do 9917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9918 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 9919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9920 break 2 9921 fi 9922done 9923 done 9924IFS=$as_save_IFS 9925 9926fi 9927fi 9928OBJDUMP=$ac_cv_prog_OBJDUMP 9929if test -n "$OBJDUMP"; then 9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 9931$as_echo "$OBJDUMP" >&6; } 9932else 9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9934$as_echo "no" >&6; } 9935fi 9936 9937 9938fi 9939if test -z "$ac_cv_prog_OBJDUMP"; then 9940 ac_ct_OBJDUMP=$OBJDUMP 9941 # Extract the first word of "objdump", so it can be a program name with args. 9942set dummy objdump; ac_word=$2 9943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9944$as_echo_n "checking for $ac_word... " >&6; } 9945if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 9946 $as_echo_n "(cached) " >&6 9947else 9948 if test -n "$ac_ct_OBJDUMP"; then 9949 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 9950else 9951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9952for as_dir in $PATH 9953do 9954 IFS=$as_save_IFS 9955 test -z "$as_dir" && as_dir=. 9956 for ac_exec_ext in '' $ac_executable_extensions; do 9957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9958 ac_cv_prog_ac_ct_OBJDUMP="objdump" 9959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9960 break 2 9961 fi 9962done 9963 done 9964IFS=$as_save_IFS 9965 9966fi 9967fi 9968ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 9969if test -n "$ac_ct_OBJDUMP"; then 9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 9971$as_echo "$ac_ct_OBJDUMP" >&6; } 9972else 9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9974$as_echo "no" >&6; } 9975fi 9976 9977 if test "x$ac_ct_OBJDUMP" = x; then 9978 OBJDUMP="false" 9979 else 9980 case $cross_compiling:$ac_tool_warned in 9981yes:) 9982{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9983$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9984ac_tool_warned=yes ;; 9985esac 9986 OBJDUMP=$ac_ct_OBJDUMP 9987 fi 9988else 9989 OBJDUMP="$ac_cv_prog_OBJDUMP" 9990fi 9991 9992test -z "$OBJDUMP" && OBJDUMP=objdump 9993 9994 9995 9996 9997 9998 9999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 10000$as_echo_n "checking how to recognize dependent libraries... " >&6; } 10001if ${lt_cv_deplibs_check_method+:} false; then : 10002 $as_echo_n "(cached) " >&6 10003else 10004 lt_cv_file_magic_cmd='$MAGIC_CMD' 10005lt_cv_file_magic_test_file= 10006lt_cv_deplibs_check_method='unknown' 10007# Need to set the preceding variable on all platforms that support 10008# interlibrary dependencies. 10009# 'none' -- dependencies not supported. 10010# `unknown' -- same as none, but documents that we really don't know. 10011# 'pass_all' -- all dependencies passed with no checks. 10012# 'test_compile' -- check by making test program. 10013# 'file_magic [[regex]]' -- check by looking for files in library path 10014# which responds to the $file_magic_cmd with a given extended regex. 10015# If you have `file' or equivalent on your system and you're not sure 10016# whether `pass_all' will *always* work, you probably want this one. 10017 10018case $host_os in 10019aix[4-9]*) 10020 lt_cv_deplibs_check_method=pass_all 10021 ;; 10022 10023beos*) 10024 lt_cv_deplibs_check_method=pass_all 10025 ;; 10026 10027bsdi[45]*) 10028 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 10029 lt_cv_file_magic_cmd='/usr/bin/file -L' 10030 lt_cv_file_magic_test_file=/shlib/libc.so 10031 ;; 10032 10033cygwin*) 10034 # func_win32_libid is a shell function defined in ltmain.sh 10035 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 10036 lt_cv_file_magic_cmd='func_win32_libid' 10037 ;; 10038 10039mingw* | pw32*) 10040 # Base MSYS/MinGW do not provide the 'file' command needed by 10041 # func_win32_libid shell function, so use a weaker test based on 'objdump', 10042 # unless we find 'file', for example because we are cross-compiling. 10043 if ( file / ) >/dev/null 2>&1; then 10044 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 10045 lt_cv_file_magic_cmd='func_win32_libid' 10046 else 10047 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 10048 lt_cv_file_magic_cmd='$OBJDUMP -f' 10049 fi 10050 ;; 10051 10052cegcc) 10053 # use the weaker test based on 'objdump'. See mingw*. 10054 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 10055 lt_cv_file_magic_cmd='$OBJDUMP -f' 10056 ;; 10057 10058darwin* | rhapsody*) 10059 lt_cv_deplibs_check_method=pass_all 10060 ;; 10061 10062freebsd* | dragonfly*) 10063 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 10064 case $host_cpu in 10065 i*86 ) 10066 # Not sure whether the presence of OpenBSD here was a mistake. 10067 # Let's accept both of them until this is cleared up. 10068 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 10069 lt_cv_file_magic_cmd=/usr/bin/file 10070 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 10071 ;; 10072 esac 10073 else 10074 lt_cv_deplibs_check_method=pass_all 10075 fi 10076 ;; 10077 10078gnu*) 10079 lt_cv_deplibs_check_method=pass_all 10080 ;; 10081 10082hpux10.20* | hpux11*) 10083 lt_cv_file_magic_cmd=/usr/bin/file 10084 case $host_cpu in 10085 ia64*) 10086 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 10087 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 10088 ;; 10089 hppa*64*) 10090 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]' 10091 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 10092 ;; 10093 *) 10094 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 10095 lt_cv_file_magic_test_file=/usr/lib/libc.sl 10096 ;; 10097 esac 10098 ;; 10099 10100interix[3-9]*) 10101 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 10102 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 10103 ;; 10104 10105irix5* | irix6* | nonstopux*) 10106 case $LD in 10107 *-32|*"-32 ") libmagic=32-bit;; 10108 *-n32|*"-n32 ") libmagic=N32;; 10109 *-64|*"-64 ") libmagic=64-bit;; 10110 *) libmagic=never-match;; 10111 esac 10112 lt_cv_deplibs_check_method=pass_all 10113 ;; 10114 10115# This must be Linux ELF. 10116linux* | k*bsd*-gnu) 10117 lt_cv_deplibs_check_method=pass_all 10118 ;; 10119 10120netbsd*) 10121 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 10122 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 10123 else 10124 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 10125 fi 10126 ;; 10127 10128newos6*) 10129 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 10130 lt_cv_file_magic_cmd=/usr/bin/file 10131 lt_cv_file_magic_test_file=/usr/lib/libnls.so 10132 ;; 10133 10134*nto* | *qnx*) 10135 lt_cv_deplibs_check_method=pass_all 10136 ;; 10137 10138openbsd*) 10139 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10140 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 10141 else 10142 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 10143 fi 10144 ;; 10145 10146osf3* | osf4* | osf5*) 10147 lt_cv_deplibs_check_method=pass_all 10148 ;; 10149 10150rdos*) 10151 lt_cv_deplibs_check_method=pass_all 10152 ;; 10153 10154solaris*) 10155 lt_cv_deplibs_check_method=pass_all 10156 ;; 10157 10158sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10159 lt_cv_deplibs_check_method=pass_all 10160 ;; 10161 10162sysv4 | sysv4.3*) 10163 case $host_vendor in 10164 motorola) 10165 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]' 10166 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 10167 ;; 10168 ncr) 10169 lt_cv_deplibs_check_method=pass_all 10170 ;; 10171 sequent) 10172 lt_cv_file_magic_cmd='/bin/file' 10173 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 10174 ;; 10175 sni) 10176 lt_cv_file_magic_cmd='/bin/file' 10177 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 10178 lt_cv_file_magic_test_file=/lib/libc.so 10179 ;; 10180 siemens) 10181 lt_cv_deplibs_check_method=pass_all 10182 ;; 10183 pc) 10184 lt_cv_deplibs_check_method=pass_all 10185 ;; 10186 esac 10187 ;; 10188 10189tpf*) 10190 lt_cv_deplibs_check_method=pass_all 10191 ;; 10192esac 10193 10194fi 10195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 10196$as_echo "$lt_cv_deplibs_check_method" >&6; } 10197file_magic_cmd=$lt_cv_file_magic_cmd 10198deplibs_check_method=$lt_cv_deplibs_check_method 10199test -z "$deplibs_check_method" && deplibs_check_method=unknown 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212if test -n "$ac_tool_prefix"; then 10213 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 10214set dummy ${ac_tool_prefix}ar; ac_word=$2 10215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10216$as_echo_n "checking for $ac_word... " >&6; } 10217if ${ac_cv_prog_AR+:} false; then : 10218 $as_echo_n "(cached) " >&6 10219else 10220 if test -n "$AR"; then 10221 ac_cv_prog_AR="$AR" # Let the user override the test. 10222else 10223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10224for as_dir in $PATH 10225do 10226 IFS=$as_save_IFS 10227 test -z "$as_dir" && as_dir=. 10228 for ac_exec_ext in '' $ac_executable_extensions; do 10229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10230 ac_cv_prog_AR="${ac_tool_prefix}ar" 10231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10232 break 2 10233 fi 10234done 10235 done 10236IFS=$as_save_IFS 10237 10238fi 10239fi 10240AR=$ac_cv_prog_AR 10241if test -n "$AR"; then 10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 10243$as_echo "$AR" >&6; } 10244else 10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10246$as_echo "no" >&6; } 10247fi 10248 10249 10250fi 10251if test -z "$ac_cv_prog_AR"; then 10252 ac_ct_AR=$AR 10253 # Extract the first word of "ar", so it can be a program name with args. 10254set dummy ar; ac_word=$2 10255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10256$as_echo_n "checking for $ac_word... " >&6; } 10257if ${ac_cv_prog_ac_ct_AR+:} false; then : 10258 $as_echo_n "(cached) " >&6 10259else 10260 if test -n "$ac_ct_AR"; then 10261 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 10262else 10263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10264for as_dir in $PATH 10265do 10266 IFS=$as_save_IFS 10267 test -z "$as_dir" && as_dir=. 10268 for ac_exec_ext in '' $ac_executable_extensions; do 10269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10270 ac_cv_prog_ac_ct_AR="ar" 10271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10272 break 2 10273 fi 10274done 10275 done 10276IFS=$as_save_IFS 10277 10278fi 10279fi 10280ac_ct_AR=$ac_cv_prog_ac_ct_AR 10281if test -n "$ac_ct_AR"; then 10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 10283$as_echo "$ac_ct_AR" >&6; } 10284else 10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10286$as_echo "no" >&6; } 10287fi 10288 10289 if test "x$ac_ct_AR" = x; then 10290 AR="false" 10291 else 10292 case $cross_compiling:$ac_tool_warned in 10293yes:) 10294{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10295$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10296ac_tool_warned=yes ;; 10297esac 10298 AR=$ac_ct_AR 10299 fi 10300else 10301 AR="$ac_cv_prog_AR" 10302fi 10303 10304test -z "$AR" && AR=ar 10305test -z "$AR_FLAGS" && AR_FLAGS=cru 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317if test -n "$ac_tool_prefix"; then 10318 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 10319set dummy ${ac_tool_prefix}strip; ac_word=$2 10320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10321$as_echo_n "checking for $ac_word... " >&6; } 10322if ${ac_cv_prog_STRIP+:} false; then : 10323 $as_echo_n "(cached) " >&6 10324else 10325 if test -n "$STRIP"; then 10326 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 10327else 10328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10329for as_dir in $PATH 10330do 10331 IFS=$as_save_IFS 10332 test -z "$as_dir" && as_dir=. 10333 for ac_exec_ext in '' $ac_executable_extensions; do 10334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10335 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 10336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10337 break 2 10338 fi 10339done 10340 done 10341IFS=$as_save_IFS 10342 10343fi 10344fi 10345STRIP=$ac_cv_prog_STRIP 10346if test -n "$STRIP"; then 10347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 10348$as_echo "$STRIP" >&6; } 10349else 10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10351$as_echo "no" >&6; } 10352fi 10353 10354 10355fi 10356if test -z "$ac_cv_prog_STRIP"; then 10357 ac_ct_STRIP=$STRIP 10358 # Extract the first word of "strip", so it can be a program name with args. 10359set dummy strip; ac_word=$2 10360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10361$as_echo_n "checking for $ac_word... " >&6; } 10362if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 10363 $as_echo_n "(cached) " >&6 10364else 10365 if test -n "$ac_ct_STRIP"; then 10366 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 10367else 10368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10369for as_dir in $PATH 10370do 10371 IFS=$as_save_IFS 10372 test -z "$as_dir" && as_dir=. 10373 for ac_exec_ext in '' $ac_executable_extensions; do 10374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10375 ac_cv_prog_ac_ct_STRIP="strip" 10376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10377 break 2 10378 fi 10379done 10380 done 10381IFS=$as_save_IFS 10382 10383fi 10384fi 10385ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 10386if test -n "$ac_ct_STRIP"; then 10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 10388$as_echo "$ac_ct_STRIP" >&6; } 10389else 10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10391$as_echo "no" >&6; } 10392fi 10393 10394 if test "x$ac_ct_STRIP" = x; then 10395 STRIP=":" 10396 else 10397 case $cross_compiling:$ac_tool_warned in 10398yes:) 10399{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10400$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10401ac_tool_warned=yes ;; 10402esac 10403 STRIP=$ac_ct_STRIP 10404 fi 10405else 10406 STRIP="$ac_cv_prog_STRIP" 10407fi 10408 10409test -z "$STRIP" && STRIP=: 10410 10411 10412 10413 10414 10415 10416if test -n "$ac_tool_prefix"; then 10417 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 10418set dummy ${ac_tool_prefix}ranlib; ac_word=$2 10419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10420$as_echo_n "checking for $ac_word... " >&6; } 10421if ${ac_cv_prog_RANLIB+:} false; then : 10422 $as_echo_n "(cached) " >&6 10423else 10424 if test -n "$RANLIB"; then 10425 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 10426else 10427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10428for as_dir in $PATH 10429do 10430 IFS=$as_save_IFS 10431 test -z "$as_dir" && as_dir=. 10432 for ac_exec_ext in '' $ac_executable_extensions; do 10433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10434 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 10435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10436 break 2 10437 fi 10438done 10439 done 10440IFS=$as_save_IFS 10441 10442fi 10443fi 10444RANLIB=$ac_cv_prog_RANLIB 10445if test -n "$RANLIB"; then 10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 10447$as_echo "$RANLIB" >&6; } 10448else 10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10450$as_echo "no" >&6; } 10451fi 10452 10453 10454fi 10455if test -z "$ac_cv_prog_RANLIB"; then 10456 ac_ct_RANLIB=$RANLIB 10457 # Extract the first word of "ranlib", so it can be a program name with args. 10458set dummy ranlib; ac_word=$2 10459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10460$as_echo_n "checking for $ac_word... " >&6; } 10461if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 10462 $as_echo_n "(cached) " >&6 10463else 10464 if test -n "$ac_ct_RANLIB"; then 10465 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 10466else 10467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10468for as_dir in $PATH 10469do 10470 IFS=$as_save_IFS 10471 test -z "$as_dir" && as_dir=. 10472 for ac_exec_ext in '' $ac_executable_extensions; do 10473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10474 ac_cv_prog_ac_ct_RANLIB="ranlib" 10475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10476 break 2 10477 fi 10478done 10479 done 10480IFS=$as_save_IFS 10481 10482fi 10483fi 10484ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 10485if test -n "$ac_ct_RANLIB"; then 10486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 10487$as_echo "$ac_ct_RANLIB" >&6; } 10488else 10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10490$as_echo "no" >&6; } 10491fi 10492 10493 if test "x$ac_ct_RANLIB" = x; then 10494 RANLIB=":" 10495 else 10496 case $cross_compiling:$ac_tool_warned in 10497yes:) 10498{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10499$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10500ac_tool_warned=yes ;; 10501esac 10502 RANLIB=$ac_ct_RANLIB 10503 fi 10504else 10505 RANLIB="$ac_cv_prog_RANLIB" 10506fi 10507 10508test -z "$RANLIB" && RANLIB=: 10509 10510 10511 10512 10513 10514 10515# Determine commands to create old-style static archives. 10516old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 10517old_postinstall_cmds='chmod 644 $oldlib' 10518old_postuninstall_cmds= 10519 10520if test -n "$RANLIB"; then 10521 case $host_os in 10522 openbsd*) 10523 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 10524 ;; 10525 *) 10526 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 10527 ;; 10528 esac 10529 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 10530fi 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565# If no C compiler was specified, use CC. 10566LTCC=${LTCC-"$CC"} 10567 10568# If no C compiler flags were specified, use CFLAGS. 10569LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10570 10571# Allow CC to be a program name with arguments. 10572compiler=$CC 10573 10574 10575# Check for command to grab the raw symbol name followed by C symbol from nm. 10576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 10577$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 10578if ${lt_cv_sys_global_symbol_pipe+:} false; then : 10579 $as_echo_n "(cached) " >&6 10580else 10581 10582# These are sane defaults that work on at least a few old systems. 10583# [They come from Ultrix. What could be older than Ultrix?!! ;)] 10584 10585# Character class describing NM global symbol codes. 10586symcode='[BCDEGRST]' 10587 10588# Regexp to match symbols that can be accessed directly from C. 10589sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 10590 10591# Define system-specific variables. 10592case $host_os in 10593aix*) 10594 symcode='[BCDT]' 10595 ;; 10596cygwin* | mingw* | pw32* | cegcc*) 10597 symcode='[ABCDGISTW]' 10598 ;; 10599hpux*) 10600 if test "$host_cpu" = ia64; then 10601 symcode='[ABCDEGRST]' 10602 fi 10603 ;; 10604irix* | nonstopux*) 10605 symcode='[BCDEGRST]' 10606 ;; 10607osf*) 10608 symcode='[BCDEGQRST]' 10609 ;; 10610solaris*) 10611 symcode='[BDRT]' 10612 ;; 10613sco3.2v5*) 10614 symcode='[DT]' 10615 ;; 10616sysv4.2uw2*) 10617 symcode='[DT]' 10618 ;; 10619sysv5* | sco5v6* | unixware* | OpenUNIX*) 10620 symcode='[ABDT]' 10621 ;; 10622sysv4) 10623 symcode='[DFNSTU]' 10624 ;; 10625esac 10626 10627# If we're using GNU nm, then use its standard symbol codes. 10628case `$NM -V 2>&1` in 10629*GNU* | *'with BFD'*) 10630 symcode='[ABCDGIRSTW]' ;; 10631esac 10632 10633# Transform an extracted symbol line into a proper C declaration. 10634# Some systems (esp. on ia64) link data and code symbols differently, 10635# so use this general approach. 10636lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 10637 10638# Transform an extracted symbol line into symbol name and symbol address 10639lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 10640lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 10641 10642# Handle CRLF in mingw tool chain 10643opt_cr= 10644case $build_os in 10645mingw*) 10646 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 10647 ;; 10648esac 10649 10650# Try without a prefix underscore, then with it. 10651for ac_symprfx in "" "_"; do 10652 10653 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 10654 symxfrm="\\1 $ac_symprfx\\2 \\2" 10655 10656 # Write the raw and C identifiers. 10657 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 10658 # Fake it for dumpbin and say T for any non-static function 10659 # and D for any global variable. 10660 # Also find C++ and __fastcall symbols from MSVC++, 10661 # which start with @ or ?. 10662 lt_cv_sys_global_symbol_pipe="$AWK '"\ 10663" {last_section=section; section=\$ 3};"\ 10664" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 10665" \$ 0!~/External *\|/{next};"\ 10666" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 10667" {if(hide[section]) next};"\ 10668" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 10669" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 10670" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 10671" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 10672" ' prfx=^$ac_symprfx" 10673 else 10674 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 10675 fi 10676 10677 # Check to see that the pipe works correctly. 10678 pipe_works=no 10679 10680 rm -f conftest* 10681 cat > conftest.$ac_ext <<_LT_EOF 10682#ifdef __cplusplus 10683extern "C" { 10684#endif 10685char nm_test_var; 10686void nm_test_func(void); 10687void nm_test_func(void){} 10688#ifdef __cplusplus 10689} 10690#endif 10691int main(){nm_test_var='a';nm_test_func();return(0);} 10692_LT_EOF 10693 10694 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10695 (eval $ac_compile) 2>&5 10696 ac_status=$? 10697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10698 test $ac_status = 0; }; then 10699 # Now try to grab the symbols. 10700 nlist=conftest.nm 10701 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 10702 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 10703 ac_status=$? 10704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10705 test $ac_status = 0; } && test -s "$nlist"; then 10706 # Try sorting and uniquifying the output. 10707 if sort "$nlist" | uniq > "$nlist"T; then 10708 mv -f "$nlist"T "$nlist" 10709 else 10710 rm -f "$nlist"T 10711 fi 10712 10713 # Make sure that we snagged all the symbols we need. 10714 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 10715 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 10716 cat <<_LT_EOF > conftest.$ac_ext 10717#ifdef __cplusplus 10718extern "C" { 10719#endif 10720 10721_LT_EOF 10722 # Now generate the symbol file. 10723 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 10724 10725 cat <<_LT_EOF >> conftest.$ac_ext 10726 10727/* The mapping between symbol names and symbols. */ 10728const struct { 10729 const char *name; 10730 void *address; 10731} 10732lt__PROGRAM__LTX_preloaded_symbols[] = 10733{ 10734 { "@PROGRAM@", (void *) 0 }, 10735_LT_EOF 10736 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 10737 cat <<\_LT_EOF >> conftest.$ac_ext 10738 {0, (void *) 0} 10739}; 10740 10741/* This works around a problem in FreeBSD linker */ 10742#ifdef FREEBSD_WORKAROUND 10743static const void *lt_preloaded_setup() { 10744 return lt__PROGRAM__LTX_preloaded_symbols; 10745} 10746#endif 10747 10748#ifdef __cplusplus 10749} 10750#endif 10751_LT_EOF 10752 # Now try linking the two files. 10753 mv conftest.$ac_objext conftstm.$ac_objext 10754 lt_save_LIBS="$LIBS" 10755 lt_save_CFLAGS="$CFLAGS" 10756 LIBS="conftstm.$ac_objext" 10757 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 10758 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10759 (eval $ac_link) 2>&5 10760 ac_status=$? 10761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10762 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 10763 pipe_works=yes 10764 fi 10765 LIBS="$lt_save_LIBS" 10766 CFLAGS="$lt_save_CFLAGS" 10767 else 10768 echo "cannot find nm_test_func in $nlist" >&5 10769 fi 10770 else 10771 echo "cannot find nm_test_var in $nlist" >&5 10772 fi 10773 else 10774 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 10775 fi 10776 else 10777 echo "$progname: failed program was:" >&5 10778 cat conftest.$ac_ext >&5 10779 fi 10780 rm -rf conftest* conftst* 10781 10782 # Do not use the global_symbol_pipe unless it works. 10783 if test "$pipe_works" = yes; then 10784 break 10785 else 10786 lt_cv_sys_global_symbol_pipe= 10787 fi 10788done 10789 10790fi 10791 10792if test -z "$lt_cv_sys_global_symbol_pipe"; then 10793 lt_cv_sys_global_symbol_to_cdecl= 10794fi 10795if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 10797$as_echo "failed" >&6; } 10798else 10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 10800$as_echo "ok" >&6; } 10801fi 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824# Check whether --enable-libtool-lock was given. 10825if test "${enable_libtool_lock+set}" = set; then : 10826 enableval=$enable_libtool_lock; 10827fi 10828 10829test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 10830 10831# Some flags need to be propagated to the compiler or linker for good 10832# libtool support. 10833case $host in 10834ia64-*-hpux*) 10835 # Find out which ABI we are using. 10836 echo 'int i;' > conftest.$ac_ext 10837 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10838 (eval $ac_compile) 2>&5 10839 ac_status=$? 10840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10841 test $ac_status = 0; }; then 10842 case `/usr/bin/file conftest.$ac_objext` in 10843 *ELF-32*) 10844 HPUX_IA64_MODE="32" 10845 ;; 10846 *ELF-64*) 10847 HPUX_IA64_MODE="64" 10848 ;; 10849 esac 10850 fi 10851 rm -rf conftest* 10852 ;; 10853*-*-irix6*) 10854 # Find out which ABI we are using. 10855 echo '#line 10855 "configure"' > conftest.$ac_ext 10856 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10857 (eval $ac_compile) 2>&5 10858 ac_status=$? 10859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10860 test $ac_status = 0; }; then 10861 if test "$lt_cv_prog_gnu_ld" = yes; then 10862 case `/usr/bin/file conftest.$ac_objext` in 10863 *32-bit*) 10864 LD="${LD-ld} -melf32bsmip" 10865 ;; 10866 *N32*) 10867 LD="${LD-ld} -melf32bmipn32" 10868 ;; 10869 *64-bit*) 10870 LD="${LD-ld} -melf64bmip" 10871 ;; 10872 esac 10873 else 10874 case `/usr/bin/file conftest.$ac_objext` in 10875 *32-bit*) 10876 LD="${LD-ld} -32" 10877 ;; 10878 *N32*) 10879 LD="${LD-ld} -n32" 10880 ;; 10881 *64-bit*) 10882 LD="${LD-ld} -64" 10883 ;; 10884 esac 10885 fi 10886 fi 10887 rm -rf conftest* 10888 ;; 10889 10890x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 10891s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 10892 # Find out which ABI we are using. 10893 echo 'int i;' > conftest.$ac_ext 10894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10895 (eval $ac_compile) 2>&5 10896 ac_status=$? 10897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10898 test $ac_status = 0; }; then 10899 case `/usr/bin/file conftest.o` in 10900 *32-bit*) 10901 case $host in 10902 x86_64-*kfreebsd*-gnu) 10903 LD="${LD-ld} -m elf_i386_fbsd" 10904 ;; 10905 x86_64-*linux*) 10906 LD="${LD-ld} -m elf_i386" 10907 ;; 10908 ppc64-*linux*|powerpc64-*linux*) 10909 LD="${LD-ld} -m elf32ppclinux" 10910 ;; 10911 s390x-*linux*) 10912 LD="${LD-ld} -m elf_s390" 10913 ;; 10914 sparc64-*linux*) 10915 LD="${LD-ld} -m elf32_sparc" 10916 ;; 10917 esac 10918 ;; 10919 *64-bit*) 10920 case $host in 10921 x86_64-*kfreebsd*-gnu) 10922 LD="${LD-ld} -m elf_x86_64_fbsd" 10923 ;; 10924 x86_64-*linux*) 10925 LD="${LD-ld} -m elf_x86_64" 10926 ;; 10927 ppc*-*linux*|powerpc*-*linux*) 10928 LD="${LD-ld} -m elf64ppc" 10929 ;; 10930 s390*-*linux*|s390*-*tpf*) 10931 LD="${LD-ld} -m elf64_s390" 10932 ;; 10933 sparc*-*linux*) 10934 LD="${LD-ld} -m elf64_sparc" 10935 ;; 10936 esac 10937 ;; 10938 esac 10939 fi 10940 rm -rf conftest* 10941 ;; 10942 10943*-*-sco3.2v5*) 10944 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 10945 SAVE_CFLAGS="$CFLAGS" 10946 CFLAGS="$CFLAGS -belf" 10947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 10948$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 10949if ${lt_cv_cc_needs_belf+:} false; then : 10950 $as_echo_n "(cached) " >&6 10951else 10952 ac_ext=c 10953ac_cpp='$CPP $CPPFLAGS' 10954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10956ac_compiler_gnu=$ac_cv_c_compiler_gnu 10957 10958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10959/* end confdefs.h. */ 10960 10961int 10962main () 10963{ 10964 10965 ; 10966 return 0; 10967} 10968_ACEOF 10969if ac_fn_c_try_link "$LINENO"; then : 10970 lt_cv_cc_needs_belf=yes 10971else 10972 lt_cv_cc_needs_belf=no 10973fi 10974rm -f core conftest.err conftest.$ac_objext \ 10975 conftest$ac_exeext conftest.$ac_ext 10976 ac_ext=c 10977ac_cpp='$CPP $CPPFLAGS' 10978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10980ac_compiler_gnu=$ac_cv_c_compiler_gnu 10981 10982fi 10983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 10984$as_echo "$lt_cv_cc_needs_belf" >&6; } 10985 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 10986 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 10987 CFLAGS="$SAVE_CFLAGS" 10988 fi 10989 ;; 10990sparc*-*solaris*) 10991 # Find out which ABI we are using. 10992 echo 'int i;' > conftest.$ac_ext 10993 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10994 (eval $ac_compile) 2>&5 10995 ac_status=$? 10996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10997 test $ac_status = 0; }; then 10998 case `/usr/bin/file conftest.o` in 10999 *64-bit*) 11000 case $lt_cv_prog_gnu_ld in 11001 yes*) LD="${LD-ld} -m elf64_sparc" ;; 11002 *) 11003 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 11004 LD="${LD-ld} -64" 11005 fi 11006 ;; 11007 esac 11008 ;; 11009 esac 11010 fi 11011 rm -rf conftest* 11012 ;; 11013esac 11014 11015need_locks="$enable_libtool_lock" 11016 11017 11018 case $host_os in 11019 rhapsody* | darwin*) 11020 if test -n "$ac_tool_prefix"; then 11021 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 11022set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 11023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11024$as_echo_n "checking for $ac_word... " >&6; } 11025if ${ac_cv_prog_DSYMUTIL+:} false; then : 11026 $as_echo_n "(cached) " >&6 11027else 11028 if test -n "$DSYMUTIL"; then 11029 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 11030else 11031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11032for as_dir in $PATH 11033do 11034 IFS=$as_save_IFS 11035 test -z "$as_dir" && as_dir=. 11036 for ac_exec_ext in '' $ac_executable_extensions; do 11037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11038 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 11039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11040 break 2 11041 fi 11042done 11043 done 11044IFS=$as_save_IFS 11045 11046fi 11047fi 11048DSYMUTIL=$ac_cv_prog_DSYMUTIL 11049if test -n "$DSYMUTIL"; then 11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 11051$as_echo "$DSYMUTIL" >&6; } 11052else 11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11054$as_echo "no" >&6; } 11055fi 11056 11057 11058fi 11059if test -z "$ac_cv_prog_DSYMUTIL"; then 11060 ac_ct_DSYMUTIL=$DSYMUTIL 11061 # Extract the first word of "dsymutil", so it can be a program name with args. 11062set dummy dsymutil; ac_word=$2 11063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11064$as_echo_n "checking for $ac_word... " >&6; } 11065if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 11066 $as_echo_n "(cached) " >&6 11067else 11068 if test -n "$ac_ct_DSYMUTIL"; then 11069 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 11070else 11071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11072for as_dir in $PATH 11073do 11074 IFS=$as_save_IFS 11075 test -z "$as_dir" && as_dir=. 11076 for ac_exec_ext in '' $ac_executable_extensions; do 11077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11078 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 11079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11080 break 2 11081 fi 11082done 11083 done 11084IFS=$as_save_IFS 11085 11086fi 11087fi 11088ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 11089if test -n "$ac_ct_DSYMUTIL"; then 11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 11091$as_echo "$ac_ct_DSYMUTIL" >&6; } 11092else 11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11094$as_echo "no" >&6; } 11095fi 11096 11097 if test "x$ac_ct_DSYMUTIL" = x; then 11098 DSYMUTIL=":" 11099 else 11100 case $cross_compiling:$ac_tool_warned in 11101yes:) 11102{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11103$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11104ac_tool_warned=yes ;; 11105esac 11106 DSYMUTIL=$ac_ct_DSYMUTIL 11107 fi 11108else 11109 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 11110fi 11111 11112 if test -n "$ac_tool_prefix"; then 11113 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 11114set dummy ${ac_tool_prefix}nmedit; ac_word=$2 11115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11116$as_echo_n "checking for $ac_word... " >&6; } 11117if ${ac_cv_prog_NMEDIT+:} false; then : 11118 $as_echo_n "(cached) " >&6 11119else 11120 if test -n "$NMEDIT"; then 11121 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 11122else 11123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11124for as_dir in $PATH 11125do 11126 IFS=$as_save_IFS 11127 test -z "$as_dir" && as_dir=. 11128 for ac_exec_ext in '' $ac_executable_extensions; do 11129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11130 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 11131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11132 break 2 11133 fi 11134done 11135 done 11136IFS=$as_save_IFS 11137 11138fi 11139fi 11140NMEDIT=$ac_cv_prog_NMEDIT 11141if test -n "$NMEDIT"; then 11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 11143$as_echo "$NMEDIT" >&6; } 11144else 11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11146$as_echo "no" >&6; } 11147fi 11148 11149 11150fi 11151if test -z "$ac_cv_prog_NMEDIT"; then 11152 ac_ct_NMEDIT=$NMEDIT 11153 # Extract the first word of "nmedit", so it can be a program name with args. 11154set dummy nmedit; ac_word=$2 11155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11156$as_echo_n "checking for $ac_word... " >&6; } 11157if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 11158 $as_echo_n "(cached) " >&6 11159else 11160 if test -n "$ac_ct_NMEDIT"; then 11161 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 11162else 11163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11164for as_dir in $PATH 11165do 11166 IFS=$as_save_IFS 11167 test -z "$as_dir" && as_dir=. 11168 for ac_exec_ext in '' $ac_executable_extensions; do 11169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11170 ac_cv_prog_ac_ct_NMEDIT="nmedit" 11171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11172 break 2 11173 fi 11174done 11175 done 11176IFS=$as_save_IFS 11177 11178fi 11179fi 11180ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 11181if test -n "$ac_ct_NMEDIT"; then 11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 11183$as_echo "$ac_ct_NMEDIT" >&6; } 11184else 11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11186$as_echo "no" >&6; } 11187fi 11188 11189 if test "x$ac_ct_NMEDIT" = x; then 11190 NMEDIT=":" 11191 else 11192 case $cross_compiling:$ac_tool_warned in 11193yes:) 11194{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11195$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11196ac_tool_warned=yes ;; 11197esac 11198 NMEDIT=$ac_ct_NMEDIT 11199 fi 11200else 11201 NMEDIT="$ac_cv_prog_NMEDIT" 11202fi 11203 11204 if test -n "$ac_tool_prefix"; then 11205 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 11206set dummy ${ac_tool_prefix}lipo; ac_word=$2 11207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11208$as_echo_n "checking for $ac_word... " >&6; } 11209if ${ac_cv_prog_LIPO+:} false; then : 11210 $as_echo_n "(cached) " >&6 11211else 11212 if test -n "$LIPO"; then 11213 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 11214else 11215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11216for as_dir in $PATH 11217do 11218 IFS=$as_save_IFS 11219 test -z "$as_dir" && as_dir=. 11220 for ac_exec_ext in '' $ac_executable_extensions; do 11221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11222 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 11223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11224 break 2 11225 fi 11226done 11227 done 11228IFS=$as_save_IFS 11229 11230fi 11231fi 11232LIPO=$ac_cv_prog_LIPO 11233if test -n "$LIPO"; then 11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 11235$as_echo "$LIPO" >&6; } 11236else 11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11238$as_echo "no" >&6; } 11239fi 11240 11241 11242fi 11243if test -z "$ac_cv_prog_LIPO"; then 11244 ac_ct_LIPO=$LIPO 11245 # Extract the first word of "lipo", so it can be a program name with args. 11246set dummy lipo; ac_word=$2 11247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11248$as_echo_n "checking for $ac_word... " >&6; } 11249if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 11250 $as_echo_n "(cached) " >&6 11251else 11252 if test -n "$ac_ct_LIPO"; then 11253 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 11254else 11255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11256for as_dir in $PATH 11257do 11258 IFS=$as_save_IFS 11259 test -z "$as_dir" && as_dir=. 11260 for ac_exec_ext in '' $ac_executable_extensions; do 11261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11262 ac_cv_prog_ac_ct_LIPO="lipo" 11263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11264 break 2 11265 fi 11266done 11267 done 11268IFS=$as_save_IFS 11269 11270fi 11271fi 11272ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 11273if test -n "$ac_ct_LIPO"; then 11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 11275$as_echo "$ac_ct_LIPO" >&6; } 11276else 11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11278$as_echo "no" >&6; } 11279fi 11280 11281 if test "x$ac_ct_LIPO" = x; then 11282 LIPO=":" 11283 else 11284 case $cross_compiling:$ac_tool_warned in 11285yes:) 11286{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11287$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11288ac_tool_warned=yes ;; 11289esac 11290 LIPO=$ac_ct_LIPO 11291 fi 11292else 11293 LIPO="$ac_cv_prog_LIPO" 11294fi 11295 11296 if test -n "$ac_tool_prefix"; then 11297 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 11298set dummy ${ac_tool_prefix}otool; ac_word=$2 11299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11300$as_echo_n "checking for $ac_word... " >&6; } 11301if ${ac_cv_prog_OTOOL+:} false; then : 11302 $as_echo_n "(cached) " >&6 11303else 11304 if test -n "$OTOOL"; then 11305 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 11306else 11307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11308for as_dir in $PATH 11309do 11310 IFS=$as_save_IFS 11311 test -z "$as_dir" && as_dir=. 11312 for ac_exec_ext in '' $ac_executable_extensions; do 11313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11314 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 11315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11316 break 2 11317 fi 11318done 11319 done 11320IFS=$as_save_IFS 11321 11322fi 11323fi 11324OTOOL=$ac_cv_prog_OTOOL 11325if test -n "$OTOOL"; then 11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 11327$as_echo "$OTOOL" >&6; } 11328else 11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11330$as_echo "no" >&6; } 11331fi 11332 11333 11334fi 11335if test -z "$ac_cv_prog_OTOOL"; then 11336 ac_ct_OTOOL=$OTOOL 11337 # Extract the first word of "otool", so it can be a program name with args. 11338set dummy otool; ac_word=$2 11339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11340$as_echo_n "checking for $ac_word... " >&6; } 11341if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 11342 $as_echo_n "(cached) " >&6 11343else 11344 if test -n "$ac_ct_OTOOL"; then 11345 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 11346else 11347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11348for as_dir in $PATH 11349do 11350 IFS=$as_save_IFS 11351 test -z "$as_dir" && as_dir=. 11352 for ac_exec_ext in '' $ac_executable_extensions; do 11353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11354 ac_cv_prog_ac_ct_OTOOL="otool" 11355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11356 break 2 11357 fi 11358done 11359 done 11360IFS=$as_save_IFS 11361 11362fi 11363fi 11364ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 11365if test -n "$ac_ct_OTOOL"; then 11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 11367$as_echo "$ac_ct_OTOOL" >&6; } 11368else 11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11370$as_echo "no" >&6; } 11371fi 11372 11373 if test "x$ac_ct_OTOOL" = x; then 11374 OTOOL=":" 11375 else 11376 case $cross_compiling:$ac_tool_warned in 11377yes:) 11378{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11379$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11380ac_tool_warned=yes ;; 11381esac 11382 OTOOL=$ac_ct_OTOOL 11383 fi 11384else 11385 OTOOL="$ac_cv_prog_OTOOL" 11386fi 11387 11388 if test -n "$ac_tool_prefix"; then 11389 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 11390set dummy ${ac_tool_prefix}otool64; ac_word=$2 11391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11392$as_echo_n "checking for $ac_word... " >&6; } 11393if ${ac_cv_prog_OTOOL64+:} false; then : 11394 $as_echo_n "(cached) " >&6 11395else 11396 if test -n "$OTOOL64"; then 11397 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 11398else 11399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11400for as_dir in $PATH 11401do 11402 IFS=$as_save_IFS 11403 test -z "$as_dir" && as_dir=. 11404 for ac_exec_ext in '' $ac_executable_extensions; do 11405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11406 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 11407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11408 break 2 11409 fi 11410done 11411 done 11412IFS=$as_save_IFS 11413 11414fi 11415fi 11416OTOOL64=$ac_cv_prog_OTOOL64 11417if test -n "$OTOOL64"; then 11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 11419$as_echo "$OTOOL64" >&6; } 11420else 11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11422$as_echo "no" >&6; } 11423fi 11424 11425 11426fi 11427if test -z "$ac_cv_prog_OTOOL64"; then 11428 ac_ct_OTOOL64=$OTOOL64 11429 # Extract the first word of "otool64", so it can be a program name with args. 11430set dummy otool64; ac_word=$2 11431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11432$as_echo_n "checking for $ac_word... " >&6; } 11433if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 11434 $as_echo_n "(cached) " >&6 11435else 11436 if test -n "$ac_ct_OTOOL64"; then 11437 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 11438else 11439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11440for as_dir in $PATH 11441do 11442 IFS=$as_save_IFS 11443 test -z "$as_dir" && as_dir=. 11444 for ac_exec_ext in '' $ac_executable_extensions; do 11445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11446 ac_cv_prog_ac_ct_OTOOL64="otool64" 11447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11448 break 2 11449 fi 11450done 11451 done 11452IFS=$as_save_IFS 11453 11454fi 11455fi 11456ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 11457if test -n "$ac_ct_OTOOL64"; then 11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 11459$as_echo "$ac_ct_OTOOL64" >&6; } 11460else 11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11462$as_echo "no" >&6; } 11463fi 11464 11465 if test "x$ac_ct_OTOOL64" = x; then 11466 OTOOL64=":" 11467 else 11468 case $cross_compiling:$ac_tool_warned in 11469yes:) 11470{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11471$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11472ac_tool_warned=yes ;; 11473esac 11474 OTOOL64=$ac_ct_OTOOL64 11475 fi 11476else 11477 OTOOL64="$ac_cv_prog_OTOOL64" 11478fi 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 11507$as_echo_n "checking for -single_module linker flag... " >&6; } 11508if ${lt_cv_apple_cc_single_mod+:} false; then : 11509 $as_echo_n "(cached) " >&6 11510else 11511 lt_cv_apple_cc_single_mod=no 11512 if test -z "${LT_MULTI_MODULE}"; then 11513 # By default we will add the -single_module flag. You can override 11514 # by either setting the environment variable LT_MULTI_MODULE 11515 # non-empty at configure time, or by adding -multi_module to the 11516 # link flags. 11517 rm -rf libconftest.dylib* 11518 echo "int foo(void){return 1;}" > conftest.c 11519 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 11520-dynamiclib -Wl,-single_module conftest.c" >&5 11521 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 11522 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 11523 _lt_result=$? 11524 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 11525 lt_cv_apple_cc_single_mod=yes 11526 else 11527 cat conftest.err >&5 11528 fi 11529 rm -rf libconftest.dylib* 11530 rm -f conftest.* 11531 fi 11532fi 11533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 11534$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 11535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 11536$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 11537if ${lt_cv_ld_exported_symbols_list+:} false; then : 11538 $as_echo_n "(cached) " >&6 11539else 11540 lt_cv_ld_exported_symbols_list=no 11541 save_LDFLAGS=$LDFLAGS 11542 echo "_main" > conftest.sym 11543 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 11544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11545/* end confdefs.h. */ 11546 11547int 11548main () 11549{ 11550 11551 ; 11552 return 0; 11553} 11554_ACEOF 11555if ac_fn_c_try_link "$LINENO"; then : 11556 lt_cv_ld_exported_symbols_list=yes 11557else 11558 lt_cv_ld_exported_symbols_list=no 11559fi 11560rm -f core conftest.err conftest.$ac_objext \ 11561 conftest$ac_exeext conftest.$ac_ext 11562 LDFLAGS="$save_LDFLAGS" 11563 11564fi 11565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 11566$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 11567 case $host_os in 11568 rhapsody* | darwin1.[012]) 11569 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 11570 darwin1.*) 11571 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 11572 darwin*) # darwin 5.x on 11573 # if running on 10.5 or later, the deployment target defaults 11574 # to the OS version, if on x86, and 10.4, the deployment 11575 # target defaults to 10.4. Don't you love it? 11576 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 11577 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 11578 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 11579 10.[012]*) 11580 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 11581 10.*) 11582 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 11583 esac 11584 ;; 11585 esac 11586 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 11587 _lt_dar_single_mod='$single_module' 11588 fi 11589 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 11590 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 11591 else 11592 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 11593 fi 11594 if test "$DSYMUTIL" != ":"; then 11595 _lt_dsymutil='~$DSYMUTIL $lib || :' 11596 else 11597 _lt_dsymutil= 11598 fi 11599 ;; 11600 esac 11601 11602for ac_header in dlfcn.h 11603do : 11604 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 11605" 11606if test "x$ac_cv_header_dlfcn_h" = xyes; then : 11607 cat >>confdefs.h <<_ACEOF 11608#define HAVE_DLFCN_H 1 11609_ACEOF 11610 11611fi 11612 11613done 11614 11615 11616 11617# Set options 11618 11619 11620 11621 11622 11623 # Check whether --enable-shared was given. 11624if test "${enable_shared+set}" = set; then : 11625 enableval=$enable_shared; p=${PACKAGE-default} 11626 case $enableval in 11627 yes) enable_shared=yes ;; 11628 no) enable_shared=no ;; 11629 *) 11630 enable_shared=no 11631 # Look at the argument we got. We use all the common list separators. 11632 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11633 for pkg in $enableval; do 11634 IFS="$lt_save_ifs" 11635 if test "X$pkg" = "X$p"; then 11636 enable_shared=yes 11637 fi 11638 done 11639 IFS="$lt_save_ifs" 11640 ;; 11641 esac 11642else 11643 enable_shared=yes 11644fi 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 # Check whether --enable-static was given. 11655if test "${enable_static+set}" = set; then : 11656 enableval=$enable_static; p=${PACKAGE-default} 11657 case $enableval in 11658 yes) enable_static=yes ;; 11659 no) enable_static=no ;; 11660 *) 11661 enable_static=no 11662 # Look at the argument we got. We use all the common list separators. 11663 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11664 for pkg in $enableval; do 11665 IFS="$lt_save_ifs" 11666 if test "X$pkg" = "X$p"; then 11667 enable_static=yes 11668 fi 11669 done 11670 IFS="$lt_save_ifs" 11671 ;; 11672 esac 11673else 11674 enable_static=yes 11675fi 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686# Check whether --with-pic was given. 11687if test "${with_pic+set}" = set; then : 11688 withval=$with_pic; pic_mode="$withval" 11689else 11690 pic_mode=default 11691fi 11692 11693 11694test -z "$pic_mode" && pic_mode=default 11695 11696 11697 11698 11699 11700 11701 11702 # Check whether --enable-fast-install was given. 11703if test "${enable_fast_install+set}" = set; then : 11704 enableval=$enable_fast_install; p=${PACKAGE-default} 11705 case $enableval in 11706 yes) enable_fast_install=yes ;; 11707 no) enable_fast_install=no ;; 11708 *) 11709 enable_fast_install=no 11710 # Look at the argument we got. We use all the common list separators. 11711 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11712 for pkg in $enableval; do 11713 IFS="$lt_save_ifs" 11714 if test "X$pkg" = "X$p"; then 11715 enable_fast_install=yes 11716 fi 11717 done 11718 IFS="$lt_save_ifs" 11719 ;; 11720 esac 11721else 11722 enable_fast_install=yes 11723fi 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735# This can be used to rebuild libtool when needed 11736LIBTOOL_DEPS="$ltmain" 11737 11738# Always use our own libtool. 11739LIBTOOL='$(SHELL) $(top_builddir)/libtool' 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765test -z "$LN_S" && LN_S="ln -s" 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780if test -n "${ZSH_VERSION+set}" ; then 11781 setopt NO_GLOB_SUBST 11782fi 11783 11784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 11785$as_echo_n "checking for objdir... " >&6; } 11786if ${lt_cv_objdir+:} false; then : 11787 $as_echo_n "(cached) " >&6 11788else 11789 rm -f .libs 2>/dev/null 11790mkdir .libs 2>/dev/null 11791if test -d .libs; then 11792 lt_cv_objdir=.libs 11793else 11794 # MS-DOS does not allow filenames that begin with a dot. 11795 lt_cv_objdir=_libs 11796fi 11797rmdir .libs 2>/dev/null 11798fi 11799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 11800$as_echo "$lt_cv_objdir" >&6; } 11801objdir=$lt_cv_objdir 11802 11803 11804 11805 11806 11807cat >>confdefs.h <<_ACEOF 11808#define LT_OBJDIR "$lt_cv_objdir/" 11809_ACEOF 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827case $host_os in 11828aix3*) 11829 # AIX sometimes has problems with the GCC collect2 program. For some 11830 # reason, if we set the COLLECT_NAMES environment variable, the problems 11831 # vanish in a puff of smoke. 11832 if test "X${COLLECT_NAMES+set}" != Xset; then 11833 COLLECT_NAMES= 11834 export COLLECT_NAMES 11835 fi 11836 ;; 11837esac 11838 11839# Sed substitution that helps us do robust quoting. It backslashifies 11840# metacharacters that are still active within double-quoted strings. 11841sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 11842 11843# Same as above, but do not quote variable references. 11844double_quote_subst='s/\(["`\\]\)/\\\1/g' 11845 11846# Sed substitution to delay expansion of an escaped shell variable in a 11847# double_quote_subst'ed string. 11848delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 11849 11850# Sed substitution to delay expansion of an escaped single quote. 11851delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 11852 11853# Sed substitution to avoid accidental globbing in evaled expressions 11854no_glob_subst='s/\*/\\\*/g' 11855 11856# Global variables: 11857ofile=libtool 11858can_build_shared=yes 11859 11860# All known linkers require a `.a' archive for static linking (except MSVC, 11861# which needs '.lib'). 11862libext=a 11863 11864with_gnu_ld="$lt_cv_prog_gnu_ld" 11865 11866old_CC="$CC" 11867old_CFLAGS="$CFLAGS" 11868 11869# Set sane defaults for various variables 11870test -z "$CC" && CC=cc 11871test -z "$LTCC" && LTCC=$CC 11872test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 11873test -z "$LD" && LD=ld 11874test -z "$ac_objext" && ac_objext=o 11875 11876for cc_temp in $compiler""; do 11877 case $cc_temp in 11878 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11879 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11880 \-*) ;; 11881 *) break;; 11882 esac 11883done 11884cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11885 11886 11887# Only perform the check for file, if the check method requires it 11888test -z "$MAGIC_CMD" && MAGIC_CMD=file 11889case $deplibs_check_method in 11890file_magic*) 11891 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 11892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 11893$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 11894if ${lt_cv_path_MAGIC_CMD+:} false; then : 11895 $as_echo_n "(cached) " >&6 11896else 11897 case $MAGIC_CMD in 11898[\\/*] | ?:[\\/]*) 11899 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 11900 ;; 11901*) 11902 lt_save_MAGIC_CMD="$MAGIC_CMD" 11903 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11904 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 11905 for ac_dir in $ac_dummy; do 11906 IFS="$lt_save_ifs" 11907 test -z "$ac_dir" && ac_dir=. 11908 if test -f $ac_dir/${ac_tool_prefix}file; then 11909 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 11910 if test -n "$file_magic_test_file"; then 11911 case $deplibs_check_method in 11912 "file_magic "*) 11913 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 11914 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 11915 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 11916 $EGREP "$file_magic_regex" > /dev/null; then 11917 : 11918 else 11919 cat <<_LT_EOF 1>&2 11920 11921*** Warning: the command libtool uses to detect shared libraries, 11922*** $file_magic_cmd, produces output that libtool cannot recognize. 11923*** The result is that libtool may fail to recognize shared libraries 11924*** as such. This will affect the creation of libtool libraries that 11925*** depend on shared libraries, but programs linked with such libtool 11926*** libraries will work regardless of this problem. Nevertheless, you 11927*** may want to report the problem to your system manager and/or to 11928*** bug-libtool@gnu.org 11929 11930_LT_EOF 11931 fi ;; 11932 esac 11933 fi 11934 break 11935 fi 11936 done 11937 IFS="$lt_save_ifs" 11938 MAGIC_CMD="$lt_save_MAGIC_CMD" 11939 ;; 11940esac 11941fi 11942 11943MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 11944if test -n "$MAGIC_CMD"; then 11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 11946$as_echo "$MAGIC_CMD" >&6; } 11947else 11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11949$as_echo "no" >&6; } 11950fi 11951 11952 11953 11954 11955 11956if test -z "$lt_cv_path_MAGIC_CMD"; then 11957 if test -n "$ac_tool_prefix"; then 11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 11959$as_echo_n "checking for file... " >&6; } 11960if ${lt_cv_path_MAGIC_CMD+:} false; then : 11961 $as_echo_n "(cached) " >&6 11962else 11963 case $MAGIC_CMD in 11964[\\/*] | ?:[\\/]*) 11965 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 11966 ;; 11967*) 11968 lt_save_MAGIC_CMD="$MAGIC_CMD" 11969 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11970 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 11971 for ac_dir in $ac_dummy; do 11972 IFS="$lt_save_ifs" 11973 test -z "$ac_dir" && ac_dir=. 11974 if test -f $ac_dir/file; then 11975 lt_cv_path_MAGIC_CMD="$ac_dir/file" 11976 if test -n "$file_magic_test_file"; then 11977 case $deplibs_check_method in 11978 "file_magic "*) 11979 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 11980 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 11981 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 11982 $EGREP "$file_magic_regex" > /dev/null; then 11983 : 11984 else 11985 cat <<_LT_EOF 1>&2 11986 11987*** Warning: the command libtool uses to detect shared libraries, 11988*** $file_magic_cmd, produces output that libtool cannot recognize. 11989*** The result is that libtool may fail to recognize shared libraries 11990*** as such. This will affect the creation of libtool libraries that 11991*** depend on shared libraries, but programs linked with such libtool 11992*** libraries will work regardless of this problem. Nevertheless, you 11993*** may want to report the problem to your system manager and/or to 11994*** bug-libtool@gnu.org 11995 11996_LT_EOF 11997 fi ;; 11998 esac 11999 fi 12000 break 12001 fi 12002 done 12003 IFS="$lt_save_ifs" 12004 MAGIC_CMD="$lt_save_MAGIC_CMD" 12005 ;; 12006esac 12007fi 12008 12009MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 12010if test -n "$MAGIC_CMD"; then 12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 12012$as_echo "$MAGIC_CMD" >&6; } 12013else 12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12015$as_echo "no" >&6; } 12016fi 12017 12018 12019 else 12020 MAGIC_CMD=: 12021 fi 12022fi 12023 12024 fi 12025 ;; 12026esac 12027 12028# Use C for the default configuration in the libtool script 12029 12030lt_save_CC="$CC" 12031ac_ext=c 12032ac_cpp='$CPP $CPPFLAGS' 12033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12035ac_compiler_gnu=$ac_cv_c_compiler_gnu 12036 12037 12038# Source file extension for C test sources. 12039ac_ext=c 12040 12041# Object file extension for compiled C test sources. 12042objext=o 12043objext=$objext 12044 12045# Code to be used in simple compile tests 12046lt_simple_compile_test_code="int some_variable = 0;" 12047 12048# Code to be used in simple link tests 12049lt_simple_link_test_code='int main(){return(0);}' 12050 12051 12052 12053 12054 12055 12056 12057# If no C compiler was specified, use CC. 12058LTCC=${LTCC-"$CC"} 12059 12060# If no C compiler flags were specified, use CFLAGS. 12061LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12062 12063# Allow CC to be a program name with arguments. 12064compiler=$CC 12065 12066# Save the default compiler, since it gets overwritten when the other 12067# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 12068compiler_DEFAULT=$CC 12069 12070# save warnings/boilerplate of simple test code 12071ac_outfile=conftest.$ac_objext 12072echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12073eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12074_lt_compiler_boilerplate=`cat conftest.err` 12075$RM conftest* 12076 12077ac_outfile=conftest.$ac_objext 12078echo "$lt_simple_link_test_code" >conftest.$ac_ext 12079eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12080_lt_linker_boilerplate=`cat conftest.err` 12081$RM -r conftest* 12082 12083 12084if test -n "$compiler"; then 12085 12086lt_prog_compiler_no_builtin_flag= 12087 12088if test "$GCC" = yes; then 12089 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 12090 12091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 12092$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 12093if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 12094 $as_echo_n "(cached) " >&6 12095else 12096 lt_cv_prog_compiler_rtti_exceptions=no 12097 ac_outfile=conftest.$ac_objext 12098 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12099 lt_compiler_flag="-fno-rtti -fno-exceptions" 12100 # Insert the option either (1) after the last *FLAGS variable, or 12101 # (2) before a word containing "conftest.", or (3) at the end. 12102 # Note that $ac_compile itself does not contain backslashes and begins 12103 # with a dollar sign (not a hyphen), so the echo should work correctly. 12104 # The option is referenced via a variable to avoid confusing sed. 12105 lt_compile=`echo "$ac_compile" | $SED \ 12106 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12107 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12108 -e 's:$: $lt_compiler_flag:'` 12109 (eval echo "\"\$as_me:12109: $lt_compile\"" >&5) 12110 (eval "$lt_compile" 2>conftest.err) 12111 ac_status=$? 12112 cat conftest.err >&5 12113 echo "$as_me:12113: \$? = $ac_status" >&5 12114 if (exit $ac_status) && test -s "$ac_outfile"; then 12115 # The compiler can only warn and ignore the option if not recognized 12116 # So say no if there are warnings other than the usual output. 12117 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12118 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12119 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12120 lt_cv_prog_compiler_rtti_exceptions=yes 12121 fi 12122 fi 12123 $RM conftest* 12124 12125fi 12126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 12127$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 12128 12129if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 12130 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 12131else 12132 : 12133fi 12134 12135fi 12136 12137 12138 12139 12140 12141 12142 lt_prog_compiler_wl= 12143lt_prog_compiler_pic= 12144lt_prog_compiler_static= 12145 12146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 12147$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 12148 12149 if test "$GCC" = yes; then 12150 lt_prog_compiler_wl='-Wl,' 12151 lt_prog_compiler_static='-static' 12152 12153 case $host_os in 12154 aix*) 12155 # All AIX code is PIC. 12156 if test "$host_cpu" = ia64; then 12157 # AIX 5 now supports IA64 processor 12158 lt_prog_compiler_static='-Bstatic' 12159 fi 12160 ;; 12161 12162 amigaos*) 12163 case $host_cpu in 12164 powerpc) 12165 # see comment about AmigaOS4 .so support 12166 lt_prog_compiler_pic='-fPIC' 12167 ;; 12168 m68k) 12169 # FIXME: we need at least 68020 code to build shared libraries, but 12170 # adding the `-m68020' flag to GCC prevents building anything better, 12171 # like `-m68040'. 12172 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 12173 ;; 12174 esac 12175 ;; 12176 12177 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12178 # PIC is the default for these OSes. 12179 ;; 12180 12181 mingw* | cygwin* | pw32* | os2* | cegcc*) 12182 # This hack is so that the source file can tell whether it is being 12183 # built for inclusion in a dll (and should export symbols for example). 12184 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12185 # (--disable-auto-import) libraries 12186 lt_prog_compiler_pic='-DDLL_EXPORT' 12187 ;; 12188 12189 darwin* | rhapsody*) 12190 # PIC is the default on this platform 12191 # Common symbols not allowed in MH_DYLIB files 12192 lt_prog_compiler_pic='-fno-common' 12193 ;; 12194 12195 hpux*) 12196 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 12197 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 12198 # sets the default TLS model and affects inlining. 12199 case $host_cpu in 12200 hppa*64*) 12201 # +Z the default 12202 ;; 12203 *) 12204 lt_prog_compiler_pic='-fPIC' 12205 ;; 12206 esac 12207 ;; 12208 12209 interix[3-9]*) 12210 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12211 # Instead, we relocate shared libraries at runtime. 12212 ;; 12213 12214 msdosdjgpp*) 12215 # Just because we use GCC doesn't mean we suddenly get shared libraries 12216 # on systems that don't support them. 12217 lt_prog_compiler_can_build_shared=no 12218 enable_shared=no 12219 ;; 12220 12221 *nto* | *qnx*) 12222 # QNX uses GNU C++, but need to define -shared option too, otherwise 12223 # it will coredump. 12224 lt_prog_compiler_pic='-fPIC -shared' 12225 ;; 12226 12227 sysv4*MP*) 12228 if test -d /usr/nec; then 12229 lt_prog_compiler_pic=-Kconform_pic 12230 fi 12231 ;; 12232 12233 *) 12234 lt_prog_compiler_pic='-fPIC' 12235 ;; 12236 esac 12237 else 12238 # PORTME Check for flag to pass linker flags through the system compiler. 12239 case $host_os in 12240 aix*) 12241 lt_prog_compiler_wl='-Wl,' 12242 if test "$host_cpu" = ia64; then 12243 # AIX 5 now supports IA64 processor 12244 lt_prog_compiler_static='-Bstatic' 12245 else 12246 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 12247 fi 12248 ;; 12249 12250 mingw* | cygwin* | pw32* | os2* | cegcc*) 12251 # This hack is so that the source file can tell whether it is being 12252 # built for inclusion in a dll (and should export symbols for example). 12253 lt_prog_compiler_pic='-DDLL_EXPORT' 12254 ;; 12255 12256 hpux9* | hpux10* | hpux11*) 12257 lt_prog_compiler_wl='-Wl,' 12258 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12259 # not for PA HP-UX. 12260 case $host_cpu in 12261 hppa*64*|ia64*) 12262 # +Z the default 12263 ;; 12264 *) 12265 lt_prog_compiler_pic='+Z' 12266 ;; 12267 esac 12268 # Is there a better lt_prog_compiler_static that works with the bundled CC? 12269 lt_prog_compiler_static='${wl}-a ${wl}archive' 12270 ;; 12271 12272 irix5* | irix6* | nonstopux*) 12273 lt_prog_compiler_wl='-Wl,' 12274 # PIC (with -KPIC) is the default. 12275 lt_prog_compiler_static='-non_shared' 12276 ;; 12277 12278 linux* | k*bsd*-gnu) 12279 case $cc_basename in 12280 # old Intel for x86_64 which still supported -KPIC. 12281 ecc*) 12282 lt_prog_compiler_wl='-Wl,' 12283 lt_prog_compiler_pic='-KPIC' 12284 lt_prog_compiler_static='-static' 12285 ;; 12286 # icc used to be incompatible with GCC. 12287 # ICC 10 doesn't accept -KPIC any more. 12288 icc* | ifort*) 12289 lt_prog_compiler_wl='-Wl,' 12290 lt_prog_compiler_pic='-fPIC' 12291 lt_prog_compiler_static='-static' 12292 ;; 12293 # Lahey Fortran 8.1. 12294 lf95*) 12295 lt_prog_compiler_wl='-Wl,' 12296 lt_prog_compiler_pic='--shared' 12297 lt_prog_compiler_static='--static' 12298 ;; 12299 pgcc* | pgf77* | pgf90* | pgf95*) 12300 # Portland Group compilers (*not* the Pentium gcc compiler, 12301 # which looks to be a dead project) 12302 lt_prog_compiler_wl='-Wl,' 12303 lt_prog_compiler_pic='-fpic' 12304 lt_prog_compiler_static='-Bstatic' 12305 ;; 12306 ccc*) 12307 lt_prog_compiler_wl='-Wl,' 12308 # All Alpha code is PIC. 12309 lt_prog_compiler_static='-non_shared' 12310 ;; 12311 xl*) 12312 # IBM XL C 8.0/Fortran 10.1 on PPC 12313 lt_prog_compiler_wl='-Wl,' 12314 lt_prog_compiler_pic='-qpic' 12315 lt_prog_compiler_static='-qstaticlink' 12316 ;; 12317 *) 12318 case `$CC -V 2>&1 | sed 5q` in 12319 *Sun\ C*) 12320 # Sun C 5.9 12321 lt_prog_compiler_pic='-KPIC' 12322 lt_prog_compiler_static='-Bstatic' 12323 lt_prog_compiler_wl='-Wl,' 12324 ;; 12325 *Sun\ F*) 12326 # Sun Fortran 8.3 passes all unrecognized flags to the linker 12327 lt_prog_compiler_pic='-KPIC' 12328 lt_prog_compiler_static='-Bstatic' 12329 lt_prog_compiler_wl='' 12330 ;; 12331 esac 12332 ;; 12333 esac 12334 ;; 12335 12336 newsos6) 12337 lt_prog_compiler_pic='-KPIC' 12338 lt_prog_compiler_static='-Bstatic' 12339 ;; 12340 12341 *nto* | *qnx*) 12342 # QNX uses GNU C++, but need to define -shared option too, otherwise 12343 # it will coredump. 12344 lt_prog_compiler_pic='-fPIC -shared' 12345 ;; 12346 12347 osf3* | osf4* | osf5*) 12348 lt_prog_compiler_wl='-Wl,' 12349 # All OSF/1 code is PIC. 12350 lt_prog_compiler_static='-non_shared' 12351 ;; 12352 12353 rdos*) 12354 lt_prog_compiler_static='-non_shared' 12355 ;; 12356 12357 solaris*) 12358 lt_prog_compiler_pic='-KPIC' 12359 lt_prog_compiler_static='-Bstatic' 12360 case $cc_basename in 12361 f77* | f90* | f95*) 12362 lt_prog_compiler_wl='-Qoption ld ';; 12363 *) 12364 lt_prog_compiler_wl='-Wl,';; 12365 esac 12366 ;; 12367 12368 sunos4*) 12369 lt_prog_compiler_wl='-Qoption ld ' 12370 lt_prog_compiler_pic='-PIC' 12371 lt_prog_compiler_static='-Bstatic' 12372 ;; 12373 12374 sysv4 | sysv4.2uw2* | sysv4.3*) 12375 lt_prog_compiler_wl='-Wl,' 12376 lt_prog_compiler_pic='-KPIC' 12377 lt_prog_compiler_static='-Bstatic' 12378 ;; 12379 12380 sysv4*MP*) 12381 if test -d /usr/nec ;then 12382 lt_prog_compiler_pic='-Kconform_pic' 12383 lt_prog_compiler_static='-Bstatic' 12384 fi 12385 ;; 12386 12387 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12388 lt_prog_compiler_wl='-Wl,' 12389 lt_prog_compiler_pic='-KPIC' 12390 lt_prog_compiler_static='-Bstatic' 12391 ;; 12392 12393 unicos*) 12394 lt_prog_compiler_wl='-Wl,' 12395 lt_prog_compiler_can_build_shared=no 12396 ;; 12397 12398 uts4*) 12399 lt_prog_compiler_pic='-pic' 12400 lt_prog_compiler_static='-Bstatic' 12401 ;; 12402 12403 *) 12404 lt_prog_compiler_can_build_shared=no 12405 ;; 12406 esac 12407 fi 12408 12409case $host_os in 12410 # For platforms which do not support PIC, -DPIC is meaningless: 12411 *djgpp*) 12412 lt_prog_compiler_pic= 12413 ;; 12414 *) 12415 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 12416 ;; 12417esac 12418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 12419$as_echo "$lt_prog_compiler_pic" >&6; } 12420 12421 12422 12423 12424 12425 12426# 12427# Check to make sure the PIC flag actually works. 12428# 12429if test -n "$lt_prog_compiler_pic"; then 12430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 12431$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 12432if ${lt_cv_prog_compiler_pic_works+:} false; then : 12433 $as_echo_n "(cached) " >&6 12434else 12435 lt_cv_prog_compiler_pic_works=no 12436 ac_outfile=conftest.$ac_objext 12437 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12438 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 12439 # Insert the option either (1) after the last *FLAGS variable, or 12440 # (2) before a word containing "conftest.", or (3) at the end. 12441 # Note that $ac_compile itself does not contain backslashes and begins 12442 # with a dollar sign (not a hyphen), so the echo should work correctly. 12443 # The option is referenced via a variable to avoid confusing sed. 12444 lt_compile=`echo "$ac_compile" | $SED \ 12445 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12446 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12447 -e 's:$: $lt_compiler_flag:'` 12448 (eval echo "\"\$as_me:12448: $lt_compile\"" >&5) 12449 (eval "$lt_compile" 2>conftest.err) 12450 ac_status=$? 12451 cat conftest.err >&5 12452 echo "$as_me:12452: \$? = $ac_status" >&5 12453 if (exit $ac_status) && test -s "$ac_outfile"; then 12454 # The compiler can only warn and ignore the option if not recognized 12455 # So say no if there are warnings other than the usual output. 12456 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12457 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12458 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12459 lt_cv_prog_compiler_pic_works=yes 12460 fi 12461 fi 12462 $RM conftest* 12463 12464fi 12465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 12466$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 12467 12468if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 12469 case $lt_prog_compiler_pic in 12470 "" | " "*) ;; 12471 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 12472 esac 12473else 12474 lt_prog_compiler_pic= 12475 lt_prog_compiler_can_build_shared=no 12476fi 12477 12478fi 12479 12480 12481 12482 12483 12484 12485# 12486# Check to make sure the static flag actually works. 12487# 12488wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 12489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12490$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 12491if ${lt_cv_prog_compiler_static_works+:} false; then : 12492 $as_echo_n "(cached) " >&6 12493else 12494 lt_cv_prog_compiler_static_works=no 12495 save_LDFLAGS="$LDFLAGS" 12496 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12497 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12498 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12499 # The linker can only warn and ignore the option if not recognized 12500 # So say no if there are warnings 12501 if test -s conftest.err; then 12502 # Append any errors to the config.log. 12503 cat conftest.err 1>&5 12504 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12505 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12506 if diff conftest.exp conftest.er2 >/dev/null; then 12507 lt_cv_prog_compiler_static_works=yes 12508 fi 12509 else 12510 lt_cv_prog_compiler_static_works=yes 12511 fi 12512 fi 12513 $RM -r conftest* 12514 LDFLAGS="$save_LDFLAGS" 12515 12516fi 12517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 12518$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 12519 12520if test x"$lt_cv_prog_compiler_static_works" = xyes; then 12521 : 12522else 12523 lt_prog_compiler_static= 12524fi 12525 12526 12527 12528 12529 12530 12531 12532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 12533$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12534if ${lt_cv_prog_compiler_c_o+:} false; then : 12535 $as_echo_n "(cached) " >&6 12536else 12537 lt_cv_prog_compiler_c_o=no 12538 $RM -r conftest 2>/dev/null 12539 mkdir conftest 12540 cd conftest 12541 mkdir out 12542 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12543 12544 lt_compiler_flag="-o out/conftest2.$ac_objext" 12545 # Insert the option either (1) after the last *FLAGS variable, or 12546 # (2) before a word containing "conftest.", or (3) at the end. 12547 # Note that $ac_compile itself does not contain backslashes and begins 12548 # with a dollar sign (not a hyphen), so the echo should work correctly. 12549 lt_compile=`echo "$ac_compile" | $SED \ 12550 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12551 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12552 -e 's:$: $lt_compiler_flag:'` 12553 (eval echo "\"\$as_me:12553: $lt_compile\"" >&5) 12554 (eval "$lt_compile" 2>out/conftest.err) 12555 ac_status=$? 12556 cat out/conftest.err >&5 12557 echo "$as_me:12557: \$? = $ac_status" >&5 12558 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12559 then 12560 # The compiler can only warn and ignore the option if not recognized 12561 # So say no if there are warnings 12562 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12563 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12564 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12565 lt_cv_prog_compiler_c_o=yes 12566 fi 12567 fi 12568 chmod u+w . 2>&5 12569 $RM conftest* 12570 # SGI C++ compiler will create directory out/ii_files/ for 12571 # template instantiation 12572 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 12573 $RM out/* && rmdir out 12574 cd .. 12575 $RM -r conftest 12576 $RM conftest* 12577 12578fi 12579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 12580$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 12581 12582 12583 12584 12585 12586 12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 12588$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12589if ${lt_cv_prog_compiler_c_o+:} false; then : 12590 $as_echo_n "(cached) " >&6 12591else 12592 lt_cv_prog_compiler_c_o=no 12593 $RM -r conftest 2>/dev/null 12594 mkdir conftest 12595 cd conftest 12596 mkdir out 12597 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12598 12599 lt_compiler_flag="-o out/conftest2.$ac_objext" 12600 # Insert the option either (1) after the last *FLAGS variable, or 12601 # (2) before a word containing "conftest.", or (3) at the end. 12602 # Note that $ac_compile itself does not contain backslashes and begins 12603 # with a dollar sign (not a hyphen), so the echo should work correctly. 12604 lt_compile=`echo "$ac_compile" | $SED \ 12605 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12606 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12607 -e 's:$: $lt_compiler_flag:'` 12608 (eval echo "\"\$as_me:12608: $lt_compile\"" >&5) 12609 (eval "$lt_compile" 2>out/conftest.err) 12610 ac_status=$? 12611 cat out/conftest.err >&5 12612 echo "$as_me:12612: \$? = $ac_status" >&5 12613 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12614 then 12615 # The compiler can only warn and ignore the option if not recognized 12616 # So say no if there are warnings 12617 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12618 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12619 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12620 lt_cv_prog_compiler_c_o=yes 12621 fi 12622 fi 12623 chmod u+w . 2>&5 12624 $RM conftest* 12625 # SGI C++ compiler will create directory out/ii_files/ for 12626 # template instantiation 12627 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 12628 $RM out/* && rmdir out 12629 cd .. 12630 $RM -r conftest 12631 $RM conftest* 12632 12633fi 12634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 12635$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 12636 12637 12638 12639 12640hard_links="nottested" 12641if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 12642 # do not overwrite the value of need_locks provided by the user 12643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 12644$as_echo_n "checking if we can lock with hard links... " >&6; } 12645 hard_links=yes 12646 $RM conftest* 12647 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12648 touch conftest.a 12649 ln conftest.a conftest.b 2>&5 || hard_links=no 12650 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 12652$as_echo "$hard_links" >&6; } 12653 if test "$hard_links" = no; then 12654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12655$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12656 need_locks=warn 12657 fi 12658else 12659 need_locks=no 12660fi 12661 12662 12663 12664 12665 12666 12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12668$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12669 12670 runpath_var= 12671 allow_undefined_flag= 12672 always_export_symbols=no 12673 archive_cmds= 12674 archive_expsym_cmds= 12675 compiler_needs_object=no 12676 enable_shared_with_static_runtimes=no 12677 export_dynamic_flag_spec= 12678 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12679 hardcode_automatic=no 12680 hardcode_direct=no 12681 hardcode_direct_absolute=no 12682 hardcode_libdir_flag_spec= 12683 hardcode_libdir_flag_spec_ld= 12684 hardcode_libdir_separator= 12685 hardcode_minus_L=no 12686 hardcode_shlibpath_var=unsupported 12687 inherit_rpath=no 12688 link_all_deplibs=unknown 12689 module_cmds= 12690 module_expsym_cmds= 12691 old_archive_from_new_cmds= 12692 old_archive_from_expsyms_cmds= 12693 thread_safe_flag_spec= 12694 whole_archive_flag_spec= 12695 # include_expsyms should be a list of space-separated symbols to be *always* 12696 # included in the symbol list 12697 include_expsyms= 12698 # exclude_expsyms can be an extended regexp of symbols to exclude 12699 # it will be wrapped by ` (' and `)$', so one must not match beginning or 12700 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 12701 # as well as any symbol that contains `d'. 12702 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 12703 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 12704 # platforms (ab)use it in PIC code, but their linkers get confused if 12705 # the symbol is explicitly referenced. Since portable code cannot 12706 # rely on this symbol name, it's probably fine to never include it in 12707 # preloaded symbol tables. 12708 # Exclude shared library initialization/finalization symbols. 12709 extract_expsyms_cmds= 12710 12711 case $host_os in 12712 cygwin* | mingw* | pw32* | cegcc*) 12713 # FIXME: the MSVC++ port hasn't been tested in a loooong time 12714 # When not using gcc, we currently assume that we are using 12715 # Microsoft Visual C++. 12716 if test "$GCC" != yes; then 12717 with_gnu_ld=no 12718 fi 12719 ;; 12720 interix*) 12721 # we just hope/assume this is gcc and not c89 (= MSVC++) 12722 with_gnu_ld=yes 12723 ;; 12724 openbsd*) 12725 with_gnu_ld=no 12726 ;; 12727 esac 12728 12729 ld_shlibs=yes 12730 if test "$with_gnu_ld" = yes; then 12731 # If archive_cmds runs LD, not CC, wlarc should be empty 12732 wlarc='${wl}' 12733 12734 # Set some defaults for GNU ld with shared library support. These 12735 # are reset later if shared libraries are not supported. Putting them 12736 # here allows them to be overridden if necessary. 12737 runpath_var=LD_RUN_PATH 12738 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12739 export_dynamic_flag_spec='${wl}--export-dynamic' 12740 # ancient GNU ld didn't support --whole-archive et. al. 12741 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 12742 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12743 else 12744 whole_archive_flag_spec= 12745 fi 12746 supports_anon_versioning=no 12747 case `$LD -v 2>&1` in 12748 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 12749 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 12750 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 12751 *\ 2.11.*) ;; # other 2.11 versions 12752 *) supports_anon_versioning=yes ;; 12753 esac 12754 12755 # See if GNU ld supports shared libraries. 12756 case $host_os in 12757 aix[3-9]*) 12758 # On AIX/PPC, the GNU linker is very broken 12759 if test "$host_cpu" != ia64; then 12760 ld_shlibs=no 12761 cat <<_LT_EOF 1>&2 12762 12763*** Warning: the GNU linker, at least up to release 2.9.1, is reported 12764*** to be unable to reliably create shared libraries on AIX. 12765*** Therefore, libtool is disabling shared libraries support. If you 12766*** really care for shared libraries, you may want to modify your PATH 12767*** so that a non-GNU linker is found, and then restart. 12768 12769_LT_EOF 12770 fi 12771 ;; 12772 12773 amigaos*) 12774 case $host_cpu in 12775 powerpc) 12776 # see comment about AmigaOS4 .so support 12777 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12778 archive_expsym_cmds='' 12779 ;; 12780 m68k) 12781 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)' 12782 hardcode_libdir_flag_spec='-L$libdir' 12783 hardcode_minus_L=yes 12784 ;; 12785 esac 12786 ;; 12787 12788 beos*) 12789 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12790 allow_undefined_flag=unsupported 12791 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12792 # support --undefined. This deserves some investigation. FIXME 12793 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12794 else 12795 ld_shlibs=no 12796 fi 12797 ;; 12798 12799 cygwin* | mingw* | pw32* | cegcc*) 12800 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 12801 # as there is no search path for DLLs. 12802 hardcode_libdir_flag_spec='-L$libdir' 12803 allow_undefined_flag=unsupported 12804 always_export_symbols=no 12805 enable_shared_with_static_runtimes=yes 12806 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 12807 12808 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12809 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12810 # If the export-symbols file already is a .def file (1st line 12811 # is EXPORTS), use it as is; otherwise, prepend... 12812 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12813 cp $export_symbols $output_objdir/$soname.def; 12814 else 12815 echo EXPORTS > $output_objdir/$soname.def; 12816 cat $export_symbols >> $output_objdir/$soname.def; 12817 fi~ 12818 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12819 else 12820 ld_shlibs=no 12821 fi 12822 ;; 12823 12824 interix[3-9]*) 12825 hardcode_direct=no 12826 hardcode_shlibpath_var=no 12827 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 12828 export_dynamic_flag_spec='${wl}-E' 12829 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12830 # Instead, shared libraries are loaded at an image base (0x10000000 by 12831 # default) and relocated if they conflict, which is a slow very memory 12832 # consuming and fragmenting process. To avoid this, we pick a random, 12833 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12834 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12835 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 12836 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' 12837 ;; 12838 12839 gnu* | linux* | tpf* | k*bsd*-gnu) 12840 tmp_diet=no 12841 if test "$host_os" = linux-dietlibc; then 12842 case $cc_basename in 12843 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 12844 esac 12845 fi 12846 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 12847 && test "$tmp_diet" = no 12848 then 12849 tmp_addflag= 12850 tmp_sharedflag='-shared' 12851 case $cc_basename,$host_cpu in 12852 pgcc*) # Portland Group C compiler 12853 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' 12854 tmp_addflag=' $pic_flag' 12855 ;; 12856 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 12857 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' 12858 tmp_addflag=' $pic_flag -Mnomain' ;; 12859 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 12860 tmp_addflag=' -i_dynamic' ;; 12861 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 12862 tmp_addflag=' -i_dynamic -nofor_main' ;; 12863 ifc* | ifort*) # Intel Fortran compiler 12864 tmp_addflag=' -nofor_main' ;; 12865 lf95*) # Lahey Fortran 8.1 12866 whole_archive_flag_spec= 12867 tmp_sharedflag='--shared' ;; 12868 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 12869 tmp_sharedflag='-qmkshrobj' 12870 tmp_addflag= ;; 12871 esac 12872 case `$CC -V 2>&1 | sed 5q` in 12873 *Sun\ C*) # Sun C 5.9 12874 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' 12875 compiler_needs_object=yes 12876 tmp_sharedflag='-G' ;; 12877 *Sun\ F*) # Sun Fortran 8.3 12878 tmp_sharedflag='-G' ;; 12879 esac 12880 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12881 12882 if test "x$supports_anon_versioning" = xyes; then 12883 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 12884 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12885 echo "local: *; };" >> $output_objdir/$libname.ver~ 12886 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 12887 fi 12888 12889 case $cc_basename in 12890 xlf*) 12891 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 12892 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 12893 hardcode_libdir_flag_spec= 12894 hardcode_libdir_flag_spec_ld='-rpath $libdir' 12895 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 12896 if test "x$supports_anon_versioning" = xyes; then 12897 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 12898 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12899 echo "local: *; };" >> $output_objdir/$libname.ver~ 12900 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 12901 fi 12902 ;; 12903 esac 12904 else 12905 ld_shlibs=no 12906 fi 12907 ;; 12908 12909 netbsd*) 12910 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12911 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 12912 wlarc= 12913 else 12914 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12915 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12916 fi 12917 ;; 12918 12919 solaris*) 12920 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 12921 ld_shlibs=no 12922 cat <<_LT_EOF 1>&2 12923 12924*** Warning: The releases 2.8.* of the GNU linker cannot reliably 12925*** create shared libraries on Solaris systems. Therefore, libtool 12926*** is disabling shared libraries support. We urge you to upgrade GNU 12927*** binutils to release 2.9.1 or newer. Another option is to modify 12928*** your PATH or compiler configuration so that the native linker is 12929*** used, and then restart. 12930 12931_LT_EOF 12932 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12933 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12934 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12935 else 12936 ld_shlibs=no 12937 fi 12938 ;; 12939 12940 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 12941 case `$LD -v 2>&1` in 12942 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 12943 ld_shlibs=no 12944 cat <<_LT_EOF 1>&2 12945 12946*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 12947*** reliably create shared libraries on SCO systems. Therefore, libtool 12948*** is disabling shared libraries support. We urge you to upgrade GNU 12949*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 12950*** your PATH or compiler configuration so that the native linker is 12951*** used, and then restart. 12952 12953_LT_EOF 12954 ;; 12955 *) 12956 # For security reasons, it is highly recommended that you always 12957 # use absolute paths for naming shared libraries, and exclude the 12958 # DT_RUNPATH tag from executables and libraries. But doing so 12959 # requires that you compile everything twice, which is a pain. 12960 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12961 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12962 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12963 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12964 else 12965 ld_shlibs=no 12966 fi 12967 ;; 12968 esac 12969 ;; 12970 12971 sunos4*) 12972 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12973 wlarc= 12974 hardcode_direct=yes 12975 hardcode_shlibpath_var=no 12976 ;; 12977 12978 *) 12979 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12980 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12981 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12982 else 12983 ld_shlibs=no 12984 fi 12985 ;; 12986 esac 12987 12988 if test "$ld_shlibs" = no; then 12989 runpath_var= 12990 hardcode_libdir_flag_spec= 12991 export_dynamic_flag_spec= 12992 whole_archive_flag_spec= 12993 fi 12994 else 12995 # PORTME fill in a description of your system's linker (not GNU ld) 12996 case $host_os in 12997 aix3*) 12998 allow_undefined_flag=unsupported 12999 always_export_symbols=yes 13000 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' 13001 # Note: this linker hardcodes the directories in LIBPATH if there 13002 # are no directories specified by -L. 13003 hardcode_minus_L=yes 13004 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 13005 # Neither direct hardcoding nor static linking is supported with a 13006 # broken collect2. 13007 hardcode_direct=unsupported 13008 fi 13009 ;; 13010 13011 aix[4-9]*) 13012 if test "$host_cpu" = ia64; then 13013 # On IA64, the linker does run time linking by default, so we don't 13014 # have to do anything special. 13015 aix_use_runtimelinking=no 13016 exp_sym_flag='-Bexport' 13017 no_entry_flag="" 13018 else 13019 # If we're using GNU nm, then we don't want the "-C" option. 13020 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13021 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 13022 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' 13023 else 13024 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' 13025 fi 13026 aix_use_runtimelinking=no 13027 13028 # Test if we are trying to use run time linking or normal 13029 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13030 # need to do runtime linking. 13031 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13032 for ld_flag in $LDFLAGS; do 13033 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 13034 aix_use_runtimelinking=yes 13035 break 13036 fi 13037 done 13038 ;; 13039 esac 13040 13041 exp_sym_flag='-bexport' 13042 no_entry_flag='-bnoentry' 13043 fi 13044 13045 # When large executables or shared objects are built, AIX ld can 13046 # have problems creating the table of contents. If linking a library 13047 # or program results in "error TOC overflow" add -mminimal-toc to 13048 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13049 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13050 13051 archive_cmds='' 13052 hardcode_direct=yes 13053 hardcode_direct_absolute=yes 13054 hardcode_libdir_separator=':' 13055 link_all_deplibs=yes 13056 file_list_spec='${wl}-f,' 13057 13058 if test "$GCC" = yes; then 13059 case $host_os in aix4.[012]|aix4.[012].*) 13060 # We only want to do this on AIX 4.2 and lower, the check 13061 # below for broken collect2 doesn't work under 4.3+ 13062 collect2name=`${CC} -print-prog-name=collect2` 13063 if test -f "$collect2name" && 13064 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13065 then 13066 # We have reworked collect2 13067 : 13068 else 13069 # We have old collect2 13070 hardcode_direct=unsupported 13071 # It fails to find uninstalled libraries when the uninstalled 13072 # path is not listed in the libpath. Setting hardcode_minus_L 13073 # to unsupported forces relinking 13074 hardcode_minus_L=yes 13075 hardcode_libdir_flag_spec='-L$libdir' 13076 hardcode_libdir_separator= 13077 fi 13078 ;; 13079 esac 13080 shared_flag='-shared' 13081 if test "$aix_use_runtimelinking" = yes; then 13082 shared_flag="$shared_flag "'${wl}-G' 13083 fi 13084 else 13085 # not using gcc 13086 if test "$host_cpu" = ia64; then 13087 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13088 # chokes on -Wl,-G. The following line is correct: 13089 shared_flag='-G' 13090 else 13091 if test "$aix_use_runtimelinking" = yes; then 13092 shared_flag='${wl}-G' 13093 else 13094 shared_flag='${wl}-bM:SRE' 13095 fi 13096 fi 13097 fi 13098 13099 export_dynamic_flag_spec='${wl}-bexpall' 13100 # It seems that -bexpall does not export symbols beginning with 13101 # underscore (_), so it is better to generate a list of symbols to export. 13102 always_export_symbols=yes 13103 if test "$aix_use_runtimelinking" = yes; then 13104 # Warning - without using the other runtime loading flags (-brtl), 13105 # -berok will link without error, but may produce a broken library. 13106 allow_undefined_flag='-berok' 13107 # Determine the default libpath from the value encoded in an 13108 # empty executable. 13109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13110/* end confdefs.h. */ 13111 13112int 13113main () 13114{ 13115 13116 ; 13117 return 0; 13118} 13119_ACEOF 13120if ac_fn_c_try_link "$LINENO"; then : 13121 13122lt_aix_libpath_sed=' 13123 /Import File Strings/,/^$/ { 13124 /^0/ { 13125 s/^0 *\(.*\)$/\1/ 13126 p 13127 } 13128 }' 13129aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13130# Check for a 64-bit object if we didn't find anything. 13131if test -z "$aix_libpath"; then 13132 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13133fi 13134fi 13135rm -f core conftest.err conftest.$ac_objext \ 13136 conftest$ac_exeext conftest.$ac_ext 13137if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13138 13139 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 13140 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 13141 else 13142 if test "$host_cpu" = ia64; then 13143 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 13144 allow_undefined_flag="-z nodefs" 13145 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" 13146 else 13147 # Determine the default libpath from the value encoded in an 13148 # empty executable. 13149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13150/* end confdefs.h. */ 13151 13152int 13153main () 13154{ 13155 13156 ; 13157 return 0; 13158} 13159_ACEOF 13160if ac_fn_c_try_link "$LINENO"; then : 13161 13162lt_aix_libpath_sed=' 13163 /Import File Strings/,/^$/ { 13164 /^0/ { 13165 s/^0 *\(.*\)$/\1/ 13166 p 13167 } 13168 }' 13169aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13170# Check for a 64-bit object if we didn't find anything. 13171if test -z "$aix_libpath"; then 13172 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13173fi 13174fi 13175rm -f core conftest.err conftest.$ac_objext \ 13176 conftest$ac_exeext conftest.$ac_ext 13177if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13178 13179 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 13180 # Warning - without using the other run time loading flags, 13181 # -berok will link without error, but may produce a broken library. 13182 no_undefined_flag=' ${wl}-bernotok' 13183 allow_undefined_flag=' ${wl}-berok' 13184 # Exported symbols can be pulled into shared objects from archives 13185 whole_archive_flag_spec='$convenience' 13186 archive_cmds_need_lc=yes 13187 # This is similar to how AIX traditionally builds its shared libraries. 13188 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' 13189 fi 13190 fi 13191 ;; 13192 13193 amigaos*) 13194 case $host_cpu in 13195 powerpc) 13196 # see comment about AmigaOS4 .so support 13197 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13198 archive_expsym_cmds='' 13199 ;; 13200 m68k) 13201 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)' 13202 hardcode_libdir_flag_spec='-L$libdir' 13203 hardcode_minus_L=yes 13204 ;; 13205 esac 13206 ;; 13207 13208 bsdi[45]*) 13209 export_dynamic_flag_spec=-rdynamic 13210 ;; 13211 13212 cygwin* | mingw* | pw32* | cegcc*) 13213 # When not using gcc, we currently assume that we are using 13214 # Microsoft Visual C++. 13215 # hardcode_libdir_flag_spec is actually meaningless, as there is 13216 # no search path for DLLs. 13217 hardcode_libdir_flag_spec=' ' 13218 allow_undefined_flag=unsupported 13219 # Tell ltmain to make .lib files, not .a files. 13220 libext=lib 13221 # Tell ltmain to make .dll files, not .so files. 13222 shrext_cmds=".dll" 13223 # FIXME: Setting linknames here is a bad hack. 13224 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 13225 # The linker will automatically build a .lib file if we build a DLL. 13226 old_archive_from_new_cmds='true' 13227 # FIXME: Should let the user specify the lib program. 13228 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 13229 fix_srcfile_path='`cygpath -w "$srcfile"`' 13230 enable_shared_with_static_runtimes=yes 13231 ;; 13232 13233 darwin* | rhapsody*) 13234 13235 13236 archive_cmds_need_lc=no 13237 hardcode_direct=no 13238 hardcode_automatic=yes 13239 hardcode_shlibpath_var=unsupported 13240 whole_archive_flag_spec='' 13241 link_all_deplibs=yes 13242 allow_undefined_flag="$_lt_dar_allow_undefined" 13243 case $cc_basename in 13244 ifort*) _lt_dar_can_shared=yes ;; 13245 *) _lt_dar_can_shared=$GCC ;; 13246 esac 13247 if test "$_lt_dar_can_shared" = "yes"; then 13248 output_verbose_link_cmd=echo 13249 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 13250 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 13251 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}" 13252 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}" 13253 13254 else 13255 ld_shlibs=no 13256 fi 13257 13258 ;; 13259 13260 dgux*) 13261 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13262 hardcode_libdir_flag_spec='-L$libdir' 13263 hardcode_shlibpath_var=no 13264 ;; 13265 13266 freebsd1*) 13267 ld_shlibs=no 13268 ;; 13269 13270 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 13271 # support. Future versions do this automatically, but an explicit c++rt0.o 13272 # does not break anything, and helps significantly (at the cost of a little 13273 # extra space). 13274 freebsd2.2*) 13275 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 13276 hardcode_libdir_flag_spec='-R$libdir' 13277 hardcode_direct=yes 13278 hardcode_shlibpath_var=no 13279 ;; 13280 13281 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 13282 freebsd2*) 13283 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13284 hardcode_direct=yes 13285 hardcode_minus_L=yes 13286 hardcode_shlibpath_var=no 13287 ;; 13288 13289 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 13290 freebsd* | dragonfly*) 13291 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 13292 hardcode_libdir_flag_spec='-R$libdir' 13293 hardcode_direct=yes 13294 hardcode_shlibpath_var=no 13295 ;; 13296 13297 hpux9*) 13298 if test "$GCC" = yes; then 13299 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' 13300 else 13301 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' 13302 fi 13303 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 13304 hardcode_libdir_separator=: 13305 hardcode_direct=yes 13306 13307 # hardcode_minus_L: Not really in the search PATH, 13308 # but as the default location of the library. 13309 hardcode_minus_L=yes 13310 export_dynamic_flag_spec='${wl}-E' 13311 ;; 13312 13313 hpux10*) 13314 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 13315 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13316 else 13317 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 13318 fi 13319 if test "$with_gnu_ld" = no; then 13320 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 13321 hardcode_libdir_flag_spec_ld='+b $libdir' 13322 hardcode_libdir_separator=: 13323 hardcode_direct=yes 13324 hardcode_direct_absolute=yes 13325 export_dynamic_flag_spec='${wl}-E' 13326 # hardcode_minus_L: Not really in the search PATH, 13327 # but as the default location of the library. 13328 hardcode_minus_L=yes 13329 fi 13330 ;; 13331 13332 hpux11*) 13333 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 13334 case $host_cpu in 13335 hppa*64*) 13336 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13337 ;; 13338 ia64*) 13339 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13340 ;; 13341 *) 13342 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13343 ;; 13344 esac 13345 else 13346 case $host_cpu in 13347 hppa*64*) 13348 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13349 ;; 13350 ia64*) 13351 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13352 ;; 13353 *) 13354 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13355 ;; 13356 esac 13357 fi 13358 if test "$with_gnu_ld" = no; then 13359 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 13360 hardcode_libdir_separator=: 13361 13362 case $host_cpu in 13363 hppa*64*|ia64*) 13364 hardcode_direct=no 13365 hardcode_shlibpath_var=no 13366 ;; 13367 *) 13368 hardcode_direct=yes 13369 hardcode_direct_absolute=yes 13370 export_dynamic_flag_spec='${wl}-E' 13371 13372 # hardcode_minus_L: Not really in the search PATH, 13373 # but as the default location of the library. 13374 hardcode_minus_L=yes 13375 ;; 13376 esac 13377 fi 13378 ;; 13379 13380 irix5* | irix6* | nonstopux*) 13381 if test "$GCC" = yes; then 13382 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 13383 # Try to use the -exported_symbol ld option, if it does not 13384 # work, assume that -exports_file does not work either and 13385 # implicitly export all symbols. 13386 save_LDFLAGS="$LDFLAGS" 13387 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 13388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13389/* end confdefs.h. */ 13390int foo (void) { return 0; } 13391_ACEOF 13392if ac_fn_c_try_link "$LINENO"; then : 13393 13394 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 13395 13396fi 13397rm -f core conftest.err conftest.$ac_objext \ 13398 conftest$ac_exeext conftest.$ac_ext 13399 LDFLAGS="$save_LDFLAGS" 13400 else 13401 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 13402 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 13403 fi 13404 archive_cmds_need_lc='no' 13405 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 13406 hardcode_libdir_separator=: 13407 inherit_rpath=yes 13408 link_all_deplibs=yes 13409 ;; 13410 13411 netbsd*) 13412 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13413 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 13414 else 13415 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 13416 fi 13417 hardcode_libdir_flag_spec='-R$libdir' 13418 hardcode_direct=yes 13419 hardcode_shlibpath_var=no 13420 ;; 13421 13422 newsos6) 13423 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13424 hardcode_direct=yes 13425 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 13426 hardcode_libdir_separator=: 13427 hardcode_shlibpath_var=no 13428 ;; 13429 13430 *nto* | *qnx*) 13431 ;; 13432 13433 openbsd*) 13434 if test -f /usr/libexec/ld.so; then 13435 hardcode_direct=yes 13436 hardcode_shlibpath_var=no 13437 hardcode_direct_absolute=yes 13438 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13439 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13440 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 13441 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 13442 export_dynamic_flag_spec='${wl}-E' 13443 else 13444 case $host_os in 13445 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 13446 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13447 hardcode_libdir_flag_spec='-R$libdir' 13448 ;; 13449 *) 13450 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13451 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 13452 ;; 13453 esac 13454 fi 13455 else 13456 ld_shlibs=no 13457 fi 13458 ;; 13459 13460 os2*) 13461 hardcode_libdir_flag_spec='-L$libdir' 13462 hardcode_minus_L=yes 13463 allow_undefined_flag=unsupported 13464 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' 13465 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 13466 ;; 13467 13468 osf3*) 13469 if test "$GCC" = yes; then 13470 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 13471 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 13472 else 13473 allow_undefined_flag=' -expect_unresolved \*' 13474 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 13475 fi 13476 archive_cmds_need_lc='no' 13477 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 13478 hardcode_libdir_separator=: 13479 ;; 13480 13481 osf4* | osf5*) # as osf3* with the addition of -msym flag 13482 if test "$GCC" = yes; then 13483 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 13484 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 13485 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 13486 else 13487 allow_undefined_flag=' -expect_unresolved \*' 13488 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 13489 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 13490 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 13491 13492 # Both c and cxx compiler support -rpath directly 13493 hardcode_libdir_flag_spec='-rpath $libdir' 13494 fi 13495 archive_cmds_need_lc='no' 13496 hardcode_libdir_separator=: 13497 ;; 13498 13499 solaris*) 13500 no_undefined_flag=' -z defs' 13501 if test "$GCC" = yes; then 13502 wlarc='${wl}' 13503 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13504 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13505 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 13506 else 13507 case `$CC -V 2>&1` in 13508 *"Compilers 5.0"*) 13509 wlarc='' 13510 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 13511 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13512 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 13513 ;; 13514 *) 13515 wlarc='${wl}' 13516 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 13517 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13518 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 13519 ;; 13520 esac 13521 fi 13522 hardcode_libdir_flag_spec='-R$libdir' 13523 hardcode_shlibpath_var=no 13524 case $host_os in 13525 solaris2.[0-5] | solaris2.[0-5].*) ;; 13526 *) 13527 # The compiler driver will combine and reorder linker options, 13528 # but understands `-z linker_flag'. GCC discards it without `$wl', 13529 # but is careful enough not to reorder. 13530 # Supported since Solaris 2.6 (maybe 2.5.1?) 13531 if test "$GCC" = yes; then 13532 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 13533 else 13534 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 13535 fi 13536 ;; 13537 esac 13538 link_all_deplibs=yes 13539 ;; 13540 13541 sunos4*) 13542 if test "x$host_vendor" = xsequent; then 13543 # Use $CC to link under sequent, because it throws in some extra .o 13544 # files that make .init and .fini sections work. 13545 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 13546 else 13547 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 13548 fi 13549 hardcode_libdir_flag_spec='-L$libdir' 13550 hardcode_direct=yes 13551 hardcode_minus_L=yes 13552 hardcode_shlibpath_var=no 13553 ;; 13554 13555 sysv4) 13556 case $host_vendor in 13557 sni) 13558 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13559 hardcode_direct=yes # is this really true??? 13560 ;; 13561 siemens) 13562 ## LD is ld it makes a PLAMLIB 13563 ## CC just makes a GrossModule. 13564 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 13565 reload_cmds='$CC -r -o $output$reload_objs' 13566 hardcode_direct=no 13567 ;; 13568 motorola) 13569 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13570 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 13571 ;; 13572 esac 13573 runpath_var='LD_RUN_PATH' 13574 hardcode_shlibpath_var=no 13575 ;; 13576 13577 sysv4.3*) 13578 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13579 hardcode_shlibpath_var=no 13580 export_dynamic_flag_spec='-Bexport' 13581 ;; 13582 13583 sysv4*MP*) 13584 if test -d /usr/nec; then 13585 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13586 hardcode_shlibpath_var=no 13587 runpath_var=LD_RUN_PATH 13588 hardcode_runpath_var=yes 13589 ld_shlibs=yes 13590 fi 13591 ;; 13592 13593 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13594 no_undefined_flag='${wl}-z,text' 13595 archive_cmds_need_lc=no 13596 hardcode_shlibpath_var=no 13597 runpath_var='LD_RUN_PATH' 13598 13599 if test "$GCC" = yes; then 13600 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13601 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13602 else 13603 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13604 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13605 fi 13606 ;; 13607 13608 sysv5* | sco3.2v5* | sco5v6*) 13609 # Note: We can NOT use -z defs as we might desire, because we do not 13610 # link with -lc, and that would cause any symbols used from libc to 13611 # always be unresolved, which means just about no library would 13612 # ever link correctly. If we're not using GNU ld we use -z text 13613 # though, which does catch some bad symbols but isn't as heavy-handed 13614 # as -z defs. 13615 no_undefined_flag='${wl}-z,text' 13616 allow_undefined_flag='${wl}-z,nodefs' 13617 archive_cmds_need_lc=no 13618 hardcode_shlibpath_var=no 13619 hardcode_libdir_flag_spec='${wl}-R,$libdir' 13620 hardcode_libdir_separator=':' 13621 link_all_deplibs=yes 13622 export_dynamic_flag_spec='${wl}-Bexport' 13623 runpath_var='LD_RUN_PATH' 13624 13625 if test "$GCC" = yes; then 13626 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13627 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13628 else 13629 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13630 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13631 fi 13632 ;; 13633 13634 uts4*) 13635 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13636 hardcode_libdir_flag_spec='-L$libdir' 13637 hardcode_shlibpath_var=no 13638 ;; 13639 13640 *) 13641 ld_shlibs=no 13642 ;; 13643 esac 13644 13645 if test x$host_vendor = xsni; then 13646 case $host in 13647 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13648 export_dynamic_flag_spec='${wl}-Blargedynsym' 13649 ;; 13650 esac 13651 fi 13652 fi 13653 13654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 13655$as_echo "$ld_shlibs" >&6; } 13656test "$ld_shlibs" = no && can_build_shared=no 13657 13658with_gnu_ld=$with_gnu_ld 13659 13660 13661 13662 13663 13664 13665 13666 13667 13668 13669 13670 13671 13672 13673 13674# 13675# Do we need to explicitly link libc? 13676# 13677case "x$archive_cmds_need_lc" in 13678x|xyes) 13679 # Assume -lc should be added 13680 archive_cmds_need_lc=yes 13681 13682 if test "$enable_shared" = yes && test "$GCC" = yes; then 13683 case $archive_cmds in 13684 *'~'*) 13685 # FIXME: we may have to deal with multi-command sequences. 13686 ;; 13687 '$CC '*) 13688 # Test whether the compiler implicitly links with -lc since on some 13689 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13690 # to ld, don't add -lc before -lgcc. 13691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 13692$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13693 $RM conftest* 13694 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13695 13696 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13697 (eval $ac_compile) 2>&5 13698 ac_status=$? 13699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13700 test $ac_status = 0; } 2>conftest.err; then 13701 soname=conftest 13702 lib=conftest 13703 libobjs=conftest.$ac_objext 13704 deplibs= 13705 wl=$lt_prog_compiler_wl 13706 pic_flag=$lt_prog_compiler_pic 13707 compiler_flags=-v 13708 linker_flags=-v 13709 verstring= 13710 output_objdir=. 13711 libname=conftest 13712 lt_save_allow_undefined_flag=$allow_undefined_flag 13713 allow_undefined_flag= 13714 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 13715 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 13716 ac_status=$? 13717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13718 test $ac_status = 0; } 13719 then 13720 archive_cmds_need_lc=no 13721 else 13722 archive_cmds_need_lc=yes 13723 fi 13724 allow_undefined_flag=$lt_save_allow_undefined_flag 13725 else 13726 cat conftest.err 1>&5 13727 fi 13728 $RM conftest* 13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 13730$as_echo "$archive_cmds_need_lc" >&6; } 13731 ;; 13732 esac 13733 fi 13734 ;; 13735esac 13736 13737 13738 13739 13740 13741 13742 13743 13744 13745 13746 13747 13748 13749 13750 13751 13752 13753 13754 13755 13756 13757 13758 13759 13760 13761 13762 13763 13764 13765 13766 13767 13768 13769 13770 13771 13772 13773 13774 13775 13776 13777 13778 13779 13780 13781 13782 13783 13784 13785 13786 13787 13788 13789 13790 13791 13792 13793 13794 13795 13796 13797 13798 13799 13800 13801 13802 13803 13804 13805 13806 13807 13808 13809 13810 13811 13812 13813 13814 13815 13816 13817 13818 13819 13820 13821 13822 13823 13824 13825 13826 13827 13828 13829 13830 13831 13832 13833 13834 13835 13836 13837 13838 13839 13840 13841 13842 13843 13844 13845 13846 13847 13848 13849 13850 13851 13852 13853 13854 13855 13856 13857 13858 13859 13860 13861 13862 13863 13864 13865 13866 13867 13868 13869 13870 13871 13872 13873 13874 13875 13876 13877 13878 13879 13880 13881 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891 13892 13893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 13894$as_echo_n "checking dynamic linker characteristics... " >&6; } 13895 13896if test "$GCC" = yes; then 13897 case $host_os in 13898 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 13899 *) lt_awk_arg="/^libraries:/" ;; 13900 esac 13901 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13902 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 13903 # if the path contains ";" then we assume it to be the separator 13904 # otherwise default to the standard path separator (i.e. ":") - it is 13905 # assumed that no part of a normal pathname contains ";" but that should 13906 # okay in the real world where ";" in dirpaths is itself problematic. 13907 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 13908 else 13909 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13910 fi 13911 # Ok, now we have the path, separated by spaces, we can step through it 13912 # and add multilib dir if necessary. 13913 lt_tmp_lt_search_path_spec= 13914 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 13915 for lt_sys_path in $lt_search_path_spec; do 13916 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 13917 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 13918 else 13919 test -d "$lt_sys_path" && \ 13920 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 13921 fi 13922 done 13923 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 13924BEGIN {RS=" "; FS="/|\n";} { 13925 lt_foo=""; 13926 lt_count=0; 13927 for (lt_i = NF; lt_i > 0; lt_i--) { 13928 if ($lt_i != "" && $lt_i != ".") { 13929 if ($lt_i == "..") { 13930 lt_count++; 13931 } else { 13932 if (lt_count == 0) { 13933 lt_foo="/" $lt_i lt_foo; 13934 } else { 13935 lt_count--; 13936 } 13937 } 13938 } 13939 } 13940 if (lt_foo != "") { lt_freq[lt_foo]++; } 13941 if (lt_freq[lt_foo] == 1) { print lt_foo; } 13942}'` 13943 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 13944else 13945 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13946fi 13947library_names_spec= 13948libname_spec='lib$name' 13949soname_spec= 13950shrext_cmds=".so" 13951postinstall_cmds= 13952postuninstall_cmds= 13953finish_cmds= 13954finish_eval= 13955shlibpath_var= 13956shlibpath_overrides_runpath=unknown 13957version_type=none 13958dynamic_linker="$host_os ld.so" 13959sys_lib_dlsearch_path_spec="/lib /usr/lib" 13960need_lib_prefix=unknown 13961hardcode_into_libs=no 13962 13963# when you set need_version to no, make sure it does not cause -set_version 13964# flags to be left without arguments 13965need_version=unknown 13966 13967case $host_os in 13968aix3*) 13969 version_type=linux 13970 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13971 shlibpath_var=LIBPATH 13972 13973 # AIX 3 has no versioning support, so we append a major version to the name. 13974 soname_spec='${libname}${release}${shared_ext}$major' 13975 ;; 13976 13977aix[4-9]*) 13978 version_type=linux 13979 need_lib_prefix=no 13980 need_version=no 13981 hardcode_into_libs=yes 13982 if test "$host_cpu" = ia64; then 13983 # AIX 5 supports IA64 13984 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13985 shlibpath_var=LD_LIBRARY_PATH 13986 else 13987 # With GCC up to 2.95.x, collect2 would create an import file 13988 # for dependence libraries. The import file would start with 13989 # the line `#! .'. This would cause the generated library to 13990 # depend on `.', always an invalid library. This was fixed in 13991 # development snapshots of GCC prior to 3.0. 13992 case $host_os in 13993 aix4 | aix4.[01] | aix4.[01].*) 13994 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13995 echo ' yes ' 13996 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 13997 : 13998 else 13999 can_build_shared=no 14000 fi 14001 ;; 14002 esac 14003 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14004 # soname into executable. Probably we can add versioning support to 14005 # collect2, so additional links can be useful in future. 14006 if test "$aix_use_runtimelinking" = yes; then 14007 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14008 # instead of lib<name>.a to let people know that these are not 14009 # typical AIX shared libraries. 14010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14011 else 14012 # We preserve .a as extension for shared libraries through AIX4.2 14013 # and later when we are not doing run time linking. 14014 library_names_spec='${libname}${release}.a $libname.a' 14015 soname_spec='${libname}${release}${shared_ext}$major' 14016 fi 14017 shlibpath_var=LIBPATH 14018 fi 14019 ;; 14020 14021amigaos*) 14022 case $host_cpu in 14023 powerpc) 14024 # Since July 2007 AmigaOS4 officially supports .so libraries. 14025 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 14026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14027 ;; 14028 m68k) 14029 library_names_spec='$libname.ixlibrary $libname.a' 14030 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14031 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' 14032 ;; 14033 esac 14034 ;; 14035 14036beos*) 14037 library_names_spec='${libname}${shared_ext}' 14038 dynamic_linker="$host_os ld.so" 14039 shlibpath_var=LIBRARY_PATH 14040 ;; 14041 14042bsdi[45]*) 14043 version_type=linux 14044 need_version=no 14045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14046 soname_spec='${libname}${release}${shared_ext}$major' 14047 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14048 shlibpath_var=LD_LIBRARY_PATH 14049 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14050 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14051 # the default ld.so.conf also contains /usr/contrib/lib and 14052 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14053 # libtool to hard-code these into programs 14054 ;; 14055 14056cygwin* | mingw* | pw32* | cegcc*) 14057 version_type=windows 14058 shrext_cmds=".dll" 14059 need_version=no 14060 need_lib_prefix=no 14061 14062 case $GCC,$host_os in 14063 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 14064 library_names_spec='$libname.dll.a' 14065 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14066 postinstall_cmds='base_file=`basename \${file}`~ 14067 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 14068 dldir=$destdir/`dirname \$dlpath`~ 14069 test -d \$dldir || mkdir -p \$dldir~ 14070 $install_prog $dir/$dlname \$dldir/$dlname~ 14071 chmod a+x \$dldir/$dlname~ 14072 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14073 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14074 fi' 14075 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14076 dlpath=$dir/\$dldll~ 14077 $RM \$dlpath' 14078 shlibpath_overrides_runpath=yes 14079 14080 case $host_os in 14081 cygwin*) 14082 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14083 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14084 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 14085 ;; 14086 mingw* | cegcc*) 14087 # MinGW DLLs use traditional 'lib' prefix 14088 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14089 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14090 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 14091 # It is most probably a Windows format PATH printed by 14092 # mingw gcc, but we are running on Cygwin. Gcc prints its search 14093 # path with ; separators, and with drive letters. We can handle the 14094 # drive letters (cygwin fileutils understands them), so leave them, 14095 # especially as we might pass files found there to a mingw objdump, 14096 # which wouldn't understand a cygwinified path. Ahh. 14097 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14098 else 14099 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14100 fi 14101 ;; 14102 pw32*) 14103 # pw32 DLLs use 'pw' prefix rather than 'lib' 14104 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14105 ;; 14106 esac 14107 ;; 14108 14109 *) 14110 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14111 ;; 14112 esac 14113 dynamic_linker='Win32 ld.exe' 14114 # FIXME: first we should search . and the directory the executable is in 14115 shlibpath_var=PATH 14116 ;; 14117 14118darwin* | rhapsody*) 14119 dynamic_linker="$host_os dyld" 14120 version_type=darwin 14121 need_lib_prefix=no 14122 need_version=no 14123 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14124 soname_spec='${libname}${release}${major}$shared_ext' 14125 shlibpath_overrides_runpath=yes 14126 shlibpath_var=DYLD_LIBRARY_PATH 14127 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14128 14129 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 14130 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14131 ;; 14132 14133dgux*) 14134 version_type=linux 14135 need_lib_prefix=no 14136 need_version=no 14137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14138 soname_spec='${libname}${release}${shared_ext}$major' 14139 shlibpath_var=LD_LIBRARY_PATH 14140 ;; 14141 14142freebsd1*) 14143 dynamic_linker=no 14144 ;; 14145 14146freebsd* | dragonfly*) 14147 # DragonFly does not have aout. When/if they implement a new 14148 # versioning mechanism, adjust this. 14149 if test -x /usr/bin/objformat; then 14150 objformat=`/usr/bin/objformat` 14151 else 14152 case $host_os in 14153 freebsd[123]*) objformat=aout ;; 14154 *) objformat=elf ;; 14155 esac 14156 fi 14157 version_type=freebsd-$objformat 14158 case $version_type in 14159 freebsd-elf*) 14160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14161 need_version=no 14162 need_lib_prefix=no 14163 ;; 14164 freebsd-*) 14165 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14166 need_version=yes 14167 ;; 14168 esac 14169 shlibpath_var=LD_LIBRARY_PATH 14170 case $host_os in 14171 freebsd2*) 14172 shlibpath_overrides_runpath=yes 14173 ;; 14174 freebsd3.[01]* | freebsdelf3.[01]*) 14175 shlibpath_overrides_runpath=yes 14176 hardcode_into_libs=yes 14177 ;; 14178 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14179 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14180 shlibpath_overrides_runpath=no 14181 hardcode_into_libs=yes 14182 ;; 14183 *) # from 4.6 on, and DragonFly 14184 shlibpath_overrides_runpath=yes 14185 hardcode_into_libs=yes 14186 ;; 14187 esac 14188 ;; 14189 14190gnu*) 14191 version_type=linux 14192 need_lib_prefix=no 14193 need_version=no 14194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14195 soname_spec='${libname}${release}${shared_ext}$major' 14196 shlibpath_var=LD_LIBRARY_PATH 14197 hardcode_into_libs=yes 14198 ;; 14199 14200hpux9* | hpux10* | hpux11*) 14201 # Give a soname corresponding to the major version so that dld.sl refuses to 14202 # link against other versions. 14203 version_type=sunos 14204 need_lib_prefix=no 14205 need_version=no 14206 case $host_cpu in 14207 ia64*) 14208 shrext_cmds='.so' 14209 hardcode_into_libs=yes 14210 dynamic_linker="$host_os dld.so" 14211 shlibpath_var=LD_LIBRARY_PATH 14212 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14214 soname_spec='${libname}${release}${shared_ext}$major' 14215 if test "X$HPUX_IA64_MODE" = X32; then 14216 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14217 else 14218 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14219 fi 14220 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14221 ;; 14222 hppa*64*) 14223 shrext_cmds='.sl' 14224 hardcode_into_libs=yes 14225 dynamic_linker="$host_os dld.sl" 14226 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14227 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14229 soname_spec='${libname}${release}${shared_ext}$major' 14230 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14231 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14232 ;; 14233 *) 14234 shrext_cmds='.sl' 14235 dynamic_linker="$host_os dld.sl" 14236 shlibpath_var=SHLIB_PATH 14237 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14239 soname_spec='${libname}${release}${shared_ext}$major' 14240 ;; 14241 esac 14242 # HP-UX runs *really* slowly unless shared libraries are mode 555. 14243 postinstall_cmds='chmod 555 $lib' 14244 ;; 14245 14246interix[3-9]*) 14247 version_type=linux 14248 need_lib_prefix=no 14249 need_version=no 14250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14251 soname_spec='${libname}${release}${shared_ext}$major' 14252 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14253 shlibpath_var=LD_LIBRARY_PATH 14254 shlibpath_overrides_runpath=no 14255 hardcode_into_libs=yes 14256 ;; 14257 14258irix5* | irix6* | nonstopux*) 14259 case $host_os in 14260 nonstopux*) version_type=nonstopux ;; 14261 *) 14262 if test "$lt_cv_prog_gnu_ld" = yes; then 14263 version_type=linux 14264 else 14265 version_type=irix 14266 fi ;; 14267 esac 14268 need_lib_prefix=no 14269 need_version=no 14270 soname_spec='${libname}${release}${shared_ext}$major' 14271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14272 case $host_os in 14273 irix5* | nonstopux*) 14274 libsuff= shlibsuff= 14275 ;; 14276 *) 14277 case $LD in # libtool.m4 will add one of these switches to LD 14278 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14279 libsuff= shlibsuff= libmagic=32-bit;; 14280 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14281 libsuff=32 shlibsuff=N32 libmagic=N32;; 14282 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14283 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14284 *) libsuff= shlibsuff= libmagic=never-match;; 14285 esac 14286 ;; 14287 esac 14288 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14289 shlibpath_overrides_runpath=no 14290 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14291 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14292 hardcode_into_libs=yes 14293 ;; 14294 14295# No shared lib support for Linux oldld, aout, or coff. 14296linux*oldld* | linux*aout* | linux*coff*) 14297 dynamic_linker=no 14298 ;; 14299 14300# This must be Linux ELF. 14301linux* | k*bsd*-gnu) 14302 version_type=linux 14303 need_lib_prefix=no 14304 need_version=no 14305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14306 soname_spec='${libname}${release}${shared_ext}$major' 14307 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14308 shlibpath_var=LD_LIBRARY_PATH 14309 shlibpath_overrides_runpath=no 14310 # Some binutils ld are patched to set DT_RUNPATH 14311 save_LDFLAGS=$LDFLAGS 14312 save_libdir=$libdir 14313 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 14314 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 14315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14316/* end confdefs.h. */ 14317 14318int 14319main () 14320{ 14321 14322 ; 14323 return 0; 14324} 14325_ACEOF 14326if ac_fn_c_try_link "$LINENO"; then : 14327 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 14328 shlibpath_overrides_runpath=yes 14329fi 14330fi 14331rm -f core conftest.err conftest.$ac_objext \ 14332 conftest$ac_exeext conftest.$ac_ext 14333 LDFLAGS=$save_LDFLAGS 14334 libdir=$save_libdir 14335 14336 # This implies no fast_install, which is unacceptable. 14337 # Some rework will be needed to allow for fast_install 14338 # before this can be enabled. 14339 hardcode_into_libs=yes 14340 14341 # Append ld.so.conf contents to the search path 14342 if test -f /etc/ld.so.conf; then 14343 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' ' '` 14344 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14345 fi 14346 14347 # We used to test for /lib/ld.so.1 and disable shared libraries on 14348 # powerpc, because MkLinux only supported shared libraries with the 14349 # GNU dynamic linker. Since this was broken with cross compilers, 14350 # most powerpc-linux boxes support dynamic linking these days and 14351 # people can always --disable-shared, the test was removed, and we 14352 # assume the GNU/Linux dynamic linker is in use. 14353 dynamic_linker='GNU/Linux ld.so' 14354 ;; 14355 14356netbsd*) 14357 version_type=sunos 14358 need_lib_prefix=no 14359 need_version=no 14360 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14362 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14363 dynamic_linker='NetBSD (a.out) ld.so' 14364 else 14365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14366 soname_spec='${libname}${release}${shared_ext}$major' 14367 dynamic_linker='NetBSD ld.elf_so' 14368 fi 14369 shlibpath_var=LD_LIBRARY_PATH 14370 shlibpath_overrides_runpath=yes 14371 hardcode_into_libs=yes 14372 ;; 14373 14374newsos6) 14375 version_type=linux 14376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14377 shlibpath_var=LD_LIBRARY_PATH 14378 shlibpath_overrides_runpath=yes 14379 ;; 14380 14381*nto* | *qnx*) 14382 version_type=qnx 14383 need_lib_prefix=no 14384 need_version=no 14385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14386 soname_spec='${libname}${release}${shared_ext}$major' 14387 shlibpath_var=LD_LIBRARY_PATH 14388 shlibpath_overrides_runpath=no 14389 hardcode_into_libs=yes 14390 dynamic_linker='ldqnx.so' 14391 ;; 14392 14393openbsd*) 14394 version_type=sunos 14395 sys_lib_dlsearch_path_spec="/usr/lib" 14396 need_lib_prefix=no 14397 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14398 case $host_os in 14399 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14400 *) need_version=no ;; 14401 esac 14402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14403 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14404 shlibpath_var=LD_LIBRARY_PATH 14405 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14406 case $host_os in 14407 openbsd2.[89] | openbsd2.[89].*) 14408 shlibpath_overrides_runpath=no 14409 ;; 14410 *) 14411 shlibpath_overrides_runpath=yes 14412 ;; 14413 esac 14414 else 14415 shlibpath_overrides_runpath=yes 14416 fi 14417 ;; 14418 14419os2*) 14420 libname_spec='$name' 14421 shrext_cmds=".dll" 14422 need_lib_prefix=no 14423 library_names_spec='$libname${shared_ext} $libname.a' 14424 dynamic_linker='OS/2 ld.exe' 14425 shlibpath_var=LIBPATH 14426 ;; 14427 14428osf3* | osf4* | osf5*) 14429 version_type=osf 14430 need_lib_prefix=no 14431 need_version=no 14432 soname_spec='${libname}${release}${shared_ext}$major' 14433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14434 shlibpath_var=LD_LIBRARY_PATH 14435 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14436 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14437 ;; 14438 14439rdos*) 14440 dynamic_linker=no 14441 ;; 14442 14443solaris*) 14444 version_type=linux 14445 need_lib_prefix=no 14446 need_version=no 14447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14448 soname_spec='${libname}${release}${shared_ext}$major' 14449 shlibpath_var=LD_LIBRARY_PATH 14450 shlibpath_overrides_runpath=yes 14451 hardcode_into_libs=yes 14452 # ldd complains unless libraries are executable 14453 postinstall_cmds='chmod +x $lib' 14454 ;; 14455 14456sunos4*) 14457 version_type=sunos 14458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14459 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14460 shlibpath_var=LD_LIBRARY_PATH 14461 shlibpath_overrides_runpath=yes 14462 if test "$with_gnu_ld" = yes; then 14463 need_lib_prefix=no 14464 fi 14465 need_version=yes 14466 ;; 14467 14468sysv4 | sysv4.3*) 14469 version_type=linux 14470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14471 soname_spec='${libname}${release}${shared_ext}$major' 14472 shlibpath_var=LD_LIBRARY_PATH 14473 case $host_vendor in 14474 sni) 14475 shlibpath_overrides_runpath=no 14476 need_lib_prefix=no 14477 runpath_var=LD_RUN_PATH 14478 ;; 14479 siemens) 14480 need_lib_prefix=no 14481 ;; 14482 motorola) 14483 need_lib_prefix=no 14484 need_version=no 14485 shlibpath_overrides_runpath=no 14486 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14487 ;; 14488 esac 14489 ;; 14490 14491sysv4*MP*) 14492 if test -d /usr/nec ;then 14493 version_type=linux 14494 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14495 soname_spec='$libname${shared_ext}.$major' 14496 shlibpath_var=LD_LIBRARY_PATH 14497 fi 14498 ;; 14499 14500sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14501 version_type=freebsd-elf 14502 need_lib_prefix=no 14503 need_version=no 14504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14505 soname_spec='${libname}${release}${shared_ext}$major' 14506 shlibpath_var=LD_LIBRARY_PATH 14507 shlibpath_overrides_runpath=yes 14508 hardcode_into_libs=yes 14509 if test "$with_gnu_ld" = yes; then 14510 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14511 else 14512 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14513 case $host_os in 14514 sco3.2v5*) 14515 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14516 ;; 14517 esac 14518 fi 14519 sys_lib_dlsearch_path_spec='/usr/lib' 14520 ;; 14521 14522tpf*) 14523 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 14524 version_type=linux 14525 need_lib_prefix=no 14526 need_version=no 14527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14528 shlibpath_var=LD_LIBRARY_PATH 14529 shlibpath_overrides_runpath=no 14530 hardcode_into_libs=yes 14531 ;; 14532 14533uts4*) 14534 version_type=linux 14535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14536 soname_spec='${libname}${release}${shared_ext}$major' 14537 shlibpath_var=LD_LIBRARY_PATH 14538 ;; 14539 14540*) 14541 dynamic_linker=no 14542 ;; 14543esac 14544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 14545$as_echo "$dynamic_linker" >&6; } 14546test "$dynamic_linker" = no && can_build_shared=no 14547 14548variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14549if test "$GCC" = yes; then 14550 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14551fi 14552 14553if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 14554 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 14555fi 14556if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 14557 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 14558fi 14559 14560 14561 14562 14563 14564 14565 14566 14567 14568 14569 14570 14571 14572 14573 14574 14575 14576 14577 14578 14579 14580 14581 14582 14583 14584 14585 14586 14587 14588 14589 14590 14591 14592 14593 14594 14595 14596 14597 14598 14599 14600 14601 14602 14603 14604 14605 14606 14607 14608 14609 14610 14611 14612 14613 14614 14615 14616 14617 14618 14619 14620 14621 14622 14623 14624 14625 14626 14627 14628 14629 14630 14631 14632 14633 14634 14635 14636 14637 14638 14639 14640 14641 14642 14643 14644 14645 14646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 14647$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 14648hardcode_action= 14649if test -n "$hardcode_libdir_flag_spec" || 14650 test -n "$runpath_var" || 14651 test "X$hardcode_automatic" = "Xyes" ; then 14652 14653 # We can hardcode non-existent directories. 14654 if test "$hardcode_direct" != no && 14655 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14656 # have to relink, otherwise we might link with an installed library 14657 # when we should be linking with a yet-to-be-installed one 14658 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 14659 test "$hardcode_minus_L" != no; then 14660 # Linking always hardcodes the temporary library directory. 14661 hardcode_action=relink 14662 else 14663 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14664 hardcode_action=immediate 14665 fi 14666else 14667 # We cannot hardcode anything, or else we can only hardcode existing 14668 # directories. 14669 hardcode_action=unsupported 14670fi 14671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 14672$as_echo "$hardcode_action" >&6; } 14673 14674if test "$hardcode_action" = relink || 14675 test "$inherit_rpath" = yes; then 14676 # Fast installation is not supported 14677 enable_fast_install=no 14678elif test "$shlibpath_overrides_runpath" = yes || 14679 test "$enable_shared" = no; then 14680 # Fast installation is not necessary 14681 enable_fast_install=needless 14682fi 14683 14684 14685 14686 14687 14688 14689 if test "x$enable_dlopen" != xyes; then 14690 enable_dlopen=unknown 14691 enable_dlopen_self=unknown 14692 enable_dlopen_self_static=unknown 14693else 14694 lt_cv_dlopen=no 14695 lt_cv_dlopen_libs= 14696 14697 case $host_os in 14698 beos*) 14699 lt_cv_dlopen="load_add_on" 14700 lt_cv_dlopen_libs= 14701 lt_cv_dlopen_self=yes 14702 ;; 14703 14704 mingw* | pw32* | cegcc*) 14705 lt_cv_dlopen="LoadLibrary" 14706 lt_cv_dlopen_libs= 14707 ;; 14708 14709 cygwin*) 14710 lt_cv_dlopen="dlopen" 14711 lt_cv_dlopen_libs= 14712 ;; 14713 14714 darwin*) 14715 # if libdl is installed we need to link against it 14716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 14717$as_echo_n "checking for dlopen in -ldl... " >&6; } 14718if ${ac_cv_lib_dl_dlopen+:} false; then : 14719 $as_echo_n "(cached) " >&6 14720else 14721 ac_check_lib_save_LIBS=$LIBS 14722LIBS="-ldl $LIBS" 14723cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14724/* end confdefs.h. */ 14725 14726/* Override any GCC internal prototype to avoid an error. 14727 Use char because int might match the return type of a GCC 14728 builtin and then its argument prototype would still apply. */ 14729#ifdef __cplusplus 14730extern "C" 14731#endif 14732char dlopen (); 14733int 14734main () 14735{ 14736return dlopen (); 14737 ; 14738 return 0; 14739} 14740_ACEOF 14741if ac_fn_c_try_link "$LINENO"; then : 14742 ac_cv_lib_dl_dlopen=yes 14743else 14744 ac_cv_lib_dl_dlopen=no 14745fi 14746rm -f core conftest.err conftest.$ac_objext \ 14747 conftest$ac_exeext conftest.$ac_ext 14748LIBS=$ac_check_lib_save_LIBS 14749fi 14750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14751$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 14752if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 14753 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 14754else 14755 14756 lt_cv_dlopen="dyld" 14757 lt_cv_dlopen_libs= 14758 lt_cv_dlopen_self=yes 14759 14760fi 14761 14762 ;; 14763 14764 *) 14765 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 14766if test "x$ac_cv_func_shl_load" = xyes; then : 14767 lt_cv_dlopen="shl_load" 14768else 14769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 14770$as_echo_n "checking for shl_load in -ldld... " >&6; } 14771if ${ac_cv_lib_dld_shl_load+:} false; then : 14772 $as_echo_n "(cached) " >&6 14773else 14774 ac_check_lib_save_LIBS=$LIBS 14775LIBS="-ldld $LIBS" 14776cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14777/* end confdefs.h. */ 14778 14779/* Override any GCC internal prototype to avoid an error. 14780 Use char because int might match the return type of a GCC 14781 builtin and then its argument prototype would still apply. */ 14782#ifdef __cplusplus 14783extern "C" 14784#endif 14785char shl_load (); 14786int 14787main () 14788{ 14789return shl_load (); 14790 ; 14791 return 0; 14792} 14793_ACEOF 14794if ac_fn_c_try_link "$LINENO"; then : 14795 ac_cv_lib_dld_shl_load=yes 14796else 14797 ac_cv_lib_dld_shl_load=no 14798fi 14799rm -f core conftest.err conftest.$ac_objext \ 14800 conftest$ac_exeext conftest.$ac_ext 14801LIBS=$ac_check_lib_save_LIBS 14802fi 14803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 14804$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 14805if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 14806 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 14807else 14808 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 14809if test "x$ac_cv_func_dlopen" = xyes; then : 14810 lt_cv_dlopen="dlopen" 14811else 14812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 14813$as_echo_n "checking for dlopen in -ldl... " >&6; } 14814if ${ac_cv_lib_dl_dlopen+:} false; then : 14815 $as_echo_n "(cached) " >&6 14816else 14817 ac_check_lib_save_LIBS=$LIBS 14818LIBS="-ldl $LIBS" 14819cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14820/* end confdefs.h. */ 14821 14822/* Override any GCC internal prototype to avoid an error. 14823 Use char because int might match the return type of a GCC 14824 builtin and then its argument prototype would still apply. */ 14825#ifdef __cplusplus 14826extern "C" 14827#endif 14828char dlopen (); 14829int 14830main () 14831{ 14832return dlopen (); 14833 ; 14834 return 0; 14835} 14836_ACEOF 14837if ac_fn_c_try_link "$LINENO"; then : 14838 ac_cv_lib_dl_dlopen=yes 14839else 14840 ac_cv_lib_dl_dlopen=no 14841fi 14842rm -f core conftest.err conftest.$ac_objext \ 14843 conftest$ac_exeext conftest.$ac_ext 14844LIBS=$ac_check_lib_save_LIBS 14845fi 14846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14847$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 14848if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 14849 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 14850else 14851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 14852$as_echo_n "checking for dlopen in -lsvld... " >&6; } 14853if ${ac_cv_lib_svld_dlopen+:} false; then : 14854 $as_echo_n "(cached) " >&6 14855else 14856 ac_check_lib_save_LIBS=$LIBS 14857LIBS="-lsvld $LIBS" 14858cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14859/* end confdefs.h. */ 14860 14861/* Override any GCC internal prototype to avoid an error. 14862 Use char because int might match the return type of a GCC 14863 builtin and then its argument prototype would still apply. */ 14864#ifdef __cplusplus 14865extern "C" 14866#endif 14867char dlopen (); 14868int 14869main () 14870{ 14871return dlopen (); 14872 ; 14873 return 0; 14874} 14875_ACEOF 14876if ac_fn_c_try_link "$LINENO"; then : 14877 ac_cv_lib_svld_dlopen=yes 14878else 14879 ac_cv_lib_svld_dlopen=no 14880fi 14881rm -f core conftest.err conftest.$ac_objext \ 14882 conftest$ac_exeext conftest.$ac_ext 14883LIBS=$ac_check_lib_save_LIBS 14884fi 14885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 14886$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 14887if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 14888 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 14889else 14890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 14891$as_echo_n "checking for dld_link in -ldld... " >&6; } 14892if ${ac_cv_lib_dld_dld_link+:} false; then : 14893 $as_echo_n "(cached) " >&6 14894else 14895 ac_check_lib_save_LIBS=$LIBS 14896LIBS="-ldld $LIBS" 14897cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14898/* end confdefs.h. */ 14899 14900/* Override any GCC internal prototype to avoid an error. 14901 Use char because int might match the return type of a GCC 14902 builtin and then its argument prototype would still apply. */ 14903#ifdef __cplusplus 14904extern "C" 14905#endif 14906char dld_link (); 14907int 14908main () 14909{ 14910return dld_link (); 14911 ; 14912 return 0; 14913} 14914_ACEOF 14915if ac_fn_c_try_link "$LINENO"; then : 14916 ac_cv_lib_dld_dld_link=yes 14917else 14918 ac_cv_lib_dld_dld_link=no 14919fi 14920rm -f core conftest.err conftest.$ac_objext \ 14921 conftest$ac_exeext conftest.$ac_ext 14922LIBS=$ac_check_lib_save_LIBS 14923fi 14924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 14925$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 14926if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 14927 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 14928fi 14929 14930 14931fi 14932 14933 14934fi 14935 14936 14937fi 14938 14939 14940fi 14941 14942 14943fi 14944 14945 ;; 14946 esac 14947 14948 if test "x$lt_cv_dlopen" != xno; then 14949 enable_dlopen=yes 14950 else 14951 enable_dlopen=no 14952 fi 14953 14954 case $lt_cv_dlopen in 14955 dlopen) 14956 save_CPPFLAGS="$CPPFLAGS" 14957 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 14958 14959 save_LDFLAGS="$LDFLAGS" 14960 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 14961 14962 save_LIBS="$LIBS" 14963 LIBS="$lt_cv_dlopen_libs $LIBS" 14964 14965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 14966$as_echo_n "checking whether a program can dlopen itself... " >&6; } 14967if ${lt_cv_dlopen_self+:} false; then : 14968 $as_echo_n "(cached) " >&6 14969else 14970 if test "$cross_compiling" = yes; then : 14971 lt_cv_dlopen_self=cross 14972else 14973 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14974 lt_status=$lt_dlunknown 14975 cat > conftest.$ac_ext <<_LT_EOF 14976#line 14976 "configure" 14977#include "confdefs.h" 14978 14979#if HAVE_DLFCN_H 14980#include <dlfcn.h> 14981#endif 14982 14983#include <stdio.h> 14984 14985#ifdef RTLD_GLOBAL 14986# define LT_DLGLOBAL RTLD_GLOBAL 14987#else 14988# ifdef DL_GLOBAL 14989# define LT_DLGLOBAL DL_GLOBAL 14990# else 14991# define LT_DLGLOBAL 0 14992# endif 14993#endif 14994 14995/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14996 find out it does not work in some platform. */ 14997#ifndef LT_DLLAZY_OR_NOW 14998# ifdef RTLD_LAZY 14999# define LT_DLLAZY_OR_NOW RTLD_LAZY 15000# else 15001# ifdef DL_LAZY 15002# define LT_DLLAZY_OR_NOW DL_LAZY 15003# else 15004# ifdef RTLD_NOW 15005# define LT_DLLAZY_OR_NOW RTLD_NOW 15006# else 15007# ifdef DL_NOW 15008# define LT_DLLAZY_OR_NOW DL_NOW 15009# else 15010# define LT_DLLAZY_OR_NOW 0 15011# endif 15012# endif 15013# endif 15014# endif 15015#endif 15016 15017void fnord() { int i=42;} 15018int main () 15019{ 15020 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 15021 int status = $lt_dlunknown; 15022 15023 if (self) 15024 { 15025 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 15026 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 15027 /* dlclose (self); */ 15028 } 15029 else 15030 puts (dlerror ()); 15031 15032 return status; 15033} 15034_LT_EOF 15035 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 15036 (eval $ac_link) 2>&5 15037 ac_status=$? 15038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15039 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 15040 (./conftest; exit; ) >&5 2>/dev/null 15041 lt_status=$? 15042 case x$lt_status in 15043 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 15044 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 15045 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 15046 esac 15047 else : 15048 # compilation failed 15049 lt_cv_dlopen_self=no 15050 fi 15051fi 15052rm -fr conftest* 15053 15054 15055fi 15056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 15057$as_echo "$lt_cv_dlopen_self" >&6; } 15058 15059 if test "x$lt_cv_dlopen_self" = xyes; then 15060 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 15061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 15062$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 15063if ${lt_cv_dlopen_self_static+:} false; then : 15064 $as_echo_n "(cached) " >&6 15065else 15066 if test "$cross_compiling" = yes; then : 15067 lt_cv_dlopen_self_static=cross 15068else 15069 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 15070 lt_status=$lt_dlunknown 15071 cat > conftest.$ac_ext <<_LT_EOF 15072#line 15072 "configure" 15073#include "confdefs.h" 15074 15075#if HAVE_DLFCN_H 15076#include <dlfcn.h> 15077#endif 15078 15079#include <stdio.h> 15080 15081#ifdef RTLD_GLOBAL 15082# define LT_DLGLOBAL RTLD_GLOBAL 15083#else 15084# ifdef DL_GLOBAL 15085# define LT_DLGLOBAL DL_GLOBAL 15086# else 15087# define LT_DLGLOBAL 0 15088# endif 15089#endif 15090 15091/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 15092 find out it does not work in some platform. */ 15093#ifndef LT_DLLAZY_OR_NOW 15094# ifdef RTLD_LAZY 15095# define LT_DLLAZY_OR_NOW RTLD_LAZY 15096# else 15097# ifdef DL_LAZY 15098# define LT_DLLAZY_OR_NOW DL_LAZY 15099# else 15100# ifdef RTLD_NOW 15101# define LT_DLLAZY_OR_NOW RTLD_NOW 15102# else 15103# ifdef DL_NOW 15104# define LT_DLLAZY_OR_NOW DL_NOW 15105# else 15106# define LT_DLLAZY_OR_NOW 0 15107# endif 15108# endif 15109# endif 15110# endif 15111#endif 15112 15113void fnord() { int i=42;} 15114int main () 15115{ 15116 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 15117 int status = $lt_dlunknown; 15118 15119 if (self) 15120 { 15121 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 15122 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 15123 /* dlclose (self); */ 15124 } 15125 else 15126 puts (dlerror ()); 15127 15128 return status; 15129} 15130_LT_EOF 15131 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 15132 (eval $ac_link) 2>&5 15133 ac_status=$? 15134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15135 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 15136 (./conftest; exit; ) >&5 2>/dev/null 15137 lt_status=$? 15138 case x$lt_status in 15139 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 15140 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 15141 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 15142 esac 15143 else : 15144 # compilation failed 15145 lt_cv_dlopen_self_static=no 15146 fi 15147fi 15148rm -fr conftest* 15149 15150 15151fi 15152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 15153$as_echo "$lt_cv_dlopen_self_static" >&6; } 15154 fi 15155 15156 CPPFLAGS="$save_CPPFLAGS" 15157 LDFLAGS="$save_LDFLAGS" 15158 LIBS="$save_LIBS" 15159 ;; 15160 esac 15161 15162 case $lt_cv_dlopen_self in 15163 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 15164 *) enable_dlopen_self=unknown ;; 15165 esac 15166 15167 case $lt_cv_dlopen_self_static in 15168 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 15169 *) enable_dlopen_self_static=unknown ;; 15170 esac 15171fi 15172 15173 15174 15175 15176 15177 15178 15179 15180 15181 15182 15183 15184 15185 15186 15187 15188 15189striplib= 15190old_striplib= 15191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 15192$as_echo_n "checking whether stripping libraries is possible... " >&6; } 15193if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 15194 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 15195 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 15196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15197$as_echo "yes" >&6; } 15198else 15199# FIXME - insert some real tests, host_os isn't really good enough 15200 case $host_os in 15201 darwin*) 15202 if test -n "$STRIP" ; then 15203 striplib="$STRIP -x" 15204 old_striplib="$STRIP -S" 15205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15206$as_echo "yes" >&6; } 15207 else 15208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15209$as_echo "no" >&6; } 15210 fi 15211 ;; 15212 *) 15213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15214$as_echo "no" >&6; } 15215 ;; 15216 esac 15217fi 15218 15219 15220 15221 15222 15223 15224 15225 15226 15227 15228 15229 15230 # Report which library types will actually be built 15231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 15232$as_echo_n "checking if libtool supports shared libraries... " >&6; } 15233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 15234$as_echo "$can_build_shared" >&6; } 15235 15236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 15237$as_echo_n "checking whether to build shared libraries... " >&6; } 15238 test "$can_build_shared" = "no" && enable_shared=no 15239 15240 # On AIX, shared libraries and static libraries use the same namespace, and 15241 # are all built from PIC. 15242 case $host_os in 15243 aix3*) 15244 test "$enable_shared" = yes && enable_static=no 15245 if test -n "$RANLIB"; then 15246 archive_cmds="$archive_cmds~\$RANLIB \$lib" 15247 postinstall_cmds='$RANLIB $lib' 15248 fi 15249 ;; 15250 15251 aix[4-9]*) 15252 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 15253 test "$enable_shared" = yes && enable_static=no 15254 fi 15255 ;; 15256 esac 15257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 15258$as_echo "$enable_shared" >&6; } 15259 15260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 15261$as_echo_n "checking whether to build static libraries... " >&6; } 15262 # Make sure either enable_shared or enable_static is yes. 15263 test "$enable_shared" = yes || enable_static=yes 15264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 15265$as_echo "$enable_static" >&6; } 15266 15267 15268 15269 15270fi 15271ac_ext=c 15272ac_cpp='$CPP $CPPFLAGS' 15273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15275ac_compiler_gnu=$ac_cv_c_compiler_gnu 15276 15277CC="$lt_save_CC" 15278 15279 15280 15281 15282 15283 15284 15285 15286 15287 15288 15289 15290 15291 ac_config_commands="$ac_config_commands libtool" 15292 15293 15294 15295 15296# Only expand once: 15297 15298 15299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5 15300$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; } 15301if ${libltdl_cv_shlibext+:} false; then : 15302 $as_echo_n "(cached) " >&6 15303else 15304 15305module=yes 15306eval libltdl_cv_shlibext=$shrext_cmds 15307 15308fi 15309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5 15310$as_echo "$libltdl_cv_shlibext" >&6; } 15311if test -n "$libltdl_cv_shlibext"; then 15312 15313cat >>confdefs.h <<_ACEOF 15314#define LT_MODULE_EXT "$libltdl_cv_shlibext" 15315_ACEOF 15316 15317fi 15318 15319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5 15320$as_echo_n "checking which variable specifies run-time module search path... " >&6; } 15321if ${lt_cv_module_path_var+:} false; then : 15322 $as_echo_n "(cached) " >&6 15323else 15324 lt_cv_module_path_var="$shlibpath_var" 15325fi 15326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5 15327$as_echo "$lt_cv_module_path_var" >&6; } 15328if test -n "$lt_cv_module_path_var"; then 15329 15330cat >>confdefs.h <<_ACEOF 15331#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var" 15332_ACEOF 15333 15334fi 15335 15336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5 15337$as_echo_n "checking for the default library search path... " >&6; } 15338if ${lt_cv_sys_dlsearch_path+:} false; then : 15339 $as_echo_n "(cached) " >&6 15340else 15341 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec" 15342fi 15343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5 15344$as_echo "$lt_cv_sys_dlsearch_path" >&6; } 15345if test -n "$lt_cv_sys_dlsearch_path"; then 15346 sys_dlsearch_path= 15347 for dir in $lt_cv_sys_dlsearch_path; do 15348 if test -z "$sys_dlsearch_path"; then 15349 sys_dlsearch_path="$dir" 15350 else 15351 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir" 15352 fi 15353 done 15354 15355cat >>confdefs.h <<_ACEOF 15356#define LT_DLSEARCH_PATH "$sys_dlsearch_path" 15357_ACEOF 15358 15359fi 15360 15361 15362LT_DLLOADERS= 15363 15364 15365ac_ext=c 15366ac_cpp='$CPP $CPPFLAGS' 15367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15369ac_compiler_gnu=$ac_cv_c_compiler_gnu 15370 15371 15372LIBADD_DLOPEN= 15373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 15374$as_echo_n "checking for library containing dlopen... " >&6; } 15375if ${ac_cv_search_dlopen+:} false; then : 15376 $as_echo_n "(cached) " >&6 15377else 15378 ac_func_search_save_LIBS=$LIBS 15379cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15380/* end confdefs.h. */ 15381 15382/* Override any GCC internal prototype to avoid an error. 15383 Use char because int might match the return type of a GCC 15384 builtin and then its argument prototype would still apply. */ 15385#ifdef __cplusplus 15386extern "C" 15387#endif 15388char dlopen (); 15389int 15390main () 15391{ 15392return dlopen (); 15393 ; 15394 return 0; 15395} 15396_ACEOF 15397for ac_lib in '' dl; do 15398 if test -z "$ac_lib"; then 15399 ac_res="none required" 15400 else 15401 ac_res=-l$ac_lib 15402 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15403 fi 15404 if ac_fn_c_try_link "$LINENO"; then : 15405 ac_cv_search_dlopen=$ac_res 15406fi 15407rm -f core conftest.err conftest.$ac_objext \ 15408 conftest$ac_exeext 15409 if ${ac_cv_search_dlopen+:} false; then : 15410 break 15411fi 15412done 15413if ${ac_cv_search_dlopen+:} false; then : 15414 15415else 15416 ac_cv_search_dlopen=no 15417fi 15418rm conftest.$ac_ext 15419LIBS=$ac_func_search_save_LIBS 15420fi 15421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 15422$as_echo "$ac_cv_search_dlopen" >&6; } 15423ac_res=$ac_cv_search_dlopen 15424if test "$ac_res" != no; then : 15425 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15426 15427$as_echo "#define HAVE_LIBDL 1" >>confdefs.h 15428 15429 if test "$ac_cv_search_dlopen" != "none required" ; then 15430 LIBADD_DLOPEN="-ldl" 15431 fi 15432 libltdl_cv_lib_dl_dlopen="yes" 15433 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" 15434else 15435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15436/* end confdefs.h. */ 15437#if HAVE_DLFCN_H 15438# include <dlfcn.h> 15439#endif 15440 15441int 15442main () 15443{ 15444dlopen(0, 0); 15445 ; 15446 return 0; 15447} 15448_ACEOF 15449if ac_fn_c_try_link "$LINENO"; then : 15450 15451$as_echo "#define HAVE_LIBDL 1" >>confdefs.h 15452 15453 libltdl_cv_func_dlopen="yes" 15454 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" 15455else 15456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 15457$as_echo_n "checking for dlopen in -lsvld... " >&6; } 15458if ${ac_cv_lib_svld_dlopen+:} false; then : 15459 $as_echo_n "(cached) " >&6 15460else 15461 ac_check_lib_save_LIBS=$LIBS 15462LIBS="-lsvld $LIBS" 15463cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15464/* end confdefs.h. */ 15465 15466/* Override any GCC internal prototype to avoid an error. 15467 Use char because int might match the return type of a GCC 15468 builtin and then its argument prototype would still apply. */ 15469#ifdef __cplusplus 15470extern "C" 15471#endif 15472char dlopen (); 15473int 15474main () 15475{ 15476return dlopen (); 15477 ; 15478 return 0; 15479} 15480_ACEOF 15481if ac_fn_c_try_link "$LINENO"; then : 15482 ac_cv_lib_svld_dlopen=yes 15483else 15484 ac_cv_lib_svld_dlopen=no 15485fi 15486rm -f core conftest.err conftest.$ac_objext \ 15487 conftest$ac_exeext conftest.$ac_ext 15488LIBS=$ac_check_lib_save_LIBS 15489fi 15490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 15491$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 15492if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 15493 15494$as_echo "#define HAVE_LIBDL 1" >>confdefs.h 15495 15496 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes" 15497 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" 15498fi 15499 15500fi 15501rm -f core conftest.err conftest.$ac_objext \ 15502 conftest$ac_exeext conftest.$ac_ext 15503fi 15504 15505if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes 15506then 15507 lt_save_LIBS="$LIBS" 15508 LIBS="$LIBS $LIBADD_DLOPEN" 15509 for ac_func in dlerror 15510do : 15511 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror" 15512if test "x$ac_cv_func_dlerror" = xyes; then : 15513 cat >>confdefs.h <<_ACEOF 15514#define HAVE_DLERROR 1 15515_ACEOF 15516 15517fi 15518done 15519 15520 LIBS="$lt_save_LIBS" 15521fi 15522 15523 15524LIBADD_SHL_LOAD= 15525ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 15526if test "x$ac_cv_func_shl_load" = xyes; then : 15527 15528$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 15529 15530 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" 15531else 15532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 15533$as_echo_n "checking for shl_load in -ldld... " >&6; } 15534if ${ac_cv_lib_dld_shl_load+:} false; then : 15535 $as_echo_n "(cached) " >&6 15536else 15537 ac_check_lib_save_LIBS=$LIBS 15538LIBS="-ldld $LIBS" 15539cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15540/* end confdefs.h. */ 15541 15542/* Override any GCC internal prototype to avoid an error. 15543 Use char because int might match the return type of a GCC 15544 builtin and then its argument prototype would still apply. */ 15545#ifdef __cplusplus 15546extern "C" 15547#endif 15548char shl_load (); 15549int 15550main () 15551{ 15552return shl_load (); 15553 ; 15554 return 0; 15555} 15556_ACEOF 15557if ac_fn_c_try_link "$LINENO"; then : 15558 ac_cv_lib_dld_shl_load=yes 15559else 15560 ac_cv_lib_dld_shl_load=no 15561fi 15562rm -f core conftest.err conftest.$ac_objext \ 15563 conftest$ac_exeext conftest.$ac_ext 15564LIBS=$ac_check_lib_save_LIBS 15565fi 15566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 15567$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 15568if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 15569 15570$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 15571 15572 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" 15573 LIBADD_SHL_LOAD="-ldld" 15574fi 15575 15576fi 15577 15578 15579 15580case $host_os in 15581darwin[1567].*) 15582# We only want this for pre-Mac OS X 10.4. 15583 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup" 15584if test "x$ac_cv_func__dyld_func_lookup" = xyes; then : 15585 15586$as_echo "#define HAVE_DYLD 1" >>confdefs.h 15587 15588 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la" 15589fi 15590 15591 ;; 15592beos*) 15593 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la" 15594 ;; 15595cygwin* | mingw* | os2* | pw32*) 15596 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h> 15597" 15598if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then : 15599 ac_have_decl=1 15600else 15601 ac_have_decl=0 15602fi 15603 15604cat >>confdefs.h <<_ACEOF 15605#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl 15606_ACEOF 15607 15608 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la" 15609 ;; 15610esac 15611 15612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 15613$as_echo_n "checking for dld_link in -ldld... " >&6; } 15614if ${ac_cv_lib_dld_dld_link+:} false; then : 15615 $as_echo_n "(cached) " >&6 15616else 15617 ac_check_lib_save_LIBS=$LIBS 15618LIBS="-ldld $LIBS" 15619cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15620/* end confdefs.h. */ 15621 15622/* Override any GCC internal prototype to avoid an error. 15623 Use char because int might match the return type of a GCC 15624 builtin and then its argument prototype would still apply. */ 15625#ifdef __cplusplus 15626extern "C" 15627#endif 15628char dld_link (); 15629int 15630main () 15631{ 15632return dld_link (); 15633 ; 15634 return 0; 15635} 15636_ACEOF 15637if ac_fn_c_try_link "$LINENO"; then : 15638 ac_cv_lib_dld_dld_link=yes 15639else 15640 ac_cv_lib_dld_dld_link=no 15641fi 15642rm -f core conftest.err conftest.$ac_objext \ 15643 conftest$ac_exeext conftest.$ac_ext 15644LIBS=$ac_check_lib_save_LIBS 15645fi 15646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 15647$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 15648if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 15649 15650$as_echo "#define HAVE_DLD 1" >>confdefs.h 15651 15652 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la" 15653fi 15654 15655 15656 15657 15658LT_DLPREOPEN= 15659if test -n "$LT_DLLOADERS" 15660then 15661 for lt_loader in $LT_DLLOADERS; do 15662 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader " 15663 done 15664 15665$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h 15666 15667fi 15668 15669 15670LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD" 15671 15672 15673ac_ext=c 15674ac_cpp='$CPP $CPPFLAGS' 15675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15677ac_compiler_gnu=$ac_cv_c_compiler_gnu 15678 15679 15680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5 15681$as_echo_n "checking for _ prefix in compiled symbols... " >&6; } 15682if ${lt_cv_sys_symbol_underscore+:} false; then : 15683 $as_echo_n "(cached) " >&6 15684else 15685 lt_cv_sys_symbol_underscore=no 15686 cat > conftest.$ac_ext <<_LT_EOF 15687void nm_test_func(){} 15688int main(){nm_test_func;return 0;} 15689_LT_EOF 15690 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15691 (eval $ac_compile) 2>&5 15692 ac_status=$? 15693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15694 test $ac_status = 0; }; then 15695 # Now try to grab the symbols. 15696 ac_nlist=conftest.nm 15697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5 15698 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 15699 ac_status=$? 15700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15701 test $ac_status = 0; } && test -s "$ac_nlist"; then 15702 # See whether the symbols have a leading underscore. 15703 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then 15704 lt_cv_sys_symbol_underscore=yes 15705 else 15706 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then 15707 : 15708 else 15709 echo "configure: cannot find nm_test_func in $ac_nlist" >&5 15710 fi 15711 fi 15712 else 15713 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 15714 fi 15715 else 15716 echo "configure: failed program was:" >&5 15717 cat conftest.c >&5 15718 fi 15719 rm -rf conftest* 15720 15721fi 15722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5 15723$as_echo "$lt_cv_sys_symbol_underscore" >&6; } 15724 sys_symbol_underscore=$lt_cv_sys_symbol_underscore 15725 15726 15727if test x"$lt_cv_sys_symbol_underscore" = xyes; then 15728 if test x"$libltdl_cv_func_dlopen" = xyes || 15729 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then 15730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5 15731$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; } 15732if ${libltdl_cv_need_uscore+:} false; then : 15733 $as_echo_n "(cached) " >&6 15734else 15735 libltdl_cv_need_uscore=unknown 15736 save_LIBS="$LIBS" 15737 LIBS="$LIBS $LIBADD_DLOPEN" 15738 if test "$cross_compiling" = yes; then : 15739 libltdl_cv_need_uscore=cross 15740else 15741 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 15742 lt_status=$lt_dlunknown 15743 cat > conftest.$ac_ext <<_LT_EOF 15744#line 15744 "configure" 15745#include "confdefs.h" 15746 15747#if HAVE_DLFCN_H 15748#include <dlfcn.h> 15749#endif 15750 15751#include <stdio.h> 15752 15753#ifdef RTLD_GLOBAL 15754# define LT_DLGLOBAL RTLD_GLOBAL 15755#else 15756# ifdef DL_GLOBAL 15757# define LT_DLGLOBAL DL_GLOBAL 15758# else 15759# define LT_DLGLOBAL 0 15760# endif 15761#endif 15762 15763/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 15764 find out it does not work in some platform. */ 15765#ifndef LT_DLLAZY_OR_NOW 15766# ifdef RTLD_LAZY 15767# define LT_DLLAZY_OR_NOW RTLD_LAZY 15768# else 15769# ifdef DL_LAZY 15770# define LT_DLLAZY_OR_NOW DL_LAZY 15771# else 15772# ifdef RTLD_NOW 15773# define LT_DLLAZY_OR_NOW RTLD_NOW 15774# else 15775# ifdef DL_NOW 15776# define LT_DLLAZY_OR_NOW DL_NOW 15777# else 15778# define LT_DLLAZY_OR_NOW 0 15779# endif 15780# endif 15781# endif 15782# endif 15783#endif 15784 15785void fnord() { int i=42;} 15786int main () 15787{ 15788 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 15789 int status = $lt_dlunknown; 15790 15791 if (self) 15792 { 15793 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 15794 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 15795 /* dlclose (self); */ 15796 } 15797 else 15798 puts (dlerror ()); 15799 15800 return status; 15801} 15802_LT_EOF 15803 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 15804 (eval $ac_link) 2>&5 15805 ac_status=$? 15806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15807 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 15808 (./conftest; exit; ) >&5 2>/dev/null 15809 lt_status=$? 15810 case x$lt_status in 15811 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; 15812 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; 15813 x$lt_dlunknown|x*) ;; 15814 esac 15815 else : 15816 # compilation failed 15817 15818 fi 15819fi 15820rm -fr conftest* 15821 15822 LIBS="$save_LIBS" 15823 15824fi 15825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5 15826$as_echo "$libltdl_cv_need_uscore" >&6; } 15827 fi 15828fi 15829 15830if test x"$libltdl_cv_need_uscore" = xyes; then 15831 15832$as_echo "#define NEED_USCORE 1" >>confdefs.h 15833 15834fi 15835 15836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5 15837$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; } 15838if ${lt_cv_sys_dlopen_deplibs+:} false; then : 15839 $as_echo_n "(cached) " >&6 15840else 15841 # PORTME does your system automatically load deplibs for dlopen? 15842 # or its logical equivalent (e.g. shl_load for HP-UX < 11) 15843 # For now, we just catch OSes we know something about -- in the 15844 # future, we'll try test this programmatically. 15845 lt_cv_sys_dlopen_deplibs=unknown 15846 case $host_os in 15847 aix3*|aix4.1.*|aix4.2.*) 15848 # Unknown whether this is true for these versions of AIX, but 15849 # we want this `case' here to explicitly catch those versions. 15850 lt_cv_sys_dlopen_deplibs=unknown 15851 ;; 15852 aix[4-9]*) 15853 lt_cv_sys_dlopen_deplibs=yes 15854 ;; 15855 amigaos*) 15856 case $host_cpu in 15857 powerpc) 15858 lt_cv_sys_dlopen_deplibs=no 15859 ;; 15860 esac 15861 ;; 15862 darwin*) 15863 # Assuming the user has installed a libdl from somewhere, this is true 15864 # If you are looking for one http://www.opendarwin.org/projects/dlcompat 15865 lt_cv_sys_dlopen_deplibs=yes 15866 ;; 15867 freebsd* | dragonfly*) 15868 lt_cv_sys_dlopen_deplibs=yes 15869 ;; 15870 gnu* | linux* | k*bsd*-gnu) 15871 # GNU and its variants, using gnu ld.so (Glibc) 15872 lt_cv_sys_dlopen_deplibs=yes 15873 ;; 15874 hpux10*|hpux11*) 15875 lt_cv_sys_dlopen_deplibs=yes 15876 ;; 15877 interix*) 15878 lt_cv_sys_dlopen_deplibs=yes 15879 ;; 15880 irix[12345]*|irix6.[01]*) 15881 # Catch all versions of IRIX before 6.2, and indicate that we don't 15882 # know how it worked for any of those versions. 15883 lt_cv_sys_dlopen_deplibs=unknown 15884 ;; 15885 irix*) 15886 # The case above catches anything before 6.2, and it's known that 15887 # at 6.2 and later dlopen does load deplibs. 15888 lt_cv_sys_dlopen_deplibs=yes 15889 ;; 15890 netbsd*) 15891 lt_cv_sys_dlopen_deplibs=yes 15892 ;; 15893 openbsd*) 15894 lt_cv_sys_dlopen_deplibs=yes 15895 ;; 15896 osf[1234]*) 15897 # dlopen did load deplibs (at least at 4.x), but until the 5.x series, 15898 # it did *not* use an RPATH in a shared library to find objects the 15899 # library depends on, so we explicitly say `no'. 15900 lt_cv_sys_dlopen_deplibs=no 15901 ;; 15902 osf5.0|osf5.0a|osf5.1) 15903 # dlopen *does* load deplibs and with the right loader patch applied 15904 # it even uses RPATH in a shared library to search for shared objects 15905 # that the library depends on, but there's no easy way to know if that 15906 # patch is installed. Since this is the case, all we can really 15907 # say is unknown -- it depends on the patch being installed. If 15908 # it is, this changes to `yes'. Without it, it would be `no'. 15909 lt_cv_sys_dlopen_deplibs=unknown 15910 ;; 15911 osf*) 15912 # the two cases above should catch all versions of osf <= 5.1. Read 15913 # the comments above for what we know about them. 15914 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library 15915 # is used to find them so we can finally say `yes'. 15916 lt_cv_sys_dlopen_deplibs=yes 15917 ;; 15918 qnx*) 15919 lt_cv_sys_dlopen_deplibs=yes 15920 ;; 15921 solaris*) 15922 lt_cv_sys_dlopen_deplibs=yes 15923 ;; 15924 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15925 libltdl_cv_sys_dlopen_deplibs=yes 15926 ;; 15927 esac 15928 15929fi 15930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5 15931$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; } 15932if test "$lt_cv_sys_dlopen_deplibs" != yes; then 15933 15934$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h 15935 15936fi 15937 15938: 15939 15940for ac_header in argz.h 15941do : 15942 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default 15943" 15944if test "x$ac_cv_header_argz_h" = xyes; then : 15945 cat >>confdefs.h <<_ACEOF 15946#define HAVE_ARGZ_H 1 15947_ACEOF 15948 15949fi 15950 15951done 15952 15953 15954ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H) 15955# include <argz.h> 15956#endif 15957" 15958if test "x$ac_cv_type_error_t" = xyes; then : 15959 15960cat >>confdefs.h <<_ACEOF 15961#define HAVE_ERROR_T 1 15962_ACEOF 15963 15964 15965else 15966 15967$as_echo "#define error_t int" >>confdefs.h 15968 15969 15970$as_echo "#define __error_t_defined 1" >>confdefs.h 15971 15972fi 15973 15974 15975ARGZ_H= 15976for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \ 15977 argz_next argz_stringify 15978do : 15979 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15980ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15981if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15982 cat >>confdefs.h <<_ACEOF 15983#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15984_ACEOF 15985 15986else 15987 ARGZ_H=argz.h; 15988 15989 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" 15990 15991fi 15992done 15993 15994 15995if test -z "$ARGZ_H"; then : 15996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5 15997$as_echo_n "checking if argz actually works... " >&6; } 15998if ${lt_cv_sys_argz_works+:} false; then : 15999 $as_echo_n "(cached) " >&6 16000else 16001 case $host_os in #( 16002 *cygwin*) 16003 lt_cv_sys_argz_works=no 16004 if test "$cross_compiling" != no; then 16005 lt_cv_sys_argz_works="guessing no" 16006 else 16007 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/' 16008 save_IFS=$IFS 16009 IFS=-. 16010 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"` 16011 IFS=$save_IFS 16012 lt_os_major=${2-0} 16013 lt_os_minor=${3-0} 16014 lt_os_micro=${4-0} 16015 if test "$lt_os_major" -gt 1 \ 16016 || { test "$lt_os_major" -eq 1 \ 16017 && { test "$lt_os_minor" -gt 5 \ 16018 || { test "$lt_os_minor" -eq 5 \ 16019 && test "$lt_os_micro" -gt 24; }; }; }; then 16020 lt_cv_sys_argz_works=yes 16021 fi 16022 fi 16023 ;; #( 16024 *) lt_cv_sys_argz_works=yes ;; 16025 esac 16026fi 16027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5 16028$as_echo "$lt_cv_sys_argz_works" >&6; } 16029 if test $lt_cv_sys_argz_works = yes; then : 16030 16031$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h 16032 16033else 16034 ARGZ_H=argz.h 16035 16036 16037 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" 16038 16039fi 16040fi 16041 16042 16043 16044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5 16045$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; } 16046if ${libltdl_cv_preloaded_symbols+:} false; then : 16047 $as_echo_n "(cached) " >&6 16048else 16049 if test -n "$lt_cv_sys_global_symbol_pipe"; then 16050 libltdl_cv_preloaded_symbols=yes 16051 else 16052 libltdl_cv_preloaded_symbols=no 16053 fi 16054 16055fi 16056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5 16057$as_echo "$libltdl_cv_preloaded_symbols" >&6; } 16058if test x"$libltdl_cv_preloaded_symbols" = xyes; then 16059 16060$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h 16061 16062fi 16063 16064 16065 16066# Set options 16067 16068 16069 16070 16071 16072 16073 16074 16075 16076 16077 16078 16079# Check whether --with-included_ltdl was given. 16080if test "${with_included_ltdl+set}" = set; then : 16081 withval=$with_included_ltdl; 16082fi 16083 16084 16085if test "x$with_included_ltdl" != xyes; then 16086 # We are not being forced to use the included libltdl sources, so 16087 # decide whether there is a useful installed version we can use. 16088 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default 16089 16090" 16091if test "x$ac_cv_header_ltdl_h" = xyes; then : 16092 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default 16093 #include <ltdl.h> 16094" 16095if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then : 16096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5 16097$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; } 16098if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then : 16099 $as_echo_n "(cached) " >&6 16100else 16101 ac_check_lib_save_LIBS=$LIBS 16102LIBS="-lltdl $LIBS" 16103cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16104/* end confdefs.h. */ 16105 16106/* Override any GCC internal prototype to avoid an error. 16107 Use char because int might match the return type of a GCC 16108 builtin and then its argument prototype would still apply. */ 16109#ifdef __cplusplus 16110extern "C" 16111#endif 16112char lt_dladvise_preload (); 16113int 16114main () 16115{ 16116return lt_dladvise_preload (); 16117 ; 16118 return 0; 16119} 16120_ACEOF 16121if ac_fn_c_try_link "$LINENO"; then : 16122 ac_cv_lib_ltdl_lt_dladvise_preload=yes 16123else 16124 ac_cv_lib_ltdl_lt_dladvise_preload=no 16125fi 16126rm -f core conftest.err conftest.$ac_objext \ 16127 conftest$ac_exeext conftest.$ac_ext 16128LIBS=$ac_check_lib_save_LIBS 16129fi 16130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5 16131$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; } 16132if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then : 16133 with_included_ltdl=no 16134else 16135 with_included_ltdl=yes 16136fi 16137 16138else 16139 with_included_ltdl=yes 16140fi 16141 16142else 16143 with_included_ltdl=yes 16144fi 16145 16146 16147fi 16148 16149 16150 16151 16152 16153 16154 16155 16156 16157# Check whether --with-ltdl_include was given. 16158if test "${with_ltdl_include+set}" = set; then : 16159 withval=$with_ltdl_include; 16160fi 16161 16162 16163if test -n "$with_ltdl_include"; then 16164 if test -f "$with_ltdl_include/ltdl.h"; then : 16165 else 16166 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5 16167 fi 16168else 16169 with_ltdl_include=no 16170fi 16171 16172 16173# Check whether --with-ltdl_lib was given. 16174if test "${with_ltdl_lib+set}" = set; then : 16175 withval=$with_ltdl_lib; 16176fi 16177 16178 16179if test -n "$with_ltdl_lib"; then 16180 if test -f "$with_ltdl_lib/libltdl.la"; then : 16181 else 16182 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5 16183 fi 16184else 16185 with_ltdl_lib=no 16186fi 16187 16188case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in 16189 ,yes,no,no,) 16190 case $enable_ltdl_convenience in 16191 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;; 16192 "") enable_ltdl_convenience=yes 16193 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; 16194esac 16195LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la" 16196LTDLDEPS=$LIBLTDL 16197LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}" 16198 16199 16200 16201 16202 16203# For backwards non-gettext consistent compatibility... 16204INCLTDL="$LTDLINCL" 16205 16206 16207 ;; 16208 ,no,no,no,) 16209 # If the included ltdl is not to be used, then use the 16210 # preinstalled libltdl we found. 16211 16212$as_echo "#define HAVE_LTDL 1" >>confdefs.h 16213 16214 LIBLTDL=-lltdl 16215 LTDLDEPS= 16216 LTDLINCL= 16217 ;; 16218 ,no*,no,*) 16219 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5 16220 ;; 16221 *) with_included_ltdl=no 16222 LIBLTDL="-L$with_ltdl_lib -lltdl" 16223 LTDLDEPS= 16224 LTDLINCL="-I$with_ltdl_include" 16225 ;; 16226esac 16227INCLTDL="$LTDLINCL" 16228 16229# Report our decision... 16230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5 16231$as_echo_n "checking where to find libltdl headers... " >&6; } 16232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5 16233$as_echo "$LTDLINCL" >&6; } 16234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5 16235$as_echo_n "checking where to find libltdl library... " >&6; } 16236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5 16237$as_echo "$LIBLTDL" >&6; } 16238 16239 16240 16241# Check whether --enable-ltdl-install was given. 16242if test "${enable_ltdl_install+set}" = set; then : 16243 enableval=$enable_ltdl_install; 16244fi 16245 16246 16247case ,${enable_ltdl_install},${enable_ltdl_convenience} in 16248 *yes*) ;; 16249 *) enable_ltdl_convenience=yes ;; 16250esac 16251 16252 if test x"${enable_ltdl_install-no}" != xno; then 16253 INSTALL_LTDL_TRUE= 16254 INSTALL_LTDL_FALSE='#' 16255else 16256 INSTALL_LTDL_TRUE='#' 16257 INSTALL_LTDL_FALSE= 16258fi 16259 16260 if test x"${enable_ltdl_convenience-no}" != xno; then 16261 CONVENIENCE_LTDL_TRUE= 16262 CONVENIENCE_LTDL_FALSE='#' 16263else 16264 CONVENIENCE_LTDL_TRUE='#' 16265 CONVENIENCE_LTDL_FALSE= 16266fi 16267 16268 16269 16270 subdirs="$subdirs libltdl" 16271 16272 16273 16274 16275 16276# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS 16277# the user used. This is so that ltdl.h can pick up the parent projects 16278# config.h file, The first file in AC_CONFIG_HEADERS must contain the 16279# definitions required by ltdl.c. 16280# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility). 16281 16282 16283 16284for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h 16285do : 16286 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16287ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 16288" 16289if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16290 cat >>confdefs.h <<_ACEOF 16291#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16292_ACEOF 16293 16294fi 16295 16296done 16297 16298 16299for ac_func in closedir opendir readdir 16300do : 16301 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16302ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16303if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16304 cat >>confdefs.h <<_ACEOF 16305#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16306_ACEOF 16307 16308else 16309 16310 16311 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext" 16312 16313fi 16314done 16315 16316for ac_func in strlcat strlcpy 16317do : 16318 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16319ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16320if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16321 cat >>confdefs.h <<_ACEOF 16322#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16323_ACEOF 16324 16325else 16326 16327 16328 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext" 16329 16330fi 16331done 16332 16333 16334 16335cat >>confdefs.h <<_ACEOF 16336#define LT_LIBEXT "$libext" 16337_ACEOF 16338 16339 16340name=ltdl 16341LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""` 16342 16343 16344 16345 16346 16347 16348 16349 16350# Only expand once: 16351 16352 16353 16354 16355ac_ext=cpp 16356ac_cpp='$CXXCPP $CPPFLAGS' 16357ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16358ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16359ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16360if test -z "$CXX"; then 16361 if test -n "$CCC"; then 16362 CXX=$CCC 16363 else 16364 if test -n "$ac_tool_prefix"; then 16365 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 16366 do 16367 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 16368set dummy $ac_tool_prefix$ac_prog; ac_word=$2 16369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16370$as_echo_n "checking for $ac_word... " >&6; } 16371if ${ac_cv_prog_CXX+:} false; then : 16372 $as_echo_n "(cached) " >&6 16373else 16374 if test -n "$CXX"; then 16375 ac_cv_prog_CXX="$CXX" # Let the user override the test. 16376else 16377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16378for as_dir in $PATH 16379do 16380 IFS=$as_save_IFS 16381 test -z "$as_dir" && as_dir=. 16382 for ac_exec_ext in '' $ac_executable_extensions; do 16383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16384 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 16385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16386 break 2 16387 fi 16388done 16389 done 16390IFS=$as_save_IFS 16391 16392fi 16393fi 16394CXX=$ac_cv_prog_CXX 16395if test -n "$CXX"; then 16396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 16397$as_echo "$CXX" >&6; } 16398else 16399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16400$as_echo "no" >&6; } 16401fi 16402 16403 16404 test -n "$CXX" && break 16405 done 16406fi 16407if test -z "$CXX"; then 16408 ac_ct_CXX=$CXX 16409 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 16410do 16411 # Extract the first word of "$ac_prog", so it can be a program name with args. 16412set dummy $ac_prog; ac_word=$2 16413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16414$as_echo_n "checking for $ac_word... " >&6; } 16415if ${ac_cv_prog_ac_ct_CXX+:} false; then : 16416 $as_echo_n "(cached) " >&6 16417else 16418 if test -n "$ac_ct_CXX"; then 16419 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 16420else 16421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16422for as_dir in $PATH 16423do 16424 IFS=$as_save_IFS 16425 test -z "$as_dir" && as_dir=. 16426 for ac_exec_ext in '' $ac_executable_extensions; do 16427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16428 ac_cv_prog_ac_ct_CXX="$ac_prog" 16429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16430 break 2 16431 fi 16432done 16433 done 16434IFS=$as_save_IFS 16435 16436fi 16437fi 16438ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 16439if test -n "$ac_ct_CXX"; then 16440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 16441$as_echo "$ac_ct_CXX" >&6; } 16442else 16443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16444$as_echo "no" >&6; } 16445fi 16446 16447 16448 test -n "$ac_ct_CXX" && break 16449done 16450 16451 if test "x$ac_ct_CXX" = x; then 16452 CXX="g++" 16453 else 16454 case $cross_compiling:$ac_tool_warned in 16455yes:) 16456{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16457$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16458ac_tool_warned=yes ;; 16459esac 16460 CXX=$ac_ct_CXX 16461 fi 16462fi 16463 16464 fi 16465fi 16466# Provide some information about the compiler. 16467$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 16468set X $ac_compile 16469ac_compiler=$2 16470for ac_option in --version -v -V -qversion; do 16471 { { ac_try="$ac_compiler $ac_option >&5" 16472case "(($ac_try" in 16473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16474 *) ac_try_echo=$ac_try;; 16475esac 16476eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 16477$as_echo "$ac_try_echo"; } >&5 16478 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 16479 ac_status=$? 16480 if test -s conftest.err; then 16481 sed '10a\ 16482... rest of stderr output deleted ... 16483 10q' conftest.err >conftest.er1 16484 cat conftest.er1 >&5 16485 fi 16486 rm -f conftest.er1 conftest.err 16487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16488 test $ac_status = 0; } 16489done 16490 16491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 16492$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 16493if ${ac_cv_cxx_compiler_gnu+:} false; then : 16494 $as_echo_n "(cached) " >&6 16495else 16496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16497/* end confdefs.h. */ 16498 16499int 16500main () 16501{ 16502#ifndef __GNUC__ 16503 choke me 16504#endif 16505 16506 ; 16507 return 0; 16508} 16509_ACEOF 16510if ac_fn_cxx_try_compile "$LINENO"; then : 16511 ac_compiler_gnu=yes 16512else 16513 ac_compiler_gnu=no 16514fi 16515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16516ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 16517 16518fi 16519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 16520$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 16521if test $ac_compiler_gnu = yes; then 16522 GXX=yes 16523else 16524 GXX= 16525fi 16526ac_test_CXXFLAGS=${CXXFLAGS+set} 16527ac_save_CXXFLAGS=$CXXFLAGS 16528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 16529$as_echo_n "checking whether $CXX accepts -g... " >&6; } 16530if ${ac_cv_prog_cxx_g+:} false; then : 16531 $as_echo_n "(cached) " >&6 16532else 16533 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 16534 ac_cxx_werror_flag=yes 16535 ac_cv_prog_cxx_g=no 16536 CXXFLAGS="-g" 16537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16538/* end confdefs.h. */ 16539 16540int 16541main () 16542{ 16543 16544 ; 16545 return 0; 16546} 16547_ACEOF 16548if ac_fn_cxx_try_compile "$LINENO"; then : 16549 ac_cv_prog_cxx_g=yes 16550else 16551 CXXFLAGS="" 16552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16553/* end confdefs.h. */ 16554 16555int 16556main () 16557{ 16558 16559 ; 16560 return 0; 16561} 16562_ACEOF 16563if ac_fn_cxx_try_compile "$LINENO"; then : 16564 16565else 16566 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 16567 CXXFLAGS="-g" 16568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16569/* end confdefs.h. */ 16570 16571int 16572main () 16573{ 16574 16575 ; 16576 return 0; 16577} 16578_ACEOF 16579if ac_fn_cxx_try_compile "$LINENO"; then : 16580 ac_cv_prog_cxx_g=yes 16581fi 16582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16583fi 16584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16585fi 16586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16587 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 16588fi 16589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 16590$as_echo "$ac_cv_prog_cxx_g" >&6; } 16591if test "$ac_test_CXXFLAGS" = set; then 16592 CXXFLAGS=$ac_save_CXXFLAGS 16593elif test $ac_cv_prog_cxx_g = yes; then 16594 if test "$GXX" = yes; then 16595 CXXFLAGS="-g -O2" 16596 else 16597 CXXFLAGS="-g" 16598 fi 16599else 16600 if test "$GXX" = yes; then 16601 CXXFLAGS="-O2" 16602 else 16603 CXXFLAGS= 16604 fi 16605fi 16606ac_ext=c 16607ac_cpp='$CPP $CPPFLAGS' 16608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16610ac_compiler_gnu=$ac_cv_c_compiler_gnu 16611 16612depcc="$CXX" am_compiler_list= 16613 16614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 16615$as_echo_n "checking dependency style of $depcc... " >&6; } 16616if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 16617 $as_echo_n "(cached) " >&6 16618else 16619 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 16620 # We make a subdir and do the tests there. Otherwise we can end up 16621 # making bogus files that we don't know about and never remove. For 16622 # instance it was reported that on HP-UX the gcc test will end up 16623 # making a dummy file named `D' -- because `-MD' means `put the output 16624 # in D'. 16625 mkdir conftest.dir 16626 # Copy depcomp to subdir because otherwise we won't find it if we're 16627 # using a relative directory. 16628 cp "$am_depcomp" conftest.dir 16629 cd conftest.dir 16630 # We will build objects and dependencies in a subdirectory because 16631 # it helps to detect inapplicable dependency modes. For instance 16632 # both Tru64's cc and ICC support -MD to output dependencies as a 16633 # side effect of compilation, but ICC will put the dependencies in 16634 # the current directory while Tru64 will put them in the object 16635 # directory. 16636 mkdir sub 16637 16638 am_cv_CXX_dependencies_compiler_type=none 16639 if test "$am_compiler_list" = ""; then 16640 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 16641 fi 16642 am__universal=false 16643 case " $depcc " in #( 16644 *\ -arch\ *\ -arch\ *) am__universal=true ;; 16645 esac 16646 16647 for depmode in $am_compiler_list; do 16648 # Setup a source with many dependencies, because some compilers 16649 # like to wrap large dependency lists on column 80 (with \), and 16650 # we should not choose a depcomp mode which is confused by this. 16651 # 16652 # We need to recreate these files for each test, as the compiler may 16653 # overwrite some of them when testing with obscure command lines. 16654 # This happens at least with the AIX C compiler. 16655 : > sub/conftest.c 16656 for i in 1 2 3 4 5 6; do 16657 echo '#include "conftst'$i'.h"' >> sub/conftest.c 16658 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 16659 # Solaris 8's {/usr,}/bin/sh. 16660 touch sub/conftst$i.h 16661 done 16662 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 16663 16664 # We check with `-c' and `-o' for the sake of the "dashmstdout" 16665 # mode. It turns out that the SunPro C++ compiler does not properly 16666 # handle `-M -o', and we need to detect this. Also, some Intel 16667 # versions had trouble with output in subdirs 16668 am__obj=sub/conftest.${OBJEXT-o} 16669 am__minus_obj="-o $am__obj" 16670 case $depmode in 16671 gcc) 16672 # This depmode causes a compiler race in universal mode. 16673 test "$am__universal" = false || continue 16674 ;; 16675 nosideeffect) 16676 # after this tag, mechanisms are not by side-effect, so they'll 16677 # only be used when explicitly requested 16678 if test "x$enable_dependency_tracking" = xyes; then 16679 continue 16680 else 16681 break 16682 fi 16683 ;; 16684 msvisualcpp | msvcmsys) 16685 # This compiler won't grok `-c -o', but also, the minuso test has 16686 # not run yet. These depmodes are late enough in the game, and 16687 # so weak that their functioning should not be impacted. 16688 am__obj=conftest.${OBJEXT-o} 16689 am__minus_obj= 16690 ;; 16691 none) break ;; 16692 esac 16693 if depmode=$depmode \ 16694 source=sub/conftest.c object=$am__obj \ 16695 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 16696 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 16697 >/dev/null 2>conftest.err && 16698 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 16699 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 16700 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 16701 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 16702 # icc doesn't choke on unknown options, it will just issue warnings 16703 # or remarks (even with -Werror). So we grep stderr for any message 16704 # that says an option was ignored or not supported. 16705 # When given -MP, icc 7.0 and 7.1 complain thusly: 16706 # icc: Command line warning: ignoring option '-M'; no argument required 16707 # The diagnosis changed in icc 8.0: 16708 # icc: Command line remark: option '-MP' not supported 16709 if (grep 'ignoring option' conftest.err || 16710 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 16711 am_cv_CXX_dependencies_compiler_type=$depmode 16712 break 16713 fi 16714 fi 16715 done 16716 16717 cd .. 16718 rm -rf conftest.dir 16719else 16720 am_cv_CXX_dependencies_compiler_type=none 16721fi 16722 16723fi 16724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 16725$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 16726CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 16727 16728 if 16729 test "x$enable_dependency_tracking" != xno \ 16730 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 16731 am__fastdepCXX_TRUE= 16732 am__fastdepCXX_FALSE='#' 16733else 16734 am__fastdepCXX_TRUE='#' 16735 am__fastdepCXX_FALSE= 16736fi 16737 16738 16739 16740ac_ext=cpp 16741ac_cpp='$CXXCPP $CPPFLAGS' 16742ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16743ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16744ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16745if test -z "$CXX"; then 16746 if test -n "$CCC"; then 16747 CXX=$CCC 16748 else 16749 if test -n "$ac_tool_prefix"; then 16750 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 16751 do 16752 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 16753set dummy $ac_tool_prefix$ac_prog; ac_word=$2 16754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16755$as_echo_n "checking for $ac_word... " >&6; } 16756if ${ac_cv_prog_CXX+:} false; then : 16757 $as_echo_n "(cached) " >&6 16758else 16759 if test -n "$CXX"; then 16760 ac_cv_prog_CXX="$CXX" # Let the user override the test. 16761else 16762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16763for as_dir in $PATH 16764do 16765 IFS=$as_save_IFS 16766 test -z "$as_dir" && as_dir=. 16767 for ac_exec_ext in '' $ac_executable_extensions; do 16768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16769 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 16770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16771 break 2 16772 fi 16773done 16774 done 16775IFS=$as_save_IFS 16776 16777fi 16778fi 16779CXX=$ac_cv_prog_CXX 16780if test -n "$CXX"; then 16781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 16782$as_echo "$CXX" >&6; } 16783else 16784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16785$as_echo "no" >&6; } 16786fi 16787 16788 16789 test -n "$CXX" && break 16790 done 16791fi 16792if test -z "$CXX"; then 16793 ac_ct_CXX=$CXX 16794 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 16795do 16796 # Extract the first word of "$ac_prog", so it can be a program name with args. 16797set dummy $ac_prog; ac_word=$2 16798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16799$as_echo_n "checking for $ac_word... " >&6; } 16800if ${ac_cv_prog_ac_ct_CXX+:} false; then : 16801 $as_echo_n "(cached) " >&6 16802else 16803 if test -n "$ac_ct_CXX"; then 16804 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 16805else 16806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16807for as_dir in $PATH 16808do 16809 IFS=$as_save_IFS 16810 test -z "$as_dir" && as_dir=. 16811 for ac_exec_ext in '' $ac_executable_extensions; do 16812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16813 ac_cv_prog_ac_ct_CXX="$ac_prog" 16814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16815 break 2 16816 fi 16817done 16818 done 16819IFS=$as_save_IFS 16820 16821fi 16822fi 16823ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 16824if test -n "$ac_ct_CXX"; then 16825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 16826$as_echo "$ac_ct_CXX" >&6; } 16827else 16828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16829$as_echo "no" >&6; } 16830fi 16831 16832 16833 test -n "$ac_ct_CXX" && break 16834done 16835 16836 if test "x$ac_ct_CXX" = x; then 16837 CXX="g++" 16838 else 16839 case $cross_compiling:$ac_tool_warned in 16840yes:) 16841{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16842$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16843ac_tool_warned=yes ;; 16844esac 16845 CXX=$ac_ct_CXX 16846 fi 16847fi 16848 16849 fi 16850fi 16851# Provide some information about the compiler. 16852$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 16853set X $ac_compile 16854ac_compiler=$2 16855for ac_option in --version -v -V -qversion; do 16856 { { ac_try="$ac_compiler $ac_option >&5" 16857case "(($ac_try" in 16858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16859 *) ac_try_echo=$ac_try;; 16860esac 16861eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 16862$as_echo "$ac_try_echo"; } >&5 16863 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 16864 ac_status=$? 16865 if test -s conftest.err; then 16866 sed '10a\ 16867... rest of stderr output deleted ... 16868 10q' conftest.err >conftest.er1 16869 cat conftest.er1 >&5 16870 fi 16871 rm -f conftest.er1 conftest.err 16872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16873 test $ac_status = 0; } 16874done 16875 16876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 16877$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 16878if ${ac_cv_cxx_compiler_gnu+:} false; then : 16879 $as_echo_n "(cached) " >&6 16880else 16881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16882/* end confdefs.h. */ 16883 16884int 16885main () 16886{ 16887#ifndef __GNUC__ 16888 choke me 16889#endif 16890 16891 ; 16892 return 0; 16893} 16894_ACEOF 16895if ac_fn_cxx_try_compile "$LINENO"; then : 16896 ac_compiler_gnu=yes 16897else 16898 ac_compiler_gnu=no 16899fi 16900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16901ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 16902 16903fi 16904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 16905$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 16906if test $ac_compiler_gnu = yes; then 16907 GXX=yes 16908else 16909 GXX= 16910fi 16911ac_test_CXXFLAGS=${CXXFLAGS+set} 16912ac_save_CXXFLAGS=$CXXFLAGS 16913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 16914$as_echo_n "checking whether $CXX accepts -g... " >&6; } 16915if ${ac_cv_prog_cxx_g+:} false; then : 16916 $as_echo_n "(cached) " >&6 16917else 16918 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 16919 ac_cxx_werror_flag=yes 16920 ac_cv_prog_cxx_g=no 16921 CXXFLAGS="-g" 16922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16923/* end confdefs.h. */ 16924 16925int 16926main () 16927{ 16928 16929 ; 16930 return 0; 16931} 16932_ACEOF 16933if ac_fn_cxx_try_compile "$LINENO"; then : 16934 ac_cv_prog_cxx_g=yes 16935else 16936 CXXFLAGS="" 16937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16938/* end confdefs.h. */ 16939 16940int 16941main () 16942{ 16943 16944 ; 16945 return 0; 16946} 16947_ACEOF 16948if ac_fn_cxx_try_compile "$LINENO"; then : 16949 16950else 16951 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 16952 CXXFLAGS="-g" 16953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16954/* end confdefs.h. */ 16955 16956int 16957main () 16958{ 16959 16960 ; 16961 return 0; 16962} 16963_ACEOF 16964if ac_fn_cxx_try_compile "$LINENO"; then : 16965 ac_cv_prog_cxx_g=yes 16966fi 16967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16968fi 16969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16970fi 16971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16972 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 16973fi 16974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 16975$as_echo "$ac_cv_prog_cxx_g" >&6; } 16976if test "$ac_test_CXXFLAGS" = set; then 16977 CXXFLAGS=$ac_save_CXXFLAGS 16978elif test $ac_cv_prog_cxx_g = yes; then 16979 if test "$GXX" = yes; then 16980 CXXFLAGS="-g -O2" 16981 else 16982 CXXFLAGS="-g" 16983 fi 16984else 16985 if test "$GXX" = yes; then 16986 CXXFLAGS="-O2" 16987 else 16988 CXXFLAGS= 16989 fi 16990fi 16991ac_ext=c 16992ac_cpp='$CPP $CPPFLAGS' 16993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16995ac_compiler_gnu=$ac_cv_c_compiler_gnu 16996 16997depcc="$CXX" am_compiler_list= 16998 16999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 17000$as_echo_n "checking dependency style of $depcc... " >&6; } 17001if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 17002 $as_echo_n "(cached) " >&6 17003else 17004 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 17005 # We make a subdir and do the tests there. Otherwise we can end up 17006 # making bogus files that we don't know about and never remove. For 17007 # instance it was reported that on HP-UX the gcc test will end up 17008 # making a dummy file named `D' -- because `-MD' means `put the output 17009 # in D'. 17010 mkdir conftest.dir 17011 # Copy depcomp to subdir because otherwise we won't find it if we're 17012 # using a relative directory. 17013 cp "$am_depcomp" conftest.dir 17014 cd conftest.dir 17015 # We will build objects and dependencies in a subdirectory because 17016 # it helps to detect inapplicable dependency modes. For instance 17017 # both Tru64's cc and ICC support -MD to output dependencies as a 17018 # side effect of compilation, but ICC will put the dependencies in 17019 # the current directory while Tru64 will put them in the object 17020 # directory. 17021 mkdir sub 17022 17023 am_cv_CXX_dependencies_compiler_type=none 17024 if test "$am_compiler_list" = ""; then 17025 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 17026 fi 17027 am__universal=false 17028 case " $depcc " in #( 17029 *\ -arch\ *\ -arch\ *) am__universal=true ;; 17030 esac 17031 17032 for depmode in $am_compiler_list; do 17033 # Setup a source with many dependencies, because some compilers 17034 # like to wrap large dependency lists on column 80 (with \), and 17035 # we should not choose a depcomp mode which is confused by this. 17036 # 17037 # We need to recreate these files for each test, as the compiler may 17038 # overwrite some of them when testing with obscure command lines. 17039 # This happens at least with the AIX C compiler. 17040 : > sub/conftest.c 17041 for i in 1 2 3 4 5 6; do 17042 echo '#include "conftst'$i'.h"' >> sub/conftest.c 17043 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 17044 # Solaris 8's {/usr,}/bin/sh. 17045 touch sub/conftst$i.h 17046 done 17047 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 17048 17049 # We check with `-c' and `-o' for the sake of the "dashmstdout" 17050 # mode. It turns out that the SunPro C++ compiler does not properly 17051 # handle `-M -o', and we need to detect this. Also, some Intel 17052 # versions had trouble with output in subdirs 17053 am__obj=sub/conftest.${OBJEXT-o} 17054 am__minus_obj="-o $am__obj" 17055 case $depmode in 17056 gcc) 17057 # This depmode causes a compiler race in universal mode. 17058 test "$am__universal" = false || continue 17059 ;; 17060 nosideeffect) 17061 # after this tag, mechanisms are not by side-effect, so they'll 17062 # only be used when explicitly requested 17063 if test "x$enable_dependency_tracking" = xyes; then 17064 continue 17065 else 17066 break 17067 fi 17068 ;; 17069 msvisualcpp | msvcmsys) 17070 # This compiler won't grok `-c -o', but also, the minuso test has 17071 # not run yet. These depmodes are late enough in the game, and 17072 # so weak that their functioning should not be impacted. 17073 am__obj=conftest.${OBJEXT-o} 17074 am__minus_obj= 17075 ;; 17076 none) break ;; 17077 esac 17078 if depmode=$depmode \ 17079 source=sub/conftest.c object=$am__obj \ 17080 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 17081 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 17082 >/dev/null 2>conftest.err && 17083 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 17084 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 17085 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 17086 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 17087 # icc doesn't choke on unknown options, it will just issue warnings 17088 # or remarks (even with -Werror). So we grep stderr for any message 17089 # that says an option was ignored or not supported. 17090 # When given -MP, icc 7.0 and 7.1 complain thusly: 17091 # icc: Command line warning: ignoring option '-M'; no argument required 17092 # The diagnosis changed in icc 8.0: 17093 # icc: Command line remark: option '-MP' not supported 17094 if (grep 'ignoring option' conftest.err || 17095 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 17096 am_cv_CXX_dependencies_compiler_type=$depmode 17097 break 17098 fi 17099 fi 17100 done 17101 17102 cd .. 17103 rm -rf conftest.dir 17104else 17105 am_cv_CXX_dependencies_compiler_type=none 17106fi 17107 17108fi 17109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 17110$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 17111CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 17112 17113 if 17114 test "x$enable_dependency_tracking" != xno \ 17115 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 17116 am__fastdepCXX_TRUE= 17117 am__fastdepCXX_FALSE='#' 17118else 17119 am__fastdepCXX_TRUE='#' 17120 am__fastdepCXX_FALSE= 17121fi 17122 17123 17124if test -n "$CXX" && ( test "X$CXX" != "Xno" && 17125 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 17126 (test "X$CXX" != "Xg++"))) ; then 17127 ac_ext=cpp 17128ac_cpp='$CXXCPP $CPPFLAGS' 17129ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17130ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17131ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 17133$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 17134if test -z "$CXXCPP"; then 17135 if ${ac_cv_prog_CXXCPP+:} false; then : 17136 $as_echo_n "(cached) " >&6 17137else 17138 # Double quotes because CXXCPP needs to be expanded 17139 for CXXCPP in "$CXX -E" "/lib/cpp" 17140 do 17141 ac_preproc_ok=false 17142for ac_cxx_preproc_warn_flag in '' yes 17143do 17144 # Use a header file that comes with gcc, so configuring glibc 17145 # with a fresh cross-compiler works. 17146 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17147 # <limits.h> exists even on freestanding compilers. 17148 # On the NeXT, cc -E runs the code through the compiler's parser, 17149 # not just through cpp. "Syntax error" is here to catch this case. 17150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17151/* end confdefs.h. */ 17152#ifdef __STDC__ 17153# include <limits.h> 17154#else 17155# include <assert.h> 17156#endif 17157 Syntax error 17158_ACEOF 17159if ac_fn_cxx_try_cpp "$LINENO"; then : 17160 17161else 17162 # Broken: fails on valid input. 17163continue 17164fi 17165rm -f conftest.err conftest.i conftest.$ac_ext 17166 17167 # OK, works on sane cases. Now check whether nonexistent headers 17168 # can be detected and how. 17169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17170/* end confdefs.h. */ 17171#include <ac_nonexistent.h> 17172_ACEOF 17173if ac_fn_cxx_try_cpp "$LINENO"; then : 17174 # Broken: success on invalid input. 17175continue 17176else 17177 # Passes both tests. 17178ac_preproc_ok=: 17179break 17180fi 17181rm -f conftest.err conftest.i conftest.$ac_ext 17182 17183done 17184# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 17185rm -f conftest.i conftest.err conftest.$ac_ext 17186if $ac_preproc_ok; then : 17187 break 17188fi 17189 17190 done 17191 ac_cv_prog_CXXCPP=$CXXCPP 17192 17193fi 17194 CXXCPP=$ac_cv_prog_CXXCPP 17195else 17196 ac_cv_prog_CXXCPP=$CXXCPP 17197fi 17198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 17199$as_echo "$CXXCPP" >&6; } 17200ac_preproc_ok=false 17201for ac_cxx_preproc_warn_flag in '' yes 17202do 17203 # Use a header file that comes with gcc, so configuring glibc 17204 # with a fresh cross-compiler works. 17205 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17206 # <limits.h> exists even on freestanding compilers. 17207 # On the NeXT, cc -E runs the code through the compiler's parser, 17208 # not just through cpp. "Syntax error" is here to catch this case. 17209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17210/* end confdefs.h. */ 17211#ifdef __STDC__ 17212# include <limits.h> 17213#else 17214# include <assert.h> 17215#endif 17216 Syntax error 17217_ACEOF 17218if ac_fn_cxx_try_cpp "$LINENO"; then : 17219 17220else 17221 # Broken: fails on valid input. 17222continue 17223fi 17224rm -f conftest.err conftest.i conftest.$ac_ext 17225 17226 # OK, works on sane cases. Now check whether nonexistent headers 17227 # can be detected and how. 17228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17229/* end confdefs.h. */ 17230#include <ac_nonexistent.h> 17231_ACEOF 17232if ac_fn_cxx_try_cpp "$LINENO"; then : 17233 # Broken: success on invalid input. 17234continue 17235else 17236 # Passes both tests. 17237ac_preproc_ok=: 17238break 17239fi 17240rm -f conftest.err conftest.i conftest.$ac_ext 17241 17242done 17243# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 17244rm -f conftest.i conftest.err conftest.$ac_ext 17245if $ac_preproc_ok; then : 17246 17247else 17248 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17249$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17250_lt_caught_CXX_error=yes; } 17251fi 17252 17253ac_ext=c 17254ac_cpp='$CPP $CPPFLAGS' 17255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17257ac_compiler_gnu=$ac_cv_c_compiler_gnu 17258 17259else 17260 _lt_caught_CXX_error=yes 17261fi 17262 17263 17264 17265 17266ac_ext=cpp 17267ac_cpp='$CXXCPP $CPPFLAGS' 17268ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17269ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17270ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17271 17272archive_cmds_need_lc_CXX=no 17273allow_undefined_flag_CXX= 17274always_export_symbols_CXX=no 17275archive_expsym_cmds_CXX= 17276compiler_needs_object_CXX=no 17277export_dynamic_flag_spec_CXX= 17278hardcode_direct_CXX=no 17279hardcode_direct_absolute_CXX=no 17280hardcode_libdir_flag_spec_CXX= 17281hardcode_libdir_flag_spec_ld_CXX= 17282hardcode_libdir_separator_CXX= 17283hardcode_minus_L_CXX=no 17284hardcode_shlibpath_var_CXX=unsupported 17285hardcode_automatic_CXX=no 17286inherit_rpath_CXX=no 17287module_cmds_CXX= 17288module_expsym_cmds_CXX= 17289link_all_deplibs_CXX=unknown 17290old_archive_cmds_CXX=$old_archive_cmds 17291no_undefined_flag_CXX= 17292whole_archive_flag_spec_CXX= 17293enable_shared_with_static_runtimes_CXX=no 17294 17295# Source file extension for C++ test sources. 17296ac_ext=cpp 17297 17298# Object file extension for compiled C++ test sources. 17299objext=o 17300objext_CXX=$objext 17301 17302# No sense in running all these tests if we already determined that 17303# the CXX compiler isn't working. Some variables (like enable_shared) 17304# are currently assumed to apply to all compilers on this platform, 17305# and will be corrupted by setting them based on a non-working compiler. 17306if test "$_lt_caught_CXX_error" != yes; then 17307 # Code to be used in simple compile tests 17308 lt_simple_compile_test_code="int some_variable = 0;" 17309 17310 # Code to be used in simple link tests 17311 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 17312 17313 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 17314 17315 17316 17317 17318 17319 17320# If no C compiler was specified, use CC. 17321LTCC=${LTCC-"$CC"} 17322 17323# If no C compiler flags were specified, use CFLAGS. 17324LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 17325 17326# Allow CC to be a program name with arguments. 17327compiler=$CC 17328 17329 17330 # save warnings/boilerplate of simple test code 17331 ac_outfile=conftest.$ac_objext 17332echo "$lt_simple_compile_test_code" >conftest.$ac_ext 17333eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17334_lt_compiler_boilerplate=`cat conftest.err` 17335$RM conftest* 17336 17337 ac_outfile=conftest.$ac_objext 17338echo "$lt_simple_link_test_code" >conftest.$ac_ext 17339eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17340_lt_linker_boilerplate=`cat conftest.err` 17341$RM -r conftest* 17342 17343 17344 # Allow CC to be a program name with arguments. 17345 lt_save_CC=$CC 17346 lt_save_LD=$LD 17347 lt_save_GCC=$GCC 17348 GCC=$GXX 17349 lt_save_with_gnu_ld=$with_gnu_ld 17350 lt_save_path_LD=$lt_cv_path_LD 17351 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 17352 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 17353 else 17354 $as_unset lt_cv_prog_gnu_ld 17355 fi 17356 if test -n "${lt_cv_path_LDCXX+set}"; then 17357 lt_cv_path_LD=$lt_cv_path_LDCXX 17358 else 17359 $as_unset lt_cv_path_LD 17360 fi 17361 test -z "${LDCXX+set}" || LD=$LDCXX 17362 CC=${CXX-"c++"} 17363 compiler=$CC 17364 compiler_CXX=$CC 17365 for cc_temp in $compiler""; do 17366 case $cc_temp in 17367 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17368 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17369 \-*) ;; 17370 *) break;; 17371 esac 17372done 17373cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17374 17375 17376 if test -n "$compiler"; then 17377 # We don't want -fno-exception when compiling C++ code, so set the 17378 # no_builtin_flag separately 17379 if test "$GXX" = yes; then 17380 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 17381 else 17382 lt_prog_compiler_no_builtin_flag_CXX= 17383 fi 17384 17385 if test "$GXX" = yes; then 17386 # Set up default GNU C++ configuration 17387 17388 17389 17390# Check whether --with-gnu-ld was given. 17391if test "${with_gnu_ld+set}" = set; then : 17392 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 17393else 17394 with_gnu_ld=no 17395fi 17396 17397ac_prog=ld 17398if test "$GCC" = yes; then 17399 # Check if gcc -print-prog-name=ld gives a path. 17400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 17401$as_echo_n "checking for ld used by $CC... " >&6; } 17402 case $host in 17403 *-*-mingw*) 17404 # gcc leaves a trailing carriage return which upsets mingw 17405 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 17406 *) 17407 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 17408 esac 17409 case $ac_prog in 17410 # Accept absolute paths. 17411 [\\/]* | ?:[\\/]*) 17412 re_direlt='/[^/][^/]*/\.\./' 17413 # Canonicalize the pathname of ld 17414 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 17415 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 17416 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 17417 done 17418 test -z "$LD" && LD="$ac_prog" 17419 ;; 17420 "") 17421 # If it fails, then pretend we aren't using GCC. 17422 ac_prog=ld 17423 ;; 17424 *) 17425 # If it is relative, then search for the first ld in PATH. 17426 with_gnu_ld=unknown 17427 ;; 17428 esac 17429elif test "$with_gnu_ld" = yes; then 17430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 17431$as_echo_n "checking for GNU ld... " >&6; } 17432else 17433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 17434$as_echo_n "checking for non-GNU ld... " >&6; } 17435fi 17436if ${lt_cv_path_LD+:} false; then : 17437 $as_echo_n "(cached) " >&6 17438else 17439 if test -z "$LD"; then 17440 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 17441 for ac_dir in $PATH; do 17442 IFS="$lt_save_ifs" 17443 test -z "$ac_dir" && ac_dir=. 17444 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 17445 lt_cv_path_LD="$ac_dir/$ac_prog" 17446 # Check to see if the program is GNU ld. I'd rather use --version, 17447 # but apparently some variants of GNU ld only accept -v. 17448 # Break only if it was the GNU/non-GNU ld that we prefer. 17449 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 17450 *GNU* | *'with BFD'*) 17451 test "$with_gnu_ld" != no && break 17452 ;; 17453 *) 17454 test "$with_gnu_ld" != yes && break 17455 ;; 17456 esac 17457 fi 17458 done 17459 IFS="$lt_save_ifs" 17460else 17461 lt_cv_path_LD="$LD" # Let the user override the test with a path. 17462fi 17463fi 17464 17465LD="$lt_cv_path_LD" 17466if test -n "$LD"; then 17467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 17468$as_echo "$LD" >&6; } 17469else 17470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17471$as_echo "no" >&6; } 17472fi 17473test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 17474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 17475$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 17476if ${lt_cv_prog_gnu_ld+:} false; then : 17477 $as_echo_n "(cached) " >&6 17478else 17479 # I'd rather use --version here, but apparently some GNU lds only accept -v. 17480case `$LD -v 2>&1 </dev/null` in 17481*GNU* | *'with BFD'*) 17482 lt_cv_prog_gnu_ld=yes 17483 ;; 17484*) 17485 lt_cv_prog_gnu_ld=no 17486 ;; 17487esac 17488fi 17489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 17490$as_echo "$lt_cv_prog_gnu_ld" >&6; } 17491with_gnu_ld=$lt_cv_prog_gnu_ld 17492 17493 17494 17495 17496 17497 17498 17499 # Check if GNU C++ uses GNU ld as the underlying linker, since the 17500 # archiving commands below assume that GNU ld is being used. 17501 if test "$with_gnu_ld" = yes; then 17502 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 17503 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' 17504 17505 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 17506 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 17507 17508 # If archive_cmds runs LD, not CC, wlarc should be empty 17509 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 17510 # investigate it a little bit more. (MM) 17511 wlarc='${wl}' 17512 17513 # ancient GNU ld didn't support --whole-archive et. al. 17514 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 17515 $GREP 'no-whole-archive' > /dev/null; then 17516 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17517 else 17518 whole_archive_flag_spec_CXX= 17519 fi 17520 else 17521 with_gnu_ld=no 17522 wlarc= 17523 17524 # A generic and very simple default shared library creation 17525 # command for GNU C++ for the case where it uses the native 17526 # linker, instead of GNU ld. If possible, this setting should 17527 # overridden to take advantage of the native linker features on 17528 # the platform it is being used on. 17529 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 17530 fi 17531 17532 # Commands to make compiler produce verbose output that lists 17533 # what "hidden" libraries, object files and flags are used when 17534 # linking a shared library. 17535 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 17536 17537 else 17538 GXX=no 17539 with_gnu_ld=no 17540 wlarc= 17541 fi 17542 17543 # PORTME: fill in a description of your system's C++ link characteristics 17544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17545$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 17546 ld_shlibs_CXX=yes 17547 case $host_os in 17548 aix3*) 17549 # FIXME: insert proper C++ library support 17550 ld_shlibs_CXX=no 17551 ;; 17552 aix[4-9]*) 17553 if test "$host_cpu" = ia64; then 17554 # On IA64, the linker does run time linking by default, so we don't 17555 # have to do anything special. 17556 aix_use_runtimelinking=no 17557 exp_sym_flag='-Bexport' 17558 no_entry_flag="" 17559 else 17560 aix_use_runtimelinking=no 17561 17562 # Test if we are trying to use run time linking or normal 17563 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17564 # need to do runtime linking. 17565 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 17566 for ld_flag in $LDFLAGS; do 17567 case $ld_flag in 17568 *-brtl*) 17569 aix_use_runtimelinking=yes 17570 break 17571 ;; 17572 esac 17573 done 17574 ;; 17575 esac 17576 17577 exp_sym_flag='-bexport' 17578 no_entry_flag='-bnoentry' 17579 fi 17580 17581 # When large executables or shared objects are built, AIX ld can 17582 # have problems creating the table of contents. If linking a library 17583 # or program results in "error TOC overflow" add -mminimal-toc to 17584 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17585 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17586 17587 archive_cmds_CXX='' 17588 hardcode_direct_CXX=yes 17589 hardcode_direct_absolute_CXX=yes 17590 hardcode_libdir_separator_CXX=':' 17591 link_all_deplibs_CXX=yes 17592 file_list_spec_CXX='${wl}-f,' 17593 17594 if test "$GXX" = yes; then 17595 case $host_os in aix4.[012]|aix4.[012].*) 17596 # We only want to do this on AIX 4.2 and lower, the check 17597 # below for broken collect2 doesn't work under 4.3+ 17598 collect2name=`${CC} -print-prog-name=collect2` 17599 if test -f "$collect2name" && 17600 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 17601 then 17602 # We have reworked collect2 17603 : 17604 else 17605 # We have old collect2 17606 hardcode_direct_CXX=unsupported 17607 # It fails to find uninstalled libraries when the uninstalled 17608 # path is not listed in the libpath. Setting hardcode_minus_L 17609 # to unsupported forces relinking 17610 hardcode_minus_L_CXX=yes 17611 hardcode_libdir_flag_spec_CXX='-L$libdir' 17612 hardcode_libdir_separator_CXX= 17613 fi 17614 esac 17615 shared_flag='-shared' 17616 if test "$aix_use_runtimelinking" = yes; then 17617 shared_flag="$shared_flag "'${wl}-G' 17618 fi 17619 else 17620 # not using gcc 17621 if test "$host_cpu" = ia64; then 17622 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17623 # chokes on -Wl,-G. The following line is correct: 17624 shared_flag='-G' 17625 else 17626 if test "$aix_use_runtimelinking" = yes; then 17627 shared_flag='${wl}-G' 17628 else 17629 shared_flag='${wl}-bM:SRE' 17630 fi 17631 fi 17632 fi 17633 17634 export_dynamic_flag_spec_CXX='${wl}-bexpall' 17635 # It seems that -bexpall does not export symbols beginning with 17636 # underscore (_), so it is better to generate a list of symbols to 17637 # export. 17638 always_export_symbols_CXX=yes 17639 if test "$aix_use_runtimelinking" = yes; then 17640 # Warning - without using the other runtime loading flags (-brtl), 17641 # -berok will link without error, but may produce a broken library. 17642 allow_undefined_flag_CXX='-berok' 17643 # Determine the default libpath from the value encoded in an empty 17644 # executable. 17645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17646/* end confdefs.h. */ 17647 17648int 17649main () 17650{ 17651 17652 ; 17653 return 0; 17654} 17655_ACEOF 17656if ac_fn_cxx_try_link "$LINENO"; then : 17657 17658lt_aix_libpath_sed=' 17659 /Import File Strings/,/^$/ { 17660 /^0/ { 17661 s/^0 *\(.*\)$/\1/ 17662 p 17663 } 17664 }' 17665aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17666# Check for a 64-bit object if we didn't find anything. 17667if test -z "$aix_libpath"; then 17668 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17669fi 17670fi 17671rm -f core conftest.err conftest.$ac_objext \ 17672 conftest$ac_exeext conftest.$ac_ext 17673if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17674 17675 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 17676 17677 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 17678 else 17679 if test "$host_cpu" = ia64; then 17680 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 17681 allow_undefined_flag_CXX="-z nodefs" 17682 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" 17683 else 17684 # Determine the default libpath from the value encoded in an 17685 # empty executable. 17686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17687/* end confdefs.h. */ 17688 17689int 17690main () 17691{ 17692 17693 ; 17694 return 0; 17695} 17696_ACEOF 17697if ac_fn_cxx_try_link "$LINENO"; then : 17698 17699lt_aix_libpath_sed=' 17700 /Import File Strings/,/^$/ { 17701 /^0/ { 17702 s/^0 *\(.*\)$/\1/ 17703 p 17704 } 17705 }' 17706aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17707# Check for a 64-bit object if we didn't find anything. 17708if test -z "$aix_libpath"; then 17709 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17710fi 17711fi 17712rm -f core conftest.err conftest.$ac_objext \ 17713 conftest$ac_exeext conftest.$ac_ext 17714if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17715 17716 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 17717 # Warning - without using the other run time loading flags, 17718 # -berok will link without error, but may produce a broken library. 17719 no_undefined_flag_CXX=' ${wl}-bernotok' 17720 allow_undefined_flag_CXX=' ${wl}-berok' 17721 # Exported symbols can be pulled into shared objects from archives 17722 whole_archive_flag_spec_CXX='$convenience' 17723 archive_cmds_need_lc_CXX=yes 17724 # This is similar to how AIX traditionally builds its shared 17725 # libraries. 17726 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' 17727 fi 17728 fi 17729 ;; 17730 17731 beos*) 17732 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 17733 allow_undefined_flag_CXX=unsupported 17734 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17735 # support --undefined. This deserves some investigation. FIXME 17736 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17737 else 17738 ld_shlibs_CXX=no 17739 fi 17740 ;; 17741 17742 chorus*) 17743 case $cc_basename in 17744 *) 17745 # FIXME: insert proper C++ library support 17746 ld_shlibs_CXX=no 17747 ;; 17748 esac 17749 ;; 17750 17751 cygwin* | mingw* | pw32* | cegcc*) 17752 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 17753 # as there is no search path for DLLs. 17754 hardcode_libdir_flag_spec_CXX='-L$libdir' 17755 allow_undefined_flag_CXX=unsupported 17756 always_export_symbols_CXX=no 17757 enable_shared_with_static_runtimes_CXX=yes 17758 17759 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 17760 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' 17761 # If the export-symbols file already is a .def file (1st line 17762 # is EXPORTS), use it as is; otherwise, prepend... 17763 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17764 cp $export_symbols $output_objdir/$soname.def; 17765 else 17766 echo EXPORTS > $output_objdir/$soname.def; 17767 cat $export_symbols >> $output_objdir/$soname.def; 17768 fi~ 17769 $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' 17770 else 17771 ld_shlibs_CXX=no 17772 fi 17773 ;; 17774 darwin* | rhapsody*) 17775 17776 17777 archive_cmds_need_lc_CXX=no 17778 hardcode_direct_CXX=no 17779 hardcode_automatic_CXX=yes 17780 hardcode_shlibpath_var_CXX=unsupported 17781 whole_archive_flag_spec_CXX='' 17782 link_all_deplibs_CXX=yes 17783 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 17784 case $cc_basename in 17785 ifort*) _lt_dar_can_shared=yes ;; 17786 *) _lt_dar_can_shared=$GCC ;; 17787 esac 17788 if test "$_lt_dar_can_shared" = "yes"; then 17789 output_verbose_link_cmd=echo 17790 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}" 17791 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 17792 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}" 17793 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}" 17794 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 17795 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}" 17796 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}" 17797 fi 17798 17799 else 17800 ld_shlibs_CXX=no 17801 fi 17802 17803 ;; 17804 17805 dgux*) 17806 case $cc_basename in 17807 ec++*) 17808 # FIXME: insert proper C++ library support 17809 ld_shlibs_CXX=no 17810 ;; 17811 ghcx*) 17812 # Green Hills C++ Compiler 17813 # FIXME: insert proper C++ library support 17814 ld_shlibs_CXX=no 17815 ;; 17816 *) 17817 # FIXME: insert proper C++ library support 17818 ld_shlibs_CXX=no 17819 ;; 17820 esac 17821 ;; 17822 17823 freebsd[12]*) 17824 # C++ shared libraries reported to be fairly broken before 17825 # switch to ELF 17826 ld_shlibs_CXX=no 17827 ;; 17828 17829 freebsd-elf*) 17830 archive_cmds_need_lc_CXX=no 17831 ;; 17832 17833 freebsd* | dragonfly*) 17834 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 17835 # conventions 17836 ld_shlibs_CXX=yes 17837 ;; 17838 17839 gnu*) 17840 ;; 17841 17842 hpux9*) 17843 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 17844 hardcode_libdir_separator_CXX=: 17845 export_dynamic_flag_spec_CXX='${wl}-E' 17846 hardcode_direct_CXX=yes 17847 hardcode_minus_L_CXX=yes # Not in the search PATH, 17848 # but as the default 17849 # location of the library. 17850 17851 case $cc_basename in 17852 CC*) 17853 # FIXME: insert proper C++ library support 17854 ld_shlibs_CXX=no 17855 ;; 17856 aCC*) 17857 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' 17858 # Commands to make compiler produce verbose output that lists 17859 # what "hidden" libraries, object files and flags are used when 17860 # linking a shared library. 17861 # 17862 # There doesn't appear to be a way to prevent this compiler from 17863 # explicitly linking system object files so we need to strip them 17864 # from the output so that they don't get included in the library 17865 # dependencies. 17866 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 17867 ;; 17868 *) 17869 if test "$GXX" = yes; then 17870 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' 17871 else 17872 # FIXME: insert proper C++ library support 17873 ld_shlibs_CXX=no 17874 fi 17875 ;; 17876 esac 17877 ;; 17878 17879 hpux10*|hpux11*) 17880 if test $with_gnu_ld = no; then 17881 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 17882 hardcode_libdir_separator_CXX=: 17883 17884 case $host_cpu in 17885 hppa*64*|ia64*) 17886 ;; 17887 *) 17888 export_dynamic_flag_spec_CXX='${wl}-E' 17889 ;; 17890 esac 17891 fi 17892 case $host_cpu in 17893 hppa*64*|ia64*) 17894 hardcode_direct_CXX=no 17895 hardcode_shlibpath_var_CXX=no 17896 ;; 17897 *) 17898 hardcode_direct_CXX=yes 17899 hardcode_direct_absolute_CXX=yes 17900 hardcode_minus_L_CXX=yes # Not in the search PATH, 17901 # but as the default 17902 # location of the library. 17903 ;; 17904 esac 17905 17906 case $cc_basename in 17907 CC*) 17908 # FIXME: insert proper C++ library support 17909 ld_shlibs_CXX=no 17910 ;; 17911 aCC*) 17912 case $host_cpu in 17913 hppa*64*) 17914 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 17915 ;; 17916 ia64*) 17917 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 17918 ;; 17919 *) 17920 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 17921 ;; 17922 esac 17923 # Commands to make compiler produce verbose output that lists 17924 # what "hidden" libraries, object files and flags are used when 17925 # linking a shared library. 17926 # 17927 # There doesn't appear to be a way to prevent this compiler from 17928 # explicitly linking system object files so we need to strip them 17929 # from the output so that they don't get included in the library 17930 # dependencies. 17931 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 "X$list" | $Xsed' 17932 ;; 17933 *) 17934 if test "$GXX" = yes; then 17935 if test $with_gnu_ld = no; then 17936 case $host_cpu in 17937 hppa*64*) 17938 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 17939 ;; 17940 ia64*) 17941 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 17942 ;; 17943 *) 17944 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' 17945 ;; 17946 esac 17947 fi 17948 else 17949 # FIXME: insert proper C++ library support 17950 ld_shlibs_CXX=no 17951 fi 17952 ;; 17953 esac 17954 ;; 17955 17956 interix[3-9]*) 17957 hardcode_direct_CXX=no 17958 hardcode_shlibpath_var_CXX=no 17959 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 17960 export_dynamic_flag_spec_CXX='${wl}-E' 17961 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17962 # Instead, shared libraries are loaded at an image base (0x10000000 by 17963 # default) and relocated if they conflict, which is a slow very memory 17964 # consuming and fragmenting process. To avoid this, we pick a random, 17965 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17966 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17967 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' 17968 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' 17969 ;; 17970 irix5* | irix6*) 17971 case $cc_basename in 17972 CC*) 17973 # SGI C++ 17974 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 17975 17976 # Archives containing C++ object files must be created using 17977 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 17978 # necessary to make sure instantiated templates are included 17979 # in the archive. 17980 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 17981 ;; 17982 *) 17983 if test "$GXX" = yes; then 17984 if test "$with_gnu_ld" = no; then 17985 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 17986 else 17987 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' 17988 fi 17989 fi 17990 link_all_deplibs_CXX=yes 17991 ;; 17992 esac 17993 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 17994 hardcode_libdir_separator_CXX=: 17995 inherit_rpath_CXX=yes 17996 ;; 17997 17998 linux* | k*bsd*-gnu) 17999 case $cc_basename in 18000 KCC*) 18001 # Kuck and Associates, Inc. (KAI) C++ Compiler 18002 18003 # KCC will only create a shared library if the output file 18004 # ends with ".so" (or ".sl" for HP-UX), so rename the library 18005 # to its proper name (with version) after linking. 18006 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' 18007 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' 18008 # Commands to make compiler produce verbose output that lists 18009 # what "hidden" libraries, object files and flags are used when 18010 # linking a shared library. 18011 # 18012 # There doesn't appear to be a way to prevent this compiler from 18013 # explicitly linking system object files so we need to strip them 18014 # from the output so that they don't get included in the library 18015 # dependencies. 18016 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 "X$list" | $Xsed' 18017 18018 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 18019 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 18020 18021 # Archives containing C++ object files must be created using 18022 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 18023 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 18024 ;; 18025 icpc* | ecpc* ) 18026 # Intel C++ 18027 with_gnu_ld=yes 18028 # version 8.0 and above of icpc choke on multiply defined symbols 18029 # if we add $predep_objects and $postdep_objects, however 7.1 and 18030 # earlier do not add the objects themselves. 18031 case `$CC -V 2>&1` in 18032 *"Version 7."*) 18033 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 18034 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' 18035 ;; 18036 *) # Version 8.0 or newer 18037 tmp_idyn= 18038 case $host_cpu in 18039 ia64*) tmp_idyn=' -i_dynamic';; 18040 esac 18041 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18042 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' 18043 ;; 18044 esac 18045 archive_cmds_need_lc_CXX=no 18046 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 18047 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 18048 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 18049 ;; 18050 pgCC* | pgcpp*) 18051 # Portland Group C++ compiler 18052 case `$CC -V` in 18053 *pgCC\ [1-5]* | *pgcpp\ [1-5]*) 18054 prelink_cmds_CXX='tpldir=Template.dir~ 18055 rm -rf $tpldir~ 18056 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 18057 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' 18058 old_archive_cmds_CXX='tpldir=Template.dir~ 18059 rm -rf $tpldir~ 18060 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 18061 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ 18062 $RANLIB $oldlib' 18063 archive_cmds_CXX='tpldir=Template.dir~ 18064 rm -rf $tpldir~ 18065 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 18066 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 18067 archive_expsym_cmds_CXX='tpldir=Template.dir~ 18068 rm -rf $tpldir~ 18069 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 18070 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 18071 ;; 18072 *) # Version 6 will use weak symbols 18073 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 18074 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' 18075 ;; 18076 esac 18077 18078 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 18079 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 18080 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' 18081 ;; 18082 cxx*) 18083 # Compaq C++ 18084 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 18085 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' 18086 18087 runpath_var=LD_RUN_PATH 18088 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 18089 hardcode_libdir_separator_CXX=: 18090 18091 # Commands to make compiler produce verbose output that lists 18092 # what "hidden" libraries, object files and flags are used when 18093 # linking a shared library. 18094 # 18095 # There doesn't appear to be a way to prevent this compiler from 18096 # explicitly linking system object files so we need to strip them 18097 # from the output so that they don't get included in the library 18098 # dependencies. 18099 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed' 18100 ;; 18101 xl*) 18102 # IBM XL 8.0 on PPC, with GNU ld 18103 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 18104 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 18105 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 18106 if test "x$supports_anon_versioning" = xyes; then 18107 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 18108 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 18109 echo "local: *; };" >> $output_objdir/$libname.ver~ 18110 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 18111 fi 18112 ;; 18113 *) 18114 case `$CC -V 2>&1 | sed 5q` in 18115 *Sun\ C*) 18116 # Sun C++ 5.9 18117 no_undefined_flag_CXX=' -zdefs' 18118 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 18119 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' 18120 hardcode_libdir_flag_spec_CXX='-R$libdir' 18121 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' 18122 compiler_needs_object_CXX=yes 18123 18124 # Not sure whether something based on 18125 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 18126 # would be better. 18127 output_verbose_link_cmd='echo' 18128 18129 # Archives containing C++ object files must be created using 18130 # "CC -xar", where "CC" is the Sun C++ compiler. This is 18131 # necessary to make sure instantiated templates are included 18132 # in the archive. 18133 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 18134 ;; 18135 esac 18136 ;; 18137 esac 18138 ;; 18139 18140 lynxos*) 18141 # FIXME: insert proper C++ library support 18142 ld_shlibs_CXX=no 18143 ;; 18144 18145 m88k*) 18146 # FIXME: insert proper C++ library support 18147 ld_shlibs_CXX=no 18148 ;; 18149 18150 mvs*) 18151 case $cc_basename in 18152 cxx*) 18153 # FIXME: insert proper C++ library support 18154 ld_shlibs_CXX=no 18155 ;; 18156 *) 18157 # FIXME: insert proper C++ library support 18158 ld_shlibs_CXX=no 18159 ;; 18160 esac 18161 ;; 18162 18163 netbsd*) 18164 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18165 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 18166 wlarc= 18167 hardcode_libdir_flag_spec_CXX='-R$libdir' 18168 hardcode_direct_CXX=yes 18169 hardcode_shlibpath_var_CXX=no 18170 fi 18171 # Workaround some broken pre-1.5 toolchains 18172 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 18173 ;; 18174 18175 *nto* | *qnx*) 18176 ld_shlibs_CXX=yes 18177 ;; 18178 18179 openbsd2*) 18180 # C++ shared libraries are fairly broken 18181 ld_shlibs_CXX=no 18182 ;; 18183 18184 openbsd*) 18185 if test -f /usr/libexec/ld.so; then 18186 hardcode_direct_CXX=yes 18187 hardcode_shlibpath_var_CXX=no 18188 hardcode_direct_absolute_CXX=yes 18189 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 18190 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 18191 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18192 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 18193 export_dynamic_flag_spec_CXX='${wl}-E' 18194 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 18195 fi 18196 output_verbose_link_cmd=echo 18197 else 18198 ld_shlibs_CXX=no 18199 fi 18200 ;; 18201 18202 osf3* | osf4* | osf5*) 18203 case $cc_basename in 18204 KCC*) 18205 # Kuck and Associates, Inc. (KAI) C++ Compiler 18206 18207 # KCC will only create a shared library if the output file 18208 # ends with ".so" (or ".sl" for HP-UX), so rename the library 18209 # to its proper name (with version) after linking. 18210 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' 18211 18212 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 18213 hardcode_libdir_separator_CXX=: 18214 18215 # Archives containing C++ object files must be created using 18216 # the KAI C++ compiler. 18217 case $host in 18218 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 18219 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 18220 esac 18221 ;; 18222 RCC*) 18223 # Rational C++ 2.4.1 18224 # FIXME: insert proper C++ library support 18225 ld_shlibs_CXX=no 18226 ;; 18227 cxx*) 18228 case $host in 18229 osf3*) 18230 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 18231 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 18232 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 18233 ;; 18234 *) 18235 allow_undefined_flag_CXX=' -expect_unresolved \*' 18236 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 18237 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 18238 echo "-hidden">> $lib.exp~ 18239 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ 18240 $RM $lib.exp' 18241 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 18242 ;; 18243 esac 18244 18245 hardcode_libdir_separator_CXX=: 18246 18247 # Commands to make compiler produce verbose output that lists 18248 # what "hidden" libraries, object files and flags are used when 18249 # linking a shared library. 18250 # 18251 # There doesn't appear to be a way to prevent this compiler from 18252 # explicitly linking system object files so we need to strip them 18253 # from the output so that they don't get included in the library 18254 # dependencies. 18255 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed' 18256 ;; 18257 *) 18258 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 18259 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 18260 case $host in 18261 osf3*) 18262 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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 18263 ;; 18264 *) 18265 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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 18266 ;; 18267 esac 18268 18269 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 18270 hardcode_libdir_separator_CXX=: 18271 18272 # Commands to make compiler produce verbose output that lists 18273 # what "hidden" libraries, object files and flags are used when 18274 # linking a shared library. 18275 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 18276 18277 else 18278 # FIXME: insert proper C++ library support 18279 ld_shlibs_CXX=no 18280 fi 18281 ;; 18282 esac 18283 ;; 18284 18285 psos*) 18286 # FIXME: insert proper C++ library support 18287 ld_shlibs_CXX=no 18288 ;; 18289 18290 sunos4*) 18291 case $cc_basename in 18292 CC*) 18293 # Sun C++ 4.x 18294 # FIXME: insert proper C++ library support 18295 ld_shlibs_CXX=no 18296 ;; 18297 lcc*) 18298 # Lucid 18299 # FIXME: insert proper C++ library support 18300 ld_shlibs_CXX=no 18301 ;; 18302 *) 18303 # FIXME: insert proper C++ library support 18304 ld_shlibs_CXX=no 18305 ;; 18306 esac 18307 ;; 18308 18309 solaris*) 18310 case $cc_basename in 18311 CC*) 18312 # Sun C++ 4.2, 5.x and Centerline C++ 18313 archive_cmds_need_lc_CXX=yes 18314 no_undefined_flag_CXX=' -zdefs' 18315 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 18316 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 18317 $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' 18318 18319 hardcode_libdir_flag_spec_CXX='-R$libdir' 18320 hardcode_shlibpath_var_CXX=no 18321 case $host_os in 18322 solaris2.[0-5] | solaris2.[0-5].*) ;; 18323 *) 18324 # The compiler driver will combine and reorder linker options, 18325 # but understands `-z linker_flag'. 18326 # Supported since Solaris 2.6 (maybe 2.5.1?) 18327 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 18328 ;; 18329 esac 18330 link_all_deplibs_CXX=yes 18331 18332 output_verbose_link_cmd='echo' 18333 18334 # Archives containing C++ object files must be created using 18335 # "CC -xar", where "CC" is the Sun C++ compiler. This is 18336 # necessary to make sure instantiated templates are included 18337 # in the archive. 18338 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 18339 ;; 18340 gcx*) 18341 # Green Hills C++ Compiler 18342 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 18343 18344 # The C++ compiler must be used to create the archive. 18345 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 18346 ;; 18347 *) 18348 # GNU C++ compiler with Solaris linker 18349 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 18350 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 18351 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 18352 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 18353 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 18354 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 18355 18356 # Commands to make compiler produce verbose output that lists 18357 # what "hidden" libraries, object files and flags are used when 18358 # linking a shared library. 18359 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 18360 else 18361 # g++ 2.7 appears to require `-G' NOT `-shared' on this 18362 # platform. 18363 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 18364 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 18365 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 18366 18367 # Commands to make compiler produce verbose output that lists 18368 # what "hidden" libraries, object files and flags are used when 18369 # linking a shared library. 18370 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 18371 fi 18372 18373 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 18374 case $host_os in 18375 solaris2.[0-5] | solaris2.[0-5].*) ;; 18376 *) 18377 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 18378 ;; 18379 esac 18380 fi 18381 ;; 18382 esac 18383 ;; 18384 18385 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 18386 no_undefined_flag_CXX='${wl}-z,text' 18387 archive_cmds_need_lc_CXX=no 18388 hardcode_shlibpath_var_CXX=no 18389 runpath_var='LD_RUN_PATH' 18390 18391 case $cc_basename in 18392 CC*) 18393 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18394 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18395 ;; 18396 *) 18397 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18398 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18399 ;; 18400 esac 18401 ;; 18402 18403 sysv5* | sco3.2v5* | sco5v6*) 18404 # Note: We can NOT use -z defs as we might desire, because we do not 18405 # link with -lc, and that would cause any symbols used from libc to 18406 # always be unresolved, which means just about no library would 18407 # ever link correctly. If we're not using GNU ld we use -z text 18408 # though, which does catch some bad symbols but isn't as heavy-handed 18409 # as -z defs. 18410 no_undefined_flag_CXX='${wl}-z,text' 18411 allow_undefined_flag_CXX='${wl}-z,nodefs' 18412 archive_cmds_need_lc_CXX=no 18413 hardcode_shlibpath_var_CXX=no 18414 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 18415 hardcode_libdir_separator_CXX=':' 18416 link_all_deplibs_CXX=yes 18417 export_dynamic_flag_spec_CXX='${wl}-Bexport' 18418 runpath_var='LD_RUN_PATH' 18419 18420 case $cc_basename in 18421 CC*) 18422 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18423 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18424 ;; 18425 *) 18426 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18427 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18428 ;; 18429 esac 18430 ;; 18431 18432 tandem*) 18433 case $cc_basename in 18434 NCC*) 18435 # NonStop-UX NCC 3.20 18436 # FIXME: insert proper C++ library support 18437 ld_shlibs_CXX=no 18438 ;; 18439 *) 18440 # FIXME: insert proper C++ library support 18441 ld_shlibs_CXX=no 18442 ;; 18443 esac 18444 ;; 18445 18446 vxworks*) 18447 # FIXME: insert proper C++ library support 18448 ld_shlibs_CXX=no 18449 ;; 18450 18451 *) 18452 # FIXME: insert proper C++ library support 18453 ld_shlibs_CXX=no 18454 ;; 18455 esac 18456 18457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 18458$as_echo "$ld_shlibs_CXX" >&6; } 18459 test "$ld_shlibs_CXX" = no && can_build_shared=no 18460 18461 GCC_CXX="$GXX" 18462 LD_CXX="$LD" 18463 18464 ## CAVEAT EMPTOR: 18465 ## There is no encapsulation within the following macros, do not change 18466 ## the running order or otherwise move them around unless you know exactly 18467 ## what you are doing... 18468 # Dependencies to place before and after the object being linked: 18469predep_objects_CXX= 18470postdep_objects_CXX= 18471predeps_CXX= 18472postdeps_CXX= 18473compiler_lib_search_path_CXX= 18474 18475cat > conftest.$ac_ext <<_LT_EOF 18476class Foo 18477{ 18478public: 18479 Foo (void) { a = 0; } 18480private: 18481 int a; 18482}; 18483_LT_EOF 18484 18485if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 18486 (eval $ac_compile) 2>&5 18487 ac_status=$? 18488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18489 test $ac_status = 0; }; then 18490 # Parse the compiler output and extract the necessary 18491 # objects, libraries and library flags. 18492 18493 # Sentinel used to keep track of whether or not we are before 18494 # the conftest object file. 18495 pre_test_object_deps_done=no 18496 18497 for p in `eval "$output_verbose_link_cmd"`; do 18498 case $p in 18499 18500 -L* | -R* | -l*) 18501 # Some compilers place space between "-{L,R}" and the path. 18502 # Remove the space. 18503 if test $p = "-L" || 18504 test $p = "-R"; then 18505 prev=$p 18506 continue 18507 else 18508 prev= 18509 fi 18510 18511 if test "$pre_test_object_deps_done" = no; then 18512 case $p in 18513 -L* | -R*) 18514 # Internal compiler library paths should come after those 18515 # provided the user. The postdeps already come after the 18516 # user supplied libs so there is no need to process them. 18517 if test -z "$compiler_lib_search_path_CXX"; then 18518 compiler_lib_search_path_CXX="${prev}${p}" 18519 else 18520 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 18521 fi 18522 ;; 18523 # The "-l" case would never come before the object being 18524 # linked, so don't bother handling this case. 18525 esac 18526 else 18527 if test -z "$postdeps_CXX"; then 18528 postdeps_CXX="${prev}${p}" 18529 else 18530 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 18531 fi 18532 fi 18533 ;; 18534 18535 *.$objext) 18536 # This assumes that the test object file only shows up 18537 # once in the compiler output. 18538 if test "$p" = "conftest.$objext"; then 18539 pre_test_object_deps_done=yes 18540 continue 18541 fi 18542 18543 if test "$pre_test_object_deps_done" = no; then 18544 if test -z "$predep_objects_CXX"; then 18545 predep_objects_CXX="$p" 18546 else 18547 predep_objects_CXX="$predep_objects_CXX $p" 18548 fi 18549 else 18550 if test -z "$postdep_objects_CXX"; then 18551 postdep_objects_CXX="$p" 18552 else 18553 postdep_objects_CXX="$postdep_objects_CXX $p" 18554 fi 18555 fi 18556 ;; 18557 18558 *) ;; # Ignore the rest. 18559 18560 esac 18561 done 18562 18563 # Clean up. 18564 rm -f a.out a.exe 18565else 18566 echo "libtool.m4: error: problem compiling CXX test program" 18567fi 18568 18569$RM -f confest.$objext 18570 18571# PORTME: override above test on systems where it is broken 18572case $host_os in 18573interix[3-9]*) 18574 # Interix 3.5 installs completely hosed .la files for C++, so rather than 18575 # hack all around it, let's just trust "g++" to DTRT. 18576 predep_objects_CXX= 18577 postdep_objects_CXX= 18578 postdeps_CXX= 18579 ;; 18580 18581linux*) 18582 case `$CC -V 2>&1 | sed 5q` in 18583 *Sun\ C*) 18584 # Sun C++ 5.9 18585 18586 # The more standards-conforming stlport4 library is 18587 # incompatible with the Cstd library. Avoid specifying 18588 # it if it's in CXXFLAGS. Ignore libCrun as 18589 # -library=stlport4 depends on it. 18590 case " $CXX $CXXFLAGS " in 18591 *" -library=stlport4 "*) 18592 solaris_use_stlport4=yes 18593 ;; 18594 esac 18595 18596 if test "$solaris_use_stlport4" != yes; then 18597 postdeps_CXX='-library=Cstd -library=Crun' 18598 fi 18599 ;; 18600 esac 18601 ;; 18602 18603solaris*) 18604 case $cc_basename in 18605 CC*) 18606 # The more standards-conforming stlport4 library is 18607 # incompatible with the Cstd library. Avoid specifying 18608 # it if it's in CXXFLAGS. Ignore libCrun as 18609 # -library=stlport4 depends on it. 18610 case " $CXX $CXXFLAGS " in 18611 *" -library=stlport4 "*) 18612 solaris_use_stlport4=yes 18613 ;; 18614 esac 18615 18616 # Adding this requires a known-good setup of shared libraries for 18617 # Sun compiler versions before 5.6, else PIC objects from an old 18618 # archive will be linked into the output, leading to subtle bugs. 18619 if test "$solaris_use_stlport4" != yes; then 18620 postdeps_CXX='-library=Cstd -library=Crun' 18621 fi 18622 ;; 18623 esac 18624 ;; 18625esac 18626 18627 18628case " $postdeps_CXX " in 18629*" -lc "*) archive_cmds_need_lc_CXX=no ;; 18630esac 18631 compiler_lib_search_dirs_CXX= 18632if test -n "${compiler_lib_search_path_CXX}"; then 18633 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 18634fi 18635 18636 18637 18638 18639 18640 18641 18642 18643 18644 18645 18646 18647 18648 18649 18650 18651 18652 18653 18654 18655 18656 18657 18658 18659 18660 18661 18662 18663 18664 18665 18666 lt_prog_compiler_wl_CXX= 18667lt_prog_compiler_pic_CXX= 18668lt_prog_compiler_static_CXX= 18669 18670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 18671$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 18672 18673 # C++ specific cases for pic, static, wl, etc. 18674 if test "$GXX" = yes; then 18675 lt_prog_compiler_wl_CXX='-Wl,' 18676 lt_prog_compiler_static_CXX='-static' 18677 18678 case $host_os in 18679 aix*) 18680 # All AIX code is PIC. 18681 if test "$host_cpu" = ia64; then 18682 # AIX 5 now supports IA64 processor 18683 lt_prog_compiler_static_CXX='-Bstatic' 18684 fi 18685 ;; 18686 18687 amigaos*) 18688 case $host_cpu in 18689 powerpc) 18690 # see comment about AmigaOS4 .so support 18691 lt_prog_compiler_pic_CXX='-fPIC' 18692 ;; 18693 m68k) 18694 # FIXME: we need at least 68020 code to build shared libraries, but 18695 # adding the `-m68020' flag to GCC prevents building anything better, 18696 # like `-m68040'. 18697 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 18698 ;; 18699 esac 18700 ;; 18701 18702 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 18703 # PIC is the default for these OSes. 18704 ;; 18705 mingw* | cygwin* | os2* | pw32* | cegcc*) 18706 # This hack is so that the source file can tell whether it is being 18707 # built for inclusion in a dll (and should export symbols for example). 18708 # Although the cygwin gcc ignores -fPIC, still need this for old-style 18709 # (--disable-auto-import) libraries 18710 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 18711 ;; 18712 darwin* | rhapsody*) 18713 # PIC is the default on this platform 18714 # Common symbols not allowed in MH_DYLIB files 18715 lt_prog_compiler_pic_CXX='-fno-common' 18716 ;; 18717 *djgpp*) 18718 # DJGPP does not support shared libraries at all 18719 lt_prog_compiler_pic_CXX= 18720 ;; 18721 interix[3-9]*) 18722 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 18723 # Instead, we relocate shared libraries at runtime. 18724 ;; 18725 sysv4*MP*) 18726 if test -d /usr/nec; then 18727 lt_prog_compiler_pic_CXX=-Kconform_pic 18728 fi 18729 ;; 18730 hpux*) 18731 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 18732 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 18733 # sets the default TLS model and affects inlining. 18734 case $host_cpu in 18735 hppa*64*) 18736 ;; 18737 *) 18738 lt_prog_compiler_pic_CXX='-fPIC' 18739 ;; 18740 esac 18741 ;; 18742 *qnx* | *nto*) 18743 # QNX uses GNU C++, but need to define -shared option too, otherwise 18744 # it will coredump. 18745 lt_prog_compiler_pic_CXX='-fPIC -shared' 18746 ;; 18747 *) 18748 lt_prog_compiler_pic_CXX='-fPIC' 18749 ;; 18750 esac 18751 else 18752 case $host_os in 18753 aix[4-9]*) 18754 # All AIX code is PIC. 18755 if test "$host_cpu" = ia64; then 18756 # AIX 5 now supports IA64 processor 18757 lt_prog_compiler_static_CXX='-Bstatic' 18758 else 18759 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 18760 fi 18761 ;; 18762 chorus*) 18763 case $cc_basename in 18764 cxch68*) 18765 # Green Hills C++ Compiler 18766 # _LT_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" 18767 ;; 18768 esac 18769 ;; 18770 dgux*) 18771 case $cc_basename in 18772 ec++*) 18773 lt_prog_compiler_pic_CXX='-KPIC' 18774 ;; 18775 ghcx*) 18776 # Green Hills C++ Compiler 18777 lt_prog_compiler_pic_CXX='-pic' 18778 ;; 18779 *) 18780 ;; 18781 esac 18782 ;; 18783 freebsd* | dragonfly*) 18784 # FreeBSD uses GNU C++ 18785 ;; 18786 hpux9* | hpux10* | hpux11*) 18787 case $cc_basename in 18788 CC*) 18789 lt_prog_compiler_wl_CXX='-Wl,' 18790 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 18791 if test "$host_cpu" != ia64; then 18792 lt_prog_compiler_pic_CXX='+Z' 18793 fi 18794 ;; 18795 aCC*) 18796 lt_prog_compiler_wl_CXX='-Wl,' 18797 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 18798 case $host_cpu in 18799 hppa*64*|ia64*) 18800 # +Z the default 18801 ;; 18802 *) 18803 lt_prog_compiler_pic_CXX='+Z' 18804 ;; 18805 esac 18806 ;; 18807 *) 18808 ;; 18809 esac 18810 ;; 18811 interix*) 18812 # This is c89, which is MS Visual C++ (no shared libs) 18813 # Anyone wants to do a port? 18814 ;; 18815 irix5* | irix6* | nonstopux*) 18816 case $cc_basename in 18817 CC*) 18818 lt_prog_compiler_wl_CXX='-Wl,' 18819 lt_prog_compiler_static_CXX='-non_shared' 18820 # CC pic flag -KPIC is the default. 18821 ;; 18822 *) 18823 ;; 18824 esac 18825 ;; 18826 linux* | k*bsd*-gnu) 18827 case $cc_basename in 18828 KCC*) 18829 # KAI C++ Compiler 18830 lt_prog_compiler_wl_CXX='--backend -Wl,' 18831 lt_prog_compiler_pic_CXX='-fPIC' 18832 ;; 18833 ecpc* ) 18834 # old Intel C++ for x86_64 which still supported -KPIC. 18835 lt_prog_compiler_wl_CXX='-Wl,' 18836 lt_prog_compiler_pic_CXX='-KPIC' 18837 lt_prog_compiler_static_CXX='-static' 18838 ;; 18839 icpc* ) 18840 # Intel C++, used to be incompatible with GCC. 18841 # ICC 10 doesn't accept -KPIC any more. 18842 lt_prog_compiler_wl_CXX='-Wl,' 18843 lt_prog_compiler_pic_CXX='-fPIC' 18844 lt_prog_compiler_static_CXX='-static' 18845 ;; 18846 pgCC* | pgcpp*) 18847 # Portland Group C++ compiler 18848 lt_prog_compiler_wl_CXX='-Wl,' 18849 lt_prog_compiler_pic_CXX='-fpic' 18850 lt_prog_compiler_static_CXX='-Bstatic' 18851 ;; 18852 cxx*) 18853 # Compaq C++ 18854 # Make sure the PIC flag is empty. It appears that all Alpha 18855 # Linux and Compaq Tru64 Unix objects are PIC. 18856 lt_prog_compiler_pic_CXX= 18857 lt_prog_compiler_static_CXX='-non_shared' 18858 ;; 18859 xlc* | xlC*) 18860 # IBM XL 8.0 on PPC 18861 lt_prog_compiler_wl_CXX='-Wl,' 18862 lt_prog_compiler_pic_CXX='-qpic' 18863 lt_prog_compiler_static_CXX='-qstaticlink' 18864 ;; 18865 *) 18866 case `$CC -V 2>&1 | sed 5q` in 18867 *Sun\ C*) 18868 # Sun C++ 5.9 18869 lt_prog_compiler_pic_CXX='-KPIC' 18870 lt_prog_compiler_static_CXX='-Bstatic' 18871 lt_prog_compiler_wl_CXX='-Qoption ld ' 18872 ;; 18873 esac 18874 ;; 18875 esac 18876 ;; 18877 lynxos*) 18878 ;; 18879 m88k*) 18880 ;; 18881 mvs*) 18882 case $cc_basename in 18883 cxx*) 18884 lt_prog_compiler_pic_CXX='-W c,exportall' 18885 ;; 18886 *) 18887 ;; 18888 esac 18889 ;; 18890 netbsd*) 18891 ;; 18892 *qnx* | *nto*) 18893 # QNX uses GNU C++, but need to define -shared option too, otherwise 18894 # it will coredump. 18895 lt_prog_compiler_pic_CXX='-fPIC -shared' 18896 ;; 18897 osf3* | osf4* | osf5*) 18898 case $cc_basename in 18899 KCC*) 18900 lt_prog_compiler_wl_CXX='--backend -Wl,' 18901 ;; 18902 RCC*) 18903 # Rational C++ 2.4.1 18904 lt_prog_compiler_pic_CXX='-pic' 18905 ;; 18906 cxx*) 18907 # Digital/Compaq C++ 18908 lt_prog_compiler_wl_CXX='-Wl,' 18909 # Make sure the PIC flag is empty. It appears that all Alpha 18910 # Linux and Compaq Tru64 Unix objects are PIC. 18911 lt_prog_compiler_pic_CXX= 18912 lt_prog_compiler_static_CXX='-non_shared' 18913 ;; 18914 *) 18915 ;; 18916 esac 18917 ;; 18918 psos*) 18919 ;; 18920 solaris*) 18921 case $cc_basename in 18922 CC*) 18923 # Sun C++ 4.2, 5.x and Centerline C++ 18924 lt_prog_compiler_pic_CXX='-KPIC' 18925 lt_prog_compiler_static_CXX='-Bstatic' 18926 lt_prog_compiler_wl_CXX='-Qoption ld ' 18927 ;; 18928 gcx*) 18929 # Green Hills C++ Compiler 18930 lt_prog_compiler_pic_CXX='-PIC' 18931 ;; 18932 *) 18933 ;; 18934 esac 18935 ;; 18936 sunos4*) 18937 case $cc_basename in 18938 CC*) 18939 # Sun C++ 4.x 18940 lt_prog_compiler_pic_CXX='-pic' 18941 lt_prog_compiler_static_CXX='-Bstatic' 18942 ;; 18943 lcc*) 18944 # Lucid 18945 lt_prog_compiler_pic_CXX='-pic' 18946 ;; 18947 *) 18948 ;; 18949 esac 18950 ;; 18951 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 18952 case $cc_basename in 18953 CC*) 18954 lt_prog_compiler_wl_CXX='-Wl,' 18955 lt_prog_compiler_pic_CXX='-KPIC' 18956 lt_prog_compiler_static_CXX='-Bstatic' 18957 ;; 18958 esac 18959 ;; 18960 tandem*) 18961 case $cc_basename in 18962 NCC*) 18963 # NonStop-UX NCC 3.20 18964 lt_prog_compiler_pic_CXX='-KPIC' 18965 ;; 18966 *) 18967 ;; 18968 esac 18969 ;; 18970 vxworks*) 18971 ;; 18972 *) 18973 lt_prog_compiler_can_build_shared_CXX=no 18974 ;; 18975 esac 18976 fi 18977 18978case $host_os in 18979 # For platforms which do not support PIC, -DPIC is meaningless: 18980 *djgpp*) 18981 lt_prog_compiler_pic_CXX= 18982 ;; 18983 *) 18984 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 18985 ;; 18986esac 18987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 18988$as_echo "$lt_prog_compiler_pic_CXX" >&6; } 18989 18990 18991 18992# 18993# Check to make sure the PIC flag actually works. 18994# 18995if test -n "$lt_prog_compiler_pic_CXX"; then 18996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 18997$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 18998if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 18999 $as_echo_n "(cached) " >&6 19000else 19001 lt_cv_prog_compiler_pic_works_CXX=no 19002 ac_outfile=conftest.$ac_objext 19003 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19004 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 19005 # Insert the option either (1) after the last *FLAGS variable, or 19006 # (2) before a word containing "conftest.", or (3) at the end. 19007 # Note that $ac_compile itself does not contain backslashes and begins 19008 # with a dollar sign (not a hyphen), so the echo should work correctly. 19009 # The option is referenced via a variable to avoid confusing sed. 19010 lt_compile=`echo "$ac_compile" | $SED \ 19011 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19012 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19013 -e 's:$: $lt_compiler_flag:'` 19014 (eval echo "\"\$as_me:19014: $lt_compile\"" >&5) 19015 (eval "$lt_compile" 2>conftest.err) 19016 ac_status=$? 19017 cat conftest.err >&5 19018 echo "$as_me:19018: \$? = $ac_status" >&5 19019 if (exit $ac_status) && test -s "$ac_outfile"; then 19020 # The compiler can only warn and ignore the option if not recognized 19021 # So say no if there are warnings other than the usual output. 19022 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 19023 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19024 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 19025 lt_cv_prog_compiler_pic_works_CXX=yes 19026 fi 19027 fi 19028 $RM conftest* 19029 19030fi 19031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 19032$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 19033 19034if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 19035 case $lt_prog_compiler_pic_CXX in 19036 "" | " "*) ;; 19037 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 19038 esac 19039else 19040 lt_prog_compiler_pic_CXX= 19041 lt_prog_compiler_can_build_shared_CXX=no 19042fi 19043 19044fi 19045 19046 19047 19048# 19049# Check to make sure the static flag actually works. 19050# 19051wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 19052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 19053$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 19054if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 19055 $as_echo_n "(cached) " >&6 19056else 19057 lt_cv_prog_compiler_static_works_CXX=no 19058 save_LDFLAGS="$LDFLAGS" 19059 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 19060 echo "$lt_simple_link_test_code" > conftest.$ac_ext 19061 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 19062 # The linker can only warn and ignore the option if not recognized 19063 # So say no if there are warnings 19064 if test -s conftest.err; then 19065 # Append any errors to the config.log. 19066 cat conftest.err 1>&5 19067 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 19068 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19069 if diff conftest.exp conftest.er2 >/dev/null; then 19070 lt_cv_prog_compiler_static_works_CXX=yes 19071 fi 19072 else 19073 lt_cv_prog_compiler_static_works_CXX=yes 19074 fi 19075 fi 19076 $RM -r conftest* 19077 LDFLAGS="$save_LDFLAGS" 19078 19079fi 19080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 19081$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 19082 19083if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 19084 : 19085else 19086 lt_prog_compiler_static_CXX= 19087fi 19088 19089 19090 19091 19092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 19093$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 19094if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 19095 $as_echo_n "(cached) " >&6 19096else 19097 lt_cv_prog_compiler_c_o_CXX=no 19098 $RM -r conftest 2>/dev/null 19099 mkdir conftest 19100 cd conftest 19101 mkdir out 19102 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19103 19104 lt_compiler_flag="-o out/conftest2.$ac_objext" 19105 # Insert the option either (1) after the last *FLAGS variable, or 19106 # (2) before a word containing "conftest.", or (3) at the end. 19107 # Note that $ac_compile itself does not contain backslashes and begins 19108 # with a dollar sign (not a hyphen), so the echo should work correctly. 19109 lt_compile=`echo "$ac_compile" | $SED \ 19110 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19111 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19112 -e 's:$: $lt_compiler_flag:'` 19113 (eval echo "\"\$as_me:19113: $lt_compile\"" >&5) 19114 (eval "$lt_compile" 2>out/conftest.err) 19115 ac_status=$? 19116 cat out/conftest.err >&5 19117 echo "$as_me:19117: \$? = $ac_status" >&5 19118 if (exit $ac_status) && test -s out/conftest2.$ac_objext 19119 then 19120 # The compiler can only warn and ignore the option if not recognized 19121 # So say no if there are warnings 19122 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 19123 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 19124 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 19125 lt_cv_prog_compiler_c_o_CXX=yes 19126 fi 19127 fi 19128 chmod u+w . 2>&5 19129 $RM conftest* 19130 # SGI C++ compiler will create directory out/ii_files/ for 19131 # template instantiation 19132 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 19133 $RM out/* && rmdir out 19134 cd .. 19135 $RM -r conftest 19136 $RM conftest* 19137 19138fi 19139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 19140$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 19141 19142 19143 19144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 19145$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 19146if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 19147 $as_echo_n "(cached) " >&6 19148else 19149 lt_cv_prog_compiler_c_o_CXX=no 19150 $RM -r conftest 2>/dev/null 19151 mkdir conftest 19152 cd conftest 19153 mkdir out 19154 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19155 19156 lt_compiler_flag="-o out/conftest2.$ac_objext" 19157 # Insert the option either (1) after the last *FLAGS variable, or 19158 # (2) before a word containing "conftest.", or (3) at the end. 19159 # Note that $ac_compile itself does not contain backslashes and begins 19160 # with a dollar sign (not a hyphen), so the echo should work correctly. 19161 lt_compile=`echo "$ac_compile" | $SED \ 19162 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19163 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19164 -e 's:$: $lt_compiler_flag:'` 19165 (eval echo "\"\$as_me:19165: $lt_compile\"" >&5) 19166 (eval "$lt_compile" 2>out/conftest.err) 19167 ac_status=$? 19168 cat out/conftest.err >&5 19169 echo "$as_me:19169: \$? = $ac_status" >&5 19170 if (exit $ac_status) && test -s out/conftest2.$ac_objext 19171 then 19172 # The compiler can only warn and ignore the option if not recognized 19173 # So say no if there are warnings 19174 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 19175 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 19176 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 19177 lt_cv_prog_compiler_c_o_CXX=yes 19178 fi 19179 fi 19180 chmod u+w . 2>&5 19181 $RM conftest* 19182 # SGI C++ compiler will create directory out/ii_files/ for 19183 # template instantiation 19184 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 19185 $RM out/* && rmdir out 19186 cd .. 19187 $RM -r conftest 19188 $RM conftest* 19189 19190fi 19191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 19192$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 19193 19194 19195 19196 19197hard_links="nottested" 19198if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 19199 # do not overwrite the value of need_locks provided by the user 19200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 19201$as_echo_n "checking if we can lock with hard links... " >&6; } 19202 hard_links=yes 19203 $RM conftest* 19204 ln conftest.a conftest.b 2>/dev/null && hard_links=no 19205 touch conftest.a 19206 ln conftest.a conftest.b 2>&5 || hard_links=no 19207 ln conftest.a conftest.b 2>/dev/null && hard_links=no 19208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 19209$as_echo "$hard_links" >&6; } 19210 if test "$hard_links" = no; then 19211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 19212$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 19213 need_locks=warn 19214 fi 19215else 19216 need_locks=no 19217fi 19218 19219 19220 19221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 19222$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 19223 19224 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 19225 case $host_os in 19226 aix[4-9]*) 19227 # If we're using GNU nm, then we don't want the "-C" option. 19228 # -C means demangle to AIX nm, but means don't demangle with GNU nm 19229 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 19230 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' 19231 else 19232 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' 19233 fi 19234 ;; 19235 pw32*) 19236 export_symbols_cmds_CXX="$ltdll_cmds" 19237 ;; 19238 cygwin* | mingw* | cegcc*) 19239 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' 19240 ;; 19241 *) 19242 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 19243 ;; 19244 esac 19245 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 19246 19247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 19248$as_echo "$ld_shlibs_CXX" >&6; } 19249test "$ld_shlibs_CXX" = no && can_build_shared=no 19250 19251with_gnu_ld_CXX=$with_gnu_ld 19252 19253 19254 19255 19256 19257 19258# 19259# Do we need to explicitly link libc? 19260# 19261case "x$archive_cmds_need_lc_CXX" in 19262x|xyes) 19263 # Assume -lc should be added 19264 archive_cmds_need_lc_CXX=yes 19265 19266 if test "$enable_shared" = yes && test "$GCC" = yes; then 19267 case $archive_cmds_CXX in 19268 *'~'*) 19269 # FIXME: we may have to deal with multi-command sequences. 19270 ;; 19271 '$CC '*) 19272 # Test whether the compiler implicitly links with -lc since on some 19273 # systems, -lgcc has to come before -lc. If gcc already passes -lc 19274 # to ld, don't add -lc before -lgcc. 19275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 19276$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 19277 $RM conftest* 19278 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19279 19280 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 19281 (eval $ac_compile) 2>&5 19282 ac_status=$? 19283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19284 test $ac_status = 0; } 2>conftest.err; then 19285 soname=conftest 19286 lib=conftest 19287 libobjs=conftest.$ac_objext 19288 deplibs= 19289 wl=$lt_prog_compiler_wl_CXX 19290 pic_flag=$lt_prog_compiler_pic_CXX 19291 compiler_flags=-v 19292 linker_flags=-v 19293 verstring= 19294 output_objdir=. 19295 libname=conftest 19296 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 19297 allow_undefined_flag_CXX= 19298 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 19299 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 19300 ac_status=$? 19301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19302 test $ac_status = 0; } 19303 then 19304 archive_cmds_need_lc_CXX=no 19305 else 19306 archive_cmds_need_lc_CXX=yes 19307 fi 19308 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 19309 else 19310 cat conftest.err 1>&5 19311 fi 19312 $RM conftest* 19313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5 19314$as_echo "$archive_cmds_need_lc_CXX" >&6; } 19315 ;; 19316 esac 19317 fi 19318 ;; 19319esac 19320 19321 19322 19323 19324 19325 19326 19327 19328 19329 19330 19331 19332 19333 19334 19335 19336 19337 19338 19339 19340 19341 19342 19343 19344 19345 19346 19347 19348 19349 19350 19351 19352 19353 19354 19355 19356 19357 19358 19359 19360 19361 19362 19363 19364 19365 19366 19367 19368 19369 19370 19371 19372 19373 19374 19375 19376 19377 19378 19379 19380 19381 19382 19383 19384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 19385$as_echo_n "checking dynamic linker characteristics... " >&6; } 19386 19387library_names_spec= 19388libname_spec='lib$name' 19389soname_spec= 19390shrext_cmds=".so" 19391postinstall_cmds= 19392postuninstall_cmds= 19393finish_cmds= 19394finish_eval= 19395shlibpath_var= 19396shlibpath_overrides_runpath=unknown 19397version_type=none 19398dynamic_linker="$host_os ld.so" 19399sys_lib_dlsearch_path_spec="/lib /usr/lib" 19400need_lib_prefix=unknown 19401hardcode_into_libs=no 19402 19403# when you set need_version to no, make sure it does not cause -set_version 19404# flags to be left without arguments 19405need_version=unknown 19406 19407case $host_os in 19408aix3*) 19409 version_type=linux 19410 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 19411 shlibpath_var=LIBPATH 19412 19413 # AIX 3 has no versioning support, so we append a major version to the name. 19414 soname_spec='${libname}${release}${shared_ext}$major' 19415 ;; 19416 19417aix[4-9]*) 19418 version_type=linux 19419 need_lib_prefix=no 19420 need_version=no 19421 hardcode_into_libs=yes 19422 if test "$host_cpu" = ia64; then 19423 # AIX 5 supports IA64 19424 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 19425 shlibpath_var=LD_LIBRARY_PATH 19426 else 19427 # With GCC up to 2.95.x, collect2 would create an import file 19428 # for dependence libraries. The import file would start with 19429 # the line `#! .'. This would cause the generated library to 19430 # depend on `.', always an invalid library. This was fixed in 19431 # development snapshots of GCC prior to 3.0. 19432 case $host_os in 19433 aix4 | aix4.[01] | aix4.[01].*) 19434 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 19435 echo ' yes ' 19436 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 19437 : 19438 else 19439 can_build_shared=no 19440 fi 19441 ;; 19442 esac 19443 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 19444 # soname into executable. Probably we can add versioning support to 19445 # collect2, so additional links can be useful in future. 19446 if test "$aix_use_runtimelinking" = yes; then 19447 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 19448 # instead of lib<name>.a to let people know that these are not 19449 # typical AIX shared libraries. 19450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19451 else 19452 # We preserve .a as extension for shared libraries through AIX4.2 19453 # and later when we are not doing run time linking. 19454 library_names_spec='${libname}${release}.a $libname.a' 19455 soname_spec='${libname}${release}${shared_ext}$major' 19456 fi 19457 shlibpath_var=LIBPATH 19458 fi 19459 ;; 19460 19461amigaos*) 19462 case $host_cpu in 19463 powerpc) 19464 # Since July 2007 AmigaOS4 officially supports .so libraries. 19465 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 19466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19467 ;; 19468 m68k) 19469 library_names_spec='$libname.ixlibrary $libname.a' 19470 # Create ${libname}_ixlibrary.a entries in /sys/libs. 19471 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' 19472 ;; 19473 esac 19474 ;; 19475 19476beos*) 19477 library_names_spec='${libname}${shared_ext}' 19478 dynamic_linker="$host_os ld.so" 19479 shlibpath_var=LIBRARY_PATH 19480 ;; 19481 19482bsdi[45]*) 19483 version_type=linux 19484 need_version=no 19485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19486 soname_spec='${libname}${release}${shared_ext}$major' 19487 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 19488 shlibpath_var=LD_LIBRARY_PATH 19489 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 19490 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 19491 # the default ld.so.conf also contains /usr/contrib/lib and 19492 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 19493 # libtool to hard-code these into programs 19494 ;; 19495 19496cygwin* | mingw* | pw32* | cegcc*) 19497 version_type=windows 19498 shrext_cmds=".dll" 19499 need_version=no 19500 need_lib_prefix=no 19501 19502 case $GCC,$host_os in 19503 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 19504 library_names_spec='$libname.dll.a' 19505 # DLL is installed to $(libdir)/../bin by postinstall_cmds 19506 postinstall_cmds='base_file=`basename \${file}`~ 19507 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 19508 dldir=$destdir/`dirname \$dlpath`~ 19509 test -d \$dldir || mkdir -p \$dldir~ 19510 $install_prog $dir/$dlname \$dldir/$dlname~ 19511 chmod a+x \$dldir/$dlname~ 19512 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 19513 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 19514 fi' 19515 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 19516 dlpath=$dir/\$dldll~ 19517 $RM \$dlpath' 19518 shlibpath_overrides_runpath=yes 19519 19520 case $host_os in 19521 cygwin*) 19522 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 19523 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19524 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 19525 ;; 19526 mingw* | cegcc*) 19527 # MinGW DLLs use traditional 'lib' prefix 19528 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19529 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 19530 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 19531 # It is most probably a Windows format PATH printed by 19532 # mingw gcc, but we are running on Cygwin. Gcc prints its search 19533 # path with ; separators, and with drive letters. We can handle the 19534 # drive letters (cygwin fileutils understands them), so leave them, 19535 # especially as we might pass files found there to a mingw objdump, 19536 # which wouldn't understand a cygwinified path. Ahh. 19537 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 19538 else 19539 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 19540 fi 19541 ;; 19542 pw32*) 19543 # pw32 DLLs use 'pw' prefix rather than 'lib' 19544 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 19545 ;; 19546 esac 19547 ;; 19548 19549 *) 19550 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 19551 ;; 19552 esac 19553 dynamic_linker='Win32 ld.exe' 19554 # FIXME: first we should search . and the directory the executable is in 19555 shlibpath_var=PATH 19556 ;; 19557 19558darwin* | rhapsody*) 19559 dynamic_linker="$host_os dyld" 19560 version_type=darwin 19561 need_lib_prefix=no 19562 need_version=no 19563 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 19564 soname_spec='${libname}${release}${major}$shared_ext' 19565 shlibpath_overrides_runpath=yes 19566 shlibpath_var=DYLD_LIBRARY_PATH 19567 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 19568 19569 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 19570 ;; 19571 19572dgux*) 19573 version_type=linux 19574 need_lib_prefix=no 19575 need_version=no 19576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 19577 soname_spec='${libname}${release}${shared_ext}$major' 19578 shlibpath_var=LD_LIBRARY_PATH 19579 ;; 19580 19581freebsd1*) 19582 dynamic_linker=no 19583 ;; 19584 19585freebsd* | dragonfly*) 19586 # DragonFly does not have aout. When/if they implement a new 19587 # versioning mechanism, adjust this. 19588 if test -x /usr/bin/objformat; then 19589 objformat=`/usr/bin/objformat` 19590 else 19591 case $host_os in 19592 freebsd[123]*) objformat=aout ;; 19593 *) objformat=elf ;; 19594 esac 19595 fi 19596 version_type=freebsd-$objformat 19597 case $version_type in 19598 freebsd-elf*) 19599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 19600 need_version=no 19601 need_lib_prefix=no 19602 ;; 19603 freebsd-*) 19604 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 19605 need_version=yes 19606 ;; 19607 esac 19608 shlibpath_var=LD_LIBRARY_PATH 19609 case $host_os in 19610 freebsd2*) 19611 shlibpath_overrides_runpath=yes 19612 ;; 19613 freebsd3.[01]* | freebsdelf3.[01]*) 19614 shlibpath_overrides_runpath=yes 19615 hardcode_into_libs=yes 19616 ;; 19617 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 19618 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 19619 shlibpath_overrides_runpath=no 19620 hardcode_into_libs=yes 19621 ;; 19622 *) # from 4.6 on, and DragonFly 19623 shlibpath_overrides_runpath=yes 19624 hardcode_into_libs=yes 19625 ;; 19626 esac 19627 ;; 19628 19629gnu*) 19630 version_type=linux 19631 need_lib_prefix=no 19632 need_version=no 19633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 19634 soname_spec='${libname}${release}${shared_ext}$major' 19635 shlibpath_var=LD_LIBRARY_PATH 19636 hardcode_into_libs=yes 19637 ;; 19638 19639hpux9* | hpux10* | hpux11*) 19640 # Give a soname corresponding to the major version so that dld.sl refuses to 19641 # link against other versions. 19642 version_type=sunos 19643 need_lib_prefix=no 19644 need_version=no 19645 case $host_cpu in 19646 ia64*) 19647 shrext_cmds='.so' 19648 hardcode_into_libs=yes 19649 dynamic_linker="$host_os dld.so" 19650 shlibpath_var=LD_LIBRARY_PATH 19651 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 19652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19653 soname_spec='${libname}${release}${shared_ext}$major' 19654 if test "X$HPUX_IA64_MODE" = X32; then 19655 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 19656 else 19657 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 19658 fi 19659 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 19660 ;; 19661 hppa*64*) 19662 shrext_cmds='.sl' 19663 hardcode_into_libs=yes 19664 dynamic_linker="$host_os dld.sl" 19665 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 19666 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 19667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19668 soname_spec='${libname}${release}${shared_ext}$major' 19669 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 19670 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 19671 ;; 19672 *) 19673 shrext_cmds='.sl' 19674 dynamic_linker="$host_os dld.sl" 19675 shlibpath_var=SHLIB_PATH 19676 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 19677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19678 soname_spec='${libname}${release}${shared_ext}$major' 19679 ;; 19680 esac 19681 # HP-UX runs *really* slowly unless shared libraries are mode 555. 19682 postinstall_cmds='chmod 555 $lib' 19683 ;; 19684 19685interix[3-9]*) 19686 version_type=linux 19687 need_lib_prefix=no 19688 need_version=no 19689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19690 soname_spec='${libname}${release}${shared_ext}$major' 19691 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 19692 shlibpath_var=LD_LIBRARY_PATH 19693 shlibpath_overrides_runpath=no 19694 hardcode_into_libs=yes 19695 ;; 19696 19697irix5* | irix6* | nonstopux*) 19698 case $host_os in 19699 nonstopux*) version_type=nonstopux ;; 19700 *) 19701 if test "$lt_cv_prog_gnu_ld" = yes; then 19702 version_type=linux 19703 else 19704 version_type=irix 19705 fi ;; 19706 esac 19707 need_lib_prefix=no 19708 need_version=no 19709 soname_spec='${libname}${release}${shared_ext}$major' 19710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 19711 case $host_os in 19712 irix5* | nonstopux*) 19713 libsuff= shlibsuff= 19714 ;; 19715 *) 19716 case $LD in # libtool.m4 will add one of these switches to LD 19717 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 19718 libsuff= shlibsuff= libmagic=32-bit;; 19719 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 19720 libsuff=32 shlibsuff=N32 libmagic=N32;; 19721 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 19722 libsuff=64 shlibsuff=64 libmagic=64-bit;; 19723 *) libsuff= shlibsuff= libmagic=never-match;; 19724 esac 19725 ;; 19726 esac 19727 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 19728 shlibpath_overrides_runpath=no 19729 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 19730 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 19731 hardcode_into_libs=yes 19732 ;; 19733 19734# No shared lib support for Linux oldld, aout, or coff. 19735linux*oldld* | linux*aout* | linux*coff*) 19736 dynamic_linker=no 19737 ;; 19738 19739# This must be Linux ELF. 19740linux* | k*bsd*-gnu) 19741 version_type=linux 19742 need_lib_prefix=no 19743 need_version=no 19744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19745 soname_spec='${libname}${release}${shared_ext}$major' 19746 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 19747 shlibpath_var=LD_LIBRARY_PATH 19748 shlibpath_overrides_runpath=no 19749 # Some binutils ld are patched to set DT_RUNPATH 19750 save_LDFLAGS=$LDFLAGS 19751 save_libdir=$libdir 19752 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 19753 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 19754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19755/* end confdefs.h. */ 19756 19757int 19758main () 19759{ 19760 19761 ; 19762 return 0; 19763} 19764_ACEOF 19765if ac_fn_cxx_try_link "$LINENO"; then : 19766 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 19767 shlibpath_overrides_runpath=yes 19768fi 19769fi 19770rm -f core conftest.err conftest.$ac_objext \ 19771 conftest$ac_exeext conftest.$ac_ext 19772 LDFLAGS=$save_LDFLAGS 19773 libdir=$save_libdir 19774 19775 # This implies no fast_install, which is unacceptable. 19776 # Some rework will be needed to allow for fast_install 19777 # before this can be enabled. 19778 hardcode_into_libs=yes 19779 19780 # Append ld.so.conf contents to the search path 19781 if test -f /etc/ld.so.conf; then 19782 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' ' '` 19783 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 19784 fi 19785 19786 # We used to test for /lib/ld.so.1 and disable shared libraries on 19787 # powerpc, because MkLinux only supported shared libraries with the 19788 # GNU dynamic linker. Since this was broken with cross compilers, 19789 # most powerpc-linux boxes support dynamic linking these days and 19790 # people can always --disable-shared, the test was removed, and we 19791 # assume the GNU/Linux dynamic linker is in use. 19792 dynamic_linker='GNU/Linux ld.so' 19793 ;; 19794 19795netbsd*) 19796 version_type=sunos 19797 need_lib_prefix=no 19798 need_version=no 19799 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 19800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19801 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19802 dynamic_linker='NetBSD (a.out) ld.so' 19803 else 19804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 19805 soname_spec='${libname}${release}${shared_ext}$major' 19806 dynamic_linker='NetBSD ld.elf_so' 19807 fi 19808 shlibpath_var=LD_LIBRARY_PATH 19809 shlibpath_overrides_runpath=yes 19810 hardcode_into_libs=yes 19811 ;; 19812 19813newsos6) 19814 version_type=linux 19815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19816 shlibpath_var=LD_LIBRARY_PATH 19817 shlibpath_overrides_runpath=yes 19818 ;; 19819 19820*nto* | *qnx*) 19821 version_type=qnx 19822 need_lib_prefix=no 19823 need_version=no 19824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19825 soname_spec='${libname}${release}${shared_ext}$major' 19826 shlibpath_var=LD_LIBRARY_PATH 19827 shlibpath_overrides_runpath=no 19828 hardcode_into_libs=yes 19829 dynamic_linker='ldqnx.so' 19830 ;; 19831 19832openbsd*) 19833 version_type=sunos 19834 sys_lib_dlsearch_path_spec="/usr/lib" 19835 need_lib_prefix=no 19836 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 19837 case $host_os in 19838 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 19839 *) need_version=no ;; 19840 esac 19841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19842 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 19843 shlibpath_var=LD_LIBRARY_PATH 19844 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 19845 case $host_os in 19846 openbsd2.[89] | openbsd2.[89].*) 19847 shlibpath_overrides_runpath=no 19848 ;; 19849 *) 19850 shlibpath_overrides_runpath=yes 19851 ;; 19852 esac 19853 else 19854 shlibpath_overrides_runpath=yes 19855 fi 19856 ;; 19857 19858os2*) 19859 libname_spec='$name' 19860 shrext_cmds=".dll" 19861 need_lib_prefix=no 19862 library_names_spec='$libname${shared_ext} $libname.a' 19863 dynamic_linker='OS/2 ld.exe' 19864 shlibpath_var=LIBPATH 19865 ;; 19866 19867osf3* | osf4* | osf5*) 19868 version_type=osf 19869 need_lib_prefix=no 19870 need_version=no 19871 soname_spec='${libname}${release}${shared_ext}$major' 19872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19873 shlibpath_var=LD_LIBRARY_PATH 19874 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 19875 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 19876 ;; 19877 19878rdos*) 19879 dynamic_linker=no 19880 ;; 19881 19882solaris*) 19883 version_type=linux 19884 need_lib_prefix=no 19885 need_version=no 19886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19887 soname_spec='${libname}${release}${shared_ext}$major' 19888 shlibpath_var=LD_LIBRARY_PATH 19889 shlibpath_overrides_runpath=yes 19890 hardcode_into_libs=yes 19891 # ldd complains unless libraries are executable 19892 postinstall_cmds='chmod +x $lib' 19893 ;; 19894 19895sunos4*) 19896 version_type=sunos 19897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19898 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 19899 shlibpath_var=LD_LIBRARY_PATH 19900 shlibpath_overrides_runpath=yes 19901 if test "$with_gnu_ld" = yes; then 19902 need_lib_prefix=no 19903 fi 19904 need_version=yes 19905 ;; 19906 19907sysv4 | sysv4.3*) 19908 version_type=linux 19909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19910 soname_spec='${libname}${release}${shared_ext}$major' 19911 shlibpath_var=LD_LIBRARY_PATH 19912 case $host_vendor in 19913 sni) 19914 shlibpath_overrides_runpath=no 19915 need_lib_prefix=no 19916 runpath_var=LD_RUN_PATH 19917 ;; 19918 siemens) 19919 need_lib_prefix=no 19920 ;; 19921 motorola) 19922 need_lib_prefix=no 19923 need_version=no 19924 shlibpath_overrides_runpath=no 19925 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 19926 ;; 19927 esac 19928 ;; 19929 19930sysv4*MP*) 19931 if test -d /usr/nec ;then 19932 version_type=linux 19933 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 19934 soname_spec='$libname${shared_ext}.$major' 19935 shlibpath_var=LD_LIBRARY_PATH 19936 fi 19937 ;; 19938 19939sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 19940 version_type=freebsd-elf 19941 need_lib_prefix=no 19942 need_version=no 19943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 19944 soname_spec='${libname}${release}${shared_ext}$major' 19945 shlibpath_var=LD_LIBRARY_PATH 19946 shlibpath_overrides_runpath=yes 19947 hardcode_into_libs=yes 19948 if test "$with_gnu_ld" = yes; then 19949 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 19950 else 19951 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 19952 case $host_os in 19953 sco3.2v5*) 19954 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 19955 ;; 19956 esac 19957 fi 19958 sys_lib_dlsearch_path_spec='/usr/lib' 19959 ;; 19960 19961tpf*) 19962 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 19963 version_type=linux 19964 need_lib_prefix=no 19965 need_version=no 19966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19967 shlibpath_var=LD_LIBRARY_PATH 19968 shlibpath_overrides_runpath=no 19969 hardcode_into_libs=yes 19970 ;; 19971 19972uts4*) 19973 version_type=linux 19974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19975 soname_spec='${libname}${release}${shared_ext}$major' 19976 shlibpath_var=LD_LIBRARY_PATH 19977 ;; 19978 19979*) 19980 dynamic_linker=no 19981 ;; 19982esac 19983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 19984$as_echo "$dynamic_linker" >&6; } 19985test "$dynamic_linker" = no && can_build_shared=no 19986 19987variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 19988if test "$GCC" = yes; then 19989 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 19990fi 19991 19992if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 19993 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 19994fi 19995if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 19996 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 19997fi 19998 19999 20000 20001 20002 20003 20004 20005 20006 20007 20008 20009 20010 20011 20012 20013 20014 20015 20016 20017 20018 20019 20020 20021 20022 20023 20024 20025 20026 20027 20028 20029 20030 20031 20032 20033 20034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 20035$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 20036hardcode_action_CXX= 20037if test -n "$hardcode_libdir_flag_spec_CXX" || 20038 test -n "$runpath_var_CXX" || 20039 test "X$hardcode_automatic_CXX" = "Xyes" ; then 20040 20041 # We can hardcode non-existent directories. 20042 if test "$hardcode_direct_CXX" != no && 20043 # If the only mechanism to avoid hardcoding is shlibpath_var, we 20044 # have to relink, otherwise we might link with an installed library 20045 # when we should be linking with a yet-to-be-installed one 20046 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 20047 test "$hardcode_minus_L_CXX" != no; then 20048 # Linking always hardcodes the temporary library directory. 20049 hardcode_action_CXX=relink 20050 else 20051 # We can link without hardcoding, and we can hardcode nonexisting dirs. 20052 hardcode_action_CXX=immediate 20053 fi 20054else 20055 # We cannot hardcode anything, or else we can only hardcode existing 20056 # directories. 20057 hardcode_action_CXX=unsupported 20058fi 20059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 20060$as_echo "$hardcode_action_CXX" >&6; } 20061 20062if test "$hardcode_action_CXX" = relink || 20063 test "$inherit_rpath_CXX" = yes; then 20064 # Fast installation is not supported 20065 enable_fast_install=no 20066elif test "$shlibpath_overrides_runpath" = yes || 20067 test "$enable_shared" = no; then 20068 # Fast installation is not necessary 20069 enable_fast_install=needless 20070fi 20071 20072 20073 20074 20075 20076 20077 20078 fi # test -n "$compiler" 20079 20080 CC=$lt_save_CC 20081 LDCXX=$LD 20082 LD=$lt_save_LD 20083 GCC=$lt_save_GCC 20084 with_gnu_ld=$lt_save_with_gnu_ld 20085 lt_cv_path_LDCXX=$lt_cv_path_LD 20086 lt_cv_path_LD=$lt_save_path_LD 20087 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 20088 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 20089fi # test "$_lt_caught_CXX_error" != yes 20090 20091ac_ext=c 20092ac_cpp='$CPP $CPPFLAGS' 20093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20095ac_compiler_gnu=$ac_cv_c_compiler_gnu 20096 20097 20098ac_ext=c 20099ac_cpp='$CPP $CPPFLAGS' 20100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20102ac_compiler_gnu=$ac_cv_c_compiler_gnu 20103if test -n "$ac_tool_prefix"; then 20104 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 20105set dummy ${ac_tool_prefix}gcc; ac_word=$2 20106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20107$as_echo_n "checking for $ac_word... " >&6; } 20108if ${ac_cv_prog_CC+:} false; then : 20109 $as_echo_n "(cached) " >&6 20110else 20111 if test -n "$CC"; then 20112 ac_cv_prog_CC="$CC" # Let the user override the test. 20113else 20114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20115for as_dir in $PATH 20116do 20117 IFS=$as_save_IFS 20118 test -z "$as_dir" && as_dir=. 20119 for ac_exec_ext in '' $ac_executable_extensions; do 20120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20121 ac_cv_prog_CC="${ac_tool_prefix}gcc" 20122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20123 break 2 20124 fi 20125done 20126 done 20127IFS=$as_save_IFS 20128 20129fi 20130fi 20131CC=$ac_cv_prog_CC 20132if test -n "$CC"; then 20133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 20134$as_echo "$CC" >&6; } 20135else 20136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20137$as_echo "no" >&6; } 20138fi 20139 20140 20141fi 20142if test -z "$ac_cv_prog_CC"; then 20143 ac_ct_CC=$CC 20144 # Extract the first word of "gcc", so it can be a program name with args. 20145set dummy gcc; ac_word=$2 20146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20147$as_echo_n "checking for $ac_word... " >&6; } 20148if ${ac_cv_prog_ac_ct_CC+:} false; then : 20149 $as_echo_n "(cached) " >&6 20150else 20151 if test -n "$ac_ct_CC"; then 20152 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 20153else 20154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20155for as_dir in $PATH 20156do 20157 IFS=$as_save_IFS 20158 test -z "$as_dir" && as_dir=. 20159 for ac_exec_ext in '' $ac_executable_extensions; do 20160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20161 ac_cv_prog_ac_ct_CC="gcc" 20162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20163 break 2 20164 fi 20165done 20166 done 20167IFS=$as_save_IFS 20168 20169fi 20170fi 20171ac_ct_CC=$ac_cv_prog_ac_ct_CC 20172if test -n "$ac_ct_CC"; then 20173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 20174$as_echo "$ac_ct_CC" >&6; } 20175else 20176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20177$as_echo "no" >&6; } 20178fi 20179 20180 if test "x$ac_ct_CC" = x; then 20181 CC="" 20182 else 20183 case $cross_compiling:$ac_tool_warned in 20184yes:) 20185{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 20186$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20187ac_tool_warned=yes ;; 20188esac 20189 CC=$ac_ct_CC 20190 fi 20191else 20192 CC="$ac_cv_prog_CC" 20193fi 20194 20195if test -z "$CC"; then 20196 if test -n "$ac_tool_prefix"; then 20197 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 20198set dummy ${ac_tool_prefix}cc; ac_word=$2 20199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20200$as_echo_n "checking for $ac_word... " >&6; } 20201if ${ac_cv_prog_CC+:} false; then : 20202 $as_echo_n "(cached) " >&6 20203else 20204 if test -n "$CC"; then 20205 ac_cv_prog_CC="$CC" # Let the user override the test. 20206else 20207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20208for as_dir in $PATH 20209do 20210 IFS=$as_save_IFS 20211 test -z "$as_dir" && as_dir=. 20212 for ac_exec_ext in '' $ac_executable_extensions; do 20213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20214 ac_cv_prog_CC="${ac_tool_prefix}cc" 20215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20216 break 2 20217 fi 20218done 20219 done 20220IFS=$as_save_IFS 20221 20222fi 20223fi 20224CC=$ac_cv_prog_CC 20225if test -n "$CC"; then 20226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 20227$as_echo "$CC" >&6; } 20228else 20229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20230$as_echo "no" >&6; } 20231fi 20232 20233 20234 fi 20235fi 20236if test -z "$CC"; then 20237 # Extract the first word of "cc", so it can be a program name with args. 20238set dummy cc; ac_word=$2 20239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20240$as_echo_n "checking for $ac_word... " >&6; } 20241if ${ac_cv_prog_CC+:} false; then : 20242 $as_echo_n "(cached) " >&6 20243else 20244 if test -n "$CC"; then 20245 ac_cv_prog_CC="$CC" # Let the user override the test. 20246else 20247 ac_prog_rejected=no 20248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20249for as_dir in $PATH 20250do 20251 IFS=$as_save_IFS 20252 test -z "$as_dir" && as_dir=. 20253 for ac_exec_ext in '' $ac_executable_extensions; do 20254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20255 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 20256 ac_prog_rejected=yes 20257 continue 20258 fi 20259 ac_cv_prog_CC="cc" 20260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20261 break 2 20262 fi 20263done 20264 done 20265IFS=$as_save_IFS 20266 20267if test $ac_prog_rejected = yes; then 20268 # We found a bogon in the path, so make sure we never use it. 20269 set dummy $ac_cv_prog_CC 20270 shift 20271 if test $# != 0; then 20272 # We chose a different compiler from the bogus one. 20273 # However, it has the same basename, so the bogon will be chosen 20274 # first if we set CC to just the basename; use the full file name. 20275 shift 20276 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 20277 fi 20278fi 20279fi 20280fi 20281CC=$ac_cv_prog_CC 20282if test -n "$CC"; then 20283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 20284$as_echo "$CC" >&6; } 20285else 20286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20287$as_echo "no" >&6; } 20288fi 20289 20290 20291fi 20292if test -z "$CC"; then 20293 if test -n "$ac_tool_prefix"; then 20294 for ac_prog in cl.exe 20295 do 20296 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 20297set dummy $ac_tool_prefix$ac_prog; ac_word=$2 20298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20299$as_echo_n "checking for $ac_word... " >&6; } 20300if ${ac_cv_prog_CC+:} false; then : 20301 $as_echo_n "(cached) " >&6 20302else 20303 if test -n "$CC"; then 20304 ac_cv_prog_CC="$CC" # Let the user override the test. 20305else 20306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20307for as_dir in $PATH 20308do 20309 IFS=$as_save_IFS 20310 test -z "$as_dir" && as_dir=. 20311 for ac_exec_ext in '' $ac_executable_extensions; do 20312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20313 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 20314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20315 break 2 20316 fi 20317done 20318 done 20319IFS=$as_save_IFS 20320 20321fi 20322fi 20323CC=$ac_cv_prog_CC 20324if test -n "$CC"; then 20325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 20326$as_echo "$CC" >&6; } 20327else 20328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20329$as_echo "no" >&6; } 20330fi 20331 20332 20333 test -n "$CC" && break 20334 done 20335fi 20336if test -z "$CC"; then 20337 ac_ct_CC=$CC 20338 for ac_prog in cl.exe 20339do 20340 # Extract the first word of "$ac_prog", so it can be a program name with args. 20341set dummy $ac_prog; ac_word=$2 20342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20343$as_echo_n "checking for $ac_word... " >&6; } 20344if ${ac_cv_prog_ac_ct_CC+:} false; then : 20345 $as_echo_n "(cached) " >&6 20346else 20347 if test -n "$ac_ct_CC"; then 20348 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 20349else 20350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20351for as_dir in $PATH 20352do 20353 IFS=$as_save_IFS 20354 test -z "$as_dir" && as_dir=. 20355 for ac_exec_ext in '' $ac_executable_extensions; do 20356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20357 ac_cv_prog_ac_ct_CC="$ac_prog" 20358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20359 break 2 20360 fi 20361done 20362 done 20363IFS=$as_save_IFS 20364 20365fi 20366fi 20367ac_ct_CC=$ac_cv_prog_ac_ct_CC 20368if test -n "$ac_ct_CC"; then 20369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 20370$as_echo "$ac_ct_CC" >&6; } 20371else 20372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20373$as_echo "no" >&6; } 20374fi 20375 20376 20377 test -n "$ac_ct_CC" && break 20378done 20379 20380 if test "x$ac_ct_CC" = x; then 20381 CC="" 20382 else 20383 case $cross_compiling:$ac_tool_warned in 20384yes:) 20385{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 20386$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20387ac_tool_warned=yes ;; 20388esac 20389 CC=$ac_ct_CC 20390 fi 20391fi 20392 20393fi 20394 20395 20396test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20397$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20398as_fn_error $? "no acceptable C compiler found in \$PATH 20399See \`config.log' for more details" "$LINENO" 5; } 20400 20401# Provide some information about the compiler. 20402$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 20403set X $ac_compile 20404ac_compiler=$2 20405for ac_option in --version -v -V -qversion; do 20406 { { ac_try="$ac_compiler $ac_option >&5" 20407case "(($ac_try" in 20408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20409 *) ac_try_echo=$ac_try;; 20410esac 20411eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 20412$as_echo "$ac_try_echo"; } >&5 20413 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 20414 ac_status=$? 20415 if test -s conftest.err; then 20416 sed '10a\ 20417... rest of stderr output deleted ... 20418 10q' conftest.err >conftest.er1 20419 cat conftest.er1 >&5 20420 fi 20421 rm -f conftest.er1 conftest.err 20422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20423 test $ac_status = 0; } 20424done 20425 20426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 20427$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 20428if ${ac_cv_c_compiler_gnu+:} false; then : 20429 $as_echo_n "(cached) " >&6 20430else 20431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20432/* end confdefs.h. */ 20433 20434int 20435main () 20436{ 20437#ifndef __GNUC__ 20438 choke me 20439#endif 20440 20441 ; 20442 return 0; 20443} 20444_ACEOF 20445if ac_fn_c_try_compile "$LINENO"; then : 20446 ac_compiler_gnu=yes 20447else 20448 ac_compiler_gnu=no 20449fi 20450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20451ac_cv_c_compiler_gnu=$ac_compiler_gnu 20452 20453fi 20454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 20455$as_echo "$ac_cv_c_compiler_gnu" >&6; } 20456if test $ac_compiler_gnu = yes; then 20457 GCC=yes 20458else 20459 GCC= 20460fi 20461ac_test_CFLAGS=${CFLAGS+set} 20462ac_save_CFLAGS=$CFLAGS 20463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 20464$as_echo_n "checking whether $CC accepts -g... " >&6; } 20465if ${ac_cv_prog_cc_g+:} false; then : 20466 $as_echo_n "(cached) " >&6 20467else 20468 ac_save_c_werror_flag=$ac_c_werror_flag 20469 ac_c_werror_flag=yes 20470 ac_cv_prog_cc_g=no 20471 CFLAGS="-g" 20472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20473/* end confdefs.h. */ 20474 20475int 20476main () 20477{ 20478 20479 ; 20480 return 0; 20481} 20482_ACEOF 20483if ac_fn_c_try_compile "$LINENO"; then : 20484 ac_cv_prog_cc_g=yes 20485else 20486 CFLAGS="" 20487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20488/* end confdefs.h. */ 20489 20490int 20491main () 20492{ 20493 20494 ; 20495 return 0; 20496} 20497_ACEOF 20498if ac_fn_c_try_compile "$LINENO"; then : 20499 20500else 20501 ac_c_werror_flag=$ac_save_c_werror_flag 20502 CFLAGS="-g" 20503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20504/* end confdefs.h. */ 20505 20506int 20507main () 20508{ 20509 20510 ; 20511 return 0; 20512} 20513_ACEOF 20514if ac_fn_c_try_compile "$LINENO"; then : 20515 ac_cv_prog_cc_g=yes 20516fi 20517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20518fi 20519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20520fi 20521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20522 ac_c_werror_flag=$ac_save_c_werror_flag 20523fi 20524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 20525$as_echo "$ac_cv_prog_cc_g" >&6; } 20526if test "$ac_test_CFLAGS" = set; then 20527 CFLAGS=$ac_save_CFLAGS 20528elif test $ac_cv_prog_cc_g = yes; then 20529 if test "$GCC" = yes; then 20530 CFLAGS="-g -O2" 20531 else 20532 CFLAGS="-g" 20533 fi 20534else 20535 if test "$GCC" = yes; then 20536 CFLAGS="-O2" 20537 else 20538 CFLAGS= 20539 fi 20540fi 20541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 20542$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 20543if ${ac_cv_prog_cc_c89+:} false; then : 20544 $as_echo_n "(cached) " >&6 20545else 20546 ac_cv_prog_cc_c89=no 20547ac_save_CC=$CC 20548cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20549/* end confdefs.h. */ 20550#include <stdarg.h> 20551#include <stdio.h> 20552#include <sys/types.h> 20553#include <sys/stat.h> 20554/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 20555struct buf { int x; }; 20556FILE * (*rcsopen) (struct buf *, struct stat *, int); 20557static char *e (p, i) 20558 char **p; 20559 int i; 20560{ 20561 return p[i]; 20562} 20563static char *f (char * (*g) (char **, int), char **p, ...) 20564{ 20565 char *s; 20566 va_list v; 20567 va_start (v,p); 20568 s = g (p, va_arg (v,int)); 20569 va_end (v); 20570 return s; 20571} 20572 20573/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 20574 function prototypes and stuff, but not '\xHH' hex character constants. 20575 These don't provoke an error unfortunately, instead are silently treated 20576 as 'x'. The following induces an error, until -std is added to get 20577 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 20578 array size at least. It's necessary to write '\x00'==0 to get something 20579 that's true only with -std. */ 20580int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 20581 20582/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 20583 inside strings and character constants. */ 20584#define FOO(x) 'x' 20585int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 20586 20587int test (int i, double x); 20588struct s1 {int (*f) (int a);}; 20589struct s2 {int (*f) (double a);}; 20590int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 20591int argc; 20592char **argv; 20593int 20594main () 20595{ 20596return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 20597 ; 20598 return 0; 20599} 20600_ACEOF 20601for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 20602 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 20603do 20604 CC="$ac_save_CC $ac_arg" 20605 if ac_fn_c_try_compile "$LINENO"; then : 20606 ac_cv_prog_cc_c89=$ac_arg 20607fi 20608rm -f core conftest.err conftest.$ac_objext 20609 test "x$ac_cv_prog_cc_c89" != "xno" && break 20610done 20611rm -f conftest.$ac_ext 20612CC=$ac_save_CC 20613 20614fi 20615# AC_CACHE_VAL 20616case "x$ac_cv_prog_cc_c89" in 20617 x) 20618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 20619$as_echo "none needed" >&6; } ;; 20620 xno) 20621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 20622$as_echo "unsupported" >&6; } ;; 20623 *) 20624 CC="$CC $ac_cv_prog_cc_c89" 20625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 20626$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 20627esac 20628if test "x$ac_cv_prog_cc_c89" != xno; then : 20629 20630fi 20631 20632ac_ext=c 20633ac_cpp='$CPP $CPPFLAGS' 20634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20636ac_compiler_gnu=$ac_cv_c_compiler_gnu 20637 20638depcc="$CC" am_compiler_list= 20639 20640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 20641$as_echo_n "checking dependency style of $depcc... " >&6; } 20642if ${am_cv_CC_dependencies_compiler_type+:} false; then : 20643 $as_echo_n "(cached) " >&6 20644else 20645 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 20646 # We make a subdir and do the tests there. Otherwise we can end up 20647 # making bogus files that we don't know about and never remove. For 20648 # instance it was reported that on HP-UX the gcc test will end up 20649 # making a dummy file named `D' -- because `-MD' means `put the output 20650 # in D'. 20651 mkdir conftest.dir 20652 # Copy depcomp to subdir because otherwise we won't find it if we're 20653 # using a relative directory. 20654 cp "$am_depcomp" conftest.dir 20655 cd conftest.dir 20656 # We will build objects and dependencies in a subdirectory because 20657 # it helps to detect inapplicable dependency modes. For instance 20658 # both Tru64's cc and ICC support -MD to output dependencies as a 20659 # side effect of compilation, but ICC will put the dependencies in 20660 # the current directory while Tru64 will put them in the object 20661 # directory. 20662 mkdir sub 20663 20664 am_cv_CC_dependencies_compiler_type=none 20665 if test "$am_compiler_list" = ""; then 20666 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 20667 fi 20668 am__universal=false 20669 case " $depcc " in #( 20670 *\ -arch\ *\ -arch\ *) am__universal=true ;; 20671 esac 20672 20673 for depmode in $am_compiler_list; do 20674 # Setup a source with many dependencies, because some compilers 20675 # like to wrap large dependency lists on column 80 (with \), and 20676 # we should not choose a depcomp mode which is confused by this. 20677 # 20678 # We need to recreate these files for each test, as the compiler may 20679 # overwrite some of them when testing with obscure command lines. 20680 # This happens at least with the AIX C compiler. 20681 : > sub/conftest.c 20682 for i in 1 2 3 4 5 6; do 20683 echo '#include "conftst'$i'.h"' >> sub/conftest.c 20684 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 20685 # Solaris 8's {/usr,}/bin/sh. 20686 touch sub/conftst$i.h 20687 done 20688 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 20689 20690 # We check with `-c' and `-o' for the sake of the "dashmstdout" 20691 # mode. It turns out that the SunPro C++ compiler does not properly 20692 # handle `-M -o', and we need to detect this. Also, some Intel 20693 # versions had trouble with output in subdirs 20694 am__obj=sub/conftest.${OBJEXT-o} 20695 am__minus_obj="-o $am__obj" 20696 case $depmode in 20697 gcc) 20698 # This depmode causes a compiler race in universal mode. 20699 test "$am__universal" = false || continue 20700 ;; 20701 nosideeffect) 20702 # after this tag, mechanisms are not by side-effect, so they'll 20703 # only be used when explicitly requested 20704 if test "x$enable_dependency_tracking" = xyes; then 20705 continue 20706 else 20707 break 20708 fi 20709 ;; 20710 msvisualcpp | msvcmsys) 20711 # This compiler won't grok `-c -o', but also, the minuso test has 20712 # not run yet. These depmodes are late enough in the game, and 20713 # so weak that their functioning should not be impacted. 20714 am__obj=conftest.${OBJEXT-o} 20715 am__minus_obj= 20716 ;; 20717 none) break ;; 20718 esac 20719 if depmode=$depmode \ 20720 source=sub/conftest.c object=$am__obj \ 20721 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 20722 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 20723 >/dev/null 2>conftest.err && 20724 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 20725 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 20726 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 20727 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 20728 # icc doesn't choke on unknown options, it will just issue warnings 20729 # or remarks (even with -Werror). So we grep stderr for any message 20730 # that says an option was ignored or not supported. 20731 # When given -MP, icc 7.0 and 7.1 complain thusly: 20732 # icc: Command line warning: ignoring option '-M'; no argument required 20733 # The diagnosis changed in icc 8.0: 20734 # icc: Command line remark: option '-MP' not supported 20735 if (grep 'ignoring option' conftest.err || 20736 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 20737 am_cv_CC_dependencies_compiler_type=$depmode 20738 break 20739 fi 20740 fi 20741 done 20742 20743 cd .. 20744 rm -rf conftest.dir 20745else 20746 am_cv_CC_dependencies_compiler_type=none 20747fi 20748 20749fi 20750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 20751$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 20752CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 20753 20754 if 20755 test "x$enable_dependency_tracking" != xno \ 20756 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 20757 am__fastdepCC_TRUE= 20758 am__fastdepCC_FALSE='#' 20759else 20760 am__fastdepCC_TRUE='#' 20761 am__fastdepCC_FALSE= 20762fi 20763 20764 20765ac_ext=cpp 20766ac_cpp='$CXXCPP $CPPFLAGS' 20767ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20768ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20769ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20770 20771 20772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 20773$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 20774if ${ac_cv_c_const+:} false; then : 20775 $as_echo_n "(cached) " >&6 20776else 20777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20778/* end confdefs.h. */ 20779 20780int 20781main () 20782{ 20783/* FIXME: Include the comments suggested by Paul. */ 20784#ifndef __cplusplus 20785 /* Ultrix mips cc rejects this. */ 20786 typedef int charset[2]; 20787 const charset cs; 20788 /* SunOS 4.1.1 cc rejects this. */ 20789 char const *const *pcpcc; 20790 char **ppc; 20791 /* NEC SVR4.0.2 mips cc rejects this. */ 20792 struct point {int x, y;}; 20793 static struct point const zero = {0,0}; 20794 /* AIX XL C 1.02.0.0 rejects this. 20795 It does not let you subtract one const X* pointer from another in 20796 an arm of an if-expression whose if-part is not a constant 20797 expression */ 20798 const char *g = "string"; 20799 pcpcc = &g + (g ? g-g : 0); 20800 /* HPUX 7.0 cc rejects these. */ 20801 ++pcpcc; 20802 ppc = (char**) pcpcc; 20803 pcpcc = (char const *const *) ppc; 20804 { /* SCO 3.2v4 cc rejects this. */ 20805 char *t; 20806 char const *s = 0 ? (char *) 0 : (char const *) 0; 20807 20808 *t++ = 0; 20809 if (s) return 0; 20810 } 20811 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 20812 int x[] = {25, 17}; 20813 const int *foo = &x[0]; 20814 ++foo; 20815 } 20816 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 20817 typedef const int *iptr; 20818 iptr p = 0; 20819 ++p; 20820 } 20821 { /* AIX XL C 1.02.0.0 rejects this saying 20822 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 20823 struct s { int j; const int *ap[3]; }; 20824 struct s *b; b->j = 5; 20825 } 20826 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 20827 const int foo = 10; 20828 if (!foo) return 0; 20829 } 20830 return !cs[0] && !zero.x; 20831#endif 20832 20833 ; 20834 return 0; 20835} 20836_ACEOF 20837if ac_fn_cxx_try_compile "$LINENO"; then : 20838 ac_cv_c_const=yes 20839else 20840 ac_cv_c_const=no 20841fi 20842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20843fi 20844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 20845$as_echo "$ac_cv_c_const" >&6; } 20846if test $ac_cv_c_const = no; then 20847 20848$as_echo "#define const /**/" >>confdefs.h 20849 20850fi 20851 20852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 20853$as_echo_n "checking for inline... " >&6; } 20854if ${ac_cv_c_inline+:} false; then : 20855 $as_echo_n "(cached) " >&6 20856else 20857 ac_cv_c_inline=no 20858for ac_kw in inline __inline__ __inline; do 20859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20860/* end confdefs.h. */ 20861#ifndef __cplusplus 20862typedef int foo_t; 20863static $ac_kw foo_t static_foo () {return 0; } 20864$ac_kw foo_t foo () {return 0; } 20865#endif 20866 20867_ACEOF 20868if ac_fn_cxx_try_compile "$LINENO"; then : 20869 ac_cv_c_inline=$ac_kw 20870fi 20871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20872 test "$ac_cv_c_inline" != no && break 20873done 20874 20875fi 20876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 20877$as_echo "$ac_cv_c_inline" >&6; } 20878 20879case $ac_cv_c_inline in 20880 inline | yes) ;; 20881 *) 20882 case $ac_cv_c_inline in 20883 no) ac_val=;; 20884 *) ac_val=$ac_cv_c_inline;; 20885 esac 20886 cat >>confdefs.h <<_ACEOF 20887#ifndef __cplusplus 20888#define inline $ac_val 20889#endif 20890_ACEOF 20891 ;; 20892esac 20893 20894ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 20895if test "x$ac_cv_type_size_t" = xyes; then : 20896 20897else 20898 20899cat >>confdefs.h <<_ACEOF 20900#define size_t unsigned int 20901_ACEOF 20902 20903fi 20904 20905 20906# Check SCIM 20907 20908 20909 20910 20911 20912 20913if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 20914 if test -n "$ac_tool_prefix"; then 20915 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 20916set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 20917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20918$as_echo_n "checking for $ac_word... " >&6; } 20919if ${ac_cv_path_PKG_CONFIG+:} false; then : 20920 $as_echo_n "(cached) " >&6 20921else 20922 case $PKG_CONFIG in 20923 [\\/]* | ?:[\\/]*) 20924 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 20925 ;; 20926 *) 20927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20928for as_dir in $PATH 20929do 20930 IFS=$as_save_IFS 20931 test -z "$as_dir" && as_dir=. 20932 for ac_exec_ext in '' $ac_executable_extensions; do 20933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20934 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20936 break 2 20937 fi 20938done 20939 done 20940IFS=$as_save_IFS 20941 20942 ;; 20943esac 20944fi 20945PKG_CONFIG=$ac_cv_path_PKG_CONFIG 20946if test -n "$PKG_CONFIG"; then 20947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 20948$as_echo "$PKG_CONFIG" >&6; } 20949else 20950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20951$as_echo "no" >&6; } 20952fi 20953 20954 20955fi 20956if test -z "$ac_cv_path_PKG_CONFIG"; then 20957 ac_pt_PKG_CONFIG=$PKG_CONFIG 20958 # Extract the first word of "pkg-config", so it can be a program name with args. 20959set dummy pkg-config; ac_word=$2 20960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20961$as_echo_n "checking for $ac_word... " >&6; } 20962if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 20963 $as_echo_n "(cached) " >&6 20964else 20965 case $ac_pt_PKG_CONFIG in 20966 [\\/]* | ?:[\\/]*) 20967 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 20968 ;; 20969 *) 20970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20971for as_dir in $PATH 20972do 20973 IFS=$as_save_IFS 20974 test -z "$as_dir" && as_dir=. 20975 for ac_exec_ext in '' $ac_executable_extensions; do 20976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20977 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20979 break 2 20980 fi 20981done 20982 done 20983IFS=$as_save_IFS 20984 20985 ;; 20986esac 20987fi 20988ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 20989if test -n "$ac_pt_PKG_CONFIG"; then 20990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 20991$as_echo "$ac_pt_PKG_CONFIG" >&6; } 20992else 20993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20994$as_echo "no" >&6; } 20995fi 20996 20997 if test "x$ac_pt_PKG_CONFIG" = x; then 20998 PKG_CONFIG="" 20999 else 21000 case $cross_compiling:$ac_tool_warned in 21001yes:) 21002{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 21003$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 21004ac_tool_warned=yes ;; 21005esac 21006 PKG_CONFIG=$ac_pt_PKG_CONFIG 21007 fi 21008else 21009 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 21010fi 21011 21012fi 21013if test -n "$PKG_CONFIG"; then 21014 _pkg_min_version=0.9.0 21015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 21016$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 21017 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 21018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21019$as_echo "yes" >&6; } 21020 else 21021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21022$as_echo "no" >&6; } 21023 PKG_CONFIG="" 21024 fi 21025fi 21026 21027pkg_failed=no 21028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SCIM" >&5 21029$as_echo_n "checking for SCIM... " >&6; } 21030 21031if test -n "$SCIM_CFLAGS"; then 21032 pkg_cv_SCIM_CFLAGS="$SCIM_CFLAGS" 21033 elif test -n "$PKG_CONFIG"; then 21034 if test -n "$PKG_CONFIG" && \ 21035 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"scim >= \$SCIM_VERSION\""; } >&5 21036 ($PKG_CONFIG --exists --print-errors "scim >= $SCIM_VERSION") 2>&5 21037 ac_status=$? 21038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21039 test $ac_status = 0; }; then 21040 pkg_cv_SCIM_CFLAGS=`$PKG_CONFIG --cflags "scim >= $SCIM_VERSION" 2>/dev/null` 21041else 21042 pkg_failed=yes 21043fi 21044 else 21045 pkg_failed=untried 21046fi 21047if test -n "$SCIM_LIBS"; then 21048 pkg_cv_SCIM_LIBS="$SCIM_LIBS" 21049 elif test -n "$PKG_CONFIG"; then 21050 if test -n "$PKG_CONFIG" && \ 21051 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"scim >= \$SCIM_VERSION\""; } >&5 21052 ($PKG_CONFIG --exists --print-errors "scim >= $SCIM_VERSION") 2>&5 21053 ac_status=$? 21054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21055 test $ac_status = 0; }; then 21056 pkg_cv_SCIM_LIBS=`$PKG_CONFIG --libs "scim >= $SCIM_VERSION" 2>/dev/null` 21057else 21058 pkg_failed=yes 21059fi 21060 else 21061 pkg_failed=untried 21062fi 21063 21064 21065 21066if test $pkg_failed = yes; then 21067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21068$as_echo "no" >&6; } 21069 21070if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21071 _pkg_short_errors_supported=yes 21072else 21073 _pkg_short_errors_supported=no 21074fi 21075 if test $_pkg_short_errors_supported = yes; then 21076 SCIM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "scim >= $SCIM_VERSION" 2>&1` 21077 else 21078 SCIM_PKG_ERRORS=`$PKG_CONFIG --print-errors "scim >= $SCIM_VERSION" 2>&1` 21079 fi 21080 # Put the nasty error message in config.log where it belongs 21081 echo "$SCIM_PKG_ERRORS" >&5 21082 21083 as_fn_error $? "Package requirements (scim >= $SCIM_VERSION) were not met: 21084 21085$SCIM_PKG_ERRORS 21086 21087Consider adjusting the PKG_CONFIG_PATH environment variable if you 21088installed software in a non-standard prefix. 21089 21090Alternatively, you may set the environment variables SCIM_CFLAGS 21091and SCIM_LIBS to avoid the need to call pkg-config. 21092See the pkg-config man page for more details." "$LINENO" 5 21093elif test $pkg_failed = untried; then 21094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21095$as_echo "no" >&6; } 21096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21097$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21098as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 21099is in your PATH or set the PKG_CONFIG environment variable to the full 21100path to pkg-config. 21101 21102Alternatively, you may set the environment variables SCIM_CFLAGS 21103and SCIM_LIBS to avoid the need to call pkg-config. 21104See the pkg-config man page for more details. 21105 21106To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21107See \`config.log' for more details" "$LINENO" 5; } 21108else 21109 SCIM_CFLAGS=$pkg_cv_SCIM_CFLAGS 21110 SCIM_LIBS=$pkg_cv_SCIM_LIBS 21111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21112$as_echo "yes" >&6; } 21113 21114fi 21115 21116# Check gtk2 21117 21118pkg_failed=no 21119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK2" >&5 21120$as_echo_n "checking for GTK2... " >&6; } 21121 21122if test -n "$GTK2_CFLAGS"; then 21123 pkg_cv_GTK2_CFLAGS="$GTK2_CFLAGS" 21124 elif test -n "$PKG_CONFIG"; then 21125 if test -n "$PKG_CONFIG" && \ 21126 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.4.0\""; } >&5 21127 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.4.0") 2>&5 21128 ac_status=$? 21129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21130 test $ac_status = 0; }; then 21131 pkg_cv_GTK2_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4.0" 2>/dev/null` 21132else 21133 pkg_failed=yes 21134fi 21135 else 21136 pkg_failed=untried 21137fi 21138if test -n "$GTK2_LIBS"; then 21139 pkg_cv_GTK2_LIBS="$GTK2_LIBS" 21140 elif test -n "$PKG_CONFIG"; then 21141 if test -n "$PKG_CONFIG" && \ 21142 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.4.0\""; } >&5 21143 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.4.0") 2>&5 21144 ac_status=$? 21145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21146 test $ac_status = 0; }; then 21147 pkg_cv_GTK2_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4.0" 2>/dev/null` 21148else 21149 pkg_failed=yes 21150fi 21151 else 21152 pkg_failed=untried 21153fi 21154 21155 21156 21157if test $pkg_failed = yes; then 21158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21159$as_echo "no" >&6; } 21160 21161if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21162 _pkg_short_errors_supported=yes 21163else 21164 _pkg_short_errors_supported=no 21165fi 21166 if test $_pkg_short_errors_supported = yes; then 21167 GTK2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0 >= 2.4.0" 2>&1` 21168 else 21169 GTK2_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0 >= 2.4.0" 2>&1` 21170 fi 21171 # Put the nasty error message in config.log where it belongs 21172 echo "$GTK2_PKG_ERRORS" >&5 21173 21174 as_fn_error $? "Package requirements (gtk+-2.0 >= 2.4.0) were not met: 21175 21176$GTK2_PKG_ERRORS 21177 21178Consider adjusting the PKG_CONFIG_PATH environment variable if you 21179installed software in a non-standard prefix. 21180 21181Alternatively, you may set the environment variables GTK2_CFLAGS 21182and GTK2_LIBS to avoid the need to call pkg-config. 21183See the pkg-config man page for more details." "$LINENO" 5 21184elif test $pkg_failed = untried; then 21185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21186$as_echo "no" >&6; } 21187 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21188$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21189as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 21190is in your PATH or set the PKG_CONFIG environment variable to the full 21191path to pkg-config. 21192 21193Alternatively, you may set the environment variables GTK2_CFLAGS 21194and GTK2_LIBS to avoid the need to call pkg-config. 21195See the pkg-config man page for more details. 21196 21197To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21198See \`config.log' for more details" "$LINENO" 5; } 21199else 21200 GTK2_CFLAGS=$pkg_cv_GTK2_CFLAGS 21201 GTK2_LIBS=$pkg_cv_GTK2_LIBS 21202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21203$as_echo "yes" >&6; } 21204 21205fi 21206 21207# Checks for header files. 21208 21209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 21210$as_echo_n "checking for ANSI C header files... " >&6; } 21211if ${ac_cv_header_stdc+:} false; then : 21212 $as_echo_n "(cached) " >&6 21213else 21214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21215/* end confdefs.h. */ 21216#include <stdlib.h> 21217#include <stdarg.h> 21218#include <string.h> 21219#include <float.h> 21220 21221int 21222main () 21223{ 21224 21225 ; 21226 return 0; 21227} 21228_ACEOF 21229if ac_fn_cxx_try_compile "$LINENO"; then : 21230 ac_cv_header_stdc=yes 21231else 21232 ac_cv_header_stdc=no 21233fi 21234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21235 21236if test $ac_cv_header_stdc = yes; then 21237 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 21238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21239/* end confdefs.h. */ 21240#include <string.h> 21241 21242_ACEOF 21243if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21244 $EGREP "memchr" >/dev/null 2>&1; then : 21245 21246else 21247 ac_cv_header_stdc=no 21248fi 21249rm -f conftest* 21250 21251fi 21252 21253if test $ac_cv_header_stdc = yes; then 21254 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 21255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21256/* end confdefs.h. */ 21257#include <stdlib.h> 21258 21259_ACEOF 21260if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21261 $EGREP "free" >/dev/null 2>&1; then : 21262 21263else 21264 ac_cv_header_stdc=no 21265fi 21266rm -f conftest* 21267 21268fi 21269 21270if test $ac_cv_header_stdc = yes; then 21271 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 21272 if test "$cross_compiling" = yes; then : 21273 : 21274else 21275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21276/* end confdefs.h. */ 21277#include <ctype.h> 21278#include <stdlib.h> 21279#if ((' ' & 0x0FF) == 0x020) 21280# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 21281# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 21282#else 21283# define ISLOWER(c) \ 21284 (('a' <= (c) && (c) <= 'i') \ 21285 || ('j' <= (c) && (c) <= 'r') \ 21286 || ('s' <= (c) && (c) <= 'z')) 21287# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 21288#endif 21289 21290#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 21291int 21292main () 21293{ 21294 int i; 21295 for (i = 0; i < 256; i++) 21296 if (XOR (islower (i), ISLOWER (i)) 21297 || toupper (i) != TOUPPER (i)) 21298 return 2; 21299 return 0; 21300} 21301_ACEOF 21302if ac_fn_cxx_try_run "$LINENO"; then : 21303 21304else 21305 ac_cv_header_stdc=no 21306fi 21307rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21308 conftest.$ac_objext conftest.beam conftest.$ac_ext 21309fi 21310 21311fi 21312fi 21313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 21314$as_echo "$ac_cv_header_stdc" >&6; } 21315if test $ac_cv_header_stdc = yes; then 21316 21317$as_echo "#define STDC_HEADERS 1" >>confdefs.h 21318 21319fi 21320 21321for ac_header in libintl.h dirent.h 21322do : 21323 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 21324ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 21325if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 21326 cat >>confdefs.h <<_ACEOF 21327#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 21328_ACEOF 21329 21330fi 21331 21332done 21333 21334 21335# libtool option to control which symbols are exported 21336# right now, symbols starting with _ are not exported 21337LIBTOOL_EXPORT_OPTIONS= 21338 21339 21340# Extra args. 21341# Check whether --enable-debug was given. 21342if test "${enable_debug+set}" = set; then : 21343 enableval=$enable_debug; enable_debug=yes 21344else 21345 enable_debug=no 21346fi 21347 21348 21349if test "$enable_debug" = "yes"; then 21350 21351$as_echo "#define ENABLE_DEBUG 1" >>confdefs.h 21352 21353 CFLAGS="$CFLAGS -g" 21354 CXXFLAGS="$CXXFLAGS -g" 21355fi 21356 21357SCIM_ICONDIR=/usr/local/share/scim/icons 21358SCIM_MODULEDIR=/usr/local/lib/scim-1.0/1.4.0 21359SCIM_DATADIR=/usr/local/share/scim 21360SCIM_LIBEXECDIR=/usr/local/lib/scim-1.0 21361 21362if test "x$SCIM_ICONDIR" = "x"; then 21363 SCIM_ICONDIR=${datadir}/scim/icons 21364fi 21365 21366if test "x$SCIM_MODULEDIR" = "x"; then 21367 SCIM_MODULEDIR=${libdir}/scim-1.0 21368fi 21369 21370if test "x$SCIM_DATADIR" = "x"; then 21371 SCIM_DATADIR=${datadir}/scim 21372fi 21373 21374if test "x$SCIM_LIBEXECDIR" = "x"; then 21375 SCIM_LIBEXECDIR=${libdir}/scim-1.0 21376fi 21377 21378 21379 21380 21381 21382 21383SCIM_INPUT_PAD_DATADIR=$SCIM_DATADIR/input-pad 21384SCIM_INPUT_PAD_USER_DATADIR=/.scim/input-pad 21385 21386 21387 21388 21389ac_config_files="$ac_config_files Makefile intl/Makefile po/Makefile.in m4/Makefile data/Makefile data/scim-input-pad data/base.pad data/keyboard.pad data/japanese.pad data/chinese.pad data/korean.pad data/arabian.pad data/ethiopic.pad data/india_bengali.pad data/india_chiki.pad data/india_devanagari.pad data/india_gujarati.pad data/india_gurmukhi.pad data/india_kannada.pad data/india_lepcha.pad data/india_limbu.pad data/india_malayalam.pad data/india_oriya.pad data/india_saurashtra.pad data/india_sinhala.pad data/india_syloti_nagri.pad data/india_tamil.pad data/india_telugu.pad data/armenian.pad data/balinese.pad data/buginese.pad data/cham.pad data/georgian.pad data/hebrew.pad data/kaya.pad data/khmer.pad data/lao.pad data/myanmar.pad data/mongolian.pad data/philipine_buhid.pad data/philipine_hanunoo.pad data/philipine_tagalog.pad data/russian.pad data/tai_lue.pad data/rejang.pad data/sundanese.pad data/tai_le.pad data/thai.pad data/tibet.pad src/Makefile scim-input-pad.spec" 21390 21391cat >confcache <<\_ACEOF 21392# This file is a shell script that caches the results of configure 21393# tests run on this system so they can be shared between configure 21394# scripts and configure runs, see configure's option --config-cache. 21395# It is not useful on other systems. If it contains results you don't 21396# want to keep, you may remove or edit it. 21397# 21398# config.status only pays attention to the cache file if you give it 21399# the --recheck option to rerun configure. 21400# 21401# `ac_cv_env_foo' variables (set or unset) will be overridden when 21402# loading this file, other *unset* `ac_cv_foo' will be assigned the 21403# following values. 21404 21405_ACEOF 21406 21407# The following way of writing the cache mishandles newlines in values, 21408# but we know of no workaround that is simple, portable, and efficient. 21409# So, we kill variables containing newlines. 21410# Ultrix sh set writes to stderr and can't be redirected directly, 21411# and sets the high bit in the cache file unless we assign to the vars. 21412( 21413 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21414 eval ac_val=\$$ac_var 21415 case $ac_val in #( 21416 *${as_nl}*) 21417 case $ac_var in #( 21418 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 21419$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 21420 esac 21421 case $ac_var in #( 21422 _ | IFS | as_nl) ;; #( 21423 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 21424 *) { eval $ac_var=; unset $ac_var;} ;; 21425 esac ;; 21426 esac 21427 done 21428 21429 (set) 2>&1 | 21430 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21431 *${as_nl}ac_space=\ *) 21432 # `set' does not quote correctly, so add quotes: double-quote 21433 # substitution turns \\\\ into \\, and sed turns \\ into \. 21434 sed -n \ 21435 "s/'/'\\\\''/g; 21436 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21437 ;; #( 21438 *) 21439 # `set' quotes correctly as required by POSIX, so do not add quotes. 21440 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21441 ;; 21442 esac | 21443 sort 21444) | 21445 sed ' 21446 /^ac_cv_env_/b end 21447 t clear 21448 :clear 21449 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21450 t end 21451 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21452 :end' >>confcache 21453if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21454 if test -w "$cache_file"; then 21455 if test "x$cache_file" != "x/dev/null"; then 21456 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 21457$as_echo "$as_me: updating cache $cache_file" >&6;} 21458 if test ! -f "$cache_file" || test -h "$cache_file"; then 21459 cat confcache >"$cache_file" 21460 else 21461 case $cache_file in #( 21462 */* | ?:*) 21463 mv -f confcache "$cache_file"$$ && 21464 mv -f "$cache_file"$$ "$cache_file" ;; #( 21465 *) 21466 mv -f confcache "$cache_file" ;; 21467 esac 21468 fi 21469 fi 21470 else 21471 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 21472$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21473 fi 21474fi 21475rm -f confcache 21476 21477test "x$prefix" = xNONE && prefix=$ac_default_prefix 21478# Let make expand exec_prefix. 21479test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21480 21481DEFS=-DHAVE_CONFIG_H 21482 21483ac_libobjs= 21484ac_ltlibobjs= 21485U= 21486for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21487 # 1. Remove the extension, and $U if already installed. 21488 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21489 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 21490 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21491 # will be set to the directory where LIBOBJS objects are built. 21492 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21493 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 21494done 21495LIBOBJS=$ac_libobjs 21496 21497LTLIBOBJS=$ac_ltlibobjs 21498 21499 21500 if test -n "$EXEEXT"; then 21501 am__EXEEXT_TRUE= 21502 am__EXEEXT_FALSE='#' 21503else 21504 am__EXEEXT_TRUE='#' 21505 am__EXEEXT_FALSE= 21506fi 21507 21508if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21509 as_fn_error $? "conditional \"AMDEP\" was never defined. 21510Usually this means the macro was only invoked conditionally." "$LINENO" 5 21511fi 21512if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21513 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 21514Usually this means the macro was only invoked conditionally." "$LINENO" 5 21515fi 21516 21517 21518 mv -f po/POTFILES po/POTFILES.tmp 21519 sed -e '/\[encoding.*\]/d' -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES 21520 rm -f po/POTFILES.tmp 21521 21522 21523if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then 21524 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined. 21525Usually this means the macro was only invoked conditionally." "$LINENO" 5 21526fi 21527if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then 21528 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined. 21529Usually this means the macro was only invoked conditionally." "$LINENO" 5 21530fi 21531LT_CONFIG_H=config.h 21532 21533 _ltdl_libobjs= 21534 _ltdl_ltlibobjs= 21535 if test -n "$_LT_LIBOBJS"; then 21536 # Remove the extension. 21537 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//' 21538 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do 21539 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext" 21540 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo" 21541 done 21542 fi 21543 ltdl_LIBOBJS=$_ltdl_libobjs 21544 21545 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs 21546 21547 21548if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 21549 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 21550Usually this means the macro was only invoked conditionally." "$LINENO" 5 21551fi 21552if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 21553 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 21554Usually this means the macro was only invoked conditionally." "$LINENO" 5 21555fi 21556if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21557 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 21558Usually this means the macro was only invoked conditionally." "$LINENO" 5 21559fi 21560 21561: "${CONFIG_STATUS=./config.status}" 21562ac_write_fail=0 21563ac_clean_files_save=$ac_clean_files 21564ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21565{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 21566$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 21567as_write_fail=0 21568cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 21569#! $SHELL 21570# Generated by $as_me. 21571# Run this file to recreate the current configuration. 21572# Compiler output produced by configure, useful for debugging 21573# configure, is in config.log if it exists. 21574 21575debug=false 21576ac_cs_recheck=false 21577ac_cs_silent=false 21578 21579SHELL=\${CONFIG_SHELL-$SHELL} 21580export SHELL 21581_ASEOF 21582cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 21583## -------------------- ## 21584## M4sh Initialization. ## 21585## -------------------- ## 21586 21587# Be more Bourne compatible 21588DUALCASE=1; export DUALCASE # for MKS sh 21589if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 21590 emulate sh 21591 NULLCMD=: 21592 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21593 # is contrary to our usage. Disable this feature. 21594 alias -g '${1+"$@"}'='"$@"' 21595 setopt NO_GLOB_SUBST 21596else 21597 case `(set -o) 2>/dev/null` in #( 21598 *posix*) : 21599 set -o posix ;; #( 21600 *) : 21601 ;; 21602esac 21603fi 21604 21605 21606as_nl=' 21607' 21608export as_nl 21609# Printing a long string crashes Solaris 7 /usr/bin/printf. 21610as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 21611as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 21612as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 21613# Prefer a ksh shell builtin over an external printf program on Solaris, 21614# but without wasting forks for bash or zsh. 21615if test -z "$BASH_VERSION$ZSH_VERSION" \ 21616 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 21617 as_echo='print -r --' 21618 as_echo_n='print -rn --' 21619elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 21620 as_echo='printf %s\n' 21621 as_echo_n='printf %s' 21622else 21623 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 21624 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 21625 as_echo_n='/usr/ucb/echo -n' 21626 else 21627 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 21628 as_echo_n_body='eval 21629 arg=$1; 21630 case $arg in #( 21631 *"$as_nl"*) 21632 expr "X$arg" : "X\\(.*\\)$as_nl"; 21633 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 21634 esac; 21635 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 21636 ' 21637 export as_echo_n_body 21638 as_echo_n='sh -c $as_echo_n_body as_echo' 21639 fi 21640 export as_echo_body 21641 as_echo='sh -c $as_echo_body as_echo' 21642fi 21643 21644# The user is always right. 21645if test "${PATH_SEPARATOR+set}" != set; then 21646 PATH_SEPARATOR=: 21647 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 21648 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 21649 PATH_SEPARATOR=';' 21650 } 21651fi 21652 21653 21654# IFS 21655# We need space, tab and new line, in precisely that order. Quoting is 21656# there to prevent editors from complaining about space-tab. 21657# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21658# splitting by setting IFS to empty value.) 21659IFS=" "" $as_nl" 21660 21661# Find who we are. Look in the path if we contain no directory separator. 21662as_myself= 21663case $0 in #(( 21664 *[\\/]* ) as_myself=$0 ;; 21665 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21666for as_dir in $PATH 21667do 21668 IFS=$as_save_IFS 21669 test -z "$as_dir" && as_dir=. 21670 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21671 done 21672IFS=$as_save_IFS 21673 21674 ;; 21675esac 21676# We did not find ourselves, most probably we were run as `sh COMMAND' 21677# in which case we are not to be found in the path. 21678if test "x$as_myself" = x; then 21679 as_myself=$0 21680fi 21681if test ! -f "$as_myself"; then 21682 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21683 exit 1 21684fi 21685 21686# Unset variables that we do not need and which cause bugs (e.g. in 21687# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 21688# suppresses any "Segmentation fault" message there. '((' could 21689# trigger a bug in pdksh 5.2.14. 21690for as_var in BASH_ENV ENV MAIL MAILPATH 21691do eval test x\${$as_var+set} = xset \ 21692 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 21693done 21694PS1='$ ' 21695PS2='> ' 21696PS4='+ ' 21697 21698# NLS nuisances. 21699LC_ALL=C 21700export LC_ALL 21701LANGUAGE=C 21702export LANGUAGE 21703 21704# CDPATH. 21705(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21706 21707 21708# as_fn_error STATUS ERROR [LINENO LOG_FD] 21709# ---------------------------------------- 21710# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 21711# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 21712# script with STATUS, using 1 if that was 0. 21713as_fn_error () 21714{ 21715 as_status=$1; test $as_status -eq 0 && as_status=1 21716 if test "$4"; then 21717 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 21718 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 21719 fi 21720 $as_echo "$as_me: error: $2" >&2 21721 as_fn_exit $as_status 21722} # as_fn_error 21723 21724 21725# as_fn_set_status STATUS 21726# ----------------------- 21727# Set $? to STATUS, without forking. 21728as_fn_set_status () 21729{ 21730 return $1 21731} # as_fn_set_status 21732 21733# as_fn_exit STATUS 21734# ----------------- 21735# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 21736as_fn_exit () 21737{ 21738 set +e 21739 as_fn_set_status $1 21740 exit $1 21741} # as_fn_exit 21742 21743# as_fn_unset VAR 21744# --------------- 21745# Portably unset VAR. 21746as_fn_unset () 21747{ 21748 { eval $1=; unset $1;} 21749} 21750as_unset=as_fn_unset 21751# as_fn_append VAR VALUE 21752# ---------------------- 21753# Append the text in VALUE to the end of the definition contained in VAR. Take 21754# advantage of any shell optimizations that allow amortized linear growth over 21755# repeated appends, instead of the typical quadratic growth present in naive 21756# implementations. 21757if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 21758 eval 'as_fn_append () 21759 { 21760 eval $1+=\$2 21761 }' 21762else 21763 as_fn_append () 21764 { 21765 eval $1=\$$1\$2 21766 } 21767fi # as_fn_append 21768 21769# as_fn_arith ARG... 21770# ------------------ 21771# Perform arithmetic evaluation on the ARGs, and store the result in the 21772# global $as_val. Take advantage of shells that can avoid forks. The arguments 21773# must be portable across $(()) and expr. 21774if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 21775 eval 'as_fn_arith () 21776 { 21777 as_val=$(( $* )) 21778 }' 21779else 21780 as_fn_arith () 21781 { 21782 as_val=`expr "$@" || test $? -eq 1` 21783 } 21784fi # as_fn_arith 21785 21786 21787if expr a : '\(a\)' >/dev/null 2>&1 && 21788 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21789 as_expr=expr 21790else 21791 as_expr=false 21792fi 21793 21794if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21795 as_basename=basename 21796else 21797 as_basename=false 21798fi 21799 21800if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21801 as_dirname=dirname 21802else 21803 as_dirname=false 21804fi 21805 21806as_me=`$as_basename -- "$0" || 21807$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21808 X"$0" : 'X\(//\)$' \| \ 21809 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21810$as_echo X/"$0" | 21811 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21812 s//\1/ 21813 q 21814 } 21815 /^X\/\(\/\/\)$/{ 21816 s//\1/ 21817 q 21818 } 21819 /^X\/\(\/\).*/{ 21820 s//\1/ 21821 q 21822 } 21823 s/.*/./; q'` 21824 21825# Avoid depending upon Character Ranges. 21826as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21827as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21828as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21829as_cr_digits='0123456789' 21830as_cr_alnum=$as_cr_Letters$as_cr_digits 21831 21832ECHO_C= ECHO_N= ECHO_T= 21833case `echo -n x` in #((((( 21834-n*) 21835 case `echo 'xy\c'` in 21836 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21837 xy) ECHO_C='\c';; 21838 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 21839 ECHO_T=' ';; 21840 esac;; 21841*) 21842 ECHO_N='-n';; 21843esac 21844 21845rm -f conf$$ conf$$.exe conf$$.file 21846if test -d conf$$.dir; then 21847 rm -f conf$$.dir/conf$$.file 21848else 21849 rm -f conf$$.dir 21850 mkdir conf$$.dir 2>/dev/null 21851fi 21852if (echo >conf$$.file) 2>/dev/null; then 21853 if ln -s conf$$.file conf$$ 2>/dev/null; then 21854 as_ln_s='ln -s' 21855 # ... but there are two gotchas: 21856 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21857 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21858 # In both cases, we have to default to `cp -p'. 21859 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21860 as_ln_s='cp -p' 21861 elif ln conf$$.file conf$$ 2>/dev/null; then 21862 as_ln_s=ln 21863 else 21864 as_ln_s='cp -p' 21865 fi 21866else 21867 as_ln_s='cp -p' 21868fi 21869rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21870rmdir conf$$.dir 2>/dev/null 21871 21872 21873# as_fn_mkdir_p 21874# ------------- 21875# Create "$as_dir" as a directory, including parents if necessary. 21876as_fn_mkdir_p () 21877{ 21878 21879 case $as_dir in #( 21880 -*) as_dir=./$as_dir;; 21881 esac 21882 test -d "$as_dir" || eval $as_mkdir_p || { 21883 as_dirs= 21884 while :; do 21885 case $as_dir in #( 21886 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 21887 *) as_qdir=$as_dir;; 21888 esac 21889 as_dirs="'$as_qdir' $as_dirs" 21890 as_dir=`$as_dirname -- "$as_dir" || 21891$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21892 X"$as_dir" : 'X\(//\)[^/]' \| \ 21893 X"$as_dir" : 'X\(//\)$' \| \ 21894 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21895$as_echo X"$as_dir" | 21896 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21897 s//\1/ 21898 q 21899 } 21900 /^X\(\/\/\)[^/].*/{ 21901 s//\1/ 21902 q 21903 } 21904 /^X\(\/\/\)$/{ 21905 s//\1/ 21906 q 21907 } 21908 /^X\(\/\).*/{ 21909 s//\1/ 21910 q 21911 } 21912 s/.*/./; q'` 21913 test -d "$as_dir" && break 21914 done 21915 test -z "$as_dirs" || eval "mkdir $as_dirs" 21916 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 21917 21918 21919} # as_fn_mkdir_p 21920if mkdir -p . 2>/dev/null; then 21921 as_mkdir_p='mkdir -p "$as_dir"' 21922else 21923 test -d ./-p && rmdir ./-p 21924 as_mkdir_p=false 21925fi 21926 21927if test -x / >/dev/null 2>&1; then 21928 as_test_x='test -x' 21929else 21930 if ls -dL / >/dev/null 2>&1; then 21931 as_ls_L_option=L 21932 else 21933 as_ls_L_option= 21934 fi 21935 as_test_x=' 21936 eval sh -c '\'' 21937 if test -d "$1"; then 21938 test -d "$1/."; 21939 else 21940 case $1 in #( 21941 -*)set "./$1";; 21942 esac; 21943 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 21944 ???[sx]*):;;*)false;;esac;fi 21945 '\'' sh 21946 ' 21947fi 21948as_executable_p=$as_test_x 21949 21950# Sed expression to map a string onto a valid CPP name. 21951as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21952 21953# Sed expression to map a string onto a valid variable name. 21954as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21955 21956 21957exec 6>&1 21958## ----------------------------------- ## 21959## Main body of $CONFIG_STATUS script. ## 21960## ----------------------------------- ## 21961_ASEOF 21962test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 21963 21964cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21965# Save the log message, to keep $0 and so on meaningful, and to 21966# report actual input values of CONFIG_FILES etc. instead of their 21967# values after options handling. 21968ac_log=" 21969This file was extended by scim-input-pad $as_me 0.1.3.1, which was 21970generated by GNU Autoconf 2.68. Invocation command line was 21971 21972 CONFIG_FILES = $CONFIG_FILES 21973 CONFIG_HEADERS = $CONFIG_HEADERS 21974 CONFIG_LINKS = $CONFIG_LINKS 21975 CONFIG_COMMANDS = $CONFIG_COMMANDS 21976 $ $0 $@ 21977 21978on `(hostname || uname -n) 2>/dev/null | sed 1q` 21979" 21980 21981_ACEOF 21982 21983case $ac_config_files in *" 21984"*) set x $ac_config_files; shift; ac_config_files=$*;; 21985esac 21986 21987case $ac_config_headers in *" 21988"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 21989esac 21990 21991 21992cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21993# Files that config.status was made for. 21994config_files="$ac_config_files" 21995config_headers="$ac_config_headers" 21996config_commands="$ac_config_commands" 21997 21998_ACEOF 21999 22000cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22001ac_cs_usage="\ 22002\`$as_me' instantiates files and other configuration actions 22003from templates according to the current configuration. Unless the files 22004and actions are specified as TAGs, all are instantiated by default. 22005 22006Usage: $0 [OPTION]... [TAG]... 22007 22008 -h, --help print this help, then exit 22009 -V, --version print version number and configuration settings, then exit 22010 --config print configuration, then exit 22011 -q, --quiet, --silent 22012 do not print progress messages 22013 -d, --debug don't remove temporary files 22014 --recheck update $as_me by reconfiguring in the same conditions 22015 --file=FILE[:TEMPLATE] 22016 instantiate the configuration file FILE 22017 --header=FILE[:TEMPLATE] 22018 instantiate the configuration header FILE 22019 22020Configuration files: 22021$config_files 22022 22023Configuration headers: 22024$config_headers 22025 22026Configuration commands: 22027$config_commands 22028 22029Report bugs to <suzhe@tsinghua.org.cn>." 22030 22031_ACEOF 22032cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22033ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 22034ac_cs_version="\\ 22035scim-input-pad config.status 0.1.3.1 22036configured by $0, generated by GNU Autoconf 2.68, 22037 with options \\"\$ac_cs_config\\" 22038 22039Copyright (C) 2010 Free Software Foundation, Inc. 22040This config.status script is free software; the Free Software Foundation 22041gives unlimited permission to copy, distribute and modify it." 22042 22043ac_pwd='$ac_pwd' 22044srcdir='$srcdir' 22045INSTALL='$INSTALL' 22046MKDIR_P='$MKDIR_P' 22047AWK='$AWK' 22048test -n "\$AWK" || AWK=awk 22049_ACEOF 22050 22051cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22052# The default lists apply if the user does not specify any file. 22053ac_need_defaults=: 22054while test $# != 0 22055do 22056 case $1 in 22057 --*=?*) 22058 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22059 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22060 ac_shift=: 22061 ;; 22062 --*=) 22063 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22064 ac_optarg= 22065 ac_shift=: 22066 ;; 22067 *) 22068 ac_option=$1 22069 ac_optarg=$2 22070 ac_shift=shift 22071 ;; 22072 esac 22073 22074 case $ac_option in 22075 # Handling of the options. 22076 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22077 ac_cs_recheck=: ;; 22078 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22079 $as_echo "$ac_cs_version"; exit ;; 22080 --config | --confi | --conf | --con | --co | --c ) 22081 $as_echo "$ac_cs_config"; exit ;; 22082 --debug | --debu | --deb | --de | --d | -d ) 22083 debug=: ;; 22084 --file | --fil | --fi | --f ) 22085 $ac_shift 22086 case $ac_optarg in 22087 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22088 '') as_fn_error $? "missing file argument" ;; 22089 esac 22090 as_fn_append CONFIG_FILES " '$ac_optarg'" 22091 ac_need_defaults=false;; 22092 --header | --heade | --head | --hea ) 22093 $ac_shift 22094 case $ac_optarg in 22095 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22096 esac 22097 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 22098 ac_need_defaults=false;; 22099 --he | --h) 22100 # Conflict between --help and --header 22101 as_fn_error $? "ambiguous option: \`$1' 22102Try \`$0 --help' for more information.";; 22103 --help | --hel | -h ) 22104 $as_echo "$ac_cs_usage"; exit ;; 22105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22106 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22107 ac_cs_silent=: ;; 22108 22109 # This is an error. 22110 -*) as_fn_error $? "unrecognized option: \`$1' 22111Try \`$0 --help' for more information." ;; 22112 22113 *) as_fn_append ac_config_targets " $1" 22114 ac_need_defaults=false ;; 22115 22116 esac 22117 shift 22118done 22119 22120ac_configure_extra_args= 22121 22122if $ac_cs_silent; then 22123 exec 6>/dev/null 22124 ac_configure_extra_args="$ac_configure_extra_args --silent" 22125fi 22126 22127_ACEOF 22128cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22129if \$ac_cs_recheck; then 22130 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22131 shift 22132 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 22133 CONFIG_SHELL='$SHELL' 22134 export CONFIG_SHELL 22135 exec "\$@" 22136fi 22137 22138_ACEOF 22139cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22140exec 5>>config.log 22141{ 22142 echo 22143 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22144## Running $as_me. ## 22145_ASBOX 22146 $as_echo "$ac_log" 22147} >&5 22148 22149_ACEOF 22150cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22151# 22152# INIT-COMMANDS 22153# 22154# Capture the value of obsolete ALL_LINGUAS because we need it to compute 22155 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it 22156 # from automake. 22157 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 22158 # Capture the value of LINGUAS because we need it to compute CATALOGS. 22159 LINGUAS="${LINGUAS-%UNSET%}" 22160 22161AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 22162INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir=${ac_aux_dir} 22163INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}' ICONV='${INTLTOOL_ICONV}' 22164MSGFMT='${INTLTOOL_MSGFMT}' MSGMERGE='${INTLTOOL_MSGMERGE}' 22165XGETTEXT='${INTLTOOL_XGETTEXT}' 22166 22167 22168# The HP-UX ksh and POSIX shell print the target directory to stdout 22169# if CDPATH is set. 22170(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 22171 22172sed_quote_subst='$sed_quote_subst' 22173double_quote_subst='$double_quote_subst' 22174delay_variable_subst='$delay_variable_subst' 22175AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`' 22176DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`' 22177OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' 22178macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 22179macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 22180enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 22181enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 22182pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 22183enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 22184host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 22185host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 22186host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 22187build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 22188build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 22189build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 22190SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 22191Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 22192GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 22193EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 22194FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 22195LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 22196NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 22197LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 22198max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 22199ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 22200exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 22201lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 22202lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 22203lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 22204reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 22205reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22206deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 22207file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 22208AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 22209AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 22210STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 22211RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 22212old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22213old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22214old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22215CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 22216CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 22217compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 22218GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 22219lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 22220lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 22221lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' 22222lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 22223objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 22224SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 22225ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 22226MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 22227lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 22228lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 22229lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 22230lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 22231lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 22232need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 22233DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 22234NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 22235LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 22236OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 22237OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 22238libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 22239shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22240extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22241archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 22242enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 22243export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 22244whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 22245compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 22246old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22247old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22248archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22249archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22250module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22251module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22252with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 22253allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 22254no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 22255hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 22256hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 22257hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 22258hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 22259hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 22260hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 22261hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 22262hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 22263inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 22264link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 22265fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 22266always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 22267export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22268exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 22269include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 22270prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22271file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 22272variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 22273need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 22274need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 22275version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 22276runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 22277shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 22278shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 22279libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 22280library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 22281soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 22282postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22283postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22284finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 22285finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 22286hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 22287sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 22288sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 22289hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 22290enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 22291enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 22292enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 22293old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 22294striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 22295compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' 22296predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' 22297postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' 22298predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' 22299postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' 22300compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' 22301LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22302old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22303compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22304GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22305lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22306lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22307lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22308lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22309lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22310archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22311enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22312export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22313whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22314compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22315old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22316old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22317archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22318archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22319module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22320module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22321with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22322allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22323no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22324hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22325hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22326hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22327hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22328hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22329hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22330hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22331hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22332inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22333link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22334fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22335always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22336export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22337exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22338include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22339prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22340file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22341hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22342compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22343predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22344postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22345predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22346postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22347compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' 22348 22349LTCC='$LTCC' 22350LTCFLAGS='$LTCFLAGS' 22351compiler='$compiler_DEFAULT' 22352 22353# Quote evaled strings. 22354for var in SED \ 22355GREP \ 22356EGREP \ 22357FGREP \ 22358LD \ 22359NM \ 22360LN_S \ 22361lt_SP2NL \ 22362lt_NL2SP \ 22363reload_flag \ 22364deplibs_check_method \ 22365file_magic_cmd \ 22366AR \ 22367AR_FLAGS \ 22368STRIP \ 22369RANLIB \ 22370CC \ 22371CFLAGS \ 22372compiler \ 22373lt_cv_sys_global_symbol_pipe \ 22374lt_cv_sys_global_symbol_to_cdecl \ 22375lt_cv_sys_global_symbol_to_c_name_address \ 22376lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 22377SHELL \ 22378ECHO \ 22379lt_prog_compiler_no_builtin_flag \ 22380lt_prog_compiler_wl \ 22381lt_prog_compiler_pic \ 22382lt_prog_compiler_static \ 22383lt_cv_prog_compiler_c_o \ 22384need_locks \ 22385DSYMUTIL \ 22386NMEDIT \ 22387LIPO \ 22388OTOOL \ 22389OTOOL64 \ 22390shrext_cmds \ 22391export_dynamic_flag_spec \ 22392whole_archive_flag_spec \ 22393compiler_needs_object \ 22394with_gnu_ld \ 22395allow_undefined_flag \ 22396no_undefined_flag \ 22397hardcode_libdir_flag_spec \ 22398hardcode_libdir_flag_spec_ld \ 22399hardcode_libdir_separator \ 22400fix_srcfile_path \ 22401exclude_expsyms \ 22402include_expsyms \ 22403file_list_spec \ 22404variables_saved_for_relink \ 22405libname_spec \ 22406library_names_spec \ 22407soname_spec \ 22408finish_eval \ 22409old_striplib \ 22410striplib \ 22411compiler_lib_search_dirs \ 22412predep_objects \ 22413postdep_objects \ 22414predeps \ 22415postdeps \ 22416compiler_lib_search_path \ 22417LD_CXX \ 22418compiler_CXX \ 22419lt_prog_compiler_no_builtin_flag_CXX \ 22420lt_prog_compiler_wl_CXX \ 22421lt_prog_compiler_pic_CXX \ 22422lt_prog_compiler_static_CXX \ 22423lt_cv_prog_compiler_c_o_CXX \ 22424export_dynamic_flag_spec_CXX \ 22425whole_archive_flag_spec_CXX \ 22426compiler_needs_object_CXX \ 22427with_gnu_ld_CXX \ 22428allow_undefined_flag_CXX \ 22429no_undefined_flag_CXX \ 22430hardcode_libdir_flag_spec_CXX \ 22431hardcode_libdir_flag_spec_ld_CXX \ 22432hardcode_libdir_separator_CXX \ 22433fix_srcfile_path_CXX \ 22434exclude_expsyms_CXX \ 22435include_expsyms_CXX \ 22436file_list_spec_CXX \ 22437compiler_lib_search_dirs_CXX \ 22438predep_objects_CXX \ 22439postdep_objects_CXX \ 22440predeps_CXX \ 22441postdeps_CXX \ 22442compiler_lib_search_path_CXX; do 22443 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 22444 *[\\\\\\\`\\"\\\$]*) 22445 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 22446 ;; 22447 *) 22448 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22449 ;; 22450 esac 22451done 22452 22453# Double-quote double-evaled strings. 22454for var in reload_cmds \ 22455old_postinstall_cmds \ 22456old_postuninstall_cmds \ 22457old_archive_cmds \ 22458extract_expsyms_cmds \ 22459old_archive_from_new_cmds \ 22460old_archive_from_expsyms_cmds \ 22461archive_cmds \ 22462archive_expsym_cmds \ 22463module_cmds \ 22464module_expsym_cmds \ 22465export_symbols_cmds \ 22466prelink_cmds \ 22467postinstall_cmds \ 22468postuninstall_cmds \ 22469finish_cmds \ 22470sys_lib_search_path_spec \ 22471sys_lib_dlsearch_path_spec \ 22472old_archive_cmds_CXX \ 22473old_archive_from_new_cmds_CXX \ 22474old_archive_from_expsyms_cmds_CXX \ 22475archive_cmds_CXX \ 22476archive_expsym_cmds_CXX \ 22477module_cmds_CXX \ 22478module_expsym_cmds_CXX \ 22479export_symbols_cmds_CXX \ 22480prelink_cmds_CXX; do 22481 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 22482 *[\\\\\\\`\\"\\\$]*) 22483 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 22484 ;; 22485 *) 22486 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22487 ;; 22488 esac 22489done 22490 22491# Fix-up fallback echo if it was mangled by the above quoting rules. 22492case \$lt_ECHO in 22493*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 22494 ;; 22495esac 22496 22497ac_aux_dir='$ac_aux_dir' 22498xsi_shell='$xsi_shell' 22499lt_shell_append='$lt_shell_append' 22500 22501# See if we are running on zsh, and set the options which allow our 22502# commands through without removal of \ escapes INIT. 22503if test -n "\${ZSH_VERSION+set}" ; then 22504 setopt NO_GLOB_SUBST 22505fi 22506 22507 22508 PACKAGE='$PACKAGE' 22509 VERSION='$VERSION' 22510 TIMESTAMP='$TIMESTAMP' 22511 RM='$RM' 22512 ofile='$ofile' 22513 22514 22515 22516 22517 22518 22519_ACEOF 22520 22521cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22522 22523# Handling of arguments. 22524for ac_config_target in $ac_config_targets 22525do 22526 case $ac_config_target in 22527 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 22528 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 22529 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22530 "intltool") CONFIG_COMMANDS="$CONFIG_COMMANDS intltool" ;; 22531 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 22532 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22533 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;; 22534 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 22535 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; 22536 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;; 22537 "data/scim-input-pad") CONFIG_FILES="$CONFIG_FILES data/scim-input-pad" ;; 22538 "data/base.pad") CONFIG_FILES="$CONFIG_FILES data/base.pad" ;; 22539 "data/keyboard.pad") CONFIG_FILES="$CONFIG_FILES data/keyboard.pad" ;; 22540 "data/japanese.pad") CONFIG_FILES="$CONFIG_FILES data/japanese.pad" ;; 22541 "data/chinese.pad") CONFIG_FILES="$CONFIG_FILES data/chinese.pad" ;; 22542 "data/korean.pad") CONFIG_FILES="$CONFIG_FILES data/korean.pad" ;; 22543 "data/arabian.pad") CONFIG_FILES="$CONFIG_FILES data/arabian.pad" ;; 22544 "data/ethiopic.pad") CONFIG_FILES="$CONFIG_FILES data/ethiopic.pad" ;; 22545 "data/india_bengali.pad") CONFIG_FILES="$CONFIG_FILES data/india_bengali.pad" ;; 22546 "data/india_chiki.pad") CONFIG_FILES="$CONFIG_FILES data/india_chiki.pad" ;; 22547 "data/india_devanagari.pad") CONFIG_FILES="$CONFIG_FILES data/india_devanagari.pad" ;; 22548 "data/india_gujarati.pad") CONFIG_FILES="$CONFIG_FILES data/india_gujarati.pad" ;; 22549 "data/india_gurmukhi.pad") CONFIG_FILES="$CONFIG_FILES data/india_gurmukhi.pad" ;; 22550 "data/india_kannada.pad") CONFIG_FILES="$CONFIG_FILES data/india_kannada.pad" ;; 22551 "data/india_lepcha.pad") CONFIG_FILES="$CONFIG_FILES data/india_lepcha.pad" ;; 22552 "data/india_limbu.pad") CONFIG_FILES="$CONFIG_FILES data/india_limbu.pad" ;; 22553 "data/india_malayalam.pad") CONFIG_FILES="$CONFIG_FILES data/india_malayalam.pad" ;; 22554 "data/india_oriya.pad") CONFIG_FILES="$CONFIG_FILES data/india_oriya.pad" ;; 22555 "data/india_saurashtra.pad") CONFIG_FILES="$CONFIG_FILES data/india_saurashtra.pad" ;; 22556 "data/india_sinhala.pad") CONFIG_FILES="$CONFIG_FILES data/india_sinhala.pad" ;; 22557 "data/india_syloti_nagri.pad") CONFIG_FILES="$CONFIG_FILES data/india_syloti_nagri.pad" ;; 22558 "data/india_tamil.pad") CONFIG_FILES="$CONFIG_FILES data/india_tamil.pad" ;; 22559 "data/india_telugu.pad") CONFIG_FILES="$CONFIG_FILES data/india_telugu.pad" ;; 22560 "data/armenian.pad") CONFIG_FILES="$CONFIG_FILES data/armenian.pad" ;; 22561 "data/balinese.pad") CONFIG_FILES="$CONFIG_FILES data/balinese.pad" ;; 22562 "data/buginese.pad") CONFIG_FILES="$CONFIG_FILES data/buginese.pad" ;; 22563 "data/cham.pad") CONFIG_FILES="$CONFIG_FILES data/cham.pad" ;; 22564 "data/georgian.pad") CONFIG_FILES="$CONFIG_FILES data/georgian.pad" ;; 22565 "data/hebrew.pad") CONFIG_FILES="$CONFIG_FILES data/hebrew.pad" ;; 22566 "data/kaya.pad") CONFIG_FILES="$CONFIG_FILES data/kaya.pad" ;; 22567 "data/khmer.pad") CONFIG_FILES="$CONFIG_FILES data/khmer.pad" ;; 22568 "data/lao.pad") CONFIG_FILES="$CONFIG_FILES data/lao.pad" ;; 22569 "data/myanmar.pad") CONFIG_FILES="$CONFIG_FILES data/myanmar.pad" ;; 22570 "data/mongolian.pad") CONFIG_FILES="$CONFIG_FILES data/mongolian.pad" ;; 22571 "data/philipine_buhid.pad") CONFIG_FILES="$CONFIG_FILES data/philipine_buhid.pad" ;; 22572 "data/philipine_hanunoo.pad") CONFIG_FILES="$CONFIG_FILES data/philipine_hanunoo.pad" ;; 22573 "data/philipine_tagalog.pad") CONFIG_FILES="$CONFIG_FILES data/philipine_tagalog.pad" ;; 22574 "data/russian.pad") CONFIG_FILES="$CONFIG_FILES data/russian.pad" ;; 22575 "data/tai_lue.pad") CONFIG_FILES="$CONFIG_FILES data/tai_lue.pad" ;; 22576 "data/rejang.pad") CONFIG_FILES="$CONFIG_FILES data/rejang.pad" ;; 22577 "data/sundanese.pad") CONFIG_FILES="$CONFIG_FILES data/sundanese.pad" ;; 22578 "data/tai_le.pad") CONFIG_FILES="$CONFIG_FILES data/tai_le.pad" ;; 22579 "data/thai.pad") CONFIG_FILES="$CONFIG_FILES data/thai.pad" ;; 22580 "data/tibet.pad") CONFIG_FILES="$CONFIG_FILES data/tibet.pad" ;; 22581 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 22582 "scim-input-pad.spec") CONFIG_FILES="$CONFIG_FILES scim-input-pad.spec" ;; 22583 22584 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 22585 esac 22586done 22587 22588 22589# If the user did not use the arguments to specify the items to instantiate, 22590# then the envvar interface is used. Set only those that are not. 22591# We use the long form for the default assignment because of an extremely 22592# bizarre bug on SunOS 4.1.3. 22593if $ac_need_defaults; then 22594 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22595 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22596 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22597fi 22598 22599# Have a temporary directory for convenience. Make it in the build tree 22600# simply because there is no reason against having it here, and in addition, 22601# creating and moving files from /tmp can sometimes cause problems. 22602# Hook for its removal unless debugging. 22603# Note that there is a small window in which the directory will not be cleaned: 22604# after its creation but before its name has been assigned to `$tmp'. 22605$debug || 22606{ 22607 tmp= ac_tmp= 22608 trap 'exit_status=$? 22609 : "${ac_tmp:=$tmp}" 22610 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 22611' 0 22612 trap 'as_fn_exit 1' 1 2 13 15 22613} 22614# Create a (secure) tmp directory for tmp files. 22615 22616{ 22617 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22618 test -d "$tmp" 22619} || 22620{ 22621 tmp=./conf$$-$RANDOM 22622 (umask 077 && mkdir "$tmp") 22623} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 22624ac_tmp=$tmp 22625 22626# Set up the scripts for CONFIG_FILES section. 22627# No need to generate them if there are no CONFIG_FILES. 22628# This happens for instance with `./config.status config.h'. 22629if test -n "$CONFIG_FILES"; then 22630 22631 22632ac_cr=`echo X | tr X '\015'` 22633# On cygwin, bash can eat \r inside `` if the user requested igncr. 22634# But we know of no other shell where ac_cr would be empty at this 22635# point, so we can use a bashism as a fallback. 22636if test "x$ac_cr" = x; then 22637 eval ac_cr=\$\'\\r\' 22638fi 22639ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 22640if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 22641 ac_cs_awk_cr='\\r' 22642else 22643 ac_cs_awk_cr=$ac_cr 22644fi 22645 22646echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 22647_ACEOF 22648 22649 22650{ 22651 echo "cat >conf$$subs.awk <<_ACEOF" && 22652 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 22653 echo "_ACEOF" 22654} >conf$$subs.sh || 22655 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22656ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 22657ac_delim='%!_!# ' 22658for ac_last_try in false false false false false :; do 22659 . ./conf$$subs.sh || 22660 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22661 22662 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 22663 if test $ac_delim_n = $ac_delim_num; then 22664 break 22665 elif $ac_last_try; then 22666 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22667 else 22668 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22669 fi 22670done 22671rm -f conf$$subs.sh 22672 22673cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22674cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 22675_ACEOF 22676sed -n ' 22677h 22678s/^/S["/; s/!.*/"]=/ 22679p 22680g 22681s/^[^!]*!// 22682:repl 22683t repl 22684s/'"$ac_delim"'$// 22685t delim 22686:nl 22687h 22688s/\(.\{148\}\)..*/\1/ 22689t more1 22690s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 22691p 22692n 22693b repl 22694:more1 22695s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22696p 22697g 22698s/.\{148\}// 22699t nl 22700:delim 22701h 22702s/\(.\{148\}\)..*/\1/ 22703t more2 22704s/["\\]/\\&/g; s/^/"/; s/$/"/ 22705p 22706b 22707:more2 22708s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22709p 22710g 22711s/.\{148\}// 22712t delim 22713' <conf$$subs.awk | sed ' 22714/^[^""]/{ 22715 N 22716 s/\n// 22717} 22718' >>$CONFIG_STATUS || ac_write_fail=1 22719rm -f conf$$subs.awk 22720cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22721_ACAWK 22722cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 22723 for (key in S) S_is_set[key] = 1 22724 FS = "" 22725 22726} 22727{ 22728 line = $ 0 22729 nfields = split(line, field, "@") 22730 substed = 0 22731 len = length(field[1]) 22732 for (i = 2; i < nfields; i++) { 22733 key = field[i] 22734 keylen = length(key) 22735 if (S_is_set[key]) { 22736 value = S[key] 22737 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 22738 len += length(value) + length(field[++i]) 22739 substed = 1 22740 } else 22741 len += 1 + keylen 22742 } 22743 22744 print line 22745} 22746 22747_ACAWK 22748_ACEOF 22749cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22750if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 22751 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 22752else 22753 cat 22754fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 22755 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 22756_ACEOF 22757 22758# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 22759# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 22760# trailing colons and then remove the whole line if VPATH becomes empty 22761# (actually we leave an empty line to preserve line numbers). 22762if test "x$srcdir" = x.; then 22763 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 22764h 22765s/// 22766s/^/:/ 22767s/[ ]*$/:/ 22768s/:\$(srcdir):/:/g 22769s/:\${srcdir}:/:/g 22770s/:@srcdir@:/:/g 22771s/^:*// 22772s/:*$// 22773x 22774s/\(=[ ]*\).*/\1/ 22775G 22776s/\n// 22777s/^[^=]*=[ ]*$// 22778}' 22779fi 22780 22781cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22782fi # test -n "$CONFIG_FILES" 22783 22784# Set up the scripts for CONFIG_HEADERS section. 22785# No need to generate them if there are no CONFIG_HEADERS. 22786# This happens for instance with `./config.status Makefile'. 22787if test -n "$CONFIG_HEADERS"; then 22788cat >"$ac_tmp/defines.awk" <<\_ACAWK || 22789BEGIN { 22790_ACEOF 22791 22792# Transform confdefs.h into an awk script `defines.awk', embedded as 22793# here-document in config.status, that substitutes the proper values into 22794# config.h.in to produce config.h. 22795 22796# Create a delimiter string that does not exist in confdefs.h, to ease 22797# handling of long lines. 22798ac_delim='%!_!# ' 22799for ac_last_try in false false :; do 22800 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 22801 if test -z "$ac_tt"; then 22802 break 22803 elif $ac_last_try; then 22804 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 22805 else 22806 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22807 fi 22808done 22809 22810# For the awk script, D is an array of macro values keyed by name, 22811# likewise P contains macro parameters if any. Preserve backslash 22812# newline sequences. 22813 22814ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22815sed -n ' 22816s/.\{148\}/&'"$ac_delim"'/g 22817t rset 22818:rset 22819s/^[ ]*#[ ]*define[ ][ ]*/ / 22820t def 22821d 22822:def 22823s/\\$// 22824t bsnl 22825s/["\\]/\\&/g 22826s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22827D["\1"]=" \3"/p 22828s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 22829d 22830:bsnl 22831s/["\\]/\\&/g 22832s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22833D["\1"]=" \3\\\\\\n"\\/p 22834t cont 22835s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 22836t cont 22837d 22838:cont 22839n 22840s/.\{148\}/&'"$ac_delim"'/g 22841t clear 22842:clear 22843s/\\$// 22844t bsnlc 22845s/["\\]/\\&/g; s/^/"/; s/$/"/p 22846d 22847:bsnlc 22848s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 22849b cont 22850' <confdefs.h | sed ' 22851s/'"$ac_delim"'/"\\\ 22852"/g' >>$CONFIG_STATUS || ac_write_fail=1 22853 22854cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22855 for (key in D) D_is_set[key] = 1 22856 FS = "" 22857} 22858/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 22859 line = \$ 0 22860 split(line, arg, " ") 22861 if (arg[1] == "#") { 22862 defundef = arg[2] 22863 mac1 = arg[3] 22864 } else { 22865 defundef = substr(arg[1], 2) 22866 mac1 = arg[2] 22867 } 22868 split(mac1, mac2, "(") #) 22869 macro = mac2[1] 22870 prefix = substr(line, 1, index(line, defundef) - 1) 22871 if (D_is_set[macro]) { 22872 # Preserve the white space surrounding the "#". 22873 print prefix "define", macro P[macro] D[macro] 22874 next 22875 } else { 22876 # Replace #undef with comments. This is necessary, for example, 22877 # in the case of _POSIX_SOURCE, which is predefined and required 22878 # on some systems where configure will not decide to define it. 22879 if (defundef == "undef") { 22880 print "/*", prefix defundef, macro, "*/" 22881 next 22882 } 22883 } 22884} 22885{ print } 22886_ACAWK 22887_ACEOF 22888cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22889 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 22890fi # test -n "$CONFIG_HEADERS" 22891 22892 22893eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 22894shift 22895for ac_tag 22896do 22897 case $ac_tag in 22898 :[FHLC]) ac_mode=$ac_tag; continue;; 22899 esac 22900 case $ac_mode$ac_tag in 22901 :[FHL]*:*);; 22902 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 22903 :[FH]-) ac_tag=-:-;; 22904 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22905 esac 22906 ac_save_IFS=$IFS 22907 IFS=: 22908 set x $ac_tag 22909 IFS=$ac_save_IFS 22910 shift 22911 ac_file=$1 22912 shift 22913 22914 case $ac_mode in 22915 :L) ac_source=$1;; 22916 :[FH]) 22917 ac_file_inputs= 22918 for ac_f 22919 do 22920 case $ac_f in 22921 -) ac_f="$ac_tmp/stdin";; 22922 *) # Look for the file first in the build tree, then in the source tree 22923 # (if the path is not absolute). The absolute path cannot be DOS-style, 22924 # because $ac_f cannot contain `:'. 22925 test -f "$ac_f" || 22926 case $ac_f in 22927 [\\/$]*) false;; 22928 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22929 esac || 22930 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 22931 esac 22932 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 22933 as_fn_append ac_file_inputs " '$ac_f'" 22934 done 22935 22936 # Let's still pretend it is `configure' which instantiates (i.e., don't 22937 # use $as_me), people would be surprised to read: 22938 # /* config.h. Generated by config.status. */ 22939 configure_input='Generated from '` 22940 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 22941 `' by configure.' 22942 if test x"$ac_file" != x-; then 22943 configure_input="$ac_file. $configure_input" 22944 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 22945$as_echo "$as_me: creating $ac_file" >&6;} 22946 fi 22947 # Neutralize special characters interpreted by sed in replacement strings. 22948 case $configure_input in #( 22949 *\&* | *\|* | *\\* ) 22950 ac_sed_conf_input=`$as_echo "$configure_input" | 22951 sed 's/[\\\\&|]/\\\\&/g'`;; #( 22952 *) ac_sed_conf_input=$configure_input;; 22953 esac 22954 22955 case $ac_tag in 22956 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 22957 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 22958 esac 22959 ;; 22960 esac 22961 22962 ac_dir=`$as_dirname -- "$ac_file" || 22963$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22964 X"$ac_file" : 'X\(//\)[^/]' \| \ 22965 X"$ac_file" : 'X\(//\)$' \| \ 22966 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22967$as_echo X"$ac_file" | 22968 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22969 s//\1/ 22970 q 22971 } 22972 /^X\(\/\/\)[^/].*/{ 22973 s//\1/ 22974 q 22975 } 22976 /^X\(\/\/\)$/{ 22977 s//\1/ 22978 q 22979 } 22980 /^X\(\/\).*/{ 22981 s//\1/ 22982 q 22983 } 22984 s/.*/./; q'` 22985 as_dir="$ac_dir"; as_fn_mkdir_p 22986 ac_builddir=. 22987 22988case "$ac_dir" in 22989.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22990*) 22991 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 22992 # A ".." for each directory in $ac_dir_suffix. 22993 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 22994 case $ac_top_builddir_sub in 22995 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22996 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22997 esac ;; 22998esac 22999ac_abs_top_builddir=$ac_pwd 23000ac_abs_builddir=$ac_pwd$ac_dir_suffix 23001# for backward compatibility: 23002ac_top_builddir=$ac_top_build_prefix 23003 23004case $srcdir in 23005 .) # We are building in place. 23006 ac_srcdir=. 23007 ac_top_srcdir=$ac_top_builddir_sub 23008 ac_abs_top_srcdir=$ac_pwd ;; 23009 [\\/]* | ?:[\\/]* ) # Absolute name. 23010 ac_srcdir=$srcdir$ac_dir_suffix; 23011 ac_top_srcdir=$srcdir 23012 ac_abs_top_srcdir=$srcdir ;; 23013 *) # Relative name. 23014 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23015 ac_top_srcdir=$ac_top_build_prefix$srcdir 23016 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23017esac 23018ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23019 23020 23021 case $ac_mode in 23022 :F) 23023 # 23024 # CONFIG_FILE 23025 # 23026 23027 case $INSTALL in 23028 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23029 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 23030 esac 23031 ac_MKDIR_P=$MKDIR_P 23032 case $MKDIR_P in 23033 [\\/$]* | ?:[\\/]* ) ;; 23034 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 23035 esac 23036_ACEOF 23037 23038cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23039# If the template does not know about datarootdir, expand it. 23040# FIXME: This hack should be removed a few years after 2.60. 23041ac_datarootdir_hack=; ac_datarootdir_seen= 23042ac_sed_dataroot=' 23043/datarootdir/ { 23044 p 23045 q 23046} 23047/@datadir@/p 23048/@docdir@/p 23049/@infodir@/p 23050/@localedir@/p 23051/@mandir@/p' 23052case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 23053*datarootdir*) ac_datarootdir_seen=yes;; 23054*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23056$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23057_ACEOF 23058cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23059 ac_datarootdir_hack=' 23060 s&@datadir@&$datadir&g 23061 s&@docdir@&$docdir&g 23062 s&@infodir@&$infodir&g 23063 s&@localedir@&$localedir&g 23064 s&@mandir@&$mandir&g 23065 s&\\\${datarootdir}&$datarootdir&g' ;; 23066esac 23067_ACEOF 23068 23069# Neutralize VPATH when `$srcdir' = `.'. 23070# Shell code in configure.ac might set extrasub. 23071# FIXME: do we really want to maintain this feature? 23072cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23073ac_sed_extra="$ac_vpsub 23074$extrasub 23075_ACEOF 23076cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23077:t 23078/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23079s|@configure_input@|$ac_sed_conf_input|;t t 23080s&@top_builddir@&$ac_top_builddir_sub&;t t 23081s&@top_build_prefix@&$ac_top_build_prefix&;t t 23082s&@srcdir@&$ac_srcdir&;t t 23083s&@abs_srcdir@&$ac_abs_srcdir&;t t 23084s&@top_srcdir@&$ac_top_srcdir&;t t 23085s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23086s&@builddir@&$ac_builddir&;t t 23087s&@abs_builddir@&$ac_abs_builddir&;t t 23088s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23089s&@INSTALL@&$ac_INSTALL&;t t 23090s&@MKDIR_P@&$ac_MKDIR_P&;t t 23091$ac_datarootdir_hack 23092" 23093eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 23094 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23095 23096test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23097 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 23098 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 23099 "$ac_tmp/out"`; test -z "$ac_out"; } && 23100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23101which seems to be undefined. Please make sure it is defined" >&5 23102$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23103which seems to be undefined. Please make sure it is defined" >&2;} 23104 23105 rm -f "$ac_tmp/stdin" 23106 case $ac_file in 23107 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 23108 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 23109 esac \ 23110 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23111 ;; 23112 :H) 23113 # 23114 # CONFIG_HEADER 23115 # 23116 if test x"$ac_file" != x-; then 23117 { 23118 $as_echo "/* $configure_input */" \ 23119 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 23120 } >"$ac_tmp/config.h" \ 23121 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23122 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 23123 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 23124$as_echo "$as_me: $ac_file is unchanged" >&6;} 23125 else 23126 rm -f "$ac_file" 23127 mv "$ac_tmp/config.h" "$ac_file" \ 23128 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23129 fi 23130 else 23131 $as_echo "/* $configure_input */" \ 23132 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 23133 || as_fn_error $? "could not create -" "$LINENO" 5 23134 fi 23135# Compute "$ac_file"'s index in $config_headers. 23136_am_arg="$ac_file" 23137_am_stamp_count=1 23138for _am_header in $config_headers :; do 23139 case $_am_header in 23140 $_am_arg | $_am_arg:* ) 23141 break ;; 23142 * ) 23143 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 23144 esac 23145done 23146echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 23147$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23148 X"$_am_arg" : 'X\(//\)[^/]' \| \ 23149 X"$_am_arg" : 'X\(//\)$' \| \ 23150 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 23151$as_echo X"$_am_arg" | 23152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23153 s//\1/ 23154 q 23155 } 23156 /^X\(\/\/\)[^/].*/{ 23157 s//\1/ 23158 q 23159 } 23160 /^X\(\/\/\)$/{ 23161 s//\1/ 23162 q 23163 } 23164 /^X\(\/\).*/{ 23165 s//\1/ 23166 q 23167 } 23168 s/.*/./; q'`/stamp-h$_am_stamp_count 23169 ;; 23170 23171 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 23172$as_echo "$as_me: executing $ac_file commands" >&6;} 23173 ;; 23174 esac 23175 23176 23177 case $ac_file$ac_mode in 23178 "default-1":C) 23179 for ac_file in $CONFIG_FILES; do 23180 # Support "outfile[:infile[:infile...]]" 23181 case "$ac_file" in 23182 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 23183 esac 23184 # PO directories have a Makefile.in generated from Makefile.in.in. 23185 case "$ac_file" in */Makefile.in) 23186 # Adjust a relative srcdir. 23187 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 23188 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 23189 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 23190 # In autoconf-2.13 it is called $ac_given_srcdir. 23191 # In autoconf-2.50 it is called $srcdir. 23192 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 23193 case "$ac_given_srcdir" in 23194 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 23195 /*) top_srcdir="$ac_given_srcdir" ;; 23196 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 23197 esac 23198 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 23199 rm -f "$ac_dir/POTFILES" 23200 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 23201 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 23202 POMAKEFILEDEPS="POTFILES.in" 23203 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 23204 # on $ac_dir but don't depend on user-specified configuration 23205 # parameters. 23206 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 23207 # The LINGUAS file contains the set of available languages. 23208 if test -n "$OBSOLETE_ALL_LINGUAS"; then 23209 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 23210 fi 23211 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` 23212 # Hide the ALL_LINGUAS assigment from automake. 23213 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 23214 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 23215 else 23216 # The set of available languages was given in configure.in. 23217 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 23218 fi 23219 # Compute POFILES 23220 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 23221 # Compute UPDATEPOFILES 23222 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 23223 # Compute DUMMYPOFILES 23224 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 23225 # Compute GMOFILES 23226 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 23227 case "$ac_given_srcdir" in 23228 .) srcdirpre= ;; 23229 *) srcdirpre='$(srcdir)/' ;; 23230 esac 23231 POFILES= 23232 UPDATEPOFILES= 23233 DUMMYPOFILES= 23234 GMOFILES= 23235 for lang in $ALL_LINGUAS; do 23236 POFILES="$POFILES $srcdirpre$lang.po" 23237 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 23238 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 23239 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 23240 done 23241 # CATALOGS depends on both $ac_dir and the user's LINGUAS 23242 # environment variable. 23243 INST_LINGUAS= 23244 if test -n "$ALL_LINGUAS"; then 23245 for presentlang in $ALL_LINGUAS; do 23246 useit=no 23247 if test "%UNSET%" != "$LINGUAS"; then 23248 desiredlanguages="$LINGUAS" 23249 else 23250 desiredlanguages="$ALL_LINGUAS" 23251 fi 23252 for desiredlang in $desiredlanguages; do 23253 # Use the presentlang catalog if desiredlang is 23254 # a. equal to presentlang, or 23255 # b. a variant of presentlang (because in this case, 23256 # presentlang can be used as a fallback for messages 23257 # which are not translated in the desiredlang catalog). 23258 case "$desiredlang" in 23259 "$presentlang"*) useit=yes;; 23260 esac 23261 done 23262 if test $useit = yes; then 23263 INST_LINGUAS="$INST_LINGUAS $presentlang" 23264 fi 23265 done 23266 fi 23267 CATALOGS= 23268 if test -n "$INST_LINGUAS"; then 23269 for lang in $INST_LINGUAS; do 23270 CATALOGS="$CATALOGS $lang.gmo" 23271 done 23272 fi 23273 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 23274 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" 23275 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 23276 if test -f "$f"; then 23277 case "$f" in 23278 *.orig | *.bak | *~) ;; 23279 *) cat "$f" >> "$ac_dir/Makefile" ;; 23280 esac 23281 fi 23282 done 23283 fi 23284 ;; 23285 esac 23286 done ;; 23287 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 23288 # Autoconf 2.62 quotes --file arguments for eval, but not when files 23289 # are listed without --file. Let's play safe and only enable the eval 23290 # if we detect the quoting. 23291 case $CONFIG_FILES in 23292 *\'*) eval set x "$CONFIG_FILES" ;; 23293 *) set x $CONFIG_FILES ;; 23294 esac 23295 shift 23296 for mf 23297 do 23298 # Strip MF so we end up with the name of the file. 23299 mf=`echo "$mf" | sed -e 's/:.*$//'` 23300 # Check whether this is an Automake generated Makefile or not. 23301 # We used to match only the files named `Makefile.in', but 23302 # some people rename them; so instead we look at the file content. 23303 # Grep'ing the first line is not enough: some people post-process 23304 # each Makefile.in and add a new line on top of each file to say so. 23305 # Grep'ing the whole file is not good either: AIX grep has a line 23306 # limit of 2048, but all sed's we know have understand at least 4000. 23307 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 23308 dirpart=`$as_dirname -- "$mf" || 23309$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23310 X"$mf" : 'X\(//\)[^/]' \| \ 23311 X"$mf" : 'X\(//\)$' \| \ 23312 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 23313$as_echo X"$mf" | 23314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23315 s//\1/ 23316 q 23317 } 23318 /^X\(\/\/\)[^/].*/{ 23319 s//\1/ 23320 q 23321 } 23322 /^X\(\/\/\)$/{ 23323 s//\1/ 23324 q 23325 } 23326 /^X\(\/\).*/{ 23327 s//\1/ 23328 q 23329 } 23330 s/.*/./; q'` 23331 else 23332 continue 23333 fi 23334 # Extract the definition of DEPDIR, am__include, and am__quote 23335 # from the Makefile without running `make'. 23336 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 23337 test -z "$DEPDIR" && continue 23338 am__include=`sed -n 's/^am__include = //p' < "$mf"` 23339 test -z "am__include" && continue 23340 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 23341 # When using ansi2knr, U may be empty or an underscore; expand it 23342 U=`sed -n 's/^U = //p' < "$mf"` 23343 # Find all dependency output files, they are included files with 23344 # $(DEPDIR) in their names. We invoke sed twice because it is the 23345 # simplest approach to changing $(DEPDIR) to its actual value in the 23346 # expansion. 23347 for file in `sed -n " 23348 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 23349 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 23350 # Make sure the directory exists. 23351 test -f "$dirpart/$file" && continue 23352 fdir=`$as_dirname -- "$file" || 23353$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23354 X"$file" : 'X\(//\)[^/]' \| \ 23355 X"$file" : 'X\(//\)$' \| \ 23356 X"$file" : 'X\(/\)' \| . 2>/dev/null || 23357$as_echo X"$file" | 23358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23359 s//\1/ 23360 q 23361 } 23362 /^X\(\/\/\)[^/].*/{ 23363 s//\1/ 23364 q 23365 } 23366 /^X\(\/\/\)$/{ 23367 s//\1/ 23368 q 23369 } 23370 /^X\(\/\).*/{ 23371 s//\1/ 23372 q 23373 } 23374 s/.*/./; q'` 23375 as_dir=$dirpart/$fdir; as_fn_mkdir_p 23376 # echo "creating $dirpart/$file" 23377 echo '# dummy' > "$dirpart/$file" 23378 done 23379 done 23380} 23381 ;; 23382 "intltool":C) 23383 23384intltool_edit="-e 's#@INTLTOOL_EXTRACT@#`pwd`/intltool-extract#g' \ 23385 -e 's#@INTLTOOL_ICONV@#${INTLTOOL_ICONV}#g' \ 23386 -e 's#@INTLTOOL_MSGFMT@#${INTLTOOL_MSGFMT}#g' \ 23387 -e 's#@INTLTOOL_MSGMERGE@#${INTLTOOL_MSGMERGE}#g' \ 23388 -e 's#@INTLTOOL_XGETTEXT@#${INTLTOOL_XGETTEXT}#g' \ 23389 -e 's#@INTLTOOL_PERL@#${INTLTOOL_PERL}#g'" 23390 23391eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-extract.in \ 23392 > intltool-extract.out 23393if cmp -s intltool-extract intltool-extract.out 2>/dev/null; then 23394 rm -f intltool-extract.out 23395else 23396 mv -f intltool-extract.out intltool-extract 23397fi 23398chmod ugo+x intltool-extract 23399chmod u+w intltool-extract 23400 23401eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-merge.in \ 23402 > intltool-merge.out 23403if cmp -s intltool-merge intltool-merge.out 2>/dev/null; then 23404 rm -f intltool-merge.out 23405else 23406 mv -f intltool-merge.out intltool-merge 23407fi 23408chmod ugo+x intltool-merge 23409chmod u+w intltool-merge 23410 23411eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-update.in \ 23412 > intltool-update.out 23413if cmp -s intltool-update intltool-update.out 2>/dev/null; then 23414 rm -f intltool-update.out 23415else 23416 mv -f intltool-update.out intltool-update 23417fi 23418chmod ugo+x intltool-update 23419chmod u+w intltool-update 23420 23421 ;; 23422 "libtool":C) 23423 23424 # See if we are running on zsh, and set the options which allow our 23425 # commands through without removal of \ escapes. 23426 if test -n "${ZSH_VERSION+set}" ; then 23427 setopt NO_GLOB_SUBST 23428 fi 23429 23430 cfgfile="${ofile}T" 23431 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 23432 $RM "$cfgfile" 23433 23434 cat <<_LT_EOF >> "$cfgfile" 23435#! $SHELL 23436 23437# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 23438# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 23439# NOTE: Changes made to this file will be lost: look at ltmain.sh. 23440# 23441# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 23442# 2006, 2007, 2008 Free Software Foundation, Inc. 23443# Written by Gordon Matzigkeit, 1996 23444# 23445# This file is part of GNU Libtool. 23446# 23447# GNU Libtool is free software; you can redistribute it and/or 23448# modify it under the terms of the GNU General Public License as 23449# published by the Free Software Foundation; either version 2 of 23450# the License, or (at your option) any later version. 23451# 23452# As a special exception to the GNU General Public License, 23453# if you distribute this file as part of a program or library that 23454# is built using GNU Libtool, you may include this file under the 23455# same distribution terms that you use for the rest of that program. 23456# 23457# GNU Libtool is distributed in the hope that it will be useful, 23458# but WITHOUT ANY WARRANTY; without even the implied warranty of 23459# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23460# GNU General Public License for more details. 23461# 23462# You should have received a copy of the GNU General Public License 23463# along with GNU Libtool; see the file COPYING. If not, a copy 23464# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 23465# obtained by writing to the Free Software Foundation, Inc., 23466# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 23467 23468 23469# The names of the tagged configurations supported by this script. 23470available_tags="CXX " 23471 23472# ### BEGIN LIBTOOL CONFIG 23473 23474# Assembler program. 23475AS=$AS 23476 23477# DLL creation program. 23478DLLTOOL=$DLLTOOL 23479 23480# Object dumper program. 23481OBJDUMP=$OBJDUMP 23482 23483# Which release of libtool.m4 was used? 23484macro_version=$macro_version 23485macro_revision=$macro_revision 23486 23487# Whether or not to build shared libraries. 23488build_libtool_libs=$enable_shared 23489 23490# Whether or not to build static libraries. 23491build_old_libs=$enable_static 23492 23493# What type of objects to build. 23494pic_mode=$pic_mode 23495 23496# Whether or not to optimize for fast installation. 23497fast_install=$enable_fast_install 23498 23499# The host system. 23500host_alias=$host_alias 23501host=$host 23502host_os=$host_os 23503 23504# The build system. 23505build_alias=$build_alias 23506build=$build 23507build_os=$build_os 23508 23509# A sed program that does not truncate output. 23510SED=$lt_SED 23511 23512# Sed that helps us avoid accidentally triggering echo(1) options like -n. 23513Xsed="\$SED -e 1s/^X//" 23514 23515# A grep program that handles long lines. 23516GREP=$lt_GREP 23517 23518# An ERE matcher. 23519EGREP=$lt_EGREP 23520 23521# A literal string matcher. 23522FGREP=$lt_FGREP 23523 23524# A BSD- or MS-compatible name lister. 23525NM=$lt_NM 23526 23527# Whether we need soft or hard links. 23528LN_S=$lt_LN_S 23529 23530# What is the maximum length of a command? 23531max_cmd_len=$max_cmd_len 23532 23533# Object file suffix (normally "o"). 23534objext=$ac_objext 23535 23536# Executable file suffix (normally ""). 23537exeext=$exeext 23538 23539# whether the shell understands "unset". 23540lt_unset=$lt_unset 23541 23542# turn spaces into newlines. 23543SP2NL=$lt_lt_SP2NL 23544 23545# turn newlines into spaces. 23546NL2SP=$lt_lt_NL2SP 23547 23548# How to create reloadable object files. 23549reload_flag=$lt_reload_flag 23550reload_cmds=$lt_reload_cmds 23551 23552# Method to check whether dependent libraries are shared objects. 23553deplibs_check_method=$lt_deplibs_check_method 23554 23555# Command to use when deplibs_check_method == "file_magic". 23556file_magic_cmd=$lt_file_magic_cmd 23557 23558# The archiver. 23559AR=$lt_AR 23560AR_FLAGS=$lt_AR_FLAGS 23561 23562# A symbol stripping program. 23563STRIP=$lt_STRIP 23564 23565# Commands used to install an old-style archive. 23566RANLIB=$lt_RANLIB 23567old_postinstall_cmds=$lt_old_postinstall_cmds 23568old_postuninstall_cmds=$lt_old_postuninstall_cmds 23569 23570# A C compiler. 23571LTCC=$lt_CC 23572 23573# LTCC compiler flags. 23574LTCFLAGS=$lt_CFLAGS 23575 23576# Take the output of nm and produce a listing of raw symbols and C names. 23577global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 23578 23579# Transform the output of nm in a proper C declaration. 23580global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 23581 23582# Transform the output of nm in a C name address pair. 23583global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 23584 23585# Transform the output of nm in a C name address pair when lib prefix is needed. 23586global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 23587 23588# The name of the directory that contains temporary libtool files. 23589objdir=$objdir 23590 23591# Shell to use when invoking shell scripts. 23592SHELL=$lt_SHELL 23593 23594# An echo program that does not interpret backslashes. 23595ECHO=$lt_ECHO 23596 23597# Used to examine libraries when file_magic_cmd begins with "file". 23598MAGIC_CMD=$MAGIC_CMD 23599 23600# Must we lock files when doing compilation? 23601need_locks=$lt_need_locks 23602 23603# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 23604DSYMUTIL=$lt_DSYMUTIL 23605 23606# Tool to change global to local symbols on Mac OS X. 23607NMEDIT=$lt_NMEDIT 23608 23609# Tool to manipulate fat objects and archives on Mac OS X. 23610LIPO=$lt_LIPO 23611 23612# ldd/readelf like tool for Mach-O binaries on Mac OS X. 23613OTOOL=$lt_OTOOL 23614 23615# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 23616OTOOL64=$lt_OTOOL64 23617 23618# Old archive suffix (normally "a"). 23619libext=$libext 23620 23621# Shared library suffix (normally ".so"). 23622shrext_cmds=$lt_shrext_cmds 23623 23624# The commands to extract the exported symbol list from a shared archive. 23625extract_expsyms_cmds=$lt_extract_expsyms_cmds 23626 23627# Variables whose values should be saved in libtool wrapper scripts and 23628# restored at link time. 23629variables_saved_for_relink=$lt_variables_saved_for_relink 23630 23631# Do we need the "lib" prefix for modules? 23632need_lib_prefix=$need_lib_prefix 23633 23634# Do we need a version for libraries? 23635need_version=$need_version 23636 23637# Library versioning type. 23638version_type=$version_type 23639 23640# Shared library runtime path variable. 23641runpath_var=$runpath_var 23642 23643# Shared library path variable. 23644shlibpath_var=$shlibpath_var 23645 23646# Is shlibpath searched before the hard-coded library search path? 23647shlibpath_overrides_runpath=$shlibpath_overrides_runpath 23648 23649# Format of library name prefix. 23650libname_spec=$lt_libname_spec 23651 23652# List of archive names. First name is the real one, the rest are links. 23653# The last name is the one that the linker finds with -lNAME 23654library_names_spec=$lt_library_names_spec 23655 23656# The coded name of the library, if different from the real name. 23657soname_spec=$lt_soname_spec 23658 23659# Command to use after installation of a shared archive. 23660postinstall_cmds=$lt_postinstall_cmds 23661 23662# Command to use after uninstallation of a shared archive. 23663postuninstall_cmds=$lt_postuninstall_cmds 23664 23665# Commands used to finish a libtool library installation in a directory. 23666finish_cmds=$lt_finish_cmds 23667 23668# As "finish_cmds", except a single script fragment to be evaled but 23669# not shown. 23670finish_eval=$lt_finish_eval 23671 23672# Whether we should hardcode library paths into libraries. 23673hardcode_into_libs=$hardcode_into_libs 23674 23675# Compile-time system search path for libraries. 23676sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 23677 23678# Run-time system search path for libraries. 23679sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 23680 23681# Whether dlopen is supported. 23682dlopen_support=$enable_dlopen 23683 23684# Whether dlopen of programs is supported. 23685dlopen_self=$enable_dlopen_self 23686 23687# Whether dlopen of statically linked programs is supported. 23688dlopen_self_static=$enable_dlopen_self_static 23689 23690# Commands to strip libraries. 23691old_striplib=$lt_old_striplib 23692striplib=$lt_striplib 23693 23694 23695# The linker used to build libraries. 23696LD=$lt_LD 23697 23698# Commands used to build an old-style archive. 23699old_archive_cmds=$lt_old_archive_cmds 23700 23701# A language specific compiler. 23702CC=$lt_compiler 23703 23704# Is the compiler the GNU compiler? 23705with_gcc=$GCC 23706 23707# Compiler flag to turn off builtin functions. 23708no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 23709 23710# How to pass a linker flag through the compiler. 23711wl=$lt_lt_prog_compiler_wl 23712 23713# Additional compiler flags for building library objects. 23714pic_flag=$lt_lt_prog_compiler_pic 23715 23716# Compiler flag to prevent dynamic linking. 23717link_static_flag=$lt_lt_prog_compiler_static 23718 23719# Does compiler simultaneously support -c and -o options? 23720compiler_c_o=$lt_lt_cv_prog_compiler_c_o 23721 23722# Whether or not to add -lc for building shared libraries. 23723build_libtool_need_lc=$archive_cmds_need_lc 23724 23725# Whether or not to disallow shared libs when runtime libs are static. 23726allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 23727 23728# Compiler flag to allow reflexive dlopens. 23729export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 23730 23731# Compiler flag to generate shared objects directly from archives. 23732whole_archive_flag_spec=$lt_whole_archive_flag_spec 23733 23734# Whether the compiler copes with passing no objects directly. 23735compiler_needs_object=$lt_compiler_needs_object 23736 23737# Create an old-style archive from a shared archive. 23738old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 23739 23740# Create a temporary old-style archive to link instead of a shared archive. 23741old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 23742 23743# Commands used to build a shared archive. 23744archive_cmds=$lt_archive_cmds 23745archive_expsym_cmds=$lt_archive_expsym_cmds 23746 23747# Commands used to build a loadable module if different from building 23748# a shared archive. 23749module_cmds=$lt_module_cmds 23750module_expsym_cmds=$lt_module_expsym_cmds 23751 23752# Whether we are building with GNU ld or not. 23753with_gnu_ld=$lt_with_gnu_ld 23754 23755# Flag that allows shared libraries with undefined symbols to be built. 23756allow_undefined_flag=$lt_allow_undefined_flag 23757 23758# Flag that enforces no undefined symbols. 23759no_undefined_flag=$lt_no_undefined_flag 23760 23761# Flag to hardcode \$libdir into a binary during linking. 23762# This must work even if \$libdir does not exist 23763hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 23764 23765# If ld is used when linking, flag to hardcode \$libdir into a binary 23766# during linking. This must work even if \$libdir does not exist. 23767hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 23768 23769# Whether we need a single "-rpath" flag with a separated argument. 23770hardcode_libdir_separator=$lt_hardcode_libdir_separator 23771 23772# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 23773# DIR into the resulting binary. 23774hardcode_direct=$hardcode_direct 23775 23776# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 23777# DIR into the resulting binary and the resulting library dependency is 23778# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 23779# library is relocated. 23780hardcode_direct_absolute=$hardcode_direct_absolute 23781 23782# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23783# into the resulting binary. 23784hardcode_minus_L=$hardcode_minus_L 23785 23786# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23787# into the resulting binary. 23788hardcode_shlibpath_var=$hardcode_shlibpath_var 23789 23790# Set to "yes" if building a shared library automatically hardcodes DIR 23791# into the library and all subsequent libraries and executables linked 23792# against it. 23793hardcode_automatic=$hardcode_automatic 23794 23795# Set to yes if linker adds runtime paths of dependent libraries 23796# to runtime path list. 23797inherit_rpath=$inherit_rpath 23798 23799# Whether libtool must link a program against all its dependency libraries. 23800link_all_deplibs=$link_all_deplibs 23801 23802# Fix the shell variable \$srcfile for the compiler. 23803fix_srcfile_path=$lt_fix_srcfile_path 23804 23805# Set to "yes" if exported symbols are required. 23806always_export_symbols=$always_export_symbols 23807 23808# The commands to list exported symbols. 23809export_symbols_cmds=$lt_export_symbols_cmds 23810 23811# Symbols that should not be listed in the preloaded symbols. 23812exclude_expsyms=$lt_exclude_expsyms 23813 23814# Symbols that must always be exported. 23815include_expsyms=$lt_include_expsyms 23816 23817# Commands necessary for linking programs (against libraries) with templates. 23818prelink_cmds=$lt_prelink_cmds 23819 23820# Specify filename containing input files. 23821file_list_spec=$lt_file_list_spec 23822 23823# How to hardcode a shared library path into an executable. 23824hardcode_action=$hardcode_action 23825 23826# The directories searched by this compiler when creating a shared library. 23827compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 23828 23829# Dependencies to place before and after the objects being linked to 23830# create a shared library. 23831predep_objects=$lt_predep_objects 23832postdep_objects=$lt_postdep_objects 23833predeps=$lt_predeps 23834postdeps=$lt_postdeps 23835 23836# The library search path used internally by the compiler when linking 23837# a shared library. 23838compiler_lib_search_path=$lt_compiler_lib_search_path 23839 23840# ### END LIBTOOL CONFIG 23841 23842_LT_EOF 23843 23844 case $host_os in 23845 aix3*) 23846 cat <<\_LT_EOF >> "$cfgfile" 23847# AIX sometimes has problems with the GCC collect2 program. For some 23848# reason, if we set the COLLECT_NAMES environment variable, the problems 23849# vanish in a puff of smoke. 23850if test "X${COLLECT_NAMES+set}" != Xset; then 23851 COLLECT_NAMES= 23852 export COLLECT_NAMES 23853fi 23854_LT_EOF 23855 ;; 23856 esac 23857 23858 23859ltmain="$ac_aux_dir/ltmain.sh" 23860 23861 23862 # We use sed instead of cat because bash on DJGPP gets confused if 23863 # if finds mixed CR/LF and LF-only lines. Since sed operates in 23864 # text mode, it properly converts lines to CR/LF. This bash problem 23865 # is reportedly fixed, but why not run on old versions too? 23866 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 23867 || (rm -f "$cfgfile"; exit 1) 23868 23869 case $xsi_shell in 23870 yes) 23871 cat << \_LT_EOF >> "$cfgfile" 23872 23873# func_dirname file append nondir_replacement 23874# Compute the dirname of FILE. If nonempty, add APPEND to the result, 23875# otherwise set result to NONDIR_REPLACEMENT. 23876func_dirname () 23877{ 23878 case ${1} in 23879 */*) func_dirname_result="${1%/*}${2}" ;; 23880 * ) func_dirname_result="${3}" ;; 23881 esac 23882} 23883 23884# func_basename file 23885func_basename () 23886{ 23887 func_basename_result="${1##*/}" 23888} 23889 23890# func_dirname_and_basename file append nondir_replacement 23891# perform func_basename and func_dirname in a single function 23892# call: 23893# dirname: Compute the dirname of FILE. If nonempty, 23894# add APPEND to the result, otherwise set result 23895# to NONDIR_REPLACEMENT. 23896# value returned in "$func_dirname_result" 23897# basename: Compute filename of FILE. 23898# value retuned in "$func_basename_result" 23899# Implementation must be kept synchronized with func_dirname 23900# and func_basename. For efficiency, we do not delegate to 23901# those functions but instead duplicate the functionality here. 23902func_dirname_and_basename () 23903{ 23904 case ${1} in 23905 */*) func_dirname_result="${1%/*}${2}" ;; 23906 * ) func_dirname_result="${3}" ;; 23907 esac 23908 func_basename_result="${1##*/}" 23909} 23910 23911# func_stripname prefix suffix name 23912# strip PREFIX and SUFFIX off of NAME. 23913# PREFIX and SUFFIX must not contain globbing or regex special 23914# characters, hashes, percent signs, but SUFFIX may contain a leading 23915# dot (in which case that matches only a dot). 23916func_stripname () 23917{ 23918 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 23919 # positional parameters, so assign one to ordinary parameter first. 23920 func_stripname_result=${3} 23921 func_stripname_result=${func_stripname_result#"${1}"} 23922 func_stripname_result=${func_stripname_result%"${2}"} 23923} 23924 23925# func_opt_split 23926func_opt_split () 23927{ 23928 func_opt_split_opt=${1%%=*} 23929 func_opt_split_arg=${1#*=} 23930} 23931 23932# func_lo2o object 23933func_lo2o () 23934{ 23935 case ${1} in 23936 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 23937 *) func_lo2o_result=${1} ;; 23938 esac 23939} 23940 23941# func_xform libobj-or-source 23942func_xform () 23943{ 23944 func_xform_result=${1%.*}.lo 23945} 23946 23947# func_arith arithmetic-term... 23948func_arith () 23949{ 23950 func_arith_result=$(( $* )) 23951} 23952 23953# func_len string 23954# STRING may not start with a hyphen. 23955func_len () 23956{ 23957 func_len_result=${#1} 23958} 23959 23960_LT_EOF 23961 ;; 23962 *) # Bourne compatible functions. 23963 cat << \_LT_EOF >> "$cfgfile" 23964 23965# func_dirname file append nondir_replacement 23966# Compute the dirname of FILE. If nonempty, add APPEND to the result, 23967# otherwise set result to NONDIR_REPLACEMENT. 23968func_dirname () 23969{ 23970 # Extract subdirectory from the argument. 23971 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 23972 if test "X$func_dirname_result" = "X${1}"; then 23973 func_dirname_result="${3}" 23974 else 23975 func_dirname_result="$func_dirname_result${2}" 23976 fi 23977} 23978 23979# func_basename file 23980func_basename () 23981{ 23982 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 23983} 23984 23985 23986# func_stripname prefix suffix name 23987# strip PREFIX and SUFFIX off of NAME. 23988# PREFIX and SUFFIX must not contain globbing or regex special 23989# characters, hashes, percent signs, but SUFFIX may contain a leading 23990# dot (in which case that matches only a dot). 23991# func_strip_suffix prefix name 23992func_stripname () 23993{ 23994 case ${2} in 23995 .*) func_stripname_result=`$ECHO "X${3}" \ 23996 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 23997 *) func_stripname_result=`$ECHO "X${3}" \ 23998 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 23999 esac 24000} 24001 24002# sed scripts: 24003my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 24004my_sed_long_arg='1s/^-[^=]*=//' 24005 24006# func_opt_split 24007func_opt_split () 24008{ 24009 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 24010 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 24011} 24012 24013# func_lo2o object 24014func_lo2o () 24015{ 24016 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 24017} 24018 24019# func_xform libobj-or-source 24020func_xform () 24021{ 24022 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 24023} 24024 24025# func_arith arithmetic-term... 24026func_arith () 24027{ 24028 func_arith_result=`expr "$@"` 24029} 24030 24031# func_len string 24032# STRING may not start with a hyphen. 24033func_len () 24034{ 24035 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 24036} 24037 24038_LT_EOF 24039esac 24040 24041case $lt_shell_append in 24042 yes) 24043 cat << \_LT_EOF >> "$cfgfile" 24044 24045# func_append var value 24046# Append VALUE to the end of shell variable VAR. 24047func_append () 24048{ 24049 eval "$1+=\$2" 24050} 24051_LT_EOF 24052 ;; 24053 *) 24054 cat << \_LT_EOF >> "$cfgfile" 24055 24056# func_append var value 24057# Append VALUE to the end of shell variable VAR. 24058func_append () 24059{ 24060 eval "$1=\$$1\$2" 24061} 24062 24063_LT_EOF 24064 ;; 24065 esac 24066 24067 24068 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 24069 || (rm -f "$cfgfile"; exit 1) 24070 24071 mv -f "$cfgfile" "$ofile" || 24072 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 24073 chmod +x "$ofile" 24074 24075 24076 cat <<_LT_EOF >> "$ofile" 24077 24078# ### BEGIN LIBTOOL TAG CONFIG: CXX 24079 24080# The linker used to build libraries. 24081LD=$lt_LD_CXX 24082 24083# Commands used to build an old-style archive. 24084old_archive_cmds=$lt_old_archive_cmds_CXX 24085 24086# A language specific compiler. 24087CC=$lt_compiler_CXX 24088 24089# Is the compiler the GNU compiler? 24090with_gcc=$GCC_CXX 24091 24092# Compiler flag to turn off builtin functions. 24093no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 24094 24095# How to pass a linker flag through the compiler. 24096wl=$lt_lt_prog_compiler_wl_CXX 24097 24098# Additional compiler flags for building library objects. 24099pic_flag=$lt_lt_prog_compiler_pic_CXX 24100 24101# Compiler flag to prevent dynamic linking. 24102link_static_flag=$lt_lt_prog_compiler_static_CXX 24103 24104# Does compiler simultaneously support -c and -o options? 24105compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 24106 24107# Whether or not to add -lc for building shared libraries. 24108build_libtool_need_lc=$archive_cmds_need_lc_CXX 24109 24110# Whether or not to disallow shared libs when runtime libs are static. 24111allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 24112 24113# Compiler flag to allow reflexive dlopens. 24114export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 24115 24116# Compiler flag to generate shared objects directly from archives. 24117whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 24118 24119# Whether the compiler copes with passing no objects directly. 24120compiler_needs_object=$lt_compiler_needs_object_CXX 24121 24122# Create an old-style archive from a shared archive. 24123old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 24124 24125# Create a temporary old-style archive to link instead of a shared archive. 24126old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 24127 24128# Commands used to build a shared archive. 24129archive_cmds=$lt_archive_cmds_CXX 24130archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 24131 24132# Commands used to build a loadable module if different from building 24133# a shared archive. 24134module_cmds=$lt_module_cmds_CXX 24135module_expsym_cmds=$lt_module_expsym_cmds_CXX 24136 24137# Whether we are building with GNU ld or not. 24138with_gnu_ld=$lt_with_gnu_ld_CXX 24139 24140# Flag that allows shared libraries with undefined symbols to be built. 24141allow_undefined_flag=$lt_allow_undefined_flag_CXX 24142 24143# Flag that enforces no undefined symbols. 24144no_undefined_flag=$lt_no_undefined_flag_CXX 24145 24146# Flag to hardcode \$libdir into a binary during linking. 24147# This must work even if \$libdir does not exist 24148hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 24149 24150# If ld is used when linking, flag to hardcode \$libdir into a binary 24151# during linking. This must work even if \$libdir does not exist. 24152hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 24153 24154# Whether we need a single "-rpath" flag with a separated argument. 24155hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 24156 24157# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 24158# DIR into the resulting binary. 24159hardcode_direct=$hardcode_direct_CXX 24160 24161# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 24162# DIR into the resulting binary and the resulting library dependency is 24163# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 24164# library is relocated. 24165hardcode_direct_absolute=$hardcode_direct_absolute_CXX 24166 24167# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 24168# into the resulting binary. 24169hardcode_minus_L=$hardcode_minus_L_CXX 24170 24171# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 24172# into the resulting binary. 24173hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 24174 24175# Set to "yes" if building a shared library automatically hardcodes DIR 24176# into the library and all subsequent libraries and executables linked 24177# against it. 24178hardcode_automatic=$hardcode_automatic_CXX 24179 24180# Set to yes if linker adds runtime paths of dependent libraries 24181# to runtime path list. 24182inherit_rpath=$inherit_rpath_CXX 24183 24184# Whether libtool must link a program against all its dependency libraries. 24185link_all_deplibs=$link_all_deplibs_CXX 24186 24187# Fix the shell variable \$srcfile for the compiler. 24188fix_srcfile_path=$lt_fix_srcfile_path_CXX 24189 24190# Set to "yes" if exported symbols are required. 24191always_export_symbols=$always_export_symbols_CXX 24192 24193# The commands to list exported symbols. 24194export_symbols_cmds=$lt_export_symbols_cmds_CXX 24195 24196# Symbols that should not be listed in the preloaded symbols. 24197exclude_expsyms=$lt_exclude_expsyms_CXX 24198 24199# Symbols that must always be exported. 24200include_expsyms=$lt_include_expsyms_CXX 24201 24202# Commands necessary for linking programs (against libraries) with templates. 24203prelink_cmds=$lt_prelink_cmds_CXX 24204 24205# Specify filename containing input files. 24206file_list_spec=$lt_file_list_spec_CXX 24207 24208# How to hardcode a shared library path into an executable. 24209hardcode_action=$hardcode_action_CXX 24210 24211# The directories searched by this compiler when creating a shared library. 24212compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 24213 24214# Dependencies to place before and after the objects being linked to 24215# create a shared library. 24216predep_objects=$lt_predep_objects_CXX 24217postdep_objects=$lt_postdep_objects_CXX 24218predeps=$lt_predeps_CXX 24219postdeps=$lt_postdeps_CXX 24220 24221# The library search path used internally by the compiler when linking 24222# a shared library. 24223compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 24224 24225# ### END LIBTOOL TAG CONFIG: CXX 24226_LT_EOF 24227 24228 ;; 24229 24230 esac 24231done # for ac_tag 24232 24233 24234as_fn_exit 0 24235_ACEOF 24236ac_clean_files=$ac_clean_files_save 24237 24238test $ac_write_fail = 0 || 24239 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 24240 24241 24242# configure is writing to config.log, and then calls config.status. 24243# config.status does its own redirection, appending to config.log. 24244# Unfortunately, on DOS this fails, as config.log is still kept open 24245# by configure, so config.status won't be able to write to it; its 24246# output is simply discarded. So we exec the FD to /dev/null, 24247# effectively closing config.log, so it can be properly (re)opened and 24248# appended to by config.status. When coming back to configure, we 24249# need to make the FD available again. 24250if test "$no_create" != yes; then 24251 ac_cs_success=: 24252 ac_config_status_args= 24253 test "$silent" = yes && 24254 ac_config_status_args="$ac_config_status_args --quiet" 24255 exec 5>/dev/null 24256 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 24257 exec 5>>config.log 24258 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 24259 # would make configure fail if this is the last instruction. 24260 $ac_cs_success || as_fn_exit 1 24261fi 24262 24263# 24264# CONFIG_SUBDIRS section. 24265# 24266if test "$no_recursion" != yes; then 24267 24268 # Remove --cache-file, --srcdir, and --disable-option-checking arguments 24269 # so they do not pile up. 24270 ac_sub_configure_args= 24271 ac_prev= 24272 eval "set x $ac_configure_args" 24273 shift 24274 for ac_arg 24275 do 24276 if test -n "$ac_prev"; then 24277 ac_prev= 24278 continue 24279 fi 24280 case $ac_arg in 24281 -cache-file | --cache-file | --cache-fil | --cache-fi \ 24282 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 24283 ac_prev=cache_file ;; 24284 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 24285 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 24286 | --c=*) 24287 ;; 24288 --config-cache | -C) 24289 ;; 24290 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 24291 ac_prev=srcdir ;; 24292 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 24293 ;; 24294 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 24295 ac_prev=prefix ;; 24296 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 24297 ;; 24298 --disable-option-checking) 24299 ;; 24300 *) 24301 case $ac_arg in 24302 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 24303 esac 24304 as_fn_append ac_sub_configure_args " '$ac_arg'" ;; 24305 esac 24306 done 24307 24308 # Always prepend --prefix to ensure using the same prefix 24309 # in subdir configurations. 24310 ac_arg="--prefix=$prefix" 24311 case $ac_arg in 24312 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 24313 esac 24314 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 24315 24316 # Pass --silent 24317 if test "$silent" = yes; then 24318 ac_sub_configure_args="--silent $ac_sub_configure_args" 24319 fi 24320 24321 # Always prepend --disable-option-checking to silence warnings, since 24322 # different subdirs can have different --enable and --with options. 24323 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" 24324 24325 ac_popdir=`pwd` 24326 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 24327 24328 # Do not complain, so a configure script can configure whichever 24329 # parts of a large source tree are present. 24330 test -d "$srcdir/$ac_dir" || continue 24331 24332 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 24333 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 24334 $as_echo "$ac_msg" >&6 24335 as_dir="$ac_dir"; as_fn_mkdir_p 24336 ac_builddir=. 24337 24338case "$ac_dir" in 24339.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 24340*) 24341 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 24342 # A ".." for each directory in $ac_dir_suffix. 24343 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 24344 case $ac_top_builddir_sub in 24345 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 24346 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 24347 esac ;; 24348esac 24349ac_abs_top_builddir=$ac_pwd 24350ac_abs_builddir=$ac_pwd$ac_dir_suffix 24351# for backward compatibility: 24352ac_top_builddir=$ac_top_build_prefix 24353 24354case $srcdir in 24355 .) # We are building in place. 24356 ac_srcdir=. 24357 ac_top_srcdir=$ac_top_builddir_sub 24358 ac_abs_top_srcdir=$ac_pwd ;; 24359 [\\/]* | ?:[\\/]* ) # Absolute name. 24360 ac_srcdir=$srcdir$ac_dir_suffix; 24361 ac_top_srcdir=$srcdir 24362 ac_abs_top_srcdir=$srcdir ;; 24363 *) # Relative name. 24364 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 24365 ac_top_srcdir=$ac_top_build_prefix$srcdir 24366 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 24367esac 24368ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 24369 24370 24371 cd "$ac_dir" 24372 24373 # Check for guested configure; otherwise get Cygnus style configure. 24374 if test -f "$ac_srcdir/configure.gnu"; then 24375 ac_sub_configure=$ac_srcdir/configure.gnu 24376 elif test -f "$ac_srcdir/configure"; then 24377 ac_sub_configure=$ac_srcdir/configure 24378 elif test -f "$ac_srcdir/configure.in"; then 24379 # This should be Cygnus configure. 24380 ac_sub_configure=$ac_aux_dir/configure 24381 else 24382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 24383$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 24384 ac_sub_configure= 24385 fi 24386 24387 # The recursion is here. 24388 if test -n "$ac_sub_configure"; then 24389 # Make the cache file name correct relative to the subdirectory. 24390 case $cache_file in 24391 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 24392 *) # Relative name. 24393 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 24394 esac 24395 24396 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 24397$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 24398 # The eval makes quoting arguments work. 24399 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 24400 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 24401 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 24402 fi 24403 24404 cd "$ac_popdir" 24405 done 24406fi 24407if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 24408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 24409$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 24410fi 24411 24412