1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.65 for SoQt 1.6.0. 4# 5# Report bugs to <coin-support@coin3d.org>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, 10# Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94case $0 in #(( 95 *[\\/]* ) as_myself=$0 ;; 96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 97for as_dir in $PATH 98do 99 IFS=$as_save_IFS 100 test -z "$as_dir" && as_dir=. 101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 102 done 103IFS=$as_save_IFS 104 105 ;; 106esac 107# We did not find ourselves, most probably we were run as `sh COMMAND' 108# in which case we are not to be found in the path. 109if test "x$as_myself" = x; then 110 as_myself=$0 111fi 112if test ! -f "$as_myself"; then 113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 114 exit 1 115fi 116 117# Unset variables that we do not need and which cause bugs (e.g. in 118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 119# suppresses any "Segmentation fault" message there. '((' could 120# trigger a bug in pdksh 5.2.14. 121for as_var in BASH_ENV ENV MAIL MAILPATH 122do eval test x\${$as_var+set} = xset \ 123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 124done 125PS1='$ ' 126PS2='> ' 127PS4='+ ' 128 129# NLS nuisances. 130LC_ALL=C 131export LC_ALL 132LANGUAGE=C 133export LANGUAGE 134 135# CDPATH. 136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 137 138if test "x$CONFIG_SHELL" = x; then 139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 140 emulate sh 141 NULLCMD=: 142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 143 # is contrary to our usage. Disable this feature. 144 alias -g '\${1+\"\$@\"}'='\"\$@\"' 145 setopt NO_GLOB_SUBST 146else 147 case \`(set -o) 2>/dev/null\` in #( 148 *posix*) : 149 set -o posix ;; #( 150 *) : 151 ;; 152esac 153fi 154" 155 as_required="as_fn_return () { (exit \$1); } 156as_fn_success () { as_fn_return 0; } 157as_fn_failure () { as_fn_return 1; } 158as_fn_ret_success () { return 0; } 159as_fn_ret_failure () { return 1; } 160 161exitcode=0 162as_fn_success || { exitcode=1; echo as_fn_success failed.; } 163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 167 168else 169 exitcode=1; echo positional parameters were not saved. 170fi 171test x\$exitcode = x0 || exit 1" 172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 176test \$(( 1 + 1 )) = 2 || exit 1" 177 if (eval "$as_required") 2>/dev/null; then : 178 as_have_required=yes 179else 180 as_have_required=no 181fi 182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 183 184else 185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 186as_found=false 187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 188do 189 IFS=$as_save_IFS 190 test -z "$as_dir" && as_dir=. 191 as_found=: 192 case $as_dir in #( 193 /*) 194 for as_base in sh bash ksh sh5; do 195 # Try only shells that exist, to save several forks. 196 as_shell=$as_dir/$as_base 197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 199 CONFIG_SHELL=$as_shell as_have_required=yes 200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 201 break 2 202fi 203fi 204 done;; 205 esac 206 as_found=false 207done 208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 210 CONFIG_SHELL=$SHELL as_have_required=yes 211fi; } 212IFS=$as_save_IFS 213 214 215 if test "x$CONFIG_SHELL" != x; then : 216 # We cannot yet assume a decent shell, so we have to provide a 217 # neutralization value for shells without unset; and this also 218 # works around shells that cannot unset nonexistent variables. 219 BASH_ENV=/dev/null 220 ENV=/dev/null 221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 222 export CONFIG_SHELL 223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 224fi 225 226 if test x$as_have_required = xno; then : 227 $as_echo "$0: This script requires a shell more modern than all" 228 $as_echo "$0: the shells that I found on your system." 229 if test x${ZSH_VERSION+set} = xset ; then 230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 231 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 232 else 233 $as_echo "$0: Please tell bug-autoconf@gnu.org and 234$0: coin-support@coin3d.org about your system, including 235$0: any error possibly output before this message. Then 236$0: install a modern shell, or manually run the script 237$0: under such a shell if you do have one." 238 fi 239 exit 1 240fi 241fi 242fi 243SHELL=${CONFIG_SHELL-/bin/sh} 244export SHELL 245# Unset more variables known to interfere with behavior of common tools. 246CLICOLOR_FORCE= GREP_OPTIONS= 247unset CLICOLOR_FORCE GREP_OPTIONS 248 249## --------------------- ## 250## M4sh Shell Functions. ## 251## --------------------- ## 252# as_fn_unset VAR 253# --------------- 254# Portably unset VAR. 255as_fn_unset () 256{ 257 { eval $1=; unset $1;} 258} 259as_unset=as_fn_unset 260 261# as_fn_set_status STATUS 262# ----------------------- 263# Set $? to STATUS, without forking. 264as_fn_set_status () 265{ 266 return $1 267} # as_fn_set_status 268 269# as_fn_exit STATUS 270# ----------------- 271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 272as_fn_exit () 273{ 274 set +e 275 as_fn_set_status $1 276 exit $1 277} # as_fn_exit 278 279# as_fn_mkdir_p 280# ------------- 281# Create "$as_dir" as a directory, including parents if necessary. 282as_fn_mkdir_p () 283{ 284 285 case $as_dir in #( 286 -*) as_dir=./$as_dir;; 287 esac 288 test -d "$as_dir" || eval $as_mkdir_p || { 289 as_dirs= 290 while :; do 291 case $as_dir in #( 292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 293 *) as_qdir=$as_dir;; 294 esac 295 as_dirs="'$as_qdir' $as_dirs" 296 as_dir=`$as_dirname -- "$as_dir" || 297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 298 X"$as_dir" : 'X\(//\)[^/]' \| \ 299 X"$as_dir" : 'X\(//\)$' \| \ 300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 301$as_echo X"$as_dir" | 302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 303 s//\1/ 304 q 305 } 306 /^X\(\/\/\)[^/].*/{ 307 s//\1/ 308 q 309 } 310 /^X\(\/\/\)$/{ 311 s//\1/ 312 q 313 } 314 /^X\(\/\).*/{ 315 s//\1/ 316 q 317 } 318 s/.*/./; q'` 319 test -d "$as_dir" && break 320 done 321 test -z "$as_dirs" || eval "mkdir $as_dirs" 322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 323 324 325} # as_fn_mkdir_p 326# as_fn_append VAR VALUE 327# ---------------------- 328# Append the text in VALUE to the end of the definition contained in VAR. Take 329# advantage of any shell optimizations that allow amortized linear growth over 330# repeated appends, instead of the typical quadratic growth present in naive 331# implementations. 332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 333 eval 'as_fn_append () 334 { 335 eval $1+=\$2 336 }' 337else 338 as_fn_append () 339 { 340 eval $1=\$$1\$2 341 } 342fi # as_fn_append 343 344# as_fn_arith ARG... 345# ------------------ 346# Perform arithmetic evaluation on the ARGs, and store the result in the 347# global $as_val. Take advantage of shells that can avoid forks. The arguments 348# must be portable across $(()) and expr. 349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 350 eval 'as_fn_arith () 351 { 352 as_val=$(( $* )) 353 }' 354else 355 as_fn_arith () 356 { 357 as_val=`expr "$@" || test $? -eq 1` 358 } 359fi # as_fn_arith 360 361 362# as_fn_error ERROR [LINENO LOG_FD] 363# --------------------------------- 364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 366# script with status $?, using 1 if that was 0. 367as_fn_error () 368{ 369 as_status=$?; test $as_status -eq 0 && as_status=1 370 if test "$3"; then 371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 373 fi 374 $as_echo "$as_me: error: $1" >&2 375 as_fn_exit $as_status 376} # as_fn_error 377 378if expr a : '\(a\)' >/dev/null 2>&1 && 379 test "X`expr 00001 : '.*\(...\)'`" = X001; then 380 as_expr=expr 381else 382 as_expr=false 383fi 384 385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 386 as_basename=basename 387else 388 as_basename=false 389fi 390 391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 392 as_dirname=dirname 393else 394 as_dirname=false 395fi 396 397as_me=`$as_basename -- "$0" || 398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 399 X"$0" : 'X\(//\)$' \| \ 400 X"$0" : 'X\(/\)' \| . 2>/dev/null || 401$as_echo X/"$0" | 402 sed '/^.*\/\([^/][^/]*\)\/*$/{ 403 s//\1/ 404 q 405 } 406 /^X\/\(\/\/\)$/{ 407 s//\1/ 408 q 409 } 410 /^X\/\(\/\).*/{ 411 s//\1/ 412 q 413 } 414 s/.*/./; q'` 415 416# Avoid depending upon Character Ranges. 417as_cr_letters='abcdefghijklmnopqrstuvwxyz' 418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 419as_cr_Letters=$as_cr_letters$as_cr_LETTERS 420as_cr_digits='0123456789' 421as_cr_alnum=$as_cr_Letters$as_cr_digits 422 423 424 as_lineno_1=$LINENO as_lineno_1a=$LINENO 425 as_lineno_2=$LINENO as_lineno_2a=$LINENO 426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 429 sed -n ' 430 p 431 /[$]LINENO/= 432 ' <$as_myself | 433 sed ' 434 s/[$]LINENO.*/&-/ 435 t lineno 436 b 437 :lineno 438 N 439 :loop 440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 441 t loop 442 s/-\n.*// 443 ' >$as_me.lineno && 444 chmod +x "$as_me.lineno" || 445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 446 447 # Don't try to exec as it changes $[0], causing all sort of problems 448 # (the dirname of $[0] is not the place where we might find the 449 # original and so on. Autoconf is especially sensitive to this). 450 . "./$as_me.lineno" 451 # Exit status is that of the last command. 452 exit 453} 454 455ECHO_C= ECHO_N= ECHO_T= 456case `echo -n x` in #((((( 457-n*) 458 case `echo 'xy\c'` in 459 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 460 xy) ECHO_C='\c';; 461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 462 ECHO_T=' ';; 463 esac;; 464*) 465 ECHO_N='-n';; 466esac 467 468rm -f conf$$ conf$$.exe conf$$.file 469if test -d conf$$.dir; then 470 rm -f conf$$.dir/conf$$.file 471else 472 rm -f conf$$.dir 473 mkdir conf$$.dir 2>/dev/null 474fi 475if (echo >conf$$.file) 2>/dev/null; then 476 if ln -s conf$$.file conf$$ 2>/dev/null; then 477 as_ln_s='ln -s' 478 # ... but there are two gotchas: 479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 481 # In both cases, we have to default to `cp -p'. 482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 483 as_ln_s='cp -p' 484 elif ln conf$$.file conf$$ 2>/dev/null; then 485 as_ln_s=ln 486 else 487 as_ln_s='cp -p' 488 fi 489else 490 as_ln_s='cp -p' 491fi 492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 493rmdir conf$$.dir 2>/dev/null 494 495if mkdir -p . 2>/dev/null; then 496 as_mkdir_p='mkdir -p "$as_dir"' 497else 498 test -d ./-p && rmdir ./-p 499 as_mkdir_p=false 500fi 501 502if test -x / >/dev/null 2>&1; then 503 as_test_x='test -x' 504else 505 if ls -dL / >/dev/null 2>&1; then 506 as_ls_L_option=L 507 else 508 as_ls_L_option= 509 fi 510 as_test_x=' 511 eval sh -c '\'' 512 if test -d "$1"; then 513 test -d "$1/."; 514 else 515 case $1 in #( 516 -*)set "./$1";; 517 esac; 518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 519 ???[sx]*):;;*)false;;esac;fi 520 '\'' sh 521 ' 522fi 523as_executable_p=$as_test_x 524 525# Sed expression to map a string onto a valid CPP name. 526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 527 528# Sed expression to map a string onto a valid variable name. 529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 530 531 532 533# Check that we are running under the correct shell. 534SHELL=${CONFIG_SHELL-/bin/sh} 535 536case X$ECHO in 537X*--fallback-echo) 538 # Remove one level of quotation (which was required for Make). 539 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 540 ;; 541esac 542 543echo=${ECHO-echo} 544if test "X$1" = X--no-reexec; then 545 # Discard the --no-reexec flag, and continue. 546 shift 547elif test "X$1" = X--fallback-echo; then 548 # Avoid inline document here, it may be left over 549 : 550elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 551 # Yippee, $echo works! 552 : 553else 554 # Restart under the correct shell. 555 exec $SHELL "$0" --no-reexec ${1+"$@"} 556fi 557 558if test "X$1" = X--fallback-echo; then 559 # used as fallback echo 560 shift 561 cat <<EOF 562$* 563EOF 564 exit 0 565fi 566 567# The HP-UX ksh and POSIX shell print the target directory to stdout 568# if CDPATH is set. 569(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 570 571if test -z "$ECHO"; then 572if test "X${echo_test_string+set}" != Xset; then 573# find a string as large as possible, as long as the shell can cope with it 574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 576 if (echo_test_string=`eval $cmd`) 2>/dev/null && 577 echo_test_string=`eval $cmd` && 578 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 579 then 580 break 581 fi 582 done 583fi 584 585if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 586 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 587 test "X$echo_testing_string" = "X$echo_test_string"; then 588 : 589else 590 # The Solaris, AIX, and Digital Unix default echo programs unquote 591 # backslashes. This makes it impossible to quote backslashes using 592 # echo "$something" | sed 's/\\/\\\\/g' 593 # 594 # So, first we look for a working echo in the user's PATH. 595 596 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 597 for dir in $PATH /usr/ucb; do 598 IFS="$lt_save_ifs" 599 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 600 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 601 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 602 test "X$echo_testing_string" = "X$echo_test_string"; then 603 echo="$dir/echo" 604 break 605 fi 606 done 607 IFS="$lt_save_ifs" 608 609 if test "X$echo" = Xecho; then 610 # We didn't find a better echo, so look for alternatives. 611 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 612 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 613 test "X$echo_testing_string" = "X$echo_test_string"; then 614 # This shell has a builtin print -r that does the trick. 615 echo='print -r' 616 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 617 test "X$CONFIG_SHELL" != X/bin/ksh; then 618 # If we have ksh, try running configure again with it. 619 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 620 export ORIGINAL_CONFIG_SHELL 621 CONFIG_SHELL=/bin/ksh 622 export CONFIG_SHELL 623 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 624 else 625 # Try using printf. 626 echo='printf %s\n' 627 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 628 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 629 test "X$echo_testing_string" = "X$echo_test_string"; then 630 # Cool, printf works 631 : 632 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 633 test "X$echo_testing_string" = 'X\t' && 634 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 635 test "X$echo_testing_string" = "X$echo_test_string"; then 636 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 637 export CONFIG_SHELL 638 SHELL="$CONFIG_SHELL" 639 export SHELL 640 echo="$CONFIG_SHELL $0 --fallback-echo" 641 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 642 test "X$echo_testing_string" = 'X\t' && 643 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 644 test "X$echo_testing_string" = "X$echo_test_string"; then 645 echo="$CONFIG_SHELL $0 --fallback-echo" 646 else 647 # maybe with a smaller string... 648 prev=: 649 650 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 651 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 652 then 653 break 654 fi 655 prev="$cmd" 656 done 657 658 if test "$prev" != 'sed 50q "$0"'; then 659 echo_test_string=`eval $prev` 660 export echo_test_string 661 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 662 else 663 # Oops. We lost completely, so just stick with echo. 664 echo=echo 665 fi 666 fi 667 fi 668 fi 669fi 670fi 671 672# Copy echo and quote the copy suitably for passing to libtool from 673# the Makefile, instead of quoting the original, which is used later. 674ECHO=$echo 675if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 676 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 677fi 678 679 680 681 682tagnames=${tagnames+${tagnames},}CXX 683 684tagnames=${tagnames+${tagnames},}F77 685 686test -n "$DJDIR" || exec 7<&0 </dev/null 687exec 6>&1 688 689# Name of the host. 690# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 691# so uname gets run too. 692ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 693 694# 695# Initializations. 696# 697ac_default_prefix=/usr/local 698ac_clean_files= 699ac_config_libobj_dir=. 700LIBOBJS= 701cross_compiling=no 702subdirs= 703MFLAGS= 704MAKEFLAGS= 705 706# Identity of this package. 707PACKAGE_NAME='SoQt' 708PACKAGE_TARNAME='soqt' 709PACKAGE_VERSION='1.6.0' 710PACKAGE_STRING='SoQt 1.6.0' 711PACKAGE_BUGREPORT='coin-support@coin3d.org' 712PACKAGE_URL='' 713 714ac_unique_file="src/Inventor/Qt/SoQt.cpp" 715# Factoring default headers for most tests. 716ac_includes_default="\ 717#include <stdio.h> 718#ifdef HAVE_SYS_TYPES_H 719# include <sys/types.h> 720#endif 721#ifdef HAVE_SYS_STAT_H 722# include <sys/stat.h> 723#endif 724#ifdef STDC_HEADERS 725# include <stdlib.h> 726# include <stddef.h> 727#else 728# ifdef HAVE_STDLIB_H 729# include <stdlib.h> 730# endif 731#endif 732#ifdef HAVE_STRING_H 733# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 734# include <memory.h> 735# endif 736# include <string.h> 737#endif 738#ifdef HAVE_STRINGS_H 739# include <strings.h> 740#endif 741#ifdef HAVE_INTTYPES_H 742# include <inttypes.h> 743#endif 744#ifdef HAVE_STDINT_H 745# include <stdint.h> 746#endif 747#ifdef HAVE_UNISTD_H 748# include <unistd.h> 749#endif" 750 751ac_subst_vars='LTLIBOBJS 752LIBOBJS 753MACOSX_PACKAGEABLE_FALSE 754MACOSX_PACKAGEABLE_TRUE 755sim_ac_packagemaker_app 756SOQT_LIB_DSP_DEFS 757SOQT_DSP_DEFS 758SOQT_DSP_INCS 759SOQT_DSP_LIBS 760BUILD_WITH_MSVC_FALSE 761BUILD_WITH_MSVC_TRUE 762LIBFLAGS 763soqt_w32_src_dir 764soqt_src_dir 765soqt_w32_build_dir 766soqt_build_dir 767COMPONENTHEADER 768EVENT 769WIDGET 770GUI 771gui 772Gui 773UNIX2WINPATH 774MACOSX_10_2FF_FALSE 775MACOSX_10_2FF_TRUE 776MACOSX_FALSE 777MACOSX_TRUE 778MAC_FRAMEWORK_FALSE 779MAC_FRAMEWORK_TRUE 780nop 781MAC_FRAMEWORK_VERSION 782MAC_FRAMEWORK_PREFIX 783MAC_FRAMEWORK_NAME 784MAC_FRAMEWORK 785soguiincludedir 786ivincludedir 787frameworkdir 788ivframeworkdir 789ac_compiler_gnu 790COIN_COMPILER 791DSUFFIX 792HAVE_JOYSTICK_LINUX_FALSE 793HAVE_JOYSTICK_LINUX_TRUE 794sim_ac_qt_cygpath 795QT_VERSION 796MOC 797QT4_LIBS 798QT4_CFLAGS 799PKG_CONFIG 800sim_ac_coin_configcmd 801X_EXTRA_LIBS 802X_LIBS 803X_PRE_LIBS 804X_CFLAGS 805XMKMF 806meta_prefix 807BUILD_METAFILES_FALSE 808BUILD_METAFILES_TRUE 809SOGUI_MINOR_VERSION 810SOGUI_MAJOR_VERSION 811path_tag 812sim_ac_perl_exe 813sim_ac_doxygen_exe 814sim_ac_hhc_exe 815BUILD_HTMLHELP_FALSE 816BUILD_HTMLHELP_TRUE 817BUILD_HTMLPAGES_FALSE 818BUILD_HTMLPAGES_TRUE 819BUILD_MANPAGES_FALSE 820BUILD_MANPAGES_TRUE 821sogui_man_dir 822sogui_html_help_dir 823sogui_html_dir 824sogui_src_dir 825sogui_build_dir 826SOGUI_DOC_HTML_HELP 827SOGUI_DOC_MAN 828SOGUI_DOC_HTML 829htmlhelpdir 830BUILD_LIBRARY_FALSE 831BUILD_LIBRARY_TRUE 832SUFFIX 833CONFIG 834HACKING_COMPACT_BUILD_FALSE 835HACKING_COMPACT_BUILD_TRUE 836SOGUI_EXTRA_LIBS 837SOGUI_EXTRA_LDFLAGS 838SOGUI_EXTRA_CXXFLAGS 839SOGUI_EXTRA_CFLAGS 840SOGUI_EXTRA_CPPFLAGS 841LIBTOOL 842ac_ct_F77 843FFLAGS 844F77 845NMEDIT 846DSYMUTIL 847RANLIB 848AR 849ECHO 850LN_S 851EGREP 852GREP 853SED 854SOGUI_MSVC_LIBC 855CXXCPP 856am__fastdepCXX_FALSE 857am__fastdepCXX_TRUE 858CXXDEPMODE 859ac_ct_CXX 860CXXFLAGS 861CXX 862CPP 863am__fastdepCC_FALSE 864am__fastdepCC_TRUE 865CCDEPMODE 866AMDEPBACKSLASH 867AMDEP_FALSE 868AMDEP_TRUE 869am__quote 870am__include 871DEPDIR 872OBJEXT 873EXEEXT 874ac_ct_CC 875CPPFLAGS 876LDFLAGS 877CFLAGS 878CC 879MAINT 880MAINTAINER_MODE_FALSE 881MAINTAINER_MODE_TRUE 882am__leading_dot 883SET_MAKE 884AWK 885mkdir_p 886INSTALL_STRIP_PROGRAM 887STRIP 888install_sh 889AMTAR 890MAKEINFO 891AUTOHEADER 892AUTOMAKE 893AUTOCONF 894ACLOCAL 895VERSION 896PACKAGE 897CYGPATH_W 898INSTALL_DATA 899INSTALL_SCRIPT 900INSTALL_PROGRAM 901sim_ac_relative_src_dir_p 902sim_ac_relative_src_dir 903ac_unique_file 904SOQT_SO_VERSION 905LT_AGE 906LT_REVISION 907LT_CURRENT 908SOQT_VERSION 909SOQT_BETA_VERSION 910SOQT_MICRO_VERSION 911SOQT_MINOR_VERSION 912SOQT_MAJOR_VERSION 913BUILD_WITH_MSVC 914target_os 915target_vendor 916target_cpu 917target 918host_os 919host_vendor 920host_cpu 921host 922build_os 923build_vendor 924build_cpu 925build 926target_alias 927host_alias 928build_alias 929LIBS 930ECHO_T 931ECHO_N 932ECHO_C 933DEFS 934mandir 935localedir 936libdir 937psdir 938pdfdir 939dvidir 940htmldir 941infodir 942docdir 943oldincludedir 944includedir 945localstatedir 946sharedstatedir 947sysconfdir 948datadir 949datarootdir 950libexecdir 951sbindir 952bindir 953program_transform_name 954prefix 955exec_prefix 956PACKAGE_URL 957PACKAGE_BUGREPORT 958PACKAGE_STRING 959PACKAGE_VERSION 960PACKAGE_TARNAME 961PACKAGE_NAME 962PATH_SEPARATOR 963SHELL' 964ac_subst_files='' 965ac_user_opts=' 966enable_option_checking 967enable_msvcdsp 968enable_msvc 969enable_universal 970enable_static 971enable_maintainer_mode 972enable_dependency_tracking 973with_msvcrt 974enable_shared 975enable_fast_install 976with_gnu_ld 977enable_libtool_lock 978with_pic 979with_tags 980enable_compact 981with_alternate 982with_suffix 983enable_build 984enable_html 985enable_man 986enable_html_help 987with_doxygen 988with_x 989enable_darwin_x11 990enable_loadlibrary 991enable_inventor_debug 992with_dl 993with_mesa 994with_opengl 995with_pthread 996with_glu 997with_inventor 998with_inventor_xt 999with_inventor_qt 1000with_coin 1001with_iv_extensions 1002enable_pkgconfig 1003with_qt 1004enable_qt_debug 1005enable_optimization 1006enable_debug 1007enable_symbols 1008enable_rtti 1009enable_exceptions 1010enable_profile 1011enable_warnings 1012enable_static_defaults 1013with_framework 1014with_framework_prefix 1015' 1016 ac_precious_vars='build_alias 1017host_alias 1018target_alias 1019CC 1020CFLAGS 1021LDFLAGS 1022LIBS 1023CPPFLAGS 1024CPP 1025CXX 1026CXXFLAGS 1027CCC 1028CXXCPP 1029F77 1030FFLAGS 1031htmlhelpdir 1032XMKMF 1033PKG_CONFIG 1034QT4_CFLAGS 1035QT4_LIBS' 1036 1037 1038# Initialize some variables set by options. 1039ac_init_help= 1040ac_init_version=false 1041ac_unrecognized_opts= 1042ac_unrecognized_sep= 1043# The variables have the same names as the options, with 1044# dashes changed to underlines. 1045cache_file=/dev/null 1046exec_prefix=NONE 1047no_create= 1048no_recursion= 1049prefix=NONE 1050program_prefix=NONE 1051program_suffix=NONE 1052program_transform_name=s,x,x, 1053silent= 1054site= 1055srcdir= 1056verbose= 1057x_includes=NONE 1058x_libraries=NONE 1059 1060# Installation directory options. 1061# These are left unexpanded so users can "make install exec_prefix=/foo" 1062# and all the variables that are supposed to be based on exec_prefix 1063# by default will actually change. 1064# Use braces instead of parens because sh, perl, etc. also accept them. 1065# (The list follows the same order as the GNU Coding Standards.) 1066bindir='${exec_prefix}/bin' 1067sbindir='${exec_prefix}/sbin' 1068libexecdir='${exec_prefix}/libexec' 1069datarootdir='${prefix}/share' 1070datadir='${datarootdir}' 1071sysconfdir='${prefix}/etc' 1072sharedstatedir='${prefix}/com' 1073localstatedir='${prefix}/var' 1074includedir='${prefix}/include' 1075oldincludedir='/usr/include' 1076docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1077infodir='${datarootdir}/info' 1078htmldir='${docdir}' 1079dvidir='${docdir}' 1080pdfdir='${docdir}' 1081psdir='${docdir}' 1082libdir='${exec_prefix}/lib' 1083localedir='${datarootdir}/locale' 1084mandir='${datarootdir}/man' 1085 1086ac_prev= 1087ac_dashdash= 1088for ac_option 1089do 1090 # If the previous option needs an argument, assign it. 1091 if test -n "$ac_prev"; then 1092 eval $ac_prev=\$ac_option 1093 ac_prev= 1094 continue 1095 fi 1096 1097 case $ac_option in 1098 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1099 *) ac_optarg=yes ;; 1100 esac 1101 1102 # Accept the important Cygnus configure options, so we can diagnose typos. 1103 1104 case $ac_dashdash$ac_option in 1105 --) 1106 ac_dashdash=yes ;; 1107 1108 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1109 ac_prev=bindir ;; 1110 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1111 bindir=$ac_optarg ;; 1112 1113 -build | --build | --buil | --bui | --bu) 1114 ac_prev=build_alias ;; 1115 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1116 build_alias=$ac_optarg ;; 1117 1118 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1119 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1120 ac_prev=cache_file ;; 1121 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1122 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1123 cache_file=$ac_optarg ;; 1124 1125 --config-cache | -C) 1126 cache_file=config.cache ;; 1127 1128 -datadir | --datadir | --datadi | --datad) 1129 ac_prev=datadir ;; 1130 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1131 datadir=$ac_optarg ;; 1132 1133 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1134 | --dataroo | --dataro | --datar) 1135 ac_prev=datarootdir ;; 1136 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1137 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1138 datarootdir=$ac_optarg ;; 1139 1140 -disable-* | --disable-*) 1141 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1142 # Reject names that are not valid shell variable names. 1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1144 as_fn_error "invalid feature name: $ac_useropt" 1145 ac_useropt_orig=$ac_useropt 1146 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1147 case $ac_user_opts in 1148 *" 1149"enable_$ac_useropt" 1150"*) ;; 1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1152 ac_unrecognized_sep=', ';; 1153 esac 1154 eval enable_$ac_useropt=no ;; 1155 1156 -docdir | --docdir | --docdi | --doc | --do) 1157 ac_prev=docdir ;; 1158 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1159 docdir=$ac_optarg ;; 1160 1161 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1162 ac_prev=dvidir ;; 1163 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1164 dvidir=$ac_optarg ;; 1165 1166 -enable-* | --enable-*) 1167 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1168 # Reject names that are not valid shell variable names. 1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1170 as_fn_error "invalid feature name: $ac_useropt" 1171 ac_useropt_orig=$ac_useropt 1172 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1173 case $ac_user_opts in 1174 *" 1175"enable_$ac_useropt" 1176"*) ;; 1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1178 ac_unrecognized_sep=', ';; 1179 esac 1180 eval enable_$ac_useropt=\$ac_optarg ;; 1181 1182 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1183 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1184 | --exec | --exe | --ex) 1185 ac_prev=exec_prefix ;; 1186 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1187 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1188 | --exec=* | --exe=* | --ex=*) 1189 exec_prefix=$ac_optarg ;; 1190 1191 -gas | --gas | --ga | --g) 1192 # Obsolete; use --with-gas. 1193 with_gas=yes ;; 1194 1195 -help | --help | --hel | --he | -h) 1196 ac_init_help=long ;; 1197 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1198 ac_init_help=recursive ;; 1199 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1200 ac_init_help=short ;; 1201 1202 -host | --host | --hos | --ho) 1203 ac_prev=host_alias ;; 1204 -host=* | --host=* | --hos=* | --ho=*) 1205 host_alias=$ac_optarg ;; 1206 1207 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1208 ac_prev=htmldir ;; 1209 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1210 | --ht=*) 1211 htmldir=$ac_optarg ;; 1212 1213 -includedir | --includedir | --includedi | --included | --include \ 1214 | --includ | --inclu | --incl | --inc) 1215 ac_prev=includedir ;; 1216 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1217 | --includ=* | --inclu=* | --incl=* | --inc=*) 1218 includedir=$ac_optarg ;; 1219 1220 -infodir | --infodir | --infodi | --infod | --info | --inf) 1221 ac_prev=infodir ;; 1222 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1223 infodir=$ac_optarg ;; 1224 1225 -libdir | --libdir | --libdi | --libd) 1226 ac_prev=libdir ;; 1227 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1228 libdir=$ac_optarg ;; 1229 1230 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1231 | --libexe | --libex | --libe) 1232 ac_prev=libexecdir ;; 1233 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1234 | --libexe=* | --libex=* | --libe=*) 1235 libexecdir=$ac_optarg ;; 1236 1237 -localedir | --localedir | --localedi | --localed | --locale) 1238 ac_prev=localedir ;; 1239 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1240 localedir=$ac_optarg ;; 1241 1242 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1243 | --localstate | --localstat | --localsta | --localst | --locals) 1244 ac_prev=localstatedir ;; 1245 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1246 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1247 localstatedir=$ac_optarg ;; 1248 1249 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1250 ac_prev=mandir ;; 1251 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1252 mandir=$ac_optarg ;; 1253 1254 -nfp | --nfp | --nf) 1255 # Obsolete; use --without-fp. 1256 with_fp=no ;; 1257 1258 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1259 | --no-cr | --no-c | -n) 1260 no_create=yes ;; 1261 1262 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1263 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1264 no_recursion=yes ;; 1265 1266 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1267 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1268 | --oldin | --oldi | --old | --ol | --o) 1269 ac_prev=oldincludedir ;; 1270 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1271 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1272 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1273 oldincludedir=$ac_optarg ;; 1274 1275 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1276 ac_prev=prefix ;; 1277 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1278 prefix=$ac_optarg ;; 1279 1280 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1281 | --program-pre | --program-pr | --program-p) 1282 ac_prev=program_prefix ;; 1283 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1284 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1285 program_prefix=$ac_optarg ;; 1286 1287 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1288 | --program-suf | --program-su | --program-s) 1289 ac_prev=program_suffix ;; 1290 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1291 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1292 program_suffix=$ac_optarg ;; 1293 1294 -program-transform-name | --program-transform-name \ 1295 | --program-transform-nam | --program-transform-na \ 1296 | --program-transform-n | --program-transform- \ 1297 | --program-transform | --program-transfor \ 1298 | --program-transfo | --program-transf \ 1299 | --program-trans | --program-tran \ 1300 | --progr-tra | --program-tr | --program-t) 1301 ac_prev=program_transform_name ;; 1302 -program-transform-name=* | --program-transform-name=* \ 1303 | --program-transform-nam=* | --program-transform-na=* \ 1304 | --program-transform-n=* | --program-transform-=* \ 1305 | --program-transform=* | --program-transfor=* \ 1306 | --program-transfo=* | --program-transf=* \ 1307 | --program-trans=* | --program-tran=* \ 1308 | --progr-tra=* | --program-tr=* | --program-t=*) 1309 program_transform_name=$ac_optarg ;; 1310 1311 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1312 ac_prev=pdfdir ;; 1313 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1314 pdfdir=$ac_optarg ;; 1315 1316 -psdir | --psdir | --psdi | --psd | --ps) 1317 ac_prev=psdir ;; 1318 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1319 psdir=$ac_optarg ;; 1320 1321 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1322 | -silent | --silent | --silen | --sile | --sil) 1323 silent=yes ;; 1324 1325 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1326 ac_prev=sbindir ;; 1327 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1328 | --sbi=* | --sb=*) 1329 sbindir=$ac_optarg ;; 1330 1331 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1332 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1333 | --sharedst | --shareds | --shared | --share | --shar \ 1334 | --sha | --sh) 1335 ac_prev=sharedstatedir ;; 1336 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1337 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1338 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1339 | --sha=* | --sh=*) 1340 sharedstatedir=$ac_optarg ;; 1341 1342 -site | --site | --sit) 1343 ac_prev=site ;; 1344 -site=* | --site=* | --sit=*) 1345 site=$ac_optarg ;; 1346 1347 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1348 ac_prev=srcdir ;; 1349 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1350 srcdir=$ac_optarg ;; 1351 1352 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1353 | --syscon | --sysco | --sysc | --sys | --sy) 1354 ac_prev=sysconfdir ;; 1355 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1356 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1357 sysconfdir=$ac_optarg ;; 1358 1359 -target | --target | --targe | --targ | --tar | --ta | --t) 1360 ac_prev=target_alias ;; 1361 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1362 target_alias=$ac_optarg ;; 1363 1364 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1365 verbose=yes ;; 1366 1367 -version | --version | --versio | --versi | --vers | -V) 1368 ac_init_version=: ;; 1369 1370 -with-* | --with-*) 1371 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1372 # Reject names that are not valid shell variable names. 1373 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1374 as_fn_error "invalid package name: $ac_useropt" 1375 ac_useropt_orig=$ac_useropt 1376 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1377 case $ac_user_opts in 1378 *" 1379"with_$ac_useropt" 1380"*) ;; 1381 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1382 ac_unrecognized_sep=', ';; 1383 esac 1384 eval with_$ac_useropt=\$ac_optarg ;; 1385 1386 -without-* | --without-*) 1387 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1388 # Reject names that are not valid shell variable names. 1389 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1390 as_fn_error "invalid package name: $ac_useropt" 1391 ac_useropt_orig=$ac_useropt 1392 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1393 case $ac_user_opts in 1394 *" 1395"with_$ac_useropt" 1396"*) ;; 1397 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1398 ac_unrecognized_sep=', ';; 1399 esac 1400 eval with_$ac_useropt=no ;; 1401 1402 --x) 1403 # Obsolete; use --with-x. 1404 with_x=yes ;; 1405 1406 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1407 | --x-incl | --x-inc | --x-in | --x-i) 1408 ac_prev=x_includes ;; 1409 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1410 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1411 x_includes=$ac_optarg ;; 1412 1413 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1414 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1415 ac_prev=x_libraries ;; 1416 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1417 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1418 x_libraries=$ac_optarg ;; 1419 1420 -*) as_fn_error "unrecognized option: \`$ac_option' 1421Try \`$0 --help' for more information." 1422 ;; 1423 1424 *=*) 1425 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1426 # Reject names that are not valid shell variable names. 1427 case $ac_envvar in #( 1428 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1429 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1430 esac 1431 eval $ac_envvar=\$ac_optarg 1432 export $ac_envvar ;; 1433 1434 *) 1435 # FIXME: should be removed in autoconf 3.0. 1436 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1437 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1438 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1439 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1440 ;; 1441 1442 esac 1443done 1444 1445if test -n "$ac_prev"; then 1446 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1447 as_fn_error "missing argument to $ac_option" 1448fi 1449 1450if test -n "$ac_unrecognized_opts"; then 1451 case $enable_option_checking in 1452 no) ;; 1453 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1454 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1455 esac 1456fi 1457 1458# Check all directory arguments for consistency. 1459for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1460 datadir sysconfdir sharedstatedir localstatedir includedir \ 1461 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1462 libdir localedir mandir 1463do 1464 eval ac_val=\$$ac_var 1465 # Remove trailing slashes. 1466 case $ac_val in 1467 */ ) 1468 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1469 eval $ac_var=\$ac_val;; 1470 esac 1471 # Be sure to have absolute directory names. 1472 case $ac_val in 1473 [\\/$]* | ?:[\\/]* ) continue;; 1474 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1475 esac 1476 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1477done 1478 1479# There might be people who depend on the old broken behavior: `$host' 1480# used to hold the argument of --host etc. 1481# FIXME: To remove some day. 1482build=$build_alias 1483host=$host_alias 1484target=$target_alias 1485 1486# FIXME: To remove some day. 1487if test "x$host_alias" != x; then 1488 if test "x$build_alias" = x; then 1489 cross_compiling=maybe 1490 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1491 If a cross compiler is detected then cross compile mode will be used." >&2 1492 elif test "x$build_alias" != "x$host_alias"; then 1493 cross_compiling=yes 1494 fi 1495fi 1496 1497ac_tool_prefix= 1498test -n "$host_alias" && ac_tool_prefix=$host_alias- 1499 1500test "$silent" = yes && exec 6>/dev/null 1501 1502 1503ac_pwd=`pwd` && test -n "$ac_pwd" && 1504ac_ls_di=`ls -di .` && 1505ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1506 as_fn_error "working directory cannot be determined" 1507test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1508 as_fn_error "pwd does not report name of working directory" 1509 1510 1511# Find the source files, if location was not specified. 1512if test -z "$srcdir"; then 1513 ac_srcdir_defaulted=yes 1514 # Try the directory containing this script, then the parent directory. 1515 ac_confdir=`$as_dirname -- "$as_myself" || 1516$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1517 X"$as_myself" : 'X\(//\)[^/]' \| \ 1518 X"$as_myself" : 'X\(//\)$' \| \ 1519 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1520$as_echo X"$as_myself" | 1521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1522 s//\1/ 1523 q 1524 } 1525 /^X\(\/\/\)[^/].*/{ 1526 s//\1/ 1527 q 1528 } 1529 /^X\(\/\/\)$/{ 1530 s//\1/ 1531 q 1532 } 1533 /^X\(\/\).*/{ 1534 s//\1/ 1535 q 1536 } 1537 s/.*/./; q'` 1538 srcdir=$ac_confdir 1539 if test ! -r "$srcdir/$ac_unique_file"; then 1540 srcdir=.. 1541 fi 1542else 1543 ac_srcdir_defaulted=no 1544fi 1545if test ! -r "$srcdir/$ac_unique_file"; then 1546 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1547 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1548fi 1549ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1550ac_abs_confdir=`( 1551 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1552 pwd)` 1553# When building in place, set srcdir=. 1554if test "$ac_abs_confdir" = "$ac_pwd"; then 1555 srcdir=. 1556fi 1557# Remove unnecessary trailing slashes from srcdir. 1558# Double slashes in file names in object file debugging info 1559# mess up M-x gdb in Emacs. 1560case $srcdir in 1561*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1562esac 1563for ac_var in $ac_precious_vars; do 1564 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1565 eval ac_env_${ac_var}_value=\$${ac_var} 1566 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1567 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1568done 1569 1570# 1571# Report the --help message. 1572# 1573if test "$ac_init_help" = "long"; then 1574 # Omit some internal or obsolete options to make the list less imposing. 1575 # This message is too long to be a string in the A/UX 3.1 sh. 1576 cat <<_ACEOF 1577\`configure' configures SoQt 1.6.0 to adapt to many kinds of systems. 1578 1579Usage: $0 [OPTION]... [VAR=VALUE]... 1580 1581To assign environment variables (e.g., CC, CFLAGS...), specify them as 1582VAR=VALUE. See below for descriptions of some of the useful variables. 1583 1584Defaults for the options are specified in brackets. 1585 1586Configuration: 1587 -h, --help display this help and exit 1588 --help=short display options specific to this package 1589 --help=recursive display the short help of all the included packages 1590 -V, --version display version information and exit 1591 -q, --quiet, --silent do not print \`checking...' messages 1592 --cache-file=FILE cache test results in FILE [disabled] 1593 -C, --config-cache alias for \`--cache-file=config.cache' 1594 -n, --no-create do not create output files 1595 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1596 1597Installation directories: 1598 --prefix=PREFIX install architecture-independent files in PREFIX 1599 [$ac_default_prefix] 1600 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1601 [PREFIX] 1602 1603By default, \`make install' will install all the files in 1604\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1605an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1606for instance \`--prefix=\$HOME'. 1607 1608For better control, use the options below. 1609 1610Fine tuning of the installation directories: 1611 --bindir=DIR user executables [EPREFIX/bin] 1612 --sbindir=DIR system admin executables [EPREFIX/sbin] 1613 --libexecdir=DIR program executables [EPREFIX/libexec] 1614 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1615 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1616 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1617 --libdir=DIR object code libraries [EPREFIX/lib] 1618 --includedir=DIR C header files [PREFIX/include] 1619 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1620 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1621 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1622 --infodir=DIR info documentation [DATAROOTDIR/info] 1623 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1624 --mandir=DIR man documentation [DATAROOTDIR/man] 1625 --docdir=DIR documentation root [DATAROOTDIR/doc/soqt] 1626 --htmldir=DIR html documentation [DOCDIR] 1627 --dvidir=DIR dvi documentation [DOCDIR] 1628 --pdfdir=DIR pdf documentation [DOCDIR] 1629 --psdir=DIR ps documentation [DOCDIR] 1630_ACEOF 1631 1632 cat <<\_ACEOF 1633 1634Program names: 1635 --program-prefix=PREFIX prepend PREFIX to installed program names 1636 --program-suffix=SUFFIX append SUFFIX to installed program names 1637 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1638 1639X features: 1640 --x-includes=DIR X include files are in DIR 1641 --x-libraries=DIR X library files are in DIR 1642 1643System types: 1644 --build=BUILD configure for building on BUILD [guessed] 1645 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1646 --target=TARGET configure for building compilers for TARGET [HOST] 1647_ACEOF 1648fi 1649 1650if test -n "$ac_init_help"; then 1651 case $ac_init_help in 1652 short | recursive ) echo "Configuration of SoQt 1.6.0:";; 1653 esac 1654 cat <<\_ACEOF 1655 1656Optional Features: 1657 --disable-option-checking ignore unrecognized --enable/--with options 1658 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1659 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1660 --enable-msvcdsp build .dsp, not library 1661 --disable-msvc don't require MS Visual C++ on Cygwin 1662 --enable-universal build Universal Binaries 1663 --enable-static[=PKGS] build static libraries [default=no] 1664 --enable-maintainer-mode enable make rules and dependencies not useful 1665 (and sometimes confusing) to the casual installer 1666 --disable-dependency-tracking speeds up one-time build 1667 --enable-dependency-tracking do not reject slow dependency extractors 1668 --enable-shared[=PKGS] build shared libraries [default=yes] 1669 --enable-fast-install[=PKGS] 1670 optimize for fast installation [default=yes] 1671 --disable-libtool-lock avoid locking (might break parallel builds) 1672 --enable-compact enable hack for compact compilation [[default=no]] 1673 --disable-build disable configuring for library build 1674 --enable-html build and install SoQt HTML documentation 1675 --enable-man build and install SoQt man pages 1676 --enable-html-help build and install SoQt HTML-help documentation 1677 --enable-darwin-x11 enable X11 on Darwin 1678 [[default=--disable-darwin-x11]] 1679 --disable-loadlibrary don't use run-time link bindings under Win32 1680 --enable-inventor-debug use debug version of TGS inventor 1681 --enable-pkgconfig enable pkgconfig usage for Qt4 detection 1682 [[default=yes]] 1683 --enable-qt-debug win32: link with debug versions of Qt libraries 1684 --enable-optimization allow compilers to make optimized code 1685 [[default=yes]] 1686 --enable-debug compile in debug mode [[default=yes]] 1687 --enable-symbols include symbol debug information [[default=yes]] 1688 --enable-rtti (g++ only) compile with RTTI [[default=yes]] 1689 --enable-exceptions (g++ only) compile with exceptions [[default=yes]] 1690 --enable-profile (GCC only) turn on inclusion of profiling code 1691 [[default=no]] 1692 --enable-warnings turn on warnings when compiling [[default=yes]] 1693 --disable-static-defaults 1694 Disable defaults from being statically linked in 1695 1696Optional Packages: 1697 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1698 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1699 --with-msvcrt=<crt> set which C run-time library to build against 1700 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1701 --with-pic try to use only PIC/non-PIC objects [default=use 1702 both] 1703 --with-tags[=TAGS] include additional configurations [automatic] 1704 --with-alternate=string specify name of alternate configuration 1705 --with-suffix=string specify library name suffix (e.g. "_g") 1706 --with-doxygen=DIR DIR is the directory where the doxygen executable 1707 resides 1708 --with-x use the X Window System 1709 --with-dl=DIR include support for the dynamic link loader library 1710 [default=yes] 1711 --with-mesa prefer MesaGL (if found) over OpenGL [[default=no]] 1712 --with-opengl=DIR OpenGL/Mesa installation directory 1713 --with-pthread=DIR pthread installation directory 1714 --with-glu=DIR use the OpenGL utility library [[default=yes]] 1715 --with-inventor use SGI or TGS Open Inventor rather than Coin 1716 [[default=no]] 1717 --with-inventor=PATH specify where SGI or TGS Open Inventor resides 1718 --with-inventor-xt use InventorXt when using SGI or TGS Open Inventor 1719 [[default=yes]] 1720 --with-inventor-xt=PATH specify where InventorXt resides 1721 --with-inventor-qt use InventorQt when using SGI or TGS Open Inventor 1722 [[default=yes]] 1723 --with-inventor-qt=PATH specify where InventorQt resides 1724 --with-coin enable use of Coin [[default=yes]] 1725 --with-coin=DIR give prefix location of Coin 1726 --with-iv-extensions=extensions 1727 enable extra open inventor extensions 1728 --with-qt=true|false|DIR 1729 specify if Qt should be used, and optionally the 1730 location of the Qt library [default=true] 1731 --with-framework Do Mac OS X-like framework installation 1732 --without-framework Do regular installation on Mac OS X 1733 --with-framework-prefix=<path> (default: "/Library/Frameworks") 1734 1735Some influential environment variables: 1736 CC C compiler command 1737 CFLAGS C compiler flags 1738 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1739 nonstandard directory <lib dir> 1740 LIBS libraries to pass to the linker, e.g. -l<library> 1741 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1742 you have headers in a nonstandard directory <include dir> 1743 CPP C preprocessor 1744 CXX C++ compiler command 1745 CXXFLAGS C++ compiler flags 1746 CXXCPP C++ preprocessor 1747 F77 Fortran 77 compiler command 1748 FFLAGS Fortran 77 compiler flags 1749 htmlhelpdir destination for HTML-help docs (default 1750 ${datadir}/SoQt/htmlhelp) 1751 XMKMF Path to xmkmf, Makefile generator for X Window System 1752 PKG_CONFIG path to pkg-config utility 1753 QT4_CFLAGS C compiler flags for QT4, overriding pkg-config 1754 QT4_LIBS linker flags for QT4, overriding pkg-config 1755 1756Use these variables to override the choices made by `configure' or to help 1757it to find libraries and programs with nonstandard names/locations. 1758 1759Report bugs to <coin-support@coin3d.org>. 1760_ACEOF 1761ac_status=$? 1762fi 1763 1764if test "$ac_init_help" = "recursive"; then 1765 # If there are subdirs, report their specific --help. 1766 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1767 test -d "$ac_dir" || 1768 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1769 continue 1770 ac_builddir=. 1771 1772case "$ac_dir" in 1773.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1774*) 1775 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1776 # A ".." for each directory in $ac_dir_suffix. 1777 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1778 case $ac_top_builddir_sub in 1779 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1780 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1781 esac ;; 1782esac 1783ac_abs_top_builddir=$ac_pwd 1784ac_abs_builddir=$ac_pwd$ac_dir_suffix 1785# for backward compatibility: 1786ac_top_builddir=$ac_top_build_prefix 1787 1788case $srcdir in 1789 .) # We are building in place. 1790 ac_srcdir=. 1791 ac_top_srcdir=$ac_top_builddir_sub 1792 ac_abs_top_srcdir=$ac_pwd ;; 1793 [\\/]* | ?:[\\/]* ) # Absolute name. 1794 ac_srcdir=$srcdir$ac_dir_suffix; 1795 ac_top_srcdir=$srcdir 1796 ac_abs_top_srcdir=$srcdir ;; 1797 *) # Relative name. 1798 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1799 ac_top_srcdir=$ac_top_build_prefix$srcdir 1800 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1801esac 1802ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1803 1804 cd "$ac_dir" || { ac_status=$?; continue; } 1805 # Check for guested configure. 1806 if test -f "$ac_srcdir/configure.gnu"; then 1807 echo && 1808 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1809 elif test -f "$ac_srcdir/configure"; then 1810 echo && 1811 $SHELL "$ac_srcdir/configure" --help=recursive 1812 else 1813 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1814 fi || ac_status=$? 1815 cd "$ac_pwd" || { ac_status=$?; break; } 1816 done 1817fi 1818 1819test -n "$ac_init_help" && exit $ac_status 1820if $ac_init_version; then 1821 cat <<\_ACEOF 1822SoQt configure 1.6.0 1823generated by GNU Autoconf 2.65 1824 1825Copyright (C) 2009 Free Software Foundation, Inc. 1826This configure script is free software; the Free Software Foundation 1827gives unlimited permission to copy, distribute and modify it. 1828_ACEOF 1829 exit 1830fi 1831 1832## ------------------------ ## 1833## Autoconf initialization. ## 1834## ------------------------ ## 1835 1836# ac_fn_c_try_compile LINENO 1837# -------------------------- 1838# Try to compile conftest.$ac_ext, and return whether this succeeded. 1839ac_fn_c_try_compile () 1840{ 1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1842 rm -f conftest.$ac_objext 1843 if { { ac_try="$ac_compile" 1844case "(($ac_try" in 1845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1846 *) ac_try_echo=$ac_try;; 1847esac 1848eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1849$as_echo "$ac_try_echo"; } >&5 1850 (eval "$ac_compile") 2>conftest.err 1851 ac_status=$? 1852 if test -s conftest.err; then 1853 grep -v '^ *+' conftest.err >conftest.er1 1854 cat conftest.er1 >&5 1855 mv -f conftest.er1 conftest.err 1856 fi 1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1858 test $ac_status = 0; } && { 1859 test -z "$ac_c_werror_flag" || 1860 test ! -s conftest.err 1861 } && test -s conftest.$ac_objext; then : 1862 ac_retval=0 1863else 1864 $as_echo "$as_me: failed program was:" >&5 1865sed 's/^/| /' conftest.$ac_ext >&5 1866 1867 ac_retval=1 1868fi 1869 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1870 as_fn_set_status $ac_retval 1871 1872} # ac_fn_c_try_compile 1873 1874# ac_fn_c_try_cpp LINENO 1875# ---------------------- 1876# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1877ac_fn_c_try_cpp () 1878{ 1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1880 if { { ac_try="$ac_cpp conftest.$ac_ext" 1881case "(($ac_try" in 1882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1883 *) ac_try_echo=$ac_try;; 1884esac 1885eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1886$as_echo "$ac_try_echo"; } >&5 1887 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1888 ac_status=$? 1889 if test -s conftest.err; then 1890 grep -v '^ *+' conftest.err >conftest.er1 1891 cat conftest.er1 >&5 1892 mv -f conftest.er1 conftest.err 1893 fi 1894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1895 test $ac_status = 0; } >/dev/null && { 1896 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1897 test ! -s conftest.err 1898 }; then : 1899 ac_retval=0 1900else 1901 $as_echo "$as_me: failed program was:" >&5 1902sed 's/^/| /' conftest.$ac_ext >&5 1903 1904 ac_retval=1 1905fi 1906 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1907 as_fn_set_status $ac_retval 1908 1909} # ac_fn_c_try_cpp 1910 1911# ac_fn_cxx_try_compile LINENO 1912# ---------------------------- 1913# Try to compile conftest.$ac_ext, and return whether this succeeded. 1914ac_fn_cxx_try_compile () 1915{ 1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1917 rm -f conftest.$ac_objext 1918 if { { ac_try="$ac_compile" 1919case "(($ac_try" in 1920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1921 *) ac_try_echo=$ac_try;; 1922esac 1923eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1924$as_echo "$ac_try_echo"; } >&5 1925 (eval "$ac_compile") 2>conftest.err 1926 ac_status=$? 1927 if test -s conftest.err; then 1928 grep -v '^ *+' conftest.err >conftest.er1 1929 cat conftest.er1 >&5 1930 mv -f conftest.er1 conftest.err 1931 fi 1932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1933 test $ac_status = 0; } && { 1934 test -z "$ac_cxx_werror_flag" || 1935 test ! -s conftest.err 1936 } && test -s conftest.$ac_objext; then : 1937 ac_retval=0 1938else 1939 $as_echo "$as_me: failed program was:" >&5 1940sed 's/^/| /' conftest.$ac_ext >&5 1941 1942 ac_retval=1 1943fi 1944 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1945 as_fn_set_status $ac_retval 1946 1947} # ac_fn_cxx_try_compile 1948 1949# ac_fn_cxx_try_cpp LINENO 1950# ------------------------ 1951# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1952ac_fn_cxx_try_cpp () 1953{ 1954 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1955 if { { ac_try="$ac_cpp conftest.$ac_ext" 1956case "(($ac_try" in 1957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1958 *) ac_try_echo=$ac_try;; 1959esac 1960eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1961$as_echo "$ac_try_echo"; } >&5 1962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1963 ac_status=$? 1964 if test -s conftest.err; then 1965 grep -v '^ *+' conftest.err >conftest.er1 1966 cat conftest.er1 >&5 1967 mv -f conftest.er1 conftest.err 1968 fi 1969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1970 test $ac_status = 0; } >/dev/null && { 1971 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1972 test ! -s conftest.err 1973 }; then : 1974 ac_retval=0 1975else 1976 $as_echo "$as_me: failed program was:" >&5 1977sed 's/^/| /' conftest.$ac_ext >&5 1978 1979 ac_retval=1 1980fi 1981 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1982 as_fn_set_status $ac_retval 1983 1984} # ac_fn_cxx_try_cpp 1985 1986# ac_fn_cxx_try_link LINENO 1987# ------------------------- 1988# Try to link conftest.$ac_ext, and return whether this succeeded. 1989ac_fn_cxx_try_link () 1990{ 1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1992 rm -f conftest.$ac_objext conftest$ac_exeext 1993 if { { ac_try="$ac_link" 1994case "(($ac_try" in 1995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1996 *) ac_try_echo=$ac_try;; 1997esac 1998eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1999$as_echo "$ac_try_echo"; } >&5 2000 (eval "$ac_link") 2>conftest.err 2001 ac_status=$? 2002 if test -s conftest.err; then 2003 grep -v '^ *+' conftest.err >conftest.er1 2004 cat conftest.er1 >&5 2005 mv -f conftest.er1 conftest.err 2006 fi 2007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2008 test $ac_status = 0; } && { 2009 test -z "$ac_cxx_werror_flag" || 2010 test ! -s conftest.err 2011 } && test -s conftest$ac_exeext && { 2012 test "$cross_compiling" = yes || 2013 $as_test_x conftest$ac_exeext 2014 }; then : 2015 ac_retval=0 2016else 2017 $as_echo "$as_me: failed program was:" >&5 2018sed 's/^/| /' conftest.$ac_ext >&5 2019 2020 ac_retval=1 2021fi 2022 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2023 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2024 # interfere with the next link command; also delete a directory that is 2025 # left behind by Apple's compiler. We do this before executing the actions. 2026 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2027 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2028 as_fn_set_status $ac_retval 2029 2030} # ac_fn_cxx_try_link 2031 2032# ac_fn_c_try_link LINENO 2033# ----------------------- 2034# Try to link conftest.$ac_ext, and return whether this succeeded. 2035ac_fn_c_try_link () 2036{ 2037 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2038 rm -f conftest.$ac_objext conftest$ac_exeext 2039 if { { ac_try="$ac_link" 2040case "(($ac_try" in 2041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2042 *) ac_try_echo=$ac_try;; 2043esac 2044eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2045$as_echo "$ac_try_echo"; } >&5 2046 (eval "$ac_link") 2>conftest.err 2047 ac_status=$? 2048 if test -s conftest.err; then 2049 grep -v '^ *+' conftest.err >conftest.er1 2050 cat conftest.er1 >&5 2051 mv -f conftest.er1 conftest.err 2052 fi 2053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2054 test $ac_status = 0; } && { 2055 test -z "$ac_c_werror_flag" || 2056 test ! -s conftest.err 2057 } && test -s conftest$ac_exeext && { 2058 test "$cross_compiling" = yes || 2059 $as_test_x conftest$ac_exeext 2060 }; then : 2061 ac_retval=0 2062else 2063 $as_echo "$as_me: failed program was:" >&5 2064sed 's/^/| /' conftest.$ac_ext >&5 2065 2066 ac_retval=1 2067fi 2068 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2069 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2070 # interfere with the next link command; also delete a directory that is 2071 # left behind by Apple's compiler. We do this before executing the actions. 2072 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2073 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2074 as_fn_set_status $ac_retval 2075 2076} # ac_fn_c_try_link 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 { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2088$as_echo_n "checking for $2... " >&6; } 2089if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; 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.$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( cat <<\_ASBOX 2149## -------------------------------------- ## 2150## Report this to coin-support@coin3d.org ## 2151## -------------------------------------- ## 2152_ASBOX 2153 ) | sed "s/^/$as_me: WARNING: /" >&2 2154 ;; 2155esac 2156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2157$as_echo_n "checking for $2... " >&6; } 2158if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2159 $as_echo_n "(cached) " >&6 2160else 2161 eval "$3=\$ac_header_compiler" 2162fi 2163eval ac_res=\$$3 2164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2165$as_echo "$ac_res" >&6; } 2166fi 2167 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2168 2169} # ac_fn_c_check_header_mongrel 2170 2171# ac_fn_c_try_run LINENO 2172# ---------------------- 2173# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2174# that executables *can* be run. 2175ac_fn_c_try_run () 2176{ 2177 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2178 if { { ac_try="$ac_link" 2179case "(($ac_try" in 2180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2181 *) ac_try_echo=$ac_try;; 2182esac 2183eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2184$as_echo "$ac_try_echo"; } >&5 2185 (eval "$ac_link") 2>&5 2186 ac_status=$? 2187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2188 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2189 { { case "(($ac_try" in 2190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2191 *) ac_try_echo=$ac_try;; 2192esac 2193eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2194$as_echo "$ac_try_echo"; } >&5 2195 (eval "$ac_try") 2>&5 2196 ac_status=$? 2197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2198 test $ac_status = 0; }; }; then : 2199 ac_retval=0 2200else 2201 $as_echo "$as_me: program exited with status $ac_status" >&5 2202 $as_echo "$as_me: failed program was:" >&5 2203sed 's/^/| /' conftest.$ac_ext >&5 2204 2205 ac_retval=$ac_status 2206fi 2207 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2208 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2209 as_fn_set_status $ac_retval 2210 2211} # ac_fn_c_try_run 2212 2213# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2214# ------------------------------------------------------- 2215# Tests whether HEADER exists and can be compiled using the include files in 2216# INCLUDES, setting the cache variable VAR accordingly. 2217ac_fn_c_check_header_compile () 2218{ 2219 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2221$as_echo_n "checking for $2... " >&6; } 2222if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2223 $as_echo_n "(cached) " >&6 2224else 2225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2226/* end confdefs.h. */ 2227$4 2228#include <$2> 2229_ACEOF 2230if ac_fn_c_try_compile "$LINENO"; then : 2231 eval "$3=yes" 2232else 2233 eval "$3=no" 2234fi 2235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2236fi 2237eval ac_res=\$$3 2238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2239$as_echo "$ac_res" >&6; } 2240 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2241 2242} # ac_fn_c_check_header_compile 2243 2244# ac_fn_c_check_func LINENO FUNC VAR 2245# ---------------------------------- 2246# Tests whether FUNC exists, setting the cache variable VAR accordingly 2247ac_fn_c_check_func () 2248{ 2249 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2251$as_echo_n "checking for $2... " >&6; } 2252if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2253 $as_echo_n "(cached) " >&6 2254else 2255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2256/* end confdefs.h. */ 2257/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2258 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2259#define $2 innocuous_$2 2260 2261/* System header to define __stub macros and hopefully few prototypes, 2262 which can conflict with char $2 (); below. 2263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2264 <limits.h> exists even on freestanding compilers. */ 2265 2266#ifdef __STDC__ 2267# include <limits.h> 2268#else 2269# include <assert.h> 2270#endif 2271 2272#undef $2 2273 2274/* Override any GCC internal prototype to avoid an error. 2275 Use char because int might match the return type of a GCC 2276 builtin and then its argument prototype would still apply. */ 2277#ifdef __cplusplus 2278extern "C" 2279#endif 2280char $2 (); 2281/* The GNU C library defines this for functions which it implements 2282 to always fail with ENOSYS. Some functions are actually named 2283 something starting with __ and the normal name is an alias. */ 2284#if defined __stub_$2 || defined __stub___$2 2285choke me 2286#endif 2287 2288int 2289main () 2290{ 2291return $2 (); 2292 ; 2293 return 0; 2294} 2295_ACEOF 2296if ac_fn_c_try_link "$LINENO"; then : 2297 eval "$3=yes" 2298else 2299 eval "$3=no" 2300fi 2301rm -f core conftest.err conftest.$ac_objext \ 2302 conftest$ac_exeext conftest.$ac_ext 2303fi 2304eval ac_res=\$$3 2305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2306$as_echo "$ac_res" >&6; } 2307 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2308 2309} # ac_fn_c_check_func 2310 2311# ac_fn_f77_try_compile LINENO 2312# ---------------------------- 2313# Try to compile conftest.$ac_ext, and return whether this succeeded. 2314ac_fn_f77_try_compile () 2315{ 2316 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2317 rm -f conftest.$ac_objext 2318 if { { ac_try="$ac_compile" 2319case "(($ac_try" in 2320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2321 *) ac_try_echo=$ac_try;; 2322esac 2323eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2324$as_echo "$ac_try_echo"; } >&5 2325 (eval "$ac_compile") 2>conftest.err 2326 ac_status=$? 2327 if test -s conftest.err; then 2328 grep -v '^ *+' conftest.err >conftest.er1 2329 cat conftest.er1 >&5 2330 mv -f conftest.er1 conftest.err 2331 fi 2332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2333 test $ac_status = 0; } && { 2334 test -z "$ac_f77_werror_flag" || 2335 test ! -s conftest.err 2336 } && test -s conftest.$ac_objext; then : 2337 ac_retval=0 2338else 2339 $as_echo "$as_me: failed program was:" >&5 2340sed 's/^/| /' conftest.$ac_ext >&5 2341 2342 ac_retval=1 2343fi 2344 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2345 as_fn_set_status $ac_retval 2346 2347} # ac_fn_f77_try_compile 2348 2349# ac_fn_f77_try_link LINENO 2350# ------------------------- 2351# Try to link conftest.$ac_ext, and return whether this succeeded. 2352ac_fn_f77_try_link () 2353{ 2354 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2355 rm -f conftest.$ac_objext conftest$ac_exeext 2356 if { { ac_try="$ac_link" 2357case "(($ac_try" in 2358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2359 *) ac_try_echo=$ac_try;; 2360esac 2361eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2362$as_echo "$ac_try_echo"; } >&5 2363 (eval "$ac_link") 2>conftest.err 2364 ac_status=$? 2365 if test -s conftest.err; then 2366 grep -v '^ *+' conftest.err >conftest.er1 2367 cat conftest.er1 >&5 2368 mv -f conftest.er1 conftest.err 2369 fi 2370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2371 test $ac_status = 0; } && { 2372 test -z "$ac_f77_werror_flag" || 2373 test ! -s conftest.err 2374 } && test -s conftest$ac_exeext && { 2375 test "$cross_compiling" = yes || 2376 $as_test_x conftest$ac_exeext 2377 }; then : 2378 ac_retval=0 2379else 2380 $as_echo "$as_me: failed program was:" >&5 2381sed 's/^/| /' conftest.$ac_ext >&5 2382 2383 ac_retval=1 2384fi 2385 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2386 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2387 # interfere with the next link command; also delete a directory that is 2388 # left behind by Apple's compiler. We do this before executing the actions. 2389 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2390 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2391 as_fn_set_status $ac_retval 2392 2393} # ac_fn_f77_try_link 2394 2395# ac_fn_cxx_check_func LINENO FUNC VAR 2396# ------------------------------------ 2397# Tests whether FUNC exists, setting the cache variable VAR accordingly 2398ac_fn_cxx_check_func () 2399{ 2400 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2402$as_echo_n "checking for $2... " >&6; } 2403if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2404 $as_echo_n "(cached) " >&6 2405else 2406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2407/* end confdefs.h. */ 2408/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2409 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2410#define $2 innocuous_$2 2411 2412/* System header to define __stub macros and hopefully few prototypes, 2413 which can conflict with char $2 (); below. 2414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2415 <limits.h> exists even on freestanding compilers. */ 2416 2417#ifdef __STDC__ 2418# include <limits.h> 2419#else 2420# include <assert.h> 2421#endif 2422 2423#undef $2 2424 2425/* Override any GCC internal prototype to avoid an error. 2426 Use char because int might match the return type of a GCC 2427 builtin and then its argument prototype would still apply. */ 2428#ifdef __cplusplus 2429extern "C" 2430#endif 2431char $2 (); 2432/* The GNU C library defines this for functions which it implements 2433 to always fail with ENOSYS. Some functions are actually named 2434 something starting with __ and the normal name is an alias. */ 2435#if defined __stub_$2 || defined __stub___$2 2436choke me 2437#endif 2438 2439int 2440main () 2441{ 2442return $2 (); 2443 ; 2444 return 0; 2445} 2446_ACEOF 2447if ac_fn_cxx_try_link "$LINENO"; then : 2448 eval "$3=yes" 2449else 2450 eval "$3=no" 2451fi 2452rm -f core conftest.err conftest.$ac_objext \ 2453 conftest$ac_exeext conftest.$ac_ext 2454fi 2455eval ac_res=\$$3 2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2457$as_echo "$ac_res" >&6; } 2458 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2459 2460} # ac_fn_cxx_check_func 2461 2462# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2463# --------------------------------------------------------- 2464# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2465# the include files in INCLUDES and setting the cache variable VAR 2466# accordingly. 2467ac_fn_cxx_check_header_mongrel () 2468{ 2469 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2470 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2472$as_echo_n "checking for $2... " >&6; } 2473if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2474 $as_echo_n "(cached) " >&6 2475fi 2476eval ac_res=\$$3 2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2478$as_echo "$ac_res" >&6; } 2479else 2480 # Is the header compilable? 2481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2482$as_echo_n "checking $2 usability... " >&6; } 2483cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2484/* end confdefs.h. */ 2485$4 2486#include <$2> 2487_ACEOF 2488if ac_fn_cxx_try_compile "$LINENO"; then : 2489 ac_header_compiler=yes 2490else 2491 ac_header_compiler=no 2492fi 2493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2495$as_echo "$ac_header_compiler" >&6; } 2496 2497# Is the header present? 2498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2499$as_echo_n "checking $2 presence... " >&6; } 2500cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2501/* end confdefs.h. */ 2502#include <$2> 2503_ACEOF 2504if ac_fn_cxx_try_cpp "$LINENO"; then : 2505 ac_header_preproc=yes 2506else 2507 ac_header_preproc=no 2508fi 2509rm -f conftest.err conftest.$ac_ext 2510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2511$as_echo "$ac_header_preproc" >&6; } 2512 2513# So? What about this header? 2514case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2515 yes:no: ) 2516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2517$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2519$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2520 ;; 2521 no:yes:* ) 2522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2523$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2525$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2527$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2529$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2531$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2532( cat <<\_ASBOX 2533## -------------------------------------- ## 2534## Report this to coin-support@coin3d.org ## 2535## -------------------------------------- ## 2536_ASBOX 2537 ) | sed "s/^/$as_me: WARNING: /" >&2 2538 ;; 2539esac 2540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2541$as_echo_n "checking for $2... " >&6; } 2542if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2543 $as_echo_n "(cached) " >&6 2544else 2545 eval "$3=\$ac_header_compiler" 2546fi 2547eval ac_res=\$$3 2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2549$as_echo "$ac_res" >&6; } 2550fi 2551 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2552 2553} # ac_fn_cxx_check_header_mongrel 2554 2555# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2556# --------------------------------------------------------- 2557# Tests whether HEADER exists and can be compiled using the include files in 2558# INCLUDES, setting the cache variable VAR accordingly. 2559ac_fn_cxx_check_header_compile () 2560{ 2561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2563$as_echo_n "checking for $2... " >&6; } 2564if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2565 $as_echo_n "(cached) " >&6 2566else 2567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2568/* end confdefs.h. */ 2569$4 2570#include <$2> 2571_ACEOF 2572if ac_fn_cxx_try_compile "$LINENO"; then : 2573 eval "$3=yes" 2574else 2575 eval "$3=no" 2576fi 2577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2578fi 2579eval ac_res=\$$3 2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2581$as_echo "$ac_res" >&6; } 2582 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2583 2584} # ac_fn_cxx_check_header_compile 2585cat >config.log <<_ACEOF 2586This file contains any messages produced by compilers while 2587running configure, to aid debugging if configure makes a mistake. 2588 2589It was created by SoQt $as_me 1.6.0, which was 2590generated by GNU Autoconf 2.65. Invocation command line was 2591 2592 $ $0 $@ 2593 2594_ACEOF 2595exec 5>>config.log 2596{ 2597cat <<_ASUNAME 2598## --------- ## 2599## Platform. ## 2600## --------- ## 2601 2602hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2603uname -m = `(uname -m) 2>/dev/null || echo unknown` 2604uname -r = `(uname -r) 2>/dev/null || echo unknown` 2605uname -s = `(uname -s) 2>/dev/null || echo unknown` 2606uname -v = `(uname -v) 2>/dev/null || echo unknown` 2607 2608/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2609/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2610 2611/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2612/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2613/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2614/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2615/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2616/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2617/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2618 2619_ASUNAME 2620 2621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2622for as_dir in $PATH 2623do 2624 IFS=$as_save_IFS 2625 test -z "$as_dir" && as_dir=. 2626 $as_echo "PATH: $as_dir" 2627 done 2628IFS=$as_save_IFS 2629 2630} >&5 2631 2632cat >&5 <<_ACEOF 2633 2634 2635## ----------- ## 2636## Core tests. ## 2637## ----------- ## 2638 2639_ACEOF 2640 2641 2642# Keep a trace of the command line. 2643# Strip out --no-create and --no-recursion so they do not pile up. 2644# Strip out --silent because we don't want to record it for future runs. 2645# Also quote any args containing shell meta-characters. 2646# Make two passes to allow for proper duplicate-argument suppression. 2647ac_configure_args= 2648ac_configure_args0= 2649ac_configure_args1= 2650ac_must_keep_next=false 2651for ac_pass in 1 2 2652do 2653 for ac_arg 2654 do 2655 case $ac_arg in 2656 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2657 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2658 | -silent | --silent | --silen | --sile | --sil) 2659 continue ;; 2660 *\'*) 2661 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2662 esac 2663 case $ac_pass in 2664 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2665 2) 2666 as_fn_append ac_configure_args1 " '$ac_arg'" 2667 if test $ac_must_keep_next = true; then 2668 ac_must_keep_next=false # Got value, back to normal. 2669 else 2670 case $ac_arg in 2671 *=* | --config-cache | -C | -disable-* | --disable-* \ 2672 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2673 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2674 | -with-* | --with-* | -without-* | --without-* | --x) 2675 case "$ac_configure_args0 " in 2676 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2677 esac 2678 ;; 2679 -* ) ac_must_keep_next=true ;; 2680 esac 2681 fi 2682 as_fn_append ac_configure_args " '$ac_arg'" 2683 ;; 2684 esac 2685 done 2686done 2687{ ac_configure_args0=; unset ac_configure_args0;} 2688{ ac_configure_args1=; unset ac_configure_args1;} 2689 2690# When interrupted or exit'd, cleanup temporary files, and complete 2691# config.log. We remove comments because anyway the quotes in there 2692# would cause problems or look ugly. 2693# WARNING: Use '\'' to represent an apostrophe within the trap. 2694# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2695trap 'exit_status=$? 2696 # Save into config.log some information that might help in debugging. 2697 { 2698 echo 2699 2700 cat <<\_ASBOX 2701## ---------------- ## 2702## Cache variables. ## 2703## ---------------- ## 2704_ASBOX 2705 echo 2706 # The following way of writing the cache mishandles newlines in values, 2707( 2708 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2709 eval ac_val=\$$ac_var 2710 case $ac_val in #( 2711 *${as_nl}*) 2712 case $ac_var in #( 2713 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2714$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2715 esac 2716 case $ac_var in #( 2717 _ | IFS | as_nl) ;; #( 2718 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2719 *) { eval $ac_var=; unset $ac_var;} ;; 2720 esac ;; 2721 esac 2722 done 2723 (set) 2>&1 | 2724 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2725 *${as_nl}ac_space=\ *) 2726 sed -n \ 2727 "s/'\''/'\''\\\\'\'''\''/g; 2728 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2729 ;; #( 2730 *) 2731 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2732 ;; 2733 esac | 2734 sort 2735) 2736 echo 2737 2738 cat <<\_ASBOX 2739## ----------------- ## 2740## Output variables. ## 2741## ----------------- ## 2742_ASBOX 2743 echo 2744 for ac_var in $ac_subst_vars 2745 do 2746 eval ac_val=\$$ac_var 2747 case $ac_val in 2748 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2749 esac 2750 $as_echo "$ac_var='\''$ac_val'\''" 2751 done | sort 2752 echo 2753 2754 if test -n "$ac_subst_files"; then 2755 cat <<\_ASBOX 2756## ------------------- ## 2757## File substitutions. ## 2758## ------------------- ## 2759_ASBOX 2760 echo 2761 for ac_var in $ac_subst_files 2762 do 2763 eval ac_val=\$$ac_var 2764 case $ac_val in 2765 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2766 esac 2767 $as_echo "$ac_var='\''$ac_val'\''" 2768 done | sort 2769 echo 2770 fi 2771 2772 if test -s confdefs.h; then 2773 cat <<\_ASBOX 2774## ----------- ## 2775## confdefs.h. ## 2776## ----------- ## 2777_ASBOX 2778 echo 2779 cat confdefs.h 2780 echo 2781 fi 2782 test "$ac_signal" != 0 && 2783 $as_echo "$as_me: caught signal $ac_signal" 2784 $as_echo "$as_me: exit $exit_status" 2785 } >&5 2786 rm -f core *.core core.conftest.* && 2787 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2788 exit $exit_status 2789' 0 2790for ac_signal in 1 2 13 15; do 2791 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2792done 2793ac_signal=0 2794 2795# confdefs.h avoids OS command line length limits that DEFS can exceed. 2796rm -f -r conftest* confdefs.h 2797 2798$as_echo "/* confdefs.h */" > confdefs.h 2799 2800# Predefined preprocessor variables. 2801 2802cat >>confdefs.h <<_ACEOF 2803#define PACKAGE_NAME "$PACKAGE_NAME" 2804_ACEOF 2805 2806cat >>confdefs.h <<_ACEOF 2807#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2808_ACEOF 2809 2810cat >>confdefs.h <<_ACEOF 2811#define PACKAGE_VERSION "$PACKAGE_VERSION" 2812_ACEOF 2813 2814cat >>confdefs.h <<_ACEOF 2815#define PACKAGE_STRING "$PACKAGE_STRING" 2816_ACEOF 2817 2818cat >>confdefs.h <<_ACEOF 2819#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2820_ACEOF 2821 2822cat >>confdefs.h <<_ACEOF 2823#define PACKAGE_URL "$PACKAGE_URL" 2824_ACEOF 2825 2826 2827# Let the site file select an alternate cache file if it wants to. 2828# Prefer an explicitly selected file to automatically selected ones. 2829ac_site_file1=NONE 2830ac_site_file2=NONE 2831if test -n "$CONFIG_SITE"; then 2832 ac_site_file1=$CONFIG_SITE 2833elif test "x$prefix" != xNONE; then 2834 ac_site_file1=$prefix/share/config.site 2835 ac_site_file2=$prefix/etc/config.site 2836else 2837 ac_site_file1=$ac_default_prefix/share/config.site 2838 ac_site_file2=$ac_default_prefix/etc/config.site 2839fi 2840for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2841do 2842 test "x$ac_site_file" = xNONE && continue 2843 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2844 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2845$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2846 sed 's/^/| /' "$ac_site_file" >&5 2847 . "$ac_site_file" 2848 fi 2849done 2850 2851if test -r "$cache_file"; then 2852 # Some versions of bash will fail to source /dev/null (special files 2853 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2854 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2855 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2856$as_echo "$as_me: loading cache $cache_file" >&6;} 2857 case $cache_file in 2858 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2859 *) . "./$cache_file";; 2860 esac 2861 fi 2862else 2863 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2864$as_echo "$as_me: creating cache $cache_file" >&6;} 2865 >$cache_file 2866fi 2867 2868# Check that the precious variables saved in the cache have kept the same 2869# value. 2870ac_cache_corrupted=false 2871for ac_var in $ac_precious_vars; do 2872 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2873 eval ac_new_set=\$ac_env_${ac_var}_set 2874 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2875 eval ac_new_val=\$ac_env_${ac_var}_value 2876 case $ac_old_set,$ac_new_set in 2877 set,) 2878 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2879$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2880 ac_cache_corrupted=: ;; 2881 ,set) 2882 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2883$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2884 ac_cache_corrupted=: ;; 2885 ,);; 2886 *) 2887 if test "x$ac_old_val" != "x$ac_new_val"; then 2888 # differences in whitespace do not lead to failure. 2889 ac_old_val_w=`echo x $ac_old_val` 2890 ac_new_val_w=`echo x $ac_new_val` 2891 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2892 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2893$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2894 ac_cache_corrupted=: 2895 else 2896 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2897$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2898 eval $ac_var=\$ac_old_val 2899 fi 2900 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2901$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2902 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2903$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2904 fi;; 2905 esac 2906 # Pass precious variables to config.status. 2907 if test "$ac_new_set" = set; then 2908 case $ac_new_val in 2909 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2910 *) ac_arg=$ac_var=$ac_new_val ;; 2911 esac 2912 case " $ac_configure_args " in 2913 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2914 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2915 esac 2916 fi 2917done 2918if $ac_cache_corrupted; then 2919 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2920$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2921 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2922$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2923 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2924fi 2925## -------------------- ## 2926## Main body of script. ## 2927## -------------------- ## 2928 2929ac_ext=c 2930ac_cpp='$CPP $CPPFLAGS' 2931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2933ac_compiler_gnu=$ac_cv_c_compiler_gnu 2934 2935 2936 2937ac_aux_dir= 2938for ac_dir in cfg "$srcdir"/cfg; do 2939 for ac_t in install-sh install.sh shtool; do 2940 if test -f "$ac_dir/$ac_t"; then 2941 ac_aux_dir=$ac_dir 2942 ac_install_sh="$ac_aux_dir/$ac_t -c" 2943 break 2 2944 fi 2945 done 2946done 2947if test -z "$ac_aux_dir"; then 2948 as_fn_error "cannot find install-sh, install.sh, or shtool in cfg \"$srcdir\"/cfg" "$LINENO" 5 2949fi 2950 2951# These three variables are undocumented and unsupported, 2952# and are intended to be withdrawn in a future Autoconf release. 2953# They can cause serious problems if a builder's source tree is in a directory 2954# whose full name contains unusual characters. 2955ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2956ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2957ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2958 2959 2960 2961 2962 2963 2964# ************************************************************************** 2965 2966# Make sure we can run config.sub. 2967$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2968 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2969 2970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2971$as_echo_n "checking build system type... " >&6; } 2972if test "${ac_cv_build+set}" = set; then : 2973 $as_echo_n "(cached) " >&6 2974else 2975 ac_build_alias=$build_alias 2976test "x$ac_build_alias" = x && 2977 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2978test "x$ac_build_alias" = x && 2979 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 2980ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2981 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2982 2983fi 2984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2985$as_echo "$ac_cv_build" >&6; } 2986case $ac_cv_build in 2987*-*-*) ;; 2988*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 2989esac 2990build=$ac_cv_build 2991ac_save_IFS=$IFS; IFS='-' 2992set x $ac_cv_build 2993shift 2994build_cpu=$1 2995build_vendor=$2 2996shift; shift 2997# Remember, the first character of IFS is used to create $*, 2998# except with old shells: 2999build_os=$* 3000IFS=$ac_save_IFS 3001case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3002 3003 3004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3005$as_echo_n "checking host system type... " >&6; } 3006if test "${ac_cv_host+set}" = set; then : 3007 $as_echo_n "(cached) " >&6 3008else 3009 if test "x$host_alias" = x; then 3010 ac_cv_host=$ac_cv_build 3011else 3012 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3013 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3014fi 3015 3016fi 3017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3018$as_echo "$ac_cv_host" >&6; } 3019case $ac_cv_host in 3020*-*-*) ;; 3021*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 3022esac 3023host=$ac_cv_host 3024ac_save_IFS=$IFS; IFS='-' 3025set x $ac_cv_host 3026shift 3027host_cpu=$1 3028host_vendor=$2 3029shift; shift 3030# Remember, the first character of IFS is used to create $*, 3031# except with old shells: 3032host_os=$* 3033IFS=$ac_save_IFS 3034case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3035 3036 3037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 3038$as_echo_n "checking target system type... " >&6; } 3039if test "${ac_cv_target+set}" = set; then : 3040 $as_echo_n "(cached) " >&6 3041else 3042 if test "x$target_alias" = x; then 3043 ac_cv_target=$ac_cv_host 3044else 3045 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 3046 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 3047fi 3048 3049fi 3050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 3051$as_echo "$ac_cv_target" >&6; } 3052case $ac_cv_target in 3053*-*-*) ;; 3054*) as_fn_error "invalid value of canonical target" "$LINENO" 5;; 3055esac 3056target=$ac_cv_target 3057ac_save_IFS=$IFS; IFS='-' 3058set x $ac_cv_target 3059shift 3060target_cpu=$1 3061target_vendor=$2 3062shift; shift 3063# Remember, the first character of IFS is used to create $*, 3064# except with old shells: 3065target_os=$* 3066IFS=$ac_save_IFS 3067case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 3068 3069 3070# The aliases save the names the user supplied, while $host etc. 3071# will get canonicalized. 3072test -n "$target_alias" && 3073 test "$program_prefix$program_suffix$program_transform_name" = \ 3074 NONENONEs,x,x, && 3075 program_prefix=${target_alias}- 3076 3077 3078# ************************************************************************** 3079 3080 3081# Check whether --enable-msvcdsp was given. 3082if test "${enable_msvcdsp+set}" = set; then : 3083 enableval=$enable_msvcdsp; case $enableval in 3084 no | false) sim_ac_make_dsp=false ;; 3085 *) sim_ac_make_dsp=true ;; 3086 esac 3087else 3088 sim_ac_make_dsp=false 3089fi 3090 3091 3092if $sim_ac_make_dsp; then 3093 enable_dependency_tracking=no 3094 enable_libtool_lock=no 3095fi 3096 3097 3098 3099# Check whether --enable-msvc was given. 3100if test "${enable_msvc+set}" = set; then : 3101 enableval=$enable_msvc; case $enableval in 3102 no | false) sim_ac_try_msvc=false ;; 3103 *) sim_ac_try_msvc=true ;; 3104 esac 3105else 3106 sim_ac_try_msvc=true 3107fi 3108 3109 3110 3111sim_ac_full_builddir=`pwd` 3112sim_ac_full_srcdir=`cd $srcdir; pwd` 3113if test -z "`echo $sim_ac_full_srcdir | tr -cd ' '`"; then :; else 3114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected space character in the path leading up to the Coin source directory - this will probably cause random problems later. You are advised to move the Coin source directory to another location." >&5 3115$as_echo "$as_me: WARNING: Detected space character in the path leading up to the Coin source directory - this will probably cause random problems later. You are advised to move the Coin source directory to another location." >&2;} 3116 3117if test x"${sim_ac_configuration_warnings+set}" = x"set"; then 3118 sim_ac_configuration_warnings="$sim_ac_configuration_warnings|Detected space character in the path leading up to the Coin source directory - this will probably cause random problems later. You are advised to move the Coin source directory to another location." 3119else 3120 sim_ac_configuration_warnings="Detected space character in the path leading up to the Coin source directory - this will probably cause random problems later. You are advised to move the Coin source directory to another location." 3121fi 3122 3123fi 3124if test -z "`echo $sim_ac_full_builddir | tr -cd ' '`"; then :; else 3125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Detected space character in the path leading up to the Coin build directory - this will probably cause random problems later. You are advised to move the Coin build directory to another location." >&5 3126$as_echo "$as_me: WARNING: Detected space character in the path leading up to the Coin build directory - this will probably cause random problems later. You are advised to move the Coin build directory to another location." >&2;} 3127 3128if test x"${sim_ac_configuration_warnings+set}" = x"set"; then 3129 sim_ac_configuration_warnings="$sim_ac_configuration_warnings|Detected space character in the path leading up to the Coin build directory - this will probably cause random problems later. You are advised to move the Coin build directory to another location." 3130else 3131 sim_ac_configuration_warnings="Detected space character in the path leading up to the Coin build directory - this will probably cause random problems later. You are advised to move the Coin build directory to another location." 3132fi 3133 3134fi 3135 3136 3137 3138 3139 3140: ${BUILD_WITH_MSVC=false} 3141if $sim_ac_try_msvc; then 3142 if test -z "$CC" -a -z "$CXX"; then 3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking setup for wrapmsvc.exe" >&5 3144$as_echo_n "checking setup for wrapmsvc.exe... " >&6; } 3145 case $host in 3146 *-cygwin) 3147 valid_system=true 3148 ;; 3149 * ) 3150 valid_system=false 3151 ;; 3152 esac 3153 if $valid_system; then 3154 sim_ac_wrapmsvc=`cd $ac_aux_dir; pwd`/wrapmsvc.exe 3155 echo "$as_me:$LINENO: sim_ac_wrapmsvc=$sim_ac_wrapmsvc" >&5 3156 if $sim_ac_wrapmsvc >&5 2>&5; then 3157 3158 3159 CC=$sim_ac_wrapmsvc 3160 CXX=$sim_ac_wrapmsvc 3161 export CC CXX 3162 BUILD_WITH_MSVC=true 3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: working" >&5 3164$as_echo "working" >&6; } 3165 3166 # Robustness: we had multiple reports of Cygwin ''link'' getting in 3167 # the way of MSVC link.exe, so do a little sanity check for that. 3168 # 3169 # FIXME: a better fix would be to call link.exe with full path from 3170 # the wrapmsvc wrapper, to avoid any trouble with this -- I believe 3171 # that should be possible, using the dirname of the full cl.exe path. 3172 # 20050714 mortene. 3173 sim_ac_check_link=`type link` 3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Cygwin's /usr/bin/link shadows MSVC link.exe" >&5 3175$as_echo_n "checking whether Cygwin's /usr/bin/link shadows MSVC link.exe... " >&6; } 3176 case x"$sim_ac_check_link" in 3177 x"link is /usr/bin/link"* ) 3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3179$as_echo "yes" >&6; } 3180 3181echo >&2 "" 3182 3183 3184: ${sim_ac_message_file=$ac_aux_dir/errors.txt} 3185if test -f $sim_ac_message_file; then 3186 sim_ac_message="`sed -n -e '/^!cygwin-link$/,/^!/ { /^!/ d; p; }' <$sim_ac_message_file`" 3187 if test x"$sim_ac_message" = x""; then 3188 as_fn_error "no message named 'cygwin-link' in '$sim_ac_message_file' - notify the $PACKAGE_NAME maintainer(s)" "$LINENO" 5 3189 else 3190 eval "echo >&2 \"$sim_ac_message\"" 3191 fi 3192else 3193 as_fn_error "file '$sim_ac_message_file' not found - notify the $PACKAGE_NAME maintainer(s)" "$LINENO" 5 3194fi 3195 3196 3197 3198echo >&2 "" 3199as_fn_error "aborting" "$LINENO" 5 3200 3201 ;; 3202 * ) 3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3204$as_echo "no" >&6; } 3205 ;; 3206 esac 3207 3208 else 3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not working" >&5 3210$as_echo "not working" >&6; } 3211 3212echo >&2 "" 3213 3214 3215: ${sim_ac_message_file=$ac_aux_dir/errors.txt} 3216if test -f $sim_ac_message_file; then 3217 sim_ac_message="`sed -n -e '/^!no-msvc++$/,/^!/ { /^!/ d; p; }' <$sim_ac_message_file`" 3218 if test x"$sim_ac_message" = x""; then 3219 as_fn_error "no message named 'no-msvc++' in '$sim_ac_message_file' - notify the $PACKAGE_NAME maintainer(s)" "$LINENO" 5 3220 else 3221 eval "echo >&2 \"$sim_ac_message\"" 3222 fi 3223else 3224 as_fn_error "file '$sim_ac_message_file' not found - notify the $PACKAGE_NAME maintainer(s)" "$LINENO" 5 3225fi 3226 3227 3228 3229echo >&2 "" 3230as_fn_error "aborting" "$LINENO" 5 3231 3232 fi 3233 else 3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not a cygwin host" >&5 3235$as_echo "not a cygwin host" >&6; } 3236 fi 3237 fi 3238fi 3239export BUILD_WITH_MSVC 3240 3241 3242if $BUILD_WITH_MSVC; then 3243 : 3244else 3245 : 3246fi 3247 3248 3249# ************************************************************************** 3250# Library versioning. For information about our versioning strategy, see the 3251# document ``HACKING'' in the Coin CVS module. 3252 3253SOQT_MAJOR_VERSION=1 3254 3255SOQT_MINOR_VERSION=6 3256 3257SOQT_MICRO_VERSION=0 3258 3259SOQT_BETA_VERSION= 3260 3261SOQT_VERSION=$SOQT_MAJOR_VERSION.$SOQT_MINOR_VERSION.$SOQT_MICRO_VERSION$SOQT_BETA_VERSION 3262 3263 3264VERSION=$SOQT_VERSION 3265 3266# Libtool versioning 3267LT_CURRENT=26 3268 3269LT_REVISION=0 3270 3271LT_AGE=6 3272 3273 3274SOQT_SO_VERSION=20 3275 3276 3277 3278cat >>confdefs.h <<_ACEOF 3279#define SOQT_MAJOR_VERSION $SOQT_MAJOR_VERSION 3280_ACEOF 3281 3282 3283cat >>confdefs.h <<_ACEOF 3284#define SOQT_MINOR_VERSION $SOQT_MINOR_VERSION 3285_ACEOF 3286 3287 3288cat >>confdefs.h <<_ACEOF 3289#define SOQT_MICRO_VERSION $SOQT_MICRO_VERSION 3290_ACEOF 3291 3292if test x"$SOQT_BETA_VERSION" = x""; then :; else 3293 3294cat >>confdefs.h <<_ACEOF 3295#define SOQT_BETA_VERSION $SOQT_BETA_VERSION 3296_ACEOF 3297 3298fi 3299 3300cat >>confdefs.h <<_ACEOF 3301#define SOQT_VERSION "$SOQT_VERSION" 3302_ACEOF 3303 3304 3305# ************************************************************************** 3306 3307soqt_build_dir=`pwd` 3308soqt_src_dir=`cd "$srcdir"; pwd` 3309soqt_w32_build_dir=`cygpath -w "$soqt_build_dir" 2>/dev/null || echo "$soqt_build_dir"` 3310soqt_w32_src_dir=`cygpath -w "$soqt_src_dir" 2>/dev/null || echo "$soqt_src_dir"` 3311 3312 3313 3314temp_build_dir=`pwd` 3315temp_src_dir=`cd "$srcdir"; pwd` 3316 3317temp_up="" 3318temp_down="" 3319 3320while test "$temp_build_dir" != "$temp_src_dir"; do 3321 srclen=`echo "$temp_src_dir" | wc -c` 3322 buildlen=`echo "$temp_build_dir" | wc -c` 3323 if test $srclen -gt $buildlen; then 3324 # cut source tail, insert into temp_up 3325 temp_src_tail=`echo "$temp_src_dir" | sed -e 's,.*/,,g'` 3326 temp_src_dir=`echo "$temp_src_dir" | sed -e 's,/[^/]*\$,,g'` 3327 if test x"$temp_up" = "x"; then 3328 temp_up="$temp_src_tail" 3329 else 3330 temp_up="$temp_src_tail/$temp_up" 3331 fi 3332 else 3333 # cut build tail, increase temp_down 3334 temp_build_dir=`echo "$temp_build_dir" | sed -e 's,/[^/]*\$,,g'` 3335 if test x"$temp_down" = "x"; then 3336 temp_down=.. 3337 else 3338 temp_down="../$temp_down" 3339 fi 3340 fi 3341done 3342 3343if test x"$temp_down" = "x"; then 3344 if test x"$temp_up" = "x"; then 3345 sim_ac_relative_src_dir="." 3346 else 3347 sim_ac_relative_src_dir="$temp_up" 3348 fi 3349else 3350 if test x"$temp_up" = "x"; then 3351 sim_ac_relative_src_dir="$temp_down" 3352 else 3353 sim_ac_relative_src_dir="$temp_down/$temp_up" 3354 fi 3355fi 3356 3357# this gives false positives on windows, but that's ok for now... 3358if test -f $sim_ac_relative_src_dir/$ac_unique_file; then 3359 sim_ac_relative_src_dir_p=true; 3360else 3361 sim_ac_relative_src_dir_p=false; 3362fi 3363 3364 # useful to have to check the relative path 3365 3366 3367 3368 3369 3370# ************************************************************************** 3371# Universal Binary support (Mac OS X) 3372 3373 3374 3375sim_ac_enable_universal=false 3376 3377 3378case $host_os in 3379 darwin* ) 3380 # Check whether --enable-universal was given. 3381if test "${enable_universal+set}" = set; then : 3382 enableval=$enable_universal; 3383 case $enableval in 3384 yes | true) sim_ac_enable_universal=true ;; 3385 *) ;; 3386 esac 3387fi 3388 3389 3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we should build Universal Binaries" >&5 3391$as_echo_n "checking whether we should build Universal Binaries... " >&6; } 3392 if $sim_ac_enable_universal; then 3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3394$as_echo "yes" >&6; } 3395 3396if test x"${sim_ac_configuration_settings+set}" = x"set"; then 3397 sim_ac_configuration_settings="$sim_ac_configuration_settings|Build Universal Binaries:Yes" 3398else 3399 sim_ac_configuration_settings="Build Universal Binaries:Yes" 3400fi 3401 3402 3403 # need to build against Universal Binary SDK on PPC 3404 if test x"$host_cpu" = x"powerpc"; then 3405 sim_ac_universal_sdk_flags="-isysroot /Developer/SDKs/MacOSX10.4u.sdk" 3406 fi 3407 3408 sim_ac_universal_flags="-arch i386 -arch ppc $sim_ac_universal_sdk_flags" 3409 3410 CFLAGS="$sim_ac_universal_flags $CFLAGS" 3411 CXXFLAGS="$sim_ac_universal_flags $CXXFLAGS" 3412 3413 # disable dependency tracking since we can't use -MD when cross-compiling 3414 enable_dependency_tracking=no 3415 else 3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3417$as_echo "no" >&6; } 3418 3419if test x"${sim_ac_configuration_settings+set}" = x"set"; then 3420 sim_ac_configuration_settings="$sim_ac_configuration_settings|Build Universal Binaries:No (default)" 3421else 3422 sim_ac_configuration_settings="Build Universal Binaries:No (default)" 3423fi 3424 3425 fi 3426esac 3427 3428 3429# ************************************************************************** 3430# Miscellaneous options and initializations. 3431 3432am__api_version="1.8" 3433# Find a good install program. We prefer a C program (faster), 3434# so one script is as good as another. But avoid the broken or 3435# incompatible versions: 3436# SysV /etc/install, /usr/sbin/install 3437# SunOS /usr/etc/install 3438# IRIX /sbin/install 3439# AIX /bin/install 3440# AmigaOS /C/install, which installs bootblocks on floppy discs 3441# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3442# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3443# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3444# OS/2's system install, which has a completely different semantic 3445# ./install, which can be erroneously created by make from ./install.sh. 3446# Reject install programs that cannot install multiple files. 3447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3448$as_echo_n "checking for a BSD-compatible install... " >&6; } 3449if test -z "$INSTALL"; then 3450if test "${ac_cv_path_install+set}" = set; then : 3451 $as_echo_n "(cached) " >&6 3452else 3453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3454for as_dir in $PATH 3455do 3456 IFS=$as_save_IFS 3457 test -z "$as_dir" && as_dir=. 3458 # Account for people who put trailing slashes in PATH elements. 3459case $as_dir/ in #(( 3460 ./ | .// | /[cC]/* | \ 3461 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3462 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3463 /usr/ucb/* ) ;; 3464 *) 3465 # OSF1 and SCO ODT 3.0 have their own names for install. 3466 # Don't use installbsd from OSF since it installs stuff as root 3467 # by default. 3468 for ac_prog in ginstall scoinst install; do 3469 for ac_exec_ext in '' $ac_executable_extensions; do 3470 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3471 if test $ac_prog = install && 3472 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3473 # AIX install. It has an incompatible calling convention. 3474 : 3475 elif test $ac_prog = install && 3476 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3477 # program-specific install script used by HP pwplus--don't use. 3478 : 3479 else 3480 rm -rf conftest.one conftest.two conftest.dir 3481 echo one > conftest.one 3482 echo two > conftest.two 3483 mkdir conftest.dir 3484 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3485 test -s conftest.one && test -s conftest.two && 3486 test -s conftest.dir/conftest.one && 3487 test -s conftest.dir/conftest.two 3488 then 3489 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3490 break 3 3491 fi 3492 fi 3493 fi 3494 done 3495 done 3496 ;; 3497esac 3498 3499 done 3500IFS=$as_save_IFS 3501 3502rm -rf conftest.one conftest.two conftest.dir 3503 3504fi 3505 if test "${ac_cv_path_install+set}" = set; then 3506 INSTALL=$ac_cv_path_install 3507 else 3508 # As a last resort, use the slow shell script. Don't cache a 3509 # value for INSTALL within a source directory, because that will 3510 # break other packages using the cache if that directory is 3511 # removed, or if the value is a relative name. 3512 INSTALL=$ac_install_sh 3513 fi 3514fi 3515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3516$as_echo "$INSTALL" >&6; } 3517 3518# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3519# It thinks the first close brace ends the variable substitution. 3520test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3521 3522test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3523 3524test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3525 3526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3527$as_echo_n "checking whether build environment is sane... " >&6; } 3528# Just in case 3529sleep 1 3530echo timestamp > conftest.file 3531# Do `set' in a subshell so we don't clobber the current shell's 3532# arguments. Must try -L first in case configure is actually a 3533# symlink; some systems play weird games with the mod time of symlinks 3534# (eg FreeBSD returns the mod time of the symlink's containing 3535# directory). 3536if ( 3537 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 3538 if test "$*" = "X"; then 3539 # -L didn't work. 3540 set X `ls -t $srcdir/configure conftest.file` 3541 fi 3542 rm -f conftest.file 3543 if test "$*" != "X $srcdir/configure conftest.file" \ 3544 && test "$*" != "X conftest.file $srcdir/configure"; then 3545 3546 # If neither matched, then we have a broken ls. This can happen 3547 # if, for instance, CONFIG_SHELL is bash and it inherits a 3548 # broken ls alias from the environment. This has actually 3549 # happened. Such a system could not be considered "sane". 3550 as_fn_error "ls -t appears to fail. Make sure there is not a broken 3551alias in your environment" "$LINENO" 5 3552 fi 3553 3554 test "$2" = conftest.file 3555 ) 3556then 3557 # Ok. 3558 : 3559else 3560 as_fn_error "newly created file is older than distributed files! 3561Check your system clock" "$LINENO" 5 3562fi 3563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3564$as_echo "yes" >&6; } 3565test "$program_prefix" != NONE && 3566 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3567# Use a double $ so make ignores it. 3568test "$program_suffix" != NONE && 3569 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3570# Double any \ or $. 3571# By default was `s,x,x', remove it if useless. 3572ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3573program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3574 3575# expand $ac_aux_dir to an absolute path 3576am_aux_dir=`cd $ac_aux_dir && pwd` 3577 3578test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 3579# Use eval to expand $SHELL 3580if eval "$MISSING --run true"; then 3581 am_missing_run="$MISSING --run " 3582else 3583 am_missing_run= 3584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 3585$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 3586fi 3587 3588if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 3589 # Keeping the `.' argument allows $(mkdir_p) to be used without 3590 # argument. Indeed, we sometimes output rules like 3591 # $(mkdir_p) $(somedir) 3592 # where $(somedir) is conditionally defined. 3593 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more 3594 # expensive solution, as it forces Make to start a sub-shell.) 3595 mkdir_p='mkdir -p -- .' 3596else 3597 # On NextStep and OpenStep, the `mkdir' command does not 3598 # recognize any option. It will interpret all options as 3599 # directories to create, and then abort because `.' already 3600 # exists. 3601 for d in ./-p ./--version; 3602 do 3603 test -d $d && rmdir $d 3604 done 3605 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 3606 if test -f "$ac_aux_dir/mkinstalldirs"; then 3607 mkdir_p='$(mkinstalldirs)' 3608 else 3609 mkdir_p='$(install_sh) -d' 3610 fi 3611fi 3612 3613for ac_prog in gawk mawk nawk awk 3614do 3615 # Extract the first word of "$ac_prog", so it can be a program name with args. 3616set dummy $ac_prog; ac_word=$2 3617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3618$as_echo_n "checking for $ac_word... " >&6; } 3619if test "${ac_cv_prog_AWK+set}" = set; then : 3620 $as_echo_n "(cached) " >&6 3621else 3622 if test -n "$AWK"; then 3623 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3624else 3625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3626for as_dir in $PATH 3627do 3628 IFS=$as_save_IFS 3629 test -z "$as_dir" && as_dir=. 3630 for ac_exec_ext in '' $ac_executable_extensions; do 3631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3632 ac_cv_prog_AWK="$ac_prog" 3633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3634 break 2 3635 fi 3636done 3637 done 3638IFS=$as_save_IFS 3639 3640fi 3641fi 3642AWK=$ac_cv_prog_AWK 3643if test -n "$AWK"; then 3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3645$as_echo "$AWK" >&6; } 3646else 3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3648$as_echo "no" >&6; } 3649fi 3650 3651 3652 test -n "$AWK" && break 3653done 3654 3655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3656$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3657set x ${MAKE-make} 3658ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3659if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 3660 $as_echo_n "(cached) " >&6 3661else 3662 cat >conftest.make <<\_ACEOF 3663SHELL = /bin/sh 3664all: 3665 @echo '@@@%%%=$(MAKE)=@@@%%%' 3666_ACEOF 3667# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3668case `${MAKE-make} -f conftest.make 2>/dev/null` in 3669 *@@@%%%=?*=@@@%%%*) 3670 eval ac_cv_prog_make_${ac_make}_set=yes;; 3671 *) 3672 eval ac_cv_prog_make_${ac_make}_set=no;; 3673esac 3674rm -f conftest.make 3675fi 3676if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3678$as_echo "yes" >&6; } 3679 SET_MAKE= 3680else 3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3682$as_echo "no" >&6; } 3683 SET_MAKE="MAKE=${MAKE-make}" 3684fi 3685 3686rm -rf .tst 2>/dev/null 3687mkdir .tst 2>/dev/null 3688if test -d .tst; then 3689 am__leading_dot=. 3690else 3691 am__leading_dot=_ 3692fi 3693rmdir .tst 2>/dev/null 3694 3695# test to see if srcdir already configured 3696if test "`cd $srcdir && pwd`" != "`pwd`" && 3697 test -f $srcdir/config.status; then 3698 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3699fi 3700 3701# test whether we have cygpath 3702if test -z "$CYGPATH_W"; then 3703 if (cygpath --version) >/dev/null 2>/dev/null; then 3704 CYGPATH_W='cygpath -w' 3705 else 3706 CYGPATH_W=echo 3707 fi 3708fi 3709 3710 3711# Define the identity of the package. 3712 PACKAGE=SoQt 3713 VERSION=$VERSION 3714 3715 3716cat >>confdefs.h <<_ACEOF 3717#define PACKAGE "$PACKAGE" 3718_ACEOF 3719 3720 3721cat >>confdefs.h <<_ACEOF 3722#define VERSION "$VERSION" 3723_ACEOF 3724 3725# Some tools Automake needs. 3726 3727ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3728 3729 3730AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3731 3732 3733AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3734 3735 3736AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3737 3738 3739MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3740 3741 3742AMTAR=${AMTAR-"${am_missing_run}tar"} 3743 3744install_sh=${install_sh-"$am_aux_dir/install-sh"} 3745 3746# Installed binaries are usually stripped using `strip' when the user 3747# run `make install-strip'. However `strip' might not be the right 3748# tool to use in cross-compilation environments, therefore Automake 3749# will honor the `STRIP' environment variable to overrule this program. 3750if test "$cross_compiling" != no; then 3751 if test -n "$ac_tool_prefix"; then 3752 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3753set dummy ${ac_tool_prefix}strip; ac_word=$2 3754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3755$as_echo_n "checking for $ac_word... " >&6; } 3756if test "${ac_cv_prog_STRIP+set}" = set; then : 3757 $as_echo_n "(cached) " >&6 3758else 3759 if test -n "$STRIP"; then 3760 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3761else 3762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3763for as_dir in $PATH 3764do 3765 IFS=$as_save_IFS 3766 test -z "$as_dir" && as_dir=. 3767 for ac_exec_ext in '' $ac_executable_extensions; do 3768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3769 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3771 break 2 3772 fi 3773done 3774 done 3775IFS=$as_save_IFS 3776 3777fi 3778fi 3779STRIP=$ac_cv_prog_STRIP 3780if test -n "$STRIP"; then 3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3782$as_echo "$STRIP" >&6; } 3783else 3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3785$as_echo "no" >&6; } 3786fi 3787 3788 3789fi 3790if test -z "$ac_cv_prog_STRIP"; then 3791 ac_ct_STRIP=$STRIP 3792 # Extract the first word of "strip", so it can be a program name with args. 3793set dummy strip; ac_word=$2 3794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3795$as_echo_n "checking for $ac_word... " >&6; } 3796if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 3797 $as_echo_n "(cached) " >&6 3798else 3799 if test -n "$ac_ct_STRIP"; then 3800 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3801else 3802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3803for as_dir in $PATH 3804do 3805 IFS=$as_save_IFS 3806 test -z "$as_dir" && as_dir=. 3807 for ac_exec_ext in '' $ac_executable_extensions; do 3808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3809 ac_cv_prog_ac_ct_STRIP="strip" 3810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3811 break 2 3812 fi 3813done 3814 done 3815IFS=$as_save_IFS 3816 3817fi 3818fi 3819ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3820if test -n "$ac_ct_STRIP"; then 3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3822$as_echo "$ac_ct_STRIP" >&6; } 3823else 3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3825$as_echo "no" >&6; } 3826fi 3827 3828 if test "x$ac_ct_STRIP" = x; then 3829 STRIP=":" 3830 else 3831 case $cross_compiling:$ac_tool_warned in 3832yes:) 3833{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3834$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3835ac_tool_warned=yes ;; 3836esac 3837 STRIP=$ac_ct_STRIP 3838 fi 3839else 3840 STRIP="$ac_cv_prog_STRIP" 3841fi 3842 3843fi 3844INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 3845 3846# We need awk for the "check" target. The system "awk" is bad on 3847# some platforms. 3848 3849 3850 3851 3852# File to cram results from the configure tests into. 3853# we pit this in src/ to avoid having to add extra INCLUDES directives in 3854# MAkefile.am 3855ac_config_headers="$ac_config_headers src/config.h" 3856 3857 3858# Default to not building a static library. 3859# Can be overridden by the user with --enable-static. 3860# Check whether --enable-static was given. 3861if test "${enable_static+set}" = set; then : 3862 enableval=$enable_static; p=${PACKAGE-default} 3863 case $enableval in 3864 yes) enable_static=yes ;; 3865 no) enable_static=no ;; 3866 *) 3867 enable_static=no 3868 # Look at the argument we got. We use all the common list separators. 3869 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3870 for pkg in $enableval; do 3871 IFS="$lt_save_ifs" 3872 if test "X$pkg" = "X$p"; then 3873 enable_static=yes 3874 fi 3875 done 3876 IFS="$lt_save_ifs" 3877 ;; 3878 esac 3879else 3880 enable_static=no 3881fi 3882 3883 3884 3885 3886# Turn off default maintainer make-rules -- use ./bootstrap instead. 3887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3888$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3889 # Check whether --enable-maintainer-mode was given. 3890if test "${enable_maintainer_mode+set}" = set; then : 3891 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3892else 3893 USE_MAINTAINER_MODE=no 3894fi 3895 3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3897$as_echo "$USE_MAINTAINER_MODE" >&6; } 3898 3899 3900if test $USE_MAINTAINER_MODE = yes; then 3901 MAINTAINER_MODE_TRUE= 3902 MAINTAINER_MODE_FALSE='#' 3903else 3904 MAINTAINER_MODE_TRUE='#' 3905 MAINTAINER_MODE_FALSE= 3906fi 3907 3908 MAINT=$MAINTAINER_MODE_TRUE 3909 3910 3911 3912# Use C++ for configure tests and Libtool. 3913ac_ext=c 3914ac_cpp='$CPP $CPPFLAGS' 3915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3917ac_compiler_gnu=$ac_cv_c_compiler_gnu 3918if test -n "$ac_tool_prefix"; then 3919 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3920set dummy ${ac_tool_prefix}gcc; ac_word=$2 3921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3922$as_echo_n "checking for $ac_word... " >&6; } 3923if test "${ac_cv_prog_CC+set}" = set; then : 3924 $as_echo_n "(cached) " >&6 3925else 3926 if test -n "$CC"; then 3927 ac_cv_prog_CC="$CC" # Let the user override the test. 3928else 3929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3930for as_dir in $PATH 3931do 3932 IFS=$as_save_IFS 3933 test -z "$as_dir" && as_dir=. 3934 for ac_exec_ext in '' $ac_executable_extensions; do 3935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3936 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3938 break 2 3939 fi 3940done 3941 done 3942IFS=$as_save_IFS 3943 3944fi 3945fi 3946CC=$ac_cv_prog_CC 3947if test -n "$CC"; then 3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3949$as_echo "$CC" >&6; } 3950else 3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3952$as_echo "no" >&6; } 3953fi 3954 3955 3956fi 3957if test -z "$ac_cv_prog_CC"; then 3958 ac_ct_CC=$CC 3959 # Extract the first word of "gcc", so it can be a program name with args. 3960set dummy gcc; ac_word=$2 3961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3962$as_echo_n "checking for $ac_word... " >&6; } 3963if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3964 $as_echo_n "(cached) " >&6 3965else 3966 if test -n "$ac_ct_CC"; then 3967 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3968else 3969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3970for as_dir in $PATH 3971do 3972 IFS=$as_save_IFS 3973 test -z "$as_dir" && as_dir=. 3974 for ac_exec_ext in '' $ac_executable_extensions; do 3975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3976 ac_cv_prog_ac_ct_CC="gcc" 3977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3978 break 2 3979 fi 3980done 3981 done 3982IFS=$as_save_IFS 3983 3984fi 3985fi 3986ac_ct_CC=$ac_cv_prog_ac_ct_CC 3987if test -n "$ac_ct_CC"; then 3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3989$as_echo "$ac_ct_CC" >&6; } 3990else 3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3992$as_echo "no" >&6; } 3993fi 3994 3995 if test "x$ac_ct_CC" = x; then 3996 CC="" 3997 else 3998 case $cross_compiling:$ac_tool_warned in 3999yes:) 4000{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4001$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4002ac_tool_warned=yes ;; 4003esac 4004 CC=$ac_ct_CC 4005 fi 4006else 4007 CC="$ac_cv_prog_CC" 4008fi 4009 4010if test -z "$CC"; then 4011 if test -n "$ac_tool_prefix"; then 4012 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4013set dummy ${ac_tool_prefix}cc; ac_word=$2 4014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4015$as_echo_n "checking for $ac_word... " >&6; } 4016if test "${ac_cv_prog_CC+set}" = set; then : 4017 $as_echo_n "(cached) " >&6 4018else 4019 if test -n "$CC"; then 4020 ac_cv_prog_CC="$CC" # Let the user override the test. 4021else 4022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4023for as_dir in $PATH 4024do 4025 IFS=$as_save_IFS 4026 test -z "$as_dir" && as_dir=. 4027 for ac_exec_ext in '' $ac_executable_extensions; do 4028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4029 ac_cv_prog_CC="${ac_tool_prefix}cc" 4030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4031 break 2 4032 fi 4033done 4034 done 4035IFS=$as_save_IFS 4036 4037fi 4038fi 4039CC=$ac_cv_prog_CC 4040if test -n "$CC"; then 4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4042$as_echo "$CC" >&6; } 4043else 4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4045$as_echo "no" >&6; } 4046fi 4047 4048 4049 fi 4050fi 4051if test -z "$CC"; then 4052 # Extract the first word of "cc", so it can be a program name with args. 4053set dummy cc; ac_word=$2 4054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4055$as_echo_n "checking for $ac_word... " >&6; } 4056if test "${ac_cv_prog_CC+set}" = set; then : 4057 $as_echo_n "(cached) " >&6 4058else 4059 if test -n "$CC"; then 4060 ac_cv_prog_CC="$CC" # Let the user override the test. 4061else 4062 ac_prog_rejected=no 4063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4064for as_dir in $PATH 4065do 4066 IFS=$as_save_IFS 4067 test -z "$as_dir" && as_dir=. 4068 for ac_exec_ext in '' $ac_executable_extensions; do 4069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4070 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4071 ac_prog_rejected=yes 4072 continue 4073 fi 4074 ac_cv_prog_CC="cc" 4075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4076 break 2 4077 fi 4078done 4079 done 4080IFS=$as_save_IFS 4081 4082if test $ac_prog_rejected = yes; then 4083 # We found a bogon in the path, so make sure we never use it. 4084 set dummy $ac_cv_prog_CC 4085 shift 4086 if test $# != 0; then 4087 # We chose a different compiler from the bogus one. 4088 # However, it has the same basename, so the bogon will be chosen 4089 # first if we set CC to just the basename; use the full file name. 4090 shift 4091 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4092 fi 4093fi 4094fi 4095fi 4096CC=$ac_cv_prog_CC 4097if test -n "$CC"; then 4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4099$as_echo "$CC" >&6; } 4100else 4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4102$as_echo "no" >&6; } 4103fi 4104 4105 4106fi 4107if test -z "$CC"; then 4108 if test -n "$ac_tool_prefix"; then 4109 for ac_prog in cl.exe 4110 do 4111 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4112set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4114$as_echo_n "checking for $ac_word... " >&6; } 4115if test "${ac_cv_prog_CC+set}" = set; then : 4116 $as_echo_n "(cached) " >&6 4117else 4118 if test -n "$CC"; then 4119 ac_cv_prog_CC="$CC" # Let the user override the test. 4120else 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 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4130 break 2 4131 fi 4132done 4133 done 4134IFS=$as_save_IFS 4135 4136fi 4137fi 4138CC=$ac_cv_prog_CC 4139if test -n "$CC"; then 4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4141$as_echo "$CC" >&6; } 4142else 4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4144$as_echo "no" >&6; } 4145fi 4146 4147 4148 test -n "$CC" && break 4149 done 4150fi 4151if test -z "$CC"; then 4152 ac_ct_CC=$CC 4153 for ac_prog in cl.exe 4154do 4155 # Extract the first word of "$ac_prog", so it can be a program name with args. 4156set dummy $ac_prog; ac_word=$2 4157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4158$as_echo_n "checking for $ac_word... " >&6; } 4159if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 4160 $as_echo_n "(cached) " >&6 4161else 4162 if test -n "$ac_ct_CC"; then 4163 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4164else 4165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4166for as_dir in $PATH 4167do 4168 IFS=$as_save_IFS 4169 test -z "$as_dir" && as_dir=. 4170 for ac_exec_ext in '' $ac_executable_extensions; do 4171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4172 ac_cv_prog_ac_ct_CC="$ac_prog" 4173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4174 break 2 4175 fi 4176done 4177 done 4178IFS=$as_save_IFS 4179 4180fi 4181fi 4182ac_ct_CC=$ac_cv_prog_ac_ct_CC 4183if test -n "$ac_ct_CC"; then 4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4185$as_echo "$ac_ct_CC" >&6; } 4186else 4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4188$as_echo "no" >&6; } 4189fi 4190 4191 4192 test -n "$ac_ct_CC" && break 4193done 4194 4195 if test "x$ac_ct_CC" = x; then 4196 CC="" 4197 else 4198 case $cross_compiling:$ac_tool_warned in 4199yes:) 4200{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4201$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4202ac_tool_warned=yes ;; 4203esac 4204 CC=$ac_ct_CC 4205 fi 4206fi 4207 4208fi 4209 4210 4211test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4212$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4213as_fn_error "no acceptable C compiler found in \$PATH 4214See \`config.log' for more details." "$LINENO" 5; } 4215 4216# Provide some information about the compiler. 4217$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4218set X $ac_compile 4219ac_compiler=$2 4220for ac_option in --version -v -V -qversion; do 4221 { { ac_try="$ac_compiler $ac_option >&5" 4222case "(($ac_try" in 4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4224 *) ac_try_echo=$ac_try;; 4225esac 4226eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4227$as_echo "$ac_try_echo"; } >&5 4228 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4229 ac_status=$? 4230 if test -s conftest.err; then 4231 sed '10a\ 4232... rest of stderr output deleted ... 4233 10q' conftest.err >conftest.er1 4234 cat conftest.er1 >&5 4235 fi 4236 rm -f conftest.er1 conftest.err 4237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4238 test $ac_status = 0; } 4239done 4240 4241cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4242/* end confdefs.h. */ 4243 4244int 4245main () 4246{ 4247 4248 ; 4249 return 0; 4250} 4251_ACEOF 4252ac_clean_files_save=$ac_clean_files 4253ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4254# Try to create an executable without -o first, disregard a.out. 4255# It will help us diagnose broken compilers, and finding out an intuition 4256# of exeext. 4257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4258$as_echo_n "checking whether the C compiler works... " >&6; } 4259ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4260 4261# The possible output files: 4262ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4263 4264ac_rmfiles= 4265for ac_file in $ac_files 4266do 4267 case $ac_file in 4268 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4269 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4270 esac 4271done 4272rm -f $ac_rmfiles 4273 4274if { { ac_try="$ac_link_default" 4275case "(($ac_try" in 4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4277 *) ac_try_echo=$ac_try;; 4278esac 4279eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4280$as_echo "$ac_try_echo"; } >&5 4281 (eval "$ac_link_default") 2>&5 4282 ac_status=$? 4283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4284 test $ac_status = 0; }; then : 4285 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4286# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4287# in a Makefile. We should not override ac_cv_exeext if it was cached, 4288# so that the user can short-circuit this test for compilers unknown to 4289# Autoconf. 4290for ac_file in $ac_files '' 4291do 4292 test -f "$ac_file" || continue 4293 case $ac_file in 4294 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4295 ;; 4296 [ab].out ) 4297 # We found the default executable, but exeext='' is most 4298 # certainly right. 4299 break;; 4300 *.* ) 4301 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4302 then :; else 4303 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4304 fi 4305 # We set ac_cv_exeext here because the later test for it is not 4306 # safe: cross compilers may not add the suffix if given an `-o' 4307 # argument, so we may need to know it at that point already. 4308 # Even if this section looks crufty: it has the advantage of 4309 # actually working. 4310 break;; 4311 * ) 4312 break;; 4313 esac 4314done 4315test "$ac_cv_exeext" = no && ac_cv_exeext= 4316 4317else 4318 ac_file='' 4319fi 4320if test -z "$ac_file"; then : 4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4322$as_echo "no" >&6; } 4323$as_echo "$as_me: failed program was:" >&5 4324sed 's/^/| /' conftest.$ac_ext >&5 4325 4326{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4327$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4328{ as_fn_set_status 77 4329as_fn_error "C compiler cannot create executables 4330See \`config.log' for more details." "$LINENO" 5; }; } 4331else 4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4333$as_echo "yes" >&6; } 4334fi 4335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4336$as_echo_n "checking for C compiler default output file name... " >&6; } 4337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4338$as_echo "$ac_file" >&6; } 4339ac_exeext=$ac_cv_exeext 4340 4341rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4342ac_clean_files=$ac_clean_files_save 4343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4344$as_echo_n "checking for suffix of executables... " >&6; } 4345if { { ac_try="$ac_link" 4346case "(($ac_try" in 4347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4348 *) ac_try_echo=$ac_try;; 4349esac 4350eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4351$as_echo "$ac_try_echo"; } >&5 4352 (eval "$ac_link") 2>&5 4353 ac_status=$? 4354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4355 test $ac_status = 0; }; then : 4356 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4357# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4358# work properly (i.e., refer to `conftest.exe'), while it won't with 4359# `rm'. 4360for ac_file in conftest.exe conftest conftest.*; do 4361 test -f "$ac_file" || continue 4362 case $ac_file in 4363 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4364 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4365 break;; 4366 * ) break;; 4367 esac 4368done 4369else 4370 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4371$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4372as_fn_error "cannot compute suffix of executables: cannot compile and link 4373See \`config.log' for more details." "$LINENO" 5; } 4374fi 4375rm -f conftest conftest$ac_cv_exeext 4376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4377$as_echo "$ac_cv_exeext" >&6; } 4378 4379rm -f conftest.$ac_ext 4380EXEEXT=$ac_cv_exeext 4381ac_exeext=$EXEEXT 4382cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4383/* end confdefs.h. */ 4384#include <stdio.h> 4385int 4386main () 4387{ 4388FILE *f = fopen ("conftest.out", "w"); 4389 return ferror (f) || fclose (f) != 0; 4390 4391 ; 4392 return 0; 4393} 4394_ACEOF 4395ac_clean_files="$ac_clean_files conftest.out" 4396# Check that the compiler produces executables we can run. If not, either 4397# the compiler is broken, or we cross compile. 4398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4399$as_echo_n "checking whether we are cross compiling... " >&6; } 4400if test "$cross_compiling" != yes; then 4401 { { ac_try="$ac_link" 4402case "(($ac_try" in 4403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4404 *) ac_try_echo=$ac_try;; 4405esac 4406eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4407$as_echo "$ac_try_echo"; } >&5 4408 (eval "$ac_link") 2>&5 4409 ac_status=$? 4410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4411 test $ac_status = 0; } 4412 if { ac_try='./conftest$ac_cv_exeext' 4413 { { case "(($ac_try" in 4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4415 *) ac_try_echo=$ac_try;; 4416esac 4417eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4418$as_echo "$ac_try_echo"; } >&5 4419 (eval "$ac_try") 2>&5 4420 ac_status=$? 4421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4422 test $ac_status = 0; }; }; then 4423 cross_compiling=no 4424 else 4425 if test "$cross_compiling" = maybe; then 4426 cross_compiling=yes 4427 else 4428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4429$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4430as_fn_error "cannot run C compiled programs. 4431If you meant to cross compile, use \`--host'. 4432See \`config.log' for more details." "$LINENO" 5; } 4433 fi 4434 fi 4435fi 4436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4437$as_echo "$cross_compiling" >&6; } 4438 4439rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4440ac_clean_files=$ac_clean_files_save 4441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4442$as_echo_n "checking for suffix of object files... " >&6; } 4443if test "${ac_cv_objext+set}" = set; then : 4444 $as_echo_n "(cached) " >&6 4445else 4446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4447/* end confdefs.h. */ 4448 4449int 4450main () 4451{ 4452 4453 ; 4454 return 0; 4455} 4456_ACEOF 4457rm -f conftest.o conftest.obj 4458if { { ac_try="$ac_compile" 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_compile") 2>&5 4466 ac_status=$? 4467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4468 test $ac_status = 0; }; then : 4469 for ac_file in conftest.o conftest.obj conftest.*; do 4470 test -f "$ac_file" || continue; 4471 case $ac_file in 4472 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4473 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4474 break;; 4475 esac 4476done 4477else 4478 $as_echo "$as_me: failed program was:" >&5 4479sed 's/^/| /' conftest.$ac_ext >&5 4480 4481{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4482$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4483as_fn_error "cannot compute suffix of object files: cannot compile 4484See \`config.log' for more details." "$LINENO" 5; } 4485fi 4486rm -f conftest.$ac_cv_objext conftest.$ac_ext 4487fi 4488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4489$as_echo "$ac_cv_objext" >&6; } 4490OBJEXT=$ac_cv_objext 4491ac_objext=$OBJEXT 4492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4493$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4494if test "${ac_cv_c_compiler_gnu+set}" = set; then : 4495 $as_echo_n "(cached) " >&6 4496else 4497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4498/* end confdefs.h. */ 4499 4500int 4501main () 4502{ 4503#ifndef __GNUC__ 4504 choke me 4505#endif 4506 4507 ; 4508 return 0; 4509} 4510_ACEOF 4511if ac_fn_c_try_compile "$LINENO"; then : 4512 ac_compiler_gnu=yes 4513else 4514 ac_compiler_gnu=no 4515fi 4516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4517ac_cv_c_compiler_gnu=$ac_compiler_gnu 4518 4519fi 4520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4521$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4522if test $ac_compiler_gnu = yes; then 4523 GCC=yes 4524else 4525 GCC= 4526fi 4527ac_test_CFLAGS=${CFLAGS+set} 4528ac_save_CFLAGS=$CFLAGS 4529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4530$as_echo_n "checking whether $CC accepts -g... " >&6; } 4531if test "${ac_cv_prog_cc_g+set}" = set; then : 4532 $as_echo_n "(cached) " >&6 4533else 4534 ac_save_c_werror_flag=$ac_c_werror_flag 4535 ac_c_werror_flag=yes 4536 ac_cv_prog_cc_g=no 4537 CFLAGS="-g" 4538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4539/* end confdefs.h. */ 4540 4541int 4542main () 4543{ 4544 4545 ; 4546 return 0; 4547} 4548_ACEOF 4549if ac_fn_c_try_compile "$LINENO"; then : 4550 ac_cv_prog_cc_g=yes 4551else 4552 CFLAGS="" 4553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4554/* end confdefs.h. */ 4555 4556int 4557main () 4558{ 4559 4560 ; 4561 return 0; 4562} 4563_ACEOF 4564if ac_fn_c_try_compile "$LINENO"; then : 4565 4566else 4567 ac_c_werror_flag=$ac_save_c_werror_flag 4568 CFLAGS="-g" 4569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4570/* end confdefs.h. */ 4571 4572int 4573main () 4574{ 4575 4576 ; 4577 return 0; 4578} 4579_ACEOF 4580if ac_fn_c_try_compile "$LINENO"; then : 4581 ac_cv_prog_cc_g=yes 4582fi 4583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4584fi 4585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4586fi 4587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4588 ac_c_werror_flag=$ac_save_c_werror_flag 4589fi 4590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4591$as_echo "$ac_cv_prog_cc_g" >&6; } 4592if test "$ac_test_CFLAGS" = set; then 4593 CFLAGS=$ac_save_CFLAGS 4594elif test $ac_cv_prog_cc_g = yes; then 4595 if test "$GCC" = yes; then 4596 CFLAGS="-g -O2" 4597 else 4598 CFLAGS="-g" 4599 fi 4600else 4601 if test "$GCC" = yes; then 4602 CFLAGS="-O2" 4603 else 4604 CFLAGS= 4605 fi 4606fi 4607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4608$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4609if test "${ac_cv_prog_cc_c89+set}" = set; then : 4610 $as_echo_n "(cached) " >&6 4611else 4612 ac_cv_prog_cc_c89=no 4613ac_save_CC=$CC 4614cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4615/* end confdefs.h. */ 4616#include <stdarg.h> 4617#include <stdio.h> 4618#include <sys/types.h> 4619#include <sys/stat.h> 4620/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4621struct buf { int x; }; 4622FILE * (*rcsopen) (struct buf *, struct stat *, int); 4623static char *e (p, i) 4624 char **p; 4625 int i; 4626{ 4627 return p[i]; 4628} 4629static char *f (char * (*g) (char **, int), char **p, ...) 4630{ 4631 char *s; 4632 va_list v; 4633 va_start (v,p); 4634 s = g (p, va_arg (v,int)); 4635 va_end (v); 4636 return s; 4637} 4638 4639/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4640 function prototypes and stuff, but not '\xHH' hex character constants. 4641 These don't provoke an error unfortunately, instead are silently treated 4642 as 'x'. The following induces an error, until -std is added to get 4643 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4644 array size at least. It's necessary to write '\x00'==0 to get something 4645 that's true only with -std. */ 4646int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4647 4648/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4649 inside strings and character constants. */ 4650#define FOO(x) 'x' 4651int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4652 4653int test (int i, double x); 4654struct s1 {int (*f) (int a);}; 4655struct s2 {int (*f) (double a);}; 4656int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4657int argc; 4658char **argv; 4659int 4660main () 4661{ 4662return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4663 ; 4664 return 0; 4665} 4666_ACEOF 4667for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4668 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4669do 4670 CC="$ac_save_CC $ac_arg" 4671 if ac_fn_c_try_compile "$LINENO"; then : 4672 ac_cv_prog_cc_c89=$ac_arg 4673fi 4674rm -f core conftest.err conftest.$ac_objext 4675 test "x$ac_cv_prog_cc_c89" != "xno" && break 4676done 4677rm -f conftest.$ac_ext 4678CC=$ac_save_CC 4679 4680fi 4681# AC_CACHE_VAL 4682case "x$ac_cv_prog_cc_c89" in 4683 x) 4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4685$as_echo "none needed" >&6; } ;; 4686 xno) 4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4688$as_echo "unsupported" >&6; } ;; 4689 *) 4690 CC="$CC $ac_cv_prog_cc_c89" 4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4692$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4693esac 4694if test "x$ac_cv_prog_cc_c89" != xno; then : 4695 4696fi 4697 4698ac_ext=c 4699ac_cpp='$CPP $CPPFLAGS' 4700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4702ac_compiler_gnu=$ac_cv_c_compiler_gnu 4703DEPDIR="${am__leading_dot}deps" 4704 4705ac_config_commands="$ac_config_commands depfiles" 4706 4707 4708am_make=${MAKE-make} 4709cat > confinc << 'END' 4710am__doit: 4711 @echo done 4712.PHONY: am__doit 4713END 4714# If we don't find an include directive, just comment out the code. 4715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4716$as_echo_n "checking for style of include used by $am_make... " >&6; } 4717am__include="#" 4718am__quote= 4719_am_result=none 4720# First try GNU make style include. 4721echo "include confinc" > confmf 4722# We grep out `Entering directory' and `Leaving directory' 4723# messages which can occur if `w' ends up in MAKEFLAGS. 4724# In particular we don't look at `^make:' because GNU make might 4725# be invoked under some other name (usually "gmake"), in which 4726# case it prints its new name instead of `make'. 4727if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 4728 am__include=include 4729 am__quote= 4730 _am_result=GNU 4731fi 4732# Now try BSD make style include. 4733if test "$am__include" = "#"; then 4734 echo '.include "confinc"' > confmf 4735 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 4736 am__include=.include 4737 am__quote="\"" 4738 _am_result=BSD 4739 fi 4740fi 4741 4742 4743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4744$as_echo "$_am_result" >&6; } 4745rm -f confinc confmf 4746 4747# Check whether --enable-dependency-tracking was given. 4748if test "${enable_dependency_tracking+set}" = set; then : 4749 enableval=$enable_dependency_tracking; 4750fi 4751 4752if test "x$enable_dependency_tracking" != xno; then 4753 am_depcomp="$ac_aux_dir/depcomp" 4754 AMDEPBACKSLASH='\' 4755fi 4756 4757 4758if test "x$enable_dependency_tracking" != xno; then 4759 AMDEP_TRUE= 4760 AMDEP_FALSE='#' 4761else 4762 AMDEP_TRUE='#' 4763 AMDEP_FALSE= 4764fi 4765 4766 4767 4768 4769depcc="$CC" am_compiler_list= 4770 4771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4772$as_echo_n "checking dependency style of $depcc... " >&6; } 4773if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 4774 $as_echo_n "(cached) " >&6 4775else 4776 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4777 # We make a subdir and do the tests there. Otherwise we can end up 4778 # making bogus files that we don't know about and never remove. For 4779 # instance it was reported that on HP-UX the gcc test will end up 4780 # making a dummy file named `D' -- because `-MD' means `put the output 4781 # in D'. 4782 mkdir conftest.dir 4783 # Copy depcomp to subdir because otherwise we won't find it if we're 4784 # using a relative directory. 4785 cp "$am_depcomp" conftest.dir 4786 cd conftest.dir 4787 # We will build objects and dependencies in a subdirectory because 4788 # it helps to detect inapplicable dependency modes. For instance 4789 # both Tru64's cc and ICC support -MD to output dependencies as a 4790 # side effect of compilation, but ICC will put the dependencies in 4791 # the current directory while Tru64 will put them in the object 4792 # directory. 4793 mkdir sub 4794 4795 am_cv_CC_dependencies_compiler_type=none 4796 if test "$am_compiler_list" = ""; then 4797 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4798 fi 4799 for depmode in $am_compiler_list; do 4800 # Setup a source with many dependencies, because some compilers 4801 # like to wrap large dependency lists on column 80 (with \), and 4802 # we should not choose a depcomp mode which is confused by this. 4803 # 4804 # We need to recreate these files for each test, as the compiler may 4805 # overwrite some of them when testing with obscure command lines. 4806 # This happens at least with the AIX C compiler. 4807 : > sub/conftest.c 4808 for i in 1 2 3 4 5 6; do 4809 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4810 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4811 # Solaris 8's {/usr,}/bin/sh. 4812 touch sub/conftst$i.h 4813 done 4814 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4815 4816 case $depmode in 4817 nosideeffect) 4818 # after this tag, mechanisms are not by side-effect, so they'll 4819 # only be used when explicitly requested 4820 if test "x$enable_dependency_tracking" = xyes; then 4821 continue 4822 else 4823 break 4824 fi 4825 ;; 4826 none) break ;; 4827 esac 4828 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4829 # mode. It turns out that the SunPro C++ compiler does not properly 4830 # handle `-M -o', and we need to detect this. 4831 if depmode=$depmode \ 4832 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4833 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4834 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4835 >/dev/null 2>conftest.err && 4836 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4837 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4838 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4839 # icc doesn't choke on unknown options, it will just issue warnings 4840 # or remarks (even with -Werror). So we grep stderr for any message 4841 # that says an option was ignored or not supported. 4842 # When given -MP, icc 7.0 and 7.1 complain thusly: 4843 # icc: Command line warning: ignoring option '-M'; no argument required 4844 # The diagnosis changed in icc 8.0: 4845 # icc: Command line remark: option '-MP' not supported 4846 if (grep 'ignoring option' conftest.err || 4847 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4848 am_cv_CC_dependencies_compiler_type=$depmode 4849 break 4850 fi 4851 fi 4852 done 4853 4854 cd .. 4855 rm -rf conftest.dir 4856else 4857 am_cv_CC_dependencies_compiler_type=none 4858fi 4859 4860fi 4861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4862$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4863CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4864 4865 4866 4867if 4868 test "x$enable_dependency_tracking" != xno \ 4869 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4870 am__fastdepCC_TRUE= 4871 am__fastdepCC_FALSE='#' 4872else 4873 am__fastdepCC_TRUE='#' 4874 am__fastdepCC_FALSE= 4875fi 4876 4877 4878ac_ext=c 4879ac_cpp='$CPP $CPPFLAGS' 4880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4882ac_compiler_gnu=$ac_cv_c_compiler_gnu 4883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4884$as_echo_n "checking how to run the C preprocessor... " >&6; } 4885# On Suns, sometimes $CPP names a directory. 4886if test -n "$CPP" && test -d "$CPP"; then 4887 CPP= 4888fi 4889if test -z "$CPP"; then 4890 if test "${ac_cv_prog_CPP+set}" = set; then : 4891 $as_echo_n "(cached) " >&6 4892else 4893 # Double quotes because CPP needs to be expanded 4894 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4895 do 4896 ac_preproc_ok=false 4897for ac_c_preproc_warn_flag in '' yes 4898do 4899 # Use a header file that comes with gcc, so configuring glibc 4900 # with a fresh cross-compiler works. 4901 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4902 # <limits.h> exists even on freestanding compilers. 4903 # On the NeXT, cc -E runs the code through the compiler's parser, 4904 # not just through cpp. "Syntax error" is here to catch this case. 4905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4906/* end confdefs.h. */ 4907#ifdef __STDC__ 4908# include <limits.h> 4909#else 4910# include <assert.h> 4911#endif 4912 Syntax error 4913_ACEOF 4914if ac_fn_c_try_cpp "$LINENO"; then : 4915 4916else 4917 # Broken: fails on valid input. 4918continue 4919fi 4920rm -f conftest.err conftest.$ac_ext 4921 4922 # OK, works on sane cases. Now check whether nonexistent headers 4923 # can be detected and how. 4924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4925/* end confdefs.h. */ 4926#include <ac_nonexistent.h> 4927_ACEOF 4928if ac_fn_c_try_cpp "$LINENO"; then : 4929 # Broken: success on invalid input. 4930continue 4931else 4932 # Passes both tests. 4933ac_preproc_ok=: 4934break 4935fi 4936rm -f conftest.err conftest.$ac_ext 4937 4938done 4939# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4940rm -f conftest.err conftest.$ac_ext 4941if $ac_preproc_ok; then : 4942 break 4943fi 4944 4945 done 4946 ac_cv_prog_CPP=$CPP 4947 4948fi 4949 CPP=$ac_cv_prog_CPP 4950else 4951 ac_cv_prog_CPP=$CPP 4952fi 4953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4954$as_echo "$CPP" >&6; } 4955ac_preproc_ok=false 4956for ac_c_preproc_warn_flag in '' yes 4957do 4958 # Use a header file that comes with gcc, so configuring glibc 4959 # with a fresh cross-compiler works. 4960 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4961 # <limits.h> exists even on freestanding compilers. 4962 # On the NeXT, cc -E runs the code through the compiler's parser, 4963 # not just through cpp. "Syntax error" is here to catch this case. 4964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4965/* end confdefs.h. */ 4966#ifdef __STDC__ 4967# include <limits.h> 4968#else 4969# include <assert.h> 4970#endif 4971 Syntax error 4972_ACEOF 4973if ac_fn_c_try_cpp "$LINENO"; then : 4974 4975else 4976 # Broken: fails on valid input. 4977continue 4978fi 4979rm -f conftest.err conftest.$ac_ext 4980 4981 # OK, works on sane cases. Now check whether nonexistent headers 4982 # can be detected and how. 4983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4984/* end confdefs.h. */ 4985#include <ac_nonexistent.h> 4986_ACEOF 4987if ac_fn_c_try_cpp "$LINENO"; then : 4988 # Broken: success on invalid input. 4989continue 4990else 4991 # Passes both tests. 4992ac_preproc_ok=: 4993break 4994fi 4995rm -f conftest.err conftest.$ac_ext 4996 4997done 4998# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4999rm -f conftest.err conftest.$ac_ext 5000if $ac_preproc_ok; then : 5001 5002else 5003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5004$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5005as_fn_error "C preprocessor \"$CPP\" fails sanity check 5006See \`config.log' for more details." "$LINENO" 5; } 5007fi 5008 5009ac_ext=c 5010ac_cpp='$CPP $CPPFLAGS' 5011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5013ac_compiler_gnu=$ac_cv_c_compiler_gnu 5014 5015ac_ext=cpp 5016ac_cpp='$CXXCPP $CPPFLAGS' 5017ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5018ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5019ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5020if test -z "$CXX"; then 5021 if test -n "$CCC"; then 5022 CXX=$CCC 5023 else 5024 if test -n "$ac_tool_prefix"; then 5025 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5026 do 5027 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5028set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5030$as_echo_n "checking for $ac_word... " >&6; } 5031if test "${ac_cv_prog_CXX+set}" = set; then : 5032 $as_echo_n "(cached) " >&6 5033else 5034 if test -n "$CXX"; then 5035 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5036else 5037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5038for as_dir in $PATH 5039do 5040 IFS=$as_save_IFS 5041 test -z "$as_dir" && as_dir=. 5042 for ac_exec_ext in '' $ac_executable_extensions; do 5043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5044 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5046 break 2 5047 fi 5048done 5049 done 5050IFS=$as_save_IFS 5051 5052fi 5053fi 5054CXX=$ac_cv_prog_CXX 5055if test -n "$CXX"; then 5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 5057$as_echo "$CXX" >&6; } 5058else 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5060$as_echo "no" >&6; } 5061fi 5062 5063 5064 test -n "$CXX" && break 5065 done 5066fi 5067if test -z "$CXX"; then 5068 ac_ct_CXX=$CXX 5069 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5070do 5071 # Extract the first word of "$ac_prog", so it can be a program name with args. 5072set dummy $ac_prog; ac_word=$2 5073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5074$as_echo_n "checking for $ac_word... " >&6; } 5075if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : 5076 $as_echo_n "(cached) " >&6 5077else 5078 if test -n "$ac_ct_CXX"; then 5079 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5080else 5081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5082for as_dir in $PATH 5083do 5084 IFS=$as_save_IFS 5085 test -z "$as_dir" && as_dir=. 5086 for ac_exec_ext in '' $ac_executable_extensions; do 5087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5088 ac_cv_prog_ac_ct_CXX="$ac_prog" 5089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5090 break 2 5091 fi 5092done 5093 done 5094IFS=$as_save_IFS 5095 5096fi 5097fi 5098ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5099if test -n "$ac_ct_CXX"; then 5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 5101$as_echo "$ac_ct_CXX" >&6; } 5102else 5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5104$as_echo "no" >&6; } 5105fi 5106 5107 5108 test -n "$ac_ct_CXX" && break 5109done 5110 5111 if test "x$ac_ct_CXX" = x; then 5112 CXX="g++" 5113 else 5114 case $cross_compiling:$ac_tool_warned in 5115yes:) 5116{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5117$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5118ac_tool_warned=yes ;; 5119esac 5120 CXX=$ac_ct_CXX 5121 fi 5122fi 5123 5124 fi 5125fi 5126# Provide some information about the compiler. 5127$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 5128set X $ac_compile 5129ac_compiler=$2 5130for ac_option in --version -v -V -qversion; do 5131 { { ac_try="$ac_compiler $ac_option >&5" 5132case "(($ac_try" in 5133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5134 *) ac_try_echo=$ac_try;; 5135esac 5136eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5137$as_echo "$ac_try_echo"; } >&5 5138 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5139 ac_status=$? 5140 if test -s conftest.err; then 5141 sed '10a\ 5142... rest of stderr output deleted ... 5143 10q' conftest.err >conftest.er1 5144 cat conftest.er1 >&5 5145 fi 5146 rm -f conftest.er1 conftest.err 5147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5148 test $ac_status = 0; } 5149done 5150 5151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 5152$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 5153if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : 5154 $as_echo_n "(cached) " >&6 5155else 5156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5157/* end confdefs.h. */ 5158 5159int 5160main () 5161{ 5162#ifndef __GNUC__ 5163 choke me 5164#endif 5165 5166 ; 5167 return 0; 5168} 5169_ACEOF 5170if ac_fn_cxx_try_compile "$LINENO"; then : 5171 ac_compiler_gnu=yes 5172else 5173 ac_compiler_gnu=no 5174fi 5175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5176ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5177 5178fi 5179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 5180$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 5181if test $ac_compiler_gnu = yes; then 5182 GXX=yes 5183else 5184 GXX= 5185fi 5186ac_test_CXXFLAGS=${CXXFLAGS+set} 5187ac_save_CXXFLAGS=$CXXFLAGS 5188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 5189$as_echo_n "checking whether $CXX accepts -g... " >&6; } 5190if test "${ac_cv_prog_cxx_g+set}" = set; then : 5191 $as_echo_n "(cached) " >&6 5192else 5193 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5194 ac_cxx_werror_flag=yes 5195 ac_cv_prog_cxx_g=no 5196 CXXFLAGS="-g" 5197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5198/* end confdefs.h. */ 5199 5200int 5201main () 5202{ 5203 5204 ; 5205 return 0; 5206} 5207_ACEOF 5208if ac_fn_cxx_try_compile "$LINENO"; then : 5209 ac_cv_prog_cxx_g=yes 5210else 5211 CXXFLAGS="" 5212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5213/* end confdefs.h. */ 5214 5215int 5216main () 5217{ 5218 5219 ; 5220 return 0; 5221} 5222_ACEOF 5223if ac_fn_cxx_try_compile "$LINENO"; then : 5224 5225else 5226 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5227 CXXFLAGS="-g" 5228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5229/* end confdefs.h. */ 5230 5231int 5232main () 5233{ 5234 5235 ; 5236 return 0; 5237} 5238_ACEOF 5239if ac_fn_cxx_try_compile "$LINENO"; then : 5240 ac_cv_prog_cxx_g=yes 5241fi 5242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5243fi 5244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5245fi 5246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5247 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5248fi 5249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 5250$as_echo "$ac_cv_prog_cxx_g" >&6; } 5251if test "$ac_test_CXXFLAGS" = set; then 5252 CXXFLAGS=$ac_save_CXXFLAGS 5253elif test $ac_cv_prog_cxx_g = yes; then 5254 if test "$GXX" = yes; then 5255 CXXFLAGS="-g -O2" 5256 else 5257 CXXFLAGS="-g" 5258 fi 5259else 5260 if test "$GXX" = yes; then 5261 CXXFLAGS="-O2" 5262 else 5263 CXXFLAGS= 5264 fi 5265fi 5266ac_ext=c 5267ac_cpp='$CPP $CPPFLAGS' 5268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5270ac_compiler_gnu=$ac_cv_c_compiler_gnu 5271 5272depcc="$CXX" am_compiler_list= 5273 5274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5275$as_echo_n "checking dependency style of $depcc... " >&6; } 5276if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : 5277 $as_echo_n "(cached) " >&6 5278else 5279 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5280 # We make a subdir and do the tests there. Otherwise we can end up 5281 # making bogus files that we don't know about and never remove. For 5282 # instance it was reported that on HP-UX the gcc test will end up 5283 # making a dummy file named `D' -- because `-MD' means `put the output 5284 # in D'. 5285 mkdir conftest.dir 5286 # Copy depcomp to subdir because otherwise we won't find it if we're 5287 # using a relative directory. 5288 cp "$am_depcomp" conftest.dir 5289 cd conftest.dir 5290 # We will build objects and dependencies in a subdirectory because 5291 # it helps to detect inapplicable dependency modes. For instance 5292 # both Tru64's cc and ICC support -MD to output dependencies as a 5293 # side effect of compilation, but ICC will put the dependencies in 5294 # the current directory while Tru64 will put them in the object 5295 # directory. 5296 mkdir sub 5297 5298 am_cv_CXX_dependencies_compiler_type=none 5299 if test "$am_compiler_list" = ""; then 5300 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5301 fi 5302 for depmode in $am_compiler_list; do 5303 # Setup a source with many dependencies, because some compilers 5304 # like to wrap large dependency lists on column 80 (with \), and 5305 # we should not choose a depcomp mode which is confused by this. 5306 # 5307 # We need to recreate these files for each test, as the compiler may 5308 # overwrite some of them when testing with obscure command lines. 5309 # This happens at least with the AIX C compiler. 5310 : > sub/conftest.c 5311 for i in 1 2 3 4 5 6; do 5312 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5313 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5314 # Solaris 8's {/usr,}/bin/sh. 5315 touch sub/conftst$i.h 5316 done 5317 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5318 5319 case $depmode in 5320 nosideeffect) 5321 # after this tag, mechanisms are not by side-effect, so they'll 5322 # only be used when explicitly requested 5323 if test "x$enable_dependency_tracking" = xyes; then 5324 continue 5325 else 5326 break 5327 fi 5328 ;; 5329 none) break ;; 5330 esac 5331 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5332 # mode. It turns out that the SunPro C++ compiler does not properly 5333 # handle `-M -o', and we need to detect this. 5334 if depmode=$depmode \ 5335 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5336 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5337 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5338 >/dev/null 2>conftest.err && 5339 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5340 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5341 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5342 # icc doesn't choke on unknown options, it will just issue warnings 5343 # or remarks (even with -Werror). So we grep stderr for any message 5344 # that says an option was ignored or not supported. 5345 # When given -MP, icc 7.0 and 7.1 complain thusly: 5346 # icc: Command line warning: ignoring option '-M'; no argument required 5347 # The diagnosis changed in icc 8.0: 5348 # icc: Command line remark: option '-MP' not supported 5349 if (grep 'ignoring option' conftest.err || 5350 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5351 am_cv_CXX_dependencies_compiler_type=$depmode 5352 break 5353 fi 5354 fi 5355 done 5356 5357 cd .. 5358 rm -rf conftest.dir 5359else 5360 am_cv_CXX_dependencies_compiler_type=none 5361fi 5362 5363fi 5364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 5365$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 5366CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5367 5368 5369 5370if 5371 test "x$enable_dependency_tracking" != xno \ 5372 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5373 am__fastdepCXX_TRUE= 5374 am__fastdepCXX_FALSE='#' 5375else 5376 am__fastdepCXX_TRUE='#' 5377 am__fastdepCXX_FALSE= 5378fi 5379 5380 5381ac_ext=cpp 5382ac_cpp='$CXXCPP $CPPFLAGS' 5383ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5384ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5385ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 5387$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 5388if test -z "$CXXCPP"; then 5389 if test "${ac_cv_prog_CXXCPP+set}" = set; then : 5390 $as_echo_n "(cached) " >&6 5391else 5392 # Double quotes because CXXCPP needs to be expanded 5393 for CXXCPP in "$CXX -E" "/lib/cpp" 5394 do 5395 ac_preproc_ok=false 5396for ac_cxx_preproc_warn_flag in '' yes 5397do 5398 # Use a header file that comes with gcc, so configuring glibc 5399 # with a fresh cross-compiler works. 5400 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5401 # <limits.h> exists even on freestanding compilers. 5402 # On the NeXT, cc -E runs the code through the compiler's parser, 5403 # not just through cpp. "Syntax error" is here to catch this case. 5404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5405/* end confdefs.h. */ 5406#ifdef __STDC__ 5407# include <limits.h> 5408#else 5409# include <assert.h> 5410#endif 5411 Syntax error 5412_ACEOF 5413if ac_fn_cxx_try_cpp "$LINENO"; then : 5414 5415else 5416 # Broken: fails on valid input. 5417continue 5418fi 5419rm -f conftest.err conftest.$ac_ext 5420 5421 # OK, works on sane cases. Now check whether nonexistent headers 5422 # can be detected and how. 5423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5424/* end confdefs.h. */ 5425#include <ac_nonexistent.h> 5426_ACEOF 5427if ac_fn_cxx_try_cpp "$LINENO"; then : 5428 # Broken: success on invalid input. 5429continue 5430else 5431 # Passes both tests. 5432ac_preproc_ok=: 5433break 5434fi 5435rm -f conftest.err conftest.$ac_ext 5436 5437done 5438# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5439rm -f conftest.err conftest.$ac_ext 5440if $ac_preproc_ok; then : 5441 break 5442fi 5443 5444 done 5445 ac_cv_prog_CXXCPP=$CXXCPP 5446 5447fi 5448 CXXCPP=$ac_cv_prog_CXXCPP 5449else 5450 ac_cv_prog_CXXCPP=$CXXCPP 5451fi 5452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 5453$as_echo "$CXXCPP" >&6; } 5454ac_preproc_ok=false 5455for ac_cxx_preproc_warn_flag in '' yes 5456do 5457 # Use a header file that comes with gcc, so configuring glibc 5458 # with a fresh cross-compiler works. 5459 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5460 # <limits.h> exists even on freestanding compilers. 5461 # On the NeXT, cc -E runs the code through the compiler's parser, 5462 # not just through cpp. "Syntax error" is here to catch this case. 5463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5464/* end confdefs.h. */ 5465#ifdef __STDC__ 5466# include <limits.h> 5467#else 5468# include <assert.h> 5469#endif 5470 Syntax error 5471_ACEOF 5472if ac_fn_cxx_try_cpp "$LINENO"; then : 5473 5474else 5475 # Broken: fails on valid input. 5476continue 5477fi 5478rm -f conftest.err conftest.$ac_ext 5479 5480 # OK, works on sane cases. Now check whether nonexistent headers 5481 # can be detected and how. 5482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5483/* end confdefs.h. */ 5484#include <ac_nonexistent.h> 5485_ACEOF 5486if ac_fn_cxx_try_cpp "$LINENO"; then : 5487 # Broken: success on invalid input. 5488continue 5489else 5490 # Passes both tests. 5491ac_preproc_ok=: 5492break 5493fi 5494rm -f conftest.err conftest.$ac_ext 5495 5496done 5497# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5498rm -f conftest.err conftest.$ac_ext 5499if $ac_preproc_ok; then : 5500 5501else 5502 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5503$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5504as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check 5505See \`config.log' for more details." "$LINENO" 5; } 5506fi 5507 5508ac_ext=c 5509ac_cpp='$CPP $CPPFLAGS' 5510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5512ac_compiler_gnu=$ac_cv_c_compiler_gnu 5513 5514 5515 5516mv confdefs.h confdefs.old 5517egrep -v "void.*exit" confdefs.old >confdefs.h 5518rm -f confdefs.old 5519 5520 5521ac_ext=cpp 5522ac_cpp='$CXXCPP $CPPFLAGS' 5523ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5524ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5525ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5526 5527 5528 5529 5530 5531if $BUILD_WITH_MSVC; then 5532 case ${enable_static-no} in 5533 yes | true) SOQT_STATIC=true; 5534 enable_shared=no ;; # --enable-static-problem with autoconf 2.58 5535 *) SOQT_STATIC=false ;; 5536 esac 5537 case ${enable_shared-default} in 5538 default) ;; 5539 yes | true) SOQT_STATIC=false ;; 5540 *) SOQT_STATIC=true ;; 5541 esac 5542fi 5543 5544# moved below AC_PROG_CC so -g is preserved in $C[XX]FLAGS - 20020110 larsa 5545if $BUILD_WITH_MSVC; then 5546 sim_ac_msvcrt_LDFLAGS="" 5547sim_ac_msvcrt_LIBS="" 5548 5549 5550# Check whether --with-msvcrt was given. 5551if test "${with_msvcrt+set}" = set; then : 5552 withval=$with_msvcrt; case `echo "$withval" | tr "A-Z" "a-z"` in 5553 default | singlethread-static | ml | /ml | libc | libc\.lib ) 5554 sim_ac_msvcrt=singlethread-static 5555 sim_ac_msvcrt_CFLAGS="/ML" 5556 sim_ac_msvcrt_CXXFLAGS="/ML" 5557 ;; 5558 default-debug | singlethread-static-debug | mld | /mld | libcd | libcd\.lib ) 5559 sim_ac_msvcrt=singlethread-static-debug 5560 sim_ac_msvcrt_CFLAGS="/MLd" 5561 sim_ac_msvcrt_CXXFLAGS="/MLd" 5562 ;; 5563 multithread-static | mt | /mt | libcmt | libcmt\.lib ) 5564 sim_ac_msvcrt=multithread-static 5565 sim_ac_msvcrt_CFLAGS="/MT" 5566 sim_ac_msvcrt_CXXFLAGS="/MT" 5567 ;; 5568 multithread-static-debug | mtd | /mtd | libcmtd | libcmtd\.lib ) 5569 sim_ac_msvcrt=multithread-static-debug 5570 sim_ac_msvcrt_CFLAGS="/MTd" 5571 sim_ac_msvcrt_CXXFLAGS="/MTd" 5572 ;; 5573 multithread-dynamic | md | /md | msvcrt | msvcrt\.lib ) 5574 sim_ac_msvcrt=multithread-dynamic 5575 sim_ac_msvcrt_CFLAGS="/MD" 5576 sim_ac_msvcrt_CXXFLAGS="/MD" 5577 ;; 5578 multithread-dynamic-debug | mdd | /mdd | msvcrtd | msvcrtd\.lib ) 5579 sim_ac_msvcrt=multithread-dynamic-debug 5580 sim_ac_msvcrt_CFLAGS="/MDd" 5581 sim_ac_msvcrt_CXXFLAGS="/MDd" 5582 ;; 5583 *) 5584 5585echo >&2 "" 5586 5587 5588: ${sim_ac_message_file=$ac_aux_dir/errors.txt} 5589if test -f $sim_ac_message_file; then 5590 sim_ac_message="`sed -n -e '/^!invalid-msvcrt$/,/^!/ { /^!/ d; p; }' <$sim_ac_message_file`" 5591 if test x"$sim_ac_message" = x""; then 5592 as_fn_error "no message named 'invalid-msvcrt' in '$sim_ac_message_file' - notify the $PACKAGE_NAME maintainer(s)" "$LINENO" 5 5593 else 5594 eval "echo >&2 \"$sim_ac_message\"" 5595 fi 5596else 5597 as_fn_error "file '$sim_ac_message_file' not found - notify the $PACKAGE_NAME maintainer(s)" "$LINENO" 5 5598fi 5599 5600 5601 5602echo >&2 "" 5603as_fn_error "aborting" "$LINENO" 5 5604 5605 ;; 5606 esac 5607else 5608 sim_ac_msvcrt=singlethread-static 5609fi 5610 5611 5612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking MSVC++ C library choice" >&5 5613$as_echo_n "checking MSVC++ C library choice... " >&6; } 5614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_msvcrt" >&5 5615$as_echo "$sim_ac_msvcrt" >&6; } 5616 5617 5618 CPPFLAGS="$CPPFLAGS $sim_ac_msvcrt_CPPFLAGS" 5619 CFLAGS="$CFLAGS $sim_ac_msvcrt_CFLAGS" 5620 CXXFLAGS="$CXXFLAGS $sim_ac_msvcrt_CXXFLAGS" 5621 LDFLAGS="$LDFLAGS $sim_ac_msvcrt_LDFLAGS" 5622 LIBS="$LIBS $sim_ac_msvcrt_LIBS" 5623 # sim_ac_msvcrt_LIBLIBS is set up at the end 5624 # sim_ac_msvcrt_LIBLDFLAGS is set up at the end 5625 LDFLAGS="$LDFLAGS $sim_ac_msvcrt_LIBLDFLAGS" 5626 LIBS="$LIBS $sim_ac_msvcrt_LIBLIBS" 5627 SOGUI_MSVC_LIBC=$sim_ac_msvcrt 5628 5629 5630 5631fi 5632 5633# Detect Mac OS X in general 5634case $host_os in 5635darwin* ) 5636 sim_ac_macosx=true 5637 # Check for Mac OS 10.2 or later 5638 case $host_os in 5639 darwin[678].* ) 5640 sim_ac_macosx_10_2ff=true 5641 ;; 5642 * ) 5643 sim_ac_macosx_10_2ff=false 5644 ;; 5645 esac 5646 ;; 5647* ) 5648 sim_ac_macosx=false 5649 sim_ac_macosx_10_2ff=false 5650 ;; 5651esac 5652 5653# Initialize libtool 5654if $BUILD_WITH_MSVC; then 5655 RANLIB=: 5656 export RANLIB 5657fi 5658 5659 5660case $host_os in 5661darwin*) 5662 if test x"$GCC" = x"yes"; then 5663 # FIXME: create a SIM_AC_CPP_OPTION macro 5664 5665 5666ac_ext=c 5667ac_cpp='$CPP $CPPFLAGS' 5668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5670ac_compiler_gnu=$ac_cv_c_compiler_gnu 5671 5672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -no-cpp-precomp" >&5 5673$as_echo_n "checking whether $CC accepts -no-cpp-precomp... " >&6; } 5674 5675sim_ac_save_cppflags=$CPPFLAGS 5676CPPFLAGS="$CPPFLAGS -no-cpp-precomp" 5677cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5678/* end confdefs.h. */ 5679 5680int 5681main () 5682{ 5683 5684 ; 5685 return 0; 5686} 5687_ACEOF 5688if ac_fn_c_try_compile "$LINENO"; then : 5689 sim_ac_accept_result=yes 5690else 5691 sim_ac_accept_result=no 5692fi 5693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_accept_result" >&5 5695$as_echo "$sim_ac_accept_result" >&6; } 5696CPPFLAGS=$sim_ac_save_cppflags 5697# This need to go last, in case CPPFLAGS is modified in arg 2 or arg 3. 5698if test $sim_ac_accept_result = yes; then 5699 CPPFLAGS="$CPPFLAGS -no-cpp-precomp" 5700else 5701 : 5702fi 5703 5704ac_ext=cpp 5705ac_cpp='$CXXCPP $CPPFLAGS' 5706ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5707ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5708ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5709 5710 5711 fi 5712 ;; 5713esac 5714 5715 5716# Check whether --enable-shared was given. 5717if test "${enable_shared+set}" = set; then : 5718 enableval=$enable_shared; p=${PACKAGE-default} 5719 case $enableval in 5720 yes) enable_shared=yes ;; 5721 no) enable_shared=no ;; 5722 *) 5723 enable_shared=no 5724 # Look at the argument we got. We use all the common list separators. 5725 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5726 for pkg in $enableval; do 5727 IFS="$lt_save_ifs" 5728 if test "X$pkg" = "X$p"; then 5729 enable_shared=yes 5730 fi 5731 done 5732 IFS="$lt_save_ifs" 5733 ;; 5734 esac 5735else 5736 enable_shared=yes 5737fi 5738 5739 5740# Check whether --enable-fast-install was given. 5741if test "${enable_fast_install+set}" = set; then : 5742 enableval=$enable_fast_install; p=${PACKAGE-default} 5743 case $enableval in 5744 yes) enable_fast_install=yes ;; 5745 no) enable_fast_install=no ;; 5746 *) 5747 enable_fast_install=no 5748 # Look at the argument we got. We use all the common list separators. 5749 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 5750 for pkg in $enableval; do 5751 IFS="$lt_save_ifs" 5752 if test "X$pkg" = "X$p"; then 5753 enable_fast_install=yes 5754 fi 5755 done 5756 IFS="$lt_save_ifs" 5757 ;; 5758 esac 5759else 5760 enable_fast_install=yes 5761fi 5762 5763 5764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5765$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5766if test "${lt_cv_path_SED+set}" = set; then : 5767 $as_echo_n "(cached) " >&6 5768else 5769 # Loop through the user's path and test for sed and gsed. 5770# Then use that list of sed's as ones to test for truncation. 5771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5772for as_dir in $PATH 5773do 5774 IFS=$as_save_IFS 5775 test -z "$as_dir" && as_dir=. 5776 for lt_ac_prog in sed gsed; do 5777 for ac_exec_ext in '' $ac_executable_extensions; do 5778 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then 5779 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 5780 fi 5781 done 5782 done 5783done 5784IFS=$as_save_IFS 5785lt_ac_max=0 5786lt_ac_count=0 5787# Add /usr/xpg4/bin/sed as it is typically found on Solaris 5788# along with /bin/sed that truncates output. 5789for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 5790 test ! -f $lt_ac_sed && continue 5791 cat /dev/null > conftest.in 5792 lt_ac_count=0 5793 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 5794 # Check for GNU sed and select it if it is found. 5795 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 5796 lt_cv_path_SED=$lt_ac_sed 5797 break 5798 fi 5799 while true; do 5800 cat conftest.in conftest.in >conftest.tmp 5801 mv conftest.tmp conftest.in 5802 cp conftest.in conftest.nl 5803 echo >>conftest.nl 5804 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 5805 cmp -s conftest.out conftest.nl || break 5806 # 10000 chars as input seems more than enough 5807 test $lt_ac_count -gt 10 && break 5808 lt_ac_count=`expr $lt_ac_count + 1` 5809 if test $lt_ac_count -gt $lt_ac_max; then 5810 lt_ac_max=$lt_ac_count 5811 lt_cv_path_SED=$lt_ac_sed 5812 fi 5813 done 5814done 5815 5816fi 5817 5818SED=$lt_cv_path_SED 5819 5820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 5821$as_echo "$SED" >&6; } 5822 5823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5824$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5825if test "${ac_cv_path_GREP+set}" = set; then : 5826 $as_echo_n "(cached) " >&6 5827else 5828 if test -z "$GREP"; then 5829 ac_path_GREP_found=false 5830 # Loop through the user's path and test for each of PROGNAME-LIST 5831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5832for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5833do 5834 IFS=$as_save_IFS 5835 test -z "$as_dir" && as_dir=. 5836 for ac_prog in grep ggrep; do 5837 for ac_exec_ext in '' $ac_executable_extensions; do 5838 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5839 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 5840# Check for GNU ac_path_GREP and select it if it is found. 5841 # Check for GNU $ac_path_GREP 5842case `"$ac_path_GREP" --version 2>&1` in 5843*GNU*) 5844 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5845*) 5846 ac_count=0 5847 $as_echo_n 0123456789 >"conftest.in" 5848 while : 5849 do 5850 cat "conftest.in" "conftest.in" >"conftest.tmp" 5851 mv "conftest.tmp" "conftest.in" 5852 cp "conftest.in" "conftest.nl" 5853 $as_echo 'GREP' >> "conftest.nl" 5854 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5855 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5856 as_fn_arith $ac_count + 1 && ac_count=$as_val 5857 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5858 # Best one so far, save it but keep looking for a better one 5859 ac_cv_path_GREP="$ac_path_GREP" 5860 ac_path_GREP_max=$ac_count 5861 fi 5862 # 10*(2^10) chars as input seems more than enough 5863 test $ac_count -gt 10 && break 5864 done 5865 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5866esac 5867 5868 $ac_path_GREP_found && break 3 5869 done 5870 done 5871 done 5872IFS=$as_save_IFS 5873 if test -z "$ac_cv_path_GREP"; then 5874 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5875 fi 5876else 5877 ac_cv_path_GREP=$GREP 5878fi 5879 5880fi 5881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5882$as_echo "$ac_cv_path_GREP" >&6; } 5883 GREP="$ac_cv_path_GREP" 5884 5885 5886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5887$as_echo_n "checking for egrep... " >&6; } 5888if test "${ac_cv_path_EGREP+set}" = set; then : 5889 $as_echo_n "(cached) " >&6 5890else 5891 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5892 then ac_cv_path_EGREP="$GREP -E" 5893 else 5894 if test -z "$EGREP"; then 5895 ac_path_EGREP_found=false 5896 # Loop through the user's path and test for each of PROGNAME-LIST 5897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5898for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5899do 5900 IFS=$as_save_IFS 5901 test -z "$as_dir" && as_dir=. 5902 for ac_prog in egrep; do 5903 for ac_exec_ext in '' $ac_executable_extensions; do 5904 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5905 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 5906# Check for GNU ac_path_EGREP and select it if it is found. 5907 # Check for GNU $ac_path_EGREP 5908case `"$ac_path_EGREP" --version 2>&1` in 5909*GNU*) 5910 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5911*) 5912 ac_count=0 5913 $as_echo_n 0123456789 >"conftest.in" 5914 while : 5915 do 5916 cat "conftest.in" "conftest.in" >"conftest.tmp" 5917 mv "conftest.tmp" "conftest.in" 5918 cp "conftest.in" "conftest.nl" 5919 $as_echo 'EGREP' >> "conftest.nl" 5920 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5921 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5922 as_fn_arith $ac_count + 1 && ac_count=$as_val 5923 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5924 # Best one so far, save it but keep looking for a better one 5925 ac_cv_path_EGREP="$ac_path_EGREP" 5926 ac_path_EGREP_max=$ac_count 5927 fi 5928 # 10*(2^10) chars as input seems more than enough 5929 test $ac_count -gt 10 && break 5930 done 5931 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5932esac 5933 5934 $ac_path_EGREP_found && break 3 5935 done 5936 done 5937 done 5938IFS=$as_save_IFS 5939 if test -z "$ac_cv_path_EGREP"; then 5940 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5941 fi 5942else 5943 ac_cv_path_EGREP=$EGREP 5944fi 5945 5946 fi 5947fi 5948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5949$as_echo "$ac_cv_path_EGREP" >&6; } 5950 EGREP="$ac_cv_path_EGREP" 5951 5952 5953 5954# Check whether --with-gnu-ld was given. 5955if test "${with_gnu_ld+set}" = set; then : 5956 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5957else 5958 with_gnu_ld=no 5959fi 5960 5961ac_prog=ld 5962if test "$GCC" = yes; then 5963 # Check if gcc -print-prog-name=ld gives a path. 5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5965$as_echo_n "checking for ld used by $CC... " >&6; } 5966 case $host in 5967 *-*-mingw*) 5968 # gcc leaves a trailing carriage return which upsets mingw 5969 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5970 *) 5971 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5972 esac 5973 case $ac_prog in 5974 # Accept absolute paths. 5975 [\\/]* | ?:[\\/]*) 5976 re_direlt='/[^/][^/]*/\.\./' 5977 # Canonicalize the pathname of ld 5978 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 5979 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 5980 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 5981 done 5982 test -z "$LD" && LD="$ac_prog" 5983 ;; 5984 "") 5985 # If it fails, then pretend we aren't using GCC. 5986 ac_prog=ld 5987 ;; 5988 *) 5989 # If it is relative, then search for the first ld in PATH. 5990 with_gnu_ld=unknown 5991 ;; 5992 esac 5993elif test "$with_gnu_ld" = yes; then 5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5995$as_echo_n "checking for GNU ld... " >&6; } 5996else 5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5998$as_echo_n "checking for non-GNU ld... " >&6; } 5999fi 6000if test "${lt_cv_path_LD+set}" = set; then : 6001 $as_echo_n "(cached) " >&6 6002else 6003 if test -z "$LD"; then 6004 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6005 for ac_dir in $PATH; do 6006 IFS="$lt_save_ifs" 6007 test -z "$ac_dir" && ac_dir=. 6008 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6009 lt_cv_path_LD="$ac_dir/$ac_prog" 6010 # Check to see if the program is GNU ld. I'd rather use --version, 6011 # but apparently some variants of GNU ld only accept -v. 6012 # Break only if it was the GNU/non-GNU ld that we prefer. 6013 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6014 *GNU* | *'with BFD'*) 6015 test "$with_gnu_ld" != no && break 6016 ;; 6017 *) 6018 test "$with_gnu_ld" != yes && break 6019 ;; 6020 esac 6021 fi 6022 done 6023 IFS="$lt_save_ifs" 6024else 6025 lt_cv_path_LD="$LD" # Let the user override the test with a path. 6026fi 6027fi 6028 6029LD="$lt_cv_path_LD" 6030if test -n "$LD"; then 6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6032$as_echo "$LD" >&6; } 6033else 6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6035$as_echo "no" >&6; } 6036fi 6037test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 6038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6039$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 6040if test "${lt_cv_prog_gnu_ld+set}" = set; then : 6041 $as_echo_n "(cached) " >&6 6042else 6043 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6044case `$LD -v 2>&1 </dev/null` in 6045*GNU* | *'with BFD'*) 6046 lt_cv_prog_gnu_ld=yes 6047 ;; 6048*) 6049 lt_cv_prog_gnu_ld=no 6050 ;; 6051esac 6052fi 6053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6054$as_echo "$lt_cv_prog_gnu_ld" >&6; } 6055with_gnu_ld=$lt_cv_prog_gnu_ld 6056 6057 6058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6059$as_echo_n "checking for $LD option to reload object files... " >&6; } 6060if test "${lt_cv_ld_reload_flag+set}" = set; then : 6061 $as_echo_n "(cached) " >&6 6062else 6063 lt_cv_ld_reload_flag='-r' 6064fi 6065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6066$as_echo "$lt_cv_ld_reload_flag" >&6; } 6067reload_flag=$lt_cv_ld_reload_flag 6068case $reload_flag in 6069"" | " "*) ;; 6070*) reload_flag=" $reload_flag" ;; 6071esac 6072reload_cmds='$LD$reload_flag -o $output$reload_objs' 6073case $host_os in 6074 darwin*) 6075 if test "$GCC" = yes; then 6076 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6077 else 6078 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6079 fi 6080 ;; 6081esac 6082 6083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5 6084$as_echo_n "checking for BSD-compatible nm... " >&6; } 6085if test "${lt_cv_path_NM+set}" = set; then : 6086 $as_echo_n "(cached) " >&6 6087else 6088 if test -n "$NM"; then 6089 # Let the user override the test. 6090 lt_cv_path_NM="$NM" 6091else 6092 lt_nm_to_check="${ac_tool_prefix}nm" 6093 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6094 lt_nm_to_check="$lt_nm_to_check nm" 6095 fi 6096 for lt_tmp_nm in $lt_nm_to_check; do 6097 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6098 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6099 IFS="$lt_save_ifs" 6100 test -z "$ac_dir" && ac_dir=. 6101 tmp_nm="$ac_dir/$lt_tmp_nm" 6102 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 6103 # Check to see if the nm accepts a BSD-compat flag. 6104 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 6105 # nm: unknown option "B" ignored 6106 # Tru64's nm complains that /dev/null is an invalid object file 6107 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 6108 */dev/null* | *'Invalid file or object type'*) 6109 lt_cv_path_NM="$tmp_nm -B" 6110 break 6111 ;; 6112 *) 6113 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6114 */dev/null*) 6115 lt_cv_path_NM="$tmp_nm -p" 6116 break 6117 ;; 6118 *) 6119 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6120 continue # so that we can try to find one that supports BSD flags 6121 ;; 6122 esac 6123 ;; 6124 esac 6125 fi 6126 done 6127 IFS="$lt_save_ifs" 6128 done 6129 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 6130fi 6131fi 6132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6133$as_echo "$lt_cv_path_NM" >&6; } 6134NM="$lt_cv_path_NM" 6135 6136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6137$as_echo_n "checking whether ln -s works... " >&6; } 6138LN_S=$as_ln_s 6139if test "$LN_S" = "ln -s"; then 6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6141$as_echo "yes" >&6; } 6142else 6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6144$as_echo "no, using $LN_S" >&6; } 6145fi 6146 6147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6148$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6149if test "${lt_cv_deplibs_check_method+set}" = set; then : 6150 $as_echo_n "(cached) " >&6 6151else 6152 lt_cv_file_magic_cmd='$MAGIC_CMD' 6153lt_cv_file_magic_test_file= 6154lt_cv_deplibs_check_method='unknown' 6155# Need to set the preceding variable on all platforms that support 6156# interlibrary dependencies. 6157# 'none' -- dependencies not supported. 6158# `unknown' -- same as none, but documents that we really don't know. 6159# 'pass_all' -- all dependencies passed with no checks. 6160# 'test_compile' -- check by making test program. 6161# 'file_magic [[regex]]' -- check by looking for files in library path 6162# which responds to the $file_magic_cmd with a given extended regex. 6163# If you have `file' or equivalent on your system and you're not sure 6164# whether `pass_all' will *always* work, you probably want this one. 6165 6166case $host_os in 6167aix[4-9]*) 6168 lt_cv_deplibs_check_method=pass_all 6169 ;; 6170 6171beos*) 6172 lt_cv_deplibs_check_method=pass_all 6173 ;; 6174 6175bsdi[45]*) 6176 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6177 lt_cv_file_magic_cmd='/usr/bin/file -L' 6178 lt_cv_file_magic_test_file=/shlib/libc.so 6179 ;; 6180 6181cygwin*) 6182 # func_win32_libid is a shell function defined in ltmain.sh 6183 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6184 lt_cv_file_magic_cmd='func_win32_libid' 6185 ;; 6186 6187mingw* | pw32*) 6188 # Base MSYS/MinGW do not provide the 'file' command needed by 6189 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6190 # unless we find 'file', for example because we are cross-compiling. 6191 if ( file / ) >/dev/null 2>&1; then 6192 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6193 lt_cv_file_magic_cmd='func_win32_libid' 6194 else 6195 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 6196 lt_cv_file_magic_cmd='$OBJDUMP -f' 6197 fi 6198 ;; 6199 6200darwin* | rhapsody*) 6201 lt_cv_deplibs_check_method=pass_all 6202 ;; 6203 6204freebsd* | dragonfly*) 6205 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 6206 case $host_cpu in 6207 i*86 ) 6208 # Not sure whether the presence of OpenBSD here was a mistake. 6209 # Let's accept both of them until this is cleared up. 6210 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6211 lt_cv_file_magic_cmd=/usr/bin/file 6212 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6213 ;; 6214 esac 6215 else 6216 lt_cv_deplibs_check_method=pass_all 6217 fi 6218 ;; 6219 6220gnu*) 6221 lt_cv_deplibs_check_method=pass_all 6222 ;; 6223 6224hpux10.20* | hpux11*) 6225 lt_cv_file_magic_cmd=/usr/bin/file 6226 case $host_cpu in 6227 ia64*) 6228 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6229 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6230 ;; 6231 hppa*64*) 6232 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]' 6233 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6234 ;; 6235 *) 6236 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 6237 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6238 ;; 6239 esac 6240 ;; 6241 6242interix[3-9]*) 6243 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6244 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6245 ;; 6246 6247irix5* | irix6* | nonstopux*) 6248 case $LD in 6249 *-32|*"-32 ") libmagic=32-bit;; 6250 *-n32|*"-n32 ") libmagic=N32;; 6251 *-64|*"-64 ") libmagic=64-bit;; 6252 *) libmagic=never-match;; 6253 esac 6254 lt_cv_deplibs_check_method=pass_all 6255 ;; 6256 6257# This must be Linux ELF. 6258linux* | k*bsd*-gnu) 6259 lt_cv_deplibs_check_method=pass_all 6260 ;; 6261 6262netbsd*) 6263 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 6264 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6265 else 6266 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6267 fi 6268 ;; 6269 6270newos6*) 6271 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6272 lt_cv_file_magic_cmd=/usr/bin/file 6273 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6274 ;; 6275 6276nto-qnx*) 6277 lt_cv_deplibs_check_method=unknown 6278 ;; 6279 6280openbsd*) 6281 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6282 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6283 else 6284 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6285 fi 6286 ;; 6287 6288osf3* | osf4* | osf5*) 6289 lt_cv_deplibs_check_method=pass_all 6290 ;; 6291 6292rdos*) 6293 lt_cv_deplibs_check_method=pass_all 6294 ;; 6295 6296solaris*) 6297 lt_cv_deplibs_check_method=pass_all 6298 ;; 6299 6300sysv4 | sysv4.3*) 6301 case $host_vendor in 6302 motorola) 6303 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]' 6304 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6305 ;; 6306 ncr) 6307 lt_cv_deplibs_check_method=pass_all 6308 ;; 6309 sequent) 6310 lt_cv_file_magic_cmd='/bin/file' 6311 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6312 ;; 6313 sni) 6314 lt_cv_file_magic_cmd='/bin/file' 6315 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6316 lt_cv_file_magic_test_file=/lib/libc.so 6317 ;; 6318 siemens) 6319 lt_cv_deplibs_check_method=pass_all 6320 ;; 6321 pc) 6322 lt_cv_deplibs_check_method=pass_all 6323 ;; 6324 esac 6325 ;; 6326 6327sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6328 lt_cv_deplibs_check_method=pass_all 6329 ;; 6330esac 6331 6332fi 6333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6334$as_echo "$lt_cv_deplibs_check_method" >&6; } 6335file_magic_cmd=$lt_cv_file_magic_cmd 6336deplibs_check_method=$lt_cv_deplibs_check_method 6337test -z "$deplibs_check_method" && deplibs_check_method=unknown 6338 6339 6340# If no C compiler was specified, use CC. 6341LTCC=${LTCC-"$CC"} 6342 6343# If no C compiler flags were specified, use CFLAGS. 6344LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6345 6346# Allow CC to be a program name with arguments. 6347compiler=$CC 6348 6349 6350# Check whether --enable-libtool-lock was given. 6351if test "${enable_libtool_lock+set}" = set; then : 6352 enableval=$enable_libtool_lock; 6353fi 6354 6355test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6356 6357# Some flags need to be propagated to the compiler or linker for good 6358# libtool support. 6359case $host in 6360ia64-*-hpux*) 6361 # Find out which ABI we are using. 6362 echo 'int i;' > conftest.$ac_ext 6363 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6364 (eval $ac_compile) 2>&5 6365 ac_status=$? 6366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6367 test $ac_status = 0; }; then 6368 case `/usr/bin/file conftest.$ac_objext` in 6369 *ELF-32*) 6370 HPUX_IA64_MODE="32" 6371 ;; 6372 *ELF-64*) 6373 HPUX_IA64_MODE="64" 6374 ;; 6375 esac 6376 fi 6377 rm -rf conftest* 6378 ;; 6379*-*-irix6*) 6380 # Find out which ABI we are using. 6381 echo '#line 6381 "configure"' > conftest.$ac_ext 6382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6383 (eval $ac_compile) 2>&5 6384 ac_status=$? 6385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6386 test $ac_status = 0; }; then 6387 if test "$lt_cv_prog_gnu_ld" = yes; then 6388 case `/usr/bin/file conftest.$ac_objext` in 6389 *32-bit*) 6390 LD="${LD-ld} -melf32bsmip" 6391 ;; 6392 *N32*) 6393 LD="${LD-ld} -melf32bmipn32" 6394 ;; 6395 *64-bit*) 6396 LD="${LD-ld} -melf64bmip" 6397 ;; 6398 esac 6399 else 6400 case `/usr/bin/file conftest.$ac_objext` in 6401 *32-bit*) 6402 LD="${LD-ld} -32" 6403 ;; 6404 *N32*) 6405 LD="${LD-ld} -n32" 6406 ;; 6407 *64-bit*) 6408 LD="${LD-ld} -64" 6409 ;; 6410 esac 6411 fi 6412 fi 6413 rm -rf conftest* 6414 ;; 6415 6416x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6417s390*-*linux*|sparc*-*linux*) 6418 # Find out which ABI we are using. 6419 echo 'int i;' > conftest.$ac_ext 6420 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6421 (eval $ac_compile) 2>&5 6422 ac_status=$? 6423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6424 test $ac_status = 0; }; then 6425 case `/usr/bin/file conftest.o` in 6426 *32-bit*) 6427 case $host in 6428 x86_64-*kfreebsd*-gnu) 6429 LD="${LD-ld} -m elf_i386_fbsd" 6430 ;; 6431 x86_64-*linux*) 6432 LD="${LD-ld} -m elf_i386" 6433 ;; 6434 ppc64-*linux*|powerpc64-*linux*) 6435 LD="${LD-ld} -m elf32ppclinux" 6436 ;; 6437 s390x-*linux*) 6438 LD="${LD-ld} -m elf_s390" 6439 ;; 6440 sparc64-*linux*) 6441 LD="${LD-ld} -m elf32_sparc" 6442 ;; 6443 esac 6444 ;; 6445 *64-bit*) 6446 case $host in 6447 x86_64-*kfreebsd*-gnu) 6448 LD="${LD-ld} -m elf_x86_64_fbsd" 6449 ;; 6450 x86_64-*linux*) 6451 LD="${LD-ld} -m elf_x86_64" 6452 ;; 6453 ppc*-*linux*|powerpc*-*linux*) 6454 LD="${LD-ld} -m elf64ppc" 6455 ;; 6456 s390*-*linux*) 6457 LD="${LD-ld} -m elf64_s390" 6458 ;; 6459 sparc*-*linux*) 6460 LD="${LD-ld} -m elf64_sparc" 6461 ;; 6462 esac 6463 ;; 6464 esac 6465 fi 6466 rm -rf conftest* 6467 ;; 6468 6469*-*-sco3.2v5*) 6470 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6471 SAVE_CFLAGS="$CFLAGS" 6472 CFLAGS="$CFLAGS -belf" 6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6474$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6475if test "${lt_cv_cc_needs_belf+set}" = set; then : 6476 $as_echo_n "(cached) " >&6 6477else 6478 ac_ext=c 6479ac_cpp='$CPP $CPPFLAGS' 6480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6482ac_compiler_gnu=$ac_cv_c_compiler_gnu 6483 6484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6485/* end confdefs.h. */ 6486 6487int 6488main () 6489{ 6490 6491 ; 6492 return 0; 6493} 6494_ACEOF 6495if ac_fn_c_try_link "$LINENO"; then : 6496 lt_cv_cc_needs_belf=yes 6497else 6498 lt_cv_cc_needs_belf=no 6499fi 6500rm -f core conftest.err conftest.$ac_objext \ 6501 conftest$ac_exeext conftest.$ac_ext 6502 ac_ext=c 6503ac_cpp='$CPP $CPPFLAGS' 6504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6506ac_compiler_gnu=$ac_cv_c_compiler_gnu 6507 6508fi 6509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6510$as_echo "$lt_cv_cc_needs_belf" >&6; } 6511 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6512 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6513 CFLAGS="$SAVE_CFLAGS" 6514 fi 6515 ;; 6516sparc*-*solaris*) 6517 # Find out which ABI we are using. 6518 echo 'int i;' > conftest.$ac_ext 6519 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6520 (eval $ac_compile) 2>&5 6521 ac_status=$? 6522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6523 test $ac_status = 0; }; then 6524 case `/usr/bin/file conftest.o` in 6525 *64-bit*) 6526 case $lt_cv_prog_gnu_ld in 6527 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6528 *) 6529 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6530 LD="${LD-ld} -64" 6531 fi 6532 ;; 6533 esac 6534 ;; 6535 esac 6536 fi 6537 rm -rf conftest* 6538 ;; 6539 6540 6541esac 6542 6543need_locks="$enable_libtool_lock" 6544 6545 6546 6547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6548$as_echo_n "checking for ANSI C header files... " >&6; } 6549if test "${ac_cv_header_stdc+set}" = set; then : 6550 $as_echo_n "(cached) " >&6 6551else 6552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6553/* end confdefs.h. */ 6554#include <stdlib.h> 6555#include <stdarg.h> 6556#include <string.h> 6557#include <float.h> 6558 6559int 6560main () 6561{ 6562 6563 ; 6564 return 0; 6565} 6566_ACEOF 6567if ac_fn_c_try_compile "$LINENO"; then : 6568 ac_cv_header_stdc=yes 6569else 6570 ac_cv_header_stdc=no 6571fi 6572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6573 6574if test $ac_cv_header_stdc = yes; then 6575 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6577/* end confdefs.h. */ 6578#include <string.h> 6579 6580_ACEOF 6581if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6582 $EGREP "memchr" >/dev/null 2>&1; then : 6583 6584else 6585 ac_cv_header_stdc=no 6586fi 6587rm -f conftest* 6588 6589fi 6590 6591if test $ac_cv_header_stdc = yes; then 6592 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6594/* end confdefs.h. */ 6595#include <stdlib.h> 6596 6597_ACEOF 6598if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6599 $EGREP "free" >/dev/null 2>&1; then : 6600 6601else 6602 ac_cv_header_stdc=no 6603fi 6604rm -f conftest* 6605 6606fi 6607 6608if test $ac_cv_header_stdc = yes; then 6609 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6610 if test "$cross_compiling" = yes; then : 6611 : 6612else 6613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6614/* end confdefs.h. */ 6615#include <ctype.h> 6616#include <stdlib.h> 6617#if ((' ' & 0x0FF) == 0x020) 6618# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6619# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6620#else 6621# define ISLOWER(c) \ 6622 (('a' <= (c) && (c) <= 'i') \ 6623 || ('j' <= (c) && (c) <= 'r') \ 6624 || ('s' <= (c) && (c) <= 'z')) 6625# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6626#endif 6627 6628#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6629int 6630main () 6631{ 6632 int i; 6633 for (i = 0; i < 256; i++) 6634 if (XOR (islower (i), ISLOWER (i)) 6635 || toupper (i) != TOUPPER (i)) 6636 return 2; 6637 return 0; 6638} 6639_ACEOF 6640if ac_fn_c_try_run "$LINENO"; then : 6641 6642else 6643 ac_cv_header_stdc=no 6644fi 6645rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6646 conftest.$ac_objext conftest.beam conftest.$ac_ext 6647fi 6648 6649fi 6650fi 6651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 6652$as_echo "$ac_cv_header_stdc" >&6; } 6653if test $ac_cv_header_stdc = yes; then 6654 6655$as_echo "#define STDC_HEADERS 1" >>confdefs.h 6656 6657fi 6658 6659# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6660for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6661 inttypes.h stdint.h unistd.h 6662do : 6663 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6664ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 6665" 6666eval as_val=\$$as_ac_Header 6667 if test "x$as_val" = x""yes; then : 6668 cat >>confdefs.h <<_ACEOF 6669#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6670_ACEOF 6671 6672fi 6673 6674done 6675 6676 6677for ac_header in dlfcn.h 6678do : 6679 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 6680if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 6681 cat >>confdefs.h <<_ACEOF 6682#define HAVE_DLFCN_H 1 6683_ACEOF 6684 6685fi 6686 6687done 6688 6689 6690 6691if test -n "$CXX" && ( test "X$CXX" != "Xno" && 6692 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 6693 (test "X$CXX" != "Xg++"))) ; then 6694 ac_ext=cpp 6695ac_cpp='$CXXCPP $CPPFLAGS' 6696ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6697ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6698ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 6700$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 6701if test -z "$CXXCPP"; then 6702 if test "${ac_cv_prog_CXXCPP+set}" = set; then : 6703 $as_echo_n "(cached) " >&6 6704else 6705 # Double quotes because CXXCPP needs to be expanded 6706 for CXXCPP in "$CXX -E" "/lib/cpp" 6707 do 6708 ac_preproc_ok=false 6709for ac_cxx_preproc_warn_flag in '' yes 6710do 6711 # Use a header file that comes with gcc, so configuring glibc 6712 # with a fresh cross-compiler works. 6713 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6714 # <limits.h> exists even on freestanding compilers. 6715 # On the NeXT, cc -E runs the code through the compiler's parser, 6716 # not just through cpp. "Syntax error" is here to catch this case. 6717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6718/* end confdefs.h. */ 6719#ifdef __STDC__ 6720# include <limits.h> 6721#else 6722# include <assert.h> 6723#endif 6724 Syntax error 6725_ACEOF 6726if ac_fn_cxx_try_cpp "$LINENO"; then : 6727 6728else 6729 # Broken: fails on valid input. 6730continue 6731fi 6732rm -f conftest.err conftest.$ac_ext 6733 6734 # OK, works on sane cases. Now check whether nonexistent headers 6735 # can be detected and how. 6736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6737/* end confdefs.h. */ 6738#include <ac_nonexistent.h> 6739_ACEOF 6740if ac_fn_cxx_try_cpp "$LINENO"; then : 6741 # Broken: success on invalid input. 6742continue 6743else 6744 # Passes both tests. 6745ac_preproc_ok=: 6746break 6747fi 6748rm -f conftest.err conftest.$ac_ext 6749 6750done 6751# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6752rm -f conftest.err conftest.$ac_ext 6753if $ac_preproc_ok; then : 6754 break 6755fi 6756 6757 done 6758 ac_cv_prog_CXXCPP=$CXXCPP 6759 6760fi 6761 CXXCPP=$ac_cv_prog_CXXCPP 6762else 6763 ac_cv_prog_CXXCPP=$CXXCPP 6764fi 6765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 6766$as_echo "$CXXCPP" >&6; } 6767ac_preproc_ok=false 6768for ac_cxx_preproc_warn_flag in '' yes 6769do 6770 # Use a header file that comes with gcc, so configuring glibc 6771 # with a fresh cross-compiler works. 6772 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6773 # <limits.h> exists even on freestanding compilers. 6774 # On the NeXT, cc -E runs the code through the compiler's parser, 6775 # not just through cpp. "Syntax error" is here to catch this case. 6776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6777/* end confdefs.h. */ 6778#ifdef __STDC__ 6779# include <limits.h> 6780#else 6781# include <assert.h> 6782#endif 6783 Syntax error 6784_ACEOF 6785if ac_fn_cxx_try_cpp "$LINENO"; then : 6786 6787else 6788 # Broken: fails on valid input. 6789continue 6790fi 6791rm -f conftest.err conftest.$ac_ext 6792 6793 # OK, works on sane cases. Now check whether nonexistent headers 6794 # can be detected and how. 6795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6796/* end confdefs.h. */ 6797#include <ac_nonexistent.h> 6798_ACEOF 6799if ac_fn_cxx_try_cpp "$LINENO"; then : 6800 # Broken: success on invalid input. 6801continue 6802else 6803 # Passes both tests. 6804ac_preproc_ok=: 6805break 6806fi 6807rm -f conftest.err conftest.$ac_ext 6808 6809done 6810# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6811rm -f conftest.err conftest.$ac_ext 6812if $ac_preproc_ok; then : 6813 6814else 6815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6816$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6817as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check 6818See \`config.log' for more details." "$LINENO" 5; } 6819fi 6820 6821ac_ext=cpp 6822ac_cpp='$CXXCPP $CPPFLAGS' 6823ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6824ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6825ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6826 6827fi 6828 6829ac_ext=f 6830ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6831ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6832ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6833if test -n "$ac_tool_prefix"; then 6834 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn 6835 do 6836 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6837set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6839$as_echo_n "checking for $ac_word... " >&6; } 6840if test "${ac_cv_prog_F77+set}" = set; then : 6841 $as_echo_n "(cached) " >&6 6842else 6843 if test -n "$F77"; then 6844 ac_cv_prog_F77="$F77" # Let the user override the test. 6845else 6846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6847for as_dir in $PATH 6848do 6849 IFS=$as_save_IFS 6850 test -z "$as_dir" && as_dir=. 6851 for ac_exec_ext in '' $ac_executable_extensions; do 6852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6853 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6855 break 2 6856 fi 6857done 6858 done 6859IFS=$as_save_IFS 6860 6861fi 6862fi 6863F77=$ac_cv_prog_F77 6864if test -n "$F77"; then 6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5 6866$as_echo "$F77" >&6; } 6867else 6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6869$as_echo "no" >&6; } 6870fi 6871 6872 6873 test -n "$F77" && break 6874 done 6875fi 6876if test -z "$F77"; then 6877 ac_ct_F77=$F77 6878 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn 6879do 6880 # Extract the first word of "$ac_prog", so it can be a program name with args. 6881set dummy $ac_prog; ac_word=$2 6882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6883$as_echo_n "checking for $ac_word... " >&6; } 6884if test "${ac_cv_prog_ac_ct_F77+set}" = set; then : 6885 $as_echo_n "(cached) " >&6 6886else 6887 if test -n "$ac_ct_F77"; then 6888 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6889else 6890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6891for as_dir in $PATH 6892do 6893 IFS=$as_save_IFS 6894 test -z "$as_dir" && as_dir=. 6895 for ac_exec_ext in '' $ac_executable_extensions; do 6896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6897 ac_cv_prog_ac_ct_F77="$ac_prog" 6898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6899 break 2 6900 fi 6901done 6902 done 6903IFS=$as_save_IFS 6904 6905fi 6906fi 6907ac_ct_F77=$ac_cv_prog_ac_ct_F77 6908if test -n "$ac_ct_F77"; then 6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5 6910$as_echo "$ac_ct_F77" >&6; } 6911else 6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6913$as_echo "no" >&6; } 6914fi 6915 6916 6917 test -n "$ac_ct_F77" && break 6918done 6919 6920 if test "x$ac_ct_F77" = x; then 6921 F77="" 6922 else 6923 case $cross_compiling:$ac_tool_warned in 6924yes:) 6925{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6926$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6927ac_tool_warned=yes ;; 6928esac 6929 F77=$ac_ct_F77 6930 fi 6931fi 6932 6933 6934# Provide some information about the compiler. 6935$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5 6936set X $ac_compile 6937ac_compiler=$2 6938for ac_option in --version -v -V -qversion; do 6939 { { ac_try="$ac_compiler $ac_option >&5" 6940case "(($ac_try" in 6941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6942 *) ac_try_echo=$ac_try;; 6943esac 6944eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6945$as_echo "$ac_try_echo"; } >&5 6946 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 6947 ac_status=$? 6948 if test -s conftest.err; then 6949 sed '10a\ 6950... rest of stderr output deleted ... 6951 10q' conftest.err >conftest.er1 6952 cat conftest.er1 >&5 6953 fi 6954 rm -f conftest.er1 conftest.err 6955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6956 test $ac_status = 0; } 6957done 6958rm -f a.out 6959 6960# If we don't use `.F' as extension, the preprocessor is not run on the 6961# input file. (Note that this only needs to work for GNU compilers.) 6962ac_save_ext=$ac_ext 6963ac_ext=F 6964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5 6965$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } 6966if test "${ac_cv_f77_compiler_gnu+set}" = set; then : 6967 $as_echo_n "(cached) " >&6 6968else 6969 cat > conftest.$ac_ext <<_ACEOF 6970 program main 6971#ifndef __GNUC__ 6972 choke me 6973#endif 6974 6975 end 6976_ACEOF 6977if ac_fn_f77_try_compile "$LINENO"; then : 6978 ac_compiler_gnu=yes 6979else 6980 ac_compiler_gnu=no 6981fi 6982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6983ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6984 6985fi 6986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5 6987$as_echo "$ac_cv_f77_compiler_gnu" >&6; } 6988ac_ext=$ac_save_ext 6989ac_test_FFLAGS=${FFLAGS+set} 6990ac_save_FFLAGS=$FFLAGS 6991FFLAGS= 6992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5 6993$as_echo_n "checking whether $F77 accepts -g... " >&6; } 6994if test "${ac_cv_prog_f77_g+set}" = set; then : 6995 $as_echo_n "(cached) " >&6 6996else 6997 FFLAGS=-g 6998cat > conftest.$ac_ext <<_ACEOF 6999 program main 7000 7001 end 7002_ACEOF 7003if ac_fn_f77_try_compile "$LINENO"; then : 7004 ac_cv_prog_f77_g=yes 7005else 7006 ac_cv_prog_f77_g=no 7007fi 7008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7009 7010fi 7011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5 7012$as_echo "$ac_cv_prog_f77_g" >&6; } 7013if test "$ac_test_FFLAGS" = set; then 7014 FFLAGS=$ac_save_FFLAGS 7015elif test $ac_cv_prog_f77_g = yes; then 7016 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 7017 FFLAGS="-g -O2" 7018 else 7019 FFLAGS="-g" 7020 fi 7021else 7022 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 7023 FFLAGS="-O2" 7024 else 7025 FFLAGS= 7026 fi 7027fi 7028 7029if test $ac_compiler_gnu = yes; then 7030 G77=yes 7031else 7032 G77= 7033fi 7034ac_ext=cpp 7035ac_cpp='$CXXCPP $CPPFLAGS' 7036ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7037ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7038ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7039 7040 7041 7042# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 7043# find the maximum length of command line arguments 7044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 7045$as_echo_n "checking the maximum length of command line arguments... " >&6; } 7046if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 7047 $as_echo_n "(cached) " >&6 7048else 7049 i=0 7050 teststring="ABCD" 7051 7052 case $build_os in 7053 msdosdjgpp*) 7054 # On DJGPP, this test can blow up pretty badly due to problems in libc 7055 # (any single argument exceeding 2000 bytes causes a buffer overrun 7056 # during glob expansion). Even if it were fixed, the result of this 7057 # check would be larger than it should be. 7058 lt_cv_sys_max_cmd_len=12288; # 12K is about right 7059 ;; 7060 7061 gnu*) 7062 # Under GNU Hurd, this test is not required because there is 7063 # no limit to the length of command line arguments. 7064 # Libtool will interpret -1 as no limit whatsoever 7065 lt_cv_sys_max_cmd_len=-1; 7066 ;; 7067 7068 cygwin* | mingw*) 7069 # On Win9x/ME, this test blows up -- it succeeds, but takes 7070 # about 5 minutes as the teststring grows exponentially. 7071 # Worse, since 9x/ME are not pre-emptively multitasking, 7072 # you end up with a "frozen" computer, even though with patience 7073 # the test eventually succeeds (with a max line length of 256k). 7074 # Instead, let's just punt: use the minimum linelength reported by 7075 # all of the supported platforms: 8192 (on NT/2K/XP). 7076 lt_cv_sys_max_cmd_len=8192; 7077 ;; 7078 7079 amigaos*) 7080 # On AmigaOS with pdksh, this test takes hours, literally. 7081 # So we just punt and use a minimum line length of 8192. 7082 lt_cv_sys_max_cmd_len=8192; 7083 ;; 7084 7085 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 7086 # This has been around since 386BSD, at least. Likely further. 7087 if test -x /sbin/sysctl; then 7088 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7089 elif test -x /usr/sbin/sysctl; then 7090 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7091 else 7092 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7093 fi 7094 # And add a safety zone 7095 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7096 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7097 ;; 7098 7099 interix*) 7100 # We know the value 262144 and hardcode it with a safety zone (like BSD) 7101 lt_cv_sys_max_cmd_len=196608 7102 ;; 7103 7104 osf*) 7105 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7106 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7107 # nice to cause kernel panics so lets avoid the loop below. 7108 # First set a reasonable default. 7109 lt_cv_sys_max_cmd_len=16384 7110 # 7111 if test -x /sbin/sysconfig; then 7112 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7113 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7114 esac 7115 fi 7116 ;; 7117 sco3.2v5*) 7118 lt_cv_sys_max_cmd_len=102400 7119 ;; 7120 sysv5* | sco5v6* | sysv4.2uw2*) 7121 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7122 if test -n "$kargmax"; then 7123 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 7124 else 7125 lt_cv_sys_max_cmd_len=32768 7126 fi 7127 ;; 7128 *) 7129 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 7130 if test -n "$lt_cv_sys_max_cmd_len"; then 7131 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7132 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7133 else 7134 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7135 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 7136 = "XX$teststring") >/dev/null 2>&1 && 7137 new_result=`expr "X$teststring" : ".*" 2>&1` && 7138 lt_cv_sys_max_cmd_len=$new_result && 7139 test $i != 17 # 1/2 MB should be enough 7140 do 7141 i=`expr $i + 1` 7142 teststring=$teststring$teststring 7143 done 7144 teststring= 7145 # Add a significant safety factor because C++ compilers can tack on massive 7146 # amounts of additional arguments before passing them to the linker. 7147 # It appears as though 1/2 is a usable value. 7148 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7149 fi 7150 ;; 7151 esac 7152 7153fi 7154 7155if test -n $lt_cv_sys_max_cmd_len ; then 7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 7157$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 7158else 7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 7160$as_echo "none" >&6; } 7161fi 7162 7163 7164 7165 7166 7167# Check for command to grab the raw symbol name followed by C symbol from nm. 7168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7169$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7170if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 7171 $as_echo_n "(cached) " >&6 7172else 7173 7174# These are sane defaults that work on at least a few old systems. 7175# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7176 7177# Character class describing NM global symbol codes. 7178symcode='[BCDEGRST]' 7179 7180# Regexp to match symbols that can be accessed directly from C. 7181sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7182 7183# Transform an extracted symbol line into a proper C declaration 7184lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 7185 7186# Transform an extracted symbol line into symbol name and symbol address 7187lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 7188 7189# Define system-specific variables. 7190case $host_os in 7191aix*) 7192 symcode='[BCDT]' 7193 ;; 7194cygwin* | mingw* | pw32*) 7195 symcode='[ABCDGISTW]' 7196 ;; 7197hpux*) # Its linker distinguishes data from code symbols 7198 if test "$host_cpu" = ia64; then 7199 symcode='[ABCDEGRST]' 7200 fi 7201 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7202 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 7203 ;; 7204linux* | k*bsd*-gnu) 7205 if test "$host_cpu" = ia64; then 7206 symcode='[ABCDGIRSTW]' 7207 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7208 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 7209 fi 7210 ;; 7211irix* | nonstopux*) 7212 symcode='[BCDEGRST]' 7213 ;; 7214osf*) 7215 symcode='[BCDEGQRST]' 7216 ;; 7217solaris*) 7218 symcode='[BDRT]' 7219 ;; 7220sco3.2v5*) 7221 symcode='[DT]' 7222 ;; 7223sysv4.2uw2*) 7224 symcode='[DT]' 7225 ;; 7226sysv5* | sco5v6* | unixware* | OpenUNIX*) 7227 symcode='[ABDT]' 7228 ;; 7229sysv4) 7230 symcode='[DFNSTU]' 7231 ;; 7232esac 7233 7234# Handle CRLF in mingw tool chain 7235opt_cr= 7236case $build_os in 7237mingw*) 7238 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7239 ;; 7240esac 7241 7242# If we're using GNU nm, then use its standard symbol codes. 7243case `$NM -V 2>&1` in 7244*GNU* | *'with BFD'*) 7245 symcode='[ABCDGIRSTW]' ;; 7246esac 7247 7248# Try without a prefix undercore, then with it. 7249for ac_symprfx in "" "_"; do 7250 7251 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7252 symxfrm="\\1 $ac_symprfx\\2 \\2" 7253 7254 # Write the raw and C identifiers. 7255 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7256 7257 # Check to see that the pipe works correctly. 7258 pipe_works=no 7259 7260 rm -f conftest* 7261 cat > conftest.$ac_ext <<EOF 7262#ifdef __cplusplus 7263extern "C" { 7264#endif 7265char nm_test_var; 7266void nm_test_func(){} 7267#ifdef __cplusplus 7268} 7269#endif 7270int main(){nm_test_var='a';nm_test_func();return(0);} 7271EOF 7272 7273 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7274 (eval $ac_compile) 2>&5 7275 ac_status=$? 7276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7277 test $ac_status = 0; }; then 7278 # Now try to grab the symbols. 7279 nlist=conftest.nm 7280 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 7281 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 7282 ac_status=$? 7283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7284 test $ac_status = 0; } && test -s "$nlist"; then 7285 # Try sorting and uniquifying the output. 7286 if sort "$nlist" | uniq > "$nlist"T; then 7287 mv -f "$nlist"T "$nlist" 7288 else 7289 rm -f "$nlist"T 7290 fi 7291 7292 # Make sure that we snagged all the symbols we need. 7293 if grep ' nm_test_var$' "$nlist" >/dev/null; then 7294 if grep ' nm_test_func$' "$nlist" >/dev/null; then 7295 cat <<EOF > conftest.$ac_ext 7296#ifdef __cplusplus 7297extern "C" { 7298#endif 7299 7300EOF 7301 # Now generate the symbol file. 7302 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 7303 7304 cat <<EOF >> conftest.$ac_ext 7305#if defined (__STDC__) && __STDC__ 7306# define lt_ptr_t void * 7307#else 7308# define lt_ptr_t char * 7309# define const 7310#endif 7311 7312/* The mapping between symbol names and symbols. */ 7313const struct { 7314 const char *name; 7315 lt_ptr_t address; 7316} 7317lt_preloaded_symbols[] = 7318{ 7319EOF 7320 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 7321 cat <<\EOF >> conftest.$ac_ext 7322 {0, (lt_ptr_t) 0} 7323}; 7324 7325#ifdef __cplusplus 7326} 7327#endif 7328EOF 7329 # Now try linking the two files. 7330 mv conftest.$ac_objext conftstm.$ac_objext 7331 lt_save_LIBS="$LIBS" 7332 lt_save_CFLAGS="$CFLAGS" 7333 LIBS="conftstm.$ac_objext" 7334 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7335 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7336 (eval $ac_link) 2>&5 7337 ac_status=$? 7338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7339 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7340 pipe_works=yes 7341 fi 7342 LIBS="$lt_save_LIBS" 7343 CFLAGS="$lt_save_CFLAGS" 7344 else 7345 echo "cannot find nm_test_func in $nlist" >&5 7346 fi 7347 else 7348 echo "cannot find nm_test_var in $nlist" >&5 7349 fi 7350 else 7351 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7352 fi 7353 else 7354 echo "$progname: failed program was:" >&5 7355 cat conftest.$ac_ext >&5 7356 fi 7357 rm -rf conftest* conftst* 7358 7359 # Do not use the global_symbol_pipe unless it works. 7360 if test "$pipe_works" = yes; then 7361 break 7362 else 7363 lt_cv_sys_global_symbol_pipe= 7364 fi 7365done 7366 7367fi 7368 7369if test -z "$lt_cv_sys_global_symbol_pipe"; then 7370 lt_cv_sys_global_symbol_to_cdecl= 7371fi 7372if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7374$as_echo "failed" >&6; } 7375else 7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7377$as_echo "ok" >&6; } 7378fi 7379 7380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7381$as_echo_n "checking for objdir... " >&6; } 7382if test "${lt_cv_objdir+set}" = set; then : 7383 $as_echo_n "(cached) " >&6 7384else 7385 rm -f .libs 2>/dev/null 7386mkdir .libs 2>/dev/null 7387if test -d .libs; then 7388 lt_cv_objdir=.libs 7389else 7390 # MS-DOS does not allow filenames that begin with a dot. 7391 lt_cv_objdir=_libs 7392fi 7393rmdir .libs 2>/dev/null 7394fi 7395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7396$as_echo "$lt_cv_objdir" >&6; } 7397objdir=$lt_cv_objdir 7398 7399 7400 7401 7402 7403case $host_os in 7404aix3*) 7405 # AIX sometimes has problems with the GCC collect2 program. For some 7406 # reason, if we set the COLLECT_NAMES environment variable, the problems 7407 # vanish in a puff of smoke. 7408 if test "X${COLLECT_NAMES+set}" != Xset; then 7409 COLLECT_NAMES= 7410 export COLLECT_NAMES 7411 fi 7412 ;; 7413esac 7414 7415# Sed substitution that helps us do robust quoting. It backslashifies 7416# metacharacters that are still active within double-quoted strings. 7417Xsed='sed -e 1s/^X//' 7418sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 7419 7420# Same as above, but do not quote variable references. 7421double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 7422 7423# Sed substitution to delay expansion of an escaped shell variable in a 7424# double_quote_subst'ed string. 7425delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7426 7427# Sed substitution to avoid accidental globbing in evaled expressions 7428no_glob_subst='s/\*/\\\*/g' 7429 7430# Constants: 7431rm="rm -f" 7432 7433# Global variables: 7434default_ofile=libtool 7435can_build_shared=yes 7436 7437# All known linkers require a `.a' archive for static linking (except MSVC, 7438# which needs '.lib'). 7439libext=a 7440ltmain="$ac_aux_dir/ltmain.sh" 7441ofile="$default_ofile" 7442with_gnu_ld="$lt_cv_prog_gnu_ld" 7443 7444if test -n "$ac_tool_prefix"; then 7445 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7446set dummy ${ac_tool_prefix}ar; ac_word=$2 7447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7448$as_echo_n "checking for $ac_word... " >&6; } 7449if test "${ac_cv_prog_AR+set}" = set; then : 7450 $as_echo_n "(cached) " >&6 7451else 7452 if test -n "$AR"; then 7453 ac_cv_prog_AR="$AR" # Let the user override the test. 7454else 7455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7456for as_dir in $PATH 7457do 7458 IFS=$as_save_IFS 7459 test -z "$as_dir" && as_dir=. 7460 for ac_exec_ext in '' $ac_executable_extensions; do 7461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7462 ac_cv_prog_AR="${ac_tool_prefix}ar" 7463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7464 break 2 7465 fi 7466done 7467 done 7468IFS=$as_save_IFS 7469 7470fi 7471fi 7472AR=$ac_cv_prog_AR 7473if test -n "$AR"; then 7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7475$as_echo "$AR" >&6; } 7476else 7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7478$as_echo "no" >&6; } 7479fi 7480 7481 7482fi 7483if test -z "$ac_cv_prog_AR"; then 7484 ac_ct_AR=$AR 7485 # Extract the first word of "ar", so it can be a program name with args. 7486set dummy ar; ac_word=$2 7487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7488$as_echo_n "checking for $ac_word... " >&6; } 7489if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 7490 $as_echo_n "(cached) " >&6 7491else 7492 if test -n "$ac_ct_AR"; then 7493 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7494else 7495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7496for as_dir in $PATH 7497do 7498 IFS=$as_save_IFS 7499 test -z "$as_dir" && as_dir=. 7500 for ac_exec_ext in '' $ac_executable_extensions; do 7501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7502 ac_cv_prog_ac_ct_AR="ar" 7503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7504 break 2 7505 fi 7506done 7507 done 7508IFS=$as_save_IFS 7509 7510fi 7511fi 7512ac_ct_AR=$ac_cv_prog_ac_ct_AR 7513if test -n "$ac_ct_AR"; then 7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7515$as_echo "$ac_ct_AR" >&6; } 7516else 7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7518$as_echo "no" >&6; } 7519fi 7520 7521 if test "x$ac_ct_AR" = x; then 7522 AR="false" 7523 else 7524 case $cross_compiling:$ac_tool_warned in 7525yes:) 7526{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7527$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7528ac_tool_warned=yes ;; 7529esac 7530 AR=$ac_ct_AR 7531 fi 7532else 7533 AR="$ac_cv_prog_AR" 7534fi 7535 7536if test -n "$ac_tool_prefix"; then 7537 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7538set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7540$as_echo_n "checking for $ac_word... " >&6; } 7541if test "${ac_cv_prog_RANLIB+set}" = set; then : 7542 $as_echo_n "(cached) " >&6 7543else 7544 if test -n "$RANLIB"; then 7545 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7546else 7547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7548for as_dir in $PATH 7549do 7550 IFS=$as_save_IFS 7551 test -z "$as_dir" && as_dir=. 7552 for ac_exec_ext in '' $ac_executable_extensions; do 7553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7554 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7556 break 2 7557 fi 7558done 7559 done 7560IFS=$as_save_IFS 7561 7562fi 7563fi 7564RANLIB=$ac_cv_prog_RANLIB 7565if test -n "$RANLIB"; then 7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7567$as_echo "$RANLIB" >&6; } 7568else 7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7570$as_echo "no" >&6; } 7571fi 7572 7573 7574fi 7575if test -z "$ac_cv_prog_RANLIB"; then 7576 ac_ct_RANLIB=$RANLIB 7577 # Extract the first word of "ranlib", so it can be a program name with args. 7578set dummy ranlib; ac_word=$2 7579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7580$as_echo_n "checking for $ac_word... " >&6; } 7581if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 7582 $as_echo_n "(cached) " >&6 7583else 7584 if test -n "$ac_ct_RANLIB"; then 7585 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7586else 7587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7588for as_dir in $PATH 7589do 7590 IFS=$as_save_IFS 7591 test -z "$as_dir" && as_dir=. 7592 for ac_exec_ext in '' $ac_executable_extensions; do 7593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7594 ac_cv_prog_ac_ct_RANLIB="ranlib" 7595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7596 break 2 7597 fi 7598done 7599 done 7600IFS=$as_save_IFS 7601 7602fi 7603fi 7604ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7605if test -n "$ac_ct_RANLIB"; then 7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7607$as_echo "$ac_ct_RANLIB" >&6; } 7608else 7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7610$as_echo "no" >&6; } 7611fi 7612 7613 if test "x$ac_ct_RANLIB" = x; then 7614 RANLIB=":" 7615 else 7616 case $cross_compiling:$ac_tool_warned in 7617yes:) 7618{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7619$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7620ac_tool_warned=yes ;; 7621esac 7622 RANLIB=$ac_ct_RANLIB 7623 fi 7624else 7625 RANLIB="$ac_cv_prog_RANLIB" 7626fi 7627 7628if test -n "$ac_tool_prefix"; then 7629 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7630set dummy ${ac_tool_prefix}strip; ac_word=$2 7631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7632$as_echo_n "checking for $ac_word... " >&6; } 7633if test "${ac_cv_prog_STRIP+set}" = set; then : 7634 $as_echo_n "(cached) " >&6 7635else 7636 if test -n "$STRIP"; then 7637 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7638else 7639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7640for as_dir in $PATH 7641do 7642 IFS=$as_save_IFS 7643 test -z "$as_dir" && as_dir=. 7644 for ac_exec_ext in '' $ac_executable_extensions; do 7645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7646 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7648 break 2 7649 fi 7650done 7651 done 7652IFS=$as_save_IFS 7653 7654fi 7655fi 7656STRIP=$ac_cv_prog_STRIP 7657if test -n "$STRIP"; then 7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7659$as_echo "$STRIP" >&6; } 7660else 7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7662$as_echo "no" >&6; } 7663fi 7664 7665 7666fi 7667if test -z "$ac_cv_prog_STRIP"; then 7668 ac_ct_STRIP=$STRIP 7669 # Extract the first word of "strip", so it can be a program name with args. 7670set dummy strip; ac_word=$2 7671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7672$as_echo_n "checking for $ac_word... " >&6; } 7673if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 7674 $as_echo_n "(cached) " >&6 7675else 7676 if test -n "$ac_ct_STRIP"; then 7677 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7678else 7679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7680for as_dir in $PATH 7681do 7682 IFS=$as_save_IFS 7683 test -z "$as_dir" && as_dir=. 7684 for ac_exec_ext in '' $ac_executable_extensions; do 7685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7686 ac_cv_prog_ac_ct_STRIP="strip" 7687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7688 break 2 7689 fi 7690done 7691 done 7692IFS=$as_save_IFS 7693 7694fi 7695fi 7696ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7697if test -n "$ac_ct_STRIP"; then 7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7699$as_echo "$ac_ct_STRIP" >&6; } 7700else 7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7702$as_echo "no" >&6; } 7703fi 7704 7705 if test "x$ac_ct_STRIP" = x; then 7706 STRIP=":" 7707 else 7708 case $cross_compiling:$ac_tool_warned in 7709yes:) 7710{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7711$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7712ac_tool_warned=yes ;; 7713esac 7714 STRIP=$ac_ct_STRIP 7715 fi 7716else 7717 STRIP="$ac_cv_prog_STRIP" 7718fi 7719 7720 7721old_CC="$CC" 7722old_CFLAGS="$CFLAGS" 7723 7724# Set sane defaults for various variables 7725test -z "$AR" && AR=ar 7726test -z "$AR_FLAGS" && AR_FLAGS=cru 7727test -z "$AS" && AS=as 7728test -z "$CC" && CC=cc 7729test -z "$LTCC" && LTCC=$CC 7730test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7731test -z "$DLLTOOL" && DLLTOOL=dlltool 7732test -z "$LD" && LD=ld 7733test -z "$LN_S" && LN_S="ln -s" 7734test -z "$MAGIC_CMD" && MAGIC_CMD=file 7735test -z "$NM" && NM=nm 7736test -z "$SED" && SED=sed 7737test -z "$OBJDUMP" && OBJDUMP=objdump 7738test -z "$RANLIB" && RANLIB=: 7739test -z "$STRIP" && STRIP=: 7740test -z "$ac_objext" && ac_objext=o 7741 7742# Determine commands to create old-style static archives. 7743old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7744old_postinstall_cmds='chmod 644 $oldlib' 7745old_postuninstall_cmds= 7746 7747if test -n "$RANLIB"; then 7748 case $host_os in 7749 openbsd*) 7750 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7751 ;; 7752 *) 7753 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7754 ;; 7755 esac 7756 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7757fi 7758 7759for cc_temp in $compiler""; do 7760 case $cc_temp in 7761 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7762 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7763 \-*) ;; 7764 *) break;; 7765 esac 7766done 7767cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7768 7769 7770# Only perform the check for file, if the check method requires it 7771case $deplibs_check_method in 7772file_magic*) 7773 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7775$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7776if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7777 $as_echo_n "(cached) " >&6 7778else 7779 case $MAGIC_CMD in 7780[\\/*] | ?:[\\/]*) 7781 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7782 ;; 7783*) 7784 lt_save_MAGIC_CMD="$MAGIC_CMD" 7785 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7786 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7787 for ac_dir in $ac_dummy; do 7788 IFS="$lt_save_ifs" 7789 test -z "$ac_dir" && ac_dir=. 7790 if test -f $ac_dir/${ac_tool_prefix}file; then 7791 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7792 if test -n "$file_magic_test_file"; then 7793 case $deplibs_check_method in 7794 "file_magic "*) 7795 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7796 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7797 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7798 $EGREP "$file_magic_regex" > /dev/null; then 7799 : 7800 else 7801 cat <<EOF 1>&2 7802 7803*** Warning: the command libtool uses to detect shared libraries, 7804*** $file_magic_cmd, produces output that libtool cannot recognize. 7805*** The result is that libtool may fail to recognize shared libraries 7806*** as such. This will affect the creation of libtool libraries that 7807*** depend on shared libraries, but programs linked with such libtool 7808*** libraries will work regardless of this problem. Nevertheless, you 7809*** may want to report the problem to your system manager and/or to 7810*** bug-libtool@gnu.org 7811 7812EOF 7813 fi ;; 7814 esac 7815 fi 7816 break 7817 fi 7818 done 7819 IFS="$lt_save_ifs" 7820 MAGIC_CMD="$lt_save_MAGIC_CMD" 7821 ;; 7822esac 7823fi 7824 7825MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7826if test -n "$MAGIC_CMD"; then 7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7828$as_echo "$MAGIC_CMD" >&6; } 7829else 7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7831$as_echo "no" >&6; } 7832fi 7833 7834if test -z "$lt_cv_path_MAGIC_CMD"; then 7835 if test -n "$ac_tool_prefix"; then 7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7837$as_echo_n "checking for file... " >&6; } 7838if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7839 $as_echo_n "(cached) " >&6 7840else 7841 case $MAGIC_CMD in 7842[\\/*] | ?:[\\/]*) 7843 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7844 ;; 7845*) 7846 lt_save_MAGIC_CMD="$MAGIC_CMD" 7847 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7848 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7849 for ac_dir in $ac_dummy; do 7850 IFS="$lt_save_ifs" 7851 test -z "$ac_dir" && ac_dir=. 7852 if test -f $ac_dir/file; then 7853 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7854 if test -n "$file_magic_test_file"; then 7855 case $deplibs_check_method in 7856 "file_magic "*) 7857 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7858 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7859 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7860 $EGREP "$file_magic_regex" > /dev/null; then 7861 : 7862 else 7863 cat <<EOF 1>&2 7864 7865*** Warning: the command libtool uses to detect shared libraries, 7866*** $file_magic_cmd, produces output that libtool cannot recognize. 7867*** The result is that libtool may fail to recognize shared libraries 7868*** as such. This will affect the creation of libtool libraries that 7869*** depend on shared libraries, but programs linked with such libtool 7870*** libraries will work regardless of this problem. Nevertheless, you 7871*** may want to report the problem to your system manager and/or to 7872*** bug-libtool@gnu.org 7873 7874EOF 7875 fi ;; 7876 esac 7877 fi 7878 break 7879 fi 7880 done 7881 IFS="$lt_save_ifs" 7882 MAGIC_CMD="$lt_save_MAGIC_CMD" 7883 ;; 7884esac 7885fi 7886 7887MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7888if test -n "$MAGIC_CMD"; then 7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7890$as_echo "$MAGIC_CMD" >&6; } 7891else 7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7893$as_echo "no" >&6; } 7894fi 7895 7896 else 7897 MAGIC_CMD=: 7898 fi 7899fi 7900 7901 fi 7902 ;; 7903esac 7904 7905 7906 case $host_os in 7907 rhapsody* | darwin*) 7908 if test -n "$ac_tool_prefix"; then 7909 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7910set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7912$as_echo_n "checking for $ac_word... " >&6; } 7913if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 7914 $as_echo_n "(cached) " >&6 7915else 7916 if test -n "$DSYMUTIL"; then 7917 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7918else 7919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7920for as_dir in $PATH 7921do 7922 IFS=$as_save_IFS 7923 test -z "$as_dir" && as_dir=. 7924 for ac_exec_ext in '' $ac_executable_extensions; do 7925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7926 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7928 break 2 7929 fi 7930done 7931 done 7932IFS=$as_save_IFS 7933 7934fi 7935fi 7936DSYMUTIL=$ac_cv_prog_DSYMUTIL 7937if test -n "$DSYMUTIL"; then 7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7939$as_echo "$DSYMUTIL" >&6; } 7940else 7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7942$as_echo "no" >&6; } 7943fi 7944 7945 7946fi 7947if test -z "$ac_cv_prog_DSYMUTIL"; then 7948 ac_ct_DSYMUTIL=$DSYMUTIL 7949 # Extract the first word of "dsymutil", so it can be a program name with args. 7950set dummy dsymutil; ac_word=$2 7951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7952$as_echo_n "checking for $ac_word... " >&6; } 7953if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 7954 $as_echo_n "(cached) " >&6 7955else 7956 if test -n "$ac_ct_DSYMUTIL"; then 7957 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7958else 7959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7960for as_dir in $PATH 7961do 7962 IFS=$as_save_IFS 7963 test -z "$as_dir" && as_dir=. 7964 for ac_exec_ext in '' $ac_executable_extensions; do 7965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7966 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7968 break 2 7969 fi 7970done 7971 done 7972IFS=$as_save_IFS 7973 7974fi 7975fi 7976ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7977if test -n "$ac_ct_DSYMUTIL"; then 7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7979$as_echo "$ac_ct_DSYMUTIL" >&6; } 7980else 7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7982$as_echo "no" >&6; } 7983fi 7984 7985 if test "x$ac_ct_DSYMUTIL" = x; then 7986 DSYMUTIL=":" 7987 else 7988 case $cross_compiling:$ac_tool_warned in 7989yes:) 7990{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7991$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7992ac_tool_warned=yes ;; 7993esac 7994 DSYMUTIL=$ac_ct_DSYMUTIL 7995 fi 7996else 7997 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7998fi 7999 8000 if test -n "$ac_tool_prefix"; then 8001 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8002set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8004$as_echo_n "checking for $ac_word... " >&6; } 8005if test "${ac_cv_prog_NMEDIT+set}" = set; then : 8006 $as_echo_n "(cached) " >&6 8007else 8008 if test -n "$NMEDIT"; then 8009 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8010else 8011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8012for as_dir in $PATH 8013do 8014 IFS=$as_save_IFS 8015 test -z "$as_dir" && as_dir=. 8016 for ac_exec_ext in '' $ac_executable_extensions; do 8017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8018 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8020 break 2 8021 fi 8022done 8023 done 8024IFS=$as_save_IFS 8025 8026fi 8027fi 8028NMEDIT=$ac_cv_prog_NMEDIT 8029if test -n "$NMEDIT"; then 8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8031$as_echo "$NMEDIT" >&6; } 8032else 8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8034$as_echo "no" >&6; } 8035fi 8036 8037 8038fi 8039if test -z "$ac_cv_prog_NMEDIT"; then 8040 ac_ct_NMEDIT=$NMEDIT 8041 # Extract the first word of "nmedit", so it can be a program name with args. 8042set dummy nmedit; ac_word=$2 8043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8044$as_echo_n "checking for $ac_word... " >&6; } 8045if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 8046 $as_echo_n "(cached) " >&6 8047else 8048 if test -n "$ac_ct_NMEDIT"; then 8049 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8050else 8051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8052for as_dir in $PATH 8053do 8054 IFS=$as_save_IFS 8055 test -z "$as_dir" && as_dir=. 8056 for ac_exec_ext in '' $ac_executable_extensions; do 8057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8058 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8060 break 2 8061 fi 8062done 8063 done 8064IFS=$as_save_IFS 8065 8066fi 8067fi 8068ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8069if test -n "$ac_ct_NMEDIT"; then 8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8071$as_echo "$ac_ct_NMEDIT" >&6; } 8072else 8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8074$as_echo "no" >&6; } 8075fi 8076 8077 if test "x$ac_ct_NMEDIT" = x; then 8078 NMEDIT=":" 8079 else 8080 case $cross_compiling:$ac_tool_warned in 8081yes:) 8082{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8083$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8084ac_tool_warned=yes ;; 8085esac 8086 NMEDIT=$ac_ct_NMEDIT 8087 fi 8088else 8089 NMEDIT="$ac_cv_prog_NMEDIT" 8090fi 8091 8092 8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8094$as_echo_n "checking for -single_module linker flag... " >&6; } 8095if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 8096 $as_echo_n "(cached) " >&6 8097else 8098 lt_cv_apple_cc_single_mod=no 8099 if test -z "${LT_MULTI_MODULE}"; then 8100 # By default we will add the -single_module flag. You can override 8101 # by either setting the environment variable LT_MULTI_MODULE 8102 # non-empty at configure time, or by adding -multi_module to the 8103 # link flags. 8104 echo "int foo(void){return 1;}" > conftest.c 8105 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8106 -dynamiclib ${wl}-single_module conftest.c 8107 if test -f libconftest.dylib; then 8108 lt_cv_apple_cc_single_mod=yes 8109 rm -rf libconftest.dylib* 8110 fi 8111 rm conftest.c 8112 fi 8113fi 8114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8115$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8117$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8118if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 8119 $as_echo_n "(cached) " >&6 8120else 8121 lt_cv_ld_exported_symbols_list=no 8122 save_LDFLAGS=$LDFLAGS 8123 echo "_main" > conftest.sym 8124 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8126/* end confdefs.h. */ 8127 8128int 8129main () 8130{ 8131 8132 ; 8133 return 0; 8134} 8135_ACEOF 8136if ac_fn_cxx_try_link "$LINENO"; then : 8137 lt_cv_ld_exported_symbols_list=yes 8138else 8139 lt_cv_ld_exported_symbols_list=no 8140fi 8141rm -f core conftest.err conftest.$ac_objext \ 8142 conftest$ac_exeext conftest.$ac_ext 8143 LDFLAGS="$save_LDFLAGS" 8144 8145fi 8146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8147$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8148 case $host_os in 8149 rhapsody* | darwin1.[0123]) 8150 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8151 darwin1.*) 8152 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8153 darwin*) 8154 # if running on 10.5 or later, the deployment target defaults 8155 # to the OS version, if on x86, and 10.4, the deployment 8156 # target defaults to 10.4. Don't you love it? 8157 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8158 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8159 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8160 10.[012]*) 8161 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8162 10.*) 8163 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8164 esac 8165 ;; 8166 esac 8167 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8168 _lt_dar_single_mod='$single_module' 8169 fi 8170 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8171 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8172 else 8173 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" 8174 fi 8175 if test "$DSYMUTIL" != ":"; then 8176 _lt_dsymutil="~$DSYMUTIL \$lib || :" 8177 else 8178 _lt_dsymutil= 8179 fi 8180 ;; 8181 esac 8182 8183 8184enable_dlopen=no 8185enable_win32_dll=no 8186 8187# Check whether --enable-libtool-lock was given. 8188if test "${enable_libtool_lock+set}" = set; then : 8189 enableval=$enable_libtool_lock; 8190fi 8191 8192test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 8193 8194 8195# Check whether --with-pic was given. 8196if test "${with_pic+set}" = set; then : 8197 withval=$with_pic; pic_mode="$withval" 8198else 8199 pic_mode=default 8200fi 8201 8202test -z "$pic_mode" && pic_mode=default 8203 8204# Use C for the default configuration in the libtool script 8205tagname= 8206lt_save_CC="$CC" 8207ac_ext=c 8208ac_cpp='$CPP $CPPFLAGS' 8209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8211ac_compiler_gnu=$ac_cv_c_compiler_gnu 8212 8213 8214# Source file extension for C test sources. 8215ac_ext=c 8216 8217# Object file extension for compiled C test sources. 8218objext=o 8219objext=$objext 8220 8221# Code to be used in simple compile tests 8222lt_simple_compile_test_code="int some_variable = 0;" 8223 8224# Code to be used in simple link tests 8225lt_simple_link_test_code='int main(){return(0);}' 8226 8227 8228# If no C compiler was specified, use CC. 8229LTCC=${LTCC-"$CC"} 8230 8231# If no C compiler flags were specified, use CFLAGS. 8232LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8233 8234# Allow CC to be a program name with arguments. 8235compiler=$CC 8236 8237 8238# save warnings/boilerplate of simple test code 8239ac_outfile=conftest.$ac_objext 8240echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8241eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8242_lt_compiler_boilerplate=`cat conftest.err` 8243$rm conftest* 8244 8245ac_outfile=conftest.$ac_objext 8246echo "$lt_simple_link_test_code" >conftest.$ac_ext 8247eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8248_lt_linker_boilerplate=`cat conftest.err` 8249$rm -r conftest* 8250 8251 8252 8253lt_prog_compiler_no_builtin_flag= 8254 8255if test "$GCC" = yes; then 8256 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 8257 8258 8259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8260$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8261if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 8262 $as_echo_n "(cached) " >&6 8263else 8264 lt_cv_prog_compiler_rtti_exceptions=no 8265 ac_outfile=conftest.$ac_objext 8266 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8267 lt_compiler_flag="-fno-rtti -fno-exceptions" 8268 # Insert the option either (1) after the last *FLAGS variable, or 8269 # (2) before a word containing "conftest.", or (3) at the end. 8270 # Note that $ac_compile itself does not contain backslashes and begins 8271 # with a dollar sign (not a hyphen), so the echo should work correctly. 8272 # The option is referenced via a variable to avoid confusing sed. 8273 lt_compile=`echo "$ac_compile" | $SED \ 8274 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8275 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8276 -e 's:$: $lt_compiler_flag:'` 8277 (eval echo "\"\$as_me:8277: $lt_compile\"" >&5) 8278 (eval "$lt_compile" 2>conftest.err) 8279 ac_status=$? 8280 cat conftest.err >&5 8281 echo "$as_me:8281: \$? = $ac_status" >&5 8282 if (exit $ac_status) && test -s "$ac_outfile"; then 8283 # The compiler can only warn and ignore the option if not recognized 8284 # So say no if there are warnings other than the usual output. 8285 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8286 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8287 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8288 lt_cv_prog_compiler_rtti_exceptions=yes 8289 fi 8290 fi 8291 $rm conftest* 8292 8293fi 8294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8295$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8296 8297if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8298 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8299else 8300 : 8301fi 8302 8303fi 8304 8305lt_prog_compiler_wl= 8306lt_prog_compiler_pic= 8307lt_prog_compiler_static= 8308 8309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8310$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8311 8312 if test "$GCC" = yes; then 8313 lt_prog_compiler_wl='-Wl,' 8314 lt_prog_compiler_static='-static' 8315 8316 case $host_os in 8317 aix*) 8318 # All AIX code is PIC. 8319 if test "$host_cpu" = ia64; then 8320 # AIX 5 now supports IA64 processor 8321 lt_prog_compiler_static='-Bstatic' 8322 fi 8323 ;; 8324 8325 amigaos*) 8326 # FIXME: we need at least 68020 code to build shared libraries, but 8327 # adding the `-m68020' flag to GCC prevents building anything better, 8328 # like `-m68040'. 8329 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8330 ;; 8331 8332 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8333 # PIC is the default for these OSes. 8334 ;; 8335 8336 mingw* | cygwin* | pw32* | os2*) 8337 # This hack is so that the source file can tell whether it is being 8338 # built for inclusion in a dll (and should export symbols for example). 8339 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8340 # (--disable-auto-import) libraries 8341 lt_prog_compiler_pic='-DDLL_EXPORT' 8342 ;; 8343 8344 darwin* | rhapsody*) 8345 # PIC is the default on this platform 8346 # Common symbols not allowed in MH_DYLIB files 8347 lt_prog_compiler_pic='-fno-common' 8348 ;; 8349 8350 interix[3-9]*) 8351 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8352 # Instead, we relocate shared libraries at runtime. 8353 ;; 8354 8355 msdosdjgpp*) 8356 # Just because we use GCC doesn't mean we suddenly get shared libraries 8357 # on systems that don't support them. 8358 lt_prog_compiler_can_build_shared=no 8359 enable_shared=no 8360 ;; 8361 8362 sysv4*MP*) 8363 if test -d /usr/nec; then 8364 lt_prog_compiler_pic=-Kconform_pic 8365 fi 8366 ;; 8367 8368 hpux*) 8369 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8370 # not for PA HP-UX. 8371 case $host_cpu in 8372 hppa*64*|ia64*) 8373 # +Z the default 8374 ;; 8375 *) 8376 lt_prog_compiler_pic='-fPIC' 8377 ;; 8378 esac 8379 ;; 8380 8381 *) 8382 lt_prog_compiler_pic='-fPIC' 8383 ;; 8384 esac 8385 else 8386 # PORTME Check for flag to pass linker flags through the system compiler. 8387 case $host_os in 8388 aix*) 8389 lt_prog_compiler_wl='-Wl,' 8390 if test "$host_cpu" = ia64; then 8391 # AIX 5 now supports IA64 processor 8392 lt_prog_compiler_static='-Bstatic' 8393 else 8394 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8395 fi 8396 ;; 8397 darwin*) 8398 # PIC is the default on this platform 8399 # Common symbols not allowed in MH_DYLIB files 8400 case $cc_basename in 8401 xlc*) 8402 lt_prog_compiler_pic='-qnocommon' 8403 lt_prog_compiler_wl='-Wl,' 8404 ;; 8405 esac 8406 ;; 8407 8408 mingw* | cygwin* | pw32* | os2*) 8409 # This hack is so that the source file can tell whether it is being 8410 # built for inclusion in a dll (and should export symbols for example). 8411 lt_prog_compiler_pic='-DDLL_EXPORT' 8412 ;; 8413 8414 hpux9* | hpux10* | hpux11*) 8415 lt_prog_compiler_wl='-Wl,' 8416 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8417 # not for PA HP-UX. 8418 case $host_cpu in 8419 hppa*64*|ia64*) 8420 # +Z the default 8421 ;; 8422 *) 8423 lt_prog_compiler_pic='+Z' 8424 ;; 8425 esac 8426 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8427 lt_prog_compiler_static='${wl}-a ${wl}archive' 8428 ;; 8429 8430 irix5* | irix6* | nonstopux*) 8431 lt_prog_compiler_wl='-Wl,' 8432 # PIC (with -KPIC) is the default. 8433 lt_prog_compiler_static='-non_shared' 8434 ;; 8435 8436 newsos6) 8437 lt_prog_compiler_pic='-KPIC' 8438 lt_prog_compiler_static='-Bstatic' 8439 ;; 8440 8441 linux* | k*bsd*-gnu) 8442 case $cc_basename in 8443 icc* | ecc*) 8444 lt_prog_compiler_wl='-Wl,' 8445 lt_prog_compiler_pic='-KPIC' 8446 lt_prog_compiler_static='-static' 8447 ;; 8448 pgcc* | pgf77* | pgf90* | pgf95*) 8449 # Portland Group compilers (*not* the Pentium gcc compiler, 8450 # which looks to be a dead project) 8451 lt_prog_compiler_wl='-Wl,' 8452 lt_prog_compiler_pic='-fpic' 8453 lt_prog_compiler_static='-Bstatic' 8454 ;; 8455 ccc*) 8456 lt_prog_compiler_wl='-Wl,' 8457 # All Alpha code is PIC. 8458 lt_prog_compiler_static='-non_shared' 8459 ;; 8460 *) 8461 case `$CC -V 2>&1 | sed 5q` in 8462 *Sun\ C*) 8463 # Sun C 5.9 8464 lt_prog_compiler_pic='-KPIC' 8465 lt_prog_compiler_static='-Bstatic' 8466 lt_prog_compiler_wl='-Wl,' 8467 ;; 8468 *Sun\ F*) 8469 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8470 lt_prog_compiler_pic='-KPIC' 8471 lt_prog_compiler_static='-Bstatic' 8472 lt_prog_compiler_wl='' 8473 ;; 8474 esac 8475 ;; 8476 esac 8477 ;; 8478 8479 osf3* | osf4* | osf5*) 8480 lt_prog_compiler_wl='-Wl,' 8481 # All OSF/1 code is PIC. 8482 lt_prog_compiler_static='-non_shared' 8483 ;; 8484 8485 rdos*) 8486 lt_prog_compiler_static='-non_shared' 8487 ;; 8488 8489 solaris*) 8490 lt_prog_compiler_pic='-KPIC' 8491 lt_prog_compiler_static='-Bstatic' 8492 case $cc_basename in 8493 f77* | f90* | f95*) 8494 lt_prog_compiler_wl='-Qoption ld ';; 8495 *) 8496 lt_prog_compiler_wl='-Wl,';; 8497 esac 8498 ;; 8499 8500 sunos4*) 8501 lt_prog_compiler_wl='-Qoption ld ' 8502 lt_prog_compiler_pic='-PIC' 8503 lt_prog_compiler_static='-Bstatic' 8504 ;; 8505 8506 sysv4 | sysv4.2uw2* | sysv4.3*) 8507 lt_prog_compiler_wl='-Wl,' 8508 lt_prog_compiler_pic='-KPIC' 8509 lt_prog_compiler_static='-Bstatic' 8510 ;; 8511 8512 sysv4*MP*) 8513 if test -d /usr/nec ;then 8514 lt_prog_compiler_pic='-Kconform_pic' 8515 lt_prog_compiler_static='-Bstatic' 8516 fi 8517 ;; 8518 8519 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8520 lt_prog_compiler_wl='-Wl,' 8521 lt_prog_compiler_pic='-KPIC' 8522 lt_prog_compiler_static='-Bstatic' 8523 ;; 8524 8525 unicos*) 8526 lt_prog_compiler_wl='-Wl,' 8527 lt_prog_compiler_can_build_shared=no 8528 ;; 8529 8530 uts4*) 8531 lt_prog_compiler_pic='-pic' 8532 lt_prog_compiler_static='-Bstatic' 8533 ;; 8534 8535 *) 8536 lt_prog_compiler_can_build_shared=no 8537 ;; 8538 esac 8539 fi 8540 8541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8542$as_echo "$lt_prog_compiler_pic" >&6; } 8543 8544# 8545# Check to make sure the PIC flag actually works. 8546# 8547if test -n "$lt_prog_compiler_pic"; then 8548 8549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8550$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8551if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 8552 $as_echo_n "(cached) " >&6 8553else 8554 lt_cv_prog_compiler_pic_works=no 8555 ac_outfile=conftest.$ac_objext 8556 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8557 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8558 # Insert the option either (1) after the last *FLAGS variable, or 8559 # (2) before a word containing "conftest.", or (3) at the end. 8560 # Note that $ac_compile itself does not contain backslashes and begins 8561 # with a dollar sign (not a hyphen), so the echo should work correctly. 8562 # The option is referenced via a variable to avoid confusing sed. 8563 lt_compile=`echo "$ac_compile" | $SED \ 8564 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8565 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8566 -e 's:$: $lt_compiler_flag:'` 8567 (eval echo "\"\$as_me:8567: $lt_compile\"" >&5) 8568 (eval "$lt_compile" 2>conftest.err) 8569 ac_status=$? 8570 cat conftest.err >&5 8571 echo "$as_me:8571: \$? = $ac_status" >&5 8572 if (exit $ac_status) && test -s "$ac_outfile"; then 8573 # The compiler can only warn and ignore the option if not recognized 8574 # So say no if there are warnings other than the usual output. 8575 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 8576 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8577 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8578 lt_cv_prog_compiler_pic_works=yes 8579 fi 8580 fi 8581 $rm conftest* 8582 8583fi 8584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8585$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8586 8587if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8588 case $lt_prog_compiler_pic in 8589 "" | " "*) ;; 8590 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8591 esac 8592else 8593 lt_prog_compiler_pic= 8594 lt_prog_compiler_can_build_shared=no 8595fi 8596 8597fi 8598case $host_os in 8599 # For platforms which do not support PIC, -DPIC is meaningless: 8600 *djgpp*) 8601 lt_prog_compiler_pic= 8602 ;; 8603 *) 8604 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8605 ;; 8606esac 8607 8608# 8609# Check to make sure the static flag actually works. 8610# 8611wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8613$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8614if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 8615 $as_echo_n "(cached) " >&6 8616else 8617 lt_cv_prog_compiler_static_works=no 8618 save_LDFLAGS="$LDFLAGS" 8619 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8620 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8621 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8622 # The linker can only warn and ignore the option if not recognized 8623 # So say no if there are warnings 8624 if test -s conftest.err; then 8625 # Append any errors to the config.log. 8626 cat conftest.err 1>&5 8627 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 8628 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8629 if diff conftest.exp conftest.er2 >/dev/null; then 8630 lt_cv_prog_compiler_static_works=yes 8631 fi 8632 else 8633 lt_cv_prog_compiler_static_works=yes 8634 fi 8635 fi 8636 $rm -r conftest* 8637 LDFLAGS="$save_LDFLAGS" 8638 8639fi 8640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8641$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8642 8643if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8644 : 8645else 8646 lt_prog_compiler_static= 8647fi 8648 8649 8650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8651$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8652if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8653 $as_echo_n "(cached) " >&6 8654else 8655 lt_cv_prog_compiler_c_o=no 8656 $rm -r conftest 2>/dev/null 8657 mkdir conftest 8658 cd conftest 8659 mkdir out 8660 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8661 8662 lt_compiler_flag="-o out/conftest2.$ac_objext" 8663 # Insert the option either (1) after the last *FLAGS variable, or 8664 # (2) before a word containing "conftest.", or (3) at the end. 8665 # Note that $ac_compile itself does not contain backslashes and begins 8666 # with a dollar sign (not a hyphen), so the echo should work correctly. 8667 lt_compile=`echo "$ac_compile" | $SED \ 8668 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8669 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8670 -e 's:$: $lt_compiler_flag:'` 8671 (eval echo "\"\$as_me:8671: $lt_compile\"" >&5) 8672 (eval "$lt_compile" 2>out/conftest.err) 8673 ac_status=$? 8674 cat out/conftest.err >&5 8675 echo "$as_me:8675: \$? = $ac_status" >&5 8676 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8677 then 8678 # The compiler can only warn and ignore the option if not recognized 8679 # So say no if there are warnings 8680 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8681 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8682 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8683 lt_cv_prog_compiler_c_o=yes 8684 fi 8685 fi 8686 chmod u+w . 2>&5 8687 $rm conftest* 8688 # SGI C++ compiler will create directory out/ii_files/ for 8689 # template instantiation 8690 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 8691 $rm out/* && rmdir out 8692 cd .. 8693 rmdir conftest 8694 $rm conftest* 8695 8696fi 8697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8698$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8699 8700 8701hard_links="nottested" 8702if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8703 # do not overwrite the value of need_locks provided by the user 8704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8705$as_echo_n "checking if we can lock with hard links... " >&6; } 8706 hard_links=yes 8707 $rm conftest* 8708 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8709 touch conftest.a 8710 ln conftest.a conftest.b 2>&5 || hard_links=no 8711 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8713$as_echo "$hard_links" >&6; } 8714 if test "$hard_links" = no; then 8715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8716$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8717 need_locks=warn 8718 fi 8719else 8720 need_locks=no 8721fi 8722 8723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8724$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8725 8726 runpath_var= 8727 allow_undefined_flag= 8728 enable_shared_with_static_runtimes=no 8729 archive_cmds= 8730 archive_expsym_cmds= 8731 old_archive_From_new_cmds= 8732 old_archive_from_expsyms_cmds= 8733 export_dynamic_flag_spec= 8734 whole_archive_flag_spec= 8735 thread_safe_flag_spec= 8736 hardcode_libdir_flag_spec= 8737 hardcode_libdir_flag_spec_ld= 8738 hardcode_libdir_separator= 8739 hardcode_direct=no 8740 hardcode_minus_L=no 8741 hardcode_shlibpath_var=unsupported 8742 link_all_deplibs=unknown 8743 hardcode_automatic=no 8744 module_cmds= 8745 module_expsym_cmds= 8746 always_export_symbols=no 8747 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8748 # include_expsyms should be a list of space-separated symbols to be *always* 8749 # included in the symbol list 8750 include_expsyms= 8751 # exclude_expsyms can be an extended regexp of symbols to exclude 8752 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8753 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8754 # as well as any symbol that contains `d'. 8755 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8756 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8757 # platforms (ab)use it in PIC code, but their linkers get confused if 8758 # the symbol is explicitly referenced. Since portable code cannot 8759 # rely on this symbol name, it's probably fine to never include it in 8760 # preloaded symbol tables. 8761 # Exclude shared library initialization/finalization symbols. 8762 extract_expsyms_cmds= 8763 # Just being paranoid about ensuring that cc_basename is set. 8764 for cc_temp in $compiler""; do 8765 case $cc_temp in 8766 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8767 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8768 \-*) ;; 8769 *) break;; 8770 esac 8771done 8772cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8773 8774 case $host_os in 8775 cygwin* | mingw* | pw32*) 8776 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8777 # When not using gcc, we currently assume that we are using 8778 # Microsoft Visual C++. 8779 if test "$GCC" != yes; then 8780 with_gnu_ld=no 8781 fi 8782 ;; 8783 interix*) 8784 # we just hope/assume this is gcc and not c89 (= MSVC++) 8785 with_gnu_ld=yes 8786 ;; 8787 openbsd*) 8788 with_gnu_ld=no 8789 ;; 8790 esac 8791 8792 ld_shlibs=yes 8793 if test "$with_gnu_ld" = yes; then 8794 # If archive_cmds runs LD, not CC, wlarc should be empty 8795 wlarc='${wl}' 8796 8797 # Set some defaults for GNU ld with shared library support. These 8798 # are reset later if shared libraries are not supported. Putting them 8799 # here allows them to be overridden if necessary. 8800 runpath_var=LD_RUN_PATH 8801 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 8802 export_dynamic_flag_spec='${wl}--export-dynamic' 8803 # ancient GNU ld didn't support --whole-archive et. al. 8804 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 8805 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8806 else 8807 whole_archive_flag_spec= 8808 fi 8809 supports_anon_versioning=no 8810 case `$LD -v 2>/dev/null` in 8811 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8812 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8813 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8814 *\ 2.11.*) ;; # other 2.11 versions 8815 *) supports_anon_versioning=yes ;; 8816 esac 8817 8818 # See if GNU ld supports shared libraries. 8819 case $host_os in 8820 aix[3-9]*) 8821 # On AIX/PPC, the GNU linker is very broken 8822 if test "$host_cpu" != ia64; then 8823 ld_shlibs=no 8824 cat <<EOF 1>&2 8825 8826*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8827*** to be unable to reliably create shared libraries on AIX. 8828*** Therefore, libtool is disabling shared libraries support. If you 8829*** really care for shared libraries, you may want to modify your PATH 8830*** so that a non-GNU linker is found, and then restart. 8831 8832EOF 8833 fi 8834 ;; 8835 8836 amigaos*) 8837 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)' 8838 hardcode_libdir_flag_spec='-L$libdir' 8839 hardcode_minus_L=yes 8840 8841 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 8842 # that the semantics of dynamic libraries on AmigaOS, at least up 8843 # to version 4, is to share data among multiple programs linked 8844 # with the same dynamic library. Since this doesn't match the 8845 # behavior of shared libraries on other platforms, we can't use 8846 # them. 8847 ld_shlibs=no 8848 ;; 8849 8850 beos*) 8851 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8852 allow_undefined_flag=unsupported 8853 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8854 # support --undefined. This deserves some investigation. FIXME 8855 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8856 else 8857 ld_shlibs=no 8858 fi 8859 ;; 8860 8861 cygwin* | mingw* | pw32*) 8862 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8863 # as there is no search path for DLLs. 8864 hardcode_libdir_flag_spec='-L$libdir' 8865 allow_undefined_flag=unsupported 8866 always_export_symbols=no 8867 enable_shared_with_static_runtimes=yes 8868 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8869 8870 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8871 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8872 # If the export-symbols file already is a .def file (1st line 8873 # is EXPORTS), use it as is; otherwise, prepend... 8874 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8875 cp $export_symbols $output_objdir/$soname.def; 8876 else 8877 echo EXPORTS > $output_objdir/$soname.def; 8878 cat $export_symbols >> $output_objdir/$soname.def; 8879 fi~ 8880 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8881 else 8882 ld_shlibs=no 8883 fi 8884 ;; 8885 8886 interix[3-9]*) 8887 hardcode_direct=no 8888 hardcode_shlibpath_var=no 8889 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8890 export_dynamic_flag_spec='${wl}-E' 8891 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8892 # Instead, shared libraries are loaded at an image base (0x10000000 by 8893 # default) and relocated if they conflict, which is a slow very memory 8894 # consuming and fragmenting process. To avoid this, we pick a random, 8895 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8896 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8897 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8898 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' 8899 ;; 8900 8901 gnu* | linux* | k*bsd*-gnu) 8902 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8903 tmp_addflag= 8904 case $cc_basename,$host_cpu in 8905 pgcc*) # Portland Group C compiler 8906 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' 8907 tmp_addflag=' $pic_flag' 8908 ;; 8909 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8910 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' 8911 tmp_addflag=' $pic_flag -Mnomain' ;; 8912 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8913 tmp_addflag=' -i_dynamic' ;; 8914 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8915 tmp_addflag=' -i_dynamic -nofor_main' ;; 8916 ifc* | ifort*) # Intel Fortran compiler 8917 tmp_addflag=' -nofor_main' ;; 8918 esac 8919 case `$CC -V 2>&1 | sed 5q` in 8920 *Sun\ C*) # Sun C 5.9 8921 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' 8922 tmp_sharedflag='-G' ;; 8923 *Sun\ F*) # Sun Fortran 8.3 8924 tmp_sharedflag='-G' ;; 8925 *) 8926 tmp_sharedflag='-shared' ;; 8927 esac 8928 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8929 8930 if test $supports_anon_versioning = yes; then 8931 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8932 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8933 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8934 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8935 fi 8936 else 8937 ld_shlibs=no 8938 fi 8939 ;; 8940 8941 netbsd*) 8942 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8943 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8944 wlarc= 8945 else 8946 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8947 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8948 fi 8949 ;; 8950 8951 solaris*) 8952 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8953 ld_shlibs=no 8954 cat <<EOF 1>&2 8955 8956*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8957*** create shared libraries on Solaris systems. Therefore, libtool 8958*** is disabling shared libraries support. We urge you to upgrade GNU 8959*** binutils to release 2.9.1 or newer. Another option is to modify 8960*** your PATH or compiler configuration so that the native linker is 8961*** used, and then restart. 8962 8963EOF 8964 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8965 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8966 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8967 else 8968 ld_shlibs=no 8969 fi 8970 ;; 8971 8972 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8973 case `$LD -v 2>&1` in 8974 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8975 ld_shlibs=no 8976 cat <<_LT_EOF 1>&2 8977 8978*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8979*** reliably create shared libraries on SCO systems. Therefore, libtool 8980*** is disabling shared libraries support. We urge you to upgrade GNU 8981*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8982*** your PATH or compiler configuration so that the native linker is 8983*** used, and then restart. 8984 8985_LT_EOF 8986 ;; 8987 *) 8988 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8989 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8990 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8991 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8992 else 8993 ld_shlibs=no 8994 fi 8995 ;; 8996 esac 8997 ;; 8998 8999 sunos4*) 9000 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9001 wlarc= 9002 hardcode_direct=yes 9003 hardcode_shlibpath_var=no 9004 ;; 9005 9006 *) 9007 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9008 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9009 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9010 else 9011 ld_shlibs=no 9012 fi 9013 ;; 9014 esac 9015 9016 if test "$ld_shlibs" = no; then 9017 runpath_var= 9018 hardcode_libdir_flag_spec= 9019 export_dynamic_flag_spec= 9020 whole_archive_flag_spec= 9021 fi 9022 else 9023 # PORTME fill in a description of your system's linker (not GNU ld) 9024 case $host_os in 9025 aix3*) 9026 allow_undefined_flag=unsupported 9027 always_export_symbols=yes 9028 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' 9029 # Note: this linker hardcodes the directories in LIBPATH if there 9030 # are no directories specified by -L. 9031 hardcode_minus_L=yes 9032 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9033 # Neither direct hardcoding nor static linking is supported with a 9034 # broken collect2. 9035 hardcode_direct=unsupported 9036 fi 9037 ;; 9038 9039 aix[4-9]*) 9040 if test "$host_cpu" = ia64; then 9041 # On IA64, the linker does run time linking by default, so we don't 9042 # have to do anything special. 9043 aix_use_runtimelinking=no 9044 exp_sym_flag='-Bexport' 9045 no_entry_flag="" 9046 else 9047 # If we're using GNU nm, then we don't want the "-C" option. 9048 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9049 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 9050 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' 9051 else 9052 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' 9053 fi 9054 aix_use_runtimelinking=no 9055 9056 # Test if we are trying to use run time linking or normal 9057 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9058 # need to do runtime linking. 9059 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9060 for ld_flag in $LDFLAGS; do 9061 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9062 aix_use_runtimelinking=yes 9063 break 9064 fi 9065 done 9066 ;; 9067 esac 9068 9069 exp_sym_flag='-bexport' 9070 no_entry_flag='-bnoentry' 9071 fi 9072 9073 # When large executables or shared objects are built, AIX ld can 9074 # have problems creating the table of contents. If linking a library 9075 # or program results in "error TOC overflow" add -mminimal-toc to 9076 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9077 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9078 9079 archive_cmds='' 9080 hardcode_direct=yes 9081 hardcode_libdir_separator=':' 9082 link_all_deplibs=yes 9083 9084 if test "$GCC" = yes; then 9085 case $host_os in aix4.[012]|aix4.[012].*) 9086 # We only want to do this on AIX 4.2 and lower, the check 9087 # below for broken collect2 doesn't work under 4.3+ 9088 collect2name=`${CC} -print-prog-name=collect2` 9089 if test -f "$collect2name" && \ 9090 strings "$collect2name" | grep resolve_lib_name >/dev/null 9091 then 9092 # We have reworked collect2 9093 : 9094 else 9095 # We have old collect2 9096 hardcode_direct=unsupported 9097 # It fails to find uninstalled libraries when the uninstalled 9098 # path is not listed in the libpath. Setting hardcode_minus_L 9099 # to unsupported forces relinking 9100 hardcode_minus_L=yes 9101 hardcode_libdir_flag_spec='-L$libdir' 9102 hardcode_libdir_separator= 9103 fi 9104 ;; 9105 esac 9106 shared_flag='-shared' 9107 if test "$aix_use_runtimelinking" = yes; then 9108 shared_flag="$shared_flag "'${wl}-G' 9109 fi 9110 else 9111 # not using gcc 9112 if test "$host_cpu" = ia64; then 9113 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9114 # chokes on -Wl,-G. The following line is correct: 9115 shared_flag='-G' 9116 else 9117 if test "$aix_use_runtimelinking" = yes; then 9118 shared_flag='${wl}-G' 9119 else 9120 shared_flag='${wl}-bM:SRE' 9121 fi 9122 fi 9123 fi 9124 9125 # It seems that -bexpall does not export symbols beginning with 9126 # underscore (_), so it is better to generate a list of symbols to export. 9127 always_export_symbols=yes 9128 if test "$aix_use_runtimelinking" = yes; then 9129 # Warning - without using the other runtime loading flags (-brtl), 9130 # -berok will link without error, but may produce a broken library. 9131 allow_undefined_flag='-berok' 9132 # Determine the default libpath from the value encoded in an empty executable. 9133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9134/* end confdefs.h. */ 9135 9136int 9137main () 9138{ 9139 9140 ; 9141 return 0; 9142} 9143_ACEOF 9144if ac_fn_c_try_link "$LINENO"; then : 9145 9146lt_aix_libpath_sed=' 9147 /Import File Strings/,/^$/ { 9148 /^0/ { 9149 s/^0 *\(.*\)$/\1/ 9150 p 9151 } 9152 }' 9153aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9154# Check for a 64-bit object if we didn't find anything. 9155if test -z "$aix_libpath"; then 9156 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9157fi 9158fi 9159rm -f core conftest.err conftest.$ac_objext \ 9160 conftest$ac_exeext conftest.$ac_ext 9161if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9162 9163 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9164 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9165 else 9166 if test "$host_cpu" = ia64; then 9167 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9168 allow_undefined_flag="-z nodefs" 9169 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" 9170 else 9171 # Determine the default libpath from the value encoded in an empty executable. 9172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9173/* end confdefs.h. */ 9174 9175int 9176main () 9177{ 9178 9179 ; 9180 return 0; 9181} 9182_ACEOF 9183if ac_fn_c_try_link "$LINENO"; then : 9184 9185lt_aix_libpath_sed=' 9186 /Import File Strings/,/^$/ { 9187 /^0/ { 9188 s/^0 *\(.*\)$/\1/ 9189 p 9190 } 9191 }' 9192aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9193# Check for a 64-bit object if we didn't find anything. 9194if test -z "$aix_libpath"; then 9195 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9196fi 9197fi 9198rm -f core conftest.err conftest.$ac_objext \ 9199 conftest$ac_exeext conftest.$ac_ext 9200if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9201 9202 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9203 # Warning - without using the other run time loading flags, 9204 # -berok will link without error, but may produce a broken library. 9205 no_undefined_flag=' ${wl}-bernotok' 9206 allow_undefined_flag=' ${wl}-berok' 9207 # Exported symbols can be pulled into shared objects from archives 9208 whole_archive_flag_spec='$convenience' 9209 archive_cmds_need_lc=yes 9210 # This is similar to how AIX traditionally builds its shared libraries. 9211 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' 9212 fi 9213 fi 9214 ;; 9215 9216 amigaos*) 9217 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)' 9218 hardcode_libdir_flag_spec='-L$libdir' 9219 hardcode_minus_L=yes 9220 # see comment about different semantics on the GNU ld section 9221 ld_shlibs=no 9222 ;; 9223 9224 bsdi[45]*) 9225 export_dynamic_flag_spec=-rdynamic 9226 ;; 9227 9228 cygwin* | mingw* | pw32*) 9229 # When not using gcc, we currently assume that we are using 9230 # Microsoft Visual C++. 9231 # hardcode_libdir_flag_spec is actually meaningless, as there is 9232 # no search path for DLLs. 9233 hardcode_libdir_flag_spec=' ' 9234 allow_undefined_flag=unsupported 9235 # Tell ltmain to make .lib files, not .a files. 9236 libext=lib 9237 # Tell ltmain to make .dll files, not .so files. 9238 shrext_cmds=".dll" 9239 # FIXME: Setting linknames here is a bad hack. 9240 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 9241 # The linker will automatically build a .lib file if we build a DLL. 9242 old_archive_From_new_cmds='true' 9243 # FIXME: Should let the user specify the lib program. 9244 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9245 fix_srcfile_path='`cygpath -w "$srcfile"`' 9246 enable_shared_with_static_runtimes=yes 9247 ;; 9248 9249 darwin* | rhapsody*) 9250 case $host_os in 9251 rhapsody* | darwin1.[012]) 9252 allow_undefined_flag='${wl}-undefined ${wl}suppress' 9253 ;; 9254 *) # Darwin 1.3 on 9255 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 9256 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 9257 else 9258 case ${MACOSX_DEPLOYMENT_TARGET} in 9259 10.[012]) 9260 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 9261 ;; 9262 10.*) 9263 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 9264 ;; 9265 esac 9266 fi 9267 ;; 9268 esac 9269 archive_cmds_need_lc=no 9270 hardcode_direct=no 9271 hardcode_automatic=yes 9272 hardcode_shlibpath_var=unsupported 9273 whole_archive_flag_spec='' 9274 link_all_deplibs=yes 9275 if test "$GCC" = yes ; then 9276 output_verbose_link_cmd='echo' 9277 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9278 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9279 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}" 9280 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}" 9281 else 9282 case $cc_basename in 9283 xlc*) 9284 output_verbose_link_cmd='echo' 9285 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 9286 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 9287 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 9288 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 9289 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 9290 ;; 9291 *) 9292 ld_shlibs=no 9293 ;; 9294 esac 9295 fi 9296 ;; 9297 9298 dgux*) 9299 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9300 hardcode_libdir_flag_spec='-L$libdir' 9301 hardcode_shlibpath_var=no 9302 ;; 9303 9304 freebsd1*) 9305 ld_shlibs=no 9306 ;; 9307 9308 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9309 # support. Future versions do this automatically, but an explicit c++rt0.o 9310 # does not break anything, and helps significantly (at the cost of a little 9311 # extra space). 9312 freebsd2.2*) 9313 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9314 hardcode_libdir_flag_spec='-R$libdir' 9315 hardcode_direct=yes 9316 hardcode_shlibpath_var=no 9317 ;; 9318 9319 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9320 freebsd2*) 9321 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9322 hardcode_direct=yes 9323 hardcode_minus_L=yes 9324 hardcode_shlibpath_var=no 9325 ;; 9326 9327 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9328 freebsd* | dragonfly*) 9329 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9330 hardcode_libdir_flag_spec='-R$libdir' 9331 hardcode_direct=yes 9332 hardcode_shlibpath_var=no 9333 ;; 9334 9335 hpux9*) 9336 if test "$GCC" = yes; then 9337 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' 9338 else 9339 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' 9340 fi 9341 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9342 hardcode_libdir_separator=: 9343 hardcode_direct=yes 9344 9345 # hardcode_minus_L: Not really in the search PATH, 9346 # but as the default location of the library. 9347 hardcode_minus_L=yes 9348 export_dynamic_flag_spec='${wl}-E' 9349 ;; 9350 9351 hpux10*) 9352 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9353 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9354 else 9355 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9356 fi 9357 if test "$with_gnu_ld" = no; then 9358 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9359 hardcode_libdir_separator=: 9360 9361 hardcode_direct=yes 9362 export_dynamic_flag_spec='${wl}-E' 9363 9364 # hardcode_minus_L: Not really in the search PATH, 9365 # but as the default location of the library. 9366 hardcode_minus_L=yes 9367 fi 9368 ;; 9369 9370 hpux11*) 9371 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 9372 case $host_cpu in 9373 hppa*64*) 9374 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9375 ;; 9376 ia64*) 9377 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9378 ;; 9379 *) 9380 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9381 ;; 9382 esac 9383 else 9384 case $host_cpu in 9385 hppa*64*) 9386 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9387 ;; 9388 ia64*) 9389 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9390 ;; 9391 *) 9392 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9393 ;; 9394 esac 9395 fi 9396 if test "$with_gnu_ld" = no; then 9397 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9398 hardcode_libdir_separator=: 9399 9400 case $host_cpu in 9401 hppa*64*|ia64*) 9402 hardcode_libdir_flag_spec_ld='+b $libdir' 9403 hardcode_direct=no 9404 hardcode_shlibpath_var=no 9405 ;; 9406 *) 9407 hardcode_direct=yes 9408 export_dynamic_flag_spec='${wl}-E' 9409 9410 # hardcode_minus_L: Not really in the search PATH, 9411 # but as the default location of the library. 9412 hardcode_minus_L=yes 9413 ;; 9414 esac 9415 fi 9416 ;; 9417 9418 irix5* | irix6* | nonstopux*) 9419 if test "$GCC" = yes; then 9420 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9421 else 9422 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 9423 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9424 fi 9425 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9426 hardcode_libdir_separator=: 9427 link_all_deplibs=yes 9428 ;; 9429 9430 netbsd*) 9431 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9432 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9433 else 9434 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9435 fi 9436 hardcode_libdir_flag_spec='-R$libdir' 9437 hardcode_direct=yes 9438 hardcode_shlibpath_var=no 9439 ;; 9440 9441 newsos6) 9442 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9443 hardcode_direct=yes 9444 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9445 hardcode_libdir_separator=: 9446 hardcode_shlibpath_var=no 9447 ;; 9448 9449 openbsd*) 9450 if test -f /usr/libexec/ld.so; then 9451 hardcode_direct=yes 9452 hardcode_shlibpath_var=no 9453 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9454 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9455 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9456 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9457 export_dynamic_flag_spec='${wl}-E' 9458 else 9459 case $host_os in 9460 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9461 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9462 hardcode_libdir_flag_spec='-R$libdir' 9463 ;; 9464 *) 9465 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9466 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9467 ;; 9468 esac 9469 fi 9470 else 9471 ld_shlibs=no 9472 fi 9473 ;; 9474 9475 os2*) 9476 hardcode_libdir_flag_spec='-L$libdir' 9477 hardcode_minus_L=yes 9478 allow_undefined_flag=unsupported 9479 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' 9480 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9481 ;; 9482 9483 osf3*) 9484 if test "$GCC" = yes; then 9485 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9486 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9487 else 9488 allow_undefined_flag=' -expect_unresolved \*' 9489 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 9490 fi 9491 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9492 hardcode_libdir_separator=: 9493 ;; 9494 9495 osf4* | osf5*) # as osf3* with the addition of -msym flag 9496 if test "$GCC" = yes; then 9497 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9498 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9499 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9500 else 9501 allow_undefined_flag=' -expect_unresolved \*' 9502 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 9503 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 9504 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 9505 9506 # Both c and cxx compiler support -rpath directly 9507 hardcode_libdir_flag_spec='-rpath $libdir' 9508 fi 9509 hardcode_libdir_separator=: 9510 ;; 9511 9512 solaris*) 9513 no_undefined_flag=' -z text' 9514 if test "$GCC" = yes; then 9515 wlarc='${wl}' 9516 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9517 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 9518 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 9519 else 9520 wlarc='' 9521 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9522 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 9523 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 9524 fi 9525 hardcode_libdir_flag_spec='-R$libdir' 9526 hardcode_shlibpath_var=no 9527 case $host_os in 9528 solaris2.[0-5] | solaris2.[0-5].*) ;; 9529 *) 9530 # The compiler driver will combine and reorder linker options, 9531 # but understands `-z linker_flag'. GCC discards it without `$wl', 9532 # but is careful enough not to reorder. 9533 # Supported since Solaris 2.6 (maybe 2.5.1?) 9534 if test "$GCC" = yes; then 9535 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9536 else 9537 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9538 fi 9539 ;; 9540 esac 9541 link_all_deplibs=yes 9542 ;; 9543 9544 sunos4*) 9545 if test "x$host_vendor" = xsequent; then 9546 # Use $CC to link under sequent, because it throws in some extra .o 9547 # files that make .init and .fini sections work. 9548 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9549 else 9550 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9551 fi 9552 hardcode_libdir_flag_spec='-L$libdir' 9553 hardcode_direct=yes 9554 hardcode_minus_L=yes 9555 hardcode_shlibpath_var=no 9556 ;; 9557 9558 sysv4) 9559 case $host_vendor in 9560 sni) 9561 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9562 hardcode_direct=yes # is this really true??? 9563 ;; 9564 siemens) 9565 ## LD is ld it makes a PLAMLIB 9566 ## CC just makes a GrossModule. 9567 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9568 reload_cmds='$CC -r -o $output$reload_objs' 9569 hardcode_direct=no 9570 ;; 9571 motorola) 9572 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9573 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9574 ;; 9575 esac 9576 runpath_var='LD_RUN_PATH' 9577 hardcode_shlibpath_var=no 9578 ;; 9579 9580 sysv4.3*) 9581 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9582 hardcode_shlibpath_var=no 9583 export_dynamic_flag_spec='-Bexport' 9584 ;; 9585 9586 sysv4*MP*) 9587 if test -d /usr/nec; then 9588 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9589 hardcode_shlibpath_var=no 9590 runpath_var=LD_RUN_PATH 9591 hardcode_runpath_var=yes 9592 ld_shlibs=yes 9593 fi 9594 ;; 9595 9596 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9597 no_undefined_flag='${wl}-z,text' 9598 archive_cmds_need_lc=no 9599 hardcode_shlibpath_var=no 9600 runpath_var='LD_RUN_PATH' 9601 9602 if test "$GCC" = yes; then 9603 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9604 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9605 else 9606 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9607 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9608 fi 9609 ;; 9610 9611 sysv5* | sco3.2v5* | sco5v6*) 9612 # Note: We can NOT use -z defs as we might desire, because we do not 9613 # link with -lc, and that would cause any symbols used from libc to 9614 # always be unresolved, which means just about no library would 9615 # ever link correctly. If we're not using GNU ld we use -z text 9616 # though, which does catch some bad symbols but isn't as heavy-handed 9617 # as -z defs. 9618 no_undefined_flag='${wl}-z,text' 9619 allow_undefined_flag='${wl}-z,nodefs' 9620 archive_cmds_need_lc=no 9621 hardcode_shlibpath_var=no 9622 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 9623 hardcode_libdir_separator=':' 9624 link_all_deplibs=yes 9625 export_dynamic_flag_spec='${wl}-Bexport' 9626 runpath_var='LD_RUN_PATH' 9627 9628 if test "$GCC" = yes; then 9629 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9630 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9631 else 9632 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9633 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 9634 fi 9635 ;; 9636 9637 uts4*) 9638 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9639 hardcode_libdir_flag_spec='-L$libdir' 9640 hardcode_shlibpath_var=no 9641 ;; 9642 9643 *) 9644 ld_shlibs=no 9645 ;; 9646 esac 9647 fi 9648 9649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9650$as_echo "$ld_shlibs" >&6; } 9651test "$ld_shlibs" = no && can_build_shared=no 9652 9653# 9654# Do we need to explicitly link libc? 9655# 9656case "x$archive_cmds_need_lc" in 9657x|xyes) 9658 # Assume -lc should be added 9659 archive_cmds_need_lc=yes 9660 9661 if test "$enable_shared" = yes && test "$GCC" = yes; then 9662 case $archive_cmds in 9663 *'~'*) 9664 # FIXME: we may have to deal with multi-command sequences. 9665 ;; 9666 '$CC '*) 9667 # Test whether the compiler implicitly links with -lc since on some 9668 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9669 # to ld, don't add -lc before -lgcc. 9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9671$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9672 $rm conftest* 9673 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9674 9675 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9676 (eval $ac_compile) 2>&5 9677 ac_status=$? 9678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9679 test $ac_status = 0; } 2>conftest.err; then 9680 soname=conftest 9681 lib=conftest 9682 libobjs=conftest.$ac_objext 9683 deplibs= 9684 wl=$lt_prog_compiler_wl 9685 pic_flag=$lt_prog_compiler_pic 9686 compiler_flags=-v 9687 linker_flags=-v 9688 verstring= 9689 output_objdir=. 9690 libname=conftest 9691 lt_save_allow_undefined_flag=$allow_undefined_flag 9692 allow_undefined_flag= 9693 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9694 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 9695 ac_status=$? 9696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9697 test $ac_status = 0; } 9698 then 9699 archive_cmds_need_lc=no 9700 else 9701 archive_cmds_need_lc=yes 9702 fi 9703 allow_undefined_flag=$lt_save_allow_undefined_flag 9704 else 9705 cat conftest.err 1>&5 9706 fi 9707 $rm conftest* 9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 9709$as_echo "$archive_cmds_need_lc" >&6; } 9710 ;; 9711 esac 9712 fi 9713 ;; 9714esac 9715 9716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9717$as_echo_n "checking dynamic linker characteristics... " >&6; } 9718library_names_spec= 9719libname_spec='lib$name' 9720soname_spec= 9721shrext_cmds=".so" 9722postinstall_cmds= 9723postuninstall_cmds= 9724finish_cmds= 9725finish_eval= 9726shlibpath_var= 9727shlibpath_overrides_runpath=unknown 9728version_type=none 9729dynamic_linker="$host_os ld.so" 9730sys_lib_dlsearch_path_spec="/lib /usr/lib" 9731 9732if test "$GCC" = yes; then 9733 case $host_os in 9734 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9735 *) lt_awk_arg="/^libraries:/" ;; 9736 esac 9737 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9738 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 9739 # if the path contains ";" then we assume it to be the separator 9740 # otherwise default to the standard path separator (i.e. ":") - it is 9741 # assumed that no part of a normal pathname contains ";" but that should 9742 # okay in the real world where ";" in dirpaths is itself problematic. 9743 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9744 else 9745 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9746 fi 9747 # Ok, now we have the path, separated by spaces, we can step through it 9748 # and add multilib dir if necessary. 9749 lt_tmp_lt_search_path_spec= 9750 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9751 for lt_sys_path in $lt_search_path_spec; do 9752 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9753 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9754 else 9755 test -d "$lt_sys_path" && \ 9756 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9757 fi 9758 done 9759 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 9760BEGIN {RS=" "; FS="/|\n";} { 9761 lt_foo=""; 9762 lt_count=0; 9763 for (lt_i = NF; lt_i > 0; lt_i--) { 9764 if ($lt_i != "" && $lt_i != ".") { 9765 if ($lt_i == "..") { 9766 lt_count++; 9767 } else { 9768 if (lt_count == 0) { 9769 lt_foo="/" $lt_i lt_foo; 9770 } else { 9771 lt_count--; 9772 } 9773 } 9774 } 9775 } 9776 if (lt_foo != "") { lt_freq[lt_foo]++; } 9777 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9778}'` 9779 sys_lib_search_path_spec=`echo $lt_search_path_spec` 9780else 9781 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9782fi 9783need_lib_prefix=unknown 9784hardcode_into_libs=no 9785 9786# when you set need_version to no, make sure it does not cause -set_version 9787# flags to be left without arguments 9788need_version=unknown 9789 9790case $host_os in 9791aix3*) 9792 version_type=linux 9793 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9794 shlibpath_var=LIBPATH 9795 9796 # AIX 3 has no versioning support, so we append a major version to the name. 9797 soname_spec='${libname}${release}${shared_ext}$major' 9798 ;; 9799 9800aix[4-9]*) 9801 version_type=linux 9802 need_lib_prefix=no 9803 need_version=no 9804 hardcode_into_libs=yes 9805 if test "$host_cpu" = ia64; then 9806 # AIX 5 supports IA64 9807 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9808 shlibpath_var=LD_LIBRARY_PATH 9809 else 9810 # With GCC up to 2.95.x, collect2 would create an import file 9811 # for dependence libraries. The import file would start with 9812 # the line `#! .'. This would cause the generated library to 9813 # depend on `.', always an invalid library. This was fixed in 9814 # development snapshots of GCC prior to 3.0. 9815 case $host_os in 9816 aix4 | aix4.[01] | aix4.[01].*) 9817 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9818 echo ' yes ' 9819 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9820 : 9821 else 9822 can_build_shared=no 9823 fi 9824 ;; 9825 esac 9826 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9827 # soname into executable. Probably we can add versioning support to 9828 # collect2, so additional links can be useful in future. 9829 if test "$aix_use_runtimelinking" = yes; then 9830 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9831 # instead of lib<name>.a to let people know that these are not 9832 # typical AIX shared libraries. 9833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9834 else 9835 # We preserve .a as extension for shared libraries through AIX4.2 9836 # and later when we are not doing run time linking. 9837 library_names_spec='${libname}${release}.a $libname.a' 9838 soname_spec='${libname}${release}${shared_ext}$major' 9839 fi 9840 shlibpath_var=LIBPATH 9841 fi 9842 ;; 9843 9844amigaos*) 9845 library_names_spec='$libname.ixlibrary $libname.a' 9846 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9847 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' 9848 ;; 9849 9850beos*) 9851 library_names_spec='${libname}${shared_ext}' 9852 dynamic_linker="$host_os ld.so" 9853 shlibpath_var=LIBRARY_PATH 9854 ;; 9855 9856bsdi[45]*) 9857 version_type=linux 9858 need_version=no 9859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9860 soname_spec='${libname}${release}${shared_ext}$major' 9861 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9862 shlibpath_var=LD_LIBRARY_PATH 9863 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9864 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9865 # the default ld.so.conf also contains /usr/contrib/lib and 9866 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9867 # libtool to hard-code these into programs 9868 ;; 9869 9870cygwin* | mingw* | pw32*) 9871 version_type=windows 9872 shrext_cmds=".dll" 9873 need_version=no 9874 need_lib_prefix=no 9875 9876 case $GCC,$host_os in 9877 yes,cygwin* | yes,mingw* | yes,pw32*) 9878 library_names_spec='$libname.dll.a' 9879 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9880 postinstall_cmds='base_file=`basename \${file}`~ 9881 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9882 dldir=$destdir/`dirname \$dlpath`~ 9883 test -d \$dldir || mkdir -p \$dldir~ 9884 $install_prog $dir/$dlname \$dldir/$dlname~ 9885 chmod a+x \$dldir/$dlname' 9886 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9887 dlpath=$dir/\$dldll~ 9888 $rm \$dlpath' 9889 shlibpath_overrides_runpath=yes 9890 9891 case $host_os in 9892 cygwin*) 9893 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9894 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9895 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9896 ;; 9897 mingw*) 9898 # MinGW DLLs use traditional 'lib' prefix 9899 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9900 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9901 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9902 # It is most probably a Windows format PATH printed by 9903 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9904 # path with ; separators, and with drive letters. We can handle the 9905 # drive letters (cygwin fileutils understands them), so leave them, 9906 # especially as we might pass files found there to a mingw objdump, 9907 # which wouldn't understand a cygwinified path. Ahh. 9908 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9909 else 9910 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9911 fi 9912 ;; 9913 pw32*) 9914 # pw32 DLLs use 'pw' prefix rather than 'lib' 9915 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9916 ;; 9917 esac 9918 ;; 9919 9920 *) 9921 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9922 ;; 9923 esac 9924 dynamic_linker='Win32 ld.exe' 9925 # FIXME: first we should search . and the directory the executable is in 9926 shlibpath_var=PATH 9927 ;; 9928 9929darwin* | rhapsody*) 9930 dynamic_linker="$host_os dyld" 9931 version_type=darwin 9932 need_lib_prefix=no 9933 need_version=no 9934 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9935 soname_spec='${libname}${release}${major}$shared_ext' 9936 shlibpath_overrides_runpath=yes 9937 shlibpath_var=DYLD_LIBRARY_PATH 9938 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9939 9940 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9941 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9942 ;; 9943 9944dgux*) 9945 version_type=linux 9946 need_lib_prefix=no 9947 need_version=no 9948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9949 soname_spec='${libname}${release}${shared_ext}$major' 9950 shlibpath_var=LD_LIBRARY_PATH 9951 ;; 9952 9953freebsd1*) 9954 dynamic_linker=no 9955 ;; 9956 9957freebsd* | dragonfly*) 9958 # DragonFly does not have aout. When/if they implement a new 9959 # versioning mechanism, adjust this. 9960 if test -x /usr/bin/objformat; then 9961 objformat=`/usr/bin/objformat` 9962 else 9963 case $host_os in 9964 freebsd[123]*) objformat=aout ;; 9965 *) objformat=elf ;; 9966 esac 9967 fi 9968 version_type=freebsd-$objformat 9969 case $version_type in 9970 freebsd-elf*) 9971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9972 need_version=no 9973 need_lib_prefix=no 9974 ;; 9975 freebsd-*) 9976 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9977 need_version=yes 9978 ;; 9979 esac 9980 shlibpath_var=LD_LIBRARY_PATH 9981 case $host_os in 9982 freebsd2*) 9983 shlibpath_overrides_runpath=yes 9984 ;; 9985 freebsd3.[01]* | freebsdelf3.[01]*) 9986 shlibpath_overrides_runpath=yes 9987 hardcode_into_libs=yes 9988 ;; 9989 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9990 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9991 shlibpath_overrides_runpath=no 9992 hardcode_into_libs=yes 9993 ;; 9994 *) # from 4.6 on, and DragonFly 9995 shlibpath_overrides_runpath=yes 9996 hardcode_into_libs=yes 9997 ;; 9998 esac 9999 ;; 10000 10001gnu*) 10002 version_type=linux 10003 need_lib_prefix=no 10004 need_version=no 10005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10006 soname_spec='${libname}${release}${shared_ext}$major' 10007 shlibpath_var=LD_LIBRARY_PATH 10008 hardcode_into_libs=yes 10009 ;; 10010 10011hpux9* | hpux10* | hpux11*) 10012 # Give a soname corresponding to the major version so that dld.sl refuses to 10013 # link against other versions. 10014 version_type=sunos 10015 need_lib_prefix=no 10016 need_version=no 10017 case $host_cpu in 10018 ia64*) 10019 shrext_cmds='.so' 10020 hardcode_into_libs=yes 10021 dynamic_linker="$host_os dld.so" 10022 shlibpath_var=LD_LIBRARY_PATH 10023 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10025 soname_spec='${libname}${release}${shared_ext}$major' 10026 if test "X$HPUX_IA64_MODE" = X32; then 10027 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10028 else 10029 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10030 fi 10031 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10032 ;; 10033 hppa*64*) 10034 shrext_cmds='.sl' 10035 hardcode_into_libs=yes 10036 dynamic_linker="$host_os dld.sl" 10037 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10038 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10040 soname_spec='${libname}${release}${shared_ext}$major' 10041 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10042 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10043 ;; 10044 *) 10045 shrext_cmds='.sl' 10046 dynamic_linker="$host_os dld.sl" 10047 shlibpath_var=SHLIB_PATH 10048 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10050 soname_spec='${libname}${release}${shared_ext}$major' 10051 ;; 10052 esac 10053 # HP-UX runs *really* slowly unless shared libraries are mode 555. 10054 postinstall_cmds='chmod 555 $lib' 10055 ;; 10056 10057interix[3-9]*) 10058 version_type=linux 10059 need_lib_prefix=no 10060 need_version=no 10061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10062 soname_spec='${libname}${release}${shared_ext}$major' 10063 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10064 shlibpath_var=LD_LIBRARY_PATH 10065 shlibpath_overrides_runpath=no 10066 hardcode_into_libs=yes 10067 ;; 10068 10069irix5* | irix6* | nonstopux*) 10070 case $host_os in 10071 nonstopux*) version_type=nonstopux ;; 10072 *) 10073 if test "$lt_cv_prog_gnu_ld" = yes; then 10074 version_type=linux 10075 else 10076 version_type=irix 10077 fi ;; 10078 esac 10079 need_lib_prefix=no 10080 need_version=no 10081 soname_spec='${libname}${release}${shared_ext}$major' 10082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10083 case $host_os in 10084 irix5* | nonstopux*) 10085 libsuff= shlibsuff= 10086 ;; 10087 *) 10088 case $LD in # libtool.m4 will add one of these switches to LD 10089 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10090 libsuff= shlibsuff= libmagic=32-bit;; 10091 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10092 libsuff=32 shlibsuff=N32 libmagic=N32;; 10093 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10094 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10095 *) libsuff= shlibsuff= libmagic=never-match;; 10096 esac 10097 ;; 10098 esac 10099 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10100 shlibpath_overrides_runpath=no 10101 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10102 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10103 hardcode_into_libs=yes 10104 ;; 10105 10106# No shared lib support for Linux oldld, aout, or coff. 10107linux*oldld* | linux*aout* | linux*coff*) 10108 dynamic_linker=no 10109 ;; 10110 10111# This must be Linux ELF. 10112linux* | k*bsd*-gnu) 10113 version_type=linux 10114 need_lib_prefix=no 10115 need_version=no 10116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10117 soname_spec='${libname}${release}${shared_ext}$major' 10118 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10119 shlibpath_var=LD_LIBRARY_PATH 10120 shlibpath_overrides_runpath=no 10121 # This implies no fast_install, which is unacceptable. 10122 # Some rework will be needed to allow for fast_install 10123 # before this can be enabled. 10124 hardcode_into_libs=yes 10125 10126 # Append ld.so.conf contents to the search path 10127 if test -f /etc/ld.so.conf; then 10128 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' ' '` 10129 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10130 fi 10131 10132 # We used to test for /lib/ld.so.1 and disable shared libraries on 10133 # powerpc, because MkLinux only supported shared libraries with the 10134 # GNU dynamic linker. Since this was broken with cross compilers, 10135 # most powerpc-linux boxes support dynamic linking these days and 10136 # people can always --disable-shared, the test was removed, and we 10137 # assume the GNU/Linux dynamic linker is in use. 10138 dynamic_linker='GNU/Linux ld.so' 10139 ;; 10140 10141netbsd*) 10142 version_type=sunos 10143 need_lib_prefix=no 10144 need_version=no 10145 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10147 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10148 dynamic_linker='NetBSD (a.out) ld.so' 10149 else 10150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10151 soname_spec='${libname}${release}${shared_ext}$major' 10152 dynamic_linker='NetBSD ld.elf_so' 10153 fi 10154 shlibpath_var=LD_LIBRARY_PATH 10155 shlibpath_overrides_runpath=yes 10156 hardcode_into_libs=yes 10157 ;; 10158 10159newsos6) 10160 version_type=linux 10161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10162 shlibpath_var=LD_LIBRARY_PATH 10163 shlibpath_overrides_runpath=yes 10164 ;; 10165 10166nto-qnx*) 10167 version_type=linux 10168 need_lib_prefix=no 10169 need_version=no 10170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10171 soname_spec='${libname}${release}${shared_ext}$major' 10172 shlibpath_var=LD_LIBRARY_PATH 10173 shlibpath_overrides_runpath=yes 10174 ;; 10175 10176openbsd*) 10177 version_type=sunos 10178 sys_lib_dlsearch_path_spec="/usr/lib" 10179 need_lib_prefix=no 10180 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10181 case $host_os in 10182 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10183 *) need_version=no ;; 10184 esac 10185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10186 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10187 shlibpath_var=LD_LIBRARY_PATH 10188 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10189 case $host_os in 10190 openbsd2.[89] | openbsd2.[89].*) 10191 shlibpath_overrides_runpath=no 10192 ;; 10193 *) 10194 shlibpath_overrides_runpath=yes 10195 ;; 10196 esac 10197 else 10198 shlibpath_overrides_runpath=yes 10199 fi 10200 ;; 10201 10202os2*) 10203 libname_spec='$name' 10204 shrext_cmds=".dll" 10205 need_lib_prefix=no 10206 library_names_spec='$libname${shared_ext} $libname.a' 10207 dynamic_linker='OS/2 ld.exe' 10208 shlibpath_var=LIBPATH 10209 ;; 10210 10211osf3* | osf4* | osf5*) 10212 version_type=osf 10213 need_lib_prefix=no 10214 need_version=no 10215 soname_spec='${libname}${release}${shared_ext}$major' 10216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10217 shlibpath_var=LD_LIBRARY_PATH 10218 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10219 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10220 ;; 10221 10222rdos*) 10223 dynamic_linker=no 10224 ;; 10225 10226solaris*) 10227 version_type=linux 10228 need_lib_prefix=no 10229 need_version=no 10230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10231 soname_spec='${libname}${release}${shared_ext}$major' 10232 shlibpath_var=LD_LIBRARY_PATH 10233 shlibpath_overrides_runpath=yes 10234 hardcode_into_libs=yes 10235 # ldd complains unless libraries are executable 10236 postinstall_cmds='chmod +x $lib' 10237 ;; 10238 10239sunos4*) 10240 version_type=sunos 10241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10242 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10243 shlibpath_var=LD_LIBRARY_PATH 10244 shlibpath_overrides_runpath=yes 10245 if test "$with_gnu_ld" = yes; then 10246 need_lib_prefix=no 10247 fi 10248 need_version=yes 10249 ;; 10250 10251sysv4 | sysv4.3*) 10252 version_type=linux 10253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10254 soname_spec='${libname}${release}${shared_ext}$major' 10255 shlibpath_var=LD_LIBRARY_PATH 10256 case $host_vendor in 10257 sni) 10258 shlibpath_overrides_runpath=no 10259 need_lib_prefix=no 10260 export_dynamic_flag_spec='${wl}-Blargedynsym' 10261 runpath_var=LD_RUN_PATH 10262 ;; 10263 siemens) 10264 need_lib_prefix=no 10265 ;; 10266 motorola) 10267 need_lib_prefix=no 10268 need_version=no 10269 shlibpath_overrides_runpath=no 10270 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10271 ;; 10272 esac 10273 ;; 10274 10275sysv4*MP*) 10276 if test -d /usr/nec ;then 10277 version_type=linux 10278 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10279 soname_spec='$libname${shared_ext}.$major' 10280 shlibpath_var=LD_LIBRARY_PATH 10281 fi 10282 ;; 10283 10284sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10285 version_type=freebsd-elf 10286 need_lib_prefix=no 10287 need_version=no 10288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10289 soname_spec='${libname}${release}${shared_ext}$major' 10290 shlibpath_var=LD_LIBRARY_PATH 10291 hardcode_into_libs=yes 10292 if test "$with_gnu_ld" = yes; then 10293 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10294 shlibpath_overrides_runpath=no 10295 else 10296 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10297 shlibpath_overrides_runpath=yes 10298 case $host_os in 10299 sco3.2v5*) 10300 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10301 ;; 10302 esac 10303 fi 10304 sys_lib_dlsearch_path_spec='/usr/lib' 10305 ;; 10306 10307uts4*) 10308 version_type=linux 10309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10310 soname_spec='${libname}${release}${shared_ext}$major' 10311 shlibpath_var=LD_LIBRARY_PATH 10312 ;; 10313 10314*) 10315 dynamic_linker=no 10316 ;; 10317esac 10318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10319$as_echo "$dynamic_linker" >&6; } 10320test "$dynamic_linker" = no && can_build_shared=no 10321 10322if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then : 10323 $as_echo_n "(cached) " >&6 10324else 10325 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 10326fi 10327 10328sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10329if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then : 10330 $as_echo_n "(cached) " >&6 10331else 10332 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 10333fi 10334 10335sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10336 10337variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10338if test "$GCC" = yes; then 10339 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10340fi 10341 10342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10343$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10344hardcode_action= 10345if test -n "$hardcode_libdir_flag_spec" || \ 10346 test -n "$runpath_var" || \ 10347 test "X$hardcode_automatic" = "Xyes" ; then 10348 10349 # We can hardcode non-existant directories. 10350 if test "$hardcode_direct" != no && 10351 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10352 # have to relink, otherwise we might link with an installed library 10353 # when we should be linking with a yet-to-be-installed one 10354 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 10355 test "$hardcode_minus_L" != no; then 10356 # Linking always hardcodes the temporary library directory. 10357 hardcode_action=relink 10358 else 10359 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10360 hardcode_action=immediate 10361 fi 10362else 10363 # We cannot hardcode anything, or else we can only hardcode existing 10364 # directories. 10365 hardcode_action=unsupported 10366fi 10367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10368$as_echo "$hardcode_action" >&6; } 10369 10370if test "$hardcode_action" = relink; then 10371 # Fast installation is not supported 10372 enable_fast_install=no 10373elif test "$shlibpath_overrides_runpath" = yes || 10374 test "$enable_shared" = no; then 10375 # Fast installation is not necessary 10376 enable_fast_install=needless 10377fi 10378 10379striplib= 10380old_striplib= 10381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 10382$as_echo_n "checking whether stripping libraries is possible... " >&6; } 10383if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 10384 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10385 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10387$as_echo "yes" >&6; } 10388else 10389# FIXME - insert some real tests, host_os isn't really good enough 10390 case $host_os in 10391 darwin*) 10392 if test -n "$STRIP" ; then 10393 striplib="$STRIP -x" 10394 old_striplib="$STRIP -S" 10395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10396$as_echo "yes" >&6; } 10397 else 10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10399$as_echo "no" >&6; } 10400fi 10401 ;; 10402 *) 10403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10404$as_echo "no" >&6; } 10405 ;; 10406 esac 10407fi 10408 10409if test "x$enable_dlopen" != xyes; then 10410 enable_dlopen=unknown 10411 enable_dlopen_self=unknown 10412 enable_dlopen_self_static=unknown 10413else 10414 lt_cv_dlopen=no 10415 lt_cv_dlopen_libs= 10416 10417 case $host_os in 10418 beos*) 10419 lt_cv_dlopen="load_add_on" 10420 lt_cv_dlopen_libs= 10421 lt_cv_dlopen_self=yes 10422 ;; 10423 10424 mingw* | pw32*) 10425 lt_cv_dlopen="LoadLibrary" 10426 lt_cv_dlopen_libs= 10427 ;; 10428 10429 cygwin*) 10430 lt_cv_dlopen="dlopen" 10431 lt_cv_dlopen_libs= 10432 ;; 10433 10434 darwin*) 10435 # if libdl is installed we need to link against it 10436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10437$as_echo_n "checking for dlopen in -ldl... " >&6; } 10438if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10439 $as_echo_n "(cached) " >&6 10440else 10441 ac_check_lib_save_LIBS=$LIBS 10442LIBS="-ldl $LIBS" 10443cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10444/* end confdefs.h. */ 10445 10446/* Override any GCC internal prototype to avoid an error. 10447 Use char because int might match the return type of a GCC 10448 builtin and then its argument prototype would still apply. */ 10449#ifdef __cplusplus 10450extern "C" 10451#endif 10452char dlopen (); 10453int 10454main () 10455{ 10456return dlopen (); 10457 ; 10458 return 0; 10459} 10460_ACEOF 10461if ac_fn_c_try_link "$LINENO"; then : 10462 ac_cv_lib_dl_dlopen=yes 10463else 10464 ac_cv_lib_dl_dlopen=no 10465fi 10466rm -f core conftest.err conftest.$ac_objext \ 10467 conftest$ac_exeext conftest.$ac_ext 10468LIBS=$ac_check_lib_save_LIBS 10469fi 10470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10471$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10472if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10473 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10474else 10475 10476 lt_cv_dlopen="dyld" 10477 lt_cv_dlopen_libs= 10478 lt_cv_dlopen_self=yes 10479 10480fi 10481 10482 ;; 10483 10484 *) 10485 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10486if test "x$ac_cv_func_shl_load" = x""yes; then : 10487 lt_cv_dlopen="shl_load" 10488else 10489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10490$as_echo_n "checking for shl_load in -ldld... " >&6; } 10491if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 10492 $as_echo_n "(cached) " >&6 10493else 10494 ac_check_lib_save_LIBS=$LIBS 10495LIBS="-ldld $LIBS" 10496cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10497/* end confdefs.h. */ 10498 10499/* Override any GCC internal prototype to avoid an error. 10500 Use char because int might match the return type of a GCC 10501 builtin and then its argument prototype would still apply. */ 10502#ifdef __cplusplus 10503extern "C" 10504#endif 10505char shl_load (); 10506int 10507main () 10508{ 10509return shl_load (); 10510 ; 10511 return 0; 10512} 10513_ACEOF 10514if ac_fn_c_try_link "$LINENO"; then : 10515 ac_cv_lib_dld_shl_load=yes 10516else 10517 ac_cv_lib_dld_shl_load=no 10518fi 10519rm -f core conftest.err conftest.$ac_objext \ 10520 conftest$ac_exeext conftest.$ac_ext 10521LIBS=$ac_check_lib_save_LIBS 10522fi 10523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10524$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10525if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 10526 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10527else 10528 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10529if test "x$ac_cv_func_dlopen" = x""yes; then : 10530 lt_cv_dlopen="dlopen" 10531else 10532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10533$as_echo_n "checking for dlopen in -ldl... " >&6; } 10534if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10535 $as_echo_n "(cached) " >&6 10536else 10537 ac_check_lib_save_LIBS=$LIBS 10538LIBS="-ldl $LIBS" 10539cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10540/* end confdefs.h. */ 10541 10542/* Override any GCC internal prototype to avoid an error. 10543 Use char because int might match the return type of a GCC 10544 builtin and then its argument prototype would still apply. */ 10545#ifdef __cplusplus 10546extern "C" 10547#endif 10548char dlopen (); 10549int 10550main () 10551{ 10552return dlopen (); 10553 ; 10554 return 0; 10555} 10556_ACEOF 10557if ac_fn_c_try_link "$LINENO"; then : 10558 ac_cv_lib_dl_dlopen=yes 10559else 10560 ac_cv_lib_dl_dlopen=no 10561fi 10562rm -f core conftest.err conftest.$ac_objext \ 10563 conftest$ac_exeext conftest.$ac_ext 10564LIBS=$ac_check_lib_save_LIBS 10565fi 10566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10567$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10568if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10569 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10570else 10571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10572$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10573if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 10574 $as_echo_n "(cached) " >&6 10575else 10576 ac_check_lib_save_LIBS=$LIBS 10577LIBS="-lsvld $LIBS" 10578cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10579/* end confdefs.h. */ 10580 10581/* Override any GCC internal prototype to avoid an error. 10582 Use char because int might match the return type of a GCC 10583 builtin and then its argument prototype would still apply. */ 10584#ifdef __cplusplus 10585extern "C" 10586#endif 10587char dlopen (); 10588int 10589main () 10590{ 10591return dlopen (); 10592 ; 10593 return 0; 10594} 10595_ACEOF 10596if ac_fn_c_try_link "$LINENO"; then : 10597 ac_cv_lib_svld_dlopen=yes 10598else 10599 ac_cv_lib_svld_dlopen=no 10600fi 10601rm -f core conftest.err conftest.$ac_objext \ 10602 conftest$ac_exeext conftest.$ac_ext 10603LIBS=$ac_check_lib_save_LIBS 10604fi 10605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10606$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10607if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 10608 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10609else 10610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10611$as_echo_n "checking for dld_link in -ldld... " >&6; } 10612if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 10613 $as_echo_n "(cached) " >&6 10614else 10615 ac_check_lib_save_LIBS=$LIBS 10616LIBS="-ldld $LIBS" 10617cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10618/* end confdefs.h. */ 10619 10620/* Override any GCC internal prototype to avoid an error. 10621 Use char because int might match the return type of a GCC 10622 builtin and then its argument prototype would still apply. */ 10623#ifdef __cplusplus 10624extern "C" 10625#endif 10626char dld_link (); 10627int 10628main () 10629{ 10630return dld_link (); 10631 ; 10632 return 0; 10633} 10634_ACEOF 10635if ac_fn_c_try_link "$LINENO"; then : 10636 ac_cv_lib_dld_dld_link=yes 10637else 10638 ac_cv_lib_dld_dld_link=no 10639fi 10640rm -f core conftest.err conftest.$ac_objext \ 10641 conftest$ac_exeext conftest.$ac_ext 10642LIBS=$ac_check_lib_save_LIBS 10643fi 10644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10645$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10646if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 10647 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10648fi 10649 10650 10651fi 10652 10653 10654fi 10655 10656 10657fi 10658 10659 10660fi 10661 10662 10663fi 10664 10665 ;; 10666 esac 10667 10668 if test "x$lt_cv_dlopen" != xno; then 10669 enable_dlopen=yes 10670 else 10671 enable_dlopen=no 10672 fi 10673 10674 case $lt_cv_dlopen in 10675 dlopen) 10676 save_CPPFLAGS="$CPPFLAGS" 10677 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10678 10679 save_LDFLAGS="$LDFLAGS" 10680 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10681 10682 save_LIBS="$LIBS" 10683 LIBS="$lt_cv_dlopen_libs $LIBS" 10684 10685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10686$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10687if test "${lt_cv_dlopen_self+set}" = set; then : 10688 $as_echo_n "(cached) " >&6 10689else 10690 if test "$cross_compiling" = yes; then : 10691 lt_cv_dlopen_self=cross 10692else 10693 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10694 lt_status=$lt_dlunknown 10695 cat > conftest.$ac_ext <<EOF 10696#line 10696 "configure" 10697#include "confdefs.h" 10698 10699#if HAVE_DLFCN_H 10700#include <dlfcn.h> 10701#endif 10702 10703#include <stdio.h> 10704 10705#ifdef RTLD_GLOBAL 10706# define LT_DLGLOBAL RTLD_GLOBAL 10707#else 10708# ifdef DL_GLOBAL 10709# define LT_DLGLOBAL DL_GLOBAL 10710# else 10711# define LT_DLGLOBAL 0 10712# endif 10713#endif 10714 10715/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10716 find out it does not work in some platform. */ 10717#ifndef LT_DLLAZY_OR_NOW 10718# ifdef RTLD_LAZY 10719# define LT_DLLAZY_OR_NOW RTLD_LAZY 10720# else 10721# ifdef DL_LAZY 10722# define LT_DLLAZY_OR_NOW DL_LAZY 10723# else 10724# ifdef RTLD_NOW 10725# define LT_DLLAZY_OR_NOW RTLD_NOW 10726# else 10727# ifdef DL_NOW 10728# define LT_DLLAZY_OR_NOW DL_NOW 10729# else 10730# define LT_DLLAZY_OR_NOW 0 10731# endif 10732# endif 10733# endif 10734# endif 10735#endif 10736 10737#ifdef __cplusplus 10738extern "C" void exit (int); 10739#endif 10740 10741void fnord() { int i=42;} 10742int main () 10743{ 10744 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10745 int status = $lt_dlunknown; 10746 10747 if (self) 10748 { 10749 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10750 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10751 /* dlclose (self); */ 10752 } 10753 else 10754 puts (dlerror ()); 10755 10756 exit (status); 10757} 10758EOF 10759 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10760 (eval $ac_link) 2>&5 10761 ac_status=$? 10762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10763 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10764 (./conftest; exit; ) >&5 2>/dev/null 10765 lt_status=$? 10766 case x$lt_status in 10767 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10768 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10769 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10770 esac 10771 else : 10772 # compilation failed 10773 lt_cv_dlopen_self=no 10774 fi 10775fi 10776rm -fr conftest* 10777 10778 10779fi 10780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 10781$as_echo "$lt_cv_dlopen_self" >&6; } 10782 10783 if test "x$lt_cv_dlopen_self" = xyes; then 10784 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 10786$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10787if test "${lt_cv_dlopen_self_static+set}" = set; then : 10788 $as_echo_n "(cached) " >&6 10789else 10790 if test "$cross_compiling" = yes; then : 10791 lt_cv_dlopen_self_static=cross 10792else 10793 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10794 lt_status=$lt_dlunknown 10795 cat > conftest.$ac_ext <<EOF 10796#line 10796 "configure" 10797#include "confdefs.h" 10798 10799#if HAVE_DLFCN_H 10800#include <dlfcn.h> 10801#endif 10802 10803#include <stdio.h> 10804 10805#ifdef RTLD_GLOBAL 10806# define LT_DLGLOBAL RTLD_GLOBAL 10807#else 10808# ifdef DL_GLOBAL 10809# define LT_DLGLOBAL DL_GLOBAL 10810# else 10811# define LT_DLGLOBAL 0 10812# endif 10813#endif 10814 10815/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10816 find out it does not work in some platform. */ 10817#ifndef LT_DLLAZY_OR_NOW 10818# ifdef RTLD_LAZY 10819# define LT_DLLAZY_OR_NOW RTLD_LAZY 10820# else 10821# ifdef DL_LAZY 10822# define LT_DLLAZY_OR_NOW DL_LAZY 10823# else 10824# ifdef RTLD_NOW 10825# define LT_DLLAZY_OR_NOW RTLD_NOW 10826# else 10827# ifdef DL_NOW 10828# define LT_DLLAZY_OR_NOW DL_NOW 10829# else 10830# define LT_DLLAZY_OR_NOW 0 10831# endif 10832# endif 10833# endif 10834# endif 10835#endif 10836 10837#ifdef __cplusplus 10838extern "C" void exit (int); 10839#endif 10840 10841void fnord() { int i=42;} 10842int main () 10843{ 10844 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10845 int status = $lt_dlunknown; 10846 10847 if (self) 10848 { 10849 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10850 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10851 /* dlclose (self); */ 10852 } 10853 else 10854 puts (dlerror ()); 10855 10856 exit (status); 10857} 10858EOF 10859 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10860 (eval $ac_link) 2>&5 10861 ac_status=$? 10862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10863 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10864 (./conftest; exit; ) >&5 2>/dev/null 10865 lt_status=$? 10866 case x$lt_status in 10867 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10868 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10869 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10870 esac 10871 else : 10872 # compilation failed 10873 lt_cv_dlopen_self_static=no 10874 fi 10875fi 10876rm -fr conftest* 10877 10878 10879fi 10880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 10881$as_echo "$lt_cv_dlopen_self_static" >&6; } 10882 fi 10883 10884 CPPFLAGS="$save_CPPFLAGS" 10885 LDFLAGS="$save_LDFLAGS" 10886 LIBS="$save_LIBS" 10887 ;; 10888 esac 10889 10890 case $lt_cv_dlopen_self in 10891 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10892 *) enable_dlopen_self=unknown ;; 10893 esac 10894 10895 case $lt_cv_dlopen_self_static in 10896 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10897 *) enable_dlopen_self_static=unknown ;; 10898 esac 10899fi 10900 10901 10902# Report which library types will actually be built 10903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 10904$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 10906$as_echo "$can_build_shared" >&6; } 10907 10908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 10909$as_echo_n "checking whether to build shared libraries... " >&6; } 10910test "$can_build_shared" = "no" && enable_shared=no 10911 10912# On AIX, shared libraries and static libraries use the same namespace, and 10913# are all built from PIC. 10914case $host_os in 10915aix3*) 10916 test "$enable_shared" = yes && enable_static=no 10917 if test -n "$RANLIB"; then 10918 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10919 postinstall_cmds='$RANLIB $lib' 10920 fi 10921 ;; 10922 10923aix[4-9]*) 10924 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10925 test "$enable_shared" = yes && enable_static=no 10926 fi 10927 ;; 10928esac 10929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 10930$as_echo "$enable_shared" >&6; } 10931 10932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 10933$as_echo_n "checking whether to build static libraries... " >&6; } 10934# Make sure either enable_shared or enable_static is yes. 10935test "$enable_shared" = yes || enable_static=yes 10936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 10937$as_echo "$enable_static" >&6; } 10938 10939# The else clause should only fire when bootstrapping the 10940# libtool distribution, otherwise you forgot to ship ltmain.sh 10941# with your package, and you will get complaints that there are 10942# no rules to generate ltmain.sh. 10943if test -f "$ltmain"; then 10944 # See if we are running on zsh, and set the options which allow our commands through 10945 # without removal of \ escapes. 10946 if test -n "${ZSH_VERSION+set}" ; then 10947 setopt NO_GLOB_SUBST 10948 fi 10949 # Now quote all the things that may contain metacharacters while being 10950 # careful not to overquote the AC_SUBSTed values. We take copies of the 10951 # variables and quote the copies for generation of the libtool script. 10952 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10953 SED SHELL STRIP \ 10954 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10955 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10956 deplibs_check_method reload_flag reload_cmds need_locks \ 10957 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10958 lt_cv_sys_global_symbol_to_c_name_address \ 10959 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10960 old_postinstall_cmds old_postuninstall_cmds \ 10961 compiler \ 10962 CC \ 10963 LD \ 10964 lt_prog_compiler_wl \ 10965 lt_prog_compiler_pic \ 10966 lt_prog_compiler_static \ 10967 lt_prog_compiler_no_builtin_flag \ 10968 export_dynamic_flag_spec \ 10969 thread_safe_flag_spec \ 10970 whole_archive_flag_spec \ 10971 enable_shared_with_static_runtimes \ 10972 old_archive_cmds \ 10973 old_archive_from_new_cmds \ 10974 predep_objects \ 10975 postdep_objects \ 10976 predeps \ 10977 postdeps \ 10978 compiler_lib_search_path \ 10979 compiler_lib_search_dirs \ 10980 archive_cmds \ 10981 archive_expsym_cmds \ 10982 postinstall_cmds \ 10983 postuninstall_cmds \ 10984 old_archive_from_expsyms_cmds \ 10985 allow_undefined_flag \ 10986 no_undefined_flag \ 10987 export_symbols_cmds \ 10988 hardcode_libdir_flag_spec \ 10989 hardcode_libdir_flag_spec_ld \ 10990 hardcode_libdir_separator \ 10991 hardcode_automatic \ 10992 module_cmds \ 10993 module_expsym_cmds \ 10994 lt_cv_prog_compiler_c_o \ 10995 fix_srcfile_path \ 10996 exclude_expsyms \ 10997 include_expsyms; do 10998 10999 case $var in 11000 old_archive_cmds | \ 11001 old_archive_from_new_cmds | \ 11002 archive_cmds | \ 11003 archive_expsym_cmds | \ 11004 module_cmds | \ 11005 module_expsym_cmds | \ 11006 old_archive_from_expsyms_cmds | \ 11007 export_symbols_cmds | \ 11008 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 11009 postinstall_cmds | postuninstall_cmds | \ 11010 old_postinstall_cmds | old_postuninstall_cmds | \ 11011 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 11012 # Double-quote double-evaled strings. 11013 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 11014 ;; 11015 *) 11016 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 11017 ;; 11018 esac 11019 done 11020 11021 case $lt_echo in 11022 *'\$0 --fallback-echo"') 11023 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 11024 ;; 11025 esac 11026 11027cfgfile="${ofile}T" 11028 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 11029 $rm -f "$cfgfile" 11030 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5 11031$as_echo "$as_me: creating $ofile" >&6;} 11032 11033 cat <<__EOF__ >> "$cfgfile" 11034#! $SHELL 11035 11036# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 11037# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 11038# NOTE: Changes made to this file will be lost: look at ltmain.sh. 11039# 11040# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 11041# Free Software Foundation, Inc. 11042# 11043# This file is part of GNU Libtool: 11044# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 11045# 11046# This program is free software; you can redistribute it and/or modify 11047# it under the terms of the GNU General Public License as published by 11048# the Free Software Foundation; either version 2 of the License, or 11049# (at your option) any later version. 11050# 11051# This program is distributed in the hope that it will be useful, but 11052# WITHOUT ANY WARRANTY; without even the implied warranty of 11053# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11054# General Public License for more details. 11055# 11056# You should have received a copy of the GNU General Public License 11057# along with this program; if not, write to the Free Software 11058# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 11059# 11060# As a special exception to the GNU General Public License, if you 11061# distribute this file as part of a program that contains a 11062# configuration script generated by Autoconf, you may include it under 11063# the same distribution terms that you use for the rest of that program. 11064 11065# A sed program that does not truncate output. 11066SED=$lt_SED 11067 11068# Sed that helps us avoid accidentally triggering echo(1) options like -n. 11069Xsed="$SED -e 1s/^X//" 11070 11071# The HP-UX ksh and POSIX shell print the target directory to stdout 11072# if CDPATH is set. 11073(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11074 11075# The names of the tagged configurations supported by this script. 11076available_tags= 11077 11078# ### BEGIN LIBTOOL CONFIG 11079 11080# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 11081 11082# Shell to use when invoking shell scripts. 11083SHELL=$lt_SHELL 11084 11085# Whether or not to build shared libraries. 11086build_libtool_libs=$enable_shared 11087 11088# Whether or not to build static libraries. 11089build_old_libs=$enable_static 11090 11091# Whether or not to add -lc for building shared libraries. 11092build_libtool_need_lc=$archive_cmds_need_lc 11093 11094# Whether or not to disallow shared libs when runtime libs are static 11095allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 11096 11097# Whether or not to optimize for fast installation. 11098fast_install=$enable_fast_install 11099 11100# The host system. 11101host_alias=$host_alias 11102host=$host 11103host_os=$host_os 11104 11105# The build system. 11106build_alias=$build_alias 11107build=$build 11108build_os=$build_os 11109 11110# An echo program that does not interpret backslashes. 11111echo=$lt_echo 11112 11113# The archiver. 11114AR=$lt_AR 11115AR_FLAGS=$lt_AR_FLAGS 11116 11117# A C compiler. 11118LTCC=$lt_LTCC 11119 11120# LTCC compiler flags. 11121LTCFLAGS=$lt_LTCFLAGS 11122 11123# A language-specific compiler. 11124CC=$lt_compiler 11125 11126# Is the compiler the GNU C compiler? 11127with_gcc=$GCC 11128 11129# An ERE matcher. 11130EGREP=$lt_EGREP 11131 11132# The linker used to build libraries. 11133LD=$lt_LD 11134 11135# Whether we need hard or soft links. 11136LN_S=$lt_LN_S 11137 11138# A BSD-compatible nm program. 11139NM=$lt_NM 11140 11141# A symbol stripping program 11142STRIP=$lt_STRIP 11143 11144# Used to examine libraries when file_magic_cmd begins "file" 11145MAGIC_CMD=$MAGIC_CMD 11146 11147# Used on cygwin: DLL creation program. 11148DLLTOOL="$DLLTOOL" 11149 11150# Used on cygwin: object dumper. 11151OBJDUMP="$OBJDUMP" 11152 11153# Used on cygwin: assembler. 11154AS="$AS" 11155 11156# The name of the directory that contains temporary libtool files. 11157objdir=$objdir 11158 11159# How to create reloadable object files. 11160reload_flag=$lt_reload_flag 11161reload_cmds=$lt_reload_cmds 11162 11163# How to pass a linker flag through the compiler. 11164wl=$lt_lt_prog_compiler_wl 11165 11166# Object file suffix (normally "o"). 11167objext="$ac_objext" 11168 11169# Old archive suffix (normally "a"). 11170libext="$libext" 11171 11172# Shared library suffix (normally ".so"). 11173shrext_cmds='$shrext_cmds' 11174 11175# Executable file suffix (normally ""). 11176exeext="$exeext" 11177 11178# Additional compiler flags for building library objects. 11179pic_flag=$lt_lt_prog_compiler_pic 11180pic_mode=$pic_mode 11181 11182# What is the maximum length of a command? 11183max_cmd_len=$lt_cv_sys_max_cmd_len 11184 11185# Does compiler simultaneously support -c and -o options? 11186compiler_c_o=$lt_lt_cv_prog_compiler_c_o 11187 11188# Must we lock files when doing compilation? 11189need_locks=$lt_need_locks 11190 11191# Do we need the lib prefix for modules? 11192need_lib_prefix=$need_lib_prefix 11193 11194# Do we need a version for libraries? 11195need_version=$need_version 11196 11197# Whether dlopen is supported. 11198dlopen_support=$enable_dlopen 11199 11200# Whether dlopen of programs is supported. 11201dlopen_self=$enable_dlopen_self 11202 11203# Whether dlopen of statically linked programs is supported. 11204dlopen_self_static=$enable_dlopen_self_static 11205 11206# Compiler flag to prevent dynamic linking. 11207link_static_flag=$lt_lt_prog_compiler_static 11208 11209# Compiler flag to turn off builtin functions. 11210no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 11211 11212# Compiler flag to allow reflexive dlopens. 11213export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 11214 11215# Compiler flag to generate shared objects directly from archives. 11216whole_archive_flag_spec=$lt_whole_archive_flag_spec 11217 11218# Compiler flag to generate thread-safe objects. 11219thread_safe_flag_spec=$lt_thread_safe_flag_spec 11220 11221# Library versioning type. 11222version_type=$version_type 11223 11224# Format of library name prefix. 11225libname_spec=$lt_libname_spec 11226 11227# List of archive names. First name is the real one, the rest are links. 11228# The last name is the one that the linker finds with -lNAME. 11229library_names_spec=$lt_library_names_spec 11230 11231# The coded name of the library, if different from the real name. 11232soname_spec=$lt_soname_spec 11233 11234# Commands used to build and install an old-style archive. 11235RANLIB=$lt_RANLIB 11236old_archive_cmds=$lt_old_archive_cmds 11237old_postinstall_cmds=$lt_old_postinstall_cmds 11238old_postuninstall_cmds=$lt_old_postuninstall_cmds 11239 11240# Create an old-style archive from a shared archive. 11241old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 11242 11243# Create a temporary old-style archive to link instead of a shared archive. 11244old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 11245 11246# Commands used to build and install a shared archive. 11247archive_cmds=$lt_archive_cmds 11248archive_expsym_cmds=$lt_archive_expsym_cmds 11249postinstall_cmds=$lt_postinstall_cmds 11250postuninstall_cmds=$lt_postuninstall_cmds 11251 11252# Commands used to build a loadable module (assumed same as above if empty) 11253module_cmds=$lt_module_cmds 11254module_expsym_cmds=$lt_module_expsym_cmds 11255 11256# Commands to strip libraries. 11257old_striplib=$lt_old_striplib 11258striplib=$lt_striplib 11259 11260# Dependencies to place before the objects being linked to create a 11261# shared library. 11262predep_objects=$lt_predep_objects 11263 11264# Dependencies to place after the objects being linked to create a 11265# shared library. 11266postdep_objects=$lt_postdep_objects 11267 11268# Dependencies to place before the objects being linked to create a 11269# shared library. 11270predeps=$lt_predeps 11271 11272# Dependencies to place after the objects being linked to create a 11273# shared library. 11274postdeps=$lt_postdeps 11275 11276# The directories searched by this compiler when creating a shared 11277# library 11278compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 11279 11280# The library search path used internally by the compiler when linking 11281# a shared library. 11282compiler_lib_search_path=$lt_compiler_lib_search_path 11283 11284# Method to check whether dependent libraries are shared objects. 11285deplibs_check_method=$lt_deplibs_check_method 11286 11287# Command to use when deplibs_check_method == file_magic. 11288file_magic_cmd=$lt_file_magic_cmd 11289 11290# Flag that allows shared libraries with undefined symbols to be built. 11291allow_undefined_flag=$lt_allow_undefined_flag 11292 11293# Flag that forces no undefined symbols. 11294no_undefined_flag=$lt_no_undefined_flag 11295 11296# Commands used to finish a libtool library installation in a directory. 11297finish_cmds=$lt_finish_cmds 11298 11299# Same as above, but a single script fragment to be evaled but not shown. 11300finish_eval=$lt_finish_eval 11301 11302# Take the output of nm and produce a listing of raw symbols and C names. 11303global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 11304 11305# Transform the output of nm in a proper C declaration 11306global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 11307 11308# Transform the output of nm in a C name address pair 11309global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 11310 11311# This is the shared library runtime path variable. 11312runpath_var=$runpath_var 11313 11314# This is the shared library path variable. 11315shlibpath_var=$shlibpath_var 11316 11317# Is shlibpath searched before the hard-coded library search path? 11318shlibpath_overrides_runpath=$shlibpath_overrides_runpath 11319 11320# How to hardcode a shared library path into an executable. 11321hardcode_action=$hardcode_action 11322 11323# Whether we should hardcode library paths into libraries. 11324hardcode_into_libs=$hardcode_into_libs 11325 11326# Flag to hardcode \$libdir into a binary during linking. 11327# This must work even if \$libdir does not exist. 11328hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 11329 11330# If ld is used when linking, flag to hardcode \$libdir into 11331# a binary during linking. This must work even if \$libdir does 11332# not exist. 11333hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 11334 11335# Whether we need a single -rpath flag with a separated argument. 11336hardcode_libdir_separator=$lt_hardcode_libdir_separator 11337 11338# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 11339# resulting binary. 11340hardcode_direct=$hardcode_direct 11341 11342# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 11343# resulting binary. 11344hardcode_minus_L=$hardcode_minus_L 11345 11346# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 11347# the resulting binary. 11348hardcode_shlibpath_var=$hardcode_shlibpath_var 11349 11350# Set to yes if building a shared library automatically hardcodes DIR into the library 11351# and all subsequent libraries and executables linked against it. 11352hardcode_automatic=$hardcode_automatic 11353 11354# Variables whose values should be saved in libtool wrapper scripts and 11355# restored at relink time. 11356variables_saved_for_relink="$variables_saved_for_relink" 11357 11358# Whether libtool must link a program against all its dependency libraries. 11359link_all_deplibs=$link_all_deplibs 11360 11361# Compile-time system search path for libraries 11362sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 11363 11364# Run-time system search path for libraries 11365sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 11366 11367# Fix the shell variable \$srcfile for the compiler. 11368fix_srcfile_path=$lt_fix_srcfile_path 11369 11370# Set to yes if exported symbols are required. 11371always_export_symbols=$always_export_symbols 11372 11373# The commands to list exported symbols. 11374export_symbols_cmds=$lt_export_symbols_cmds 11375 11376# The commands to extract the exported symbol list from a shared archive. 11377extract_expsyms_cmds=$lt_extract_expsyms_cmds 11378 11379# Symbols that should not be listed in the preloaded symbols. 11380exclude_expsyms=$lt_exclude_expsyms 11381 11382# Symbols that must always be exported. 11383include_expsyms=$lt_include_expsyms 11384 11385# ### END LIBTOOL CONFIG 11386 11387__EOF__ 11388 11389 11390 case $host_os in 11391 aix3*) 11392 cat <<\EOF >> "$cfgfile" 11393 11394# AIX sometimes has problems with the GCC collect2 program. For some 11395# reason, if we set the COLLECT_NAMES environment variable, the problems 11396# vanish in a puff of smoke. 11397if test "X${COLLECT_NAMES+set}" != Xset; then 11398 COLLECT_NAMES= 11399 export COLLECT_NAMES 11400fi 11401EOF 11402 ;; 11403 esac 11404 11405 # We use sed instead of cat because bash on DJGPP gets confused if 11406 # if finds mixed CR/LF and LF-only lines. Since sed operates in 11407 # text mode, it properly converts lines to CR/LF. This bash problem 11408 # is reportedly fixed, but why not run on old versions too? 11409 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 11410 11411 mv -f "$cfgfile" "$ofile" || \ 11412 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 11413 chmod +x "$ofile" 11414 11415else 11416 # If there is no Makefile yet, we rely on a make rule to execute 11417 # `config.status --recheck' to rerun these tests and create the 11418 # libtool script then. 11419 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 11420 if test -f "$ltmain_in"; then 11421 test -f Makefile && make "$ltmain" 11422 fi 11423fi 11424 11425 11426ac_ext=cpp 11427ac_cpp='$CXXCPP $CPPFLAGS' 11428ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11429ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11430ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11431 11432CC="$lt_save_CC" 11433 11434 11435# Check whether --with-tags was given. 11436if test "${with_tags+set}" = set; then : 11437 withval=$with_tags; tagnames="$withval" 11438fi 11439 11440 11441if test -f "$ltmain" && test -n "$tagnames"; then 11442 if test ! -f "${ofile}"; then 11443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5 11444$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 11445 fi 11446 11447 if test -z "$LTCC"; then 11448 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 11449 if test -z "$LTCC"; then 11450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5 11451$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 11452 else 11453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 11454$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 11455 fi 11456 fi 11457 if test -z "$LTCFLAGS"; then 11458 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 11459 fi 11460 11461 # Extract list of available tagged configurations in $ofile. 11462 # Note that this assumes the entire list is on one line. 11463 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 11464 11465 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11466 for tagname in $tagnames; do 11467 IFS="$lt_save_ifs" 11468 # Check whether tagname contains only valid characters 11469 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 11470 "") ;; 11471 *) as_fn_error "invalid tag name: $tagname" "$LINENO" 5 11472 ;; 11473 esac 11474 11475 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11476 then 11477 as_fn_error "tag name \"$tagname\" already exists" "$LINENO" 5 11478 fi 11479 11480 # Update the list of available tags. 11481 if test -n "$tagname"; then 11482 echo appending configuration tag \"$tagname\" to $ofile 11483 11484 case $tagname in 11485 CXX) 11486 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11487 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11488 (test "X$CXX" != "Xg++"))) ; then 11489 ac_ext=cpp 11490ac_cpp='$CXXCPP $CPPFLAGS' 11491ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11492ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11493ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11494 11495 11496 11497 11498archive_cmds_need_lc_CXX=no 11499allow_undefined_flag_CXX= 11500always_export_symbols_CXX=no 11501archive_expsym_cmds_CXX= 11502export_dynamic_flag_spec_CXX= 11503hardcode_direct_CXX=no 11504hardcode_libdir_flag_spec_CXX= 11505hardcode_libdir_flag_spec_ld_CXX= 11506hardcode_libdir_separator_CXX= 11507hardcode_minus_L_CXX=no 11508hardcode_shlibpath_var_CXX=unsupported 11509hardcode_automatic_CXX=no 11510module_cmds_CXX= 11511module_expsym_cmds_CXX= 11512link_all_deplibs_CXX=unknown 11513old_archive_cmds_CXX=$old_archive_cmds 11514no_undefined_flag_CXX= 11515whole_archive_flag_spec_CXX= 11516enable_shared_with_static_runtimes_CXX=no 11517 11518# Dependencies to place before and after the object being linked: 11519predep_objects_CXX= 11520postdep_objects_CXX= 11521predeps_CXX= 11522postdeps_CXX= 11523compiler_lib_search_path_CXX= 11524compiler_lib_search_dirs_CXX= 11525 11526# Source file extension for C++ test sources. 11527ac_ext=cpp 11528 11529# Object file extension for compiled C++ test sources. 11530objext=o 11531objext_CXX=$objext 11532 11533# Code to be used in simple compile tests 11534lt_simple_compile_test_code="int some_variable = 0;" 11535 11536# Code to be used in simple link tests 11537lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 11538 11539# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11540 11541# If no C compiler was specified, use CC. 11542LTCC=${LTCC-"$CC"} 11543 11544# If no C compiler flags were specified, use CFLAGS. 11545LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11546 11547# Allow CC to be a program name with arguments. 11548compiler=$CC 11549 11550 11551# save warnings/boilerplate of simple test code 11552ac_outfile=conftest.$ac_objext 11553echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11554eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11555_lt_compiler_boilerplate=`cat conftest.err` 11556$rm conftest* 11557 11558ac_outfile=conftest.$ac_objext 11559echo "$lt_simple_link_test_code" >conftest.$ac_ext 11560eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11561_lt_linker_boilerplate=`cat conftest.err` 11562$rm -r conftest* 11563 11564 11565# Allow CC to be a program name with arguments. 11566lt_save_CC=$CC 11567lt_save_LD=$LD 11568lt_save_GCC=$GCC 11569GCC=$GXX 11570lt_save_with_gnu_ld=$with_gnu_ld 11571lt_save_path_LD=$lt_cv_path_LD 11572if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11573 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11574else 11575 $as_unset lt_cv_prog_gnu_ld 11576fi 11577if test -n "${lt_cv_path_LDCXX+set}"; then 11578 lt_cv_path_LD=$lt_cv_path_LDCXX 11579else 11580 $as_unset lt_cv_path_LD 11581fi 11582test -z "${LDCXX+set}" || LD=$LDCXX 11583CC=${CXX-"c++"} 11584compiler=$CC 11585compiler_CXX=$CC 11586for cc_temp in $compiler""; do 11587 case $cc_temp in 11588 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11589 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11590 \-*) ;; 11591 *) break;; 11592 esac 11593done 11594cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11595 11596 11597# We don't want -fno-exception wen compiling C++ code, so set the 11598# no_builtin_flag separately 11599if test "$GXX" = yes; then 11600 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11601else 11602 lt_prog_compiler_no_builtin_flag_CXX= 11603fi 11604 11605if test "$GXX" = yes; then 11606 # Set up default GNU C++ configuration 11607 11608 11609# Check whether --with-gnu-ld was given. 11610if test "${with_gnu_ld+set}" = set; then : 11611 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11612else 11613 with_gnu_ld=no 11614fi 11615 11616ac_prog=ld 11617if test "$GCC" = yes; then 11618 # Check if gcc -print-prog-name=ld gives a path. 11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11620$as_echo_n "checking for ld used by $CC... " >&6; } 11621 case $host in 11622 *-*-mingw*) 11623 # gcc leaves a trailing carriage return which upsets mingw 11624 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11625 *) 11626 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11627 esac 11628 case $ac_prog in 11629 # Accept absolute paths. 11630 [\\/]* | ?:[\\/]*) 11631 re_direlt='/[^/][^/]*/\.\./' 11632 # Canonicalize the pathname of ld 11633 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11634 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11635 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11636 done 11637 test -z "$LD" && LD="$ac_prog" 11638 ;; 11639 "") 11640 # If it fails, then pretend we aren't using GCC. 11641 ac_prog=ld 11642 ;; 11643 *) 11644 # If it is relative, then search for the first ld in PATH. 11645 with_gnu_ld=unknown 11646 ;; 11647 esac 11648elif test "$with_gnu_ld" = yes; then 11649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11650$as_echo_n "checking for GNU ld... " >&6; } 11651else 11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11653$as_echo_n "checking for non-GNU ld... " >&6; } 11654fi 11655if test "${lt_cv_path_LD+set}" = set; then : 11656 $as_echo_n "(cached) " >&6 11657else 11658 if test -z "$LD"; then 11659 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11660 for ac_dir in $PATH; do 11661 IFS="$lt_save_ifs" 11662 test -z "$ac_dir" && ac_dir=. 11663 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11664 lt_cv_path_LD="$ac_dir/$ac_prog" 11665 # Check to see if the program is GNU ld. I'd rather use --version, 11666 # but apparently some variants of GNU ld only accept -v. 11667 # Break only if it was the GNU/non-GNU ld that we prefer. 11668 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11669 *GNU* | *'with BFD'*) 11670 test "$with_gnu_ld" != no && break 11671 ;; 11672 *) 11673 test "$with_gnu_ld" != yes && break 11674 ;; 11675 esac 11676 fi 11677 done 11678 IFS="$lt_save_ifs" 11679else 11680 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11681fi 11682fi 11683 11684LD="$lt_cv_path_LD" 11685if test -n "$LD"; then 11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11687$as_echo "$LD" >&6; } 11688else 11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11690$as_echo "no" >&6; } 11691fi 11692test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 11693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11694$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11695if test "${lt_cv_prog_gnu_ld+set}" = set; then : 11696 $as_echo_n "(cached) " >&6 11697else 11698 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11699case `$LD -v 2>&1 </dev/null` in 11700*GNU* | *'with BFD'*) 11701 lt_cv_prog_gnu_ld=yes 11702 ;; 11703*) 11704 lt_cv_prog_gnu_ld=no 11705 ;; 11706esac 11707fi 11708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11709$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11710with_gnu_ld=$lt_cv_prog_gnu_ld 11711 11712 11713 11714 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11715 # archiving commands below assume that GNU ld is being used. 11716 if test "$with_gnu_ld" = yes; then 11717 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11718 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' 11719 11720 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11721 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11722 11723 # If archive_cmds runs LD, not CC, wlarc should be empty 11724 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11725 # investigate it a little bit more. (MM) 11726 wlarc='${wl}' 11727 11728 # ancient GNU ld didn't support --whole-archive et. al. 11729 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11730 grep 'no-whole-archive' > /dev/null; then 11731 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11732 else 11733 whole_archive_flag_spec_CXX= 11734 fi 11735 else 11736 with_gnu_ld=no 11737 wlarc= 11738 11739 # A generic and very simple default shared library creation 11740 # command for GNU C++ for the case where it uses the native 11741 # linker, instead of GNU ld. If possible, this setting should 11742 # overridden to take advantage of the native linker features on 11743 # the platform it is being used on. 11744 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11745 fi 11746 11747 # Commands to make compiler produce verbose output that lists 11748 # what "hidden" libraries, object files and flags are used when 11749 # linking a shared library. 11750 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11751 11752else 11753 GXX=no 11754 with_gnu_ld=no 11755 wlarc= 11756fi 11757 11758# PORTME: fill in a description of your system's C++ link characteristics 11759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11760$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11761ld_shlibs_CXX=yes 11762case $host_os in 11763 aix3*) 11764 # FIXME: insert proper C++ library support 11765 ld_shlibs_CXX=no 11766 ;; 11767 aix[4-9]*) 11768 if test "$host_cpu" = ia64; then 11769 # On IA64, the linker does run time linking by default, so we don't 11770 # have to do anything special. 11771 aix_use_runtimelinking=no 11772 exp_sym_flag='-Bexport' 11773 no_entry_flag="" 11774 else 11775 aix_use_runtimelinking=no 11776 11777 # Test if we are trying to use run time linking or normal 11778 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11779 # need to do runtime linking. 11780 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11781 for ld_flag in $LDFLAGS; do 11782 case $ld_flag in 11783 *-brtl*) 11784 aix_use_runtimelinking=yes 11785 break 11786 ;; 11787 esac 11788 done 11789 ;; 11790 esac 11791 11792 exp_sym_flag='-bexport' 11793 no_entry_flag='-bnoentry' 11794 fi 11795 11796 # When large executables or shared objects are built, AIX ld can 11797 # have problems creating the table of contents. If linking a library 11798 # or program results in "error TOC overflow" add -mminimal-toc to 11799 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11800 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11801 11802 archive_cmds_CXX='' 11803 hardcode_direct_CXX=yes 11804 hardcode_libdir_separator_CXX=':' 11805 link_all_deplibs_CXX=yes 11806 11807 if test "$GXX" = yes; then 11808 case $host_os in aix4.[012]|aix4.[012].*) 11809 # We only want to do this on AIX 4.2 and lower, the check 11810 # below for broken collect2 doesn't work under 4.3+ 11811 collect2name=`${CC} -print-prog-name=collect2` 11812 if test -f "$collect2name" && \ 11813 strings "$collect2name" | grep resolve_lib_name >/dev/null 11814 then 11815 # We have reworked collect2 11816 : 11817 else 11818 # We have old collect2 11819 hardcode_direct_CXX=unsupported 11820 # It fails to find uninstalled libraries when the uninstalled 11821 # path is not listed in the libpath. Setting hardcode_minus_L 11822 # to unsupported forces relinking 11823 hardcode_minus_L_CXX=yes 11824 hardcode_libdir_flag_spec_CXX='-L$libdir' 11825 hardcode_libdir_separator_CXX= 11826 fi 11827 ;; 11828 esac 11829 shared_flag='-shared' 11830 if test "$aix_use_runtimelinking" = yes; then 11831 shared_flag="$shared_flag "'${wl}-G' 11832 fi 11833 else 11834 # not using gcc 11835 if test "$host_cpu" = ia64; then 11836 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11837 # chokes on -Wl,-G. The following line is correct: 11838 shared_flag='-G' 11839 else 11840 if test "$aix_use_runtimelinking" = yes; then 11841 shared_flag='${wl}-G' 11842 else 11843 shared_flag='${wl}-bM:SRE' 11844 fi 11845 fi 11846 fi 11847 11848 # It seems that -bexpall does not export symbols beginning with 11849 # underscore (_), so it is better to generate a list of symbols to export. 11850 always_export_symbols_CXX=yes 11851 if test "$aix_use_runtimelinking" = yes; then 11852 # Warning - without using the other runtime loading flags (-brtl), 11853 # -berok will link without error, but may produce a broken library. 11854 allow_undefined_flag_CXX='-berok' 11855 # Determine the default libpath from the value encoded in an empty executable. 11856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11857/* end confdefs.h. */ 11858 11859int 11860main () 11861{ 11862 11863 ; 11864 return 0; 11865} 11866_ACEOF 11867if ac_fn_cxx_try_link "$LINENO"; then : 11868 11869lt_aix_libpath_sed=' 11870 /Import File Strings/,/^$/ { 11871 /^0/ { 11872 s/^0 *\(.*\)$/\1/ 11873 p 11874 } 11875 }' 11876aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11877# Check for a 64-bit object if we didn't find anything. 11878if test -z "$aix_libpath"; then 11879 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11880fi 11881fi 11882rm -f core conftest.err conftest.$ac_objext \ 11883 conftest$ac_exeext conftest.$ac_ext 11884if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11885 11886 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11887 11888 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 11889 else 11890 if test "$host_cpu" = ia64; then 11891 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11892 allow_undefined_flag_CXX="-z nodefs" 11893 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" 11894 else 11895 # Determine the default libpath from the value encoded in an empty executable. 11896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11897/* end confdefs.h. */ 11898 11899int 11900main () 11901{ 11902 11903 ; 11904 return 0; 11905} 11906_ACEOF 11907if ac_fn_cxx_try_link "$LINENO"; then : 11908 11909lt_aix_libpath_sed=' 11910 /Import File Strings/,/^$/ { 11911 /^0/ { 11912 s/^0 *\(.*\)$/\1/ 11913 p 11914 } 11915 }' 11916aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11917# Check for a 64-bit object if we didn't find anything. 11918if test -z "$aix_libpath"; then 11919 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11920fi 11921fi 11922rm -f core conftest.err conftest.$ac_objext \ 11923 conftest$ac_exeext conftest.$ac_ext 11924if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11925 11926 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11927 # Warning - without using the other run time loading flags, 11928 # -berok will link without error, but may produce a broken library. 11929 no_undefined_flag_CXX=' ${wl}-bernotok' 11930 allow_undefined_flag_CXX=' ${wl}-berok' 11931 # Exported symbols can be pulled into shared objects from archives 11932 whole_archive_flag_spec_CXX='$convenience' 11933 archive_cmds_need_lc_CXX=yes 11934 # This is similar to how AIX traditionally builds its shared libraries. 11935 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' 11936 fi 11937 fi 11938 ;; 11939 11940 beos*) 11941 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11942 allow_undefined_flag_CXX=unsupported 11943 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11944 # support --undefined. This deserves some investigation. FIXME 11945 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11946 else 11947 ld_shlibs_CXX=no 11948 fi 11949 ;; 11950 11951 chorus*) 11952 case $cc_basename in 11953 *) 11954 # FIXME: insert proper C++ library support 11955 ld_shlibs_CXX=no 11956 ;; 11957 esac 11958 ;; 11959 11960 cygwin* | mingw* | pw32*) 11961 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11962 # as there is no search path for DLLs. 11963 hardcode_libdir_flag_spec_CXX='-L$libdir' 11964 allow_undefined_flag_CXX=unsupported 11965 always_export_symbols_CXX=no 11966 enable_shared_with_static_runtimes_CXX=yes 11967 11968 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11969 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' 11970 # If the export-symbols file already is a .def file (1st line 11971 # is EXPORTS), use it as is; otherwise, prepend... 11972 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11973 cp $export_symbols $output_objdir/$soname.def; 11974 else 11975 echo EXPORTS > $output_objdir/$soname.def; 11976 cat $export_symbols >> $output_objdir/$soname.def; 11977 fi~ 11978 $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' 11979 else 11980 ld_shlibs_CXX=no 11981 fi 11982 ;; 11983 darwin* | rhapsody*) 11984 archive_cmds_need_lc_CXX=no 11985 hardcode_direct_CXX=no 11986 hardcode_automatic_CXX=yes 11987 hardcode_shlibpath_var_CXX=unsupported 11988 whole_archive_flag_spec_CXX='' 11989 link_all_deplibs_CXX=yes 11990 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 11991 if test "$GXX" = yes ; then 11992 output_verbose_link_cmd='echo' 11993 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}" 11994 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 11995 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}" 11996 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}" 11997 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 11998 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}" 11999 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}" 12000 fi 12001 else 12002 case $cc_basename in 12003 xlc*) 12004 output_verbose_link_cmd='echo' 12005 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 12006 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 12007 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 12008 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 12009 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 12010 ;; 12011 *) 12012 ld_shlibs_CXX=no 12013 ;; 12014 esac 12015 fi 12016 ;; 12017 12018 dgux*) 12019 case $cc_basename in 12020 ec++*) 12021 # FIXME: insert proper C++ library support 12022 ld_shlibs_CXX=no 12023 ;; 12024 ghcx*) 12025 # Green Hills C++ Compiler 12026 # FIXME: insert proper C++ library support 12027 ld_shlibs_CXX=no 12028 ;; 12029 *) 12030 # FIXME: insert proper C++ library support 12031 ld_shlibs_CXX=no 12032 ;; 12033 esac 12034 ;; 12035 freebsd[12]*) 12036 # C++ shared libraries reported to be fairly broken before switch to ELF 12037 ld_shlibs_CXX=no 12038 ;; 12039 freebsd-elf*) 12040 archive_cmds_need_lc_CXX=no 12041 ;; 12042 freebsd* | dragonfly*) 12043 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 12044 # conventions 12045 ld_shlibs_CXX=yes 12046 ;; 12047 gnu*) 12048 ;; 12049 hpux9*) 12050 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12051 hardcode_libdir_separator_CXX=: 12052 export_dynamic_flag_spec_CXX='${wl}-E' 12053 hardcode_direct_CXX=yes 12054 hardcode_minus_L_CXX=yes # Not in the search PATH, 12055 # but as the default 12056 # location of the library. 12057 12058 case $cc_basename in 12059 CC*) 12060 # FIXME: insert proper C++ library support 12061 ld_shlibs_CXX=no 12062 ;; 12063 aCC*) 12064 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' 12065 # Commands to make compiler produce verbose output that lists 12066 # what "hidden" libraries, object files and flags are used when 12067 # linking a shared library. 12068 # 12069 # There doesn't appear to be a way to prevent this compiler from 12070 # explicitly linking system object files so we need to strip them 12071 # from the output so that they don't get included in the library 12072 # dependencies. 12073 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 12074 ;; 12075 *) 12076 if test "$GXX" = yes; then 12077 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' 12078 else 12079 # FIXME: insert proper C++ library support 12080 ld_shlibs_CXX=no 12081 fi 12082 ;; 12083 esac 12084 ;; 12085 hpux10*|hpux11*) 12086 if test $with_gnu_ld = no; then 12087 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12088 hardcode_libdir_separator_CXX=: 12089 12090 case $host_cpu in 12091 hppa*64*|ia64*) ;; 12092 *) 12093 export_dynamic_flag_spec_CXX='${wl}-E' 12094 ;; 12095 esac 12096 fi 12097 case $host_cpu in 12098 hppa*64*|ia64*) 12099 hardcode_direct_CXX=no 12100 hardcode_shlibpath_var_CXX=no 12101 ;; 12102 *) 12103 hardcode_direct_CXX=yes 12104 hardcode_minus_L_CXX=yes # Not in the search PATH, 12105 # but as the default 12106 # location of the library. 12107 ;; 12108 esac 12109 12110 case $cc_basename in 12111 CC*) 12112 # FIXME: insert proper C++ library support 12113 ld_shlibs_CXX=no 12114 ;; 12115 aCC*) 12116 case $host_cpu in 12117 hppa*64*) 12118 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12119 ;; 12120 ia64*) 12121 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12122 ;; 12123 *) 12124 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12125 ;; 12126 esac 12127 # Commands to make compiler produce verbose output that lists 12128 # what "hidden" libraries, object files and flags are used when 12129 # linking a shared library. 12130 # 12131 # There doesn't appear to be a way to prevent this compiler from 12132 # explicitly linking system object files so we need to strip them 12133 # from the output so that they don't get included in the library 12134 # dependencies. 12135 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 12136 ;; 12137 *) 12138 if test "$GXX" = yes; then 12139 if test $with_gnu_ld = no; then 12140 case $host_cpu in 12141 hppa*64*) 12142 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12143 ;; 12144 ia64*) 12145 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12146 ;; 12147 *) 12148 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' 12149 ;; 12150 esac 12151 fi 12152 else 12153 # FIXME: insert proper C++ library support 12154 ld_shlibs_CXX=no 12155 fi 12156 ;; 12157 esac 12158 ;; 12159 interix[3-9]*) 12160 hardcode_direct_CXX=no 12161 hardcode_shlibpath_var_CXX=no 12162 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12163 export_dynamic_flag_spec_CXX='${wl}-E' 12164 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12165 # Instead, shared libraries are loaded at an image base (0x10000000 by 12166 # default) and relocated if they conflict, which is a slow very memory 12167 # consuming and fragmenting process. To avoid this, we pick a random, 12168 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12169 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12170 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' 12171 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' 12172 ;; 12173 irix5* | irix6*) 12174 case $cc_basename in 12175 CC*) 12176 # SGI C++ 12177 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 12178 12179 # Archives containing C++ object files must be created using 12180 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 12181 # necessary to make sure instantiated templates are included 12182 # in the archive. 12183 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 12184 ;; 12185 *) 12186 if test "$GXX" = yes; then 12187 if test "$with_gnu_ld" = no; then 12188 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12189 else 12190 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' 12191 fi 12192 fi 12193 link_all_deplibs_CXX=yes 12194 ;; 12195 esac 12196 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12197 hardcode_libdir_separator_CXX=: 12198 ;; 12199 linux* | k*bsd*-gnu) 12200 case $cc_basename in 12201 KCC*) 12202 # Kuck and Associates, Inc. (KAI) C++ Compiler 12203 12204 # KCC will only create a shared library if the output file 12205 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12206 # to its proper name (with version) after linking. 12207 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' 12208 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' 12209 # Commands to make compiler produce verbose output that lists 12210 # what "hidden" libraries, object files and flags are used when 12211 # linking a shared library. 12212 # 12213 # There doesn't appear to be a way to prevent this compiler from 12214 # explicitly linking system object files so we need to strip them 12215 # from the output so that they don't get included in the library 12216 # dependencies. 12217 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 12218 12219 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 12220 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12221 12222 # Archives containing C++ object files must be created using 12223 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12224 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12225 ;; 12226 icpc*) 12227 # Intel C++ 12228 with_gnu_ld=yes 12229 # version 8.0 and above of icpc choke on multiply defined symbols 12230 # if we add $predep_objects and $postdep_objects, however 7.1 and 12231 # earlier do not add the objects themselves. 12232 case `$CC -V 2>&1` in 12233 *"Version 7."*) 12234 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12235 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' 12236 ;; 12237 *) # Version 8.0 or newer 12238 tmp_idyn= 12239 case $host_cpu in 12240 ia64*) tmp_idyn=' -i_dynamic';; 12241 esac 12242 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12243 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' 12244 ;; 12245 esac 12246 archive_cmds_need_lc_CXX=no 12247 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12248 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12249 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12250 ;; 12251 pgCC* | pgcpp*) 12252 # Portland Group C++ compiler 12253 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12254 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' 12255 12256 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12257 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12258 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' 12259 ;; 12260 cxx*) 12261 # Compaq C++ 12262 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12263 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' 12264 12265 runpath_var=LD_RUN_PATH 12266 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12267 hardcode_libdir_separator_CXX=: 12268 12269 # Commands to make compiler produce verbose output that lists 12270 # what "hidden" libraries, object files and flags are used when 12271 # linking a shared library. 12272 # 12273 # There doesn't appear to be a way to prevent this compiler from 12274 # explicitly linking system object files so we need to strip them 12275 # from the output so that they don't get included in the library 12276 # dependencies. 12277 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 12278 ;; 12279 *) 12280 case `$CC -V 2>&1 | sed 5q` in 12281 *Sun\ C*) 12282 # Sun C++ 5.9 12283 no_undefined_flag_CXX=' -zdefs' 12284 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12285 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' 12286 hardcode_libdir_flag_spec_CXX='-R$libdir' 12287 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' 12288 12289 # Not sure whether something based on 12290 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 12291 # would be better. 12292 output_verbose_link_cmd='echo' 12293 12294 # Archives containing C++ object files must be created using 12295 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12296 # necessary to make sure instantiated templates are included 12297 # in the archive. 12298 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12299 ;; 12300 esac 12301 ;; 12302 esac 12303 ;; 12304 lynxos*) 12305 # FIXME: insert proper C++ library support 12306 ld_shlibs_CXX=no 12307 ;; 12308 m88k*) 12309 # FIXME: insert proper C++ library support 12310 ld_shlibs_CXX=no 12311 ;; 12312 mvs*) 12313 case $cc_basename in 12314 cxx*) 12315 # FIXME: insert proper C++ library support 12316 ld_shlibs_CXX=no 12317 ;; 12318 *) 12319 # FIXME: insert proper C++ library support 12320 ld_shlibs_CXX=no 12321 ;; 12322 esac 12323 ;; 12324 netbsd*) 12325 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12326 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12327 wlarc= 12328 hardcode_libdir_flag_spec_CXX='-R$libdir' 12329 hardcode_direct_CXX=yes 12330 hardcode_shlibpath_var_CXX=no 12331 fi 12332 # Workaround some broken pre-1.5 toolchains 12333 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12334 ;; 12335 openbsd2*) 12336 # C++ shared libraries are fairly broken 12337 ld_shlibs_CXX=no 12338 ;; 12339 openbsd*) 12340 if test -f /usr/libexec/ld.so; then 12341 hardcode_direct_CXX=yes 12342 hardcode_shlibpath_var_CXX=no 12343 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12344 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12345 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12346 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12347 export_dynamic_flag_spec_CXX='${wl}-E' 12348 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12349 fi 12350 output_verbose_link_cmd='echo' 12351 else 12352 ld_shlibs_CXX=no 12353 fi 12354 ;; 12355 osf3*) 12356 case $cc_basename in 12357 KCC*) 12358 # Kuck and Associates, Inc. (KAI) C++ Compiler 12359 12360 # KCC will only create a shared library if the output file 12361 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12362 # to its proper name (with version) after linking. 12363 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' 12364 12365 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12366 hardcode_libdir_separator_CXX=: 12367 12368 # Archives containing C++ object files must be created using 12369 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12370 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12371 12372 ;; 12373 RCC*) 12374 # Rational C++ 2.4.1 12375 # FIXME: insert proper C++ library support 12376 ld_shlibs_CXX=no 12377 ;; 12378 cxx*) 12379 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12380 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 12381 12382 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12383 hardcode_libdir_separator_CXX=: 12384 12385 # Commands to make compiler produce verbose output that lists 12386 # what "hidden" libraries, object files and flags are used when 12387 # linking a shared library. 12388 # 12389 # There doesn't appear to be a way to prevent this compiler from 12390 # explicitly linking system object files so we need to strip them 12391 # from the output so that they don't get included in the library 12392 # dependencies. 12393 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 12394 ;; 12395 *) 12396 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12397 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12398 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12399 12400 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12401 hardcode_libdir_separator_CXX=: 12402 12403 # Commands to make compiler produce verbose output that lists 12404 # what "hidden" libraries, object files and flags are used when 12405 # linking a shared library. 12406 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12407 12408 else 12409 # FIXME: insert proper C++ library support 12410 ld_shlibs_CXX=no 12411 fi 12412 ;; 12413 esac 12414 ;; 12415 osf4* | osf5*) 12416 case $cc_basename in 12417 KCC*) 12418 # Kuck and Associates, Inc. (KAI) C++ Compiler 12419 12420 # KCC will only create a shared library if the output file 12421 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12422 # to its proper name (with version) after linking. 12423 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' 12424 12425 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12426 hardcode_libdir_separator_CXX=: 12427 12428 # Archives containing C++ object files must be created using 12429 # the KAI C++ compiler. 12430 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12431 ;; 12432 RCC*) 12433 # Rational C++ 2.4.1 12434 # FIXME: insert proper C++ library support 12435 ld_shlibs_CXX=no 12436 ;; 12437 cxx*) 12438 allow_undefined_flag_CXX=' -expect_unresolved \*' 12439 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 12440 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12441 echo "-hidden">> $lib.exp~ 12442 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ 12443 $rm $lib.exp' 12444 12445 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12446 hardcode_libdir_separator_CXX=: 12447 12448 # Commands to make compiler produce verbose output that lists 12449 # what "hidden" libraries, object files and flags are used when 12450 # linking a shared library. 12451 # 12452 # There doesn't appear to be a way to prevent this compiler from 12453 # explicitly linking system object files so we need to strip them 12454 # from the output so that they don't get included in the library 12455 # dependencies. 12456 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 12457 ;; 12458 *) 12459 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12460 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12461 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12462 12463 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12464 hardcode_libdir_separator_CXX=: 12465 12466 # Commands to make compiler produce verbose output that lists 12467 # what "hidden" libraries, object files and flags are used when 12468 # linking a shared library. 12469 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12470 12471 else 12472 # FIXME: insert proper C++ library support 12473 ld_shlibs_CXX=no 12474 fi 12475 ;; 12476 esac 12477 ;; 12478 psos*) 12479 # FIXME: insert proper C++ library support 12480 ld_shlibs_CXX=no 12481 ;; 12482 sunos4*) 12483 case $cc_basename in 12484 CC*) 12485 # Sun C++ 4.x 12486 # FIXME: insert proper C++ library support 12487 ld_shlibs_CXX=no 12488 ;; 12489 lcc*) 12490 # Lucid 12491 # FIXME: insert proper C++ library support 12492 ld_shlibs_CXX=no 12493 ;; 12494 *) 12495 # FIXME: insert proper C++ library support 12496 ld_shlibs_CXX=no 12497 ;; 12498 esac 12499 ;; 12500 solaris*) 12501 case $cc_basename in 12502 CC*) 12503 # Sun C++ 4.2, 5.x and Centerline C++ 12504 archive_cmds_need_lc_CXX=yes 12505 no_undefined_flag_CXX=' -zdefs' 12506 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12507 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12508 $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' 12509 12510 hardcode_libdir_flag_spec_CXX='-R$libdir' 12511 hardcode_shlibpath_var_CXX=no 12512 case $host_os in 12513 solaris2.[0-5] | solaris2.[0-5].*) ;; 12514 *) 12515 # The compiler driver will combine and reorder linker options, 12516 # but understands `-z linker_flag'. 12517 # Supported since Solaris 2.6 (maybe 2.5.1?) 12518 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 12519 ;; 12520 esac 12521 link_all_deplibs_CXX=yes 12522 12523 output_verbose_link_cmd='echo' 12524 12525 # Archives containing C++ object files must be created using 12526 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12527 # necessary to make sure instantiated templates are included 12528 # in the archive. 12529 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12530 ;; 12531 gcx*) 12532 # Green Hills C++ Compiler 12533 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12534 12535 # The C++ compiler must be used to create the archive. 12536 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12537 ;; 12538 *) 12539 # GNU C++ compiler with Solaris linker 12540 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12541 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12542 if $CC --version | grep -v '^2\.7' > /dev/null; then 12543 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12544 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12545 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12546 12547 # Commands to make compiler produce verbose output that lists 12548 # what "hidden" libraries, object files and flags are used when 12549 # linking a shared library. 12550 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12551 else 12552 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12553 # platform. 12554 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12555 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12556 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12557 12558 # Commands to make compiler produce verbose output that lists 12559 # what "hidden" libraries, object files and flags are used when 12560 # linking a shared library. 12561 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12562 fi 12563 12564 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12565 case $host_os in 12566 solaris2.[0-5] | solaris2.[0-5].*) ;; 12567 *) 12568 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12569 ;; 12570 esac 12571 fi 12572 ;; 12573 esac 12574 ;; 12575 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12576 no_undefined_flag_CXX='${wl}-z,text' 12577 archive_cmds_need_lc_CXX=no 12578 hardcode_shlibpath_var_CXX=no 12579 runpath_var='LD_RUN_PATH' 12580 12581 case $cc_basename in 12582 CC*) 12583 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12584 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12585 ;; 12586 *) 12587 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12588 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12589 ;; 12590 esac 12591 ;; 12592 sysv5* | sco3.2v5* | sco5v6*) 12593 # Note: We can NOT use -z defs as we might desire, because we do not 12594 # link with -lc, and that would cause any symbols used from libc to 12595 # always be unresolved, which means just about no library would 12596 # ever link correctly. If we're not using GNU ld we use -z text 12597 # though, which does catch some bad symbols but isn't as heavy-handed 12598 # as -z defs. 12599 # For security reasons, it is highly recommended that you always 12600 # use absolute paths for naming shared libraries, and exclude the 12601 # DT_RUNPATH tag from executables and libraries. But doing so 12602 # requires that you compile everything twice, which is a pain. 12603 # So that behaviour is only enabled if SCOABSPATH is set to a 12604 # non-empty value in the environment. Most likely only useful for 12605 # creating official distributions of packages. 12606 # This is a hack until libtool officially supports absolute path 12607 # names for shared libraries. 12608 no_undefined_flag_CXX='${wl}-z,text' 12609 allow_undefined_flag_CXX='${wl}-z,nodefs' 12610 archive_cmds_need_lc_CXX=no 12611 hardcode_shlibpath_var_CXX=no 12612 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12613 hardcode_libdir_separator_CXX=':' 12614 link_all_deplibs_CXX=yes 12615 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12616 runpath_var='LD_RUN_PATH' 12617 12618 case $cc_basename in 12619 CC*) 12620 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12621 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12622 ;; 12623 *) 12624 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12625 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12626 ;; 12627 esac 12628 ;; 12629 tandem*) 12630 case $cc_basename in 12631 NCC*) 12632 # NonStop-UX NCC 3.20 12633 # FIXME: insert proper C++ library support 12634 ld_shlibs_CXX=no 12635 ;; 12636 *) 12637 # FIXME: insert proper C++ library support 12638 ld_shlibs_CXX=no 12639 ;; 12640 esac 12641 ;; 12642 vxworks*) 12643 # FIXME: insert proper C++ library support 12644 ld_shlibs_CXX=no 12645 ;; 12646 *) 12647 # FIXME: insert proper C++ library support 12648 ld_shlibs_CXX=no 12649 ;; 12650esac 12651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 12652$as_echo "$ld_shlibs_CXX" >&6; } 12653test "$ld_shlibs_CXX" = no && can_build_shared=no 12654 12655GCC_CXX="$GXX" 12656LD_CXX="$LD" 12657 12658cat > conftest.$ac_ext <<EOF 12659class Foo 12660{ 12661public: 12662 Foo (void) { a = 0; } 12663private: 12664 int a; 12665}; 12666EOF 12667 12668if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12669 (eval $ac_compile) 2>&5 12670 ac_status=$? 12671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12672 test $ac_status = 0; }; then 12673 # Parse the compiler output and extract the necessary 12674 # objects, libraries and library flags. 12675 12676 # Sentinel used to keep track of whether or not we are before 12677 # the conftest object file. 12678 pre_test_object_deps_done=no 12679 12680 # The `*' in the case matches for architectures that use `case' in 12681 # $output_verbose_cmd can trigger glob expansion during the loop 12682 # eval without this substitution. 12683 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12684 12685 for p in `eval $output_verbose_link_cmd`; do 12686 case $p in 12687 12688 -L* | -R* | -l*) 12689 # Some compilers place space between "-{L,R}" and the path. 12690 # Remove the space. 12691 if test $p = "-L" \ 12692 || test $p = "-R"; then 12693 prev=$p 12694 continue 12695 else 12696 prev= 12697 fi 12698 12699 if test "$pre_test_object_deps_done" = no; then 12700 case $p in 12701 -L* | -R*) 12702 # Internal compiler library paths should come after those 12703 # provided the user. The postdeps already come after the 12704 # user supplied libs so there is no need to process them. 12705 if test -z "$compiler_lib_search_path_CXX"; then 12706 compiler_lib_search_path_CXX="${prev}${p}" 12707 else 12708 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12709 fi 12710 ;; 12711 # The "-l" case would never come before the object being 12712 # linked, so don't bother handling this case. 12713 esac 12714 else 12715 if test -z "$postdeps_CXX"; then 12716 postdeps_CXX="${prev}${p}" 12717 else 12718 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12719 fi 12720 fi 12721 ;; 12722 12723 *.$objext) 12724 # This assumes that the test object file only shows up 12725 # once in the compiler output. 12726 if test "$p" = "conftest.$objext"; then 12727 pre_test_object_deps_done=yes 12728 continue 12729 fi 12730 12731 if test "$pre_test_object_deps_done" = no; then 12732 if test -z "$predep_objects_CXX"; then 12733 predep_objects_CXX="$p" 12734 else 12735 predep_objects_CXX="$predep_objects_CXX $p" 12736 fi 12737 else 12738 if test -z "$postdep_objects_CXX"; then 12739 postdep_objects_CXX="$p" 12740 else 12741 postdep_objects_CXX="$postdep_objects_CXX $p" 12742 fi 12743 fi 12744 ;; 12745 12746 *) ;; # Ignore the rest. 12747 12748 esac 12749 done 12750 12751 # Clean up. 12752 rm -f a.out a.exe 12753else 12754 echo "libtool.m4: error: problem compiling CXX test program" 12755fi 12756 12757$rm -f confest.$objext 12758 12759compiler_lib_search_dirs_CXX= 12760if test -n "$compiler_lib_search_path_CXX"; then 12761 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 12762fi 12763 12764# PORTME: override above test on systems where it is broken 12765case $host_os in 12766interix[3-9]*) 12767 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12768 # hack all around it, let's just trust "g++" to DTRT. 12769 predep_objects_CXX= 12770 postdep_objects_CXX= 12771 postdeps_CXX= 12772 ;; 12773 12774linux*) 12775 case `$CC -V 2>&1 | sed 5q` in 12776 *Sun\ C*) 12777 # Sun C++ 5.9 12778 # 12779 # The more standards-conforming stlport4 library is 12780 # incompatible with the Cstd library. Avoid specifying 12781 # it if it's in CXXFLAGS. Ignore libCrun as 12782 # -library=stlport4 depends on it. 12783 case " $CXX $CXXFLAGS " in 12784 *" -library=stlport4 "*) 12785 solaris_use_stlport4=yes 12786 ;; 12787 esac 12788 if test "$solaris_use_stlport4" != yes; then 12789 postdeps_CXX='-library=Cstd -library=Crun' 12790 fi 12791 ;; 12792 esac 12793 ;; 12794 12795solaris*) 12796 case $cc_basename in 12797 CC*) 12798 # The more standards-conforming stlport4 library is 12799 # incompatible with the Cstd library. Avoid specifying 12800 # it if it's in CXXFLAGS. Ignore libCrun as 12801 # -library=stlport4 depends on it. 12802 case " $CXX $CXXFLAGS " in 12803 *" -library=stlport4 "*) 12804 solaris_use_stlport4=yes 12805 ;; 12806 esac 12807 12808 # Adding this requires a known-good setup of shared libraries for 12809 # Sun compiler versions before 5.6, else PIC objects from an old 12810 # archive will be linked into the output, leading to subtle bugs. 12811 if test "$solaris_use_stlport4" != yes; then 12812 postdeps_CXX='-library=Cstd -library=Crun' 12813 fi 12814 ;; 12815 esac 12816 ;; 12817esac 12818 12819case " $postdeps_CXX " in 12820*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12821esac 12822 12823lt_prog_compiler_wl_CXX= 12824lt_prog_compiler_pic_CXX= 12825lt_prog_compiler_static_CXX= 12826 12827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 12828$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 12829 12830 # C++ specific cases for pic, static, wl, etc. 12831 if test "$GXX" = yes; then 12832 lt_prog_compiler_wl_CXX='-Wl,' 12833 lt_prog_compiler_static_CXX='-static' 12834 12835 case $host_os in 12836 aix*) 12837 # All AIX code is PIC. 12838 if test "$host_cpu" = ia64; then 12839 # AIX 5 now supports IA64 processor 12840 lt_prog_compiler_static_CXX='-Bstatic' 12841 fi 12842 ;; 12843 amigaos*) 12844 # FIXME: we need at least 68020 code to build shared libraries, but 12845 # adding the `-m68020' flag to GCC prevents building anything better, 12846 # like `-m68040'. 12847 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12848 ;; 12849 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12850 # PIC is the default for these OSes. 12851 ;; 12852 mingw* | cygwin* | os2* | pw32*) 12853 # This hack is so that the source file can tell whether it is being 12854 # built for inclusion in a dll (and should export symbols for example). 12855 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12856 # (--disable-auto-import) libraries 12857 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12858 ;; 12859 darwin* | rhapsody*) 12860 # PIC is the default on this platform 12861 # Common symbols not allowed in MH_DYLIB files 12862 lt_prog_compiler_pic_CXX='-fno-common' 12863 ;; 12864 *djgpp*) 12865 # DJGPP does not support shared libraries at all 12866 lt_prog_compiler_pic_CXX= 12867 ;; 12868 interix[3-9]*) 12869 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12870 # Instead, we relocate shared libraries at runtime. 12871 ;; 12872 sysv4*MP*) 12873 if test -d /usr/nec; then 12874 lt_prog_compiler_pic_CXX=-Kconform_pic 12875 fi 12876 ;; 12877 hpux*) 12878 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12879 # not for PA HP-UX. 12880 case $host_cpu in 12881 hppa*64*|ia64*) 12882 ;; 12883 *) 12884 lt_prog_compiler_pic_CXX='-fPIC' 12885 ;; 12886 esac 12887 ;; 12888 *) 12889 lt_prog_compiler_pic_CXX='-fPIC' 12890 ;; 12891 esac 12892 else 12893 case $host_os in 12894 aix[4-9]*) 12895 # All AIX code is PIC. 12896 if test "$host_cpu" = ia64; then 12897 # AIX 5 now supports IA64 processor 12898 lt_prog_compiler_static_CXX='-Bstatic' 12899 else 12900 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12901 fi 12902 ;; 12903 chorus*) 12904 case $cc_basename in 12905 cxch68*) 12906 # Green Hills C++ Compiler 12907 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 12908 ;; 12909 esac 12910 ;; 12911 darwin*) 12912 # PIC is the default on this platform 12913 # Common symbols not allowed in MH_DYLIB files 12914 case $cc_basename in 12915 xlc*) 12916 lt_prog_compiler_pic_CXX='-qnocommon' 12917 lt_prog_compiler_wl_CXX='-Wl,' 12918 ;; 12919 esac 12920 ;; 12921 dgux*) 12922 case $cc_basename in 12923 ec++*) 12924 lt_prog_compiler_pic_CXX='-KPIC' 12925 ;; 12926 ghcx*) 12927 # Green Hills C++ Compiler 12928 lt_prog_compiler_pic_CXX='-pic' 12929 ;; 12930 *) 12931 ;; 12932 esac 12933 ;; 12934 freebsd* | dragonfly*) 12935 # FreeBSD uses GNU C++ 12936 ;; 12937 hpux9* | hpux10* | hpux11*) 12938 case $cc_basename in 12939 CC*) 12940 lt_prog_compiler_wl_CXX='-Wl,' 12941 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12942 if test "$host_cpu" != ia64; then 12943 lt_prog_compiler_pic_CXX='+Z' 12944 fi 12945 ;; 12946 aCC*) 12947 lt_prog_compiler_wl_CXX='-Wl,' 12948 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12949 case $host_cpu in 12950 hppa*64*|ia64*) 12951 # +Z the default 12952 ;; 12953 *) 12954 lt_prog_compiler_pic_CXX='+Z' 12955 ;; 12956 esac 12957 ;; 12958 *) 12959 ;; 12960 esac 12961 ;; 12962 interix*) 12963 # This is c89, which is MS Visual C++ (no shared libs) 12964 # Anyone wants to do a port? 12965 ;; 12966 irix5* | irix6* | nonstopux*) 12967 case $cc_basename in 12968 CC*) 12969 lt_prog_compiler_wl_CXX='-Wl,' 12970 lt_prog_compiler_static_CXX='-non_shared' 12971 # CC pic flag -KPIC is the default. 12972 ;; 12973 *) 12974 ;; 12975 esac 12976 ;; 12977 linux* | k*bsd*-gnu) 12978 case $cc_basename in 12979 KCC*) 12980 # KAI C++ Compiler 12981 lt_prog_compiler_wl_CXX='--backend -Wl,' 12982 lt_prog_compiler_pic_CXX='-fPIC' 12983 ;; 12984 icpc* | ecpc*) 12985 # Intel C++ 12986 lt_prog_compiler_wl_CXX='-Wl,' 12987 lt_prog_compiler_pic_CXX='-KPIC' 12988 lt_prog_compiler_static_CXX='-static' 12989 ;; 12990 pgCC* | pgcpp*) 12991 # Portland Group C++ compiler. 12992 lt_prog_compiler_wl_CXX='-Wl,' 12993 lt_prog_compiler_pic_CXX='-fpic' 12994 lt_prog_compiler_static_CXX='-Bstatic' 12995 ;; 12996 cxx*) 12997 # Compaq C++ 12998 # Make sure the PIC flag is empty. It appears that all Alpha 12999 # Linux and Compaq Tru64 Unix objects are PIC. 13000 lt_prog_compiler_pic_CXX= 13001 lt_prog_compiler_static_CXX='-non_shared' 13002 ;; 13003 *) 13004 case `$CC -V 2>&1 | sed 5q` in 13005 *Sun\ C*) 13006 # Sun C++ 5.9 13007 lt_prog_compiler_pic_CXX='-KPIC' 13008 lt_prog_compiler_static_CXX='-Bstatic' 13009 lt_prog_compiler_wl_CXX='-Qoption ld ' 13010 ;; 13011 esac 13012 ;; 13013 esac 13014 ;; 13015 lynxos*) 13016 ;; 13017 m88k*) 13018 ;; 13019 mvs*) 13020 case $cc_basename in 13021 cxx*) 13022 lt_prog_compiler_pic_CXX='-W c,exportall' 13023 ;; 13024 *) 13025 ;; 13026 esac 13027 ;; 13028 netbsd*) 13029 ;; 13030 osf3* | osf4* | osf5*) 13031 case $cc_basename in 13032 KCC*) 13033 lt_prog_compiler_wl_CXX='--backend -Wl,' 13034 ;; 13035 RCC*) 13036 # Rational C++ 2.4.1 13037 lt_prog_compiler_pic_CXX='-pic' 13038 ;; 13039 cxx*) 13040 # Digital/Compaq C++ 13041 lt_prog_compiler_wl_CXX='-Wl,' 13042 # Make sure the PIC flag is empty. It appears that all Alpha 13043 # Linux and Compaq Tru64 Unix objects are PIC. 13044 lt_prog_compiler_pic_CXX= 13045 lt_prog_compiler_static_CXX='-non_shared' 13046 ;; 13047 *) 13048 ;; 13049 esac 13050 ;; 13051 psos*) 13052 ;; 13053 solaris*) 13054 case $cc_basename in 13055 CC*) 13056 # Sun C++ 4.2, 5.x and Centerline C++ 13057 lt_prog_compiler_pic_CXX='-KPIC' 13058 lt_prog_compiler_static_CXX='-Bstatic' 13059 lt_prog_compiler_wl_CXX='-Qoption ld ' 13060 ;; 13061 gcx*) 13062 # Green Hills C++ Compiler 13063 lt_prog_compiler_pic_CXX='-PIC' 13064 ;; 13065 *) 13066 ;; 13067 esac 13068 ;; 13069 sunos4*) 13070 case $cc_basename in 13071 CC*) 13072 # Sun C++ 4.x 13073 lt_prog_compiler_pic_CXX='-pic' 13074 lt_prog_compiler_static_CXX='-Bstatic' 13075 ;; 13076 lcc*) 13077 # Lucid 13078 lt_prog_compiler_pic_CXX='-pic' 13079 ;; 13080 *) 13081 ;; 13082 esac 13083 ;; 13084 tandem*) 13085 case $cc_basename in 13086 NCC*) 13087 # NonStop-UX NCC 3.20 13088 lt_prog_compiler_pic_CXX='-KPIC' 13089 ;; 13090 *) 13091 ;; 13092 esac 13093 ;; 13094 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13095 case $cc_basename in 13096 CC*) 13097 lt_prog_compiler_wl_CXX='-Wl,' 13098 lt_prog_compiler_pic_CXX='-KPIC' 13099 lt_prog_compiler_static_CXX='-Bstatic' 13100 ;; 13101 esac 13102 ;; 13103 vxworks*) 13104 ;; 13105 *) 13106 lt_prog_compiler_can_build_shared_CXX=no 13107 ;; 13108 esac 13109 fi 13110 13111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 13112$as_echo "$lt_prog_compiler_pic_CXX" >&6; } 13113 13114# 13115# Check to make sure the PIC flag actually works. 13116# 13117if test -n "$lt_prog_compiler_pic_CXX"; then 13118 13119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 13120$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 13121if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : 13122 $as_echo_n "(cached) " >&6 13123else 13124 lt_cv_prog_compiler_pic_works_CXX=no 13125 ac_outfile=conftest.$ac_objext 13126 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13127 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 13128 # Insert the option either (1) after the last *FLAGS variable, or 13129 # (2) before a word containing "conftest.", or (3) at the end. 13130 # Note that $ac_compile itself does not contain backslashes and begins 13131 # with a dollar sign (not a hyphen), so the echo should work correctly. 13132 # The option is referenced via a variable to avoid confusing sed. 13133 lt_compile=`echo "$ac_compile" | $SED \ 13134 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13135 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13136 -e 's:$: $lt_compiler_flag:'` 13137 (eval echo "\"\$as_me:13137: $lt_compile\"" >&5) 13138 (eval "$lt_compile" 2>conftest.err) 13139 ac_status=$? 13140 cat conftest.err >&5 13141 echo "$as_me:13141: \$? = $ac_status" >&5 13142 if (exit $ac_status) && test -s "$ac_outfile"; then 13143 # The compiler can only warn and ignore the option if not recognized 13144 # So say no if there are warnings other than the usual output. 13145 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13146 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13147 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13148 lt_cv_prog_compiler_pic_works_CXX=yes 13149 fi 13150 fi 13151 $rm conftest* 13152 13153fi 13154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 13155$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 13156 13157if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 13158 case $lt_prog_compiler_pic_CXX in 13159 "" | " "*) ;; 13160 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 13161 esac 13162else 13163 lt_prog_compiler_pic_CXX= 13164 lt_prog_compiler_can_build_shared_CXX=no 13165fi 13166 13167fi 13168case $host_os in 13169 # For platforms which do not support PIC, -DPIC is meaningless: 13170 *djgpp*) 13171 lt_prog_compiler_pic_CXX= 13172 ;; 13173 *) 13174 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 13175 ;; 13176esac 13177 13178# 13179# Check to make sure the static flag actually works. 13180# 13181wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 13182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13183$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 13184if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : 13185 $as_echo_n "(cached) " >&6 13186else 13187 lt_cv_prog_compiler_static_works_CXX=no 13188 save_LDFLAGS="$LDFLAGS" 13189 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13190 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13191 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13192 # The linker can only warn and ignore the option if not recognized 13193 # So say no if there are warnings 13194 if test -s conftest.err; then 13195 # Append any errors to the config.log. 13196 cat conftest.err 1>&5 13197 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13198 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13199 if diff conftest.exp conftest.er2 >/dev/null; then 13200 lt_cv_prog_compiler_static_works_CXX=yes 13201 fi 13202 else 13203 lt_cv_prog_compiler_static_works_CXX=yes 13204 fi 13205 fi 13206 $rm -r conftest* 13207 LDFLAGS="$save_LDFLAGS" 13208 13209fi 13210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 13211$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 13212 13213if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 13214 : 13215else 13216 lt_prog_compiler_static_CXX= 13217fi 13218 13219 13220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13221$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13222if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : 13223 $as_echo_n "(cached) " >&6 13224else 13225 lt_cv_prog_compiler_c_o_CXX=no 13226 $rm -r conftest 2>/dev/null 13227 mkdir conftest 13228 cd conftest 13229 mkdir out 13230 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13231 13232 lt_compiler_flag="-o out/conftest2.$ac_objext" 13233 # Insert the option either (1) after the last *FLAGS variable, or 13234 # (2) before a word containing "conftest.", or (3) at the end. 13235 # Note that $ac_compile itself does not contain backslashes and begins 13236 # with a dollar sign (not a hyphen), so the echo should work correctly. 13237 lt_compile=`echo "$ac_compile" | $SED \ 13238 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13239 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13240 -e 's:$: $lt_compiler_flag:'` 13241 (eval echo "\"\$as_me:13241: $lt_compile\"" >&5) 13242 (eval "$lt_compile" 2>out/conftest.err) 13243 ac_status=$? 13244 cat out/conftest.err >&5 13245 echo "$as_me:13245: \$? = $ac_status" >&5 13246 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13247 then 13248 # The compiler can only warn and ignore the option if not recognized 13249 # So say no if there are warnings 13250 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13251 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13252 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13253 lt_cv_prog_compiler_c_o_CXX=yes 13254 fi 13255 fi 13256 chmod u+w . 2>&5 13257 $rm conftest* 13258 # SGI C++ compiler will create directory out/ii_files/ for 13259 # template instantiation 13260 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13261 $rm out/* && rmdir out 13262 cd .. 13263 rmdir conftest 13264 $rm conftest* 13265 13266fi 13267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13268$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 13269 13270 13271hard_links="nottested" 13272if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 13273 # do not overwrite the value of need_locks provided by the user 13274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 13275$as_echo_n "checking if we can lock with hard links... " >&6; } 13276 hard_links=yes 13277 $rm conftest* 13278 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13279 touch conftest.a 13280 ln conftest.a conftest.b 2>&5 || hard_links=no 13281 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 13283$as_echo "$hard_links" >&6; } 13284 if test "$hard_links" = no; then 13285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13286$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13287 need_locks=warn 13288 fi 13289else 13290 need_locks=no 13291fi 13292 13293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13294$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13295 13296 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13297 case $host_os in 13298 aix[4-9]*) 13299 # If we're using GNU nm, then we don't want the "-C" option. 13300 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13301 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13302 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' 13303 else 13304 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' 13305 fi 13306 ;; 13307 pw32*) 13308 export_symbols_cmds_CXX="$ltdll_cmds" 13309 ;; 13310 cygwin* | mingw*) 13311 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' 13312 ;; 13313 *) 13314 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13315 ;; 13316 esac 13317 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 13318 13319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 13320$as_echo "$ld_shlibs_CXX" >&6; } 13321test "$ld_shlibs_CXX" = no && can_build_shared=no 13322 13323# 13324# Do we need to explicitly link libc? 13325# 13326case "x$archive_cmds_need_lc_CXX" in 13327x|xyes) 13328 # Assume -lc should be added 13329 archive_cmds_need_lc_CXX=yes 13330 13331 if test "$enable_shared" = yes && test "$GCC" = yes; then 13332 case $archive_cmds_CXX in 13333 *'~'*) 13334 # FIXME: we may have to deal with multi-command sequences. 13335 ;; 13336 '$CC '*) 13337 # Test whether the compiler implicitly links with -lc since on some 13338 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13339 # to ld, don't add -lc before -lgcc. 13340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 13341$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13342 $rm conftest* 13343 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13344 13345 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13346 (eval $ac_compile) 2>&5 13347 ac_status=$? 13348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13349 test $ac_status = 0; } 2>conftest.err; then 13350 soname=conftest 13351 lib=conftest 13352 libobjs=conftest.$ac_objext 13353 deplibs= 13354 wl=$lt_prog_compiler_wl_CXX 13355 pic_flag=$lt_prog_compiler_pic_CXX 13356 compiler_flags=-v 13357 linker_flags=-v 13358 verstring= 13359 output_objdir=. 13360 libname=conftest 13361 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13362 allow_undefined_flag_CXX= 13363 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5 13364 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 13365 ac_status=$? 13366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13367 test $ac_status = 0; } 13368 then 13369 archive_cmds_need_lc_CXX=no 13370 else 13371 archive_cmds_need_lc_CXX=yes 13372 fi 13373 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13374 else 13375 cat conftest.err 1>&5 13376 fi 13377 $rm conftest* 13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5 13379$as_echo "$archive_cmds_need_lc_CXX" >&6; } 13380 ;; 13381 esac 13382 fi 13383 ;; 13384esac 13385 13386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 13387$as_echo_n "checking dynamic linker characteristics... " >&6; } 13388library_names_spec= 13389libname_spec='lib$name' 13390soname_spec= 13391shrext_cmds=".so" 13392postinstall_cmds= 13393postuninstall_cmds= 13394finish_cmds= 13395finish_eval= 13396shlibpath_var= 13397shlibpath_overrides_runpath=unknown 13398version_type=none 13399dynamic_linker="$host_os ld.so" 13400sys_lib_dlsearch_path_spec="/lib /usr/lib" 13401 13402need_lib_prefix=unknown 13403hardcode_into_libs=no 13404 13405# when you set need_version to no, make sure it does not cause -set_version 13406# flags to be left without arguments 13407need_version=unknown 13408 13409case $host_os in 13410aix3*) 13411 version_type=linux 13412 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13413 shlibpath_var=LIBPATH 13414 13415 # AIX 3 has no versioning support, so we append a major version to the name. 13416 soname_spec='${libname}${release}${shared_ext}$major' 13417 ;; 13418 13419aix[4-9]*) 13420 version_type=linux 13421 need_lib_prefix=no 13422 need_version=no 13423 hardcode_into_libs=yes 13424 if test "$host_cpu" = ia64; then 13425 # AIX 5 supports IA64 13426 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13427 shlibpath_var=LD_LIBRARY_PATH 13428 else 13429 # With GCC up to 2.95.x, collect2 would create an import file 13430 # for dependence libraries. The import file would start with 13431 # the line `#! .'. This would cause the generated library to 13432 # depend on `.', always an invalid library. This was fixed in 13433 # development snapshots of GCC prior to 3.0. 13434 case $host_os in 13435 aix4 | aix4.[01] | aix4.[01].*) 13436 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13437 echo ' yes ' 13438 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13439 : 13440 else 13441 can_build_shared=no 13442 fi 13443 ;; 13444 esac 13445 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13446 # soname into executable. Probably we can add versioning support to 13447 # collect2, so additional links can be useful in future. 13448 if test "$aix_use_runtimelinking" = yes; then 13449 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13450 # instead of lib<name>.a to let people know that these are not 13451 # typical AIX shared libraries. 13452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13453 else 13454 # We preserve .a as extension for shared libraries through AIX4.2 13455 # and later when we are not doing run time linking. 13456 library_names_spec='${libname}${release}.a $libname.a' 13457 soname_spec='${libname}${release}${shared_ext}$major' 13458 fi 13459 shlibpath_var=LIBPATH 13460 fi 13461 ;; 13462 13463amigaos*) 13464 library_names_spec='$libname.ixlibrary $libname.a' 13465 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13466 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' 13467 ;; 13468 13469beos*) 13470 library_names_spec='${libname}${shared_ext}' 13471 dynamic_linker="$host_os ld.so" 13472 shlibpath_var=LIBRARY_PATH 13473 ;; 13474 13475bsdi[45]*) 13476 version_type=linux 13477 need_version=no 13478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13479 soname_spec='${libname}${release}${shared_ext}$major' 13480 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13481 shlibpath_var=LD_LIBRARY_PATH 13482 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13483 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13484 # the default ld.so.conf also contains /usr/contrib/lib and 13485 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13486 # libtool to hard-code these into programs 13487 ;; 13488 13489cygwin* | mingw* | pw32*) 13490 version_type=windows 13491 shrext_cmds=".dll" 13492 need_version=no 13493 need_lib_prefix=no 13494 13495 case $GCC,$host_os in 13496 yes,cygwin* | yes,mingw* | yes,pw32*) 13497 library_names_spec='$libname.dll.a' 13498 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13499 postinstall_cmds='base_file=`basename \${file}`~ 13500 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13501 dldir=$destdir/`dirname \$dlpath`~ 13502 test -d \$dldir || mkdir -p \$dldir~ 13503 $install_prog $dir/$dlname \$dldir/$dlname~ 13504 chmod a+x \$dldir/$dlname' 13505 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13506 dlpath=$dir/\$dldll~ 13507 $rm \$dlpath' 13508 shlibpath_overrides_runpath=yes 13509 13510 case $host_os in 13511 cygwin*) 13512 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13513 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13514 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13515 ;; 13516 mingw*) 13517 # MinGW DLLs use traditional 'lib' prefix 13518 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13519 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13520 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13521 # It is most probably a Windows format PATH printed by 13522 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13523 # path with ; separators, and with drive letters. We can handle the 13524 # drive letters (cygwin fileutils understands them), so leave them, 13525 # especially as we might pass files found there to a mingw objdump, 13526 # which wouldn't understand a cygwinified path. Ahh. 13527 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13528 else 13529 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13530 fi 13531 ;; 13532 pw32*) 13533 # pw32 DLLs use 'pw' prefix rather than 'lib' 13534 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13535 ;; 13536 esac 13537 ;; 13538 13539 *) 13540 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13541 ;; 13542 esac 13543 dynamic_linker='Win32 ld.exe' 13544 # FIXME: first we should search . and the directory the executable is in 13545 shlibpath_var=PATH 13546 ;; 13547 13548darwin* | rhapsody*) 13549 dynamic_linker="$host_os dyld" 13550 version_type=darwin 13551 need_lib_prefix=no 13552 need_version=no 13553 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13554 soname_spec='${libname}${release}${major}$shared_ext' 13555 shlibpath_overrides_runpath=yes 13556 shlibpath_var=DYLD_LIBRARY_PATH 13557 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13558 13559 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13560 ;; 13561 13562dgux*) 13563 version_type=linux 13564 need_lib_prefix=no 13565 need_version=no 13566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13567 soname_spec='${libname}${release}${shared_ext}$major' 13568 shlibpath_var=LD_LIBRARY_PATH 13569 ;; 13570 13571freebsd1*) 13572 dynamic_linker=no 13573 ;; 13574 13575freebsd* | dragonfly*) 13576 # DragonFly does not have aout. When/if they implement a new 13577 # versioning mechanism, adjust this. 13578 if test -x /usr/bin/objformat; then 13579 objformat=`/usr/bin/objformat` 13580 else 13581 case $host_os in 13582 freebsd[123]*) objformat=aout ;; 13583 *) objformat=elf ;; 13584 esac 13585 fi 13586 version_type=freebsd-$objformat 13587 case $version_type in 13588 freebsd-elf*) 13589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13590 need_version=no 13591 need_lib_prefix=no 13592 ;; 13593 freebsd-*) 13594 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13595 need_version=yes 13596 ;; 13597 esac 13598 shlibpath_var=LD_LIBRARY_PATH 13599 case $host_os in 13600 freebsd2*) 13601 shlibpath_overrides_runpath=yes 13602 ;; 13603 freebsd3.[01]* | freebsdelf3.[01]*) 13604 shlibpath_overrides_runpath=yes 13605 hardcode_into_libs=yes 13606 ;; 13607 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13608 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13609 shlibpath_overrides_runpath=no 13610 hardcode_into_libs=yes 13611 ;; 13612 *) # from 4.6 on, and DragonFly 13613 shlibpath_overrides_runpath=yes 13614 hardcode_into_libs=yes 13615 ;; 13616 esac 13617 ;; 13618 13619gnu*) 13620 version_type=linux 13621 need_lib_prefix=no 13622 need_version=no 13623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13624 soname_spec='${libname}${release}${shared_ext}$major' 13625 shlibpath_var=LD_LIBRARY_PATH 13626 hardcode_into_libs=yes 13627 ;; 13628 13629hpux9* | hpux10* | hpux11*) 13630 # Give a soname corresponding to the major version so that dld.sl refuses to 13631 # link against other versions. 13632 version_type=sunos 13633 need_lib_prefix=no 13634 need_version=no 13635 case $host_cpu in 13636 ia64*) 13637 shrext_cmds='.so' 13638 hardcode_into_libs=yes 13639 dynamic_linker="$host_os dld.so" 13640 shlibpath_var=LD_LIBRARY_PATH 13641 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13643 soname_spec='${libname}${release}${shared_ext}$major' 13644 if test "X$HPUX_IA64_MODE" = X32; then 13645 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13646 else 13647 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13648 fi 13649 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13650 ;; 13651 hppa*64*) 13652 shrext_cmds='.sl' 13653 hardcode_into_libs=yes 13654 dynamic_linker="$host_os dld.sl" 13655 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13656 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13658 soname_spec='${libname}${release}${shared_ext}$major' 13659 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13660 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13661 ;; 13662 *) 13663 shrext_cmds='.sl' 13664 dynamic_linker="$host_os dld.sl" 13665 shlibpath_var=SHLIB_PATH 13666 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13668 soname_spec='${libname}${release}${shared_ext}$major' 13669 ;; 13670 esac 13671 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13672 postinstall_cmds='chmod 555 $lib' 13673 ;; 13674 13675interix[3-9]*) 13676 version_type=linux 13677 need_lib_prefix=no 13678 need_version=no 13679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13680 soname_spec='${libname}${release}${shared_ext}$major' 13681 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13682 shlibpath_var=LD_LIBRARY_PATH 13683 shlibpath_overrides_runpath=no 13684 hardcode_into_libs=yes 13685 ;; 13686 13687irix5* | irix6* | nonstopux*) 13688 case $host_os in 13689 nonstopux*) version_type=nonstopux ;; 13690 *) 13691 if test "$lt_cv_prog_gnu_ld" = yes; then 13692 version_type=linux 13693 else 13694 version_type=irix 13695 fi ;; 13696 esac 13697 need_lib_prefix=no 13698 need_version=no 13699 soname_spec='${libname}${release}${shared_ext}$major' 13700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13701 case $host_os in 13702 irix5* | nonstopux*) 13703 libsuff= shlibsuff= 13704 ;; 13705 *) 13706 case $LD in # libtool.m4 will add one of these switches to LD 13707 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13708 libsuff= shlibsuff= libmagic=32-bit;; 13709 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13710 libsuff=32 shlibsuff=N32 libmagic=N32;; 13711 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13712 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13713 *) libsuff= shlibsuff= libmagic=never-match;; 13714 esac 13715 ;; 13716 esac 13717 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13718 shlibpath_overrides_runpath=no 13719 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13720 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13721 hardcode_into_libs=yes 13722 ;; 13723 13724# No shared lib support for Linux oldld, aout, or coff. 13725linux*oldld* | linux*aout* | linux*coff*) 13726 dynamic_linker=no 13727 ;; 13728 13729# This must be Linux ELF. 13730linux* | k*bsd*-gnu) 13731 version_type=linux 13732 need_lib_prefix=no 13733 need_version=no 13734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13735 soname_spec='${libname}${release}${shared_ext}$major' 13736 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13737 shlibpath_var=LD_LIBRARY_PATH 13738 shlibpath_overrides_runpath=no 13739 # This implies no fast_install, which is unacceptable. 13740 # Some rework will be needed to allow for fast_install 13741 # before this can be enabled. 13742 hardcode_into_libs=yes 13743 13744 # Append ld.so.conf contents to the search path 13745 if test -f /etc/ld.so.conf; then 13746 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' ' '` 13747 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13748 fi 13749 13750 # We used to test for /lib/ld.so.1 and disable shared libraries on 13751 # powerpc, because MkLinux only supported shared libraries with the 13752 # GNU dynamic linker. Since this was broken with cross compilers, 13753 # most powerpc-linux boxes support dynamic linking these days and 13754 # people can always --disable-shared, the test was removed, and we 13755 # assume the GNU/Linux dynamic linker is in use. 13756 dynamic_linker='GNU/Linux ld.so' 13757 ;; 13758 13759netbsd*) 13760 version_type=sunos 13761 need_lib_prefix=no 13762 need_version=no 13763 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13765 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13766 dynamic_linker='NetBSD (a.out) ld.so' 13767 else 13768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13769 soname_spec='${libname}${release}${shared_ext}$major' 13770 dynamic_linker='NetBSD ld.elf_so' 13771 fi 13772 shlibpath_var=LD_LIBRARY_PATH 13773 shlibpath_overrides_runpath=yes 13774 hardcode_into_libs=yes 13775 ;; 13776 13777newsos6) 13778 version_type=linux 13779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13780 shlibpath_var=LD_LIBRARY_PATH 13781 shlibpath_overrides_runpath=yes 13782 ;; 13783 13784nto-qnx*) 13785 version_type=linux 13786 need_lib_prefix=no 13787 need_version=no 13788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13789 soname_spec='${libname}${release}${shared_ext}$major' 13790 shlibpath_var=LD_LIBRARY_PATH 13791 shlibpath_overrides_runpath=yes 13792 ;; 13793 13794openbsd*) 13795 version_type=sunos 13796 sys_lib_dlsearch_path_spec="/usr/lib" 13797 need_lib_prefix=no 13798 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13799 case $host_os in 13800 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13801 *) need_version=no ;; 13802 esac 13803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13804 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13805 shlibpath_var=LD_LIBRARY_PATH 13806 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13807 case $host_os in 13808 openbsd2.[89] | openbsd2.[89].*) 13809 shlibpath_overrides_runpath=no 13810 ;; 13811 *) 13812 shlibpath_overrides_runpath=yes 13813 ;; 13814 esac 13815 else 13816 shlibpath_overrides_runpath=yes 13817 fi 13818 ;; 13819 13820os2*) 13821 libname_spec='$name' 13822 shrext_cmds=".dll" 13823 need_lib_prefix=no 13824 library_names_spec='$libname${shared_ext} $libname.a' 13825 dynamic_linker='OS/2 ld.exe' 13826 shlibpath_var=LIBPATH 13827 ;; 13828 13829osf3* | osf4* | osf5*) 13830 version_type=osf 13831 need_lib_prefix=no 13832 need_version=no 13833 soname_spec='${libname}${release}${shared_ext}$major' 13834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13835 shlibpath_var=LD_LIBRARY_PATH 13836 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13837 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13838 ;; 13839 13840rdos*) 13841 dynamic_linker=no 13842 ;; 13843 13844solaris*) 13845 version_type=linux 13846 need_lib_prefix=no 13847 need_version=no 13848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13849 soname_spec='${libname}${release}${shared_ext}$major' 13850 shlibpath_var=LD_LIBRARY_PATH 13851 shlibpath_overrides_runpath=yes 13852 hardcode_into_libs=yes 13853 # ldd complains unless libraries are executable 13854 postinstall_cmds='chmod +x $lib' 13855 ;; 13856 13857sunos4*) 13858 version_type=sunos 13859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13860 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13861 shlibpath_var=LD_LIBRARY_PATH 13862 shlibpath_overrides_runpath=yes 13863 if test "$with_gnu_ld" = yes; then 13864 need_lib_prefix=no 13865 fi 13866 need_version=yes 13867 ;; 13868 13869sysv4 | sysv4.3*) 13870 version_type=linux 13871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13872 soname_spec='${libname}${release}${shared_ext}$major' 13873 shlibpath_var=LD_LIBRARY_PATH 13874 case $host_vendor in 13875 sni) 13876 shlibpath_overrides_runpath=no 13877 need_lib_prefix=no 13878 export_dynamic_flag_spec='${wl}-Blargedynsym' 13879 runpath_var=LD_RUN_PATH 13880 ;; 13881 siemens) 13882 need_lib_prefix=no 13883 ;; 13884 motorola) 13885 need_lib_prefix=no 13886 need_version=no 13887 shlibpath_overrides_runpath=no 13888 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13889 ;; 13890 esac 13891 ;; 13892 13893sysv4*MP*) 13894 if test -d /usr/nec ;then 13895 version_type=linux 13896 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13897 soname_spec='$libname${shared_ext}.$major' 13898 shlibpath_var=LD_LIBRARY_PATH 13899 fi 13900 ;; 13901 13902sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13903 version_type=freebsd-elf 13904 need_lib_prefix=no 13905 need_version=no 13906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13907 soname_spec='${libname}${release}${shared_ext}$major' 13908 shlibpath_var=LD_LIBRARY_PATH 13909 hardcode_into_libs=yes 13910 if test "$with_gnu_ld" = yes; then 13911 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13912 shlibpath_overrides_runpath=no 13913 else 13914 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13915 shlibpath_overrides_runpath=yes 13916 case $host_os in 13917 sco3.2v5*) 13918 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13919 ;; 13920 esac 13921 fi 13922 sys_lib_dlsearch_path_spec='/usr/lib' 13923 ;; 13924 13925uts4*) 13926 version_type=linux 13927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13928 soname_spec='${libname}${release}${shared_ext}$major' 13929 shlibpath_var=LD_LIBRARY_PATH 13930 ;; 13931 13932*) 13933 dynamic_linker=no 13934 ;; 13935esac 13936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 13937$as_echo "$dynamic_linker" >&6; } 13938test "$dynamic_linker" = no && can_build_shared=no 13939 13940if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then : 13941 $as_echo_n "(cached) " >&6 13942else 13943 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 13944fi 13945 13946sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 13947if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then : 13948 $as_echo_n "(cached) " >&6 13949else 13950 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 13951fi 13952 13953sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 13954 13955variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13956if test "$GCC" = yes; then 13957 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13958fi 13959 13960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13961$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13962hardcode_action_CXX= 13963if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13964 test -n "$runpath_var_CXX" || \ 13965 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13966 13967 # We can hardcode non-existant directories. 13968 if test "$hardcode_direct_CXX" != no && 13969 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13970 # have to relink, otherwise we might link with an installed library 13971 # when we should be linking with a yet-to-be-installed one 13972 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13973 test "$hardcode_minus_L_CXX" != no; then 13974 # Linking always hardcodes the temporary library directory. 13975 hardcode_action_CXX=relink 13976 else 13977 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13978 hardcode_action_CXX=immediate 13979 fi 13980else 13981 # We cannot hardcode anything, or else we can only hardcode existing 13982 # directories. 13983 hardcode_action_CXX=unsupported 13984fi 13985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 13986$as_echo "$hardcode_action_CXX" >&6; } 13987 13988if test "$hardcode_action_CXX" = relink; then 13989 # Fast installation is not supported 13990 enable_fast_install=no 13991elif test "$shlibpath_overrides_runpath" = yes || 13992 test "$enable_shared" = no; then 13993 # Fast installation is not necessary 13994 enable_fast_install=needless 13995fi 13996 13997 13998# The else clause should only fire when bootstrapping the 13999# libtool distribution, otherwise you forgot to ship ltmain.sh 14000# with your package, and you will get complaints that there are 14001# no rules to generate ltmain.sh. 14002if test -f "$ltmain"; then 14003 # See if we are running on zsh, and set the options which allow our commands through 14004 # without removal of \ escapes. 14005 if test -n "${ZSH_VERSION+set}" ; then 14006 setopt NO_GLOB_SUBST 14007 fi 14008 # Now quote all the things that may contain metacharacters while being 14009 # careful not to overquote the AC_SUBSTed values. We take copies of the 14010 # variables and quote the copies for generation of the libtool script. 14011 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 14012 SED SHELL STRIP \ 14013 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 14014 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 14015 deplibs_check_method reload_flag reload_cmds need_locks \ 14016 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 14017 lt_cv_sys_global_symbol_to_c_name_address \ 14018 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 14019 old_postinstall_cmds old_postuninstall_cmds \ 14020 compiler_CXX \ 14021 CC_CXX \ 14022 LD_CXX \ 14023 lt_prog_compiler_wl_CXX \ 14024 lt_prog_compiler_pic_CXX \ 14025 lt_prog_compiler_static_CXX \ 14026 lt_prog_compiler_no_builtin_flag_CXX \ 14027 export_dynamic_flag_spec_CXX \ 14028 thread_safe_flag_spec_CXX \ 14029 whole_archive_flag_spec_CXX \ 14030 enable_shared_with_static_runtimes_CXX \ 14031 old_archive_cmds_CXX \ 14032 old_archive_from_new_cmds_CXX \ 14033 predep_objects_CXX \ 14034 postdep_objects_CXX \ 14035 predeps_CXX \ 14036 postdeps_CXX \ 14037 compiler_lib_search_path_CXX \ 14038 compiler_lib_search_dirs_CXX \ 14039 archive_cmds_CXX \ 14040 archive_expsym_cmds_CXX \ 14041 postinstall_cmds_CXX \ 14042 postuninstall_cmds_CXX \ 14043 old_archive_from_expsyms_cmds_CXX \ 14044 allow_undefined_flag_CXX \ 14045 no_undefined_flag_CXX \ 14046 export_symbols_cmds_CXX \ 14047 hardcode_libdir_flag_spec_CXX \ 14048 hardcode_libdir_flag_spec_ld_CXX \ 14049 hardcode_libdir_separator_CXX \ 14050 hardcode_automatic_CXX \ 14051 module_cmds_CXX \ 14052 module_expsym_cmds_CXX \ 14053 lt_cv_prog_compiler_c_o_CXX \ 14054 fix_srcfile_path_CXX \ 14055 exclude_expsyms_CXX \ 14056 include_expsyms_CXX; do 14057 14058 case $var in 14059 old_archive_cmds_CXX | \ 14060 old_archive_from_new_cmds_CXX | \ 14061 archive_cmds_CXX | \ 14062 archive_expsym_cmds_CXX | \ 14063 module_cmds_CXX | \ 14064 module_expsym_cmds_CXX | \ 14065 old_archive_from_expsyms_cmds_CXX | \ 14066 export_symbols_cmds_CXX | \ 14067 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 14068 postinstall_cmds | postuninstall_cmds | \ 14069 old_postinstall_cmds | old_postuninstall_cmds | \ 14070 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 14071 # Double-quote double-evaled strings. 14072 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 14073 ;; 14074 *) 14075 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 14076 ;; 14077 esac 14078 done 14079 14080 case $lt_echo in 14081 *'\$0 --fallback-echo"') 14082 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 14083 ;; 14084 esac 14085 14086cfgfile="$ofile" 14087 14088 cat <<__EOF__ >> "$cfgfile" 14089# ### BEGIN LIBTOOL TAG CONFIG: $tagname 14090 14091# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14092 14093# Shell to use when invoking shell scripts. 14094SHELL=$lt_SHELL 14095 14096# Whether or not to build shared libraries. 14097build_libtool_libs=$enable_shared 14098 14099# Whether or not to build static libraries. 14100build_old_libs=$enable_static 14101 14102# Whether or not to add -lc for building shared libraries. 14103build_libtool_need_lc=$archive_cmds_need_lc_CXX 14104 14105# Whether or not to disallow shared libs when runtime libs are static 14106allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 14107 14108# Whether or not to optimize for fast installation. 14109fast_install=$enable_fast_install 14110 14111# The host system. 14112host_alias=$host_alias 14113host=$host 14114host_os=$host_os 14115 14116# The build system. 14117build_alias=$build_alias 14118build=$build 14119build_os=$build_os 14120 14121# An echo program that does not interpret backslashes. 14122echo=$lt_echo 14123 14124# The archiver. 14125AR=$lt_AR 14126AR_FLAGS=$lt_AR_FLAGS 14127 14128# A C compiler. 14129LTCC=$lt_LTCC 14130 14131# LTCC compiler flags. 14132LTCFLAGS=$lt_LTCFLAGS 14133 14134# A language-specific compiler. 14135CC=$lt_compiler_CXX 14136 14137# Is the compiler the GNU C compiler? 14138with_gcc=$GCC_CXX 14139 14140# An ERE matcher. 14141EGREP=$lt_EGREP 14142 14143# The linker used to build libraries. 14144LD=$lt_LD_CXX 14145 14146# Whether we need hard or soft links. 14147LN_S=$lt_LN_S 14148 14149# A BSD-compatible nm program. 14150NM=$lt_NM 14151 14152# A symbol stripping program 14153STRIP=$lt_STRIP 14154 14155# Used to examine libraries when file_magic_cmd begins "file" 14156MAGIC_CMD=$MAGIC_CMD 14157 14158# Used on cygwin: DLL creation program. 14159DLLTOOL="$DLLTOOL" 14160 14161# Used on cygwin: object dumper. 14162OBJDUMP="$OBJDUMP" 14163 14164# Used on cygwin: assembler. 14165AS="$AS" 14166 14167# The name of the directory that contains temporary libtool files. 14168objdir=$objdir 14169 14170# How to create reloadable object files. 14171reload_flag=$lt_reload_flag 14172reload_cmds=$lt_reload_cmds 14173 14174# How to pass a linker flag through the compiler. 14175wl=$lt_lt_prog_compiler_wl_CXX 14176 14177# Object file suffix (normally "o"). 14178objext="$ac_objext" 14179 14180# Old archive suffix (normally "a"). 14181libext="$libext" 14182 14183# Shared library suffix (normally ".so"). 14184shrext_cmds='$shrext_cmds' 14185 14186# Executable file suffix (normally ""). 14187exeext="$exeext" 14188 14189# Additional compiler flags for building library objects. 14190pic_flag=$lt_lt_prog_compiler_pic_CXX 14191pic_mode=$pic_mode 14192 14193# What is the maximum length of a command? 14194max_cmd_len=$lt_cv_sys_max_cmd_len 14195 14196# Does compiler simultaneously support -c and -o options? 14197compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 14198 14199# Must we lock files when doing compilation? 14200need_locks=$lt_need_locks 14201 14202# Do we need the lib prefix for modules? 14203need_lib_prefix=$need_lib_prefix 14204 14205# Do we need a version for libraries? 14206need_version=$need_version 14207 14208# Whether dlopen is supported. 14209dlopen_support=$enable_dlopen 14210 14211# Whether dlopen of programs is supported. 14212dlopen_self=$enable_dlopen_self 14213 14214# Whether dlopen of statically linked programs is supported. 14215dlopen_self_static=$enable_dlopen_self_static 14216 14217# Compiler flag to prevent dynamic linking. 14218link_static_flag=$lt_lt_prog_compiler_static_CXX 14219 14220# Compiler flag to turn off builtin functions. 14221no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 14222 14223# Compiler flag to allow reflexive dlopens. 14224export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 14225 14226# Compiler flag to generate shared objects directly from archives. 14227whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 14228 14229# Compiler flag to generate thread-safe objects. 14230thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 14231 14232# Library versioning type. 14233version_type=$version_type 14234 14235# Format of library name prefix. 14236libname_spec=$lt_libname_spec 14237 14238# List of archive names. First name is the real one, the rest are links. 14239# The last name is the one that the linker finds with -lNAME. 14240library_names_spec=$lt_library_names_spec 14241 14242# The coded name of the library, if different from the real name. 14243soname_spec=$lt_soname_spec 14244 14245# Commands used to build and install an old-style archive. 14246RANLIB=$lt_RANLIB 14247old_archive_cmds=$lt_old_archive_cmds_CXX 14248old_postinstall_cmds=$lt_old_postinstall_cmds 14249old_postuninstall_cmds=$lt_old_postuninstall_cmds 14250 14251# Create an old-style archive from a shared archive. 14252old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 14253 14254# Create a temporary old-style archive to link instead of a shared archive. 14255old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 14256 14257# Commands used to build and install a shared archive. 14258archive_cmds=$lt_archive_cmds_CXX 14259archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 14260postinstall_cmds=$lt_postinstall_cmds 14261postuninstall_cmds=$lt_postuninstall_cmds 14262 14263# Commands used to build a loadable module (assumed same as above if empty) 14264module_cmds=$lt_module_cmds_CXX 14265module_expsym_cmds=$lt_module_expsym_cmds_CXX 14266 14267# Commands to strip libraries. 14268old_striplib=$lt_old_striplib 14269striplib=$lt_striplib 14270 14271# Dependencies to place before the objects being linked to create a 14272# shared library. 14273predep_objects=$lt_predep_objects_CXX 14274 14275# Dependencies to place after the objects being linked to create a 14276# shared library. 14277postdep_objects=$lt_postdep_objects_CXX 14278 14279# Dependencies to place before the objects being linked to create a 14280# shared library. 14281predeps=$lt_predeps_CXX 14282 14283# Dependencies to place after the objects being linked to create a 14284# shared library. 14285postdeps=$lt_postdeps_CXX 14286 14287# The directories searched by this compiler when creating a shared 14288# library 14289compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 14290 14291# The library search path used internally by the compiler when linking 14292# a shared library. 14293compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 14294 14295# Method to check whether dependent libraries are shared objects. 14296deplibs_check_method=$lt_deplibs_check_method 14297 14298# Command to use when deplibs_check_method == file_magic. 14299file_magic_cmd=$lt_file_magic_cmd 14300 14301# Flag that allows shared libraries with undefined symbols to be built. 14302allow_undefined_flag=$lt_allow_undefined_flag_CXX 14303 14304# Flag that forces no undefined symbols. 14305no_undefined_flag=$lt_no_undefined_flag_CXX 14306 14307# Commands used to finish a libtool library installation in a directory. 14308finish_cmds=$lt_finish_cmds 14309 14310# Same as above, but a single script fragment to be evaled but not shown. 14311finish_eval=$lt_finish_eval 14312 14313# Take the output of nm and produce a listing of raw symbols and C names. 14314global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14315 14316# Transform the output of nm in a proper C declaration 14317global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14318 14319# Transform the output of nm in a C name address pair 14320global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14321 14322# This is the shared library runtime path variable. 14323runpath_var=$runpath_var 14324 14325# This is the shared library path variable. 14326shlibpath_var=$shlibpath_var 14327 14328# Is shlibpath searched before the hard-coded library search path? 14329shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14330 14331# How to hardcode a shared library path into an executable. 14332hardcode_action=$hardcode_action_CXX 14333 14334# Whether we should hardcode library paths into libraries. 14335hardcode_into_libs=$hardcode_into_libs 14336 14337# Flag to hardcode \$libdir into a binary during linking. 14338# This must work even if \$libdir does not exist. 14339hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 14340 14341# If ld is used when linking, flag to hardcode \$libdir into 14342# a binary during linking. This must work even if \$libdir does 14343# not exist. 14344hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 14345 14346# Whether we need a single -rpath flag with a separated argument. 14347hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 14348 14349# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14350# resulting binary. 14351hardcode_direct=$hardcode_direct_CXX 14352 14353# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14354# resulting binary. 14355hardcode_minus_L=$hardcode_minus_L_CXX 14356 14357# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14358# the resulting binary. 14359hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 14360 14361# Set to yes if building a shared library automatically hardcodes DIR into the library 14362# and all subsequent libraries and executables linked against it. 14363hardcode_automatic=$hardcode_automatic_CXX 14364 14365# Variables whose values should be saved in libtool wrapper scripts and 14366# restored at relink time. 14367variables_saved_for_relink="$variables_saved_for_relink" 14368 14369# Whether libtool must link a program against all its dependency libraries. 14370link_all_deplibs=$link_all_deplibs_CXX 14371 14372# Compile-time system search path for libraries 14373sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14374 14375# Run-time system search path for libraries 14376sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14377 14378# Fix the shell variable \$srcfile for the compiler. 14379fix_srcfile_path=$lt_fix_srcfile_path 14380 14381# Set to yes if exported symbols are required. 14382always_export_symbols=$always_export_symbols_CXX 14383 14384# The commands to list exported symbols. 14385export_symbols_cmds=$lt_export_symbols_cmds_CXX 14386 14387# The commands to extract the exported symbol list from a shared archive. 14388extract_expsyms_cmds=$lt_extract_expsyms_cmds 14389 14390# Symbols that should not be listed in the preloaded symbols. 14391exclude_expsyms=$lt_exclude_expsyms_CXX 14392 14393# Symbols that must always be exported. 14394include_expsyms=$lt_include_expsyms_CXX 14395 14396# ### END LIBTOOL TAG CONFIG: $tagname 14397 14398__EOF__ 14399 14400 14401else 14402 # If there is no Makefile yet, we rely on a make rule to execute 14403 # `config.status --recheck' to rerun these tests and create the 14404 # libtool script then. 14405 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14406 if test -f "$ltmain_in"; then 14407 test -f Makefile && make "$ltmain" 14408 fi 14409fi 14410 14411 14412ac_ext=cpp 14413ac_cpp='$CXXCPP $CPPFLAGS' 14414ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14415ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14416ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14417 14418CC=$lt_save_CC 14419LDCXX=$LD 14420LD=$lt_save_LD 14421GCC=$lt_save_GCC 14422with_gnu_ldcxx=$with_gnu_ld 14423with_gnu_ld=$lt_save_with_gnu_ld 14424lt_cv_path_LDCXX=$lt_cv_path_LD 14425lt_cv_path_LD=$lt_save_path_LD 14426lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14427lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14428 14429 else 14430 tagname="" 14431 fi 14432 ;; 14433 14434 F77) 14435 if test -n "$F77" && test "X$F77" != "Xno"; then 14436 14437ac_ext=f 14438ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14439ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14440ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14441 14442 14443archive_cmds_need_lc_F77=no 14444allow_undefined_flag_F77= 14445always_export_symbols_F77=no 14446archive_expsym_cmds_F77= 14447export_dynamic_flag_spec_F77= 14448hardcode_direct_F77=no 14449hardcode_libdir_flag_spec_F77= 14450hardcode_libdir_flag_spec_ld_F77= 14451hardcode_libdir_separator_F77= 14452hardcode_minus_L_F77=no 14453hardcode_automatic_F77=no 14454module_cmds_F77= 14455module_expsym_cmds_F77= 14456link_all_deplibs_F77=unknown 14457old_archive_cmds_F77=$old_archive_cmds 14458no_undefined_flag_F77= 14459whole_archive_flag_spec_F77= 14460enable_shared_with_static_runtimes_F77=no 14461 14462# Source file extension for f77 test sources. 14463ac_ext=f 14464 14465# Object file extension for compiled f77 test sources. 14466objext=o 14467objext_F77=$objext 14468 14469# Code to be used in simple compile tests 14470lt_simple_compile_test_code="\ 14471 subroutine t 14472 return 14473 end 14474" 14475 14476# Code to be used in simple link tests 14477lt_simple_link_test_code="\ 14478 program t 14479 end 14480" 14481 14482# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14483 14484# If no C compiler was specified, use CC. 14485LTCC=${LTCC-"$CC"} 14486 14487# If no C compiler flags were specified, use CFLAGS. 14488LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14489 14490# Allow CC to be a program name with arguments. 14491compiler=$CC 14492 14493 14494# save warnings/boilerplate of simple test code 14495ac_outfile=conftest.$ac_objext 14496echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14497eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14498_lt_compiler_boilerplate=`cat conftest.err` 14499$rm conftest* 14500 14501ac_outfile=conftest.$ac_objext 14502echo "$lt_simple_link_test_code" >conftest.$ac_ext 14503eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14504_lt_linker_boilerplate=`cat conftest.err` 14505$rm -r conftest* 14506 14507 14508# Allow CC to be a program name with arguments. 14509lt_save_CC="$CC" 14510CC=${F77-"f77"} 14511compiler=$CC 14512compiler_F77=$CC 14513for cc_temp in $compiler""; do 14514 case $cc_temp in 14515 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14516 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14517 \-*) ;; 14518 *) break;; 14519 esac 14520done 14521cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14522 14523 14524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 14525$as_echo_n "checking if libtool supports shared libraries... " >&6; } 14526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 14527$as_echo "$can_build_shared" >&6; } 14528 14529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 14530$as_echo_n "checking whether to build shared libraries... " >&6; } 14531test "$can_build_shared" = "no" && enable_shared=no 14532 14533# On AIX, shared libraries and static libraries use the same namespace, and 14534# are all built from PIC. 14535case $host_os in 14536aix3*) 14537 test "$enable_shared" = yes && enable_static=no 14538 if test -n "$RANLIB"; then 14539 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14540 postinstall_cmds='$RANLIB $lib' 14541 fi 14542 ;; 14543aix[4-9]*) 14544 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14545 test "$enable_shared" = yes && enable_static=no 14546 fi 14547 ;; 14548esac 14549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 14550$as_echo "$enable_shared" >&6; } 14551 14552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 14553$as_echo_n "checking whether to build static libraries... " >&6; } 14554# Make sure either enable_shared or enable_static is yes. 14555test "$enable_shared" = yes || enable_static=yes 14556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 14557$as_echo "$enable_static" >&6; } 14558 14559GCC_F77="$G77" 14560LD_F77="$LD" 14561 14562lt_prog_compiler_wl_F77= 14563lt_prog_compiler_pic_F77= 14564lt_prog_compiler_static_F77= 14565 14566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14567$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14568 14569 if test "$GCC" = yes; then 14570 lt_prog_compiler_wl_F77='-Wl,' 14571 lt_prog_compiler_static_F77='-static' 14572 14573 case $host_os in 14574 aix*) 14575 # All AIX code is PIC. 14576 if test "$host_cpu" = ia64; then 14577 # AIX 5 now supports IA64 processor 14578 lt_prog_compiler_static_F77='-Bstatic' 14579 fi 14580 ;; 14581 14582 amigaos*) 14583 # FIXME: we need at least 68020 code to build shared libraries, but 14584 # adding the `-m68020' flag to GCC prevents building anything better, 14585 # like `-m68040'. 14586 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14587 ;; 14588 14589 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14590 # PIC is the default for these OSes. 14591 ;; 14592 14593 mingw* | cygwin* | pw32* | os2*) 14594 # This hack is so that the source file can tell whether it is being 14595 # built for inclusion in a dll (and should export symbols for example). 14596 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14597 # (--disable-auto-import) libraries 14598 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14599 ;; 14600 14601 darwin* | rhapsody*) 14602 # PIC is the default on this platform 14603 # Common symbols not allowed in MH_DYLIB files 14604 lt_prog_compiler_pic_F77='-fno-common' 14605 ;; 14606 14607 interix[3-9]*) 14608 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14609 # Instead, we relocate shared libraries at runtime. 14610 ;; 14611 14612 msdosdjgpp*) 14613 # Just because we use GCC doesn't mean we suddenly get shared libraries 14614 # on systems that don't support them. 14615 lt_prog_compiler_can_build_shared_F77=no 14616 enable_shared=no 14617 ;; 14618 14619 sysv4*MP*) 14620 if test -d /usr/nec; then 14621 lt_prog_compiler_pic_F77=-Kconform_pic 14622 fi 14623 ;; 14624 14625 hpux*) 14626 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14627 # not for PA HP-UX. 14628 case $host_cpu in 14629 hppa*64*|ia64*) 14630 # +Z the default 14631 ;; 14632 *) 14633 lt_prog_compiler_pic_F77='-fPIC' 14634 ;; 14635 esac 14636 ;; 14637 14638 *) 14639 lt_prog_compiler_pic_F77='-fPIC' 14640 ;; 14641 esac 14642 else 14643 # PORTME Check for flag to pass linker flags through the system compiler. 14644 case $host_os in 14645 aix*) 14646 lt_prog_compiler_wl_F77='-Wl,' 14647 if test "$host_cpu" = ia64; then 14648 # AIX 5 now supports IA64 processor 14649 lt_prog_compiler_static_F77='-Bstatic' 14650 else 14651 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14652 fi 14653 ;; 14654 darwin*) 14655 # PIC is the default on this platform 14656 # Common symbols not allowed in MH_DYLIB files 14657 case $cc_basename in 14658 xlc*) 14659 lt_prog_compiler_pic_F77='-qnocommon' 14660 lt_prog_compiler_wl_F77='-Wl,' 14661 ;; 14662 esac 14663 ;; 14664 14665 mingw* | cygwin* | pw32* | os2*) 14666 # This hack is so that the source file can tell whether it is being 14667 # built for inclusion in a dll (and should export symbols for example). 14668 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14669 ;; 14670 14671 hpux9* | hpux10* | hpux11*) 14672 lt_prog_compiler_wl_F77='-Wl,' 14673 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14674 # not for PA HP-UX. 14675 case $host_cpu in 14676 hppa*64*|ia64*) 14677 # +Z the default 14678 ;; 14679 *) 14680 lt_prog_compiler_pic_F77='+Z' 14681 ;; 14682 esac 14683 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14684 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14685 ;; 14686 14687 irix5* | irix6* | nonstopux*) 14688 lt_prog_compiler_wl_F77='-Wl,' 14689 # PIC (with -KPIC) is the default. 14690 lt_prog_compiler_static_F77='-non_shared' 14691 ;; 14692 14693 newsos6) 14694 lt_prog_compiler_pic_F77='-KPIC' 14695 lt_prog_compiler_static_F77='-Bstatic' 14696 ;; 14697 14698 linux* | k*bsd*-gnu) 14699 case $cc_basename in 14700 icc* | ecc*) 14701 lt_prog_compiler_wl_F77='-Wl,' 14702 lt_prog_compiler_pic_F77='-KPIC' 14703 lt_prog_compiler_static_F77='-static' 14704 ;; 14705 pgcc* | pgf77* | pgf90* | pgf95*) 14706 # Portland Group compilers (*not* the Pentium gcc compiler, 14707 # which looks to be a dead project) 14708 lt_prog_compiler_wl_F77='-Wl,' 14709 lt_prog_compiler_pic_F77='-fpic' 14710 lt_prog_compiler_static_F77='-Bstatic' 14711 ;; 14712 ccc*) 14713 lt_prog_compiler_wl_F77='-Wl,' 14714 # All Alpha code is PIC. 14715 lt_prog_compiler_static_F77='-non_shared' 14716 ;; 14717 *) 14718 case `$CC -V 2>&1 | sed 5q` in 14719 *Sun\ C*) 14720 # Sun C 5.9 14721 lt_prog_compiler_pic_F77='-KPIC' 14722 lt_prog_compiler_static_F77='-Bstatic' 14723 lt_prog_compiler_wl_F77='-Wl,' 14724 ;; 14725 *Sun\ F*) 14726 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14727 lt_prog_compiler_pic_F77='-KPIC' 14728 lt_prog_compiler_static_F77='-Bstatic' 14729 lt_prog_compiler_wl_F77='' 14730 ;; 14731 esac 14732 ;; 14733 esac 14734 ;; 14735 14736 osf3* | osf4* | osf5*) 14737 lt_prog_compiler_wl_F77='-Wl,' 14738 # All OSF/1 code is PIC. 14739 lt_prog_compiler_static_F77='-non_shared' 14740 ;; 14741 14742 rdos*) 14743 lt_prog_compiler_static_F77='-non_shared' 14744 ;; 14745 14746 solaris*) 14747 lt_prog_compiler_pic_F77='-KPIC' 14748 lt_prog_compiler_static_F77='-Bstatic' 14749 case $cc_basename in 14750 f77* | f90* | f95*) 14751 lt_prog_compiler_wl_F77='-Qoption ld ';; 14752 *) 14753 lt_prog_compiler_wl_F77='-Wl,';; 14754 esac 14755 ;; 14756 14757 sunos4*) 14758 lt_prog_compiler_wl_F77='-Qoption ld ' 14759 lt_prog_compiler_pic_F77='-PIC' 14760 lt_prog_compiler_static_F77='-Bstatic' 14761 ;; 14762 14763 sysv4 | sysv4.2uw2* | sysv4.3*) 14764 lt_prog_compiler_wl_F77='-Wl,' 14765 lt_prog_compiler_pic_F77='-KPIC' 14766 lt_prog_compiler_static_F77='-Bstatic' 14767 ;; 14768 14769 sysv4*MP*) 14770 if test -d /usr/nec ;then 14771 lt_prog_compiler_pic_F77='-Kconform_pic' 14772 lt_prog_compiler_static_F77='-Bstatic' 14773 fi 14774 ;; 14775 14776 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14777 lt_prog_compiler_wl_F77='-Wl,' 14778 lt_prog_compiler_pic_F77='-KPIC' 14779 lt_prog_compiler_static_F77='-Bstatic' 14780 ;; 14781 14782 unicos*) 14783 lt_prog_compiler_wl_F77='-Wl,' 14784 lt_prog_compiler_can_build_shared_F77=no 14785 ;; 14786 14787 uts4*) 14788 lt_prog_compiler_pic_F77='-pic' 14789 lt_prog_compiler_static_F77='-Bstatic' 14790 ;; 14791 14792 *) 14793 lt_prog_compiler_can_build_shared_F77=no 14794 ;; 14795 esac 14796 fi 14797 14798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5 14799$as_echo "$lt_prog_compiler_pic_F77" >&6; } 14800 14801# 14802# Check to make sure the PIC flag actually works. 14803# 14804if test -n "$lt_prog_compiler_pic_F77"; then 14805 14806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14807$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; } 14808if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then : 14809 $as_echo_n "(cached) " >&6 14810else 14811 lt_cv_prog_compiler_pic_works_F77=no 14812 ac_outfile=conftest.$ac_objext 14813 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14814 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14815 # Insert the option either (1) after the last *FLAGS variable, or 14816 # (2) before a word containing "conftest.", or (3) at the end. 14817 # Note that $ac_compile itself does not contain backslashes and begins 14818 # with a dollar sign (not a hyphen), so the echo should work correctly. 14819 # The option is referenced via a variable to avoid confusing sed. 14820 lt_compile=`echo "$ac_compile" | $SED \ 14821 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14822 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14823 -e 's:$: $lt_compiler_flag:'` 14824 (eval echo "\"\$as_me:14824: $lt_compile\"" >&5) 14825 (eval "$lt_compile" 2>conftest.err) 14826 ac_status=$? 14827 cat conftest.err >&5 14828 echo "$as_me:14828: \$? = $ac_status" >&5 14829 if (exit $ac_status) && test -s "$ac_outfile"; then 14830 # The compiler can only warn and ignore the option if not recognized 14831 # So say no if there are warnings other than the usual output. 14832 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14833 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14834 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14835 lt_cv_prog_compiler_pic_works_F77=yes 14836 fi 14837 fi 14838 $rm conftest* 14839 14840fi 14841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5 14842$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; } 14843 14844if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then 14845 case $lt_prog_compiler_pic_F77 in 14846 "" | " "*) ;; 14847 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14848 esac 14849else 14850 lt_prog_compiler_pic_F77= 14851 lt_prog_compiler_can_build_shared_F77=no 14852fi 14853 14854fi 14855case $host_os in 14856 # For platforms which do not support PIC, -DPIC is meaningless: 14857 *djgpp*) 14858 lt_prog_compiler_pic_F77= 14859 ;; 14860 *) 14861 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14862 ;; 14863esac 14864 14865# 14866# Check to make sure the static flag actually works. 14867# 14868wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14870$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14871if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then : 14872 $as_echo_n "(cached) " >&6 14873else 14874 lt_cv_prog_compiler_static_works_F77=no 14875 save_LDFLAGS="$LDFLAGS" 14876 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14877 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14878 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14879 # The linker can only warn and ignore the option if not recognized 14880 # So say no if there are warnings 14881 if test -s conftest.err; then 14882 # Append any errors to the config.log. 14883 cat conftest.err 1>&5 14884 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14885 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14886 if diff conftest.exp conftest.er2 >/dev/null; then 14887 lt_cv_prog_compiler_static_works_F77=yes 14888 fi 14889 else 14890 lt_cv_prog_compiler_static_works_F77=yes 14891 fi 14892 fi 14893 $rm -r conftest* 14894 LDFLAGS="$save_LDFLAGS" 14895 14896fi 14897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5 14898$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; } 14899 14900if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then 14901 : 14902else 14903 lt_prog_compiler_static_F77= 14904fi 14905 14906 14907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14908$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14909if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then : 14910 $as_echo_n "(cached) " >&6 14911else 14912 lt_cv_prog_compiler_c_o_F77=no 14913 $rm -r conftest 2>/dev/null 14914 mkdir conftest 14915 cd conftest 14916 mkdir out 14917 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14918 14919 lt_compiler_flag="-o out/conftest2.$ac_objext" 14920 # Insert the option either (1) after the last *FLAGS variable, or 14921 # (2) before a word containing "conftest.", or (3) at the end. 14922 # Note that $ac_compile itself does not contain backslashes and begins 14923 # with a dollar sign (not a hyphen), so the echo should work correctly. 14924 lt_compile=`echo "$ac_compile" | $SED \ 14925 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14926 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14927 -e 's:$: $lt_compiler_flag:'` 14928 (eval echo "\"\$as_me:14928: $lt_compile\"" >&5) 14929 (eval "$lt_compile" 2>out/conftest.err) 14930 ac_status=$? 14931 cat out/conftest.err >&5 14932 echo "$as_me:14932: \$? = $ac_status" >&5 14933 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14934 then 14935 # The compiler can only warn and ignore the option if not recognized 14936 # So say no if there are warnings 14937 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14938 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14939 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14940 lt_cv_prog_compiler_c_o_F77=yes 14941 fi 14942 fi 14943 chmod u+w . 2>&5 14944 $rm conftest* 14945 # SGI C++ compiler will create directory out/ii_files/ for 14946 # template instantiation 14947 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14948 $rm out/* && rmdir out 14949 cd .. 14950 rmdir conftest 14951 $rm conftest* 14952 14953fi 14954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5 14955$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; } 14956 14957 14958hard_links="nottested" 14959if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14960 # do not overwrite the value of need_locks provided by the user 14961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14962$as_echo_n "checking if we can lock with hard links... " >&6; } 14963 hard_links=yes 14964 $rm conftest* 14965 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14966 touch conftest.a 14967 ln conftest.a conftest.b 2>&5 || hard_links=no 14968 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14970$as_echo "$hard_links" >&6; } 14971 if test "$hard_links" = no; then 14972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14973$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14974 need_locks=warn 14975 fi 14976else 14977 need_locks=no 14978fi 14979 14980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14981$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14982 14983 runpath_var= 14984 allow_undefined_flag_F77= 14985 enable_shared_with_static_runtimes_F77=no 14986 archive_cmds_F77= 14987 archive_expsym_cmds_F77= 14988 old_archive_From_new_cmds_F77= 14989 old_archive_from_expsyms_cmds_F77= 14990 export_dynamic_flag_spec_F77= 14991 whole_archive_flag_spec_F77= 14992 thread_safe_flag_spec_F77= 14993 hardcode_libdir_flag_spec_F77= 14994 hardcode_libdir_flag_spec_ld_F77= 14995 hardcode_libdir_separator_F77= 14996 hardcode_direct_F77=no 14997 hardcode_minus_L_F77=no 14998 hardcode_shlibpath_var_F77=unsupported 14999 link_all_deplibs_F77=unknown 15000 hardcode_automatic_F77=no 15001 module_cmds_F77= 15002 module_expsym_cmds_F77= 15003 always_export_symbols_F77=no 15004 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15005 # include_expsyms should be a list of space-separated symbols to be *always* 15006 # included in the symbol list 15007 include_expsyms_F77= 15008 # exclude_expsyms can be an extended regexp of symbols to exclude 15009 # it will be wrapped by ` (' and `)$', so one must not match beginning or 15010 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 15011 # as well as any symbol that contains `d'. 15012 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15013 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15014 # platforms (ab)use it in PIC code, but their linkers get confused if 15015 # the symbol is explicitly referenced. Since portable code cannot 15016 # rely on this symbol name, it's probably fine to never include it in 15017 # preloaded symbol tables. 15018 # Exclude shared library initialization/finalization symbols. 15019 extract_expsyms_cmds= 15020 # Just being paranoid about ensuring that cc_basename is set. 15021 for cc_temp in $compiler""; do 15022 case $cc_temp in 15023 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15024 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15025 \-*) ;; 15026 *) break;; 15027 esac 15028done 15029cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 15030 15031 case $host_os in 15032 cygwin* | mingw* | pw32*) 15033 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15034 # When not using gcc, we currently assume that we are using 15035 # Microsoft Visual C++. 15036 if test "$GCC" != yes; then 15037 with_gnu_ld=no 15038 fi 15039 ;; 15040 interix*) 15041 # we just hope/assume this is gcc and not c89 (= MSVC++) 15042 with_gnu_ld=yes 15043 ;; 15044 openbsd*) 15045 with_gnu_ld=no 15046 ;; 15047 esac 15048 15049 ld_shlibs_F77=yes 15050 if test "$with_gnu_ld" = yes; then 15051 # If archive_cmds runs LD, not CC, wlarc should be empty 15052 wlarc='${wl}' 15053 15054 # Set some defaults for GNU ld with shared library support. These 15055 # are reset later if shared libraries are not supported. Putting them 15056 # here allows them to be overridden if necessary. 15057 runpath_var=LD_RUN_PATH 15058 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 15059 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 15060 # ancient GNU ld didn't support --whole-archive et. al. 15061 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 15062 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 15063 else 15064 whole_archive_flag_spec_F77= 15065 fi 15066 supports_anon_versioning=no 15067 case `$LD -v 2>/dev/null` in 15068 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15069 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15070 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15071 *\ 2.11.*) ;; # other 2.11 versions 15072 *) supports_anon_versioning=yes ;; 15073 esac 15074 15075 # See if GNU ld supports shared libraries. 15076 case $host_os in 15077 aix[3-9]*) 15078 # On AIX/PPC, the GNU linker is very broken 15079 if test "$host_cpu" != ia64; then 15080 ld_shlibs_F77=no 15081 cat <<EOF 1>&2 15082 15083*** Warning: the GNU linker, at least up to release 2.9.1, is reported 15084*** to be unable to reliably create shared libraries on AIX. 15085*** Therefore, libtool is disabling shared libraries support. If you 15086*** really care for shared libraries, you may want to modify your PATH 15087*** so that a non-GNU linker is found, and then restart. 15088 15089EOF 15090 fi 15091 ;; 15092 15093 amigaos*) 15094 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 15095 hardcode_libdir_flag_spec_F77='-L$libdir' 15096 hardcode_minus_L_F77=yes 15097 15098 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 15099 # that the semantics of dynamic libraries on AmigaOS, at least up 15100 # to version 4, is to share data among multiple programs linked 15101 # with the same dynamic library. Since this doesn't match the 15102 # behavior of shared libraries on other platforms, we can't use 15103 # them. 15104 ld_shlibs_F77=no 15105 ;; 15106 15107 beos*) 15108 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15109 allow_undefined_flag_F77=unsupported 15110 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15111 # support --undefined. This deserves some investigation. FIXME 15112 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15113 else 15114 ld_shlibs_F77=no 15115 fi 15116 ;; 15117 15118 cygwin* | mingw* | pw32*) 15119 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 15120 # as there is no search path for DLLs. 15121 hardcode_libdir_flag_spec_F77='-L$libdir' 15122 allow_undefined_flag_F77=unsupported 15123 always_export_symbols_F77=no 15124 enable_shared_with_static_runtimes_F77=yes 15125 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 15126 15127 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 15128 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15129 # If the export-symbols file already is a .def file (1st line 15130 # is EXPORTS), use it as is; otherwise, prepend... 15131 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15132 cp $export_symbols $output_objdir/$soname.def; 15133 else 15134 echo EXPORTS > $output_objdir/$soname.def; 15135 cat $export_symbols >> $output_objdir/$soname.def; 15136 fi~ 15137 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15138 else 15139 ld_shlibs_F77=no 15140 fi 15141 ;; 15142 15143 interix[3-9]*) 15144 hardcode_direct_F77=no 15145 hardcode_shlibpath_var_F77=no 15146 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15147 export_dynamic_flag_spec_F77='${wl}-E' 15148 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15149 # Instead, shared libraries are loaded at an image base (0x10000000 by 15150 # default) and relocated if they conflict, which is a slow very memory 15151 # consuming and fragmenting process. To avoid this, we pick a random, 15152 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15153 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15154 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15155 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15156 ;; 15157 15158 gnu* | linux* | k*bsd*-gnu) 15159 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15160 tmp_addflag= 15161 case $cc_basename,$host_cpu in 15162 pgcc*) # Portland Group C compiler 15163 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 15164 tmp_addflag=' $pic_flag' 15165 ;; 15166 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 15167 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 15168 tmp_addflag=' $pic_flag -Mnomain' ;; 15169 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15170 tmp_addflag=' -i_dynamic' ;; 15171 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15172 tmp_addflag=' -i_dynamic -nofor_main' ;; 15173 ifc* | ifort*) # Intel Fortran compiler 15174 tmp_addflag=' -nofor_main' ;; 15175 esac 15176 case `$CC -V 2>&1 | sed 5q` in 15177 *Sun\ C*) # Sun C 5.9 15178 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 15179 tmp_sharedflag='-G' ;; 15180 *Sun\ F*) # Sun Fortran 8.3 15181 tmp_sharedflag='-G' ;; 15182 *) 15183 tmp_sharedflag='-shared' ;; 15184 esac 15185 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15186 15187 if test $supports_anon_versioning = yes; then 15188 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 15189 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15190 $echo "local: *; };" >> $output_objdir/$libname.ver~ 15191 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15192 fi 15193 else 15194 ld_shlibs_F77=no 15195 fi 15196 ;; 15197 15198 netbsd*) 15199 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15200 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15201 wlarc= 15202 else 15203 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15204 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15205 fi 15206 ;; 15207 15208 solaris*) 15209 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 15210 ld_shlibs_F77=no 15211 cat <<EOF 1>&2 15212 15213*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15214*** create shared libraries on Solaris systems. Therefore, libtool 15215*** is disabling shared libraries support. We urge you to upgrade GNU 15216*** binutils to release 2.9.1 or newer. Another option is to modify 15217*** your PATH or compiler configuration so that the native linker is 15218*** used, and then restart. 15219 15220EOF 15221 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15222 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15223 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15224 else 15225 ld_shlibs_F77=no 15226 fi 15227 ;; 15228 15229 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15230 case `$LD -v 2>&1` in 15231 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15232 ld_shlibs_F77=no 15233 cat <<_LT_EOF 1>&2 15234 15235*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 15236*** reliably create shared libraries on SCO systems. Therefore, libtool 15237*** is disabling shared libraries support. We urge you to upgrade GNU 15238*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15239*** your PATH or compiler configuration so that the native linker is 15240*** used, and then restart. 15241 15242_LT_EOF 15243 ;; 15244 *) 15245 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15246 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 15247 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 15248 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 15249 else 15250 ld_shlibs_F77=no 15251 fi 15252 ;; 15253 esac 15254 ;; 15255 15256 sunos4*) 15257 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15258 wlarc= 15259 hardcode_direct_F77=yes 15260 hardcode_shlibpath_var_F77=no 15261 ;; 15262 15263 *) 15264 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15265 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15266 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15267 else 15268 ld_shlibs_F77=no 15269 fi 15270 ;; 15271 esac 15272 15273 if test "$ld_shlibs_F77" = no; then 15274 runpath_var= 15275 hardcode_libdir_flag_spec_F77= 15276 export_dynamic_flag_spec_F77= 15277 whole_archive_flag_spec_F77= 15278 fi 15279 else 15280 # PORTME fill in a description of your system's linker (not GNU ld) 15281 case $host_os in 15282 aix3*) 15283 allow_undefined_flag_F77=unsupported 15284 always_export_symbols_F77=yes 15285 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 15286 # Note: this linker hardcodes the directories in LIBPATH if there 15287 # are no directories specified by -L. 15288 hardcode_minus_L_F77=yes 15289 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15290 # Neither direct hardcoding nor static linking is supported with a 15291 # broken collect2. 15292 hardcode_direct_F77=unsupported 15293 fi 15294 ;; 15295 15296 aix[4-9]*) 15297 if test "$host_cpu" = ia64; then 15298 # On IA64, the linker does run time linking by default, so we don't 15299 # have to do anything special. 15300 aix_use_runtimelinking=no 15301 exp_sym_flag='-Bexport' 15302 no_entry_flag="" 15303 else 15304 # If we're using GNU nm, then we don't want the "-C" option. 15305 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15306 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 15307 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 15308 else 15309 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 15310 fi 15311 aix_use_runtimelinking=no 15312 15313 # Test if we are trying to use run time linking or normal 15314 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15315 # need to do runtime linking. 15316 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15317 for ld_flag in $LDFLAGS; do 15318 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15319 aix_use_runtimelinking=yes 15320 break 15321 fi 15322 done 15323 ;; 15324 esac 15325 15326 exp_sym_flag='-bexport' 15327 no_entry_flag='-bnoentry' 15328 fi 15329 15330 # When large executables or shared objects are built, AIX ld can 15331 # have problems creating the table of contents. If linking a library 15332 # or program results in "error TOC overflow" add -mminimal-toc to 15333 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15334 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15335 15336 archive_cmds_F77='' 15337 hardcode_direct_F77=yes 15338 hardcode_libdir_separator_F77=':' 15339 link_all_deplibs_F77=yes 15340 15341 if test "$GCC" = yes; then 15342 case $host_os in aix4.[012]|aix4.[012].*) 15343 # We only want to do this on AIX 4.2 and lower, the check 15344 # below for broken collect2 doesn't work under 4.3+ 15345 collect2name=`${CC} -print-prog-name=collect2` 15346 if test -f "$collect2name" && \ 15347 strings "$collect2name" | grep resolve_lib_name >/dev/null 15348 then 15349 # We have reworked collect2 15350 : 15351 else 15352 # We have old collect2 15353 hardcode_direct_F77=unsupported 15354 # It fails to find uninstalled libraries when the uninstalled 15355 # path is not listed in the libpath. Setting hardcode_minus_L 15356 # to unsupported forces relinking 15357 hardcode_minus_L_F77=yes 15358 hardcode_libdir_flag_spec_F77='-L$libdir' 15359 hardcode_libdir_separator_F77= 15360 fi 15361 ;; 15362 esac 15363 shared_flag='-shared' 15364 if test "$aix_use_runtimelinking" = yes; then 15365 shared_flag="$shared_flag "'${wl}-G' 15366 fi 15367 else 15368 # not using gcc 15369 if test "$host_cpu" = ia64; then 15370 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15371 # chokes on -Wl,-G. The following line is correct: 15372 shared_flag='-G' 15373 else 15374 if test "$aix_use_runtimelinking" = yes; then 15375 shared_flag='${wl}-G' 15376 else 15377 shared_flag='${wl}-bM:SRE' 15378 fi 15379 fi 15380 fi 15381 15382 # It seems that -bexpall does not export symbols beginning with 15383 # underscore (_), so it is better to generate a list of symbols to export. 15384 always_export_symbols_F77=yes 15385 if test "$aix_use_runtimelinking" = yes; then 15386 # Warning - without using the other runtime loading flags (-brtl), 15387 # -berok will link without error, but may produce a broken library. 15388 allow_undefined_flag_F77='-berok' 15389 # Determine the default libpath from the value encoded in an empty executable. 15390 cat > conftest.$ac_ext <<_ACEOF 15391 program main 15392 15393 end 15394_ACEOF 15395if ac_fn_f77_try_link "$LINENO"; then : 15396 15397lt_aix_libpath_sed=' 15398 /Import File Strings/,/^$/ { 15399 /^0/ { 15400 s/^0 *\(.*\)$/\1/ 15401 p 15402 } 15403 }' 15404aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15405# Check for a 64-bit object if we didn't find anything. 15406if test -z "$aix_libpath"; then 15407 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15408fi 15409fi 15410rm -f core conftest.err conftest.$ac_objext \ 15411 conftest$ac_exeext conftest.$ac_ext 15412if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15413 15414 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15415 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 15416 else 15417 if test "$host_cpu" = ia64; then 15418 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 15419 allow_undefined_flag_F77="-z nodefs" 15420 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 15421 else 15422 # Determine the default libpath from the value encoded in an empty executable. 15423 cat > conftest.$ac_ext <<_ACEOF 15424 program main 15425 15426 end 15427_ACEOF 15428if ac_fn_f77_try_link "$LINENO"; then : 15429 15430lt_aix_libpath_sed=' 15431 /Import File Strings/,/^$/ { 15432 /^0/ { 15433 s/^0 *\(.*\)$/\1/ 15434 p 15435 } 15436 }' 15437aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15438# Check for a 64-bit object if we didn't find anything. 15439if test -z "$aix_libpath"; then 15440 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15441fi 15442fi 15443rm -f core conftest.err conftest.$ac_objext \ 15444 conftest$ac_exeext conftest.$ac_ext 15445if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15446 15447 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15448 # Warning - without using the other run time loading flags, 15449 # -berok will link without error, but may produce a broken library. 15450 no_undefined_flag_F77=' ${wl}-bernotok' 15451 allow_undefined_flag_F77=' ${wl}-berok' 15452 # Exported symbols can be pulled into shared objects from archives 15453 whole_archive_flag_spec_F77='$convenience' 15454 archive_cmds_need_lc_F77=yes 15455 # This is similar to how AIX traditionally builds its shared libraries. 15456 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 15457 fi 15458 fi 15459 ;; 15460 15461 amigaos*) 15462 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 15463 hardcode_libdir_flag_spec_F77='-L$libdir' 15464 hardcode_minus_L_F77=yes 15465 # see comment about different semantics on the GNU ld section 15466 ld_shlibs_F77=no 15467 ;; 15468 15469 bsdi[45]*) 15470 export_dynamic_flag_spec_F77=-rdynamic 15471 ;; 15472 15473 cygwin* | mingw* | pw32*) 15474 # When not using gcc, we currently assume that we are using 15475 # Microsoft Visual C++. 15476 # hardcode_libdir_flag_spec is actually meaningless, as there is 15477 # no search path for DLLs. 15478 hardcode_libdir_flag_spec_F77=' ' 15479 allow_undefined_flag_F77=unsupported 15480 # Tell ltmain to make .lib files, not .a files. 15481 libext=lib 15482 # Tell ltmain to make .dll files, not .so files. 15483 shrext_cmds=".dll" 15484 # FIXME: Setting linknames here is a bad hack. 15485 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15486 # The linker will automatically build a .lib file if we build a DLL. 15487 old_archive_From_new_cmds_F77='true' 15488 # FIXME: Should let the user specify the lib program. 15489 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 15490 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15491 enable_shared_with_static_runtimes_F77=yes 15492 ;; 15493 15494 darwin* | rhapsody*) 15495 case $host_os in 15496 rhapsody* | darwin1.[012]) 15497 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15498 ;; 15499 *) # Darwin 1.3 on 15500 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15501 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15502 else 15503 case ${MACOSX_DEPLOYMENT_TARGET} in 15504 10.[012]) 15505 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15506 ;; 15507 10.*) 15508 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15509 ;; 15510 esac 15511 fi 15512 ;; 15513 esac 15514 archive_cmds_need_lc_F77=no 15515 hardcode_direct_F77=no 15516 hardcode_automatic_F77=yes 15517 hardcode_shlibpath_var_F77=unsupported 15518 whole_archive_flag_spec_F77='' 15519 link_all_deplibs_F77=yes 15520 if test "$GCC" = yes ; then 15521 output_verbose_link_cmd='echo' 15522 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 15523 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 15524 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 15525 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 15526 else 15527 case $cc_basename in 15528 xlc*) 15529 output_verbose_link_cmd='echo' 15530 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 15531 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15532 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15533 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15534 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15535 ;; 15536 *) 15537 ld_shlibs_F77=no 15538 ;; 15539 esac 15540 fi 15541 ;; 15542 15543 dgux*) 15544 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15545 hardcode_libdir_flag_spec_F77='-L$libdir' 15546 hardcode_shlibpath_var_F77=no 15547 ;; 15548 15549 freebsd1*) 15550 ld_shlibs_F77=no 15551 ;; 15552 15553 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15554 # support. Future versions do this automatically, but an explicit c++rt0.o 15555 # does not break anything, and helps significantly (at the cost of a little 15556 # extra space). 15557 freebsd2.2*) 15558 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15559 hardcode_libdir_flag_spec_F77='-R$libdir' 15560 hardcode_direct_F77=yes 15561 hardcode_shlibpath_var_F77=no 15562 ;; 15563 15564 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15565 freebsd2*) 15566 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15567 hardcode_direct_F77=yes 15568 hardcode_minus_L_F77=yes 15569 hardcode_shlibpath_var_F77=no 15570 ;; 15571 15572 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15573 freebsd* | dragonfly*) 15574 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15575 hardcode_libdir_flag_spec_F77='-R$libdir' 15576 hardcode_direct_F77=yes 15577 hardcode_shlibpath_var_F77=no 15578 ;; 15579 15580 hpux9*) 15581 if test "$GCC" = yes; then 15582 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 15583 else 15584 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 15585 fi 15586 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15587 hardcode_libdir_separator_F77=: 15588 hardcode_direct_F77=yes 15589 15590 # hardcode_minus_L: Not really in the search PATH, 15591 # but as the default location of the library. 15592 hardcode_minus_L_F77=yes 15593 export_dynamic_flag_spec_F77='${wl}-E' 15594 ;; 15595 15596 hpux10*) 15597 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15598 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15599 else 15600 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15601 fi 15602 if test "$with_gnu_ld" = no; then 15603 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15604 hardcode_libdir_separator_F77=: 15605 15606 hardcode_direct_F77=yes 15607 export_dynamic_flag_spec_F77='${wl}-E' 15608 15609 # hardcode_minus_L: Not really in the search PATH, 15610 # but as the default location of the library. 15611 hardcode_minus_L_F77=yes 15612 fi 15613 ;; 15614 15615 hpux11*) 15616 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15617 case $host_cpu in 15618 hppa*64*) 15619 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15620 ;; 15621 ia64*) 15622 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15623 ;; 15624 *) 15625 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15626 ;; 15627 esac 15628 else 15629 case $host_cpu in 15630 hppa*64*) 15631 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15632 ;; 15633 ia64*) 15634 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15635 ;; 15636 *) 15637 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15638 ;; 15639 esac 15640 fi 15641 if test "$with_gnu_ld" = no; then 15642 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15643 hardcode_libdir_separator_F77=: 15644 15645 case $host_cpu in 15646 hppa*64*|ia64*) 15647 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15648 hardcode_direct_F77=no 15649 hardcode_shlibpath_var_F77=no 15650 ;; 15651 *) 15652 hardcode_direct_F77=yes 15653 export_dynamic_flag_spec_F77='${wl}-E' 15654 15655 # hardcode_minus_L: Not really in the search PATH, 15656 # but as the default location of the library. 15657 hardcode_minus_L_F77=yes 15658 ;; 15659 esac 15660 fi 15661 ;; 15662 15663 irix5* | irix6* | nonstopux*) 15664 if test "$GCC" = yes; then 15665 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15666 else 15667 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 15668 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15669 fi 15670 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15671 hardcode_libdir_separator_F77=: 15672 link_all_deplibs_F77=yes 15673 ;; 15674 15675 netbsd*) 15676 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15677 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15678 else 15679 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15680 fi 15681 hardcode_libdir_flag_spec_F77='-R$libdir' 15682 hardcode_direct_F77=yes 15683 hardcode_shlibpath_var_F77=no 15684 ;; 15685 15686 newsos6) 15687 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15688 hardcode_direct_F77=yes 15689 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15690 hardcode_libdir_separator_F77=: 15691 hardcode_shlibpath_var_F77=no 15692 ;; 15693 15694 openbsd*) 15695 if test -f /usr/libexec/ld.so; then 15696 hardcode_direct_F77=yes 15697 hardcode_shlibpath_var_F77=no 15698 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15699 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15700 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15701 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15702 export_dynamic_flag_spec_F77='${wl}-E' 15703 else 15704 case $host_os in 15705 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15706 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15707 hardcode_libdir_flag_spec_F77='-R$libdir' 15708 ;; 15709 *) 15710 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15711 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15712 ;; 15713 esac 15714 fi 15715 else 15716 ld_shlibs_F77=no 15717 fi 15718 ;; 15719 15720 os2*) 15721 hardcode_libdir_flag_spec_F77='-L$libdir' 15722 hardcode_minus_L_F77=yes 15723 allow_undefined_flag_F77=unsupported 15724 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 15725 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15726 ;; 15727 15728 osf3*) 15729 if test "$GCC" = yes; then 15730 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15731 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15732 else 15733 allow_undefined_flag_F77=' -expect_unresolved \*' 15734 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 15735 fi 15736 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15737 hardcode_libdir_separator_F77=: 15738 ;; 15739 15740 osf4* | osf5*) # as osf3* with the addition of -msym flag 15741 if test "$GCC" = yes; then 15742 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15743 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15744 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15745 else 15746 allow_undefined_flag_F77=' -expect_unresolved \*' 15747 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 15748 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 15749 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 15750 15751 # Both c and cxx compiler support -rpath directly 15752 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15753 fi 15754 hardcode_libdir_separator_F77=: 15755 ;; 15756 15757 solaris*) 15758 no_undefined_flag_F77=' -z text' 15759 if test "$GCC" = yes; then 15760 wlarc='${wl}' 15761 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15762 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15763 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15764 else 15765 wlarc='' 15766 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15767 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15768 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15769 fi 15770 hardcode_libdir_flag_spec_F77='-R$libdir' 15771 hardcode_shlibpath_var_F77=no 15772 case $host_os in 15773 solaris2.[0-5] | solaris2.[0-5].*) ;; 15774 *) 15775 # The compiler driver will combine and reorder linker options, 15776 # but understands `-z linker_flag'. GCC discards it without `$wl', 15777 # but is careful enough not to reorder. 15778 # Supported since Solaris 2.6 (maybe 2.5.1?) 15779 if test "$GCC" = yes; then 15780 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15781 else 15782 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 15783 fi 15784 ;; 15785 esac 15786 link_all_deplibs_F77=yes 15787 ;; 15788 15789 sunos4*) 15790 if test "x$host_vendor" = xsequent; then 15791 # Use $CC to link under sequent, because it throws in some extra .o 15792 # files that make .init and .fini sections work. 15793 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15794 else 15795 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15796 fi 15797 hardcode_libdir_flag_spec_F77='-L$libdir' 15798 hardcode_direct_F77=yes 15799 hardcode_minus_L_F77=yes 15800 hardcode_shlibpath_var_F77=no 15801 ;; 15802 15803 sysv4) 15804 case $host_vendor in 15805 sni) 15806 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15807 hardcode_direct_F77=yes # is this really true??? 15808 ;; 15809 siemens) 15810 ## LD is ld it makes a PLAMLIB 15811 ## CC just makes a GrossModule. 15812 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15813 reload_cmds_F77='$CC -r -o $output$reload_objs' 15814 hardcode_direct_F77=no 15815 ;; 15816 motorola) 15817 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15818 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15819 ;; 15820 esac 15821 runpath_var='LD_RUN_PATH' 15822 hardcode_shlibpath_var_F77=no 15823 ;; 15824 15825 sysv4.3*) 15826 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15827 hardcode_shlibpath_var_F77=no 15828 export_dynamic_flag_spec_F77='-Bexport' 15829 ;; 15830 15831 sysv4*MP*) 15832 if test -d /usr/nec; then 15833 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15834 hardcode_shlibpath_var_F77=no 15835 runpath_var=LD_RUN_PATH 15836 hardcode_runpath_var=yes 15837 ld_shlibs_F77=yes 15838 fi 15839 ;; 15840 15841 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15842 no_undefined_flag_F77='${wl}-z,text' 15843 archive_cmds_need_lc_F77=no 15844 hardcode_shlibpath_var_F77=no 15845 runpath_var='LD_RUN_PATH' 15846 15847 if test "$GCC" = yes; then 15848 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15849 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15850 else 15851 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15852 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15853 fi 15854 ;; 15855 15856 sysv5* | sco3.2v5* | sco5v6*) 15857 # Note: We can NOT use -z defs as we might desire, because we do not 15858 # link with -lc, and that would cause any symbols used from libc to 15859 # always be unresolved, which means just about no library would 15860 # ever link correctly. If we're not using GNU ld we use -z text 15861 # though, which does catch some bad symbols but isn't as heavy-handed 15862 # as -z defs. 15863 no_undefined_flag_F77='${wl}-z,text' 15864 allow_undefined_flag_F77='${wl}-z,nodefs' 15865 archive_cmds_need_lc_F77=no 15866 hardcode_shlibpath_var_F77=no 15867 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15868 hardcode_libdir_separator_F77=':' 15869 link_all_deplibs_F77=yes 15870 export_dynamic_flag_spec_F77='${wl}-Bexport' 15871 runpath_var='LD_RUN_PATH' 15872 15873 if test "$GCC" = yes; then 15874 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15875 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15876 else 15877 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15878 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15879 fi 15880 ;; 15881 15882 uts4*) 15883 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15884 hardcode_libdir_flag_spec_F77='-L$libdir' 15885 hardcode_shlibpath_var_F77=no 15886 ;; 15887 15888 *) 15889 ld_shlibs_F77=no 15890 ;; 15891 esac 15892 fi 15893 15894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5 15895$as_echo "$ld_shlibs_F77" >&6; } 15896test "$ld_shlibs_F77" = no && can_build_shared=no 15897 15898# 15899# Do we need to explicitly link libc? 15900# 15901case "x$archive_cmds_need_lc_F77" in 15902x|xyes) 15903 # Assume -lc should be added 15904 archive_cmds_need_lc_F77=yes 15905 15906 if test "$enable_shared" = yes && test "$GCC" = yes; then 15907 case $archive_cmds_F77 in 15908 *'~'*) 15909 # FIXME: we may have to deal with multi-command sequences. 15910 ;; 15911 '$CC '*) 15912 # Test whether the compiler implicitly links with -lc since on some 15913 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15914 # to ld, don't add -lc before -lgcc. 15915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15916$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15917 $rm conftest* 15918 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15919 15920 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15921 (eval $ac_compile) 2>&5 15922 ac_status=$? 15923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15924 test $ac_status = 0; } 2>conftest.err; then 15925 soname=conftest 15926 lib=conftest 15927 libobjs=conftest.$ac_objext 15928 deplibs= 15929 wl=$lt_prog_compiler_wl_F77 15930 pic_flag=$lt_prog_compiler_pic_F77 15931 compiler_flags=-v 15932 linker_flags=-v 15933 verstring= 15934 output_objdir=. 15935 libname=conftest 15936 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15937 allow_undefined_flag_F77= 15938 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15939 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15940 ac_status=$? 15941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15942 test $ac_status = 0; } 15943 then 15944 archive_cmds_need_lc_F77=no 15945 else 15946 archive_cmds_need_lc_F77=yes 15947 fi 15948 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15949 else 15950 cat conftest.err 1>&5 15951 fi 15952 $rm conftest* 15953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5 15954$as_echo "$archive_cmds_need_lc_F77" >&6; } 15955 ;; 15956 esac 15957 fi 15958 ;; 15959esac 15960 15961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15962$as_echo_n "checking dynamic linker characteristics... " >&6; } 15963library_names_spec= 15964libname_spec='lib$name' 15965soname_spec= 15966shrext_cmds=".so" 15967postinstall_cmds= 15968postuninstall_cmds= 15969finish_cmds= 15970finish_eval= 15971shlibpath_var= 15972shlibpath_overrides_runpath=unknown 15973version_type=none 15974dynamic_linker="$host_os ld.so" 15975sys_lib_dlsearch_path_spec="/lib /usr/lib" 15976 15977need_lib_prefix=unknown 15978hardcode_into_libs=no 15979 15980# when you set need_version to no, make sure it does not cause -set_version 15981# flags to be left without arguments 15982need_version=unknown 15983 15984case $host_os in 15985aix3*) 15986 version_type=linux 15987 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15988 shlibpath_var=LIBPATH 15989 15990 # AIX 3 has no versioning support, so we append a major version to the name. 15991 soname_spec='${libname}${release}${shared_ext}$major' 15992 ;; 15993 15994aix[4-9]*) 15995 version_type=linux 15996 need_lib_prefix=no 15997 need_version=no 15998 hardcode_into_libs=yes 15999 if test "$host_cpu" = ia64; then 16000 # AIX 5 supports IA64 16001 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16002 shlibpath_var=LD_LIBRARY_PATH 16003 else 16004 # With GCC up to 2.95.x, collect2 would create an import file 16005 # for dependence libraries. The import file would start with 16006 # the line `#! .'. This would cause the generated library to 16007 # depend on `.', always an invalid library. This was fixed in 16008 # development snapshots of GCC prior to 3.0. 16009 case $host_os in 16010 aix4 | aix4.[01] | aix4.[01].*) 16011 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16012 echo ' yes ' 16013 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 16014 : 16015 else 16016 can_build_shared=no 16017 fi 16018 ;; 16019 esac 16020 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16021 # soname into executable. Probably we can add versioning support to 16022 # collect2, so additional links can be useful in future. 16023 if test "$aix_use_runtimelinking" = yes; then 16024 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16025 # instead of lib<name>.a to let people know that these are not 16026 # typical AIX shared libraries. 16027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16028 else 16029 # We preserve .a as extension for shared libraries through AIX4.2 16030 # and later when we are not doing run time linking. 16031 library_names_spec='${libname}${release}.a $libname.a' 16032 soname_spec='${libname}${release}${shared_ext}$major' 16033 fi 16034 shlibpath_var=LIBPATH 16035 fi 16036 ;; 16037 16038amigaos*) 16039 library_names_spec='$libname.ixlibrary $libname.a' 16040 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16041 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' 16042 ;; 16043 16044beos*) 16045 library_names_spec='${libname}${shared_ext}' 16046 dynamic_linker="$host_os ld.so" 16047 shlibpath_var=LIBRARY_PATH 16048 ;; 16049 16050bsdi[45]*) 16051 version_type=linux 16052 need_version=no 16053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16054 soname_spec='${libname}${release}${shared_ext}$major' 16055 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16056 shlibpath_var=LD_LIBRARY_PATH 16057 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16058 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16059 # the default ld.so.conf also contains /usr/contrib/lib and 16060 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16061 # libtool to hard-code these into programs 16062 ;; 16063 16064cygwin* | mingw* | pw32*) 16065 version_type=windows 16066 shrext_cmds=".dll" 16067 need_version=no 16068 need_lib_prefix=no 16069 16070 case $GCC,$host_os in 16071 yes,cygwin* | yes,mingw* | yes,pw32*) 16072 library_names_spec='$libname.dll.a' 16073 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16074 postinstall_cmds='base_file=`basename \${file}`~ 16075 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 16076 dldir=$destdir/`dirname \$dlpath`~ 16077 test -d \$dldir || mkdir -p \$dldir~ 16078 $install_prog $dir/$dlname \$dldir/$dlname~ 16079 chmod a+x \$dldir/$dlname' 16080 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16081 dlpath=$dir/\$dldll~ 16082 $rm \$dlpath' 16083 shlibpath_overrides_runpath=yes 16084 16085 case $host_os in 16086 cygwin*) 16087 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16088 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16089 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 16090 ;; 16091 mingw*) 16092 # MinGW DLLs use traditional 'lib' prefix 16093 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16094 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16095 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 16096 # It is most probably a Windows format PATH printed by 16097 # mingw gcc, but we are running on Cygwin. Gcc prints its search 16098 # path with ; separators, and with drive letters. We can handle the 16099 # drive letters (cygwin fileutils understands them), so leave them, 16100 # especially as we might pass files found there to a mingw objdump, 16101 # which wouldn't understand a cygwinified path. Ahh. 16102 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16103 else 16104 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16105 fi 16106 ;; 16107 pw32*) 16108 # pw32 DLLs use 'pw' prefix rather than 'lib' 16109 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16110 ;; 16111 esac 16112 ;; 16113 16114 *) 16115 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16116 ;; 16117 esac 16118 dynamic_linker='Win32 ld.exe' 16119 # FIXME: first we should search . and the directory the executable is in 16120 shlibpath_var=PATH 16121 ;; 16122 16123darwin* | rhapsody*) 16124 dynamic_linker="$host_os dyld" 16125 version_type=darwin 16126 need_lib_prefix=no 16127 need_version=no 16128 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16129 soname_spec='${libname}${release}${major}$shared_ext' 16130 shlibpath_overrides_runpath=yes 16131 shlibpath_var=DYLD_LIBRARY_PATH 16132 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16133 16134 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16135 ;; 16136 16137dgux*) 16138 version_type=linux 16139 need_lib_prefix=no 16140 need_version=no 16141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16142 soname_spec='${libname}${release}${shared_ext}$major' 16143 shlibpath_var=LD_LIBRARY_PATH 16144 ;; 16145 16146freebsd1*) 16147 dynamic_linker=no 16148 ;; 16149 16150freebsd* | dragonfly*) 16151 # DragonFly does not have aout. When/if they implement a new 16152 # versioning mechanism, adjust this. 16153 if test -x /usr/bin/objformat; then 16154 objformat=`/usr/bin/objformat` 16155 else 16156 case $host_os in 16157 freebsd[123]*) objformat=aout ;; 16158 *) objformat=elf ;; 16159 esac 16160 fi 16161 version_type=freebsd-$objformat 16162 case $version_type in 16163 freebsd-elf*) 16164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16165 need_version=no 16166 need_lib_prefix=no 16167 ;; 16168 freebsd-*) 16169 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16170 need_version=yes 16171 ;; 16172 esac 16173 shlibpath_var=LD_LIBRARY_PATH 16174 case $host_os in 16175 freebsd2*) 16176 shlibpath_overrides_runpath=yes 16177 ;; 16178 freebsd3.[01]* | freebsdelf3.[01]*) 16179 shlibpath_overrides_runpath=yes 16180 hardcode_into_libs=yes 16181 ;; 16182 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16183 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16184 shlibpath_overrides_runpath=no 16185 hardcode_into_libs=yes 16186 ;; 16187 *) # from 4.6 on, and DragonFly 16188 shlibpath_overrides_runpath=yes 16189 hardcode_into_libs=yes 16190 ;; 16191 esac 16192 ;; 16193 16194gnu*) 16195 version_type=linux 16196 need_lib_prefix=no 16197 need_version=no 16198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16199 soname_spec='${libname}${release}${shared_ext}$major' 16200 shlibpath_var=LD_LIBRARY_PATH 16201 hardcode_into_libs=yes 16202 ;; 16203 16204hpux9* | hpux10* | hpux11*) 16205 # Give a soname corresponding to the major version so that dld.sl refuses to 16206 # link against other versions. 16207 version_type=sunos 16208 need_lib_prefix=no 16209 need_version=no 16210 case $host_cpu in 16211 ia64*) 16212 shrext_cmds='.so' 16213 hardcode_into_libs=yes 16214 dynamic_linker="$host_os dld.so" 16215 shlibpath_var=LD_LIBRARY_PATH 16216 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16218 soname_spec='${libname}${release}${shared_ext}$major' 16219 if test "X$HPUX_IA64_MODE" = X32; then 16220 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16221 else 16222 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16223 fi 16224 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16225 ;; 16226 hppa*64*) 16227 shrext_cmds='.sl' 16228 hardcode_into_libs=yes 16229 dynamic_linker="$host_os dld.sl" 16230 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16231 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16233 soname_spec='${libname}${release}${shared_ext}$major' 16234 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16235 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16236 ;; 16237 *) 16238 shrext_cmds='.sl' 16239 dynamic_linker="$host_os dld.sl" 16240 shlibpath_var=SHLIB_PATH 16241 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16243 soname_spec='${libname}${release}${shared_ext}$major' 16244 ;; 16245 esac 16246 # HP-UX runs *really* slowly unless shared libraries are mode 555. 16247 postinstall_cmds='chmod 555 $lib' 16248 ;; 16249 16250interix[3-9]*) 16251 version_type=linux 16252 need_lib_prefix=no 16253 need_version=no 16254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16255 soname_spec='${libname}${release}${shared_ext}$major' 16256 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16257 shlibpath_var=LD_LIBRARY_PATH 16258 shlibpath_overrides_runpath=no 16259 hardcode_into_libs=yes 16260 ;; 16261 16262irix5* | irix6* | nonstopux*) 16263 case $host_os in 16264 nonstopux*) version_type=nonstopux ;; 16265 *) 16266 if test "$lt_cv_prog_gnu_ld" = yes; then 16267 version_type=linux 16268 else 16269 version_type=irix 16270 fi ;; 16271 esac 16272 need_lib_prefix=no 16273 need_version=no 16274 soname_spec='${libname}${release}${shared_ext}$major' 16275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16276 case $host_os in 16277 irix5* | nonstopux*) 16278 libsuff= shlibsuff= 16279 ;; 16280 *) 16281 case $LD in # libtool.m4 will add one of these switches to LD 16282 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16283 libsuff= shlibsuff= libmagic=32-bit;; 16284 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16285 libsuff=32 shlibsuff=N32 libmagic=N32;; 16286 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16287 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16288 *) libsuff= shlibsuff= libmagic=never-match;; 16289 esac 16290 ;; 16291 esac 16292 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16293 shlibpath_overrides_runpath=no 16294 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16295 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16296 hardcode_into_libs=yes 16297 ;; 16298 16299# No shared lib support for Linux oldld, aout, or coff. 16300linux*oldld* | linux*aout* | linux*coff*) 16301 dynamic_linker=no 16302 ;; 16303 16304# This must be Linux ELF. 16305linux* | k*bsd*-gnu) 16306 version_type=linux 16307 need_lib_prefix=no 16308 need_version=no 16309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16310 soname_spec='${libname}${release}${shared_ext}$major' 16311 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16312 shlibpath_var=LD_LIBRARY_PATH 16313 shlibpath_overrides_runpath=no 16314 # This implies no fast_install, which is unacceptable. 16315 # Some rework will be needed to allow for fast_install 16316 # before this can be enabled. 16317 hardcode_into_libs=yes 16318 16319 # Append ld.so.conf contents to the search path 16320 if test -f /etc/ld.so.conf; then 16321 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' ' '` 16322 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16323 fi 16324 16325 # We used to test for /lib/ld.so.1 and disable shared libraries on 16326 # powerpc, because MkLinux only supported shared libraries with the 16327 # GNU dynamic linker. Since this was broken with cross compilers, 16328 # most powerpc-linux boxes support dynamic linking these days and 16329 # people can always --disable-shared, the test was removed, and we 16330 # assume the GNU/Linux dynamic linker is in use. 16331 dynamic_linker='GNU/Linux ld.so' 16332 ;; 16333 16334netbsd*) 16335 version_type=sunos 16336 need_lib_prefix=no 16337 need_version=no 16338 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16340 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16341 dynamic_linker='NetBSD (a.out) ld.so' 16342 else 16343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16344 soname_spec='${libname}${release}${shared_ext}$major' 16345 dynamic_linker='NetBSD ld.elf_so' 16346 fi 16347 shlibpath_var=LD_LIBRARY_PATH 16348 shlibpath_overrides_runpath=yes 16349 hardcode_into_libs=yes 16350 ;; 16351 16352newsos6) 16353 version_type=linux 16354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16355 shlibpath_var=LD_LIBRARY_PATH 16356 shlibpath_overrides_runpath=yes 16357 ;; 16358 16359nto-qnx*) 16360 version_type=linux 16361 need_lib_prefix=no 16362 need_version=no 16363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16364 soname_spec='${libname}${release}${shared_ext}$major' 16365 shlibpath_var=LD_LIBRARY_PATH 16366 shlibpath_overrides_runpath=yes 16367 ;; 16368 16369openbsd*) 16370 version_type=sunos 16371 sys_lib_dlsearch_path_spec="/usr/lib" 16372 need_lib_prefix=no 16373 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16374 case $host_os in 16375 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16376 *) need_version=no ;; 16377 esac 16378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16379 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16380 shlibpath_var=LD_LIBRARY_PATH 16381 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16382 case $host_os in 16383 openbsd2.[89] | openbsd2.[89].*) 16384 shlibpath_overrides_runpath=no 16385 ;; 16386 *) 16387 shlibpath_overrides_runpath=yes 16388 ;; 16389 esac 16390 else 16391 shlibpath_overrides_runpath=yes 16392 fi 16393 ;; 16394 16395os2*) 16396 libname_spec='$name' 16397 shrext_cmds=".dll" 16398 need_lib_prefix=no 16399 library_names_spec='$libname${shared_ext} $libname.a' 16400 dynamic_linker='OS/2 ld.exe' 16401 shlibpath_var=LIBPATH 16402 ;; 16403 16404osf3* | osf4* | osf5*) 16405 version_type=osf 16406 need_lib_prefix=no 16407 need_version=no 16408 soname_spec='${libname}${release}${shared_ext}$major' 16409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16410 shlibpath_var=LD_LIBRARY_PATH 16411 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16412 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16413 ;; 16414 16415rdos*) 16416 dynamic_linker=no 16417 ;; 16418 16419solaris*) 16420 version_type=linux 16421 need_lib_prefix=no 16422 need_version=no 16423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16424 soname_spec='${libname}${release}${shared_ext}$major' 16425 shlibpath_var=LD_LIBRARY_PATH 16426 shlibpath_overrides_runpath=yes 16427 hardcode_into_libs=yes 16428 # ldd complains unless libraries are executable 16429 postinstall_cmds='chmod +x $lib' 16430 ;; 16431 16432sunos4*) 16433 version_type=sunos 16434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16435 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16436 shlibpath_var=LD_LIBRARY_PATH 16437 shlibpath_overrides_runpath=yes 16438 if test "$with_gnu_ld" = yes; then 16439 need_lib_prefix=no 16440 fi 16441 need_version=yes 16442 ;; 16443 16444sysv4 | sysv4.3*) 16445 version_type=linux 16446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16447 soname_spec='${libname}${release}${shared_ext}$major' 16448 shlibpath_var=LD_LIBRARY_PATH 16449 case $host_vendor in 16450 sni) 16451 shlibpath_overrides_runpath=no 16452 need_lib_prefix=no 16453 export_dynamic_flag_spec='${wl}-Blargedynsym' 16454 runpath_var=LD_RUN_PATH 16455 ;; 16456 siemens) 16457 need_lib_prefix=no 16458 ;; 16459 motorola) 16460 need_lib_prefix=no 16461 need_version=no 16462 shlibpath_overrides_runpath=no 16463 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16464 ;; 16465 esac 16466 ;; 16467 16468sysv4*MP*) 16469 if test -d /usr/nec ;then 16470 version_type=linux 16471 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16472 soname_spec='$libname${shared_ext}.$major' 16473 shlibpath_var=LD_LIBRARY_PATH 16474 fi 16475 ;; 16476 16477sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16478 version_type=freebsd-elf 16479 need_lib_prefix=no 16480 need_version=no 16481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16482 soname_spec='${libname}${release}${shared_ext}$major' 16483 shlibpath_var=LD_LIBRARY_PATH 16484 hardcode_into_libs=yes 16485 if test "$with_gnu_ld" = yes; then 16486 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16487 shlibpath_overrides_runpath=no 16488 else 16489 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16490 shlibpath_overrides_runpath=yes 16491 case $host_os in 16492 sco3.2v5*) 16493 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16494 ;; 16495 esac 16496 fi 16497 sys_lib_dlsearch_path_spec='/usr/lib' 16498 ;; 16499 16500uts4*) 16501 version_type=linux 16502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16503 soname_spec='${libname}${release}${shared_ext}$major' 16504 shlibpath_var=LD_LIBRARY_PATH 16505 ;; 16506 16507*) 16508 dynamic_linker=no 16509 ;; 16510esac 16511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16512$as_echo "$dynamic_linker" >&6; } 16513test "$dynamic_linker" = no && can_build_shared=no 16514 16515if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then : 16516 $as_echo_n "(cached) " >&6 16517else 16518 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 16519fi 16520 16521sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 16522if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then : 16523 $as_echo_n "(cached) " >&6 16524else 16525 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 16526fi 16527 16528sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 16529 16530variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16531if test "$GCC" = yes; then 16532 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16533fi 16534 16535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16536$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16537hardcode_action_F77= 16538if test -n "$hardcode_libdir_flag_spec_F77" || \ 16539 test -n "$runpath_var_F77" || \ 16540 test "X$hardcode_automatic_F77" = "Xyes" ; then 16541 16542 # We can hardcode non-existant directories. 16543 if test "$hardcode_direct_F77" != no && 16544 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16545 # have to relink, otherwise we might link with an installed library 16546 # when we should be linking with a yet-to-be-installed one 16547 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16548 test "$hardcode_minus_L_F77" != no; then 16549 # Linking always hardcodes the temporary library directory. 16550 hardcode_action_F77=relink 16551 else 16552 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16553 hardcode_action_F77=immediate 16554 fi 16555else 16556 # We cannot hardcode anything, or else we can only hardcode existing 16557 # directories. 16558 hardcode_action_F77=unsupported 16559fi 16560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5 16561$as_echo "$hardcode_action_F77" >&6; } 16562 16563if test "$hardcode_action_F77" = relink; then 16564 # Fast installation is not supported 16565 enable_fast_install=no 16566elif test "$shlibpath_overrides_runpath" = yes || 16567 test "$enable_shared" = no; then 16568 # Fast installation is not necessary 16569 enable_fast_install=needless 16570fi 16571 16572 16573# The else clause should only fire when bootstrapping the 16574# libtool distribution, otherwise you forgot to ship ltmain.sh 16575# with your package, and you will get complaints that there are 16576# no rules to generate ltmain.sh. 16577if test -f "$ltmain"; then 16578 # See if we are running on zsh, and set the options which allow our commands through 16579 # without removal of \ escapes. 16580 if test -n "${ZSH_VERSION+set}" ; then 16581 setopt NO_GLOB_SUBST 16582 fi 16583 # Now quote all the things that may contain metacharacters while being 16584 # careful not to overquote the AC_SUBSTed values. We take copies of the 16585 # variables and quote the copies for generation of the libtool script. 16586 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16587 SED SHELL STRIP \ 16588 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16589 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16590 deplibs_check_method reload_flag reload_cmds need_locks \ 16591 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16592 lt_cv_sys_global_symbol_to_c_name_address \ 16593 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16594 old_postinstall_cmds old_postuninstall_cmds \ 16595 compiler_F77 \ 16596 CC_F77 \ 16597 LD_F77 \ 16598 lt_prog_compiler_wl_F77 \ 16599 lt_prog_compiler_pic_F77 \ 16600 lt_prog_compiler_static_F77 \ 16601 lt_prog_compiler_no_builtin_flag_F77 \ 16602 export_dynamic_flag_spec_F77 \ 16603 thread_safe_flag_spec_F77 \ 16604 whole_archive_flag_spec_F77 \ 16605 enable_shared_with_static_runtimes_F77 \ 16606 old_archive_cmds_F77 \ 16607 old_archive_from_new_cmds_F77 \ 16608 predep_objects_F77 \ 16609 postdep_objects_F77 \ 16610 predeps_F77 \ 16611 postdeps_F77 \ 16612 compiler_lib_search_path_F77 \ 16613 compiler_lib_search_dirs_F77 \ 16614 archive_cmds_F77 \ 16615 archive_expsym_cmds_F77 \ 16616 postinstall_cmds_F77 \ 16617 postuninstall_cmds_F77 \ 16618 old_archive_from_expsyms_cmds_F77 \ 16619 allow_undefined_flag_F77 \ 16620 no_undefined_flag_F77 \ 16621 export_symbols_cmds_F77 \ 16622 hardcode_libdir_flag_spec_F77 \ 16623 hardcode_libdir_flag_spec_ld_F77 \ 16624 hardcode_libdir_separator_F77 \ 16625 hardcode_automatic_F77 \ 16626 module_cmds_F77 \ 16627 module_expsym_cmds_F77 \ 16628 lt_cv_prog_compiler_c_o_F77 \ 16629 fix_srcfile_path_F77 \ 16630 exclude_expsyms_F77 \ 16631 include_expsyms_F77; do 16632 16633 case $var in 16634 old_archive_cmds_F77 | \ 16635 old_archive_from_new_cmds_F77 | \ 16636 archive_cmds_F77 | \ 16637 archive_expsym_cmds_F77 | \ 16638 module_cmds_F77 | \ 16639 module_expsym_cmds_F77 | \ 16640 old_archive_from_expsyms_cmds_F77 | \ 16641 export_symbols_cmds_F77 | \ 16642 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16643 postinstall_cmds | postuninstall_cmds | \ 16644 old_postinstall_cmds | old_postuninstall_cmds | \ 16645 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16646 # Double-quote double-evaled strings. 16647 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16648 ;; 16649 *) 16650 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16651 ;; 16652 esac 16653 done 16654 16655 case $lt_echo in 16656 *'\$0 --fallback-echo"') 16657 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16658 ;; 16659 esac 16660 16661cfgfile="$ofile" 16662 16663 cat <<__EOF__ >> "$cfgfile" 16664# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16665 16666# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16667 16668# Shell to use when invoking shell scripts. 16669SHELL=$lt_SHELL 16670 16671# Whether or not to build shared libraries. 16672build_libtool_libs=$enable_shared 16673 16674# Whether or not to build static libraries. 16675build_old_libs=$enable_static 16676 16677# Whether or not to add -lc for building shared libraries. 16678build_libtool_need_lc=$archive_cmds_need_lc_F77 16679 16680# Whether or not to disallow shared libs when runtime libs are static 16681allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16682 16683# Whether or not to optimize for fast installation. 16684fast_install=$enable_fast_install 16685 16686# The host system. 16687host_alias=$host_alias 16688host=$host 16689host_os=$host_os 16690 16691# The build system. 16692build_alias=$build_alias 16693build=$build 16694build_os=$build_os 16695 16696# An echo program that does not interpret backslashes. 16697echo=$lt_echo 16698 16699# The archiver. 16700AR=$lt_AR 16701AR_FLAGS=$lt_AR_FLAGS 16702 16703# A C compiler. 16704LTCC=$lt_LTCC 16705 16706# LTCC compiler flags. 16707LTCFLAGS=$lt_LTCFLAGS 16708 16709# A language-specific compiler. 16710CC=$lt_compiler_F77 16711 16712# Is the compiler the GNU C compiler? 16713with_gcc=$GCC_F77 16714 16715# An ERE matcher. 16716EGREP=$lt_EGREP 16717 16718# The linker used to build libraries. 16719LD=$lt_LD_F77 16720 16721# Whether we need hard or soft links. 16722LN_S=$lt_LN_S 16723 16724# A BSD-compatible nm program. 16725NM=$lt_NM 16726 16727# A symbol stripping program 16728STRIP=$lt_STRIP 16729 16730# Used to examine libraries when file_magic_cmd begins "file" 16731MAGIC_CMD=$MAGIC_CMD 16732 16733# Used on cygwin: DLL creation program. 16734DLLTOOL="$DLLTOOL" 16735 16736# Used on cygwin: object dumper. 16737OBJDUMP="$OBJDUMP" 16738 16739# Used on cygwin: assembler. 16740AS="$AS" 16741 16742# The name of the directory that contains temporary libtool files. 16743objdir=$objdir 16744 16745# How to create reloadable object files. 16746reload_flag=$lt_reload_flag 16747reload_cmds=$lt_reload_cmds 16748 16749# How to pass a linker flag through the compiler. 16750wl=$lt_lt_prog_compiler_wl_F77 16751 16752# Object file suffix (normally "o"). 16753objext="$ac_objext" 16754 16755# Old archive suffix (normally "a"). 16756libext="$libext" 16757 16758# Shared library suffix (normally ".so"). 16759shrext_cmds='$shrext_cmds' 16760 16761# Executable file suffix (normally ""). 16762exeext="$exeext" 16763 16764# Additional compiler flags for building library objects. 16765pic_flag=$lt_lt_prog_compiler_pic_F77 16766pic_mode=$pic_mode 16767 16768# What is the maximum length of a command? 16769max_cmd_len=$lt_cv_sys_max_cmd_len 16770 16771# Does compiler simultaneously support -c and -o options? 16772compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16773 16774# Must we lock files when doing compilation? 16775need_locks=$lt_need_locks 16776 16777# Do we need the lib prefix for modules? 16778need_lib_prefix=$need_lib_prefix 16779 16780# Do we need a version for libraries? 16781need_version=$need_version 16782 16783# Whether dlopen is supported. 16784dlopen_support=$enable_dlopen 16785 16786# Whether dlopen of programs is supported. 16787dlopen_self=$enable_dlopen_self 16788 16789# Whether dlopen of statically linked programs is supported. 16790dlopen_self_static=$enable_dlopen_self_static 16791 16792# Compiler flag to prevent dynamic linking. 16793link_static_flag=$lt_lt_prog_compiler_static_F77 16794 16795# Compiler flag to turn off builtin functions. 16796no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16797 16798# Compiler flag to allow reflexive dlopens. 16799export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16800 16801# Compiler flag to generate shared objects directly from archives. 16802whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16803 16804# Compiler flag to generate thread-safe objects. 16805thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16806 16807# Library versioning type. 16808version_type=$version_type 16809 16810# Format of library name prefix. 16811libname_spec=$lt_libname_spec 16812 16813# List of archive names. First name is the real one, the rest are links. 16814# The last name is the one that the linker finds with -lNAME. 16815library_names_spec=$lt_library_names_spec 16816 16817# The coded name of the library, if different from the real name. 16818soname_spec=$lt_soname_spec 16819 16820# Commands used to build and install an old-style archive. 16821RANLIB=$lt_RANLIB 16822old_archive_cmds=$lt_old_archive_cmds_F77 16823old_postinstall_cmds=$lt_old_postinstall_cmds 16824old_postuninstall_cmds=$lt_old_postuninstall_cmds 16825 16826# Create an old-style archive from a shared archive. 16827old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16828 16829# Create a temporary old-style archive to link instead of a shared archive. 16830old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16831 16832# Commands used to build and install a shared archive. 16833archive_cmds=$lt_archive_cmds_F77 16834archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16835postinstall_cmds=$lt_postinstall_cmds 16836postuninstall_cmds=$lt_postuninstall_cmds 16837 16838# Commands used to build a loadable module (assumed same as above if empty) 16839module_cmds=$lt_module_cmds_F77 16840module_expsym_cmds=$lt_module_expsym_cmds_F77 16841 16842# Commands to strip libraries. 16843old_striplib=$lt_old_striplib 16844striplib=$lt_striplib 16845 16846# Dependencies to place before the objects being linked to create a 16847# shared library. 16848predep_objects=$lt_predep_objects_F77 16849 16850# Dependencies to place after the objects being linked to create a 16851# shared library. 16852postdep_objects=$lt_postdep_objects_F77 16853 16854# Dependencies to place before the objects being linked to create a 16855# shared library. 16856predeps=$lt_predeps_F77 16857 16858# Dependencies to place after the objects being linked to create a 16859# shared library. 16860postdeps=$lt_postdeps_F77 16861 16862# The directories searched by this compiler when creating a shared 16863# library 16864compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 16865 16866# The library search path used internally by the compiler when linking 16867# a shared library. 16868compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16869 16870# Method to check whether dependent libraries are shared objects. 16871deplibs_check_method=$lt_deplibs_check_method 16872 16873# Command to use when deplibs_check_method == file_magic. 16874file_magic_cmd=$lt_file_magic_cmd 16875 16876# Flag that allows shared libraries with undefined symbols to be built. 16877allow_undefined_flag=$lt_allow_undefined_flag_F77 16878 16879# Flag that forces no undefined symbols. 16880no_undefined_flag=$lt_no_undefined_flag_F77 16881 16882# Commands used to finish a libtool library installation in a directory. 16883finish_cmds=$lt_finish_cmds 16884 16885# Same as above, but a single script fragment to be evaled but not shown. 16886finish_eval=$lt_finish_eval 16887 16888# Take the output of nm and produce a listing of raw symbols and C names. 16889global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16890 16891# Transform the output of nm in a proper C declaration 16892global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16893 16894# Transform the output of nm in a C name address pair 16895global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16896 16897# This is the shared library runtime path variable. 16898runpath_var=$runpath_var 16899 16900# This is the shared library path variable. 16901shlibpath_var=$shlibpath_var 16902 16903# Is shlibpath searched before the hard-coded library search path? 16904shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16905 16906# How to hardcode a shared library path into an executable. 16907hardcode_action=$hardcode_action_F77 16908 16909# Whether we should hardcode library paths into libraries. 16910hardcode_into_libs=$hardcode_into_libs 16911 16912# Flag to hardcode \$libdir into a binary during linking. 16913# This must work even if \$libdir does not exist. 16914hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16915 16916# If ld is used when linking, flag to hardcode \$libdir into 16917# a binary during linking. This must work even if \$libdir does 16918# not exist. 16919hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16920 16921# Whether we need a single -rpath flag with a separated argument. 16922hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16923 16924# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16925# resulting binary. 16926hardcode_direct=$hardcode_direct_F77 16927 16928# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16929# resulting binary. 16930hardcode_minus_L=$hardcode_minus_L_F77 16931 16932# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16933# the resulting binary. 16934hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16935 16936# Set to yes if building a shared library automatically hardcodes DIR into the library 16937# and all subsequent libraries and executables linked against it. 16938hardcode_automatic=$hardcode_automatic_F77 16939 16940# Variables whose values should be saved in libtool wrapper scripts and 16941# restored at relink time. 16942variables_saved_for_relink="$variables_saved_for_relink" 16943 16944# Whether libtool must link a program against all its dependency libraries. 16945link_all_deplibs=$link_all_deplibs_F77 16946 16947# Compile-time system search path for libraries 16948sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16949 16950# Run-time system search path for libraries 16951sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16952 16953# Fix the shell variable \$srcfile for the compiler. 16954fix_srcfile_path=$lt_fix_srcfile_path 16955 16956# Set to yes if exported symbols are required. 16957always_export_symbols=$always_export_symbols_F77 16958 16959# The commands to list exported symbols. 16960export_symbols_cmds=$lt_export_symbols_cmds_F77 16961 16962# The commands to extract the exported symbol list from a shared archive. 16963extract_expsyms_cmds=$lt_extract_expsyms_cmds 16964 16965# Symbols that should not be listed in the preloaded symbols. 16966exclude_expsyms=$lt_exclude_expsyms_F77 16967 16968# Symbols that must always be exported. 16969include_expsyms=$lt_include_expsyms_F77 16970 16971# ### END LIBTOOL TAG CONFIG: $tagname 16972 16973__EOF__ 16974 16975 16976else 16977 # If there is no Makefile yet, we rely on a make rule to execute 16978 # `config.status --recheck' to rerun these tests and create the 16979 # libtool script then. 16980 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16981 if test -f "$ltmain_in"; then 16982 test -f Makefile && make "$ltmain" 16983 fi 16984fi 16985 16986 16987ac_ext=cpp 16988ac_cpp='$CXXCPP $CPPFLAGS' 16989ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16990ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16991ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16992 16993CC="$lt_save_CC" 16994 16995 else 16996 tagname="" 16997 fi 16998 ;; 16999 17000 GCJ) 17001 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 17002 17003 17004# Source file extension for Java test sources. 17005ac_ext=java 17006 17007# Object file extension for compiled Java test sources. 17008objext=o 17009objext_GCJ=$objext 17010 17011# Code to be used in simple compile tests 17012lt_simple_compile_test_code="class foo {}" 17013 17014# Code to be used in simple link tests 17015lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' 17016 17017# ltmain only uses $CC for tagged configurations so make sure $CC is set. 17018 17019# If no C compiler was specified, use CC. 17020LTCC=${LTCC-"$CC"} 17021 17022# If no C compiler flags were specified, use CFLAGS. 17023LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 17024 17025# Allow CC to be a program name with arguments. 17026compiler=$CC 17027 17028 17029# save warnings/boilerplate of simple test code 17030ac_outfile=conftest.$ac_objext 17031echo "$lt_simple_compile_test_code" >conftest.$ac_ext 17032eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17033_lt_compiler_boilerplate=`cat conftest.err` 17034$rm conftest* 17035 17036ac_outfile=conftest.$ac_objext 17037echo "$lt_simple_link_test_code" >conftest.$ac_ext 17038eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 17039_lt_linker_boilerplate=`cat conftest.err` 17040$rm -r conftest* 17041 17042 17043# Allow CC to be a program name with arguments. 17044lt_save_CC="$CC" 17045CC=${GCJ-"gcj"} 17046compiler=$CC 17047compiler_GCJ=$CC 17048for cc_temp in $compiler""; do 17049 case $cc_temp in 17050 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17051 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17052 \-*) ;; 17053 *) break;; 17054 esac 17055done 17056cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17057 17058 17059# GCJ did not exist at the time GCC didn't implicitly link libc in. 17060archive_cmds_need_lc_GCJ=no 17061 17062old_archive_cmds_GCJ=$old_archive_cmds 17063 17064 17065lt_prog_compiler_no_builtin_flag_GCJ= 17066 17067if test "$GCC" = yes; then 17068 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 17069 17070 17071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 17072$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 17073if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 17074 $as_echo_n "(cached) " >&6 17075else 17076 lt_cv_prog_compiler_rtti_exceptions=no 17077 ac_outfile=conftest.$ac_objext 17078 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17079 lt_compiler_flag="-fno-rtti -fno-exceptions" 17080 # Insert the option either (1) after the last *FLAGS variable, or 17081 # (2) before a word containing "conftest.", or (3) at the end. 17082 # Note that $ac_compile itself does not contain backslashes and begins 17083 # with a dollar sign (not a hyphen), so the echo should work correctly. 17084 # The option is referenced via a variable to avoid confusing sed. 17085 lt_compile=`echo "$ac_compile" | $SED \ 17086 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17087 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17088 -e 's:$: $lt_compiler_flag:'` 17089 (eval echo "\"\$as_me:17089: $lt_compile\"" >&5) 17090 (eval "$lt_compile" 2>conftest.err) 17091 ac_status=$? 17092 cat conftest.err >&5 17093 echo "$as_me:17093: \$? = $ac_status" >&5 17094 if (exit $ac_status) && test -s "$ac_outfile"; then 17095 # The compiler can only warn and ignore the option if not recognized 17096 # So say no if there are warnings other than the usual output. 17097 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17098 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17099 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17100 lt_cv_prog_compiler_rtti_exceptions=yes 17101 fi 17102 fi 17103 $rm conftest* 17104 17105fi 17106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 17107$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 17108 17109if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 17110 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 17111else 17112 : 17113fi 17114 17115fi 17116 17117lt_prog_compiler_wl_GCJ= 17118lt_prog_compiler_pic_GCJ= 17119lt_prog_compiler_static_GCJ= 17120 17121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 17122$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 17123 17124 if test "$GCC" = yes; then 17125 lt_prog_compiler_wl_GCJ='-Wl,' 17126 lt_prog_compiler_static_GCJ='-static' 17127 17128 case $host_os in 17129 aix*) 17130 # All AIX code is PIC. 17131 if test "$host_cpu" = ia64; then 17132 # AIX 5 now supports IA64 processor 17133 lt_prog_compiler_static_GCJ='-Bstatic' 17134 fi 17135 ;; 17136 17137 amigaos*) 17138 # FIXME: we need at least 68020 code to build shared libraries, but 17139 # adding the `-m68020' flag to GCC prevents building anything better, 17140 # like `-m68040'. 17141 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 17142 ;; 17143 17144 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 17145 # PIC is the default for these OSes. 17146 ;; 17147 17148 mingw* | cygwin* | pw32* | os2*) 17149 # This hack is so that the source file can tell whether it is being 17150 # built for inclusion in a dll (and should export symbols for example). 17151 # Although the cygwin gcc ignores -fPIC, still need this for old-style 17152 # (--disable-auto-import) libraries 17153 17154 ;; 17155 17156 darwin* | rhapsody*) 17157 # PIC is the default on this platform 17158 # Common symbols not allowed in MH_DYLIB files 17159 lt_prog_compiler_pic_GCJ='-fno-common' 17160 ;; 17161 17162 interix[3-9]*) 17163 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 17164 # Instead, we relocate shared libraries at runtime. 17165 ;; 17166 17167 msdosdjgpp*) 17168 # Just because we use GCC doesn't mean we suddenly get shared libraries 17169 # on systems that don't support them. 17170 lt_prog_compiler_can_build_shared_GCJ=no 17171 enable_shared=no 17172 ;; 17173 17174 sysv4*MP*) 17175 if test -d /usr/nec; then 17176 lt_prog_compiler_pic_GCJ=-Kconform_pic 17177 fi 17178 ;; 17179 17180 hpux*) 17181 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17182 # not for PA HP-UX. 17183 case $host_cpu in 17184 hppa*64*|ia64*) 17185 # +Z the default 17186 ;; 17187 *) 17188 lt_prog_compiler_pic_GCJ='-fPIC' 17189 ;; 17190 esac 17191 ;; 17192 17193 *) 17194 lt_prog_compiler_pic_GCJ='-fPIC' 17195 ;; 17196 esac 17197 else 17198 # PORTME Check for flag to pass linker flags through the system compiler. 17199 case $host_os in 17200 aix*) 17201 lt_prog_compiler_wl_GCJ='-Wl,' 17202 if test "$host_cpu" = ia64; then 17203 # AIX 5 now supports IA64 processor 17204 lt_prog_compiler_static_GCJ='-Bstatic' 17205 else 17206 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 17207 fi 17208 ;; 17209 darwin*) 17210 # PIC is the default on this platform 17211 # Common symbols not allowed in MH_DYLIB files 17212 case $cc_basename in 17213 xlc*) 17214 lt_prog_compiler_pic_GCJ='-qnocommon' 17215 lt_prog_compiler_wl_GCJ='-Wl,' 17216 ;; 17217 esac 17218 ;; 17219 17220 mingw* | cygwin* | pw32* | os2*) 17221 # This hack is so that the source file can tell whether it is being 17222 # built for inclusion in a dll (and should export symbols for example). 17223 17224 ;; 17225 17226 hpux9* | hpux10* | hpux11*) 17227 lt_prog_compiler_wl_GCJ='-Wl,' 17228 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 17229 # not for PA HP-UX. 17230 case $host_cpu in 17231 hppa*64*|ia64*) 17232 # +Z the default 17233 ;; 17234 *) 17235 lt_prog_compiler_pic_GCJ='+Z' 17236 ;; 17237 esac 17238 # Is there a better lt_prog_compiler_static that works with the bundled CC? 17239 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 17240 ;; 17241 17242 irix5* | irix6* | nonstopux*) 17243 lt_prog_compiler_wl_GCJ='-Wl,' 17244 # PIC (with -KPIC) is the default. 17245 lt_prog_compiler_static_GCJ='-non_shared' 17246 ;; 17247 17248 newsos6) 17249 lt_prog_compiler_pic_GCJ='-KPIC' 17250 lt_prog_compiler_static_GCJ='-Bstatic' 17251 ;; 17252 17253 linux* | k*bsd*-gnu) 17254 case $cc_basename in 17255 icc* | ecc*) 17256 lt_prog_compiler_wl_GCJ='-Wl,' 17257 lt_prog_compiler_pic_GCJ='-KPIC' 17258 lt_prog_compiler_static_GCJ='-static' 17259 ;; 17260 pgcc* | pgf77* | pgf90* | pgf95*) 17261 # Portland Group compilers (*not* the Pentium gcc compiler, 17262 # which looks to be a dead project) 17263 lt_prog_compiler_wl_GCJ='-Wl,' 17264 lt_prog_compiler_pic_GCJ='-fpic' 17265 lt_prog_compiler_static_GCJ='-Bstatic' 17266 ;; 17267 ccc*) 17268 lt_prog_compiler_wl_GCJ='-Wl,' 17269 # All Alpha code is PIC. 17270 lt_prog_compiler_static_GCJ='-non_shared' 17271 ;; 17272 *) 17273 case `$CC -V 2>&1 | sed 5q` in 17274 *Sun\ C*) 17275 # Sun C 5.9 17276 lt_prog_compiler_pic_GCJ='-KPIC' 17277 lt_prog_compiler_static_GCJ='-Bstatic' 17278 lt_prog_compiler_wl_GCJ='-Wl,' 17279 ;; 17280 *Sun\ F*) 17281 # Sun Fortran 8.3 passes all unrecognized flags to the linker 17282 lt_prog_compiler_pic_GCJ='-KPIC' 17283 lt_prog_compiler_static_GCJ='-Bstatic' 17284 lt_prog_compiler_wl_GCJ='' 17285 ;; 17286 esac 17287 ;; 17288 esac 17289 ;; 17290 17291 osf3* | osf4* | osf5*) 17292 lt_prog_compiler_wl_GCJ='-Wl,' 17293 # All OSF/1 code is PIC. 17294 lt_prog_compiler_static_GCJ='-non_shared' 17295 ;; 17296 17297 rdos*) 17298 lt_prog_compiler_static_GCJ='-non_shared' 17299 ;; 17300 17301 solaris*) 17302 lt_prog_compiler_pic_GCJ='-KPIC' 17303 lt_prog_compiler_static_GCJ='-Bstatic' 17304 case $cc_basename in 17305 f77* | f90* | f95*) 17306 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 17307 *) 17308 lt_prog_compiler_wl_GCJ='-Wl,';; 17309 esac 17310 ;; 17311 17312 sunos4*) 17313 lt_prog_compiler_wl_GCJ='-Qoption ld ' 17314 lt_prog_compiler_pic_GCJ='-PIC' 17315 lt_prog_compiler_static_GCJ='-Bstatic' 17316 ;; 17317 17318 sysv4 | sysv4.2uw2* | sysv4.3*) 17319 lt_prog_compiler_wl_GCJ='-Wl,' 17320 lt_prog_compiler_pic_GCJ='-KPIC' 17321 lt_prog_compiler_static_GCJ='-Bstatic' 17322 ;; 17323 17324 sysv4*MP*) 17325 if test -d /usr/nec ;then 17326 lt_prog_compiler_pic_GCJ='-Kconform_pic' 17327 lt_prog_compiler_static_GCJ='-Bstatic' 17328 fi 17329 ;; 17330 17331 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17332 lt_prog_compiler_wl_GCJ='-Wl,' 17333 lt_prog_compiler_pic_GCJ='-KPIC' 17334 lt_prog_compiler_static_GCJ='-Bstatic' 17335 ;; 17336 17337 unicos*) 17338 lt_prog_compiler_wl_GCJ='-Wl,' 17339 lt_prog_compiler_can_build_shared_GCJ=no 17340 ;; 17341 17342 uts4*) 17343 lt_prog_compiler_pic_GCJ='-pic' 17344 lt_prog_compiler_static_GCJ='-Bstatic' 17345 ;; 17346 17347 *) 17348 lt_prog_compiler_can_build_shared_GCJ=no 17349 ;; 17350 esac 17351 fi 17352 17353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5 17354$as_echo "$lt_prog_compiler_pic_GCJ" >&6; } 17355 17356# 17357# Check to make sure the PIC flag actually works. 17358# 17359if test -n "$lt_prog_compiler_pic_GCJ"; then 17360 17361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 17362$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; } 17363if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then : 17364 $as_echo_n "(cached) " >&6 17365else 17366 lt_cv_prog_compiler_pic_works_GCJ=no 17367 ac_outfile=conftest.$ac_objext 17368 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17369 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 17370 # Insert the option either (1) after the last *FLAGS variable, or 17371 # (2) before a word containing "conftest.", or (3) at the end. 17372 # Note that $ac_compile itself does not contain backslashes and begins 17373 # with a dollar sign (not a hyphen), so the echo should work correctly. 17374 # The option is referenced via a variable to avoid confusing sed. 17375 lt_compile=`echo "$ac_compile" | $SED \ 17376 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17377 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17378 -e 's:$: $lt_compiler_flag:'` 17379 (eval echo "\"\$as_me:17379: $lt_compile\"" >&5) 17380 (eval "$lt_compile" 2>conftest.err) 17381 ac_status=$? 17382 cat conftest.err >&5 17383 echo "$as_me:17383: \$? = $ac_status" >&5 17384 if (exit $ac_status) && test -s "$ac_outfile"; then 17385 # The compiler can only warn and ignore the option if not recognized 17386 # So say no if there are warnings other than the usual output. 17387 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17388 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17389 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17390 lt_cv_prog_compiler_pic_works_GCJ=yes 17391 fi 17392 fi 17393 $rm conftest* 17394 17395fi 17396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5 17397$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; } 17398 17399if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then 17400 case $lt_prog_compiler_pic_GCJ in 17401 "" | " "*) ;; 17402 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 17403 esac 17404else 17405 lt_prog_compiler_pic_GCJ= 17406 lt_prog_compiler_can_build_shared_GCJ=no 17407fi 17408 17409fi 17410case $host_os in 17411 # For platforms which do not support PIC, -DPIC is meaningless: 17412 *djgpp*) 17413 lt_prog_compiler_pic_GCJ= 17414 ;; 17415 *) 17416 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 17417 ;; 17418esac 17419 17420# 17421# Check to make sure the static flag actually works. 17422# 17423wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 17424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17425$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 17426if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then : 17427 $as_echo_n "(cached) " >&6 17428else 17429 lt_cv_prog_compiler_static_works_GCJ=no 17430 save_LDFLAGS="$LDFLAGS" 17431 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17432 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17433 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17434 # The linker can only warn and ignore the option if not recognized 17435 # So say no if there are warnings 17436 if test -s conftest.err; then 17437 # Append any errors to the config.log. 17438 cat conftest.err 1>&5 17439 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17440 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17441 if diff conftest.exp conftest.er2 >/dev/null; then 17442 lt_cv_prog_compiler_static_works_GCJ=yes 17443 fi 17444 else 17445 lt_cv_prog_compiler_static_works_GCJ=yes 17446 fi 17447 fi 17448 $rm -r conftest* 17449 LDFLAGS="$save_LDFLAGS" 17450 17451fi 17452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5 17453$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; } 17454 17455if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then 17456 : 17457else 17458 lt_prog_compiler_static_GCJ= 17459fi 17460 17461 17462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 17463$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17464if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then : 17465 $as_echo_n "(cached) " >&6 17466else 17467 lt_cv_prog_compiler_c_o_GCJ=no 17468 $rm -r conftest 2>/dev/null 17469 mkdir conftest 17470 cd conftest 17471 mkdir out 17472 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17473 17474 lt_compiler_flag="-o out/conftest2.$ac_objext" 17475 # Insert the option either (1) after the last *FLAGS variable, or 17476 # (2) before a word containing "conftest.", or (3) at the end. 17477 # Note that $ac_compile itself does not contain backslashes and begins 17478 # with a dollar sign (not a hyphen), so the echo should work correctly. 17479 lt_compile=`echo "$ac_compile" | $SED \ 17480 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17481 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17482 -e 's:$: $lt_compiler_flag:'` 17483 (eval echo "\"\$as_me:17483: $lt_compile\"" >&5) 17484 (eval "$lt_compile" 2>out/conftest.err) 17485 ac_status=$? 17486 cat out/conftest.err >&5 17487 echo "$as_me:17487: \$? = $ac_status" >&5 17488 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17489 then 17490 # The compiler can only warn and ignore the option if not recognized 17491 # So say no if there are warnings 17492 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17493 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17494 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17495 lt_cv_prog_compiler_c_o_GCJ=yes 17496 fi 17497 fi 17498 chmod u+w . 2>&5 17499 $rm conftest* 17500 # SGI C++ compiler will create directory out/ii_files/ for 17501 # template instantiation 17502 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17503 $rm out/* && rmdir out 17504 cd .. 17505 rmdir conftest 17506 $rm conftest* 17507 17508fi 17509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17510$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; } 17511 17512 17513hard_links="nottested" 17514if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17515 # do not overwrite the value of need_locks provided by the user 17516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 17517$as_echo_n "checking if we can lock with hard links... " >&6; } 17518 hard_links=yes 17519 $rm conftest* 17520 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17521 touch conftest.a 17522 ln conftest.a conftest.b 2>&5 || hard_links=no 17523 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 17525$as_echo "$hard_links" >&6; } 17526 if test "$hard_links" = no; then 17527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17528$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17529 need_locks=warn 17530 fi 17531else 17532 need_locks=no 17533fi 17534 17535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17536$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 17537 17538 runpath_var= 17539 allow_undefined_flag_GCJ= 17540 enable_shared_with_static_runtimes_GCJ=no 17541 archive_cmds_GCJ= 17542 archive_expsym_cmds_GCJ= 17543 old_archive_From_new_cmds_GCJ= 17544 old_archive_from_expsyms_cmds_GCJ= 17545 export_dynamic_flag_spec_GCJ= 17546 whole_archive_flag_spec_GCJ= 17547 thread_safe_flag_spec_GCJ= 17548 hardcode_libdir_flag_spec_GCJ= 17549 hardcode_libdir_flag_spec_ld_GCJ= 17550 hardcode_libdir_separator_GCJ= 17551 hardcode_direct_GCJ=no 17552 hardcode_minus_L_GCJ=no 17553 hardcode_shlibpath_var_GCJ=unsupported 17554 link_all_deplibs_GCJ=unknown 17555 hardcode_automatic_GCJ=no 17556 module_cmds_GCJ= 17557 module_expsym_cmds_GCJ= 17558 always_export_symbols_GCJ=no 17559 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17560 # include_expsyms should be a list of space-separated symbols to be *always* 17561 # included in the symbol list 17562 include_expsyms_GCJ= 17563 # exclude_expsyms can be an extended regexp of symbols to exclude 17564 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17565 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17566 # as well as any symbol that contains `d'. 17567 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 17568 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17569 # platforms (ab)use it in PIC code, but their linkers get confused if 17570 # the symbol is explicitly referenced. Since portable code cannot 17571 # rely on this symbol name, it's probably fine to never include it in 17572 # preloaded symbol tables. 17573 # Exclude shared library initialization/finalization symbols. 17574 extract_expsyms_cmds= 17575 # Just being paranoid about ensuring that cc_basename is set. 17576 for cc_temp in $compiler""; do 17577 case $cc_temp in 17578 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17579 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17580 \-*) ;; 17581 *) break;; 17582 esac 17583done 17584cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17585 17586 case $host_os in 17587 cygwin* | mingw* | pw32*) 17588 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17589 # When not using gcc, we currently assume that we are using 17590 # Microsoft Visual C++. 17591 if test "$GCC" != yes; then 17592 with_gnu_ld=no 17593 fi 17594 ;; 17595 interix*) 17596 # we just hope/assume this is gcc and not c89 (= MSVC++) 17597 with_gnu_ld=yes 17598 ;; 17599 openbsd*) 17600 with_gnu_ld=no 17601 ;; 17602 esac 17603 17604 ld_shlibs_GCJ=yes 17605 if test "$with_gnu_ld" = yes; then 17606 # If archive_cmds runs LD, not CC, wlarc should be empty 17607 wlarc='${wl}' 17608 17609 # Set some defaults for GNU ld with shared library support. These 17610 # are reset later if shared libraries are not supported. Putting them 17611 # here allows them to be overridden if necessary. 17612 runpath_var=LD_RUN_PATH 17613 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17614 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17615 # ancient GNU ld didn't support --whole-archive et. al. 17616 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17617 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17618 else 17619 whole_archive_flag_spec_GCJ= 17620 fi 17621 supports_anon_versioning=no 17622 case `$LD -v 2>/dev/null` in 17623 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17624 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17625 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17626 *\ 2.11.*) ;; # other 2.11 versions 17627 *) supports_anon_versioning=yes ;; 17628 esac 17629 17630 # See if GNU ld supports shared libraries. 17631 case $host_os in 17632 aix[3-9]*) 17633 # On AIX/PPC, the GNU linker is very broken 17634 if test "$host_cpu" != ia64; then 17635 ld_shlibs_GCJ=no 17636 cat <<EOF 1>&2 17637 17638*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17639*** to be unable to reliably create shared libraries on AIX. 17640*** Therefore, libtool is disabling shared libraries support. If you 17641*** really care for shared libraries, you may want to modify your PATH 17642*** so that a non-GNU linker is found, and then restart. 17643 17644EOF 17645 fi 17646 ;; 17647 17648 amigaos*) 17649 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 17650 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17651 hardcode_minus_L_GCJ=yes 17652 17653 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17654 # that the semantics of dynamic libraries on AmigaOS, at least up 17655 # to version 4, is to share data among multiple programs linked 17656 # with the same dynamic library. Since this doesn't match the 17657 # behavior of shared libraries on other platforms, we can't use 17658 # them. 17659 ld_shlibs_GCJ=no 17660 ;; 17661 17662 beos*) 17663 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17664 allow_undefined_flag_GCJ=unsupported 17665 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17666 # support --undefined. This deserves some investigation. FIXME 17667 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17668 else 17669 ld_shlibs_GCJ=no 17670 fi 17671 ;; 17672 17673 cygwin* | mingw* | pw32*) 17674 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17675 # as there is no search path for DLLs. 17676 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17677 allow_undefined_flag_GCJ=unsupported 17678 always_export_symbols_GCJ=no 17679 enable_shared_with_static_runtimes_GCJ=yes 17680 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 17681 17682 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17683 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17684 # If the export-symbols file already is a .def file (1st line 17685 # is EXPORTS), use it as is; otherwise, prepend... 17686 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17687 cp $export_symbols $output_objdir/$soname.def; 17688 else 17689 echo EXPORTS > $output_objdir/$soname.def; 17690 cat $export_symbols >> $output_objdir/$soname.def; 17691 fi~ 17692 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17693 else 17694 ld_shlibs_GCJ=no 17695 fi 17696 ;; 17697 17698 interix[3-9]*) 17699 hardcode_direct_GCJ=no 17700 hardcode_shlibpath_var_GCJ=no 17701 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17702 export_dynamic_flag_spec_GCJ='${wl}-E' 17703 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17704 # Instead, shared libraries are loaded at an image base (0x10000000 by 17705 # default) and relocated if they conflict, which is a slow very memory 17706 # consuming and fragmenting process. To avoid this, we pick a random, 17707 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17708 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17709 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 17710 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 17711 ;; 17712 17713 gnu* | linux* | k*bsd*-gnu) 17714 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17715 tmp_addflag= 17716 case $cc_basename,$host_cpu in 17717 pgcc*) # Portland Group C compiler 17718 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 17719 tmp_addflag=' $pic_flag' 17720 ;; 17721 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17722 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 17723 tmp_addflag=' $pic_flag -Mnomain' ;; 17724 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17725 tmp_addflag=' -i_dynamic' ;; 17726 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17727 tmp_addflag=' -i_dynamic -nofor_main' ;; 17728 ifc* | ifort*) # Intel Fortran compiler 17729 tmp_addflag=' -nofor_main' ;; 17730 esac 17731 case `$CC -V 2>&1 | sed 5q` in 17732 *Sun\ C*) # Sun C 5.9 17733 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 17734 tmp_sharedflag='-G' ;; 17735 *Sun\ F*) # Sun Fortran 8.3 17736 tmp_sharedflag='-G' ;; 17737 *) 17738 tmp_sharedflag='-shared' ;; 17739 esac 17740 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17741 17742 if test $supports_anon_versioning = yes; then 17743 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17744 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17745 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17746 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17747 fi 17748 else 17749 ld_shlibs_GCJ=no 17750 fi 17751 ;; 17752 17753 netbsd*) 17754 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17755 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17756 wlarc= 17757 else 17758 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17759 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17760 fi 17761 ;; 17762 17763 solaris*) 17764 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17765 ld_shlibs_GCJ=no 17766 cat <<EOF 1>&2 17767 17768*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17769*** create shared libraries on Solaris systems. Therefore, libtool 17770*** is disabling shared libraries support. We urge you to upgrade GNU 17771*** binutils to release 2.9.1 or newer. Another option is to modify 17772*** your PATH or compiler configuration so that the native linker is 17773*** used, and then restart. 17774 17775EOF 17776 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17777 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17778 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17779 else 17780 ld_shlibs_GCJ=no 17781 fi 17782 ;; 17783 17784 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17785 case `$LD -v 2>&1` in 17786 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17787 ld_shlibs_GCJ=no 17788 cat <<_LT_EOF 1>&2 17789 17790*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17791*** reliably create shared libraries on SCO systems. Therefore, libtool 17792*** is disabling shared libraries support. We urge you to upgrade GNU 17793*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17794*** your PATH or compiler configuration so that the native linker is 17795*** used, and then restart. 17796 17797_LT_EOF 17798 ;; 17799 *) 17800 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17801 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17802 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17803 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17804 else 17805 ld_shlibs_GCJ=no 17806 fi 17807 ;; 17808 esac 17809 ;; 17810 17811 sunos4*) 17812 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17813 wlarc= 17814 hardcode_direct_GCJ=yes 17815 hardcode_shlibpath_var_GCJ=no 17816 ;; 17817 17818 *) 17819 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17820 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17821 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17822 else 17823 ld_shlibs_GCJ=no 17824 fi 17825 ;; 17826 esac 17827 17828 if test "$ld_shlibs_GCJ" = no; then 17829 runpath_var= 17830 hardcode_libdir_flag_spec_GCJ= 17831 export_dynamic_flag_spec_GCJ= 17832 whole_archive_flag_spec_GCJ= 17833 fi 17834 else 17835 # PORTME fill in a description of your system's linker (not GNU ld) 17836 case $host_os in 17837 aix3*) 17838 allow_undefined_flag_GCJ=unsupported 17839 always_export_symbols_GCJ=yes 17840 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 17841 # Note: this linker hardcodes the directories in LIBPATH if there 17842 # are no directories specified by -L. 17843 hardcode_minus_L_GCJ=yes 17844 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17845 # Neither direct hardcoding nor static linking is supported with a 17846 # broken collect2. 17847 hardcode_direct_GCJ=unsupported 17848 fi 17849 ;; 17850 17851 aix[4-9]*) 17852 if test "$host_cpu" = ia64; then 17853 # On IA64, the linker does run time linking by default, so we don't 17854 # have to do anything special. 17855 aix_use_runtimelinking=no 17856 exp_sym_flag='-Bexport' 17857 no_entry_flag="" 17858 else 17859 # If we're using GNU nm, then we don't want the "-C" option. 17860 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17861 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17862 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 17863 else 17864 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 17865 fi 17866 aix_use_runtimelinking=no 17867 17868 # Test if we are trying to use run time linking or normal 17869 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17870 # need to do runtime linking. 17871 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 17872 for ld_flag in $LDFLAGS; do 17873 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17874 aix_use_runtimelinking=yes 17875 break 17876 fi 17877 done 17878 ;; 17879 esac 17880 17881 exp_sym_flag='-bexport' 17882 no_entry_flag='-bnoentry' 17883 fi 17884 17885 # When large executables or shared objects are built, AIX ld can 17886 # have problems creating the table of contents. If linking a library 17887 # or program results in "error TOC overflow" add -mminimal-toc to 17888 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17889 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17890 17891 archive_cmds_GCJ='' 17892 hardcode_direct_GCJ=yes 17893 hardcode_libdir_separator_GCJ=':' 17894 link_all_deplibs_GCJ=yes 17895 17896 if test "$GCC" = yes; then 17897 case $host_os in aix4.[012]|aix4.[012].*) 17898 # We only want to do this on AIX 4.2 and lower, the check 17899 # below for broken collect2 doesn't work under 4.3+ 17900 collect2name=`${CC} -print-prog-name=collect2` 17901 if test -f "$collect2name" && \ 17902 strings "$collect2name" | grep resolve_lib_name >/dev/null 17903 then 17904 # We have reworked collect2 17905 : 17906 else 17907 # We have old collect2 17908 hardcode_direct_GCJ=unsupported 17909 # It fails to find uninstalled libraries when the uninstalled 17910 # path is not listed in the libpath. Setting hardcode_minus_L 17911 # to unsupported forces relinking 17912 hardcode_minus_L_GCJ=yes 17913 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17914 hardcode_libdir_separator_GCJ= 17915 fi 17916 ;; 17917 esac 17918 shared_flag='-shared' 17919 if test "$aix_use_runtimelinking" = yes; then 17920 shared_flag="$shared_flag "'${wl}-G' 17921 fi 17922 else 17923 # not using gcc 17924 if test "$host_cpu" = ia64; then 17925 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17926 # chokes on -Wl,-G. The following line is correct: 17927 shared_flag='-G' 17928 else 17929 if test "$aix_use_runtimelinking" = yes; then 17930 shared_flag='${wl}-G' 17931 else 17932 shared_flag='${wl}-bM:SRE' 17933 fi 17934 fi 17935 fi 17936 17937 # It seems that -bexpall does not export symbols beginning with 17938 # underscore (_), so it is better to generate a list of symbols to export. 17939 always_export_symbols_GCJ=yes 17940 if test "$aix_use_runtimelinking" = yes; then 17941 # Warning - without using the other runtime loading flags (-brtl), 17942 # -berok will link without error, but may produce a broken library. 17943 allow_undefined_flag_GCJ='-berok' 17944 # Determine the default libpath from the value encoded in an empty executable. 17945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17946/* end confdefs.h. */ 17947 17948int 17949main () 17950{ 17951 17952 ; 17953 return 0; 17954} 17955_ACEOF 17956if ac_fn_cxx_try_link "$LINENO"; then : 17957 17958lt_aix_libpath_sed=' 17959 /Import File Strings/,/^$/ { 17960 /^0/ { 17961 s/^0 *\(.*\)$/\1/ 17962 p 17963 } 17964 }' 17965aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17966# Check for a 64-bit object if we didn't find anything. 17967if test -z "$aix_libpath"; then 17968 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17969fi 17970fi 17971rm -f core conftest.err conftest.$ac_objext \ 17972 conftest$ac_exeext conftest.$ac_ext 17973if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17974 17975 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17976 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 17977 else 17978 if test "$host_cpu" = ia64; then 17979 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17980 allow_undefined_flag_GCJ="-z nodefs" 17981 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 17982 else 17983 # Determine the default libpath from the value encoded in an empty executable. 17984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17985/* end confdefs.h. */ 17986 17987int 17988main () 17989{ 17990 17991 ; 17992 return 0; 17993} 17994_ACEOF 17995if ac_fn_cxx_try_link "$LINENO"; then : 17996 17997lt_aix_libpath_sed=' 17998 /Import File Strings/,/^$/ { 17999 /^0/ { 18000 s/^0 *\(.*\)$/\1/ 18001 p 18002 } 18003 }' 18004aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18005# Check for a 64-bit object if we didn't find anything. 18006if test -z "$aix_libpath"; then 18007 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 18008fi 18009fi 18010rm -f core conftest.err conftest.$ac_objext \ 18011 conftest$ac_exeext conftest.$ac_ext 18012if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 18013 18014 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 18015 # Warning - without using the other run time loading flags, 18016 # -berok will link without error, but may produce a broken library. 18017 no_undefined_flag_GCJ=' ${wl}-bernotok' 18018 allow_undefined_flag_GCJ=' ${wl}-berok' 18019 # Exported symbols can be pulled into shared objects from archives 18020 whole_archive_flag_spec_GCJ='$convenience' 18021 archive_cmds_need_lc_GCJ=yes 18022 # This is similar to how AIX traditionally builds its shared libraries. 18023 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 18024 fi 18025 fi 18026 ;; 18027 18028 amigaos*) 18029 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 18030 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18031 hardcode_minus_L_GCJ=yes 18032 # see comment about different semantics on the GNU ld section 18033 ld_shlibs_GCJ=no 18034 ;; 18035 18036 bsdi[45]*) 18037 export_dynamic_flag_spec_GCJ=-rdynamic 18038 ;; 18039 18040 cygwin* | mingw* | pw32*) 18041 # When not using gcc, we currently assume that we are using 18042 # Microsoft Visual C++. 18043 # hardcode_libdir_flag_spec is actually meaningless, as there is 18044 # no search path for DLLs. 18045 hardcode_libdir_flag_spec_GCJ=' ' 18046 allow_undefined_flag_GCJ=unsupported 18047 # Tell ltmain to make .lib files, not .a files. 18048 libext=lib 18049 # Tell ltmain to make .dll files, not .so files. 18050 shrext_cmds=".dll" 18051 # FIXME: Setting linknames here is a bad hack. 18052 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 18053 # The linker will automatically build a .lib file if we build a DLL. 18054 old_archive_From_new_cmds_GCJ='true' 18055 # FIXME: Should let the user specify the lib program. 18056 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' 18057 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 18058 enable_shared_with_static_runtimes_GCJ=yes 18059 ;; 18060 18061 darwin* | rhapsody*) 18062 case $host_os in 18063 rhapsody* | darwin1.[012]) 18064 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 18065 ;; 18066 *) # Darwin 1.3 on 18067 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 18068 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 18069 else 18070 case ${MACOSX_DEPLOYMENT_TARGET} in 18071 10.[012]) 18072 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 18073 ;; 18074 10.*) 18075 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 18076 ;; 18077 esac 18078 fi 18079 ;; 18080 esac 18081 archive_cmds_need_lc_GCJ=no 18082 hardcode_direct_GCJ=no 18083 hardcode_automatic_GCJ=yes 18084 hardcode_shlibpath_var_GCJ=unsupported 18085 whole_archive_flag_spec_GCJ='' 18086 link_all_deplibs_GCJ=yes 18087 if test "$GCC" = yes ; then 18088 output_verbose_link_cmd='echo' 18089 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 18090 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 18091 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 18092 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 18093 else 18094 case $cc_basename in 18095 xlc*) 18096 output_verbose_link_cmd='echo' 18097 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 18098 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 18099 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 18100 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 18101 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 18102 ;; 18103 *) 18104 ld_shlibs_GCJ=no 18105 ;; 18106 esac 18107 fi 18108 ;; 18109 18110 dgux*) 18111 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18112 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18113 hardcode_shlibpath_var_GCJ=no 18114 ;; 18115 18116 freebsd1*) 18117 ld_shlibs_GCJ=no 18118 ;; 18119 18120 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 18121 # support. Future versions do this automatically, but an explicit c++rt0.o 18122 # does not break anything, and helps significantly (at the cost of a little 18123 # extra space). 18124 freebsd2.2*) 18125 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 18126 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18127 hardcode_direct_GCJ=yes 18128 hardcode_shlibpath_var_GCJ=no 18129 ;; 18130 18131 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 18132 freebsd2*) 18133 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18134 hardcode_direct_GCJ=yes 18135 hardcode_minus_L_GCJ=yes 18136 hardcode_shlibpath_var_GCJ=no 18137 ;; 18138 18139 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 18140 freebsd* | dragonfly*) 18141 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 18142 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18143 hardcode_direct_GCJ=yes 18144 hardcode_shlibpath_var_GCJ=no 18145 ;; 18146 18147 hpux9*) 18148 if test "$GCC" = yes; then 18149 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 18150 else 18151 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 18152 fi 18153 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18154 hardcode_libdir_separator_GCJ=: 18155 hardcode_direct_GCJ=yes 18156 18157 # hardcode_minus_L: Not really in the search PATH, 18158 # but as the default location of the library. 18159 hardcode_minus_L_GCJ=yes 18160 export_dynamic_flag_spec_GCJ='${wl}-E' 18161 ;; 18162 18163 hpux10*) 18164 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18165 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18166 else 18167 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 18168 fi 18169 if test "$with_gnu_ld" = no; then 18170 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18171 hardcode_libdir_separator_GCJ=: 18172 18173 hardcode_direct_GCJ=yes 18174 export_dynamic_flag_spec_GCJ='${wl}-E' 18175 18176 # hardcode_minus_L: Not really in the search PATH, 18177 # but as the default location of the library. 18178 hardcode_minus_L_GCJ=yes 18179 fi 18180 ;; 18181 18182 hpux11*) 18183 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 18184 case $host_cpu in 18185 hppa*64*) 18186 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18187 ;; 18188 ia64*) 18189 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18190 ;; 18191 *) 18192 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18193 ;; 18194 esac 18195 else 18196 case $host_cpu in 18197 hppa*64*) 18198 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18199 ;; 18200 ia64*) 18201 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 18202 ;; 18203 *) 18204 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 18205 ;; 18206 esac 18207 fi 18208 if test "$with_gnu_ld" = no; then 18209 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 18210 hardcode_libdir_separator_GCJ=: 18211 18212 case $host_cpu in 18213 hppa*64*|ia64*) 18214 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 18215 hardcode_direct_GCJ=no 18216 hardcode_shlibpath_var_GCJ=no 18217 ;; 18218 *) 18219 hardcode_direct_GCJ=yes 18220 export_dynamic_flag_spec_GCJ='${wl}-E' 18221 18222 # hardcode_minus_L: Not really in the search PATH, 18223 # but as the default location of the library. 18224 hardcode_minus_L_GCJ=yes 18225 ;; 18226 esac 18227 fi 18228 ;; 18229 18230 irix5* | irix6* | nonstopux*) 18231 if test "$GCC" = yes; then 18232 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 18233 else 18234 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 18235 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 18236 fi 18237 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18238 hardcode_libdir_separator_GCJ=: 18239 link_all_deplibs_GCJ=yes 18240 ;; 18241 18242 netbsd*) 18243 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18244 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 18245 else 18246 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 18247 fi 18248 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18249 hardcode_direct_GCJ=yes 18250 hardcode_shlibpath_var_GCJ=no 18251 ;; 18252 18253 newsos6) 18254 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18255 hardcode_direct_GCJ=yes 18256 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18257 hardcode_libdir_separator_GCJ=: 18258 hardcode_shlibpath_var_GCJ=no 18259 ;; 18260 18261 openbsd*) 18262 if test -f /usr/libexec/ld.so; then 18263 hardcode_direct_GCJ=yes 18264 hardcode_shlibpath_var_GCJ=no 18265 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18266 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18267 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 18268 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18269 export_dynamic_flag_spec_GCJ='${wl}-E' 18270 else 18271 case $host_os in 18272 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 18273 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18274 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18275 ;; 18276 *) 18277 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18278 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18279 ;; 18280 esac 18281 fi 18282 else 18283 ld_shlibs_GCJ=no 18284 fi 18285 ;; 18286 18287 os2*) 18288 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18289 hardcode_minus_L_GCJ=yes 18290 allow_undefined_flag_GCJ=unsupported 18291 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 18292 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 18293 ;; 18294 18295 osf3*) 18296 if test "$GCC" = yes; then 18297 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18298 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 18299 else 18300 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18301 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 18302 fi 18303 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18304 hardcode_libdir_separator_GCJ=: 18305 ;; 18306 18307 osf4* | osf5*) # as osf3* with the addition of -msym flag 18308 if test "$GCC" = yes; then 18309 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18310 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 18311 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18312 else 18313 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18314 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 18315 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 18316 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 18317 18318 # Both c and cxx compiler support -rpath directly 18319 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 18320 fi 18321 hardcode_libdir_separator_GCJ=: 18322 ;; 18323 18324 solaris*) 18325 no_undefined_flag_GCJ=' -z text' 18326 if test "$GCC" = yes; then 18327 wlarc='${wl}' 18328 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18329 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18330 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 18331 else 18332 wlarc='' 18333 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18334 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18335 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18336 fi 18337 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18338 hardcode_shlibpath_var_GCJ=no 18339 case $host_os in 18340 solaris2.[0-5] | solaris2.[0-5].*) ;; 18341 *) 18342 # The compiler driver will combine and reorder linker options, 18343 # but understands `-z linker_flag'. GCC discards it without `$wl', 18344 # but is careful enough not to reorder. 18345 # Supported since Solaris 2.6 (maybe 2.5.1?) 18346 if test "$GCC" = yes; then 18347 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 18348 else 18349 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' 18350 fi 18351 ;; 18352 esac 18353 link_all_deplibs_GCJ=yes 18354 ;; 18355 18356 sunos4*) 18357 if test "x$host_vendor" = xsequent; then 18358 # Use $CC to link under sequent, because it throws in some extra .o 18359 # files that make .init and .fini sections work. 18360 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18361 else 18362 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18363 fi 18364 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18365 hardcode_direct_GCJ=yes 18366 hardcode_minus_L_GCJ=yes 18367 hardcode_shlibpath_var_GCJ=no 18368 ;; 18369 18370 sysv4) 18371 case $host_vendor in 18372 sni) 18373 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18374 hardcode_direct_GCJ=yes # is this really true??? 18375 ;; 18376 siemens) 18377 ## LD is ld it makes a PLAMLIB 18378 ## CC just makes a GrossModule. 18379 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18380 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18381 hardcode_direct_GCJ=no 18382 ;; 18383 motorola) 18384 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18385 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18386 ;; 18387 esac 18388 runpath_var='LD_RUN_PATH' 18389 hardcode_shlibpath_var_GCJ=no 18390 ;; 18391 18392 sysv4.3*) 18393 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18394 hardcode_shlibpath_var_GCJ=no 18395 export_dynamic_flag_spec_GCJ='-Bexport' 18396 ;; 18397 18398 sysv4*MP*) 18399 if test -d /usr/nec; then 18400 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18401 hardcode_shlibpath_var_GCJ=no 18402 runpath_var=LD_RUN_PATH 18403 hardcode_runpath_var=yes 18404 ld_shlibs_GCJ=yes 18405 fi 18406 ;; 18407 18408 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 18409 no_undefined_flag_GCJ='${wl}-z,text' 18410 archive_cmds_need_lc_GCJ=no 18411 hardcode_shlibpath_var_GCJ=no 18412 runpath_var='LD_RUN_PATH' 18413 18414 if test "$GCC" = yes; then 18415 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18416 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18417 else 18418 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18419 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18420 fi 18421 ;; 18422 18423 sysv5* | sco3.2v5* | sco5v6*) 18424 # Note: We can NOT use -z defs as we might desire, because we do not 18425 # link with -lc, and that would cause any symbols used from libc to 18426 # always be unresolved, which means just about no library would 18427 # ever link correctly. If we're not using GNU ld we use -z text 18428 # though, which does catch some bad symbols but isn't as heavy-handed 18429 # as -z defs. 18430 no_undefined_flag_GCJ='${wl}-z,text' 18431 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18432 archive_cmds_need_lc_GCJ=no 18433 hardcode_shlibpath_var_GCJ=no 18434 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18435 hardcode_libdir_separator_GCJ=':' 18436 link_all_deplibs_GCJ=yes 18437 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18438 runpath_var='LD_RUN_PATH' 18439 18440 if test "$GCC" = yes; then 18441 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18442 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18443 else 18444 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18445 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18446 fi 18447 ;; 18448 18449 uts4*) 18450 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18451 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18452 hardcode_shlibpath_var_GCJ=no 18453 ;; 18454 18455 *) 18456 ld_shlibs_GCJ=no 18457 ;; 18458 esac 18459 fi 18460 18461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5 18462$as_echo "$ld_shlibs_GCJ" >&6; } 18463test "$ld_shlibs_GCJ" = no && can_build_shared=no 18464 18465# 18466# Do we need to explicitly link libc? 18467# 18468case "x$archive_cmds_need_lc_GCJ" in 18469x|xyes) 18470 # Assume -lc should be added 18471 archive_cmds_need_lc_GCJ=yes 18472 18473 if test "$enable_shared" = yes && test "$GCC" = yes; then 18474 case $archive_cmds_GCJ in 18475 *'~'*) 18476 # FIXME: we may have to deal with multi-command sequences. 18477 ;; 18478 '$CC '*) 18479 # Test whether the compiler implicitly links with -lc since on some 18480 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18481 # to ld, don't add -lc before -lgcc. 18482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 18483$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 18484 $rm conftest* 18485 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18486 18487 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 18488 (eval $ac_compile) 2>&5 18489 ac_status=$? 18490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18491 test $ac_status = 0; } 2>conftest.err; then 18492 soname=conftest 18493 lib=conftest 18494 libobjs=conftest.$ac_objext 18495 deplibs= 18496 wl=$lt_prog_compiler_wl_GCJ 18497 pic_flag=$lt_prog_compiler_pic_GCJ 18498 compiler_flags=-v 18499 linker_flags=-v 18500 verstring= 18501 output_objdir=. 18502 libname=conftest 18503 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18504 allow_undefined_flag_GCJ= 18505 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5 18506 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18507 ac_status=$? 18508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18509 test $ac_status = 0; } 18510 then 18511 archive_cmds_need_lc_GCJ=no 18512 else 18513 archive_cmds_need_lc_GCJ=yes 18514 fi 18515 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18516 else 18517 cat conftest.err 1>&5 18518 fi 18519 $rm conftest* 18520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5 18521$as_echo "$archive_cmds_need_lc_GCJ" >&6; } 18522 ;; 18523 esac 18524 fi 18525 ;; 18526esac 18527 18528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 18529$as_echo_n "checking dynamic linker characteristics... " >&6; } 18530library_names_spec= 18531libname_spec='lib$name' 18532soname_spec= 18533shrext_cmds=".so" 18534postinstall_cmds= 18535postuninstall_cmds= 18536finish_cmds= 18537finish_eval= 18538shlibpath_var= 18539shlibpath_overrides_runpath=unknown 18540version_type=none 18541dynamic_linker="$host_os ld.so" 18542sys_lib_dlsearch_path_spec="/lib /usr/lib" 18543 18544need_lib_prefix=unknown 18545hardcode_into_libs=no 18546 18547# when you set need_version to no, make sure it does not cause -set_version 18548# flags to be left without arguments 18549need_version=unknown 18550 18551case $host_os in 18552aix3*) 18553 version_type=linux 18554 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18555 shlibpath_var=LIBPATH 18556 18557 # AIX 3 has no versioning support, so we append a major version to the name. 18558 soname_spec='${libname}${release}${shared_ext}$major' 18559 ;; 18560 18561aix[4-9]*) 18562 version_type=linux 18563 need_lib_prefix=no 18564 need_version=no 18565 hardcode_into_libs=yes 18566 if test "$host_cpu" = ia64; then 18567 # AIX 5 supports IA64 18568 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18569 shlibpath_var=LD_LIBRARY_PATH 18570 else 18571 # With GCC up to 2.95.x, collect2 would create an import file 18572 # for dependence libraries. The import file would start with 18573 # the line `#! .'. This would cause the generated library to 18574 # depend on `.', always an invalid library. This was fixed in 18575 # development snapshots of GCC prior to 3.0. 18576 case $host_os in 18577 aix4 | aix4.[01] | aix4.[01].*) 18578 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18579 echo ' yes ' 18580 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18581 : 18582 else 18583 can_build_shared=no 18584 fi 18585 ;; 18586 esac 18587 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18588 # soname into executable. Probably we can add versioning support to 18589 # collect2, so additional links can be useful in future. 18590 if test "$aix_use_runtimelinking" = yes; then 18591 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18592 # instead of lib<name>.a to let people know that these are not 18593 # typical AIX shared libraries. 18594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18595 else 18596 # We preserve .a as extension for shared libraries through AIX4.2 18597 # and later when we are not doing run time linking. 18598 library_names_spec='${libname}${release}.a $libname.a' 18599 soname_spec='${libname}${release}${shared_ext}$major' 18600 fi 18601 shlibpath_var=LIBPATH 18602 fi 18603 ;; 18604 18605amigaos*) 18606 library_names_spec='$libname.ixlibrary $libname.a' 18607 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18608 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' 18609 ;; 18610 18611beos*) 18612 library_names_spec='${libname}${shared_ext}' 18613 dynamic_linker="$host_os ld.so" 18614 shlibpath_var=LIBRARY_PATH 18615 ;; 18616 18617bsdi[45]*) 18618 version_type=linux 18619 need_version=no 18620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18621 soname_spec='${libname}${release}${shared_ext}$major' 18622 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18623 shlibpath_var=LD_LIBRARY_PATH 18624 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18625 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18626 # the default ld.so.conf also contains /usr/contrib/lib and 18627 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18628 # libtool to hard-code these into programs 18629 ;; 18630 18631cygwin* | mingw* | pw32*) 18632 version_type=windows 18633 shrext_cmds=".dll" 18634 need_version=no 18635 need_lib_prefix=no 18636 18637 case $GCC,$host_os in 18638 yes,cygwin* | yes,mingw* | yes,pw32*) 18639 library_names_spec='$libname.dll.a' 18640 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18641 postinstall_cmds='base_file=`basename \${file}`~ 18642 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18643 dldir=$destdir/`dirname \$dlpath`~ 18644 test -d \$dldir || mkdir -p \$dldir~ 18645 $install_prog $dir/$dlname \$dldir/$dlname~ 18646 chmod a+x \$dldir/$dlname' 18647 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18648 dlpath=$dir/\$dldll~ 18649 $rm \$dlpath' 18650 shlibpath_overrides_runpath=yes 18651 18652 case $host_os in 18653 cygwin*) 18654 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18655 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18656 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18657 ;; 18658 mingw*) 18659 # MinGW DLLs use traditional 'lib' prefix 18660 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18661 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18662 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18663 # It is most probably a Windows format PATH printed by 18664 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18665 # path with ; separators, and with drive letters. We can handle the 18666 # drive letters (cygwin fileutils understands them), so leave them, 18667 # especially as we might pass files found there to a mingw objdump, 18668 # which wouldn't understand a cygwinified path. Ahh. 18669 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18670 else 18671 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18672 fi 18673 ;; 18674 pw32*) 18675 # pw32 DLLs use 'pw' prefix rather than 'lib' 18676 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18677 ;; 18678 esac 18679 ;; 18680 18681 *) 18682 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18683 ;; 18684 esac 18685 dynamic_linker='Win32 ld.exe' 18686 # FIXME: first we should search . and the directory the executable is in 18687 shlibpath_var=PATH 18688 ;; 18689 18690darwin* | rhapsody*) 18691 dynamic_linker="$host_os dyld" 18692 version_type=darwin 18693 need_lib_prefix=no 18694 need_version=no 18695 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18696 soname_spec='${libname}${release}${major}$shared_ext' 18697 shlibpath_overrides_runpath=yes 18698 shlibpath_var=DYLD_LIBRARY_PATH 18699 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18700 18701 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18702 ;; 18703 18704dgux*) 18705 version_type=linux 18706 need_lib_prefix=no 18707 need_version=no 18708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18709 soname_spec='${libname}${release}${shared_ext}$major' 18710 shlibpath_var=LD_LIBRARY_PATH 18711 ;; 18712 18713freebsd1*) 18714 dynamic_linker=no 18715 ;; 18716 18717freebsd* | dragonfly*) 18718 # DragonFly does not have aout. When/if they implement a new 18719 # versioning mechanism, adjust this. 18720 if test -x /usr/bin/objformat; then 18721 objformat=`/usr/bin/objformat` 18722 else 18723 case $host_os in 18724 freebsd[123]*) objformat=aout ;; 18725 *) objformat=elf ;; 18726 esac 18727 fi 18728 version_type=freebsd-$objformat 18729 case $version_type in 18730 freebsd-elf*) 18731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18732 need_version=no 18733 need_lib_prefix=no 18734 ;; 18735 freebsd-*) 18736 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18737 need_version=yes 18738 ;; 18739 esac 18740 shlibpath_var=LD_LIBRARY_PATH 18741 case $host_os in 18742 freebsd2*) 18743 shlibpath_overrides_runpath=yes 18744 ;; 18745 freebsd3.[01]* | freebsdelf3.[01]*) 18746 shlibpath_overrides_runpath=yes 18747 hardcode_into_libs=yes 18748 ;; 18749 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18750 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18751 shlibpath_overrides_runpath=no 18752 hardcode_into_libs=yes 18753 ;; 18754 *) # from 4.6 on, and DragonFly 18755 shlibpath_overrides_runpath=yes 18756 hardcode_into_libs=yes 18757 ;; 18758 esac 18759 ;; 18760 18761gnu*) 18762 version_type=linux 18763 need_lib_prefix=no 18764 need_version=no 18765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18766 soname_spec='${libname}${release}${shared_ext}$major' 18767 shlibpath_var=LD_LIBRARY_PATH 18768 hardcode_into_libs=yes 18769 ;; 18770 18771hpux9* | hpux10* | hpux11*) 18772 # Give a soname corresponding to the major version so that dld.sl refuses to 18773 # link against other versions. 18774 version_type=sunos 18775 need_lib_prefix=no 18776 need_version=no 18777 case $host_cpu in 18778 ia64*) 18779 shrext_cmds='.so' 18780 hardcode_into_libs=yes 18781 dynamic_linker="$host_os dld.so" 18782 shlibpath_var=LD_LIBRARY_PATH 18783 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18785 soname_spec='${libname}${release}${shared_ext}$major' 18786 if test "X$HPUX_IA64_MODE" = X32; then 18787 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18788 else 18789 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18790 fi 18791 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18792 ;; 18793 hppa*64*) 18794 shrext_cmds='.sl' 18795 hardcode_into_libs=yes 18796 dynamic_linker="$host_os dld.sl" 18797 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18798 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18800 soname_spec='${libname}${release}${shared_ext}$major' 18801 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18802 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18803 ;; 18804 *) 18805 shrext_cmds='.sl' 18806 dynamic_linker="$host_os dld.sl" 18807 shlibpath_var=SHLIB_PATH 18808 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18810 soname_spec='${libname}${release}${shared_ext}$major' 18811 ;; 18812 esac 18813 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18814 postinstall_cmds='chmod 555 $lib' 18815 ;; 18816 18817interix[3-9]*) 18818 version_type=linux 18819 need_lib_prefix=no 18820 need_version=no 18821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18822 soname_spec='${libname}${release}${shared_ext}$major' 18823 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18824 shlibpath_var=LD_LIBRARY_PATH 18825 shlibpath_overrides_runpath=no 18826 hardcode_into_libs=yes 18827 ;; 18828 18829irix5* | irix6* | nonstopux*) 18830 case $host_os in 18831 nonstopux*) version_type=nonstopux ;; 18832 *) 18833 if test "$lt_cv_prog_gnu_ld" = yes; then 18834 version_type=linux 18835 else 18836 version_type=irix 18837 fi ;; 18838 esac 18839 need_lib_prefix=no 18840 need_version=no 18841 soname_spec='${libname}${release}${shared_ext}$major' 18842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18843 case $host_os in 18844 irix5* | nonstopux*) 18845 libsuff= shlibsuff= 18846 ;; 18847 *) 18848 case $LD in # libtool.m4 will add one of these switches to LD 18849 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18850 libsuff= shlibsuff= libmagic=32-bit;; 18851 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18852 libsuff=32 shlibsuff=N32 libmagic=N32;; 18853 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18854 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18855 *) libsuff= shlibsuff= libmagic=never-match;; 18856 esac 18857 ;; 18858 esac 18859 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18860 shlibpath_overrides_runpath=no 18861 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18862 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18863 hardcode_into_libs=yes 18864 ;; 18865 18866# No shared lib support for Linux oldld, aout, or coff. 18867linux*oldld* | linux*aout* | linux*coff*) 18868 dynamic_linker=no 18869 ;; 18870 18871# This must be Linux ELF. 18872linux* | k*bsd*-gnu) 18873 version_type=linux 18874 need_lib_prefix=no 18875 need_version=no 18876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18877 soname_spec='${libname}${release}${shared_ext}$major' 18878 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18879 shlibpath_var=LD_LIBRARY_PATH 18880 shlibpath_overrides_runpath=no 18881 # This implies no fast_install, which is unacceptable. 18882 # Some rework will be needed to allow for fast_install 18883 # before this can be enabled. 18884 hardcode_into_libs=yes 18885 18886 # Append ld.so.conf contents to the search path 18887 if test -f /etc/ld.so.conf; then 18888 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' ' '` 18889 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18890 fi 18891 18892 # We used to test for /lib/ld.so.1 and disable shared libraries on 18893 # powerpc, because MkLinux only supported shared libraries with the 18894 # GNU dynamic linker. Since this was broken with cross compilers, 18895 # most powerpc-linux boxes support dynamic linking these days and 18896 # people can always --disable-shared, the test was removed, and we 18897 # assume the GNU/Linux dynamic linker is in use. 18898 dynamic_linker='GNU/Linux ld.so' 18899 ;; 18900 18901netbsd*) 18902 version_type=sunos 18903 need_lib_prefix=no 18904 need_version=no 18905 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18907 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18908 dynamic_linker='NetBSD (a.out) ld.so' 18909 else 18910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18911 soname_spec='${libname}${release}${shared_ext}$major' 18912 dynamic_linker='NetBSD ld.elf_so' 18913 fi 18914 shlibpath_var=LD_LIBRARY_PATH 18915 shlibpath_overrides_runpath=yes 18916 hardcode_into_libs=yes 18917 ;; 18918 18919newsos6) 18920 version_type=linux 18921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18922 shlibpath_var=LD_LIBRARY_PATH 18923 shlibpath_overrides_runpath=yes 18924 ;; 18925 18926nto-qnx*) 18927 version_type=linux 18928 need_lib_prefix=no 18929 need_version=no 18930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18931 soname_spec='${libname}${release}${shared_ext}$major' 18932 shlibpath_var=LD_LIBRARY_PATH 18933 shlibpath_overrides_runpath=yes 18934 ;; 18935 18936openbsd*) 18937 version_type=sunos 18938 sys_lib_dlsearch_path_spec="/usr/lib" 18939 need_lib_prefix=no 18940 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18941 case $host_os in 18942 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18943 *) need_version=no ;; 18944 esac 18945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18946 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18947 shlibpath_var=LD_LIBRARY_PATH 18948 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18949 case $host_os in 18950 openbsd2.[89] | openbsd2.[89].*) 18951 shlibpath_overrides_runpath=no 18952 ;; 18953 *) 18954 shlibpath_overrides_runpath=yes 18955 ;; 18956 esac 18957 else 18958 shlibpath_overrides_runpath=yes 18959 fi 18960 ;; 18961 18962os2*) 18963 libname_spec='$name' 18964 shrext_cmds=".dll" 18965 need_lib_prefix=no 18966 library_names_spec='$libname${shared_ext} $libname.a' 18967 dynamic_linker='OS/2 ld.exe' 18968 shlibpath_var=LIBPATH 18969 ;; 18970 18971osf3* | osf4* | osf5*) 18972 version_type=osf 18973 need_lib_prefix=no 18974 need_version=no 18975 soname_spec='${libname}${release}${shared_ext}$major' 18976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18977 shlibpath_var=LD_LIBRARY_PATH 18978 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18979 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18980 ;; 18981 18982rdos*) 18983 dynamic_linker=no 18984 ;; 18985 18986solaris*) 18987 version_type=linux 18988 need_lib_prefix=no 18989 need_version=no 18990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18991 soname_spec='${libname}${release}${shared_ext}$major' 18992 shlibpath_var=LD_LIBRARY_PATH 18993 shlibpath_overrides_runpath=yes 18994 hardcode_into_libs=yes 18995 # ldd complains unless libraries are executable 18996 postinstall_cmds='chmod +x $lib' 18997 ;; 18998 18999sunos4*) 19000 version_type=sunos 19001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 19002 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 19003 shlibpath_var=LD_LIBRARY_PATH 19004 shlibpath_overrides_runpath=yes 19005 if test "$with_gnu_ld" = yes; then 19006 need_lib_prefix=no 19007 fi 19008 need_version=yes 19009 ;; 19010 19011sysv4 | sysv4.3*) 19012 version_type=linux 19013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19014 soname_spec='${libname}${release}${shared_ext}$major' 19015 shlibpath_var=LD_LIBRARY_PATH 19016 case $host_vendor in 19017 sni) 19018 shlibpath_overrides_runpath=no 19019 need_lib_prefix=no 19020 export_dynamic_flag_spec='${wl}-Blargedynsym' 19021 runpath_var=LD_RUN_PATH 19022 ;; 19023 siemens) 19024 need_lib_prefix=no 19025 ;; 19026 motorola) 19027 need_lib_prefix=no 19028 need_version=no 19029 shlibpath_overrides_runpath=no 19030 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 19031 ;; 19032 esac 19033 ;; 19034 19035sysv4*MP*) 19036 if test -d /usr/nec ;then 19037 version_type=linux 19038 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 19039 soname_spec='$libname${shared_ext}.$major' 19040 shlibpath_var=LD_LIBRARY_PATH 19041 fi 19042 ;; 19043 19044sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 19045 version_type=freebsd-elf 19046 need_lib_prefix=no 19047 need_version=no 19048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 19049 soname_spec='${libname}${release}${shared_ext}$major' 19050 shlibpath_var=LD_LIBRARY_PATH 19051 hardcode_into_libs=yes 19052 if test "$with_gnu_ld" = yes; then 19053 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 19054 shlibpath_overrides_runpath=no 19055 else 19056 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 19057 shlibpath_overrides_runpath=yes 19058 case $host_os in 19059 sco3.2v5*) 19060 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 19061 ;; 19062 esac 19063 fi 19064 sys_lib_dlsearch_path_spec='/usr/lib' 19065 ;; 19066 19067uts4*) 19068 version_type=linux 19069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 19070 soname_spec='${libname}${release}${shared_ext}$major' 19071 shlibpath_var=LD_LIBRARY_PATH 19072 ;; 19073 19074*) 19075 dynamic_linker=no 19076 ;; 19077esac 19078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 19079$as_echo "$dynamic_linker" >&6; } 19080test "$dynamic_linker" = no && can_build_shared=no 19081 19082if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then : 19083 $as_echo_n "(cached) " >&6 19084else 19085 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 19086fi 19087 19088sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 19089if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then : 19090 $as_echo_n "(cached) " >&6 19091else 19092 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 19093fi 19094 19095sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 19096 19097variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 19098if test "$GCC" = yes; then 19099 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 19100fi 19101 19102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 19103$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 19104hardcode_action_GCJ= 19105if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 19106 test -n "$runpath_var_GCJ" || \ 19107 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 19108 19109 # We can hardcode non-existant directories. 19110 if test "$hardcode_direct_GCJ" != no && 19111 # If the only mechanism to avoid hardcoding is shlibpath_var, we 19112 # have to relink, otherwise we might link with an installed library 19113 # when we should be linking with a yet-to-be-installed one 19114 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 19115 test "$hardcode_minus_L_GCJ" != no; then 19116 # Linking always hardcodes the temporary library directory. 19117 hardcode_action_GCJ=relink 19118 else 19119 # We can link without hardcoding, and we can hardcode nonexisting dirs. 19120 hardcode_action_GCJ=immediate 19121 fi 19122else 19123 # We cannot hardcode anything, or else we can only hardcode existing 19124 # directories. 19125 hardcode_action_GCJ=unsupported 19126fi 19127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5 19128$as_echo "$hardcode_action_GCJ" >&6; } 19129 19130if test "$hardcode_action_GCJ" = relink; then 19131 # Fast installation is not supported 19132 enable_fast_install=no 19133elif test "$shlibpath_overrides_runpath" = yes || 19134 test "$enable_shared" = no; then 19135 # Fast installation is not necessary 19136 enable_fast_install=needless 19137fi 19138 19139 19140# The else clause should only fire when bootstrapping the 19141# libtool distribution, otherwise you forgot to ship ltmain.sh 19142# with your package, and you will get complaints that there are 19143# no rules to generate ltmain.sh. 19144if test -f "$ltmain"; then 19145 # See if we are running on zsh, and set the options which allow our commands through 19146 # without removal of \ escapes. 19147 if test -n "${ZSH_VERSION+set}" ; then 19148 setopt NO_GLOB_SUBST 19149 fi 19150 # Now quote all the things that may contain metacharacters while being 19151 # careful not to overquote the AC_SUBSTed values. We take copies of the 19152 # variables and quote the copies for generation of the libtool script. 19153 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19154 SED SHELL STRIP \ 19155 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19156 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19157 deplibs_check_method reload_flag reload_cmds need_locks \ 19158 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19159 lt_cv_sys_global_symbol_to_c_name_address \ 19160 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19161 old_postinstall_cmds old_postuninstall_cmds \ 19162 compiler_GCJ \ 19163 CC_GCJ \ 19164 LD_GCJ \ 19165 lt_prog_compiler_wl_GCJ \ 19166 lt_prog_compiler_pic_GCJ \ 19167 lt_prog_compiler_static_GCJ \ 19168 lt_prog_compiler_no_builtin_flag_GCJ \ 19169 export_dynamic_flag_spec_GCJ \ 19170 thread_safe_flag_spec_GCJ \ 19171 whole_archive_flag_spec_GCJ \ 19172 enable_shared_with_static_runtimes_GCJ \ 19173 old_archive_cmds_GCJ \ 19174 old_archive_from_new_cmds_GCJ \ 19175 predep_objects_GCJ \ 19176 postdep_objects_GCJ \ 19177 predeps_GCJ \ 19178 postdeps_GCJ \ 19179 compiler_lib_search_path_GCJ \ 19180 compiler_lib_search_dirs_GCJ \ 19181 archive_cmds_GCJ \ 19182 archive_expsym_cmds_GCJ \ 19183 postinstall_cmds_GCJ \ 19184 postuninstall_cmds_GCJ \ 19185 old_archive_from_expsyms_cmds_GCJ \ 19186 allow_undefined_flag_GCJ \ 19187 no_undefined_flag_GCJ \ 19188 export_symbols_cmds_GCJ \ 19189 hardcode_libdir_flag_spec_GCJ \ 19190 hardcode_libdir_flag_spec_ld_GCJ \ 19191 hardcode_libdir_separator_GCJ \ 19192 hardcode_automatic_GCJ \ 19193 module_cmds_GCJ \ 19194 module_expsym_cmds_GCJ \ 19195 lt_cv_prog_compiler_c_o_GCJ \ 19196 fix_srcfile_path_GCJ \ 19197 exclude_expsyms_GCJ \ 19198 include_expsyms_GCJ; do 19199 19200 case $var in 19201 old_archive_cmds_GCJ | \ 19202 old_archive_from_new_cmds_GCJ | \ 19203 archive_cmds_GCJ | \ 19204 archive_expsym_cmds_GCJ | \ 19205 module_cmds_GCJ | \ 19206 module_expsym_cmds_GCJ | \ 19207 old_archive_from_expsyms_cmds_GCJ | \ 19208 export_symbols_cmds_GCJ | \ 19209 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19210 postinstall_cmds | postuninstall_cmds | \ 19211 old_postinstall_cmds | old_postuninstall_cmds | \ 19212 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19213 # Double-quote double-evaled strings. 19214 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19215 ;; 19216 *) 19217 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19218 ;; 19219 esac 19220 done 19221 19222 case $lt_echo in 19223 *'\$0 --fallback-echo"') 19224 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19225 ;; 19226 esac 19227 19228cfgfile="$ofile" 19229 19230 cat <<__EOF__ >> "$cfgfile" 19231# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19232 19233# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19234 19235# Shell to use when invoking shell scripts. 19236SHELL=$lt_SHELL 19237 19238# Whether or not to build shared libraries. 19239build_libtool_libs=$enable_shared 19240 19241# Whether or not to build static libraries. 19242build_old_libs=$enable_static 19243 19244# Whether or not to add -lc for building shared libraries. 19245build_libtool_need_lc=$archive_cmds_need_lc_GCJ 19246 19247# Whether or not to disallow shared libs when runtime libs are static 19248allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 19249 19250# Whether or not to optimize for fast installation. 19251fast_install=$enable_fast_install 19252 19253# The host system. 19254host_alias=$host_alias 19255host=$host 19256host_os=$host_os 19257 19258# The build system. 19259build_alias=$build_alias 19260build=$build 19261build_os=$build_os 19262 19263# An echo program that does not interpret backslashes. 19264echo=$lt_echo 19265 19266# The archiver. 19267AR=$lt_AR 19268AR_FLAGS=$lt_AR_FLAGS 19269 19270# A C compiler. 19271LTCC=$lt_LTCC 19272 19273# LTCC compiler flags. 19274LTCFLAGS=$lt_LTCFLAGS 19275 19276# A language-specific compiler. 19277CC=$lt_compiler_GCJ 19278 19279# Is the compiler the GNU C compiler? 19280with_gcc=$GCC_GCJ 19281 19282# An ERE matcher. 19283EGREP=$lt_EGREP 19284 19285# The linker used to build libraries. 19286LD=$lt_LD_GCJ 19287 19288# Whether we need hard or soft links. 19289LN_S=$lt_LN_S 19290 19291# A BSD-compatible nm program. 19292NM=$lt_NM 19293 19294# A symbol stripping program 19295STRIP=$lt_STRIP 19296 19297# Used to examine libraries when file_magic_cmd begins "file" 19298MAGIC_CMD=$MAGIC_CMD 19299 19300# Used on cygwin: DLL creation program. 19301DLLTOOL="$DLLTOOL" 19302 19303# Used on cygwin: object dumper. 19304OBJDUMP="$OBJDUMP" 19305 19306# Used on cygwin: assembler. 19307AS="$AS" 19308 19309# The name of the directory that contains temporary libtool files. 19310objdir=$objdir 19311 19312# How to create reloadable object files. 19313reload_flag=$lt_reload_flag 19314reload_cmds=$lt_reload_cmds 19315 19316# How to pass a linker flag through the compiler. 19317wl=$lt_lt_prog_compiler_wl_GCJ 19318 19319# Object file suffix (normally "o"). 19320objext="$ac_objext" 19321 19322# Old archive suffix (normally "a"). 19323libext="$libext" 19324 19325# Shared library suffix (normally ".so"). 19326shrext_cmds='$shrext_cmds' 19327 19328# Executable file suffix (normally ""). 19329exeext="$exeext" 19330 19331# Additional compiler flags for building library objects. 19332pic_flag=$lt_lt_prog_compiler_pic_GCJ 19333pic_mode=$pic_mode 19334 19335# What is the maximum length of a command? 19336max_cmd_len=$lt_cv_sys_max_cmd_len 19337 19338# Does compiler simultaneously support -c and -o options? 19339compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19340 19341# Must we lock files when doing compilation? 19342need_locks=$lt_need_locks 19343 19344# Do we need the lib prefix for modules? 19345need_lib_prefix=$need_lib_prefix 19346 19347# Do we need a version for libraries? 19348need_version=$need_version 19349 19350# Whether dlopen is supported. 19351dlopen_support=$enable_dlopen 19352 19353# Whether dlopen of programs is supported. 19354dlopen_self=$enable_dlopen_self 19355 19356# Whether dlopen of statically linked programs is supported. 19357dlopen_self_static=$enable_dlopen_self_static 19358 19359# Compiler flag to prevent dynamic linking. 19360link_static_flag=$lt_lt_prog_compiler_static_GCJ 19361 19362# Compiler flag to turn off builtin functions. 19363no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19364 19365# Compiler flag to allow reflexive dlopens. 19366export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19367 19368# Compiler flag to generate shared objects directly from archives. 19369whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19370 19371# Compiler flag to generate thread-safe objects. 19372thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19373 19374# Library versioning type. 19375version_type=$version_type 19376 19377# Format of library name prefix. 19378libname_spec=$lt_libname_spec 19379 19380# List of archive names. First name is the real one, the rest are links. 19381# The last name is the one that the linker finds with -lNAME. 19382library_names_spec=$lt_library_names_spec 19383 19384# The coded name of the library, if different from the real name. 19385soname_spec=$lt_soname_spec 19386 19387# Commands used to build and install an old-style archive. 19388RANLIB=$lt_RANLIB 19389old_archive_cmds=$lt_old_archive_cmds_GCJ 19390old_postinstall_cmds=$lt_old_postinstall_cmds 19391old_postuninstall_cmds=$lt_old_postuninstall_cmds 19392 19393# Create an old-style archive from a shared archive. 19394old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19395 19396# Create a temporary old-style archive to link instead of a shared archive. 19397old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19398 19399# Commands used to build and install a shared archive. 19400archive_cmds=$lt_archive_cmds_GCJ 19401archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19402postinstall_cmds=$lt_postinstall_cmds 19403postuninstall_cmds=$lt_postuninstall_cmds 19404 19405# Commands used to build a loadable module (assumed same as above if empty) 19406module_cmds=$lt_module_cmds_GCJ 19407module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19408 19409# Commands to strip libraries. 19410old_striplib=$lt_old_striplib 19411striplib=$lt_striplib 19412 19413# Dependencies to place before the objects being linked to create a 19414# shared library. 19415predep_objects=$lt_predep_objects_GCJ 19416 19417# Dependencies to place after the objects being linked to create a 19418# shared library. 19419postdep_objects=$lt_postdep_objects_GCJ 19420 19421# Dependencies to place before the objects being linked to create a 19422# shared library. 19423predeps=$lt_predeps_GCJ 19424 19425# Dependencies to place after the objects being linked to create a 19426# shared library. 19427postdeps=$lt_postdeps_GCJ 19428 19429# The directories searched by this compiler when creating a shared 19430# library 19431compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ 19432 19433# The library search path used internally by the compiler when linking 19434# a shared library. 19435compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19436 19437# Method to check whether dependent libraries are shared objects. 19438deplibs_check_method=$lt_deplibs_check_method 19439 19440# Command to use when deplibs_check_method == file_magic. 19441file_magic_cmd=$lt_file_magic_cmd 19442 19443# Flag that allows shared libraries with undefined symbols to be built. 19444allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19445 19446# Flag that forces no undefined symbols. 19447no_undefined_flag=$lt_no_undefined_flag_GCJ 19448 19449# Commands used to finish a libtool library installation in a directory. 19450finish_cmds=$lt_finish_cmds 19451 19452# Same as above, but a single script fragment to be evaled but not shown. 19453finish_eval=$lt_finish_eval 19454 19455# Take the output of nm and produce a listing of raw symbols and C names. 19456global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19457 19458# Transform the output of nm in a proper C declaration 19459global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19460 19461# Transform the output of nm in a C name address pair 19462global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19463 19464# This is the shared library runtime path variable. 19465runpath_var=$runpath_var 19466 19467# This is the shared library path variable. 19468shlibpath_var=$shlibpath_var 19469 19470# Is shlibpath searched before the hard-coded library search path? 19471shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19472 19473# How to hardcode a shared library path into an executable. 19474hardcode_action=$hardcode_action_GCJ 19475 19476# Whether we should hardcode library paths into libraries. 19477hardcode_into_libs=$hardcode_into_libs 19478 19479# Flag to hardcode \$libdir into a binary during linking. 19480# This must work even if \$libdir does not exist. 19481hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19482 19483# If ld is used when linking, flag to hardcode \$libdir into 19484# a binary during linking. This must work even if \$libdir does 19485# not exist. 19486hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19487 19488# Whether we need a single -rpath flag with a separated argument. 19489hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19490 19491# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19492# resulting binary. 19493hardcode_direct=$hardcode_direct_GCJ 19494 19495# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19496# resulting binary. 19497hardcode_minus_L=$hardcode_minus_L_GCJ 19498 19499# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19500# the resulting binary. 19501hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19502 19503# Set to yes if building a shared library automatically hardcodes DIR into the library 19504# and all subsequent libraries and executables linked against it. 19505hardcode_automatic=$hardcode_automatic_GCJ 19506 19507# Variables whose values should be saved in libtool wrapper scripts and 19508# restored at relink time. 19509variables_saved_for_relink="$variables_saved_for_relink" 19510 19511# Whether libtool must link a program against all its dependency libraries. 19512link_all_deplibs=$link_all_deplibs_GCJ 19513 19514# Compile-time system search path for libraries 19515sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19516 19517# Run-time system search path for libraries 19518sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19519 19520# Fix the shell variable \$srcfile for the compiler. 19521fix_srcfile_path=$lt_fix_srcfile_path 19522 19523# Set to yes if exported symbols are required. 19524always_export_symbols=$always_export_symbols_GCJ 19525 19526# The commands to list exported symbols. 19527export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19528 19529# The commands to extract the exported symbol list from a shared archive. 19530extract_expsyms_cmds=$lt_extract_expsyms_cmds 19531 19532# Symbols that should not be listed in the preloaded symbols. 19533exclude_expsyms=$lt_exclude_expsyms_GCJ 19534 19535# Symbols that must always be exported. 19536include_expsyms=$lt_include_expsyms_GCJ 19537 19538# ### END LIBTOOL TAG CONFIG: $tagname 19539 19540__EOF__ 19541 19542 19543else 19544 # If there is no Makefile yet, we rely on a make rule to execute 19545 # `config.status --recheck' to rerun these tests and create the 19546 # libtool script then. 19547 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19548 if test -f "$ltmain_in"; then 19549 test -f Makefile && make "$ltmain" 19550 fi 19551fi 19552 19553 19554ac_ext=cpp 19555ac_cpp='$CXXCPP $CPPFLAGS' 19556ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19557ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19558ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19559 19560CC="$lt_save_CC" 19561 19562 else 19563 tagname="" 19564 fi 19565 ;; 19566 19567 RC) 19568 19569 19570# Source file extension for RC test sources. 19571ac_ext=rc 19572 19573# Object file extension for compiled RC test sources. 19574objext=o 19575objext_RC=$objext 19576 19577# Code to be used in simple compile tests 19578lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 19579 19580# Code to be used in simple link tests 19581lt_simple_link_test_code="$lt_simple_compile_test_code" 19582 19583# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19584 19585# If no C compiler was specified, use CC. 19586LTCC=${LTCC-"$CC"} 19587 19588# If no C compiler flags were specified, use CFLAGS. 19589LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19590 19591# Allow CC to be a program name with arguments. 19592compiler=$CC 19593 19594 19595# save warnings/boilerplate of simple test code 19596ac_outfile=conftest.$ac_objext 19597echo "$lt_simple_compile_test_code" >conftest.$ac_ext 19598eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19599_lt_compiler_boilerplate=`cat conftest.err` 19600$rm conftest* 19601 19602ac_outfile=conftest.$ac_objext 19603echo "$lt_simple_link_test_code" >conftest.$ac_ext 19604eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19605_lt_linker_boilerplate=`cat conftest.err` 19606$rm -r conftest* 19607 19608 19609# Allow CC to be a program name with arguments. 19610lt_save_CC="$CC" 19611CC=${RC-"windres"} 19612compiler=$CC 19613compiler_RC=$CC 19614for cc_temp in $compiler""; do 19615 case $cc_temp in 19616 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19617 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19618 \-*) ;; 19619 *) break;; 19620 esac 19621done 19622cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19623 19624lt_cv_prog_compiler_c_o_RC=yes 19625 19626# The else clause should only fire when bootstrapping the 19627# libtool distribution, otherwise you forgot to ship ltmain.sh 19628# with your package, and you will get complaints that there are 19629# no rules to generate ltmain.sh. 19630if test -f "$ltmain"; then 19631 # See if we are running on zsh, and set the options which allow our commands through 19632 # without removal of \ escapes. 19633 if test -n "${ZSH_VERSION+set}" ; then 19634 setopt NO_GLOB_SUBST 19635 fi 19636 # Now quote all the things that may contain metacharacters while being 19637 # careful not to overquote the AC_SUBSTed values. We take copies of the 19638 # variables and quote the copies for generation of the libtool script. 19639 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19640 SED SHELL STRIP \ 19641 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19642 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19643 deplibs_check_method reload_flag reload_cmds need_locks \ 19644 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19645 lt_cv_sys_global_symbol_to_c_name_address \ 19646 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19647 old_postinstall_cmds old_postuninstall_cmds \ 19648 compiler_RC \ 19649 CC_RC \ 19650 LD_RC \ 19651 lt_prog_compiler_wl_RC \ 19652 lt_prog_compiler_pic_RC \ 19653 lt_prog_compiler_static_RC \ 19654 lt_prog_compiler_no_builtin_flag_RC \ 19655 export_dynamic_flag_spec_RC \ 19656 thread_safe_flag_spec_RC \ 19657 whole_archive_flag_spec_RC \ 19658 enable_shared_with_static_runtimes_RC \ 19659 old_archive_cmds_RC \ 19660 old_archive_from_new_cmds_RC \ 19661 predep_objects_RC \ 19662 postdep_objects_RC \ 19663 predeps_RC \ 19664 postdeps_RC \ 19665 compiler_lib_search_path_RC \ 19666 compiler_lib_search_dirs_RC \ 19667 archive_cmds_RC \ 19668 archive_expsym_cmds_RC \ 19669 postinstall_cmds_RC \ 19670 postuninstall_cmds_RC \ 19671 old_archive_from_expsyms_cmds_RC \ 19672 allow_undefined_flag_RC \ 19673 no_undefined_flag_RC \ 19674 export_symbols_cmds_RC \ 19675 hardcode_libdir_flag_spec_RC \ 19676 hardcode_libdir_flag_spec_ld_RC \ 19677 hardcode_libdir_separator_RC \ 19678 hardcode_automatic_RC \ 19679 module_cmds_RC \ 19680 module_expsym_cmds_RC \ 19681 lt_cv_prog_compiler_c_o_RC \ 19682 fix_srcfile_path_RC \ 19683 exclude_expsyms_RC \ 19684 include_expsyms_RC; do 19685 19686 case $var in 19687 old_archive_cmds_RC | \ 19688 old_archive_from_new_cmds_RC | \ 19689 archive_cmds_RC | \ 19690 archive_expsym_cmds_RC | \ 19691 module_cmds_RC | \ 19692 module_expsym_cmds_RC | \ 19693 old_archive_from_expsyms_cmds_RC | \ 19694 export_symbols_cmds_RC | \ 19695 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19696 postinstall_cmds | postuninstall_cmds | \ 19697 old_postinstall_cmds | old_postuninstall_cmds | \ 19698 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19699 # Double-quote double-evaled strings. 19700 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19701 ;; 19702 *) 19703 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19704 ;; 19705 esac 19706 done 19707 19708 case $lt_echo in 19709 *'\$0 --fallback-echo"') 19710 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19711 ;; 19712 esac 19713 19714cfgfile="$ofile" 19715 19716 cat <<__EOF__ >> "$cfgfile" 19717# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19718 19719# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19720 19721# Shell to use when invoking shell scripts. 19722SHELL=$lt_SHELL 19723 19724# Whether or not to build shared libraries. 19725build_libtool_libs=$enable_shared 19726 19727# Whether or not to build static libraries. 19728build_old_libs=$enable_static 19729 19730# Whether or not to add -lc for building shared libraries. 19731build_libtool_need_lc=$archive_cmds_need_lc_RC 19732 19733# Whether or not to disallow shared libs when runtime libs are static 19734allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19735 19736# Whether or not to optimize for fast installation. 19737fast_install=$enable_fast_install 19738 19739# The host system. 19740host_alias=$host_alias 19741host=$host 19742host_os=$host_os 19743 19744# The build system. 19745build_alias=$build_alias 19746build=$build 19747build_os=$build_os 19748 19749# An echo program that does not interpret backslashes. 19750echo=$lt_echo 19751 19752# The archiver. 19753AR=$lt_AR 19754AR_FLAGS=$lt_AR_FLAGS 19755 19756# A C compiler. 19757LTCC=$lt_LTCC 19758 19759# LTCC compiler flags. 19760LTCFLAGS=$lt_LTCFLAGS 19761 19762# A language-specific compiler. 19763CC=$lt_compiler_RC 19764 19765# Is the compiler the GNU C compiler? 19766with_gcc=$GCC_RC 19767 19768# An ERE matcher. 19769EGREP=$lt_EGREP 19770 19771# The linker used to build libraries. 19772LD=$lt_LD_RC 19773 19774# Whether we need hard or soft links. 19775LN_S=$lt_LN_S 19776 19777# A BSD-compatible nm program. 19778NM=$lt_NM 19779 19780# A symbol stripping program 19781STRIP=$lt_STRIP 19782 19783# Used to examine libraries when file_magic_cmd begins "file" 19784MAGIC_CMD=$MAGIC_CMD 19785 19786# Used on cygwin: DLL creation program. 19787DLLTOOL="$DLLTOOL" 19788 19789# Used on cygwin: object dumper. 19790OBJDUMP="$OBJDUMP" 19791 19792# Used on cygwin: assembler. 19793AS="$AS" 19794 19795# The name of the directory that contains temporary libtool files. 19796objdir=$objdir 19797 19798# How to create reloadable object files. 19799reload_flag=$lt_reload_flag 19800reload_cmds=$lt_reload_cmds 19801 19802# How to pass a linker flag through the compiler. 19803wl=$lt_lt_prog_compiler_wl_RC 19804 19805# Object file suffix (normally "o"). 19806objext="$ac_objext" 19807 19808# Old archive suffix (normally "a"). 19809libext="$libext" 19810 19811# Shared library suffix (normally ".so"). 19812shrext_cmds='$shrext_cmds' 19813 19814# Executable file suffix (normally ""). 19815exeext="$exeext" 19816 19817# Additional compiler flags for building library objects. 19818pic_flag=$lt_lt_prog_compiler_pic_RC 19819pic_mode=$pic_mode 19820 19821# What is the maximum length of a command? 19822max_cmd_len=$lt_cv_sys_max_cmd_len 19823 19824# Does compiler simultaneously support -c and -o options? 19825compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19826 19827# Must we lock files when doing compilation? 19828need_locks=$lt_need_locks 19829 19830# Do we need the lib prefix for modules? 19831need_lib_prefix=$need_lib_prefix 19832 19833# Do we need a version for libraries? 19834need_version=$need_version 19835 19836# Whether dlopen is supported. 19837dlopen_support=$enable_dlopen 19838 19839# Whether dlopen of programs is supported. 19840dlopen_self=$enable_dlopen_self 19841 19842# Whether dlopen of statically linked programs is supported. 19843dlopen_self_static=$enable_dlopen_self_static 19844 19845# Compiler flag to prevent dynamic linking. 19846link_static_flag=$lt_lt_prog_compiler_static_RC 19847 19848# Compiler flag to turn off builtin functions. 19849no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19850 19851# Compiler flag to allow reflexive dlopens. 19852export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19853 19854# Compiler flag to generate shared objects directly from archives. 19855whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19856 19857# Compiler flag to generate thread-safe objects. 19858thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19859 19860# Library versioning type. 19861version_type=$version_type 19862 19863# Format of library name prefix. 19864libname_spec=$lt_libname_spec 19865 19866# List of archive names. First name is the real one, the rest are links. 19867# The last name is the one that the linker finds with -lNAME. 19868library_names_spec=$lt_library_names_spec 19869 19870# The coded name of the library, if different from the real name. 19871soname_spec=$lt_soname_spec 19872 19873# Commands used to build and install an old-style archive. 19874RANLIB=$lt_RANLIB 19875old_archive_cmds=$lt_old_archive_cmds_RC 19876old_postinstall_cmds=$lt_old_postinstall_cmds 19877old_postuninstall_cmds=$lt_old_postuninstall_cmds 19878 19879# Create an old-style archive from a shared archive. 19880old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19881 19882# Create a temporary old-style archive to link instead of a shared archive. 19883old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19884 19885# Commands used to build and install a shared archive. 19886archive_cmds=$lt_archive_cmds_RC 19887archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19888postinstall_cmds=$lt_postinstall_cmds 19889postuninstall_cmds=$lt_postuninstall_cmds 19890 19891# Commands used to build a loadable module (assumed same as above if empty) 19892module_cmds=$lt_module_cmds_RC 19893module_expsym_cmds=$lt_module_expsym_cmds_RC 19894 19895# Commands to strip libraries. 19896old_striplib=$lt_old_striplib 19897striplib=$lt_striplib 19898 19899# Dependencies to place before the objects being linked to create a 19900# shared library. 19901predep_objects=$lt_predep_objects_RC 19902 19903# Dependencies to place after the objects being linked to create a 19904# shared library. 19905postdep_objects=$lt_postdep_objects_RC 19906 19907# Dependencies to place before the objects being linked to create a 19908# shared library. 19909predeps=$lt_predeps_RC 19910 19911# Dependencies to place after the objects being linked to create a 19912# shared library. 19913postdeps=$lt_postdeps_RC 19914 19915# The directories searched by this compiler when creating a shared 19916# library 19917compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC 19918 19919# The library search path used internally by the compiler when linking 19920# a shared library. 19921compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19922 19923# Method to check whether dependent libraries are shared objects. 19924deplibs_check_method=$lt_deplibs_check_method 19925 19926# Command to use when deplibs_check_method == file_magic. 19927file_magic_cmd=$lt_file_magic_cmd 19928 19929# Flag that allows shared libraries with undefined symbols to be built. 19930allow_undefined_flag=$lt_allow_undefined_flag_RC 19931 19932# Flag that forces no undefined symbols. 19933no_undefined_flag=$lt_no_undefined_flag_RC 19934 19935# Commands used to finish a libtool library installation in a directory. 19936finish_cmds=$lt_finish_cmds 19937 19938# Same as above, but a single script fragment to be evaled but not shown. 19939finish_eval=$lt_finish_eval 19940 19941# Take the output of nm and produce a listing of raw symbols and C names. 19942global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19943 19944# Transform the output of nm in a proper C declaration 19945global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19946 19947# Transform the output of nm in a C name address pair 19948global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19949 19950# This is the shared library runtime path variable. 19951runpath_var=$runpath_var 19952 19953# This is the shared library path variable. 19954shlibpath_var=$shlibpath_var 19955 19956# Is shlibpath searched before the hard-coded library search path? 19957shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19958 19959# How to hardcode a shared library path into an executable. 19960hardcode_action=$hardcode_action_RC 19961 19962# Whether we should hardcode library paths into libraries. 19963hardcode_into_libs=$hardcode_into_libs 19964 19965# Flag to hardcode \$libdir into a binary during linking. 19966# This must work even if \$libdir does not exist. 19967hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19968 19969# If ld is used when linking, flag to hardcode \$libdir into 19970# a binary during linking. This must work even if \$libdir does 19971# not exist. 19972hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19973 19974# Whether we need a single -rpath flag with a separated argument. 19975hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19976 19977# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19978# resulting binary. 19979hardcode_direct=$hardcode_direct_RC 19980 19981# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19982# resulting binary. 19983hardcode_minus_L=$hardcode_minus_L_RC 19984 19985# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19986# the resulting binary. 19987hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19988 19989# Set to yes if building a shared library automatically hardcodes DIR into the library 19990# and all subsequent libraries and executables linked against it. 19991hardcode_automatic=$hardcode_automatic_RC 19992 19993# Variables whose values should be saved in libtool wrapper scripts and 19994# restored at relink time. 19995variables_saved_for_relink="$variables_saved_for_relink" 19996 19997# Whether libtool must link a program against all its dependency libraries. 19998link_all_deplibs=$link_all_deplibs_RC 19999 20000# Compile-time system search path for libraries 20001sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20002 20003# Run-time system search path for libraries 20004sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20005 20006# Fix the shell variable \$srcfile for the compiler. 20007fix_srcfile_path=$lt_fix_srcfile_path 20008 20009# Set to yes if exported symbols are required. 20010always_export_symbols=$always_export_symbols_RC 20011 20012# The commands to list exported symbols. 20013export_symbols_cmds=$lt_export_symbols_cmds_RC 20014 20015# The commands to extract the exported symbol list from a shared archive. 20016extract_expsyms_cmds=$lt_extract_expsyms_cmds 20017 20018# Symbols that should not be listed in the preloaded symbols. 20019exclude_expsyms=$lt_exclude_expsyms_RC 20020 20021# Symbols that must always be exported. 20022include_expsyms=$lt_include_expsyms_RC 20023 20024# ### END LIBTOOL TAG CONFIG: $tagname 20025 20026__EOF__ 20027 20028 20029else 20030 # If there is no Makefile yet, we rely on a make rule to execute 20031 # `config.status --recheck' to rerun these tests and create the 20032 # libtool script then. 20033 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 20034 if test -f "$ltmain_in"; then 20035 test -f Makefile && make "$ltmain" 20036 fi 20037fi 20038 20039 20040ac_ext=cpp 20041ac_cpp='$CXXCPP $CPPFLAGS' 20042ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20043ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20044ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20045 20046CC="$lt_save_CC" 20047 20048 ;; 20049 20050 *) 20051 as_fn_error "Unsupported tag name: $tagname" "$LINENO" 5 20052 ;; 20053 esac 20054 20055 # Append the new tag name to the list of available tags. 20056 if test -n "$tagname" ; then 20057 available_tags="$available_tags $tagname" 20058 fi 20059 fi 20060 done 20061 IFS="$lt_save_ifs" 20062 20063 # Now substitute the updated list of available tags. 20064 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 20065 mv "${ofile}T" "$ofile" 20066 chmod +x "$ofile" 20067 else 20068 rm -f "${ofile}T" 20069 as_fn_error "unable to update list of available tagged configurations." "$LINENO" 5 20070 fi 20071fi 20072 20073 20074 20075# This can be used to rebuild libtool when needed 20076LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 20077 20078# Always use our own libtool. 20079LIBTOOL='$(SHELL) $(top_builddir)/libtool' 20080 20081# Prevent multiple expansion 20082 20083 20084 20085 20086 20087 20088 20089 20090 20091 20092 20093 20094 20095 20096 20097 20098 20099 20100 20101 20102 20103# ************************************************************************** 20104if test x"$prefix" = x"NONE"; then 20105 prefix=/usr/local 20106fi 20107 20108# These are used for constructing the soqt-config file. 20109SOGUI_EXTRA_CPPFLAGS=$CPPFLAGS 20110 20111SOGUI_EXTRA_CFLAGS=$CFLAGS 20112 20113SOGUI_EXTRA_CXXFLAGS=$CXXFLAGS 20114 20115SOGUI_EXTRA_LDFLAGS=$LDFLAGS 20116 20117SOGUI_EXTRA_LIBS=$LIBS 20118 20119 20120# SIM_EXPAND_DIR_VARS 20121 20122# ******************************************************************* 20123# * Provide this nasty hack to help building SoXt on platforms 20124# * where one can bump into the "Arg list too long" problem 20125# * (IBM AIX, SGI IRIX 6.2 and IRIX 6.5 with standard settings are 20126# * known to fail), or where the build process is unbearably slow. 20127 20128# Check whether --enable-compact was given. 20129if test "${enable_compact+set}" = set; then : 20130 enableval=$enable_compact; case "${enableval}" in 20131 yes | true) enable_compact=yes ;; 20132 no | false) enable_compact=no ;; 20133 *) 20134as_fn_error "invalid value \"${enableval}\" for \"--enable-compact\" configure argument" "$LINENO" 5 20135 ;; 20136 esac 20137else 20138 enable_compact=no 20139fi 20140 20141 20142 20143 20144if test x"$enable_compact" = x"yes"; then 20145 HACKING_COMPACT_BUILD_TRUE= 20146 HACKING_COMPACT_BUILD_FALSE='#' 20147else 20148 HACKING_COMPACT_BUILD_TRUE='#' 20149 HACKING_COMPACT_BUILD_FALSE= 20150fi 20151 20152 20153# ************************************************************************** 20154 20155 20156# Check whether --with-alternate was given. 20157if test "${with_alternate+set}" = set; then : 20158 withval=$with_alternate; CONFIG=$withval 20159else 20160 CONFIG=default 20161fi 20162 20163 20164 20165 20166 20167# Check whether --with-suffix was given. 20168if test "${with_suffix+set}" = set; then : 20169 withval=$with_suffix; SUFFIX=$withval 20170else 20171 SUFFIX= 20172fi 20173 20174 20175 20176 20177# ************************************************************************** 20178# If you just want to generate docs. 20179 20180sim_ac_build_library=true 20181# Check whether --enable-build was given. 20182if test "${enable_build+set}" = set; then : 20183 enableval=$enable_build; 20184 case $enableval in 20185 no) sim_ac_build_library=false ;; 20186 *) ;; 20187 esac 20188fi 20189 20190 20191 20192 20193if $sim_ac_build_library; then 20194 BUILD_LIBRARY_TRUE= 20195 BUILD_LIBRARY_FALSE='#' 20196else 20197 BUILD_LIBRARY_TRUE='#' 20198 BUILD_LIBRARY_FALSE= 20199fi 20200 20201 20202# ******************************************************************* 20203# * Do we want to build the documentation? 20204# ******************************************************************* 20205 20206 20207# Check whether --enable-html was given. 20208if test "${enable_html+set}" = set; then : 20209 enableval=$enable_html; case $enableval in 20210 yes | true) want_html=yes ;; 20211 *) want_html=no ;; 20212 esac 20213else 20214 want_html=no 20215fi 20216 20217 20218case $htmldir in 20219/*) 20220 # do nothing - absolute path 20221 ;; 20222*) 20223 # expand $docdir and append /html 20224 htmldir=`eval echo ${docdir}`/html 20225 ;; 20226esac 20227 20228 20229 20230# Check whether --enable-man was given. 20231if test "${enable_man+set}" = set; then : 20232 enableval=$enable_man; case $enableval in 20233 yes | true) want_man=yes ;; 20234 *) want_man=no ;; 20235 esac 20236else 20237 want_man=no 20238fi 20239 20240 20241 20242 20243# Check whether --enable-html-help was given. 20244if test "${enable_html_help+set}" = set; then : 20245 enableval=$enable_html_help; case $enableval in 20246 yes | true) want_html_help=yes ;; 20247 *) want_html_help=no ;; 20248 esac 20249else 20250 want_html_help=no 20251fi 20252 20253 20254case $htmlhelpdir in 20255"") 20256 htmlhelpdir="$datadir/SoQt/htmlhelp" 20257 ;; 20258/*) 20259 # do nothing - absolute path 20260 ;; 20261*) 20262 htmlhelpdir="\${prefix}/$htmlhelpdir" 20263 ;; 20264esac 20265 20266 20267 20268# We must turn on html-generation if html-help is turned on, 20269# but without affecting the setup of the BUILD_HTMLPAGES 20270# conditional, so HTML files aren't installed if you don't 20271# use --enable-html. 20031202 larsa 20272sogui_doc_html=`echo $want_html | tr 'a-z' 'A-Z'` 20273if test x"$want_html_help" = x"yes"; then 20274 sogui_doc_html=YES 20275fi 20276 20277# Used in the Doxygen parameter file. 20278SOGUI_DOC_HTML=$sogui_doc_html 20279 20280SOGUI_DOC_MAN=`echo $want_man | tr 'a-z' 'A-Z'` 20281 20282SOGUI_DOC_HTML_HELP=`echo $want_html_help | tr 'a-z' 'A-Z'` 20283 20284 20285sogui_build_dir=`pwd` 20286 20287sogui_src_dir=`cd $srcdir; pwd` 20288 20289sogui_html_dir=`pwd`/html 20290 20291sogui_html_help_dir=`pwd`/htmlhelp 20292 20293sogui_man_dir=`pwd`/man 20294 20295 20296 20297 20298if test x"$want_man" = x"yes"; then 20299 BUILD_MANPAGES_TRUE= 20300 BUILD_MANPAGES_FALSE='#' 20301else 20302 BUILD_MANPAGES_TRUE='#' 20303 BUILD_MANPAGES_FALSE= 20304fi 20305 20306 20307 20308if test x"$want_html" = x"yes"; then 20309 BUILD_HTMLPAGES_TRUE= 20310 BUILD_HTMLPAGES_FALSE='#' 20311else 20312 BUILD_HTMLPAGES_TRUE='#' 20313 BUILD_HTMLPAGES_FALSE= 20314fi 20315 20316 20317 20318if test x"$want_html_help" = x"yes"; then 20319 BUILD_HTMLHELP_TRUE= 20320 BUILD_HTMLHELP_FALSE='#' 20321else 20322 BUILD_HTMLHELP_TRUE='#' 20323 BUILD_HTMLHELP_FALSE= 20324fi 20325 20326 20327if test x"$want_man" = x"yes"; then 20328 20329if test x"${sim_ac_configuration_settings+set}" = x"set"; then 20330 sim_ac_configuration_settings="$sim_ac_configuration_settings|manpage installation:$mandir" 20331else 20332 sim_ac_configuration_settings="manpage installation:$mandir" 20333fi 20334 20335fi 20336 20337if test x"$want_html" = x"yes"; then 20338 20339if test x"${sim_ac_configuration_settings+set}" = x"set"; then 20340 sim_ac_configuration_settings="$sim_ac_configuration_settings|HTML installation:$htmldir" 20341else 20342 sim_ac_configuration_settings="HTML installation:$htmldir" 20343fi 20344 20345fi 20346 20347sim_ac_hhc_exe= 20348case $host in 20349 *-cygwin) # Extract the first word of "hhc", so it can be a program name with args. 20350set dummy hhc; ac_word=$2 20351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20352$as_echo_n "checking for $ac_word... " >&6; } 20353if test "${ac_cv_path_sim_ac_hhc_exe+set}" = set; then : 20354 $as_echo_n "(cached) " >&6 20355else 20356 case $sim_ac_hhc_exe in 20357 [\\/]* | ?:[\\/]*) 20358 ac_cv_path_sim_ac_hhc_exe="$sim_ac_hhc_exe" # Let the user override the test with a path. 20359 ;; 20360 *) 20361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20362for as_dir in $PATH 20363do 20364 IFS=$as_save_IFS 20365 test -z "$as_dir" && as_dir=. 20366 for ac_exec_ext in '' $ac_executable_extensions; do 20367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20368 ac_cv_path_sim_ac_hhc_exe="$as_dir/$ac_word$ac_exec_ext" 20369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20370 break 2 20371 fi 20372done 20373 done 20374IFS=$as_save_IFS 20375 20376 ;; 20377esac 20378fi 20379sim_ac_hhc_exe=$ac_cv_path_sim_ac_hhc_exe 20380if test -n "$sim_ac_hhc_exe"; then 20381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_hhc_exe" >&5 20382$as_echo "$sim_ac_hhc_exe" >&6; } 20383else 20384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20385$as_echo "no" >&6; } 20386fi 20387 20388 ;; 20389 *) ;; 20390esac 20391 20392if test x"$want_html_help" = x"yes"; then 20393 20394if test x"${sim_ac_configuration_settings+set}" = x"set"; then 20395 sim_ac_configuration_settings="$sim_ac_configuration_settings|HTML-help installation:$htmlhelpdir" 20396else 20397 sim_ac_configuration_settings="HTML-help installation:$htmlhelpdir" 20398fi 20399 20400 if test x"$sim_ac_hhc_exe" = x; then 20401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the HTML Help Compiler (hhc) executable" >&5 20402$as_echo "$as_me: WARNING: Could not find the HTML Help Compiler (hhc) executable" >&2;} 20403 fi 20404fi 20405 20406if test x"$want_html" != xno -o x"$want_man" != xno -o x"$want_html_help" != xno; then 20407 20408 20409# Check whether --with-doxygen was given. 20410if test "${with_doxygen+set}" = set; then : 20411 withval=$with_doxygen; 20412else 20413 with_doxygen=yes 20414fi 20415 20416 20417sim_ac_doxygen_avail=no 20418 20419if test x"$with_doxygen" != xno; then 20420 sim_ac_path=$PATH 20421 if test x"$with_doxygen" != xyes; then 20422 sim_ac_path=${with_doxygen}:$PATH 20423 fi 20424 20425 # Extract the first word of "doxygen", so it can be a program name with args. 20426set dummy doxygen; ac_word=$2 20427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20428$as_echo_n "checking for $ac_word... " >&6; } 20429if test "${ac_cv_path_sim_ac_doxygen_exe+set}" = set; then : 20430 $as_echo_n "(cached) " >&6 20431else 20432 case $sim_ac_doxygen_exe in 20433 [\\/]* | ?:[\\/]*) 20434 ac_cv_path_sim_ac_doxygen_exe="$sim_ac_doxygen_exe" # Let the user override the test with a path. 20435 ;; 20436 *) 20437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20438for as_dir in $sim_ac_path 20439do 20440 IFS=$as_save_IFS 20441 test -z "$as_dir" && as_dir=. 20442 for ac_exec_ext in '' $ac_executable_extensions; do 20443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20444 ac_cv_path_sim_ac_doxygen_exe="$as_dir/$ac_word$ac_exec_ext" 20445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20446 break 2 20447 fi 20448done 20449 done 20450IFS=$as_save_IFS 20451 20452 test -z "$ac_cv_path_sim_ac_doxygen_exe" && ac_cv_path_sim_ac_doxygen_exe="false" 20453 ;; 20454esac 20455fi 20456sim_ac_doxygen_exe=$ac_cv_path_sim_ac_doxygen_exe 20457if test -n "$sim_ac_doxygen_exe"; then 20458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_doxygen_exe" >&5 20459$as_echo "$sim_ac_doxygen_exe" >&6; } 20460else 20461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20462$as_echo "no" >&6; } 20463fi 20464 20465 20466 if test x"$sim_ac_doxygen_exe" = xfalse; then 20467 20468echo >&2 "" 20469 20470 20471: ${sim_ac_message_file=$ac_aux_dir/errors.txt} 20472if test -f $sim_ac_message_file; then 20473 sim_ac_message="`sed -n -e '/^!no-doxygen$/,/^!/ { /^!/ d; p; }' <$sim_ac_message_file`" 20474 if test x"$sim_ac_message" = x""; then 20475 as_fn_error "no message named 'no-doxygen' in '$sim_ac_message_file' - notify the $PACKAGE_NAME maintainer(s)" "$LINENO" 5 20476 else 20477 eval "echo >&2 \"$sim_ac_message\"" 20478 fi 20479else 20480 as_fn_error "file '$sim_ac_message_file' not found - notify the $PACKAGE_NAME maintainer(s)" "$LINENO" 5 20481fi 20482 20483 20484 20485echo >&2 "" 20486as_fn_error "aborting" "$LINENO" 5 20487 20488 else 20489 sim_ac_doxygen_avail=`$sim_ac_doxygen_exe -help 2> /dev/null | head -1 | sed 's%[^ ]\+ [^ ]\+ %%'` 20490 20491 fi 20492fi 20493 20494 20495 # Extract the first word of "perl", so it can be a program name with args. 20496set dummy perl; ac_word=$2 20497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20498$as_echo_n "checking for $ac_word... " >&6; } 20499if test "${ac_cv_path_sim_ac_perl_exe+set}" = set; then : 20500 $as_echo_n "(cached) " >&6 20501else 20502 case $sim_ac_perl_exe in 20503 [\\/]* | ?:[\\/]*) 20504 ac_cv_path_sim_ac_perl_exe="$sim_ac_perl_exe" # Let the user override the test with a path. 20505 ;; 20506 *) 20507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20508for as_dir in $PATH 20509do 20510 IFS=$as_save_IFS 20511 test -z "$as_dir" && as_dir=. 20512 for ac_exec_ext in '' $ac_executable_extensions; do 20513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 20514 ac_cv_path_sim_ac_perl_exe="$as_dir/$ac_word$ac_exec_ext" 20515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20516 break 2 20517 fi 20518done 20519 done 20520IFS=$as_save_IFS 20521 20522 test -z "$ac_cv_path_sim_ac_perl_exe" && ac_cv_path_sim_ac_perl_exe="false" 20523 ;; 20524esac 20525fi 20526sim_ac_perl_exe=$ac_cv_path_sim_ac_perl_exe 20527if test -n "$sim_ac_perl_exe"; then 20528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_perl_exe" >&5 20529$as_echo "$sim_ac_perl_exe" >&6; } 20530else 20531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20532$as_echo "no" >&6; } 20533fi 20534 20535 20536 if test x"$sim_ac_perl_exe" = xfalse; then 20537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the Perl executable" >&5 20538$as_echo "$as_me: WARNING: Could not find the Perl executable" >&2;} 20539 fi 20540fi 20541 20542# path_tag is used to identify paths in docs/coin.doxygen that needs to be 20543# transformed using cygpath under cygwin. 20544 20545case $host in 20546*-cygwin) path_tag="<PATH>" ;; 20547*) path_tag= ;; 20548esac 20549 20550 20551 20552 20553 20554# The following variables are used in sogui.doxygen.in 20555SOGUI_MAJOR_VERSION=1 20556 20557SOGUI_MINOR_VERSION=6 20558 20559 20560 20561 20562if true; then 20563 BUILD_METAFILES_TRUE= 20564 BUILD_METAFILES_FALSE='#' 20565else 20566 BUILD_METAFILES_TRUE='#' 20567 BUILD_METAFILES_FALSE= 20568fi 20569 20570meta_prefix=moc_ 20571 20572 20573# ******************************************************************* 20574# Use X11 on Mac OS X only if specifically requested by the user. 20575 20576# FIXME: Since the Darwin-specific X11 check is now part of 20577# SIM_AC_CHECK_X11, we can probably remove the sim_ac_want_x11 20578# variable at all. Just trying to do this one step at a time... 20579# 20041006 kyrah 20580sim_ac_want_x11=no 20581case $host_os in 20582 darwin*) 20583 20584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 20585$as_echo_n "checking for X... " >&6; } 20586 20587 20588# Check whether --with-x was given. 20589if test "${with_x+set}" = set; then : 20590 withval=$with_x; 20591fi 20592 20593# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 20594if test "x$with_x" = xno; then 20595 # The user explicitly disabled X. 20596 have_x=disabled 20597else 20598 case $x_includes,$x_libraries in #( 20599 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #( 20600 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : 20601 $as_echo_n "(cached) " >&6 20602else 20603 # One or both of the vars are not set, and there is no cached value. 20604ac_x_includes=no ac_x_libraries=no 20605rm -f -r conftest.dir 20606if mkdir conftest.dir; then 20607 cd conftest.dir 20608 cat >Imakefile <<'_ACEOF' 20609incroot: 20610 @echo incroot='${INCROOT}' 20611usrlibdir: 20612 @echo usrlibdir='${USRLIBDIR}' 20613libdir: 20614 @echo libdir='${LIBDIR}' 20615_ACEOF 20616 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 20617 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 20618 for ac_var in incroot usrlibdir libdir; do 20619 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 20620 done 20621 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 20622 for ac_extension in a so sl dylib la dll; do 20623 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 20624 test -f "$ac_im_libdir/libX11.$ac_extension"; then 20625 ac_im_usrlibdir=$ac_im_libdir; break 20626 fi 20627 done 20628 # Screen out bogus values from the imake configuration. They are 20629 # bogus both because they are the default anyway, and because 20630 # using them would break gcc on systems where it needs fixed includes. 20631 case $ac_im_incroot in 20632 /usr/include) ac_x_includes= ;; 20633 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 20634 esac 20635 case $ac_im_usrlibdir in 20636 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 20637 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 20638 esac 20639 fi 20640 cd .. 20641 rm -f -r conftest.dir 20642fi 20643 20644# Standard set of common directories for X headers. 20645# Check X11 before X11Rn because it is often a symlink to the current release. 20646ac_x_header_dirs=' 20647/usr/X11/include 20648/usr/X11R7/include 20649/usr/X11R6/include 20650/usr/X11R5/include 20651/usr/X11R4/include 20652 20653/usr/include/X11 20654/usr/include/X11R7 20655/usr/include/X11R6 20656/usr/include/X11R5 20657/usr/include/X11R4 20658 20659/usr/local/X11/include 20660/usr/local/X11R7/include 20661/usr/local/X11R6/include 20662/usr/local/X11R5/include 20663/usr/local/X11R4/include 20664 20665/usr/local/include/X11 20666/usr/local/include/X11R7 20667/usr/local/include/X11R6 20668/usr/local/include/X11R5 20669/usr/local/include/X11R4 20670 20671/usr/X386/include 20672/usr/x386/include 20673/usr/XFree86/include/X11 20674 20675/usr/include 20676/usr/local/include 20677/usr/unsupported/include 20678/usr/athena/include 20679/usr/local/x11r5/include 20680/usr/lpp/Xamples/include 20681 20682/usr/openwin/include 20683/usr/openwin/share/include' 20684 20685if test "$ac_x_includes" = no; then 20686 # Guess where to find include files, by looking for Xlib.h. 20687 # First, try using that file with no special directory specified. 20688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20689/* end confdefs.h. */ 20690#include <X11/Xlib.h> 20691_ACEOF 20692if ac_fn_cxx_try_cpp "$LINENO"; then : 20693 # We can compile using X headers with no special include directory. 20694ac_x_includes= 20695else 20696 for ac_dir in $ac_x_header_dirs; do 20697 if test -r "$ac_dir/X11/Xlib.h"; then 20698 ac_x_includes=$ac_dir 20699 break 20700 fi 20701done 20702fi 20703rm -f conftest.err conftest.$ac_ext 20704fi # $ac_x_includes = no 20705 20706if test "$ac_x_libraries" = no; then 20707 # Check for the libraries. 20708 # See if we find them without any special options. 20709 # Don't add to $LIBS permanently. 20710 ac_save_LIBS=$LIBS 20711 LIBS="-lX11 $LIBS" 20712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20713/* end confdefs.h. */ 20714#include <X11/Xlib.h> 20715int 20716main () 20717{ 20718XrmInitialize () 20719 ; 20720 return 0; 20721} 20722_ACEOF 20723if ac_fn_cxx_try_link "$LINENO"; then : 20724 LIBS=$ac_save_LIBS 20725# We can link X programs with no special library path. 20726ac_x_libraries= 20727else 20728 LIBS=$ac_save_LIBS 20729for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 20730do 20731 # Don't even attempt the hair of trying to link an X program! 20732 for ac_extension in a so sl dylib la dll; do 20733 if test -r "$ac_dir/libX11.$ac_extension"; then 20734 ac_x_libraries=$ac_dir 20735 break 2 20736 fi 20737 done 20738done 20739fi 20740rm -f core conftest.err conftest.$ac_objext \ 20741 conftest$ac_exeext conftest.$ac_ext 20742fi # $ac_x_libraries = no 20743 20744case $ac_x_includes,$ac_x_libraries in #( 20745 no,* | *,no | *\'*) 20746 # Didn't find X, or a directory has "'" in its name. 20747 ac_cv_have_x="have_x=no";; #( 20748 *) 20749 # Record where we found X for the cache. 20750 ac_cv_have_x="have_x=yes\ 20751 ac_x_includes='$ac_x_includes'\ 20752 ac_x_libraries='$ac_x_libraries'" 20753esac 20754fi 20755;; #( 20756 *) have_x=yes;; 20757 esac 20758 eval "$ac_cv_have_x" 20759fi # $with_x != no 20760 20761if test "$have_x" != yes; then 20762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 20763$as_echo "$have_x" >&6; } 20764 no_x=yes 20765else 20766 # If each of the values was on the command line, it overrides each guess. 20767 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 20768 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 20769 # Update the cache value to reflect the command line values. 20770 ac_cv_have_x="have_x=yes\ 20771 ac_x_includes='$x_includes'\ 20772 ac_x_libraries='$x_libraries'" 20773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 20774$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 20775fi 20776 20777if test "$no_x" = yes; then 20778 # Not all programs may use this symbol, but it does not hurt to define it. 20779 20780$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 20781 20782 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 20783else 20784 if test -n "$x_includes"; then 20785 X_CFLAGS="$X_CFLAGS -I$x_includes" 20786 fi 20787 20788 # It would also be nice to do this for all -L options, not just this one. 20789 if test -n "$x_libraries"; then 20790 X_LIBS="$X_LIBS -L$x_libraries" 20791 # For Solaris; some versions of Sun CC require a space after -R and 20792 # others require no space. Words are not sufficient . . . . 20793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 20794$as_echo_n "checking whether -R must be followed by a space... " >&6; } 20795 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 20796 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 20797 ac_cxx_werror_flag=yes 20798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20799/* end confdefs.h. */ 20800 20801int 20802main () 20803{ 20804 20805 ; 20806 return 0; 20807} 20808_ACEOF 20809if ac_fn_cxx_try_link "$LINENO"; then : 20810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20811$as_echo "no" >&6; } 20812 X_LIBS="$X_LIBS -R$x_libraries" 20813else 20814 LIBS="$ac_xsave_LIBS -R $x_libraries" 20815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20816/* end confdefs.h. */ 20817 20818int 20819main () 20820{ 20821 20822 ; 20823 return 0; 20824} 20825_ACEOF 20826if ac_fn_cxx_try_link "$LINENO"; then : 20827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20828$as_echo "yes" >&6; } 20829 X_LIBS="$X_LIBS -R $x_libraries" 20830else 20831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 20832$as_echo "neither works" >&6; } 20833fi 20834rm -f core conftest.err conftest.$ac_objext \ 20835 conftest$ac_exeext conftest.$ac_ext 20836fi 20837rm -f core conftest.err conftest.$ac_objext \ 20838 conftest$ac_exeext conftest.$ac_ext 20839 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 20840 LIBS=$ac_xsave_LIBS 20841 fi 20842 20843 # Check for system-dependent libraries X programs must link with. 20844 # Do this before checking for the system-independent R6 libraries 20845 # (-lICE), since we may need -lsocket or whatever for X linking. 20846 20847 if test "$ISC" = yes; then 20848 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 20849 else 20850 # Martyn Johnson says this is needed for Ultrix, if the X 20851 # libraries were built with DECnet support. And Karl Berry says 20852 # the Alpha needs dnet_stub (dnet does not exist). 20853 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 20854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20855/* end confdefs.h. */ 20856 20857/* Override any GCC internal prototype to avoid an error. 20858 Use char because int might match the return type of a GCC 20859 builtin and then its argument prototype would still apply. */ 20860#ifdef __cplusplus 20861extern "C" 20862#endif 20863char XOpenDisplay (); 20864int 20865main () 20866{ 20867return XOpenDisplay (); 20868 ; 20869 return 0; 20870} 20871_ACEOF 20872if ac_fn_cxx_try_link "$LINENO"; then : 20873 20874else 20875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 20876$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 20877if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then : 20878 $as_echo_n "(cached) " >&6 20879else 20880 ac_check_lib_save_LIBS=$LIBS 20881LIBS="-ldnet $LIBS" 20882cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20883/* end confdefs.h. */ 20884 20885/* Override any GCC internal prototype to avoid an error. 20886 Use char because int might match the return type of a GCC 20887 builtin and then its argument prototype would still apply. */ 20888#ifdef __cplusplus 20889extern "C" 20890#endif 20891char dnet_ntoa (); 20892int 20893main () 20894{ 20895return dnet_ntoa (); 20896 ; 20897 return 0; 20898} 20899_ACEOF 20900if ac_fn_cxx_try_link "$LINENO"; then : 20901 ac_cv_lib_dnet_dnet_ntoa=yes 20902else 20903 ac_cv_lib_dnet_dnet_ntoa=no 20904fi 20905rm -f core conftest.err conftest.$ac_objext \ 20906 conftest$ac_exeext conftest.$ac_ext 20907LIBS=$ac_check_lib_save_LIBS 20908fi 20909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 20910$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 20911if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then : 20912 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 20913fi 20914 20915 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 20916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 20917$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 20918if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then : 20919 $as_echo_n "(cached) " >&6 20920else 20921 ac_check_lib_save_LIBS=$LIBS 20922LIBS="-ldnet_stub $LIBS" 20923cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20924/* end confdefs.h. */ 20925 20926/* Override any GCC internal prototype to avoid an error. 20927 Use char because int might match the return type of a GCC 20928 builtin and then its argument prototype would still apply. */ 20929#ifdef __cplusplus 20930extern "C" 20931#endif 20932char dnet_ntoa (); 20933int 20934main () 20935{ 20936return dnet_ntoa (); 20937 ; 20938 return 0; 20939} 20940_ACEOF 20941if ac_fn_cxx_try_link "$LINENO"; then : 20942 ac_cv_lib_dnet_stub_dnet_ntoa=yes 20943else 20944 ac_cv_lib_dnet_stub_dnet_ntoa=no 20945fi 20946rm -f core conftest.err conftest.$ac_objext \ 20947 conftest$ac_exeext conftest.$ac_ext 20948LIBS=$ac_check_lib_save_LIBS 20949fi 20950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 20951$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 20952if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then : 20953 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 20954fi 20955 20956 fi 20957fi 20958rm -f core conftest.err conftest.$ac_objext \ 20959 conftest$ac_exeext conftest.$ac_ext 20960 LIBS="$ac_xsave_LIBS" 20961 20962 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 20963 # to get the SysV transport functions. 20964 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 20965 # needs -lnsl. 20966 # The nsl library prevents programs from opening the X display 20967 # on Irix 5.2, according to T.E. Dickey. 20968 # The functions gethostbyname, getservbyname, and inet_addr are 20969 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 20970 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 20971if test "x$ac_cv_func_gethostbyname" = x""yes; then : 20972 20973fi 20974 20975 if test $ac_cv_func_gethostbyname = no; then 20976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 20977$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 20978if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then : 20979 $as_echo_n "(cached) " >&6 20980else 20981 ac_check_lib_save_LIBS=$LIBS 20982LIBS="-lnsl $LIBS" 20983cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20984/* end confdefs.h. */ 20985 20986/* Override any GCC internal prototype to avoid an error. 20987 Use char because int might match the return type of a GCC 20988 builtin and then its argument prototype would still apply. */ 20989#ifdef __cplusplus 20990extern "C" 20991#endif 20992char gethostbyname (); 20993int 20994main () 20995{ 20996return gethostbyname (); 20997 ; 20998 return 0; 20999} 21000_ACEOF 21001if ac_fn_cxx_try_link "$LINENO"; then : 21002 ac_cv_lib_nsl_gethostbyname=yes 21003else 21004 ac_cv_lib_nsl_gethostbyname=no 21005fi 21006rm -f core conftest.err conftest.$ac_objext \ 21007 conftest$ac_exeext conftest.$ac_ext 21008LIBS=$ac_check_lib_save_LIBS 21009fi 21010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 21011$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 21012if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then : 21013 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 21014fi 21015 21016 if test $ac_cv_lib_nsl_gethostbyname = no; then 21017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 21018$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 21019if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then : 21020 $as_echo_n "(cached) " >&6 21021else 21022 ac_check_lib_save_LIBS=$LIBS 21023LIBS="-lbsd $LIBS" 21024cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21025/* end confdefs.h. */ 21026 21027/* Override any GCC internal prototype to avoid an error. 21028 Use char because int might match the return type of a GCC 21029 builtin and then its argument prototype would still apply. */ 21030#ifdef __cplusplus 21031extern "C" 21032#endif 21033char gethostbyname (); 21034int 21035main () 21036{ 21037return gethostbyname (); 21038 ; 21039 return 0; 21040} 21041_ACEOF 21042if ac_fn_cxx_try_link "$LINENO"; then : 21043 ac_cv_lib_bsd_gethostbyname=yes 21044else 21045 ac_cv_lib_bsd_gethostbyname=no 21046fi 21047rm -f core conftest.err conftest.$ac_objext \ 21048 conftest$ac_exeext conftest.$ac_ext 21049LIBS=$ac_check_lib_save_LIBS 21050fi 21051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 21052$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 21053if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then : 21054 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 21055fi 21056 21057 fi 21058 fi 21059 21060 # lieder@skyler.mavd.honeywell.com says without -lsocket, 21061 # socket/setsockopt and other routines are undefined under SCO ODT 21062 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 21063 # on later versions), says Simon Leinen: it contains gethostby* 21064 # variants that don't use the name server (or something). -lsocket 21065 # must be given before -lnsl if both are needed. We assume that 21066 # if connect needs -lnsl, so does gethostbyname. 21067 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 21068if test "x$ac_cv_func_connect" = x""yes; then : 21069 21070fi 21071 21072 if test $ac_cv_func_connect = no; then 21073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 21074$as_echo_n "checking for connect in -lsocket... " >&6; } 21075if test "${ac_cv_lib_socket_connect+set}" = set; then : 21076 $as_echo_n "(cached) " >&6 21077else 21078 ac_check_lib_save_LIBS=$LIBS 21079LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 21080cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21081/* end confdefs.h. */ 21082 21083/* Override any GCC internal prototype to avoid an error. 21084 Use char because int might match the return type of a GCC 21085 builtin and then its argument prototype would still apply. */ 21086#ifdef __cplusplus 21087extern "C" 21088#endif 21089char connect (); 21090int 21091main () 21092{ 21093return connect (); 21094 ; 21095 return 0; 21096} 21097_ACEOF 21098if ac_fn_cxx_try_link "$LINENO"; then : 21099 ac_cv_lib_socket_connect=yes 21100else 21101 ac_cv_lib_socket_connect=no 21102fi 21103rm -f core conftest.err conftest.$ac_objext \ 21104 conftest$ac_exeext conftest.$ac_ext 21105LIBS=$ac_check_lib_save_LIBS 21106fi 21107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 21108$as_echo "$ac_cv_lib_socket_connect" >&6; } 21109if test "x$ac_cv_lib_socket_connect" = x""yes; then : 21110 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 21111fi 21112 21113 fi 21114 21115 # Guillermo Gomez says -lposix is necessary on A/UX. 21116 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 21117if test "x$ac_cv_func_remove" = x""yes; then : 21118 21119fi 21120 21121 if test $ac_cv_func_remove = no; then 21122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 21123$as_echo_n "checking for remove in -lposix... " >&6; } 21124if test "${ac_cv_lib_posix_remove+set}" = set; then : 21125 $as_echo_n "(cached) " >&6 21126else 21127 ac_check_lib_save_LIBS=$LIBS 21128LIBS="-lposix $LIBS" 21129cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21130/* end confdefs.h. */ 21131 21132/* Override any GCC internal prototype to avoid an error. 21133 Use char because int might match the return type of a GCC 21134 builtin and then its argument prototype would still apply. */ 21135#ifdef __cplusplus 21136extern "C" 21137#endif 21138char remove (); 21139int 21140main () 21141{ 21142return remove (); 21143 ; 21144 return 0; 21145} 21146_ACEOF 21147if ac_fn_cxx_try_link "$LINENO"; then : 21148 ac_cv_lib_posix_remove=yes 21149else 21150 ac_cv_lib_posix_remove=no 21151fi 21152rm -f core conftest.err conftest.$ac_objext \ 21153 conftest$ac_exeext conftest.$ac_ext 21154LIBS=$ac_check_lib_save_LIBS 21155fi 21156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 21157$as_echo "$ac_cv_lib_posix_remove" >&6; } 21158if test "x$ac_cv_lib_posix_remove" = x""yes; then : 21159 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 21160fi 21161 21162 fi 21163 21164 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 21165 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 21166if test "x$ac_cv_func_shmat" = x""yes; then : 21167 21168fi 21169 21170 if test $ac_cv_func_shmat = no; then 21171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 21172$as_echo_n "checking for shmat in -lipc... " >&6; } 21173if test "${ac_cv_lib_ipc_shmat+set}" = set; then : 21174 $as_echo_n "(cached) " >&6 21175else 21176 ac_check_lib_save_LIBS=$LIBS 21177LIBS="-lipc $LIBS" 21178cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21179/* end confdefs.h. */ 21180 21181/* Override any GCC internal prototype to avoid an error. 21182 Use char because int might match the return type of a GCC 21183 builtin and then its argument prototype would still apply. */ 21184#ifdef __cplusplus 21185extern "C" 21186#endif 21187char shmat (); 21188int 21189main () 21190{ 21191return shmat (); 21192 ; 21193 return 0; 21194} 21195_ACEOF 21196if ac_fn_cxx_try_link "$LINENO"; then : 21197 ac_cv_lib_ipc_shmat=yes 21198else 21199 ac_cv_lib_ipc_shmat=no 21200fi 21201rm -f core conftest.err conftest.$ac_objext \ 21202 conftest$ac_exeext conftest.$ac_ext 21203LIBS=$ac_check_lib_save_LIBS 21204fi 21205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 21206$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 21207if test "x$ac_cv_lib_ipc_shmat" = x""yes; then : 21208 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 21209fi 21210 21211 fi 21212 fi 21213 21214 # Check for libraries that X11R6 Xt/Xaw programs need. 21215 ac_save_LDFLAGS=$LDFLAGS 21216 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 21217 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 21218 # check for ICE first), but we must link in the order -lSM -lICE or 21219 # we get undefined symbols. So assume we have SM if we have ICE. 21220 # These have to be linked with before -lX11, unlike the other 21221 # libraries we check for below, so use a different variable. 21222 # John Interrante, Karl Berry 21223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 21224$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 21225if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then : 21226 $as_echo_n "(cached) " >&6 21227else 21228 ac_check_lib_save_LIBS=$LIBS 21229LIBS="-lICE $X_EXTRA_LIBS $LIBS" 21230cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21231/* end confdefs.h. */ 21232 21233/* Override any GCC internal prototype to avoid an error. 21234 Use char because int might match the return type of a GCC 21235 builtin and then its argument prototype would still apply. */ 21236#ifdef __cplusplus 21237extern "C" 21238#endif 21239char IceConnectionNumber (); 21240int 21241main () 21242{ 21243return IceConnectionNumber (); 21244 ; 21245 return 0; 21246} 21247_ACEOF 21248if ac_fn_cxx_try_link "$LINENO"; then : 21249 ac_cv_lib_ICE_IceConnectionNumber=yes 21250else 21251 ac_cv_lib_ICE_IceConnectionNumber=no 21252fi 21253rm -f core conftest.err conftest.$ac_objext \ 21254 conftest$ac_exeext conftest.$ac_ext 21255LIBS=$ac_check_lib_save_LIBS 21256fi 21257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 21258$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 21259if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then : 21260 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 21261fi 21262 21263 LDFLAGS=$ac_save_LDFLAGS 21264 21265fi 21266 21267 21268 21269 21270sim_ac_enable_darwin_x11=false 21271 21272case $host_os in 21273 darwin* ) 21274 # Check whether --enable-darwin-x11 was given. 21275if test "${enable_darwin_x11+set}" = set; then : 21276 enableval=$enable_darwin_x11; case "${enableval}" in 21277 yes | true) sim_ac_enable_darwin_x11=true ;; 21278 no | false) sim_ac_enable_darwin_x11=false; no_x=yes ;; 21279 *) 21280as_fn_error "invalid value \"${enableval}\" for \"--enable-darwin-x11\" configure argument" "$LINENO" 5 21281 ;; 21282 esac 21283else 21284 sim_ac_enable_darwin_x11=false; no_x=yes 21285fi 21286 21287 ;; 21288esac 21289 21290sim_ac_x11_avail=no 21291 21292if test x"$no_x" != xyes; then 21293 21294 # *** DEBUG *** 21295 # Keep this around, as it can be handy when testing on new systems. 21296 # echo "X_CFLAGS: $X_CFLAGS" 21297 # echo "X_PRE_LIBS: $X_PRE_LIBS" 21298 # echo "X_LIBS: $X_LIBS" 21299 # echo "X_EXTRA_LIBS: $X_EXTRA_LIBS" 21300 # echo 21301 # exit 0 21302 21303 sim_ac_x11_cppflags="$X_CFLAGS" 21304 sim_ac_x11_ldflags="$X_LIBS" 21305 sim_ac_x11_libs="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS" 21306 21307 sim_ac_save_cppflags=$CPPFLAGS 21308 sim_ac_save_ldflags=$LDFLAGS 21309 sim_ac_save_libs=$LIBS 21310 21311 CPPFLAGS="$CPPFLAGS $sim_ac_x11_cppflags" 21312 LDFLAGS="$LDFLAGS $sim_ac_x11_ldflags" 21313 LIBS="$sim_ac_x11_libs $LIBS" 21314 21315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link against X11" >&5 21316$as_echo_n "checking whether we can link against X11... " >&6; } 21317if test "${sim_cv_lib_x11_avail+set}" = set; then : 21318 $as_echo_n "(cached) " >&6 21319else 21320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21321/* end confdefs.h. */ 21322#include <X11/Xlib.h> 21323int 21324main () 21325{ 21326(void)XOpenDisplay(0L); 21327 ; 21328 return 0; 21329} 21330_ACEOF 21331if ac_fn_cxx_try_link "$LINENO"; then : 21332 sim_cv_lib_x11_avail=yes 21333else 21334 sim_cv_lib_x11_avail=no 21335fi 21336rm -f core conftest.err conftest.$ac_objext \ 21337 conftest$ac_exeext conftest.$ac_ext 21338fi 21339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_lib_x11_avail" >&5 21340$as_echo "$sim_cv_lib_x11_avail" >&6; } 21341 21342 if test x"$sim_cv_lib_x11_avail" = x"yes"; then 21343 sim_ac_x11_avail=yes 21344 sim_ac_want_x11=yes 21345 else 21346 CPPFLAGS=$sim_ac_save_cppflags 21347 LDFLAGS=$sim_ac_save_ldflags 21348 LIBS=$sim_ac_save_libs 21349 sim_ac_want_x11=no 21350 fi 21351fi 21352 21353 ;; 21354 *) 21355 sim_ac_want_x11=yes 21356 ;; 21357esac 21358 21359# ************************************************************************** 21360# Header files we might want. 21361 21362for ac_header in windows.h unistd.h sys/types.h sys/time.h netinet/in.h 21363do : 21364 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 21365ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 21366eval as_val=\$$as_ac_Header 21367 if test "x$as_val" = x""yes; then : 21368 cat >>confdefs.h <<_ACEOF 21369#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 21370_ACEOF 21371 21372fi 21373 21374done 21375 21376 21377 21378# At least with MSVC++, these headers needs windows.h to have been included first. 21379for ac_header in tlhelp32.h 21380do : 21381 ac_fn_cxx_check_header_compile "$LINENO" "tlhelp32.h" "ac_cv_header_tlhelp32_h" " 21382#ifdef HAVE_WINDOWS_H 21383#include <windows.h> 21384#endif 21385 21386" 21387if test "x$ac_cv_header_tlhelp32_h" = x""yes; then : 21388 cat >>confdefs.h <<_ACEOF 21389#define HAVE_TLHELP32_H 1 21390_ACEOF 21391 21392fi 21393 21394done 21395 21396 21397 21398if test x"$sim_ac_want_x11" = xyes; then 21399 for ac_header in X11/extensions/SGIMisc.h X11/Xproto.h X11/extensions/XInput.h 21400do : 21401 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 21402ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 21403eval as_val=\$$as_ac_Header 21404 if test "x$as_val" = x""yes; then : 21405 cat >>confdefs.h <<_ACEOF 21406#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 21407_ACEOF 21408 21409fi 21410 21411done 21412 21413fi 21414 21415# ******************************************************************* 21416 21417 21418sim_ac_have_win32_api=false 21419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the Win32 API is available" >&5 21420$as_echo_n "checking if the Win32 API is available... " >&6; } 21421cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21422/* end confdefs.h. */ 21423 21424#include <windows.h> 21425 21426int 21427main () 21428{ 21429 21430 /* These need to be as basic as possible. I.e. they should be 21431 available on all Windows versions. That means NT 3.1 and later, 21432 Win95 and later, WinCE 1.0 and later), their definitions should 21433 be available from windows.h, and should be linked in from kernel32. 21434 21435 The ones below are otherwise rather random picks. 21436 */ 21437 (void)CreateDirectory(NULL, NULL); 21438 (void)RemoveDirectory(NULL); 21439 SetLastError(0); 21440 (void)GetLastError(); 21441 (void)LocalAlloc(0, 1); 21442 (void)LocalFree(NULL); 21443 return 0; 21444 21445 ; 21446 return 0; 21447} 21448_ACEOF 21449if ac_fn_cxx_try_compile "$LINENO"; then : 21450 sim_ac_have_win32_api=true 21451fi 21452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21453 21454if $sim_ac_have_win32_api; then 21455 21456$as_echo "#define HAVE_WIN32_API 1" >>confdefs.h 21457 21458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21459$as_echo "yes" >&6; } 21460else 21461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21462$as_echo "no" >&6; } 21463fi 21464 21465 21466# ******************************************************************* 21467# Instead of getenv() on most Win32 platforms (not Windows CE). 21468 21469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GetEnvironmentVariable() function" >&5 21470$as_echo_n "checking for GetEnvironmentVariable() function... " >&6; } 21471cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21472/* end confdefs.h. */ 21473#include <windows.h> 21474int 21475main () 21476{ 21477(void)GetEnvironmentVariable("FOOBAR", NULL, 0); 21478 ; 21479 return 0; 21480} 21481_ACEOF 21482if ac_fn_cxx_try_link "$LINENO"; then : 21483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21484$as_echo "yes" >&6; } 21485 21486$as_echo "#define HAVE_GETENVIRONMENTVARIABLE 1" >>confdefs.h 21487 21488else 21489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21490$as_echo "no" >&6; } 21491fi 21492rm -f core conftest.err conftest.$ac_objext \ 21493 conftest$ac_exeext conftest.$ac_ext 21494 21495# ******************************************************************* 21496# Win32 LoadLibrary() and friends available? (Used for Win32-specific 21497# debugging code). 21498 21499 21500# Check whether --enable-loadlibrary was given. 21501if test "${enable_loadlibrary+set}" = set; then : 21502 enableval=$enable_loadlibrary; case $enableval in 21503 yes | true ) sim_ac_win32_loadlibrary=true ;; 21504 *) sim_ac_win32_loadlibrary=false ;; 21505 esac 21506else 21507 sim_ac_win32_loadlibrary=true 21508fi 21509 21510 21511if $sim_ac_win32_loadlibrary; then 21512 # Use SIM_AC_CHECK_HEADERS instead of .._HEADER to get the 21513 # HAVE_DLFCN_H symbol set up in config.h automatically. 21514 for ac_header in windows.h 21515do : 21516 ac_fn_cxx_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" 21517if test "x$ac_cv_header_windows_h" = x""yes; then : 21518 cat >>confdefs.h <<_ACEOF 21519#define HAVE_WINDOWS_H 1 21520_ACEOF 21521 21522fi 21523 21524done 21525 21526 21527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Win32 LoadLibrary() method is available" >&5 21528$as_echo_n "checking whether the Win32 LoadLibrary() method is available... " >&6; } 21529if test "${sim_cv_lib_loadlibrary_avail+set}" = set; then : 21530 $as_echo_n "(cached) " >&6 21531else 21532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21533/* end confdefs.h. */ 21534 21535#ifdef HAVE_WINDOWS_H 21536#include <windows.h> 21537#endif /* HAVE_WINDOWS_H */ 21538 21539int 21540main () 21541{ 21542(void)LoadLibrary(0L); (void)GetProcAddress(0L, 0L); (void)FreeLibrary(0L); 21543 ; 21544 return 0; 21545} 21546_ACEOF 21547if ac_fn_cxx_try_link "$LINENO"; then : 21548 sim_cv_lib_loadlibrary_avail=yes 21549else 21550 sim_cv_lib_loadlibrary_avail=no 21551fi 21552rm -f core conftest.err conftest.$ac_objext \ 21553 conftest$ac_exeext conftest.$ac_ext 21554fi 21555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_lib_loadlibrary_avail" >&5 21556$as_echo "$sim_cv_lib_loadlibrary_avail" >&6; } 21557 21558 if test x"$sim_cv_lib_loadlibrary_avail" = xyes; then 21559 21560$as_echo "#define HAVE_WIN32_LOADLIBRARY 1" >>confdefs.h 21561 21562 21563 else 21564 : 21565 fi 21566fi 21567 21568 21569# ******************************************************************* 21570# The GetClassName() Win32 API call needs user32.lib to be added to 21571# the link line - that's the real purpose of this test. 21572 21573sim_ac_save_LIBS=$LIBS 21574LIBS="$LIBS -luser32" 21575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GetClassName() function" >&5 21576$as_echo_n "checking for GetClassName() function... " >&6; } 21577cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21578/* end confdefs.h. */ 21579 21580#ifdef HAVE_WINDOWS_H 21581#include <windows.h> 21582#endif 21583 21584int 21585main () 21586{ 21587 21588 (void)GetClassName(NULL, NULL, 0); 21589 21590 ; 21591 return 0; 21592} 21593_ACEOF 21594if ac_fn_cxx_try_link "$LINENO"; then : 21595 21596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21597$as_echo "yes" >&6; } 21598 SOQT_EXTRA_LIBS="$SOQT_EXTRA_LIBS -luser32" 21599 21600else 21601 21602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21603$as_echo "no" >&6; } 21604 LIBS=$sim_ac_save_LIBS 21605 21606fi 21607rm -f core conftest.err conftest.$ac_objext \ 21608 conftest$ac_exeext conftest.$ac_ext 21609 21610 21611# ************************************************************************** 21612# Check to see if fink is installed on the system. 21613# The only reason why we would need fink is for Qt/X11 on Mac OS X, so if 21614# we are doing a non-X11 build, ignore it to avoid linking problems. 21615 21616if test x"$sim_ac_want_x11" = xyes; then 21617 21618sim_ac_have_fink=false 21619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if fink is available" >&5 21620$as_echo_n "checking if fink is available... " >&6; } 21621if test -d /sw/include && test -d /sw/lib; then 21622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21623$as_echo "yes" >&6; } 21624 sim_ac_have_fink=true 21625 sim_ac_fink_cppflags="-I/sw/include" 21626 sim_ac_fink_ldflags="-L/sw/lib" 21627 CPPFLAGS="$CPPFLAGS $sim_ac_fink_cppflags" 21628 LDFLAGS="$LDFLAGS $sim_ac_fink_ldflags" 21629else 21630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21631$as_echo "no" >&6; } 21632 sim_ac_fink_cppflags= 21633 sim_ac_fink_ldflags= 21634fi 21635 21636if $sim_ac_have_fink; then 21637 21638 SOGUI_EXTRA_CPPFLAGS="$SOGUI_EXTRA_CPPFLAGS $sim_ac_fink_cppflags" 21639 SOGUI_EXTRA_LDFLAGS="$SOGUI_EXTRA_LDFLAGS $sim_ac_fink_ldflags" 21640 21641else 21642 : 21643fi 21644 21645 21646fi 21647 21648# ************************************************************************** 21649# Search and set up necessary stuff to use Open Inventor or Coin. 21650 21651## Run AC_PATH_XTRA outside the if-then-else-fi, as AC_PATH_XTRA 21652## AC_REQUIREs AC_PATH_X, which means AC_PATH_X will only get 21653## expanded on the first AC_PATH_XTRA, which means trouble when 21654## AC_PATH_XTRA uses $no_x="yes"? from AC_PATH_X to decide whether 21655## or not to define X_DISPLAY_MISSING on X11-less systems. 21656 21657if test x"$sim_ac_want_x11" = xyes; then 21658 if test "$no_x" = yes; then 21659 # Not all programs may use this symbol, but it does not hurt to define it. 21660 21661$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 21662 21663 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 21664else 21665 if test -n "$x_includes"; then 21666 X_CFLAGS="$X_CFLAGS -I$x_includes" 21667 fi 21668 21669 # It would also be nice to do this for all -L options, not just this one. 21670 if test -n "$x_libraries"; then 21671 X_LIBS="$X_LIBS -L$x_libraries" 21672 # For Solaris; some versions of Sun CC require a space after -R and 21673 # others require no space. Words are not sufficient . . . . 21674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 21675$as_echo_n "checking whether -R must be followed by a space... " >&6; } 21676 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 21677 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 21678 ac_cxx_werror_flag=yes 21679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21680/* end confdefs.h. */ 21681 21682int 21683main () 21684{ 21685 21686 ; 21687 return 0; 21688} 21689_ACEOF 21690if ac_fn_cxx_try_link "$LINENO"; then : 21691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21692$as_echo "no" >&6; } 21693 X_LIBS="$X_LIBS -R$x_libraries" 21694else 21695 LIBS="$ac_xsave_LIBS -R $x_libraries" 21696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21697/* end confdefs.h. */ 21698 21699int 21700main () 21701{ 21702 21703 ; 21704 return 0; 21705} 21706_ACEOF 21707if ac_fn_cxx_try_link "$LINENO"; then : 21708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21709$as_echo "yes" >&6; } 21710 X_LIBS="$X_LIBS -R $x_libraries" 21711else 21712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 21713$as_echo "neither works" >&6; } 21714fi 21715rm -f core conftest.err conftest.$ac_objext \ 21716 conftest$ac_exeext conftest.$ac_ext 21717fi 21718rm -f core conftest.err conftest.$ac_objext \ 21719 conftest$ac_exeext conftest.$ac_ext 21720 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 21721 LIBS=$ac_xsave_LIBS 21722 fi 21723 21724 # Check for system-dependent libraries X programs must link with. 21725 # Do this before checking for the system-independent R6 libraries 21726 # (-lICE), since we may need -lsocket or whatever for X linking. 21727 21728 if test "$ISC" = yes; then 21729 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 21730 else 21731 # Martyn Johnson says this is needed for Ultrix, if the X 21732 # libraries were built with DECnet support. And Karl Berry says 21733 # the Alpha needs dnet_stub (dnet does not exist). 21734 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 21735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21736/* end confdefs.h. */ 21737 21738/* Override any GCC internal prototype to avoid an error. 21739 Use char because int might match the return type of a GCC 21740 builtin and then its argument prototype would still apply. */ 21741#ifdef __cplusplus 21742extern "C" 21743#endif 21744char XOpenDisplay (); 21745int 21746main () 21747{ 21748return XOpenDisplay (); 21749 ; 21750 return 0; 21751} 21752_ACEOF 21753if ac_fn_cxx_try_link "$LINENO"; then : 21754 21755else 21756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 21757$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 21758if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then : 21759 $as_echo_n "(cached) " >&6 21760else 21761 ac_check_lib_save_LIBS=$LIBS 21762LIBS="-ldnet $LIBS" 21763cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21764/* end confdefs.h. */ 21765 21766/* Override any GCC internal prototype to avoid an error. 21767 Use char because int might match the return type of a GCC 21768 builtin and then its argument prototype would still apply. */ 21769#ifdef __cplusplus 21770extern "C" 21771#endif 21772char dnet_ntoa (); 21773int 21774main () 21775{ 21776return dnet_ntoa (); 21777 ; 21778 return 0; 21779} 21780_ACEOF 21781if ac_fn_cxx_try_link "$LINENO"; then : 21782 ac_cv_lib_dnet_dnet_ntoa=yes 21783else 21784 ac_cv_lib_dnet_dnet_ntoa=no 21785fi 21786rm -f core conftest.err conftest.$ac_objext \ 21787 conftest$ac_exeext conftest.$ac_ext 21788LIBS=$ac_check_lib_save_LIBS 21789fi 21790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 21791$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 21792if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then : 21793 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 21794fi 21795 21796 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 21797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 21798$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 21799if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then : 21800 $as_echo_n "(cached) " >&6 21801else 21802 ac_check_lib_save_LIBS=$LIBS 21803LIBS="-ldnet_stub $LIBS" 21804cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21805/* end confdefs.h. */ 21806 21807/* Override any GCC internal prototype to avoid an error. 21808 Use char because int might match the return type of a GCC 21809 builtin and then its argument prototype would still apply. */ 21810#ifdef __cplusplus 21811extern "C" 21812#endif 21813char dnet_ntoa (); 21814int 21815main () 21816{ 21817return dnet_ntoa (); 21818 ; 21819 return 0; 21820} 21821_ACEOF 21822if ac_fn_cxx_try_link "$LINENO"; then : 21823 ac_cv_lib_dnet_stub_dnet_ntoa=yes 21824else 21825 ac_cv_lib_dnet_stub_dnet_ntoa=no 21826fi 21827rm -f core conftest.err conftest.$ac_objext \ 21828 conftest$ac_exeext conftest.$ac_ext 21829LIBS=$ac_check_lib_save_LIBS 21830fi 21831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 21832$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 21833if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then : 21834 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 21835fi 21836 21837 fi 21838fi 21839rm -f core conftest.err conftest.$ac_objext \ 21840 conftest$ac_exeext conftest.$ac_ext 21841 LIBS="$ac_xsave_LIBS" 21842 21843 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 21844 # to get the SysV transport functions. 21845 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 21846 # needs -lnsl. 21847 # The nsl library prevents programs from opening the X display 21848 # on Irix 5.2, according to T.E. Dickey. 21849 # The functions gethostbyname, getservbyname, and inet_addr are 21850 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 21851 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 21852if test "x$ac_cv_func_gethostbyname" = x""yes; then : 21853 21854fi 21855 21856 if test $ac_cv_func_gethostbyname = no; then 21857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 21858$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 21859if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then : 21860 $as_echo_n "(cached) " >&6 21861else 21862 ac_check_lib_save_LIBS=$LIBS 21863LIBS="-lnsl $LIBS" 21864cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21865/* end confdefs.h. */ 21866 21867/* Override any GCC internal prototype to avoid an error. 21868 Use char because int might match the return type of a GCC 21869 builtin and then its argument prototype would still apply. */ 21870#ifdef __cplusplus 21871extern "C" 21872#endif 21873char gethostbyname (); 21874int 21875main () 21876{ 21877return gethostbyname (); 21878 ; 21879 return 0; 21880} 21881_ACEOF 21882if ac_fn_cxx_try_link "$LINENO"; then : 21883 ac_cv_lib_nsl_gethostbyname=yes 21884else 21885 ac_cv_lib_nsl_gethostbyname=no 21886fi 21887rm -f core conftest.err conftest.$ac_objext \ 21888 conftest$ac_exeext conftest.$ac_ext 21889LIBS=$ac_check_lib_save_LIBS 21890fi 21891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 21892$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 21893if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then : 21894 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 21895fi 21896 21897 if test $ac_cv_lib_nsl_gethostbyname = no; then 21898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 21899$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 21900if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then : 21901 $as_echo_n "(cached) " >&6 21902else 21903 ac_check_lib_save_LIBS=$LIBS 21904LIBS="-lbsd $LIBS" 21905cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21906/* end confdefs.h. */ 21907 21908/* Override any GCC internal prototype to avoid an error. 21909 Use char because int might match the return type of a GCC 21910 builtin and then its argument prototype would still apply. */ 21911#ifdef __cplusplus 21912extern "C" 21913#endif 21914char gethostbyname (); 21915int 21916main () 21917{ 21918return gethostbyname (); 21919 ; 21920 return 0; 21921} 21922_ACEOF 21923if ac_fn_cxx_try_link "$LINENO"; then : 21924 ac_cv_lib_bsd_gethostbyname=yes 21925else 21926 ac_cv_lib_bsd_gethostbyname=no 21927fi 21928rm -f core conftest.err conftest.$ac_objext \ 21929 conftest$ac_exeext conftest.$ac_ext 21930LIBS=$ac_check_lib_save_LIBS 21931fi 21932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 21933$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 21934if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then : 21935 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 21936fi 21937 21938 fi 21939 fi 21940 21941 # lieder@skyler.mavd.honeywell.com says without -lsocket, 21942 # socket/setsockopt and other routines are undefined under SCO ODT 21943 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 21944 # on later versions), says Simon Leinen: it contains gethostby* 21945 # variants that don't use the name server (or something). -lsocket 21946 # must be given before -lnsl if both are needed. We assume that 21947 # if connect needs -lnsl, so does gethostbyname. 21948 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 21949if test "x$ac_cv_func_connect" = x""yes; then : 21950 21951fi 21952 21953 if test $ac_cv_func_connect = no; then 21954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 21955$as_echo_n "checking for connect in -lsocket... " >&6; } 21956if test "${ac_cv_lib_socket_connect+set}" = set; then : 21957 $as_echo_n "(cached) " >&6 21958else 21959 ac_check_lib_save_LIBS=$LIBS 21960LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 21961cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21962/* end confdefs.h. */ 21963 21964/* Override any GCC internal prototype to avoid an error. 21965 Use char because int might match the return type of a GCC 21966 builtin and then its argument prototype would still apply. */ 21967#ifdef __cplusplus 21968extern "C" 21969#endif 21970char connect (); 21971int 21972main () 21973{ 21974return connect (); 21975 ; 21976 return 0; 21977} 21978_ACEOF 21979if ac_fn_cxx_try_link "$LINENO"; then : 21980 ac_cv_lib_socket_connect=yes 21981else 21982 ac_cv_lib_socket_connect=no 21983fi 21984rm -f core conftest.err conftest.$ac_objext \ 21985 conftest$ac_exeext conftest.$ac_ext 21986LIBS=$ac_check_lib_save_LIBS 21987fi 21988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 21989$as_echo "$ac_cv_lib_socket_connect" >&6; } 21990if test "x$ac_cv_lib_socket_connect" = x""yes; then : 21991 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 21992fi 21993 21994 fi 21995 21996 # Guillermo Gomez says -lposix is necessary on A/UX. 21997 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 21998if test "x$ac_cv_func_remove" = x""yes; then : 21999 22000fi 22001 22002 if test $ac_cv_func_remove = no; then 22003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 22004$as_echo_n "checking for remove in -lposix... " >&6; } 22005if test "${ac_cv_lib_posix_remove+set}" = set; then : 22006 $as_echo_n "(cached) " >&6 22007else 22008 ac_check_lib_save_LIBS=$LIBS 22009LIBS="-lposix $LIBS" 22010cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22011/* end confdefs.h. */ 22012 22013/* Override any GCC internal prototype to avoid an error. 22014 Use char because int might match the return type of a GCC 22015 builtin and then its argument prototype would still apply. */ 22016#ifdef __cplusplus 22017extern "C" 22018#endif 22019char remove (); 22020int 22021main () 22022{ 22023return remove (); 22024 ; 22025 return 0; 22026} 22027_ACEOF 22028if ac_fn_cxx_try_link "$LINENO"; then : 22029 ac_cv_lib_posix_remove=yes 22030else 22031 ac_cv_lib_posix_remove=no 22032fi 22033rm -f core conftest.err conftest.$ac_objext \ 22034 conftest$ac_exeext conftest.$ac_ext 22035LIBS=$ac_check_lib_save_LIBS 22036fi 22037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 22038$as_echo "$ac_cv_lib_posix_remove" >&6; } 22039if test "x$ac_cv_lib_posix_remove" = x""yes; then : 22040 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 22041fi 22042 22043 fi 22044 22045 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 22046 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 22047if test "x$ac_cv_func_shmat" = x""yes; then : 22048 22049fi 22050 22051 if test $ac_cv_func_shmat = no; then 22052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 22053$as_echo_n "checking for shmat in -lipc... " >&6; } 22054if test "${ac_cv_lib_ipc_shmat+set}" = set; then : 22055 $as_echo_n "(cached) " >&6 22056else 22057 ac_check_lib_save_LIBS=$LIBS 22058LIBS="-lipc $LIBS" 22059cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22060/* end confdefs.h. */ 22061 22062/* Override any GCC internal prototype to avoid an error. 22063 Use char because int might match the return type of a GCC 22064 builtin and then its argument prototype would still apply. */ 22065#ifdef __cplusplus 22066extern "C" 22067#endif 22068char shmat (); 22069int 22070main () 22071{ 22072return shmat (); 22073 ; 22074 return 0; 22075} 22076_ACEOF 22077if ac_fn_cxx_try_link "$LINENO"; then : 22078 ac_cv_lib_ipc_shmat=yes 22079else 22080 ac_cv_lib_ipc_shmat=no 22081fi 22082rm -f core conftest.err conftest.$ac_objext \ 22083 conftest$ac_exeext conftest.$ac_ext 22084LIBS=$ac_check_lib_save_LIBS 22085fi 22086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 22087$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 22088if test "x$ac_cv_lib_ipc_shmat" = x""yes; then : 22089 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 22090fi 22091 22092 fi 22093 fi 22094 22095 # Check for libraries that X11R6 Xt/Xaw programs need. 22096 ac_save_LDFLAGS=$LDFLAGS 22097 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 22098 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 22099 # check for ICE first), but we must link in the order -lSM -lICE or 22100 # we get undefined symbols. So assume we have SM if we have ICE. 22101 # These have to be linked with before -lX11, unlike the other 22102 # libraries we check for below, so use a different variable. 22103 # John Interrante, Karl Berry 22104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 22105$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 22106if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then : 22107 $as_echo_n "(cached) " >&6 22108else 22109 ac_check_lib_save_LIBS=$LIBS 22110LIBS="-lICE $X_EXTRA_LIBS $LIBS" 22111cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22112/* end confdefs.h. */ 22113 22114/* Override any GCC internal prototype to avoid an error. 22115 Use char because int might match the return type of a GCC 22116 builtin and then its argument prototype would still apply. */ 22117#ifdef __cplusplus 22118extern "C" 22119#endif 22120char IceConnectionNumber (); 22121int 22122main () 22123{ 22124return IceConnectionNumber (); 22125 ; 22126 return 0; 22127} 22128_ACEOF 22129if ac_fn_cxx_try_link "$LINENO"; then : 22130 ac_cv_lib_ICE_IceConnectionNumber=yes 22131else 22132 ac_cv_lib_ICE_IceConnectionNumber=no 22133fi 22134rm -f core conftest.err conftest.$ac_objext \ 22135 conftest$ac_exeext conftest.$ac_ext 22136LIBS=$ac_check_lib_save_LIBS 22137fi 22138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 22139$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 22140if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then : 22141 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 22142fi 22143 22144 LDFLAGS=$ac_save_LDFLAGS 22145 22146fi 22147 22148fi 22149 22150# $with_inventor is from within SIM_AC_HAVE_INVENTOR_IFELSE, and can 22151# be used here since the value is empty when it reaches this point 22152# unless it has been explicitly set. 22153 22154# Check whether --enable-inventor-debug was given. 22155if test "${enable_inventor_debug+set}" = set; then : 22156 enableval=$enable_inventor_debug; 22157fi 22158 22159 22160if test x"${with_inventor+set}" = x"set" && 22161 test x"${with_inventor}" != x"no"; then 22162 22163 # For Open Inventor linkage, we need to check for a shitload of libraries. 22164 22165 22166 22167# Check whether --with-dl was given. 22168if test "${with_dl+set}" = set; then : 22169 withval=$with_dl; 22170else 22171 with_dl=yes 22172fi 22173 22174 22175if test x"$with_dl" != xno; then 22176 if test x"$with_dl" != xyes; then 22177 sim_ac_dl_cppflags="-I${with_dl}/include" 22178 sim_ac_dl_ldflags="-L${with_dl}/lib" 22179 fi 22180 22181 sim_ac_save_cppflags=$CPPFLAGS 22182 sim_ac_save_ldflags=$LDFLAGS 22183 sim_ac_save_libs=$LIBS 22184 22185 CPPFLAGS="$CPPFLAGS $sim_ac_dl_cppflags" 22186 LDFLAGS="$LDFLAGS $sim_ac_dl_ldflags" 22187 22188 # Use SIM_AC_CHECK_HEADERS instead of .._HEADER to get the 22189 # HAVE_DLFCN_H symbol set up in config.h automatically. 22190 for ac_header in dlfcn.h 22191do : 22192 ac_fn_cxx_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 22193if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 22194 cat >>confdefs.h <<_ACEOF 22195#define HAVE_DLFCN_H 1 22196_ACEOF 22197 22198fi 22199 22200done 22201 22202 22203 sim_ac_dl_avail=false 22204 22205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dl library" >&5 22206$as_echo_n "checking for the dl library... " >&6; } 22207 # At least under FreeBSD, dlopen() et al is part of the C library. 22208 # On HP-UX, dlopen() might reside in a library "svld" instead of "dl". 22209 for sim_ac_dl_libcheck in "" "-ldl" "-lsvld"; do 22210 if $sim_ac_dl_avail; then :; else 22211 LIBS="$sim_ac_dl_libcheck $sim_ac_save_libs" 22212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22213/* end confdefs.h. */ 22214 22215#ifdef HAVE_DLFCN_H 22216#include <dlfcn.h> 22217#endif /* HAVE_DLFCN_H */ 22218 22219int 22220main () 22221{ 22222(void)dlopen(0L, 0); (void)dlsym(0L, "Gunners!"); (void)dlclose(0L); 22223 ; 22224 return 0; 22225} 22226_ACEOF 22227if ac_fn_cxx_try_link "$LINENO"; then : 22228 sim_ac_dl_avail=true 22229 sim_ac_dl_libs="$sim_ac_dl_libcheck" 22230 22231fi 22232rm -f core conftest.err conftest.$ac_objext \ 22233 conftest$ac_exeext conftest.$ac_ext 22234 fi 22235 done 22236 22237 if $sim_ac_dl_avail; then 22238 if test x"$sim_ac_dl_libs" = x""; then 22239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22240$as_echo "yes" >&6; } 22241 else 22242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_dl_cppflags $sim_ac_dl_ldflags $sim_ac_dl_libs" >&5 22243$as_echo "$sim_ac_dl_cppflags $sim_ac_dl_ldflags $sim_ac_dl_libs" >&6; } 22244 fi 22245 else 22246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5 22247$as_echo "not available" >&6; } 22248 fi 22249 22250 if $sim_ac_dl_avail; then 22251 22252 SOGUI_EXTRA_CPPFLAGS="$SOGUI_EXTRA_CPPFLAGS $sim_ac_dl_cppflags" 22253 SOGUI_EXTRA_LDFLAGS="$SOGUI_EXTRA_LDFLAGS $sim_ac_dl_ldflags" 22254 SOGUI_EXTRA_LIBS="$sim_ac_dl_libs $SOGUI_EXTRA_LIBS" 22255 22256 else 22257 CPPFLAGS=$sim_ac_save_cppflags 22258 LDFLAGS=$sim_ac_save_ldflags 22259 LIBS=$sim_ac_save_libs 22260 : 22261 fi 22262fi 22263 22264 22265 22266 22267 22268sim_ac_enable_darwin_x11=false 22269 22270case $host_os in 22271 darwin* ) 22272 # Check whether --enable-darwin-x11 was given. 22273if test "${enable_darwin_x11+set}" = set; then : 22274 enableval=$enable_darwin_x11; case "${enableval}" in 22275 yes | true) sim_ac_enable_darwin_x11=true ;; 22276 no | false) sim_ac_enable_darwin_x11=false; no_x=yes ;; 22277 *) 22278as_fn_error "invalid value \"${enableval}\" for \"--enable-darwin-x11\" configure argument" "$LINENO" 5 22279 ;; 22280 esac 22281else 22282 sim_ac_enable_darwin_x11=false; no_x=yes 22283fi 22284 22285 ;; 22286esac 22287 22288sim_ac_x11_avail=no 22289 22290if test x"$no_x" != xyes; then 22291 22292 # *** DEBUG *** 22293 # Keep this around, as it can be handy when testing on new systems. 22294 # echo "X_CFLAGS: $X_CFLAGS" 22295 # echo "X_PRE_LIBS: $X_PRE_LIBS" 22296 # echo "X_LIBS: $X_LIBS" 22297 # echo "X_EXTRA_LIBS: $X_EXTRA_LIBS" 22298 # echo 22299 # exit 0 22300 22301 sim_ac_x11_cppflags="$X_CFLAGS" 22302 sim_ac_x11_ldflags="$X_LIBS" 22303 sim_ac_x11_libs="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS" 22304 22305 sim_ac_save_cppflags=$CPPFLAGS 22306 sim_ac_save_ldflags=$LDFLAGS 22307 sim_ac_save_libs=$LIBS 22308 22309 CPPFLAGS="$CPPFLAGS $sim_ac_x11_cppflags" 22310 LDFLAGS="$LDFLAGS $sim_ac_x11_ldflags" 22311 LIBS="$sim_ac_x11_libs $LIBS" 22312 22313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link against X11" >&5 22314$as_echo_n "checking whether we can link against X11... " >&6; } 22315if test "${sim_cv_lib_x11_avail+set}" = set; then : 22316 $as_echo_n "(cached) " >&6 22317else 22318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22319/* end confdefs.h. */ 22320#include <X11/Xlib.h> 22321int 22322main () 22323{ 22324(void)XOpenDisplay(0L); 22325 ; 22326 return 0; 22327} 22328_ACEOF 22329if ac_fn_cxx_try_link "$LINENO"; then : 22330 sim_cv_lib_x11_avail=yes 22331else 22332 sim_cv_lib_x11_avail=no 22333fi 22334rm -f core conftest.err conftest.$ac_objext \ 22335 conftest$ac_exeext conftest.$ac_ext 22336fi 22337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_lib_x11_avail" >&5 22338$as_echo "$sim_cv_lib_x11_avail" >&6; } 22339 22340 if test x"$sim_cv_lib_x11_avail" = x"yes"; then 22341 sim_ac_x11_avail=yes 22342 22343 SOGUI_EXTRA_CPPFLAGS="$SOGUI_EXTRA_CPPFLAGS $sim_ac_x11_cppflags" 22344 SOGUI_EXTRA_LDFLAGS="$SOGUI_EXTRA_LDFLAGS $sim_ac_x11_ldflags" 22345 SOGUI_EXTRA_LIBS="$sim_ac_x11_libs $SOGUI_EXTRA_LIBS" 22346 22347 else 22348 CPPFLAGS=$sim_ac_save_cppflags 22349 LDFLAGS=$sim_ac_save_ldflags 22350 LIBS=$sim_ac_save_libs 22351 22352 fi 22353fi 22354 22355 22356 if test x"$sim_ac_x11_avail" = xyes; then 22357 22358 22359sim_ac_x11shmem_avail=no 22360sim_ac_x11shmem_libs="-lXext" 22361sim_ac_save_libs=$LIBS 22362LIBS="$sim_ac_x11shmem_libs $LIBS" 22363 22364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the X11 shared memory extension is available" >&5 22365$as_echo_n "checking whether the X11 shared memory extension is available... " >&6; } 22366if test "${sim_cv_lib_x11shmem_avail+set}" = set; then : 22367 $as_echo_n "(cached) " >&6 22368else 22369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22370/* end confdefs.h. */ 22371#include <X11/Xlib.h> 22372 #include <X11/extensions/XShm.h> 22373int 22374main () 22375{ 22376(void)XShmQueryVersion(0L, 0L, 0L, 0L); 22377 ; 22378 return 0; 22379} 22380_ACEOF 22381if ac_fn_cxx_try_link "$LINENO"; then : 22382 sim_cv_lib_x11shmem_avail=yes 22383else 22384 sim_cv_lib_x11shmem_avail=no 22385fi 22386rm -f core conftest.err conftest.$ac_objext \ 22387 conftest$ac_exeext conftest.$ac_ext 22388fi 22389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_lib_x11shmem_avail" >&5 22390$as_echo "$sim_cv_lib_x11shmem_avail" >&6; } 22391 22392if test x"$sim_cv_lib_x11shmem_avail" = xyes; then 22393 sim_ac_x11shmem_avail=yes 22394 SOGUI_EXTRA_LIBS="$sim_ac_x11shmem_libs $SOGUI_EXTRA_LIBS" 22395else 22396 LIBS=$sim_ac_save_libs 22397 22398fi 22399 22400 22401 22402sim_ac_x11mu_avail=no 22403sim_ac_x11mu_cppflags="" 22404sim_ac_x11mu_ldflags="" 22405sim_ac_x11mu_libs="-lXmu" 22406 22407sim_ac_save_libs=$LIBS 22408sim_ac_save_cppflags=$CPPFLAGS 22409sim_ac_save_ldflags=$LDFLAGS 22410 22411LIBS="$sim_ac_x11mu_libs $LIBS" 22412 22413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the X11 miscellaneous utilities library is available" >&5 22414$as_echo_n "checking whether the X11 miscellaneous utilities library is available... " >&6; } 22415if test "${sim_cv_lib_x11mu_avail+set}" = set; then : 22416 $as_echo_n "(cached) " >&6 22417else 22418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22419/* end confdefs.h. */ 22420#include <X11/Xlib.h> 22421 #include <X11/Xmu/Xmu.h> 22422 #include <X11/Xmu/StdCmap.h> 22423int 22424main () 22425{ 22426(void)XmuAllStandardColormaps(0L); 22427 ; 22428 return 0; 22429} 22430_ACEOF 22431if ac_fn_cxx_try_link "$LINENO"; then : 22432 sim_cv_lib_x11mu_avail=yes 22433else 22434 sim_cv_lib_x11mu_avail=maybe 22435fi 22436rm -f core conftest.err conftest.$ac_objext \ 22437 conftest$ac_exeext conftest.$ac_ext 22438fi 22439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_lib_x11mu_avail" >&5 22440$as_echo "$sim_cv_lib_x11mu_avail" >&6; } 22441 22442if test x"$sim_cv_lib_x11mu_avail" = xyes; then 22443 sim_ac_x11mu_avail=yes 22444else 22445 # On HP-UX, Xmu might be located under /usr/contrib/X11R6/ 22446 mudir=/usr/contrib/X11R6 22447 if test -d $mudir; then 22448 sim_ac_x11mu_cppflags="-I$mudir/include" 22449 sim_ac_x11mu_ldflags="-L$mudir/lib" 22450 CPPFLAGS="$sim_ac_x11mu_cppflags $CPPFLAGS" 22451 LDFLAGS="$sim_ac_x11mu_ldflags $LDFLAGS" 22452 22453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking once more whether the X11 miscellaneous utilities library is available" >&5 22454$as_echo_n "checking once more whether the X11 miscellaneous utilities library is available... " >&6; } 22455if test "${sim_cv_lib_x11mu_contrib_avail+set}" = set; then : 22456 $as_echo_n "(cached) " >&6 22457else 22458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22459/* end confdefs.h. */ 22460#include <X11/Xlib.h> 22461 #include <X11/Xmu/Xmu.h> 22462 #include <X11/Xmu/StdCmap.h> 22463int 22464main () 22465{ 22466(void)XmuAllStandardColormaps(0L); 22467 ; 22468 return 0; 22469} 22470_ACEOF 22471if ac_fn_cxx_try_link "$LINENO"; then : 22472 sim_cv_lib_x11mu_contrib_avail=yes 22473else 22474 sim_cv_lib_x11mu_contrib_avail=no 22475fi 22476rm -f core conftest.err conftest.$ac_objext \ 22477 conftest$ac_exeext conftest.$ac_ext 22478fi 22479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_lib_x11mu_contrib_avail" >&5 22480$as_echo "$sim_cv_lib_x11mu_contrib_avail" >&6; } 22481 if test x"$sim_cv_lib_x11mu_contrib_avail" = xyes; then 22482 sim_ac_x11mu_avail=yes 22483 else 22484 sim_ac_x11mu_cppflags="" 22485 sim_ac_x11mu_ldflags="" 22486 fi 22487 fi 22488fi 22489 22490if test x"$sim_ac_x11mu_avail" = xyes; then 22491 : 22492 SOGUI_EXTRA_LIBS="$sim_ac_x11mu_libs $SOGUI_EXTRA_LIBS" 22493else 22494 LIBS=$sim_ac_save_libs 22495 CPPFLAGS=$sim_ac_save_cppflags 22496 LDFLAGS=$sim_ac_save_ldflags 22497 22498fi 22499 22500 22501 22502sim_ac_x11xid_avail=no 22503sim_ac_x11xid_libs="-lXi" 22504sim_ac_save_libs=$LIBS 22505LIBS="$sim_ac_x11xid_libs $LIBS" 22506 22507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the X11 extension device library is available" >&5 22508$as_echo_n "checking whether the X11 extension device library is available... " >&6; } 22509if test "${sim_cv_lib_x11xid_avail+set}" = set; then : 22510 $as_echo_n "(cached) " >&6 22511else 22512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22513/* end confdefs.h. */ 22514#include <X11/extensions/XInput.h> 22515int 22516main () 22517{ 22518(void)XOpenDevice(0L, 0); 22519 ; 22520 return 0; 22521} 22522_ACEOF 22523if ac_fn_cxx_try_link "$LINENO"; then : 22524 sim_cv_lib_x11xid_avail=yes 22525else 22526 sim_cv_lib_x11xid_avail=no 22527fi 22528rm -f core conftest.err conftest.$ac_objext \ 22529 conftest$ac_exeext conftest.$ac_ext 22530fi 22531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_lib_x11xid_avail" >&5 22532$as_echo "$sim_cv_lib_x11xid_avail" >&6; } 22533 22534if test x"$sim_cv_lib_x11xid_avail" = x"yes"; then 22535 sim_ac_x11xid_avail=yes 22536 SOGUI_EXTRA_LIBS="$sim_ac_x11xid_libs $SOGUI_EXTRA_LIBS" 22537else 22538 LIBS=$sim_ac_save_libs 22539 22540fi 22541 22542 fi 22543 22544 22545 22546sim_ac_ogl_cppflags= 22547sim_ac_ogl_ldflags= 22548sim_ac_ogl_lib= 22549sim_ac_ogl_libs= 22550 22551 22552# Check whether --with-mesa was given. 22553if test "${with_mesa+set}" = set; then : 22554 withval=$with_mesa; 22555else 22556 with_mesa=no 22557fi 22558 22559 22560## Mac OS X uses some weird "framework" options. 22561 22562## It's usually libGL.so on UNIX systems and opengl32.lib on MSWindows. 22563sim_ac_ogl_glnames="GL opengl32" 22564sim_ac_ogl_mesaglnames=MesaGL 22565 22566if test "x$with_mesa" = "xyes"; then 22567 sim_ac_ogl_first=$sim_ac_ogl_mesaglnames 22568 sim_ac_ogl_second=$sim_ac_ogl_glnames 22569else 22570 sim_ac_ogl_first=$sim_ac_ogl_glnames 22571 sim_ac_ogl_second=$sim_ac_ogl_mesaglnames 22572fi 22573 22574 22575# Check whether --with-opengl was given. 22576if test "${with_opengl+set}" = set; then : 22577 withval=$with_opengl; 22578else 22579 with_opengl=yes 22580fi 22581 22582 22583if test x"$with_opengl" != xno; then 22584 22585 if test x"$with_opengl" != xyes && test x"$with_opengl" != x""; then 22586 sim_ac_ogl_ldflags=-L$with_opengl/lib 22587 # $sim_ac_ogl_cppflags is set up in the SIM_AC_CHECK_HEADER_GL 22588 # invocation further below. 22589 else 22590 # On HP-UX platforms, OpenGL headers and libraries are usually installed 22591 # at this location. 22592 sim_ac_gl_hpux=/opt/graphics/OpenGL 22593 if test -d $sim_ac_gl_hpux; then 22594 sim_ac_ogl_ldflags=-L$sim_ac_gl_hpux/lib 22595 fi 22596 fi 22597 22598 sim_ac_use_framework_option=false; 22599 case $host_os in 22600 darwin*) 22601 22602 if $sim_ac_enable_darwin_x11; then 22603 # Use X11-based GL instead of OpenGL.framework when building against X11 22604 sim_ac_gl_darwin_x11=/usr/X11R6 22605 if test -d $sim_ac_gl_darwin_x11; then 22606 sim_ac_ogl_cppflags=-I$sim_ac_gl_darwin_x11/include 22607 sim_ac_ogl_ldflags=-L$sim_ac_gl_darwin_x11/lib 22608 fi 22609 else 22610 22611 22612ac_ext=c 22613ac_cpp='$CPP $CPPFLAGS' 22614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22616ac_compiler_gnu=$ac_cv_c_compiler_gnu 22617 22618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -framework OpenGL" >&5 22619$as_echo_n "checking whether $CC accepts -framework OpenGL... " >&6; } 22620 22621sim_ac_save_cppflags=$CPPFLAGS 22622CPPFLAGS="$CPPFLAGS -framework OpenGL" 22623cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22624/* end confdefs.h. */ 22625 22626int 22627main () 22628{ 22629 22630 ; 22631 return 0; 22632} 22633_ACEOF 22634if ac_fn_c_try_compile "$LINENO"; then : 22635 sim_ac_accept_result=yes 22636else 22637 sim_ac_accept_result=no 22638fi 22639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_accept_result" >&5 22641$as_echo "$sim_ac_accept_result" >&6; } 22642CPPFLAGS=$sim_ac_save_cppflags 22643# This need to go last, in case CPPFLAGS is modified in arg 2 or arg 3. 22644if test $sim_ac_accept_result = yes; then 22645 sim_ac_use_framework_option=true 22646else 22647 : 22648fi 22649 22650ac_ext=cpp 22651ac_cpp='$CXXCPP $CPPFLAGS' 22652ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22653ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22654ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22655 22656 22657 fi 22658 ;; 22659 esac 22660 22661 if $sim_ac_use_framework_option; then 22662 sim_ac_ogl_ldflags="-Wl,-framework,OpenGL" 22663 sim_ac_ogl_lib=OpenGL 22664 fi 22665 22666 sim_ac_save_cppflags=$CPPFLAGS 22667 sim_ac_save_ldflags=$LDFLAGS 22668 sim_ac_save_libs=$LIBS 22669 22670 CPPFLAGS="$CPPFLAGS $sim_ac_ogl_cppflags" 22671 LDFLAGS="$LDFLAGS $sim_ac_ogl_ldflags" 22672 22673 sim_ac_gl_header_avail=false 22674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to include gl.h" >&5 22675$as_echo_n "checking how to include gl.h... " >&6; } 22676if test x"$with_opengl" != x"no"; then 22677 sim_ac_gl_save_CPPFLAGS=$CPPFLAGS 22678 sim_ac_gl_cppflags= 22679 22680 if test x"$with_opengl" != xyes && test x"$with_opengl" != x""; then 22681 sim_ac_gl_cppflags="-I${with_opengl}/include" 22682 else 22683 # On HP-UX platforms, OpenGL headers and libraries are usually installed 22684 # at this location. 22685 sim_ac_gl_hpux=/opt/graphics/OpenGL 22686 if test -d $sim_ac_gl_hpux; then 22687 sim_ac_gl_cppflags=-I$sim_ac_gl_hpux/include 22688 fi 22689 fi 22690 22691 # On Mac OS X, GL is part of the optional X11 fraemwork 22692 case $host_os in 22693 darwin*) 22694 22695 if $sim_ac_enable_darwin_x11; then 22696 sim_ac_gl_darwin_x11=/usr/X11R6 22697 if test -d $sim_ac_gl_darwin_x11; then 22698 sim_ac_gl_cppflags=-I$sim_ac_gl_darwin_x11/include 22699 fi 22700 fi 22701 ;; 22702 esac 22703 22704 CPPFLAGS="$CPPFLAGS $sim_ac_gl_cppflags" 22705 22706 # Mac OS X framework (no X11, -framework OpenGL) 22707 if $sim_ac_enable_darwin_x11; then : 22708 else 22709 22710cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22711/* end confdefs.h. */ 22712#include <OpenGL/gl.h> 22713_ACEOF 22714if ac_fn_cxx_try_cpp "$LINENO"; then : 22715 ac_cv_header_OpenGL_gl_h=yes 22716else 22717 ac_cv_header_OpenGL_gl_h=no 22718fi 22719rm -f conftest.err conftest.$ac_ext 22720if test $ac_cv_header_OpenGL_gl_h = yes; then : 22721 22722 sim_ac_gl_header_avail=true 22723 sim_ac_gl_header=OpenGL/gl.h 22724 22725$as_echo "#define HAVE_OPENGL_GL_H 1" >>confdefs.h 22726 22727 22728fi 22729 22730 22731 fi 22732 22733 if $sim_ac_gl_header_avail; then : 22734 else 22735 22736cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22737/* end confdefs.h. */ 22738#include <GL/gl.h> 22739_ACEOF 22740if ac_fn_cxx_try_cpp "$LINENO"; then : 22741 ac_cv_header_GL_gl_h=yes 22742else 22743 ac_cv_header_GL_gl_h=no 22744fi 22745rm -f conftest.err conftest.$ac_ext 22746if test $ac_cv_header_GL_gl_h = yes; then : 22747 22748 sim_ac_gl_header_avail=true 22749 sim_ac_gl_header=GL/gl.h 22750 22751$as_echo "#define HAVE_GL_GL_H 1" >>confdefs.h 22752 22753 22754fi 22755 22756 22757 fi 22758 22759 CPPFLAGS="$sim_ac_gl_save_CPPFLAGS" 22760 if $sim_ac_gl_header_avail; then 22761 if test x"$sim_ac_gl_cppflags" = x""; then 22762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: #include <$sim_ac_gl_header>" >&5 22763$as_echo "#include <$sim_ac_gl_header>" >&6; } 22764 else 22765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_gl_cppflags, #include <$sim_ac_gl_header>" >&5 22766$as_echo "$sim_ac_gl_cppflags, #include <$sim_ac_gl_header>" >&6; } 22767 fi 22768 CPPFLAGS="$CPPFLAGS $sim_ac_gl_cppflags" 22769 else 22770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22771$as_echo "not found" >&6; } 22772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find gl.h" >&5 22773$as_echo "$as_me: WARNING: could not find gl.h" >&2;} 22774 fi 22775else 22776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22777$as_echo "disabled" >&6; } 22778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find gl.h" >&5 22779$as_echo "$as_me: WARNING: could not find gl.h" >&2;} 22780fi 22781 22782 22783 sim_ac_glchk_hit=false 22784 for sim_ac_tmp_outerloop in barebones withpthreads; do 22785 if $sim_ac_glchk_hit; then :; else 22786 22787 sim_ac_oglchk_pthreadslib="" 22788 if test "$sim_ac_tmp_outerloop" = "withpthreads"; then 22789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: couldn't compile or link with OpenGL library -- trying with pthread library in place..." >&5 22790$as_echo "$as_me: WARNING: couldn't compile or link with OpenGL library -- trying with pthread library in place..." >&2;} 22791 LIBS="$sim_ac_save_libs" 22792 22793 22794 22795# Check whether --with-pthread was given. 22796if test "${with_pthread+set}" = set; then : 22797 withval=$with_pthread; 22798else 22799 with_pthread=yes 22800fi 22801 22802 22803sim_ac_pthread_avail=no 22804 22805if test x"$with_pthread" != xno; then 22806 if test x"$with_pthread" != xyes; then 22807 sim_ac_pthread_cppflags="-I${with_pthread}/include" 22808 sim_ac_pthread_ldflags="-L${with_pthread}/lib" 22809 fi 22810 22811 # FIXME: should investigate and document the exact meaning of 22812 # the _REENTRANT flag. larsa's commit message mentions 22813 # "glibc-doc/FAQ.threads.html". Also, kintel points to the 22814 # comp.programming.thrads FAQ, which has an entry on the 22815 # _REENTRANT define. 22816 # 22817 # Preferably, it should only be set up when really needed 22818 # (as detected by some other configure check). 22819 # 22820 # 20030306 mortene. 22821 sim_ac_pthread_cppflags="-D_REENTRANT ${sim_ac_pthread_cppflags}" 22822 22823 sim_ac_save_cppflags=$CPPFLAGS 22824 sim_ac_save_ldflags=$LDFLAGS 22825 sim_ac_save_libs=$LIBS 22826 22827 CPPFLAGS="$CPPFLAGS $sim_ac_pthread_cppflags" 22828 LDFLAGS="$LDFLAGS $sim_ac_pthread_ldflags" 22829 22830 sim_ac_pthread_avail=false 22831 22832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX threads" >&5 22833$as_echo_n "checking for POSIX threads... " >&6; } 22834 # At least under FreeBSD, we link to pthreads library with -pthread. 22835 for sim_ac_pthreads_libcheck in "-lpthread" "-pthread"; do 22836 if $sim_ac_pthread_avail; then :; else 22837 LIBS="$sim_ac_pthreads_libcheck $sim_ac_save_libs" 22838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22839/* end confdefs.h. */ 22840#ifdef HAVE_SYS_TYPES_H 22841#include <sys/types.h> 22842#endif 22843#include <pthread.h> 22844int 22845main () 22846{ 22847(void)pthread_create(0L, 0L, 0L, 0L); 22848 ; 22849 return 0; 22850} 22851_ACEOF 22852if ac_fn_cxx_try_link "$LINENO"; then : 22853 sim_ac_pthread_avail=true 22854 sim_ac_pthread_libs="$sim_ac_pthreads_libcheck" 22855 22856fi 22857rm -f core conftest.err conftest.$ac_objext \ 22858 conftest$ac_exeext conftest.$ac_ext 22859 fi 22860 done 22861 22862 if $sim_ac_pthread_avail; then 22863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_pthread_cppflags $sim_ac_pthread_ldflags $sim_ac_pthread_libs" >&5 22864$as_echo "$sim_ac_pthread_cppflags $sim_ac_pthread_ldflags $sim_ac_pthread_libs" >&6; } 22865 else 22866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5 22867$as_echo "not available" >&6; } 22868 fi 22869 22870 if $sim_ac_pthread_avail; then 22871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the struct timespec resolution" >&5 22872$as_echo_n "checking the struct timespec resolution... " >&6; } 22873if test "${sim_cv_lib_pthread_timespec_resolution+set}" = set; then : 22874 $as_echo_n "(cached) " >&6 22875else 22876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22877/* end confdefs.h. */ 22878#ifdef HAVE_SYS_TYPES_H 22879#include <sys/types.h> 22880#endif 22881#include <pthread.h> 22882int 22883main () 22884{ 22885struct timespec timeout; 22886 timeout.tv_nsec = 0; 22887 ; 22888 return 0; 22889} 22890_ACEOF 22891if ac_fn_cxx_try_compile "$LINENO"; then : 22892 sim_cv_lib_pthread_timespec_resolution=nsecs 22893else 22894 sim_cv_lib_pthread_timespec_resolution=usecs 22895fi 22896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22897fi 22898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_lib_pthread_timespec_resolution" >&5 22899$as_echo "$sim_cv_lib_pthread_timespec_resolution" >&6; } 22900 if test x"$sim_cv_lib_pthread_timespec_resolution" = x"nsecs"; then 22901 22902$as_echo "#define HAVE_PTHREAD_TIMESPEC_NSEC 1" >>confdefs.h 22903 22904 fi 22905 fi 22906 22907 if $sim_ac_pthread_avail; then 22908 22909 sim_ac_ogl_cppflags="$sim_ac_ogl_cppflags $sim_ac_pthread_cppflags" 22910 sim_ac_ogl_ldflags="$sim_ac_ogl_ldflags $sim_ac_pthread_ldflags" 22911 sim_ac_oglchk_pthreadslib="$sim_ac_pthread_libs" 22912 22913 else 22914 CPPFLAGS=$sim_ac_save_cppflags 22915 LDFLAGS=$sim_ac_save_ldflags 22916 LIBS=$sim_ac_save_libs 22917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: couldn't compile or link with pthread library" >&5 22918$as_echo "$as_me: WARNING: couldn't compile or link with pthread library" >&2;} 22919 22920 fi 22921fi 22922 22923 fi 22924 22925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL library dev-kit" >&5 22926$as_echo_n "checking for OpenGL library dev-kit... " >&6; } 22927 # Mac OS X uses nada (only LDFLAGS), which is why "" was set first 22928 for sim_ac_ogl_libcheck in "" $sim_ac_ogl_first $sim_ac_ogl_second; do 22929 if $sim_ac_glchk_hit; then :; else 22930 if test -n "${sim_ac_ogl_libcheck}"; then 22931 LIBS="-l${sim_ac_ogl_libcheck} $sim_ac_oglchk_pthreadslib $sim_ac_save_libs" 22932 else 22933 LIBS="$sim_ac_oglchk_pthreadslib $sim_ac_save_libs" 22934 fi 22935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22936/* end confdefs.h. */ 22937#ifdef HAVE_WINDOWS_H 22938 #include <windows.h> 22939 #endif /* HAVE_WINDOWS_H */ 22940 #ifdef HAVE_GL_GL_H 22941 #include <GL/gl.h> 22942 #else /* ! HAVE_GL_GL_H */ 22943 #ifdef HAVE_OPENGL_GL_H 22944 /* Mac OS X */ 22945 #include <OpenGL/gl.h> 22946 #endif /* HAVE_OPENGL_GL_H */ 22947 #endif /* ! HAVE_GL_GL_H */ 22948 22949int 22950main () 22951{ 22952glPointSize(1.0f); 22953 ; 22954 return 0; 22955} 22956_ACEOF 22957if ac_fn_cxx_try_link "$LINENO"; then : 22958 22959 sim_ac_glchk_hit=true 22960 sim_ac_ogl_libs=$sim_ac_oglchk_pthreadslib 22961 if test -n "${sim_ac_ogl_libcheck}"; then 22962 sim_ac_ogl_lib=$sim_ac_ogl_libcheck 22963 sim_ac_ogl_libs="-l${sim_ac_ogl_libcheck} $sim_ac_oglchk_pthreadslib" 22964 fi 22965 22966 22967fi 22968rm -f core conftest.err conftest.$ac_objext \ 22969 conftest$ac_exeext conftest.$ac_ext 22970 fi 22971 done 22972 if $sim_ac_glchk_hit; then 22973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_ogl_cppflags $sim_ac_ogl_ldflags $sim_ac_ogl_libs" >&5 22974$as_echo "$sim_ac_ogl_cppflags $sim_ac_ogl_ldflags $sim_ac_ogl_libs" >&6; } 22975 else 22976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unresolved" >&5 22977$as_echo "unresolved" >&6; } 22978 fi 22979 fi 22980 done 22981 22982 if $sim_ac_glchk_hit; then 22983 LIBS="$sim_ac_ogl_libs $sim_ac_save_libs" 22984 22985 SOGUI_EXTRA_CPPFLAGS="$SOGUI_EXTRA_CPPFLAGS $sim_ac_ogl_cppflags" 22986 SOGUI_EXTRA_LDFLAGS="$SOGUI_EXTRA_LDFLAGS $sim_ac_ogl_ldflags" 22987 SOGUI_EXTRA_LIBS="$sim_ac_ogl_libs $SOGUI_EXTRA_LIBS" 22988 22989 else 22990 CPPFLAGS="$sim_ac_save_cppflags" 22991 LDFLAGS="$sim_ac_save_ldflags" 22992 LIBS="$sim_ac_save_libs" 22993 as_fn_error "needs an OpenGL-compatible development system installation" "$LINENO" 5 22994 fi 22995fi 22996 22997 22998 22999sim_ac_glu_save_CPPFLAGS=$CPPFLAGS 23000sim_ac_glu_header_avail=false 23001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to include glu.h" >&5 23002$as_echo_n "checking how to include glu.h... " >&6; } 23003if test x"$with_opengl" != x"no"; then 23004 sim_ac_glu_save_CPPFLAGS=$CPPFLAGS 23005 sim_ac_glu_cppflags= 23006 23007 if test x"$with_opengl" != xyes && test x"$with_opengl" != x""; then 23008 sim_ac_glu_cppflags="-I${with_opengl}/include" 23009 else 23010 # On HP-UX platforms, OpenGL headers and libraries are usually installed 23011 # at this location. 23012 sim_ac_gl_hpux=/opt/graphics/OpenGL 23013 if test -d $sim_ac_gl_hpux; then 23014 sim_ac_glu_cppflags=-I$sim_ac_gl_hpux/include 23015 fi 23016 fi 23017 23018 # On Mac OS X, GL is part of the optional X11 fraemwork 23019 case $host_os in 23020 darwin*) 23021 23022 if $sim_ac_enable_darwin_x11; then 23023 sim_ac_gl_darwin_x11=/usr/X11R6 23024 if test -d $sim_ac_gl_darwin_x11; then 23025 sim_ac_gl_cppflags=-I$sim_ac_gl_darwin_x11/include 23026 fi 23027 fi 23028 ;; 23029 esac 23030 23031 CPPFLAGS="$CPPFLAGS $sim_ac_glu_cppflags" 23032 23033 # Mac OS X framework (no X11, -framework OpenGL) 23034 if $sim_ac_enable_darwin_x11; then : 23035 else 23036 23037cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23038/* end confdefs.h. */ 23039#include <OpenGL/glu.h> 23040_ACEOF 23041if ac_fn_cxx_try_cpp "$LINENO"; then : 23042 ac_cv_header_OpenGL_glu_h=yes 23043else 23044 ac_cv_header_OpenGL_glu_h=no 23045fi 23046rm -f conftest.err conftest.$ac_ext 23047if test $ac_cv_header_OpenGL_glu_h = yes; then : 23048 23049 sim_ac_glu_header_avail=true 23050 sim_ac_glu_header=OpenGL/glu.h 23051 23052$as_echo "#define HAVE_OPENGL_GLU_H 1" >>confdefs.h 23053 23054 23055fi 23056 23057 23058 fi 23059 23060 if $sim_ac_glu_header_avail; then : 23061 else 23062 23063cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23064/* end confdefs.h. */ 23065#include <GL/glu.h> 23066_ACEOF 23067if ac_fn_cxx_try_cpp "$LINENO"; then : 23068 ac_cv_header_GL_glu_h=yes 23069else 23070 ac_cv_header_GL_glu_h=no 23071fi 23072rm -f conftest.err conftest.$ac_ext 23073if test $ac_cv_header_GL_glu_h = yes; then : 23074 23075 sim_ac_glu_header_avail=true 23076 sim_ac_glu_header=GL/glu.h 23077 23078$as_echo "#define HAVE_GL_GLU_H 1" >>confdefs.h 23079 23080 23081fi 23082 23083 23084 fi 23085 23086 CPPFLAGS="$sim_ac_glu_save_CPPFLAGS" 23087 if $sim_ac_glu_header_avail; then 23088 if test x"$sim_ac_glu_cppflags" = x""; then 23089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: #include <$sim_ac_glu_header>" >&5 23090$as_echo "#include <$sim_ac_glu_header>" >&6; } 23091 else 23092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_glu_cppflags, #include <$sim_ac_glu_header>" >&5 23093$as_echo "$sim_ac_glu_cppflags, #include <$sim_ac_glu_header>" >&6; } 23094 fi 23095 23096 else 23097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23098$as_echo "not found" >&6; } 23099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find glu.h" >&5 23100$as_echo "$as_me: WARNING: could not find glu.h" >&2;} 23101 fi 23102else 23103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23104$as_echo "disabled" >&6; } 23105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find glu.h" >&5 23106$as_echo "$as_me: WARNING: could not find glu.h" >&2;} 23107fi 23108 23109if test x"$sim_ac_gl_cppflags" != x"$sim_ac_glu_cppflags"; then 23110 CPPFLAGS="$CPPFLAGS $sim_ac_gl_cppflags $sim_ac_glu_cppflags" 23111fi 23112sim_ac_glu_avail=no 23113 23114# It's usually libGLU.so on UNIX systems and glu32.lib on MSWindows. 23115sim_ac_glu_names="-lGLU -lglu32" 23116sim_ac_glu_mesanames=-lMesaGLU 23117 23118# with_mesa is set from the SIM_AC_CHECK_OPENGL macro. 23119if test "x$with_mesa" = "xyes"; then 23120 sim_ac_glu_first=$sim_ac_glu_mesanames 23121 sim_ac_glu_second=$sim_ac_glu_names 23122else 23123 sim_ac_glu_first=$sim_ac_glu_names 23124 sim_ac_glu_second=$sim_ac_glu_mesanames 23125fi 23126 23127 23128# Check whether --with-glu was given. 23129if test "${with_glu+set}" = set; then : 23130 withval=$with_glu; 23131else 23132 with_glu=yes 23133fi 23134 23135 23136if test x"$with_glu" != xno; then 23137 if test x"$with_glu" != xyes; then 23138 # sim_ac_glu_cppflags="-I${with_glu}/include" 23139 sim_ac_glu_ldflags="-L${with_glu}/lib" 23140 fi 23141 23142 sim_ac_save_cppflags=$CPPFLAGS 23143 sim_ac_save_ldflags=$LDFLAGS 23144 sim_ac_save_libs=$LIBS 23145 23146 CPPFLAGS="$CPPFLAGS $sim_ac_glu_cppflags" 23147 LDFLAGS="$LDFLAGS $sim_ac_glu_ldflags" 23148 23149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GLU is available" >&5 23150$as_echo_n "checking whether GLU is available... " >&6; } 23151if test "${sim_cv_lib_glu+set}" = set; then : 23152 $as_echo_n "(cached) " >&6 23153else 23154 sim_cv_lib_glu=UNRESOLVED 23155 23156 # Some platforms (like BeOS) have the GLU functionality in the GL 23157 # library (and no GLU library present). 23158 for sim_ac_glu_libcheck in "" $sim_ac_glu_first $sim_ac_glu_second; do 23159 if test "x$sim_cv_lib_glu" = "xUNRESOLVED"; then 23160 LIBS="$sim_ac_glu_libcheck $sim_ac_save_libs" 23161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23162/* end confdefs.h. */ 23163 23164#ifdef HAVE_WINDOWS_H 23165#include <windows.h> 23166#endif /* HAVE_WINDOWS_H */ 23167#ifdef HAVE_GL_GL_H 23168#include <GL/gl.h> 23169#else 23170#ifdef HAVE_OPENGL_GL_H 23171#include <OpenGL/gl.h> 23172#endif 23173#endif 23174#ifdef HAVE_GL_GLU_H 23175#include <GL/glu.h> 23176#else 23177#ifdef HAVE_OPENGL_GLU_H 23178#include <OpenGL/glu.h> 23179#endif 23180#endif 23181 23182int 23183main () 23184{ 23185 23186gluSphere(0L, 1.0, 1, 1); 23187/* Defect JAGad01283 of HP's aCC compiler causes a link failure unless 23188 there is at least one "pure" OpenGL call along with GLU calls. */ 23189glEnd(); 23190 23191 ; 23192 return 0; 23193} 23194_ACEOF 23195if ac_fn_cxx_try_link "$LINENO"; then : 23196 sim_cv_lib_glu="$sim_ac_glu_libcheck" 23197fi 23198rm -f core conftest.err conftest.$ac_objext \ 23199 conftest$ac_exeext conftest.$ac_ext 23200 fi 23201 done 23202 if test x"$sim_cv_lib_glu" = x"" && 23203 test x`echo $LDFLAGS | grep -c -- "-Wl,-framework,OpenGL"` = x1; then 23204 # just for the visual representation on Mac OS X 23205 sim_cv_lib_glu="-Wl,-framework,OpenGL" 23206 fi 23207 23208fi 23209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_lib_glu" >&5 23210$as_echo "$sim_cv_lib_glu" >&6; } 23211 23212 LIBS="$sim_ac_save_libs" 23213 23214 CPPFLAGS=$sim_ac_glu_save_CPPFLAGS 23215 if test "x$sim_cv_lib_glu" != "xUNRESOLVED"; then 23216 if test x"$sim_cv_lib_glu" = x"-Wl,-framework,OpenGL"; then 23217 sim_ac_glu_libs="" 23218 else 23219 sim_ac_glu_libs="$sim_cv_lib_glu" 23220 fi 23221 LIBS="$sim_ac_glu_libs $sim_ac_save_libs" 23222 sim_ac_glu_avail=yes 23223 23224 SOGUI_EXTRA_CPPFLAGS="$SOGUI_EXTRA_CPPFLAGS $sim_ac_glu_cppflags" 23225 SOGUI_EXTRA_LDFLAGS="$SOGUI_EXTRA_LDFLAGS $sim_ac_glu_ldflags" 23226 SOGUI_EXTRA_LIBS="$sim_ac_glu_libs $SOGUI_EXTRA_LIBS" 23227 23228 else 23229 CPPFLAGS=$sim_ac_save_cppflags 23230 LDFLAGS=$sim_ac_save_ldflags 23231 LIBS=$sim_ac_save_libs 23232 as_fn_error "needs the OpenGL utility library" "$LINENO" 5 23233 fi 23234fi 23235 23236 23237 23238: ${sim_ac_want_inventor=false} 23239 23240# Check whether --with-inventor was given. 23241if test "${with_inventor+set}" = set; then : 23242 withval=$with_inventor; case "$withval" in 23243 no) sim_ac_want_inventor=false ;; 23244 yes) sim_ac_want_inventor=true 23245 test -n "$OIVHOME" && 23246 23247eval "sim_ac_inventor_path=\"`echo "$OIVHOME" | sed -e 's%\\\\%\\/%g'`\"" 23248 ;; 23249 *) sim_ac_want_inventor=true; sim_ac_inventor_path="$withval" ;; 23250 esac 23251fi 23252 23253 23254 23255: ${sim_ac_want_inventorxt=true} 23256 23257# Check whether --with-inventor-xt was given. 23258if test "${with_inventor_xt+set}" = set; then : 23259 withval=$with_inventor_xt; case "$withval" in 23260 no) sim_ac_want_inventorxt=false ;; 23261 yes) sim_ac_want_inventorxt=true 23262 test -n "$OIVHOME" && 23263 23264eval "sim_ac_inventorxt_path=\"`echo "$OIVHOME" | sed -e 's%\\\\%\\/%g'`\"" 23265 ;; 23266 *) sim_ac_want_inventorxt=true; sim_ac_inventorxt_path="$withval" ;; 23267 esac 23268fi 23269 23270 23271 23272: ${sim_ac_want_inventorqt=false} 23273 23274# Check whether --with-inventor-qt was given. 23275if test "${with_inventor_qt+set}" = set; then : 23276 withval=$with_inventor_qt; case "$withval" in 23277 no) sim_ac_want_inventorqt=false ;; 23278 yes) sim_ac_want_inventorqt=true 23279 test -n "$OIVHOME" && 23280 23281eval "sim_ac_inventorqt_path=\"`echo "$OIVHOME" | sed -e 's%\\\\%\\/%g'`\"" 23282 ;; 23283 *) sim_ac_want_inventorqt=true; sim_ac_inventorqt_path="$withval" ;; 23284 esac 23285fi 23286 23287 23288 23289 23290 23291 23292 23293if $sim_ac_want_inventor; then 23294 sim_ac_save_CPPFLAGS="$CPPFLAGS" 23295 sim_ac_save_LDFLAGS="$LDFLAGS" 23296 sim_ac_save_LIBS="$LIBS" 23297 23298 23299 23300 23301 23302 23303if $sim_ac_want_inventor; then 23304 sim_ac_inventor_image_save_CPPFLAGS="$CPPFLAGS" 23305 sim_ac_inventor_image_save_LDFLAGS="$LDFLAGS" 23306 sim_ac_inventor_image_save_LIBS="$LIBS" 23307 23308 if test s${sim_ac_inventor_path+et} = set; then 23309 sim_ac_inventor_image_cppflags="-I${sim_ac_inventor_path}/include" 23310 sim_ac_inventor_image_ldflags="-L${sim_ac_inventor_path}/lib" 23311 fi 23312 sim_ac_inventor_image_libs="-limage" 23313 23314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking with libimage is possible" >&5 23315$as_echo_n "checking if linking with libimage is possible... " >&6; } 23316if test "${sim_cv_have_inventor_image+set}" = set; then : 23317 $as_echo_n "(cached) " >&6 23318else 23319 23320 CPPFLAGS="$sim_ac_inventor_image_cppflags $CPPFLAGS" 23321 LDFLAGS="$sim_ac_inventor_image_ldflags $LDFLAGS" 23322 LIBS="$sim_ac_inventor_image_libs $LIBS" 23323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23324/* end confdefs.h. */ 23325 23326int 23327main () 23328{ 23329 23330 ; 23331 return 0; 23332} 23333_ACEOF 23334if ac_fn_cxx_try_link "$LINENO"; then : 23335 sim_cv_have_inventor_image=true 23336else 23337 sim_cv_have_inventor_image=false 23338fi 23339rm -f core conftest.err conftest.$ac_objext \ 23340 conftest$ac_exeext conftest.$ac_ext 23341 CPPFLAGS="$sim_ac_inventor_image_save_CPPFLAGS" 23342 LDFLAGS="$sim_ac_inventor_image_save_LDFLAGS" 23343 LIBS="$sim_ac_inventor_image_save_LIBS" 23344 23345fi 23346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_have_inventor_image" >&5 23347$as_echo "$sim_cv_have_inventor_image" >&6; } 23348 23349 if $sim_cv_have_inventor_image; then 23350 23351 sim_ac_inventor_cppflags="$sim_ac_inventor_image_cppflags" 23352 sim_ac_inventor_ldflags="$sim_ac_inventor_image_ldflags" 23353 23354 else 23355 23356 if test s${sim_ac_inventor_path+et} = set; then 23357 sim_ac_inventor_cppflags="-I${sim_ac_inventor_path}/include" 23358 sim_ac_inventor_ldflags="-L${sim_ac_inventor_path}/lib" 23359 fi 23360 sim_ac_inventor_image_libs= 23361 23362 fi 23363else 23364 23365 if test s${sim_ac_inventor_path+et} = set; then 23366 sim_ac_inventor_cppflags="-I${sim_ac_inventor_path}/include" 23367 sim_ac_inventor_ldflags="-L${sim_ac_inventor_path}/lib" 23368 fi 23369 sim_ac_inventor_image_libs= 23370 23371fi 23372 23373 23374 # Let's at least test for "libInventor". 23375 sim_ac_inventor_chk_libs="-lInventor" 23376 sim_ac_inventor_libs=UNRESOLVED 23377 23378 CPPFLAGS="$sim_ac_inventor_cppflags $CPPFLAGS" 23379 23380 ac_fn_cxx_check_header_mongrel "$LINENO" "Inventor/SbBasic.h" "ac_cv_header_Inventor_SbBasic_h" "$ac_includes_default" 23381if test "x$ac_cv_header_Inventor_SbBasic_h" = x""yes; then : 23382 sim_ac_sbbasic=true 23383else 23384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: header file Inventor/SbBasic.h not found" >&5 23385$as_echo "$as_me: WARNING: header file Inventor/SbBasic.h not found" >&2;} 23386 sim_ac_sbbasic=false 23387fi 23388 23389 23390 23391 if $sim_ac_sbbasic; then 23392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the Open Inventor version" >&5 23393$as_echo_n "checking the Open Inventor version... " >&6; } 23394 # See if we can get the TGS_VERSION number for including a 23395 # check for inv{ver}.lib. 23396 # TGS did not include TGS_VERSION before 2.6, so this may have to be 23397 # back-ported to SO_VERSION+SO_REVISION usage. larsa 2001-07-25 23398 cat <<EOF > conftest.c 23399#include <Inventor/SbBasic.h> 23400#ifdef __COIN__ 23401#error Testing for original Open Inventor, but found Coin... 23402#endif 23403PeekInventorVersion: TGS_VERSION 23404EOF 23405 if test x"$CPP" = x; then 23406 as_fn_error "cpp not detected - aborting. notify maintainer at coin-support@coin3d.org." "$LINENO" 5 23407 fi 23408 echo "$CPP $CPPFLAGS conftest.c" >&5 23409 tgs_version_line=`$CPP $CPPFLAGS conftest.c 2>&5 | grep "^PeekInventorVersion"` 23410 if test x"$tgs_version_line" = x; then 23411 echo "second try..." >&5 23412 echo "$CPP -DWIN32 $CPPFLAGS conftest.c" >&5 23413 tgs_version_line=`$CPP -DWIN32 $CPPFLAGS conftest.c 2>&5 | grep "^PeekInventorVersion"` 23414 fi 23415 rm -f conftest.c 23416 tgs_version=`echo $tgs_version_line | cut -c22-24` 23417 tgs_suffix= 23418 if test x"${enable_inventor_debug+set}" = xset && 23419 test x"${enable_inventor_debug}" = xyes; then 23420 tgs_suffix=d 23421 fi 23422 if test x"$tgs_version" != xTGS; then 23423 sim_ac_inventor_chk_libs="$sim_ac_inventor_chk_libs -linv$tgs_version$tgs_suffix" 23424 tgs_version_string=`echo $tgs_version | sed 's/\(.\)\(.\)\(.\)/\1.\2.\3/g'` 23425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: TGS Open Inventor v$tgs_version_string" >&5 23426$as_echo "TGS Open Inventor v$tgs_version_string" >&6; } 23427 else 23428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: probably SGI or older TGS Open Inventor" >&5 23429$as_echo "probably SGI or older TGS Open Inventor" >&6; } 23430 fi 23431 23432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Open Inventor library" >&5 23433$as_echo_n "checking for Open Inventor library... " >&6; } 23434 23435 for sim_ac_iv_cppflags_loop in "" "-DWIN32"; do 23436 # Trying with no libraries first, as TGS Inventor uses pragmas in 23437 # a header file to notify MSVC of what to link with. 23438 for sim_ac_iv_libcheck in "" $sim_ac_inventor_chk_libs; do 23439 if test "x$sim_ac_inventor_libs" = "xUNRESOLVED"; then 23440 CPPFLAGS="$sim_ac_iv_cppflags_loop $sim_ac_inventor_cppflags $sim_ac_save_CPPFLAGS" 23441 LDFLAGS="$sim_ac_inventor_ldflags $sim_ac_save_LDFLAGS" 23442 LIBS="$sim_ac_iv_libcheck $sim_ac_inventor_image_libs $sim_ac_save_LIBS" 23443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23444/* end confdefs.h. */ 23445#include <Inventor/SoDB.h> 23446int 23447main () 23448{ 23449SoDB::init(); 23450 ; 23451 return 0; 23452} 23453_ACEOF 23454if ac_fn_cxx_try_link "$LINENO"; then : 23455 sim_ac_inventor_libs="$sim_ac_iv_libcheck $sim_ac_inventor_image_libs" 23456 sim_ac_inventor_cppflags="$sim_ac_iv_cppflags_loop $sim_ac_inventor_cppflags" 23457fi 23458rm -f core conftest.err conftest.$ac_objext \ 23459 conftest$ac_exeext conftest.$ac_ext 23460 fi 23461 done 23462 done 23463 23464 if test "x$sim_ac_inventor_libs" != "xUNRESOLVED"; then 23465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_inventor_cppflags $sim_ac_inventor_ldflags $sim_ac_inventor_libs" >&5 23466$as_echo "$sim_ac_inventor_cppflags $sim_ac_inventor_ldflags $sim_ac_inventor_libs" >&6; } 23467 else 23468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unavailable" >&5 23469$as_echo "unavailable" >&6; } 23470 fi 23471 23472 fi # sim_ac_sbbasic = TRUE 23473 23474 CPPFLAGS="$sim_ac_save_CPPFLAGS" 23475 LDFLAGS="$sim_ac_save_LDFLAGS" 23476 LIBS="$sim_ac_save_LIBS" 23477 23478 if test "x$sim_ac_inventor_libs" != "xUNRESOLVED"; then 23479 : 23480 CPPFLAGS="$sim_ac_inventor_cppflags $CPPFLAGS" 23481 LDFLAGS="$sim_ac_inventor_ldflags $LDFLAGS" 23482 LIBS="$sim_ac_inventor_libs $LIBS" 23483 SOGUI_EXTRA_CPPFLAGS="$sim_ac_inventor_cppflags $SOGUI_EXTRA_CPPFLAGS" 23484 SOGUI_EXTRA_LDFLAGS="$sim_ac_inventor_ldflags $SOGUI_EXTRA_LDFLAGS" 23485 SOGUI_EXTRA_LIBS="$sim_ac_inventor_libs $SOGUI_EXTRA_LIBS" 23486 else 23487 : 23488 as_fn_error "couldn't compile and link against Open Inventor" "$LINENO" 5 23489 fi 23490else 23491 as_fn_error "couldn't compile and link against Open Inventor" "$LINENO" 5 23492fi 23493 23494 23495 sim_ac_inventor_brand=sgi 23496 23497if test x"${sim_ac_configuration_settings+set}" = x"set"; then 23498 sim_ac_configuration_settings="$sim_ac_configuration_settings|Open Inventor brand:SGI/TGS Inventor" 23499else 23500 sim_ac_configuration_settings="Open Inventor brand:SGI/TGS Inventor" 23501fi 23502 23503 23504else 23505 23506 if $sim_ac_build_library; then 23507 sim_ac_gl_header_avail=false 23508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to include gl.h" >&5 23509$as_echo_n "checking how to include gl.h... " >&6; } 23510if test x"$with_opengl" != x"no"; then 23511 sim_ac_gl_save_CPPFLAGS=$CPPFLAGS 23512 sim_ac_gl_cppflags= 23513 23514 if test x"$with_opengl" != xyes && test x"$with_opengl" != x""; then 23515 sim_ac_gl_cppflags="-I${with_opengl}/include" 23516 else 23517 # On HP-UX platforms, OpenGL headers and libraries are usually installed 23518 # at this location. 23519 sim_ac_gl_hpux=/opt/graphics/OpenGL 23520 if test -d $sim_ac_gl_hpux; then 23521 sim_ac_gl_cppflags=-I$sim_ac_gl_hpux/include 23522 fi 23523 fi 23524 23525 # On Mac OS X, GL is part of the optional X11 fraemwork 23526 case $host_os in 23527 darwin*) 23528 23529 if $sim_ac_enable_darwin_x11; then 23530 sim_ac_gl_darwin_x11=/usr/X11R6 23531 if test -d $sim_ac_gl_darwin_x11; then 23532 sim_ac_gl_cppflags=-I$sim_ac_gl_darwin_x11/include 23533 fi 23534 fi 23535 ;; 23536 esac 23537 23538 CPPFLAGS="$CPPFLAGS $sim_ac_gl_cppflags" 23539 23540 # Mac OS X framework (no X11, -framework OpenGL) 23541 if $sim_ac_enable_darwin_x11; then : 23542 else 23543 23544cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23545/* end confdefs.h. */ 23546#include <OpenGL/gl.h> 23547_ACEOF 23548if ac_fn_cxx_try_cpp "$LINENO"; then : 23549 ac_cv_header_OpenGL_gl_h=yes 23550else 23551 ac_cv_header_OpenGL_gl_h=no 23552fi 23553rm -f conftest.err conftest.$ac_ext 23554if test $ac_cv_header_OpenGL_gl_h = yes; then : 23555 23556 sim_ac_gl_header_avail=true 23557 sim_ac_gl_header=OpenGL/gl.h 23558 23559$as_echo "#define HAVE_OPENGL_GL_H 1" >>confdefs.h 23560 23561 23562fi 23563 23564 23565 fi 23566 23567 if $sim_ac_gl_header_avail; then : 23568 else 23569 23570cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23571/* end confdefs.h. */ 23572#include <GL/gl.h> 23573_ACEOF 23574if ac_fn_cxx_try_cpp "$LINENO"; then : 23575 ac_cv_header_GL_gl_h=yes 23576else 23577 ac_cv_header_GL_gl_h=no 23578fi 23579rm -f conftest.err conftest.$ac_ext 23580if test $ac_cv_header_GL_gl_h = yes; then : 23581 23582 sim_ac_gl_header_avail=true 23583 sim_ac_gl_header=GL/gl.h 23584 23585$as_echo "#define HAVE_GL_GL_H 1" >>confdefs.h 23586 23587 23588fi 23589 23590 23591 fi 23592 23593 CPPFLAGS="$sim_ac_gl_save_CPPFLAGS" 23594 if $sim_ac_gl_header_avail; then 23595 if test x"$sim_ac_gl_cppflags" = x""; then 23596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: #include <$sim_ac_gl_header>" >&5 23597$as_echo "#include <$sim_ac_gl_header>" >&6; } 23598 else 23599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_gl_cppflags, #include <$sim_ac_gl_header>" >&5 23600$as_echo "$sim_ac_gl_cppflags, #include <$sim_ac_gl_header>" >&6; } 23601 fi 23602 23603 CPPFLAGS="$CPPFLAGS $sim_ac_gl_cppflags" 23604 SOGUI_EXTRA_CPPFLAGS="$SOGUI_EXTRA_CPPFLAGS $sim_ac_gl_cppflags" 23605 23606 else 23607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23608$as_echo "not found" >&6; } 23609 as_fn_error "could not detect a gl.h header file" "$LINENO" 5 23610 fi 23611else 23612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23613$as_echo "disabled" >&6; } 23614 as_fn_error "could not detect a gl.h header file" "$LINENO" 5 23615fi 23616 23617 23618 23619 23620 23621# official variables 23622sim_ac_coin_avail=false 23623sim_ac_coin_cppflags= 23624sim_ac_coin_cflags= 23625sim_ac_coin_cxxflags= 23626sim_ac_coin_ldflags= 23627sim_ac_coin_libs= 23628sim_ac_coin_datadir= 23629sim_ac_coin_includedir= 23630sim_ac_coin_version= 23631 23632# internal variables 23633: ${sim_ac_coin_desired=true} 23634sim_ac_coin_extrapath= 23635 23636 23637# Check whether --with-coin was given. 23638if test "${with_coin+set}" = set; then : 23639 withval=$with_coin; case $withval in 23640 no) sim_ac_coin_desired=false ;; 23641 yes) sim_ac_coin_desired=true ;; 23642 *) sim_ac_coin_desired=true 23643 sim_ac_coin_extrapath=$withval ;; 23644 esac 23645fi 23646 23647 23648case $build in 23649*-mks ) sim_ac_pathsep=";" ;; 23650* ) sim_ac_pathsep="${PATH_SEPARATOR}" ;; 23651esac 23652 23653if $sim_ac_coin_desired; then 23654 sim_ac_path=$PATH 23655 test -z "$sim_ac_coin_extrapath" || ## search in --with-coin path 23656 sim_ac_path="$sim_ac_coin_extrapath/bin${sim_ac_pathsep}$sim_ac_path" 23657 test x"$prefix" = xNONE || ## search in --prefix path 23658 sim_ac_path="$sim_ac_path${sim_ac_pathsep}$prefix/bin" 23659 23660 # Extract the first word of "coin-config", so it can be a program name with args. 23661set dummy coin-config; ac_word=$2 23662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23663$as_echo_n "checking for $ac_word... " >&6; } 23664if test "${ac_cv_path_sim_ac_coin_configcmd+set}" = set; then : 23665 $as_echo_n "(cached) " >&6 23666else 23667 case $sim_ac_coin_configcmd in 23668 [\\/]* | ?:[\\/]*) 23669 ac_cv_path_sim_ac_coin_configcmd="$sim_ac_coin_configcmd" # Let the user override the test with a path. 23670 ;; 23671 *) 23672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23673for as_dir in $sim_ac_path 23674do 23675 IFS=$as_save_IFS 23676 test -z "$as_dir" && as_dir=. 23677 for ac_exec_ext in '' $ac_executable_extensions; do 23678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 23679 ac_cv_path_sim_ac_coin_configcmd="$as_dir/$ac_word$ac_exec_ext" 23680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23681 break 2 23682 fi 23683done 23684 done 23685IFS=$as_save_IFS 23686 23687 test -z "$ac_cv_path_sim_ac_coin_configcmd" && ac_cv_path_sim_ac_coin_configcmd="false" 23688 ;; 23689esac 23690fi 23691sim_ac_coin_configcmd=$ac_cv_path_sim_ac_coin_configcmd 23692if test -n "$sim_ac_coin_configcmd"; then 23693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_coin_configcmd" >&5 23694$as_echo "$sim_ac_coin_configcmd" >&6; } 23695else 23696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23697$as_echo "no" >&6; } 23698fi 23699 23700 23701 23702 if test "X$sim_ac_coin_configcmd" != "Xfalse"; then 23703 test -n "$CONFIG" && 23704 $sim_ac_coin_configcmd --alternate=$CONFIG >/dev/null 2>/dev/null && 23705 sim_ac_coin_configcmd="$sim_ac_coin_configcmd --alternate=$CONFIG" 23706 fi 23707 23708 if $sim_ac_coin_configcmd; then 23709 sim_ac_coin_version=`$sim_ac_coin_configcmd --version` 23710 sim_ac_coin_cppflags=`$sim_ac_coin_configcmd --cppflags` 23711 sim_ac_coin_cflags=`$sim_ac_coin_configcmd --cflags 2>/dev/null` 23712 sim_ac_coin_cxxflags=`$sim_ac_coin_configcmd --cxxflags` 23713 sim_ac_coin_ldflags=`$sim_ac_coin_configcmd --ldflags` 23714 sim_ac_coin_libs=`$sim_ac_coin_configcmd --libs` 23715 sim_ac_coin_datadir=`$sim_ac_coin_configcmd --datadir` 23716 # Hide stderr on the following, as ``--includedir'', ``--msvcrt'' 23717 # and ``--cflags'' options were added late to coin-config. 23718 sim_ac_coin_includedir=`$sim_ac_coin_configcmd --includedir 2>/dev/null` 23719 sim_ac_coin_msvcrt=`$sim_ac_coin_configcmd --msvcrt 2>/dev/null` 23720 sim_ac_coin_cflags=`$sim_ac_coin_configcmd --cflags 2>/dev/null` 23721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can compile and link with the Coin library" >&5 23722$as_echo_n "checking if we can compile and link with the Coin library... " >&6; } 23723if test "${sim_cv_coin_avail+set}" = set; then : 23724 $as_echo_n "(cached) " >&6 23725else 23726 sim_ac_save_cppflags=$CPPFLAGS 23727 sim_ac_save_cxxflags=$CXXFLAGS 23728 sim_ac_save_ldflags=$LDFLAGS 23729 sim_ac_save_libs=$LIBS 23730 CPPFLAGS="$CPPFLAGS $sim_ac_coin_cppflags" 23731 CXXFLAGS="$CXXFLAGS $sim_ac_coin_cxxflags" 23732 LDFLAGS="$LDFLAGS $sim_ac_coin_ldflags" 23733 LIBS="$sim_ac_coin_libs $LIBS" 23734 ac_ext=cpp 23735ac_cpp='$CXXCPP $CPPFLAGS' 23736ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23737ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23738ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 23739 23740 23741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23742/* end confdefs.h. */ 23743#include <Inventor/SoDB.h> 23744int 23745main () 23746{ 23747SoDB::init(); 23748 ; 23749 return 0; 23750} 23751_ACEOF 23752if ac_fn_cxx_try_link "$LINENO"; then : 23753 sim_cv_coin_avail=true 23754else 23755 sim_cv_coin_avail=false 23756fi 23757rm -f core conftest.err conftest.$ac_objext \ 23758 conftest$ac_exeext conftest.$ac_ext 23759 23760 ac_ext=cpp 23761ac_cpp='$CXXCPP $CPPFLAGS' 23762ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23763ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23764ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 23765 23766 CPPFLAGS=$sim_ac_save_cppflags 23767 CXXFLAGS=$sim_ac_save_cxxflags 23768 LDFLAGS=$sim_ac_save_ldflags 23769 LIBS=$sim_ac_save_libs 23770 23771fi 23772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_coin_avail" >&5 23773$as_echo "$sim_cv_coin_avail" >&6; } 23774 sim_ac_coin_avail=$sim_cv_coin_avail 23775 23776 if $sim_ac_coin_avail; then :; else 23777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 23778Compilation and/or linking with the Coin main library SDK failed, for 23779unknown reason. If you are familiar with configure-based configuration 23780and building, investigate the 'config.log' file for clues. 23781 23782If you can not figure out what went wrong, please forward the 'config.log' 23783file to the email address <coin-support@coin3d.org> and ask for help by 23784describing the situation where this failed. 23785" >&5 23786$as_echo "$as_me: WARNING: 23787Compilation and/or linking with the Coin main library SDK failed, for 23788unknown reason. If you are familiar with configure-based configuration 23789and building, investigate the 'config.log' file for clues. 23790 23791If you can not figure out what went wrong, please forward the 'config.log' 23792file to the email address <coin-support@coin3d.org> and ask for help by 23793describing the situation where this failed. 23794" >&2;} 23795 fi 23796 else # no 'coin-config' found 23797 23798# FIXME: test for Coin without coin-config script here 23799 if test x"$COINDIR" != x""; then 23800 sim_ac_coindir=`cygpath -u "$COINDIR" 2>/dev/null || echo "$COINDIR"` 23801 if test -d $sim_ac_coindir/bin && test -d $sim_ac_coindir/lib && test -d $sim_ac_coindir/include/Inventor; then 23802 # using newest version (last alphabetically) in case of multiple libs 23803 sim_ac_coin_lib_file=`echo $sim_ac_coindir/lib/coin*.lib | sed -e 's,.* ,,g'` 23804 if test -f $sim_ac_coin_lib_file; then 23805 sim_ac_coin_lib_name=`echo $sim_ac_coin_lib_file | sed -e 's,.*/,,g' -e 's,.lib,,'` 23806 sim_ac_save_cppflags=$CPPFLAGS 23807 sim_ac_save_libs=$LIBS 23808 sim_ac_save_ldflags=$LDFLAGS 23809 CPPFLAGS="$CPPFLAGS -I$sim_ac_coindir/include" 23810 if test -f $sim_ac_coindir/bin/$sim_ac_coin_lib_name.dll; then 23811 CPPFLAGS="$CPPFLAGS -DCOIN_DLL" 23812 fi 23813 LDFLAGS="$LDFLAGS -L$sim_ac_coindir/lib" 23814 LIBS="-l$sim_ac_coin_lib_name -lopengl32 $LIBS" 23815 23816 ac_ext=cpp 23817ac_cpp='$CXXCPP $CPPFLAGS' 23818ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23819ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23820ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 23821 23822 23823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23824/* end confdefs.h. */ 23825#include <Inventor/SoDB.h> 23826int 23827main () 23828{ 23829SoDB::init(); 23830 ; 23831 return 0; 23832} 23833_ACEOF 23834if ac_fn_cxx_try_link "$LINENO"; then : 23835 sim_cv_coin_avail=true 23836else 23837 sim_cv_coin_avail=false 23838fi 23839rm -f core conftest.err conftest.$ac_objext \ 23840 conftest$ac_exeext conftest.$ac_ext 23841 23842 ac_ext=cpp 23843ac_cpp='$CXXCPP $CPPFLAGS' 23844ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23845ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23846ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 23847 23848 CPPFLAGS=$sim_ac_save_cppflags 23849 LDFLAGS=$sim_ac_save_ldflags 23850 LIBS=$sim_ac_save_libs 23851 sim_ac_coin_avail=$sim_cv_coin_avail 23852 fi 23853 fi 23854 fi 23855 23856 if $sim_ac_coin_avail; then 23857 sim_ac_coin_cppflags=-I$sim_ac_coindir/include 23858 if test -f $sim_ac_coindir/bin/$sim_ac_coin_lib_name.dll; then 23859 sim_ac_coin_cppflags="$sim_ac_coin_cppflags -DCOIN_DLL" 23860 fi 23861 sim_ac_coin_ldflags=-L$sim_ac_coindir/lib 23862 sim_ac_coin_libs="-l$sim_ac_coin_lib_name -lopengl32" 23863 sim_ac_coin_datadir=$sim_ac_coindir/data 23864 else 23865 locations=`IFS="${sim_ac_pathsep}"; for p in $sim_ac_path; do echo " -> $p/coin-config"; done` 23866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'coin-config' at any of these locations: 23867$locations" >&5 23868$as_echo "$as_me: WARNING: cannot find 'coin-config' at any of these locations: 23869$locations" >&2;} 23870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 23871Need to be able to run 'coin-config' to figure out how to build and link 23872against the Coin library. To rectify this problem, you most likely need 23873to a) install Coin if it has not been installed, b) add the Coin install 23874bin/ directory to your PATH environment variable. 23875" >&5 23876$as_echo "$as_me: WARNING: 23877Need to be able to run 'coin-config' to figure out how to build and link 23878against the Coin library. To rectify this problem, you most likely need 23879to a) install Coin if it has not been installed, b) add the Coin install 23880bin/ directory to your PATH environment variable. 23881" >&2;} 23882 fi 23883 fi 23884fi 23885 23886if $sim_ac_coin_avail; then 23887 23888 CPPFLAGS="$CPPFLAGS $sim_ac_coin_cppflags" 23889 if $SOQT_STATIC; then 23890 if $BUILD_WITH_MSVC; then 23891 : 23892 else 23893 LDFLAGS="$LDFLAGS $sim_ac_coin_ldflags" 23894 LIBS="$sim_ac_coin_libs $LIBS" 23895 fi 23896 else 23897 LDFLAGS="$LDFLAGS $sim_ac_coin_ldflags" 23898 LIBS="$sim_ac_coin_libs $LIBS" 23899 fi 23900 SOGUI_EXTRA_CPPFLAGS="$SOGUI_EXTRA_CPPFLAGS $sim_ac_coin_cppflags" 23901 SOGUI_EXTRA_LDFLAGS="$SOGUI_EXTRA_LDFLAGS $sim_ac_coin_ldflags" 23902 SOGUI_EXTRA_LIBS="$sim_ac_coin_libs $SOGUI_EXTRA_LIBS" 23903 23904else 23905 as_fn_error "couldn't compile and link against Coin" "$LINENO" 5 23906fi 23907 23908 fi # sim_ac_build_library 23909 23910 if test x"$sim_ac_want_x11" = xyes; then 23911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 linkage is ready" >&5 23912$as_echo_n "checking if X11 linkage is ready... " >&6; } 23913if test "${sim_cv_x11_ready+set}" = set; then : 23914 $as_echo_n "(cached) " >&6 23915else 23916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23917/* end confdefs.h. */ 23918#include <X11/Xlib.h> 23919int 23920main () 23921{ 23922(void)XOpenDisplay(0L); 23923 ; 23924 return 0; 23925} 23926_ACEOF 23927if ac_fn_cxx_try_link "$LINENO"; then : 23928 sim_cv_x11_ready=true 23929else 23930 sim_cv_x11_ready=false 23931fi 23932rm -f core conftest.err conftest.$ac_objext \ 23933 conftest$ac_exeext conftest.$ac_ext 23934fi 23935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_x11_ready" >&5 23936$as_echo "$sim_cv_x11_ready" >&6; } 23937if ${sim_cv_x11_ready}; then 23938 sim_ac_x11_ready=true 23939else 23940 sim_ac_x11_ready=false 23941fi 23942 23943 23944 if $sim_ac_x11_ready; then :; else 23945 23946 23947 23948sim_ac_enable_darwin_x11=false 23949 23950case $host_os in 23951 darwin* ) 23952 # Check whether --enable-darwin-x11 was given. 23953if test "${enable_darwin_x11+set}" = set; then : 23954 enableval=$enable_darwin_x11; case "${enableval}" in 23955 yes | true) sim_ac_enable_darwin_x11=true ;; 23956 no | false) sim_ac_enable_darwin_x11=false; no_x=yes ;; 23957 *) 23958as_fn_error "invalid value \"${enableval}\" for \"--enable-darwin-x11\" configure argument" "$LINENO" 5 23959 ;; 23960 esac 23961else 23962 sim_ac_enable_darwin_x11=false; no_x=yes 23963fi 23964 23965 ;; 23966esac 23967 23968sim_ac_x11_avail=no 23969 23970if test x"$no_x" != xyes; then 23971 23972 # *** DEBUG *** 23973 # Keep this around, as it can be handy when testing on new systems. 23974 # echo "X_CFLAGS: $X_CFLAGS" 23975 # echo "X_PRE_LIBS: $X_PRE_LIBS" 23976 # echo "X_LIBS: $X_LIBS" 23977 # echo "X_EXTRA_LIBS: $X_EXTRA_LIBS" 23978 # echo 23979 # exit 0 23980 23981 sim_ac_x11_cppflags="$X_CFLAGS" 23982 sim_ac_x11_ldflags="$X_LIBS" 23983 sim_ac_x11_libs="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS" 23984 23985 sim_ac_save_cppflags=$CPPFLAGS 23986 sim_ac_save_ldflags=$LDFLAGS 23987 sim_ac_save_libs=$LIBS 23988 23989 CPPFLAGS="$CPPFLAGS $sim_ac_x11_cppflags" 23990 LDFLAGS="$LDFLAGS $sim_ac_x11_ldflags" 23991 LIBS="$sim_ac_x11_libs $LIBS" 23992 23993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link against X11" >&5 23994$as_echo_n "checking whether we can link against X11... " >&6; } 23995if test "${sim_cv_lib_x11_avail+set}" = set; then : 23996 $as_echo_n "(cached) " >&6 23997else 23998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23999/* end confdefs.h. */ 24000#include <X11/Xlib.h> 24001int 24002main () 24003{ 24004(void)XOpenDisplay(0L); 24005 ; 24006 return 0; 24007} 24008_ACEOF 24009if ac_fn_cxx_try_link "$LINENO"; then : 24010 sim_cv_lib_x11_avail=yes 24011else 24012 sim_cv_lib_x11_avail=no 24013fi 24014rm -f core conftest.err conftest.$ac_objext \ 24015 conftest$ac_exeext conftest.$ac_ext 24016fi 24017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_lib_x11_avail" >&5 24018$as_echo "$sim_cv_lib_x11_avail" >&6; } 24019 24020 if test x"$sim_cv_lib_x11_avail" = x"yes"; then 24021 sim_ac_x11_avail=yes 24022 24023 CPPFLAGS="$CPPFLAGS $sim_ac_x11_cppflags" 24024 LDFLAGS="$LDFLAGS $sim_ac_x11_ldflags" 24025 LIBS="$sim_ac_x11_libs $LIBS" 24026 SOGUI_EXTRA_CPPFLAGS="$SOGUI_EXTRA_CPPFLAGS $sim_ac_x11_cppflags" 24027 SOGUI_EXTRA_LDFLAGS="$SOGUI_EXTRA_LDFLAGS $sim_ac_x11_ldflags" 24028 SOGUI_EXTRA_LIBS="$sim_ac_x11_libs $SOGUI_EXTRA_LIBS" 24029 24030 else 24031 CPPFLAGS=$sim_ac_save_cppflags 24032 LDFLAGS=$sim_ac_save_ldflags 24033 LIBS=$sim_ac_save_libs 24034 24035 fi 24036fi 24037 24038 # FIXME: we just implicitly assume that -lXext and -lXmu is available 24039 # if -lX11 is available from coin-config. Should really have macros 24040 # SIM_AC_CHECK_[X11SHMEM|X11MU]_READY. 20001116 mortene. 24041 if test x"$sim_ac_x11_avail" = xyes; then 24042 24043 24044sim_ac_x11shmem_avail=no 24045sim_ac_x11shmem_libs="-lXext" 24046sim_ac_save_libs=$LIBS 24047LIBS="$sim_ac_x11shmem_libs $LIBS" 24048 24049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the X11 shared memory extension is available" >&5 24050$as_echo_n "checking whether the X11 shared memory extension is available... " >&6; } 24051if test "${sim_cv_lib_x11shmem_avail+set}" = set; then : 24052 $as_echo_n "(cached) " >&6 24053else 24054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24055/* end confdefs.h. */ 24056#include <X11/Xlib.h> 24057 #include <X11/extensions/XShm.h> 24058int 24059main () 24060{ 24061(void)XShmQueryVersion(0L, 0L, 0L, 0L); 24062 ; 24063 return 0; 24064} 24065_ACEOF 24066if ac_fn_cxx_try_link "$LINENO"; then : 24067 sim_cv_lib_x11shmem_avail=yes 24068else 24069 sim_cv_lib_x11shmem_avail=no 24070fi 24071rm -f core conftest.err conftest.$ac_objext \ 24072 conftest$ac_exeext conftest.$ac_ext 24073fi 24074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_lib_x11shmem_avail" >&5 24075$as_echo "$sim_cv_lib_x11shmem_avail" >&6; } 24076 24077if test x"$sim_cv_lib_x11shmem_avail" = xyes; then 24078 sim_ac_x11shmem_avail=yes 24079 24080 # LIBS="$sim_ac_x11shmem_libs $LIBS" 24081 SOGUI_EXTRA_LIBS="$sim_ac_x11shmem_libs $SOGUI_EXTRA_LIBS" 24082 24083else 24084 LIBS=$sim_ac_save_libs 24085 24086fi 24087 24088 24089 24090sim_ac_x11mu_avail=no 24091sim_ac_x11mu_cppflags="" 24092sim_ac_x11mu_ldflags="" 24093sim_ac_x11mu_libs="-lXmu" 24094 24095sim_ac_save_libs=$LIBS 24096sim_ac_save_cppflags=$CPPFLAGS 24097sim_ac_save_ldflags=$LDFLAGS 24098 24099LIBS="$sim_ac_x11mu_libs $LIBS" 24100 24101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the X11 miscellaneous utilities library is available" >&5 24102$as_echo_n "checking whether the X11 miscellaneous utilities library is available... " >&6; } 24103if test "${sim_cv_lib_x11mu_avail+set}" = set; then : 24104 $as_echo_n "(cached) " >&6 24105else 24106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24107/* end confdefs.h. */ 24108#include <X11/Xlib.h> 24109 #include <X11/Xmu/Xmu.h> 24110 #include <X11/Xmu/StdCmap.h> 24111int 24112main () 24113{ 24114(void)XmuAllStandardColormaps(0L); 24115 ; 24116 return 0; 24117} 24118_ACEOF 24119if ac_fn_cxx_try_link "$LINENO"; then : 24120 sim_cv_lib_x11mu_avail=yes 24121else 24122 sim_cv_lib_x11mu_avail=maybe 24123fi 24124rm -f core conftest.err conftest.$ac_objext \ 24125 conftest$ac_exeext conftest.$ac_ext 24126fi 24127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_lib_x11mu_avail" >&5 24128$as_echo "$sim_cv_lib_x11mu_avail" >&6; } 24129 24130if test x"$sim_cv_lib_x11mu_avail" = xyes; then 24131 sim_ac_x11mu_avail=yes 24132else 24133 # On HP-UX, Xmu might be located under /usr/contrib/X11R6/ 24134 mudir=/usr/contrib/X11R6 24135 if test -d $mudir; then 24136 sim_ac_x11mu_cppflags="-I$mudir/include" 24137 sim_ac_x11mu_ldflags="-L$mudir/lib" 24138 CPPFLAGS="$sim_ac_x11mu_cppflags $CPPFLAGS" 24139 LDFLAGS="$sim_ac_x11mu_ldflags $LDFLAGS" 24140 24141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking once more whether the X11 miscellaneous utilities library is available" >&5 24142$as_echo_n "checking once more whether the X11 miscellaneous utilities library is available... " >&6; } 24143if test "${sim_cv_lib_x11mu_contrib_avail+set}" = set; then : 24144 $as_echo_n "(cached) " >&6 24145else 24146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24147/* end confdefs.h. */ 24148#include <X11/Xlib.h> 24149 #include <X11/Xmu/Xmu.h> 24150 #include <X11/Xmu/StdCmap.h> 24151int 24152main () 24153{ 24154(void)XmuAllStandardColormaps(0L); 24155 ; 24156 return 0; 24157} 24158_ACEOF 24159if ac_fn_cxx_try_link "$LINENO"; then : 24160 sim_cv_lib_x11mu_contrib_avail=yes 24161else 24162 sim_cv_lib_x11mu_contrib_avail=no 24163fi 24164rm -f core conftest.err conftest.$ac_objext \ 24165 conftest$ac_exeext conftest.$ac_ext 24166fi 24167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_lib_x11mu_contrib_avail" >&5 24168$as_echo "$sim_cv_lib_x11mu_contrib_avail" >&6; } 24169 if test x"$sim_cv_lib_x11mu_contrib_avail" = xyes; then 24170 sim_ac_x11mu_avail=yes 24171 else 24172 sim_ac_x11mu_cppflags="" 24173 sim_ac_x11mu_ldflags="" 24174 fi 24175 fi 24176fi 24177 24178if test x"$sim_ac_x11mu_avail" = xyes; then 24179 : 24180 24181 # LIBS="$sim_ac_x11mu_libs $LIBS" 24182 SOGUI_EXTRA_LIBS="$sim_ac_x11mu_libs $SOGUI_EXTRA_LIBS" 24183 24184else 24185 LIBS=$sim_ac_save_libs 24186 CPPFLAGS=$sim_ac_save_cppflags 24187 LDFLAGS=$sim_ac_save_ldflags 24188 24189fi 24190 24191 fi 24192 fi 24193 24194 24195sim_ac_x11xid_avail=no 24196sim_ac_x11xid_libs="-lXi" 24197sim_ac_save_libs=$LIBS 24198LIBS="$sim_ac_x11xid_libs $LIBS" 24199 24200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the X11 extension device library is available" >&5 24201$as_echo_n "checking whether the X11 extension device library is available... " >&6; } 24202if test "${sim_cv_lib_x11xid_avail+set}" = set; then : 24203 $as_echo_n "(cached) " >&6 24204else 24205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24206/* end confdefs.h. */ 24207#include <X11/extensions/XInput.h> 24208int 24209main () 24210{ 24211(void)XOpenDevice(0L, 0); 24212 ; 24213 return 0; 24214} 24215_ACEOF 24216if ac_fn_cxx_try_link "$LINENO"; then : 24217 sim_cv_lib_x11xid_avail=yes 24218else 24219 sim_cv_lib_x11xid_avail=no 24220fi 24221rm -f core conftest.err conftest.$ac_objext \ 24222 conftest$ac_exeext conftest.$ac_ext 24223fi 24224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_lib_x11xid_avail" >&5 24225$as_echo "$sim_cv_lib_x11xid_avail" >&6; } 24226 24227if test x"$sim_cv_lib_x11xid_avail" = x"yes"; then 24228 sim_ac_x11xid_avail=yes 24229 24230 SOGUI_EXTRA_LIBS="$sim_ac_x11xid_libs $SOGUI_EXTRA_LIBS" 24231 24232else 24233 LIBS=$sim_ac_save_libs 24234 24235fi 24236 24237 fi 24238 24239 sim_ac_inventor_brand=coin 24240 24241if test x"${sim_ac_configuration_settings+set}" = x"set"; then 24242 sim_ac_configuration_settings="$sim_ac_configuration_settings|Open Inventor brand:Coin" 24243else 24244 sim_ac_configuration_settings="Open Inventor brand:Coin" 24245fi 24246 24247fi 24248 24249if test x"$sim_ac_want_x11" = xyes; then 24250 24251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GLX is on the system" >&5 24252$as_echo_n "checking whether GLX is on the system... " >&6; } 24253if test "${sim_cv_have_glx+set}" = set; then : 24254 $as_echo_n "(cached) " >&6 24255else 24256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24257/* end confdefs.h. */ 24258 24259#include <GL/glx.h> 24260#include <GL/gl.h> 24261 24262int 24263main () 24264{ 24265 24266(void)glXChooseVisual(0L, 0, 0L); 24267/* Defect JAGad01283 of HP's aCC compiler causes a link failure unless 24268 there is at least one "pure" OpenGL call along with GLU calls. */ 24269glEnd(); 24270 24271 ; 24272 return 0; 24273} 24274_ACEOF 24275if ac_fn_cxx_try_link "$LINENO"; then : 24276 sim_cv_have_glx=true 24277else 24278 sim_cv_have_glx=false 24279fi 24280rm -f core conftest.err conftest.$ac_objext \ 24281 conftest$ac_exeext conftest.$ac_ext 24282fi 24283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_have_glx" >&5 24284$as_echo "$sim_cv_have_glx" >&6; } 24285 24286if ${sim_cv_have_glx=false}; then 24287 24288 24289$as_echo "#define HAVE_GLX 1" >>confdefs.h 24290 24291 24292else 24293 : 24294fi 24295 24296 24297 ## We need this extra, final X11 check to set up the HAVE_X11_AVAILABLE 24298 ## define -- the X_DISPLAY_MISSING define provided by the built-in 24299 ## Autoconf X11 check is not strict enough. 24300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 linkage is ready" >&5 24301$as_echo_n "checking if X11 linkage is ready... " >&6; } 24302if test "${sim_cv_x11_ready+set}" = set; then : 24303 $as_echo_n "(cached) " >&6 24304else 24305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24306/* end confdefs.h. */ 24307#include <X11/Xlib.h> 24308int 24309main () 24310{ 24311(void)XOpenDisplay(0L); 24312 ; 24313 return 0; 24314} 24315_ACEOF 24316if ac_fn_cxx_try_link "$LINENO"; then : 24317 sim_cv_x11_ready=true 24318else 24319 sim_cv_x11_ready=false 24320fi 24321rm -f core conftest.err conftest.$ac_objext \ 24322 conftest$ac_exeext conftest.$ac_ext 24323fi 24324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_x11_ready" >&5 24325$as_echo "$sim_cv_x11_ready" >&6; } 24326if ${sim_cv_x11_ready}; then 24327 24328$as_echo "#define HAVE_X11_AVAILABLE /**/" >>confdefs.h 24329 24330else 24331 : 24332fi 24333 24334fi 24335 24336# static builds on windows: we don't want the coin libs on the final link line, 24337# but we need them for these tests. 20041022 larsa 24338sim_ac_configure_save_ldflags=$LDFLAGS 24339sim_ac_configure_save_libs=$LIBS 24340if test $sim_ac_inventor_brand = coin && $SOQT_STATIC && $BUILD_WITH_MSVC; then 24341 LDFLAGS="$LDFLAGS $sim_ac_coin_ldflags" 24342 LIBS="$sim_ac_coin_libs $LIBS" 24343fi 24344 24345# Check for the availability of this node (it is used in the hidden 24346# line rendering), which is not part of older Inventor implementations. 24347 24348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the Open Inventor SoPolygonOffset node is available" >&5 24349$as_echo_n "checking if the Open Inventor SoPolygonOffset node is available... " >&6; } 24350if test "${sim_cv_have_oiv_sopolygonoffset_node+set}" = set; then : 24351 $as_echo_n "(cached) " >&6 24352else 24353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24354/* end confdefs.h. */ 24355#include <Inventor/nodes/SoPolygonOffset.h> 24356int 24357main () 24358{ 24359SoPolygonOffset * p = new SoPolygonOffset; 24360 ; 24361 return 0; 24362} 24363_ACEOF 24364if ac_fn_cxx_try_link "$LINENO"; then : 24365 sim_cv_have_oiv_sopolygonoffset_node=true 24366else 24367 sim_cv_have_oiv_sopolygonoffset_node=false 24368fi 24369rm -f core conftest.err conftest.$ac_objext \ 24370 conftest$ac_exeext conftest.$ac_ext 24371fi 24372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_have_oiv_sopolygonoffset_node" >&5 24373$as_echo "$sim_cv_have_oiv_sopolygonoffset_node" >&6; } 24374 24375if $sim_cv_have_oiv_sopolygonoffset_node; then 24376 24377$as_echo "#define HAVE_SOPOLYGONOFFSET 1" >>confdefs.h 24378 24379 24380else 24381 : 24382fi 24383 24384 24385 24386# check for misc VRML97 features 24387 24388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the Open Inventor SoVRMLMaterial VRML node is available" >&5 24389$as_echo_n "checking if the Open Inventor SoVRMLMaterial VRML node is available... " >&6; } 24390if test "${sim_cv_have_oiv_sovrmlmaterial_vrmlnode+set}" = set; then : 24391 $as_echo_n "(cached) " >&6 24392else 24393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24394/* end confdefs.h. */ 24395#include <Inventor/VRMLnodes/SoVRMLMaterial.h> 24396int 24397main () 24398{ 24399SoVRMLMaterial * p = new SoVRMLMaterial; 24400 ; 24401 return 0; 24402} 24403_ACEOF 24404if ac_fn_cxx_try_link "$LINENO"; then : 24405 sim_cv_have_oiv_sovrmlmaterial_vrmlnode=true 24406else 24407 sim_cv_have_oiv_sovrmlmaterial_vrmlnode=false 24408fi 24409rm -f core conftest.err conftest.$ac_objext \ 24410 conftest$ac_exeext conftest.$ac_ext 24411fi 24412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_have_oiv_sovrmlmaterial_vrmlnode" >&5 24413$as_echo "$sim_cv_have_oiv_sovrmlmaterial_vrmlnode" >&6; } 24414 24415if $sim_cv_have_oiv_sovrmlmaterial_vrmlnode; then 24416 24417$as_echo "#define HAVE_SOVRMLMATERIAL 1" >>confdefs.h 24418 24419 24420else 24421 : 24422fi 24423 24424 24425 24426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the Open Inventor SoVRMLViewpoint VRML node is available" >&5 24427$as_echo_n "checking if the Open Inventor SoVRMLViewpoint VRML node is available... " >&6; } 24428if test "${sim_cv_have_oiv_sovrmlviewpoint_vrmlnode+set}" = set; then : 24429 $as_echo_n "(cached) " >&6 24430else 24431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24432/* end confdefs.h. */ 24433#include <Inventor/VRMLnodes/SoVRMLViewpoint.h> 24434int 24435main () 24436{ 24437SoVRMLViewpoint * p = new SoVRMLViewpoint; 24438 ; 24439 return 0; 24440} 24441_ACEOF 24442if ac_fn_cxx_try_link "$LINENO"; then : 24443 sim_cv_have_oiv_sovrmlviewpoint_vrmlnode=true 24444else 24445 sim_cv_have_oiv_sovrmlviewpoint_vrmlnode=false 24446fi 24447rm -f core conftest.err conftest.$ac_objext \ 24448 conftest$ac_exeext conftest.$ac_ext 24449fi 24450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_have_oiv_sovrmlviewpoint_vrmlnode" >&5 24451$as_echo "$sim_cv_have_oiv_sovrmlviewpoint_vrmlnode" >&6; } 24452 24453if $sim_cv_have_oiv_sovrmlviewpoint_vrmlnode; then 24454 24455$as_echo "#define HAVE_SOVRMLVIEWPOINT 1" >>confdefs.h 24456 24457 24458else 24459 : 24460fi 24461 24462 24463 24464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the Open Inventor SoVRMLBackground VRML node is available" >&5 24465$as_echo_n "checking if the Open Inventor SoVRMLBackground VRML node is available... " >&6; } 24466if test "${sim_cv_have_oiv_sovrmlbackground_vrmlnode+set}" = set; then : 24467 $as_echo_n "(cached) " >&6 24468else 24469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24470/* end confdefs.h. */ 24471#include <Inventor/VRMLnodes/SoVRMLBackground.h> 24472int 24473main () 24474{ 24475SoVRMLBackground * p = new SoVRMLBackground; 24476 ; 24477 return 0; 24478} 24479_ACEOF 24480if ac_fn_cxx_try_link "$LINENO"; then : 24481 sim_cv_have_oiv_sovrmlbackground_vrmlnode=true 24482else 24483 sim_cv_have_oiv_sovrmlbackground_vrmlnode=false 24484fi 24485rm -f core conftest.err conftest.$ac_objext \ 24486 conftest$ac_exeext conftest.$ac_ext 24487fi 24488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_have_oiv_sovrmlbackground_vrmlnode" >&5 24489$as_echo "$sim_cv_have_oiv_sovrmlbackground_vrmlnode" >&6; } 24490 24491if $sim_cv_have_oiv_sovrmlbackground_vrmlnode; then 24492 24493$as_echo "#define HAVE_SOVRMLBACKGROUND 1" >>confdefs.h 24494 24495 24496else 24497 : 24498fi 24499 24500 24501 24502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the Open Inventor SoVRMLFog VRML node is available" >&5 24503$as_echo_n "checking if the Open Inventor SoVRMLFog VRML node is available... " >&6; } 24504if test "${sim_cv_have_oiv_sovrmlfog_vrmlnode+set}" = set; then : 24505 $as_echo_n "(cached) " >&6 24506else 24507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24508/* end confdefs.h. */ 24509#include <Inventor/VRMLnodes/SoVRMLFog.h> 24510int 24511main () 24512{ 24513SoVRMLFog * p = new SoVRMLFog; 24514 ; 24515 return 0; 24516} 24517_ACEOF 24518if ac_fn_cxx_try_link "$LINENO"; then : 24519 sim_cv_have_oiv_sovrmlfog_vrmlnode=true 24520else 24521 sim_cv_have_oiv_sovrmlfog_vrmlnode=false 24522fi 24523rm -f core conftest.err conftest.$ac_objext \ 24524 conftest$ac_exeext conftest.$ac_ext 24525fi 24526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_have_oiv_sovrmlfog_vrmlnode" >&5 24527$as_echo "$sim_cv_have_oiv_sovrmlfog_vrmlnode" >&6; } 24528 24529if $sim_cv_have_oiv_sovrmlfog_vrmlnode; then 24530 24531$as_echo "#define HAVE_SOVRMLFOG 1" >>confdefs.h 24532 24533 24534else 24535 : 24536fi 24537 24538 24539 24540 24541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SoContextHandler class" >&5 24542$as_echo_n "checking for SoContextHandler class... " >&6; } 24543if test "${sim_cv_have_oiv_have_socontexthandler+set}" = set; then : 24544 $as_echo_n "(cached) " >&6 24545else 24546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24547/* end confdefs.h. */ 24548#include <Inventor/misc/SoContextHandler.h> 24549int 24550main () 24551{ 24552 24553 SoContextHandler::destructingContext(0); 24554 ; 24555 return 0; 24556} 24557_ACEOF 24558if ac_fn_cxx_try_link "$LINENO"; then : 24559 sim_cv_have_oiv_have_socontexthandler=true 24560else 24561 sim_cv_have_oiv_have_socontexthandler=false 24562fi 24563rm -f core conftest.err conftest.$ac_objext \ 24564 conftest$ac_exeext conftest.$ac_ext 24565fi 24566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_have_oiv_have_socontexthandler" >&5 24567$as_echo "$sim_cv_have_oiv_have_socontexthandler" >&6; } 24568 24569if $sim_cv_have_oiv_have_socontexthandler; then 24570 24571$as_echo "#define HAVE_SOCONTEXTHANDLER 1" >>confdefs.h 24572 24573 24574else 24575 : 24576fi 24577 24578 24579 24580 24581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SoKeyboardEvent::DELETE enum" >&5 24582$as_echo_n "checking for SoKeyboardEvent::DELETE enum... " >&6; } 24583if test "${sim_cv_have_oiv_have_sokeyboardevent_delete+set}" = set; then : 24584 $as_echo_n "(cached) " >&6 24585else 24586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24587/* end confdefs.h. */ 24588#include <Inventor/events/SoKeyboardEvent.h> 24589int 24590main () 24591{ 24592 24593 /* This is either DELETE or KEY_DELETE */ 24594 SoKeyboardEvent::Key key = SoKeyboardEvent::DELETE; 24595 ; 24596 return 0; 24597} 24598_ACEOF 24599if ac_fn_cxx_try_link "$LINENO"; then : 24600 sim_cv_have_oiv_have_sokeyboardevent_delete=true 24601else 24602 sim_cv_have_oiv_have_sokeyboardevent_delete=false 24603fi 24604rm -f core conftest.err conftest.$ac_objext \ 24605 conftest$ac_exeext conftest.$ac_ext 24606fi 24607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_have_oiv_have_sokeyboardevent_delete" >&5 24608$as_echo "$sim_cv_have_oiv_have_sokeyboardevent_delete" >&6; } 24609 24610if $sim_cv_have_oiv_have_sokeyboardevent_delete; then 24611 24612$as_echo "#define HAVE_SOKEYBOARDEVENT_DELETE 1" >>confdefs.h 24613 24614 24615else 24616 : 24617fi 24618 24619 24620 24621 24622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SoMouseButtonEvent::BUTTON5 enum" >&5 24623$as_echo_n "checking for SoMouseButtonEvent::BUTTON5 enum... " >&6; } 24624if test "${sim_cv_have_oiv_have_somousebuttonevent_button5+set}" = set; then : 24625 $as_echo_n "(cached) " >&6 24626else 24627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24628/* end confdefs.h. */ 24629#include <Inventor/events/SoMouseButtonEvent.h> 24630int 24631main () 24632{ 24633 24634 /* mouse wheel support needs BUTTON4 and BUTTON5 */ 24635 SoMouseButtonEvent::Button button = SoMouseButtonEvent::BUTTON5; 24636 ; 24637 return 0; 24638} 24639_ACEOF 24640if ac_fn_cxx_try_link "$LINENO"; then : 24641 sim_cv_have_oiv_have_somousebuttonevent_button5=true 24642else 24643 sim_cv_have_oiv_have_somousebuttonevent_button5=false 24644fi 24645rm -f core conftest.err conftest.$ac_objext \ 24646 conftest$ac_exeext conftest.$ac_ext 24647fi 24648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_have_oiv_have_somousebuttonevent_button5" >&5 24649$as_echo "$sim_cv_have_oiv_have_somousebuttonevent_button5" >&6; } 24650 24651if $sim_cv_have_oiv_have_somousebuttonevent_button5; then 24652 24653$as_echo "#define HAVE_SOMOUSEBUTTONEVENT_BUTTON5 1" >>confdefs.h 24654 24655 24656else 24657 : 24658fi 24659 24660 24661 24662 24663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SoCamera::setStereoMode() method" >&5 24664$as_echo_n "checking for SoCamera::setStereoMode() method... " >&6; } 24665if test "${sim_cv_have_oiv_have_socamera_setstereomode+set}" = set; then : 24666 $as_echo_n "(cached) " >&6 24667else 24668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24669/* end confdefs.h. */ 24670#include <Inventor/nodes/SoPerspectiveCamera.h> 24671int 24672main () 24673{ 24674/* SoCamera is abstract, so test with SoPerspectiveCamera */ 24675 SoPerspectiveCamera * c = new SoPerspectiveCamera; 24676 c->setStereoMode(SoCamera::MONOSCOPIC); 24677 ; 24678 return 0; 24679} 24680_ACEOF 24681if ac_fn_cxx_try_link "$LINENO"; then : 24682 sim_cv_have_oiv_have_socamera_setstereomode=true 24683else 24684 sim_cv_have_oiv_have_socamera_setstereomode=false 24685fi 24686rm -f core conftest.err conftest.$ac_objext \ 24687 conftest$ac_exeext conftest.$ac_ext 24688fi 24689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_have_oiv_have_socamera_setstereomode" >&5 24690$as_echo "$sim_cv_have_oiv_have_socamera_setstereomode" >&6; } 24691 24692if $sim_cv_have_oiv_have_socamera_setstereomode; then 24693 24694$as_echo "#define HAVE_SOCAMERA_SETSTEREOMODE 1" >>confdefs.h 24695 24696 24697else 24698 : 24699fi 24700 24701 24702 24703 24704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SoGLRenderAction::SORTED_LAYERS_BLEND transparency mode" >&5 24705$as_echo_n "checking for SoGLRenderAction::SORTED_LAYERS_BLEND transparency mode... " >&6; } 24706if test "${sim_cv_have_oiv_have_sorted_layers_blend+set}" = set; then : 24707 $as_echo_n "(cached) " >&6 24708else 24709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24710/* end confdefs.h. */ 24711#include <Inventor/actions/SoGLRenderAction.h> 24712int 24713main () 24714{ 24715 24716 /* try to get SORTED_LAYERS_BLEND transparency mode value */ 24717 int num = (int) SoGLRenderAction::SORTED_LAYERS_BLEND; 24718 ; 24719 return 0; 24720} 24721_ACEOF 24722if ac_fn_cxx_try_link "$LINENO"; then : 24723 sim_cv_have_oiv_have_sorted_layers_blend=true 24724else 24725 sim_cv_have_oiv_have_sorted_layers_blend=false 24726fi 24727rm -f core conftest.err conftest.$ac_objext \ 24728 conftest$ac_exeext conftest.$ac_ext 24729fi 24730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_have_oiv_have_sorted_layers_blend" >&5 24731$as_echo "$sim_cv_have_oiv_have_sorted_layers_blend" >&6; } 24732 24733if $sim_cv_have_oiv_have_sorted_layers_blend; then 24734 24735$as_echo "#define HAVE_SORTED_LAYERS_BLEND 1" >>confdefs.h 24736 24737 24738else 24739 : 24740fi 24741 24742 24743 24744 24745 24746# Check whether --with-iv-extensions was given. 24747if test "${with_iv_extensions+set}" = set; then : 24748 withval=$with_iv_extensions; sim_ac_iv_try_extensions=$withval 24749fi 24750 24751 24752sim_ac_iv_extension_save_LIBS=$LIBS 24753 24754sim_ac_iv_extension_LIBS= 24755sim_ac_iv_extension_LDFLAGS= 24756sim_ac_iv_extension_decarations= 24757sim_ac_iv_extension_initializations= 24758 24759sim_ac_iv_extensions= 24760while test x"${sim_ac_iv_try_extensions}" != x""; do 24761 sim_ac_iv_extension=`echo ,$sim_ac_iv_try_extensions | cut -d, -f2` 24762 sim_ac_iv_try_extensions=`echo ,$sim_ac_iv_try_extensions | cut -d, -f3-` 24763 case $sim_ac_iv_extension in 24764 sim_ac_dummy ) # ignore 24765 ;; 24766 -L* ) # extension library path hint 24767 sim_ac_iv_extension_LDFLAGS="$sim_ac_iv_extension_LDFLAGS $sim_ac_iv_extension" 24768 ;; 24769 -l* ) # extension library hint 24770 LIBS="$sim_ac_iv_extension_save_LIBS $sim_ac_iv_extension_LIBS $sim_ac_iv_extension" 24771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Open Inventor extension library $sim_ac_iv_extension" >&5 24772$as_echo_n "checking for Open Inventor extension library $sim_ac_iv_extension... " >&6; } 24773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24774/* end confdefs.h. */ 24775#include <Inventor/SoDB.h> 24776int 24777main () 24778{ 24779SoDB::init(); 24780 ; 24781 return 0; 24782} 24783_ACEOF 24784if ac_fn_cxx_try_link "$LINENO"; then : 24785 sim_ac_iv_extension_LIBS="$sim_ac_iv_extension_LIBS $sim_ac_iv_extension" 24786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linkable" >&5 24787$as_echo "linkable" >&6; } 24788else 24789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unlinkable - discarded" >&5 24790$as_echo "unlinkable - discarded" >&6; } 24791fi 24792rm -f core conftest.err conftest.$ac_objext \ 24793 conftest$ac_exeext conftest.$ac_ext 24794 ;; 24795 * ) 24796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Open Inventor extension $sim_ac_iv_extension" >&5 24797$as_echo_n "checking for Open Inventor extension $sim_ac_iv_extension... " >&6; } 24798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24799/* end confdefs.h. */ 24800#include <Inventor/SoDB.h> 24801// hack up a declaration and see if the mangled name is found by the linker 24802class $sim_ac_iv_extension { 24803public: 24804static void initClass(void); 24805}; 24806int 24807main () 24808{ 24809 24810 SoDB::init(); 24811 $sim_ac_iv_extension::initClass(); 24812 24813 ; 24814 return 0; 24815} 24816_ACEOF 24817if ac_fn_cxx_try_link "$LINENO"; then : 24818 24819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 24820$as_echo "found" >&6; } 24821 sim_ac_iv_extensions="$sim_ac_iv_extensions COIN_IV_EXTENSION($sim_ac_iv_extension)" 24822 24823else 24824 24825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24826$as_echo "not found" >&6; } 24827 24828fi 24829rm -f core conftest.err conftest.$ac_objext \ 24830 conftest$ac_exeext conftest.$ac_ext 24831 ;; 24832 esac 24833done 24834 24835 24836cat >>confdefs.h <<_ACEOF 24837#define COIN_IV_EXTENSIONS $sim_ac_iv_extensions 24838_ACEOF 24839 24840 24841LIBS=$sim_ac_iv_extension_save_LIBS 24842 24843 24844 LDFLAGS="$sim_ac_iv_extension_LDFLAGS $LDFLAGS" 24845 SOGUI_EXTRA_LDFLAGS="$sim_ac_iv_extension_LDFLAGS $SOGUI_EXTRA_LDFLAGS" 24846 LIBS="$sim_ac_iv_extension_LIBS $LIBS" 24847 SOGUI_EXTRA_LIBS="$sim_ac_iv_extension_LIBS $SOGUI_EXTRA_LIBS" 24848 24849 24850 24851 24852 24853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SbImage::addReadImageCB" >&5 24854$as_echo_n "checking for SbImage::addReadImageCB... " >&6; } 24855if test "${sim_cv_have_oiv_have_sbimage_addreadimagecb+set}" = set; then : 24856 $as_echo_n "(cached) " >&6 24857else 24858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24859/* end confdefs.h. */ 24860#include <Inventor/SbImage.h> 24861int 24862main () 24863{ 24864SbImage::addReadImageCB(NULL, NULL); 24865 ; 24866 return 0; 24867} 24868_ACEOF 24869if ac_fn_cxx_try_link "$LINENO"; then : 24870 sim_cv_have_oiv_have_sbimage_addreadimagecb=true 24871else 24872 sim_cv_have_oiv_have_sbimage_addreadimagecb=false 24873fi 24874rm -f core conftest.err conftest.$ac_objext \ 24875 conftest$ac_exeext conftest.$ac_ext 24876fi 24877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_have_oiv_have_sbimage_addreadimagecb" >&5 24878$as_echo "$sim_cv_have_oiv_have_sbimage_addreadimagecb" >&6; } 24879 24880if $sim_cv_have_oiv_have_sbimage_addreadimagecb; then 24881 24882$as_echo "#define HAVE_SBIMAGE_ADDREADIMAGECB 1" >>confdefs.h 24883 24884 24885else 24886 : 24887fi 24888 24889 24890 24891sim_ac_enable_pkgconfig=true 24892# Check whether --enable-pkgconfig was given. 24893if test "${enable_pkgconfig+set}" = set; then : 24894 enableval=$enable_pkgconfig; 24895 case $enableval in 24896 no) sim_ac_enable_pkgconfig=false ;; 24897 *) ;; 24898 esac 24899fi 24900 24901 24902if $sim_ac_enable_pkgconfig; then 24903 24904 24905if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 24906 if test -n "$ac_tool_prefix"; then 24907 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 24908set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 24909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24910$as_echo_n "checking for $ac_word... " >&6; } 24911if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 24912 $as_echo_n "(cached) " >&6 24913else 24914 case $PKG_CONFIG in 24915 [\\/]* | ?:[\\/]*) 24916 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 24917 ;; 24918 *) 24919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24920for as_dir in $PATH 24921do 24922 IFS=$as_save_IFS 24923 test -z "$as_dir" && as_dir=. 24924 for ac_exec_ext in '' $ac_executable_extensions; do 24925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 24926 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 24927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24928 break 2 24929 fi 24930done 24931 done 24932IFS=$as_save_IFS 24933 24934 ;; 24935esac 24936fi 24937PKG_CONFIG=$ac_cv_path_PKG_CONFIG 24938if test -n "$PKG_CONFIG"; then 24939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 24940$as_echo "$PKG_CONFIG" >&6; } 24941else 24942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24943$as_echo "no" >&6; } 24944fi 24945 24946 24947fi 24948if test -z "$ac_cv_path_PKG_CONFIG"; then 24949 ac_pt_PKG_CONFIG=$PKG_CONFIG 24950 # Extract the first word of "pkg-config", so it can be a program name with args. 24951set dummy pkg-config; ac_word=$2 24952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24953$as_echo_n "checking for $ac_word... " >&6; } 24954if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : 24955 $as_echo_n "(cached) " >&6 24956else 24957 case $ac_pt_PKG_CONFIG in 24958 [\\/]* | ?:[\\/]*) 24959 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 24960 ;; 24961 *) 24962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24963for as_dir in $PATH 24964do 24965 IFS=$as_save_IFS 24966 test -z "$as_dir" && as_dir=. 24967 for ac_exec_ext in '' $ac_executable_extensions; do 24968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 24969 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 24970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24971 break 2 24972 fi 24973done 24974 done 24975IFS=$as_save_IFS 24976 24977 ;; 24978esac 24979fi 24980ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 24981if test -n "$ac_pt_PKG_CONFIG"; then 24982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 24983$as_echo "$ac_pt_PKG_CONFIG" >&6; } 24984else 24985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24986$as_echo "no" >&6; } 24987fi 24988 24989 if test "x$ac_pt_PKG_CONFIG" = x; then 24990 PKG_CONFIG="" 24991 else 24992 case $cross_compiling:$ac_tool_warned in 24993yes:) 24994{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 24995$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 24996ac_tool_warned=yes ;; 24997esac 24998 PKG_CONFIG=$ac_pt_PKG_CONFIG 24999 fi 25000else 25001 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 25002fi 25003 25004fi 25005if test -n "$PKG_CONFIG"; then 25006 _pkg_min_version=0.9.0 25007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 25008$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 25009 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 25010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25011$as_echo "yes" >&6; } 25012 else 25013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25014$as_echo "no" >&6; } 25015 PKG_CONFIG="" 25016 fi 25017 25018fi 25019 25020pkg_failed=no 25021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QT4" >&5 25022$as_echo_n "checking for QT4... " >&6; } 25023 25024if test -n "$PKG_CONFIG"; then 25025 if test -n "$QT4_CFLAGS"; then 25026 pkg_cv_QT4_CFLAGS="$QT4_CFLAGS" 25027 else 25028 if test -n "$PKG_CONFIG" && \ 25029 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore QtGui QtOpenGL\""; } >&5 25030 ($PKG_CONFIG --exists --print-errors "QtCore QtGui QtOpenGL") 2>&5 25031 ac_status=$? 25032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25033 test $ac_status = 0; }; then 25034 pkg_cv_QT4_CFLAGS=`$PKG_CONFIG --cflags "QtCore QtGui QtOpenGL" 2>/dev/null` 25035else 25036 pkg_failed=yes 25037fi 25038 fi 25039else 25040 pkg_failed=untried 25041fi 25042if test -n "$PKG_CONFIG"; then 25043 if test -n "$QT4_LIBS"; then 25044 pkg_cv_QT4_LIBS="$QT4_LIBS" 25045 else 25046 if test -n "$PKG_CONFIG" && \ 25047 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore QtGui QtOpenGL\""; } >&5 25048 ($PKG_CONFIG --exists --print-errors "QtCore QtGui QtOpenGL") 2>&5 25049 ac_status=$? 25050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25051 test $ac_status = 0; }; then 25052 pkg_cv_QT4_LIBS=`$PKG_CONFIG --libs "QtCore QtGui QtOpenGL" 2>/dev/null` 25053else 25054 pkg_failed=yes 25055fi 25056 fi 25057else 25058 pkg_failed=untried 25059fi 25060 25061 25062 25063if test $pkg_failed = yes; then 25064 25065if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 25066 _pkg_short_errors_supported=yes 25067else 25068 _pkg_short_errors_supported=no 25069fi 25070 if test $_pkg_short_errors_supported = yes; then 25071 QT4_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "QtCore QtGui QtOpenGL"` 25072 else 25073 QT4_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtCore QtGui QtOpenGL"` 25074 fi 25075 # Put the nasty error message in config.log where it belongs 25076 echo "$QT4_PKG_ERRORS" >&5 25077 25078 25079 25080echo >&2 "" 25081 25082 25083: ${sim_ac_message_file=$ac_aux_dir/errors.txt} 25084if test -f $sim_ac_message_file; then 25085 sim_ac_message="`sed -n -e '/^!no-pkgconfig-qt$/,/^!/ { /^!/ d; p; }' <$sim_ac_message_file`" 25086 if test x"$sim_ac_message" = x""; then 25087 as_fn_error "no message named 'no-pkgconfig-qt' in '$sim_ac_message_file' - notify the $PACKAGE_NAME maintainer(s)" "$LINENO" 5 25088 else 25089 eval "echo >&2 \"$sim_ac_message\"" 25090 fi 25091else 25092 as_fn_error "file '$sim_ac_message_file' not found - notify the $PACKAGE_NAME maintainer(s)" "$LINENO" 5 25093fi 25094 25095 25096 25097echo >&2 "" 25098 25099 sim_ac_enable_pkgconfig=false 25100 25101elif test $pkg_failed = untried; then 25102 25103 25104echo >&2 "" 25105 25106 25107: ${sim_ac_message_file=$ac_aux_dir/errors.txt} 25108if test -f $sim_ac_message_file; then 25109 sim_ac_message="`sed -n -e '/^!no-pkgconfig-qt$/,/^!/ { /^!/ d; p; }' <$sim_ac_message_file`" 25110 if test x"$sim_ac_message" = x""; then 25111 as_fn_error "no message named 'no-pkgconfig-qt' in '$sim_ac_message_file' - notify the $PACKAGE_NAME maintainer(s)" "$LINENO" 5 25112 else 25113 eval "echo >&2 \"$sim_ac_message\"" 25114 fi 25115else 25116 as_fn_error "file '$sim_ac_message_file' not found - notify the $PACKAGE_NAME maintainer(s)" "$LINENO" 5 25117fi 25118 25119 25120 25121echo >&2 "" 25122 25123 sim_ac_enable_pkgconfig=false 25124 25125else 25126 QT4_CFLAGS=$pkg_cv_QT4_CFLAGS 25127 QT4_LIBS=$pkg_cv_QT4_LIBS 25128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25129$as_echo "yes" >&6; } 25130 25131 SOGUI_EXTRA_CPPFLAGS="$SOGUI_EXTRA_CPPFLAGS $QT4_CFLAGS" 25132 SOGUI_EXTRA_LIBS="$QT4_LIBS $SOGUI_EXTRA_LIBS" 25133 CPPFLAGS="$CPPFLAGS $QT4_CFLAGS" 25134 LIBS="$QT4_LIBS $LIBS" 25135 25136fi 25137 25138 if $sim_ac_enable_pkgconfig; then 25139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moc" >&5 25140$as_echo_n "checking for moc... " >&6; } 25141 MOC=`$PKG_CONFIG --variable=moc_location QtCore` 25142 if test -z $MOC; then 25143 25144echo >&2 "" 25145 25146 25147: ${sim_ac_message_file=$ac_aux_dir/errors.txt} 25148if test -f $sim_ac_message_file; then 25149 sim_ac_message="`sed -n -e '/^!no-moc$/,/^!/ { /^!/ d; p; }' <$sim_ac_message_file`" 25150 if test x"$sim_ac_message" = x""; then 25151 as_fn_error "no message named 'no-moc' in '$sim_ac_message_file' - notify the $PACKAGE_NAME maintainer(s)" "$LINENO" 5 25152 else 25153 eval "echo >&2 \"$sim_ac_message\"" 25154 fi 25155else 25156 as_fn_error "file '$sim_ac_message_file' not found - notify the $PACKAGE_NAME maintainer(s)" "$LINENO" 5 25157fi 25158 25159 25160 25161echo >&2 "" 25162as_fn_error "aborting" "$LINENO" 5 25163 25164 fi 25165 25166 # Debian provides a wrong moc_location path (Bug#401807) 25167 if test -x $MOC; then 25168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5 25169$as_echo "$MOC" >&6; } 25170 else 25171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: QtCore pkg-config provided moc_location points to non-existing path" >&5 25172$as_echo "QtCore pkg-config provided moc_location points to non-existing path" >&6; } 25173 MOC="" 25174 # Extract the first word of "moc", so it can be a program name with args. 25175set dummy moc; ac_word=$2 25176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25177$as_echo_n "checking for $ac_word... " >&6; } 25178if test "${ac_cv_path_MOC+set}" = set; then : 25179 $as_echo_n "(cached) " >&6 25180else 25181 case $MOC in 25182 [\\/]* | ?:[\\/]*) 25183 ac_cv_path_MOC="$MOC" # Let the user override the test with a path. 25184 ;; 25185 *) 25186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25187for as_dir in $PATH 25188do 25189 IFS=$as_save_IFS 25190 test -z "$as_dir" && as_dir=. 25191 for ac_exec_ext in '' $ac_executable_extensions; do 25192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 25193 ac_cv_path_MOC="$as_dir/$ac_word$ac_exec_ext" 25194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25195 break 2 25196 fi 25197done 25198 done 25199IFS=$as_save_IFS 25200 25201 test -z "$ac_cv_path_MOC" && ac_cv_path_MOC="false" 25202 ;; 25203esac 25204fi 25205MOC=$ac_cv_path_MOC 25206if test -n "$MOC"; then 25207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5 25208$as_echo "$MOC" >&6; } 25209else 25210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25211$as_echo "no" >&6; } 25212fi 25213 25214 25215 if test x"$MOC" = x"false"; then 25216 25217echo >&2 "" 25218 25219 25220: ${sim_ac_message_file=$ac_aux_dir/errors.txt} 25221if test -f $sim_ac_message_file; then 25222 sim_ac_message="`sed -n -e '/^!no-moc$/,/^!/ { /^!/ d; p; }' <$sim_ac_message_file`" 25223 if test x"$sim_ac_message" = x""; then 25224 as_fn_error "no message named 'no-moc' in '$sim_ac_message_file' - notify the $PACKAGE_NAME maintainer(s)" "$LINENO" 5 25225 else 25226 eval "echo >&2 \"$sim_ac_message\"" 25227 fi 25228else 25229 as_fn_error "file '$sim_ac_message_file' not found - notify the $PACKAGE_NAME maintainer(s)" "$LINENO" 5 25230fi 25231 25232 25233 25234echo >&2 "" 25235as_fn_error "aborting" "$LINENO" 5 25236 25237 fi 25238 fi 25239 25240 QT_VERSION=`$PKG_CONFIG --modversion QtCore` 25241 25242 25243 25244cat >>confdefs.h <<_ACEOF 25245#define GUI_TOOLKIT_VERSION qVersion() 25246_ACEOF 25247 25248 fi 25249fi 25250 25251# remove libs we don't want to link into library again 25252#LDFLAGS=$sim_ac_configure_save_ldflags 25253#LIBS=$sim_ac_configure_save_libs 25254# we carry the Coin libs a bit further, since they may include OpenGL which 25255# may be necessary for QGL detection. 20041025 larsa 25256 25257# ************************************************************************** 25258# Check that the Qt installation looks ok and include the 25259# necessary paths and link libraries. 25260 25261if test x"$sim_ac_want_x11" = xyes; then 25262 if test x"$sim_ac_x11mu_avail" != xyes; then 25263 ## It's really QGL that depends on Xmu, not Qt. But we need to do this 25264 ## check before checking for the Qt library, not after, in case QGL is 25265 ## embedded into Qt. 25266 25267 25268sim_ac_x11mu_avail=no 25269sim_ac_x11mu_cppflags="" 25270sim_ac_x11mu_ldflags="" 25271sim_ac_x11mu_libs="-lXmu" 25272 25273sim_ac_save_libs=$LIBS 25274sim_ac_save_cppflags=$CPPFLAGS 25275sim_ac_save_ldflags=$LDFLAGS 25276 25277LIBS="$sim_ac_x11mu_libs $LIBS" 25278 25279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the X11 miscellaneous utilities library is available" >&5 25280$as_echo_n "checking whether the X11 miscellaneous utilities library is available... " >&6; } 25281if test "${sim_cv_lib_x11mu_avail+set}" = set; then : 25282 $as_echo_n "(cached) " >&6 25283else 25284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25285/* end confdefs.h. */ 25286#include <X11/Xlib.h> 25287 #include <X11/Xmu/Xmu.h> 25288 #include <X11/Xmu/StdCmap.h> 25289int 25290main () 25291{ 25292(void)XmuAllStandardColormaps(0L); 25293 ; 25294 return 0; 25295} 25296_ACEOF 25297if ac_fn_cxx_try_link "$LINENO"; then : 25298 sim_cv_lib_x11mu_avail=yes 25299else 25300 sim_cv_lib_x11mu_avail=maybe 25301fi 25302rm -f core conftest.err conftest.$ac_objext \ 25303 conftest$ac_exeext conftest.$ac_ext 25304fi 25305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_lib_x11mu_avail" >&5 25306$as_echo "$sim_cv_lib_x11mu_avail" >&6; } 25307 25308if test x"$sim_cv_lib_x11mu_avail" = xyes; then 25309 sim_ac_x11mu_avail=yes 25310else 25311 # On HP-UX, Xmu might be located under /usr/contrib/X11R6/ 25312 mudir=/usr/contrib/X11R6 25313 if test -d $mudir; then 25314 sim_ac_x11mu_cppflags="-I$mudir/include" 25315 sim_ac_x11mu_ldflags="-L$mudir/lib" 25316 CPPFLAGS="$sim_ac_x11mu_cppflags $CPPFLAGS" 25317 LDFLAGS="$sim_ac_x11mu_ldflags $LDFLAGS" 25318 25319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking once more whether the X11 miscellaneous utilities library is available" >&5 25320$as_echo_n "checking once more whether the X11 miscellaneous utilities library is available... " >&6; } 25321if test "${sim_cv_lib_x11mu_contrib_avail+set}" = set; then : 25322 $as_echo_n "(cached) " >&6 25323else 25324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25325/* end confdefs.h. */ 25326#include <X11/Xlib.h> 25327 #include <X11/Xmu/Xmu.h> 25328 #include <X11/Xmu/StdCmap.h> 25329int 25330main () 25331{ 25332(void)XmuAllStandardColormaps(0L); 25333 ; 25334 return 0; 25335} 25336_ACEOF 25337if ac_fn_cxx_try_link "$LINENO"; then : 25338 sim_cv_lib_x11mu_contrib_avail=yes 25339else 25340 sim_cv_lib_x11mu_contrib_avail=no 25341fi 25342rm -f core conftest.err conftest.$ac_objext \ 25343 conftest$ac_exeext conftest.$ac_ext 25344fi 25345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_lib_x11mu_contrib_avail" >&5 25346$as_echo "$sim_cv_lib_x11mu_contrib_avail" >&6; } 25347 if test x"$sim_cv_lib_x11mu_contrib_avail" = xyes; then 25348 sim_ac_x11mu_avail=yes 25349 else 25350 sim_ac_x11mu_cppflags="" 25351 sim_ac_x11mu_ldflags="" 25352 fi 25353 fi 25354fi 25355 25356if test x"$sim_ac_x11mu_avail" = xyes; then 25357 : 25358 SOGUI_EXTRA_LIBS="$sim_ac_x11mu_libs $SOGUI_EXTRA_LIBS" 25359else 25360 LIBS=$sim_ac_save_libs 25361 CPPFLAGS=$sim_ac_save_cppflags 25362 LDFLAGS=$sim_ac_save_ldflags 25363 25364fi 25365 25366 fi 25367fi 25368 25369if test x"$sim_ac_enable_pkgconfig" = xfalse; then 25370 25371sim_ac_qtdir= 25372 25373# Check whether --with-qt was given. 25374if test "${with_qt+set}" = set; then : 25375 withval=$with_qt; case $withval in 25376 no | false ) sim_ac_with_qt=false ;; 25377 yes | true ) sim_ac_with_qt=true ;; 25378 *) 25379 sim_ac_with_qt=true 25380 sim_ac_qtdir=$withval 25381 ;; 25382 esac 25383else 25384 sim_ac_with_qt=true 25385fi 25386 25387 25388if $sim_ac_with_qt; then 25389 # The Cygwin environment needs to invoke moc with a POSIX-style path. 25390 # Extract the first word of "cygpath", so it can be a program name with args. 25391set dummy cygpath; ac_word=$2 25392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25393$as_echo_n "checking for $ac_word... " >&6; } 25394if test "${ac_cv_path_sim_ac_qt_cygpath+set}" = set; then : 25395 $as_echo_n "(cached) " >&6 25396else 25397 case $sim_ac_qt_cygpath in 25398 [\\/]* | ?:[\\/]*) 25399 ac_cv_path_sim_ac_qt_cygpath="$sim_ac_qt_cygpath" # Let the user override the test with a path. 25400 ;; 25401 *) 25402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25403for as_dir in $PATH 25404do 25405 IFS=$as_save_IFS 25406 test -z "$as_dir" && as_dir=. 25407 for ac_exec_ext in '' $ac_executable_extensions; do 25408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 25409 ac_cv_path_sim_ac_qt_cygpath="$as_dir/$ac_word$ac_exec_ext" 25410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25411 break 2 25412 fi 25413done 25414 done 25415IFS=$as_save_IFS 25416 25417 test -z "$ac_cv_path_sim_ac_qt_cygpath" && ac_cv_path_sim_ac_qt_cygpath="false" 25418 ;; 25419esac 25420fi 25421sim_ac_qt_cygpath=$ac_cv_path_sim_ac_qt_cygpath 25422if test -n "$sim_ac_qt_cygpath"; then 25423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_qt_cygpath" >&5 25424$as_echo "$sim_ac_qt_cygpath" >&6; } 25425else 25426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25427$as_echo "no" >&6; } 25428fi 25429 25430 25431 25432 if test -n "$sim_ac_qtdir"; then 25433 if test $sim_ac_qt_cygpath != "false"; then 25434 # Quote $sim_ac_qtdir in case it contains whitespace characters. 25435 sim_ac_qtdir=`$sim_ac_qt_cygpath -u "$sim_ac_qtdir"` 25436 fi 25437 else 25438 if test $sim_ac_qt_cygpath = "false"; then 25439 sim_ac_qtdir=$QTDIR 25440 else 25441 # Quote $QTDIR in case it's empty. 25442 sim_ac_qtdir=`$sim_ac_qt_cygpath -u "$QTDIR"` 25443 fi 25444 25445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of the QTDIR environment variable" >&5 25446$as_echo_n "checking value of the QTDIR environment variable... " >&6; } 25447 if test x"$sim_ac_qtdir" = x""; then 25448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: empty" >&5 25449$as_echo "empty" >&6; } 25450 else 25451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_qtdir" >&5 25452$as_echo "$sim_ac_qtdir" >&6; } 25453 25454 # list contents of what's in the qt dev environment into config.log 25455 for i in "" bin lib; do 25456 echo "Listing contents of $sim_ac_qtdir/$i:" >&5 25457 ls -l $sim_ac_qtdir/$i >&5 2>&1 25458 done 25459 fi 25460 fi 25461fi 25462 25463 25464 25465 25466if $sim_ac_with_qt; then 25467 25468 sim_ac_path=$PATH 25469 if test -n "$sim_ac_qtdir"; then 25470 sim_ac_path=$sim_ac_qtdir/bin:$PATH 25471 fi 25472 25473 # Extract the first word of "moc", so it can be a program name with args. 25474set dummy moc; ac_word=$2 25475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25476$as_echo_n "checking for $ac_word... " >&6; } 25477if test "${ac_cv_path_MOC+set}" = set; then : 25478 $as_echo_n "(cached) " >&6 25479else 25480 case $MOC in 25481 [\\/]* | ?:[\\/]*) 25482 ac_cv_path_MOC="$MOC" # Let the user override the test with a path. 25483 ;; 25484 *) 25485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25486for as_dir in $sim_ac_path 25487do 25488 IFS=$as_save_IFS 25489 test -z "$as_dir" && as_dir=. 25490 for ac_exec_ext in '' $ac_executable_extensions; do 25491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 25492 ac_cv_path_MOC="$as_dir/$ac_word$ac_exec_ext" 25493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25494 break 2 25495 fi 25496done 25497 done 25498IFS=$as_save_IFS 25499 25500 test -z "$ac_cv_path_MOC" && ac_cv_path_MOC="false" 25501 ;; 25502esac 25503fi 25504MOC=$ac_cv_path_MOC 25505if test -n "$MOC"; then 25506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5 25507$as_echo "$MOC" >&6; } 25508else 25509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25510$as_echo "no" >&6; } 25511fi 25512 25513 25514 if test x"$MOC" = x"false"; then 25515 if test -z "$QTDIR"; then 25516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: QTDIR environment variable not set -- this might be an indication of a problem" >&5 25517$as_echo "$as_me: WARNING: QTDIR environment variable not set -- this might be an indication of a problem" >&2;} 25518 fi 25519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the \`\`moc'' Qt pre-processor tool not found" >&5 25520$as_echo "$as_me: WARNING: the \`\`moc'' Qt pre-processor tool not found" >&2;} 25521 fi 25522else 25523 MOC=false 25524 25525fi 25526 25527 if test x"$MOC" = x"false"; then 25528 25529echo >&2 "" 25530 25531 25532: ${sim_ac_message_file=$ac_aux_dir/errors.txt} 25533if test -f $sim_ac_message_file; then 25534 sim_ac_message="`sed -n -e '/^!no-moc$/,/^!/ { /^!/ d; p; }' <$sim_ac_message_file`" 25535 if test x"$sim_ac_message" = x""; then 25536 as_fn_error "no message named 'no-moc' in '$sim_ac_message_file' - notify the $PACKAGE_NAME maintainer(s)" "$LINENO" 5 25537 else 25538 eval "echo >&2 \"$sim_ac_message\"" 25539 fi 25540else 25541 as_fn_error "file '$sim_ac_message_file' not found - notify the $PACKAGE_NAME maintainer(s)" "$LINENO" 5 25542fi 25543 25544 25545 25546echo >&2 "" 25547as_fn_error "aborting" "$LINENO" 5 25548 25549 fi 25550fi 25551 25552# see commented-out restore above 25553#sim_ac_configure_save_ldflags=$LDFLAGS 25554#sim_ac_configure_save_libs=$LIBS 25555 25556if $sim_ac_build_library && test x"$sim_ac_enable_pkgconfig" = xfalse; then 25557 25558 25559 25560 25561# Check whether --enable-qt-debug was given. 25562if test "${enable_qt_debug+set}" = set; then : 25563 enableval=$enable_qt_debug; case $enableval in 25564 yes | true ) sim_ac_qt_debug=true ;; 25565 *) sim_ac_qt_debug=false ;; 25566 esac 25567else 25568 sim_ac_qt_debug=false 25569fi 25570 25571 25572sim_ac_qt_avail=no 25573 25574if $sim_ac_with_qt; then 25575 25576 sim_ac_save_cppflags=$CPPFLAGS 25577 sim_ac_save_ldflags=$LDFLAGS 25578 sim_ac_save_libs=$LIBS 25579 25580 sim_ac_qt_libs=UNRESOLVED 25581 25582 # Check for Mac OS framework installation 25583 if test -z "$QTDIR"; then 25584 sim_ac_qt_framework_dir=/Library/Frameworks 25585 # FIXME: Should we also look for the Qt framework in other 25586 # default framework locations (such as ~/Library/Frameworks)? 25587 # Or require the user to specify this explicitly, e.g. by 25588 # passing --with-qt-framework=xxx? 20050802 kyrah. 25589 else 25590 sim_ac_qt_framework_dir=$sim_ac_qtdir/lib 25591 fi 25592 25593 25594case $host_os in 25595 darwin*) 25596 # First check if framework exists in the specified location, then 25597 # try to actually link against the framework. This precaution is 25598 # needed to catch the case where Qt-4 is installed in the default 25599 # location /Library/Frameworks, but the user wants to override it 25600 # by setting QTDIR to point to a non-framework install. 25601 if test -d $sim_ac_qt_framework_dir/QtCore.framework; then 25602 sim_ac_save_ldflags_fw=$LDFLAGS 25603 LDFLAGS="$LDFLAGS -F$sim_ac_qt_framework_dir -framework QtCore" 25604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Qt is installed as a framework" >&5 25605$as_echo_n "checking whether Qt is installed as a framework... " >&6; } 25606if test "${sim_cv_have_qt_framework+set}" = set; then : 25607 $as_echo_n "(cached) " >&6 25608else 25609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25610/* end confdefs.h. */ 25611#include <QtCore/qglobal.h> 25612int 25613main () 25614{ 25615 25616 ; 25617 return 0; 25618} 25619_ACEOF 25620if ac_fn_cxx_try_link "$LINENO"; then : 25621 sim_cv_have_qt_framework=true 25622else 25623 sim_cv_have_qt_framework=false 25624fi 25625rm -f core conftest.err conftest.$ac_objext \ 25626 conftest$ac_exeext conftest.$ac_ext 25627 25628fi 25629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_have_qt_framework" >&5 25630$as_echo "$sim_cv_have_qt_framework" >&6; } 25631 LDFLAGS=$sim_ac_save_ldflags_fw 25632 else 25633 sim_cv_have_qt_framework=false 25634 fi 25635 ;; 25636 *) 25637 sim_cv_have_qt_framework=false 25638 ;; 25639esac 25640 25641 25642 if $sim_cv_have_qt_framework; then 25643 sim_ac_qt_cppflags="-I$sim_ac_qt_framework_dir/QtCore.framework/Headers -I$sim_ac_qt_framework_dir/QtOpenGL.framework/Headers -I$sim_ac_qt_framework_dir/QtGui.framework/Headers -F$sim_ac_qt_framework_dir" 25644 sim_ac_qt_libs="-Wl,-F$sim_ac_qt_framework_dir -Wl,-framework,QtGui -Wl,-framework,QtOpenGL -Wl,-framework,QtCore -Wl,-framework,QtXml -Wl,-framework,QtNetwork -Wl,-framework,QtSql" 25645 else 25646 25647 sim_ac_qglobal_unresolved=true 25648 25649 sim_ac_QTDIR_cppflags= 25650 sim_ac_QTDIR_ldflags= 25651 if test -n "$sim_ac_qtdir"; then 25652 sim_ac_QTDIR_cppflags="-I$sim_ac_qtdir/include" 25653 sim_ac_QTDIR_ldflags="-L$sim_ac_qtdir/lib" 25654 CPPFLAGS="$sim_ac_QTDIR_cppflags $CPPFLAGS" 25655 LDFLAGS="$LDFLAGS $sim_ac_QTDIR_ldflags" 25656 fi 25657 25658 # This should take care of detecting qglobal.h for Qt 3 if QTDIR was set, 25659 # or if Qt is in default locations, or if it is in any additional "-I..." 25660 # set up by the user with CPPFLAGS: 25661 sim_ac_temp="$CPPFLAGS" 25662 25663cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25664/* end confdefs.h. */ 25665#include <qglobal.h> 25666_ACEOF 25667if ac_fn_cxx_try_cpp "$LINENO"; then : 25668 ac_cv_header_qglobal_h=yes 25669else 25670 ac_cv_header_qglobal_h=no 25671fi 25672rm -f conftest.err conftest.$ac_ext 25673if test $ac_cv_header_qglobal_h = yes; then : 25674 sim_ac_qglobal_unresolved=false 25675fi 25676 25677 25678 25679 # If we're to use Qt 4 and QTDIR is set, this should be able to find it: 25680 if $sim_ac_qglobal_unresolved; then 25681 25682cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25683/* end confdefs.h. */ 25684#include <Qt/qglobal.h> 25685_ACEOF 25686if ac_fn_cxx_try_cpp "$LINENO"; then : 25687 ac_cv_header_Qt_qglobal_h=yes 25688else 25689 ac_cv_header_Qt_qglobal_h=no 25690fi 25691rm -f conftest.err conftest.$ac_ext 25692if test $ac_cv_header_Qt_qglobal_h = yes; then : 25693 sim_ac_qglobal_unresolved=false 25694fi 25695 25696 25697 if $sim_ac_qglobal_unresolved; then 25698 : 25699 else 25700 if test -z "$sim_ac_QTDIR_cppflags"; then 25701 as_fn_error "Qt/qglobal.h detected, but no QTDIR environment variable set. Do not know where the Qt include files are." "$LINENO" 5 25702 else 25703 sim_ac_QTDIR_cppflags="$sim_ac_QTDIR_cppflags $sim_ac_QTDIR_cppflags/Qt" 25704 fi 25705 fi 25706 fi 25707 CPPFLAGS="$sim_ac_temp" 25708 25709 # Check for known default locations of Qt installation on various 25710 # systems: 25711 if $sim_ac_qglobal_unresolved; then 25712 sim_ac_temp="$CPPFLAGS" 25713 # /usr/include/qt: Debian-installations with Qt 3 25714 # /usr/include/qt4: Debian-installations with Qt 4 25715 # /sw/include/qt: Mac OS X Fink 25716 for i in "/usr/include/qt" "/usr/include/qt4" "/sw/include/qt"; do 25717 if $sim_ac_qglobal_unresolved; then 25718 CPPFLAGS="-I$i $sim_ac_temp" 25719 25720cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25721/* end confdefs.h. */ 25722#include <qglobal.h> 25723_ACEOF 25724if ac_fn_cxx_try_cpp "$LINENO"; then : 25725 ac_cv_header_qglobal_h=yes 25726else 25727 ac_cv_header_qglobal_h=no 25728fi 25729rm -f conftest.err conftest.$ac_ext 25730if test $ac_cv_header_qglobal_h = yes; then : 25731 sim_ac_qglobal_unresolved=false 25732 sim_ac_QTDIR_cppflags="-I$i" 25733 25734fi 25735 25736 25737 if $sim_ac_qglobal_unresolved; then 25738 25739cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25740/* end confdefs.h. */ 25741#include <Qt/qglobal.h> 25742_ACEOF 25743if ac_fn_cxx_try_cpp "$LINENO"; then : 25744 ac_cv_header_Qt_qglobal_h=yes 25745else 25746 ac_cv_header_Qt_qglobal_h=no 25747fi 25748rm -f conftest.err conftest.$ac_ext 25749if test $ac_cv_header_Qt_qglobal_h = yes; then : 25750 sim_ac_qglobal_unresolved=false 25751 sim_ac_QTDIR_cppflags="-I$i -I$i/Qt" 25752 25753fi 25754 25755 25756 fi 25757 fi 25758 done 25759 CPPFLAGS="$sim_ac_temp" 25760 fi 25761 25762 # Mac OS X Darwin ports 25763 if $sim_ac_qglobal_unresolved; then 25764 sim_ac_temp="$CPPFLAGS" 25765 sim_ac_i="-I/opt/local/include/qt3" 25766 CPPFLAGS="$sim_ac_i $CPPFLAGS" 25767 25768cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25769/* end confdefs.h. */ 25770#include <qglobal.h> 25771_ACEOF 25772if ac_fn_cxx_try_cpp "$LINENO"; then : 25773 ac_cv_header_qglobal_h=yes 25774else 25775 ac_cv_header_qglobal_h=no 25776fi 25777rm -f conftest.err conftest.$ac_ext 25778if test $ac_cv_header_qglobal_h = yes; then : 25779 sim_ac_qglobal_unresolved=false 25780 sim_ac_QTDIR_cppflags="$sim_ac_i" 25781 sim_ac_QTDIR_ldflags="-L/opt/local/lib" 25782 25783fi 25784 25785 25786 CPPFLAGS="$sim_ac_temp" 25787 fi 25788 25789 if $sim_ac_qglobal_unresolved; then 25790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: header file qglobal.h not found, can not compile Qt code" >&5 25791$as_echo "$as_me: WARNING: header file qglobal.h not found, can not compile Qt code" >&2;} 25792 else 25793 CPPFLAGS="$sim_ac_QTDIR_cppflags $CPPFLAGS" 25794 LDFLAGS="$LDFLAGS $sim_ac_QTDIR_ldflags" 25795 25796 25797 25798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking version of Qt library" >&5 25799$as_echo_n "checking version of Qt library... " >&6; } 25800 25801cat > conftest.c << EOF 25802#include <qglobal.h> 25803int VerQt = QT_VERSION; 25804EOF 25805 25806# The " *"-parts of the last sed-expression on the next line are necessary 25807# because at least the Solaris/CC preprocessor adds extra spaces before and 25808# after the trailing semicolon. 25809sim_ac_qt_version=`$CXXCPP $CPPFLAGS conftest.c 2>/dev/null | grep '^int VerQt' | sed 's%^int VerQt = %%' | sed 's% *;.*$%%'` 25810 25811case $sim_ac_qt_version in 258120x* ) 25813 sim_ac_qt_version=`echo $sim_ac_qt_version | sed -e 's/^0x.\(.\).\(.\).\(.\)/\1\2\3/;'` 25814 ;; 25815* ) 25816 # nada 25817 ;; 25818esac 25819sim_ac_qt_major_version=`echo $sim_ac_qt_version | cut -c1` 25820 25821rm -f conftest.c 25822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_qt_version" >&5 25823$as_echo "$sim_ac_qt_version" >&6; } 25824 25825 25826 if test $sim_ac_qt_version -lt 200; then 25827 25828echo >&2 "" 25829 25830 25831: ${sim_ac_message_file=$ac_aux_dir/errors.txt} 25832if test -f $sim_ac_message_file; then 25833 sim_ac_message="`sed -n -e '/^!too-old-qt$/,/^!/ { /^!/ d; p; }' <$sim_ac_message_file`" 25834 if test x"$sim_ac_message" = x""; then 25835 as_fn_error "no message named 'too-old-qt' in '$sim_ac_message_file' - notify the $PACKAGE_NAME maintainer(s)" "$LINENO" 5 25836 else 25837 eval "echo >&2 \"$sim_ac_message\"" 25838 fi 25839else 25840 as_fn_error "file '$sim_ac_message_file' not found - notify the $PACKAGE_NAME maintainer(s)" "$LINENO" 5 25841fi 25842 25843 25844 25845echo >&2 "" 25846as_fn_error "aborting" "$LINENO" 5 25847 25848 fi 25849 25850 # Too hard to feature-check for the Qt-on-Mac problems, as they involve 25851 # obscure behavior of the QGLWidget -- so we just resort to do platform 25852 # and version checking instead. 25853 case $host_os in 25854 darwin*) 25855 if test $sim_ac_qt_version -lt 302; then 25856 25857if test x"${sim_ac_configuration_warnings+set}" = x"set"; then 25858 sim_ac_configuration_warnings="$sim_ac_configuration_warnings|The version of Qt you are using is known to contain some serious bugs on MacOS X. We strongly recommend you to upgrade. (See $srcdir/README.MAC for details.)" 25859else 25860 sim_ac_configuration_warnings="The version of Qt you are using is known to contain some serious bugs on MacOS X. We strongly recommend you to upgrade. (See $srcdir/README.MAC for details.)" 25861fi 25862 25863 fi 25864 25865 if $sim_ac_enable_darwin_x11; then 25866 # --enable-darwin-x11 specified but attempting Qt/Mac linkage 25867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25868/* end confdefs.h. */ 25869#include <qapplication.h> 25870int 25871main () 25872{ 25873#if defined(__APPLE__) && defined(Q_OS_MAC) 25874 #error blah! 25875 #endif 25876 ; 25877 return 0; 25878} 25879_ACEOF 25880if ac_fn_cxx_try_compile "$LINENO"; then : 25881 25882else 25883 25884echo >&2 "" 25885 25886 25887: ${sim_ac_message_file=$ac_aux_dir/errors.txt} 25888if test -f $sim_ac_message_file; then 25889 sim_ac_message="`sed -n -e '/^!mac-qt-but-x11-requested$/,/^!/ { /^!/ d; p; }' <$sim_ac_message_file`" 25890 if test x"$sim_ac_message" = x""; then 25891 as_fn_error "no message named 'mac-qt-but-x11-requested' in '$sim_ac_message_file' - notify the $PACKAGE_NAME maintainer(s)" "$LINENO" 5 25892 else 25893 eval "echo >&2 \"$sim_ac_message\"" 25894 fi 25895else 25896 as_fn_error "file '$sim_ac_message_file' not found - notify the $PACKAGE_NAME maintainer(s)" "$LINENO" 5 25897fi 25898 25899 25900 25901echo >&2 "" 25902as_fn_error "aborting" "$LINENO" 5 25903 25904fi 25905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25906 else 25907 # Using Qt/X11 but option --enable-darwin-x11 not given 25908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25909/* end confdefs.h. */ 25910#include <qapplication.h> 25911int 25912main () 25913{ 25914#if defined(__APPLE__) && defined(Q_WS_X11) 25915 #error blah! 25916 #endif 25917 ; 25918 return 0; 25919} 25920_ACEOF 25921if ac_fn_cxx_try_compile "$LINENO"; then : 25922 25923else 25924 25925echo >&2 "" 25926 25927 25928: ${sim_ac_message_file=$ac_aux_dir/errors.txt} 25929if test -f $sim_ac_message_file; then 25930 sim_ac_message="`sed -n -e '/^!x11-qt-but-no-x11-requested$/,/^!/ { /^!/ d; p; }' <$sim_ac_message_file`" 25931 if test x"$sim_ac_message" = x""; then 25932 as_fn_error "no message named 'x11-qt-but-no-x11-requested' in '$sim_ac_message_file' - notify the $PACKAGE_NAME maintainer(s)" "$LINENO" 5 25933 else 25934 eval "echo >&2 \"$sim_ac_message\"" 25935 fi 25936else 25937 as_fn_error "file '$sim_ac_message_file' not found - notify the $PACKAGE_NAME maintainer(s)" "$LINENO" 5 25938fi 25939 25940 25941 25942echo >&2 "" 25943as_fn_error "aborting" "$LINENO" 5 25944 25945fi 25946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25947 fi 25948 ;; 25949 esac 25950 25951 # Known problems: 25952 # 25953 # * Qt v3.0.1 has a bug where SHIFT-PRESS + CTRL-PRESS + CTRL-RELEASE 25954 # results in the last key-event coming out completely wrong under X11. 25955 # Known to be fixed in 3.0.3, unknown status in 3.0.2. <mortene@sim.no>. 25956 # 25957 if test $sim_ac_qt_version -lt 303; then 25958 25959if test x"${sim_ac_configuration_warnings+set}" = x"set"; then 25960 sim_ac_configuration_warnings="$sim_ac_configuration_warnings|The version of Qt you are compiling against is known to contain bugs which influences functionality in SoQt. We strongly recommend you to upgrade." 25961else 25962 sim_ac_configuration_warnings="The version of Qt you are compiling against is known to contain bugs which influences functionality in SoQt. We strongly recommend you to upgrade." 25963fi 25964 25965 fi 25966 25967 sim_ac_qt_cppflags= 25968 25969 # Do not cache the result, as we might need to play tricks with 25970 # CPPFLAGS under MSWin. 25971 25972 # It should be helpful to be able to override the libs-checking with 25973 # environment variables. Then people won't get completely stuck 25974 # when the check fails -- we can just take a look at the 25975 # config.log and give them advice on how to proceed with no updates 25976 # necessary. 25977 # 25978 # (Note also that this makes it possible to select whether to use the 25979 # mt-safe or the "standard" Qt library if both are installed on the 25980 # user's system.) 25981 # 25982 # mortene. 25983 25984 if test x"$CONFIG_QTLIBS" != x""; then 25985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt linking with $CONFIG_QTLIBS" >&5 25986$as_echo_n "checking for Qt linking with $CONFIG_QTLIBS... " >&6; } 25987 25988 for sim_ac_qt_cppflags_loop in "" "-DQT_DLL"; do 25989 CPPFLAGS="$sim_ac_QTDIR_cppflags $sim_ac_qt_cppflags_loop $sim_ac_save_cppflags" 25990 LIBS="$CONFIG_QTLIBS $sim_ac_save_libs" 25991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25992/* end confdefs.h. */ 25993#include <qapplication.h> 25994int 25995main () 25996{ 25997 25998 // FIXME: assignment to qApp does no longer work with Qt 4, 25999 // should try to find another way to do the same thing. 20050629 mortene. 26000 #if QT_VERSION < 0x040000 26001 qApp = NULL; /* QT_DLL must be defined for assignment to global variables to work */ 26002 #endif 26003 qApp->exit(0); 26004 ; 26005 return 0; 26006} 26007_ACEOF 26008if ac_fn_cxx_try_link "$LINENO"; then : 26009 sim_ac_qt_libs="$CONFIG_QTLIBS" 26010 sim_ac_qt_cppflags="$sim_ac_QTDIR_cppflags $sim_ac_qt_cppflags_loop" 26011 sim_ac_qt_ldflags="$sim_ac_QTDIR_ldflags" 26012 26013fi 26014rm -f core conftest.err conftest.$ac_objext \ 26015 conftest$ac_exeext conftest.$ac_ext 26016 done 26017 26018 if test "x$sim_ac_qt_libs" = "xUNRESOLVED"; then 26019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed!" >&5 26020$as_echo "failed!" >&6; } 26021 else 26022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26023$as_echo "ok" >&6; } 26024 fi 26025 26026 else 26027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Qt library devkit" >&5 26028$as_echo_n "checking for Qt library devkit... " >&6; } 26029 26030 ## Test all known possible combinations of linking against the 26031 ## Troll Tech Qt library: 26032 ## 26033 ## * "-lQtGui": Qt 4 on UNIX-like systems 26034 ## 26035 ## * "-lQtGui -lQtCore -luser32 -lole32 -limm32 -lcomdlg32 -lgdi32 -lwinspool -lwinmm -ladvapi32 -lws2_32 -lshell32" 26036 ## Should cover static linking against Qt4 on win32 26037 ## 26038 ## * "-lqt-gl": links against the standard Debian version of the 26039 ## Qt library with embedded QGL 26040 ## 26041 ## * "-lqt": should work for most UNIX(-derived) platforms on 26042 ## dynamic and static linking with the non-mtsafe library 26043 ## 26044 ## * "-lqt-mt": should work for most UNIX(-derived) platforms on 26045 ## dynamic and static linking with the mtsafe library 26046 ## 26047 ## * "-lqt{version} -lqtmain -lgdi32": w/QT_DLL defined should 26048 ## cover dynamic Enterprise Edition linking on Win32 platforms 26049 ## 26050 ## * "-lqt -lqtmain -lgdi32": ...unless the {version} suffix is missing, 26051 ## which we've had reports about 26052 ## 26053 ## * "-lqt-mt{version} -lqtmain -lgdi32": w/QT_DLL defined should 26054 ## cover dynamic multi-thread Enterprise Edition linking on Win32 26055 ## platforms 26056 ## 26057 ## * "-lqt-mt{version}nc -lqtmain -lgdi32": w/QT_DLL defined should 26058 ## cover dynamic Non-Commercial Edition linking on Win32 platforms 26059 ## 26060 ## * "-lqt -luser32 -lole32 -limm32 -lcomdlg32 -lgdi32": should cover 26061 ## static linking on Win32 platforms 26062 ## 26063 ## * "-lqt-mt -luser32 -lole32 -limm32 -lcomdlg32 -lgdi32 -lwinspool -lwinmm -ladvapi32 -lws2_32": 26064 ## added for the benefit of the Qt 3.0.0 Evaluation Version 26065 ## (update: "advapi32.lib" seems to be a new dependency for Qt 3.1.0) 26066 ## (update: "ws2_32.lib" seems to be a new dependency for Qt 3.1.2) 26067 ## 26068 ## * "-lqt-mt-eval": the Qt/Mac evaluation version 26069 ## 26070 ## * "-lqt-mtnc{version}": the non-commercial Qt version that 26071 ## comes on the CD with the book "C++ Gui Programming with Qt 3" 26072 ## (version==321 there) 26073 26074 ## FIXME: could probably improve check to not have to go through 26075 ## all of the above. See bug item #028 in SoQt/BUGS.txt. 26076 ## 20040805 mortene. 26077 26078 sim_ac_qt_suffix= 26079 if $sim_ac_qt_debug; then 26080 sim_ac_qt_suffix=d 26081 fi 26082 26083 # Note that we need to always check for -lqt-mt before -lqt, because 26084 # at least the most recent Debian platforms (as of 2003-02-20) comes 26085 # with a -lqt which is missing QGL support, while it also has a 26086 # -lqt-mt *with* QGL support. The reason for this is because the 26087 # default GL (Mesa) library on Debian is built in mt-safe mode, 26088 # so a non-mt-safe Qt can't use it. 26089 26090 for sim_ac_qt_cppflags_loop in "" "-DQT_DLL"; do 26091 for sim_ac_qt_libcheck in \ 26092 "-lQtGui${sim_ac_qt_suffix}${sim_ac_qt_major_version} -lQtCore${sim_ac_qt_suffix}${sim_ac_qt_major_version}" \ 26093 "-lQtGui -lQtCore" \ 26094 "-lQtGui${sim_ac_qt_suffix} -lQtCore${sim_ac_qt_suffix} -luser32 -lole32 -limm32 -lcomdlg32 -lgdi32 -lwinspool -lwinmm -ladvapi32 -lws2_32 -lshell32" \ 26095 "-lqt-gl" \ 26096 "-lqt-mt" \ 26097 "-lqt" \ 26098 "-lqt-mt -luser32 -lole32 -limm32 -lcomdlg32 -lgdi32 -lwinspool -lwinmm -ladvapi32 -lws2_32" \ 26099 "-lqt-mt${sim_ac_qt_version}${sim_ac_qt_suffix} -lqtmain -lgdi32" \ 26100 "-lqt-mt${sim_ac_qt_version}nc${sim_ac_qt_suffix} -lqtmain -lgdi32" \ 26101 "-lqt-mtedu${sim_ac_qt_version}${sim_ac_qt_suffix} -lqtmain -lgdi32" \ 26102 "-lqt -lqtmain -lgdi32" \ 26103 "-lqt${sim_ac_qt_version}${sim_ac_qt_suffix} -lqtmain -lgdi32" \ 26104 "-lqt -luser32 -lole32 -limm32 -lcomdlg32 -lgdi32" \ 26105 "-lqt-mt-eval" \ 26106 "-lqt-mteval${sim_ac_qt_version}" \ 26107 "-lqt-mtnc${sim_ac_qt_version}" 26108 do 26109 if test "x$sim_ac_qt_libs" = "xUNRESOLVED"; then 26110 CPPFLAGS="$sim_ac_QTDIR_cppflags $sim_ac_qt_cppflags_loop $sim_ac_save_cppflags" 26111 LIBS="$sim_ac_qt_libcheck $sim_ac_save_libs" 26112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26113/* end confdefs.h. */ 26114#include <qapplication.h> 26115int 26116main () 26117{ 26118 26119 // FIXME: assignment to qApp does no longer work with Qt 4, 26120 // should try to find another way to do the same thing. 20050629 mortene. 26121 #if QT_VERSION < 0x040000 26122 qApp = NULL; /* QT_DLL must be defined for assignment to global variables to work */ 26123 #endif 26124 qApp->exit(0); 26125 ; 26126 return 0; 26127} 26128_ACEOF 26129if ac_fn_cxx_try_link "$LINENO"; then : 26130 sim_ac_qt_libs="$sim_ac_qt_libcheck" 26131 sim_ac_qt_cppflags="$sim_ac_QTDIR_cppflags $sim_ac_qt_cppflags_loop" 26132 sim_ac_qt_ldflags="$sim_ac_QTDIR_ldflags" 26133 26134fi 26135rm -f core conftest.err conftest.$ac_objext \ 26136 conftest$ac_exeext conftest.$ac_ext 26137 fi 26138 done 26139 done 26140 26141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_qt_cppflags $sim_ac_QTDIR_ldflags $sim_ac_qt_libs" >&5 26142$as_echo "$sim_ac_qt_cppflags $sim_ac_QTDIR_ldflags $sim_ac_qt_libs" >&6; } 26143 fi 26144 26145 fi # sim_ac_qglobal_unresolved = false 26146 26147 fi # sim_cv_have_qt_framework 26148 26149 # We should only *test* availability, not mutate the LIBS/CPPFLAGS 26150 # variables ourselves inside this macro. 20041021 larsa 26151 CPPFLAGS=$sim_ac_save_cppflags 26152 LDFLAGS=$sim_ac_save_ldflags 26153 LIBS=$sim_ac_save_libs 26154 if test ! x"$sim_ac_qt_libs" = xUNRESOLVED; then 26155 sim_ac_qt_avail=yes 26156 26157 SOGUI_EXTRA_CPPFLAGS="$SOGUI_EXTRA_CPPFLAGS $sim_ac_qt_cppflags" 26158 SOGUI_EXTRA_LDFLAGS="$SOGUI_EXTRA_LDFLAGS $sim_ac_qt_ldflags" 26159 SOGUI_EXTRA_LIBS="$sim_ac_qt_libs $SOGUI_EXTRA_LIBS" 26160 CPPFLAGS="$CPPFLAGS $sim_ac_qt_cppflags" 26161 LDFLAGS="$LDFLAGS $sim_ac_qt_ldflags" 26162 LIBS="$sim_ac_qt_libs $LIBS" 26163 26164 26165 sim_ac_qt_install=`cd $sim_ac_qtdir; pwd`/bin/install 26166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Qt's install tool shadows the system install" >&5 26167$as_echo_n "checking whether Qt's install tool shadows the system install... " >&6; } 26168 case $INSTALL in 26169 "${sim_ac_qt_install}"* ) 26170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26171$as_echo "yes" >&6; } 26172 echo "\$INSTALL is '$INSTALL', which matches '$QTDIR/bin/install*'." >&5 26173 echo "\$QTDIR part is '$QTDIR'." >&5 26174 26175echo >&2 "" 26176 26177 26178: ${sim_ac_message_file=$ac_aux_dir/errors.txt} 26179if test -f $sim_ac_message_file; then 26180 sim_ac_message="`sed -n -e '/^!qt-install$/,/^!/ { /^!/ d; p; }' <$sim_ac_message_file`" 26181 if test x"$sim_ac_message" = x""; then 26182 as_fn_error "no message named 'qt-install' in '$sim_ac_message_file' - notify the $PACKAGE_NAME maintainer(s)" "$LINENO" 5 26183 else 26184 eval "echo >&2 \"$sim_ac_message\"" 26185 fi 26186else 26187 as_fn_error "file '$sim_ac_message_file' not found - notify the $PACKAGE_NAME maintainer(s)" "$LINENO" 5 26188fi 26189 26190 26191 26192echo >&2 "" 26193as_fn_error "aborting" "$LINENO" 5 26194 26195 ;; 26196 * ) 26197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26198$as_echo "no" >&6; } 26199 ;; 26200 esac 26201 26202 else 26203 if test -z "$QTDIR"; then 26204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: QTDIR environment variable not set -- this might be an indication of a problem" >&5 26205$as_echo "$as_me: WARNING: QTDIR environment variable not set -- this might be an indication of a problem" >&2;} 26206 fi 26207 26208 26209echo >&2 "" 26210 26211 26212: ${sim_ac_message_file=$ac_aux_dir/errors.txt} 26213if test -f $sim_ac_message_file; then 26214 sim_ac_message="`sed -n -e '/^!no-qt$/,/^!/ { /^!/ d; p; }' <$sim_ac_message_file`" 26215 if test x"$sim_ac_message" = x""; then 26216 as_fn_error "no message named 'no-qt' in '$sim_ac_message_file' - notify the $PACKAGE_NAME maintainer(s)" "$LINENO" 5 26217 else 26218 eval "echo >&2 \"$sim_ac_message\"" 26219 fi 26220else 26221 as_fn_error "file '$sim_ac_message_file' not found - notify the $PACKAGE_NAME maintainer(s)" "$LINENO" 5 26222fi 26223 26224 26225 26226echo >&2 "" 26227as_fn_error "aborting" "$LINENO" 5 26228 26229 26230 fi 26231fi 26232 26233 26234 26235 26236 26237 26238sim_ac_qgl_avail=no 26239sim_ac_qgl_cppflags= 26240sim_ac_qgl_ldflags= 26241sim_ac_qgl_libs= 26242 26243if $sim_ac_with_qt; then 26244 # first check if we can link with the QGL widget already 26245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the QGL widget is part of main Qt library" >&5 26246$as_echo_n "checking whether the QGL widget is part of main Qt library... " >&6; } 26247if test "${sim_cv_lib_qgl_integrated+set}" = set; then : 26248 $as_echo_n "(cached) " >&6 26249else 26250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26251/* end confdefs.h. */ 26252#include <qgl.h> 26253int 26254main () 26255{ 26256QGLFormat * f = new QGLFormat; f->setDepth(true); 26257 ; 26258 return 0; 26259} 26260_ACEOF 26261if ac_fn_cxx_try_link "$LINENO"; then : 26262 sim_cv_lib_qgl_integrated=yes 26263else 26264 sim_cv_lib_qgl_integrated=no 26265fi 26266rm -f core conftest.err conftest.$ac_objext \ 26267 conftest$ac_exeext conftest.$ac_ext 26268fi 26269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_cv_lib_qgl_integrated" >&5 26270$as_echo "$sim_cv_lib_qgl_integrated" >&6; } 26271 26272 if test x"$sim_cv_lib_qgl_integrated" = xyes; then 26273 sim_ac_qgl_avail=yes 26274 26275 SOGUI_EXTRA_CPPFLAGS="$SOGUI_EXTRA_CPPFLAGS $sim_ac_qgl_cppflags" 26276 SOGUI_EXTRA_LDFLAGS="$SOGUI_EXTRA_LDFLAGS $sim_ac_qgl_ldflags" 26277 SOGUI_EXTRA_LIBS="$sim_ac_qgl_libs $SOGUI_EXTRA_LIBS" 26278 CPPFLAGS="$CPPFLAGS $sim_ac_qgl_cppflags" 26279 LDFLAGS="$LDFLAGS $sim_ac_qgl_ldflags" 26280 LIBS="$sim_ac_qgl_libs $LIBS" 26281 26282 else 26283 sim_ac_save_LIBS=$LIBS 26284 LIBS="$sim_ac_qgl_libs $LIBS" 26285 26286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the QGL extension library" >&5 26287$as_echo_n "checking for the QGL extension library... " >&6; } 26288 26289 sim_ac_qt_suffix= 26290 if $sim_ac_qt_debug; then 26291 sim_ac_qt_suffix=d 26292 fi 26293 26294 sim_ac_qgl_libs=UNRESOLVED 26295 for sim_ac_qgl_libcheck in "-lQtOpenGL${sim_ac_qt_suffix}${sim_ac_qt_major_version}" "-lQtOpenGL${sim_ac_qt_suffix}" "-lqgl" "-lqgl -luser32"; do 26296 if test "x$sim_ac_qgl_libs" = "xUNRESOLVED"; then 26297 LIBS="$sim_ac_qgl_libcheck $sim_ac_save_LIBS" 26298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26299/* end confdefs.h. */ 26300#include <qgl.h> 26301int 26302main () 26303{ 26304QGLFormat * f = new QGLFormat; f->setDepth(true); 26305 ; 26306 return 0; 26307} 26308_ACEOF 26309if ac_fn_cxx_try_link "$LINENO"; then : 26310 sim_ac_qgl_libs="$sim_ac_qgl_libcheck" 26311fi 26312rm -f core conftest.err conftest.$ac_objext \ 26313 conftest$ac_exeext conftest.$ac_ext 26314 fi 26315 done 26316 26317 if test x"$sim_ac_qgl_libs" != xUNRESOLVED; then 26318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_qgl_libs" >&5 26319$as_echo "$sim_ac_qgl_libs" >&6; } 26320 sim_ac_qgl_avail=yes 26321 26322 SOGUI_EXTRA_CPPFLAGS="$SOGUI_EXTRA_CPPFLAGS $sim_ac_qgl_cppflags" 26323 SOGUI_EXTRA_LDFLAGS="$SOGUI_EXTRA_LDFLAGS $sim_ac_qgl_ldflags" 26324 SOGUI_EXTRA_LIBS="$sim_ac_qgl_libs $SOGUI_EXTRA_LIBS" 26325 CPPFLAGS="$CPPFLAGS $sim_ac_qgl_cppflags" 26326 LDFLAGS="$LDFLAGS $sim_ac_qgl_ldflags" 26327 LIBS="$sim_ac_qgl_libs $LIBS" 26328 26329 else 26330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unavailable" >&5 26331$as_echo "unavailable" >&6; } 26332 LIBS=$sim_ac_save_LIBS 26333 26334 26335echo >&2 "" 26336 26337 26338: ${sim_ac_message_file=$ac_aux_dir/errors.txt} 26339if test -f $sim_ac_message_file; then 26340 sim_ac_message="`sed -n -e '/^!no-qgl$/,/^!/ { /^!/ d; p; }' <$sim_ac_message_file`" 26341 if test x"$sim_ac_message" = x""; then 26342 as_fn_error "no message named 'no-qgl' in '$sim_ac_message_file' - notify the $PACKAGE_NAME maintainer(s)" "$LINENO" 5 26343 else 26344 eval "echo >&2 \"$sim_ac_message\"" 26345 fi 26346else 26347 as_fn_error "file '$sim_ac_message_file' not found - notify the $PACKAGE_NAME maintainer(s)" "$LINENO" 5 26348fi 26349 26350 26351 26352echo >&2 "" 26353as_fn_error "aborting" "$LINENO" 5 26354 26355 26356 fi 26357 fi 26358fi 26359 26360 26361 # ALERT: We have disabled these Qt checks because Qt features are now 26362 # to be set up in src/qt-config.h. Do not reenable them, unless 26363 # we for some reason decide to go back from this system again. 26364 # It is still OK to use Qt-checking features for other projects, but 26365 # SoQt must be buildable from pregenerated files against several 26366 # different versions of Qt. 26367 # 26368 # Check misc capabilities of the Qt and QGL libraries which depends 26369 # on the exact version available to us. 26370 # SIM_AC_QWIDGET_SHOWFULLSCREEN 26371 # SIM_AC_QGLFORMAT_EQ_OP 26372 # SIM_AC_QGLFORMAT_SETOVERLAY 26373 # SIM_AC_QGLWIDGET_SETAUTOBUFFERSWAP 26374 # SIM_AC_QAPPLICATION_HASPENDINGEVENTS 26375 # SIM_AC_QWIDGET_HASSETWINDOWSTATE 26376 # QStyleFactory was added in Qt 3.0. 26377 # AC_CHECK_HEADERS([qstylefactory.h]) 26378 # We've had an external report about soqt.dll link failing due to missing 26379 # the qt_win_use_simple_timers symbol in the installed Qt library. This 26380 # was with Qt 3.3.1 MT under Windows. 26381 # AC_MSG_CHECKING([for qt_win_use_simple_timers symbol]) 26382 # AC_TRY_LINK([#include <qglobal.h> 26383 # Q_EXPORT extern bool qt_win_use_simple_timers;], 26384 # [qt_win_use_simple_timers = true;], 26385 # [AC_MSG_RESULT([yes]) 26386 # AC_DEFINE([HAVE_QT_WIN_USE_SIMPLE_TIMERS], 1, [Defined if qt_win_use_simple_timers is available])], 26387 # [AC_MSG_RESULT([no])]) 26388 26389 26390 26391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking version of Qt library" >&5 26392$as_echo_n "checking version of Qt library... " >&6; } 26393 26394cat > conftest.c << EOF 26395#include <qglobal.h> 26396int VerQt = QT_VERSION; 26397EOF 26398 26399# The " *"-parts of the last sed-expression on the next line are necessary 26400# because at least the Solaris/CC preprocessor adds extra spaces before and 26401# after the trailing semicolon. 26402sim_ac_qt_version=`$CXXCPP $CPPFLAGS conftest.c 2>/dev/null | grep '^int VerQt' | sed 's%^int VerQt = %%' | sed 's% *;.*$%%'` 26403 26404case $sim_ac_qt_version in 264050x* ) 26406 sim_ac_qt_version=`echo $sim_ac_qt_version | sed -e 's/^0x.\(.\).\(.\).\(.\)/\1\2\3/;'` 26407 ;; 26408* ) 26409 # nada 26410 ;; 26411esac 26412sim_ac_qt_major_version=`echo $sim_ac_qt_version | cut -c1` 26413 26414rm -f conftest.c 26415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_qt_version" >&5 26416$as_echo "$sim_ac_qt_version" >&6; } 26417 26418 26419cat >>confdefs.h <<_ACEOF 26420#define GUI_TOOLKIT_VERSION "$sim_ac_qt_version" 26421_ACEOF 26422 26423 26424fi # sim_ac_build_library 26425 26426if test $sim_ac_inventor_brand=coin && $SOQT_STATIC && $BUILD_WITH_MSVC; then 26427 LDFLAGS=$sim_ac_configure_save_ldflags 26428 LIBS=$sim_ac_configure_save_libs 26429fi 26430 26431# ************************************************************************** 26432# Spaceball support through Linux Joystick driver 26433 26434# Tmp disabled. 26435 26436 26437 26438if false; then 26439 HAVE_JOYSTICK_LINUX_TRUE= 26440 HAVE_JOYSTICK_LINUX_FALSE='#' 26441else 26442 HAVE_JOYSTICK_LINUX_TRUE='#' 26443 HAVE_JOYSTICK_LINUX_FALSE= 26444fi 26445 26446 26447#SIM_AC_CHECK_JOYSTICK_LINUX([ 26448# AC_DEFINE(HAVE_JOYSTICK_LINUX, , 26449# [Define to enable Linux Joystick driver support]) 26450# AC_DEFINE_UNQUOTED(SOXT_LINUX_JOYSTICK_DEVICE, 26451# "$sim_ac_joystick_linux_device", 26452# [Define this to device handle to fallback on]) 26453#]) 26454#AM_CONDITIONAL(HAVE_JOYSTICK_LINUX, $sim_ac_joystick_linux_avail) 26455#SIM_AC_CONFIGURATION_SETTING([Joystick Device], [$sim_ac_joystick_linux_device]) 26456 26457 26458# ************************************************************************** 26459# Compiler control. 26460 26461# Make it possible for the user to turn off optimization flags. 26462 26463# Check whether --enable-optimization was given. 26464if test "${enable_optimization+set}" = set; then : 26465 enableval=$enable_optimization; case "${enableval}" in 26466 yes) sim_ac_enable_optimization=true ;; 26467 no) sim_ac_enable_optimization=false ;; 26468 *) as_fn_error "bad value \"${enableval}\" for --enable-optimization" "$LINENO" 5 ;; 26469 esac 26470else 26471 sim_ac_enable_optimization=true 26472fi 26473 26474 26475if $sim_ac_enable_optimization; then 26476 case $CXX in 26477 *wrapmsvc* ) 26478 CFLAGS="/Ox $CFLAGS" 26479 CXXFLAGS="/Ox $CXXFLAGS" 26480 ;; 26481 esac 26482 : 26483else 26484 CFLAGS="`echo $CFLAGS | sed 's/-O[0-9]*[ ]*//'`" 26485 CXXFLAGS="`echo $CXXFLAGS | sed 's/-O[0-9]*[ ]*//'`" 26486fi 26487 26488 26489 26490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if user is simian" >&5 26491$as_echo_n "checking if user is simian... " >&6; } 26492case `hostname -d 2>/dev/null || domainname 2>/dev/null || hostname` in 26493*.sim.no | sim.no ) 26494 sim_ac_simian=true 26495 ;; 26496* ) 26497 if grep -ls "domain.*sim\\.no" /etc/resolv.conf >/dev/null; then 26498 sim_ac_simian=true 26499 : 26500 else 26501 sim_ac_simian=false 26502 : 26503 fi 26504 ;; 26505esac 26506 26507if $sim_ac_simian; then 26508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: probably" >&5 26509$as_echo "probably" >&6; } 26510 : 26511else 26512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: probably not" >&5 26513$as_echo "probably not" >&6; } 26514 : 26515fi 26516 26517 26518 26519# Check whether --enable-debug was given. 26520if test "${enable_debug+set}" = set; then : 26521 enableval=$enable_debug; case "${enableval}" in 26522 yes) enable_debug=true ;; 26523 no) enable_debug=false ;; 26524 true | false) enable_debug=${enableval} ;; 26525 *) as_fn_error "bad value \"${enableval}\" for --enable-debug" "$LINENO" 5 ;; 26526 esac 26527else 26528 enable_debug=true 26529fi 26530 26531 26532if $enable_debug; then 26533 DSUFFIX=d 26534 if $sim_ac_simian; then 26535 case $CXX in 26536 *wrapmsvc* ) 26537 # uninitialized checks 26538 if test ${sim_ac_msc_major_version-0} -gt 6; then 26539 26540 26541ac_ext=c 26542ac_cpp='$CPP $CPPFLAGS' 26543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26545ac_compiler_gnu=$ac_cv_c_compiler_gnu 26546 26547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts /RTCu" >&5 26548$as_echo_n "checking whether $CC accepts /RTCu... " >&6; } 26549 26550sim_ac_save_cppflags=$CPPFLAGS 26551CPPFLAGS="$CPPFLAGS /RTCu" 26552cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26553/* end confdefs.h. */ 26554 26555int 26556main () 26557{ 26558 26559 ; 26560 return 0; 26561} 26562_ACEOF 26563if ac_fn_c_try_compile "$LINENO"; then : 26564 sim_ac_accept_result=yes 26565else 26566 sim_ac_accept_result=no 26567fi 26568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_accept_result" >&5 26570$as_echo "$sim_ac_accept_result" >&6; } 26571CPPFLAGS=$sim_ac_save_cppflags 26572# This need to go last, in case CPPFLAGS is modified in arg 2 or arg 3. 26573if test $sim_ac_accept_result = yes; then 26574 sim_ac_compiler_CFLAGS="$sim_ac_compiler_CFLAGS /RTCu" 26575else 26576 : 26577fi 26578 26579ac_ext=cpp 26580ac_cpp='$CXXCPP $CPPFLAGS' 26581ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26582ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26583ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 26584 26585 26586 26587 26588ac_ext=cpp 26589ac_cpp='$CXXCPP $CPPFLAGS' 26590ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26591ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26592ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 26593 26594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts /RTCu" >&5 26595$as_echo_n "checking whether $CXX accepts /RTCu... " >&6; } 26596 26597sim_ac_save_cppflags=$CPPFLAGS 26598CPPFLAGS="$CPPFLAGS /RTCu" 26599cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26600/* end confdefs.h. */ 26601 26602int 26603main () 26604{ 26605 26606 ; 26607 return 0; 26608} 26609_ACEOF 26610if ac_fn_cxx_try_compile "$LINENO"; then : 26611 sim_ac_accept_result=yes 26612else 26613 sim_ac_accept_result=no 26614fi 26615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_accept_result" >&5 26617$as_echo "$sim_ac_accept_result" >&6; } 26618CPPFLAGS=$sim_ac_save_cppflags 26619# This need to go last, in case CPPFLAGS is modified in arg 2 or arg 3. 26620if test $sim_ac_accept_result = yes; then 26621 sim_ac_compiler_CXXFLAGS="$sim_ac_compiler_CXXFLAGS /RTCu" 26622else 26623 : 26624fi 26625 26626ac_ext=cpp 26627ac_cpp='$CXXCPP $CPPFLAGS' 26628ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26629ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26630ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 26631 26632 26633 # stack frame checks 26634 26635 26636ac_ext=c 26637ac_cpp='$CPP $CPPFLAGS' 26638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26640ac_compiler_gnu=$ac_cv_c_compiler_gnu 26641 26642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts /RTCs" >&5 26643$as_echo_n "checking whether $CC accepts /RTCs... " >&6; } 26644 26645sim_ac_save_cppflags=$CPPFLAGS 26646CPPFLAGS="$CPPFLAGS /RTCs" 26647cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26648/* end confdefs.h. */ 26649 26650int 26651main () 26652{ 26653 26654 ; 26655 return 0; 26656} 26657_ACEOF 26658if ac_fn_c_try_compile "$LINENO"; then : 26659 sim_ac_accept_result=yes 26660else 26661 sim_ac_accept_result=no 26662fi 26663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_accept_result" >&5 26665$as_echo "$sim_ac_accept_result" >&6; } 26666CPPFLAGS=$sim_ac_save_cppflags 26667# This need to go last, in case CPPFLAGS is modified in arg 2 or arg 3. 26668if test $sim_ac_accept_result = yes; then 26669 sim_ac_compiler_CFLAGS="$sim_ac_compiler_CFLAGS /RTCs" 26670else 26671 : 26672fi 26673 26674ac_ext=cpp 26675ac_cpp='$CXXCPP $CPPFLAGS' 26676ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26677ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26678ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 26679 26680 26681 26682 26683ac_ext=cpp 26684ac_cpp='$CXXCPP $CPPFLAGS' 26685ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26686ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26687ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 26688 26689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts /RTCs" >&5 26690$as_echo_n "checking whether $CXX accepts /RTCs... " >&6; } 26691 26692sim_ac_save_cppflags=$CPPFLAGS 26693CPPFLAGS="$CPPFLAGS /RTCs" 26694cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26695/* end confdefs.h. */ 26696 26697int 26698main () 26699{ 26700 26701 ; 26702 return 0; 26703} 26704_ACEOF 26705if ac_fn_cxx_try_compile "$LINENO"; then : 26706 sim_ac_accept_result=yes 26707else 26708 sim_ac_accept_result=no 26709fi 26710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_accept_result" >&5 26712$as_echo "$sim_ac_accept_result" >&6; } 26713CPPFLAGS=$sim_ac_save_cppflags 26714# This need to go last, in case CPPFLAGS is modified in arg 2 or arg 3. 26715if test $sim_ac_accept_result = yes; then 26716 sim_ac_compiler_CXXFLAGS="$sim_ac_compiler_CXXFLAGS /RTCs" 26717else 26718 : 26719fi 26720 26721ac_ext=cpp 26722ac_cpp='$CXXCPP $CPPFLAGS' 26723ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26724ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26725ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 26726 26727 26728 fi 26729 ;; 26730 esac 26731 fi 26732 26733 26734 CPPFLAGS="$CPPFLAGS -DSOQT_DEBUG=1" 26735 26736else 26737 DSUFFIX= 26738 CPPFLAGS="$CPPFLAGS -DNDEBUG" 26739 26740 CPPFLAGS="$CPPFLAGS -DSOQT_DEBUG=0" 26741 26742fi 26743 26744 26745 26746 26747 ac_ext=cpp 26748ac_cpp='$CXXCPP $CPPFLAGS' 26749ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26750ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26751ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 26752 26753 26754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function name variable for CPP compiler" >&5 26755$as_echo_n "checking for function name variable for CPP compiler... " >&6; } 26756sim_ac_var_functionname= 26757 26758# * __func__ is the identifier used by compilers which are 26759# compliant with the C99 ISO/IEC 9899:1999 standard. 26760# 26761# * GCC uses __PRETTY_FUNCTION__ 26762# 26763# * Visual C++ uses __FUNCDNAME__, __FUNCSIG__, and __FUNCTION__. 26764# 26765 26766for i in "__func__" "__PRETTY_FUNCTION__" "__FUNCTION__"; do 26767if test -z "$sim_ac_var_functionname"; then 26768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26769/* end confdefs.h. */ 26770#include <stdio.h> 26771int 26772main () 26773{ 26774(void)printf("%s\n", $i) 26775 ; 26776 return 0; 26777} 26778_ACEOF 26779if ac_fn_cxx_try_compile "$LINENO"; then : 26780 sim_ac_var_functionname=$i 26781 26782fi 26783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26784fi 26785done 26786 26787if test -z "$sim_ac_var_functionname"; then 26788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 26789$as_echo "none" >&6; } 26790else 26791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_var_functionname" >&5 26792$as_echo "$sim_ac_var_functionname" >&6; } 26793 26794cat >>confdefs.h <<_ACEOF 26795#define HAVE_CPP_COMPILER_FUNCTION_NAME_VAR $sim_ac_var_functionname 26796_ACEOF 26797 26798fi 26799 26800 ac_ext=cpp 26801ac_cpp='$CXXCPP $CPPFLAGS' 26802ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26803ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26804ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 26805 26806 ac_ext=c 26807ac_cpp='$CPP $CPPFLAGS' 26808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26810ac_compiler_gnu=$ac_cv_c_compiler_gnu 26811 26812 26813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function name variable for C compiler" >&5 26814$as_echo_n "checking for function name variable for C compiler... " >&6; } 26815sim_ac_var_functionname= 26816 26817# * __func__ is the identifier used by compilers which are 26818# compliant with the C99 ISO/IEC 9899:1999 standard. 26819# 26820# * GCC uses __PRETTY_FUNCTION__ 26821# 26822# * Visual C++ uses __FUNCDNAME__, __FUNCSIG__, and __FUNCTION__. 26823# 26824 26825for i in "__func__" "__PRETTY_FUNCTION__" "__FUNCTION__"; do 26826if test -z "$sim_ac_var_functionname"; then 26827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26828/* end confdefs.h. */ 26829#include <stdio.h> 26830int 26831main () 26832{ 26833(void)printf("%s\n", $i) 26834 ; 26835 return 0; 26836} 26837_ACEOF 26838if ac_fn_c_try_compile "$LINENO"; then : 26839 sim_ac_var_functionname=$i 26840 26841fi 26842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26843fi 26844done 26845 26846if test -z "$sim_ac_var_functionname"; then 26847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 26848$as_echo "none" >&6; } 26849else 26850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_var_functionname" >&5 26851$as_echo "$sim_ac_var_functionname" >&6; } 26852 26853cat >>confdefs.h <<_ACEOF 26854#define HAVE_C_COMPILER_FUNCTION_NAME_VAR $sim_ac_var_functionname 26855_ACEOF 26856 26857fi 26858 26859 ac_ext=cpp 26860ac_cpp='$CXXCPP $CPPFLAGS' 26861ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26862ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26863ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 26864 26865 26866 26867 26868# Check whether --enable-symbols was given. 26869if test "${enable_symbols+set}" = set; then : 26870 enableval=$enable_symbols; case "${enableval}" in 26871 yes) enable_symbols=yes ;; 26872 no) enable_symbols=no ;; 26873 *) as_fn_error "bad value \"${enableval}\" for --enable-symbols" "$LINENO" 5 ;; 26874 esac 26875else 26876 enable_symbols=yes 26877fi 26878 26879 26880# weird seds to don't mangle options like -fno-gnu-linker and -fvolatile-global 26881if test x"$enable_symbols" = x"no"; then 26882 CFLAGS="`echo $CFLAGS | sed 's/ -g / /g' | sed 's/^-g / /g' | sed 's/ -g$/ /g' | sed 's/^-g$/ /'`" 26883 CXXFLAGS="`echo $CXXFLAGS | sed 's/ -g / /g' | sed 's/^-g / /g' | sed 's/ -g$/ /g' | sed 's/^-g$/ /'`" 26884fi 26885 26886 26887 26888# Check whether --enable-rtti was given. 26889if test "${enable_rtti+set}" = set; then : 26890 enableval=$enable_rtti; case "${enableval}" in 26891 yes) enable_rtti=yes ;; 26892 no) enable_rtti=no ;; 26893 *) as_fn_error "bad value \"${enableval}\" for --enable-rtti" "$LINENO" 5 ;; 26894 esac 26895else 26896 enable_rtti=yes 26897fi 26898 26899 26900if test x"$enable_rtti" = x"no"; then 26901 if test x"$GXX" = x"yes"; then 26902 CXXFLAGS="$CXXFLAGS -fno-rtti" 26903 else 26904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-rtti only has effect when using GNU g++" >&5 26905$as_echo "$as_me: WARNING: --enable-rtti only has effect when using GNU g++" >&2;} 26906 fi 26907fi 26908 26909 26910 26911# Check whether --enable-exceptions was given. 26912if test "${enable_exceptions+set}" = set; then : 26913 enableval=$enable_exceptions; case "${enableval}" in 26914 yes) enable_exceptions=yes ;; 26915 no) enable_exceptions=no ;; 26916 *) as_fn_error "bad value \"${enableval}\" for --enable-exceptions" "$LINENO" 5 ;; 26917 esac 26918else 26919 enable_exceptions=yes 26920fi 26921 26922 26923if test x"$enable_exceptions" = x"no"; then 26924 if test "x$GXX" = "xyes"; then 26925 unset _exception_flag 26926 26927 26928ac_ext=cpp 26929ac_cpp='$CXXCPP $CPPFLAGS' 26930ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26931ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26932ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 26933 26934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -fno-exceptions" >&5 26935$as_echo_n "checking whether $CXX accepts -fno-exceptions... " >&6; } 26936 26937sim_ac_save_cppflags=$CPPFLAGS 26938CPPFLAGS="$CPPFLAGS -fno-exceptions" 26939cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26940/* end confdefs.h. */ 26941 26942int 26943main () 26944{ 26945 26946 ; 26947 return 0; 26948} 26949_ACEOF 26950if ac_fn_cxx_try_compile "$LINENO"; then : 26951 sim_ac_accept_result=yes 26952else 26953 sim_ac_accept_result=no 26954fi 26955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_accept_result" >&5 26957$as_echo "$sim_ac_accept_result" >&6; } 26958CPPFLAGS=$sim_ac_save_cppflags 26959# This need to go last, in case CPPFLAGS is modified in arg 2 or arg 3. 26960if test $sim_ac_accept_result = yes; then 26961 _exception_flag=-fno-exceptions 26962else 26963 : 26964fi 26965 26966ac_ext=cpp 26967ac_cpp='$CXXCPP $CPPFLAGS' 26968ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26969ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26970ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 26971 26972 26973 if test x"${_exception_flag+set}" != x"set"; then 26974 26975 26976ac_ext=cpp 26977ac_cpp='$CXXCPP $CPPFLAGS' 26978ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26979ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26980ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 26981 26982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -fno-handle-exceptions" >&5 26983$as_echo_n "checking whether $CXX accepts -fno-handle-exceptions... " >&6; } 26984 26985sim_ac_save_cppflags=$CPPFLAGS 26986CPPFLAGS="$CPPFLAGS -fno-handle-exceptions" 26987cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26988/* end confdefs.h. */ 26989 26990int 26991main () 26992{ 26993 26994 ; 26995 return 0; 26996} 26997_ACEOF 26998if ac_fn_cxx_try_compile "$LINENO"; then : 26999 sim_ac_accept_result=yes 27000else 27001 sim_ac_accept_result=no 27002fi 27003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_accept_result" >&5 27005$as_echo "$sim_ac_accept_result" >&6; } 27006CPPFLAGS=$sim_ac_save_cppflags 27007# This need to go last, in case CPPFLAGS is modified in arg 2 or arg 3. 27008if test $sim_ac_accept_result = yes; then 27009 _exception_flag=-fno-handle-exceptions 27010else 27011 : 27012fi 27013 27014ac_ext=cpp 27015ac_cpp='$CXXCPP $CPPFLAGS' 27016ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27017ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27018ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 27019 27020 27021 fi 27022 if test x"${_exception_flag+set}" != x"set"; then 27023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: couldn't find a valid option for avoiding exception handling" >&5 27024$as_echo "$as_me: WARNING: couldn't find a valid option for avoiding exception handling" >&2;} 27025 else 27026 CXXFLAGS="$CXXFLAGS $_exception_flag" 27027 fi 27028 fi 27029else 27030 if $BUILD_WITH_MSVC; then 27031 27032 27033ac_ext=cpp 27034ac_cpp='$CXXCPP $CPPFLAGS' 27035ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27036ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27037ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 27038 27039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts /EHsc" >&5 27040$as_echo_n "checking whether $CXX accepts /EHsc... " >&6; } 27041 27042sim_ac_save_cppflags=$CPPFLAGS 27043CPPFLAGS="$CPPFLAGS /EHsc" 27044cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27045/* end confdefs.h. */ 27046 27047int 27048main () 27049{ 27050 27051 ; 27052 return 0; 27053} 27054_ACEOF 27055if ac_fn_cxx_try_compile "$LINENO"; then : 27056 sim_ac_accept_result=yes 27057else 27058 sim_ac_accept_result=no 27059fi 27060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_accept_result" >&5 27062$as_echo "$sim_ac_accept_result" >&6; } 27063CPPFLAGS=$sim_ac_save_cppflags 27064# This need to go last, in case CPPFLAGS is modified in arg 2 or arg 3. 27065if test $sim_ac_accept_result = yes; then 27066 CXXFLAGS="$CXXFLAGS /EHsc" 27067else 27068 : 27069fi 27070 27071ac_ext=cpp 27072ac_cpp='$CXXCPP $CPPFLAGS' 27073ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27074ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27075ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 27076 27077 27078 else 27079 if test x"$GXX" != x"yes"; then 27080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-exceptions only has effect when using GNU g++" >&5 27081$as_echo "$as_me: WARNING: --enable-exceptions only has effect when using GNU g++" >&2;} 27082 fi 27083 fi 27084 27085$as_echo "#define USE_EXCEPTIONS 1" >>confdefs.h 27086 27087fi 27088 27089 27090 27091# Check whether --enable-profile was given. 27092if test "${enable_profile+set}" = set; then : 27093 enableval=$enable_profile; case "${enableval}" in 27094 yes) enable_profile=yes ;; 27095 no) enable_profile=no ;; 27096 *) as_fn_error "bad value \"${enableval}\" for --enable-profile" "$LINENO" 5 ;; 27097 esac 27098else 27099 enable_profile=no 27100fi 27101 27102 27103if test x"$enable_profile" = x"yes"; then 27104 if test x"$GXX" = x"yes" || test x"$GCC" = x"yes"; then 27105 CFLAGS="$CFLAGS -pg" 27106 CXXFLAGS="$CXXFLAGS -pg" 27107 LDFLAGS="$LDFLAGS -pg" 27108 else 27109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-profile only has effect when using GNU gcc or g++" >&5 27110$as_echo "$as_me: WARNING: --enable-profile only has effect when using GNU gcc or g++" >&2;} 27111 fi 27112fi 27113 27114 27115# Check whether --enable-warnings was given. 27116if test "${enable_warnings+set}" = set; then : 27117 enableval=$enable_warnings; case "${enableval}" in 27118 yes) enable_warnings=yes ;; 27119 no) enable_warnings=no ;; 27120 *) as_fn_error "bad value \"$enableval\" for --enable-warnings" "$LINENO" 5 ;; 27121 esac 27122else 27123 enable_warnings=yes 27124fi 27125 27126 27127if test x"$enable_warnings" = x"yes"; then 27128 27129 for sim_ac_try_cc_warning_option in \ 27130 "-W" "-Wall" "-Wno-unused" "-Wno-multichar"; do 27131 27132 if test x"$GCC" = x"yes"; then 27133 27134 27135ac_ext=c 27136ac_cpp='$CPP $CPPFLAGS' 27137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27139ac_compiler_gnu=$ac_cv_c_compiler_gnu 27140 27141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $sim_ac_try_cc_warning_option" >&5 27142$as_echo_n "checking whether $CC accepts $sim_ac_try_cc_warning_option... " >&6; } 27143 27144sim_ac_save_cppflags=$CPPFLAGS 27145CPPFLAGS="$CPPFLAGS $sim_ac_try_cc_warning_option" 27146cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27147/* end confdefs.h. */ 27148 27149int 27150main () 27151{ 27152 27153 ; 27154 return 0; 27155} 27156_ACEOF 27157if ac_fn_c_try_compile "$LINENO"; then : 27158 sim_ac_accept_result=yes 27159else 27160 sim_ac_accept_result=no 27161fi 27162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_accept_result" >&5 27164$as_echo "$sim_ac_accept_result" >&6; } 27165CPPFLAGS=$sim_ac_save_cppflags 27166# This need to go last, in case CPPFLAGS is modified in arg 2 or arg 3. 27167if test $sim_ac_accept_result = yes; then 27168 CFLAGS="$CFLAGS $sim_ac_try_cc_warning_option" 27169else 27170 : 27171fi 27172 27173ac_ext=cpp 27174ac_cpp='$CXXCPP $CPPFLAGS' 27175ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27176ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27177ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 27178 27179 27180 fi 27181 done 27182 27183 for sim_ac_try_cxx_warning_option in \ 27184 "-W" "-Wall" "-Wno-unused" "-Wno-multichar" "-Woverloaded-virtual"; do 27185 if test x"$GXX" = x"yes"; then 27186 27187 27188ac_ext=cpp 27189ac_cpp='$CXXCPP $CPPFLAGS' 27190ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27191ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27192ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 27193 27194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts $sim_ac_try_cxx_warning_option" >&5 27195$as_echo_n "checking whether $CXX accepts $sim_ac_try_cxx_warning_option... " >&6; } 27196 27197sim_ac_save_cppflags=$CPPFLAGS 27198CPPFLAGS="$CPPFLAGS $sim_ac_try_cxx_warning_option" 27199cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27200/* end confdefs.h. */ 27201 27202int 27203main () 27204{ 27205 27206 ; 27207 return 0; 27208} 27209_ACEOF 27210if ac_fn_cxx_try_compile "$LINENO"; then : 27211 sim_ac_accept_result=yes 27212else 27213 sim_ac_accept_result=no 27214fi 27215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_accept_result" >&5 27217$as_echo "$sim_ac_accept_result" >&6; } 27218CPPFLAGS=$sim_ac_save_cppflags 27219# This need to go last, in case CPPFLAGS is modified in arg 2 or arg 3. 27220if test $sim_ac_accept_result = yes; then 27221 CXXFLAGS="$CXXFLAGS $sim_ac_try_cxx_warning_option" 27222else 27223 : 27224fi 27225 27226ac_ext=cpp 27227ac_cpp='$CXXCPP $CPPFLAGS' 27228ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27229ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27230ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 27231 27232 27233 fi 27234 27235 done 27236 27237 case $host in 27238 *-*-irix*) 27239 ### Turn on all warnings ###################################### 27240 # we try to catch settings like CC="CC -n32" too, even though the 27241 # -n32 option belongs to C[XX]FLAGS 27242 case $CC in 27243 cc | "cc "* | CC | "CC "* ) 27244 27245 27246ac_ext=c 27247ac_cpp='$CPP $CPPFLAGS' 27248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27250ac_compiler_gnu=$ac_cv_c_compiler_gnu 27251 27252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fullwarn" >&5 27253$as_echo_n "checking whether $CC accepts -fullwarn... " >&6; } 27254 27255sim_ac_save_cppflags=$CPPFLAGS 27256CPPFLAGS="$CPPFLAGS -fullwarn" 27257cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27258/* end confdefs.h. */ 27259 27260int 27261main () 27262{ 27263 27264 ; 27265 return 0; 27266} 27267_ACEOF 27268if ac_fn_c_try_compile "$LINENO"; then : 27269 sim_ac_accept_result=yes 27270else 27271 sim_ac_accept_result=no 27272fi 27273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_accept_result" >&5 27275$as_echo "$sim_ac_accept_result" >&6; } 27276CPPFLAGS=$sim_ac_save_cppflags 27277# This need to go last, in case CPPFLAGS is modified in arg 2 or arg 3. 27278if test $sim_ac_accept_result = yes; then 27279 CFLAGS="$CFLAGS -fullwarn" 27280else 27281 : 27282fi 27283 27284ac_ext=cpp 27285ac_cpp='$CXXCPP $CPPFLAGS' 27286ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27287ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27288ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 27289 27290 27291 ;; 27292 esac 27293 case $CXX in 27294 CC | "CC "* ) 27295 27296 27297ac_ext=cpp 27298ac_cpp='$CXXCPP $CPPFLAGS' 27299ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27300ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27301ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 27302 27303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -fullwarn" >&5 27304$as_echo_n "checking whether $CXX accepts -fullwarn... " >&6; } 27305 27306sim_ac_save_cppflags=$CPPFLAGS 27307CPPFLAGS="$CPPFLAGS -fullwarn" 27308cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27309/* end confdefs.h. */ 27310 27311int 27312main () 27313{ 27314 27315 ; 27316 return 0; 27317} 27318_ACEOF 27319if ac_fn_cxx_try_compile "$LINENO"; then : 27320 sim_ac_accept_result=yes 27321else 27322 sim_ac_accept_result=no 27323fi 27324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_accept_result" >&5 27326$as_echo "$sim_ac_accept_result" >&6; } 27327CPPFLAGS=$sim_ac_save_cppflags 27328# This need to go last, in case CPPFLAGS is modified in arg 2 or arg 3. 27329if test $sim_ac_accept_result = yes; then 27330 CXXFLAGS="$CXXFLAGS -fullwarn" 27331else 27332 : 27333fi 27334 27335ac_ext=cpp 27336ac_cpp='$CXXCPP $CPPFLAGS' 27337ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27338ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27339ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 27340 27341 27342 ;; 27343 esac 27344 27345 ### Turn off specific (bogus) warnings ######################## 27346 27347 ### SGI MipsPro v?.?? (our compiler on IRIX 6.2) ############## 27348 ## 27349 ## 3115: ``type qualifiers are meaningless in this declaration''. 27350 ## 3262: unused variables. 27351 ## 27352 ### SGI MipsPro v7.30 ######################################### 27353 ## 27354 ## 1174: "The function was declared but never referenced." 27355 ## 1209: "The controlling expression is constant." (kill warning on 27356 ## if (0), assert(FALSE), etc). 27357 ## 1375: Non-virtual destructors in base classes. 27358 ## 3201: Unused argument to a function. 27359 ## 1110: "Statement is not reachable" (the Lex/Flex generated code in 27360 ## Coin/src/engines has lots of shitty code which needs this). 27361 ## 1506: Implicit conversion from "unsigned long" to "long". 27362 ## SbTime.h in SGI/TGS Inventor does this, so we need to kill 27363 ## this warning to avoid all the output clutter when compiling 27364 ## the SoQt, SoGtk or SoXt libraries on IRIX with SGI MIPSPro CC. 27365 ## 1169: External/internal linkage conflicts with a previous declaration. 27366 ## We get this for the "friend operators" in SbString.h 27367 27368 sim_ac_bogus_warnings="-woff 3115,3262,1174,1209,1375,3201,1110,1506,1169,1210" 27369 27370 case $CC in 27371 cc | "cc "* | CC | "CC "* ) 27372 27373 27374ac_ext=c 27375ac_cpp='$CPP $CPPFLAGS' 27376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27378ac_compiler_gnu=$ac_cv_c_compiler_gnu 27379 27380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $sim_ac_bogus_warnings" >&5 27381$as_echo_n "checking whether $CC accepts $sim_ac_bogus_warnings... " >&6; } 27382 27383sim_ac_save_cppflags=$CPPFLAGS 27384CPPFLAGS="$CPPFLAGS $sim_ac_bogus_warnings" 27385cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27386/* end confdefs.h. */ 27387 27388int 27389main () 27390{ 27391 27392 ; 27393 return 0; 27394} 27395_ACEOF 27396if ac_fn_c_try_compile "$LINENO"; then : 27397 sim_ac_accept_result=yes 27398else 27399 sim_ac_accept_result=no 27400fi 27401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_accept_result" >&5 27403$as_echo "$sim_ac_accept_result" >&6; } 27404CPPFLAGS=$sim_ac_save_cppflags 27405# This need to go last, in case CPPFLAGS is modified in arg 2 or arg 3. 27406if test $sim_ac_accept_result = yes; then 27407 CFLAGS="$CFLAGS $sim_ac_bogus_warnings" 27408else 27409 : 27410fi 27411 27412ac_ext=cpp 27413ac_cpp='$CXXCPP $CPPFLAGS' 27414ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27415ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27416ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 27417 27418 27419 esac 27420 case $CXX in 27421 CC | "CC "* ) 27422 27423 27424ac_ext=cpp 27425ac_cpp='$CXXCPP $CPPFLAGS' 27426ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27427ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27428ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 27429 27430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts $sim_ac_bogus_warnings" >&5 27431$as_echo_n "checking whether $CXX accepts $sim_ac_bogus_warnings... " >&6; } 27432 27433sim_ac_save_cppflags=$CPPFLAGS 27434CPPFLAGS="$CPPFLAGS $sim_ac_bogus_warnings" 27435cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27436/* end confdefs.h. */ 27437 27438int 27439main () 27440{ 27441 27442 ; 27443 return 0; 27444} 27445_ACEOF 27446if ac_fn_cxx_try_compile "$LINENO"; then : 27447 sim_ac_accept_result=yes 27448else 27449 sim_ac_accept_result=no 27450fi 27451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_accept_result" >&5 27453$as_echo "$sim_ac_accept_result" >&6; } 27454CPPFLAGS=$sim_ac_save_cppflags 27455# This need to go last, in case CPPFLAGS is modified in arg 2 or arg 3. 27456if test $sim_ac_accept_result = yes; then 27457 CXXFLAGS="$CXXFLAGS $sim_ac_bogus_warnings" 27458else 27459 : 27460fi 27461 27462ac_ext=cpp 27463ac_cpp='$CXXCPP $CPPFLAGS' 27464ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27465ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27466ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 27467 27468 27469 ;; 27470 esac 27471 ;; 27472 esac 27473fi 27474 27475 27476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for project release status" >&5 27477$as_echo_n "checking for project release status... " >&6; } 27478case $VERSION in 27479*[a-z]* ) 27480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: beta / inbetween releases" >&5 27481$as_echo "beta / inbetween releases" >&6; } 27482 sim_ac_source_release=false 27483 : 27484 ;; 27485* ) 27486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: release version" >&5 27487$as_echo "release version" >&6; } 27488 sim_ac_source_release=true 27489 : 27490 ;; 27491esac 27492 27493 27494 27495 27496 27497 27498sim_ac_simian=false 27499 27500 27501 27502 27503# Check whether --enable-debug was given. 27504if test "${enable_debug+set}" = set; then : 27505 enableval=$enable_debug; case "${enableval}" in 27506 yes) enable_debug=true ;; 27507 no) enable_debug=false ;; 27508 true | false) enable_debug=${enableval} ;; 27509 *) as_fn_error "bad value \"${enableval}\" for --enable-debug" "$LINENO" 5 ;; 27510 esac 27511else 27512 enable_debug=true 27513fi 27514 27515 27516if $enable_debug; then 27517 DSUFFIX=d 27518 if $sim_ac_simian; then 27519 case $CXX in 27520 *wrapmsvc* ) 27521 # uninitialized checks 27522 if test ${sim_ac_msc_major_version-0} -gt 6; then 27523 27524 27525ac_ext=c 27526ac_cpp='$CPP $CPPFLAGS' 27527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27529ac_compiler_gnu=$ac_cv_c_compiler_gnu 27530 27531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts /RTCu" >&5 27532$as_echo_n "checking whether $CC accepts /RTCu... " >&6; } 27533 27534sim_ac_save_cppflags=$CPPFLAGS 27535CPPFLAGS="$CPPFLAGS /RTCu" 27536cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27537/* end confdefs.h. */ 27538 27539int 27540main () 27541{ 27542 27543 ; 27544 return 0; 27545} 27546_ACEOF 27547if ac_fn_c_try_compile "$LINENO"; then : 27548 sim_ac_accept_result=yes 27549else 27550 sim_ac_accept_result=no 27551fi 27552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_accept_result" >&5 27554$as_echo "$sim_ac_accept_result" >&6; } 27555CPPFLAGS=$sim_ac_save_cppflags 27556# This need to go last, in case CPPFLAGS is modified in arg 2 or arg 3. 27557if test $sim_ac_accept_result = yes; then 27558 sim_ac_compiler_CFLAGS="$sim_ac_compiler_CFLAGS /RTCu" 27559else 27560 : 27561fi 27562 27563ac_ext=cpp 27564ac_cpp='$CXXCPP $CPPFLAGS' 27565ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27566ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27567ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 27568 27569 27570 27571 27572ac_ext=cpp 27573ac_cpp='$CXXCPP $CPPFLAGS' 27574ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27575ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27576ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 27577 27578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts /RTCu" >&5 27579$as_echo_n "checking whether $CXX accepts /RTCu... " >&6; } 27580 27581sim_ac_save_cppflags=$CPPFLAGS 27582CPPFLAGS="$CPPFLAGS /RTCu" 27583cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27584/* end confdefs.h. */ 27585 27586int 27587main () 27588{ 27589 27590 ; 27591 return 0; 27592} 27593_ACEOF 27594if ac_fn_cxx_try_compile "$LINENO"; then : 27595 sim_ac_accept_result=yes 27596else 27597 sim_ac_accept_result=no 27598fi 27599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_accept_result" >&5 27601$as_echo "$sim_ac_accept_result" >&6; } 27602CPPFLAGS=$sim_ac_save_cppflags 27603# This need to go last, in case CPPFLAGS is modified in arg 2 or arg 3. 27604if test $sim_ac_accept_result = yes; then 27605 sim_ac_compiler_CXXFLAGS="$sim_ac_compiler_CXXFLAGS /RTCu" 27606else 27607 : 27608fi 27609 27610ac_ext=cpp 27611ac_cpp='$CXXCPP $CPPFLAGS' 27612ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27613ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27614ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 27615 27616 27617 # stack frame checks 27618 27619 27620ac_ext=c 27621ac_cpp='$CPP $CPPFLAGS' 27622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27624ac_compiler_gnu=$ac_cv_c_compiler_gnu 27625 27626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts /RTCs" >&5 27627$as_echo_n "checking whether $CC accepts /RTCs... " >&6; } 27628 27629sim_ac_save_cppflags=$CPPFLAGS 27630CPPFLAGS="$CPPFLAGS /RTCs" 27631cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27632/* end confdefs.h. */ 27633 27634int 27635main () 27636{ 27637 27638 ; 27639 return 0; 27640} 27641_ACEOF 27642if ac_fn_c_try_compile "$LINENO"; then : 27643 sim_ac_accept_result=yes 27644else 27645 sim_ac_accept_result=no 27646fi 27647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_accept_result" >&5 27649$as_echo "$sim_ac_accept_result" >&6; } 27650CPPFLAGS=$sim_ac_save_cppflags 27651# This need to go last, in case CPPFLAGS is modified in arg 2 or arg 3. 27652if test $sim_ac_accept_result = yes; then 27653 sim_ac_compiler_CFLAGS="$sim_ac_compiler_CFLAGS /RTCs" 27654else 27655 : 27656fi 27657 27658ac_ext=cpp 27659ac_cpp='$CXXCPP $CPPFLAGS' 27660ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27661ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27662ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 27663 27664 27665 27666 27667ac_ext=cpp 27668ac_cpp='$CXXCPP $CPPFLAGS' 27669ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27670ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27671ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 27672 27673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts /RTCs" >&5 27674$as_echo_n "checking whether $CXX accepts /RTCs... " >&6; } 27675 27676sim_ac_save_cppflags=$CPPFLAGS 27677CPPFLAGS="$CPPFLAGS /RTCs" 27678cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27679/* end confdefs.h. */ 27680 27681int 27682main () 27683{ 27684 27685 ; 27686 return 0; 27687} 27688_ACEOF 27689if ac_fn_cxx_try_compile "$LINENO"; then : 27690 sim_ac_accept_result=yes 27691else 27692 sim_ac_accept_result=no 27693fi 27694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_accept_result" >&5 27696$as_echo "$sim_ac_accept_result" >&6; } 27697CPPFLAGS=$sim_ac_save_cppflags 27698# This need to go last, in case CPPFLAGS is modified in arg 2 or arg 3. 27699if test $sim_ac_accept_result = yes; then 27700 sim_ac_compiler_CXXFLAGS="$sim_ac_compiler_CXXFLAGS /RTCs" 27701else 27702 : 27703fi 27704 27705ac_ext=cpp 27706ac_cpp='$CXXCPP $CPPFLAGS' 27707ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27708ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27709ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 27710 27711 27712 fi 27713 ;; 27714 esac 27715 fi 27716 27717 27718 if test x"$GCC" = x"yes"; then 27719 # no auto string.h-functions 27720 27721 27722ac_ext=c 27723ac_cpp='$CPP $CPPFLAGS' 27724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27726ac_compiler_gnu=$ac_cv_c_compiler_gnu 27727 27728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fno-builtin" >&5 27729$as_echo_n "checking whether $CC accepts -fno-builtin... " >&6; } 27730 27731sim_ac_save_cppflags=$CPPFLAGS 27732CPPFLAGS="$CPPFLAGS -fno-builtin" 27733cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27734/* end confdefs.h. */ 27735 27736int 27737main () 27738{ 27739 27740 ; 27741 return 0; 27742} 27743_ACEOF 27744if ac_fn_c_try_compile "$LINENO"; then : 27745 sim_ac_accept_result=yes 27746else 27747 sim_ac_accept_result=no 27748fi 27749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_accept_result" >&5 27751$as_echo "$sim_ac_accept_result" >&6; } 27752CPPFLAGS=$sim_ac_save_cppflags 27753# This need to go last, in case CPPFLAGS is modified in arg 2 or arg 3. 27754if test $sim_ac_accept_result = yes; then 27755 sim_ac_compiler_CFLAGS="$sim_ac_compiler_CFLAGS -fno-builtin" 27756else 27757 : 27758fi 27759 27760ac_ext=cpp 27761ac_cpp='$CXXCPP $CPPFLAGS' 27762ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27763ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27764ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 27765 27766 27767 27768 27769ac_ext=cpp 27770ac_cpp='$CXXCPP $CPPFLAGS' 27771ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27772ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27773ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 27774 27775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -fno-builtin" >&5 27776$as_echo_n "checking whether $CXX accepts -fno-builtin... " >&6; } 27777 27778sim_ac_save_cppflags=$CPPFLAGS 27779CPPFLAGS="$CPPFLAGS -fno-builtin" 27780cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27781/* end confdefs.h. */ 27782 27783int 27784main () 27785{ 27786 27787 ; 27788 return 0; 27789} 27790_ACEOF 27791if ac_fn_cxx_try_compile "$LINENO"; then : 27792 sim_ac_accept_result=yes 27793else 27794 sim_ac_accept_result=no 27795fi 27796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_accept_result" >&5 27798$as_echo "$sim_ac_accept_result" >&6; } 27799CPPFLAGS=$sim_ac_save_cppflags 27800# This need to go last, in case CPPFLAGS is modified in arg 2 or arg 3. 27801if test $sim_ac_accept_result = yes; then 27802 sim_ac_compiler_CXXFLAGS="$sim_ac_compiler_CXXFLAGS -fno-builtin" 27803else 27804 : 27805fi 27806 27807ac_ext=cpp 27808ac_cpp='$CXXCPP $CPPFLAGS' 27809ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27810ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27811ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 27812 27813 27814 27815 # disallow non-standard scoping of for()-variables 27816 27817 27818ac_ext=cpp 27819ac_cpp='$CXXCPP $CPPFLAGS' 27820ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27821ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27822ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 27823 27824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -fno-for-scoping" >&5 27825$as_echo_n "checking whether $CXX accepts -fno-for-scoping... " >&6; } 27826 27827sim_ac_save_cppflags=$CPPFLAGS 27828CPPFLAGS="$CPPFLAGS -fno-for-scoping" 27829cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27830/* end confdefs.h. */ 27831 27832int 27833main () 27834{ 27835 27836 ; 27837 return 0; 27838} 27839_ACEOF 27840if ac_fn_cxx_try_compile "$LINENO"; then : 27841 sim_ac_accept_result=yes 27842else 27843 sim_ac_accept_result=no 27844fi 27845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_accept_result" >&5 27847$as_echo "$sim_ac_accept_result" >&6; } 27848CPPFLAGS=$sim_ac_save_cppflags 27849# This need to go last, in case CPPFLAGS is modified in arg 2 or arg 3. 27850if test $sim_ac_accept_result = yes; then 27851 sim_ac_compiler_CXXFLAGS="$sim_ac_compiler_CXXFLAGS -fno-for-scope" 27852else 27853 : 27854fi 27855 27856ac_ext=cpp 27857ac_cpp='$CXXCPP $CPPFLAGS' 27858ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27859ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27860ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 27861 27862 27863 27864 27865 27866ac_ext=c 27867ac_cpp='$CPP $CPPFLAGS' 27868ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27869ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27870ac_compiler_gnu=$ac_cv_c_compiler_gnu 27871 27872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -finline-functions" >&5 27873$as_echo_n "checking whether $CC accepts -finline-functions... " >&6; } 27874 27875sim_ac_save_cppflags=$CPPFLAGS 27876CPPFLAGS="$CPPFLAGS -finline-functions" 27877cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27878/* end confdefs.h. */ 27879 27880int 27881main () 27882{ 27883 27884 ; 27885 return 0; 27886} 27887_ACEOF 27888if ac_fn_c_try_compile "$LINENO"; then : 27889 sim_ac_accept_result=yes 27890else 27891 sim_ac_accept_result=no 27892fi 27893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_accept_result" >&5 27895$as_echo "$sim_ac_accept_result" >&6; } 27896CPPFLAGS=$sim_ac_save_cppflags 27897# This need to go last, in case CPPFLAGS is modified in arg 2 or arg 3. 27898if test $sim_ac_accept_result = yes; then 27899 sim_ac_compiler_CFLAGS="$sim_ac_compiler_CFLAGS -finline-functions" 27900else 27901 : 27902fi 27903 27904ac_ext=cpp 27905ac_cpp='$CXXCPP $CPPFLAGS' 27906ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27907ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27908ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 27909 27910 27911 27912 27913ac_ext=cpp 27914ac_cpp='$CXXCPP $CPPFLAGS' 27915ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27916ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27917ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 27918 27919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -finline-functions" >&5 27920$as_echo_n "checking whether $CXX accepts -finline-functions... " >&6; } 27921 27922sim_ac_save_cppflags=$CPPFLAGS 27923CPPFLAGS="$CPPFLAGS -finline-functions" 27924cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27925/* end confdefs.h. */ 27926 27927int 27928main () 27929{ 27930 27931 ; 27932 return 0; 27933} 27934_ACEOF 27935if ac_fn_cxx_try_compile "$LINENO"; then : 27936 sim_ac_accept_result=yes 27937else 27938 sim_ac_accept_result=no 27939fi 27940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_accept_result" >&5 27942$as_echo "$sim_ac_accept_result" >&6; } 27943CPPFLAGS=$sim_ac_save_cppflags 27944# This need to go last, in case CPPFLAGS is modified in arg 2 or arg 3. 27945if test $sim_ac_accept_result = yes; then 27946 sim_ac_compiler_CXXFLAGS="$sim_ac_compiler_CXXFLAGS -finline-functions" 27947else 27948 : 27949fi 27950 27951ac_ext=cpp 27952ac_cpp='$CXXCPP $CPPFLAGS' 27953ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27954ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27955ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 27956 27957 27958 27959 if $sim_ac_simian; then 27960 if $sim_ac_source_release; then :; else 27961 # break build on warnings, except for in official source code releases 27962 if test x"$enable_werror" = x"no"; then :; else 27963 27964 27965ac_ext=c 27966ac_cpp='$CPP $CPPFLAGS' 27967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27969ac_compiler_gnu=$ac_cv_c_compiler_gnu 27970 27971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror" >&5 27972$as_echo_n "checking whether $CC accepts -Werror... " >&6; } 27973 27974sim_ac_save_cppflags=$CPPFLAGS 27975CPPFLAGS="$CPPFLAGS -Werror" 27976cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27977/* end confdefs.h. */ 27978 27979int 27980main () 27981{ 27982 27983 ; 27984 return 0; 27985} 27986_ACEOF 27987if ac_fn_c_try_compile "$LINENO"; then : 27988 sim_ac_accept_result=yes 27989else 27990 sim_ac_accept_result=no 27991fi 27992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_accept_result" >&5 27994$as_echo "$sim_ac_accept_result" >&6; } 27995CPPFLAGS=$sim_ac_save_cppflags 27996# This need to go last, in case CPPFLAGS is modified in arg 2 or arg 3. 27997if test $sim_ac_accept_result = yes; then 27998 sim_ac_compiler_CFLAGS="$sim_ac_compiler_CFLAGS -Werror" 27999else 28000 : 28001fi 28002 28003ac_ext=cpp 28004ac_cpp='$CXXCPP $CPPFLAGS' 28005ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28006ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28007ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28008 28009 28010 28011 28012ac_ext=cpp 28013ac_cpp='$CXXCPP $CPPFLAGS' 28014ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28015ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28016ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28017 28018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Werror" >&5 28019$as_echo_n "checking whether $CXX accepts -Werror... " >&6; } 28020 28021sim_ac_save_cppflags=$CPPFLAGS 28022CPPFLAGS="$CPPFLAGS -Werror" 28023cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28024/* end confdefs.h. */ 28025 28026int 28027main () 28028{ 28029 28030 ; 28031 return 0; 28032} 28033_ACEOF 28034if ac_fn_cxx_try_compile "$LINENO"; then : 28035 sim_ac_accept_result=yes 28036else 28037 sim_ac_accept_result=no 28038fi 28039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_accept_result" >&5 28041$as_echo "$sim_ac_accept_result" >&6; } 28042CPPFLAGS=$sim_ac_save_cppflags 28043# This need to go last, in case CPPFLAGS is modified in arg 2 or arg 3. 28044if test $sim_ac_accept_result = yes; then 28045 sim_ac_compiler_CXXFLAGS="$sim_ac_compiler_CXXFLAGS -Werror" 28046else 28047 : 28048fi 28049 28050ac_ext=cpp 28051ac_cpp='$CXXCPP $CPPFLAGS' 28052ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28053ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28054ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28055 28056 28057 fi 28058 fi 28059 fi 28060 28061 # warn on missing return-value 28062 28063 28064ac_ext=c 28065ac_cpp='$CPP $CPPFLAGS' 28066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28068ac_compiler_gnu=$ac_cv_c_compiler_gnu 28069 28070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wreturn-type" >&5 28071$as_echo_n "checking whether $CC accepts -Wreturn-type... " >&6; } 28072 28073sim_ac_save_cppflags=$CPPFLAGS 28074CPPFLAGS="$CPPFLAGS -Wreturn-type" 28075cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28076/* end confdefs.h. */ 28077 28078int 28079main () 28080{ 28081 28082 ; 28083 return 0; 28084} 28085_ACEOF 28086if ac_fn_c_try_compile "$LINENO"; then : 28087 sim_ac_accept_result=yes 28088else 28089 sim_ac_accept_result=no 28090fi 28091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_accept_result" >&5 28093$as_echo "$sim_ac_accept_result" >&6; } 28094CPPFLAGS=$sim_ac_save_cppflags 28095# This need to go last, in case CPPFLAGS is modified in arg 2 or arg 3. 28096if test $sim_ac_accept_result = yes; then 28097 sim_ac_compiler_CFLAGS="$sim_ac_compiler_CFLAGS -Wreturn-type" 28098else 28099 : 28100fi 28101 28102ac_ext=cpp 28103ac_cpp='$CXXCPP $CPPFLAGS' 28104ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28105ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28106ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28107 28108 28109 28110 28111ac_ext=cpp 28112ac_cpp='$CXXCPP $CPPFLAGS' 28113ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28114ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28115ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28116 28117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wreturn-type" >&5 28118$as_echo_n "checking whether $CXX accepts -Wreturn-type... " >&6; } 28119 28120sim_ac_save_cppflags=$CPPFLAGS 28121CPPFLAGS="$CPPFLAGS -Wreturn-type" 28122cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28123/* end confdefs.h. */ 28124 28125int 28126main () 28127{ 28128 28129 ; 28130 return 0; 28131} 28132_ACEOF 28133if ac_fn_cxx_try_compile "$LINENO"; then : 28134 sim_ac_accept_result=yes 28135else 28136 sim_ac_accept_result=no 28137fi 28138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_accept_result" >&5 28140$as_echo "$sim_ac_accept_result" >&6; } 28141CPPFLAGS=$sim_ac_save_cppflags 28142# This need to go last, in case CPPFLAGS is modified in arg 2 or arg 3. 28143if test $sim_ac_accept_result = yes; then 28144 sim_ac_compiler_CXXFLAGS="$sim_ac_compiler_CXXFLAGS -Wreturn-type" 28145else 28146 : 28147fi 28148 28149ac_ext=cpp 28150ac_cpp='$CXXCPP $CPPFLAGS' 28151ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28152ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28153ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28154 28155 28156 28157 28158 28159ac_ext=c 28160ac_cpp='$CPP $CPPFLAGS' 28161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28163ac_compiler_gnu=$ac_cv_c_compiler_gnu 28164 28165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wchar-subscripts" >&5 28166$as_echo_n "checking whether $CC accepts -Wchar-subscripts... " >&6; } 28167 28168sim_ac_save_cppflags=$CPPFLAGS 28169CPPFLAGS="$CPPFLAGS -Wchar-subscripts" 28170cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28171/* end confdefs.h. */ 28172 28173int 28174main () 28175{ 28176 28177 ; 28178 return 0; 28179} 28180_ACEOF 28181if ac_fn_c_try_compile "$LINENO"; then : 28182 sim_ac_accept_result=yes 28183else 28184 sim_ac_accept_result=no 28185fi 28186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_accept_result" >&5 28188$as_echo "$sim_ac_accept_result" >&6; } 28189CPPFLAGS=$sim_ac_save_cppflags 28190# This need to go last, in case CPPFLAGS is modified in arg 2 or arg 3. 28191if test $sim_ac_accept_result = yes; then 28192 sim_ac_compiler_CFLAGS="$sim_ac_compiler_CFLAGS -Wchar-subscripts" 28193else 28194 : 28195fi 28196 28197ac_ext=cpp 28198ac_cpp='$CXXCPP $CPPFLAGS' 28199ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28200ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28201ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28202 28203 28204 28205 28206ac_ext=cpp 28207ac_cpp='$CXXCPP $CPPFLAGS' 28208ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28209ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28210ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28211 28212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wchar-subscripts" >&5 28213$as_echo_n "checking whether $CXX accepts -Wchar-subscripts... " >&6; } 28214 28215sim_ac_save_cppflags=$CPPFLAGS 28216CPPFLAGS="$CPPFLAGS -Wchar-subscripts" 28217cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28218/* end confdefs.h. */ 28219 28220int 28221main () 28222{ 28223 28224 ; 28225 return 0; 28226} 28227_ACEOF 28228if ac_fn_cxx_try_compile "$LINENO"; then : 28229 sim_ac_accept_result=yes 28230else 28231 sim_ac_accept_result=no 28232fi 28233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_accept_result" >&5 28235$as_echo "$sim_ac_accept_result" >&6; } 28236CPPFLAGS=$sim_ac_save_cppflags 28237# This need to go last, in case CPPFLAGS is modified in arg 2 or arg 3. 28238if test $sim_ac_accept_result = yes; then 28239 sim_ac_compiler_CXXFLAGS="$sim_ac_compiler_CXXFLAGS -Wchar-subscripts" 28240else 28241 : 28242fi 28243 28244ac_ext=cpp 28245ac_cpp='$CXXCPP $CPPFLAGS' 28246ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28247ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28248ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28249 28250 28251 28252 28253 28254ac_ext=c 28255ac_cpp='$CPP $CPPFLAGS' 28256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28258ac_compiler_gnu=$ac_cv_c_compiler_gnu 28259 28260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wparentheses" >&5 28261$as_echo_n "checking whether $CC accepts -Wparentheses... " >&6; } 28262 28263sim_ac_save_cppflags=$CPPFLAGS 28264CPPFLAGS="$CPPFLAGS -Wparentheses" 28265cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28266/* end confdefs.h. */ 28267 28268int 28269main () 28270{ 28271 28272 ; 28273 return 0; 28274} 28275_ACEOF 28276if ac_fn_c_try_compile "$LINENO"; then : 28277 sim_ac_accept_result=yes 28278else 28279 sim_ac_accept_result=no 28280fi 28281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_accept_result" >&5 28283$as_echo "$sim_ac_accept_result" >&6; } 28284CPPFLAGS=$sim_ac_save_cppflags 28285# This need to go last, in case CPPFLAGS is modified in arg 2 or arg 3. 28286if test $sim_ac_accept_result = yes; then 28287 sim_ac_compiler_CFLAGS="$sim_ac_compiler_CFLAGS -Wparentheses" 28288else 28289 : 28290fi 28291 28292ac_ext=cpp 28293ac_cpp='$CXXCPP $CPPFLAGS' 28294ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28295ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28296ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28297 28298 28299 28300 28301ac_ext=cpp 28302ac_cpp='$CXXCPP $CPPFLAGS' 28303ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28304ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28305ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28306 28307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -Wparentheses" >&5 28308$as_echo_n "checking whether $CXX accepts -Wparentheses... " >&6; } 28309 28310sim_ac_save_cppflags=$CPPFLAGS 28311CPPFLAGS="$CPPFLAGS -Wparentheses" 28312cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28313/* end confdefs.h. */ 28314 28315int 28316main () 28317{ 28318 28319 ; 28320 return 0; 28321} 28322_ACEOF 28323if ac_fn_cxx_try_compile "$LINENO"; then : 28324 sim_ac_accept_result=yes 28325else 28326 sim_ac_accept_result=no 28327fi 28328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_accept_result" >&5 28330$as_echo "$sim_ac_accept_result" >&6; } 28331CPPFLAGS=$sim_ac_save_cppflags 28332# This need to go last, in case CPPFLAGS is modified in arg 2 or arg 3. 28333if test $sim_ac_accept_result = yes; then 28334 sim_ac_compiler_CXXFLAGS="$sim_ac_compiler_CXXFLAGS -Wparentheses" 28335else 28336 : 28337fi 28338 28339ac_ext=cpp 28340ac_cpp='$CXXCPP $CPPFLAGS' 28341ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28342ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28343ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28344 28345 28346 28347 else 28348 case $CXX in 28349 *wrapmsvc* ) 28350 if $sim_ac_simian; then 28351 if $sim_ac_source_release; then :; else 28352 # break build on warnings, except for in official source code releases 28353 28354 28355ac_ext=c 28356ac_cpp='$CPP $CPPFLAGS' 28357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28359ac_compiler_gnu=$ac_cv_c_compiler_gnu 28360 28361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts /WX" >&5 28362$as_echo_n "checking whether $CC accepts /WX... " >&6; } 28363 28364sim_ac_save_cppflags=$CPPFLAGS 28365CPPFLAGS="$CPPFLAGS /WX" 28366cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28367/* end confdefs.h. */ 28368 28369int 28370main () 28371{ 28372 28373 ; 28374 return 0; 28375} 28376_ACEOF 28377if ac_fn_c_try_compile "$LINENO"; then : 28378 sim_ac_accept_result=yes 28379else 28380 sim_ac_accept_result=no 28381fi 28382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_accept_result" >&5 28384$as_echo "$sim_ac_accept_result" >&6; } 28385CPPFLAGS=$sim_ac_save_cppflags 28386# This need to go last, in case CPPFLAGS is modified in arg 2 or arg 3. 28387if test $sim_ac_accept_result = yes; then 28388 sim_ac_compiler_CFLAGS="$sim_ac_compiler_CFLAGS /WX" 28389else 28390 : 28391fi 28392 28393ac_ext=cpp 28394ac_cpp='$CXXCPP $CPPFLAGS' 28395ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28396ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28397ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28398 28399 28400 28401 28402ac_ext=cpp 28403ac_cpp='$CXXCPP $CPPFLAGS' 28404ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28405ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28406ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28407 28408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts /WX" >&5 28409$as_echo_n "checking whether $CXX accepts /WX... " >&6; } 28410 28411sim_ac_save_cppflags=$CPPFLAGS 28412CPPFLAGS="$CPPFLAGS /WX" 28413cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28414/* end confdefs.h. */ 28415 28416int 28417main () 28418{ 28419 28420 ; 28421 return 0; 28422} 28423_ACEOF 28424if ac_fn_cxx_try_compile "$LINENO"; then : 28425 sim_ac_accept_result=yes 28426else 28427 sim_ac_accept_result=no 28428fi 28429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_accept_result" >&5 28431$as_echo "$sim_ac_accept_result" >&6; } 28432CPPFLAGS=$sim_ac_save_cppflags 28433# This need to go last, in case CPPFLAGS is modified in arg 2 or arg 3. 28434if test $sim_ac_accept_result = yes; then 28435 sim_ac_compiler_CXXFLAGS="$sim_ac_compiler_CXXFLAGS /WX" 28436else 28437 : 28438fi 28439 28440ac_ext=cpp 28441ac_cpp='$CXXCPP $CPPFLAGS' 28442ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28443ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28444ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28445 28446 28447 fi 28448 fi 28449 28450 # warning level 3 28451 28452 28453ac_ext=c 28454ac_cpp='$CPP $CPPFLAGS' 28455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28457ac_compiler_gnu=$ac_cv_c_compiler_gnu 28458 28459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts /W3" >&5 28460$as_echo_n "checking whether $CC accepts /W3... " >&6; } 28461 28462sim_ac_save_cppflags=$CPPFLAGS 28463CPPFLAGS="$CPPFLAGS /W3" 28464cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28465/* end confdefs.h. */ 28466 28467int 28468main () 28469{ 28470 28471 ; 28472 return 0; 28473} 28474_ACEOF 28475if ac_fn_c_try_compile "$LINENO"; then : 28476 sim_ac_accept_result=yes 28477else 28478 sim_ac_accept_result=no 28479fi 28480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_accept_result" >&5 28482$as_echo "$sim_ac_accept_result" >&6; } 28483CPPFLAGS=$sim_ac_save_cppflags 28484# This need to go last, in case CPPFLAGS is modified in arg 2 or arg 3. 28485if test $sim_ac_accept_result = yes; then 28486 sim_ac_compiler_CFLAGS="$sim_ac_compiler_CFLAGS /W3" 28487else 28488 : 28489fi 28490 28491ac_ext=cpp 28492ac_cpp='$CXXCPP $CPPFLAGS' 28493ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28494ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28495ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28496 28497 28498 28499 28500ac_ext=cpp 28501ac_cpp='$CXXCPP $CPPFLAGS' 28502ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28503ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28504ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28505 28506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts /W3" >&5 28507$as_echo_n "checking whether $CXX accepts /W3... " >&6; } 28508 28509sim_ac_save_cppflags=$CPPFLAGS 28510CPPFLAGS="$CPPFLAGS /W3" 28511cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28512/* end confdefs.h. */ 28513 28514int 28515main () 28516{ 28517 28518 ; 28519 return 0; 28520} 28521_ACEOF 28522if ac_fn_cxx_try_compile "$LINENO"; then : 28523 sim_ac_accept_result=yes 28524else 28525 sim_ac_accept_result=no 28526fi 28527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_ac_accept_result" >&5 28529$as_echo "$sim_ac_accept_result" >&6; } 28530CPPFLAGS=$sim_ac_save_cppflags 28531# This need to go last, in case CPPFLAGS is modified in arg 2 or arg 3. 28532if test $sim_ac_accept_result = yes; then 28533 sim_ac_compiler_CXXFLAGS="$sim_ac_compiler_CXXFLAGS /W3" 28534else 28535 : 28536fi 28537 28538ac_ext=cpp 28539ac_cpp='$CXXCPP $CPPFLAGS' 28540ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28541ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28542ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28543 28544 28545 28546 ;; 28547 esac 28548 fi 28549 28550else 28551 DSUFFIX= 28552 CPPFLAGS="$CPPFLAGS -DNDEBUG" 28553 : 28554fi 28555 28556 28557 28558: 28559 28560 28561 28562# This is at least used to allow static compilation on Cygwin + MSWindows 28563# without hitting the SOQT_DLL / SOQT_NOT_DLL safety check. 28564CPPFLAGS="$CPPFLAGS -DSOQT_INTERNAL" 28565 28566 28567 28568sim_ac_static_defaults=true; 28569# Check whether --enable-static-defaults was given. 28570if test "${enable_static_defaults+set}" = set; then : 28571 enableval=$enable_static_defaults; case ${enable_static_defaults} in 28572 no) sim_ac_static_defaults=false ;; 28573 yes) ;; 28574 *) echo "Option '--enable-static-defaults=${enable_static_defaults}' ignored" ;; 28575 esac 28576fi 28577 28578 28579if $sim_ac_static_defaults; then 28580 28581$as_echo "#define WITH_STATIC_DEFAULTS /**/" >>confdefs.h 28582 28583fi 28584 28585 28586if $sim_ac_static_defaults; then 28587 28588if test x"${sim_ac_configuration_settings+set}" = x"set"; then 28589 sim_ac_configuration_settings="$sim_ac_configuration_settings|Static Materials:Yes" 28590else 28591 sim_ac_configuration_settings="Static Materials:Yes" 28592fi 28593 28594else 28595 28596if test x"${sim_ac_configuration_settings+set}" = x"set"; then 28597 sim_ac_configuration_settings="$sim_ac_configuration_settings|Static Materials:No" 28598else 28599 sim_ac_configuration_settings="Static Materials:No" 28600fi 28601 28602fi 28603 28604if test -n "$SUFFIX"; then 28605 28606if test x"${sim_ac_configuration_settings+set}" = x"set"; then 28607 sim_ac_configuration_settings="$sim_ac_configuration_settings|SoQt library name suffix:$SUFFIX" 28608else 28609 sim_ac_configuration_settings="SoQt library name suffix:$SUFFIX" 28610fi 28611 28612fi 28613 28614# ************************************************************************** 28615 28616COIN_COMPILER="$CXX" 28617 28618 28619if $BUILD_WITH_MSVC; then 28620 # don't use wrapmsvc from source hierarchy when later using soqt-config. 28621 COIN_COMPILER="wrapmsvc" 28622fi 28623 28624 28625 28626# FIXME: gcc-4 generates a warning when a class has virtual functions 28627# but no virtual destructor. We cannot add a virtual destructor without 28628# breaking the ABI, so just silence the warning until the next major 28629# version (see also FIXME in SoGuiObject.h.in) 20060404 kyrah 28630 28631if test x"$ac_compiler_gnu"=x"yes"; then 28632 gccversion4=`cpp -dM /dev/null | grep __VERSION__ |grep '__VERSION__ "4'` 28633 if test "$gccversion4"; then 28634 CXXFLAGS="$CXXFLAGS -Wno-non-virtual-dtor" 28635 fi 28636fi 28637 28638# ************************************************************************** 28639# To test the Mac OS X framework setup on non-Mac systems, run configure 28640# with the --with-framework option. 20011029 larsa 28641 28642 28643# Check whether --with-framework was given. 28644if test "${with_framework+set}" = set; then : 28645 withval=$with_framework; sim_ac_framework_name="SoQt" 28646 case $withval in 28647 yes ) sim_ac_framework=true ;; 28648 no ) sim_ac_framework=false ;; 28649 * ) sim_ac_framework=true; sim_ac_framework_name="$withval" ;; 28650 esac 28651else 28652 sim_ac_framework_name="SoQt" 28653 case $host_os in 28654 darwin* ) sim_ac_framework=true ;; 28655 * ) sim_ac_framework=false ;; 28656 esac 28657fi 28658 28659 28660# don't allow name to be overrided - just toggled on/off 28661sim_ac_framework_name="SoQt" 28662 28663 28664# Check whether --with-framework-prefix was given. 28665if test "${with_framework_prefix+set}" = set; then : 28666 withval=$with_framework_prefix; sim_ac_framework_prefix="$withval" 28667 if test x"$sim_ac_framework_prefix" = x""; then 28668 sim_ac_framework_prefix=\${prefix} 28669 fi 28670else 28671 sim_ac_framework_prefix="/Library/Frameworks" 28672fi 28673 28674 28675# don't allow version to be overrided 28676# AC_ARG_WITH([framework-version], 28677# [ --with-framework-version=<version> (default: "MAC_FRAMEWORK_VERSION_DEFAULT")], 28678# [sim_ac_framework_version="$withval"], 28679# [sim_ac_framework_version="MAC_FRAMEWORK_VERSION_DEFAULT"]) 28680sim_ac_framework_version="A" 28681 28682frameworkdir= 28683ivframeworkdir= 28684# we don't allow SoQt as framework if Coin isn't installed as a framework 28685if $sim_ac_framework && $sim_ac_coin_desired && $sim_ac_coin_avail; then 28686 if test x"$CONFIG" != x"set"; then 28687 sim_ac_coin_frameworkdir=`$sim_ac_coin_configcmd --alternate=$CONFIG --frameworkdir 2>/dev/null` 28688 fi 28689 # FIXME: if the Coin detection/setup macro triggers on --alternate=$CONFIG, 28690 # we shouldn't fallback here :( 20020110 larsa 28691 if test x"$sim_ac_coin_frameworkdir" = x""; then 28692 sim_ac_coin_frameworkdir=`$sim_ac_coin_configcmd --frameworkdir 2>/dev/null` 28693 fi 28694 if test x"$sim_ac_coin_frameworkdir" = x""; then 28695 28696if test x"${sim_ac_configuration_warnings+set}" = x"set"; then 28697 sim_ac_configuration_warnings="$sim_ac_configuration_warnings|Coin was not installed as a framework, so SoQt can't be either (option was disabled)." 28698else 28699 sim_ac_configuration_warnings="Coin was not installed as a framework, so SoQt can't be either (option was disabled)." 28700fi 28701 28702 sim_ac_framework=false 28703 soguiincludedir=${includedir} 28704 ivincludedir= 28705 else 28706 ivframeworkdir=$sim_ac_coin_frameworkdir 28707 ivincludedir= 28708 if test x"$ivframeworkdir" != x""; then 28709 ivincludedir=$ivframeworkdir/Headers 28710 # Inventor.framework and SoQt.framework must be in the same location 28711 ivframeworkprefix=`dirname "${ivframeworkdir}"` 28712 if test x"${sim_ac_framework_prefix}" != x"\${prefix}" && \ 28713 test x"${ivframeworkprefix}" != x"${sim_ac_framework_prefix}"; then 28714 28715if test x"${sim_ac_configuration_warnings+set}" = x"set"; then 28716 sim_ac_configuration_warnings="$sim_ac_configuration_warnings|SoQt.framework must be installed in the same location as Inventor.framework. Changed SoQt framework directory to ${ivframeworkprefix}." 28717else 28718 sim_ac_configuration_warnings="SoQt.framework must be installed in the same location as Inventor.framework. Changed SoQt framework directory to ${ivframeworkprefix}." 28719fi 28720 28721 sim_ac_framework_prefix=${ivframeworkprefix} 28722 fi 28723 fi 28724 frameworkdir=${sim_ac_framework_prefix}/${sim_ac_framework_name}.framework 28725 soguiincludedir="${ivframeworkdir}/Resources/include" 28726 fi 28727else 28728 sim_ac_framework=false 28729 soguiincludedir=${includedir} 28730 ivincludedir= 28731fi 28732 28733 28734 28735 28736 28737 28738MAC_FRAMEWORK=$sim_ac_framework 28739 28740MAC_FRAMEWORK_NAME=$sim_ac_framework_name 28741 28742MAC_FRAMEWORK_PREFIX=$sim_ac_framework_prefix 28743 28744MAC_FRAMEWORK_VERSION=$sim_ac_framework_version 28745 28746 28747 28748 28749 28750 28751if $sim_ac_framework; then 28752 MAC_FRAMEWORK_TRUE= 28753 MAC_FRAMEWORK_FALSE='#' 28754else 28755 MAC_FRAMEWORK_TRUE='#' 28756 MAC_FRAMEWORK_FALSE= 28757fi 28758 28759 28760 28761if $sim_ac_framework; then 28762 MAC_FRAMEWORK_TRUE= 28763 MAC_FRAMEWORK_FALSE='#' 28764else 28765 MAC_FRAMEWORK_TRUE='#' 28766 MAC_FRAMEWORK_FALSE= 28767fi 28768 28769 28770 28771if $sim_ac_macosx; then 28772 MACOSX_TRUE= 28773 MACOSX_FALSE='#' 28774else 28775 MACOSX_TRUE='#' 28776 MACOSX_FALSE= 28777fi 28778 28779 28780 28781if $sim_ac_macosx_10_2ff; then 28782 MACOSX_10_2FF_TRUE= 28783 MACOSX_10_2FF_FALSE='#' 28784else 28785 MACOSX_10_2FF_TRUE='#' 28786 MACOSX_10_2FF_FALSE= 28787fi 28788 28789 28790 28791# for sub-configure in data/ 28792export sim_ac_framework 28793export MAC_FRAMEWORK_NAME MAC_FRAMEWORK_PREFIX MAC_FRAMEWORK_VERSION 28794 28795# ************************************************************************** 28796 28797# Qt's moc wants Windows-style paths, so if the inputfile is an 28798# absolute Cygwin-style path it needs conversion. 28799# 28800# FIXME: code duplicated in SoGuiExamples's configure, should share code. 28801# 20031017 mortene. 28802# Extract the first word of "cygpath", so it can be a program name with args. 28803set dummy cygpath; ac_word=$2 28804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28805$as_echo_n "checking for $ac_word... " >&6; } 28806if test "${ac_cv_path_UNIX2WINPATH+set}" = set; then : 28807 $as_echo_n "(cached) " >&6 28808else 28809 case $UNIX2WINPATH in 28810 [\\/]* | ?:[\\/]*) 28811 ac_cv_path_UNIX2WINPATH="$UNIX2WINPATH" # Let the user override the test with a path. 28812 ;; 28813 *) 28814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28815for as_dir in $PATH 28816do 28817 IFS=$as_save_IFS 28818 test -z "$as_dir" && as_dir=. 28819 for ac_exec_ext in '' $ac_executable_extensions; do 28820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 28821 ac_cv_path_UNIX2WINPATH="$as_dir/$ac_word$ac_exec_ext" 28822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28823 break 2 28824 fi 28825done 28826 done 28827IFS=$as_save_IFS 28828 28829 test -z "$ac_cv_path_UNIX2WINPATH" && ac_cv_path_UNIX2WINPATH="false" 28830 ;; 28831esac 28832fi 28833UNIX2WINPATH=$ac_cv_path_UNIX2WINPATH 28834if test -n "$UNIX2WINPATH"; then 28835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIX2WINPATH" >&5 28836$as_echo "$UNIX2WINPATH" >&6; } 28837else 28838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28839$as_echo "no" >&6; } 28840fi 28841 28842 28843if test x"$UNIX2WINPATH" = x"false"; then 28844 UNIX2WINPATH="echo" 28845else 28846 UNIX2WINPATH="CYGWIN= $UNIX2WINPATH -w" 28847fi 28848 28849 28850# ************************************************************************** 28851# Variable substitutions for using libSoQt in the generic code. 28852 28853Gui=Qt 28854 28855gui=qt 28856 28857GUI=QT 28858 28859WIDGET="QWidget *" 28860 28861EVENT="QEvent *" 28862 28863COMPONENTHEADER=Q_OBJECT 28864 28865 28866case $host_os in 28867darwin*) 28868 SOGUI_EXTRA_LDFLAGS="$SOGUI_EXTRA_LDFLAGS -Wl,-multiply_defined,suppress" 28869 ;; 28870esac 28871 28872# ************************************************************************** 28873 28874 28875 28876 28877 28878 28879# ************************************************************************** 28880# Remove redundant options from certain option lists. 28881 28882 28883sim_ac_save_prefix=$prefix 28884sim_ac_save_exec_prefix=$exec_prefix 28885test x"$prefix" = xNONE && prefix=/usr/local 28886test x"$exec_prefix" = xNONE && exec_prefix='${prefix}' 28887sim_ac_uniqued_list= 28888for sim_ac_item in -I$includedir $SOGUI_EXTRA_CPPFLAGS; do 28889 eval sim_ac_eval_item="$sim_ac_item" 28890 eval sim_ac_eval_item="$sim_ac_eval_item" 28891 if test x"$sim_ac_uniqued_list" = x; then 28892 sim_ac_uniqued_list="$sim_ac_item" 28893 else 28894 sim_ac_unique=true 28895 for sim_ac_uniq in $sim_ac_uniqued_list; do 28896 eval sim_ac_eval_uniq="$sim_ac_uniq" 28897 eval sim_ac_eval_uniq="$sim_ac_eval_uniq" 28898 test x"$sim_ac_eval_item" = x"$sim_ac_eval_uniq" && sim_ac_unique=false 28899 done 28900 $sim_ac_unique && sim_ac_uniqued_list="$sim_ac_uniqued_list $sim_ac_item" 28901 fi 28902done 28903SOGUI_EXTRA_CPPFLAGS=$sim_ac_uniqued_list 28904prefix=$sim_ac_save_prefix 28905exec_prefix=$sim_ac_save_exec_prefix 28906# unset sim_ac_save_prefix 28907# unset sim_ac_save_exec_prefix 28908# unset sim_ac_eval_item 28909# unset sim_ac_eval_uniq 28910 28911 28912sim_ac_save_prefix=$prefix 28913sim_ac_save_exec_prefix=$exec_prefix 28914test x"$prefix" = xNONE && prefix=/usr/local 28915test x"$exec_prefix" = xNONE && exec_prefix='${prefix}' 28916sim_ac_uniqued_list= 28917for sim_ac_item in -L$libdir $SOGUI_EXTRA_LDFLAGS; do 28918 eval sim_ac_eval_item="$sim_ac_item" 28919 eval sim_ac_eval_item="$sim_ac_eval_item" 28920 if test x"$sim_ac_uniqued_list" = x; then 28921 sim_ac_uniqued_list="$sim_ac_item" 28922 else 28923 sim_ac_unique=true 28924 for sim_ac_uniq in $sim_ac_uniqued_list; do 28925 eval sim_ac_eval_uniq="$sim_ac_uniq" 28926 eval sim_ac_eval_uniq="$sim_ac_eval_uniq" 28927 test x"$sim_ac_eval_item" = x"$sim_ac_eval_uniq" && sim_ac_unique=false 28928 done 28929 $sim_ac_unique && sim_ac_uniqued_list="$sim_ac_uniqued_list $sim_ac_item" 28930 fi 28931done 28932SOGUI_EXTRA_LDFLAGS=$sim_ac_uniqued_list 28933prefix=$sim_ac_save_prefix 28934exec_prefix=$sim_ac_save_exec_prefix 28935# unset sim_ac_save_prefix 28936# unset sim_ac_save_exec_prefix 28937# unset sim_ac_eval_item 28938# unset sim_ac_eval_uniq 28939 28940 28941sim_ac_save_prefix=$prefix 28942sim_ac_save_exec_prefix=$exec_prefix 28943test x"$prefix" = xNONE && prefix=/usr/local 28944test x"$exec_prefix" = xNONE && exec_prefix='${prefix}' 28945sim_ac_uniqued_list= 28946for sim_ac_item in $SOGUI_EXTRA_LIBS; do 28947 eval sim_ac_eval_item="$sim_ac_item" 28948 eval sim_ac_eval_item="$sim_ac_eval_item" 28949 if test x"$sim_ac_uniqued_list" = x; then 28950 sim_ac_uniqued_list="$sim_ac_item" 28951 else 28952 sim_ac_unique=true 28953 for sim_ac_uniq in $sim_ac_uniqued_list; do 28954 eval sim_ac_eval_uniq="$sim_ac_uniq" 28955 eval sim_ac_eval_uniq="$sim_ac_eval_uniq" 28956 test x"$sim_ac_eval_item" = x"$sim_ac_eval_uniq" && sim_ac_unique=false 28957 done 28958 $sim_ac_unique && sim_ac_uniqued_list="$sim_ac_uniqued_list $sim_ac_item" 28959 fi 28960done 28961SOGUI_EXTRA_LIBS=$sim_ac_uniqued_list 28962prefix=$sim_ac_save_prefix 28963exec_prefix=$sim_ac_save_exec_prefix 28964# unset sim_ac_save_prefix 28965# unset sim_ac_save_exec_prefix 28966# unset sim_ac_eval_item 28967# unset sim_ac_eval_uniq 28968 28969 28970 28971sim_ac_save_prefix=$prefix 28972sim_ac_save_exec_prefix=$exec_prefix 28973test x"$prefix" = xNONE && prefix=/usr/local 28974test x"$exec_prefix" = xNONE && exec_prefix='${prefix}' 28975sim_ac_uniqued_list= 28976for sim_ac_item in $CPPFLAGS; do 28977 eval sim_ac_eval_item="$sim_ac_item" 28978 eval sim_ac_eval_item="$sim_ac_eval_item" 28979 if test x"$sim_ac_uniqued_list" = x; then 28980 sim_ac_uniqued_list="$sim_ac_item" 28981 else 28982 sim_ac_unique=true 28983 for sim_ac_uniq in $sim_ac_uniqued_list; do 28984 eval sim_ac_eval_uniq="$sim_ac_uniq" 28985 eval sim_ac_eval_uniq="$sim_ac_eval_uniq" 28986 test x"$sim_ac_eval_item" = x"$sim_ac_eval_uniq" && sim_ac_unique=false 28987 done 28988 $sim_ac_unique && sim_ac_uniqued_list="$sim_ac_uniqued_list $sim_ac_item" 28989 fi 28990done 28991CPPFLAGS=$sim_ac_uniqued_list 28992prefix=$sim_ac_save_prefix 28993exec_prefix=$sim_ac_save_exec_prefix 28994# unset sim_ac_save_prefix 28995# unset sim_ac_save_exec_prefix 28996# unset sim_ac_eval_item 28997# unset sim_ac_eval_uniq 28998 28999 29000sim_ac_save_prefix=$prefix 29001sim_ac_save_exec_prefix=$exec_prefix 29002test x"$prefix" = xNONE && prefix=/usr/local 29003test x"$exec_prefix" = xNONE && exec_prefix='${prefix}' 29004sim_ac_uniqued_list= 29005for sim_ac_item in $LDFLAGS; do 29006 eval sim_ac_eval_item="$sim_ac_item" 29007 eval sim_ac_eval_item="$sim_ac_eval_item" 29008 if test x"$sim_ac_uniqued_list" = x; then 29009 sim_ac_uniqued_list="$sim_ac_item" 29010 else 29011 sim_ac_unique=true 29012 for sim_ac_uniq in $sim_ac_uniqued_list; do 29013 eval sim_ac_eval_uniq="$sim_ac_uniq" 29014 eval sim_ac_eval_uniq="$sim_ac_eval_uniq" 29015 test x"$sim_ac_eval_item" = x"$sim_ac_eval_uniq" && sim_ac_unique=false 29016 done 29017 $sim_ac_unique && sim_ac_uniqued_list="$sim_ac_uniqued_list $sim_ac_item" 29018 fi 29019done 29020LDFLAGS=$sim_ac_uniqued_list 29021prefix=$sim_ac_save_prefix 29022exec_prefix=$sim_ac_save_exec_prefix 29023# unset sim_ac_save_prefix 29024# unset sim_ac_save_exec_prefix 29025# unset sim_ac_eval_item 29026# unset sim_ac_eval_uniq 29027 29028 29029sim_ac_save_prefix=$prefix 29030sim_ac_save_exec_prefix=$exec_prefix 29031test x"$prefix" = xNONE && prefix=/usr/local 29032test x"$exec_prefix" = xNONE && exec_prefix='${prefix}' 29033sim_ac_uniqued_list= 29034for sim_ac_item in $LIBS; do 29035 eval sim_ac_eval_item="$sim_ac_item" 29036 eval sim_ac_eval_item="$sim_ac_eval_item" 29037 if test x"$sim_ac_uniqued_list" = x; then 29038 sim_ac_uniqued_list="$sim_ac_item" 29039 else 29040 sim_ac_unique=true 29041 for sim_ac_uniq in $sim_ac_uniqued_list; do 29042 eval sim_ac_eval_uniq="$sim_ac_uniq" 29043 eval sim_ac_eval_uniq="$sim_ac_eval_uniq" 29044 test x"$sim_ac_eval_item" = x"$sim_ac_eval_uniq" && sim_ac_unique=false 29045 done 29046 $sim_ac_unique && sim_ac_uniqued_list="$sim_ac_uniqued_list $sim_ac_item" 29047 fi 29048done 29049LIBS=$sim_ac_uniqued_list 29050prefix=$sim_ac_save_prefix 29051exec_prefix=$sim_ac_save_exec_prefix 29052# unset sim_ac_save_prefix 29053# unset sim_ac_save_exec_prefix 29054# unset sim_ac_eval_item 29055# unset sim_ac_eval_uniq 29056 29057 29058# ************************************************************************** 29059# Remove gcc system directories includes from the CPPFLAGS. 29060 29061 29062if test x"$GCC" = x"yes"; then 29063 sim_ac_save_cpp=$CPP 29064 CPP="cpp" 29065 case $host_os in 29066 darwin*) CPP="cpp3" 29067 ;; 29068 esac 29069 cpp_sys_dirs=`$CPP -v <<EOF 2>&1 | sed -n -e \ 29070 '/#include <...> search starts here:/,/End of search list./{ 29071 /#include <...> search starts here:/b 29072 /End of search list./b 29073 s/ /-I/ 29074 p 29075 }' 29076EOF` 29077 result= 29078 for inc_path in $CPPFLAGS; do 29079 additem=true 29080 for sys_dir in $cpp_sys_dirs; do 29081 if test x$inc_path = x$sys_dir; then 29082 additem=false 29083 break 29084 fi 29085 done 29086 $additem && result="$result $inc_path" 29087 done 29088 CPPFLAGS=$result 29089 CPP=$sim_ac_save_cpp 29090fi 29091 29092 29093if test x"$GCC" = x"yes"; then 29094 sim_ac_save_cpp=$CPP 29095 CPP="cpp" 29096 case $host_os in 29097 darwin*) CPP="cpp3" 29098 ;; 29099 esac 29100 cpp_sys_dirs=`$CPP -v <<EOF 2>&1 | sed -n -e \ 29101 '/#include <...> search starts here:/,/End of search list./{ 29102 /#include <...> search starts here:/b 29103 /End of search list./b 29104 s/ /-I/ 29105 p 29106 }' 29107EOF` 29108 result= 29109 for inc_path in $SOGUI_EXTRA_CPPFLAGS; do 29110 additem=true 29111 for sys_dir in $cpp_sys_dirs; do 29112 if test x$inc_path = x$sys_dir; then 29113 additem=false 29114 break 29115 fi 29116 done 29117 $additem && result="$result $inc_path" 29118 done 29119 SOGUI_EXTRA_CPPFLAGS=$result 29120 CPP=$sim_ac_save_cpp 29121fi 29122 29123 29124 29125 29126# ************************************************************************** 29127# Remaining setup based on platform. 29128# check if compiler/linker handles __declspec() 29129sim_ac_win32_declspec_available=false 29130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __declspec() support" >&5 29131$as_echo_n "checking for __declspec() support... " >&6; } 29132cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29133/* end confdefs.h. */ 29134 29135int 29136main () 29137{ 29138__declspec(dllimport) int foo; 29139 ; 29140 return 0; 29141} 29142_ACEOF 29143if ac_fn_cxx_try_link "$LINENO"; then : 29144 sim_ac_win32_declspec_available=true 29145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: available" >&5 29146$as_echo "available" >&6; } 29147else 29148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not available" >&5 29149$as_echo "not available" >&6; } 29150fi 29151rm -f core conftest.err conftest.$ac_objext \ 29152 conftest$ac_exeext conftest.$ac_ext 29153 29154if $sim_ac_win32_declspec_available; then 29155 if $SOQT_STATIC; then 29156 SOGUI_EXTRA_CPPFLAGS="$SOGUI_EXTRA_CPPFLAGS -DSOQT_NOT_DLL" 29157 else 29158 CPPFLAGS="-DSOQT_MAKE_DLL $CPPFLAGS" 29159 SOGUI_EXTRA_CPPFLAGS="$SOGUI_EXTRA_CPPFLAGS -DSOQT_DLL" 29160 fi 29161fi 29162 29163 29164 29165if $BUILD_WITH_MSVC; then 29166 BUILD_WITH_MSVC_TRUE= 29167 BUILD_WITH_MSVC_FALSE='#' 29168else 29169 BUILD_WITH_MSVC_TRUE='#' 29170 BUILD_WITH_MSVC_FALSE= 29171fi 29172 29173 29174# ************************************************************************** 29175 29176CFLAGS="$CFLAGS $sim_ac_compiler_CFLAGS" 29177CXXFLAGS="$CXXFLAGS $sim_ac_compiler_CXXFLAGS" 29178 29179# ************************************************************************** 29180 29181if $BUILD_WITH_MSVC; then 29182 rm -f vc60.pdb 29183 ## Ensure that if we link with Coin, we use the same C library as Coin 29184 if test x"$sim_ac_coin_msvcrt" != x"" && 29185 test x"$sim_ac_msvcrt" != x"$sim_ac_coin_msvcrt"; then 29186 29187if test x"${sim_ac_configuration_warnings+set}" = x"set"; then 29188 sim_ac_configuration_warnings="$sim_ac_configuration_warnings|You have built Coin with the $sim_ac_coin_msvcrt C library, while you try to build So$Gui with the $sim_ac_msvcrt C library. This can cause mysterious crashes for you. We recommend that you run So$Gui's configure script with the --with-msvcrt=$sim_ac_coin_msvcrt option." 29189else 29190 sim_ac_configuration_warnings="You have built Coin with the $sim_ac_coin_msvcrt C library, while you try to build So$Gui with the $sim_ac_msvcrt C library. This can cause mysterious crashes for you. We recommend that you run So$Gui's configure script with the --with-msvcrt=$sim_ac_coin_msvcrt option." 29191fi 29192 29193 fi 29194 LIBFLAGS="$LIBFLAGS $sim_ac_msvcrt_LIBLDFLAGS" 29195 LIBS="$LIBS $sim_ac_msvcrt_LIBLIBS" 29196 29197 debugfile="`pwd`/src/Inventor/Qt/soqt${SOQT_MAJOR_VERSION}${SUFFIX}.pdb" 29198 debugfile=`cygpath -w "$debugfile" | sed 's,\\\\,\\\\\\\\,g'` 29199 if $SOQT_STATIC; then 29200 if $sim_ac_make_dsp; then :; else 29201 29202if test x"${sim_ac_configuration_settings+set}" = x"set"; then 29203 sim_ac_configuration_settings="$sim_ac_configuration_settings|SoQt build type:static .lib" 29204else 29205 sim_ac_configuration_settings="SoQt build type:static .lib" 29206fi 29207 29208 fi 29209 LIBFLAGS="-LIB $LIBFLAGS" 29210 LIBFLAGS="$LIBFLAGS /OUT:soqt$SOQT_MAJOR_VERSION$SUFFIX.lib" 29211 else 29212 LIBFLAGS="-DLL /INCREMENTAL:NO $LIBFLAGS" 29213 case $enable_symbols in 29214 no | false) 29215 LIBFLAGS="$LIBFLAGS /RELEASE" 29216 if $sim_ac_make_dsp; then :; else 29217 29218if test x"${sim_ac_configuration_settings+set}" = x"set"; then 29219 sim_ac_configuration_settings="$sim_ac_configuration_settings|SoQt build type:dynamic .dll, no symbols" 29220else 29221 sim_ac_configuration_settings="SoQt build type:dynamic .dll, no symbols" 29222fi 29223 29224 fi 29225 ;; 29226 *) 29227 29228if test x"${sim_ac_configuration_settings+set}" = x"set"; then 29229 sim_ac_configuration_settings="$sim_ac_configuration_settings|SoQt build type:dynamic .dll + .pdb" 29230else 29231 sim_ac_configuration_settings="SoQt build type:dynamic .dll + .pdb" 29232fi 29233 29234 CPPFLAGS="/Fd$debugfile $CPPFLAGS" 29235 LIBFLAGS="$LIBFLAGS /DEBUG /PDB:soqt$SOQT_MAJOR_VERSION$SUFFIX.pdb" 29236 ;; 29237 esac 29238 LIBFLAGS="$LIBFLAGS /OUT:soqt$SOQT_MAJOR_VERSION$SUFFIX.dll" 29239 fi 29240 29241 # We use a version suffix on the .dll-file, so several incompatible 29242 # (major) versions can be installed on a system. 29243 # 29244 # BTW, when linking DLLs, the 3rd-party .lib files will be 29245 # linked into the .dll file. I believe it is still advisable to 29246 # list all libs used upon `soqt-config --libs`, as we can then 29247 # also use them from "parent" code (remember that their interfaces 29248 # is not exposed from the DLL) without any fuss. 29249 SOGUI_EXTRA_LIBS="-lsoqt$SOQT_MAJOR_VERSION$SUFFIX $SOGUI_EXTRA_LIBS" 29250else # !BUILD_WITH_MSVC 29251 SOGUI_EXTRA_LIBS="-lSoQt$SUFFIX $SOGUI_EXTRA_LIBS" 29252 29253 if $sim_ac_framework; then 29254 # setup for SoQt usage 29255 SOGUI_EXTRA_CPPFLAGS= 29256 if test x"$sim_ac_framework_prefix" != x"/Library/Frameworks"; then 29257 SOGUI_EXTRA_CPPFLAGS="-F$sim_ac_framework_prefix" 29258 fi 29259 SOGUI_EXTRA_CFLAGS= 29260 SOGUI_EXTRA_CXXFLAGS= 29261 SOGUI_EXTRA_FP_LDFLAGS= 29262 if test x"$sim_ac_framework_prefix" != x"/Library/Frameworks"; then 29263 SOGUI_EXTRA_FP_LDFLAGS="-Wl,-F$sim_ac_framework_prefix" 29264 fi 29265 SOGUI_EXTRA_LDFLAGS="-Wl,-multiply_defined,suppress $SOGUI_EXTRA_FP_LDFLAGS -Wl,-framework,SoQt" 29266 SOGUI_EXTRA_LIBS= 29267 # adjust for Qt usage 29268 SOGUI_EXTRA_CPPFLAGS="$SOGUI_EXTRA_CPPFLAGS $sim_ac_qt_cppflags" 29269 SOGUI_EXTRA_LDFLAGS="$SOGUI_EXTRA_LDFLAGS $sim_ac_qt_ldflags" 29270 SOGUI_EXTRA_LIBS="$sim_ac_qt_libs $SOGUI_EXTRA_LIBS" 29271 # adjust for QGL usage 29272 SOGUI_EXTRA_CPPFLAGS="$SOGUI_EXTRA_CPPFLAGS $sim_ac_qgl_cppflags" 29273 SOGUI_EXTRA_LDFLAGS="$SOGUI_EXTRA_LDFLAGS $sim_ac_qgl_ldflags" 29274 SOGUI_EXTRA_LIBS="$sim_ac_qgl_libs $SOGUI_EXTRA_LIBS" 29275 # adjust for Coin usage 29276 SOGUI_EXTRA_CPPFLAGS="$SOGUI_EXTRA_CPPFLAGS $sim_ac_coin_cppflags" 29277 SOGUI_EXTRA_CFLAGS="$SOGUI_EXTRA_CFLAGS $sim_ac_coin_cflags" 29278 SOGUI_EXTRA_CXXFLAGS="$SOGUI_EXTRA_CXXFLAGS $sim_ac_coin_cxxflags" 29279 SOGUI_EXTRA_LDFLAGS="$SOGUI_EXTRA_LDFLAGS $sim_ac_coin_ldflags" 29280 SOGUI_EXTRA_LIBS="$sim_ac_coin_libs $SOGUI_EXTRA_LIBS" 29281 # adjust for Fink usage 29282 SOGUI_EXTRA_CPPFLAGS="$SOGUI_EXTRA_CPPFLAGS $sim_ac_fink_cppflags" 29283 SOGUI_EXTRA_LDFLAGS="$SOGUI_EXTRA_LDFLAGS $sim_ac_fink_ldflags" 29284 fi # sim_ac_framework 29285fi # !BUILD_WITH_MSVC 29286 29287 29288 29289## Microsoft Developer Studio Project files 29290SOQT_DSP_LIBDIRS= 29291SOQT_DSP_LIBS= 29292SOQT_DSP_INCS= 29293SOQT_LIB_DSP_DEFS= 29294SOQT_DSP_DEFS= 29295 29296if $sim_ac_make_dsp; then 29297 29298if test x"${sim_ac_configuration_settings+set}" = x"set"; then 29299 sim_ac_configuration_settings="$sim_ac_configuration_settings|SoQt build type:msvc .dsp" 29300else 29301 sim_ac_configuration_settings="SoQt build type:msvc .dsp" 29302fi 29303 29304 29305 # -DHAVE_CONFIG_H is set up in $DEFS too late for us to use, and some 29306 # include directives are usually set up in the Makefile.am files 29307 for arg in -DHAVE_CONFIG_H -I$soqt_build_dir/src -I$soqt_build_dir/data -I$soqt_src_dir/src $CPPFLAGS $LDFLAGS $LIBS; do 29308 case $arg in 29309 -L* ) 29310 libdir=`echo $arg | cut -c3-` 29311 SOQT_DSP_LIBDIRS="$SOQT_DSP_LIBDIRS $libdir" 29312 ;; 29313 -l* ) 29314 libname=`echo $arg | cut -c3-` 29315 for libdir in $SOQT_DSP_LIBDIRS; do 29316 if test -f $libdir/$libname.lib; then 29317 # lib is not in any standard location - use full path 29318 libname=`cygpath -w "$libdir/$libname" 2>/dev/null || echo "$libdir/$libname"` 29319 break 29320 fi 29321 done 29322 if test x"$SOQT_DSP_LIBS" = x""; then 29323 SOQT_DSP_LIBS="$libname.lib" 29324 else 29325 SOQT_DSP_LIBS="$SOQT_DSP_LIBS $libname.lib" 29326 fi 29327 ;; 29328 -I* ) 29329 incdir=`echo $arg | cut -c3-` 29330 incdir=`cygpath -w "$incdir" 2>/dev/null || echo "$incdir"` 29331 if test x"$SOQT_DSP_INCS" = x""; then 29332 SOQT_DSP_INCS="/I \"$incdir\"" 29333 else 29334 SOQT_DSP_INCS="$SOQT_DSP_INCS /I \"$incdir\"" 29335 fi 29336 ;; 29337 -DSOQT_DEBUG* | -DNDEBUG ) 29338 # Defines that vary between release/debug configurations can't be 29339 # set up dynamically in <lib>_DSP_DEFS - they must be static in the 29340 # gendsp.pl script. We therefore catch them here so we can ignore 29341 # checking for them below. 29342 ;; 29343 -D*=* | -D* ) 29344 define=`echo $arg | cut -c3-` 29345 if test x"$SOQT_DSP_DEFS" = x""; then 29346 SOQT_DSP_DEFS="/D \"$define\"" 29347 else 29348 SOQT_DSP_DEFS="$SOQT_DSP_DEFS /D \"$define\"" 29349 fi 29350 if (echo $define | grep _MAKE_DLL) >/dev/null 2>&1; then 29351 : 29352 else 29353 if test x"$SOQT_DSP_DEFS" = x""; then 29354 SOQT_LIB_DSP_DEFS="/D \"$define\"" 29355 else 29356 SOQT_LIB_DSP_DEFS="$SOQT_LIB_DSP_DEFS /D \"$define\"" 29357 fi 29358 fi 29359 ;; 29360 esac 29361 done 29362 29363 CC=$soqt_build_dir/cfg/gendsp.pl 29364 CXX=$soqt_build_dir/cfg/gendsp.pl 29365 CXXLD=$soqt_build_dir/cfg/gendsp.pl 29366 # Yes, this is totally bogus stuff, but don't worry about it. As long 29367 # as gendsp.pl recognizes it... 20030219 larsa 29368 CPPFLAGS="$CPPFLAGS -Ddspfile=$soqt_build_dir/soqt$SOQT_MAJOR_VERSION.dsp" 29369 LDFLAGS="$LDFLAGS -Wl,-Ddspfile=$soqt_build_dir/soqt$SOQT_MAJOR_VERSION.dsp" 29370 LIBFLAGS="$LIBFLAGS -o soqt$SOQT_MAJOR_VERSION.so.0" 29371 29372 # this can't be set up at the point the libtool script is generated 29373 mv libtool libtool.bak 29374 sed -e "s%^CC=\"gcc\"%CC=\"$soqt_build_dir/cfg/gendsp.pl\"%" \ 29375 -e "s%^CC=\".*/wrapmsvc.exe\"%CC=\"$soqt_build_dir/cfg/gendsp.pl\"%" \ 29376 <libtool.bak >libtool 29377 rm -f libtool.bak 29378 chmod 755 libtool 29379fi 29380 29381 29382 29383 29384 29385 29386 29387 29388# ************************************************************************** 29389# Mac OS X packaging 29390 29391 29392sim_ac_packagemaker_app=false 29393if test -d /Developer/Applications/PackageMaker.app; then 29394 sim_ac_packagemaker_app=/Developer/Applications/PackageMaker.app 29395elif test -d /Developer/Applications/Utilities/PackageMaker.app; then 29396 sim_ac_packagemaker_app=/Developer/Applications/Utilities/PackageMaker.app 29397fi 29398 29399 29400sim_ac_macosx_packageable=true 29401if test x"$sim_ac_packagemaker_app" = xfalse; then 29402 sim_ac_macosx_packageable=false 29403fi 29404 29405 29406 29407if $sim_ac_macosx_packageable; then 29408 MACOSX_PACKAGEABLE_TRUE= 29409 MACOSX_PACKAGEABLE_FALSE='#' 29410else 29411 MACOSX_PACKAGEABLE_TRUE='#' 29412 MACOSX_PACKAGEABLE_FALSE= 29413fi 29414 29415 29416# ************************************************************************** 29417# Submodules that needs to be configured... 29418 29419# Material editor(s) not part of the public API yet, so there's 29420# no point yet in installing the material data. 29421# AC_CONFIG_SUBDIRS(data) 29422 29423# ************************************************************************** 29424# List all files configure shall automatically generate. 29425# 29426# Note that soqt-$CONFIG.cfg needs to be generated from the configure 29427# script -- not just from the Makefile -- as the data/configure script 29428# depends on it. (data/configure is temporarily disabled, BTW, but anyway..) 29429 29430ac_config_files="$ac_config_files soqt-$CONFIG.cfg:src/Inventor/Qt/common/sogui.cfg.in SoQt.pc Makefile src/Makefile src/Inventor/Makefile src/Inventor/Qt/Makefile src/Inventor/Qt/devices/Makefile src/Inventor/Qt/editors/Makefile src/Inventor/Qt/engines/Makefile src/Inventor/Qt/nodes/Makefile src/Inventor/Qt/viewers/Makefile src/Inventor/Qt/widgets/Makefile man/Makefile man/man1/Makefile man/man3/Makefile html/Makefile htmlhelp/Makefile cfg/gendsp.pl" 29431 29432cat >confcache <<\_ACEOF 29433# This file is a shell script that caches the results of configure 29434# tests run on this system so they can be shared between configure 29435# scripts and configure runs, see configure's option --config-cache. 29436# It is not useful on other systems. If it contains results you don't 29437# want to keep, you may remove or edit it. 29438# 29439# config.status only pays attention to the cache file if you give it 29440# the --recheck option to rerun configure. 29441# 29442# `ac_cv_env_foo' variables (set or unset) will be overridden when 29443# loading this file, other *unset* `ac_cv_foo' will be assigned the 29444# following values. 29445 29446_ACEOF 29447 29448# The following way of writing the cache mishandles newlines in values, 29449# but we know of no workaround that is simple, portable, and efficient. 29450# So, we kill variables containing newlines. 29451# Ultrix sh set writes to stderr and can't be redirected directly, 29452# and sets the high bit in the cache file unless we assign to the vars. 29453( 29454 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 29455 eval ac_val=\$$ac_var 29456 case $ac_val in #( 29457 *${as_nl}*) 29458 case $ac_var in #( 29459 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 29460$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 29461 esac 29462 case $ac_var in #( 29463 _ | IFS | as_nl) ;; #( 29464 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 29465 *) { eval $ac_var=; unset $ac_var;} ;; 29466 esac ;; 29467 esac 29468 done 29469 29470 (set) 2>&1 | 29471 case $as_nl`(ac_space=' '; set) 2>&1` in #( 29472 *${as_nl}ac_space=\ *) 29473 # `set' does not quote correctly, so add quotes: double-quote 29474 # substitution turns \\\\ into \\, and sed turns \\ into \. 29475 sed -n \ 29476 "s/'/'\\\\''/g; 29477 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 29478 ;; #( 29479 *) 29480 # `set' quotes correctly as required by POSIX, so do not add quotes. 29481 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 29482 ;; 29483 esac | 29484 sort 29485) | 29486 sed ' 29487 /^ac_cv_env_/b end 29488 t clear 29489 :clear 29490 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 29491 t end 29492 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 29493 :end' >>confcache 29494if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 29495 if test -w "$cache_file"; then 29496 test "x$cache_file" != "x/dev/null" && 29497 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 29498$as_echo "$as_me: updating cache $cache_file" >&6;} 29499 cat confcache >$cache_file 29500 else 29501 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 29502$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 29503 fi 29504fi 29505rm -f confcache 29506 29507test "x$prefix" = xNONE && prefix=$ac_default_prefix 29508# Let make expand exec_prefix. 29509test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 29510 29511DEFS=-DHAVE_CONFIG_H 29512 29513ac_libobjs= 29514ac_ltlibobjs= 29515for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 29516 # 1. Remove the extension, and $U if already installed. 29517 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 29518 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 29519 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 29520 # will be set to the directory where LIBOBJS objects are built. 29521 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 29522 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 29523done 29524LIBOBJS=$ac_libobjs 29525 29526LTLIBOBJS=$ac_ltlibobjs 29527 29528 29529if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 29530 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. 29531Usually this means the macro was only invoked conditionally." "$LINENO" 5 29532fi 29533if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 29534 as_fn_error "conditional \"AMDEP\" was never defined. 29535Usually this means the macro was only invoked conditionally." "$LINENO" 5 29536fi 29537if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 29538 as_fn_error "conditional \"am__fastdepCC\" was never defined. 29539Usually this means the macro was only invoked conditionally." "$LINENO" 5 29540fi 29541if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 29542 as_fn_error "conditional \"am__fastdepCXX\" was never defined. 29543Usually this means the macro was only invoked conditionally." "$LINENO" 5 29544fi 29545if test -z "${HACKING_COMPACT_BUILD_TRUE}" && test -z "${HACKING_COMPACT_BUILD_FALSE}"; then 29546 as_fn_error "conditional \"HACKING_COMPACT_BUILD\" was never defined. 29547Usually this means the macro was only invoked conditionally." "$LINENO" 5 29548fi 29549if test -z "${BUILD_LIBRARY_TRUE}" && test -z "${BUILD_LIBRARY_FALSE}"; then 29550 as_fn_error "conditional \"BUILD_LIBRARY\" was never defined. 29551Usually this means the macro was only invoked conditionally." "$LINENO" 5 29552fi 29553if test -z "${BUILD_MANPAGES_TRUE}" && test -z "${BUILD_MANPAGES_FALSE}"; then 29554 as_fn_error "conditional \"BUILD_MANPAGES\" was never defined. 29555Usually this means the macro was only invoked conditionally." "$LINENO" 5 29556fi 29557if test -z "${BUILD_HTMLPAGES_TRUE}" && test -z "${BUILD_HTMLPAGES_FALSE}"; then 29558 as_fn_error "conditional \"BUILD_HTMLPAGES\" was never defined. 29559Usually this means the macro was only invoked conditionally." "$LINENO" 5 29560fi 29561if test -z "${BUILD_HTMLHELP_TRUE}" && test -z "${BUILD_HTMLHELP_FALSE}"; then 29562 as_fn_error "conditional \"BUILD_HTMLHELP\" was never defined. 29563Usually this means the macro was only invoked conditionally." "$LINENO" 5 29564fi 29565if test -z "${BUILD_METAFILES_TRUE}" && test -z "${BUILD_METAFILES_FALSE}"; then 29566 as_fn_error "conditional \"BUILD_METAFILES\" was never defined. 29567Usually this means the macro was only invoked conditionally." "$LINENO" 5 29568fi 29569if test -z "${HAVE_JOYSTICK_LINUX_TRUE}" && test -z "${HAVE_JOYSTICK_LINUX_FALSE}"; then 29570 as_fn_error "conditional \"HAVE_JOYSTICK_LINUX\" was never defined. 29571Usually this means the macro was only invoked conditionally." "$LINENO" 5 29572fi 29573if test -z "${MAC_FRAMEWORK_TRUE}" && test -z "${MAC_FRAMEWORK_FALSE}"; then 29574 as_fn_error "conditional \"MAC_FRAMEWORK\" was never defined. 29575Usually this means the macro was only invoked conditionally." "$LINENO" 5 29576fi 29577if test -z "${MAC_FRAMEWORK_TRUE}" && test -z "${MAC_FRAMEWORK_FALSE}"; then 29578 as_fn_error "conditional \"MAC_FRAMEWORK\" was never defined. 29579Usually this means the macro was only invoked conditionally." "$LINENO" 5 29580fi 29581if test -z "${MACOSX_TRUE}" && test -z "${MACOSX_FALSE}"; then 29582 as_fn_error "conditional \"MACOSX\" was never defined. 29583Usually this means the macro was only invoked conditionally." "$LINENO" 5 29584fi 29585if test -z "${MACOSX_10_2FF_TRUE}" && test -z "${MACOSX_10_2FF_FALSE}"; then 29586 as_fn_error "conditional \"MACOSX_10_2FF\" was never defined. 29587Usually this means the macro was only invoked conditionally." "$LINENO" 5 29588fi 29589if test -z "${BUILD_WITH_MSVC_TRUE}" && test -z "${BUILD_WITH_MSVC_FALSE}"; then 29590 as_fn_error "conditional \"BUILD_WITH_MSVC\" was never defined. 29591Usually this means the macro was only invoked conditionally." "$LINENO" 5 29592fi 29593if test -z "${MACOSX_PACKAGEABLE_TRUE}" && test -z "${MACOSX_PACKAGEABLE_FALSE}"; then 29594 as_fn_error "conditional \"MACOSX_PACKAGEABLE\" was never defined. 29595Usually this means the macro was only invoked conditionally." "$LINENO" 5 29596fi 29597 29598: ${CONFIG_STATUS=./config.status} 29599ac_write_fail=0 29600ac_clean_files_save=$ac_clean_files 29601ac_clean_files="$ac_clean_files $CONFIG_STATUS" 29602{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 29603$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 29604as_write_fail=0 29605cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 29606#! $SHELL 29607# Generated by $as_me. 29608# Run this file to recreate the current configuration. 29609# Compiler output produced by configure, useful for debugging 29610# configure, is in config.log if it exists. 29611 29612debug=false 29613ac_cs_recheck=false 29614ac_cs_silent=false 29615 29616SHELL=\${CONFIG_SHELL-$SHELL} 29617export SHELL 29618_ASEOF 29619cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 29620## -------------------- ## 29621## M4sh Initialization. ## 29622## -------------------- ## 29623 29624# Be more Bourne compatible 29625DUALCASE=1; export DUALCASE # for MKS sh 29626if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 29627 emulate sh 29628 NULLCMD=: 29629 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 29630 # is contrary to our usage. Disable this feature. 29631 alias -g '${1+"$@"}'='"$@"' 29632 setopt NO_GLOB_SUBST 29633else 29634 case `(set -o) 2>/dev/null` in #( 29635 *posix*) : 29636 set -o posix ;; #( 29637 *) : 29638 ;; 29639esac 29640fi 29641 29642 29643as_nl=' 29644' 29645export as_nl 29646# Printing a long string crashes Solaris 7 /usr/bin/printf. 29647as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 29648as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 29649as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 29650# Prefer a ksh shell builtin over an external printf program on Solaris, 29651# but without wasting forks for bash or zsh. 29652if test -z "$BASH_VERSION$ZSH_VERSION" \ 29653 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 29654 as_echo='print -r --' 29655 as_echo_n='print -rn --' 29656elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 29657 as_echo='printf %s\n' 29658 as_echo_n='printf %s' 29659else 29660 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 29661 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 29662 as_echo_n='/usr/ucb/echo -n' 29663 else 29664 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 29665 as_echo_n_body='eval 29666 arg=$1; 29667 case $arg in #( 29668 *"$as_nl"*) 29669 expr "X$arg" : "X\\(.*\\)$as_nl"; 29670 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 29671 esac; 29672 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 29673 ' 29674 export as_echo_n_body 29675 as_echo_n='sh -c $as_echo_n_body as_echo' 29676 fi 29677 export as_echo_body 29678 as_echo='sh -c $as_echo_body as_echo' 29679fi 29680 29681# The user is always right. 29682if test "${PATH_SEPARATOR+set}" != set; then 29683 PATH_SEPARATOR=: 29684 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 29685 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 29686 PATH_SEPARATOR=';' 29687 } 29688fi 29689 29690 29691# IFS 29692# We need space, tab and new line, in precisely that order. Quoting is 29693# there to prevent editors from complaining about space-tab. 29694# (If _AS_PATH_WALK were called with IFS unset, it would disable word 29695# splitting by setting IFS to empty value.) 29696IFS=" "" $as_nl" 29697 29698# Find who we are. Look in the path if we contain no directory separator. 29699case $0 in #(( 29700 *[\\/]* ) as_myself=$0 ;; 29701 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29702for as_dir in $PATH 29703do 29704 IFS=$as_save_IFS 29705 test -z "$as_dir" && as_dir=. 29706 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 29707 done 29708IFS=$as_save_IFS 29709 29710 ;; 29711esac 29712# We did not find ourselves, most probably we were run as `sh COMMAND' 29713# in which case we are not to be found in the path. 29714if test "x$as_myself" = x; then 29715 as_myself=$0 29716fi 29717if test ! -f "$as_myself"; then 29718 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 29719 exit 1 29720fi 29721 29722# Unset variables that we do not need and which cause bugs (e.g. in 29723# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 29724# suppresses any "Segmentation fault" message there. '((' could 29725# trigger a bug in pdksh 5.2.14. 29726for as_var in BASH_ENV ENV MAIL MAILPATH 29727do eval test x\${$as_var+set} = xset \ 29728 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 29729done 29730PS1='$ ' 29731PS2='> ' 29732PS4='+ ' 29733 29734# NLS nuisances. 29735LC_ALL=C 29736export LC_ALL 29737LANGUAGE=C 29738export LANGUAGE 29739 29740# CDPATH. 29741(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 29742 29743 29744# as_fn_error ERROR [LINENO LOG_FD] 29745# --------------------------------- 29746# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 29747# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 29748# script with status $?, using 1 if that was 0. 29749as_fn_error () 29750{ 29751 as_status=$?; test $as_status -eq 0 && as_status=1 29752 if test "$3"; then 29753 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 29754 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 29755 fi 29756 $as_echo "$as_me: error: $1" >&2 29757 as_fn_exit $as_status 29758} # as_fn_error 29759 29760 29761# as_fn_set_status STATUS 29762# ----------------------- 29763# Set $? to STATUS, without forking. 29764as_fn_set_status () 29765{ 29766 return $1 29767} # as_fn_set_status 29768 29769# as_fn_exit STATUS 29770# ----------------- 29771# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 29772as_fn_exit () 29773{ 29774 set +e 29775 as_fn_set_status $1 29776 exit $1 29777} # as_fn_exit 29778 29779# as_fn_unset VAR 29780# --------------- 29781# Portably unset VAR. 29782as_fn_unset () 29783{ 29784 { eval $1=; unset $1;} 29785} 29786as_unset=as_fn_unset 29787# as_fn_append VAR VALUE 29788# ---------------------- 29789# Append the text in VALUE to the end of the definition contained in VAR. Take 29790# advantage of any shell optimizations that allow amortized linear growth over 29791# repeated appends, instead of the typical quadratic growth present in naive 29792# implementations. 29793if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 29794 eval 'as_fn_append () 29795 { 29796 eval $1+=\$2 29797 }' 29798else 29799 as_fn_append () 29800 { 29801 eval $1=\$$1\$2 29802 } 29803fi # as_fn_append 29804 29805# as_fn_arith ARG... 29806# ------------------ 29807# Perform arithmetic evaluation on the ARGs, and store the result in the 29808# global $as_val. Take advantage of shells that can avoid forks. The arguments 29809# must be portable across $(()) and expr. 29810if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 29811 eval 'as_fn_arith () 29812 { 29813 as_val=$(( $* )) 29814 }' 29815else 29816 as_fn_arith () 29817 { 29818 as_val=`expr "$@" || test $? -eq 1` 29819 } 29820fi # as_fn_arith 29821 29822 29823if expr a : '\(a\)' >/dev/null 2>&1 && 29824 test "X`expr 00001 : '.*\(...\)'`" = X001; then 29825 as_expr=expr 29826else 29827 as_expr=false 29828fi 29829 29830if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 29831 as_basename=basename 29832else 29833 as_basename=false 29834fi 29835 29836if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 29837 as_dirname=dirname 29838else 29839 as_dirname=false 29840fi 29841 29842as_me=`$as_basename -- "$0" || 29843$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 29844 X"$0" : 'X\(//\)$' \| \ 29845 X"$0" : 'X\(/\)' \| . 2>/dev/null || 29846$as_echo X/"$0" | 29847 sed '/^.*\/\([^/][^/]*\)\/*$/{ 29848 s//\1/ 29849 q 29850 } 29851 /^X\/\(\/\/\)$/{ 29852 s//\1/ 29853 q 29854 } 29855 /^X\/\(\/\).*/{ 29856 s//\1/ 29857 q 29858 } 29859 s/.*/./; q'` 29860 29861# Avoid depending upon Character Ranges. 29862as_cr_letters='abcdefghijklmnopqrstuvwxyz' 29863as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 29864as_cr_Letters=$as_cr_letters$as_cr_LETTERS 29865as_cr_digits='0123456789' 29866as_cr_alnum=$as_cr_Letters$as_cr_digits 29867 29868ECHO_C= ECHO_N= ECHO_T= 29869case `echo -n x` in #((((( 29870-n*) 29871 case `echo 'xy\c'` in 29872 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 29873 xy) ECHO_C='\c';; 29874 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 29875 ECHO_T=' ';; 29876 esac;; 29877*) 29878 ECHO_N='-n';; 29879esac 29880 29881rm -f conf$$ conf$$.exe conf$$.file 29882if test -d conf$$.dir; then 29883 rm -f conf$$.dir/conf$$.file 29884else 29885 rm -f conf$$.dir 29886 mkdir conf$$.dir 2>/dev/null 29887fi 29888if (echo >conf$$.file) 2>/dev/null; then 29889 if ln -s conf$$.file conf$$ 2>/dev/null; then 29890 as_ln_s='ln -s' 29891 # ... but there are two gotchas: 29892 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 29893 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 29894 # In both cases, we have to default to `cp -p'. 29895 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 29896 as_ln_s='cp -p' 29897 elif ln conf$$.file conf$$ 2>/dev/null; then 29898 as_ln_s=ln 29899 else 29900 as_ln_s='cp -p' 29901 fi 29902else 29903 as_ln_s='cp -p' 29904fi 29905rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 29906rmdir conf$$.dir 2>/dev/null 29907 29908 29909# as_fn_mkdir_p 29910# ------------- 29911# Create "$as_dir" as a directory, including parents if necessary. 29912as_fn_mkdir_p () 29913{ 29914 29915 case $as_dir in #( 29916 -*) as_dir=./$as_dir;; 29917 esac 29918 test -d "$as_dir" || eval $as_mkdir_p || { 29919 as_dirs= 29920 while :; do 29921 case $as_dir in #( 29922 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 29923 *) as_qdir=$as_dir;; 29924 esac 29925 as_dirs="'$as_qdir' $as_dirs" 29926 as_dir=`$as_dirname -- "$as_dir" || 29927$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 29928 X"$as_dir" : 'X\(//\)[^/]' \| \ 29929 X"$as_dir" : 'X\(//\)$' \| \ 29930 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 29931$as_echo X"$as_dir" | 29932 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 29933 s//\1/ 29934 q 29935 } 29936 /^X\(\/\/\)[^/].*/{ 29937 s//\1/ 29938 q 29939 } 29940 /^X\(\/\/\)$/{ 29941 s//\1/ 29942 q 29943 } 29944 /^X\(\/\).*/{ 29945 s//\1/ 29946 q 29947 } 29948 s/.*/./; q'` 29949 test -d "$as_dir" && break 29950 done 29951 test -z "$as_dirs" || eval "mkdir $as_dirs" 29952 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 29953 29954 29955} # as_fn_mkdir_p 29956if mkdir -p . 2>/dev/null; then 29957 as_mkdir_p='mkdir -p "$as_dir"' 29958else 29959 test -d ./-p && rmdir ./-p 29960 as_mkdir_p=false 29961fi 29962 29963if test -x / >/dev/null 2>&1; then 29964 as_test_x='test -x' 29965else 29966 if ls -dL / >/dev/null 2>&1; then 29967 as_ls_L_option=L 29968 else 29969 as_ls_L_option= 29970 fi 29971 as_test_x=' 29972 eval sh -c '\'' 29973 if test -d "$1"; then 29974 test -d "$1/."; 29975 else 29976 case $1 in #( 29977 -*)set "./$1";; 29978 esac; 29979 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 29980 ???[sx]*):;;*)false;;esac;fi 29981 '\'' sh 29982 ' 29983fi 29984as_executable_p=$as_test_x 29985 29986# Sed expression to map a string onto a valid CPP name. 29987as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 29988 29989# Sed expression to map a string onto a valid variable name. 29990as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 29991 29992 29993exec 6>&1 29994## ----------------------------------- ## 29995## Main body of $CONFIG_STATUS script. ## 29996## ----------------------------------- ## 29997_ASEOF 29998test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 29999 30000cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30001# Save the log message, to keep $0 and so on meaningful, and to 30002# report actual input values of CONFIG_FILES etc. instead of their 30003# values after options handling. 30004ac_log=" 30005This file was extended by SoQt $as_me 1.6.0, which was 30006generated by GNU Autoconf 2.65. Invocation command line was 30007 30008 CONFIG_FILES = $CONFIG_FILES 30009 CONFIG_HEADERS = $CONFIG_HEADERS 30010 CONFIG_LINKS = $CONFIG_LINKS 30011 CONFIG_COMMANDS = $CONFIG_COMMANDS 30012 $ $0 $@ 30013 30014on `(hostname || uname -n) 2>/dev/null | sed 1q` 30015" 30016 30017_ACEOF 30018 30019case $ac_config_files in *" 30020"*) set x $ac_config_files; shift; ac_config_files=$*;; 30021esac 30022 30023case $ac_config_headers in *" 30024"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 30025esac 30026 30027 30028cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30029# Files that config.status was made for. 30030config_files="$ac_config_files" 30031config_headers="$ac_config_headers" 30032config_commands="$ac_config_commands" 30033 30034_ACEOF 30035 30036cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30037ac_cs_usage="\ 30038\`$as_me' instantiates files and other configuration actions 30039from templates according to the current configuration. Unless the files 30040and actions are specified as TAGs, all are instantiated by default. 30041 30042Usage: $0 [OPTION]... [TAG]... 30043 30044 -h, --help print this help, then exit 30045 -V, --version print version number and configuration settings, then exit 30046 --config print configuration, then exit 30047 -q, --quiet, --silent 30048 do not print progress messages 30049 -d, --debug don't remove temporary files 30050 --recheck update $as_me by reconfiguring in the same conditions 30051 --file=FILE[:TEMPLATE] 30052 instantiate the configuration file FILE 30053 --header=FILE[:TEMPLATE] 30054 instantiate the configuration header FILE 30055 30056Configuration files: 30057$config_files 30058 30059Configuration headers: 30060$config_headers 30061 30062Configuration commands: 30063$config_commands 30064 30065Report bugs to <coin-support@coin3d.org>." 30066 30067_ACEOF 30068cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30069ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 30070ac_cs_version="\\ 30071SoQt config.status 1.6.0 30072configured by $0, generated by GNU Autoconf 2.65, 30073 with options \\"\$ac_cs_config\\" 30074 30075Copyright (C) 2009 Free Software Foundation, Inc. 30076This config.status script is free software; the Free Software Foundation 30077gives unlimited permission to copy, distribute and modify it." 30078 30079ac_pwd='$ac_pwd' 30080srcdir='$srcdir' 30081INSTALL='$INSTALL' 30082AWK='$AWK' 30083test -n "\$AWK" || AWK=awk 30084_ACEOF 30085 30086cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30087# The default lists apply if the user does not specify any file. 30088ac_need_defaults=: 30089while test $# != 0 30090do 30091 case $1 in 30092 --*=*) 30093 ac_option=`expr "X$1" : 'X\([^=]*\)='` 30094 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 30095 ac_shift=: 30096 ;; 30097 *) 30098 ac_option=$1 30099 ac_optarg=$2 30100 ac_shift=shift 30101 ;; 30102 esac 30103 30104 case $ac_option in 30105 # Handling of the options. 30106 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 30107 ac_cs_recheck=: ;; 30108 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 30109 $as_echo "$ac_cs_version"; exit ;; 30110 --config | --confi | --conf | --con | --co | --c ) 30111 $as_echo "$ac_cs_config"; exit ;; 30112 --debug | --debu | --deb | --de | --d | -d ) 30113 debug=: ;; 30114 --file | --fil | --fi | --f ) 30115 $ac_shift 30116 case $ac_optarg in 30117 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 30118 esac 30119 as_fn_append CONFIG_FILES " '$ac_optarg'" 30120 ac_need_defaults=false;; 30121 --header | --heade | --head | --hea ) 30122 $ac_shift 30123 case $ac_optarg in 30124 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 30125 esac 30126 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 30127 ac_need_defaults=false;; 30128 --he | --h) 30129 # Conflict between --help and --header 30130 as_fn_error "ambiguous option: \`$1' 30131Try \`$0 --help' for more information.";; 30132 --help | --hel | -h ) 30133 $as_echo "$ac_cs_usage"; exit ;; 30134 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 30135 | -silent | --silent | --silen | --sile | --sil | --si | --s) 30136 ac_cs_silent=: ;; 30137 30138 # This is an error. 30139 -*) as_fn_error "unrecognized option: \`$1' 30140Try \`$0 --help' for more information." ;; 30141 30142 *) as_fn_append ac_config_targets " $1" 30143 ac_need_defaults=false ;; 30144 30145 esac 30146 shift 30147done 30148 30149ac_configure_extra_args= 30150 30151if $ac_cs_silent; then 30152 exec 6>/dev/null 30153 ac_configure_extra_args="$ac_configure_extra_args --silent" 30154fi 30155 30156_ACEOF 30157cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30158if \$ac_cs_recheck; then 30159 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 30160 shift 30161 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 30162 CONFIG_SHELL='$SHELL' 30163 export CONFIG_SHELL 30164 exec "\$@" 30165fi 30166 30167_ACEOF 30168cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30169exec 5>>config.log 30170{ 30171 echo 30172 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 30173## Running $as_me. ## 30174_ASBOX 30175 $as_echo "$ac_log" 30176} >&5 30177 30178_ACEOF 30179cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30180# 30181# INIT-COMMANDS 30182# 30183AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 30184 30185_ACEOF 30186 30187cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30188 30189# Handling of arguments. 30190for ac_config_target in $ac_config_targets 30191do 30192 case $ac_config_target in 30193 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 30194 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 30195 "soqt-$CONFIG.cfg") CONFIG_FILES="$CONFIG_FILES soqt-$CONFIG.cfg:src/Inventor/Qt/common/sogui.cfg.in" ;; 30196 "SoQt.pc") CONFIG_FILES="$CONFIG_FILES SoQt.pc" ;; 30197 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 30198 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 30199 "src/Inventor/Makefile") CONFIG_FILES="$CONFIG_FILES src/Inventor/Makefile" ;; 30200 "src/Inventor/Qt/Makefile") CONFIG_FILES="$CONFIG_FILES src/Inventor/Qt/Makefile" ;; 30201 "src/Inventor/Qt/devices/Makefile") CONFIG_FILES="$CONFIG_FILES src/Inventor/Qt/devices/Makefile" ;; 30202 "src/Inventor/Qt/editors/Makefile") CONFIG_FILES="$CONFIG_FILES src/Inventor/Qt/editors/Makefile" ;; 30203 "src/Inventor/Qt/engines/Makefile") CONFIG_FILES="$CONFIG_FILES src/Inventor/Qt/engines/Makefile" ;; 30204 "src/Inventor/Qt/nodes/Makefile") CONFIG_FILES="$CONFIG_FILES src/Inventor/Qt/nodes/Makefile" ;; 30205 "src/Inventor/Qt/viewers/Makefile") CONFIG_FILES="$CONFIG_FILES src/Inventor/Qt/viewers/Makefile" ;; 30206 "src/Inventor/Qt/widgets/Makefile") CONFIG_FILES="$CONFIG_FILES src/Inventor/Qt/widgets/Makefile" ;; 30207 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 30208 "man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES man/man1/Makefile" ;; 30209 "man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES man/man3/Makefile" ;; 30210 "html/Makefile") CONFIG_FILES="$CONFIG_FILES html/Makefile" ;; 30211 "htmlhelp/Makefile") CONFIG_FILES="$CONFIG_FILES htmlhelp/Makefile" ;; 30212 "cfg/gendsp.pl") CONFIG_FILES="$CONFIG_FILES cfg/gendsp.pl" ;; 30213 30214 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 30215 esac 30216done 30217 30218 30219# If the user did not use the arguments to specify the items to instantiate, 30220# then the envvar interface is used. Set only those that are not. 30221# We use the long form for the default assignment because of an extremely 30222# bizarre bug on SunOS 4.1.3. 30223if $ac_need_defaults; then 30224 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 30225 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 30226 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 30227fi 30228 30229# Have a temporary directory for convenience. Make it in the build tree 30230# simply because there is no reason against having it here, and in addition, 30231# creating and moving files from /tmp can sometimes cause problems. 30232# Hook for its removal unless debugging. 30233# Note that there is a small window in which the directory will not be cleaned: 30234# after its creation but before its name has been assigned to `$tmp'. 30235$debug || 30236{ 30237 tmp= 30238 trap 'exit_status=$? 30239 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 30240' 0 30241 trap 'as_fn_exit 1' 1 2 13 15 30242} 30243# Create a (secure) tmp directory for tmp files. 30244 30245{ 30246 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 30247 test -n "$tmp" && test -d "$tmp" 30248} || 30249{ 30250 tmp=./conf$$-$RANDOM 30251 (umask 077 && mkdir "$tmp") 30252} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 30253 30254# Set up the scripts for CONFIG_FILES section. 30255# No need to generate them if there are no CONFIG_FILES. 30256# This happens for instance with `./config.status config.h'. 30257if test -n "$CONFIG_FILES"; then 30258 30259 30260ac_cr=`echo X | tr X '\015'` 30261# On cygwin, bash can eat \r inside `` if the user requested igncr. 30262# But we know of no other shell where ac_cr would be empty at this 30263# point, so we can use a bashism as a fallback. 30264if test "x$ac_cr" = x; then 30265 eval ac_cr=\$\'\\r\' 30266fi 30267ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 30268if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 30269 ac_cs_awk_cr='\r' 30270else 30271 ac_cs_awk_cr=$ac_cr 30272fi 30273 30274echo 'BEGIN {' >"$tmp/subs1.awk" && 30275_ACEOF 30276 30277 30278{ 30279 echo "cat >conf$$subs.awk <<_ACEOF" && 30280 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 30281 echo "_ACEOF" 30282} >conf$$subs.sh || 30283 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 30284ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 30285ac_delim='%!_!# ' 30286for ac_last_try in false false false false false :; do 30287 . ./conf$$subs.sh || 30288 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 30289 30290 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 30291 if test $ac_delim_n = $ac_delim_num; then 30292 break 30293 elif $ac_last_try; then 30294 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 30295 else 30296 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 30297 fi 30298done 30299rm -f conf$$subs.sh 30300 30301cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30302cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 30303_ACEOF 30304sed -n ' 30305h 30306s/^/S["/; s/!.*/"]=/ 30307p 30308g 30309s/^[^!]*!// 30310:repl 30311t repl 30312s/'"$ac_delim"'$// 30313t delim 30314:nl 30315h 30316s/\(.\{148\}\)..*/\1/ 30317t more1 30318s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 30319p 30320n 30321b repl 30322:more1 30323s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 30324p 30325g 30326s/.\{148\}// 30327t nl 30328:delim 30329h 30330s/\(.\{148\}\)..*/\1/ 30331t more2 30332s/["\\]/\\&/g; s/^/"/; s/$/"/ 30333p 30334b 30335:more2 30336s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 30337p 30338g 30339s/.\{148\}// 30340t delim 30341' <conf$$subs.awk | sed ' 30342/^[^""]/{ 30343 N 30344 s/\n// 30345} 30346' >>$CONFIG_STATUS || ac_write_fail=1 30347rm -f conf$$subs.awk 30348cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30349_ACAWK 30350cat >>"\$tmp/subs1.awk" <<_ACAWK && 30351 for (key in S) S_is_set[key] = 1 30352 FS = "" 30353 30354} 30355{ 30356 line = $ 0 30357 nfields = split(line, field, "@") 30358 substed = 0 30359 len = length(field[1]) 30360 for (i = 2; i < nfields; i++) { 30361 key = field[i] 30362 keylen = length(key) 30363 if (S_is_set[key]) { 30364 value = S[key] 30365 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 30366 len += length(value) + length(field[++i]) 30367 substed = 1 30368 } else 30369 len += 1 + keylen 30370 } 30371 30372 print line 30373} 30374 30375_ACAWK 30376_ACEOF 30377cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30378if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 30379 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 30380else 30381 cat 30382fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 30383 || as_fn_error "could not setup config files machinery" "$LINENO" 5 30384_ACEOF 30385 30386# VPATH may cause trouble with some makes, so we remove $(srcdir), 30387# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 30388# trailing colons and then remove the whole line if VPATH becomes empty 30389# (actually we leave an empty line to preserve line numbers). 30390if test "x$srcdir" = x.; then 30391 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 30392s/:*\$(srcdir):*/:/ 30393s/:*\${srcdir}:*/:/ 30394s/:*@srcdir@:*/:/ 30395s/^\([^=]*=[ ]*\):*/\1/ 30396s/:*$// 30397s/^[^=]*=[ ]*$// 30398}' 30399fi 30400 30401cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30402fi # test -n "$CONFIG_FILES" 30403 30404# Set up the scripts for CONFIG_HEADERS section. 30405# No need to generate them if there are no CONFIG_HEADERS. 30406# This happens for instance with `./config.status Makefile'. 30407if test -n "$CONFIG_HEADERS"; then 30408cat >"$tmp/defines.awk" <<\_ACAWK || 30409BEGIN { 30410_ACEOF 30411 30412# Transform confdefs.h into an awk script `defines.awk', embedded as 30413# here-document in config.status, that substitutes the proper values into 30414# config.h.in to produce config.h. 30415 30416# Create a delimiter string that does not exist in confdefs.h, to ease 30417# handling of long lines. 30418ac_delim='%!_!# ' 30419for ac_last_try in false false :; do 30420 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 30421 if test -z "$ac_t"; then 30422 break 30423 elif $ac_last_try; then 30424 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 30425 else 30426 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 30427 fi 30428done 30429 30430# For the awk script, D is an array of macro values keyed by name, 30431# likewise P contains macro parameters if any. Preserve backslash 30432# newline sequences. 30433 30434ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 30435sed -n ' 30436s/.\{148\}/&'"$ac_delim"'/g 30437t rset 30438:rset 30439s/^[ ]*#[ ]*define[ ][ ]*/ / 30440t def 30441d 30442:def 30443s/\\$// 30444t bsnl 30445s/["\\]/\\&/g 30446s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 30447D["\1"]=" \3"/p 30448s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 30449d 30450:bsnl 30451s/["\\]/\\&/g 30452s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 30453D["\1"]=" \3\\\\\\n"\\/p 30454t cont 30455s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 30456t cont 30457d 30458:cont 30459n 30460s/.\{148\}/&'"$ac_delim"'/g 30461t clear 30462:clear 30463s/\\$// 30464t bsnlc 30465s/["\\]/\\&/g; s/^/"/; s/$/"/p 30466d 30467:bsnlc 30468s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 30469b cont 30470' <confdefs.h | sed ' 30471s/'"$ac_delim"'/"\\\ 30472"/g' >>$CONFIG_STATUS || ac_write_fail=1 30473 30474cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30475 for (key in D) D_is_set[key] = 1 30476 FS = "" 30477} 30478/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 30479 line = \$ 0 30480 split(line, arg, " ") 30481 if (arg[1] == "#") { 30482 defundef = arg[2] 30483 mac1 = arg[3] 30484 } else { 30485 defundef = substr(arg[1], 2) 30486 mac1 = arg[2] 30487 } 30488 split(mac1, mac2, "(") #) 30489 macro = mac2[1] 30490 prefix = substr(line, 1, index(line, defundef) - 1) 30491 if (D_is_set[macro]) { 30492 # Preserve the white space surrounding the "#". 30493 print prefix "define", macro P[macro] D[macro] 30494 next 30495 } else { 30496 # Replace #undef with comments. This is necessary, for example, 30497 # in the case of _POSIX_SOURCE, which is predefined and required 30498 # on some systems where configure will not decide to define it. 30499 if (defundef == "undef") { 30500 print "/*", prefix defundef, macro, "*/" 30501 next 30502 } 30503 } 30504} 30505{ print } 30506_ACAWK 30507_ACEOF 30508cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30509 as_fn_error "could not setup config headers machinery" "$LINENO" 5 30510fi # test -n "$CONFIG_HEADERS" 30511 30512 30513eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 30514shift 30515for ac_tag 30516do 30517 case $ac_tag in 30518 :[FHLC]) ac_mode=$ac_tag; continue;; 30519 esac 30520 case $ac_mode$ac_tag in 30521 :[FHL]*:*);; 30522 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 30523 :[FH]-) ac_tag=-:-;; 30524 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 30525 esac 30526 ac_save_IFS=$IFS 30527 IFS=: 30528 set x $ac_tag 30529 IFS=$ac_save_IFS 30530 shift 30531 ac_file=$1 30532 shift 30533 30534 case $ac_mode in 30535 :L) ac_source=$1;; 30536 :[FH]) 30537 ac_file_inputs= 30538 for ac_f 30539 do 30540 case $ac_f in 30541 -) ac_f="$tmp/stdin";; 30542 *) # Look for the file first in the build tree, then in the source tree 30543 # (if the path is not absolute). The absolute path cannot be DOS-style, 30544 # because $ac_f cannot contain `:'. 30545 test -f "$ac_f" || 30546 case $ac_f in 30547 [\\/$]*) false;; 30548 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 30549 esac || 30550 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 30551 esac 30552 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 30553 as_fn_append ac_file_inputs " '$ac_f'" 30554 done 30555 30556 # Let's still pretend it is `configure' which instantiates (i.e., don't 30557 # use $as_me), people would be surprised to read: 30558 # /* config.h. Generated by config.status. */ 30559 configure_input='Generated from '` 30560 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 30561 `' by configure.' 30562 if test x"$ac_file" != x-; then 30563 configure_input="$ac_file. $configure_input" 30564 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 30565$as_echo "$as_me: creating $ac_file" >&6;} 30566 fi 30567 # Neutralize special characters interpreted by sed in replacement strings. 30568 case $configure_input in #( 30569 *\&* | *\|* | *\\* ) 30570 ac_sed_conf_input=`$as_echo "$configure_input" | 30571 sed 's/[\\\\&|]/\\\\&/g'`;; #( 30572 *) ac_sed_conf_input=$configure_input;; 30573 esac 30574 30575 case $ac_tag in 30576 *:-:* | *:-) cat >"$tmp/stdin" \ 30577 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 30578 esac 30579 ;; 30580 esac 30581 30582 ac_dir=`$as_dirname -- "$ac_file" || 30583$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 30584 X"$ac_file" : 'X\(//\)[^/]' \| \ 30585 X"$ac_file" : 'X\(//\)$' \| \ 30586 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 30587$as_echo X"$ac_file" | 30588 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 30589 s//\1/ 30590 q 30591 } 30592 /^X\(\/\/\)[^/].*/{ 30593 s//\1/ 30594 q 30595 } 30596 /^X\(\/\/\)$/{ 30597 s//\1/ 30598 q 30599 } 30600 /^X\(\/\).*/{ 30601 s//\1/ 30602 q 30603 } 30604 s/.*/./; q'` 30605 as_dir="$ac_dir"; as_fn_mkdir_p 30606 ac_builddir=. 30607 30608case "$ac_dir" in 30609.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 30610*) 30611 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 30612 # A ".." for each directory in $ac_dir_suffix. 30613 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 30614 case $ac_top_builddir_sub in 30615 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 30616 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 30617 esac ;; 30618esac 30619ac_abs_top_builddir=$ac_pwd 30620ac_abs_builddir=$ac_pwd$ac_dir_suffix 30621# for backward compatibility: 30622ac_top_builddir=$ac_top_build_prefix 30623 30624case $srcdir in 30625 .) # We are building in place. 30626 ac_srcdir=. 30627 ac_top_srcdir=$ac_top_builddir_sub 30628 ac_abs_top_srcdir=$ac_pwd ;; 30629 [\\/]* | ?:[\\/]* ) # Absolute name. 30630 ac_srcdir=$srcdir$ac_dir_suffix; 30631 ac_top_srcdir=$srcdir 30632 ac_abs_top_srcdir=$srcdir ;; 30633 *) # Relative name. 30634 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 30635 ac_top_srcdir=$ac_top_build_prefix$srcdir 30636 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 30637esac 30638ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 30639 30640 30641 case $ac_mode in 30642 :F) 30643 # 30644 # CONFIG_FILE 30645 # 30646 30647 case $INSTALL in 30648 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 30649 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 30650 esac 30651_ACEOF 30652 30653cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30654# If the template does not know about datarootdir, expand it. 30655# FIXME: This hack should be removed a few years after 2.60. 30656ac_datarootdir_hack=; ac_datarootdir_seen= 30657ac_sed_dataroot=' 30658/datarootdir/ { 30659 p 30660 q 30661} 30662/@datadir@/p 30663/@docdir@/p 30664/@infodir@/p 30665/@localedir@/p 30666/@mandir@/p' 30667case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 30668*datarootdir*) ac_datarootdir_seen=yes;; 30669*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 30670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 30671$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 30672_ACEOF 30673cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30674 ac_datarootdir_hack=' 30675 s&@datadir@&$datadir&g 30676 s&@docdir@&$docdir&g 30677 s&@infodir@&$infodir&g 30678 s&@localedir@&$localedir&g 30679 s&@mandir@&$mandir&g 30680 s&\\\${datarootdir}&$datarootdir&g' ;; 30681esac 30682_ACEOF 30683 30684# Neutralize VPATH when `$srcdir' = `.'. 30685# Shell code in configure.ac might set extrasub. 30686# FIXME: do we really want to maintain this feature? 30687cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30688ac_sed_extra="$ac_vpsub 30689$extrasub 30690_ACEOF 30691cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30692:t 30693/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 30694s|@configure_input@|$ac_sed_conf_input|;t t 30695s&@top_builddir@&$ac_top_builddir_sub&;t t 30696s&@top_build_prefix@&$ac_top_build_prefix&;t t 30697s&@srcdir@&$ac_srcdir&;t t 30698s&@abs_srcdir@&$ac_abs_srcdir&;t t 30699s&@top_srcdir@&$ac_top_srcdir&;t t 30700s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 30701s&@builddir@&$ac_builddir&;t t 30702s&@abs_builddir@&$ac_abs_builddir&;t t 30703s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 30704s&@INSTALL@&$ac_INSTALL&;t t 30705$ac_datarootdir_hack 30706" 30707eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 30708 || as_fn_error "could not create $ac_file" "$LINENO" 5 30709 30710test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 30711 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 30712 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 30713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 30714which seems to be undefined. Please make sure it is defined." >&5 30715$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 30716which seems to be undefined. Please make sure it is defined." >&2;} 30717 30718 rm -f "$tmp/stdin" 30719 case $ac_file in 30720 -) cat "$tmp/out" && rm -f "$tmp/out";; 30721 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 30722 esac \ 30723 || as_fn_error "could not create $ac_file" "$LINENO" 5 30724 ;; 30725 :H) 30726 # 30727 # CONFIG_HEADER 30728 # 30729 if test x"$ac_file" != x-; then 30730 { 30731 $as_echo "/* $configure_input */" \ 30732 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 30733 } >"$tmp/config.h" \ 30734 || as_fn_error "could not create $ac_file" "$LINENO" 5 30735 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 30736 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 30737$as_echo "$as_me: $ac_file is unchanged" >&6;} 30738 else 30739 rm -f "$ac_file" 30740 mv "$tmp/config.h" "$ac_file" \ 30741 || as_fn_error "could not create $ac_file" "$LINENO" 5 30742 fi 30743 else 30744 $as_echo "/* $configure_input */" \ 30745 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 30746 || as_fn_error "could not create -" "$LINENO" 5 30747 fi 30748# Compute "$ac_file"'s index in $config_headers. 30749_am_stamp_count=1 30750for _am_header in $config_headers :; do 30751 case $_am_header in 30752 "$ac_file" | "$ac_file":* ) 30753 break ;; 30754 * ) 30755 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 30756 esac 30757done 30758echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" || 30759$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 30760 X"$ac_file" : 'X\(//\)[^/]' \| \ 30761 X"$ac_file" : 'X\(//\)$' \| \ 30762 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 30763$as_echo X"$ac_file" | 30764 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 30765 s//\1/ 30766 q 30767 } 30768 /^X\(\/\/\)[^/].*/{ 30769 s//\1/ 30770 q 30771 } 30772 /^X\(\/\/\)$/{ 30773 s//\1/ 30774 q 30775 } 30776 /^X\(\/\).*/{ 30777 s//\1/ 30778 q 30779 } 30780 s/.*/./; q'`/stamp-h$_am_stamp_count 30781 ;; 30782 30783 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 30784$as_echo "$as_me: executing $ac_file commands" >&6;} 30785 ;; 30786 esac 30787 30788 30789 case $ac_file$ac_mode in 30790 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 30791 # Strip MF so we end up with the name of the file. 30792 mf=`echo "$mf" | sed -e 's/:.*$//'` 30793 # Check whether this is an Automake generated Makefile or not. 30794 # We used to match only the files named `Makefile.in', but 30795 # some people rename them; so instead we look at the file content. 30796 # Grep'ing the first line is not enough: some people post-process 30797 # each Makefile.in and add a new line on top of each file to say so. 30798 # So let's grep whole file. 30799 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 30800 dirpart=`$as_dirname -- "$mf" || 30801$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 30802 X"$mf" : 'X\(//\)[^/]' \| \ 30803 X"$mf" : 'X\(//\)$' \| \ 30804 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 30805$as_echo X"$mf" | 30806 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 30807 s//\1/ 30808 q 30809 } 30810 /^X\(\/\/\)[^/].*/{ 30811 s//\1/ 30812 q 30813 } 30814 /^X\(\/\/\)$/{ 30815 s//\1/ 30816 q 30817 } 30818 /^X\(\/\).*/{ 30819 s//\1/ 30820 q 30821 } 30822 s/.*/./; q'` 30823 else 30824 continue 30825 fi 30826 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue 30827 # Extract the definition of DEP_FILES from the Makefile without 30828 # running `make'. 30829 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 30830 test -z "$DEPDIR" && continue 30831 # When using ansi2knr, U may be empty or an underscore; expand it 30832 U=`sed -n 's/^U = //p' < "$mf"` 30833 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 30834 # We invoke sed twice because it is the simplest approach to 30835 # changing $(DEPDIR) to its actual value in the expansion. 30836 for file in `sed -n ' 30837 /^DEP_FILES = .*\\\\$/ { 30838 s/^DEP_FILES = // 30839 :loop 30840 s/\\\\$// 30841 p 30842 n 30843 /\\\\$/ b loop 30844 p 30845 } 30846 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 30847 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 30848 # Make sure the directory exists. 30849 test -f "$dirpart/$file" && continue 30850 fdir=`$as_dirname -- "$file" || 30851$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 30852 X"$file" : 'X\(//\)[^/]' \| \ 30853 X"$file" : 'X\(//\)$' \| \ 30854 X"$file" : 'X\(/\)' \| . 2>/dev/null || 30855$as_echo X"$file" | 30856 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 30857 s//\1/ 30858 q 30859 } 30860 /^X\(\/\/\)[^/].*/{ 30861 s//\1/ 30862 q 30863 } 30864 /^X\(\/\/\)$/{ 30865 s//\1/ 30866 q 30867 } 30868 /^X\(\/\).*/{ 30869 s//\1/ 30870 q 30871 } 30872 s/.*/./; q'` 30873 as_dir=$dirpart/$fdir; as_fn_mkdir_p 30874 # echo "creating $dirpart/$file" 30875 echo '# dummy' > "$dirpart/$file" 30876 done 30877done 30878 ;; 30879 30880 esac 30881done # for ac_tag 30882 30883 30884as_fn_exit 0 30885_ACEOF 30886ac_clean_files=$ac_clean_files_save 30887 30888test $ac_write_fail = 0 || 30889 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 30890 30891 30892# configure is writing to config.log, and then calls config.status. 30893# config.status does its own redirection, appending to config.log. 30894# Unfortunately, on DOS this fails, as config.log is still kept open 30895# by configure, so config.status won't be able to write to it; its 30896# output is simply discarded. So we exec the FD to /dev/null, 30897# effectively closing config.log, so it can be properly (re)opened and 30898# appended to by config.status. When coming back to configure, we 30899# need to make the FD available again. 30900if test "$no_create" != yes; then 30901 ac_cs_success=: 30902 ac_config_status_args= 30903 test "$silent" = yes && 30904 ac_config_status_args="$ac_config_status_args --quiet" 30905 exec 5>/dev/null 30906 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 30907 exec 5>>config.log 30908 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 30909 # would make configure fail if this is the last instruction. 30910 $ac_cs_success || as_fn_exit $? 30911fi 30912if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 30913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 30914$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 30915fi 30916 30917 30918if test -f cfg/gendsp.pl; then 30919 chmod +x cfg/gendsp.pl 30920fi 30921 30922if $sim_ac_make_dsp; then :; else 30923 30924if test x"${sim_ac_configuration_settings+set}" = x"set"; then 30925 sim_ac_configuration_settings="$sim_ac_configuration_settings|Installation Prefix:$prefix" 30926else 30927 sim_ac_configuration_settings="Installation Prefix:$prefix" 30928fi 30929 30930 if $sim_ac_framework; then 30931 30932if test x"${sim_ac_configuration_settings+set}" = x"set"; then 30933 sim_ac_configuration_settings="$sim_ac_configuration_settings|Framework Installation Prefix:$sim_ac_framework_prefix" 30934else 30935 sim_ac_configuration_settings="Framework Installation Prefix:$sim_ac_framework_prefix" 30936fi 30937 30938 fi 30939fi 30940 30941 30942sim_ac_settings="$sim_ac_configuration_settings" 30943sim_ac_num_settings=`echo "$sim_ac_settings" | tr -d -c "|" | wc -c` 30944sim_ac_maxlength=0 30945while test $sim_ac_num_settings -ge 0; do 30946 sim_ac_description=`echo "$sim_ac_settings" | cut -d: -f1` 30947 sim_ac_length=`echo "$sim_ac_description" | wc -c` 30948 if test $sim_ac_length -gt $sim_ac_maxlength; then 30949 sim_ac_maxlength=`expr $sim_ac_length + 0` 30950 fi 30951 sim_ac_settings=`echo $sim_ac_settings | cut -d"|" -f2-` 30952 sim_ac_num_settings=`expr $sim_ac_num_settings - 1` 30953done 30954 30955sim_ac_maxlength=`expr $sim_ac_maxlength + 3` 30956sim_ac_padding=`echo " " | 30957 cut -c1-$sim_ac_maxlength` 30958 30959sim_ac_num_settings=`echo "$sim_ac_configuration_settings" | tr -d -c "|" | wc -c` 30960echo "" 30961echo "$PACKAGE configuration settings:" 30962while test $sim_ac_num_settings -ge 0; do 30963 sim_ac_setting=`echo $sim_ac_configuration_settings | cut -d"|" -f1` 30964 sim_ac_description=`echo "$sim_ac_setting" | cut -d: -f1` 30965 sim_ac_status=`echo "$sim_ac_setting" | cut -d: -f2-` 30966 # hopefully not too many terminals are too dumb for this 30967 printf "$sim_ac_padding $sim_ac_status\r $sim_ac_description:\n" 30968 sim_ac_configuration_settings=`echo $sim_ac_configuration_settings | cut -d"|" -f2-` 30969 sim_ac_num_settings=`expr $sim_ac_num_settings - 1` 30970done 30971 30972if test x${sim_ac_configuration_warnings+set} = xset; then 30973sim_ac_num_warnings=`echo "$sim_ac_configuration_warnings" | tr -d -c "|" | wc -c` 30974echo "" 30975echo "$PACKAGE configuration warnings:" 30976while test $sim_ac_num_warnings -ge 0; do 30977 sim_ac_warning=`echo "$sim_ac_configuration_warnings" | cut -d"|" -f1` 30978 echo " * $sim_ac_warning" 30979 sim_ac_configuration_warnings=`echo $sim_ac_configuration_warnings | cut -d"|" -f2-` 30980 sim_ac_num_warnings=`expr $sim_ac_num_warnings - 1` 30981done 30982fi 30983 30984 30985echo "" 30986echo "Now, run 'make install' to build and install $PACKAGE." 30987echo "" 30988 30989# ************************************************************************** 30990