configure revision f220fa62
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for glu 9.0.0. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa&component=GLU>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177 178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 182 PATH=/empty FPATH=/empty; export PATH FPATH 183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 185test \$(( 1 + 1 )) = 2 || exit 1" 186 if (eval "$as_required") 2>/dev/null; then : 187 as_have_required=yes 188else 189 as_have_required=no 190fi 191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 192 193else 194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 195as_found=false 196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 197do 198 IFS=$as_save_IFS 199 test -z "$as_dir" && as_dir=. 200 as_found=: 201 case $as_dir in #( 202 /*) 203 for as_base in sh bash ksh sh5; do 204 # Try only shells that exist, to save several forks. 205 as_shell=$as_dir/$as_base 206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 208 CONFIG_SHELL=$as_shell as_have_required=yes 209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 210 break 2 211fi 212fi 213 done;; 214 esac 215 as_found=false 216done 217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 219 CONFIG_SHELL=$SHELL as_have_required=yes 220fi; } 221IFS=$as_save_IFS 222 223 224 if test "x$CONFIG_SHELL" != x; then : 225 # We cannot yet assume a decent shell, so we have to provide a 226 # neutralization value for shells without unset; and this also 227 # works around shells that cannot unset nonexistent variables. 228 # Preserve -v and -x to the replacement shell. 229 BASH_ENV=/dev/null 230 ENV=/dev/null 231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 232 export CONFIG_SHELL 233 case $- in # (((( 234 *v*x* | *x*v* ) as_opts=-vx ;; 235 *v* ) as_opts=-v ;; 236 *x* ) as_opts=-x ;; 237 * ) as_opts= ;; 238 esac 239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 240fi 241 242 if test x$as_have_required = xno; then : 243 $as_echo "$0: This script requires a shell more modern than all" 244 $as_echo "$0: the shells that I found on your system." 245 if test x${ZSH_VERSION+set} = xset ; then 246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 247 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 248 else 249 $as_echo "$0: Please tell bug-autoconf@gnu.org and 250$0: https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa&component=GLU 251$0: about your system, including any error possibly output 252$0: before this message. Then install a modern shell, or 253$0: manually run the script under such a shell if you do 254$0: have one." 255 fi 256 exit 1 257fi 258fi 259fi 260SHELL=${CONFIG_SHELL-/bin/sh} 261export SHELL 262# Unset more variables known to interfere with behavior of common tools. 263CLICOLOR_FORCE= GREP_OPTIONS= 264unset CLICOLOR_FORCE GREP_OPTIONS 265 266## --------------------- ## 267## M4sh Shell Functions. ## 268## --------------------- ## 269# as_fn_unset VAR 270# --------------- 271# Portably unset VAR. 272as_fn_unset () 273{ 274 { eval $1=; unset $1;} 275} 276as_unset=as_fn_unset 277 278# as_fn_set_status STATUS 279# ----------------------- 280# Set $? to STATUS, without forking. 281as_fn_set_status () 282{ 283 return $1 284} # as_fn_set_status 285 286# as_fn_exit STATUS 287# ----------------- 288# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 289as_fn_exit () 290{ 291 set +e 292 as_fn_set_status $1 293 exit $1 294} # as_fn_exit 295 296# as_fn_mkdir_p 297# ------------- 298# Create "$as_dir" as a directory, including parents if necessary. 299as_fn_mkdir_p () 300{ 301 302 case $as_dir in #( 303 -*) as_dir=./$as_dir;; 304 esac 305 test -d "$as_dir" || eval $as_mkdir_p || { 306 as_dirs= 307 while :; do 308 case $as_dir in #( 309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 310 *) as_qdir=$as_dir;; 311 esac 312 as_dirs="'$as_qdir' $as_dirs" 313 as_dir=`$as_dirname -- "$as_dir" || 314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 315 X"$as_dir" : 'X\(//\)[^/]' \| \ 316 X"$as_dir" : 'X\(//\)$' \| \ 317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 318$as_echo X"$as_dir" | 319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 320 s//\1/ 321 q 322 } 323 /^X\(\/\/\)[^/].*/{ 324 s//\1/ 325 q 326 } 327 /^X\(\/\/\)$/{ 328 s//\1/ 329 q 330 } 331 /^X\(\/\).*/{ 332 s//\1/ 333 q 334 } 335 s/.*/./; q'` 336 test -d "$as_dir" && break 337 done 338 test -z "$as_dirs" || eval "mkdir $as_dirs" 339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 340 341 342} # as_fn_mkdir_p 343# as_fn_append VAR VALUE 344# ---------------------- 345# Append the text in VALUE to the end of the definition contained in VAR. Take 346# advantage of any shell optimizations that allow amortized linear growth over 347# repeated appends, instead of the typical quadratic growth present in naive 348# implementations. 349if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 350 eval 'as_fn_append () 351 { 352 eval $1+=\$2 353 }' 354else 355 as_fn_append () 356 { 357 eval $1=\$$1\$2 358 } 359fi # as_fn_append 360 361# as_fn_arith ARG... 362# ------------------ 363# Perform arithmetic evaluation on the ARGs, and store the result in the 364# global $as_val. Take advantage of shells that can avoid forks. The arguments 365# must be portable across $(()) and expr. 366if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 367 eval 'as_fn_arith () 368 { 369 as_val=$(( $* )) 370 }' 371else 372 as_fn_arith () 373 { 374 as_val=`expr "$@" || test $? -eq 1` 375 } 376fi # as_fn_arith 377 378 379# as_fn_error STATUS ERROR [LINENO LOG_FD] 380# ---------------------------------------- 381# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 382# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 383# script with STATUS, using 1 if that was 0. 384as_fn_error () 385{ 386 as_status=$1; test $as_status -eq 0 && as_status=1 387 if test "$4"; then 388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 390 fi 391 $as_echo "$as_me: error: $2" >&2 392 as_fn_exit $as_status 393} # as_fn_error 394 395if expr a : '\(a\)' >/dev/null 2>&1 && 396 test "X`expr 00001 : '.*\(...\)'`" = X001; then 397 as_expr=expr 398else 399 as_expr=false 400fi 401 402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 403 as_basename=basename 404else 405 as_basename=false 406fi 407 408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 409 as_dirname=dirname 410else 411 as_dirname=false 412fi 413 414as_me=`$as_basename -- "$0" || 415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 416 X"$0" : 'X\(//\)$' \| \ 417 X"$0" : 'X\(/\)' \| . 2>/dev/null || 418$as_echo X/"$0" | 419 sed '/^.*\/\([^/][^/]*\)\/*$/{ 420 s//\1/ 421 q 422 } 423 /^X\/\(\/\/\)$/{ 424 s//\1/ 425 q 426 } 427 /^X\/\(\/\).*/{ 428 s//\1/ 429 q 430 } 431 s/.*/./; q'` 432 433# Avoid depending upon Character Ranges. 434as_cr_letters='abcdefghijklmnopqrstuvwxyz' 435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 436as_cr_Letters=$as_cr_letters$as_cr_LETTERS 437as_cr_digits='0123456789' 438as_cr_alnum=$as_cr_Letters$as_cr_digits 439 440 441 as_lineno_1=$LINENO as_lineno_1a=$LINENO 442 as_lineno_2=$LINENO as_lineno_2a=$LINENO 443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 446 sed -n ' 447 p 448 /[$]LINENO/= 449 ' <$as_myself | 450 sed ' 451 s/[$]LINENO.*/&-/ 452 t lineno 453 b 454 :lineno 455 N 456 :loop 457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 458 t loop 459 s/-\n.*// 460 ' >$as_me.lineno && 461 chmod +x "$as_me.lineno" || 462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 463 464 # Don't try to exec as it changes $[0], causing all sort of problems 465 # (the dirname of $[0] is not the place where we might find the 466 # original and so on. Autoconf is especially sensitive to this). 467 . "./$as_me.lineno" 468 # Exit status is that of the last command. 469 exit 470} 471 472ECHO_C= ECHO_N= ECHO_T= 473case `echo -n x` in #((((( 474-n*) 475 case `echo 'xy\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 xy) ECHO_C='\c';; 478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 479 ECHO_T=' ';; 480 esac;; 481*) 482 ECHO_N='-n';; 483esac 484 485rm -f conf$$ conf$$.exe conf$$.file 486if test -d conf$$.dir; then 487 rm -f conf$$.dir/conf$$.file 488else 489 rm -f conf$$.dir 490 mkdir conf$$.dir 2>/dev/null 491fi 492if (echo >conf$$.file) 2>/dev/null; then 493 if ln -s conf$$.file conf$$ 2>/dev/null; then 494 as_ln_s='ln -s' 495 # ... but there are two gotchas: 496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 498 # In both cases, we have to default to `cp -p'. 499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 500 as_ln_s='cp -p' 501 elif ln conf$$.file conf$$ 2>/dev/null; then 502 as_ln_s=ln 503 else 504 as_ln_s='cp -p' 505 fi 506else 507 as_ln_s='cp -p' 508fi 509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 510rmdir conf$$.dir 2>/dev/null 511 512if mkdir -p . 2>/dev/null; then 513 as_mkdir_p='mkdir -p "$as_dir"' 514else 515 test -d ./-p && rmdir ./-p 516 as_mkdir_p=false 517fi 518 519if test -x / >/dev/null 2>&1; then 520 as_test_x='test -x' 521else 522 if ls -dL / >/dev/null 2>&1; then 523 as_ls_L_option=L 524 else 525 as_ls_L_option= 526 fi 527 as_test_x=' 528 eval sh -c '\'' 529 if test -d "$1"; then 530 test -d "$1/."; 531 else 532 case $1 in #( 533 -*)set "./$1";; 534 esac; 535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 536 ???[sx]*):;;*)false;;esac;fi 537 '\'' sh 538 ' 539fi 540as_executable_p=$as_test_x 541 542# Sed expression to map a string onto a valid CPP name. 543as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 544 545# Sed expression to map a string onto a valid variable name. 546as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 547 548SHELL=${CONFIG_SHELL-/bin/sh} 549 550 551test -n "$DJDIR" || exec 7<&0 </dev/null 552exec 6>&1 553 554# Name of the host. 555# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 556# so uname gets run too. 557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 558 559# 560# Initializations. 561# 562ac_default_prefix=/usr/local 563ac_clean_files= 564ac_config_libobj_dir=. 565LIBOBJS= 566cross_compiling=no 567subdirs= 568MFLAGS= 569MAKEFLAGS= 570 571# Identity of this package. 572PACKAGE_NAME='glu' 573PACKAGE_TARNAME='glu' 574PACKAGE_VERSION='9.0.0' 575PACKAGE_STRING='glu 9.0.0' 576PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa&component=GLU' 577PACKAGE_URL='' 578 579ac_unique_file="Makefile.am" 580# Factoring default headers for most tests. 581ac_includes_default="\ 582#include <stdio.h> 583#ifdef HAVE_SYS_TYPES_H 584# include <sys/types.h> 585#endif 586#ifdef HAVE_SYS_STAT_H 587# include <sys/stat.h> 588#endif 589#ifdef STDC_HEADERS 590# include <stdlib.h> 591# include <stddef.h> 592#else 593# ifdef HAVE_STDLIB_H 594# include <stdlib.h> 595# endif 596#endif 597#ifdef HAVE_STRING_H 598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 599# include <memory.h> 600# endif 601# include <string.h> 602#endif 603#ifdef HAVE_STRINGS_H 604# include <strings.h> 605#endif 606#ifdef HAVE_INTTYPES_H 607# include <inttypes.h> 608#endif 609#ifdef HAVE_STDINT_H 610# include <stdint.h> 611#endif 612#ifdef HAVE_UNISTD_H 613# include <unistd.h> 614#endif" 615 616ac_subst_vars='am__EXEEXT_FALSE 617am__EXEEXT_TRUE 618LTLIBOBJS 619LIBOBJS 620VISIBILITY_CXXFLAGS 621VISIBILITY_CFLAGS 622WARNCXXFLAGS 623WARNCFLAGS 624GLU_REQUIRES 625GL_LIBS 626GL_CFLAGS 627OSMESA_LIBS 628OSMESA_CFLAGS 629PKG_CONFIG_LIBDIR 630PKG_CONFIG_PATH 631PKG_CONFIG 632AM_BACKSLASH 633AM_DEFAULT_VERBOSITY 634AM_DEFAULT_V 635AM_V 636CXXCPP 637am__fastdepCXX_FALSE 638am__fastdepCXX_TRUE 639CXXDEPMODE 640ac_ct_CXX 641CXXFLAGS 642CXX 643CPP 644OTOOL64 645OTOOL 646LIPO 647NMEDIT 648DSYMUTIL 649MANIFEST_TOOL 650RANLIB 651ac_ct_AR 652AR 653DLLTOOL 654OBJDUMP 655LN_S 656NM 657ac_ct_DUMPBIN 658DUMPBIN 659LD 660FGREP 661EGREP 662GREP 663SED 664am__fastdepCC_FALSE 665am__fastdepCC_TRUE 666CCDEPMODE 667am__nodep 668AMDEPBACKSLASH 669AMDEP_FALSE 670AMDEP_TRUE 671am__quote 672am__include 673DEPDIR 674OBJEXT 675EXEEXT 676ac_ct_CC 677CPPFLAGS 678LDFLAGS 679CFLAGS 680CC 681LIBTOOL 682am__untar 683am__tar 684AMTAR 685am__leading_dot 686SET_MAKE 687AWK 688mkdir_p 689MKDIR_P 690INSTALL_STRIP_PROGRAM 691STRIP 692install_sh 693MAKEINFO 694AUTOHEADER 695AUTOMAKE 696AUTOCONF 697ACLOCAL 698VERSION 699PACKAGE 700CYGPATH_W 701am__isrc 702INSTALL_DATA 703INSTALL_SCRIPT 704INSTALL_PROGRAM 705host_os 706host_vendor 707host_cpu 708host 709build_os 710build_vendor 711build_cpu 712build 713target_alias 714host_alias 715build_alias 716LIBS 717ECHO_T 718ECHO_N 719ECHO_C 720DEFS 721mandir 722localedir 723libdir 724psdir 725pdfdir 726dvidir 727htmldir 728infodir 729docdir 730oldincludedir 731includedir 732localstatedir 733sharedstatedir 734sysconfdir 735datadir 736datarootdir 737libexecdir 738sbindir 739bindir 740program_transform_name 741prefix 742exec_prefix 743PACKAGE_URL 744PACKAGE_BUGREPORT 745PACKAGE_STRING 746PACKAGE_VERSION 747PACKAGE_TARNAME 748PACKAGE_NAME 749PATH_SEPARATOR 750SHELL' 751ac_subst_files='' 752ac_user_opts=' 753enable_option_checking 754enable_shared 755enable_static 756with_pic 757enable_fast_install 758enable_dependency_tracking 759with_gnu_ld 760with_sysroot 761enable_libtool_lock 762enable_silent_rules 763enable_debug 764enable_osmesa 765' 766 ac_precious_vars='build_alias 767host_alias 768target_alias 769CC 770CFLAGS 771LDFLAGS 772LIBS 773CPPFLAGS 774CPP 775CXX 776CXXFLAGS 777CCC 778CXXCPP 779PKG_CONFIG 780PKG_CONFIG_PATH 781PKG_CONFIG_LIBDIR 782OSMESA_CFLAGS 783OSMESA_LIBS 784GL_CFLAGS 785GL_LIBS' 786 787 788# Initialize some variables set by options. 789ac_init_help= 790ac_init_version=false 791ac_unrecognized_opts= 792ac_unrecognized_sep= 793# The variables have the same names as the options, with 794# dashes changed to underlines. 795cache_file=/dev/null 796exec_prefix=NONE 797no_create= 798no_recursion= 799prefix=NONE 800program_prefix=NONE 801program_suffix=NONE 802program_transform_name=s,x,x, 803silent= 804site= 805srcdir= 806verbose= 807x_includes=NONE 808x_libraries=NONE 809 810# Installation directory options. 811# These are left unexpanded so users can "make install exec_prefix=/foo" 812# and all the variables that are supposed to be based on exec_prefix 813# by default will actually change. 814# Use braces instead of parens because sh, perl, etc. also accept them. 815# (The list follows the same order as the GNU Coding Standards.) 816bindir='${exec_prefix}/bin' 817sbindir='${exec_prefix}/sbin' 818libexecdir='${exec_prefix}/libexec' 819datarootdir='${prefix}/share' 820datadir='${datarootdir}' 821sysconfdir='${prefix}/etc' 822sharedstatedir='${prefix}/com' 823localstatedir='${prefix}/var' 824includedir='${prefix}/include' 825oldincludedir='/usr/include' 826docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 827infodir='${datarootdir}/info' 828htmldir='${docdir}' 829dvidir='${docdir}' 830pdfdir='${docdir}' 831psdir='${docdir}' 832libdir='${exec_prefix}/lib' 833localedir='${datarootdir}/locale' 834mandir='${datarootdir}/man' 835 836ac_prev= 837ac_dashdash= 838for ac_option 839do 840 # If the previous option needs an argument, assign it. 841 if test -n "$ac_prev"; then 842 eval $ac_prev=\$ac_option 843 ac_prev= 844 continue 845 fi 846 847 case $ac_option in 848 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 849 *=) ac_optarg= ;; 850 *) ac_optarg=yes ;; 851 esac 852 853 # Accept the important Cygnus configure options, so we can diagnose typos. 854 855 case $ac_dashdash$ac_option in 856 --) 857 ac_dashdash=yes ;; 858 859 -bindir | --bindir | --bindi | --bind | --bin | --bi) 860 ac_prev=bindir ;; 861 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 862 bindir=$ac_optarg ;; 863 864 -build | --build | --buil | --bui | --bu) 865 ac_prev=build_alias ;; 866 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 867 build_alias=$ac_optarg ;; 868 869 -cache-file | --cache-file | --cache-fil | --cache-fi \ 870 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 871 ac_prev=cache_file ;; 872 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 873 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 874 cache_file=$ac_optarg ;; 875 876 --config-cache | -C) 877 cache_file=config.cache ;; 878 879 -datadir | --datadir | --datadi | --datad) 880 ac_prev=datadir ;; 881 -datadir=* | --datadir=* | --datadi=* | --datad=*) 882 datadir=$ac_optarg ;; 883 884 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 885 | --dataroo | --dataro | --datar) 886 ac_prev=datarootdir ;; 887 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 888 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 889 datarootdir=$ac_optarg ;; 890 891 -disable-* | --disable-*) 892 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 893 # Reject names that are not valid shell variable names. 894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 895 as_fn_error $? "invalid feature name: $ac_useropt" 896 ac_useropt_orig=$ac_useropt 897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 898 case $ac_user_opts in 899 *" 900"enable_$ac_useropt" 901"*) ;; 902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 903 ac_unrecognized_sep=', ';; 904 esac 905 eval enable_$ac_useropt=no ;; 906 907 -docdir | --docdir | --docdi | --doc | --do) 908 ac_prev=docdir ;; 909 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 910 docdir=$ac_optarg ;; 911 912 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 913 ac_prev=dvidir ;; 914 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 915 dvidir=$ac_optarg ;; 916 917 -enable-* | --enable-*) 918 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 919 # Reject names that are not valid shell variable names. 920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 921 as_fn_error $? "invalid feature name: $ac_useropt" 922 ac_useropt_orig=$ac_useropt 923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 924 case $ac_user_opts in 925 *" 926"enable_$ac_useropt" 927"*) ;; 928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 929 ac_unrecognized_sep=', ';; 930 esac 931 eval enable_$ac_useropt=\$ac_optarg ;; 932 933 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 934 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 935 | --exec | --exe | --ex) 936 ac_prev=exec_prefix ;; 937 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 938 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 939 | --exec=* | --exe=* | --ex=*) 940 exec_prefix=$ac_optarg ;; 941 942 -gas | --gas | --ga | --g) 943 # Obsolete; use --with-gas. 944 with_gas=yes ;; 945 946 -help | --help | --hel | --he | -h) 947 ac_init_help=long ;; 948 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 949 ac_init_help=recursive ;; 950 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 951 ac_init_help=short ;; 952 953 -host | --host | --hos | --ho) 954 ac_prev=host_alias ;; 955 -host=* | --host=* | --hos=* | --ho=*) 956 host_alias=$ac_optarg ;; 957 958 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 959 ac_prev=htmldir ;; 960 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 961 | --ht=*) 962 htmldir=$ac_optarg ;; 963 964 -includedir | --includedir | --includedi | --included | --include \ 965 | --includ | --inclu | --incl | --inc) 966 ac_prev=includedir ;; 967 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 968 | --includ=* | --inclu=* | --incl=* | --inc=*) 969 includedir=$ac_optarg ;; 970 971 -infodir | --infodir | --infodi | --infod | --info | --inf) 972 ac_prev=infodir ;; 973 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 974 infodir=$ac_optarg ;; 975 976 -libdir | --libdir | --libdi | --libd) 977 ac_prev=libdir ;; 978 -libdir=* | --libdir=* | --libdi=* | --libd=*) 979 libdir=$ac_optarg ;; 980 981 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 982 | --libexe | --libex | --libe) 983 ac_prev=libexecdir ;; 984 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 985 | --libexe=* | --libex=* | --libe=*) 986 libexecdir=$ac_optarg ;; 987 988 -localedir | --localedir | --localedi | --localed | --locale) 989 ac_prev=localedir ;; 990 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 991 localedir=$ac_optarg ;; 992 993 -localstatedir | --localstatedir | --localstatedi | --localstated \ 994 | --localstate | --localstat | --localsta | --localst | --locals) 995 ac_prev=localstatedir ;; 996 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 997 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 998 localstatedir=$ac_optarg ;; 999 1000 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1001 ac_prev=mandir ;; 1002 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1003 mandir=$ac_optarg ;; 1004 1005 -nfp | --nfp | --nf) 1006 # Obsolete; use --without-fp. 1007 with_fp=no ;; 1008 1009 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1010 | --no-cr | --no-c | -n) 1011 no_create=yes ;; 1012 1013 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1014 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1015 no_recursion=yes ;; 1016 1017 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1018 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1019 | --oldin | --oldi | --old | --ol | --o) 1020 ac_prev=oldincludedir ;; 1021 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1022 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1023 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1024 oldincludedir=$ac_optarg ;; 1025 1026 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1027 ac_prev=prefix ;; 1028 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1029 prefix=$ac_optarg ;; 1030 1031 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1032 | --program-pre | --program-pr | --program-p) 1033 ac_prev=program_prefix ;; 1034 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1035 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1036 program_prefix=$ac_optarg ;; 1037 1038 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1039 | --program-suf | --program-su | --program-s) 1040 ac_prev=program_suffix ;; 1041 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1042 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1043 program_suffix=$ac_optarg ;; 1044 1045 -program-transform-name | --program-transform-name \ 1046 | --program-transform-nam | --program-transform-na \ 1047 | --program-transform-n | --program-transform- \ 1048 | --program-transform | --program-transfor \ 1049 | --program-transfo | --program-transf \ 1050 | --program-trans | --program-tran \ 1051 | --progr-tra | --program-tr | --program-t) 1052 ac_prev=program_transform_name ;; 1053 -program-transform-name=* | --program-transform-name=* \ 1054 | --program-transform-nam=* | --program-transform-na=* \ 1055 | --program-transform-n=* | --program-transform-=* \ 1056 | --program-transform=* | --program-transfor=* \ 1057 | --program-transfo=* | --program-transf=* \ 1058 | --program-trans=* | --program-tran=* \ 1059 | --progr-tra=* | --program-tr=* | --program-t=*) 1060 program_transform_name=$ac_optarg ;; 1061 1062 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1063 ac_prev=pdfdir ;; 1064 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1065 pdfdir=$ac_optarg ;; 1066 1067 -psdir | --psdir | --psdi | --psd | --ps) 1068 ac_prev=psdir ;; 1069 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1070 psdir=$ac_optarg ;; 1071 1072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1073 | -silent | --silent | --silen | --sile | --sil) 1074 silent=yes ;; 1075 1076 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1077 ac_prev=sbindir ;; 1078 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1079 | --sbi=* | --sb=*) 1080 sbindir=$ac_optarg ;; 1081 1082 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1083 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1084 | --sharedst | --shareds | --shared | --share | --shar \ 1085 | --sha | --sh) 1086 ac_prev=sharedstatedir ;; 1087 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1088 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1089 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1090 | --sha=* | --sh=*) 1091 sharedstatedir=$ac_optarg ;; 1092 1093 -site | --site | --sit) 1094 ac_prev=site ;; 1095 -site=* | --site=* | --sit=*) 1096 site=$ac_optarg ;; 1097 1098 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1099 ac_prev=srcdir ;; 1100 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1101 srcdir=$ac_optarg ;; 1102 1103 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1104 | --syscon | --sysco | --sysc | --sys | --sy) 1105 ac_prev=sysconfdir ;; 1106 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1107 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1108 sysconfdir=$ac_optarg ;; 1109 1110 -target | --target | --targe | --targ | --tar | --ta | --t) 1111 ac_prev=target_alias ;; 1112 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1113 target_alias=$ac_optarg ;; 1114 1115 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1116 verbose=yes ;; 1117 1118 -version | --version | --versio | --versi | --vers | -V) 1119 ac_init_version=: ;; 1120 1121 -with-* | --with-*) 1122 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1123 # Reject names that are not valid shell variable names. 1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1125 as_fn_error $? "invalid package name: $ac_useropt" 1126 ac_useropt_orig=$ac_useropt 1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1128 case $ac_user_opts in 1129 *" 1130"with_$ac_useropt" 1131"*) ;; 1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1133 ac_unrecognized_sep=', ';; 1134 esac 1135 eval with_$ac_useropt=\$ac_optarg ;; 1136 1137 -without-* | --without-*) 1138 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1139 # Reject names that are not valid shell variable names. 1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1141 as_fn_error $? "invalid package name: $ac_useropt" 1142 ac_useropt_orig=$ac_useropt 1143 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1144 case $ac_user_opts in 1145 *" 1146"with_$ac_useropt" 1147"*) ;; 1148 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1149 ac_unrecognized_sep=', ';; 1150 esac 1151 eval with_$ac_useropt=no ;; 1152 1153 --x) 1154 # Obsolete; use --with-x. 1155 with_x=yes ;; 1156 1157 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1158 | --x-incl | --x-inc | --x-in | --x-i) 1159 ac_prev=x_includes ;; 1160 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1161 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1162 x_includes=$ac_optarg ;; 1163 1164 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1165 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1166 ac_prev=x_libraries ;; 1167 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1168 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1169 x_libraries=$ac_optarg ;; 1170 1171 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1172Try \`$0 --help' for more information" 1173 ;; 1174 1175 *=*) 1176 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1177 # Reject names that are not valid shell variable names. 1178 case $ac_envvar in #( 1179 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1180 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1181 esac 1182 eval $ac_envvar=\$ac_optarg 1183 export $ac_envvar ;; 1184 1185 *) 1186 # FIXME: should be removed in autoconf 3.0. 1187 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1189 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1190 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1191 ;; 1192 1193 esac 1194done 1195 1196if test -n "$ac_prev"; then 1197 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1198 as_fn_error $? "missing argument to $ac_option" 1199fi 1200 1201if test -n "$ac_unrecognized_opts"; then 1202 case $enable_option_checking in 1203 no) ;; 1204 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1205 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1206 esac 1207fi 1208 1209# Check all directory arguments for consistency. 1210for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1211 datadir sysconfdir sharedstatedir localstatedir includedir \ 1212 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1213 libdir localedir mandir 1214do 1215 eval ac_val=\$$ac_var 1216 # Remove trailing slashes. 1217 case $ac_val in 1218 */ ) 1219 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1220 eval $ac_var=\$ac_val;; 1221 esac 1222 # Be sure to have absolute directory names. 1223 case $ac_val in 1224 [\\/$]* | ?:[\\/]* ) continue;; 1225 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1226 esac 1227 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1228done 1229 1230# There might be people who depend on the old broken behavior: `$host' 1231# used to hold the argument of --host etc. 1232# FIXME: To remove some day. 1233build=$build_alias 1234host=$host_alias 1235target=$target_alias 1236 1237# FIXME: To remove some day. 1238if test "x$host_alias" != x; then 1239 if test "x$build_alias" = x; then 1240 cross_compiling=maybe 1241 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1242 If a cross compiler is detected then cross compile mode will be used" >&2 1243 elif test "x$build_alias" != "x$host_alias"; then 1244 cross_compiling=yes 1245 fi 1246fi 1247 1248ac_tool_prefix= 1249test -n "$host_alias" && ac_tool_prefix=$host_alias- 1250 1251test "$silent" = yes && exec 6>/dev/null 1252 1253 1254ac_pwd=`pwd` && test -n "$ac_pwd" && 1255ac_ls_di=`ls -di .` && 1256ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1257 as_fn_error $? "working directory cannot be determined" 1258test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1259 as_fn_error $? "pwd does not report name of working directory" 1260 1261 1262# Find the source files, if location was not specified. 1263if test -z "$srcdir"; then 1264 ac_srcdir_defaulted=yes 1265 # Try the directory containing this script, then the parent directory. 1266 ac_confdir=`$as_dirname -- "$as_myself" || 1267$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1268 X"$as_myself" : 'X\(//\)[^/]' \| \ 1269 X"$as_myself" : 'X\(//\)$' \| \ 1270 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1271$as_echo X"$as_myself" | 1272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1273 s//\1/ 1274 q 1275 } 1276 /^X\(\/\/\)[^/].*/{ 1277 s//\1/ 1278 q 1279 } 1280 /^X\(\/\/\)$/{ 1281 s//\1/ 1282 q 1283 } 1284 /^X\(\/\).*/{ 1285 s//\1/ 1286 q 1287 } 1288 s/.*/./; q'` 1289 srcdir=$ac_confdir 1290 if test ! -r "$srcdir/$ac_unique_file"; then 1291 srcdir=.. 1292 fi 1293else 1294 ac_srcdir_defaulted=no 1295fi 1296if test ! -r "$srcdir/$ac_unique_file"; then 1297 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1298 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1299fi 1300ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1301ac_abs_confdir=`( 1302 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1303 pwd)` 1304# When building in place, set srcdir=. 1305if test "$ac_abs_confdir" = "$ac_pwd"; then 1306 srcdir=. 1307fi 1308# Remove unnecessary trailing slashes from srcdir. 1309# Double slashes in file names in object file debugging info 1310# mess up M-x gdb in Emacs. 1311case $srcdir in 1312*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1313esac 1314for ac_var in $ac_precious_vars; do 1315 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1316 eval ac_env_${ac_var}_value=\$${ac_var} 1317 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1318 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1319done 1320 1321# 1322# Report the --help message. 1323# 1324if test "$ac_init_help" = "long"; then 1325 # Omit some internal or obsolete options to make the list less imposing. 1326 # This message is too long to be a string in the A/UX 3.1 sh. 1327 cat <<_ACEOF 1328\`configure' configures glu 9.0.0 to adapt to many kinds of systems. 1329 1330Usage: $0 [OPTION]... [VAR=VALUE]... 1331 1332To assign environment variables (e.g., CC, CFLAGS...), specify them as 1333VAR=VALUE. See below for descriptions of some of the useful variables. 1334 1335Defaults for the options are specified in brackets. 1336 1337Configuration: 1338 -h, --help display this help and exit 1339 --help=short display options specific to this package 1340 --help=recursive display the short help of all the included packages 1341 -V, --version display version information and exit 1342 -q, --quiet, --silent do not print \`checking ...' messages 1343 --cache-file=FILE cache test results in FILE [disabled] 1344 -C, --config-cache alias for \`--cache-file=config.cache' 1345 -n, --no-create do not create output files 1346 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1347 1348Installation directories: 1349 --prefix=PREFIX install architecture-independent files in PREFIX 1350 [$ac_default_prefix] 1351 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1352 [PREFIX] 1353 1354By default, \`make install' will install all the files in 1355\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1356an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1357for instance \`--prefix=\$HOME'. 1358 1359For better control, use the options below. 1360 1361Fine tuning of the installation directories: 1362 --bindir=DIR user executables [EPREFIX/bin] 1363 --sbindir=DIR system admin executables [EPREFIX/sbin] 1364 --libexecdir=DIR program executables [EPREFIX/libexec] 1365 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1366 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1367 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1368 --libdir=DIR object code libraries [EPREFIX/lib] 1369 --includedir=DIR C header files [PREFIX/include] 1370 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1371 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1372 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1373 --infodir=DIR info documentation [DATAROOTDIR/info] 1374 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1375 --mandir=DIR man documentation [DATAROOTDIR/man] 1376 --docdir=DIR documentation root [DATAROOTDIR/doc/glu] 1377 --htmldir=DIR html documentation [DOCDIR] 1378 --dvidir=DIR dvi documentation [DOCDIR] 1379 --pdfdir=DIR pdf documentation [DOCDIR] 1380 --psdir=DIR ps documentation [DOCDIR] 1381_ACEOF 1382 1383 cat <<\_ACEOF 1384 1385Program names: 1386 --program-prefix=PREFIX prepend PREFIX to installed program names 1387 --program-suffix=SUFFIX append SUFFIX to installed program names 1388 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1389 1390System types: 1391 --build=BUILD configure for building on BUILD [guessed] 1392 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1393_ACEOF 1394fi 1395 1396if test -n "$ac_init_help"; then 1397 case $ac_init_help in 1398 short | recursive ) echo "Configuration of glu 9.0.0:";; 1399 esac 1400 cat <<\_ACEOF 1401 1402Optional Features: 1403 --disable-option-checking ignore unrecognized --enable/--with options 1404 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1405 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1406 --enable-shared[=PKGS] build shared libraries [default=yes] 1407 --enable-static[=PKGS] build static libraries [default=yes] 1408 --enable-fast-install[=PKGS] 1409 optimize for fast installation [default=yes] 1410 --enable-dependency-tracking 1411 do not reject slow dependency extractors 1412 --disable-dependency-tracking 1413 speeds up one-time build 1414 --disable-libtool-lock avoid locking (might break parallel builds) 1415 --enable-silent-rules less verbose build output (undo: "make V=1") 1416 --disable-silent-rules verbose build output (undo: "make V=0") 1417 --enable-debug Enable debugging information 1418 --enable-osmesa Enable use of OSMesa instead of libGL 1419 1420Optional Packages: 1421 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1422 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1423 --with-pic try to use only PIC/non-PIC objects [default=use 1424 both] 1425 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1426 --with-sysroot=DIR Search for dependent libraries within DIR 1427 (or the compiler's sysroot if not specified). 1428 1429Some influential environment variables: 1430 CC C compiler command 1431 CFLAGS C compiler flags 1432 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1433 nonstandard directory <lib dir> 1434 LIBS libraries to pass to the linker, e.g. -l<library> 1435 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1436 you have headers in a nonstandard directory <include dir> 1437 CPP C preprocessor 1438 CXX C++ compiler command 1439 CXXFLAGS C++ compiler flags 1440 CXXCPP C++ preprocessor 1441 PKG_CONFIG path to pkg-config utility 1442 PKG_CONFIG_PATH 1443 directories to add to pkg-config's search path 1444 PKG_CONFIG_LIBDIR 1445 path overriding pkg-config's built-in search path 1446 OSMESA_CFLAGS 1447 C compiler flags for OSMESA, overriding pkg-config 1448 OSMESA_LIBS linker flags for OSMESA, overriding pkg-config 1449 GL_CFLAGS C compiler flags for GL, overriding pkg-config 1450 GL_LIBS linker flags for GL, overriding pkg-config 1451 1452Use these variables to override the choices made by `configure' or to help 1453it to find libraries and programs with nonstandard names/locations. 1454 1455Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa&component=GLU>. 1456_ACEOF 1457ac_status=$? 1458fi 1459 1460if test "$ac_init_help" = "recursive"; then 1461 # If there are subdirs, report their specific --help. 1462 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1463 test -d "$ac_dir" || 1464 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1465 continue 1466 ac_builddir=. 1467 1468case "$ac_dir" in 1469.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1470*) 1471 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1472 # A ".." for each directory in $ac_dir_suffix. 1473 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1474 case $ac_top_builddir_sub in 1475 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1476 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1477 esac ;; 1478esac 1479ac_abs_top_builddir=$ac_pwd 1480ac_abs_builddir=$ac_pwd$ac_dir_suffix 1481# for backward compatibility: 1482ac_top_builddir=$ac_top_build_prefix 1483 1484case $srcdir in 1485 .) # We are building in place. 1486 ac_srcdir=. 1487 ac_top_srcdir=$ac_top_builddir_sub 1488 ac_abs_top_srcdir=$ac_pwd ;; 1489 [\\/]* | ?:[\\/]* ) # Absolute name. 1490 ac_srcdir=$srcdir$ac_dir_suffix; 1491 ac_top_srcdir=$srcdir 1492 ac_abs_top_srcdir=$srcdir ;; 1493 *) # Relative name. 1494 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1495 ac_top_srcdir=$ac_top_build_prefix$srcdir 1496 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1497esac 1498ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1499 1500 cd "$ac_dir" || { ac_status=$?; continue; } 1501 # Check for guested configure. 1502 if test -f "$ac_srcdir/configure.gnu"; then 1503 echo && 1504 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1505 elif test -f "$ac_srcdir/configure"; then 1506 echo && 1507 $SHELL "$ac_srcdir/configure" --help=recursive 1508 else 1509 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1510 fi || ac_status=$? 1511 cd "$ac_pwd" || { ac_status=$?; break; } 1512 done 1513fi 1514 1515test -n "$ac_init_help" && exit $ac_status 1516if $ac_init_version; then 1517 cat <<\_ACEOF 1518glu configure 9.0.0 1519generated by GNU Autoconf 2.68 1520 1521Copyright (C) 2010 Free Software Foundation, Inc. 1522This configure script is free software; the Free Software Foundation 1523gives unlimited permission to copy, distribute and modify it. 1524_ACEOF 1525 exit 1526fi 1527 1528## ------------------------ ## 1529## Autoconf initialization. ## 1530## ------------------------ ## 1531 1532# ac_fn_c_try_compile LINENO 1533# -------------------------- 1534# Try to compile conftest.$ac_ext, and return whether this succeeded. 1535ac_fn_c_try_compile () 1536{ 1537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1538 rm -f conftest.$ac_objext 1539 if { { ac_try="$ac_compile" 1540case "(($ac_try" in 1541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1542 *) ac_try_echo=$ac_try;; 1543esac 1544eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1545$as_echo "$ac_try_echo"; } >&5 1546 (eval "$ac_compile") 2>conftest.err 1547 ac_status=$? 1548 if test -s conftest.err; then 1549 grep -v '^ *+' conftest.err >conftest.er1 1550 cat conftest.er1 >&5 1551 mv -f conftest.er1 conftest.err 1552 fi 1553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1554 test $ac_status = 0; } && { 1555 test -z "$ac_c_werror_flag" || 1556 test ! -s conftest.err 1557 } && test -s conftest.$ac_objext; then : 1558 ac_retval=0 1559else 1560 $as_echo "$as_me: failed program was:" >&5 1561sed 's/^/| /' conftest.$ac_ext >&5 1562 1563 ac_retval=1 1564fi 1565 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1566 as_fn_set_status $ac_retval 1567 1568} # ac_fn_c_try_compile 1569 1570# ac_fn_c_try_link LINENO 1571# ----------------------- 1572# Try to link conftest.$ac_ext, and return whether this succeeded. 1573ac_fn_c_try_link () 1574{ 1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1576 rm -f conftest.$ac_objext conftest$ac_exeext 1577 if { { ac_try="$ac_link" 1578case "(($ac_try" in 1579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1580 *) ac_try_echo=$ac_try;; 1581esac 1582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1583$as_echo "$ac_try_echo"; } >&5 1584 (eval "$ac_link") 2>conftest.err 1585 ac_status=$? 1586 if test -s conftest.err; then 1587 grep -v '^ *+' conftest.err >conftest.er1 1588 cat conftest.er1 >&5 1589 mv -f conftest.er1 conftest.err 1590 fi 1591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1592 test $ac_status = 0; } && { 1593 test -z "$ac_c_werror_flag" || 1594 test ! -s conftest.err 1595 } && test -s conftest$ac_exeext && { 1596 test "$cross_compiling" = yes || 1597 $as_test_x conftest$ac_exeext 1598 }; then : 1599 ac_retval=0 1600else 1601 $as_echo "$as_me: failed program was:" >&5 1602sed 's/^/| /' conftest.$ac_ext >&5 1603 1604 ac_retval=1 1605fi 1606 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1607 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1608 # interfere with the next link command; also delete a directory that is 1609 # left behind by Apple's compiler. We do this before executing the actions. 1610 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1611 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1612 as_fn_set_status $ac_retval 1613 1614} # ac_fn_c_try_link 1615 1616# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1617# ------------------------------------------------------- 1618# Tests whether HEADER exists and can be compiled using the include files in 1619# INCLUDES, setting the cache variable VAR accordingly. 1620ac_fn_c_check_header_compile () 1621{ 1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1624$as_echo_n "checking for $2... " >&6; } 1625if eval \${$3+:} false; then : 1626 $as_echo_n "(cached) " >&6 1627else 1628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1629/* end confdefs.h. */ 1630$4 1631#include <$2> 1632_ACEOF 1633if ac_fn_c_try_compile "$LINENO"; then : 1634 eval "$3=yes" 1635else 1636 eval "$3=no" 1637fi 1638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1639fi 1640eval ac_res=\$$3 1641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1642$as_echo "$ac_res" >&6; } 1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1644 1645} # ac_fn_c_check_header_compile 1646 1647# ac_fn_c_try_cpp LINENO 1648# ---------------------- 1649# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1650ac_fn_c_try_cpp () 1651{ 1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1653 if { { ac_try="$ac_cpp conftest.$ac_ext" 1654case "(($ac_try" in 1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1656 *) ac_try_echo=$ac_try;; 1657esac 1658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1659$as_echo "$ac_try_echo"; } >&5 1660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1661 ac_status=$? 1662 if test -s conftest.err; then 1663 grep -v '^ *+' conftest.err >conftest.er1 1664 cat conftest.er1 >&5 1665 mv -f conftest.er1 conftest.err 1666 fi 1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1668 test $ac_status = 0; } > conftest.i && { 1669 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1670 test ! -s conftest.err 1671 }; then : 1672 ac_retval=0 1673else 1674 $as_echo "$as_me: failed program was:" >&5 1675sed 's/^/| /' conftest.$ac_ext >&5 1676 1677 ac_retval=1 1678fi 1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1680 as_fn_set_status $ac_retval 1681 1682} # ac_fn_c_try_cpp 1683 1684# ac_fn_c_try_run LINENO 1685# ---------------------- 1686# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1687# that executables *can* be run. 1688ac_fn_c_try_run () 1689{ 1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1691 if { { ac_try="$ac_link" 1692case "(($ac_try" in 1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1694 *) ac_try_echo=$ac_try;; 1695esac 1696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1697$as_echo "$ac_try_echo"; } >&5 1698 (eval "$ac_link") 2>&5 1699 ac_status=$? 1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1701 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1702 { { case "(($ac_try" in 1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1704 *) ac_try_echo=$ac_try;; 1705esac 1706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1707$as_echo "$ac_try_echo"; } >&5 1708 (eval "$ac_try") 2>&5 1709 ac_status=$? 1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1711 test $ac_status = 0; }; }; then : 1712 ac_retval=0 1713else 1714 $as_echo "$as_me: program exited with status $ac_status" >&5 1715 $as_echo "$as_me: failed program was:" >&5 1716sed 's/^/| /' conftest.$ac_ext >&5 1717 1718 ac_retval=$ac_status 1719fi 1720 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1722 as_fn_set_status $ac_retval 1723 1724} # ac_fn_c_try_run 1725 1726# ac_fn_c_check_func LINENO FUNC VAR 1727# ---------------------------------- 1728# Tests whether FUNC exists, setting the cache variable VAR accordingly 1729ac_fn_c_check_func () 1730{ 1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1733$as_echo_n "checking for $2... " >&6; } 1734if eval \${$3+:} false; then : 1735 $as_echo_n "(cached) " >&6 1736else 1737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1738/* end confdefs.h. */ 1739/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1740 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1741#define $2 innocuous_$2 1742 1743/* System header to define __stub macros and hopefully few prototypes, 1744 which can conflict with char $2 (); below. 1745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1746 <limits.h> exists even on freestanding compilers. */ 1747 1748#ifdef __STDC__ 1749# include <limits.h> 1750#else 1751# include <assert.h> 1752#endif 1753 1754#undef $2 1755 1756/* Override any GCC internal prototype to avoid an error. 1757 Use char because int might match the return type of a GCC 1758 builtin and then its argument prototype would still apply. */ 1759#ifdef __cplusplus 1760extern "C" 1761#endif 1762char $2 (); 1763/* The GNU C library defines this for functions which it implements 1764 to always fail with ENOSYS. Some functions are actually named 1765 something starting with __ and the normal name is an alias. */ 1766#if defined __stub_$2 || defined __stub___$2 1767choke me 1768#endif 1769 1770int 1771main () 1772{ 1773return $2 (); 1774 ; 1775 return 0; 1776} 1777_ACEOF 1778if ac_fn_c_try_link "$LINENO"; then : 1779 eval "$3=yes" 1780else 1781 eval "$3=no" 1782fi 1783rm -f core conftest.err conftest.$ac_objext \ 1784 conftest$ac_exeext conftest.$ac_ext 1785fi 1786eval ac_res=\$$3 1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1788$as_echo "$ac_res" >&6; } 1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1790 1791} # ac_fn_c_check_func 1792 1793# ac_fn_cxx_try_compile LINENO 1794# ---------------------------- 1795# Try to compile conftest.$ac_ext, and return whether this succeeded. 1796ac_fn_cxx_try_compile () 1797{ 1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1799 rm -f conftest.$ac_objext 1800 if { { ac_try="$ac_compile" 1801case "(($ac_try" in 1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1803 *) ac_try_echo=$ac_try;; 1804esac 1805eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1806$as_echo "$ac_try_echo"; } >&5 1807 (eval "$ac_compile") 2>conftest.err 1808 ac_status=$? 1809 if test -s conftest.err; then 1810 grep -v '^ *+' conftest.err >conftest.er1 1811 cat conftest.er1 >&5 1812 mv -f conftest.er1 conftest.err 1813 fi 1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1815 test $ac_status = 0; } && { 1816 test -z "$ac_cxx_werror_flag" || 1817 test ! -s conftest.err 1818 } && test -s conftest.$ac_objext; then : 1819 ac_retval=0 1820else 1821 $as_echo "$as_me: failed program was:" >&5 1822sed 's/^/| /' conftest.$ac_ext >&5 1823 1824 ac_retval=1 1825fi 1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1827 as_fn_set_status $ac_retval 1828 1829} # ac_fn_cxx_try_compile 1830 1831# ac_fn_cxx_try_cpp LINENO 1832# ------------------------ 1833# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1834ac_fn_cxx_try_cpp () 1835{ 1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1837 if { { ac_try="$ac_cpp conftest.$ac_ext" 1838case "(($ac_try" in 1839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1840 *) ac_try_echo=$ac_try;; 1841esac 1842eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1843$as_echo "$ac_try_echo"; } >&5 1844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1845 ac_status=$? 1846 if test -s conftest.err; then 1847 grep -v '^ *+' conftest.err >conftest.er1 1848 cat conftest.er1 >&5 1849 mv -f conftest.er1 conftest.err 1850 fi 1851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1852 test $ac_status = 0; } > conftest.i && { 1853 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1854 test ! -s conftest.err 1855 }; then : 1856 ac_retval=0 1857else 1858 $as_echo "$as_me: failed program was:" >&5 1859sed 's/^/| /' conftest.$ac_ext >&5 1860 1861 ac_retval=1 1862fi 1863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1864 as_fn_set_status $ac_retval 1865 1866} # ac_fn_cxx_try_cpp 1867 1868# ac_fn_cxx_try_link LINENO 1869# ------------------------- 1870# Try to link conftest.$ac_ext, and return whether this succeeded. 1871ac_fn_cxx_try_link () 1872{ 1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1874 rm -f conftest.$ac_objext conftest$ac_exeext 1875 if { { ac_try="$ac_link" 1876case "(($ac_try" in 1877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1878 *) ac_try_echo=$ac_try;; 1879esac 1880eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1881$as_echo "$ac_try_echo"; } >&5 1882 (eval "$ac_link") 2>conftest.err 1883 ac_status=$? 1884 if test -s conftest.err; then 1885 grep -v '^ *+' conftest.err >conftest.er1 1886 cat conftest.er1 >&5 1887 mv -f conftest.er1 conftest.err 1888 fi 1889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1890 test $ac_status = 0; } && { 1891 test -z "$ac_cxx_werror_flag" || 1892 test ! -s conftest.err 1893 } && test -s conftest$ac_exeext && { 1894 test "$cross_compiling" = yes || 1895 $as_test_x conftest$ac_exeext 1896 }; then : 1897 ac_retval=0 1898else 1899 $as_echo "$as_me: failed program was:" >&5 1900sed 's/^/| /' conftest.$ac_ext >&5 1901 1902 ac_retval=1 1903fi 1904 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1905 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1906 # interfere with the next link command; also delete a directory that is 1907 # left behind by Apple's compiler. We do this before executing the actions. 1908 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1909 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1910 as_fn_set_status $ac_retval 1911 1912} # ac_fn_cxx_try_link 1913 1914# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1915# ------------------------------------------------------- 1916# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1917# the include files in INCLUDES and setting the cache variable VAR 1918# accordingly. 1919ac_fn_c_check_header_mongrel () 1920{ 1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1922 if eval \${$3+:} false; then : 1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1924$as_echo_n "checking for $2... " >&6; } 1925if eval \${$3+:} false; then : 1926 $as_echo_n "(cached) " >&6 1927fi 1928eval ac_res=\$$3 1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1930$as_echo "$ac_res" >&6; } 1931else 1932 # Is the header compilable? 1933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1934$as_echo_n "checking $2 usability... " >&6; } 1935cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1936/* end confdefs.h. */ 1937$4 1938#include <$2> 1939_ACEOF 1940if ac_fn_c_try_compile "$LINENO"; then : 1941 ac_header_compiler=yes 1942else 1943 ac_header_compiler=no 1944fi 1945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1947$as_echo "$ac_header_compiler" >&6; } 1948 1949# Is the header present? 1950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1951$as_echo_n "checking $2 presence... " >&6; } 1952cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1953/* end confdefs.h. */ 1954#include <$2> 1955_ACEOF 1956if ac_fn_c_try_cpp "$LINENO"; then : 1957 ac_header_preproc=yes 1958else 1959 ac_header_preproc=no 1960fi 1961rm -f conftest.err conftest.i conftest.$ac_ext 1962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1963$as_echo "$ac_header_preproc" >&6; } 1964 1965# So? What about this header? 1966case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1967 yes:no: ) 1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1969$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1971$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1972 ;; 1973 no:yes:* ) 1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1975$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1977$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1979$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1981$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1983$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1984( $as_echo "## ------------------------------------------------------------------------------------ ## 1985## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa&component=GLU ## 1986## ------------------------------------------------------------------------------------ ##" 1987 ) | sed "s/^/$as_me: WARNING: /" >&2 1988 ;; 1989esac 1990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1991$as_echo_n "checking for $2... " >&6; } 1992if eval \${$3+:} false; then : 1993 $as_echo_n "(cached) " >&6 1994else 1995 eval "$3=\$ac_header_compiler" 1996fi 1997eval ac_res=\$$3 1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1999$as_echo "$ac_res" >&6; } 2000fi 2001 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2002 2003} # ac_fn_c_check_header_mongrel 2004 2005# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2006# --------------------------------------------- 2007# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2008# accordingly. 2009ac_fn_c_check_decl () 2010{ 2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2012 as_decl_name=`echo $2|sed 's/ *(.*//'` 2013 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2015$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2016if eval \${$3+:} false; then : 2017 $as_echo_n "(cached) " >&6 2018else 2019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2020/* end confdefs.h. */ 2021$4 2022int 2023main () 2024{ 2025#ifndef $as_decl_name 2026#ifdef __cplusplus 2027 (void) $as_decl_use; 2028#else 2029 (void) $as_decl_name; 2030#endif 2031#endif 2032 2033 ; 2034 return 0; 2035} 2036_ACEOF 2037if ac_fn_c_try_compile "$LINENO"; then : 2038 eval "$3=yes" 2039else 2040 eval "$3=no" 2041fi 2042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2043fi 2044eval ac_res=\$$3 2045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2046$as_echo "$ac_res" >&6; } 2047 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2048 2049} # ac_fn_c_check_decl 2050cat >config.log <<_ACEOF 2051This file contains any messages produced by compilers while 2052running configure, to aid debugging if configure makes a mistake. 2053 2054It was created by glu $as_me 9.0.0, which was 2055generated by GNU Autoconf 2.68. Invocation command line was 2056 2057 $ $0 $@ 2058 2059_ACEOF 2060exec 5>>config.log 2061{ 2062cat <<_ASUNAME 2063## --------- ## 2064## Platform. ## 2065## --------- ## 2066 2067hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2068uname -m = `(uname -m) 2>/dev/null || echo unknown` 2069uname -r = `(uname -r) 2>/dev/null || echo unknown` 2070uname -s = `(uname -s) 2>/dev/null || echo unknown` 2071uname -v = `(uname -v) 2>/dev/null || echo unknown` 2072 2073/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2074/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2075 2076/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2077/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2078/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2079/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2080/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2081/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2082/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2083 2084_ASUNAME 2085 2086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2087for as_dir in $PATH 2088do 2089 IFS=$as_save_IFS 2090 test -z "$as_dir" && as_dir=. 2091 $as_echo "PATH: $as_dir" 2092 done 2093IFS=$as_save_IFS 2094 2095} >&5 2096 2097cat >&5 <<_ACEOF 2098 2099 2100## ----------- ## 2101## Core tests. ## 2102## ----------- ## 2103 2104_ACEOF 2105 2106 2107# Keep a trace of the command line. 2108# Strip out --no-create and --no-recursion so they do not pile up. 2109# Strip out --silent because we don't want to record it for future runs. 2110# Also quote any args containing shell meta-characters. 2111# Make two passes to allow for proper duplicate-argument suppression. 2112ac_configure_args= 2113ac_configure_args0= 2114ac_configure_args1= 2115ac_must_keep_next=false 2116for ac_pass in 1 2 2117do 2118 for ac_arg 2119 do 2120 case $ac_arg in 2121 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2123 | -silent | --silent | --silen | --sile | --sil) 2124 continue ;; 2125 *\'*) 2126 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2127 esac 2128 case $ac_pass in 2129 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2130 2) 2131 as_fn_append ac_configure_args1 " '$ac_arg'" 2132 if test $ac_must_keep_next = true; then 2133 ac_must_keep_next=false # Got value, back to normal. 2134 else 2135 case $ac_arg in 2136 *=* | --config-cache | -C | -disable-* | --disable-* \ 2137 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2138 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2139 | -with-* | --with-* | -without-* | --without-* | --x) 2140 case "$ac_configure_args0 " in 2141 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2142 esac 2143 ;; 2144 -* ) ac_must_keep_next=true ;; 2145 esac 2146 fi 2147 as_fn_append ac_configure_args " '$ac_arg'" 2148 ;; 2149 esac 2150 done 2151done 2152{ ac_configure_args0=; unset ac_configure_args0;} 2153{ ac_configure_args1=; unset ac_configure_args1;} 2154 2155# When interrupted or exit'd, cleanup temporary files, and complete 2156# config.log. We remove comments because anyway the quotes in there 2157# would cause problems or look ugly. 2158# WARNING: Use '\'' to represent an apostrophe within the trap. 2159# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2160trap 'exit_status=$? 2161 # Save into config.log some information that might help in debugging. 2162 { 2163 echo 2164 2165 $as_echo "## ---------------- ## 2166## Cache variables. ## 2167## ---------------- ##" 2168 echo 2169 # The following way of writing the cache mishandles newlines in values, 2170( 2171 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2172 eval ac_val=\$$ac_var 2173 case $ac_val in #( 2174 *${as_nl}*) 2175 case $ac_var in #( 2176 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2177$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2178 esac 2179 case $ac_var in #( 2180 _ | IFS | as_nl) ;; #( 2181 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2182 *) { eval $ac_var=; unset $ac_var;} ;; 2183 esac ;; 2184 esac 2185 done 2186 (set) 2>&1 | 2187 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2188 *${as_nl}ac_space=\ *) 2189 sed -n \ 2190 "s/'\''/'\''\\\\'\'''\''/g; 2191 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2192 ;; #( 2193 *) 2194 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2195 ;; 2196 esac | 2197 sort 2198) 2199 echo 2200 2201 $as_echo "## ----------------- ## 2202## Output variables. ## 2203## ----------------- ##" 2204 echo 2205 for ac_var in $ac_subst_vars 2206 do 2207 eval ac_val=\$$ac_var 2208 case $ac_val in 2209 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2210 esac 2211 $as_echo "$ac_var='\''$ac_val'\''" 2212 done | sort 2213 echo 2214 2215 if test -n "$ac_subst_files"; then 2216 $as_echo "## ------------------- ## 2217## File substitutions. ## 2218## ------------------- ##" 2219 echo 2220 for ac_var in $ac_subst_files 2221 do 2222 eval ac_val=\$$ac_var 2223 case $ac_val in 2224 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2225 esac 2226 $as_echo "$ac_var='\''$ac_val'\''" 2227 done | sort 2228 echo 2229 fi 2230 2231 if test -s confdefs.h; then 2232 $as_echo "## ----------- ## 2233## confdefs.h. ## 2234## ----------- ##" 2235 echo 2236 cat confdefs.h 2237 echo 2238 fi 2239 test "$ac_signal" != 0 && 2240 $as_echo "$as_me: caught signal $ac_signal" 2241 $as_echo "$as_me: exit $exit_status" 2242 } >&5 2243 rm -f core *.core core.conftest.* && 2244 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2245 exit $exit_status 2246' 0 2247for ac_signal in 1 2 13 15; do 2248 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2249done 2250ac_signal=0 2251 2252# confdefs.h avoids OS command line length limits that DEFS can exceed. 2253rm -f -r conftest* confdefs.h 2254 2255$as_echo "/* confdefs.h */" > confdefs.h 2256 2257# Predefined preprocessor variables. 2258 2259cat >>confdefs.h <<_ACEOF 2260#define PACKAGE_NAME "$PACKAGE_NAME" 2261_ACEOF 2262 2263cat >>confdefs.h <<_ACEOF 2264#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2265_ACEOF 2266 2267cat >>confdefs.h <<_ACEOF 2268#define PACKAGE_VERSION "$PACKAGE_VERSION" 2269_ACEOF 2270 2271cat >>confdefs.h <<_ACEOF 2272#define PACKAGE_STRING "$PACKAGE_STRING" 2273_ACEOF 2274 2275cat >>confdefs.h <<_ACEOF 2276#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2277_ACEOF 2278 2279cat >>confdefs.h <<_ACEOF 2280#define PACKAGE_URL "$PACKAGE_URL" 2281_ACEOF 2282 2283 2284# Let the site file select an alternate cache file if it wants to. 2285# Prefer an explicitly selected file to automatically selected ones. 2286ac_site_file1=NONE 2287ac_site_file2=NONE 2288if test -n "$CONFIG_SITE"; then 2289 # We do not want a PATH search for config.site. 2290 case $CONFIG_SITE in #(( 2291 -*) ac_site_file1=./$CONFIG_SITE;; 2292 */*) ac_site_file1=$CONFIG_SITE;; 2293 *) ac_site_file1=./$CONFIG_SITE;; 2294 esac 2295elif test "x$prefix" != xNONE; then 2296 ac_site_file1=$prefix/share/config.site 2297 ac_site_file2=$prefix/etc/config.site 2298else 2299 ac_site_file1=$ac_default_prefix/share/config.site 2300 ac_site_file2=$ac_default_prefix/etc/config.site 2301fi 2302for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2303do 2304 test "x$ac_site_file" = xNONE && continue 2305 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2306 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2307$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2308 sed 's/^/| /' "$ac_site_file" >&5 2309 . "$ac_site_file" \ 2310 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2311$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2312as_fn_error $? "failed to load site script $ac_site_file 2313See \`config.log' for more details" "$LINENO" 5; } 2314 fi 2315done 2316 2317if test -r "$cache_file"; then 2318 # Some versions of bash will fail to source /dev/null (special files 2319 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2320 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2321 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2322$as_echo "$as_me: loading cache $cache_file" >&6;} 2323 case $cache_file in 2324 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2325 *) . "./$cache_file";; 2326 esac 2327 fi 2328else 2329 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2330$as_echo "$as_me: creating cache $cache_file" >&6;} 2331 >$cache_file 2332fi 2333 2334# Check that the precious variables saved in the cache have kept the same 2335# value. 2336ac_cache_corrupted=false 2337for ac_var in $ac_precious_vars; do 2338 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2339 eval ac_new_set=\$ac_env_${ac_var}_set 2340 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2341 eval ac_new_val=\$ac_env_${ac_var}_value 2342 case $ac_old_set,$ac_new_set in 2343 set,) 2344 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2345$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2346 ac_cache_corrupted=: ;; 2347 ,set) 2348 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2349$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2350 ac_cache_corrupted=: ;; 2351 ,);; 2352 *) 2353 if test "x$ac_old_val" != "x$ac_new_val"; then 2354 # differences in whitespace do not lead to failure. 2355 ac_old_val_w=`echo x $ac_old_val` 2356 ac_new_val_w=`echo x $ac_new_val` 2357 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2358 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2359$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2360 ac_cache_corrupted=: 2361 else 2362 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2363$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2364 eval $ac_var=\$ac_old_val 2365 fi 2366 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2367$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2368 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2369$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2370 fi;; 2371 esac 2372 # Pass precious variables to config.status. 2373 if test "$ac_new_set" = set; then 2374 case $ac_new_val in 2375 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2376 *) ac_arg=$ac_var=$ac_new_val ;; 2377 esac 2378 case " $ac_configure_args " in 2379 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2380 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2381 esac 2382 fi 2383done 2384if $ac_cache_corrupted; then 2385 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2386$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2387 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2388$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2389 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2390fi 2391## -------------------- ## 2392## Main body of script. ## 2393## -------------------- ## 2394 2395ac_ext=c 2396ac_cpp='$CPP $CPPFLAGS' 2397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2399ac_compiler_gnu=$ac_cv_c_compiler_gnu 2400 2401 2402 2403ac_aux_dir= 2404for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2405 if test -f "$ac_dir/install-sh"; then 2406 ac_aux_dir=$ac_dir 2407 ac_install_sh="$ac_aux_dir/install-sh -c" 2408 break 2409 elif test -f "$ac_dir/install.sh"; then 2410 ac_aux_dir=$ac_dir 2411 ac_install_sh="$ac_aux_dir/install.sh -c" 2412 break 2413 elif test -f "$ac_dir/shtool"; then 2414 ac_aux_dir=$ac_dir 2415 ac_install_sh="$ac_aux_dir/shtool install -c" 2416 break 2417 fi 2418done 2419if test -z "$ac_aux_dir"; then 2420 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2421fi 2422 2423# These three variables are undocumented and unsupported, 2424# and are intended to be withdrawn in a future Autoconf release. 2425# They can cause serious problems if a builder's source tree is in a directory 2426# whose full name contains unusual characters. 2427ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2428ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2429ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2430 2431 2432# Make sure we can run config.sub. 2433$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2434 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2435 2436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2437$as_echo_n "checking build system type... " >&6; } 2438if ${ac_cv_build+:} false; then : 2439 $as_echo_n "(cached) " >&6 2440else 2441 ac_build_alias=$build_alias 2442test "x$ac_build_alias" = x && 2443 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2444test "x$ac_build_alias" = x && 2445 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2446ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2447 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2448 2449fi 2450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2451$as_echo "$ac_cv_build" >&6; } 2452case $ac_cv_build in 2453*-*-*) ;; 2454*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2455esac 2456build=$ac_cv_build 2457ac_save_IFS=$IFS; IFS='-' 2458set x $ac_cv_build 2459shift 2460build_cpu=$1 2461build_vendor=$2 2462shift; shift 2463# Remember, the first character of IFS is used to create $*, 2464# except with old shells: 2465build_os=$* 2466IFS=$ac_save_IFS 2467case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2468 2469 2470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2471$as_echo_n "checking host system type... " >&6; } 2472if ${ac_cv_host+:} false; then : 2473 $as_echo_n "(cached) " >&6 2474else 2475 if test "x$host_alias" = x; then 2476 ac_cv_host=$ac_cv_build 2477else 2478 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2479 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2480fi 2481 2482fi 2483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2484$as_echo "$ac_cv_host" >&6; } 2485case $ac_cv_host in 2486*-*-*) ;; 2487*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2488esac 2489host=$ac_cv_host 2490ac_save_IFS=$IFS; IFS='-' 2491set x $ac_cv_host 2492shift 2493host_cpu=$1 2494host_vendor=$2 2495shift; shift 2496# Remember, the first character of IFS is used to create $*, 2497# except with old shells: 2498host_os=$* 2499IFS=$ac_save_IFS 2500case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2501 2502 2503 2504am__api_version='1.12' 2505 2506# Find a good install program. We prefer a C program (faster), 2507# so one script is as good as another. But avoid the broken or 2508# incompatible versions: 2509# SysV /etc/install, /usr/sbin/install 2510# SunOS /usr/etc/install 2511# IRIX /sbin/install 2512# AIX /bin/install 2513# AmigaOS /C/install, which installs bootblocks on floppy discs 2514# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2515# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2516# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2517# OS/2's system install, which has a completely different semantic 2518# ./install, which can be erroneously created by make from ./install.sh. 2519# Reject install programs that cannot install multiple files. 2520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2521$as_echo_n "checking for a BSD-compatible install... " >&6; } 2522if test -z "$INSTALL"; then 2523if ${ac_cv_path_install+:} false; then : 2524 $as_echo_n "(cached) " >&6 2525else 2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2527for as_dir in $PATH 2528do 2529 IFS=$as_save_IFS 2530 test -z "$as_dir" && as_dir=. 2531 # Account for people who put trailing slashes in PATH elements. 2532case $as_dir/ in #(( 2533 ./ | .// | /[cC]/* | \ 2534 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2535 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2536 /usr/ucb/* ) ;; 2537 *) 2538 # OSF1 and SCO ODT 3.0 have their own names for install. 2539 # Don't use installbsd from OSF since it installs stuff as root 2540 # by default. 2541 for ac_prog in ginstall scoinst install; do 2542 for ac_exec_ext in '' $ac_executable_extensions; do 2543 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2544 if test $ac_prog = install && 2545 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2546 # AIX install. It has an incompatible calling convention. 2547 : 2548 elif test $ac_prog = install && 2549 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2550 # program-specific install script used by HP pwplus--don't use. 2551 : 2552 else 2553 rm -rf conftest.one conftest.two conftest.dir 2554 echo one > conftest.one 2555 echo two > conftest.two 2556 mkdir conftest.dir 2557 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2558 test -s conftest.one && test -s conftest.two && 2559 test -s conftest.dir/conftest.one && 2560 test -s conftest.dir/conftest.two 2561 then 2562 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2563 break 3 2564 fi 2565 fi 2566 fi 2567 done 2568 done 2569 ;; 2570esac 2571 2572 done 2573IFS=$as_save_IFS 2574 2575rm -rf conftest.one conftest.two conftest.dir 2576 2577fi 2578 if test "${ac_cv_path_install+set}" = set; then 2579 INSTALL=$ac_cv_path_install 2580 else 2581 # As a last resort, use the slow shell script. Don't cache a 2582 # value for INSTALL within a source directory, because that will 2583 # break other packages using the cache if that directory is 2584 # removed, or if the value is a relative name. 2585 INSTALL=$ac_install_sh 2586 fi 2587fi 2588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2589$as_echo "$INSTALL" >&6; } 2590 2591# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2592# It thinks the first close brace ends the variable substitution. 2593test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2594 2595test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2596 2597test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2598 2599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2600$as_echo_n "checking whether build environment is sane... " >&6; } 2601# Reject unsafe characters in $srcdir or the absolute working directory 2602# name. Accept space and tab only in the latter. 2603am_lf=' 2604' 2605case `pwd` in 2606 *[\\\"\#\$\&\'\`$am_lf]*) 2607 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2608esac 2609case $srcdir in 2610 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2611 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2612esac 2613 2614# Do 'set' in a subshell so we don't clobber the current shell's 2615# arguments. Must try -L first in case configure is actually a 2616# symlink; some systems play weird games with the mod time of symlinks 2617# (eg FreeBSD returns the mod time of the symlink's containing 2618# directory). 2619if ( 2620 am_has_slept=no 2621 for am_try in 1 2; do 2622 echo "timestamp, slept: $am_has_slept" > conftest.file 2623 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2624 if test "$*" = "X"; then 2625 # -L didn't work. 2626 set X `ls -t "$srcdir/configure" conftest.file` 2627 fi 2628 if test "$*" != "X $srcdir/configure conftest.file" \ 2629 && test "$*" != "X conftest.file $srcdir/configure"; then 2630 2631 # If neither matched, then we have a broken ls. This can happen 2632 # if, for instance, CONFIG_SHELL is bash and it inherits a 2633 # broken ls alias from the environment. This has actually 2634 # happened. Such a system could not be considered "sane". 2635 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2636 alias in your environment" "$LINENO" 5 2637 fi 2638 if test "$2" = conftest.file || test $am_try -eq 2; then 2639 break 2640 fi 2641 # Just in case. 2642 sleep 1 2643 am_has_slept=yes 2644 done 2645 test "$2" = conftest.file 2646 ) 2647then 2648 # Ok. 2649 : 2650else 2651 as_fn_error $? "newly created file is older than distributed files! 2652Check your system clock" "$LINENO" 5 2653fi 2654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2655$as_echo "yes" >&6; } 2656# If we didn't sleep, we still need to ensure time stamps of config.status and 2657# generated files are strictly newer. 2658am_sleep_pid= 2659if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2660 ( sleep 1 ) & 2661 am_sleep_pid=$! 2662fi 2663 2664rm -f conftest.file 2665 2666test "$program_prefix" != NONE && 2667 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2668# Use a double $ so make ignores it. 2669test "$program_suffix" != NONE && 2670 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2671# Double any \ or $. 2672# By default was `s,x,x', remove it if useless. 2673ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2674program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2675 2676# expand $ac_aux_dir to an absolute path 2677am_aux_dir=`cd $ac_aux_dir && pwd` 2678 2679if test x"${MISSING+set}" != xset; then 2680 case $am_aux_dir in 2681 *\ * | *\ *) 2682 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2683 *) 2684 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2685 esac 2686fi 2687# Use eval to expand $SHELL 2688if eval "$MISSING --run true"; then 2689 am_missing_run="$MISSING --run " 2690else 2691 am_missing_run= 2692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2693$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2694fi 2695 2696if test x"${install_sh}" != xset; then 2697 case $am_aux_dir in 2698 *\ * | *\ *) 2699 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2700 *) 2701 install_sh="\${SHELL} $am_aux_dir/install-sh" 2702 esac 2703fi 2704 2705# Installed binaries are usually stripped using 'strip' when the user 2706# run "make install-strip". However 'strip' might not be the right 2707# tool to use in cross-compilation environments, therefore Automake 2708# will honor the 'STRIP' environment variable to overrule this program. 2709if test "$cross_compiling" != no; then 2710 if test -n "$ac_tool_prefix"; then 2711 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2712set dummy ${ac_tool_prefix}strip; ac_word=$2 2713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2714$as_echo_n "checking for $ac_word... " >&6; } 2715if ${ac_cv_prog_STRIP+:} false; then : 2716 $as_echo_n "(cached) " >&6 2717else 2718 if test -n "$STRIP"; then 2719 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2720else 2721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2722for as_dir in $PATH 2723do 2724 IFS=$as_save_IFS 2725 test -z "$as_dir" && as_dir=. 2726 for ac_exec_ext in '' $ac_executable_extensions; do 2727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2728 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2730 break 2 2731 fi 2732done 2733 done 2734IFS=$as_save_IFS 2735 2736fi 2737fi 2738STRIP=$ac_cv_prog_STRIP 2739if test -n "$STRIP"; then 2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2741$as_echo "$STRIP" >&6; } 2742else 2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2744$as_echo "no" >&6; } 2745fi 2746 2747 2748fi 2749if test -z "$ac_cv_prog_STRIP"; then 2750 ac_ct_STRIP=$STRIP 2751 # Extract the first word of "strip", so it can be a program name with args. 2752set dummy strip; ac_word=$2 2753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2754$as_echo_n "checking for $ac_word... " >&6; } 2755if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2756 $as_echo_n "(cached) " >&6 2757else 2758 if test -n "$ac_ct_STRIP"; then 2759 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2760else 2761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2762for as_dir in $PATH 2763do 2764 IFS=$as_save_IFS 2765 test -z "$as_dir" && as_dir=. 2766 for ac_exec_ext in '' $ac_executable_extensions; do 2767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2768 ac_cv_prog_ac_ct_STRIP="strip" 2769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2770 break 2 2771 fi 2772done 2773 done 2774IFS=$as_save_IFS 2775 2776fi 2777fi 2778ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2779if test -n "$ac_ct_STRIP"; then 2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2781$as_echo "$ac_ct_STRIP" >&6; } 2782else 2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2784$as_echo "no" >&6; } 2785fi 2786 2787 if test "x$ac_ct_STRIP" = x; then 2788 STRIP=":" 2789 else 2790 case $cross_compiling:$ac_tool_warned in 2791yes:) 2792{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2793$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2794ac_tool_warned=yes ;; 2795esac 2796 STRIP=$ac_ct_STRIP 2797 fi 2798else 2799 STRIP="$ac_cv_prog_STRIP" 2800fi 2801 2802fi 2803INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2804 2805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2806$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2807if test -z "$MKDIR_P"; then 2808 if ${ac_cv_path_mkdir+:} false; then : 2809 $as_echo_n "(cached) " >&6 2810else 2811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2812for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2813do 2814 IFS=$as_save_IFS 2815 test -z "$as_dir" && as_dir=. 2816 for ac_prog in mkdir gmkdir; do 2817 for ac_exec_ext in '' $ac_executable_extensions; do 2818 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2819 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2820 'mkdir (GNU coreutils) '* | \ 2821 'mkdir (coreutils) '* | \ 2822 'mkdir (fileutils) '4.1*) 2823 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2824 break 3;; 2825 esac 2826 done 2827 done 2828 done 2829IFS=$as_save_IFS 2830 2831fi 2832 2833 test -d ./--version && rmdir ./--version 2834 if test "${ac_cv_path_mkdir+set}" = set; then 2835 MKDIR_P="$ac_cv_path_mkdir -p" 2836 else 2837 # As a last resort, use the slow shell script. Don't cache a 2838 # value for MKDIR_P within a source directory, because that will 2839 # break other packages using the cache if that directory is 2840 # removed, or if the value is a relative name. 2841 MKDIR_P="$ac_install_sh -d" 2842 fi 2843fi 2844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2845$as_echo "$MKDIR_P" >&6; } 2846 2847for ac_prog in gawk mawk nawk awk 2848do 2849 # Extract the first word of "$ac_prog", so it can be a program name with args. 2850set dummy $ac_prog; ac_word=$2 2851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2852$as_echo_n "checking for $ac_word... " >&6; } 2853if ${ac_cv_prog_AWK+:} false; then : 2854 $as_echo_n "(cached) " >&6 2855else 2856 if test -n "$AWK"; then 2857 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2858else 2859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2860for as_dir in $PATH 2861do 2862 IFS=$as_save_IFS 2863 test -z "$as_dir" && as_dir=. 2864 for ac_exec_ext in '' $ac_executable_extensions; do 2865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2866 ac_cv_prog_AWK="$ac_prog" 2867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2868 break 2 2869 fi 2870done 2871 done 2872IFS=$as_save_IFS 2873 2874fi 2875fi 2876AWK=$ac_cv_prog_AWK 2877if test -n "$AWK"; then 2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2879$as_echo "$AWK" >&6; } 2880else 2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2882$as_echo "no" >&6; } 2883fi 2884 2885 2886 test -n "$AWK" && break 2887done 2888 2889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2890$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2891set x ${MAKE-make} 2892ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2893if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2894 $as_echo_n "(cached) " >&6 2895else 2896 cat >conftest.make <<\_ACEOF 2897SHELL = /bin/sh 2898all: 2899 @echo '@@@%%%=$(MAKE)=@@@%%%' 2900_ACEOF 2901# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2902case `${MAKE-make} -f conftest.make 2>/dev/null` in 2903 *@@@%%%=?*=@@@%%%*) 2904 eval ac_cv_prog_make_${ac_make}_set=yes;; 2905 *) 2906 eval ac_cv_prog_make_${ac_make}_set=no;; 2907esac 2908rm -f conftest.make 2909fi 2910if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2912$as_echo "yes" >&6; } 2913 SET_MAKE= 2914else 2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2916$as_echo "no" >&6; } 2917 SET_MAKE="MAKE=${MAKE-make}" 2918fi 2919 2920rm -rf .tst 2>/dev/null 2921mkdir .tst 2>/dev/null 2922if test -d .tst; then 2923 am__leading_dot=. 2924else 2925 am__leading_dot=_ 2926fi 2927rmdir .tst 2>/dev/null 2928 2929if test "`cd $srcdir && pwd`" != "`pwd`"; then 2930 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2931 # is not polluted with repeated "-I." 2932 am__isrc=' -I$(srcdir)' 2933 # test to see if srcdir already configured 2934 if test -f $srcdir/config.status; then 2935 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2936 fi 2937fi 2938 2939# test whether we have cygpath 2940if test -z "$CYGPATH_W"; then 2941 if (cygpath --version) >/dev/null 2>/dev/null; then 2942 CYGPATH_W='cygpath -w' 2943 else 2944 CYGPATH_W=echo 2945 fi 2946fi 2947 2948 2949# Define the identity of the package. 2950 PACKAGE='glu' 2951 VERSION='9.0.0' 2952 2953 2954cat >>confdefs.h <<_ACEOF 2955#define PACKAGE "$PACKAGE" 2956_ACEOF 2957 2958 2959cat >>confdefs.h <<_ACEOF 2960#define VERSION "$VERSION" 2961_ACEOF 2962 2963# Some tools Automake needs. 2964 2965ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2966 2967 2968AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2969 2970 2971AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2972 2973 2974AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2975 2976 2977MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2978 2979# For better backward compatibility. To be removed once Automake 1.9.x 2980# dies out for good. For more background, see: 2981# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2982# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2983mkdir_p='$(MKDIR_P)' 2984 2985# We need awk for the "check" target. The system "awk" is bad on 2986# some platforms. 2987# Always define AMTAR for backward compatibility. Yes, it's still used 2988# in the wild :-( We should find a proper way to deprecate it ... 2989AMTAR='$${TAR-tar}' 2990 2991am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2992 2993 2994 2995 2996 2997 2998 2999case `pwd` in 3000 *\ * | *\ *) 3001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3002$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3003esac 3004 3005 3006 3007macro_version='2.4' 3008macro_revision='1.3293' 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022ltmain="$ac_aux_dir/ltmain.sh" 3023 3024# Backslashify metacharacters that are still active within 3025# double-quoted strings. 3026sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3027 3028# Same as above, but do not quote variable references. 3029double_quote_subst='s/\(["`\\]\)/\\\1/g' 3030 3031# Sed substitution to delay expansion of an escaped shell variable in a 3032# double_quote_subst'ed string. 3033delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3034 3035# Sed substitution to delay expansion of an escaped single quote. 3036delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3037 3038# Sed substitution to avoid accidental globbing in evaled expressions 3039no_glob_subst='s/\*/\\\*/g' 3040 3041ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3042ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3043ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3044 3045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3046$as_echo_n "checking how to print strings... " >&6; } 3047# Test print first, because it will be a builtin if present. 3048if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3049 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3050 ECHO='print -r --' 3051elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3052 ECHO='printf %s\n' 3053else 3054 # Use this function as a fallback that always works. 3055 func_fallback_echo () 3056 { 3057 eval 'cat <<_LTECHO_EOF 3058$1 3059_LTECHO_EOF' 3060 } 3061 ECHO='func_fallback_echo' 3062fi 3063 3064# func_echo_all arg... 3065# Invoke $ECHO with all args, space-separated. 3066func_echo_all () 3067{ 3068 $ECHO "" 3069} 3070 3071case "$ECHO" in 3072 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3073$as_echo "printf" >&6; } ;; 3074 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3075$as_echo "print -r" >&6; } ;; 3076 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3077$as_echo "cat" >&6; } ;; 3078esac 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093DEPDIR="${am__leading_dot}deps" 3094 3095ac_config_commands="$ac_config_commands depfiles" 3096 3097 3098am_make=${MAKE-make} 3099cat > confinc << 'END' 3100am__doit: 3101 @echo this is the am__doit target 3102.PHONY: am__doit 3103END 3104# If we don't find an include directive, just comment out the code. 3105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3106$as_echo_n "checking for style of include used by $am_make... " >&6; } 3107am__include="#" 3108am__quote= 3109_am_result=none 3110# First try GNU make style include. 3111echo "include confinc" > confmf 3112# Ignore all kinds of additional output from 'make'. 3113case `$am_make -s -f confmf 2> /dev/null` in #( 3114*the\ am__doit\ target*) 3115 am__include=include 3116 am__quote= 3117 _am_result=GNU 3118 ;; 3119esac 3120# Now try BSD make style include. 3121if test "$am__include" = "#"; then 3122 echo '.include "confinc"' > confmf 3123 case `$am_make -s -f confmf 2> /dev/null` in #( 3124 *the\ am__doit\ target*) 3125 am__include=.include 3126 am__quote="\"" 3127 _am_result=BSD 3128 ;; 3129 esac 3130fi 3131 3132 3133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3134$as_echo "$_am_result" >&6; } 3135rm -f confinc confmf 3136 3137# Check whether --enable-dependency-tracking was given. 3138if test "${enable_dependency_tracking+set}" = set; then : 3139 enableval=$enable_dependency_tracking; 3140fi 3141 3142if test "x$enable_dependency_tracking" != xno; then 3143 am_depcomp="$ac_aux_dir/depcomp" 3144 AMDEPBACKSLASH='\' 3145 am__nodep='_no' 3146fi 3147 if test "x$enable_dependency_tracking" != xno; then 3148 AMDEP_TRUE= 3149 AMDEP_FALSE='#' 3150else 3151 AMDEP_TRUE='#' 3152 AMDEP_FALSE= 3153fi 3154 3155 3156ac_ext=c 3157ac_cpp='$CPP $CPPFLAGS' 3158ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3159ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3160ac_compiler_gnu=$ac_cv_c_compiler_gnu 3161if test -n "$ac_tool_prefix"; then 3162 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3163set dummy ${ac_tool_prefix}gcc; ac_word=$2 3164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3165$as_echo_n "checking for $ac_word... " >&6; } 3166if ${ac_cv_prog_CC+:} false; then : 3167 $as_echo_n "(cached) " >&6 3168else 3169 if test -n "$CC"; then 3170 ac_cv_prog_CC="$CC" # Let the user override the test. 3171else 3172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3173for as_dir in $PATH 3174do 3175 IFS=$as_save_IFS 3176 test -z "$as_dir" && as_dir=. 3177 for ac_exec_ext in '' $ac_executable_extensions; do 3178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3179 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3181 break 2 3182 fi 3183done 3184 done 3185IFS=$as_save_IFS 3186 3187fi 3188fi 3189CC=$ac_cv_prog_CC 3190if test -n "$CC"; then 3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3192$as_echo "$CC" >&6; } 3193else 3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3195$as_echo "no" >&6; } 3196fi 3197 3198 3199fi 3200if test -z "$ac_cv_prog_CC"; then 3201 ac_ct_CC=$CC 3202 # Extract the first word of "gcc", so it can be a program name with args. 3203set dummy gcc; ac_word=$2 3204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3205$as_echo_n "checking for $ac_word... " >&6; } 3206if ${ac_cv_prog_ac_ct_CC+:} false; then : 3207 $as_echo_n "(cached) " >&6 3208else 3209 if test -n "$ac_ct_CC"; then 3210 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3211else 3212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3213for as_dir in $PATH 3214do 3215 IFS=$as_save_IFS 3216 test -z "$as_dir" && as_dir=. 3217 for ac_exec_ext in '' $ac_executable_extensions; do 3218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3219 ac_cv_prog_ac_ct_CC="gcc" 3220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3221 break 2 3222 fi 3223done 3224 done 3225IFS=$as_save_IFS 3226 3227fi 3228fi 3229ac_ct_CC=$ac_cv_prog_ac_ct_CC 3230if test -n "$ac_ct_CC"; then 3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3232$as_echo "$ac_ct_CC" >&6; } 3233else 3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3235$as_echo "no" >&6; } 3236fi 3237 3238 if test "x$ac_ct_CC" = x; then 3239 CC="" 3240 else 3241 case $cross_compiling:$ac_tool_warned in 3242yes:) 3243{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3244$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3245ac_tool_warned=yes ;; 3246esac 3247 CC=$ac_ct_CC 3248 fi 3249else 3250 CC="$ac_cv_prog_CC" 3251fi 3252 3253if test -z "$CC"; then 3254 if test -n "$ac_tool_prefix"; then 3255 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3256set dummy ${ac_tool_prefix}cc; ac_word=$2 3257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3258$as_echo_n "checking for $ac_word... " >&6; } 3259if ${ac_cv_prog_CC+:} false; then : 3260 $as_echo_n "(cached) " >&6 3261else 3262 if test -n "$CC"; then 3263 ac_cv_prog_CC="$CC" # Let the user override the test. 3264else 3265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3266for as_dir in $PATH 3267do 3268 IFS=$as_save_IFS 3269 test -z "$as_dir" && as_dir=. 3270 for ac_exec_ext in '' $ac_executable_extensions; do 3271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3272 ac_cv_prog_CC="${ac_tool_prefix}cc" 3273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3274 break 2 3275 fi 3276done 3277 done 3278IFS=$as_save_IFS 3279 3280fi 3281fi 3282CC=$ac_cv_prog_CC 3283if test -n "$CC"; then 3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3285$as_echo "$CC" >&6; } 3286else 3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3288$as_echo "no" >&6; } 3289fi 3290 3291 3292 fi 3293fi 3294if test -z "$CC"; then 3295 # Extract the first word of "cc", so it can be a program name with args. 3296set dummy cc; ac_word=$2 3297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3298$as_echo_n "checking for $ac_word... " >&6; } 3299if ${ac_cv_prog_CC+:} false; then : 3300 $as_echo_n "(cached) " >&6 3301else 3302 if test -n "$CC"; then 3303 ac_cv_prog_CC="$CC" # Let the user override the test. 3304else 3305 ac_prog_rejected=no 3306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3307for as_dir in $PATH 3308do 3309 IFS=$as_save_IFS 3310 test -z "$as_dir" && as_dir=. 3311 for ac_exec_ext in '' $ac_executable_extensions; do 3312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3313 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3314 ac_prog_rejected=yes 3315 continue 3316 fi 3317 ac_cv_prog_CC="cc" 3318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3319 break 2 3320 fi 3321done 3322 done 3323IFS=$as_save_IFS 3324 3325if test $ac_prog_rejected = yes; then 3326 # We found a bogon in the path, so make sure we never use it. 3327 set dummy $ac_cv_prog_CC 3328 shift 3329 if test $# != 0; then 3330 # We chose a different compiler from the bogus one. 3331 # However, it has the same basename, so the bogon will be chosen 3332 # first if we set CC to just the basename; use the full file name. 3333 shift 3334 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3335 fi 3336fi 3337fi 3338fi 3339CC=$ac_cv_prog_CC 3340if test -n "$CC"; then 3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3342$as_echo "$CC" >&6; } 3343else 3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3345$as_echo "no" >&6; } 3346fi 3347 3348 3349fi 3350if test -z "$CC"; then 3351 if test -n "$ac_tool_prefix"; then 3352 for ac_prog in cl.exe 3353 do 3354 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3355set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3357$as_echo_n "checking for $ac_word... " >&6; } 3358if ${ac_cv_prog_CC+:} false; then : 3359 $as_echo_n "(cached) " >&6 3360else 3361 if test -n "$CC"; then 3362 ac_cv_prog_CC="$CC" # Let the user override the test. 3363else 3364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3365for as_dir in $PATH 3366do 3367 IFS=$as_save_IFS 3368 test -z "$as_dir" && as_dir=. 3369 for ac_exec_ext in '' $ac_executable_extensions; do 3370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3371 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3373 break 2 3374 fi 3375done 3376 done 3377IFS=$as_save_IFS 3378 3379fi 3380fi 3381CC=$ac_cv_prog_CC 3382if test -n "$CC"; then 3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3384$as_echo "$CC" >&6; } 3385else 3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3387$as_echo "no" >&6; } 3388fi 3389 3390 3391 test -n "$CC" && break 3392 done 3393fi 3394if test -z "$CC"; then 3395 ac_ct_CC=$CC 3396 for ac_prog in cl.exe 3397do 3398 # Extract the first word of "$ac_prog", so it can be a program name with args. 3399set dummy $ac_prog; ac_word=$2 3400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3401$as_echo_n "checking for $ac_word... " >&6; } 3402if ${ac_cv_prog_ac_ct_CC+:} false; then : 3403 $as_echo_n "(cached) " >&6 3404else 3405 if test -n "$ac_ct_CC"; then 3406 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3407else 3408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3409for as_dir in $PATH 3410do 3411 IFS=$as_save_IFS 3412 test -z "$as_dir" && as_dir=. 3413 for ac_exec_ext in '' $ac_executable_extensions; do 3414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3415 ac_cv_prog_ac_ct_CC="$ac_prog" 3416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3417 break 2 3418 fi 3419done 3420 done 3421IFS=$as_save_IFS 3422 3423fi 3424fi 3425ac_ct_CC=$ac_cv_prog_ac_ct_CC 3426if test -n "$ac_ct_CC"; then 3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3428$as_echo "$ac_ct_CC" >&6; } 3429else 3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3431$as_echo "no" >&6; } 3432fi 3433 3434 3435 test -n "$ac_ct_CC" && break 3436done 3437 3438 if test "x$ac_ct_CC" = x; then 3439 CC="" 3440 else 3441 case $cross_compiling:$ac_tool_warned in 3442yes:) 3443{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3444$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3445ac_tool_warned=yes ;; 3446esac 3447 CC=$ac_ct_CC 3448 fi 3449fi 3450 3451fi 3452 3453 3454test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3455$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3456as_fn_error $? "no acceptable C compiler found in \$PATH 3457See \`config.log' for more details" "$LINENO" 5; } 3458 3459# Provide some information about the compiler. 3460$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3461set X $ac_compile 3462ac_compiler=$2 3463for ac_option in --version -v -V -qversion; do 3464 { { ac_try="$ac_compiler $ac_option >&5" 3465case "(($ac_try" in 3466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3467 *) ac_try_echo=$ac_try;; 3468esac 3469eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3470$as_echo "$ac_try_echo"; } >&5 3471 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3472 ac_status=$? 3473 if test -s conftest.err; then 3474 sed '10a\ 3475... rest of stderr output deleted ... 3476 10q' conftest.err >conftest.er1 3477 cat conftest.er1 >&5 3478 fi 3479 rm -f conftest.er1 conftest.err 3480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3481 test $ac_status = 0; } 3482done 3483 3484cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3485/* end confdefs.h. */ 3486 3487int 3488main () 3489{ 3490 3491 ; 3492 return 0; 3493} 3494_ACEOF 3495ac_clean_files_save=$ac_clean_files 3496ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3497# Try to create an executable without -o first, disregard a.out. 3498# It will help us diagnose broken compilers, and finding out an intuition 3499# of exeext. 3500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3501$as_echo_n "checking whether the C compiler works... " >&6; } 3502ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3503 3504# The possible output files: 3505ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3506 3507ac_rmfiles= 3508for ac_file in $ac_files 3509do 3510 case $ac_file in 3511 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3512 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3513 esac 3514done 3515rm -f $ac_rmfiles 3516 3517if { { ac_try="$ac_link_default" 3518case "(($ac_try" in 3519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3520 *) ac_try_echo=$ac_try;; 3521esac 3522eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3523$as_echo "$ac_try_echo"; } >&5 3524 (eval "$ac_link_default") 2>&5 3525 ac_status=$? 3526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3527 test $ac_status = 0; }; then : 3528 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3529# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3530# in a Makefile. We should not override ac_cv_exeext if it was cached, 3531# so that the user can short-circuit this test for compilers unknown to 3532# Autoconf. 3533for ac_file in $ac_files '' 3534do 3535 test -f "$ac_file" || continue 3536 case $ac_file in 3537 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3538 ;; 3539 [ab].out ) 3540 # We found the default executable, but exeext='' is most 3541 # certainly right. 3542 break;; 3543 *.* ) 3544 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3545 then :; else 3546 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3547 fi 3548 # We set ac_cv_exeext here because the later test for it is not 3549 # safe: cross compilers may not add the suffix if given an `-o' 3550 # argument, so we may need to know it at that point already. 3551 # Even if this section looks crufty: it has the advantage of 3552 # actually working. 3553 break;; 3554 * ) 3555 break;; 3556 esac 3557done 3558test "$ac_cv_exeext" = no && ac_cv_exeext= 3559 3560else 3561 ac_file='' 3562fi 3563if test -z "$ac_file"; then : 3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3565$as_echo "no" >&6; } 3566$as_echo "$as_me: failed program was:" >&5 3567sed 's/^/| /' conftest.$ac_ext >&5 3568 3569{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3570$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3571as_fn_error 77 "C compiler cannot create executables 3572See \`config.log' for more details" "$LINENO" 5; } 3573else 3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3575$as_echo "yes" >&6; } 3576fi 3577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3578$as_echo_n "checking for C compiler default output file name... " >&6; } 3579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3580$as_echo "$ac_file" >&6; } 3581ac_exeext=$ac_cv_exeext 3582 3583rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3584ac_clean_files=$ac_clean_files_save 3585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3586$as_echo_n "checking for suffix of executables... " >&6; } 3587if { { ac_try="$ac_link" 3588case "(($ac_try" in 3589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3590 *) ac_try_echo=$ac_try;; 3591esac 3592eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3593$as_echo "$ac_try_echo"; } >&5 3594 (eval "$ac_link") 2>&5 3595 ac_status=$? 3596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3597 test $ac_status = 0; }; then : 3598 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3599# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3600# work properly (i.e., refer to `conftest.exe'), while it won't with 3601# `rm'. 3602for ac_file in conftest.exe conftest conftest.*; do 3603 test -f "$ac_file" || continue 3604 case $ac_file in 3605 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3606 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3607 break;; 3608 * ) break;; 3609 esac 3610done 3611else 3612 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3613$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3614as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3615See \`config.log' for more details" "$LINENO" 5; } 3616fi 3617rm -f conftest conftest$ac_cv_exeext 3618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3619$as_echo "$ac_cv_exeext" >&6; } 3620 3621rm -f conftest.$ac_ext 3622EXEEXT=$ac_cv_exeext 3623ac_exeext=$EXEEXT 3624cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3625/* end confdefs.h. */ 3626#include <stdio.h> 3627int 3628main () 3629{ 3630FILE *f = fopen ("conftest.out", "w"); 3631 return ferror (f) || fclose (f) != 0; 3632 3633 ; 3634 return 0; 3635} 3636_ACEOF 3637ac_clean_files="$ac_clean_files conftest.out" 3638# Check that the compiler produces executables we can run. If not, either 3639# the compiler is broken, or we cross compile. 3640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3641$as_echo_n "checking whether we are cross compiling... " >&6; } 3642if test "$cross_compiling" != yes; then 3643 { { ac_try="$ac_link" 3644case "(($ac_try" in 3645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3646 *) ac_try_echo=$ac_try;; 3647esac 3648eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3649$as_echo "$ac_try_echo"; } >&5 3650 (eval "$ac_link") 2>&5 3651 ac_status=$? 3652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3653 test $ac_status = 0; } 3654 if { ac_try='./conftest$ac_cv_exeext' 3655 { { case "(($ac_try" in 3656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3657 *) ac_try_echo=$ac_try;; 3658esac 3659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3660$as_echo "$ac_try_echo"; } >&5 3661 (eval "$ac_try") 2>&5 3662 ac_status=$? 3663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3664 test $ac_status = 0; }; }; then 3665 cross_compiling=no 3666 else 3667 if test "$cross_compiling" = maybe; then 3668 cross_compiling=yes 3669 else 3670 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3671$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3672as_fn_error $? "cannot run C compiled programs. 3673If you meant to cross compile, use \`--host'. 3674See \`config.log' for more details" "$LINENO" 5; } 3675 fi 3676 fi 3677fi 3678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3679$as_echo "$cross_compiling" >&6; } 3680 3681rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3682ac_clean_files=$ac_clean_files_save 3683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3684$as_echo_n "checking for suffix of object files... " >&6; } 3685if ${ac_cv_objext+:} false; then : 3686 $as_echo_n "(cached) " >&6 3687else 3688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3689/* end confdefs.h. */ 3690 3691int 3692main () 3693{ 3694 3695 ; 3696 return 0; 3697} 3698_ACEOF 3699rm -f conftest.o conftest.obj 3700if { { ac_try="$ac_compile" 3701case "(($ac_try" in 3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3703 *) ac_try_echo=$ac_try;; 3704esac 3705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3706$as_echo "$ac_try_echo"; } >&5 3707 (eval "$ac_compile") 2>&5 3708 ac_status=$? 3709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3710 test $ac_status = 0; }; then : 3711 for ac_file in conftest.o conftest.obj conftest.*; do 3712 test -f "$ac_file" || continue; 3713 case $ac_file in 3714 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3715 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3716 break;; 3717 esac 3718done 3719else 3720 $as_echo "$as_me: failed program was:" >&5 3721sed 's/^/| /' conftest.$ac_ext >&5 3722 3723{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3724$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3725as_fn_error $? "cannot compute suffix of object files: cannot compile 3726See \`config.log' for more details" "$LINENO" 5; } 3727fi 3728rm -f conftest.$ac_cv_objext conftest.$ac_ext 3729fi 3730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3731$as_echo "$ac_cv_objext" >&6; } 3732OBJEXT=$ac_cv_objext 3733ac_objext=$OBJEXT 3734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3735$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3736if ${ac_cv_c_compiler_gnu+:} false; then : 3737 $as_echo_n "(cached) " >&6 3738else 3739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3740/* end confdefs.h. */ 3741 3742int 3743main () 3744{ 3745#ifndef __GNUC__ 3746 choke me 3747#endif 3748 3749 ; 3750 return 0; 3751} 3752_ACEOF 3753if ac_fn_c_try_compile "$LINENO"; then : 3754 ac_compiler_gnu=yes 3755else 3756 ac_compiler_gnu=no 3757fi 3758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3759ac_cv_c_compiler_gnu=$ac_compiler_gnu 3760 3761fi 3762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3763$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3764if test $ac_compiler_gnu = yes; then 3765 GCC=yes 3766else 3767 GCC= 3768fi 3769ac_test_CFLAGS=${CFLAGS+set} 3770ac_save_CFLAGS=$CFLAGS 3771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3772$as_echo_n "checking whether $CC accepts -g... " >&6; } 3773if ${ac_cv_prog_cc_g+:} false; then : 3774 $as_echo_n "(cached) " >&6 3775else 3776 ac_save_c_werror_flag=$ac_c_werror_flag 3777 ac_c_werror_flag=yes 3778 ac_cv_prog_cc_g=no 3779 CFLAGS="-g" 3780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3781/* end confdefs.h. */ 3782 3783int 3784main () 3785{ 3786 3787 ; 3788 return 0; 3789} 3790_ACEOF 3791if ac_fn_c_try_compile "$LINENO"; then : 3792 ac_cv_prog_cc_g=yes 3793else 3794 CFLAGS="" 3795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3796/* end confdefs.h. */ 3797 3798int 3799main () 3800{ 3801 3802 ; 3803 return 0; 3804} 3805_ACEOF 3806if ac_fn_c_try_compile "$LINENO"; then : 3807 3808else 3809 ac_c_werror_flag=$ac_save_c_werror_flag 3810 CFLAGS="-g" 3811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3812/* end confdefs.h. */ 3813 3814int 3815main () 3816{ 3817 3818 ; 3819 return 0; 3820} 3821_ACEOF 3822if ac_fn_c_try_compile "$LINENO"; then : 3823 ac_cv_prog_cc_g=yes 3824fi 3825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3826fi 3827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3828fi 3829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3830 ac_c_werror_flag=$ac_save_c_werror_flag 3831fi 3832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3833$as_echo "$ac_cv_prog_cc_g" >&6; } 3834if test "$ac_test_CFLAGS" = set; then 3835 CFLAGS=$ac_save_CFLAGS 3836elif test $ac_cv_prog_cc_g = yes; then 3837 if test "$GCC" = yes; then 3838 CFLAGS="-g -O2" 3839 else 3840 CFLAGS="-g" 3841 fi 3842else 3843 if test "$GCC" = yes; then 3844 CFLAGS="-O2" 3845 else 3846 CFLAGS= 3847 fi 3848fi 3849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3850$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3851if ${ac_cv_prog_cc_c89+:} false; then : 3852 $as_echo_n "(cached) " >&6 3853else 3854 ac_cv_prog_cc_c89=no 3855ac_save_CC=$CC 3856cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3857/* end confdefs.h. */ 3858#include <stdarg.h> 3859#include <stdio.h> 3860#include <sys/types.h> 3861#include <sys/stat.h> 3862/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3863struct buf { int x; }; 3864FILE * (*rcsopen) (struct buf *, struct stat *, int); 3865static char *e (p, i) 3866 char **p; 3867 int i; 3868{ 3869 return p[i]; 3870} 3871static char *f (char * (*g) (char **, int), char **p, ...) 3872{ 3873 char *s; 3874 va_list v; 3875 va_start (v,p); 3876 s = g (p, va_arg (v,int)); 3877 va_end (v); 3878 return s; 3879} 3880 3881/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3882 function prototypes and stuff, but not '\xHH' hex character constants. 3883 These don't provoke an error unfortunately, instead are silently treated 3884 as 'x'. The following induces an error, until -std is added to get 3885 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3886 array size at least. It's necessary to write '\x00'==0 to get something 3887 that's true only with -std. */ 3888int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3889 3890/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3891 inside strings and character constants. */ 3892#define FOO(x) 'x' 3893int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3894 3895int test (int i, double x); 3896struct s1 {int (*f) (int a);}; 3897struct s2 {int (*f) (double a);}; 3898int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3899int argc; 3900char **argv; 3901int 3902main () 3903{ 3904return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3905 ; 3906 return 0; 3907} 3908_ACEOF 3909for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3910 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3911do 3912 CC="$ac_save_CC $ac_arg" 3913 if ac_fn_c_try_compile "$LINENO"; then : 3914 ac_cv_prog_cc_c89=$ac_arg 3915fi 3916rm -f core conftest.err conftest.$ac_objext 3917 test "x$ac_cv_prog_cc_c89" != "xno" && break 3918done 3919rm -f conftest.$ac_ext 3920CC=$ac_save_CC 3921 3922fi 3923# AC_CACHE_VAL 3924case "x$ac_cv_prog_cc_c89" in 3925 x) 3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3927$as_echo "none needed" >&6; } ;; 3928 xno) 3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3930$as_echo "unsupported" >&6; } ;; 3931 *) 3932 CC="$CC $ac_cv_prog_cc_c89" 3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3934$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3935esac 3936if test "x$ac_cv_prog_cc_c89" != xno; then : 3937 3938fi 3939 3940ac_ext=c 3941ac_cpp='$CPP $CPPFLAGS' 3942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3944ac_compiler_gnu=$ac_cv_c_compiler_gnu 3945 3946depcc="$CC" am_compiler_list= 3947 3948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3949$as_echo_n "checking dependency style of $depcc... " >&6; } 3950if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3951 $as_echo_n "(cached) " >&6 3952else 3953 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3954 # We make a subdir and do the tests there. Otherwise we can end up 3955 # making bogus files that we don't know about and never remove. For 3956 # instance it was reported that on HP-UX the gcc test will end up 3957 # making a dummy file named 'D' -- because '-MD' means "put the output 3958 # in D". 3959 rm -rf conftest.dir 3960 mkdir conftest.dir 3961 # Copy depcomp to subdir because otherwise we won't find it if we're 3962 # using a relative directory. 3963 cp "$am_depcomp" conftest.dir 3964 cd conftest.dir 3965 # We will build objects and dependencies in a subdirectory because 3966 # it helps to detect inapplicable dependency modes. For instance 3967 # both Tru64's cc and ICC support -MD to output dependencies as a 3968 # side effect of compilation, but ICC will put the dependencies in 3969 # the current directory while Tru64 will put them in the object 3970 # directory. 3971 mkdir sub 3972 3973 am_cv_CC_dependencies_compiler_type=none 3974 if test "$am_compiler_list" = ""; then 3975 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3976 fi 3977 am__universal=false 3978 case " $depcc " in #( 3979 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3980 esac 3981 3982 for depmode in $am_compiler_list; do 3983 # Setup a source with many dependencies, because some compilers 3984 # like to wrap large dependency lists on column 80 (with \), and 3985 # we should not choose a depcomp mode which is confused by this. 3986 # 3987 # We need to recreate these files for each test, as the compiler may 3988 # overwrite some of them when testing with obscure command lines. 3989 # This happens at least with the AIX C compiler. 3990 : > sub/conftest.c 3991 for i in 1 2 3 4 5 6; do 3992 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3993 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3994 # Solaris 10 /bin/sh. 3995 echo '/* dummy */' > sub/conftst$i.h 3996 done 3997 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3998 3999 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4000 # mode. It turns out that the SunPro C++ compiler does not properly 4001 # handle '-M -o', and we need to detect this. Also, some Intel 4002 # versions had trouble with output in subdirs. 4003 am__obj=sub/conftest.${OBJEXT-o} 4004 am__minus_obj="-o $am__obj" 4005 case $depmode in 4006 gcc) 4007 # This depmode causes a compiler race in universal mode. 4008 test "$am__universal" = false || continue 4009 ;; 4010 nosideeffect) 4011 # After this tag, mechanisms are not by side-effect, so they'll 4012 # only be used when explicitly requested. 4013 if test "x$enable_dependency_tracking" = xyes; then 4014 continue 4015 else 4016 break 4017 fi 4018 ;; 4019 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4020 # This compiler won't grok '-c -o', but also, the minuso test has 4021 # not run yet. These depmodes are late enough in the game, and 4022 # so weak that their functioning should not be impacted. 4023 am__obj=conftest.${OBJEXT-o} 4024 am__minus_obj= 4025 ;; 4026 none) break ;; 4027 esac 4028 if depmode=$depmode \ 4029 source=sub/conftest.c object=$am__obj \ 4030 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4031 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4032 >/dev/null 2>conftest.err && 4033 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4034 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4035 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4036 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4037 # icc doesn't choke on unknown options, it will just issue warnings 4038 # or remarks (even with -Werror). So we grep stderr for any message 4039 # that says an option was ignored or not supported. 4040 # When given -MP, icc 7.0 and 7.1 complain thusly: 4041 # icc: Command line warning: ignoring option '-M'; no argument required 4042 # The diagnosis changed in icc 8.0: 4043 # icc: Command line remark: option '-MP' not supported 4044 if (grep 'ignoring option' conftest.err || 4045 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4046 am_cv_CC_dependencies_compiler_type=$depmode 4047 break 4048 fi 4049 fi 4050 done 4051 4052 cd .. 4053 rm -rf conftest.dir 4054else 4055 am_cv_CC_dependencies_compiler_type=none 4056fi 4057 4058fi 4059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4060$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4061CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4062 4063 if 4064 test "x$enable_dependency_tracking" != xno \ 4065 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4066 am__fastdepCC_TRUE= 4067 am__fastdepCC_FALSE='#' 4068else 4069 am__fastdepCC_TRUE='#' 4070 am__fastdepCC_FALSE= 4071fi 4072 4073 4074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4075$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4076if ${ac_cv_path_SED+:} false; then : 4077 $as_echo_n "(cached) " >&6 4078else 4079 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4080 for ac_i in 1 2 3 4 5 6 7; do 4081 ac_script="$ac_script$as_nl$ac_script" 4082 done 4083 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4084 { ac_script=; unset ac_script;} 4085 if test -z "$SED"; then 4086 ac_path_SED_found=false 4087 # Loop through the user's path and test for each of PROGNAME-LIST 4088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4089for as_dir in $PATH 4090do 4091 IFS=$as_save_IFS 4092 test -z "$as_dir" && as_dir=. 4093 for ac_prog in sed gsed; do 4094 for ac_exec_ext in '' $ac_executable_extensions; do 4095 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4096 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4097# Check for GNU ac_path_SED and select it if it is found. 4098 # Check for GNU $ac_path_SED 4099case `"$ac_path_SED" --version 2>&1` in 4100*GNU*) 4101 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4102*) 4103 ac_count=0 4104 $as_echo_n 0123456789 >"conftest.in" 4105 while : 4106 do 4107 cat "conftest.in" "conftest.in" >"conftest.tmp" 4108 mv "conftest.tmp" "conftest.in" 4109 cp "conftest.in" "conftest.nl" 4110 $as_echo '' >> "conftest.nl" 4111 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4112 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4113 as_fn_arith $ac_count + 1 && ac_count=$as_val 4114 if test $ac_count -gt ${ac_path_SED_max-0}; then 4115 # Best one so far, save it but keep looking for a better one 4116 ac_cv_path_SED="$ac_path_SED" 4117 ac_path_SED_max=$ac_count 4118 fi 4119 # 10*(2^10) chars as input seems more than enough 4120 test $ac_count -gt 10 && break 4121 done 4122 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4123esac 4124 4125 $ac_path_SED_found && break 3 4126 done 4127 done 4128 done 4129IFS=$as_save_IFS 4130 if test -z "$ac_cv_path_SED"; then 4131 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4132 fi 4133else 4134 ac_cv_path_SED=$SED 4135fi 4136 4137fi 4138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4139$as_echo "$ac_cv_path_SED" >&6; } 4140 SED="$ac_cv_path_SED" 4141 rm -f conftest.sed 4142 4143test -z "$SED" && SED=sed 4144Xsed="$SED -e 1s/^X//" 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4157$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4158if ${ac_cv_path_GREP+:} false; then : 4159 $as_echo_n "(cached) " >&6 4160else 4161 if test -z "$GREP"; then 4162 ac_path_GREP_found=false 4163 # Loop through the user's path and test for each of PROGNAME-LIST 4164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4165for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4166do 4167 IFS=$as_save_IFS 4168 test -z "$as_dir" && as_dir=. 4169 for ac_prog in grep ggrep; do 4170 for ac_exec_ext in '' $ac_executable_extensions; do 4171 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4172 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4173# Check for GNU ac_path_GREP and select it if it is found. 4174 # Check for GNU $ac_path_GREP 4175case `"$ac_path_GREP" --version 2>&1` in 4176*GNU*) 4177 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4178*) 4179 ac_count=0 4180 $as_echo_n 0123456789 >"conftest.in" 4181 while : 4182 do 4183 cat "conftest.in" "conftest.in" >"conftest.tmp" 4184 mv "conftest.tmp" "conftest.in" 4185 cp "conftest.in" "conftest.nl" 4186 $as_echo 'GREP' >> "conftest.nl" 4187 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4188 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4189 as_fn_arith $ac_count + 1 && ac_count=$as_val 4190 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4191 # Best one so far, save it but keep looking for a better one 4192 ac_cv_path_GREP="$ac_path_GREP" 4193 ac_path_GREP_max=$ac_count 4194 fi 4195 # 10*(2^10) chars as input seems more than enough 4196 test $ac_count -gt 10 && break 4197 done 4198 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4199esac 4200 4201 $ac_path_GREP_found && break 3 4202 done 4203 done 4204 done 4205IFS=$as_save_IFS 4206 if test -z "$ac_cv_path_GREP"; then 4207 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4208 fi 4209else 4210 ac_cv_path_GREP=$GREP 4211fi 4212 4213fi 4214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4215$as_echo "$ac_cv_path_GREP" >&6; } 4216 GREP="$ac_cv_path_GREP" 4217 4218 4219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4220$as_echo_n "checking for egrep... " >&6; } 4221if ${ac_cv_path_EGREP+:} false; then : 4222 $as_echo_n "(cached) " >&6 4223else 4224 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4225 then ac_cv_path_EGREP="$GREP -E" 4226 else 4227 if test -z "$EGREP"; then 4228 ac_path_EGREP_found=false 4229 # Loop through the user's path and test for each of PROGNAME-LIST 4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4231for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4232do 4233 IFS=$as_save_IFS 4234 test -z "$as_dir" && as_dir=. 4235 for ac_prog in egrep; do 4236 for ac_exec_ext in '' $ac_executable_extensions; do 4237 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4238 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4239# Check for GNU ac_path_EGREP and select it if it is found. 4240 # Check for GNU $ac_path_EGREP 4241case `"$ac_path_EGREP" --version 2>&1` in 4242*GNU*) 4243 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4244*) 4245 ac_count=0 4246 $as_echo_n 0123456789 >"conftest.in" 4247 while : 4248 do 4249 cat "conftest.in" "conftest.in" >"conftest.tmp" 4250 mv "conftest.tmp" "conftest.in" 4251 cp "conftest.in" "conftest.nl" 4252 $as_echo 'EGREP' >> "conftest.nl" 4253 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4254 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4255 as_fn_arith $ac_count + 1 && ac_count=$as_val 4256 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4257 # Best one so far, save it but keep looking for a better one 4258 ac_cv_path_EGREP="$ac_path_EGREP" 4259 ac_path_EGREP_max=$ac_count 4260 fi 4261 # 10*(2^10) chars as input seems more than enough 4262 test $ac_count -gt 10 && break 4263 done 4264 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4265esac 4266 4267 $ac_path_EGREP_found && break 3 4268 done 4269 done 4270 done 4271IFS=$as_save_IFS 4272 if test -z "$ac_cv_path_EGREP"; then 4273 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4274 fi 4275else 4276 ac_cv_path_EGREP=$EGREP 4277fi 4278 4279 fi 4280fi 4281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4282$as_echo "$ac_cv_path_EGREP" >&6; } 4283 EGREP="$ac_cv_path_EGREP" 4284 4285 4286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4287$as_echo_n "checking for fgrep... " >&6; } 4288if ${ac_cv_path_FGREP+:} false; then : 4289 $as_echo_n "(cached) " >&6 4290else 4291 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4292 then ac_cv_path_FGREP="$GREP -F" 4293 else 4294 if test -z "$FGREP"; then 4295 ac_path_FGREP_found=false 4296 # Loop through the user's path and test for each of PROGNAME-LIST 4297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4298for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4299do 4300 IFS=$as_save_IFS 4301 test -z "$as_dir" && as_dir=. 4302 for ac_prog in fgrep; do 4303 for ac_exec_ext in '' $ac_executable_extensions; do 4304 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4305 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4306# Check for GNU ac_path_FGREP and select it if it is found. 4307 # Check for GNU $ac_path_FGREP 4308case `"$ac_path_FGREP" --version 2>&1` in 4309*GNU*) 4310 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4311*) 4312 ac_count=0 4313 $as_echo_n 0123456789 >"conftest.in" 4314 while : 4315 do 4316 cat "conftest.in" "conftest.in" >"conftest.tmp" 4317 mv "conftest.tmp" "conftest.in" 4318 cp "conftest.in" "conftest.nl" 4319 $as_echo 'FGREP' >> "conftest.nl" 4320 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4321 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4322 as_fn_arith $ac_count + 1 && ac_count=$as_val 4323 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4324 # Best one so far, save it but keep looking for a better one 4325 ac_cv_path_FGREP="$ac_path_FGREP" 4326 ac_path_FGREP_max=$ac_count 4327 fi 4328 # 10*(2^10) chars as input seems more than enough 4329 test $ac_count -gt 10 && break 4330 done 4331 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4332esac 4333 4334 $ac_path_FGREP_found && break 3 4335 done 4336 done 4337 done 4338IFS=$as_save_IFS 4339 if test -z "$ac_cv_path_FGREP"; then 4340 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4341 fi 4342else 4343 ac_cv_path_FGREP=$FGREP 4344fi 4345 4346 fi 4347fi 4348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4349$as_echo "$ac_cv_path_FGREP" >&6; } 4350 FGREP="$ac_cv_path_FGREP" 4351 4352 4353test -z "$GREP" && GREP=grep 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373# Check whether --with-gnu-ld was given. 4374if test "${with_gnu_ld+set}" = set; then : 4375 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4376else 4377 with_gnu_ld=no 4378fi 4379 4380ac_prog=ld 4381if test "$GCC" = yes; then 4382 # Check if gcc -print-prog-name=ld gives a path. 4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4384$as_echo_n "checking for ld used by $CC... " >&6; } 4385 case $host in 4386 *-*-mingw*) 4387 # gcc leaves a trailing carriage return which upsets mingw 4388 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4389 *) 4390 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4391 esac 4392 case $ac_prog in 4393 # Accept absolute paths. 4394 [\\/]* | ?:[\\/]*) 4395 re_direlt='/[^/][^/]*/\.\./' 4396 # Canonicalize the pathname of ld 4397 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4398 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4399 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4400 done 4401 test -z "$LD" && LD="$ac_prog" 4402 ;; 4403 "") 4404 # If it fails, then pretend we aren't using GCC. 4405 ac_prog=ld 4406 ;; 4407 *) 4408 # If it is relative, then search for the first ld in PATH. 4409 with_gnu_ld=unknown 4410 ;; 4411 esac 4412elif test "$with_gnu_ld" = yes; then 4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4414$as_echo_n "checking for GNU ld... " >&6; } 4415else 4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4417$as_echo_n "checking for non-GNU ld... " >&6; } 4418fi 4419if ${lt_cv_path_LD+:} false; then : 4420 $as_echo_n "(cached) " >&6 4421else 4422 if test -z "$LD"; then 4423 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4424 for ac_dir in $PATH; do 4425 IFS="$lt_save_ifs" 4426 test -z "$ac_dir" && ac_dir=. 4427 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4428 lt_cv_path_LD="$ac_dir/$ac_prog" 4429 # Check to see if the program is GNU ld. I'd rather use --version, 4430 # but apparently some variants of GNU ld only accept -v. 4431 # Break only if it was the GNU/non-GNU ld that we prefer. 4432 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4433 *GNU* | *'with BFD'*) 4434 test "$with_gnu_ld" != no && break 4435 ;; 4436 *) 4437 test "$with_gnu_ld" != yes && break 4438 ;; 4439 esac 4440 fi 4441 done 4442 IFS="$lt_save_ifs" 4443else 4444 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4445fi 4446fi 4447 4448LD="$lt_cv_path_LD" 4449if test -n "$LD"; then 4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4451$as_echo "$LD" >&6; } 4452else 4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4454$as_echo "no" >&6; } 4455fi 4456test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4458$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4459if ${lt_cv_prog_gnu_ld+:} false; then : 4460 $as_echo_n "(cached) " >&6 4461else 4462 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4463case `$LD -v 2>&1 </dev/null` in 4464*GNU* | *'with BFD'*) 4465 lt_cv_prog_gnu_ld=yes 4466 ;; 4467*) 4468 lt_cv_prog_gnu_ld=no 4469 ;; 4470esac 4471fi 4472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4473$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4474with_gnu_ld=$lt_cv_prog_gnu_ld 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4485$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4486if ${lt_cv_path_NM+:} false; then : 4487 $as_echo_n "(cached) " >&6 4488else 4489 if test -n "$NM"; then 4490 # Let the user override the test. 4491 lt_cv_path_NM="$NM" 4492else 4493 lt_nm_to_check="${ac_tool_prefix}nm" 4494 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4495 lt_nm_to_check="$lt_nm_to_check nm" 4496 fi 4497 for lt_tmp_nm in $lt_nm_to_check; do 4498 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4499 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4500 IFS="$lt_save_ifs" 4501 test -z "$ac_dir" && ac_dir=. 4502 tmp_nm="$ac_dir/$lt_tmp_nm" 4503 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4504 # Check to see if the nm accepts a BSD-compat flag. 4505 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4506 # nm: unknown option "B" ignored 4507 # Tru64's nm complains that /dev/null is an invalid object file 4508 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4509 */dev/null* | *'Invalid file or object type'*) 4510 lt_cv_path_NM="$tmp_nm -B" 4511 break 4512 ;; 4513 *) 4514 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4515 */dev/null*) 4516 lt_cv_path_NM="$tmp_nm -p" 4517 break 4518 ;; 4519 *) 4520 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4521 continue # so that we can try to find one that supports BSD flags 4522 ;; 4523 esac 4524 ;; 4525 esac 4526 fi 4527 done 4528 IFS="$lt_save_ifs" 4529 done 4530 : ${lt_cv_path_NM=no} 4531fi 4532fi 4533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4534$as_echo "$lt_cv_path_NM" >&6; } 4535if test "$lt_cv_path_NM" != "no"; then 4536 NM="$lt_cv_path_NM" 4537else 4538 # Didn't find any BSD compatible name lister, look for dumpbin. 4539 if test -n "$DUMPBIN"; then : 4540 # Let the user override the test. 4541 else 4542 if test -n "$ac_tool_prefix"; then 4543 for ac_prog in dumpbin "link -dump" 4544 do 4545 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4546set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4548$as_echo_n "checking for $ac_word... " >&6; } 4549if ${ac_cv_prog_DUMPBIN+:} false; then : 4550 $as_echo_n "(cached) " >&6 4551else 4552 if test -n "$DUMPBIN"; then 4553 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4554else 4555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4556for as_dir in $PATH 4557do 4558 IFS=$as_save_IFS 4559 test -z "$as_dir" && as_dir=. 4560 for ac_exec_ext in '' $ac_executable_extensions; do 4561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4562 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4564 break 2 4565 fi 4566done 4567 done 4568IFS=$as_save_IFS 4569 4570fi 4571fi 4572DUMPBIN=$ac_cv_prog_DUMPBIN 4573if test -n "$DUMPBIN"; then 4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4575$as_echo "$DUMPBIN" >&6; } 4576else 4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4578$as_echo "no" >&6; } 4579fi 4580 4581 4582 test -n "$DUMPBIN" && break 4583 done 4584fi 4585if test -z "$DUMPBIN"; then 4586 ac_ct_DUMPBIN=$DUMPBIN 4587 for ac_prog in dumpbin "link -dump" 4588do 4589 # Extract the first word of "$ac_prog", so it can be a program name with args. 4590set dummy $ac_prog; ac_word=$2 4591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4592$as_echo_n "checking for $ac_word... " >&6; } 4593if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4594 $as_echo_n "(cached) " >&6 4595else 4596 if test -n "$ac_ct_DUMPBIN"; then 4597 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4598else 4599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4600for as_dir in $PATH 4601do 4602 IFS=$as_save_IFS 4603 test -z "$as_dir" && as_dir=. 4604 for ac_exec_ext in '' $ac_executable_extensions; do 4605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4606 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4608 break 2 4609 fi 4610done 4611 done 4612IFS=$as_save_IFS 4613 4614fi 4615fi 4616ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4617if test -n "$ac_ct_DUMPBIN"; then 4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4619$as_echo "$ac_ct_DUMPBIN" >&6; } 4620else 4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4622$as_echo "no" >&6; } 4623fi 4624 4625 4626 test -n "$ac_ct_DUMPBIN" && break 4627done 4628 4629 if test "x$ac_ct_DUMPBIN" = x; then 4630 DUMPBIN=":" 4631 else 4632 case $cross_compiling:$ac_tool_warned in 4633yes:) 4634{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4635$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4636ac_tool_warned=yes ;; 4637esac 4638 DUMPBIN=$ac_ct_DUMPBIN 4639 fi 4640fi 4641 4642 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4643 *COFF*) 4644 DUMPBIN="$DUMPBIN -symbols" 4645 ;; 4646 *) 4647 DUMPBIN=: 4648 ;; 4649 esac 4650 fi 4651 4652 if test "$DUMPBIN" != ":"; then 4653 NM="$DUMPBIN" 4654 fi 4655fi 4656test -z "$NM" && NM=nm 4657 4658 4659 4660 4661 4662 4663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4664$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4665if ${lt_cv_nm_interface+:} false; then : 4666 $as_echo_n "(cached) " >&6 4667else 4668 lt_cv_nm_interface="BSD nm" 4669 echo "int some_variable = 0;" > conftest.$ac_ext 4670 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4671 (eval "$ac_compile" 2>conftest.err) 4672 cat conftest.err >&5 4673 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4674 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4675 cat conftest.err >&5 4676 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4677 cat conftest.out >&5 4678 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4679 lt_cv_nm_interface="MS dumpbin" 4680 fi 4681 rm -f conftest* 4682fi 4683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4684$as_echo "$lt_cv_nm_interface" >&6; } 4685 4686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4687$as_echo_n "checking whether ln -s works... " >&6; } 4688LN_S=$as_ln_s 4689if test "$LN_S" = "ln -s"; then 4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4691$as_echo "yes" >&6; } 4692else 4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4694$as_echo "no, using $LN_S" >&6; } 4695fi 4696 4697# find the maximum length of command line arguments 4698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4699$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4700if ${lt_cv_sys_max_cmd_len+:} false; then : 4701 $as_echo_n "(cached) " >&6 4702else 4703 i=0 4704 teststring="ABCD" 4705 4706 case $build_os in 4707 msdosdjgpp*) 4708 # On DJGPP, this test can blow up pretty badly due to problems in libc 4709 # (any single argument exceeding 2000 bytes causes a buffer overrun 4710 # during glob expansion). Even if it were fixed, the result of this 4711 # check would be larger than it should be. 4712 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4713 ;; 4714 4715 gnu*) 4716 # Under GNU Hurd, this test is not required because there is 4717 # no limit to the length of command line arguments. 4718 # Libtool will interpret -1 as no limit whatsoever 4719 lt_cv_sys_max_cmd_len=-1; 4720 ;; 4721 4722 cygwin* | mingw* | cegcc*) 4723 # On Win9x/ME, this test blows up -- it succeeds, but takes 4724 # about 5 minutes as the teststring grows exponentially. 4725 # Worse, since 9x/ME are not pre-emptively multitasking, 4726 # you end up with a "frozen" computer, even though with patience 4727 # the test eventually succeeds (with a max line length of 256k). 4728 # Instead, let's just punt: use the minimum linelength reported by 4729 # all of the supported platforms: 8192 (on NT/2K/XP). 4730 lt_cv_sys_max_cmd_len=8192; 4731 ;; 4732 4733 mint*) 4734 # On MiNT this can take a long time and run out of memory. 4735 lt_cv_sys_max_cmd_len=8192; 4736 ;; 4737 4738 amigaos*) 4739 # On AmigaOS with pdksh, this test takes hours, literally. 4740 # So we just punt and use a minimum line length of 8192. 4741 lt_cv_sys_max_cmd_len=8192; 4742 ;; 4743 4744 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4745 # This has been around since 386BSD, at least. Likely further. 4746 if test -x /sbin/sysctl; then 4747 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4748 elif test -x /usr/sbin/sysctl; then 4749 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4750 else 4751 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4752 fi 4753 # And add a safety zone 4754 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4755 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4756 ;; 4757 4758 interix*) 4759 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4760 lt_cv_sys_max_cmd_len=196608 4761 ;; 4762 4763 osf*) 4764 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4765 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4766 # nice to cause kernel panics so lets avoid the loop below. 4767 # First set a reasonable default. 4768 lt_cv_sys_max_cmd_len=16384 4769 # 4770 if test -x /sbin/sysconfig; then 4771 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4772 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4773 esac 4774 fi 4775 ;; 4776 sco3.2v5*) 4777 lt_cv_sys_max_cmd_len=102400 4778 ;; 4779 sysv5* | sco5v6* | sysv4.2uw2*) 4780 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4781 if test -n "$kargmax"; then 4782 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4783 else 4784 lt_cv_sys_max_cmd_len=32768 4785 fi 4786 ;; 4787 *) 4788 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4789 if test -n "$lt_cv_sys_max_cmd_len"; then 4790 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4791 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4792 else 4793 # Make teststring a little bigger before we do anything with it. 4794 # a 1K string should be a reasonable start. 4795 for i in 1 2 3 4 5 6 7 8 ; do 4796 teststring=$teststring$teststring 4797 done 4798 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4799 # If test is not a shell built-in, we'll probably end up computing a 4800 # maximum length that is only half of the actual maximum length, but 4801 # we can't tell. 4802 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 4803 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4804 test $i != 17 # 1/2 MB should be enough 4805 do 4806 i=`expr $i + 1` 4807 teststring=$teststring$teststring 4808 done 4809 # Only check the string length outside the loop. 4810 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4811 teststring= 4812 # Add a significant safety factor because C++ compilers can tack on 4813 # massive amounts of additional arguments before passing them to the 4814 # linker. It appears as though 1/2 is a usable value. 4815 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4816 fi 4817 ;; 4818 esac 4819 4820fi 4821 4822if test -n $lt_cv_sys_max_cmd_len ; then 4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4824$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4825else 4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4827$as_echo "none" >&6; } 4828fi 4829max_cmd_len=$lt_cv_sys_max_cmd_len 4830 4831 4832 4833 4834 4835 4836: ${CP="cp -f"} 4837: ${MV="mv -f"} 4838: ${RM="rm -f"} 4839 4840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4841$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4842# Try some XSI features 4843xsi_shell=no 4844( _lt_dummy="a/b/c" 4845 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 4846 = c,a/b,b/c, \ 4847 && eval 'test $(( 1 + 1 )) -eq 2 \ 4848 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4849 && xsi_shell=yes 4850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4851$as_echo "$xsi_shell" >&6; } 4852 4853 4854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4855$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4856lt_shell_append=no 4857( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4858 >/dev/null 2>&1 \ 4859 && lt_shell_append=yes 4860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4861$as_echo "$lt_shell_append" >&6; } 4862 4863 4864if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4865 lt_unset=unset 4866else 4867 lt_unset=false 4868fi 4869 4870 4871 4872 4873 4874# test EBCDIC or ASCII 4875case `echo X|tr X '\101'` in 4876 A) # ASCII based system 4877 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4878 lt_SP2NL='tr \040 \012' 4879 lt_NL2SP='tr \015\012 \040\040' 4880 ;; 4881 *) # EBCDIC based system 4882 lt_SP2NL='tr \100 \n' 4883 lt_NL2SP='tr \r\n \100\100' 4884 ;; 4885esac 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4896$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4897if ${lt_cv_to_host_file_cmd+:} false; then : 4898 $as_echo_n "(cached) " >&6 4899else 4900 case $host in 4901 *-*-mingw* ) 4902 case $build in 4903 *-*-mingw* ) # actually msys 4904 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4905 ;; 4906 *-*-cygwin* ) 4907 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4908 ;; 4909 * ) # otherwise, assume *nix 4910 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4911 ;; 4912 esac 4913 ;; 4914 *-*-cygwin* ) 4915 case $build in 4916 *-*-mingw* ) # actually msys 4917 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4918 ;; 4919 *-*-cygwin* ) 4920 lt_cv_to_host_file_cmd=func_convert_file_noop 4921 ;; 4922 * ) # otherwise, assume *nix 4923 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4924 ;; 4925 esac 4926 ;; 4927 * ) # unhandled hosts (and "normal" native builds) 4928 lt_cv_to_host_file_cmd=func_convert_file_noop 4929 ;; 4930esac 4931 4932fi 4933 4934to_host_file_cmd=$lt_cv_to_host_file_cmd 4935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4936$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4937 4938 4939 4940 4941 4942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4943$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4944if ${lt_cv_to_tool_file_cmd+:} false; then : 4945 $as_echo_n "(cached) " >&6 4946else 4947 #assume ordinary cross tools, or native build. 4948lt_cv_to_tool_file_cmd=func_convert_file_noop 4949case $host in 4950 *-*-mingw* ) 4951 case $build in 4952 *-*-mingw* ) # actually msys 4953 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4954 ;; 4955 esac 4956 ;; 4957esac 4958 4959fi 4960 4961to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4963$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4964 4965 4966 4967 4968 4969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4970$as_echo_n "checking for $LD option to reload object files... " >&6; } 4971if ${lt_cv_ld_reload_flag+:} false; then : 4972 $as_echo_n "(cached) " >&6 4973else 4974 lt_cv_ld_reload_flag='-r' 4975fi 4976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4977$as_echo "$lt_cv_ld_reload_flag" >&6; } 4978reload_flag=$lt_cv_ld_reload_flag 4979case $reload_flag in 4980"" | " "*) ;; 4981*) reload_flag=" $reload_flag" ;; 4982esac 4983reload_cmds='$LD$reload_flag -o $output$reload_objs' 4984case $host_os in 4985 cygwin* | mingw* | pw32* | cegcc*) 4986 if test "$GCC" != yes; then 4987 reload_cmds=false 4988 fi 4989 ;; 4990 darwin*) 4991 if test "$GCC" = yes; then 4992 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4993 else 4994 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4995 fi 4996 ;; 4997esac 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007if test -n "$ac_tool_prefix"; then 5008 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5009set dummy ${ac_tool_prefix}objdump; ac_word=$2 5010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5011$as_echo_n "checking for $ac_word... " >&6; } 5012if ${ac_cv_prog_OBJDUMP+:} false; then : 5013 $as_echo_n "(cached) " >&6 5014else 5015 if test -n "$OBJDUMP"; then 5016 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5017else 5018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5019for as_dir in $PATH 5020do 5021 IFS=$as_save_IFS 5022 test -z "$as_dir" && as_dir=. 5023 for ac_exec_ext in '' $ac_executable_extensions; do 5024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5025 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5027 break 2 5028 fi 5029done 5030 done 5031IFS=$as_save_IFS 5032 5033fi 5034fi 5035OBJDUMP=$ac_cv_prog_OBJDUMP 5036if test -n "$OBJDUMP"; then 5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5038$as_echo "$OBJDUMP" >&6; } 5039else 5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5041$as_echo "no" >&6; } 5042fi 5043 5044 5045fi 5046if test -z "$ac_cv_prog_OBJDUMP"; then 5047 ac_ct_OBJDUMP=$OBJDUMP 5048 # Extract the first word of "objdump", so it can be a program name with args. 5049set dummy objdump; ac_word=$2 5050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5051$as_echo_n "checking for $ac_word... " >&6; } 5052if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5053 $as_echo_n "(cached) " >&6 5054else 5055 if test -n "$ac_ct_OBJDUMP"; then 5056 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5057else 5058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5059for as_dir in $PATH 5060do 5061 IFS=$as_save_IFS 5062 test -z "$as_dir" && as_dir=. 5063 for ac_exec_ext in '' $ac_executable_extensions; do 5064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5065 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5067 break 2 5068 fi 5069done 5070 done 5071IFS=$as_save_IFS 5072 5073fi 5074fi 5075ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5076if test -n "$ac_ct_OBJDUMP"; then 5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5078$as_echo "$ac_ct_OBJDUMP" >&6; } 5079else 5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5081$as_echo "no" >&6; } 5082fi 5083 5084 if test "x$ac_ct_OBJDUMP" = x; then 5085 OBJDUMP="false" 5086 else 5087 case $cross_compiling:$ac_tool_warned in 5088yes:) 5089{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5090$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5091ac_tool_warned=yes ;; 5092esac 5093 OBJDUMP=$ac_ct_OBJDUMP 5094 fi 5095else 5096 OBJDUMP="$ac_cv_prog_OBJDUMP" 5097fi 5098 5099test -z "$OBJDUMP" && OBJDUMP=objdump 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5110$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5111if ${lt_cv_deplibs_check_method+:} false; then : 5112 $as_echo_n "(cached) " >&6 5113else 5114 lt_cv_file_magic_cmd='$MAGIC_CMD' 5115lt_cv_file_magic_test_file= 5116lt_cv_deplibs_check_method='unknown' 5117# Need to set the preceding variable on all platforms that support 5118# interlibrary dependencies. 5119# 'none' -- dependencies not supported. 5120# `unknown' -- same as none, but documents that we really don't know. 5121# 'pass_all' -- all dependencies passed with no checks. 5122# 'test_compile' -- check by making test program. 5123# 'file_magic [[regex]]' -- check by looking for files in library path 5124# which responds to the $file_magic_cmd with a given extended regex. 5125# If you have `file' or equivalent on your system and you're not sure 5126# whether `pass_all' will *always* work, you probably want this one. 5127 5128case $host_os in 5129aix[4-9]*) 5130 lt_cv_deplibs_check_method=pass_all 5131 ;; 5132 5133beos*) 5134 lt_cv_deplibs_check_method=pass_all 5135 ;; 5136 5137bsdi[45]*) 5138 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5139 lt_cv_file_magic_cmd='/usr/bin/file -L' 5140 lt_cv_file_magic_test_file=/shlib/libc.so 5141 ;; 5142 5143cygwin*) 5144 # func_win32_libid is a shell function defined in ltmain.sh 5145 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5146 lt_cv_file_magic_cmd='func_win32_libid' 5147 ;; 5148 5149mingw* | pw32*) 5150 # Base MSYS/MinGW do not provide the 'file' command needed by 5151 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5152 # unless we find 'file', for example because we are cross-compiling. 5153 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5154 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5155 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5156 lt_cv_file_magic_cmd='func_win32_libid' 5157 else 5158 # Keep this pattern in sync with the one in func_win32_libid. 5159 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5160 lt_cv_file_magic_cmd='$OBJDUMP -f' 5161 fi 5162 ;; 5163 5164cegcc*) 5165 # use the weaker test based on 'objdump'. See mingw*. 5166 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5167 lt_cv_file_magic_cmd='$OBJDUMP -f' 5168 ;; 5169 5170darwin* | rhapsody*) 5171 lt_cv_deplibs_check_method=pass_all 5172 ;; 5173 5174freebsd* | dragonfly*) 5175 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5176 case $host_cpu in 5177 i*86 ) 5178 # Not sure whether the presence of OpenBSD here was a mistake. 5179 # Let's accept both of them until this is cleared up. 5180 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5181 lt_cv_file_magic_cmd=/usr/bin/file 5182 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5183 ;; 5184 esac 5185 else 5186 lt_cv_deplibs_check_method=pass_all 5187 fi 5188 ;; 5189 5190gnu*) 5191 lt_cv_deplibs_check_method=pass_all 5192 ;; 5193 5194haiku*) 5195 lt_cv_deplibs_check_method=pass_all 5196 ;; 5197 5198hpux10.20* | hpux11*) 5199 lt_cv_file_magic_cmd=/usr/bin/file 5200 case $host_cpu in 5201 ia64*) 5202 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5203 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5204 ;; 5205 hppa*64*) 5206 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 5207 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5208 ;; 5209 *) 5210 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5211 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5212 ;; 5213 esac 5214 ;; 5215 5216interix[3-9]*) 5217 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5218 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5219 ;; 5220 5221irix5* | irix6* | nonstopux*) 5222 case $LD in 5223 *-32|*"-32 ") libmagic=32-bit;; 5224 *-n32|*"-n32 ") libmagic=N32;; 5225 *-64|*"-64 ") libmagic=64-bit;; 5226 *) libmagic=never-match;; 5227 esac 5228 lt_cv_deplibs_check_method=pass_all 5229 ;; 5230 5231# This must be Linux ELF. 5232linux* | k*bsd*-gnu | kopensolaris*-gnu) 5233 lt_cv_deplibs_check_method=pass_all 5234 ;; 5235 5236netbsd*) 5237 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5238 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5239 else 5240 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5241 fi 5242 ;; 5243 5244newos6*) 5245 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5246 lt_cv_file_magic_cmd=/usr/bin/file 5247 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5248 ;; 5249 5250*nto* | *qnx*) 5251 lt_cv_deplibs_check_method=pass_all 5252 ;; 5253 5254openbsd*) 5255 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5256 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5257 else 5258 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5259 fi 5260 ;; 5261 5262osf3* | osf4* | osf5*) 5263 lt_cv_deplibs_check_method=pass_all 5264 ;; 5265 5266rdos*) 5267 lt_cv_deplibs_check_method=pass_all 5268 ;; 5269 5270solaris*) 5271 lt_cv_deplibs_check_method=pass_all 5272 ;; 5273 5274sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5275 lt_cv_deplibs_check_method=pass_all 5276 ;; 5277 5278sysv4 | sysv4.3*) 5279 case $host_vendor in 5280 motorola) 5281 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]' 5282 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5283 ;; 5284 ncr) 5285 lt_cv_deplibs_check_method=pass_all 5286 ;; 5287 sequent) 5288 lt_cv_file_magic_cmd='/bin/file' 5289 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5290 ;; 5291 sni) 5292 lt_cv_file_magic_cmd='/bin/file' 5293 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5294 lt_cv_file_magic_test_file=/lib/libc.so 5295 ;; 5296 siemens) 5297 lt_cv_deplibs_check_method=pass_all 5298 ;; 5299 pc) 5300 lt_cv_deplibs_check_method=pass_all 5301 ;; 5302 esac 5303 ;; 5304 5305tpf*) 5306 lt_cv_deplibs_check_method=pass_all 5307 ;; 5308esac 5309 5310fi 5311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5312$as_echo "$lt_cv_deplibs_check_method" >&6; } 5313 5314file_magic_glob= 5315want_nocaseglob=no 5316if test "$build" = "$host"; then 5317 case $host_os in 5318 mingw* | pw32*) 5319 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5320 want_nocaseglob=yes 5321 else 5322 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5323 fi 5324 ;; 5325 esac 5326fi 5327 5328file_magic_cmd=$lt_cv_file_magic_cmd 5329deplibs_check_method=$lt_cv_deplibs_check_method 5330test -z "$deplibs_check_method" && deplibs_check_method=unknown 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353if test -n "$ac_tool_prefix"; then 5354 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5355set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5357$as_echo_n "checking for $ac_word... " >&6; } 5358if ${ac_cv_prog_DLLTOOL+:} false; then : 5359 $as_echo_n "(cached) " >&6 5360else 5361 if test -n "$DLLTOOL"; then 5362 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5363else 5364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5365for as_dir in $PATH 5366do 5367 IFS=$as_save_IFS 5368 test -z "$as_dir" && as_dir=. 5369 for ac_exec_ext in '' $ac_executable_extensions; do 5370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5371 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5373 break 2 5374 fi 5375done 5376 done 5377IFS=$as_save_IFS 5378 5379fi 5380fi 5381DLLTOOL=$ac_cv_prog_DLLTOOL 5382if test -n "$DLLTOOL"; then 5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5384$as_echo "$DLLTOOL" >&6; } 5385else 5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5387$as_echo "no" >&6; } 5388fi 5389 5390 5391fi 5392if test -z "$ac_cv_prog_DLLTOOL"; then 5393 ac_ct_DLLTOOL=$DLLTOOL 5394 # Extract the first word of "dlltool", so it can be a program name with args. 5395set dummy dlltool; ac_word=$2 5396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5397$as_echo_n "checking for $ac_word... " >&6; } 5398if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5399 $as_echo_n "(cached) " >&6 5400else 5401 if test -n "$ac_ct_DLLTOOL"; then 5402 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5403else 5404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5405for as_dir in $PATH 5406do 5407 IFS=$as_save_IFS 5408 test -z "$as_dir" && as_dir=. 5409 for ac_exec_ext in '' $ac_executable_extensions; do 5410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5411 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5413 break 2 5414 fi 5415done 5416 done 5417IFS=$as_save_IFS 5418 5419fi 5420fi 5421ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5422if test -n "$ac_ct_DLLTOOL"; then 5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5424$as_echo "$ac_ct_DLLTOOL" >&6; } 5425else 5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5427$as_echo "no" >&6; } 5428fi 5429 5430 if test "x$ac_ct_DLLTOOL" = x; then 5431 DLLTOOL="false" 5432 else 5433 case $cross_compiling:$ac_tool_warned in 5434yes:) 5435{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5436$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5437ac_tool_warned=yes ;; 5438esac 5439 DLLTOOL=$ac_ct_DLLTOOL 5440 fi 5441else 5442 DLLTOOL="$ac_cv_prog_DLLTOOL" 5443fi 5444 5445test -z "$DLLTOOL" && DLLTOOL=dlltool 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5457$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5458if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5459 $as_echo_n "(cached) " >&6 5460else 5461 lt_cv_sharedlib_from_linklib_cmd='unknown' 5462 5463case $host_os in 5464cygwin* | mingw* | pw32* | cegcc*) 5465 # two different shell functions defined in ltmain.sh 5466 # decide which to use based on capabilities of $DLLTOOL 5467 case `$DLLTOOL --help 2>&1` in 5468 *--identify-strict*) 5469 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5470 ;; 5471 *) 5472 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5473 ;; 5474 esac 5475 ;; 5476*) 5477 # fallback: assume linklib IS sharedlib 5478 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5479 ;; 5480esac 5481 5482fi 5483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5484$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5485sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5486test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5487 5488 5489 5490 5491 5492 5493 5494 5495if test -n "$ac_tool_prefix"; then 5496 for ac_prog in ar 5497 do 5498 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5499set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5501$as_echo_n "checking for $ac_word... " >&6; } 5502if ${ac_cv_prog_AR+:} false; then : 5503 $as_echo_n "(cached) " >&6 5504else 5505 if test -n "$AR"; then 5506 ac_cv_prog_AR="$AR" # Let the user override the test. 5507else 5508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5509for as_dir in $PATH 5510do 5511 IFS=$as_save_IFS 5512 test -z "$as_dir" && as_dir=. 5513 for ac_exec_ext in '' $ac_executable_extensions; do 5514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5515 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5517 break 2 5518 fi 5519done 5520 done 5521IFS=$as_save_IFS 5522 5523fi 5524fi 5525AR=$ac_cv_prog_AR 5526if test -n "$AR"; then 5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5528$as_echo "$AR" >&6; } 5529else 5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5531$as_echo "no" >&6; } 5532fi 5533 5534 5535 test -n "$AR" && break 5536 done 5537fi 5538if test -z "$AR"; then 5539 ac_ct_AR=$AR 5540 for ac_prog in ar 5541do 5542 # Extract the first word of "$ac_prog", so it can be a program name with args. 5543set dummy $ac_prog; ac_word=$2 5544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5545$as_echo_n "checking for $ac_word... " >&6; } 5546if ${ac_cv_prog_ac_ct_AR+:} false; then : 5547 $as_echo_n "(cached) " >&6 5548else 5549 if test -n "$ac_ct_AR"; then 5550 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5551else 5552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5553for as_dir in $PATH 5554do 5555 IFS=$as_save_IFS 5556 test -z "$as_dir" && as_dir=. 5557 for ac_exec_ext in '' $ac_executable_extensions; do 5558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5559 ac_cv_prog_ac_ct_AR="$ac_prog" 5560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5561 break 2 5562 fi 5563done 5564 done 5565IFS=$as_save_IFS 5566 5567fi 5568fi 5569ac_ct_AR=$ac_cv_prog_ac_ct_AR 5570if test -n "$ac_ct_AR"; then 5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5572$as_echo "$ac_ct_AR" >&6; } 5573else 5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5575$as_echo "no" >&6; } 5576fi 5577 5578 5579 test -n "$ac_ct_AR" && break 5580done 5581 5582 if test "x$ac_ct_AR" = x; then 5583 AR="false" 5584 else 5585 case $cross_compiling:$ac_tool_warned in 5586yes:) 5587{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5588$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5589ac_tool_warned=yes ;; 5590esac 5591 AR=$ac_ct_AR 5592 fi 5593fi 5594 5595: ${AR=ar} 5596: ${AR_FLAGS=cru} 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5609$as_echo_n "checking for archiver @FILE support... " >&6; } 5610if ${lt_cv_ar_at_file+:} false; then : 5611 $as_echo_n "(cached) " >&6 5612else 5613 lt_cv_ar_at_file=no 5614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5615/* end confdefs.h. */ 5616 5617int 5618main () 5619{ 5620 5621 ; 5622 return 0; 5623} 5624_ACEOF 5625if ac_fn_c_try_compile "$LINENO"; then : 5626 echo conftest.$ac_objext > conftest.lst 5627 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5628 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5629 (eval $lt_ar_try) 2>&5 5630 ac_status=$? 5631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5632 test $ac_status = 0; } 5633 if test "$ac_status" -eq 0; then 5634 # Ensure the archiver fails upon bogus file names. 5635 rm -f conftest.$ac_objext libconftest.a 5636 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5637 (eval $lt_ar_try) 2>&5 5638 ac_status=$? 5639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5640 test $ac_status = 0; } 5641 if test "$ac_status" -ne 0; then 5642 lt_cv_ar_at_file=@ 5643 fi 5644 fi 5645 rm -f conftest.* libconftest.a 5646 5647fi 5648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5649 5650fi 5651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5652$as_echo "$lt_cv_ar_at_file" >&6; } 5653 5654if test "x$lt_cv_ar_at_file" = xno; then 5655 archiver_list_spec= 5656else 5657 archiver_list_spec=$lt_cv_ar_at_file 5658fi 5659 5660 5661 5662 5663 5664 5665 5666if test -n "$ac_tool_prefix"; then 5667 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5668set dummy ${ac_tool_prefix}strip; ac_word=$2 5669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5670$as_echo_n "checking for $ac_word... " >&6; } 5671if ${ac_cv_prog_STRIP+:} false; then : 5672 $as_echo_n "(cached) " >&6 5673else 5674 if test -n "$STRIP"; then 5675 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5676else 5677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5678for as_dir in $PATH 5679do 5680 IFS=$as_save_IFS 5681 test -z "$as_dir" && as_dir=. 5682 for ac_exec_ext in '' $ac_executable_extensions; do 5683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5684 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5686 break 2 5687 fi 5688done 5689 done 5690IFS=$as_save_IFS 5691 5692fi 5693fi 5694STRIP=$ac_cv_prog_STRIP 5695if test -n "$STRIP"; then 5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5697$as_echo "$STRIP" >&6; } 5698else 5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5700$as_echo "no" >&6; } 5701fi 5702 5703 5704fi 5705if test -z "$ac_cv_prog_STRIP"; then 5706 ac_ct_STRIP=$STRIP 5707 # Extract the first word of "strip", so it can be a program name with args. 5708set dummy strip; ac_word=$2 5709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5710$as_echo_n "checking for $ac_word... " >&6; } 5711if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5712 $as_echo_n "(cached) " >&6 5713else 5714 if test -n "$ac_ct_STRIP"; then 5715 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5716else 5717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5718for as_dir in $PATH 5719do 5720 IFS=$as_save_IFS 5721 test -z "$as_dir" && as_dir=. 5722 for ac_exec_ext in '' $ac_executable_extensions; do 5723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5724 ac_cv_prog_ac_ct_STRIP="strip" 5725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5726 break 2 5727 fi 5728done 5729 done 5730IFS=$as_save_IFS 5731 5732fi 5733fi 5734ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5735if test -n "$ac_ct_STRIP"; then 5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5737$as_echo "$ac_ct_STRIP" >&6; } 5738else 5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5740$as_echo "no" >&6; } 5741fi 5742 5743 if test "x$ac_ct_STRIP" = x; then 5744 STRIP=":" 5745 else 5746 case $cross_compiling:$ac_tool_warned in 5747yes:) 5748{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5749$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5750ac_tool_warned=yes ;; 5751esac 5752 STRIP=$ac_ct_STRIP 5753 fi 5754else 5755 STRIP="$ac_cv_prog_STRIP" 5756fi 5757 5758test -z "$STRIP" && STRIP=: 5759 5760 5761 5762 5763 5764 5765if test -n "$ac_tool_prefix"; then 5766 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5767set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5769$as_echo_n "checking for $ac_word... " >&6; } 5770if ${ac_cv_prog_RANLIB+:} false; then : 5771 $as_echo_n "(cached) " >&6 5772else 5773 if test -n "$RANLIB"; then 5774 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5775else 5776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5777for as_dir in $PATH 5778do 5779 IFS=$as_save_IFS 5780 test -z "$as_dir" && as_dir=. 5781 for ac_exec_ext in '' $ac_executable_extensions; do 5782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5783 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5785 break 2 5786 fi 5787done 5788 done 5789IFS=$as_save_IFS 5790 5791fi 5792fi 5793RANLIB=$ac_cv_prog_RANLIB 5794if test -n "$RANLIB"; then 5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5796$as_echo "$RANLIB" >&6; } 5797else 5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5799$as_echo "no" >&6; } 5800fi 5801 5802 5803fi 5804if test -z "$ac_cv_prog_RANLIB"; then 5805 ac_ct_RANLIB=$RANLIB 5806 # Extract the first word of "ranlib", so it can be a program name with args. 5807set dummy ranlib; ac_word=$2 5808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5809$as_echo_n "checking for $ac_word... " >&6; } 5810if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5811 $as_echo_n "(cached) " >&6 5812else 5813 if test -n "$ac_ct_RANLIB"; then 5814 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5815else 5816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5817for as_dir in $PATH 5818do 5819 IFS=$as_save_IFS 5820 test -z "$as_dir" && as_dir=. 5821 for ac_exec_ext in '' $ac_executable_extensions; do 5822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5823 ac_cv_prog_ac_ct_RANLIB="ranlib" 5824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5825 break 2 5826 fi 5827done 5828 done 5829IFS=$as_save_IFS 5830 5831fi 5832fi 5833ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5834if test -n "$ac_ct_RANLIB"; then 5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5836$as_echo "$ac_ct_RANLIB" >&6; } 5837else 5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5839$as_echo "no" >&6; } 5840fi 5841 5842 if test "x$ac_ct_RANLIB" = x; then 5843 RANLIB=":" 5844 else 5845 case $cross_compiling:$ac_tool_warned in 5846yes:) 5847{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5848$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5849ac_tool_warned=yes ;; 5850esac 5851 RANLIB=$ac_ct_RANLIB 5852 fi 5853else 5854 RANLIB="$ac_cv_prog_RANLIB" 5855fi 5856 5857test -z "$RANLIB" && RANLIB=: 5858 5859 5860 5861 5862 5863 5864# Determine commands to create old-style static archives. 5865old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5866old_postinstall_cmds='chmod 644 $oldlib' 5867old_postuninstall_cmds= 5868 5869if test -n "$RANLIB"; then 5870 case $host_os in 5871 openbsd*) 5872 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5873 ;; 5874 *) 5875 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5876 ;; 5877 esac 5878 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5879fi 5880 5881case $host_os in 5882 darwin*) 5883 lock_old_archive_extraction=yes ;; 5884 *) 5885 lock_old_archive_extraction=no ;; 5886esac 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926# If no C compiler was specified, use CC. 5927LTCC=${LTCC-"$CC"} 5928 5929# If no C compiler flags were specified, use CFLAGS. 5930LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5931 5932# Allow CC to be a program name with arguments. 5933compiler=$CC 5934 5935 5936# Check for command to grab the raw symbol name followed by C symbol from nm. 5937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5938$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5939if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5940 $as_echo_n "(cached) " >&6 5941else 5942 5943# These are sane defaults that work on at least a few old systems. 5944# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5945 5946# Character class describing NM global symbol codes. 5947symcode='[BCDEGRST]' 5948 5949# Regexp to match symbols that can be accessed directly from C. 5950sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5951 5952# Define system-specific variables. 5953case $host_os in 5954aix*) 5955 symcode='[BCDT]' 5956 ;; 5957cygwin* | mingw* | pw32* | cegcc*) 5958 symcode='[ABCDGISTW]' 5959 ;; 5960hpux*) 5961 if test "$host_cpu" = ia64; then 5962 symcode='[ABCDEGRST]' 5963 fi 5964 ;; 5965irix* | nonstopux*) 5966 symcode='[BCDEGRST]' 5967 ;; 5968osf*) 5969 symcode='[BCDEGQRST]' 5970 ;; 5971solaris*) 5972 symcode='[BDRT]' 5973 ;; 5974sco3.2v5*) 5975 symcode='[DT]' 5976 ;; 5977sysv4.2uw2*) 5978 symcode='[DT]' 5979 ;; 5980sysv5* | sco5v6* | unixware* | OpenUNIX*) 5981 symcode='[ABDT]' 5982 ;; 5983sysv4) 5984 symcode='[DFNSTU]' 5985 ;; 5986esac 5987 5988# If we're using GNU nm, then use its standard symbol codes. 5989case `$NM -V 2>&1` in 5990*GNU* | *'with BFD'*) 5991 symcode='[ABCDGIRSTW]' ;; 5992esac 5993 5994# Transform an extracted symbol line into a proper C declaration. 5995# Some systems (esp. on ia64) link data and code symbols differently, 5996# so use this general approach. 5997lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5998 5999# Transform an extracted symbol line into symbol name and symbol address 6000lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6001lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 6002 6003# Handle CRLF in mingw tool chain 6004opt_cr= 6005case $build_os in 6006mingw*) 6007 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6008 ;; 6009esac 6010 6011# Try without a prefix underscore, then with it. 6012for ac_symprfx in "" "_"; do 6013 6014 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6015 symxfrm="\\1 $ac_symprfx\\2 \\2" 6016 6017 # Write the raw and C identifiers. 6018 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6019 # Fake it for dumpbin and say T for any non-static function 6020 # and D for any global variable. 6021 # Also find C++ and __fastcall symbols from MSVC++, 6022 # which start with @ or ?. 6023 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6024" {last_section=section; section=\$ 3};"\ 6025" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6026" \$ 0!~/External *\|/{next};"\ 6027" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6028" {if(hide[section]) next};"\ 6029" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6030" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6031" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6032" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6033" ' prfx=^$ac_symprfx" 6034 else 6035 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6036 fi 6037 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6038 6039 # Check to see that the pipe works correctly. 6040 pipe_works=no 6041 6042 rm -f conftest* 6043 cat > conftest.$ac_ext <<_LT_EOF 6044#ifdef __cplusplus 6045extern "C" { 6046#endif 6047char nm_test_var; 6048void nm_test_func(void); 6049void nm_test_func(void){} 6050#ifdef __cplusplus 6051} 6052#endif 6053int main(){nm_test_var='a';nm_test_func();return(0);} 6054_LT_EOF 6055 6056 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6057 (eval $ac_compile) 2>&5 6058 ac_status=$? 6059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6060 test $ac_status = 0; }; then 6061 # Now try to grab the symbols. 6062 nlist=conftest.nm 6063 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6064 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6065 ac_status=$? 6066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6067 test $ac_status = 0; } && test -s "$nlist"; then 6068 # Try sorting and uniquifying the output. 6069 if sort "$nlist" | uniq > "$nlist"T; then 6070 mv -f "$nlist"T "$nlist" 6071 else 6072 rm -f "$nlist"T 6073 fi 6074 6075 # Make sure that we snagged all the symbols we need. 6076 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6077 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6078 cat <<_LT_EOF > conftest.$ac_ext 6079/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6080#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6081/* DATA imports from DLLs on WIN32 con't be const, because runtime 6082 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6083# define LT_DLSYM_CONST 6084#elif defined(__osf__) 6085/* This system does not cope well with relocations in const data. */ 6086# define LT_DLSYM_CONST 6087#else 6088# define LT_DLSYM_CONST const 6089#endif 6090 6091#ifdef __cplusplus 6092extern "C" { 6093#endif 6094 6095_LT_EOF 6096 # Now generate the symbol file. 6097 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6098 6099 cat <<_LT_EOF >> conftest.$ac_ext 6100 6101/* The mapping between symbol names and symbols. */ 6102LT_DLSYM_CONST struct { 6103 const char *name; 6104 void *address; 6105} 6106lt__PROGRAM__LTX_preloaded_symbols[] = 6107{ 6108 { "@PROGRAM@", (void *) 0 }, 6109_LT_EOF 6110 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6111 cat <<\_LT_EOF >> conftest.$ac_ext 6112 {0, (void *) 0} 6113}; 6114 6115/* This works around a problem in FreeBSD linker */ 6116#ifdef FREEBSD_WORKAROUND 6117static const void *lt_preloaded_setup() { 6118 return lt__PROGRAM__LTX_preloaded_symbols; 6119} 6120#endif 6121 6122#ifdef __cplusplus 6123} 6124#endif 6125_LT_EOF 6126 # Now try linking the two files. 6127 mv conftest.$ac_objext conftstm.$ac_objext 6128 lt_globsym_save_LIBS=$LIBS 6129 lt_globsym_save_CFLAGS=$CFLAGS 6130 LIBS="conftstm.$ac_objext" 6131 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6132 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6133 (eval $ac_link) 2>&5 6134 ac_status=$? 6135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6136 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6137 pipe_works=yes 6138 fi 6139 LIBS=$lt_globsym_save_LIBS 6140 CFLAGS=$lt_globsym_save_CFLAGS 6141 else 6142 echo "cannot find nm_test_func in $nlist" >&5 6143 fi 6144 else 6145 echo "cannot find nm_test_var in $nlist" >&5 6146 fi 6147 else 6148 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6149 fi 6150 else 6151 echo "$progname: failed program was:" >&5 6152 cat conftest.$ac_ext >&5 6153 fi 6154 rm -rf conftest* conftst* 6155 6156 # Do not use the global_symbol_pipe unless it works. 6157 if test "$pipe_works" = yes; then 6158 break 6159 else 6160 lt_cv_sys_global_symbol_pipe= 6161 fi 6162done 6163 6164fi 6165 6166if test -z "$lt_cv_sys_global_symbol_pipe"; then 6167 lt_cv_sys_global_symbol_to_cdecl= 6168fi 6169if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6171$as_echo "failed" >&6; } 6172else 6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6174$as_echo "ok" >&6; } 6175fi 6176 6177# Response file support. 6178if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6179 nm_file_list_spec='@' 6180elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6181 nm_file_list_spec='@' 6182fi 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6211$as_echo_n "checking for sysroot... " >&6; } 6212 6213# Check whether --with-sysroot was given. 6214if test "${with_sysroot+set}" = set; then : 6215 withval=$with_sysroot; 6216else 6217 with_sysroot=no 6218fi 6219 6220 6221lt_sysroot= 6222case ${with_sysroot} in #( 6223 yes) 6224 if test "$GCC" = yes; then 6225 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6226 fi 6227 ;; #( 6228 /*) 6229 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6230 ;; #( 6231 no|'') 6232 ;; #( 6233 *) 6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6235$as_echo "${with_sysroot}" >&6; } 6236 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6237 ;; 6238esac 6239 6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6241$as_echo "${lt_sysroot:-no}" >&6; } 6242 6243 6244 6245 6246 6247# Check whether --enable-libtool-lock was given. 6248if test "${enable_libtool_lock+set}" = set; then : 6249 enableval=$enable_libtool_lock; 6250fi 6251 6252test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6253 6254# Some flags need to be propagated to the compiler or linker for good 6255# libtool support. 6256case $host in 6257ia64-*-hpux*) 6258 # Find out which ABI we are using. 6259 echo 'int i;' > conftest.$ac_ext 6260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6261 (eval $ac_compile) 2>&5 6262 ac_status=$? 6263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6264 test $ac_status = 0; }; then 6265 case `/usr/bin/file conftest.$ac_objext` in 6266 *ELF-32*) 6267 HPUX_IA64_MODE="32" 6268 ;; 6269 *ELF-64*) 6270 HPUX_IA64_MODE="64" 6271 ;; 6272 esac 6273 fi 6274 rm -rf conftest* 6275 ;; 6276*-*-irix6*) 6277 # Find out which ABI we are using. 6278 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6279 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6280 (eval $ac_compile) 2>&5 6281 ac_status=$? 6282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6283 test $ac_status = 0; }; then 6284 if test "$lt_cv_prog_gnu_ld" = yes; then 6285 case `/usr/bin/file conftest.$ac_objext` in 6286 *32-bit*) 6287 LD="${LD-ld} -melf32bsmip" 6288 ;; 6289 *N32*) 6290 LD="${LD-ld} -melf32bmipn32" 6291 ;; 6292 *64-bit*) 6293 LD="${LD-ld} -melf64bmip" 6294 ;; 6295 esac 6296 else 6297 case `/usr/bin/file conftest.$ac_objext` in 6298 *32-bit*) 6299 LD="${LD-ld} -32" 6300 ;; 6301 *N32*) 6302 LD="${LD-ld} -n32" 6303 ;; 6304 *64-bit*) 6305 LD="${LD-ld} -64" 6306 ;; 6307 esac 6308 fi 6309 fi 6310 rm -rf conftest* 6311 ;; 6312 6313x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6314s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6315 # Find out which ABI we are using. 6316 echo 'int i;' > conftest.$ac_ext 6317 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6318 (eval $ac_compile) 2>&5 6319 ac_status=$? 6320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6321 test $ac_status = 0; }; then 6322 case `/usr/bin/file conftest.o` in 6323 *32-bit*) 6324 case $host in 6325 x86_64-*kfreebsd*-gnu) 6326 LD="${LD-ld} -m elf_i386_fbsd" 6327 ;; 6328 x86_64-*linux*) 6329 LD="${LD-ld} -m elf_i386" 6330 ;; 6331 ppc64-*linux*|powerpc64-*linux*) 6332 LD="${LD-ld} -m elf32ppclinux" 6333 ;; 6334 s390x-*linux*) 6335 LD="${LD-ld} -m elf_s390" 6336 ;; 6337 sparc64-*linux*) 6338 LD="${LD-ld} -m elf32_sparc" 6339 ;; 6340 esac 6341 ;; 6342 *64-bit*) 6343 case $host in 6344 x86_64-*kfreebsd*-gnu) 6345 LD="${LD-ld} -m elf_x86_64_fbsd" 6346 ;; 6347 x86_64-*linux*) 6348 LD="${LD-ld} -m elf_x86_64" 6349 ;; 6350 ppc*-*linux*|powerpc*-*linux*) 6351 LD="${LD-ld} -m elf64ppc" 6352 ;; 6353 s390*-*linux*|s390*-*tpf*) 6354 LD="${LD-ld} -m elf64_s390" 6355 ;; 6356 sparc*-*linux*) 6357 LD="${LD-ld} -m elf64_sparc" 6358 ;; 6359 esac 6360 ;; 6361 esac 6362 fi 6363 rm -rf conftest* 6364 ;; 6365 6366*-*-sco3.2v5*) 6367 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6368 SAVE_CFLAGS="$CFLAGS" 6369 CFLAGS="$CFLAGS -belf" 6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6371$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6372if ${lt_cv_cc_needs_belf+:} false; then : 6373 $as_echo_n "(cached) " >&6 6374else 6375 ac_ext=c 6376ac_cpp='$CPP $CPPFLAGS' 6377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6379ac_compiler_gnu=$ac_cv_c_compiler_gnu 6380 6381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6382/* end confdefs.h. */ 6383 6384int 6385main () 6386{ 6387 6388 ; 6389 return 0; 6390} 6391_ACEOF 6392if ac_fn_c_try_link "$LINENO"; then : 6393 lt_cv_cc_needs_belf=yes 6394else 6395 lt_cv_cc_needs_belf=no 6396fi 6397rm -f core conftest.err conftest.$ac_objext \ 6398 conftest$ac_exeext conftest.$ac_ext 6399 ac_ext=c 6400ac_cpp='$CPP $CPPFLAGS' 6401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6403ac_compiler_gnu=$ac_cv_c_compiler_gnu 6404 6405fi 6406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6407$as_echo "$lt_cv_cc_needs_belf" >&6; } 6408 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6409 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6410 CFLAGS="$SAVE_CFLAGS" 6411 fi 6412 ;; 6413sparc*-*solaris*) 6414 # Find out which ABI we are using. 6415 echo 'int i;' > conftest.$ac_ext 6416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6417 (eval $ac_compile) 2>&5 6418 ac_status=$? 6419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6420 test $ac_status = 0; }; then 6421 case `/usr/bin/file conftest.o` in 6422 *64-bit*) 6423 case $lt_cv_prog_gnu_ld in 6424 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6425 *) 6426 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6427 LD="${LD-ld} -64" 6428 fi 6429 ;; 6430 esac 6431 ;; 6432 esac 6433 fi 6434 rm -rf conftest* 6435 ;; 6436esac 6437 6438need_locks="$enable_libtool_lock" 6439 6440if test -n "$ac_tool_prefix"; then 6441 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6442set dummy ${ac_tool_prefix}mt; ac_word=$2 6443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6444$as_echo_n "checking for $ac_word... " >&6; } 6445if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6446 $as_echo_n "(cached) " >&6 6447else 6448 if test -n "$MANIFEST_TOOL"; then 6449 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6450else 6451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6452for as_dir in $PATH 6453do 6454 IFS=$as_save_IFS 6455 test -z "$as_dir" && as_dir=. 6456 for ac_exec_ext in '' $ac_executable_extensions; do 6457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6458 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6460 break 2 6461 fi 6462done 6463 done 6464IFS=$as_save_IFS 6465 6466fi 6467fi 6468MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6469if test -n "$MANIFEST_TOOL"; then 6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6471$as_echo "$MANIFEST_TOOL" >&6; } 6472else 6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6474$as_echo "no" >&6; } 6475fi 6476 6477 6478fi 6479if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6480 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6481 # Extract the first word of "mt", so it can be a program name with args. 6482set dummy mt; ac_word=$2 6483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6484$as_echo_n "checking for $ac_word... " >&6; } 6485if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6486 $as_echo_n "(cached) " >&6 6487else 6488 if test -n "$ac_ct_MANIFEST_TOOL"; then 6489 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6490else 6491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6492for as_dir in $PATH 6493do 6494 IFS=$as_save_IFS 6495 test -z "$as_dir" && as_dir=. 6496 for ac_exec_ext in '' $ac_executable_extensions; do 6497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6498 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6500 break 2 6501 fi 6502done 6503 done 6504IFS=$as_save_IFS 6505 6506fi 6507fi 6508ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6509if test -n "$ac_ct_MANIFEST_TOOL"; then 6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6511$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6512else 6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6514$as_echo "no" >&6; } 6515fi 6516 6517 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6518 MANIFEST_TOOL=":" 6519 else 6520 case $cross_compiling:$ac_tool_warned in 6521yes:) 6522{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6523$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6524ac_tool_warned=yes ;; 6525esac 6526 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6527 fi 6528else 6529 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6530fi 6531 6532test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6534$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6535if ${lt_cv_path_mainfest_tool+:} false; then : 6536 $as_echo_n "(cached) " >&6 6537else 6538 lt_cv_path_mainfest_tool=no 6539 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6540 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6541 cat conftest.err >&5 6542 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6543 lt_cv_path_mainfest_tool=yes 6544 fi 6545 rm -f conftest* 6546fi 6547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6548$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6549if test "x$lt_cv_path_mainfest_tool" != xyes; then 6550 MANIFEST_TOOL=: 6551fi 6552 6553 6554 6555 6556 6557 6558 case $host_os in 6559 rhapsody* | darwin*) 6560 if test -n "$ac_tool_prefix"; then 6561 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6562set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6564$as_echo_n "checking for $ac_word... " >&6; } 6565if ${ac_cv_prog_DSYMUTIL+:} false; then : 6566 $as_echo_n "(cached) " >&6 6567else 6568 if test -n "$DSYMUTIL"; then 6569 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6570else 6571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6572for as_dir in $PATH 6573do 6574 IFS=$as_save_IFS 6575 test -z "$as_dir" && as_dir=. 6576 for ac_exec_ext in '' $ac_executable_extensions; do 6577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6578 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6580 break 2 6581 fi 6582done 6583 done 6584IFS=$as_save_IFS 6585 6586fi 6587fi 6588DSYMUTIL=$ac_cv_prog_DSYMUTIL 6589if test -n "$DSYMUTIL"; then 6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6591$as_echo "$DSYMUTIL" >&6; } 6592else 6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6594$as_echo "no" >&6; } 6595fi 6596 6597 6598fi 6599if test -z "$ac_cv_prog_DSYMUTIL"; then 6600 ac_ct_DSYMUTIL=$DSYMUTIL 6601 # Extract the first word of "dsymutil", so it can be a program name with args. 6602set dummy dsymutil; ac_word=$2 6603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6604$as_echo_n "checking for $ac_word... " >&6; } 6605if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6606 $as_echo_n "(cached) " >&6 6607else 6608 if test -n "$ac_ct_DSYMUTIL"; then 6609 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6610else 6611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6612for as_dir in $PATH 6613do 6614 IFS=$as_save_IFS 6615 test -z "$as_dir" && as_dir=. 6616 for ac_exec_ext in '' $ac_executable_extensions; do 6617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6618 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6620 break 2 6621 fi 6622done 6623 done 6624IFS=$as_save_IFS 6625 6626fi 6627fi 6628ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6629if test -n "$ac_ct_DSYMUTIL"; then 6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6631$as_echo "$ac_ct_DSYMUTIL" >&6; } 6632else 6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6634$as_echo "no" >&6; } 6635fi 6636 6637 if test "x$ac_ct_DSYMUTIL" = x; then 6638 DSYMUTIL=":" 6639 else 6640 case $cross_compiling:$ac_tool_warned in 6641yes:) 6642{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6643$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6644ac_tool_warned=yes ;; 6645esac 6646 DSYMUTIL=$ac_ct_DSYMUTIL 6647 fi 6648else 6649 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6650fi 6651 6652 if test -n "$ac_tool_prefix"; then 6653 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6654set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6656$as_echo_n "checking for $ac_word... " >&6; } 6657if ${ac_cv_prog_NMEDIT+:} false; then : 6658 $as_echo_n "(cached) " >&6 6659else 6660 if test -n "$NMEDIT"; then 6661 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6662else 6663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6664for as_dir in $PATH 6665do 6666 IFS=$as_save_IFS 6667 test -z "$as_dir" && as_dir=. 6668 for ac_exec_ext in '' $ac_executable_extensions; do 6669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6670 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6672 break 2 6673 fi 6674done 6675 done 6676IFS=$as_save_IFS 6677 6678fi 6679fi 6680NMEDIT=$ac_cv_prog_NMEDIT 6681if test -n "$NMEDIT"; then 6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6683$as_echo "$NMEDIT" >&6; } 6684else 6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6686$as_echo "no" >&6; } 6687fi 6688 6689 6690fi 6691if test -z "$ac_cv_prog_NMEDIT"; then 6692 ac_ct_NMEDIT=$NMEDIT 6693 # Extract the first word of "nmedit", so it can be a program name with args. 6694set dummy nmedit; ac_word=$2 6695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6696$as_echo_n "checking for $ac_word... " >&6; } 6697if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6698 $as_echo_n "(cached) " >&6 6699else 6700 if test -n "$ac_ct_NMEDIT"; then 6701 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6702else 6703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6704for as_dir in $PATH 6705do 6706 IFS=$as_save_IFS 6707 test -z "$as_dir" && as_dir=. 6708 for ac_exec_ext in '' $ac_executable_extensions; do 6709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6710 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6712 break 2 6713 fi 6714done 6715 done 6716IFS=$as_save_IFS 6717 6718fi 6719fi 6720ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6721if test -n "$ac_ct_NMEDIT"; then 6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6723$as_echo "$ac_ct_NMEDIT" >&6; } 6724else 6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6726$as_echo "no" >&6; } 6727fi 6728 6729 if test "x$ac_ct_NMEDIT" = x; then 6730 NMEDIT=":" 6731 else 6732 case $cross_compiling:$ac_tool_warned in 6733yes:) 6734{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6735$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6736ac_tool_warned=yes ;; 6737esac 6738 NMEDIT=$ac_ct_NMEDIT 6739 fi 6740else 6741 NMEDIT="$ac_cv_prog_NMEDIT" 6742fi 6743 6744 if test -n "$ac_tool_prefix"; then 6745 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6746set dummy ${ac_tool_prefix}lipo; ac_word=$2 6747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6748$as_echo_n "checking for $ac_word... " >&6; } 6749if ${ac_cv_prog_LIPO+:} false; then : 6750 $as_echo_n "(cached) " >&6 6751else 6752 if test -n "$LIPO"; then 6753 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6754else 6755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6756for as_dir in $PATH 6757do 6758 IFS=$as_save_IFS 6759 test -z "$as_dir" && as_dir=. 6760 for ac_exec_ext in '' $ac_executable_extensions; do 6761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6762 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6764 break 2 6765 fi 6766done 6767 done 6768IFS=$as_save_IFS 6769 6770fi 6771fi 6772LIPO=$ac_cv_prog_LIPO 6773if test -n "$LIPO"; then 6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6775$as_echo "$LIPO" >&6; } 6776else 6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6778$as_echo "no" >&6; } 6779fi 6780 6781 6782fi 6783if test -z "$ac_cv_prog_LIPO"; then 6784 ac_ct_LIPO=$LIPO 6785 # Extract the first word of "lipo", so it can be a program name with args. 6786set dummy lipo; ac_word=$2 6787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6788$as_echo_n "checking for $ac_word... " >&6; } 6789if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6790 $as_echo_n "(cached) " >&6 6791else 6792 if test -n "$ac_ct_LIPO"; then 6793 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6794else 6795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6796for as_dir in $PATH 6797do 6798 IFS=$as_save_IFS 6799 test -z "$as_dir" && as_dir=. 6800 for ac_exec_ext in '' $ac_executable_extensions; do 6801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6802 ac_cv_prog_ac_ct_LIPO="lipo" 6803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6804 break 2 6805 fi 6806done 6807 done 6808IFS=$as_save_IFS 6809 6810fi 6811fi 6812ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6813if test -n "$ac_ct_LIPO"; then 6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6815$as_echo "$ac_ct_LIPO" >&6; } 6816else 6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6818$as_echo "no" >&6; } 6819fi 6820 6821 if test "x$ac_ct_LIPO" = x; then 6822 LIPO=":" 6823 else 6824 case $cross_compiling:$ac_tool_warned in 6825yes:) 6826{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6827$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6828ac_tool_warned=yes ;; 6829esac 6830 LIPO=$ac_ct_LIPO 6831 fi 6832else 6833 LIPO="$ac_cv_prog_LIPO" 6834fi 6835 6836 if test -n "$ac_tool_prefix"; then 6837 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6838set dummy ${ac_tool_prefix}otool; ac_word=$2 6839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6840$as_echo_n "checking for $ac_word... " >&6; } 6841if ${ac_cv_prog_OTOOL+:} false; then : 6842 $as_echo_n "(cached) " >&6 6843else 6844 if test -n "$OTOOL"; then 6845 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6846else 6847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6848for as_dir in $PATH 6849do 6850 IFS=$as_save_IFS 6851 test -z "$as_dir" && as_dir=. 6852 for ac_exec_ext in '' $ac_executable_extensions; do 6853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6854 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6856 break 2 6857 fi 6858done 6859 done 6860IFS=$as_save_IFS 6861 6862fi 6863fi 6864OTOOL=$ac_cv_prog_OTOOL 6865if test -n "$OTOOL"; then 6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6867$as_echo "$OTOOL" >&6; } 6868else 6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6870$as_echo "no" >&6; } 6871fi 6872 6873 6874fi 6875if test -z "$ac_cv_prog_OTOOL"; then 6876 ac_ct_OTOOL=$OTOOL 6877 # Extract the first word of "otool", so it can be a program name with args. 6878set dummy otool; ac_word=$2 6879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6880$as_echo_n "checking for $ac_word... " >&6; } 6881if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6882 $as_echo_n "(cached) " >&6 6883else 6884 if test -n "$ac_ct_OTOOL"; then 6885 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6886else 6887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6888for as_dir in $PATH 6889do 6890 IFS=$as_save_IFS 6891 test -z "$as_dir" && as_dir=. 6892 for ac_exec_ext in '' $ac_executable_extensions; do 6893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6894 ac_cv_prog_ac_ct_OTOOL="otool" 6895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6896 break 2 6897 fi 6898done 6899 done 6900IFS=$as_save_IFS 6901 6902fi 6903fi 6904ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6905if test -n "$ac_ct_OTOOL"; then 6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6907$as_echo "$ac_ct_OTOOL" >&6; } 6908else 6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6910$as_echo "no" >&6; } 6911fi 6912 6913 if test "x$ac_ct_OTOOL" = x; then 6914 OTOOL=":" 6915 else 6916 case $cross_compiling:$ac_tool_warned in 6917yes:) 6918{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6919$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6920ac_tool_warned=yes ;; 6921esac 6922 OTOOL=$ac_ct_OTOOL 6923 fi 6924else 6925 OTOOL="$ac_cv_prog_OTOOL" 6926fi 6927 6928 if test -n "$ac_tool_prefix"; then 6929 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6930set dummy ${ac_tool_prefix}otool64; ac_word=$2 6931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6932$as_echo_n "checking for $ac_word... " >&6; } 6933if ${ac_cv_prog_OTOOL64+:} false; then : 6934 $as_echo_n "(cached) " >&6 6935else 6936 if test -n "$OTOOL64"; then 6937 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6938else 6939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6940for as_dir in $PATH 6941do 6942 IFS=$as_save_IFS 6943 test -z "$as_dir" && as_dir=. 6944 for ac_exec_ext in '' $ac_executable_extensions; do 6945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6946 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6948 break 2 6949 fi 6950done 6951 done 6952IFS=$as_save_IFS 6953 6954fi 6955fi 6956OTOOL64=$ac_cv_prog_OTOOL64 6957if test -n "$OTOOL64"; then 6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6959$as_echo "$OTOOL64" >&6; } 6960else 6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6962$as_echo "no" >&6; } 6963fi 6964 6965 6966fi 6967if test -z "$ac_cv_prog_OTOOL64"; then 6968 ac_ct_OTOOL64=$OTOOL64 6969 # Extract the first word of "otool64", so it can be a program name with args. 6970set dummy otool64; ac_word=$2 6971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6972$as_echo_n "checking for $ac_word... " >&6; } 6973if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 6974 $as_echo_n "(cached) " >&6 6975else 6976 if test -n "$ac_ct_OTOOL64"; then 6977 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6978else 6979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6980for as_dir in $PATH 6981do 6982 IFS=$as_save_IFS 6983 test -z "$as_dir" && as_dir=. 6984 for ac_exec_ext in '' $ac_executable_extensions; do 6985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6986 ac_cv_prog_ac_ct_OTOOL64="otool64" 6987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6988 break 2 6989 fi 6990done 6991 done 6992IFS=$as_save_IFS 6993 6994fi 6995fi 6996ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6997if test -n "$ac_ct_OTOOL64"; then 6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6999$as_echo "$ac_ct_OTOOL64" >&6; } 7000else 7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7002$as_echo "no" >&6; } 7003fi 7004 7005 if test "x$ac_ct_OTOOL64" = x; then 7006 OTOOL64=":" 7007 else 7008 case $cross_compiling:$ac_tool_warned in 7009yes:) 7010{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7011$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7012ac_tool_warned=yes ;; 7013esac 7014 OTOOL64=$ac_ct_OTOOL64 7015 fi 7016else 7017 OTOOL64="$ac_cv_prog_OTOOL64" 7018fi 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7047$as_echo_n "checking for -single_module linker flag... " >&6; } 7048if ${lt_cv_apple_cc_single_mod+:} false; then : 7049 $as_echo_n "(cached) " >&6 7050else 7051 lt_cv_apple_cc_single_mod=no 7052 if test -z "${LT_MULTI_MODULE}"; then 7053 # By default we will add the -single_module flag. You can override 7054 # by either setting the environment variable LT_MULTI_MODULE 7055 # non-empty at configure time, or by adding -multi_module to the 7056 # link flags. 7057 rm -rf libconftest.dylib* 7058 echo "int foo(void){return 1;}" > conftest.c 7059 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7060-dynamiclib -Wl,-single_module conftest.c" >&5 7061 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7062 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7063 _lt_result=$? 7064 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7065 lt_cv_apple_cc_single_mod=yes 7066 else 7067 cat conftest.err >&5 7068 fi 7069 rm -rf libconftest.dylib* 7070 rm -f conftest.* 7071 fi 7072fi 7073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7074$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7076$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7077if ${lt_cv_ld_exported_symbols_list+:} false; then : 7078 $as_echo_n "(cached) " >&6 7079else 7080 lt_cv_ld_exported_symbols_list=no 7081 save_LDFLAGS=$LDFLAGS 7082 echo "_main" > conftest.sym 7083 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7085/* end confdefs.h. */ 7086 7087int 7088main () 7089{ 7090 7091 ; 7092 return 0; 7093} 7094_ACEOF 7095if ac_fn_c_try_link "$LINENO"; then : 7096 lt_cv_ld_exported_symbols_list=yes 7097else 7098 lt_cv_ld_exported_symbols_list=no 7099fi 7100rm -f core conftest.err conftest.$ac_objext \ 7101 conftest$ac_exeext conftest.$ac_ext 7102 LDFLAGS="$save_LDFLAGS" 7103 7104fi 7105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7106$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7108$as_echo_n "checking for -force_load linker flag... " >&6; } 7109if ${lt_cv_ld_force_load+:} false; then : 7110 $as_echo_n "(cached) " >&6 7111else 7112 lt_cv_ld_force_load=no 7113 cat > conftest.c << _LT_EOF 7114int forced_loaded() { return 2;} 7115_LT_EOF 7116 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7117 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7118 echo "$AR cru libconftest.a conftest.o" >&5 7119 $AR cru libconftest.a conftest.o 2>&5 7120 echo "$RANLIB libconftest.a" >&5 7121 $RANLIB libconftest.a 2>&5 7122 cat > conftest.c << _LT_EOF 7123int main() { return 0;} 7124_LT_EOF 7125 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7126 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7127 _lt_result=$? 7128 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 7129 lt_cv_ld_force_load=yes 7130 else 7131 cat conftest.err >&5 7132 fi 7133 rm -f conftest.err libconftest.a conftest conftest.c 7134 rm -rf conftest.dSYM 7135 7136fi 7137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7138$as_echo "$lt_cv_ld_force_load" >&6; } 7139 case $host_os in 7140 rhapsody* | darwin1.[012]) 7141 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7142 darwin1.*) 7143 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7144 darwin*) # darwin 5.x on 7145 # if running on 10.5 or later, the deployment target defaults 7146 # to the OS version, if on x86, and 10.4, the deployment 7147 # target defaults to 10.4. Don't you love it? 7148 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7149 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7150 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7151 10.[012]*) 7152 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7153 10.*) 7154 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7155 esac 7156 ;; 7157 esac 7158 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7159 _lt_dar_single_mod='$single_module' 7160 fi 7161 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7162 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7163 else 7164 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7165 fi 7166 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7167 _lt_dsymutil='~$DSYMUTIL $lib || :' 7168 else 7169 _lt_dsymutil= 7170 fi 7171 ;; 7172 esac 7173 7174ac_ext=c 7175ac_cpp='$CPP $CPPFLAGS' 7176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7178ac_compiler_gnu=$ac_cv_c_compiler_gnu 7179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7180$as_echo_n "checking how to run the C preprocessor... " >&6; } 7181# On Suns, sometimes $CPP names a directory. 7182if test -n "$CPP" && test -d "$CPP"; then 7183 CPP= 7184fi 7185if test -z "$CPP"; then 7186 if ${ac_cv_prog_CPP+:} false; then : 7187 $as_echo_n "(cached) " >&6 7188else 7189 # Double quotes because CPP needs to be expanded 7190 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7191 do 7192 ac_preproc_ok=false 7193for ac_c_preproc_warn_flag in '' yes 7194do 7195 # Use a header file that comes with gcc, so configuring glibc 7196 # with a fresh cross-compiler works. 7197 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7198 # <limits.h> exists even on freestanding compilers. 7199 # On the NeXT, cc -E runs the code through the compiler's parser, 7200 # not just through cpp. "Syntax error" is here to catch this case. 7201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7202/* end confdefs.h. */ 7203#ifdef __STDC__ 7204# include <limits.h> 7205#else 7206# include <assert.h> 7207#endif 7208 Syntax error 7209_ACEOF 7210if ac_fn_c_try_cpp "$LINENO"; then : 7211 7212else 7213 # Broken: fails on valid input. 7214continue 7215fi 7216rm -f conftest.err conftest.i conftest.$ac_ext 7217 7218 # OK, works on sane cases. Now check whether nonexistent headers 7219 # can be detected and how. 7220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7221/* end confdefs.h. */ 7222#include <ac_nonexistent.h> 7223_ACEOF 7224if ac_fn_c_try_cpp "$LINENO"; then : 7225 # Broken: success on invalid input. 7226continue 7227else 7228 # Passes both tests. 7229ac_preproc_ok=: 7230break 7231fi 7232rm -f conftest.err conftest.i conftest.$ac_ext 7233 7234done 7235# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7236rm -f conftest.i conftest.err conftest.$ac_ext 7237if $ac_preproc_ok; then : 7238 break 7239fi 7240 7241 done 7242 ac_cv_prog_CPP=$CPP 7243 7244fi 7245 CPP=$ac_cv_prog_CPP 7246else 7247 ac_cv_prog_CPP=$CPP 7248fi 7249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7250$as_echo "$CPP" >&6; } 7251ac_preproc_ok=false 7252for ac_c_preproc_warn_flag in '' yes 7253do 7254 # Use a header file that comes with gcc, so configuring glibc 7255 # with a fresh cross-compiler works. 7256 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7257 # <limits.h> exists even on freestanding compilers. 7258 # On the NeXT, cc -E runs the code through the compiler's parser, 7259 # not just through cpp. "Syntax error" is here to catch this case. 7260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7261/* end confdefs.h. */ 7262#ifdef __STDC__ 7263# include <limits.h> 7264#else 7265# include <assert.h> 7266#endif 7267 Syntax error 7268_ACEOF 7269if ac_fn_c_try_cpp "$LINENO"; then : 7270 7271else 7272 # Broken: fails on valid input. 7273continue 7274fi 7275rm -f conftest.err conftest.i conftest.$ac_ext 7276 7277 # OK, works on sane cases. Now check whether nonexistent headers 7278 # can be detected and how. 7279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7280/* end confdefs.h. */ 7281#include <ac_nonexistent.h> 7282_ACEOF 7283if ac_fn_c_try_cpp "$LINENO"; then : 7284 # Broken: success on invalid input. 7285continue 7286else 7287 # Passes both tests. 7288ac_preproc_ok=: 7289break 7290fi 7291rm -f conftest.err conftest.i conftest.$ac_ext 7292 7293done 7294# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7295rm -f conftest.i conftest.err conftest.$ac_ext 7296if $ac_preproc_ok; then : 7297 7298else 7299 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7300$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7301as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7302See \`config.log' for more details" "$LINENO" 5; } 7303fi 7304 7305ac_ext=c 7306ac_cpp='$CPP $CPPFLAGS' 7307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7309ac_compiler_gnu=$ac_cv_c_compiler_gnu 7310 7311 7312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7313$as_echo_n "checking for ANSI C header files... " >&6; } 7314if ${ac_cv_header_stdc+:} false; then : 7315 $as_echo_n "(cached) " >&6 7316else 7317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7318/* end confdefs.h. */ 7319#include <stdlib.h> 7320#include <stdarg.h> 7321#include <string.h> 7322#include <float.h> 7323 7324int 7325main () 7326{ 7327 7328 ; 7329 return 0; 7330} 7331_ACEOF 7332if ac_fn_c_try_compile "$LINENO"; then : 7333 ac_cv_header_stdc=yes 7334else 7335 ac_cv_header_stdc=no 7336fi 7337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7338 7339if test $ac_cv_header_stdc = yes; then 7340 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7342/* end confdefs.h. */ 7343#include <string.h> 7344 7345_ACEOF 7346if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7347 $EGREP "memchr" >/dev/null 2>&1; then : 7348 7349else 7350 ac_cv_header_stdc=no 7351fi 7352rm -f conftest* 7353 7354fi 7355 7356if test $ac_cv_header_stdc = yes; then 7357 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7359/* end confdefs.h. */ 7360#include <stdlib.h> 7361 7362_ACEOF 7363if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7364 $EGREP "free" >/dev/null 2>&1; then : 7365 7366else 7367 ac_cv_header_stdc=no 7368fi 7369rm -f conftest* 7370 7371fi 7372 7373if test $ac_cv_header_stdc = yes; then 7374 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7375 if test "$cross_compiling" = yes; then : 7376 : 7377else 7378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7379/* end confdefs.h. */ 7380#include <ctype.h> 7381#include <stdlib.h> 7382#if ((' ' & 0x0FF) == 0x020) 7383# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7384# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7385#else 7386# define ISLOWER(c) \ 7387 (('a' <= (c) && (c) <= 'i') \ 7388 || ('j' <= (c) && (c) <= 'r') \ 7389 || ('s' <= (c) && (c) <= 'z')) 7390# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7391#endif 7392 7393#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7394int 7395main () 7396{ 7397 int i; 7398 for (i = 0; i < 256; i++) 7399 if (XOR (islower (i), ISLOWER (i)) 7400 || toupper (i) != TOUPPER (i)) 7401 return 2; 7402 return 0; 7403} 7404_ACEOF 7405if ac_fn_c_try_run "$LINENO"; then : 7406 7407else 7408 ac_cv_header_stdc=no 7409fi 7410rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7411 conftest.$ac_objext conftest.beam conftest.$ac_ext 7412fi 7413 7414fi 7415fi 7416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7417$as_echo "$ac_cv_header_stdc" >&6; } 7418if test $ac_cv_header_stdc = yes; then 7419 7420$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7421 7422fi 7423 7424# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7425for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7426 inttypes.h stdint.h unistd.h 7427do : 7428 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7429ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7430" 7431if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7432 cat >>confdefs.h <<_ACEOF 7433#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7434_ACEOF 7435 7436fi 7437 7438done 7439 7440 7441for ac_header in dlfcn.h 7442do : 7443 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7444" 7445if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7446 cat >>confdefs.h <<_ACEOF 7447#define HAVE_DLFCN_H 1 7448_ACEOF 7449 7450fi 7451 7452done 7453 7454 7455 7456 7457 7458# Set options 7459 7460 7461 7462 enable_dlopen=no 7463 7464 7465 enable_win32_dll=no 7466 7467 7468 # Check whether --enable-shared was given. 7469if test "${enable_shared+set}" = set; then : 7470 enableval=$enable_shared; p=${PACKAGE-default} 7471 case $enableval in 7472 yes) enable_shared=yes ;; 7473 no) enable_shared=no ;; 7474 *) 7475 enable_shared=no 7476 # Look at the argument we got. We use all the common list separators. 7477 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7478 for pkg in $enableval; do 7479 IFS="$lt_save_ifs" 7480 if test "X$pkg" = "X$p"; then 7481 enable_shared=yes 7482 fi 7483 done 7484 IFS="$lt_save_ifs" 7485 ;; 7486 esac 7487else 7488 enable_shared=yes 7489fi 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 # Check whether --enable-static was given. 7500if test "${enable_static+set}" = set; then : 7501 enableval=$enable_static; p=${PACKAGE-default} 7502 case $enableval in 7503 yes) enable_static=yes ;; 7504 no) enable_static=no ;; 7505 *) 7506 enable_static=no 7507 # Look at the argument we got. We use all the common list separators. 7508 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7509 for pkg in $enableval; do 7510 IFS="$lt_save_ifs" 7511 if test "X$pkg" = "X$p"; then 7512 enable_static=yes 7513 fi 7514 done 7515 IFS="$lt_save_ifs" 7516 ;; 7517 esac 7518else 7519 enable_static=yes 7520fi 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531# Check whether --with-pic was given. 7532if test "${with_pic+set}" = set; then : 7533 withval=$with_pic; pic_mode="$withval" 7534else 7535 pic_mode=default 7536fi 7537 7538 7539test -z "$pic_mode" && pic_mode=default 7540 7541 7542 7543 7544 7545 7546 7547 # Check whether --enable-fast-install was given. 7548if test "${enable_fast_install+set}" = set; then : 7549 enableval=$enable_fast_install; p=${PACKAGE-default} 7550 case $enableval in 7551 yes) enable_fast_install=yes ;; 7552 no) enable_fast_install=no ;; 7553 *) 7554 enable_fast_install=no 7555 # Look at the argument we got. We use all the common list separators. 7556 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7557 for pkg in $enableval; do 7558 IFS="$lt_save_ifs" 7559 if test "X$pkg" = "X$p"; then 7560 enable_fast_install=yes 7561 fi 7562 done 7563 IFS="$lt_save_ifs" 7564 ;; 7565 esac 7566else 7567 enable_fast_install=yes 7568fi 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580# This can be used to rebuild libtool when needed 7581LIBTOOL_DEPS="$ltmain" 7582 7583# Always use our own libtool. 7584LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611test -z "$LN_S" && LN_S="ln -s" 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626if test -n "${ZSH_VERSION+set}" ; then 7627 setopt NO_GLOB_SUBST 7628fi 7629 7630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7631$as_echo_n "checking for objdir... " >&6; } 7632if ${lt_cv_objdir+:} false; then : 7633 $as_echo_n "(cached) " >&6 7634else 7635 rm -f .libs 2>/dev/null 7636mkdir .libs 2>/dev/null 7637if test -d .libs; then 7638 lt_cv_objdir=.libs 7639else 7640 # MS-DOS does not allow filenames that begin with a dot. 7641 lt_cv_objdir=_libs 7642fi 7643rmdir .libs 2>/dev/null 7644fi 7645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7646$as_echo "$lt_cv_objdir" >&6; } 7647objdir=$lt_cv_objdir 7648 7649 7650 7651 7652 7653cat >>confdefs.h <<_ACEOF 7654#define LT_OBJDIR "$lt_cv_objdir/" 7655_ACEOF 7656 7657 7658 7659 7660case $host_os in 7661aix3*) 7662 # AIX sometimes has problems with the GCC collect2 program. For some 7663 # reason, if we set the COLLECT_NAMES environment variable, the problems 7664 # vanish in a puff of smoke. 7665 if test "X${COLLECT_NAMES+set}" != Xset; then 7666 COLLECT_NAMES= 7667 export COLLECT_NAMES 7668 fi 7669 ;; 7670esac 7671 7672# Global variables: 7673ofile=libtool 7674can_build_shared=yes 7675 7676# All known linkers require a `.a' archive for static linking (except MSVC, 7677# which needs '.lib'). 7678libext=a 7679 7680with_gnu_ld="$lt_cv_prog_gnu_ld" 7681 7682old_CC="$CC" 7683old_CFLAGS="$CFLAGS" 7684 7685# Set sane defaults for various variables 7686test -z "$CC" && CC=cc 7687test -z "$LTCC" && LTCC=$CC 7688test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7689test -z "$LD" && LD=ld 7690test -z "$ac_objext" && ac_objext=o 7691 7692for cc_temp in $compiler""; do 7693 case $cc_temp in 7694 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7695 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7696 \-*) ;; 7697 *) break;; 7698 esac 7699done 7700cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7701 7702 7703# Only perform the check for file, if the check method requires it 7704test -z "$MAGIC_CMD" && MAGIC_CMD=file 7705case $deplibs_check_method in 7706file_magic*) 7707 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7709$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7710if ${lt_cv_path_MAGIC_CMD+:} false; then : 7711 $as_echo_n "(cached) " >&6 7712else 7713 case $MAGIC_CMD in 7714[\\/*] | ?:[\\/]*) 7715 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7716 ;; 7717*) 7718 lt_save_MAGIC_CMD="$MAGIC_CMD" 7719 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7720 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7721 for ac_dir in $ac_dummy; do 7722 IFS="$lt_save_ifs" 7723 test -z "$ac_dir" && ac_dir=. 7724 if test -f $ac_dir/${ac_tool_prefix}file; then 7725 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7726 if test -n "$file_magic_test_file"; then 7727 case $deplibs_check_method in 7728 "file_magic "*) 7729 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7730 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7731 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7732 $EGREP "$file_magic_regex" > /dev/null; then 7733 : 7734 else 7735 cat <<_LT_EOF 1>&2 7736 7737*** Warning: the command libtool uses to detect shared libraries, 7738*** $file_magic_cmd, produces output that libtool cannot recognize. 7739*** The result is that libtool may fail to recognize shared libraries 7740*** as such. This will affect the creation of libtool libraries that 7741*** depend on shared libraries, but programs linked with such libtool 7742*** libraries will work regardless of this problem. Nevertheless, you 7743*** may want to report the problem to your system manager and/or to 7744*** bug-libtool@gnu.org 7745 7746_LT_EOF 7747 fi ;; 7748 esac 7749 fi 7750 break 7751 fi 7752 done 7753 IFS="$lt_save_ifs" 7754 MAGIC_CMD="$lt_save_MAGIC_CMD" 7755 ;; 7756esac 7757fi 7758 7759MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7760if test -n "$MAGIC_CMD"; then 7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7762$as_echo "$MAGIC_CMD" >&6; } 7763else 7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7765$as_echo "no" >&6; } 7766fi 7767 7768 7769 7770 7771 7772if test -z "$lt_cv_path_MAGIC_CMD"; then 7773 if test -n "$ac_tool_prefix"; then 7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7775$as_echo_n "checking for file... " >&6; } 7776if ${lt_cv_path_MAGIC_CMD+:} false; 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/file; then 7791 lt_cv_path_MAGIC_CMD="$ac_dir/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 <<_LT_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 7812_LT_EOF 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 7834 7835 else 7836 MAGIC_CMD=: 7837 fi 7838fi 7839 7840 fi 7841 ;; 7842esac 7843 7844# Use C for the default configuration in the libtool script 7845 7846lt_save_CC="$CC" 7847ac_ext=c 7848ac_cpp='$CPP $CPPFLAGS' 7849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7851ac_compiler_gnu=$ac_cv_c_compiler_gnu 7852 7853 7854# Source file extension for C test sources. 7855ac_ext=c 7856 7857# Object file extension for compiled C test sources. 7858objext=o 7859objext=$objext 7860 7861# Code to be used in simple compile tests 7862lt_simple_compile_test_code="int some_variable = 0;" 7863 7864# Code to be used in simple link tests 7865lt_simple_link_test_code='int main(){return(0);}' 7866 7867 7868 7869 7870 7871 7872 7873# If no C compiler was specified, use CC. 7874LTCC=${LTCC-"$CC"} 7875 7876# If no C compiler flags were specified, use CFLAGS. 7877LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7878 7879# Allow CC to be a program name with arguments. 7880compiler=$CC 7881 7882# Save the default compiler, since it gets overwritten when the other 7883# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7884compiler_DEFAULT=$CC 7885 7886# save warnings/boilerplate of simple test code 7887ac_outfile=conftest.$ac_objext 7888echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7889eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7890_lt_compiler_boilerplate=`cat conftest.err` 7891$RM conftest* 7892 7893ac_outfile=conftest.$ac_objext 7894echo "$lt_simple_link_test_code" >conftest.$ac_ext 7895eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7896_lt_linker_boilerplate=`cat conftest.err` 7897$RM -r conftest* 7898 7899 7900if test -n "$compiler"; then 7901 7902lt_prog_compiler_no_builtin_flag= 7903 7904if test "$GCC" = yes; then 7905 case $cc_basename in 7906 nvcc*) 7907 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7908 *) 7909 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7910 esac 7911 7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7913$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7914if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7915 $as_echo_n "(cached) " >&6 7916else 7917 lt_cv_prog_compiler_rtti_exceptions=no 7918 ac_outfile=conftest.$ac_objext 7919 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7920 lt_compiler_flag="-fno-rtti -fno-exceptions" 7921 # Insert the option either (1) after the last *FLAGS variable, or 7922 # (2) before a word containing "conftest.", or (3) at the end. 7923 # Note that $ac_compile itself does not contain backslashes and begins 7924 # with a dollar sign (not a hyphen), so the echo should work correctly. 7925 # The option is referenced via a variable to avoid confusing sed. 7926 lt_compile=`echo "$ac_compile" | $SED \ 7927 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7928 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7929 -e 's:$: $lt_compiler_flag:'` 7930 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7931 (eval "$lt_compile" 2>conftest.err) 7932 ac_status=$? 7933 cat conftest.err >&5 7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7935 if (exit $ac_status) && test -s "$ac_outfile"; then 7936 # The compiler can only warn and ignore the option if not recognized 7937 # So say no if there are warnings other than the usual output. 7938 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7939 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7940 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7941 lt_cv_prog_compiler_rtti_exceptions=yes 7942 fi 7943 fi 7944 $RM conftest* 7945 7946fi 7947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7948$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7949 7950if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7951 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7952else 7953 : 7954fi 7955 7956fi 7957 7958 7959 7960 7961 7962 7963 lt_prog_compiler_wl= 7964lt_prog_compiler_pic= 7965lt_prog_compiler_static= 7966 7967 7968 if test "$GCC" = yes; then 7969 lt_prog_compiler_wl='-Wl,' 7970 lt_prog_compiler_static='-static' 7971 7972 case $host_os in 7973 aix*) 7974 # All AIX code is PIC. 7975 if test "$host_cpu" = ia64; then 7976 # AIX 5 now supports IA64 processor 7977 lt_prog_compiler_static='-Bstatic' 7978 fi 7979 ;; 7980 7981 amigaos*) 7982 case $host_cpu in 7983 powerpc) 7984 # see comment about AmigaOS4 .so support 7985 lt_prog_compiler_pic='-fPIC' 7986 ;; 7987 m68k) 7988 # FIXME: we need at least 68020 code to build shared libraries, but 7989 # adding the `-m68020' flag to GCC prevents building anything better, 7990 # like `-m68040'. 7991 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7992 ;; 7993 esac 7994 ;; 7995 7996 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7997 # PIC is the default for these OSes. 7998 ;; 7999 8000 mingw* | cygwin* | pw32* | os2* | cegcc*) 8001 # This hack is so that the source file can tell whether it is being 8002 # built for inclusion in a dll (and should export symbols for example). 8003 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8004 # (--disable-auto-import) libraries 8005 lt_prog_compiler_pic='-DDLL_EXPORT' 8006 ;; 8007 8008 darwin* | rhapsody*) 8009 # PIC is the default on this platform 8010 # Common symbols not allowed in MH_DYLIB files 8011 lt_prog_compiler_pic='-fno-common' 8012 ;; 8013 8014 haiku*) 8015 # PIC is the default for Haiku. 8016 # The "-static" flag exists, but is broken. 8017 lt_prog_compiler_static= 8018 ;; 8019 8020 hpux*) 8021 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8022 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8023 # sets the default TLS model and affects inlining. 8024 case $host_cpu in 8025 hppa*64*) 8026 # +Z the default 8027 ;; 8028 *) 8029 lt_prog_compiler_pic='-fPIC' 8030 ;; 8031 esac 8032 ;; 8033 8034 interix[3-9]*) 8035 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8036 # Instead, we relocate shared libraries at runtime. 8037 ;; 8038 8039 msdosdjgpp*) 8040 # Just because we use GCC doesn't mean we suddenly get shared libraries 8041 # on systems that don't support them. 8042 lt_prog_compiler_can_build_shared=no 8043 enable_shared=no 8044 ;; 8045 8046 *nto* | *qnx*) 8047 # QNX uses GNU C++, but need to define -shared option too, otherwise 8048 # it will coredump. 8049 lt_prog_compiler_pic='-fPIC -shared' 8050 ;; 8051 8052 sysv4*MP*) 8053 if test -d /usr/nec; then 8054 lt_prog_compiler_pic=-Kconform_pic 8055 fi 8056 ;; 8057 8058 *) 8059 lt_prog_compiler_pic='-fPIC' 8060 ;; 8061 esac 8062 8063 case $cc_basename in 8064 nvcc*) # Cuda Compiler Driver 2.2 8065 lt_prog_compiler_wl='-Xlinker ' 8066 lt_prog_compiler_pic='-Xcompiler -fPIC' 8067 ;; 8068 esac 8069 else 8070 # PORTME Check for flag to pass linker flags through the system compiler. 8071 case $host_os in 8072 aix*) 8073 lt_prog_compiler_wl='-Wl,' 8074 if test "$host_cpu" = ia64; then 8075 # AIX 5 now supports IA64 processor 8076 lt_prog_compiler_static='-Bstatic' 8077 else 8078 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8079 fi 8080 ;; 8081 8082 mingw* | cygwin* | pw32* | os2* | cegcc*) 8083 # This hack is so that the source file can tell whether it is being 8084 # built for inclusion in a dll (and should export symbols for example). 8085 lt_prog_compiler_pic='-DDLL_EXPORT' 8086 ;; 8087 8088 hpux9* | hpux10* | hpux11*) 8089 lt_prog_compiler_wl='-Wl,' 8090 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8091 # not for PA HP-UX. 8092 case $host_cpu in 8093 hppa*64*|ia64*) 8094 # +Z the default 8095 ;; 8096 *) 8097 lt_prog_compiler_pic='+Z' 8098 ;; 8099 esac 8100 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8101 lt_prog_compiler_static='${wl}-a ${wl}archive' 8102 ;; 8103 8104 irix5* | irix6* | nonstopux*) 8105 lt_prog_compiler_wl='-Wl,' 8106 # PIC (with -KPIC) is the default. 8107 lt_prog_compiler_static='-non_shared' 8108 ;; 8109 8110 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8111 case $cc_basename in 8112 # old Intel for x86_64 which still supported -KPIC. 8113 ecc*) 8114 lt_prog_compiler_wl='-Wl,' 8115 lt_prog_compiler_pic='-KPIC' 8116 lt_prog_compiler_static='-static' 8117 ;; 8118 # icc used to be incompatible with GCC. 8119 # ICC 10 doesn't accept -KPIC any more. 8120 icc* | ifort*) 8121 lt_prog_compiler_wl='-Wl,' 8122 lt_prog_compiler_pic='-fPIC' 8123 lt_prog_compiler_static='-static' 8124 ;; 8125 # Lahey Fortran 8.1. 8126 lf95*) 8127 lt_prog_compiler_wl='-Wl,' 8128 lt_prog_compiler_pic='--shared' 8129 lt_prog_compiler_static='--static' 8130 ;; 8131 nagfor*) 8132 # NAG Fortran compiler 8133 lt_prog_compiler_wl='-Wl,-Wl,,' 8134 lt_prog_compiler_pic='-PIC' 8135 lt_prog_compiler_static='-Bstatic' 8136 ;; 8137 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8138 # Portland Group compilers (*not* the Pentium gcc compiler, 8139 # which looks to be a dead project) 8140 lt_prog_compiler_wl='-Wl,' 8141 lt_prog_compiler_pic='-fpic' 8142 lt_prog_compiler_static='-Bstatic' 8143 ;; 8144 ccc*) 8145 lt_prog_compiler_wl='-Wl,' 8146 # All Alpha code is PIC. 8147 lt_prog_compiler_static='-non_shared' 8148 ;; 8149 xl* | bgxl* | bgf* | mpixl*) 8150 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8151 lt_prog_compiler_wl='-Wl,' 8152 lt_prog_compiler_pic='-qpic' 8153 lt_prog_compiler_static='-qstaticlink' 8154 ;; 8155 *) 8156 case `$CC -V 2>&1 | sed 5q` in 8157 *Sun\ F* | *Sun*Fortran*) 8158 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8159 lt_prog_compiler_pic='-KPIC' 8160 lt_prog_compiler_static='-Bstatic' 8161 lt_prog_compiler_wl='' 8162 ;; 8163 *Sun\ C*) 8164 # Sun C 5.9 8165 lt_prog_compiler_pic='-KPIC' 8166 lt_prog_compiler_static='-Bstatic' 8167 lt_prog_compiler_wl='-Wl,' 8168 ;; 8169 esac 8170 ;; 8171 esac 8172 ;; 8173 8174 newsos6) 8175 lt_prog_compiler_pic='-KPIC' 8176 lt_prog_compiler_static='-Bstatic' 8177 ;; 8178 8179 *nto* | *qnx*) 8180 # QNX uses GNU C++, but need to define -shared option too, otherwise 8181 # it will coredump. 8182 lt_prog_compiler_pic='-fPIC -shared' 8183 ;; 8184 8185 osf3* | osf4* | osf5*) 8186 lt_prog_compiler_wl='-Wl,' 8187 # All OSF/1 code is PIC. 8188 lt_prog_compiler_static='-non_shared' 8189 ;; 8190 8191 rdos*) 8192 lt_prog_compiler_static='-non_shared' 8193 ;; 8194 8195 solaris*) 8196 lt_prog_compiler_pic='-KPIC' 8197 lt_prog_compiler_static='-Bstatic' 8198 case $cc_basename in 8199 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8200 lt_prog_compiler_wl='-Qoption ld ';; 8201 *) 8202 lt_prog_compiler_wl='-Wl,';; 8203 esac 8204 ;; 8205 8206 sunos4*) 8207 lt_prog_compiler_wl='-Qoption ld ' 8208 lt_prog_compiler_pic='-PIC' 8209 lt_prog_compiler_static='-Bstatic' 8210 ;; 8211 8212 sysv4 | sysv4.2uw2* | sysv4.3*) 8213 lt_prog_compiler_wl='-Wl,' 8214 lt_prog_compiler_pic='-KPIC' 8215 lt_prog_compiler_static='-Bstatic' 8216 ;; 8217 8218 sysv4*MP*) 8219 if test -d /usr/nec ;then 8220 lt_prog_compiler_pic='-Kconform_pic' 8221 lt_prog_compiler_static='-Bstatic' 8222 fi 8223 ;; 8224 8225 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8226 lt_prog_compiler_wl='-Wl,' 8227 lt_prog_compiler_pic='-KPIC' 8228 lt_prog_compiler_static='-Bstatic' 8229 ;; 8230 8231 unicos*) 8232 lt_prog_compiler_wl='-Wl,' 8233 lt_prog_compiler_can_build_shared=no 8234 ;; 8235 8236 uts4*) 8237 lt_prog_compiler_pic='-pic' 8238 lt_prog_compiler_static='-Bstatic' 8239 ;; 8240 8241 *) 8242 lt_prog_compiler_can_build_shared=no 8243 ;; 8244 esac 8245 fi 8246 8247case $host_os in 8248 # For platforms which do not support PIC, -DPIC is meaningless: 8249 *djgpp*) 8250 lt_prog_compiler_pic= 8251 ;; 8252 *) 8253 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8254 ;; 8255esac 8256 8257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8258$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8259if ${lt_cv_prog_compiler_pic+:} false; then : 8260 $as_echo_n "(cached) " >&6 8261else 8262 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8263fi 8264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8265$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8266lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8267 8268# 8269# Check to make sure the PIC flag actually works. 8270# 8271if test -n "$lt_prog_compiler_pic"; then 8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8273$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8274if ${lt_cv_prog_compiler_pic_works+:} false; then : 8275 $as_echo_n "(cached) " >&6 8276else 8277 lt_cv_prog_compiler_pic_works=no 8278 ac_outfile=conftest.$ac_objext 8279 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8280 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8281 # Insert the option either (1) after the last *FLAGS variable, or 8282 # (2) before a word containing "conftest.", or (3) at the end. 8283 # Note that $ac_compile itself does not contain backslashes and begins 8284 # with a dollar sign (not a hyphen), so the echo should work correctly. 8285 # The option is referenced via a variable to avoid confusing sed. 8286 lt_compile=`echo "$ac_compile" | $SED \ 8287 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8288 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8289 -e 's:$: $lt_compiler_flag:'` 8290 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8291 (eval "$lt_compile" 2>conftest.err) 8292 ac_status=$? 8293 cat conftest.err >&5 8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8295 if (exit $ac_status) && test -s "$ac_outfile"; then 8296 # The compiler can only warn and ignore the option if not recognized 8297 # So say no if there are warnings other than the usual output. 8298 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8299 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8300 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8301 lt_cv_prog_compiler_pic_works=yes 8302 fi 8303 fi 8304 $RM conftest* 8305 8306fi 8307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8308$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8309 8310if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8311 case $lt_prog_compiler_pic in 8312 "" | " "*) ;; 8313 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8314 esac 8315else 8316 lt_prog_compiler_pic= 8317 lt_prog_compiler_can_build_shared=no 8318fi 8319 8320fi 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332# 8333# Check to make sure the static flag actually works. 8334# 8335wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8337$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8338if ${lt_cv_prog_compiler_static_works+:} false; then : 8339 $as_echo_n "(cached) " >&6 8340else 8341 lt_cv_prog_compiler_static_works=no 8342 save_LDFLAGS="$LDFLAGS" 8343 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8344 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8345 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8346 # The linker can only warn and ignore the option if not recognized 8347 # So say no if there are warnings 8348 if test -s conftest.err; then 8349 # Append any errors to the config.log. 8350 cat conftest.err 1>&5 8351 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8352 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8353 if diff conftest.exp conftest.er2 >/dev/null; then 8354 lt_cv_prog_compiler_static_works=yes 8355 fi 8356 else 8357 lt_cv_prog_compiler_static_works=yes 8358 fi 8359 fi 8360 $RM -r conftest* 8361 LDFLAGS="$save_LDFLAGS" 8362 8363fi 8364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8365$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8366 8367if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8368 : 8369else 8370 lt_prog_compiler_static= 8371fi 8372 8373 8374 8375 8376 8377 8378 8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8380$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8381if ${lt_cv_prog_compiler_c_o+:} false; then : 8382 $as_echo_n "(cached) " >&6 8383else 8384 lt_cv_prog_compiler_c_o=no 8385 $RM -r conftest 2>/dev/null 8386 mkdir conftest 8387 cd conftest 8388 mkdir out 8389 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8390 8391 lt_compiler_flag="-o out/conftest2.$ac_objext" 8392 # Insert the option either (1) after the last *FLAGS variable, or 8393 # (2) before a word containing "conftest.", or (3) at the end. 8394 # Note that $ac_compile itself does not contain backslashes and begins 8395 # with a dollar sign (not a hyphen), so the echo should work correctly. 8396 lt_compile=`echo "$ac_compile" | $SED \ 8397 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8398 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8399 -e 's:$: $lt_compiler_flag:'` 8400 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8401 (eval "$lt_compile" 2>out/conftest.err) 8402 ac_status=$? 8403 cat out/conftest.err >&5 8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8405 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8406 then 8407 # The compiler can only warn and ignore the option if not recognized 8408 # So say no if there are warnings 8409 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8410 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8411 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8412 lt_cv_prog_compiler_c_o=yes 8413 fi 8414 fi 8415 chmod u+w . 2>&5 8416 $RM conftest* 8417 # SGI C++ compiler will create directory out/ii_files/ for 8418 # template instantiation 8419 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8420 $RM out/* && rmdir out 8421 cd .. 8422 $RM -r conftest 8423 $RM conftest* 8424 8425fi 8426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8427$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8428 8429 8430 8431 8432 8433 8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8435$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8436if ${lt_cv_prog_compiler_c_o+:} false; then : 8437 $as_echo_n "(cached) " >&6 8438else 8439 lt_cv_prog_compiler_c_o=no 8440 $RM -r conftest 2>/dev/null 8441 mkdir conftest 8442 cd conftest 8443 mkdir out 8444 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8445 8446 lt_compiler_flag="-o out/conftest2.$ac_objext" 8447 # Insert the option either (1) after the last *FLAGS variable, or 8448 # (2) before a word containing "conftest.", or (3) at the end. 8449 # Note that $ac_compile itself does not contain backslashes and begins 8450 # with a dollar sign (not a hyphen), so the echo should work correctly. 8451 lt_compile=`echo "$ac_compile" | $SED \ 8452 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8453 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8454 -e 's:$: $lt_compiler_flag:'` 8455 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8456 (eval "$lt_compile" 2>out/conftest.err) 8457 ac_status=$? 8458 cat out/conftest.err >&5 8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8460 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8461 then 8462 # The compiler can only warn and ignore the option if not recognized 8463 # So say no if there are warnings 8464 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8465 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8466 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8467 lt_cv_prog_compiler_c_o=yes 8468 fi 8469 fi 8470 chmod u+w . 2>&5 8471 $RM conftest* 8472 # SGI C++ compiler will create directory out/ii_files/ for 8473 # template instantiation 8474 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8475 $RM out/* && rmdir out 8476 cd .. 8477 $RM -r conftest 8478 $RM conftest* 8479 8480fi 8481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8482$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8483 8484 8485 8486 8487hard_links="nottested" 8488if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8489 # do not overwrite the value of need_locks provided by the user 8490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8491$as_echo_n "checking if we can lock with hard links... " >&6; } 8492 hard_links=yes 8493 $RM conftest* 8494 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8495 touch conftest.a 8496 ln conftest.a conftest.b 2>&5 || hard_links=no 8497 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8499$as_echo "$hard_links" >&6; } 8500 if test "$hard_links" = no; then 8501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8502$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8503 need_locks=warn 8504 fi 8505else 8506 need_locks=no 8507fi 8508 8509 8510 8511 8512 8513 8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8515$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8516 8517 runpath_var= 8518 allow_undefined_flag= 8519 always_export_symbols=no 8520 archive_cmds= 8521 archive_expsym_cmds= 8522 compiler_needs_object=no 8523 enable_shared_with_static_runtimes=no 8524 export_dynamic_flag_spec= 8525 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8526 hardcode_automatic=no 8527 hardcode_direct=no 8528 hardcode_direct_absolute=no 8529 hardcode_libdir_flag_spec= 8530 hardcode_libdir_flag_spec_ld= 8531 hardcode_libdir_separator= 8532 hardcode_minus_L=no 8533 hardcode_shlibpath_var=unsupported 8534 inherit_rpath=no 8535 link_all_deplibs=unknown 8536 module_cmds= 8537 module_expsym_cmds= 8538 old_archive_from_new_cmds= 8539 old_archive_from_expsyms_cmds= 8540 thread_safe_flag_spec= 8541 whole_archive_flag_spec= 8542 # include_expsyms should be a list of space-separated symbols to be *always* 8543 # included in the symbol list 8544 include_expsyms= 8545 # exclude_expsyms can be an extended regexp of symbols to exclude 8546 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8547 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8548 # as well as any symbol that contains `d'. 8549 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8550 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8551 # platforms (ab)use it in PIC code, but their linkers get confused if 8552 # the symbol is explicitly referenced. Since portable code cannot 8553 # rely on this symbol name, it's probably fine to never include it in 8554 # preloaded symbol tables. 8555 # Exclude shared library initialization/finalization symbols. 8556 extract_expsyms_cmds= 8557 8558 case $host_os in 8559 cygwin* | mingw* | pw32* | cegcc*) 8560 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8561 # When not using gcc, we currently assume that we are using 8562 # Microsoft Visual C++. 8563 if test "$GCC" != yes; then 8564 with_gnu_ld=no 8565 fi 8566 ;; 8567 interix*) 8568 # we just hope/assume this is gcc and not c89 (= MSVC++) 8569 with_gnu_ld=yes 8570 ;; 8571 openbsd*) 8572 with_gnu_ld=no 8573 ;; 8574 esac 8575 8576 ld_shlibs=yes 8577 8578 # On some targets, GNU ld is compatible enough with the native linker 8579 # that we're better off using the native interface for both. 8580 lt_use_gnu_ld_interface=no 8581 if test "$with_gnu_ld" = yes; then 8582 case $host_os in 8583 aix*) 8584 # The AIX port of GNU ld has always aspired to compatibility 8585 # with the native linker. However, as the warning in the GNU ld 8586 # block says, versions before 2.19.5* couldn't really create working 8587 # shared libraries, regardless of the interface used. 8588 case `$LD -v 2>&1` in 8589 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8590 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8591 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8592 *) 8593 lt_use_gnu_ld_interface=yes 8594 ;; 8595 esac 8596 ;; 8597 *) 8598 lt_use_gnu_ld_interface=yes 8599 ;; 8600 esac 8601 fi 8602 8603 if test "$lt_use_gnu_ld_interface" = yes; then 8604 # If archive_cmds runs LD, not CC, wlarc should be empty 8605 wlarc='${wl}' 8606 8607 # Set some defaults for GNU ld with shared library support. These 8608 # are reset later if shared libraries are not supported. Putting them 8609 # here allows them to be overridden if necessary. 8610 runpath_var=LD_RUN_PATH 8611 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8612 export_dynamic_flag_spec='${wl}--export-dynamic' 8613 # ancient GNU ld didn't support --whole-archive et. al. 8614 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8615 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8616 else 8617 whole_archive_flag_spec= 8618 fi 8619 supports_anon_versioning=no 8620 case `$LD -v 2>&1` in 8621 *GNU\ gold*) supports_anon_versioning=yes ;; 8622 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8623 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8624 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8625 *\ 2.11.*) ;; # other 2.11 versions 8626 *) supports_anon_versioning=yes ;; 8627 esac 8628 8629 # See if GNU ld supports shared libraries. 8630 case $host_os in 8631 aix[3-9]*) 8632 # On AIX/PPC, the GNU linker is very broken 8633 if test "$host_cpu" != ia64; then 8634 ld_shlibs=no 8635 cat <<_LT_EOF 1>&2 8636 8637*** Warning: the GNU linker, at least up to release 2.19, is reported 8638*** to be unable to reliably create shared libraries on AIX. 8639*** Therefore, libtool is disabling shared libraries support. If you 8640*** really care for shared libraries, you may want to install binutils 8641*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8642*** You will then need to restart the configuration process. 8643 8644_LT_EOF 8645 fi 8646 ;; 8647 8648 amigaos*) 8649 case $host_cpu in 8650 powerpc) 8651 # see comment about AmigaOS4 .so support 8652 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8653 archive_expsym_cmds='' 8654 ;; 8655 m68k) 8656 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)' 8657 hardcode_libdir_flag_spec='-L$libdir' 8658 hardcode_minus_L=yes 8659 ;; 8660 esac 8661 ;; 8662 8663 beos*) 8664 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8665 allow_undefined_flag=unsupported 8666 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8667 # support --undefined. This deserves some investigation. FIXME 8668 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8669 else 8670 ld_shlibs=no 8671 fi 8672 ;; 8673 8674 cygwin* | mingw* | pw32* | cegcc*) 8675 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8676 # as there is no search path for DLLs. 8677 hardcode_libdir_flag_spec='-L$libdir' 8678 export_dynamic_flag_spec='${wl}--export-all-symbols' 8679 allow_undefined_flag=unsupported 8680 always_export_symbols=no 8681 enable_shared_with_static_runtimes=yes 8682 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 8683 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8684 8685 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8686 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8687 # If the export-symbols file already is a .def file (1st line 8688 # is EXPORTS), use it as is; otherwise, prepend... 8689 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8690 cp $export_symbols $output_objdir/$soname.def; 8691 else 8692 echo EXPORTS > $output_objdir/$soname.def; 8693 cat $export_symbols >> $output_objdir/$soname.def; 8694 fi~ 8695 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8696 else 8697 ld_shlibs=no 8698 fi 8699 ;; 8700 8701 haiku*) 8702 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8703 link_all_deplibs=yes 8704 ;; 8705 8706 interix[3-9]*) 8707 hardcode_direct=no 8708 hardcode_shlibpath_var=no 8709 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8710 export_dynamic_flag_spec='${wl}-E' 8711 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8712 # Instead, shared libraries are loaded at an image base (0x10000000 by 8713 # default) and relocated if they conflict, which is a slow very memory 8714 # consuming and fragmenting process. To avoid this, we pick a random, 8715 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8716 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8717 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8718 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' 8719 ;; 8720 8721 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8722 tmp_diet=no 8723 if test "$host_os" = linux-dietlibc; then 8724 case $cc_basename in 8725 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8726 esac 8727 fi 8728 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8729 && test "$tmp_diet" = no 8730 then 8731 tmp_addflag=' $pic_flag' 8732 tmp_sharedflag='-shared' 8733 case $cc_basename,$host_cpu in 8734 pgcc*) # Portland Group C compiler 8735 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 8736 tmp_addflag=' $pic_flag' 8737 ;; 8738 pgf77* | pgf90* | pgf95* | pgfortran*) 8739 # Portland Group f77 and f90 compilers 8740 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 8741 tmp_addflag=' $pic_flag -Mnomain' ;; 8742 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8743 tmp_addflag=' -i_dynamic' ;; 8744 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8745 tmp_addflag=' -i_dynamic -nofor_main' ;; 8746 ifc* | ifort*) # Intel Fortran compiler 8747 tmp_addflag=' -nofor_main' ;; 8748 lf95*) # Lahey Fortran 8.1 8749 whole_archive_flag_spec= 8750 tmp_sharedflag='--shared' ;; 8751 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8752 tmp_sharedflag='-qmkshrobj' 8753 tmp_addflag= ;; 8754 nvcc*) # Cuda Compiler Driver 2.2 8755 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 8756 compiler_needs_object=yes 8757 ;; 8758 esac 8759 case `$CC -V 2>&1 | sed 5q` in 8760 *Sun\ C*) # Sun C 5.9 8761 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 8762 compiler_needs_object=yes 8763 tmp_sharedflag='-G' ;; 8764 *Sun\ F*) # Sun Fortran 8.3 8765 tmp_sharedflag='-G' ;; 8766 esac 8767 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8768 8769 if test "x$supports_anon_versioning" = xyes; then 8770 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8771 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8772 echo "local: *; };" >> $output_objdir/$libname.ver~ 8773 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8774 fi 8775 8776 case $cc_basename in 8777 xlf* | bgf* | bgxlf* | mpixlf*) 8778 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8779 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8780 hardcode_libdir_flag_spec= 8781 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8782 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8783 if test "x$supports_anon_versioning" = xyes; then 8784 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8785 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8786 echo "local: *; };" >> $output_objdir/$libname.ver~ 8787 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8788 fi 8789 ;; 8790 esac 8791 else 8792 ld_shlibs=no 8793 fi 8794 ;; 8795 8796 netbsd*) 8797 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8798 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8799 wlarc= 8800 else 8801 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8802 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8803 fi 8804 ;; 8805 8806 solaris*) 8807 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8808 ld_shlibs=no 8809 cat <<_LT_EOF 1>&2 8810 8811*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8812*** create shared libraries on Solaris systems. Therefore, libtool 8813*** is disabling shared libraries support. We urge you to upgrade GNU 8814*** binutils to release 2.9.1 or newer. Another option is to modify 8815*** your PATH or compiler configuration so that the native linker is 8816*** used, and then restart. 8817 8818_LT_EOF 8819 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8820 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8821 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8822 else 8823 ld_shlibs=no 8824 fi 8825 ;; 8826 8827 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8828 case `$LD -v 2>&1` in 8829 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8830 ld_shlibs=no 8831 cat <<_LT_EOF 1>&2 8832 8833*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8834*** reliably create shared libraries on SCO systems. Therefore, libtool 8835*** is disabling shared libraries support. We urge you to upgrade GNU 8836*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8837*** your PATH or compiler configuration so that the native linker is 8838*** used, and then restart. 8839 8840_LT_EOF 8841 ;; 8842 *) 8843 # For security reasons, it is highly recommended that you always 8844 # use absolute paths for naming shared libraries, and exclude the 8845 # DT_RUNPATH tag from executables and libraries. But doing so 8846 # requires that you compile everything twice, which is a pain. 8847 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8848 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8849 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8850 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8851 else 8852 ld_shlibs=no 8853 fi 8854 ;; 8855 esac 8856 ;; 8857 8858 sunos4*) 8859 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8860 wlarc= 8861 hardcode_direct=yes 8862 hardcode_shlibpath_var=no 8863 ;; 8864 8865 *) 8866 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8867 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8868 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8869 else 8870 ld_shlibs=no 8871 fi 8872 ;; 8873 esac 8874 8875 if test "$ld_shlibs" = no; then 8876 runpath_var= 8877 hardcode_libdir_flag_spec= 8878 export_dynamic_flag_spec= 8879 whole_archive_flag_spec= 8880 fi 8881 else 8882 # PORTME fill in a description of your system's linker (not GNU ld) 8883 case $host_os in 8884 aix3*) 8885 allow_undefined_flag=unsupported 8886 always_export_symbols=yes 8887 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' 8888 # Note: this linker hardcodes the directories in LIBPATH if there 8889 # are no directories specified by -L. 8890 hardcode_minus_L=yes 8891 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8892 # Neither direct hardcoding nor static linking is supported with a 8893 # broken collect2. 8894 hardcode_direct=unsupported 8895 fi 8896 ;; 8897 8898 aix[4-9]*) 8899 if test "$host_cpu" = ia64; then 8900 # On IA64, the linker does run time linking by default, so we don't 8901 # have to do anything special. 8902 aix_use_runtimelinking=no 8903 exp_sym_flag='-Bexport' 8904 no_entry_flag="" 8905 else 8906 # If we're using GNU nm, then we don't want the "-C" option. 8907 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8908 # Also, AIX nm treats weak defined symbols like other global 8909 # defined symbols, whereas GNU nm marks them as "W". 8910 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8911 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 8912 else 8913 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' 8914 fi 8915 aix_use_runtimelinking=no 8916 8917 # Test if we are trying to use run time linking or normal 8918 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8919 # need to do runtime linking. 8920 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8921 for ld_flag in $LDFLAGS; do 8922 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8923 aix_use_runtimelinking=yes 8924 break 8925 fi 8926 done 8927 ;; 8928 esac 8929 8930 exp_sym_flag='-bexport' 8931 no_entry_flag='-bnoentry' 8932 fi 8933 8934 # When large executables or shared objects are built, AIX ld can 8935 # have problems creating the table of contents. If linking a library 8936 # or program results in "error TOC overflow" add -mminimal-toc to 8937 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8938 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8939 8940 archive_cmds='' 8941 hardcode_direct=yes 8942 hardcode_direct_absolute=yes 8943 hardcode_libdir_separator=':' 8944 link_all_deplibs=yes 8945 file_list_spec='${wl}-f,' 8946 8947 if test "$GCC" = yes; then 8948 case $host_os in aix4.[012]|aix4.[012].*) 8949 # We only want to do this on AIX 4.2 and lower, the check 8950 # below for broken collect2 doesn't work under 4.3+ 8951 collect2name=`${CC} -print-prog-name=collect2` 8952 if test -f "$collect2name" && 8953 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8954 then 8955 # We have reworked collect2 8956 : 8957 else 8958 # We have old collect2 8959 hardcode_direct=unsupported 8960 # It fails to find uninstalled libraries when the uninstalled 8961 # path is not listed in the libpath. Setting hardcode_minus_L 8962 # to unsupported forces relinking 8963 hardcode_minus_L=yes 8964 hardcode_libdir_flag_spec='-L$libdir' 8965 hardcode_libdir_separator= 8966 fi 8967 ;; 8968 esac 8969 shared_flag='-shared' 8970 if test "$aix_use_runtimelinking" = yes; then 8971 shared_flag="$shared_flag "'${wl}-G' 8972 fi 8973 else 8974 # not using gcc 8975 if test "$host_cpu" = ia64; then 8976 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8977 # chokes on -Wl,-G. The following line is correct: 8978 shared_flag='-G' 8979 else 8980 if test "$aix_use_runtimelinking" = yes; then 8981 shared_flag='${wl}-G' 8982 else 8983 shared_flag='${wl}-bM:SRE' 8984 fi 8985 fi 8986 fi 8987 8988 export_dynamic_flag_spec='${wl}-bexpall' 8989 # It seems that -bexpall does not export symbols beginning with 8990 # underscore (_), so it is better to generate a list of symbols to export. 8991 always_export_symbols=yes 8992 if test "$aix_use_runtimelinking" = yes; then 8993 # Warning - without using the other runtime loading flags (-brtl), 8994 # -berok will link without error, but may produce a broken library. 8995 allow_undefined_flag='-berok' 8996 # Determine the default libpath from the value encoded in an 8997 # empty executable. 8998 if test "${lt_cv_aix_libpath+set}" = set; then 8999 aix_libpath=$lt_cv_aix_libpath 9000else 9001 if ${lt_cv_aix_libpath_+:} false; then : 9002 $as_echo_n "(cached) " >&6 9003else 9004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9005/* end confdefs.h. */ 9006 9007int 9008main () 9009{ 9010 9011 ; 9012 return 0; 9013} 9014_ACEOF 9015if ac_fn_c_try_link "$LINENO"; then : 9016 9017 lt_aix_libpath_sed=' 9018 /Import File Strings/,/^$/ { 9019 /^0/ { 9020 s/^0 *\([^ ]*\) *$/\1/ 9021 p 9022 } 9023 }' 9024 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9025 # Check for a 64-bit object if we didn't find anything. 9026 if test -z "$lt_cv_aix_libpath_"; then 9027 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9028 fi 9029fi 9030rm -f core conftest.err conftest.$ac_objext \ 9031 conftest$ac_exeext conftest.$ac_ext 9032 if test -z "$lt_cv_aix_libpath_"; then 9033 lt_cv_aix_libpath_="/usr/lib:/lib" 9034 fi 9035 9036fi 9037 9038 aix_libpath=$lt_cv_aix_libpath_ 9039fi 9040 9041 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9042 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9043 else 9044 if test "$host_cpu" = ia64; then 9045 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9046 allow_undefined_flag="-z nodefs" 9047 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" 9048 else 9049 # Determine the default libpath from the value encoded in an 9050 # empty executable. 9051 if test "${lt_cv_aix_libpath+set}" = set; then 9052 aix_libpath=$lt_cv_aix_libpath 9053else 9054 if ${lt_cv_aix_libpath_+:} false; then : 9055 $as_echo_n "(cached) " >&6 9056else 9057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9058/* end confdefs.h. */ 9059 9060int 9061main () 9062{ 9063 9064 ; 9065 return 0; 9066} 9067_ACEOF 9068if ac_fn_c_try_link "$LINENO"; then : 9069 9070 lt_aix_libpath_sed=' 9071 /Import File Strings/,/^$/ { 9072 /^0/ { 9073 s/^0 *\([^ ]*\) *$/\1/ 9074 p 9075 } 9076 }' 9077 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9078 # Check for a 64-bit object if we didn't find anything. 9079 if test -z "$lt_cv_aix_libpath_"; then 9080 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9081 fi 9082fi 9083rm -f core conftest.err conftest.$ac_objext \ 9084 conftest$ac_exeext conftest.$ac_ext 9085 if test -z "$lt_cv_aix_libpath_"; then 9086 lt_cv_aix_libpath_="/usr/lib:/lib" 9087 fi 9088 9089fi 9090 9091 aix_libpath=$lt_cv_aix_libpath_ 9092fi 9093 9094 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9095 # Warning - without using the other run time loading flags, 9096 # -berok will link without error, but may produce a broken library. 9097 no_undefined_flag=' ${wl}-bernotok' 9098 allow_undefined_flag=' ${wl}-berok' 9099 if test "$with_gnu_ld" = yes; then 9100 # We only use this code for GNU lds that support --whole-archive. 9101 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9102 else 9103 # Exported symbols can be pulled into shared objects from archives 9104 whole_archive_flag_spec='$convenience' 9105 fi 9106 archive_cmds_need_lc=yes 9107 # This is similar to how AIX traditionally builds its shared libraries. 9108 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' 9109 fi 9110 fi 9111 ;; 9112 9113 amigaos*) 9114 case $host_cpu in 9115 powerpc) 9116 # see comment about AmigaOS4 .so support 9117 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9118 archive_expsym_cmds='' 9119 ;; 9120 m68k) 9121 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)' 9122 hardcode_libdir_flag_spec='-L$libdir' 9123 hardcode_minus_L=yes 9124 ;; 9125 esac 9126 ;; 9127 9128 bsdi[45]*) 9129 export_dynamic_flag_spec=-rdynamic 9130 ;; 9131 9132 cygwin* | mingw* | pw32* | cegcc*) 9133 # When not using gcc, we currently assume that we are using 9134 # Microsoft Visual C++. 9135 # hardcode_libdir_flag_spec is actually meaningless, as there is 9136 # no search path for DLLs. 9137 case $cc_basename in 9138 cl*) 9139 # Native MSVC 9140 hardcode_libdir_flag_spec=' ' 9141 allow_undefined_flag=unsupported 9142 always_export_symbols=yes 9143 file_list_spec='@' 9144 # Tell ltmain to make .lib files, not .a files. 9145 libext=lib 9146 # Tell ltmain to make .dll files, not .so files. 9147 shrext_cmds=".dll" 9148 # FIXME: Setting linknames here is a bad hack. 9149 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9150 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9151 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9152 else 9153 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9154 fi~ 9155 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9156 linknames=' 9157 # The linker will not automatically build a static lib if we build a DLL. 9158 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9159 enable_shared_with_static_runtimes=yes 9160 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9161 # Don't use ranlib 9162 old_postinstall_cmds='chmod 644 $oldlib' 9163 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9164 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9165 case $lt_outputfile in 9166 *.exe|*.EXE) ;; 9167 *) 9168 lt_outputfile="$lt_outputfile.exe" 9169 lt_tool_outputfile="$lt_tool_outputfile.exe" 9170 ;; 9171 esac~ 9172 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9173 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9174 $RM "$lt_outputfile.manifest"; 9175 fi' 9176 ;; 9177 *) 9178 # Assume MSVC wrapper 9179 hardcode_libdir_flag_spec=' ' 9180 allow_undefined_flag=unsupported 9181 # Tell ltmain to make .lib files, not .a files. 9182 libext=lib 9183 # Tell ltmain to make .dll files, not .so files. 9184 shrext_cmds=".dll" 9185 # FIXME: Setting linknames here is a bad hack. 9186 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9187 # The linker will automatically build a .lib file if we build a DLL. 9188 old_archive_from_new_cmds='true' 9189 # FIXME: Should let the user specify the lib program. 9190 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9191 enable_shared_with_static_runtimes=yes 9192 ;; 9193 esac 9194 ;; 9195 9196 darwin* | rhapsody*) 9197 9198 9199 archive_cmds_need_lc=no 9200 hardcode_direct=no 9201 hardcode_automatic=yes 9202 hardcode_shlibpath_var=unsupported 9203 if test "$lt_cv_ld_force_load" = "yes"; then 9204 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 9205 else 9206 whole_archive_flag_spec='' 9207 fi 9208 link_all_deplibs=yes 9209 allow_undefined_flag="$_lt_dar_allow_undefined" 9210 case $cc_basename in 9211 ifort*) _lt_dar_can_shared=yes ;; 9212 *) _lt_dar_can_shared=$GCC ;; 9213 esac 9214 if test "$_lt_dar_can_shared" = "yes"; then 9215 output_verbose_link_cmd=func_echo_all 9216 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9217 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9218 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}" 9219 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}" 9220 9221 else 9222 ld_shlibs=no 9223 fi 9224 9225 ;; 9226 9227 dgux*) 9228 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9229 hardcode_libdir_flag_spec='-L$libdir' 9230 hardcode_shlibpath_var=no 9231 ;; 9232 9233 freebsd1*) 9234 ld_shlibs=no 9235 ;; 9236 9237 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9238 # support. Future versions do this automatically, but an explicit c++rt0.o 9239 # does not break anything, and helps significantly (at the cost of a little 9240 # extra space). 9241 freebsd2.2*) 9242 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9243 hardcode_libdir_flag_spec='-R$libdir' 9244 hardcode_direct=yes 9245 hardcode_shlibpath_var=no 9246 ;; 9247 9248 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9249 freebsd2*) 9250 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9251 hardcode_direct=yes 9252 hardcode_minus_L=yes 9253 hardcode_shlibpath_var=no 9254 ;; 9255 9256 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9257 freebsd* | dragonfly*) 9258 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9259 hardcode_libdir_flag_spec='-R$libdir' 9260 hardcode_direct=yes 9261 hardcode_shlibpath_var=no 9262 ;; 9263 9264 hpux9*) 9265 if test "$GCC" = yes; then 9266 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9267 else 9268 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' 9269 fi 9270 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9271 hardcode_libdir_separator=: 9272 hardcode_direct=yes 9273 9274 # hardcode_minus_L: Not really in the search PATH, 9275 # but as the default location of the library. 9276 hardcode_minus_L=yes 9277 export_dynamic_flag_spec='${wl}-E' 9278 ;; 9279 9280 hpux10*) 9281 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9282 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9283 else 9284 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9285 fi 9286 if test "$with_gnu_ld" = no; then 9287 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9288 hardcode_libdir_flag_spec_ld='+b $libdir' 9289 hardcode_libdir_separator=: 9290 hardcode_direct=yes 9291 hardcode_direct_absolute=yes 9292 export_dynamic_flag_spec='${wl}-E' 9293 # hardcode_minus_L: Not really in the search PATH, 9294 # but as the default location of the library. 9295 hardcode_minus_L=yes 9296 fi 9297 ;; 9298 9299 hpux11*) 9300 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9301 case $host_cpu in 9302 hppa*64*) 9303 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9304 ;; 9305 ia64*) 9306 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9307 ;; 9308 *) 9309 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9310 ;; 9311 esac 9312 else 9313 case $host_cpu in 9314 hppa*64*) 9315 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9316 ;; 9317 ia64*) 9318 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9319 ;; 9320 *) 9321 9322 # Older versions of the 11.00 compiler do not understand -b yet 9323 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9325$as_echo_n "checking if $CC understands -b... " >&6; } 9326if ${lt_cv_prog_compiler__b+:} false; then : 9327 $as_echo_n "(cached) " >&6 9328else 9329 lt_cv_prog_compiler__b=no 9330 save_LDFLAGS="$LDFLAGS" 9331 LDFLAGS="$LDFLAGS -b" 9332 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9333 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9334 # The linker can only warn and ignore the option if not recognized 9335 # So say no if there are warnings 9336 if test -s conftest.err; then 9337 # Append any errors to the config.log. 9338 cat conftest.err 1>&5 9339 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9340 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9341 if diff conftest.exp conftest.er2 >/dev/null; then 9342 lt_cv_prog_compiler__b=yes 9343 fi 9344 else 9345 lt_cv_prog_compiler__b=yes 9346 fi 9347 fi 9348 $RM -r conftest* 9349 LDFLAGS="$save_LDFLAGS" 9350 9351fi 9352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9353$as_echo "$lt_cv_prog_compiler__b" >&6; } 9354 9355if test x"$lt_cv_prog_compiler__b" = xyes; then 9356 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9357else 9358 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9359fi 9360 9361 ;; 9362 esac 9363 fi 9364 if test "$with_gnu_ld" = no; then 9365 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9366 hardcode_libdir_separator=: 9367 9368 case $host_cpu in 9369 hppa*64*|ia64*) 9370 hardcode_direct=no 9371 hardcode_shlibpath_var=no 9372 ;; 9373 *) 9374 hardcode_direct=yes 9375 hardcode_direct_absolute=yes 9376 export_dynamic_flag_spec='${wl}-E' 9377 9378 # hardcode_minus_L: Not really in the search PATH, 9379 # but as the default location of the library. 9380 hardcode_minus_L=yes 9381 ;; 9382 esac 9383 fi 9384 ;; 9385 9386 irix5* | irix6* | nonstopux*) 9387 if test "$GCC" = yes; then 9388 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9389 # Try to use the -exported_symbol ld option, if it does not 9390 # work, assume that -exports_file does not work either and 9391 # implicitly export all symbols. 9392 # This should be the same for all languages, so no per-tag cache variable. 9393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9394$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9395if ${lt_cv_irix_exported_symbol+:} false; then : 9396 $as_echo_n "(cached) " >&6 9397else 9398 save_LDFLAGS="$LDFLAGS" 9399 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9401/* end confdefs.h. */ 9402int foo (void) { return 0; } 9403_ACEOF 9404if ac_fn_c_try_link "$LINENO"; then : 9405 lt_cv_irix_exported_symbol=yes 9406else 9407 lt_cv_irix_exported_symbol=no 9408fi 9409rm -f core conftest.err conftest.$ac_objext \ 9410 conftest$ac_exeext conftest.$ac_ext 9411 LDFLAGS="$save_LDFLAGS" 9412fi 9413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9414$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9415 if test "$lt_cv_irix_exported_symbol" = yes; then 9416 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 9417 fi 9418 else 9419 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 9420 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 9421 fi 9422 archive_cmds_need_lc='no' 9423 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9424 hardcode_libdir_separator=: 9425 inherit_rpath=yes 9426 link_all_deplibs=yes 9427 ;; 9428 9429 netbsd*) 9430 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9431 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9432 else 9433 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9434 fi 9435 hardcode_libdir_flag_spec='-R$libdir' 9436 hardcode_direct=yes 9437 hardcode_shlibpath_var=no 9438 ;; 9439 9440 newsos6) 9441 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9442 hardcode_direct=yes 9443 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9444 hardcode_libdir_separator=: 9445 hardcode_shlibpath_var=no 9446 ;; 9447 9448 *nto* | *qnx*) 9449 ;; 9450 9451 openbsd*) 9452 if test -f /usr/libexec/ld.so; then 9453 hardcode_direct=yes 9454 hardcode_shlibpath_var=no 9455 hardcode_direct_absolute=yes 9456 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9457 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9458 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9459 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9460 export_dynamic_flag_spec='${wl}-E' 9461 else 9462 case $host_os in 9463 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9464 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9465 hardcode_libdir_flag_spec='-R$libdir' 9466 ;; 9467 *) 9468 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9469 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9470 ;; 9471 esac 9472 fi 9473 else 9474 ld_shlibs=no 9475 fi 9476 ;; 9477 9478 os2*) 9479 hardcode_libdir_flag_spec='-L$libdir' 9480 hardcode_minus_L=yes 9481 allow_undefined_flag=unsupported 9482 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' 9483 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9484 ;; 9485 9486 osf3*) 9487 if test "$GCC" = yes; then 9488 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9489 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9490 else 9491 allow_undefined_flag=' -expect_unresolved \*' 9492 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 9493 fi 9494 archive_cmds_need_lc='no' 9495 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9496 hardcode_libdir_separator=: 9497 ;; 9498 9499 osf4* | osf5*) # as osf3* with the addition of -msym flag 9500 if test "$GCC" = yes; then 9501 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9502 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9503 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9504 else 9505 allow_undefined_flag=' -expect_unresolved \*' 9506 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 9507 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 9508 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 9509 9510 # Both c and cxx compiler support -rpath directly 9511 hardcode_libdir_flag_spec='-rpath $libdir' 9512 fi 9513 archive_cmds_need_lc='no' 9514 hardcode_libdir_separator=: 9515 ;; 9516 9517 solaris*) 9518 no_undefined_flag=' -z defs' 9519 if test "$GCC" = yes; then 9520 wlarc='${wl}' 9521 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9522 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9523 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9524 else 9525 case `$CC -V 2>&1` in 9526 *"Compilers 5.0"*) 9527 wlarc='' 9528 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9529 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9530 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9531 ;; 9532 *) 9533 wlarc='${wl}' 9534 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9535 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9536 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9537 ;; 9538 esac 9539 fi 9540 hardcode_libdir_flag_spec='-R$libdir' 9541 hardcode_shlibpath_var=no 9542 case $host_os in 9543 solaris2.[0-5] | solaris2.[0-5].*) ;; 9544 *) 9545 # The compiler driver will combine and reorder linker options, 9546 # but understands `-z linker_flag'. GCC discards it without `$wl', 9547 # but is careful enough not to reorder. 9548 # Supported since Solaris 2.6 (maybe 2.5.1?) 9549 if test "$GCC" = yes; then 9550 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9551 else 9552 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9553 fi 9554 ;; 9555 esac 9556 link_all_deplibs=yes 9557 ;; 9558 9559 sunos4*) 9560 if test "x$host_vendor" = xsequent; then 9561 # Use $CC to link under sequent, because it throws in some extra .o 9562 # files that make .init and .fini sections work. 9563 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9564 else 9565 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9566 fi 9567 hardcode_libdir_flag_spec='-L$libdir' 9568 hardcode_direct=yes 9569 hardcode_minus_L=yes 9570 hardcode_shlibpath_var=no 9571 ;; 9572 9573 sysv4) 9574 case $host_vendor in 9575 sni) 9576 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9577 hardcode_direct=yes # is this really true??? 9578 ;; 9579 siemens) 9580 ## LD is ld it makes a PLAMLIB 9581 ## CC just makes a GrossModule. 9582 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9583 reload_cmds='$CC -r -o $output$reload_objs' 9584 hardcode_direct=no 9585 ;; 9586 motorola) 9587 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9588 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9589 ;; 9590 esac 9591 runpath_var='LD_RUN_PATH' 9592 hardcode_shlibpath_var=no 9593 ;; 9594 9595 sysv4.3*) 9596 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9597 hardcode_shlibpath_var=no 9598 export_dynamic_flag_spec='-Bexport' 9599 ;; 9600 9601 sysv4*MP*) 9602 if test -d /usr/nec; then 9603 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9604 hardcode_shlibpath_var=no 9605 runpath_var=LD_RUN_PATH 9606 hardcode_runpath_var=yes 9607 ld_shlibs=yes 9608 fi 9609 ;; 9610 9611 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9612 no_undefined_flag='${wl}-z,text' 9613 archive_cmds_need_lc=no 9614 hardcode_shlibpath_var=no 9615 runpath_var='LD_RUN_PATH' 9616 9617 if test "$GCC" = yes; then 9618 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9619 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9620 else 9621 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9622 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9623 fi 9624 ;; 9625 9626 sysv5* | sco3.2v5* | sco5v6*) 9627 # Note: We can NOT use -z defs as we might desire, because we do not 9628 # link with -lc, and that would cause any symbols used from libc to 9629 # always be unresolved, which means just about no library would 9630 # ever link correctly. If we're not using GNU ld we use -z text 9631 # though, which does catch some bad symbols but isn't as heavy-handed 9632 # as -z defs. 9633 no_undefined_flag='${wl}-z,text' 9634 allow_undefined_flag='${wl}-z,nodefs' 9635 archive_cmds_need_lc=no 9636 hardcode_shlibpath_var=no 9637 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9638 hardcode_libdir_separator=':' 9639 link_all_deplibs=yes 9640 export_dynamic_flag_spec='${wl}-Bexport' 9641 runpath_var='LD_RUN_PATH' 9642 9643 if test "$GCC" = yes; then 9644 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9645 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9646 else 9647 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9648 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9649 fi 9650 ;; 9651 9652 uts4*) 9653 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9654 hardcode_libdir_flag_spec='-L$libdir' 9655 hardcode_shlibpath_var=no 9656 ;; 9657 9658 *) 9659 ld_shlibs=no 9660 ;; 9661 esac 9662 9663 if test x$host_vendor = xsni; then 9664 case $host in 9665 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9666 export_dynamic_flag_spec='${wl}-Blargedynsym' 9667 ;; 9668 esac 9669 fi 9670 fi 9671 9672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9673$as_echo "$ld_shlibs" >&6; } 9674test "$ld_shlibs" = no && can_build_shared=no 9675 9676with_gnu_ld=$with_gnu_ld 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692# 9693# Do we need to explicitly link libc? 9694# 9695case "x$archive_cmds_need_lc" in 9696x|xyes) 9697 # Assume -lc should be added 9698 archive_cmds_need_lc=yes 9699 9700 if test "$enable_shared" = yes && test "$GCC" = yes; then 9701 case $archive_cmds in 9702 *'~'*) 9703 # FIXME: we may have to deal with multi-command sequences. 9704 ;; 9705 '$CC '*) 9706 # Test whether the compiler implicitly links with -lc since on some 9707 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9708 # to ld, don't add -lc before -lgcc. 9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9710$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9711if ${lt_cv_archive_cmds_need_lc+:} false; then : 9712 $as_echo_n "(cached) " >&6 9713else 9714 $RM conftest* 9715 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9716 9717 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9718 (eval $ac_compile) 2>&5 9719 ac_status=$? 9720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9721 test $ac_status = 0; } 2>conftest.err; then 9722 soname=conftest 9723 lib=conftest 9724 libobjs=conftest.$ac_objext 9725 deplibs= 9726 wl=$lt_prog_compiler_wl 9727 pic_flag=$lt_prog_compiler_pic 9728 compiler_flags=-v 9729 linker_flags=-v 9730 verstring= 9731 output_objdir=. 9732 libname=conftest 9733 lt_save_allow_undefined_flag=$allow_undefined_flag 9734 allow_undefined_flag= 9735 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9736 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9737 ac_status=$? 9738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9739 test $ac_status = 0; } 9740 then 9741 lt_cv_archive_cmds_need_lc=no 9742 else 9743 lt_cv_archive_cmds_need_lc=yes 9744 fi 9745 allow_undefined_flag=$lt_save_allow_undefined_flag 9746 else 9747 cat conftest.err 1>&5 9748 fi 9749 $RM conftest* 9750 9751fi 9752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9753$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9754 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9755 ;; 9756 esac 9757 fi 9758 ;; 9759esac 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9918$as_echo_n "checking dynamic linker characteristics... " >&6; } 9919 9920if test "$GCC" = yes; then 9921 case $host_os in 9922 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9923 *) lt_awk_arg="/^libraries:/" ;; 9924 esac 9925 case $host_os in 9926 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9927 *) lt_sed_strip_eq="s,=/,/,g" ;; 9928 esac 9929 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9930 case $lt_search_path_spec in 9931 *\;*) 9932 # if the path contains ";" then we assume it to be the separator 9933 # otherwise default to the standard path separator (i.e. ":") - it is 9934 # assumed that no part of a normal pathname contains ";" but that should 9935 # okay in the real world where ";" in dirpaths is itself problematic. 9936 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9937 ;; 9938 *) 9939 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9940 ;; 9941 esac 9942 # Ok, now we have the path, separated by spaces, we can step through it 9943 # and add multilib dir if necessary. 9944 lt_tmp_lt_search_path_spec= 9945 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9946 for lt_sys_path in $lt_search_path_spec; do 9947 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9948 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9949 else 9950 test -d "$lt_sys_path" && \ 9951 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9952 fi 9953 done 9954 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9955BEGIN {RS=" "; FS="/|\n";} { 9956 lt_foo=""; 9957 lt_count=0; 9958 for (lt_i = NF; lt_i > 0; lt_i--) { 9959 if ($lt_i != "" && $lt_i != ".") { 9960 if ($lt_i == "..") { 9961 lt_count++; 9962 } else { 9963 if (lt_count == 0) { 9964 lt_foo="/" $lt_i lt_foo; 9965 } else { 9966 lt_count--; 9967 } 9968 } 9969 } 9970 } 9971 if (lt_foo != "") { lt_freq[lt_foo]++; } 9972 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9973}'` 9974 # AWK program above erroneously prepends '/' to C:/dos/paths 9975 # for these hosts. 9976 case $host_os in 9977 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 9978 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 9979 esac 9980 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 9981else 9982 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9983fi 9984library_names_spec= 9985libname_spec='lib$name' 9986soname_spec= 9987shrext_cmds=".so" 9988postinstall_cmds= 9989postuninstall_cmds= 9990finish_cmds= 9991finish_eval= 9992shlibpath_var= 9993shlibpath_overrides_runpath=unknown 9994version_type=none 9995dynamic_linker="$host_os ld.so" 9996sys_lib_dlsearch_path_spec="/lib /usr/lib" 9997need_lib_prefix=unknown 9998hardcode_into_libs=no 9999 10000# when you set need_version to no, make sure it does not cause -set_version 10001# flags to be left without arguments 10002need_version=unknown 10003 10004case $host_os in 10005aix3*) 10006 version_type=linux 10007 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10008 shlibpath_var=LIBPATH 10009 10010 # AIX 3 has no versioning support, so we append a major version to the name. 10011 soname_spec='${libname}${release}${shared_ext}$major' 10012 ;; 10013 10014aix[4-9]*) 10015 version_type=linux 10016 need_lib_prefix=no 10017 need_version=no 10018 hardcode_into_libs=yes 10019 if test "$host_cpu" = ia64; then 10020 # AIX 5 supports IA64 10021 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10022 shlibpath_var=LD_LIBRARY_PATH 10023 else 10024 # With GCC up to 2.95.x, collect2 would create an import file 10025 # for dependence libraries. The import file would start with 10026 # the line `#! .'. This would cause the generated library to 10027 # depend on `.', always an invalid library. This was fixed in 10028 # development snapshots of GCC prior to 3.0. 10029 case $host_os in 10030 aix4 | aix4.[01] | aix4.[01].*) 10031 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10032 echo ' yes ' 10033 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10034 : 10035 else 10036 can_build_shared=no 10037 fi 10038 ;; 10039 esac 10040 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10041 # soname into executable. Probably we can add versioning support to 10042 # collect2, so additional links can be useful in future. 10043 if test "$aix_use_runtimelinking" = yes; then 10044 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10045 # instead of lib<name>.a to let people know that these are not 10046 # typical AIX shared libraries. 10047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10048 else 10049 # We preserve .a as extension for shared libraries through AIX4.2 10050 # and later when we are not doing run time linking. 10051 library_names_spec='${libname}${release}.a $libname.a' 10052 soname_spec='${libname}${release}${shared_ext}$major' 10053 fi 10054 shlibpath_var=LIBPATH 10055 fi 10056 ;; 10057 10058amigaos*) 10059 case $host_cpu in 10060 powerpc) 10061 # Since July 2007 AmigaOS4 officially supports .so libraries. 10062 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10064 ;; 10065 m68k) 10066 library_names_spec='$libname.ixlibrary $libname.a' 10067 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10068 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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' 10069 ;; 10070 esac 10071 ;; 10072 10073beos*) 10074 library_names_spec='${libname}${shared_ext}' 10075 dynamic_linker="$host_os ld.so" 10076 shlibpath_var=LIBRARY_PATH 10077 ;; 10078 10079bsdi[45]*) 10080 version_type=linux 10081 need_version=no 10082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10083 soname_spec='${libname}${release}${shared_ext}$major' 10084 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10085 shlibpath_var=LD_LIBRARY_PATH 10086 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10087 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10088 # the default ld.so.conf also contains /usr/contrib/lib and 10089 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10090 # libtool to hard-code these into programs 10091 ;; 10092 10093cygwin* | mingw* | pw32* | cegcc*) 10094 version_type=windows 10095 shrext_cmds=".dll" 10096 need_version=no 10097 need_lib_prefix=no 10098 10099 case $GCC,$cc_basename in 10100 yes,*) 10101 # gcc 10102 library_names_spec='$libname.dll.a' 10103 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10104 postinstall_cmds='base_file=`basename \${file}`~ 10105 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10106 dldir=$destdir/`dirname \$dlpath`~ 10107 test -d \$dldir || mkdir -p \$dldir~ 10108 $install_prog $dir/$dlname \$dldir/$dlname~ 10109 chmod a+x \$dldir/$dlname~ 10110 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10111 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10112 fi' 10113 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10114 dlpath=$dir/\$dldll~ 10115 $RM \$dlpath' 10116 shlibpath_overrides_runpath=yes 10117 10118 case $host_os in 10119 cygwin*) 10120 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10121 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10122 10123 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10124 ;; 10125 mingw* | cegcc*) 10126 # MinGW DLLs use traditional 'lib' prefix 10127 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10128 ;; 10129 pw32*) 10130 # pw32 DLLs use 'pw' prefix rather than 'lib' 10131 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10132 ;; 10133 esac 10134 dynamic_linker='Win32 ld.exe' 10135 ;; 10136 10137 *,cl*) 10138 # Native MSVC 10139 libname_spec='$name' 10140 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10141 library_names_spec='${libname}.dll.lib' 10142 10143 case $build_os in 10144 mingw*) 10145 sys_lib_search_path_spec= 10146 lt_save_ifs=$IFS 10147 IFS=';' 10148 for lt_path in $LIB 10149 do 10150 IFS=$lt_save_ifs 10151 # Let DOS variable expansion print the short 8.3 style file name. 10152 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10153 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10154 done 10155 IFS=$lt_save_ifs 10156 # Convert to MSYS style. 10157 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10158 ;; 10159 cygwin*) 10160 # Convert to unix form, then to dos form, then back to unix form 10161 # but this time dos style (no spaces!) so that the unix form looks 10162 # like /cygdrive/c/PROGRA~1:/cygdr... 10163 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10164 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10165 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10166 ;; 10167 *) 10168 sys_lib_search_path_spec="$LIB" 10169 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10170 # It is most probably a Windows format PATH. 10171 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10172 else 10173 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10174 fi 10175 # FIXME: find the short name or the path components, as spaces are 10176 # common. (e.g. "Program Files" -> "PROGRA~1") 10177 ;; 10178 esac 10179 10180 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10181 postinstall_cmds='base_file=`basename \${file}`~ 10182 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10183 dldir=$destdir/`dirname \$dlpath`~ 10184 test -d \$dldir || mkdir -p \$dldir~ 10185 $install_prog $dir/$dlname \$dldir/$dlname' 10186 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10187 dlpath=$dir/\$dldll~ 10188 $RM \$dlpath' 10189 shlibpath_overrides_runpath=yes 10190 dynamic_linker='Win32 link.exe' 10191 ;; 10192 10193 *) 10194 # Assume MSVC wrapper 10195 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10196 dynamic_linker='Win32 ld.exe' 10197 ;; 10198 esac 10199 # FIXME: first we should search . and the directory the executable is in 10200 shlibpath_var=PATH 10201 ;; 10202 10203darwin* | rhapsody*) 10204 dynamic_linker="$host_os dyld" 10205 version_type=darwin 10206 need_lib_prefix=no 10207 need_version=no 10208 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10209 soname_spec='${libname}${release}${major}$shared_ext' 10210 shlibpath_overrides_runpath=yes 10211 shlibpath_var=DYLD_LIBRARY_PATH 10212 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10213 10214 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10215 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10216 ;; 10217 10218dgux*) 10219 version_type=linux 10220 need_lib_prefix=no 10221 need_version=no 10222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10223 soname_spec='${libname}${release}${shared_ext}$major' 10224 shlibpath_var=LD_LIBRARY_PATH 10225 ;; 10226 10227freebsd1*) 10228 dynamic_linker=no 10229 ;; 10230 10231freebsd* | dragonfly*) 10232 # DragonFly does not have aout. When/if they implement a new 10233 # versioning mechanism, adjust this. 10234 if test -x /usr/bin/objformat; then 10235 objformat=`/usr/bin/objformat` 10236 else 10237 case $host_os in 10238 freebsd[123]*) objformat=aout ;; 10239 *) objformat=elf ;; 10240 esac 10241 fi 10242 # Handle Gentoo/FreeBSD as it was Linux 10243 case $host_vendor in 10244 gentoo) 10245 version_type=linux ;; 10246 *) 10247 version_type=freebsd-$objformat ;; 10248 esac 10249 10250 case $version_type in 10251 freebsd-elf*) 10252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10253 need_version=no 10254 need_lib_prefix=no 10255 ;; 10256 freebsd-*) 10257 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10258 need_version=yes 10259 ;; 10260 linux) 10261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10262 soname_spec='${libname}${release}${shared_ext}$major' 10263 need_lib_prefix=no 10264 need_version=no 10265 ;; 10266 esac 10267 shlibpath_var=LD_LIBRARY_PATH 10268 case $host_os in 10269 freebsd2*) 10270 shlibpath_overrides_runpath=yes 10271 ;; 10272 freebsd3.[01]* | freebsdelf3.[01]*) 10273 shlibpath_overrides_runpath=yes 10274 hardcode_into_libs=yes 10275 ;; 10276 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10277 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10278 shlibpath_overrides_runpath=no 10279 hardcode_into_libs=yes 10280 ;; 10281 *) # from 4.6 on, and DragonFly 10282 shlibpath_overrides_runpath=yes 10283 hardcode_into_libs=yes 10284 ;; 10285 esac 10286 ;; 10287 10288gnu*) 10289 version_type=linux 10290 need_lib_prefix=no 10291 need_version=no 10292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10293 soname_spec='${libname}${release}${shared_ext}$major' 10294 shlibpath_var=LD_LIBRARY_PATH 10295 hardcode_into_libs=yes 10296 ;; 10297 10298haiku*) 10299 version_type=linux 10300 need_lib_prefix=no 10301 need_version=no 10302 dynamic_linker="$host_os runtime_loader" 10303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10304 soname_spec='${libname}${release}${shared_ext}$major' 10305 shlibpath_var=LIBRARY_PATH 10306 shlibpath_overrides_runpath=yes 10307 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10308 hardcode_into_libs=yes 10309 ;; 10310 10311hpux9* | hpux10* | hpux11*) 10312 # Give a soname corresponding to the major version so that dld.sl refuses to 10313 # link against other versions. 10314 version_type=sunos 10315 need_lib_prefix=no 10316 need_version=no 10317 case $host_cpu in 10318 ia64*) 10319 shrext_cmds='.so' 10320 hardcode_into_libs=yes 10321 dynamic_linker="$host_os dld.so" 10322 shlibpath_var=LD_LIBRARY_PATH 10323 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10325 soname_spec='${libname}${release}${shared_ext}$major' 10326 if test "X$HPUX_IA64_MODE" = X32; then 10327 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10328 else 10329 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10330 fi 10331 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10332 ;; 10333 hppa*64*) 10334 shrext_cmds='.sl' 10335 hardcode_into_libs=yes 10336 dynamic_linker="$host_os dld.sl" 10337 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10338 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10340 soname_spec='${libname}${release}${shared_ext}$major' 10341 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10342 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10343 ;; 10344 *) 10345 shrext_cmds='.sl' 10346 dynamic_linker="$host_os dld.sl" 10347 shlibpath_var=SHLIB_PATH 10348 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10350 soname_spec='${libname}${release}${shared_ext}$major' 10351 ;; 10352 esac 10353 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10354 postinstall_cmds='chmod 555 $lib' 10355 # or fails outright, so override atomically: 10356 install_override_mode=555 10357 ;; 10358 10359interix[3-9]*) 10360 version_type=linux 10361 need_lib_prefix=no 10362 need_version=no 10363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10364 soname_spec='${libname}${release}${shared_ext}$major' 10365 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10366 shlibpath_var=LD_LIBRARY_PATH 10367 shlibpath_overrides_runpath=no 10368 hardcode_into_libs=yes 10369 ;; 10370 10371irix5* | irix6* | nonstopux*) 10372 case $host_os in 10373 nonstopux*) version_type=nonstopux ;; 10374 *) 10375 if test "$lt_cv_prog_gnu_ld" = yes; then 10376 version_type=linux 10377 else 10378 version_type=irix 10379 fi ;; 10380 esac 10381 need_lib_prefix=no 10382 need_version=no 10383 soname_spec='${libname}${release}${shared_ext}$major' 10384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10385 case $host_os in 10386 irix5* | nonstopux*) 10387 libsuff= shlibsuff= 10388 ;; 10389 *) 10390 case $LD in # libtool.m4 will add one of these switches to LD 10391 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10392 libsuff= shlibsuff= libmagic=32-bit;; 10393 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10394 libsuff=32 shlibsuff=N32 libmagic=N32;; 10395 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10396 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10397 *) libsuff= shlibsuff= libmagic=never-match;; 10398 esac 10399 ;; 10400 esac 10401 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10402 shlibpath_overrides_runpath=no 10403 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10404 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10405 hardcode_into_libs=yes 10406 ;; 10407 10408# No shared lib support for Linux oldld, aout, or coff. 10409linux*oldld* | linux*aout* | linux*coff*) 10410 dynamic_linker=no 10411 ;; 10412 10413# This must be Linux ELF. 10414linux* | k*bsd*-gnu | kopensolaris*-gnu) 10415 version_type=linux 10416 need_lib_prefix=no 10417 need_version=no 10418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10419 soname_spec='${libname}${release}${shared_ext}$major' 10420 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10421 shlibpath_var=LD_LIBRARY_PATH 10422 shlibpath_overrides_runpath=no 10423 10424 # Some binutils ld are patched to set DT_RUNPATH 10425 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10426 $as_echo_n "(cached) " >&6 10427else 10428 lt_cv_shlibpath_overrides_runpath=no 10429 save_LDFLAGS=$LDFLAGS 10430 save_libdir=$libdir 10431 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10432 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10434/* end confdefs.h. */ 10435 10436int 10437main () 10438{ 10439 10440 ; 10441 return 0; 10442} 10443_ACEOF 10444if ac_fn_c_try_link "$LINENO"; then : 10445 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10446 lt_cv_shlibpath_overrides_runpath=yes 10447fi 10448fi 10449rm -f core conftest.err conftest.$ac_objext \ 10450 conftest$ac_exeext conftest.$ac_ext 10451 LDFLAGS=$save_LDFLAGS 10452 libdir=$save_libdir 10453 10454fi 10455 10456 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10457 10458 # This implies no fast_install, which is unacceptable. 10459 # Some rework will be needed to allow for fast_install 10460 # before this can be enabled. 10461 hardcode_into_libs=yes 10462 10463 # Append ld.so.conf contents to the search path 10464 if test -f /etc/ld.so.conf; then 10465 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;s/"//g;/^$/d' | tr '\n' ' '` 10466 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10467 fi 10468 10469 # We used to test for /lib/ld.so.1 and disable shared libraries on 10470 # powerpc, because MkLinux only supported shared libraries with the 10471 # GNU dynamic linker. Since this was broken with cross compilers, 10472 # most powerpc-linux boxes support dynamic linking these days and 10473 # people can always --disable-shared, the test was removed, and we 10474 # assume the GNU/Linux dynamic linker is in use. 10475 dynamic_linker='GNU/Linux ld.so' 10476 ;; 10477 10478netbsd*) 10479 version_type=sunos 10480 need_lib_prefix=no 10481 need_version=no 10482 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10484 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10485 dynamic_linker='NetBSD (a.out) ld.so' 10486 else 10487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10488 soname_spec='${libname}${release}${shared_ext}$major' 10489 dynamic_linker='NetBSD ld.elf_so' 10490 fi 10491 shlibpath_var=LD_LIBRARY_PATH 10492 shlibpath_overrides_runpath=yes 10493 hardcode_into_libs=yes 10494 ;; 10495 10496newsos6) 10497 version_type=linux 10498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10499 shlibpath_var=LD_LIBRARY_PATH 10500 shlibpath_overrides_runpath=yes 10501 ;; 10502 10503*nto* | *qnx*) 10504 version_type=qnx 10505 need_lib_prefix=no 10506 need_version=no 10507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10508 soname_spec='${libname}${release}${shared_ext}$major' 10509 shlibpath_var=LD_LIBRARY_PATH 10510 shlibpath_overrides_runpath=no 10511 hardcode_into_libs=yes 10512 dynamic_linker='ldqnx.so' 10513 ;; 10514 10515openbsd*) 10516 version_type=sunos 10517 sys_lib_dlsearch_path_spec="/usr/lib" 10518 need_lib_prefix=no 10519 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10520 case $host_os in 10521 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10522 *) need_version=no ;; 10523 esac 10524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10525 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10526 shlibpath_var=LD_LIBRARY_PATH 10527 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10528 case $host_os in 10529 openbsd2.[89] | openbsd2.[89].*) 10530 shlibpath_overrides_runpath=no 10531 ;; 10532 *) 10533 shlibpath_overrides_runpath=yes 10534 ;; 10535 esac 10536 else 10537 shlibpath_overrides_runpath=yes 10538 fi 10539 ;; 10540 10541os2*) 10542 libname_spec='$name' 10543 shrext_cmds=".dll" 10544 need_lib_prefix=no 10545 library_names_spec='$libname${shared_ext} $libname.a' 10546 dynamic_linker='OS/2 ld.exe' 10547 shlibpath_var=LIBPATH 10548 ;; 10549 10550osf3* | osf4* | osf5*) 10551 version_type=osf 10552 need_lib_prefix=no 10553 need_version=no 10554 soname_spec='${libname}${release}${shared_ext}$major' 10555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10556 shlibpath_var=LD_LIBRARY_PATH 10557 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10558 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10559 ;; 10560 10561rdos*) 10562 dynamic_linker=no 10563 ;; 10564 10565solaris*) 10566 version_type=linux 10567 need_lib_prefix=no 10568 need_version=no 10569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10570 soname_spec='${libname}${release}${shared_ext}$major' 10571 shlibpath_var=LD_LIBRARY_PATH 10572 shlibpath_overrides_runpath=yes 10573 hardcode_into_libs=yes 10574 # ldd complains unless libraries are executable 10575 postinstall_cmds='chmod +x $lib' 10576 ;; 10577 10578sunos4*) 10579 version_type=sunos 10580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10581 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10582 shlibpath_var=LD_LIBRARY_PATH 10583 shlibpath_overrides_runpath=yes 10584 if test "$with_gnu_ld" = yes; then 10585 need_lib_prefix=no 10586 fi 10587 need_version=yes 10588 ;; 10589 10590sysv4 | sysv4.3*) 10591 version_type=linux 10592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10593 soname_spec='${libname}${release}${shared_ext}$major' 10594 shlibpath_var=LD_LIBRARY_PATH 10595 case $host_vendor in 10596 sni) 10597 shlibpath_overrides_runpath=no 10598 need_lib_prefix=no 10599 runpath_var=LD_RUN_PATH 10600 ;; 10601 siemens) 10602 need_lib_prefix=no 10603 ;; 10604 motorola) 10605 need_lib_prefix=no 10606 need_version=no 10607 shlibpath_overrides_runpath=no 10608 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10609 ;; 10610 esac 10611 ;; 10612 10613sysv4*MP*) 10614 if test -d /usr/nec ;then 10615 version_type=linux 10616 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10617 soname_spec='$libname${shared_ext}.$major' 10618 shlibpath_var=LD_LIBRARY_PATH 10619 fi 10620 ;; 10621 10622sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10623 version_type=freebsd-elf 10624 need_lib_prefix=no 10625 need_version=no 10626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10627 soname_spec='${libname}${release}${shared_ext}$major' 10628 shlibpath_var=LD_LIBRARY_PATH 10629 shlibpath_overrides_runpath=yes 10630 hardcode_into_libs=yes 10631 if test "$with_gnu_ld" = yes; then 10632 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10633 else 10634 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10635 case $host_os in 10636 sco3.2v5*) 10637 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10638 ;; 10639 esac 10640 fi 10641 sys_lib_dlsearch_path_spec='/usr/lib' 10642 ;; 10643 10644tpf*) 10645 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10646 version_type=linux 10647 need_lib_prefix=no 10648 need_version=no 10649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10650 shlibpath_var=LD_LIBRARY_PATH 10651 shlibpath_overrides_runpath=no 10652 hardcode_into_libs=yes 10653 ;; 10654 10655uts4*) 10656 version_type=linux 10657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10658 soname_spec='${libname}${release}${shared_ext}$major' 10659 shlibpath_var=LD_LIBRARY_PATH 10660 ;; 10661 10662*) 10663 dynamic_linker=no 10664 ;; 10665esac 10666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10667$as_echo "$dynamic_linker" >&6; } 10668test "$dynamic_linker" = no && can_build_shared=no 10669 10670variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10671if test "$GCC" = yes; then 10672 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10673fi 10674 10675if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10676 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10677fi 10678if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10679 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10680fi 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10774$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10775hardcode_action= 10776if test -n "$hardcode_libdir_flag_spec" || 10777 test -n "$runpath_var" || 10778 test "X$hardcode_automatic" = "Xyes" ; then 10779 10780 # We can hardcode non-existent directories. 10781 if test "$hardcode_direct" != no && 10782 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10783 # have to relink, otherwise we might link with an installed library 10784 # when we should be linking with a yet-to-be-installed one 10785 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10786 test "$hardcode_minus_L" != no; then 10787 # Linking always hardcodes the temporary library directory. 10788 hardcode_action=relink 10789 else 10790 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10791 hardcode_action=immediate 10792 fi 10793else 10794 # We cannot hardcode anything, or else we can only hardcode existing 10795 # directories. 10796 hardcode_action=unsupported 10797fi 10798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10799$as_echo "$hardcode_action" >&6; } 10800 10801if test "$hardcode_action" = relink || 10802 test "$inherit_rpath" = yes; then 10803 # Fast installation is not supported 10804 enable_fast_install=no 10805elif test "$shlibpath_overrides_runpath" = yes || 10806 test "$enable_shared" = no; then 10807 # Fast installation is not necessary 10808 enable_fast_install=needless 10809fi 10810 10811 10812 10813 10814 10815 10816 if test "x$enable_dlopen" != xyes; then 10817 enable_dlopen=unknown 10818 enable_dlopen_self=unknown 10819 enable_dlopen_self_static=unknown 10820else 10821 lt_cv_dlopen=no 10822 lt_cv_dlopen_libs= 10823 10824 case $host_os in 10825 beos*) 10826 lt_cv_dlopen="load_add_on" 10827 lt_cv_dlopen_libs= 10828 lt_cv_dlopen_self=yes 10829 ;; 10830 10831 mingw* | pw32* | cegcc*) 10832 lt_cv_dlopen="LoadLibrary" 10833 lt_cv_dlopen_libs= 10834 ;; 10835 10836 cygwin*) 10837 lt_cv_dlopen="dlopen" 10838 lt_cv_dlopen_libs= 10839 ;; 10840 10841 darwin*) 10842 # if libdl is installed we need to link against it 10843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10844$as_echo_n "checking for dlopen in -ldl... " >&6; } 10845if ${ac_cv_lib_dl_dlopen+:} false; then : 10846 $as_echo_n "(cached) " >&6 10847else 10848 ac_check_lib_save_LIBS=$LIBS 10849LIBS="-ldl $LIBS" 10850cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10851/* end confdefs.h. */ 10852 10853/* Override any GCC internal prototype to avoid an error. 10854 Use char because int might match the return type of a GCC 10855 builtin and then its argument prototype would still apply. */ 10856#ifdef __cplusplus 10857extern "C" 10858#endif 10859char dlopen (); 10860int 10861main () 10862{ 10863return dlopen (); 10864 ; 10865 return 0; 10866} 10867_ACEOF 10868if ac_fn_c_try_link "$LINENO"; then : 10869 ac_cv_lib_dl_dlopen=yes 10870else 10871 ac_cv_lib_dl_dlopen=no 10872fi 10873rm -f core conftest.err conftest.$ac_objext \ 10874 conftest$ac_exeext conftest.$ac_ext 10875LIBS=$ac_check_lib_save_LIBS 10876fi 10877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10878$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10879if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10880 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10881else 10882 10883 lt_cv_dlopen="dyld" 10884 lt_cv_dlopen_libs= 10885 lt_cv_dlopen_self=yes 10886 10887fi 10888 10889 ;; 10890 10891 *) 10892 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10893if test "x$ac_cv_func_shl_load" = xyes; then : 10894 lt_cv_dlopen="shl_load" 10895else 10896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10897$as_echo_n "checking for shl_load in -ldld... " >&6; } 10898if ${ac_cv_lib_dld_shl_load+:} false; then : 10899 $as_echo_n "(cached) " >&6 10900else 10901 ac_check_lib_save_LIBS=$LIBS 10902LIBS="-ldld $LIBS" 10903cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10904/* end confdefs.h. */ 10905 10906/* Override any GCC internal prototype to avoid an error. 10907 Use char because int might match the return type of a GCC 10908 builtin and then its argument prototype would still apply. */ 10909#ifdef __cplusplus 10910extern "C" 10911#endif 10912char shl_load (); 10913int 10914main () 10915{ 10916return shl_load (); 10917 ; 10918 return 0; 10919} 10920_ACEOF 10921if ac_fn_c_try_link "$LINENO"; then : 10922 ac_cv_lib_dld_shl_load=yes 10923else 10924 ac_cv_lib_dld_shl_load=no 10925fi 10926rm -f core conftest.err conftest.$ac_objext \ 10927 conftest$ac_exeext conftest.$ac_ext 10928LIBS=$ac_check_lib_save_LIBS 10929fi 10930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10931$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10932if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10933 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10934else 10935 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10936if test "x$ac_cv_func_dlopen" = xyes; then : 10937 lt_cv_dlopen="dlopen" 10938else 10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10940$as_echo_n "checking for dlopen in -ldl... " >&6; } 10941if ${ac_cv_lib_dl_dlopen+:} false; then : 10942 $as_echo_n "(cached) " >&6 10943else 10944 ac_check_lib_save_LIBS=$LIBS 10945LIBS="-ldl $LIBS" 10946cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10947/* end confdefs.h. */ 10948 10949/* Override any GCC internal prototype to avoid an error. 10950 Use char because int might match the return type of a GCC 10951 builtin and then its argument prototype would still apply. */ 10952#ifdef __cplusplus 10953extern "C" 10954#endif 10955char dlopen (); 10956int 10957main () 10958{ 10959return dlopen (); 10960 ; 10961 return 0; 10962} 10963_ACEOF 10964if ac_fn_c_try_link "$LINENO"; then : 10965 ac_cv_lib_dl_dlopen=yes 10966else 10967 ac_cv_lib_dl_dlopen=no 10968fi 10969rm -f core conftest.err conftest.$ac_objext \ 10970 conftest$ac_exeext conftest.$ac_ext 10971LIBS=$ac_check_lib_save_LIBS 10972fi 10973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10974$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10975if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10976 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10977else 10978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10979$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10980if ${ac_cv_lib_svld_dlopen+:} false; then : 10981 $as_echo_n "(cached) " >&6 10982else 10983 ac_check_lib_save_LIBS=$LIBS 10984LIBS="-lsvld $LIBS" 10985cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10986/* end confdefs.h. */ 10987 10988/* Override any GCC internal prototype to avoid an error. 10989 Use char because int might match the return type of a GCC 10990 builtin and then its argument prototype would still apply. */ 10991#ifdef __cplusplus 10992extern "C" 10993#endif 10994char dlopen (); 10995int 10996main () 10997{ 10998return dlopen (); 10999 ; 11000 return 0; 11001} 11002_ACEOF 11003if ac_fn_c_try_link "$LINENO"; then : 11004 ac_cv_lib_svld_dlopen=yes 11005else 11006 ac_cv_lib_svld_dlopen=no 11007fi 11008rm -f core conftest.err conftest.$ac_objext \ 11009 conftest$ac_exeext conftest.$ac_ext 11010LIBS=$ac_check_lib_save_LIBS 11011fi 11012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11013$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11014if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11015 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11016else 11017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11018$as_echo_n "checking for dld_link in -ldld... " >&6; } 11019if ${ac_cv_lib_dld_dld_link+:} false; then : 11020 $as_echo_n "(cached) " >&6 11021else 11022 ac_check_lib_save_LIBS=$LIBS 11023LIBS="-ldld $LIBS" 11024cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11025/* end confdefs.h. */ 11026 11027/* Override any GCC internal prototype to avoid an error. 11028 Use char because int might match the return type of a GCC 11029 builtin and then its argument prototype would still apply. */ 11030#ifdef __cplusplus 11031extern "C" 11032#endif 11033char dld_link (); 11034int 11035main () 11036{ 11037return dld_link (); 11038 ; 11039 return 0; 11040} 11041_ACEOF 11042if ac_fn_c_try_link "$LINENO"; then : 11043 ac_cv_lib_dld_dld_link=yes 11044else 11045 ac_cv_lib_dld_dld_link=no 11046fi 11047rm -f core conftest.err conftest.$ac_objext \ 11048 conftest$ac_exeext conftest.$ac_ext 11049LIBS=$ac_check_lib_save_LIBS 11050fi 11051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11052$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11053if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11054 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11055fi 11056 11057 11058fi 11059 11060 11061fi 11062 11063 11064fi 11065 11066 11067fi 11068 11069 11070fi 11071 11072 ;; 11073 esac 11074 11075 if test "x$lt_cv_dlopen" != xno; then 11076 enable_dlopen=yes 11077 else 11078 enable_dlopen=no 11079 fi 11080 11081 case $lt_cv_dlopen in 11082 dlopen) 11083 save_CPPFLAGS="$CPPFLAGS" 11084 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11085 11086 save_LDFLAGS="$LDFLAGS" 11087 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11088 11089 save_LIBS="$LIBS" 11090 LIBS="$lt_cv_dlopen_libs $LIBS" 11091 11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11093$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11094if ${lt_cv_dlopen_self+:} false; then : 11095 $as_echo_n "(cached) " >&6 11096else 11097 if test "$cross_compiling" = yes; then : 11098 lt_cv_dlopen_self=cross 11099else 11100 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11101 lt_status=$lt_dlunknown 11102 cat > conftest.$ac_ext <<_LT_EOF 11103#line $LINENO "configure" 11104#include "confdefs.h" 11105 11106#if HAVE_DLFCN_H 11107#include <dlfcn.h> 11108#endif 11109 11110#include <stdio.h> 11111 11112#ifdef RTLD_GLOBAL 11113# define LT_DLGLOBAL RTLD_GLOBAL 11114#else 11115# ifdef DL_GLOBAL 11116# define LT_DLGLOBAL DL_GLOBAL 11117# else 11118# define LT_DLGLOBAL 0 11119# endif 11120#endif 11121 11122/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11123 find out it does not work in some platform. */ 11124#ifndef LT_DLLAZY_OR_NOW 11125# ifdef RTLD_LAZY 11126# define LT_DLLAZY_OR_NOW RTLD_LAZY 11127# else 11128# ifdef DL_LAZY 11129# define LT_DLLAZY_OR_NOW DL_LAZY 11130# else 11131# ifdef RTLD_NOW 11132# define LT_DLLAZY_OR_NOW RTLD_NOW 11133# else 11134# ifdef DL_NOW 11135# define LT_DLLAZY_OR_NOW DL_NOW 11136# else 11137# define LT_DLLAZY_OR_NOW 0 11138# endif 11139# endif 11140# endif 11141# endif 11142#endif 11143 11144/* When -fvisbility=hidden is used, assume the code has been annotated 11145 correspondingly for the symbols needed. */ 11146#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11147int fnord () __attribute__((visibility("default"))); 11148#endif 11149 11150int fnord () { return 42; } 11151int main () 11152{ 11153 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11154 int status = $lt_dlunknown; 11155 11156 if (self) 11157 { 11158 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11159 else 11160 { 11161 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11162 else puts (dlerror ()); 11163 } 11164 /* dlclose (self); */ 11165 } 11166 else 11167 puts (dlerror ()); 11168 11169 return status; 11170} 11171_LT_EOF 11172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11173 (eval $ac_link) 2>&5 11174 ac_status=$? 11175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11176 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11177 (./conftest; exit; ) >&5 2>/dev/null 11178 lt_status=$? 11179 case x$lt_status in 11180 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11181 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11182 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11183 esac 11184 else : 11185 # compilation failed 11186 lt_cv_dlopen_self=no 11187 fi 11188fi 11189rm -fr conftest* 11190 11191 11192fi 11193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11194$as_echo "$lt_cv_dlopen_self" >&6; } 11195 11196 if test "x$lt_cv_dlopen_self" = xyes; then 11197 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11199$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11200if ${lt_cv_dlopen_self_static+:} false; then : 11201 $as_echo_n "(cached) " >&6 11202else 11203 if test "$cross_compiling" = yes; then : 11204 lt_cv_dlopen_self_static=cross 11205else 11206 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11207 lt_status=$lt_dlunknown 11208 cat > conftest.$ac_ext <<_LT_EOF 11209#line $LINENO "configure" 11210#include "confdefs.h" 11211 11212#if HAVE_DLFCN_H 11213#include <dlfcn.h> 11214#endif 11215 11216#include <stdio.h> 11217 11218#ifdef RTLD_GLOBAL 11219# define LT_DLGLOBAL RTLD_GLOBAL 11220#else 11221# ifdef DL_GLOBAL 11222# define LT_DLGLOBAL DL_GLOBAL 11223# else 11224# define LT_DLGLOBAL 0 11225# endif 11226#endif 11227 11228/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11229 find out it does not work in some platform. */ 11230#ifndef LT_DLLAZY_OR_NOW 11231# ifdef RTLD_LAZY 11232# define LT_DLLAZY_OR_NOW RTLD_LAZY 11233# else 11234# ifdef DL_LAZY 11235# define LT_DLLAZY_OR_NOW DL_LAZY 11236# else 11237# ifdef RTLD_NOW 11238# define LT_DLLAZY_OR_NOW RTLD_NOW 11239# else 11240# ifdef DL_NOW 11241# define LT_DLLAZY_OR_NOW DL_NOW 11242# else 11243# define LT_DLLAZY_OR_NOW 0 11244# endif 11245# endif 11246# endif 11247# endif 11248#endif 11249 11250/* When -fvisbility=hidden is used, assume the code has been annotated 11251 correspondingly for the symbols needed. */ 11252#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11253int fnord () __attribute__((visibility("default"))); 11254#endif 11255 11256int fnord () { return 42; } 11257int main () 11258{ 11259 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11260 int status = $lt_dlunknown; 11261 11262 if (self) 11263 { 11264 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11265 else 11266 { 11267 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11268 else puts (dlerror ()); 11269 } 11270 /* dlclose (self); */ 11271 } 11272 else 11273 puts (dlerror ()); 11274 11275 return status; 11276} 11277_LT_EOF 11278 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11279 (eval $ac_link) 2>&5 11280 ac_status=$? 11281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11282 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11283 (./conftest; exit; ) >&5 2>/dev/null 11284 lt_status=$? 11285 case x$lt_status in 11286 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11287 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11288 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11289 esac 11290 else : 11291 # compilation failed 11292 lt_cv_dlopen_self_static=no 11293 fi 11294fi 11295rm -fr conftest* 11296 11297 11298fi 11299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11300$as_echo "$lt_cv_dlopen_self_static" >&6; } 11301 fi 11302 11303 CPPFLAGS="$save_CPPFLAGS" 11304 LDFLAGS="$save_LDFLAGS" 11305 LIBS="$save_LIBS" 11306 ;; 11307 esac 11308 11309 case $lt_cv_dlopen_self in 11310 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11311 *) enable_dlopen_self=unknown ;; 11312 esac 11313 11314 case $lt_cv_dlopen_self_static in 11315 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11316 *) enable_dlopen_self_static=unknown ;; 11317 esac 11318fi 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336striplib= 11337old_striplib= 11338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11339$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11340if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11341 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11342 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11344$as_echo "yes" >&6; } 11345else 11346# FIXME - insert some real tests, host_os isn't really good enough 11347 case $host_os in 11348 darwin*) 11349 if test -n "$STRIP" ; then 11350 striplib="$STRIP -x" 11351 old_striplib="$STRIP -S" 11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11353$as_echo "yes" >&6; } 11354 else 11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11356$as_echo "no" >&6; } 11357 fi 11358 ;; 11359 *) 11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11361$as_echo "no" >&6; } 11362 ;; 11363 esac 11364fi 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 # Report which library types will actually be built 11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11379$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11381$as_echo "$can_build_shared" >&6; } 11382 11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11384$as_echo_n "checking whether to build shared libraries... " >&6; } 11385 test "$can_build_shared" = "no" && enable_shared=no 11386 11387 # On AIX, shared libraries and static libraries use the same namespace, and 11388 # are all built from PIC. 11389 case $host_os in 11390 aix3*) 11391 test "$enable_shared" = yes && enable_static=no 11392 if test -n "$RANLIB"; then 11393 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11394 postinstall_cmds='$RANLIB $lib' 11395 fi 11396 ;; 11397 11398 aix[4-9]*) 11399 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11400 test "$enable_shared" = yes && enable_static=no 11401 fi 11402 ;; 11403 esac 11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11405$as_echo "$enable_shared" >&6; } 11406 11407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11408$as_echo_n "checking whether to build static libraries... " >&6; } 11409 # Make sure either enable_shared or enable_static is yes. 11410 test "$enable_shared" = yes || enable_static=yes 11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11412$as_echo "$enable_static" >&6; } 11413 11414 11415 11416 11417fi 11418ac_ext=c 11419ac_cpp='$CPP $CPPFLAGS' 11420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11422ac_compiler_gnu=$ac_cv_c_compiler_gnu 11423 11424CC="$lt_save_CC" 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 ac_config_commands="$ac_config_commands libtool" 11439 11440 11441 11442 11443# Only expand once: 11444 11445 11446 11447ac_ext=c 11448ac_cpp='$CPP $CPPFLAGS' 11449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11451ac_compiler_gnu=$ac_cv_c_compiler_gnu 11452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 11453$as_echo_n "checking how to run the C preprocessor... " >&6; } 11454# On Suns, sometimes $CPP names a directory. 11455if test -n "$CPP" && test -d "$CPP"; then 11456 CPP= 11457fi 11458if test -z "$CPP"; then 11459 if ${ac_cv_prog_CPP+:} false; then : 11460 $as_echo_n "(cached) " >&6 11461else 11462 # Double quotes because CPP needs to be expanded 11463 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 11464 do 11465 ac_preproc_ok=false 11466for ac_c_preproc_warn_flag in '' yes 11467do 11468 # Use a header file that comes with gcc, so configuring glibc 11469 # with a fresh cross-compiler works. 11470 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11471 # <limits.h> exists even on freestanding compilers. 11472 # On the NeXT, cc -E runs the code through the compiler's parser, 11473 # not just through cpp. "Syntax error" is here to catch this case. 11474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11475/* end confdefs.h. */ 11476#ifdef __STDC__ 11477# include <limits.h> 11478#else 11479# include <assert.h> 11480#endif 11481 Syntax error 11482_ACEOF 11483if ac_fn_c_try_cpp "$LINENO"; then : 11484 11485else 11486 # Broken: fails on valid input. 11487continue 11488fi 11489rm -f conftest.err conftest.i conftest.$ac_ext 11490 11491 # OK, works on sane cases. Now check whether nonexistent headers 11492 # can be detected and how. 11493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11494/* end confdefs.h. */ 11495#include <ac_nonexistent.h> 11496_ACEOF 11497if ac_fn_c_try_cpp "$LINENO"; then : 11498 # Broken: success on invalid input. 11499continue 11500else 11501 # Passes both tests. 11502ac_preproc_ok=: 11503break 11504fi 11505rm -f conftest.err conftest.i conftest.$ac_ext 11506 11507done 11508# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 11509rm -f conftest.i conftest.err conftest.$ac_ext 11510if $ac_preproc_ok; then : 11511 break 11512fi 11513 11514 done 11515 ac_cv_prog_CPP=$CPP 11516 11517fi 11518 CPP=$ac_cv_prog_CPP 11519else 11520 ac_cv_prog_CPP=$CPP 11521fi 11522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 11523$as_echo "$CPP" >&6; } 11524ac_preproc_ok=false 11525for ac_c_preproc_warn_flag in '' yes 11526do 11527 # Use a header file that comes with gcc, so configuring glibc 11528 # with a fresh cross-compiler works. 11529 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11530 # <limits.h> exists even on freestanding compilers. 11531 # On the NeXT, cc -E runs the code through the compiler's parser, 11532 # not just through cpp. "Syntax error" is here to catch this case. 11533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11534/* end confdefs.h. */ 11535#ifdef __STDC__ 11536# include <limits.h> 11537#else 11538# include <assert.h> 11539#endif 11540 Syntax error 11541_ACEOF 11542if ac_fn_c_try_cpp "$LINENO"; then : 11543 11544else 11545 # Broken: fails on valid input. 11546continue 11547fi 11548rm -f conftest.err conftest.i conftest.$ac_ext 11549 11550 # OK, works on sane cases. Now check whether nonexistent headers 11551 # can be detected and how. 11552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11553/* end confdefs.h. */ 11554#include <ac_nonexistent.h> 11555_ACEOF 11556if ac_fn_c_try_cpp "$LINENO"; then : 11557 # Broken: success on invalid input. 11558continue 11559else 11560 # Passes both tests. 11561ac_preproc_ok=: 11562break 11563fi 11564rm -f conftest.err conftest.i conftest.$ac_ext 11565 11566done 11567# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 11568rm -f conftest.i conftest.err conftest.$ac_ext 11569if $ac_preproc_ok; then : 11570 11571else 11572 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11573$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11574as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 11575See \`config.log' for more details" "$LINENO" 5; } 11576fi 11577 11578ac_ext=c 11579ac_cpp='$CPP $CPPFLAGS' 11580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11582ac_compiler_gnu=$ac_cv_c_compiler_gnu 11583 11584ac_ext=c 11585ac_cpp='$CPP $CPPFLAGS' 11586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11588ac_compiler_gnu=$ac_cv_c_compiler_gnu 11589if test -n "$ac_tool_prefix"; then 11590 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 11591set dummy ${ac_tool_prefix}gcc; ac_word=$2 11592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11593$as_echo_n "checking for $ac_word... " >&6; } 11594if ${ac_cv_prog_CC+:} false; then : 11595 $as_echo_n "(cached) " >&6 11596else 11597 if test -n "$CC"; then 11598 ac_cv_prog_CC="$CC" # Let the user override the test. 11599else 11600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11601for as_dir in $PATH 11602do 11603 IFS=$as_save_IFS 11604 test -z "$as_dir" && as_dir=. 11605 for ac_exec_ext in '' $ac_executable_extensions; do 11606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11607 ac_cv_prog_CC="${ac_tool_prefix}gcc" 11608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11609 break 2 11610 fi 11611done 11612 done 11613IFS=$as_save_IFS 11614 11615fi 11616fi 11617CC=$ac_cv_prog_CC 11618if test -n "$CC"; then 11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11620$as_echo "$CC" >&6; } 11621else 11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11623$as_echo "no" >&6; } 11624fi 11625 11626 11627fi 11628if test -z "$ac_cv_prog_CC"; then 11629 ac_ct_CC=$CC 11630 # Extract the first word of "gcc", so it can be a program name with args. 11631set dummy gcc; ac_word=$2 11632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11633$as_echo_n "checking for $ac_word... " >&6; } 11634if ${ac_cv_prog_ac_ct_CC+:} false; then : 11635 $as_echo_n "(cached) " >&6 11636else 11637 if test -n "$ac_ct_CC"; then 11638 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11639else 11640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11641for as_dir in $PATH 11642do 11643 IFS=$as_save_IFS 11644 test -z "$as_dir" && as_dir=. 11645 for ac_exec_ext in '' $ac_executable_extensions; do 11646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11647 ac_cv_prog_ac_ct_CC="gcc" 11648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11649 break 2 11650 fi 11651done 11652 done 11653IFS=$as_save_IFS 11654 11655fi 11656fi 11657ac_ct_CC=$ac_cv_prog_ac_ct_CC 11658if test -n "$ac_ct_CC"; then 11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 11660$as_echo "$ac_ct_CC" >&6; } 11661else 11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11663$as_echo "no" >&6; } 11664fi 11665 11666 if test "x$ac_ct_CC" = x; then 11667 CC="" 11668 else 11669 case $cross_compiling:$ac_tool_warned in 11670yes:) 11671{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11672$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11673ac_tool_warned=yes ;; 11674esac 11675 CC=$ac_ct_CC 11676 fi 11677else 11678 CC="$ac_cv_prog_CC" 11679fi 11680 11681if test -z "$CC"; then 11682 if test -n "$ac_tool_prefix"; then 11683 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 11684set dummy ${ac_tool_prefix}cc; ac_word=$2 11685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11686$as_echo_n "checking for $ac_word... " >&6; } 11687if ${ac_cv_prog_CC+:} false; then : 11688 $as_echo_n "(cached) " >&6 11689else 11690 if test -n "$CC"; then 11691 ac_cv_prog_CC="$CC" # Let the user override the test. 11692else 11693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11694for as_dir in $PATH 11695do 11696 IFS=$as_save_IFS 11697 test -z "$as_dir" && as_dir=. 11698 for ac_exec_ext in '' $ac_executable_extensions; do 11699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11700 ac_cv_prog_CC="${ac_tool_prefix}cc" 11701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11702 break 2 11703 fi 11704done 11705 done 11706IFS=$as_save_IFS 11707 11708fi 11709fi 11710CC=$ac_cv_prog_CC 11711if test -n "$CC"; then 11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11713$as_echo "$CC" >&6; } 11714else 11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11716$as_echo "no" >&6; } 11717fi 11718 11719 11720 fi 11721fi 11722if test -z "$CC"; then 11723 # Extract the first word of "cc", so it can be a program name with args. 11724set dummy cc; ac_word=$2 11725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11726$as_echo_n "checking for $ac_word... " >&6; } 11727if ${ac_cv_prog_CC+:} false; then : 11728 $as_echo_n "(cached) " >&6 11729else 11730 if test -n "$CC"; then 11731 ac_cv_prog_CC="$CC" # Let the user override the test. 11732else 11733 ac_prog_rejected=no 11734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11735for as_dir in $PATH 11736do 11737 IFS=$as_save_IFS 11738 test -z "$as_dir" && as_dir=. 11739 for ac_exec_ext in '' $ac_executable_extensions; do 11740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11741 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 11742 ac_prog_rejected=yes 11743 continue 11744 fi 11745 ac_cv_prog_CC="cc" 11746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11747 break 2 11748 fi 11749done 11750 done 11751IFS=$as_save_IFS 11752 11753if test $ac_prog_rejected = yes; then 11754 # We found a bogon in the path, so make sure we never use it. 11755 set dummy $ac_cv_prog_CC 11756 shift 11757 if test $# != 0; then 11758 # We chose a different compiler from the bogus one. 11759 # However, it has the same basename, so the bogon will be chosen 11760 # first if we set CC to just the basename; use the full file name. 11761 shift 11762 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 11763 fi 11764fi 11765fi 11766fi 11767CC=$ac_cv_prog_CC 11768if test -n "$CC"; then 11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11770$as_echo "$CC" >&6; } 11771else 11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11773$as_echo "no" >&6; } 11774fi 11775 11776 11777fi 11778if test -z "$CC"; then 11779 if test -n "$ac_tool_prefix"; then 11780 for ac_prog in cl.exe 11781 do 11782 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11783set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11785$as_echo_n "checking for $ac_word... " >&6; } 11786if ${ac_cv_prog_CC+:} false; then : 11787 $as_echo_n "(cached) " >&6 11788else 11789 if test -n "$CC"; then 11790 ac_cv_prog_CC="$CC" # Let the user override the test. 11791else 11792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11793for as_dir in $PATH 11794do 11795 IFS=$as_save_IFS 11796 test -z "$as_dir" && as_dir=. 11797 for ac_exec_ext in '' $ac_executable_extensions; do 11798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11799 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 11800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11801 break 2 11802 fi 11803done 11804 done 11805IFS=$as_save_IFS 11806 11807fi 11808fi 11809CC=$ac_cv_prog_CC 11810if test -n "$CC"; then 11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11812$as_echo "$CC" >&6; } 11813else 11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11815$as_echo "no" >&6; } 11816fi 11817 11818 11819 test -n "$CC" && break 11820 done 11821fi 11822if test -z "$CC"; then 11823 ac_ct_CC=$CC 11824 for ac_prog in cl.exe 11825do 11826 # Extract the first word of "$ac_prog", so it can be a program name with args. 11827set dummy $ac_prog; ac_word=$2 11828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11829$as_echo_n "checking for $ac_word... " >&6; } 11830if ${ac_cv_prog_ac_ct_CC+:} false; then : 11831 $as_echo_n "(cached) " >&6 11832else 11833 if test -n "$ac_ct_CC"; then 11834 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11835else 11836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11837for as_dir in $PATH 11838do 11839 IFS=$as_save_IFS 11840 test -z "$as_dir" && as_dir=. 11841 for ac_exec_ext in '' $ac_executable_extensions; do 11842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11843 ac_cv_prog_ac_ct_CC="$ac_prog" 11844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11845 break 2 11846 fi 11847done 11848 done 11849IFS=$as_save_IFS 11850 11851fi 11852fi 11853ac_ct_CC=$ac_cv_prog_ac_ct_CC 11854if test -n "$ac_ct_CC"; then 11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 11856$as_echo "$ac_ct_CC" >&6; } 11857else 11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11859$as_echo "no" >&6; } 11860fi 11861 11862 11863 test -n "$ac_ct_CC" && break 11864done 11865 11866 if test "x$ac_ct_CC" = x; then 11867 CC="" 11868 else 11869 case $cross_compiling:$ac_tool_warned in 11870yes:) 11871{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11872$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11873ac_tool_warned=yes ;; 11874esac 11875 CC=$ac_ct_CC 11876 fi 11877fi 11878 11879fi 11880 11881 11882test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11883$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11884as_fn_error $? "no acceptable C compiler found in \$PATH 11885See \`config.log' for more details" "$LINENO" 5; } 11886 11887# Provide some information about the compiler. 11888$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 11889set X $ac_compile 11890ac_compiler=$2 11891for ac_option in --version -v -V -qversion; do 11892 { { ac_try="$ac_compiler $ac_option >&5" 11893case "(($ac_try" in 11894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11895 *) ac_try_echo=$ac_try;; 11896esac 11897eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11898$as_echo "$ac_try_echo"; } >&5 11899 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 11900 ac_status=$? 11901 if test -s conftest.err; then 11902 sed '10a\ 11903... rest of stderr output deleted ... 11904 10q' conftest.err >conftest.er1 11905 cat conftest.er1 >&5 11906 fi 11907 rm -f conftest.er1 conftest.err 11908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11909 test $ac_status = 0; } 11910done 11911 11912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 11913$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 11914if ${ac_cv_c_compiler_gnu+:} false; then : 11915 $as_echo_n "(cached) " >&6 11916else 11917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11918/* end confdefs.h. */ 11919 11920int 11921main () 11922{ 11923#ifndef __GNUC__ 11924 choke me 11925#endif 11926 11927 ; 11928 return 0; 11929} 11930_ACEOF 11931if ac_fn_c_try_compile "$LINENO"; then : 11932 ac_compiler_gnu=yes 11933else 11934 ac_compiler_gnu=no 11935fi 11936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11937ac_cv_c_compiler_gnu=$ac_compiler_gnu 11938 11939fi 11940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 11941$as_echo "$ac_cv_c_compiler_gnu" >&6; } 11942if test $ac_compiler_gnu = yes; then 11943 GCC=yes 11944else 11945 GCC= 11946fi 11947ac_test_CFLAGS=${CFLAGS+set} 11948ac_save_CFLAGS=$CFLAGS 11949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 11950$as_echo_n "checking whether $CC accepts -g... " >&6; } 11951if ${ac_cv_prog_cc_g+:} false; then : 11952 $as_echo_n "(cached) " >&6 11953else 11954 ac_save_c_werror_flag=$ac_c_werror_flag 11955 ac_c_werror_flag=yes 11956 ac_cv_prog_cc_g=no 11957 CFLAGS="-g" 11958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11959/* end confdefs.h. */ 11960 11961int 11962main () 11963{ 11964 11965 ; 11966 return 0; 11967} 11968_ACEOF 11969if ac_fn_c_try_compile "$LINENO"; then : 11970 ac_cv_prog_cc_g=yes 11971else 11972 CFLAGS="" 11973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11974/* end confdefs.h. */ 11975 11976int 11977main () 11978{ 11979 11980 ; 11981 return 0; 11982} 11983_ACEOF 11984if ac_fn_c_try_compile "$LINENO"; then : 11985 11986else 11987 ac_c_werror_flag=$ac_save_c_werror_flag 11988 CFLAGS="-g" 11989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11990/* end confdefs.h. */ 11991 11992int 11993main () 11994{ 11995 11996 ; 11997 return 0; 11998} 11999_ACEOF 12000if ac_fn_c_try_compile "$LINENO"; then : 12001 ac_cv_prog_cc_g=yes 12002fi 12003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12004fi 12005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12006fi 12007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12008 ac_c_werror_flag=$ac_save_c_werror_flag 12009fi 12010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 12011$as_echo "$ac_cv_prog_cc_g" >&6; } 12012if test "$ac_test_CFLAGS" = set; then 12013 CFLAGS=$ac_save_CFLAGS 12014elif test $ac_cv_prog_cc_g = yes; then 12015 if test "$GCC" = yes; then 12016 CFLAGS="-g -O2" 12017 else 12018 CFLAGS="-g" 12019 fi 12020else 12021 if test "$GCC" = yes; then 12022 CFLAGS="-O2" 12023 else 12024 CFLAGS= 12025 fi 12026fi 12027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 12028$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 12029if ${ac_cv_prog_cc_c89+:} false; then : 12030 $as_echo_n "(cached) " >&6 12031else 12032 ac_cv_prog_cc_c89=no 12033ac_save_CC=$CC 12034cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12035/* end confdefs.h. */ 12036#include <stdarg.h> 12037#include <stdio.h> 12038#include <sys/types.h> 12039#include <sys/stat.h> 12040/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 12041struct buf { int x; }; 12042FILE * (*rcsopen) (struct buf *, struct stat *, int); 12043static char *e (p, i) 12044 char **p; 12045 int i; 12046{ 12047 return p[i]; 12048} 12049static char *f (char * (*g) (char **, int), char **p, ...) 12050{ 12051 char *s; 12052 va_list v; 12053 va_start (v,p); 12054 s = g (p, va_arg (v,int)); 12055 va_end (v); 12056 return s; 12057} 12058 12059/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 12060 function prototypes and stuff, but not '\xHH' hex character constants. 12061 These don't provoke an error unfortunately, instead are silently treated 12062 as 'x'. The following induces an error, until -std is added to get 12063 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 12064 array size at least. It's necessary to write '\x00'==0 to get something 12065 that's true only with -std. */ 12066int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 12067 12068/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 12069 inside strings and character constants. */ 12070#define FOO(x) 'x' 12071int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 12072 12073int test (int i, double x); 12074struct s1 {int (*f) (int a);}; 12075struct s2 {int (*f) (double a);}; 12076int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 12077int argc; 12078char **argv; 12079int 12080main () 12081{ 12082return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 12083 ; 12084 return 0; 12085} 12086_ACEOF 12087for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 12088 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 12089do 12090 CC="$ac_save_CC $ac_arg" 12091 if ac_fn_c_try_compile "$LINENO"; then : 12092 ac_cv_prog_cc_c89=$ac_arg 12093fi 12094rm -f core conftest.err conftest.$ac_objext 12095 test "x$ac_cv_prog_cc_c89" != "xno" && break 12096done 12097rm -f conftest.$ac_ext 12098CC=$ac_save_CC 12099 12100fi 12101# AC_CACHE_VAL 12102case "x$ac_cv_prog_cc_c89" in 12103 x) 12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12105$as_echo "none needed" >&6; } ;; 12106 xno) 12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12108$as_echo "unsupported" >&6; } ;; 12109 *) 12110 CC="$CC $ac_cv_prog_cc_c89" 12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 12112$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 12113esac 12114if test "x$ac_cv_prog_cc_c89" != xno; then : 12115 12116fi 12117 12118ac_ext=c 12119ac_cpp='$CPP $CPPFLAGS' 12120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12122ac_compiler_gnu=$ac_cv_c_compiler_gnu 12123 12124depcc="$CC" am_compiler_list= 12125 12126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 12127$as_echo_n "checking dependency style of $depcc... " >&6; } 12128if ${am_cv_CC_dependencies_compiler_type+:} false; then : 12129 $as_echo_n "(cached) " >&6 12130else 12131 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 12132 # We make a subdir and do the tests there. Otherwise we can end up 12133 # making bogus files that we don't know about and never remove. For 12134 # instance it was reported that on HP-UX the gcc test will end up 12135 # making a dummy file named 'D' -- because '-MD' means "put the output 12136 # in D". 12137 rm -rf conftest.dir 12138 mkdir conftest.dir 12139 # Copy depcomp to subdir because otherwise we won't find it if we're 12140 # using a relative directory. 12141 cp "$am_depcomp" conftest.dir 12142 cd conftest.dir 12143 # We will build objects and dependencies in a subdirectory because 12144 # it helps to detect inapplicable dependency modes. For instance 12145 # both Tru64's cc and ICC support -MD to output dependencies as a 12146 # side effect of compilation, but ICC will put the dependencies in 12147 # the current directory while Tru64 will put them in the object 12148 # directory. 12149 mkdir sub 12150 12151 am_cv_CC_dependencies_compiler_type=none 12152 if test "$am_compiler_list" = ""; then 12153 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 12154 fi 12155 am__universal=false 12156 case " $depcc " in #( 12157 *\ -arch\ *\ -arch\ *) am__universal=true ;; 12158 esac 12159 12160 for depmode in $am_compiler_list; do 12161 # Setup a source with many dependencies, because some compilers 12162 # like to wrap large dependency lists on column 80 (with \), and 12163 # we should not choose a depcomp mode which is confused by this. 12164 # 12165 # We need to recreate these files for each test, as the compiler may 12166 # overwrite some of them when testing with obscure command lines. 12167 # This happens at least with the AIX C compiler. 12168 : > sub/conftest.c 12169 for i in 1 2 3 4 5 6; do 12170 echo '#include "conftst'$i'.h"' >> sub/conftest.c 12171 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 12172 # Solaris 10 /bin/sh. 12173 echo '/* dummy */' > sub/conftst$i.h 12174 done 12175 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 12176 12177 # We check with '-c' and '-o' for the sake of the "dashmstdout" 12178 # mode. It turns out that the SunPro C++ compiler does not properly 12179 # handle '-M -o', and we need to detect this. Also, some Intel 12180 # versions had trouble with output in subdirs. 12181 am__obj=sub/conftest.${OBJEXT-o} 12182 am__minus_obj="-o $am__obj" 12183 case $depmode in 12184 gcc) 12185 # This depmode causes a compiler race in universal mode. 12186 test "$am__universal" = false || continue 12187 ;; 12188 nosideeffect) 12189 # After this tag, mechanisms are not by side-effect, so they'll 12190 # only be used when explicitly requested. 12191 if test "x$enable_dependency_tracking" = xyes; then 12192 continue 12193 else 12194 break 12195 fi 12196 ;; 12197 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 12198 # This compiler won't grok '-c -o', but also, the minuso test has 12199 # not run yet. These depmodes are late enough in the game, and 12200 # so weak that their functioning should not be impacted. 12201 am__obj=conftest.${OBJEXT-o} 12202 am__minus_obj= 12203 ;; 12204 none) break ;; 12205 esac 12206 if depmode=$depmode \ 12207 source=sub/conftest.c object=$am__obj \ 12208 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 12209 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 12210 >/dev/null 2>conftest.err && 12211 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 12212 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 12213 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 12214 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 12215 # icc doesn't choke on unknown options, it will just issue warnings 12216 # or remarks (even with -Werror). So we grep stderr for any message 12217 # that says an option was ignored or not supported. 12218 # When given -MP, icc 7.0 and 7.1 complain thusly: 12219 # icc: Command line warning: ignoring option '-M'; no argument required 12220 # The diagnosis changed in icc 8.0: 12221 # icc: Command line remark: option '-MP' not supported 12222 if (grep 'ignoring option' conftest.err || 12223 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 12224 am_cv_CC_dependencies_compiler_type=$depmode 12225 break 12226 fi 12227 fi 12228 done 12229 12230 cd .. 12231 rm -rf conftest.dir 12232else 12233 am_cv_CC_dependencies_compiler_type=none 12234fi 12235 12236fi 12237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 12238$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 12239CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 12240 12241 if 12242 test "x$enable_dependency_tracking" != xno \ 12243 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 12244 am__fastdepCC_TRUE= 12245 am__fastdepCC_FALSE='#' 12246else 12247 am__fastdepCC_TRUE='#' 12248 am__fastdepCC_FALSE= 12249fi 12250 12251 12252ac_ext=cpp 12253ac_cpp='$CXXCPP $CPPFLAGS' 12254ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12255ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12256ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12257if test -z "$CXX"; then 12258 if test -n "$CCC"; then 12259 CXX=$CCC 12260 else 12261 if test -n "$ac_tool_prefix"; then 12262 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 12263 do 12264 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12265set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12267$as_echo_n "checking for $ac_word... " >&6; } 12268if ${ac_cv_prog_CXX+:} false; then : 12269 $as_echo_n "(cached) " >&6 12270else 12271 if test -n "$CXX"; then 12272 ac_cv_prog_CXX="$CXX" # Let the user override the test. 12273else 12274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12275for as_dir in $PATH 12276do 12277 IFS=$as_save_IFS 12278 test -z "$as_dir" && as_dir=. 12279 for ac_exec_ext in '' $ac_executable_extensions; do 12280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12281 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 12282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12283 break 2 12284 fi 12285done 12286 done 12287IFS=$as_save_IFS 12288 12289fi 12290fi 12291CXX=$ac_cv_prog_CXX 12292if test -n "$CXX"; then 12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 12294$as_echo "$CXX" >&6; } 12295else 12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12297$as_echo "no" >&6; } 12298fi 12299 12300 12301 test -n "$CXX" && break 12302 done 12303fi 12304if test -z "$CXX"; then 12305 ac_ct_CXX=$CXX 12306 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 12307do 12308 # Extract the first word of "$ac_prog", so it can be a program name with args. 12309set dummy $ac_prog; ac_word=$2 12310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12311$as_echo_n "checking for $ac_word... " >&6; } 12312if ${ac_cv_prog_ac_ct_CXX+:} false; then : 12313 $as_echo_n "(cached) " >&6 12314else 12315 if test -n "$ac_ct_CXX"; then 12316 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 12317else 12318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12319for as_dir in $PATH 12320do 12321 IFS=$as_save_IFS 12322 test -z "$as_dir" && as_dir=. 12323 for ac_exec_ext in '' $ac_executable_extensions; do 12324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12325 ac_cv_prog_ac_ct_CXX="$ac_prog" 12326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12327 break 2 12328 fi 12329done 12330 done 12331IFS=$as_save_IFS 12332 12333fi 12334fi 12335ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 12336if test -n "$ac_ct_CXX"; then 12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 12338$as_echo "$ac_ct_CXX" >&6; } 12339else 12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12341$as_echo "no" >&6; } 12342fi 12343 12344 12345 test -n "$ac_ct_CXX" && break 12346done 12347 12348 if test "x$ac_ct_CXX" = x; then 12349 CXX="g++" 12350 else 12351 case $cross_compiling:$ac_tool_warned in 12352yes:) 12353{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12354$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12355ac_tool_warned=yes ;; 12356esac 12357 CXX=$ac_ct_CXX 12358 fi 12359fi 12360 12361 fi 12362fi 12363# Provide some information about the compiler. 12364$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 12365set X $ac_compile 12366ac_compiler=$2 12367for ac_option in --version -v -V -qversion; do 12368 { { ac_try="$ac_compiler $ac_option >&5" 12369case "(($ac_try" in 12370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12371 *) ac_try_echo=$ac_try;; 12372esac 12373eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12374$as_echo "$ac_try_echo"; } >&5 12375 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12376 ac_status=$? 12377 if test -s conftest.err; then 12378 sed '10a\ 12379... rest of stderr output deleted ... 12380 10q' conftest.err >conftest.er1 12381 cat conftest.er1 >&5 12382 fi 12383 rm -f conftest.er1 conftest.err 12384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12385 test $ac_status = 0; } 12386done 12387 12388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 12389$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 12390if ${ac_cv_cxx_compiler_gnu+:} false; then : 12391 $as_echo_n "(cached) " >&6 12392else 12393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12394/* end confdefs.h. */ 12395 12396int 12397main () 12398{ 12399#ifndef __GNUC__ 12400 choke me 12401#endif 12402 12403 ; 12404 return 0; 12405} 12406_ACEOF 12407if ac_fn_cxx_try_compile "$LINENO"; then : 12408 ac_compiler_gnu=yes 12409else 12410 ac_compiler_gnu=no 12411fi 12412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12413ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 12414 12415fi 12416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 12417$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 12418if test $ac_compiler_gnu = yes; then 12419 GXX=yes 12420else 12421 GXX= 12422fi 12423ac_test_CXXFLAGS=${CXXFLAGS+set} 12424ac_save_CXXFLAGS=$CXXFLAGS 12425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 12426$as_echo_n "checking whether $CXX accepts -g... " >&6; } 12427if ${ac_cv_prog_cxx_g+:} false; then : 12428 $as_echo_n "(cached) " >&6 12429else 12430 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 12431 ac_cxx_werror_flag=yes 12432 ac_cv_prog_cxx_g=no 12433 CXXFLAGS="-g" 12434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12435/* end confdefs.h. */ 12436 12437int 12438main () 12439{ 12440 12441 ; 12442 return 0; 12443} 12444_ACEOF 12445if ac_fn_cxx_try_compile "$LINENO"; then : 12446 ac_cv_prog_cxx_g=yes 12447else 12448 CXXFLAGS="" 12449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12450/* end confdefs.h. */ 12451 12452int 12453main () 12454{ 12455 12456 ; 12457 return 0; 12458} 12459_ACEOF 12460if ac_fn_cxx_try_compile "$LINENO"; then : 12461 12462else 12463 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 12464 CXXFLAGS="-g" 12465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12466/* end confdefs.h. */ 12467 12468int 12469main () 12470{ 12471 12472 ; 12473 return 0; 12474} 12475_ACEOF 12476if ac_fn_cxx_try_compile "$LINENO"; then : 12477 ac_cv_prog_cxx_g=yes 12478fi 12479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12480fi 12481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12482fi 12483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12484 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 12485fi 12486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 12487$as_echo "$ac_cv_prog_cxx_g" >&6; } 12488if test "$ac_test_CXXFLAGS" = set; then 12489 CXXFLAGS=$ac_save_CXXFLAGS 12490elif test $ac_cv_prog_cxx_g = yes; then 12491 if test "$GXX" = yes; then 12492 CXXFLAGS="-g -O2" 12493 else 12494 CXXFLAGS="-g" 12495 fi 12496else 12497 if test "$GXX" = yes; then 12498 CXXFLAGS="-O2" 12499 else 12500 CXXFLAGS= 12501 fi 12502fi 12503ac_ext=c 12504ac_cpp='$CPP $CPPFLAGS' 12505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12507ac_compiler_gnu=$ac_cv_c_compiler_gnu 12508 12509depcc="$CXX" am_compiler_list= 12510 12511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 12512$as_echo_n "checking dependency style of $depcc... " >&6; } 12513if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 12514 $as_echo_n "(cached) " >&6 12515else 12516 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 12517 # We make a subdir and do the tests there. Otherwise we can end up 12518 # making bogus files that we don't know about and never remove. For 12519 # instance it was reported that on HP-UX the gcc test will end up 12520 # making a dummy file named 'D' -- because '-MD' means "put the output 12521 # in D". 12522 rm -rf conftest.dir 12523 mkdir conftest.dir 12524 # Copy depcomp to subdir because otherwise we won't find it if we're 12525 # using a relative directory. 12526 cp "$am_depcomp" conftest.dir 12527 cd conftest.dir 12528 # We will build objects and dependencies in a subdirectory because 12529 # it helps to detect inapplicable dependency modes. For instance 12530 # both Tru64's cc and ICC support -MD to output dependencies as a 12531 # side effect of compilation, but ICC will put the dependencies in 12532 # the current directory while Tru64 will put them in the object 12533 # directory. 12534 mkdir sub 12535 12536 am_cv_CXX_dependencies_compiler_type=none 12537 if test "$am_compiler_list" = ""; then 12538 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 12539 fi 12540 am__universal=false 12541 case " $depcc " in #( 12542 *\ -arch\ *\ -arch\ *) am__universal=true ;; 12543 esac 12544 12545 for depmode in $am_compiler_list; do 12546 # Setup a source with many dependencies, because some compilers 12547 # like to wrap large dependency lists on column 80 (with \), and 12548 # we should not choose a depcomp mode which is confused by this. 12549 # 12550 # We need to recreate these files for each test, as the compiler may 12551 # overwrite some of them when testing with obscure command lines. 12552 # This happens at least with the AIX C compiler. 12553 : > sub/conftest.c 12554 for i in 1 2 3 4 5 6; do 12555 echo '#include "conftst'$i'.h"' >> sub/conftest.c 12556 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 12557 # Solaris 10 /bin/sh. 12558 echo '/* dummy */' > sub/conftst$i.h 12559 done 12560 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 12561 12562 # We check with '-c' and '-o' for the sake of the "dashmstdout" 12563 # mode. It turns out that the SunPro C++ compiler does not properly 12564 # handle '-M -o', and we need to detect this. Also, some Intel 12565 # versions had trouble with output in subdirs. 12566 am__obj=sub/conftest.${OBJEXT-o} 12567 am__minus_obj="-o $am__obj" 12568 case $depmode in 12569 gcc) 12570 # This depmode causes a compiler race in universal mode. 12571 test "$am__universal" = false || continue 12572 ;; 12573 nosideeffect) 12574 # After this tag, mechanisms are not by side-effect, so they'll 12575 # only be used when explicitly requested. 12576 if test "x$enable_dependency_tracking" = xyes; then 12577 continue 12578 else 12579 break 12580 fi 12581 ;; 12582 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 12583 # This compiler won't grok '-c -o', but also, the minuso test has 12584 # not run yet. These depmodes are late enough in the game, and 12585 # so weak that their functioning should not be impacted. 12586 am__obj=conftest.${OBJEXT-o} 12587 am__minus_obj= 12588 ;; 12589 none) break ;; 12590 esac 12591 if depmode=$depmode \ 12592 source=sub/conftest.c object=$am__obj \ 12593 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 12594 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 12595 >/dev/null 2>conftest.err && 12596 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 12597 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 12598 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 12599 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 12600 # icc doesn't choke on unknown options, it will just issue warnings 12601 # or remarks (even with -Werror). So we grep stderr for any message 12602 # that says an option was ignored or not supported. 12603 # When given -MP, icc 7.0 and 7.1 complain thusly: 12604 # icc: Command line warning: ignoring option '-M'; no argument required 12605 # The diagnosis changed in icc 8.0: 12606 # icc: Command line remark: option '-MP' not supported 12607 if (grep 'ignoring option' conftest.err || 12608 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 12609 am_cv_CXX_dependencies_compiler_type=$depmode 12610 break 12611 fi 12612 fi 12613 done 12614 12615 cd .. 12616 rm -rf conftest.dir 12617else 12618 am_cv_CXX_dependencies_compiler_type=none 12619fi 12620 12621fi 12622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 12623$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 12624CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 12625 12626 if 12627 test "x$enable_dependency_tracking" != xno \ 12628 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 12629 am__fastdepCXX_TRUE= 12630 am__fastdepCXX_FALSE='#' 12631else 12632 am__fastdepCXX_TRUE='#' 12633 am__fastdepCXX_FALSE= 12634fi 12635 12636 12637 12638 12639func_stripname_cnf () 12640{ 12641 case ${2} in 12642 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 12643 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 12644 esac 12645} # func_stripname_cnf 12646 12647 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 12648 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 12649 (test "X$CXX" != "Xg++"))) ; then 12650 ac_ext=cpp 12651ac_cpp='$CXXCPP $CPPFLAGS' 12652ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12653ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12654ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 12656$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 12657if test -z "$CXXCPP"; then 12658 if ${ac_cv_prog_CXXCPP+:} false; then : 12659 $as_echo_n "(cached) " >&6 12660else 12661 # Double quotes because CXXCPP needs to be expanded 12662 for CXXCPP in "$CXX -E" "/lib/cpp" 12663 do 12664 ac_preproc_ok=false 12665for ac_cxx_preproc_warn_flag in '' yes 12666do 12667 # Use a header file that comes with gcc, so configuring glibc 12668 # with a fresh cross-compiler works. 12669 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12670 # <limits.h> exists even on freestanding compilers. 12671 # On the NeXT, cc -E runs the code through the compiler's parser, 12672 # not just through cpp. "Syntax error" is here to catch this case. 12673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12674/* end confdefs.h. */ 12675#ifdef __STDC__ 12676# include <limits.h> 12677#else 12678# include <assert.h> 12679#endif 12680 Syntax error 12681_ACEOF 12682if ac_fn_cxx_try_cpp "$LINENO"; then : 12683 12684else 12685 # Broken: fails on valid input. 12686continue 12687fi 12688rm -f conftest.err conftest.i conftest.$ac_ext 12689 12690 # OK, works on sane cases. Now check whether nonexistent headers 12691 # can be detected and how. 12692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12693/* end confdefs.h. */ 12694#include <ac_nonexistent.h> 12695_ACEOF 12696if ac_fn_cxx_try_cpp "$LINENO"; then : 12697 # Broken: success on invalid input. 12698continue 12699else 12700 # Passes both tests. 12701ac_preproc_ok=: 12702break 12703fi 12704rm -f conftest.err conftest.i conftest.$ac_ext 12705 12706done 12707# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12708rm -f conftest.i conftest.err conftest.$ac_ext 12709if $ac_preproc_ok; then : 12710 break 12711fi 12712 12713 done 12714 ac_cv_prog_CXXCPP=$CXXCPP 12715 12716fi 12717 CXXCPP=$ac_cv_prog_CXXCPP 12718else 12719 ac_cv_prog_CXXCPP=$CXXCPP 12720fi 12721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 12722$as_echo "$CXXCPP" >&6; } 12723ac_preproc_ok=false 12724for ac_cxx_preproc_warn_flag in '' yes 12725do 12726 # Use a header file that comes with gcc, so configuring glibc 12727 # with a fresh cross-compiler works. 12728 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12729 # <limits.h> exists even on freestanding compilers. 12730 # On the NeXT, cc -E runs the code through the compiler's parser, 12731 # not just through cpp. "Syntax error" is here to catch this case. 12732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12733/* end confdefs.h. */ 12734#ifdef __STDC__ 12735# include <limits.h> 12736#else 12737# include <assert.h> 12738#endif 12739 Syntax error 12740_ACEOF 12741if ac_fn_cxx_try_cpp "$LINENO"; then : 12742 12743else 12744 # Broken: fails on valid input. 12745continue 12746fi 12747rm -f conftest.err conftest.i conftest.$ac_ext 12748 12749 # OK, works on sane cases. Now check whether nonexistent headers 12750 # can be detected and how. 12751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12752/* end confdefs.h. */ 12753#include <ac_nonexistent.h> 12754_ACEOF 12755if ac_fn_cxx_try_cpp "$LINENO"; then : 12756 # Broken: success on invalid input. 12757continue 12758else 12759 # Passes both tests. 12760ac_preproc_ok=: 12761break 12762fi 12763rm -f conftest.err conftest.i conftest.$ac_ext 12764 12765done 12766# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12767rm -f conftest.i conftest.err conftest.$ac_ext 12768if $ac_preproc_ok; then : 12769 12770else 12771 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12772$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12773as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 12774See \`config.log' for more details" "$LINENO" 5; } 12775fi 12776 12777ac_ext=c 12778ac_cpp='$CPP $CPPFLAGS' 12779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12781ac_compiler_gnu=$ac_cv_c_compiler_gnu 12782 12783else 12784 _lt_caught_CXX_error=yes 12785fi 12786 12787ac_ext=cpp 12788ac_cpp='$CXXCPP $CPPFLAGS' 12789ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12790ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12791ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12792 12793archive_cmds_need_lc_CXX=no 12794allow_undefined_flag_CXX= 12795always_export_symbols_CXX=no 12796archive_expsym_cmds_CXX= 12797compiler_needs_object_CXX=no 12798export_dynamic_flag_spec_CXX= 12799hardcode_direct_CXX=no 12800hardcode_direct_absolute_CXX=no 12801hardcode_libdir_flag_spec_CXX= 12802hardcode_libdir_flag_spec_ld_CXX= 12803hardcode_libdir_separator_CXX= 12804hardcode_minus_L_CXX=no 12805hardcode_shlibpath_var_CXX=unsupported 12806hardcode_automatic_CXX=no 12807inherit_rpath_CXX=no 12808module_cmds_CXX= 12809module_expsym_cmds_CXX= 12810link_all_deplibs_CXX=unknown 12811old_archive_cmds_CXX=$old_archive_cmds 12812reload_flag_CXX=$reload_flag 12813reload_cmds_CXX=$reload_cmds 12814no_undefined_flag_CXX= 12815whole_archive_flag_spec_CXX= 12816enable_shared_with_static_runtimes_CXX=no 12817 12818# Source file extension for C++ test sources. 12819ac_ext=cpp 12820 12821# Object file extension for compiled C++ test sources. 12822objext=o 12823objext_CXX=$objext 12824 12825# No sense in running all these tests if we already determined that 12826# the CXX compiler isn't working. Some variables (like enable_shared) 12827# are currently assumed to apply to all compilers on this platform, 12828# and will be corrupted by setting them based on a non-working compiler. 12829if test "$_lt_caught_CXX_error" != yes; then 12830 # Code to be used in simple compile tests 12831 lt_simple_compile_test_code="int some_variable = 0;" 12832 12833 # Code to be used in simple link tests 12834 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 12835 12836 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12837 12838 12839 12840 12841 12842 12843# If no C compiler was specified, use CC. 12844LTCC=${LTCC-"$CC"} 12845 12846# If no C compiler flags were specified, use CFLAGS. 12847LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12848 12849# Allow CC to be a program name with arguments. 12850compiler=$CC 12851 12852 12853 # save warnings/boilerplate of simple test code 12854 ac_outfile=conftest.$ac_objext 12855echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12856eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12857_lt_compiler_boilerplate=`cat conftest.err` 12858$RM conftest* 12859 12860 ac_outfile=conftest.$ac_objext 12861echo "$lt_simple_link_test_code" >conftest.$ac_ext 12862eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12863_lt_linker_boilerplate=`cat conftest.err` 12864$RM -r conftest* 12865 12866 12867 # Allow CC to be a program name with arguments. 12868 lt_save_CC=$CC 12869 lt_save_CFLAGS=$CFLAGS 12870 lt_save_LD=$LD 12871 lt_save_GCC=$GCC 12872 GCC=$GXX 12873 lt_save_with_gnu_ld=$with_gnu_ld 12874 lt_save_path_LD=$lt_cv_path_LD 12875 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12876 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12877 else 12878 $as_unset lt_cv_prog_gnu_ld 12879 fi 12880 if test -n "${lt_cv_path_LDCXX+set}"; then 12881 lt_cv_path_LD=$lt_cv_path_LDCXX 12882 else 12883 $as_unset lt_cv_path_LD 12884 fi 12885 test -z "${LDCXX+set}" || LD=$LDCXX 12886 CC=${CXX-"c++"} 12887 CFLAGS=$CXXFLAGS 12888 compiler=$CC 12889 compiler_CXX=$CC 12890 for cc_temp in $compiler""; do 12891 case $cc_temp in 12892 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12893 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12894 \-*) ;; 12895 *) break;; 12896 esac 12897done 12898cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 12899 12900 12901 if test -n "$compiler"; then 12902 # We don't want -fno-exception when compiling C++ code, so set the 12903 # no_builtin_flag separately 12904 if test "$GXX" = yes; then 12905 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12906 else 12907 lt_prog_compiler_no_builtin_flag_CXX= 12908 fi 12909 12910 if test "$GXX" = yes; then 12911 # Set up default GNU C++ configuration 12912 12913 12914 12915# Check whether --with-gnu-ld was given. 12916if test "${with_gnu_ld+set}" = set; then : 12917 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12918else 12919 with_gnu_ld=no 12920fi 12921 12922ac_prog=ld 12923if test "$GCC" = yes; then 12924 # Check if gcc -print-prog-name=ld gives a path. 12925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12926$as_echo_n "checking for ld used by $CC... " >&6; } 12927 case $host in 12928 *-*-mingw*) 12929 # gcc leaves a trailing carriage return which upsets mingw 12930 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12931 *) 12932 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12933 esac 12934 case $ac_prog in 12935 # Accept absolute paths. 12936 [\\/]* | ?:[\\/]*) 12937 re_direlt='/[^/][^/]*/\.\./' 12938 # Canonicalize the pathname of ld 12939 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12940 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12941 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12942 done 12943 test -z "$LD" && LD="$ac_prog" 12944 ;; 12945 "") 12946 # If it fails, then pretend we aren't using GCC. 12947 ac_prog=ld 12948 ;; 12949 *) 12950 # If it is relative, then search for the first ld in PATH. 12951 with_gnu_ld=unknown 12952 ;; 12953 esac 12954elif test "$with_gnu_ld" = yes; then 12955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12956$as_echo_n "checking for GNU ld... " >&6; } 12957else 12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12959$as_echo_n "checking for non-GNU ld... " >&6; } 12960fi 12961if ${lt_cv_path_LD+:} false; then : 12962 $as_echo_n "(cached) " >&6 12963else 12964 if test -z "$LD"; then 12965 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12966 for ac_dir in $PATH; do 12967 IFS="$lt_save_ifs" 12968 test -z "$ac_dir" && ac_dir=. 12969 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12970 lt_cv_path_LD="$ac_dir/$ac_prog" 12971 # Check to see if the program is GNU ld. I'd rather use --version, 12972 # but apparently some variants of GNU ld only accept -v. 12973 # Break only if it was the GNU/non-GNU ld that we prefer. 12974 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12975 *GNU* | *'with BFD'*) 12976 test "$with_gnu_ld" != no && break 12977 ;; 12978 *) 12979 test "$with_gnu_ld" != yes && break 12980 ;; 12981 esac 12982 fi 12983 done 12984 IFS="$lt_save_ifs" 12985else 12986 lt_cv_path_LD="$LD" # Let the user override the test with a path. 12987fi 12988fi 12989 12990LD="$lt_cv_path_LD" 12991if test -n "$LD"; then 12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12993$as_echo "$LD" >&6; } 12994else 12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12996$as_echo "no" >&6; } 12997fi 12998test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13000$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13001if ${lt_cv_prog_gnu_ld+:} false; then : 13002 $as_echo_n "(cached) " >&6 13003else 13004 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13005case `$LD -v 2>&1 </dev/null` in 13006*GNU* | *'with BFD'*) 13007 lt_cv_prog_gnu_ld=yes 13008 ;; 13009*) 13010 lt_cv_prog_gnu_ld=no 13011 ;; 13012esac 13013fi 13014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 13015$as_echo "$lt_cv_prog_gnu_ld" >&6; } 13016with_gnu_ld=$lt_cv_prog_gnu_ld 13017 13018 13019 13020 13021 13022 13023 13024 # Check if GNU C++ uses GNU ld as the underlying linker, since the 13025 # archiving commands below assume that GNU ld is being used. 13026 if test "$with_gnu_ld" = yes; then 13027 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13028 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13029 13030 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13031 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13032 13033 # If archive_cmds runs LD, not CC, wlarc should be empty 13034 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 13035 # investigate it a little bit more. (MM) 13036 wlarc='${wl}' 13037 13038 # ancient GNU ld didn't support --whole-archive et. al. 13039 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 13040 $GREP 'no-whole-archive' > /dev/null; then 13041 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13042 else 13043 whole_archive_flag_spec_CXX= 13044 fi 13045 else 13046 with_gnu_ld=no 13047 wlarc= 13048 13049 # A generic and very simple default shared library creation 13050 # command for GNU C++ for the case where it uses the native 13051 # linker, instead of GNU ld. If possible, this setting should 13052 # overridden to take advantage of the native linker features on 13053 # the platform it is being used on. 13054 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13055 fi 13056 13057 # Commands to make compiler produce verbose output that lists 13058 # what "hidden" libraries, object files and flags are used when 13059 # linking a shared library. 13060 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13061 13062 else 13063 GXX=no 13064 with_gnu_ld=no 13065 wlarc= 13066 fi 13067 13068 # PORTME: fill in a description of your system's C++ link characteristics 13069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13070$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13071 ld_shlibs_CXX=yes 13072 case $host_os in 13073 aix3*) 13074 # FIXME: insert proper C++ library support 13075 ld_shlibs_CXX=no 13076 ;; 13077 aix[4-9]*) 13078 if test "$host_cpu" = ia64; then 13079 # On IA64, the linker does run time linking by default, so we don't 13080 # have to do anything special. 13081 aix_use_runtimelinking=no 13082 exp_sym_flag='-Bexport' 13083 no_entry_flag="" 13084 else 13085 aix_use_runtimelinking=no 13086 13087 # Test if we are trying to use run time linking or normal 13088 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13089 # need to do runtime linking. 13090 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13091 for ld_flag in $LDFLAGS; do 13092 case $ld_flag in 13093 *-brtl*) 13094 aix_use_runtimelinking=yes 13095 break 13096 ;; 13097 esac 13098 done 13099 ;; 13100 esac 13101 13102 exp_sym_flag='-bexport' 13103 no_entry_flag='-bnoentry' 13104 fi 13105 13106 # When large executables or shared objects are built, AIX ld can 13107 # have problems creating the table of contents. If linking a library 13108 # or program results in "error TOC overflow" add -mminimal-toc to 13109 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13110 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13111 13112 archive_cmds_CXX='' 13113 hardcode_direct_CXX=yes 13114 hardcode_direct_absolute_CXX=yes 13115 hardcode_libdir_separator_CXX=':' 13116 link_all_deplibs_CXX=yes 13117 file_list_spec_CXX='${wl}-f,' 13118 13119 if test "$GXX" = yes; then 13120 case $host_os in aix4.[012]|aix4.[012].*) 13121 # We only want to do this on AIX 4.2 and lower, the check 13122 # below for broken collect2 doesn't work under 4.3+ 13123 collect2name=`${CC} -print-prog-name=collect2` 13124 if test -f "$collect2name" && 13125 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13126 then 13127 # We have reworked collect2 13128 : 13129 else 13130 # We have old collect2 13131 hardcode_direct_CXX=unsupported 13132 # It fails to find uninstalled libraries when the uninstalled 13133 # path is not listed in the libpath. Setting hardcode_minus_L 13134 # to unsupported forces relinking 13135 hardcode_minus_L_CXX=yes 13136 hardcode_libdir_flag_spec_CXX='-L$libdir' 13137 hardcode_libdir_separator_CXX= 13138 fi 13139 esac 13140 shared_flag='-shared' 13141 if test "$aix_use_runtimelinking" = yes; then 13142 shared_flag="$shared_flag "'${wl}-G' 13143 fi 13144 else 13145 # not using gcc 13146 if test "$host_cpu" = ia64; then 13147 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13148 # chokes on -Wl,-G. The following line is correct: 13149 shared_flag='-G' 13150 else 13151 if test "$aix_use_runtimelinking" = yes; then 13152 shared_flag='${wl}-G' 13153 else 13154 shared_flag='${wl}-bM:SRE' 13155 fi 13156 fi 13157 fi 13158 13159 export_dynamic_flag_spec_CXX='${wl}-bexpall' 13160 # It seems that -bexpall does not export symbols beginning with 13161 # underscore (_), so it is better to generate a list of symbols to 13162 # export. 13163 always_export_symbols_CXX=yes 13164 if test "$aix_use_runtimelinking" = yes; then 13165 # Warning - without using the other runtime loading flags (-brtl), 13166 # -berok will link without error, but may produce a broken library. 13167 allow_undefined_flag_CXX='-berok' 13168 # Determine the default libpath from the value encoded in an empty 13169 # executable. 13170 if test "${lt_cv_aix_libpath+set}" = set; then 13171 aix_libpath=$lt_cv_aix_libpath 13172else 13173 if ${lt_cv_aix_libpath__CXX+:} false; then : 13174 $as_echo_n "(cached) " >&6 13175else 13176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13177/* end confdefs.h. */ 13178 13179int 13180main () 13181{ 13182 13183 ; 13184 return 0; 13185} 13186_ACEOF 13187if ac_fn_cxx_try_link "$LINENO"; then : 13188 13189 lt_aix_libpath_sed=' 13190 /Import File Strings/,/^$/ { 13191 /^0/ { 13192 s/^0 *\([^ ]*\) *$/\1/ 13193 p 13194 } 13195 }' 13196 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13197 # Check for a 64-bit object if we didn't find anything. 13198 if test -z "$lt_cv_aix_libpath__CXX"; then 13199 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13200 fi 13201fi 13202rm -f core conftest.err conftest.$ac_objext \ 13203 conftest$ac_exeext conftest.$ac_ext 13204 if test -z "$lt_cv_aix_libpath__CXX"; then 13205 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 13206 fi 13207 13208fi 13209 13210 aix_libpath=$lt_cv_aix_libpath__CXX 13211fi 13212 13213 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 13214 13215 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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 13216 else 13217 if test "$host_cpu" = ia64; then 13218 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 13219 allow_undefined_flag_CXX="-z nodefs" 13220 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" 13221 else 13222 # Determine the default libpath from the value encoded in an 13223 # empty executable. 13224 if test "${lt_cv_aix_libpath+set}" = set; then 13225 aix_libpath=$lt_cv_aix_libpath 13226else 13227 if ${lt_cv_aix_libpath__CXX+:} false; then : 13228 $as_echo_n "(cached) " >&6 13229else 13230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13231/* end confdefs.h. */ 13232 13233int 13234main () 13235{ 13236 13237 ; 13238 return 0; 13239} 13240_ACEOF 13241if ac_fn_cxx_try_link "$LINENO"; then : 13242 13243 lt_aix_libpath_sed=' 13244 /Import File Strings/,/^$/ { 13245 /^0/ { 13246 s/^0 *\([^ ]*\) *$/\1/ 13247 p 13248 } 13249 }' 13250 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13251 # Check for a 64-bit object if we didn't find anything. 13252 if test -z "$lt_cv_aix_libpath__CXX"; then 13253 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13254 fi 13255fi 13256rm -f core conftest.err conftest.$ac_objext \ 13257 conftest$ac_exeext conftest.$ac_ext 13258 if test -z "$lt_cv_aix_libpath__CXX"; then 13259 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 13260 fi 13261 13262fi 13263 13264 aix_libpath=$lt_cv_aix_libpath__CXX 13265fi 13266 13267 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 13268 # Warning - without using the other run time loading flags, 13269 # -berok will link without error, but may produce a broken library. 13270 no_undefined_flag_CXX=' ${wl}-bernotok' 13271 allow_undefined_flag_CXX=' ${wl}-berok' 13272 if test "$with_gnu_ld" = yes; then 13273 # We only use this code for GNU lds that support --whole-archive. 13274 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13275 else 13276 # Exported symbols can be pulled into shared objects from archives 13277 whole_archive_flag_spec_CXX='$convenience' 13278 fi 13279 archive_cmds_need_lc_CXX=yes 13280 # This is similar to how AIX traditionally builds its shared 13281 # libraries. 13282 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' 13283 fi 13284 fi 13285 ;; 13286 13287 beos*) 13288 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13289 allow_undefined_flag_CXX=unsupported 13290 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13291 # support --undefined. This deserves some investigation. FIXME 13292 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13293 else 13294 ld_shlibs_CXX=no 13295 fi 13296 ;; 13297 13298 chorus*) 13299 case $cc_basename in 13300 *) 13301 # FIXME: insert proper C++ library support 13302 ld_shlibs_CXX=no 13303 ;; 13304 esac 13305 ;; 13306 13307 cygwin* | mingw* | pw32* | cegcc*) 13308 case $GXX,$cc_basename in 13309 ,cl* | no,cl*) 13310 # Native MSVC 13311 # hardcode_libdir_flag_spec is actually meaningless, as there is 13312 # no search path for DLLs. 13313 hardcode_libdir_flag_spec_CXX=' ' 13314 allow_undefined_flag_CXX=unsupported 13315 always_export_symbols_CXX=yes 13316 file_list_spec_CXX='@' 13317 # Tell ltmain to make .lib files, not .a files. 13318 libext=lib 13319 # Tell ltmain to make .dll files, not .so files. 13320 shrext_cmds=".dll" 13321 # FIXME: Setting linknames here is a bad hack. 13322 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 13323 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13324 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 13325 else 13326 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 13327 fi~ 13328 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13329 linknames=' 13330 # The linker will not automatically build a static lib if we build a DLL. 13331 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 13332 enable_shared_with_static_runtimes_CXX=yes 13333 # Don't use ranlib 13334 old_postinstall_cmds_CXX='chmod 644 $oldlib' 13335 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 13336 lt_tool_outputfile="@TOOL_OUTPUT@"~ 13337 case $lt_outputfile in 13338 *.exe|*.EXE) ;; 13339 *) 13340 lt_outputfile="$lt_outputfile.exe" 13341 lt_tool_outputfile="$lt_tool_outputfile.exe" 13342 ;; 13343 esac~ 13344 func_to_tool_file "$lt_outputfile"~ 13345 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 13346 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 13347 $RM "$lt_outputfile.manifest"; 13348 fi' 13349 ;; 13350 *) 13351 # g++ 13352 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 13353 # as there is no search path for DLLs. 13354 hardcode_libdir_flag_spec_CXX='-L$libdir' 13355 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 13356 allow_undefined_flag_CXX=unsupported 13357 always_export_symbols_CXX=no 13358 enable_shared_with_static_runtimes_CXX=yes 13359 13360 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13361 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' 13362 # If the export-symbols file already is a .def file (1st line 13363 # is EXPORTS), use it as is; otherwise, prepend... 13364 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13365 cp $export_symbols $output_objdir/$soname.def; 13366 else 13367 echo EXPORTS > $output_objdir/$soname.def; 13368 cat $export_symbols >> $output_objdir/$soname.def; 13369 fi~ 13370 $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' 13371 else 13372 ld_shlibs_CXX=no 13373 fi 13374 ;; 13375 esac 13376 ;; 13377 darwin* | rhapsody*) 13378 13379 13380 archive_cmds_need_lc_CXX=no 13381 hardcode_direct_CXX=no 13382 hardcode_automatic_CXX=yes 13383 hardcode_shlibpath_var_CXX=unsupported 13384 if test "$lt_cv_ld_force_load" = "yes"; then 13385 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 13386 else 13387 whole_archive_flag_spec_CXX='' 13388 fi 13389 link_all_deplibs_CXX=yes 13390 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 13391 case $cc_basename in 13392 ifort*) _lt_dar_can_shared=yes ;; 13393 *) _lt_dar_can_shared=$GCC ;; 13394 esac 13395 if test "$_lt_dar_can_shared" = "yes"; then 13396 output_verbose_link_cmd=func_echo_all 13397 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}" 13398 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 13399 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}" 13400 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}" 13401 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 13402 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}" 13403 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}" 13404 fi 13405 13406 else 13407 ld_shlibs_CXX=no 13408 fi 13409 13410 ;; 13411 13412 dgux*) 13413 case $cc_basename in 13414 ec++*) 13415 # FIXME: insert proper C++ library support 13416 ld_shlibs_CXX=no 13417 ;; 13418 ghcx*) 13419 # Green Hills C++ Compiler 13420 # FIXME: insert proper C++ library support 13421 ld_shlibs_CXX=no 13422 ;; 13423 *) 13424 # FIXME: insert proper C++ library support 13425 ld_shlibs_CXX=no 13426 ;; 13427 esac 13428 ;; 13429 13430 freebsd[12]*) 13431 # C++ shared libraries reported to be fairly broken before 13432 # switch to ELF 13433 ld_shlibs_CXX=no 13434 ;; 13435 13436 freebsd-elf*) 13437 archive_cmds_need_lc_CXX=no 13438 ;; 13439 13440 freebsd* | dragonfly*) 13441 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 13442 # conventions 13443 ld_shlibs_CXX=yes 13444 ;; 13445 13446 gnu*) 13447 ;; 13448 13449 haiku*) 13450 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13451 link_all_deplibs_CXX=yes 13452 ;; 13453 13454 hpux9*) 13455 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13456 hardcode_libdir_separator_CXX=: 13457 export_dynamic_flag_spec_CXX='${wl}-E' 13458 hardcode_direct_CXX=yes 13459 hardcode_minus_L_CXX=yes # Not in the search PATH, 13460 # but as the default 13461 # location of the library. 13462 13463 case $cc_basename in 13464 CC*) 13465 # FIXME: insert proper C++ library support 13466 ld_shlibs_CXX=no 13467 ;; 13468 aCC*) 13469 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' 13470 # Commands to make compiler produce verbose output that lists 13471 # what "hidden" libraries, object files and flags are used when 13472 # linking a shared library. 13473 # 13474 # There doesn't appear to be a way to prevent this compiler from 13475 # explicitly linking system object files so we need to strip them 13476 # from the output so that they don't get included in the library 13477 # dependencies. 13478 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 13479 ;; 13480 *) 13481 if test "$GXX" = yes; then 13482 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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' 13483 else 13484 # FIXME: insert proper C++ library support 13485 ld_shlibs_CXX=no 13486 fi 13487 ;; 13488 esac 13489 ;; 13490 13491 hpux10*|hpux11*) 13492 if test $with_gnu_ld = no; then 13493 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13494 hardcode_libdir_separator_CXX=: 13495 13496 case $host_cpu in 13497 hppa*64*|ia64*) 13498 ;; 13499 *) 13500 export_dynamic_flag_spec_CXX='${wl}-E' 13501 ;; 13502 esac 13503 fi 13504 case $host_cpu in 13505 hppa*64*|ia64*) 13506 hardcode_direct_CXX=no 13507 hardcode_shlibpath_var_CXX=no 13508 ;; 13509 *) 13510 hardcode_direct_CXX=yes 13511 hardcode_direct_absolute_CXX=yes 13512 hardcode_minus_L_CXX=yes # Not in the search PATH, 13513 # but as the default 13514 # location of the library. 13515 ;; 13516 esac 13517 13518 case $cc_basename in 13519 CC*) 13520 # FIXME: insert proper C++ library support 13521 ld_shlibs_CXX=no 13522 ;; 13523 aCC*) 13524 case $host_cpu in 13525 hppa*64*) 13526 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13527 ;; 13528 ia64*) 13529 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13530 ;; 13531 *) 13532 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13533 ;; 13534 esac 13535 # Commands to make compiler produce verbose output that lists 13536 # what "hidden" libraries, object files and flags are used when 13537 # linking a shared library. 13538 # 13539 # There doesn't appear to be a way to prevent this compiler from 13540 # explicitly linking system object files so we need to strip them 13541 # from the output so that they don't get included in the library 13542 # dependencies. 13543 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; func_echo_all "$list"' 13544 ;; 13545 *) 13546 if test "$GXX" = yes; then 13547 if test $with_gnu_ld = no; then 13548 case $host_cpu in 13549 hppa*64*) 13550 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13551 ;; 13552 ia64*) 13553 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13554 ;; 13555 *) 13556 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13557 ;; 13558 esac 13559 fi 13560 else 13561 # FIXME: insert proper C++ library support 13562 ld_shlibs_CXX=no 13563 fi 13564 ;; 13565 esac 13566 ;; 13567 13568 interix[3-9]*) 13569 hardcode_direct_CXX=no 13570 hardcode_shlibpath_var_CXX=no 13571 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13572 export_dynamic_flag_spec_CXX='${wl}-E' 13573 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13574 # Instead, shared libraries are loaded at an image base (0x10000000 by 13575 # default) and relocated if they conflict, which is a slow very memory 13576 # consuming and fragmenting process. To avoid this, we pick a random, 13577 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13578 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13579 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' 13580 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' 13581 ;; 13582 irix5* | irix6*) 13583 case $cc_basename in 13584 CC*) 13585 # SGI C++ 13586 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 13587 13588 # Archives containing C++ object files must be created using 13589 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13590 # necessary to make sure instantiated templates are included 13591 # in the archive. 13592 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13593 ;; 13594 *) 13595 if test "$GXX" = yes; then 13596 if test "$with_gnu_ld" = no; then 13597 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 13598 else 13599 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' 13600 fi 13601 fi 13602 link_all_deplibs_CXX=yes 13603 ;; 13604 esac 13605 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13606 hardcode_libdir_separator_CXX=: 13607 inherit_rpath_CXX=yes 13608 ;; 13609 13610 linux* | k*bsd*-gnu | kopensolaris*-gnu) 13611 case $cc_basename in 13612 KCC*) 13613 # Kuck and Associates, Inc. (KAI) C++ Compiler 13614 13615 # KCC will only create a shared library if the output file 13616 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13617 # to its proper name (with version) after linking. 13618 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' 13619 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' 13620 # Commands to make compiler produce verbose output that lists 13621 # what "hidden" libraries, object files and flags are used when 13622 # linking a shared library. 13623 # 13624 # There doesn't appear to be a way to prevent this compiler from 13625 # explicitly linking system object files so we need to strip them 13626 # from the output so that they don't get included in the library 13627 # dependencies. 13628 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; func_echo_all "$list"' 13629 13630 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13631 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13632 13633 # Archives containing C++ object files must be created using 13634 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13635 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13636 ;; 13637 icpc* | ecpc* ) 13638 # Intel C++ 13639 with_gnu_ld=yes 13640 # version 8.0 and above of icpc choke on multiply defined symbols 13641 # if we add $predep_objects and $postdep_objects, however 7.1 and 13642 # earlier do not add the objects themselves. 13643 case `$CC -V 2>&1` in 13644 *"Version 7."*) 13645 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13646 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' 13647 ;; 13648 *) # Version 8.0 or newer 13649 tmp_idyn= 13650 case $host_cpu in 13651 ia64*) tmp_idyn=' -i_dynamic';; 13652 esac 13653 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13654 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' 13655 ;; 13656 esac 13657 archive_cmds_need_lc_CXX=no 13658 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13659 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13660 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13661 ;; 13662 pgCC* | pgcpp*) 13663 # Portland Group C++ compiler 13664 case `$CC -V` in 13665 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 13666 prelink_cmds_CXX='tpldir=Template.dir~ 13667 rm -rf $tpldir~ 13668 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 13669 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 13670 old_archive_cmds_CXX='tpldir=Template.dir~ 13671 rm -rf $tpldir~ 13672 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 13673 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 13674 $RANLIB $oldlib' 13675 archive_cmds_CXX='tpldir=Template.dir~ 13676 rm -rf $tpldir~ 13677 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13678 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13679 archive_expsym_cmds_CXX='tpldir=Template.dir~ 13680 rm -rf $tpldir~ 13681 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13682 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 13683 ;; 13684 *) # Version 6 and above use weak symbols 13685 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13686 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' 13687 ;; 13688 esac 13689 13690 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 13691 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13692 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 13693 ;; 13694 cxx*) 13695 # Compaq C++ 13696 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13697 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' 13698 13699 runpath_var=LD_RUN_PATH 13700 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13701 hardcode_libdir_separator_CXX=: 13702 13703 # Commands to make compiler produce verbose output that lists 13704 # what "hidden" libraries, object files and flags are used when 13705 # linking a shared library. 13706 # 13707 # There doesn't appear to be a way to prevent this compiler from 13708 # explicitly linking system object files so we need to strip them 13709 # from the output so that they don't get included in the library 13710 # dependencies. 13711 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed' 13712 ;; 13713 xl* | mpixl* | bgxl*) 13714 # IBM XL 8.0 on PPC, with GNU ld 13715 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13716 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13717 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13718 if test "x$supports_anon_versioning" = xyes; then 13719 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 13720 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13721 echo "local: *; };" >> $output_objdir/$libname.ver~ 13722 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13723 fi 13724 ;; 13725 *) 13726 case `$CC -V 2>&1 | sed 5q` in 13727 *Sun\ C*) 13728 # Sun C++ 5.9 13729 no_undefined_flag_CXX=' -zdefs' 13730 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13731 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' 13732 hardcode_libdir_flag_spec_CXX='-R$libdir' 13733 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 13734 compiler_needs_object_CXX=yes 13735 13736 # Not sure whether something based on 13737 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 13738 # would be better. 13739 output_verbose_link_cmd='func_echo_all' 13740 13741 # Archives containing C++ object files must be created using 13742 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13743 # necessary to make sure instantiated templates are included 13744 # in the archive. 13745 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13746 ;; 13747 esac 13748 ;; 13749 esac 13750 ;; 13751 13752 lynxos*) 13753 # FIXME: insert proper C++ library support 13754 ld_shlibs_CXX=no 13755 ;; 13756 13757 m88k*) 13758 # FIXME: insert proper C++ library support 13759 ld_shlibs_CXX=no 13760 ;; 13761 13762 mvs*) 13763 case $cc_basename in 13764 cxx*) 13765 # FIXME: insert proper C++ library support 13766 ld_shlibs_CXX=no 13767 ;; 13768 *) 13769 # FIXME: insert proper C++ library support 13770 ld_shlibs_CXX=no 13771 ;; 13772 esac 13773 ;; 13774 13775 netbsd*) 13776 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13777 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13778 wlarc= 13779 hardcode_libdir_flag_spec_CXX='-R$libdir' 13780 hardcode_direct_CXX=yes 13781 hardcode_shlibpath_var_CXX=no 13782 fi 13783 # Workaround some broken pre-1.5 toolchains 13784 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 13785 ;; 13786 13787 *nto* | *qnx*) 13788 ld_shlibs_CXX=yes 13789 ;; 13790 13791 openbsd2*) 13792 # C++ shared libraries are fairly broken 13793 ld_shlibs_CXX=no 13794 ;; 13795 13796 openbsd*) 13797 if test -f /usr/libexec/ld.so; then 13798 hardcode_direct_CXX=yes 13799 hardcode_shlibpath_var_CXX=no 13800 hardcode_direct_absolute_CXX=yes 13801 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13802 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13803 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13804 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 13805 export_dynamic_flag_spec_CXX='${wl}-E' 13806 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13807 fi 13808 output_verbose_link_cmd=func_echo_all 13809 else 13810 ld_shlibs_CXX=no 13811 fi 13812 ;; 13813 13814 osf3* | osf4* | osf5*) 13815 case $cc_basename in 13816 KCC*) 13817 # Kuck and Associates, Inc. (KAI) C++ Compiler 13818 13819 # KCC will only create a shared library if the output file 13820 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13821 # to its proper name (with version) after linking. 13822 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' 13823 13824 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13825 hardcode_libdir_separator_CXX=: 13826 13827 # Archives containing C++ object files must be created using 13828 # the KAI C++ compiler. 13829 case $host in 13830 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 13831 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 13832 esac 13833 ;; 13834 RCC*) 13835 # Rational C++ 2.4.1 13836 # FIXME: insert proper C++ library support 13837 ld_shlibs_CXX=no 13838 ;; 13839 cxx*) 13840 case $host in 13841 osf3*) 13842 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13843 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 13844 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13845 ;; 13846 *) 13847 allow_undefined_flag_CXX=' -expect_unresolved \*' 13848 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 13849 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13850 echo "-hidden">> $lib.exp~ 13851 $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~ 13852 $RM $lib.exp' 13853 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13854 ;; 13855 esac 13856 13857 hardcode_libdir_separator_CXX=: 13858 13859 # Commands to make compiler produce verbose output that lists 13860 # what "hidden" libraries, object files and flags are used when 13861 # linking a shared library. 13862 # 13863 # There doesn't appear to be a way to prevent this compiler from 13864 # explicitly linking system object files so we need to strip them 13865 # from the output so that they don't get included in the library 13866 # dependencies. 13867 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"' 13868 ;; 13869 *) 13870 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13871 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13872 case $host in 13873 osf3*) 13874 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 13875 ;; 13876 *) 13877 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 13878 ;; 13879 esac 13880 13881 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13882 hardcode_libdir_separator_CXX=: 13883 13884 # Commands to make compiler produce verbose output that lists 13885 # what "hidden" libraries, object files and flags are used when 13886 # linking a shared library. 13887 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13888 13889 else 13890 # FIXME: insert proper C++ library support 13891 ld_shlibs_CXX=no 13892 fi 13893 ;; 13894 esac 13895 ;; 13896 13897 psos*) 13898 # FIXME: insert proper C++ library support 13899 ld_shlibs_CXX=no 13900 ;; 13901 13902 sunos4*) 13903 case $cc_basename in 13904 CC*) 13905 # Sun C++ 4.x 13906 # FIXME: insert proper C++ library support 13907 ld_shlibs_CXX=no 13908 ;; 13909 lcc*) 13910 # Lucid 13911 # FIXME: insert proper C++ library support 13912 ld_shlibs_CXX=no 13913 ;; 13914 *) 13915 # FIXME: insert proper C++ library support 13916 ld_shlibs_CXX=no 13917 ;; 13918 esac 13919 ;; 13920 13921 solaris*) 13922 case $cc_basename in 13923 CC* | sunCC*) 13924 # Sun C++ 4.2, 5.x and Centerline C++ 13925 archive_cmds_need_lc_CXX=yes 13926 no_undefined_flag_CXX=' -zdefs' 13927 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13928 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13929 $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' 13930 13931 hardcode_libdir_flag_spec_CXX='-R$libdir' 13932 hardcode_shlibpath_var_CXX=no 13933 case $host_os in 13934 solaris2.[0-5] | solaris2.[0-5].*) ;; 13935 *) 13936 # The compiler driver will combine and reorder linker options, 13937 # but understands `-z linker_flag'. 13938 # Supported since Solaris 2.6 (maybe 2.5.1?) 13939 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 13940 ;; 13941 esac 13942 link_all_deplibs_CXX=yes 13943 13944 output_verbose_link_cmd='func_echo_all' 13945 13946 # Archives containing C++ object files must be created using 13947 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13948 # necessary to make sure instantiated templates are included 13949 # in the archive. 13950 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13951 ;; 13952 gcx*) 13953 # Green Hills C++ Compiler 13954 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13955 13956 # The C++ compiler must be used to create the archive. 13957 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 13958 ;; 13959 *) 13960 # GNU C++ compiler with Solaris linker 13961 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13962 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 13963 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 13964 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13965 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13966 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13967 13968 # Commands to make compiler produce verbose output that lists 13969 # what "hidden" libraries, object files and flags are used when 13970 # linking a shared library. 13971 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13972 else 13973 # g++ 2.7 appears to require `-G' NOT `-shared' on this 13974 # platform. 13975 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13976 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13977 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13978 13979 # Commands to make compiler produce verbose output that lists 13980 # what "hidden" libraries, object files and flags are used when 13981 # linking a shared library. 13982 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13983 fi 13984 13985 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 13986 case $host_os in 13987 solaris2.[0-5] | solaris2.[0-5].*) ;; 13988 *) 13989 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 13990 ;; 13991 esac 13992 fi 13993 ;; 13994 esac 13995 ;; 13996 13997 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13998 no_undefined_flag_CXX='${wl}-z,text' 13999 archive_cmds_need_lc_CXX=no 14000 hardcode_shlibpath_var_CXX=no 14001 runpath_var='LD_RUN_PATH' 14002 14003 case $cc_basename in 14004 CC*) 14005 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14006 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14007 ;; 14008 *) 14009 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14010 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14011 ;; 14012 esac 14013 ;; 14014 14015 sysv5* | sco3.2v5* | sco5v6*) 14016 # Note: We can NOT use -z defs as we might desire, because we do not 14017 # link with -lc, and that would cause any symbols used from libc to 14018 # always be unresolved, which means just about no library would 14019 # ever link correctly. If we're not using GNU ld we use -z text 14020 # though, which does catch some bad symbols but isn't as heavy-handed 14021 # as -z defs. 14022 no_undefined_flag_CXX='${wl}-z,text' 14023 allow_undefined_flag_CXX='${wl}-z,nodefs' 14024 archive_cmds_need_lc_CXX=no 14025 hardcode_shlibpath_var_CXX=no 14026 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 14027 hardcode_libdir_separator_CXX=':' 14028 link_all_deplibs_CXX=yes 14029 export_dynamic_flag_spec_CXX='${wl}-Bexport' 14030 runpath_var='LD_RUN_PATH' 14031 14032 case $cc_basename in 14033 CC*) 14034 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14035 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14036 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 14037 '"$old_archive_cmds_CXX" 14038 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 14039 '"$reload_cmds_CXX" 14040 ;; 14041 *) 14042 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14043 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14044 ;; 14045 esac 14046 ;; 14047 14048 tandem*) 14049 case $cc_basename in 14050 NCC*) 14051 # NonStop-UX NCC 3.20 14052 # FIXME: insert proper C++ library support 14053 ld_shlibs_CXX=no 14054 ;; 14055 *) 14056 # FIXME: insert proper C++ library support 14057 ld_shlibs_CXX=no 14058 ;; 14059 esac 14060 ;; 14061 14062 vxworks*) 14063 # FIXME: insert proper C++ library support 14064 ld_shlibs_CXX=no 14065 ;; 14066 14067 *) 14068 # FIXME: insert proper C++ library support 14069 ld_shlibs_CXX=no 14070 ;; 14071 esac 14072 14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14074$as_echo "$ld_shlibs_CXX" >&6; } 14075 test "$ld_shlibs_CXX" = no && can_build_shared=no 14076 14077 GCC_CXX="$GXX" 14078 LD_CXX="$LD" 14079 14080 ## CAVEAT EMPTOR: 14081 ## There is no encapsulation within the following macros, do not change 14082 ## the running order or otherwise move them around unless you know exactly 14083 ## what you are doing... 14084 # Dependencies to place before and after the object being linked: 14085predep_objects_CXX= 14086postdep_objects_CXX= 14087predeps_CXX= 14088postdeps_CXX= 14089compiler_lib_search_path_CXX= 14090 14091cat > conftest.$ac_ext <<_LT_EOF 14092class Foo 14093{ 14094public: 14095 Foo (void) { a = 0; } 14096private: 14097 int a; 14098}; 14099_LT_EOF 14100 14101 14102_lt_libdeps_save_CFLAGS=$CFLAGS 14103case "$CC $CFLAGS " in #( 14104*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 14105*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 14106esac 14107 14108if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14109 (eval $ac_compile) 2>&5 14110 ac_status=$? 14111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14112 test $ac_status = 0; }; then 14113 # Parse the compiler output and extract the necessary 14114 # objects, libraries and library flags. 14115 14116 # Sentinel used to keep track of whether or not we are before 14117 # the conftest object file. 14118 pre_test_object_deps_done=no 14119 14120 for p in `eval "$output_verbose_link_cmd"`; do 14121 case ${prev}${p} in 14122 14123 -L* | -R* | -l*) 14124 # Some compilers place space between "-{L,R}" and the path. 14125 # Remove the space. 14126 if test $p = "-L" || 14127 test $p = "-R"; then 14128 prev=$p 14129 continue 14130 fi 14131 14132 # Expand the sysroot to ease extracting the directories later. 14133 if test -z "$prev"; then 14134 case $p in 14135 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 14136 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 14137 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 14138 esac 14139 fi 14140 case $p in 14141 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 14142 esac 14143 if test "$pre_test_object_deps_done" = no; then 14144 case ${prev} in 14145 -L | -R) 14146 # Internal compiler library paths should come after those 14147 # provided the user. The postdeps already come after the 14148 # user supplied libs so there is no need to process them. 14149 if test -z "$compiler_lib_search_path_CXX"; then 14150 compiler_lib_search_path_CXX="${prev}${p}" 14151 else 14152 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 14153 fi 14154 ;; 14155 # The "-l" case would never come before the object being 14156 # linked, so don't bother handling this case. 14157 esac 14158 else 14159 if test -z "$postdeps_CXX"; then 14160 postdeps_CXX="${prev}${p}" 14161 else 14162 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 14163 fi 14164 fi 14165 prev= 14166 ;; 14167 14168 *.lto.$objext) ;; # Ignore GCC LTO objects 14169 *.$objext) 14170 # This assumes that the test object file only shows up 14171 # once in the compiler output. 14172 if test "$p" = "conftest.$objext"; then 14173 pre_test_object_deps_done=yes 14174 continue 14175 fi 14176 14177 if test "$pre_test_object_deps_done" = no; then 14178 if test -z "$predep_objects_CXX"; then 14179 predep_objects_CXX="$p" 14180 else 14181 predep_objects_CXX="$predep_objects_CXX $p" 14182 fi 14183 else 14184 if test -z "$postdep_objects_CXX"; then 14185 postdep_objects_CXX="$p" 14186 else 14187 postdep_objects_CXX="$postdep_objects_CXX $p" 14188 fi 14189 fi 14190 ;; 14191 14192 *) ;; # Ignore the rest. 14193 14194 esac 14195 done 14196 14197 # Clean up. 14198 rm -f a.out a.exe 14199else 14200 echo "libtool.m4: error: problem compiling CXX test program" 14201fi 14202 14203$RM -f confest.$objext 14204CFLAGS=$_lt_libdeps_save_CFLAGS 14205 14206# PORTME: override above test on systems where it is broken 14207case $host_os in 14208interix[3-9]*) 14209 # Interix 3.5 installs completely hosed .la files for C++, so rather than 14210 # hack all around it, let's just trust "g++" to DTRT. 14211 predep_objects_CXX= 14212 postdep_objects_CXX= 14213 postdeps_CXX= 14214 ;; 14215 14216linux*) 14217 case `$CC -V 2>&1 | sed 5q` in 14218 *Sun\ C*) 14219 # Sun C++ 5.9 14220 14221 # The more standards-conforming stlport4 library is 14222 # incompatible with the Cstd library. Avoid specifying 14223 # it if it's in CXXFLAGS. Ignore libCrun as 14224 # -library=stlport4 depends on it. 14225 case " $CXX $CXXFLAGS " in 14226 *" -library=stlport4 "*) 14227 solaris_use_stlport4=yes 14228 ;; 14229 esac 14230 14231 if test "$solaris_use_stlport4" != yes; then 14232 postdeps_CXX='-library=Cstd -library=Crun' 14233 fi 14234 ;; 14235 esac 14236 ;; 14237 14238solaris*) 14239 case $cc_basename in 14240 CC* | sunCC*) 14241 # The more standards-conforming stlport4 library is 14242 # incompatible with the Cstd library. Avoid specifying 14243 # it if it's in CXXFLAGS. Ignore libCrun as 14244 # -library=stlport4 depends on it. 14245 case " $CXX $CXXFLAGS " in 14246 *" -library=stlport4 "*) 14247 solaris_use_stlport4=yes 14248 ;; 14249 esac 14250 14251 # Adding this requires a known-good setup of shared libraries for 14252 # Sun compiler versions before 5.6, else PIC objects from an old 14253 # archive will be linked into the output, leading to subtle bugs. 14254 if test "$solaris_use_stlport4" != yes; then 14255 postdeps_CXX='-library=Cstd -library=Crun' 14256 fi 14257 ;; 14258 esac 14259 ;; 14260esac 14261 14262 14263case " $postdeps_CXX " in 14264*" -lc "*) archive_cmds_need_lc_CXX=no ;; 14265esac 14266 compiler_lib_search_dirs_CXX= 14267if test -n "${compiler_lib_search_path_CXX}"; then 14268 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 14269fi 14270 14271 14272 14273 14274 14275 14276 14277 14278 14279 14280 14281 14282 14283 14284 14285 14286 14287 14288 14289 14290 14291 14292 14293 14294 14295 14296 14297 14298 14299 14300 14301 lt_prog_compiler_wl_CXX= 14302lt_prog_compiler_pic_CXX= 14303lt_prog_compiler_static_CXX= 14304 14305 14306 # C++ specific cases for pic, static, wl, etc. 14307 if test "$GXX" = yes; then 14308 lt_prog_compiler_wl_CXX='-Wl,' 14309 lt_prog_compiler_static_CXX='-static' 14310 14311 case $host_os in 14312 aix*) 14313 # All AIX code is PIC. 14314 if test "$host_cpu" = ia64; then 14315 # AIX 5 now supports IA64 processor 14316 lt_prog_compiler_static_CXX='-Bstatic' 14317 fi 14318 ;; 14319 14320 amigaos*) 14321 case $host_cpu in 14322 powerpc) 14323 # see comment about AmigaOS4 .so support 14324 lt_prog_compiler_pic_CXX='-fPIC' 14325 ;; 14326 m68k) 14327 # FIXME: we need at least 68020 code to build shared libraries, but 14328 # adding the `-m68020' flag to GCC prevents building anything better, 14329 # like `-m68040'. 14330 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 14331 ;; 14332 esac 14333 ;; 14334 14335 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14336 # PIC is the default for these OSes. 14337 ;; 14338 mingw* | cygwin* | os2* | pw32* | cegcc*) 14339 # This hack is so that the source file can tell whether it is being 14340 # built for inclusion in a dll (and should export symbols for example). 14341 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14342 # (--disable-auto-import) libraries 14343 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14344 ;; 14345 darwin* | rhapsody*) 14346 # PIC is the default on this platform 14347 # Common symbols not allowed in MH_DYLIB files 14348 lt_prog_compiler_pic_CXX='-fno-common' 14349 ;; 14350 *djgpp*) 14351 # DJGPP does not support shared libraries at all 14352 lt_prog_compiler_pic_CXX= 14353 ;; 14354 haiku*) 14355 # PIC is the default for Haiku. 14356 # The "-static" flag exists, but is broken. 14357 lt_prog_compiler_static_CXX= 14358 ;; 14359 interix[3-9]*) 14360 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14361 # Instead, we relocate shared libraries at runtime. 14362 ;; 14363 sysv4*MP*) 14364 if test -d /usr/nec; then 14365 lt_prog_compiler_pic_CXX=-Kconform_pic 14366 fi 14367 ;; 14368 hpux*) 14369 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14370 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14371 # sets the default TLS model and affects inlining. 14372 case $host_cpu in 14373 hppa*64*) 14374 ;; 14375 *) 14376 lt_prog_compiler_pic_CXX='-fPIC' 14377 ;; 14378 esac 14379 ;; 14380 *qnx* | *nto*) 14381 # QNX uses GNU C++, but need to define -shared option too, otherwise 14382 # it will coredump. 14383 lt_prog_compiler_pic_CXX='-fPIC -shared' 14384 ;; 14385 *) 14386 lt_prog_compiler_pic_CXX='-fPIC' 14387 ;; 14388 esac 14389 else 14390 case $host_os in 14391 aix[4-9]*) 14392 # All AIX code is PIC. 14393 if test "$host_cpu" = ia64; then 14394 # AIX 5 now supports IA64 processor 14395 lt_prog_compiler_static_CXX='-Bstatic' 14396 else 14397 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 14398 fi 14399 ;; 14400 chorus*) 14401 case $cc_basename in 14402 cxch68*) 14403 # Green Hills C++ Compiler 14404 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 14405 ;; 14406 esac 14407 ;; 14408 mingw* | cygwin* | os2* | pw32* | cegcc*) 14409 # This hack is so that the source file can tell whether it is being 14410 # built for inclusion in a dll (and should export symbols for example). 14411 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14412 ;; 14413 dgux*) 14414 case $cc_basename in 14415 ec++*) 14416 lt_prog_compiler_pic_CXX='-KPIC' 14417 ;; 14418 ghcx*) 14419 # Green Hills C++ Compiler 14420 lt_prog_compiler_pic_CXX='-pic' 14421 ;; 14422 *) 14423 ;; 14424 esac 14425 ;; 14426 freebsd* | dragonfly*) 14427 # FreeBSD uses GNU C++ 14428 ;; 14429 hpux9* | hpux10* | hpux11*) 14430 case $cc_basename in 14431 CC*) 14432 lt_prog_compiler_wl_CXX='-Wl,' 14433 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14434 if test "$host_cpu" != ia64; then 14435 lt_prog_compiler_pic_CXX='+Z' 14436 fi 14437 ;; 14438 aCC*) 14439 lt_prog_compiler_wl_CXX='-Wl,' 14440 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14441 case $host_cpu in 14442 hppa*64*|ia64*) 14443 # +Z the default 14444 ;; 14445 *) 14446 lt_prog_compiler_pic_CXX='+Z' 14447 ;; 14448 esac 14449 ;; 14450 *) 14451 ;; 14452 esac 14453 ;; 14454 interix*) 14455 # This is c89, which is MS Visual C++ (no shared libs) 14456 # Anyone wants to do a port? 14457 ;; 14458 irix5* | irix6* | nonstopux*) 14459 case $cc_basename in 14460 CC*) 14461 lt_prog_compiler_wl_CXX='-Wl,' 14462 lt_prog_compiler_static_CXX='-non_shared' 14463 # CC pic flag -KPIC is the default. 14464 ;; 14465 *) 14466 ;; 14467 esac 14468 ;; 14469 linux* | k*bsd*-gnu | kopensolaris*-gnu) 14470 case $cc_basename in 14471 KCC*) 14472 # KAI C++ Compiler 14473 lt_prog_compiler_wl_CXX='--backend -Wl,' 14474 lt_prog_compiler_pic_CXX='-fPIC' 14475 ;; 14476 ecpc* ) 14477 # old Intel C++ for x86_64 which still supported -KPIC. 14478 lt_prog_compiler_wl_CXX='-Wl,' 14479 lt_prog_compiler_pic_CXX='-KPIC' 14480 lt_prog_compiler_static_CXX='-static' 14481 ;; 14482 icpc* ) 14483 # Intel C++, used to be incompatible with GCC. 14484 # ICC 10 doesn't accept -KPIC any more. 14485 lt_prog_compiler_wl_CXX='-Wl,' 14486 lt_prog_compiler_pic_CXX='-fPIC' 14487 lt_prog_compiler_static_CXX='-static' 14488 ;; 14489 pgCC* | pgcpp*) 14490 # Portland Group C++ compiler 14491 lt_prog_compiler_wl_CXX='-Wl,' 14492 lt_prog_compiler_pic_CXX='-fpic' 14493 lt_prog_compiler_static_CXX='-Bstatic' 14494 ;; 14495 cxx*) 14496 # Compaq C++ 14497 # Make sure the PIC flag is empty. It appears that all Alpha 14498 # Linux and Compaq Tru64 Unix objects are PIC. 14499 lt_prog_compiler_pic_CXX= 14500 lt_prog_compiler_static_CXX='-non_shared' 14501 ;; 14502 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 14503 # IBM XL 8.0, 9.0 on PPC and BlueGene 14504 lt_prog_compiler_wl_CXX='-Wl,' 14505 lt_prog_compiler_pic_CXX='-qpic' 14506 lt_prog_compiler_static_CXX='-qstaticlink' 14507 ;; 14508 *) 14509 case `$CC -V 2>&1 | sed 5q` in 14510 *Sun\ C*) 14511 # Sun C++ 5.9 14512 lt_prog_compiler_pic_CXX='-KPIC' 14513 lt_prog_compiler_static_CXX='-Bstatic' 14514 lt_prog_compiler_wl_CXX='-Qoption ld ' 14515 ;; 14516 esac 14517 ;; 14518 esac 14519 ;; 14520 lynxos*) 14521 ;; 14522 m88k*) 14523 ;; 14524 mvs*) 14525 case $cc_basename in 14526 cxx*) 14527 lt_prog_compiler_pic_CXX='-W c,exportall' 14528 ;; 14529 *) 14530 ;; 14531 esac 14532 ;; 14533 netbsd*) 14534 ;; 14535 *qnx* | *nto*) 14536 # QNX uses GNU C++, but need to define -shared option too, otherwise 14537 # it will coredump. 14538 lt_prog_compiler_pic_CXX='-fPIC -shared' 14539 ;; 14540 osf3* | osf4* | osf5*) 14541 case $cc_basename in 14542 KCC*) 14543 lt_prog_compiler_wl_CXX='--backend -Wl,' 14544 ;; 14545 RCC*) 14546 # Rational C++ 2.4.1 14547 lt_prog_compiler_pic_CXX='-pic' 14548 ;; 14549 cxx*) 14550 # Digital/Compaq C++ 14551 lt_prog_compiler_wl_CXX='-Wl,' 14552 # Make sure the PIC flag is empty. It appears that all Alpha 14553 # Linux and Compaq Tru64 Unix objects are PIC. 14554 lt_prog_compiler_pic_CXX= 14555 lt_prog_compiler_static_CXX='-non_shared' 14556 ;; 14557 *) 14558 ;; 14559 esac 14560 ;; 14561 psos*) 14562 ;; 14563 solaris*) 14564 case $cc_basename in 14565 CC* | sunCC*) 14566 # Sun C++ 4.2, 5.x and Centerline C++ 14567 lt_prog_compiler_pic_CXX='-KPIC' 14568 lt_prog_compiler_static_CXX='-Bstatic' 14569 lt_prog_compiler_wl_CXX='-Qoption ld ' 14570 ;; 14571 gcx*) 14572 # Green Hills C++ Compiler 14573 lt_prog_compiler_pic_CXX='-PIC' 14574 ;; 14575 *) 14576 ;; 14577 esac 14578 ;; 14579 sunos4*) 14580 case $cc_basename in 14581 CC*) 14582 # Sun C++ 4.x 14583 lt_prog_compiler_pic_CXX='-pic' 14584 lt_prog_compiler_static_CXX='-Bstatic' 14585 ;; 14586 lcc*) 14587 # Lucid 14588 lt_prog_compiler_pic_CXX='-pic' 14589 ;; 14590 *) 14591 ;; 14592 esac 14593 ;; 14594 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14595 case $cc_basename in 14596 CC*) 14597 lt_prog_compiler_wl_CXX='-Wl,' 14598 lt_prog_compiler_pic_CXX='-KPIC' 14599 lt_prog_compiler_static_CXX='-Bstatic' 14600 ;; 14601 esac 14602 ;; 14603 tandem*) 14604 case $cc_basename in 14605 NCC*) 14606 # NonStop-UX NCC 3.20 14607 lt_prog_compiler_pic_CXX='-KPIC' 14608 ;; 14609 *) 14610 ;; 14611 esac 14612 ;; 14613 vxworks*) 14614 ;; 14615 *) 14616 lt_prog_compiler_can_build_shared_CXX=no 14617 ;; 14618 esac 14619 fi 14620 14621case $host_os in 14622 # For platforms which do not support PIC, -DPIC is meaningless: 14623 *djgpp*) 14624 lt_prog_compiler_pic_CXX= 14625 ;; 14626 *) 14627 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 14628 ;; 14629esac 14630 14631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14632$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14633if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 14634 $as_echo_n "(cached) " >&6 14635else 14636 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 14637fi 14638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 14639$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 14640lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 14641 14642# 14643# Check to make sure the PIC flag actually works. 14644# 14645if test -n "$lt_prog_compiler_pic_CXX"; then 14646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 14647$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 14648if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 14649 $as_echo_n "(cached) " >&6 14650else 14651 lt_cv_prog_compiler_pic_works_CXX=no 14652 ac_outfile=conftest.$ac_objext 14653 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14654 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 14655 # Insert the option either (1) after the last *FLAGS variable, or 14656 # (2) before a word containing "conftest.", or (3) at the end. 14657 # Note that $ac_compile itself does not contain backslashes and begins 14658 # with a dollar sign (not a hyphen), so the echo should work correctly. 14659 # The option is referenced via a variable to avoid confusing sed. 14660 lt_compile=`echo "$ac_compile" | $SED \ 14661 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14662 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14663 -e 's:$: $lt_compiler_flag:'` 14664 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14665 (eval "$lt_compile" 2>conftest.err) 14666 ac_status=$? 14667 cat conftest.err >&5 14668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14669 if (exit $ac_status) && test -s "$ac_outfile"; then 14670 # The compiler can only warn and ignore the option if not recognized 14671 # So say no if there are warnings other than the usual output. 14672 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14673 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14674 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14675 lt_cv_prog_compiler_pic_works_CXX=yes 14676 fi 14677 fi 14678 $RM conftest* 14679 14680fi 14681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 14682$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 14683 14684if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 14685 case $lt_prog_compiler_pic_CXX in 14686 "" | " "*) ;; 14687 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 14688 esac 14689else 14690 lt_prog_compiler_pic_CXX= 14691 lt_prog_compiler_can_build_shared_CXX=no 14692fi 14693 14694fi 14695 14696 14697 14698 14699 14700# 14701# Check to make sure the static flag actually works. 14702# 14703wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 14704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14705$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14706if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 14707 $as_echo_n "(cached) " >&6 14708else 14709 lt_cv_prog_compiler_static_works_CXX=no 14710 save_LDFLAGS="$LDFLAGS" 14711 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14712 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14713 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14714 # The linker can only warn and ignore the option if not recognized 14715 # So say no if there are warnings 14716 if test -s conftest.err; then 14717 # Append any errors to the config.log. 14718 cat conftest.err 1>&5 14719 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14720 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14721 if diff conftest.exp conftest.er2 >/dev/null; then 14722 lt_cv_prog_compiler_static_works_CXX=yes 14723 fi 14724 else 14725 lt_cv_prog_compiler_static_works_CXX=yes 14726 fi 14727 fi 14728 $RM -r conftest* 14729 LDFLAGS="$save_LDFLAGS" 14730 14731fi 14732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 14733$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 14734 14735if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 14736 : 14737else 14738 lt_prog_compiler_static_CXX= 14739fi 14740 14741 14742 14743 14744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14745$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14746if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14747 $as_echo_n "(cached) " >&6 14748else 14749 lt_cv_prog_compiler_c_o_CXX=no 14750 $RM -r conftest 2>/dev/null 14751 mkdir conftest 14752 cd conftest 14753 mkdir out 14754 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14755 14756 lt_compiler_flag="-o out/conftest2.$ac_objext" 14757 # Insert the option either (1) after the last *FLAGS variable, or 14758 # (2) before a word containing "conftest.", or (3) at the end. 14759 # Note that $ac_compile itself does not contain backslashes and begins 14760 # with a dollar sign (not a hyphen), so the echo should work correctly. 14761 lt_compile=`echo "$ac_compile" | $SED \ 14762 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14763 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14764 -e 's:$: $lt_compiler_flag:'` 14765 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14766 (eval "$lt_compile" 2>out/conftest.err) 14767 ac_status=$? 14768 cat out/conftest.err >&5 14769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14770 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14771 then 14772 # The compiler can only warn and ignore the option if not recognized 14773 # So say no if there are warnings 14774 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14775 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14776 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14777 lt_cv_prog_compiler_c_o_CXX=yes 14778 fi 14779 fi 14780 chmod u+w . 2>&5 14781 $RM conftest* 14782 # SGI C++ compiler will create directory out/ii_files/ for 14783 # template instantiation 14784 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14785 $RM out/* && rmdir out 14786 cd .. 14787 $RM -r conftest 14788 $RM conftest* 14789 14790fi 14791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14792$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14793 14794 14795 14796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14797$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14798if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14799 $as_echo_n "(cached) " >&6 14800else 14801 lt_cv_prog_compiler_c_o_CXX=no 14802 $RM -r conftest 2>/dev/null 14803 mkdir conftest 14804 cd conftest 14805 mkdir out 14806 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14807 14808 lt_compiler_flag="-o out/conftest2.$ac_objext" 14809 # Insert the option either (1) after the last *FLAGS variable, or 14810 # (2) before a word containing "conftest.", or (3) at the end. 14811 # Note that $ac_compile itself does not contain backslashes and begins 14812 # with a dollar sign (not a hyphen), so the echo should work correctly. 14813 lt_compile=`echo "$ac_compile" | $SED \ 14814 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14815 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14816 -e 's:$: $lt_compiler_flag:'` 14817 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14818 (eval "$lt_compile" 2>out/conftest.err) 14819 ac_status=$? 14820 cat out/conftest.err >&5 14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14822 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14823 then 14824 # The compiler can only warn and ignore the option if not recognized 14825 # So say no if there are warnings 14826 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14827 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14828 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14829 lt_cv_prog_compiler_c_o_CXX=yes 14830 fi 14831 fi 14832 chmod u+w . 2>&5 14833 $RM conftest* 14834 # SGI C++ compiler will create directory out/ii_files/ for 14835 # template instantiation 14836 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14837 $RM out/* && rmdir out 14838 cd .. 14839 $RM -r conftest 14840 $RM conftest* 14841 14842fi 14843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14844$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14845 14846 14847 14848 14849hard_links="nottested" 14850if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 14851 # do not overwrite the value of need_locks provided by the user 14852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14853$as_echo_n "checking if we can lock with hard links... " >&6; } 14854 hard_links=yes 14855 $RM conftest* 14856 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14857 touch conftest.a 14858 ln conftest.a conftest.b 2>&5 || hard_links=no 14859 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14861$as_echo "$hard_links" >&6; } 14862 if test "$hard_links" = no; then 14863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14864$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14865 need_locks=warn 14866 fi 14867else 14868 need_locks=no 14869fi 14870 14871 14872 14873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14874$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14875 14876 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14877 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14878 case $host_os in 14879 aix[4-9]*) 14880 # If we're using GNU nm, then we don't want the "-C" option. 14881 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14882 # Also, AIX nm treats weak defined symbols like other global defined 14883 # symbols, whereas GNU nm marks them as "W". 14884 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14885 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 14886 else 14887 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' 14888 fi 14889 ;; 14890 pw32*) 14891 export_symbols_cmds_CXX="$ltdll_cmds" 14892 ;; 14893 cygwin* | mingw* | cegcc*) 14894 case $cc_basename in 14895 cl*) ;; 14896 *) 14897 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 14898 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 14899 ;; 14900 esac 14901 ;; 14902 *) 14903 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14904 ;; 14905 esac 14906 14907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14908$as_echo "$ld_shlibs_CXX" >&6; } 14909test "$ld_shlibs_CXX" = no && can_build_shared=no 14910 14911with_gnu_ld_CXX=$with_gnu_ld 14912 14913 14914 14915 14916 14917 14918# 14919# Do we need to explicitly link libc? 14920# 14921case "x$archive_cmds_need_lc_CXX" in 14922x|xyes) 14923 # Assume -lc should be added 14924 archive_cmds_need_lc_CXX=yes 14925 14926 if test "$enable_shared" = yes && test "$GCC" = yes; then 14927 case $archive_cmds_CXX in 14928 *'~'*) 14929 # FIXME: we may have to deal with multi-command sequences. 14930 ;; 14931 '$CC '*) 14932 # Test whether the compiler implicitly links with -lc since on some 14933 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14934 # to ld, don't add -lc before -lgcc. 14935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 14936$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 14937if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 14938 $as_echo_n "(cached) " >&6 14939else 14940 $RM conftest* 14941 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14942 14943 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14944 (eval $ac_compile) 2>&5 14945 ac_status=$? 14946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14947 test $ac_status = 0; } 2>conftest.err; then 14948 soname=conftest 14949 lib=conftest 14950 libobjs=conftest.$ac_objext 14951 deplibs= 14952 wl=$lt_prog_compiler_wl_CXX 14953 pic_flag=$lt_prog_compiler_pic_CXX 14954 compiler_flags=-v 14955 linker_flags=-v 14956 verstring= 14957 output_objdir=. 14958 libname=conftest 14959 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 14960 allow_undefined_flag_CXX= 14961 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 14962 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14963 ac_status=$? 14964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14965 test $ac_status = 0; } 14966 then 14967 lt_cv_archive_cmds_need_lc_CXX=no 14968 else 14969 lt_cv_archive_cmds_need_lc_CXX=yes 14970 fi 14971 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 14972 else 14973 cat conftest.err 1>&5 14974 fi 14975 $RM conftest* 14976 14977fi 14978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 14979$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 14980 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 14981 ;; 14982 esac 14983 fi 14984 ;; 14985esac 14986 14987 14988 14989 14990 14991 14992 14993 14994 14995 14996 14997 14998 14999 15000 15001 15002 15003 15004 15005 15006 15007 15008 15009 15010 15011 15012 15013 15014 15015 15016 15017 15018 15019 15020 15021 15022 15023 15024 15025 15026 15027 15028 15029 15030 15031 15032 15033 15034 15035 15036 15037 15038 15039 15040 15041 15042 15043 15044 15045 15046 15047 15048 15049 15050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15051$as_echo_n "checking dynamic linker characteristics... " >&6; } 15052 15053library_names_spec= 15054libname_spec='lib$name' 15055soname_spec= 15056shrext_cmds=".so" 15057postinstall_cmds= 15058postuninstall_cmds= 15059finish_cmds= 15060finish_eval= 15061shlibpath_var= 15062shlibpath_overrides_runpath=unknown 15063version_type=none 15064dynamic_linker="$host_os ld.so" 15065sys_lib_dlsearch_path_spec="/lib /usr/lib" 15066need_lib_prefix=unknown 15067hardcode_into_libs=no 15068 15069# when you set need_version to no, make sure it does not cause -set_version 15070# flags to be left without arguments 15071need_version=unknown 15072 15073case $host_os in 15074aix3*) 15075 version_type=linux 15076 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15077 shlibpath_var=LIBPATH 15078 15079 # AIX 3 has no versioning support, so we append a major version to the name. 15080 soname_spec='${libname}${release}${shared_ext}$major' 15081 ;; 15082 15083aix[4-9]*) 15084 version_type=linux 15085 need_lib_prefix=no 15086 need_version=no 15087 hardcode_into_libs=yes 15088 if test "$host_cpu" = ia64; then 15089 # AIX 5 supports IA64 15090 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15091 shlibpath_var=LD_LIBRARY_PATH 15092 else 15093 # With GCC up to 2.95.x, collect2 would create an import file 15094 # for dependence libraries. The import file would start with 15095 # the line `#! .'. This would cause the generated library to 15096 # depend on `.', always an invalid library. This was fixed in 15097 # development snapshots of GCC prior to 3.0. 15098 case $host_os in 15099 aix4 | aix4.[01] | aix4.[01].*) 15100 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15101 echo ' yes ' 15102 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 15103 : 15104 else 15105 can_build_shared=no 15106 fi 15107 ;; 15108 esac 15109 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15110 # soname into executable. Probably we can add versioning support to 15111 # collect2, so additional links can be useful in future. 15112 if test "$aix_use_runtimelinking" = yes; then 15113 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15114 # instead of lib<name>.a to let people know that these are not 15115 # typical AIX shared libraries. 15116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15117 else 15118 # We preserve .a as extension for shared libraries through AIX4.2 15119 # and later when we are not doing run time linking. 15120 library_names_spec='${libname}${release}.a $libname.a' 15121 soname_spec='${libname}${release}${shared_ext}$major' 15122 fi 15123 shlibpath_var=LIBPATH 15124 fi 15125 ;; 15126 15127amigaos*) 15128 case $host_cpu in 15129 powerpc) 15130 # Since July 2007 AmigaOS4 officially supports .so libraries. 15131 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15133 ;; 15134 m68k) 15135 library_names_spec='$libname.ixlibrary $libname.a' 15136 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15137 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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' 15138 ;; 15139 esac 15140 ;; 15141 15142beos*) 15143 library_names_spec='${libname}${shared_ext}' 15144 dynamic_linker="$host_os ld.so" 15145 shlibpath_var=LIBRARY_PATH 15146 ;; 15147 15148bsdi[45]*) 15149 version_type=linux 15150 need_version=no 15151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15152 soname_spec='${libname}${release}${shared_ext}$major' 15153 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15154 shlibpath_var=LD_LIBRARY_PATH 15155 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15156 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15157 # the default ld.so.conf also contains /usr/contrib/lib and 15158 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15159 # libtool to hard-code these into programs 15160 ;; 15161 15162cygwin* | mingw* | pw32* | cegcc*) 15163 version_type=windows 15164 shrext_cmds=".dll" 15165 need_version=no 15166 need_lib_prefix=no 15167 15168 case $GCC,$cc_basename in 15169 yes,*) 15170 # gcc 15171 library_names_spec='$libname.dll.a' 15172 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15173 postinstall_cmds='base_file=`basename \${file}`~ 15174 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 15175 dldir=$destdir/`dirname \$dlpath`~ 15176 test -d \$dldir || mkdir -p \$dldir~ 15177 $install_prog $dir/$dlname \$dldir/$dlname~ 15178 chmod a+x \$dldir/$dlname~ 15179 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15180 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15181 fi' 15182 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15183 dlpath=$dir/\$dldll~ 15184 $RM \$dlpath' 15185 shlibpath_overrides_runpath=yes 15186 15187 case $host_os in 15188 cygwin*) 15189 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15190 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15191 15192 ;; 15193 mingw* | cegcc*) 15194 # MinGW DLLs use traditional 'lib' prefix 15195 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15196 ;; 15197 pw32*) 15198 # pw32 DLLs use 'pw' prefix rather than 'lib' 15199 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15200 ;; 15201 esac 15202 dynamic_linker='Win32 ld.exe' 15203 ;; 15204 15205 *,cl*) 15206 # Native MSVC 15207 libname_spec='$name' 15208 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15209 library_names_spec='${libname}.dll.lib' 15210 15211 case $build_os in 15212 mingw*) 15213 sys_lib_search_path_spec= 15214 lt_save_ifs=$IFS 15215 IFS=';' 15216 for lt_path in $LIB 15217 do 15218 IFS=$lt_save_ifs 15219 # Let DOS variable expansion print the short 8.3 style file name. 15220 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15221 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15222 done 15223 IFS=$lt_save_ifs 15224 # Convert to MSYS style. 15225 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 15226 ;; 15227 cygwin*) 15228 # Convert to unix form, then to dos form, then back to unix form 15229 # but this time dos style (no spaces!) so that the unix form looks 15230 # like /cygdrive/c/PROGRA~1:/cygdr... 15231 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 15232 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 15233 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15234 ;; 15235 *) 15236 sys_lib_search_path_spec="$LIB" 15237 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15238 # It is most probably a Windows format PATH. 15239 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15240 else 15241 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15242 fi 15243 # FIXME: find the short name or the path components, as spaces are 15244 # common. (e.g. "Program Files" -> "PROGRA~1") 15245 ;; 15246 esac 15247 15248 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15249 postinstall_cmds='base_file=`basename \${file}`~ 15250 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 15251 dldir=$destdir/`dirname \$dlpath`~ 15252 test -d \$dldir || mkdir -p \$dldir~ 15253 $install_prog $dir/$dlname \$dldir/$dlname' 15254 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15255 dlpath=$dir/\$dldll~ 15256 $RM \$dlpath' 15257 shlibpath_overrides_runpath=yes 15258 dynamic_linker='Win32 link.exe' 15259 ;; 15260 15261 *) 15262 # Assume MSVC wrapper 15263 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15264 dynamic_linker='Win32 ld.exe' 15265 ;; 15266 esac 15267 # FIXME: first we should search . and the directory the executable is in 15268 shlibpath_var=PATH 15269 ;; 15270 15271darwin* | rhapsody*) 15272 dynamic_linker="$host_os dyld" 15273 version_type=darwin 15274 need_lib_prefix=no 15275 need_version=no 15276 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15277 soname_spec='${libname}${release}${major}$shared_ext' 15278 shlibpath_overrides_runpath=yes 15279 shlibpath_var=DYLD_LIBRARY_PATH 15280 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15281 15282 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15283 ;; 15284 15285dgux*) 15286 version_type=linux 15287 need_lib_prefix=no 15288 need_version=no 15289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15290 soname_spec='${libname}${release}${shared_ext}$major' 15291 shlibpath_var=LD_LIBRARY_PATH 15292 ;; 15293 15294freebsd1*) 15295 dynamic_linker=no 15296 ;; 15297 15298freebsd* | dragonfly*) 15299 # DragonFly does not have aout. When/if they implement a new 15300 # versioning mechanism, adjust this. 15301 if test -x /usr/bin/objformat; then 15302 objformat=`/usr/bin/objformat` 15303 else 15304 case $host_os in 15305 freebsd[123]*) objformat=aout ;; 15306 *) objformat=elf ;; 15307 esac 15308 fi 15309 # Handle Gentoo/FreeBSD as it was Linux 15310 case $host_vendor in 15311 gentoo) 15312 version_type=linux ;; 15313 *) 15314 version_type=freebsd-$objformat ;; 15315 esac 15316 15317 case $version_type in 15318 freebsd-elf*) 15319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15320 need_version=no 15321 need_lib_prefix=no 15322 ;; 15323 freebsd-*) 15324 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15325 need_version=yes 15326 ;; 15327 linux) 15328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15329 soname_spec='${libname}${release}${shared_ext}$major' 15330 need_lib_prefix=no 15331 need_version=no 15332 ;; 15333 esac 15334 shlibpath_var=LD_LIBRARY_PATH 15335 case $host_os in 15336 freebsd2*) 15337 shlibpath_overrides_runpath=yes 15338 ;; 15339 freebsd3.[01]* | freebsdelf3.[01]*) 15340 shlibpath_overrides_runpath=yes 15341 hardcode_into_libs=yes 15342 ;; 15343 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15344 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15345 shlibpath_overrides_runpath=no 15346 hardcode_into_libs=yes 15347 ;; 15348 *) # from 4.6 on, and DragonFly 15349 shlibpath_overrides_runpath=yes 15350 hardcode_into_libs=yes 15351 ;; 15352 esac 15353 ;; 15354 15355gnu*) 15356 version_type=linux 15357 need_lib_prefix=no 15358 need_version=no 15359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15360 soname_spec='${libname}${release}${shared_ext}$major' 15361 shlibpath_var=LD_LIBRARY_PATH 15362 hardcode_into_libs=yes 15363 ;; 15364 15365haiku*) 15366 version_type=linux 15367 need_lib_prefix=no 15368 need_version=no 15369 dynamic_linker="$host_os runtime_loader" 15370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15371 soname_spec='${libname}${release}${shared_ext}$major' 15372 shlibpath_var=LIBRARY_PATH 15373 shlibpath_overrides_runpath=yes 15374 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 15375 hardcode_into_libs=yes 15376 ;; 15377 15378hpux9* | hpux10* | hpux11*) 15379 # Give a soname corresponding to the major version so that dld.sl refuses to 15380 # link against other versions. 15381 version_type=sunos 15382 need_lib_prefix=no 15383 need_version=no 15384 case $host_cpu in 15385 ia64*) 15386 shrext_cmds='.so' 15387 hardcode_into_libs=yes 15388 dynamic_linker="$host_os dld.so" 15389 shlibpath_var=LD_LIBRARY_PATH 15390 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15392 soname_spec='${libname}${release}${shared_ext}$major' 15393 if test "X$HPUX_IA64_MODE" = X32; then 15394 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15395 else 15396 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15397 fi 15398 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15399 ;; 15400 hppa*64*) 15401 shrext_cmds='.sl' 15402 hardcode_into_libs=yes 15403 dynamic_linker="$host_os dld.sl" 15404 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15405 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15407 soname_spec='${libname}${release}${shared_ext}$major' 15408 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15409 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15410 ;; 15411 *) 15412 shrext_cmds='.sl' 15413 dynamic_linker="$host_os dld.sl" 15414 shlibpath_var=SHLIB_PATH 15415 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15417 soname_spec='${libname}${release}${shared_ext}$major' 15418 ;; 15419 esac 15420 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15421 postinstall_cmds='chmod 555 $lib' 15422 # or fails outright, so override atomically: 15423 install_override_mode=555 15424 ;; 15425 15426interix[3-9]*) 15427 version_type=linux 15428 need_lib_prefix=no 15429 need_version=no 15430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15431 soname_spec='${libname}${release}${shared_ext}$major' 15432 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15433 shlibpath_var=LD_LIBRARY_PATH 15434 shlibpath_overrides_runpath=no 15435 hardcode_into_libs=yes 15436 ;; 15437 15438irix5* | irix6* | nonstopux*) 15439 case $host_os in 15440 nonstopux*) version_type=nonstopux ;; 15441 *) 15442 if test "$lt_cv_prog_gnu_ld" = yes; then 15443 version_type=linux 15444 else 15445 version_type=irix 15446 fi ;; 15447 esac 15448 need_lib_prefix=no 15449 need_version=no 15450 soname_spec='${libname}${release}${shared_ext}$major' 15451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15452 case $host_os in 15453 irix5* | nonstopux*) 15454 libsuff= shlibsuff= 15455 ;; 15456 *) 15457 case $LD in # libtool.m4 will add one of these switches to LD 15458 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15459 libsuff= shlibsuff= libmagic=32-bit;; 15460 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15461 libsuff=32 shlibsuff=N32 libmagic=N32;; 15462 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15463 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15464 *) libsuff= shlibsuff= libmagic=never-match;; 15465 esac 15466 ;; 15467 esac 15468 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15469 shlibpath_overrides_runpath=no 15470 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15471 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15472 hardcode_into_libs=yes 15473 ;; 15474 15475# No shared lib support for Linux oldld, aout, or coff. 15476linux*oldld* | linux*aout* | linux*coff*) 15477 dynamic_linker=no 15478 ;; 15479 15480# This must be Linux ELF. 15481linux* | k*bsd*-gnu | kopensolaris*-gnu) 15482 version_type=linux 15483 need_lib_prefix=no 15484 need_version=no 15485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15486 soname_spec='${libname}${release}${shared_ext}$major' 15487 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15488 shlibpath_var=LD_LIBRARY_PATH 15489 shlibpath_overrides_runpath=no 15490 15491 # Some binutils ld are patched to set DT_RUNPATH 15492 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 15493 $as_echo_n "(cached) " >&6 15494else 15495 lt_cv_shlibpath_overrides_runpath=no 15496 save_LDFLAGS=$LDFLAGS 15497 save_libdir=$libdir 15498 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 15499 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 15500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15501/* end confdefs.h. */ 15502 15503int 15504main () 15505{ 15506 15507 ; 15508 return 0; 15509} 15510_ACEOF 15511if ac_fn_cxx_try_link "$LINENO"; then : 15512 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 15513 lt_cv_shlibpath_overrides_runpath=yes 15514fi 15515fi 15516rm -f core conftest.err conftest.$ac_objext \ 15517 conftest$ac_exeext conftest.$ac_ext 15518 LDFLAGS=$save_LDFLAGS 15519 libdir=$save_libdir 15520 15521fi 15522 15523 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15524 15525 # This implies no fast_install, which is unacceptable. 15526 # Some rework will be needed to allow for fast_install 15527 # before this can be enabled. 15528 hardcode_into_libs=yes 15529 15530 # Append ld.so.conf contents to the search path 15531 if test -f /etc/ld.so.conf; then 15532 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;s/"//g;/^$/d' | tr '\n' ' '` 15533 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15534 fi 15535 15536 # We used to test for /lib/ld.so.1 and disable shared libraries on 15537 # powerpc, because MkLinux only supported shared libraries with the 15538 # GNU dynamic linker. Since this was broken with cross compilers, 15539 # most powerpc-linux boxes support dynamic linking these days and 15540 # people can always --disable-shared, the test was removed, and we 15541 # assume the GNU/Linux dynamic linker is in use. 15542 dynamic_linker='GNU/Linux ld.so' 15543 ;; 15544 15545netbsd*) 15546 version_type=sunos 15547 need_lib_prefix=no 15548 need_version=no 15549 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15551 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15552 dynamic_linker='NetBSD (a.out) ld.so' 15553 else 15554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15555 soname_spec='${libname}${release}${shared_ext}$major' 15556 dynamic_linker='NetBSD ld.elf_so' 15557 fi 15558 shlibpath_var=LD_LIBRARY_PATH 15559 shlibpath_overrides_runpath=yes 15560 hardcode_into_libs=yes 15561 ;; 15562 15563newsos6) 15564 version_type=linux 15565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15566 shlibpath_var=LD_LIBRARY_PATH 15567 shlibpath_overrides_runpath=yes 15568 ;; 15569 15570*nto* | *qnx*) 15571 version_type=qnx 15572 need_lib_prefix=no 15573 need_version=no 15574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15575 soname_spec='${libname}${release}${shared_ext}$major' 15576 shlibpath_var=LD_LIBRARY_PATH 15577 shlibpath_overrides_runpath=no 15578 hardcode_into_libs=yes 15579 dynamic_linker='ldqnx.so' 15580 ;; 15581 15582openbsd*) 15583 version_type=sunos 15584 sys_lib_dlsearch_path_spec="/usr/lib" 15585 need_lib_prefix=no 15586 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15587 case $host_os in 15588 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15589 *) need_version=no ;; 15590 esac 15591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15592 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15593 shlibpath_var=LD_LIBRARY_PATH 15594 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15595 case $host_os in 15596 openbsd2.[89] | openbsd2.[89].*) 15597 shlibpath_overrides_runpath=no 15598 ;; 15599 *) 15600 shlibpath_overrides_runpath=yes 15601 ;; 15602 esac 15603 else 15604 shlibpath_overrides_runpath=yes 15605 fi 15606 ;; 15607 15608os2*) 15609 libname_spec='$name' 15610 shrext_cmds=".dll" 15611 need_lib_prefix=no 15612 library_names_spec='$libname${shared_ext} $libname.a' 15613 dynamic_linker='OS/2 ld.exe' 15614 shlibpath_var=LIBPATH 15615 ;; 15616 15617osf3* | osf4* | osf5*) 15618 version_type=osf 15619 need_lib_prefix=no 15620 need_version=no 15621 soname_spec='${libname}${release}${shared_ext}$major' 15622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15623 shlibpath_var=LD_LIBRARY_PATH 15624 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15625 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15626 ;; 15627 15628rdos*) 15629 dynamic_linker=no 15630 ;; 15631 15632solaris*) 15633 version_type=linux 15634 need_lib_prefix=no 15635 need_version=no 15636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15637 soname_spec='${libname}${release}${shared_ext}$major' 15638 shlibpath_var=LD_LIBRARY_PATH 15639 shlibpath_overrides_runpath=yes 15640 hardcode_into_libs=yes 15641 # ldd complains unless libraries are executable 15642 postinstall_cmds='chmod +x $lib' 15643 ;; 15644 15645sunos4*) 15646 version_type=sunos 15647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15648 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15649 shlibpath_var=LD_LIBRARY_PATH 15650 shlibpath_overrides_runpath=yes 15651 if test "$with_gnu_ld" = yes; then 15652 need_lib_prefix=no 15653 fi 15654 need_version=yes 15655 ;; 15656 15657sysv4 | sysv4.3*) 15658 version_type=linux 15659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15660 soname_spec='${libname}${release}${shared_ext}$major' 15661 shlibpath_var=LD_LIBRARY_PATH 15662 case $host_vendor in 15663 sni) 15664 shlibpath_overrides_runpath=no 15665 need_lib_prefix=no 15666 runpath_var=LD_RUN_PATH 15667 ;; 15668 siemens) 15669 need_lib_prefix=no 15670 ;; 15671 motorola) 15672 need_lib_prefix=no 15673 need_version=no 15674 shlibpath_overrides_runpath=no 15675 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15676 ;; 15677 esac 15678 ;; 15679 15680sysv4*MP*) 15681 if test -d /usr/nec ;then 15682 version_type=linux 15683 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15684 soname_spec='$libname${shared_ext}.$major' 15685 shlibpath_var=LD_LIBRARY_PATH 15686 fi 15687 ;; 15688 15689sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15690 version_type=freebsd-elf 15691 need_lib_prefix=no 15692 need_version=no 15693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15694 soname_spec='${libname}${release}${shared_ext}$major' 15695 shlibpath_var=LD_LIBRARY_PATH 15696 shlibpath_overrides_runpath=yes 15697 hardcode_into_libs=yes 15698 if test "$with_gnu_ld" = yes; then 15699 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15700 else 15701 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15702 case $host_os in 15703 sco3.2v5*) 15704 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15705 ;; 15706 esac 15707 fi 15708 sys_lib_dlsearch_path_spec='/usr/lib' 15709 ;; 15710 15711tpf*) 15712 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15713 version_type=linux 15714 need_lib_prefix=no 15715 need_version=no 15716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15717 shlibpath_var=LD_LIBRARY_PATH 15718 shlibpath_overrides_runpath=no 15719 hardcode_into_libs=yes 15720 ;; 15721 15722uts4*) 15723 version_type=linux 15724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15725 soname_spec='${libname}${release}${shared_ext}$major' 15726 shlibpath_var=LD_LIBRARY_PATH 15727 ;; 15728 15729*) 15730 dynamic_linker=no 15731 ;; 15732esac 15733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15734$as_echo "$dynamic_linker" >&6; } 15735test "$dynamic_linker" = no && can_build_shared=no 15736 15737variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15738if test "$GCC" = yes; then 15739 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15740fi 15741 15742if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 15743 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 15744fi 15745if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 15746 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 15747fi 15748 15749 15750 15751 15752 15753 15754 15755 15756 15757 15758 15759 15760 15761 15762 15763 15764 15765 15766 15767 15768 15769 15770 15771 15772 15773 15774 15775 15776 15777 15778 15779 15780 15781 15782 15783 15784 15785 15786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15787$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15788hardcode_action_CXX= 15789if test -n "$hardcode_libdir_flag_spec_CXX" || 15790 test -n "$runpath_var_CXX" || 15791 test "X$hardcode_automatic_CXX" = "Xyes" ; then 15792 15793 # We can hardcode non-existent directories. 15794 if test "$hardcode_direct_CXX" != no && 15795 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15796 # have to relink, otherwise we might link with an installed library 15797 # when we should be linking with a yet-to-be-installed one 15798 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 15799 test "$hardcode_minus_L_CXX" != no; then 15800 # Linking always hardcodes the temporary library directory. 15801 hardcode_action_CXX=relink 15802 else 15803 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15804 hardcode_action_CXX=immediate 15805 fi 15806else 15807 # We cannot hardcode anything, or else we can only hardcode existing 15808 # directories. 15809 hardcode_action_CXX=unsupported 15810fi 15811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 15812$as_echo "$hardcode_action_CXX" >&6; } 15813 15814if test "$hardcode_action_CXX" = relink || 15815 test "$inherit_rpath_CXX" = yes; then 15816 # Fast installation is not supported 15817 enable_fast_install=no 15818elif test "$shlibpath_overrides_runpath" = yes || 15819 test "$enable_shared" = no; then 15820 # Fast installation is not necessary 15821 enable_fast_install=needless 15822fi 15823 15824 15825 15826 15827 15828 15829 15830 fi # test -n "$compiler" 15831 15832 CC=$lt_save_CC 15833 CFLAGS=$lt_save_CFLAGS 15834 LDCXX=$LD 15835 LD=$lt_save_LD 15836 GCC=$lt_save_GCC 15837 with_gnu_ld=$lt_save_with_gnu_ld 15838 lt_cv_path_LDCXX=$lt_cv_path_LD 15839 lt_cv_path_LD=$lt_save_path_LD 15840 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 15841 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 15842fi # test "$_lt_caught_CXX_error" != yes 15843 15844ac_ext=c 15845ac_cpp='$CPP $CPPFLAGS' 15846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15848ac_compiler_gnu=$ac_cv_c_compiler_gnu 15849 15850 15851 15852# Check whether --enable-silent-rules was given. 15853if test "${enable_silent_rules+set}" = set; then : 15854 enableval=$enable_silent_rules; 15855fi 15856 15857case $enable_silent_rules in # ((( 15858 yes) AM_DEFAULT_VERBOSITY=0;; 15859 no) AM_DEFAULT_VERBOSITY=1;; 15860 *) AM_DEFAULT_VERBOSITY=0;; 15861esac 15862am_make=${MAKE-make} 15863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 15864$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 15865if ${am_cv_make_support_nested_variables+:} false; then : 15866 $as_echo_n "(cached) " >&6 15867else 15868 if $as_echo 'TRUE=$(BAR$(V)) 15869BAR0=false 15870BAR1=true 15871V=1 15872am__doit: 15873 @$(TRUE) 15874.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 15875 am_cv_make_support_nested_variables=yes 15876else 15877 am_cv_make_support_nested_variables=no 15878fi 15879fi 15880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 15881$as_echo "$am_cv_make_support_nested_variables" >&6; } 15882if test $am_cv_make_support_nested_variables = yes; then 15883 AM_V='$(V)' 15884 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 15885else 15886 AM_V=$AM_DEFAULT_VERBOSITY 15887 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 15888fi 15889AM_BACKSLASH='\' 15890 15891 15892# Check whether --enable-debug was given. 15893if test "${enable_debug+set}" = set; then : 15894 enableval=$enable_debug; CFLAGS="$CFLAGS -g -O0" 15895 CXXFLAGS="$CXXFLAGS -g -O0" 15896fi 15897 15898 15899 15900 15901 15902 15903 15904 15905 15906 15907if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 15908 if test -n "$ac_tool_prefix"; then 15909 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 15910set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 15911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15912$as_echo_n "checking for $ac_word... " >&6; } 15913if ${ac_cv_path_PKG_CONFIG+:} false; then : 15914 $as_echo_n "(cached) " >&6 15915else 15916 case $PKG_CONFIG in 15917 [\\/]* | ?:[\\/]*) 15918 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 15919 ;; 15920 *) 15921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15922for as_dir in $PATH 15923do 15924 IFS=$as_save_IFS 15925 test -z "$as_dir" && as_dir=. 15926 for ac_exec_ext in '' $ac_executable_extensions; do 15927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 15928 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 15929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15930 break 2 15931 fi 15932done 15933 done 15934IFS=$as_save_IFS 15935 15936 ;; 15937esac 15938fi 15939PKG_CONFIG=$ac_cv_path_PKG_CONFIG 15940if test -n "$PKG_CONFIG"; then 15941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 15942$as_echo "$PKG_CONFIG" >&6; } 15943else 15944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15945$as_echo "no" >&6; } 15946fi 15947 15948 15949fi 15950if test -z "$ac_cv_path_PKG_CONFIG"; then 15951 ac_pt_PKG_CONFIG=$PKG_CONFIG 15952 # Extract the first word of "pkg-config", so it can be a program name with args. 15953set dummy pkg-config; ac_word=$2 15954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15955$as_echo_n "checking for $ac_word... " >&6; } 15956if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 15957 $as_echo_n "(cached) " >&6 15958else 15959 case $ac_pt_PKG_CONFIG in 15960 [\\/]* | ?:[\\/]*) 15961 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 15962 ;; 15963 *) 15964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15965for as_dir in $PATH 15966do 15967 IFS=$as_save_IFS 15968 test -z "$as_dir" && as_dir=. 15969 for ac_exec_ext in '' $ac_executable_extensions; do 15970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 15971 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 15972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15973 break 2 15974 fi 15975done 15976 done 15977IFS=$as_save_IFS 15978 15979 ;; 15980esac 15981fi 15982ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 15983if test -n "$ac_pt_PKG_CONFIG"; then 15984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 15985$as_echo "$ac_pt_PKG_CONFIG" >&6; } 15986else 15987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15988$as_echo "no" >&6; } 15989fi 15990 15991 if test "x$ac_pt_PKG_CONFIG" = x; then 15992 PKG_CONFIG="" 15993 else 15994 case $cross_compiling:$ac_tool_warned in 15995yes:) 15996{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15997$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15998ac_tool_warned=yes ;; 15999esac 16000 PKG_CONFIG=$ac_pt_PKG_CONFIG 16001 fi 16002else 16003 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 16004fi 16005 16006fi 16007if test -n "$PKG_CONFIG"; then 16008 _pkg_min_version=0.9.0 16009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 16010$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 16011 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 16012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16013$as_echo "yes" >&6; } 16014 else 16015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16016$as_echo "no" >&6; } 16017 PKG_CONFIG="" 16018 fi 16019fi 16020 16021# Check whether --enable-osmesa was given. 16022if test "${enable_osmesa+set}" = set; then : 16023 enableval=$enable_osmesa; OSMESA="$enableval" 16024else 16025 OSMESA=no 16026fi 16027 16028 16029if test "x$OSMESA" = "xyes"; then 16030 GLU_REQUIRES="osmesa" 16031 16032pkg_failed=no 16033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSMESA" >&5 16034$as_echo_n "checking for OSMESA... " >&6; } 16035 16036if test -n "$OSMESA_CFLAGS"; then 16037 pkg_cv_OSMESA_CFLAGS="$OSMESA_CFLAGS" 16038 elif test -n "$PKG_CONFIG"; then 16039 if test -n "$PKG_CONFIG" && \ 16040 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"osmesa\""; } >&5 16041 ($PKG_CONFIG --exists --print-errors "osmesa") 2>&5 16042 ac_status=$? 16043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16044 test $ac_status = 0; }; then 16045 pkg_cv_OSMESA_CFLAGS=`$PKG_CONFIG --cflags "osmesa" 2>/dev/null` 16046 test "x$?" != "x0" && pkg_failed=yes 16047else 16048 pkg_failed=yes 16049fi 16050 else 16051 pkg_failed=untried 16052fi 16053if test -n "$OSMESA_LIBS"; then 16054 pkg_cv_OSMESA_LIBS="$OSMESA_LIBS" 16055 elif test -n "$PKG_CONFIG"; then 16056 if test -n "$PKG_CONFIG" && \ 16057 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"osmesa\""; } >&5 16058 ($PKG_CONFIG --exists --print-errors "osmesa") 2>&5 16059 ac_status=$? 16060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16061 test $ac_status = 0; }; then 16062 pkg_cv_OSMESA_LIBS=`$PKG_CONFIG --libs "osmesa" 2>/dev/null` 16063 test "x$?" != "x0" && pkg_failed=yes 16064else 16065 pkg_failed=yes 16066fi 16067 else 16068 pkg_failed=untried 16069fi 16070 16071 16072 16073if test $pkg_failed = yes; then 16074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16075$as_echo "no" >&6; } 16076 16077if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16078 _pkg_short_errors_supported=yes 16079else 16080 _pkg_short_errors_supported=no 16081fi 16082 if test $_pkg_short_errors_supported = yes; then 16083 OSMESA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "osmesa" 2>&1` 16084 else 16085 OSMESA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "osmesa" 2>&1` 16086 fi 16087 # Put the nasty error message in config.log where it belongs 16088 echo "$OSMESA_PKG_ERRORS" >&5 16089 16090 16091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glBegin in -lOSMesa" >&5 16092$as_echo_n "checking for glBegin in -lOSMesa... " >&6; } 16093if ${ac_cv_lib_OSMesa_glBegin+:} false; then : 16094 $as_echo_n "(cached) " >&6 16095else 16096 ac_check_lib_save_LIBS=$LIBS 16097LIBS="-lOSMesa $LIBS" 16098cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16099/* end confdefs.h. */ 16100 16101/* Override any GCC internal prototype to avoid an error. 16102 Use char because int might match the return type of a GCC 16103 builtin and then its argument prototype would still apply. */ 16104#ifdef __cplusplus 16105extern "C" 16106#endif 16107char glBegin (); 16108int 16109main () 16110{ 16111return glBegin (); 16112 ; 16113 return 0; 16114} 16115_ACEOF 16116if ac_fn_c_try_link "$LINENO"; then : 16117 ac_cv_lib_OSMesa_glBegin=yes 16118else 16119 ac_cv_lib_OSMesa_glBegin=no 16120fi 16121rm -f core conftest.err conftest.$ac_objext \ 16122 conftest$ac_exeext conftest.$ac_ext 16123LIBS=$ac_check_lib_save_LIBS 16124fi 16125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OSMesa_glBegin" >&5 16126$as_echo "$ac_cv_lib_OSMesa_glBegin" >&6; } 16127if test "x$ac_cv_lib_OSMesa_glBegin" = xyes; then : 16128 OSMESA_LIBS=-lOSMesa 16129else 16130 as_fn_error $? "OSMesa required" "$LINENO" 5 16131fi 16132 16133 16134elif test $pkg_failed = untried; then 16135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16136$as_echo "no" >&6; } 16137 16138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glBegin in -lOSMesa" >&5 16139$as_echo_n "checking for glBegin in -lOSMesa... " >&6; } 16140if ${ac_cv_lib_OSMesa_glBegin+:} false; then : 16141 $as_echo_n "(cached) " >&6 16142else 16143 ac_check_lib_save_LIBS=$LIBS 16144LIBS="-lOSMesa $LIBS" 16145cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16146/* end confdefs.h. */ 16147 16148/* Override any GCC internal prototype to avoid an error. 16149 Use char because int might match the return type of a GCC 16150 builtin and then its argument prototype would still apply. */ 16151#ifdef __cplusplus 16152extern "C" 16153#endif 16154char glBegin (); 16155int 16156main () 16157{ 16158return glBegin (); 16159 ; 16160 return 0; 16161} 16162_ACEOF 16163if ac_fn_c_try_link "$LINENO"; then : 16164 ac_cv_lib_OSMesa_glBegin=yes 16165else 16166 ac_cv_lib_OSMesa_glBegin=no 16167fi 16168rm -f core conftest.err conftest.$ac_objext \ 16169 conftest$ac_exeext conftest.$ac_ext 16170LIBS=$ac_check_lib_save_LIBS 16171fi 16172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OSMesa_glBegin" >&5 16173$as_echo "$ac_cv_lib_OSMesa_glBegin" >&6; } 16174if test "x$ac_cv_lib_OSMesa_glBegin" = xyes; then : 16175 OSMESA_LIBS=-lOSMesa 16176else 16177 as_fn_error $? "OSMesa required" "$LINENO" 5 16178fi 16179 16180 16181else 16182 OSMESA_CFLAGS=$pkg_cv_OSMESA_CFLAGS 16183 OSMESA_LIBS=$pkg_cv_OSMESA_LIBS 16184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16185$as_echo "yes" >&6; } 16186 16187fi 16188else 16189 GLU_REQUIRES="gl" 16190 16191pkg_failed=no 16192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL" >&5 16193$as_echo_n "checking for GL... " >&6; } 16194 16195if test -n "$GL_CFLAGS"; then 16196 pkg_cv_GL_CFLAGS="$GL_CFLAGS" 16197 elif test -n "$PKG_CONFIG"; then 16198 if test -n "$PKG_CONFIG" && \ 16199 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl\""; } >&5 16200 ($PKG_CONFIG --exists --print-errors "gl") 2>&5 16201 ac_status=$? 16202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16203 test $ac_status = 0; }; then 16204 pkg_cv_GL_CFLAGS=`$PKG_CONFIG --cflags "gl" 2>/dev/null` 16205 test "x$?" != "x0" && pkg_failed=yes 16206else 16207 pkg_failed=yes 16208fi 16209 else 16210 pkg_failed=untried 16211fi 16212if test -n "$GL_LIBS"; then 16213 pkg_cv_GL_LIBS="$GL_LIBS" 16214 elif test -n "$PKG_CONFIG"; then 16215 if test -n "$PKG_CONFIG" && \ 16216 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl\""; } >&5 16217 ($PKG_CONFIG --exists --print-errors "gl") 2>&5 16218 ac_status=$? 16219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16220 test $ac_status = 0; }; then 16221 pkg_cv_GL_LIBS=`$PKG_CONFIG --libs "gl" 2>/dev/null` 16222 test "x$?" != "x0" && pkg_failed=yes 16223else 16224 pkg_failed=yes 16225fi 16226 else 16227 pkg_failed=untried 16228fi 16229 16230 16231 16232if test $pkg_failed = yes; then 16233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16234$as_echo "no" >&6; } 16235 16236if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16237 _pkg_short_errors_supported=yes 16238else 16239 _pkg_short_errors_supported=no 16240fi 16241 if test $_pkg_short_errors_supported = yes; then 16242 GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gl" 2>&1` 16243 else 16244 GL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gl" 2>&1` 16245 fi 16246 # Put the nasty error message in config.log where it belongs 16247 echo "$GL_PKG_ERRORS" >&5 16248 16249 16250 ac_fn_c_check_header_mongrel "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default" 16251if test "x$ac_cv_header_GL_gl_h" = xyes; then : 16252 16253else 16254 as_fn_error $? "GL not found" "$LINENO" 5 16255fi 16256 16257 16258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glBegin in -lGL" >&5 16259$as_echo_n "checking for glBegin in -lGL... " >&6; } 16260if ${ac_cv_lib_GL_glBegin+:} false; then : 16261 $as_echo_n "(cached) " >&6 16262else 16263 ac_check_lib_save_LIBS=$LIBS 16264LIBS="-lGL $LIBS" 16265cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16266/* end confdefs.h. */ 16267 16268/* Override any GCC internal prototype to avoid an error. 16269 Use char because int might match the return type of a GCC 16270 builtin and then its argument prototype would still apply. */ 16271#ifdef __cplusplus 16272extern "C" 16273#endif 16274char glBegin (); 16275int 16276main () 16277{ 16278return glBegin (); 16279 ; 16280 return 0; 16281} 16282_ACEOF 16283if ac_fn_c_try_link "$LINENO"; then : 16284 ac_cv_lib_GL_glBegin=yes 16285else 16286 ac_cv_lib_GL_glBegin=no 16287fi 16288rm -f core conftest.err conftest.$ac_objext \ 16289 conftest$ac_exeext conftest.$ac_ext 16290LIBS=$ac_check_lib_save_LIBS 16291fi 16292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glBegin" >&5 16293$as_echo "$ac_cv_lib_GL_glBegin" >&6; } 16294if test "x$ac_cv_lib_GL_glBegin" = xyes; then : 16295 GL_LIBS=-lGL 16296else 16297 as_fn_error $? "GL required" "$LINENO" 5 16298fi 16299 16300 16301elif test $pkg_failed = untried; then 16302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16303$as_echo "no" >&6; } 16304 16305 ac_fn_c_check_header_mongrel "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default" 16306if test "x$ac_cv_header_GL_gl_h" = xyes; then : 16307 16308else 16309 as_fn_error $? "GL not found" "$LINENO" 5 16310fi 16311 16312 16313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glBegin in -lGL" >&5 16314$as_echo_n "checking for glBegin in -lGL... " >&6; } 16315if ${ac_cv_lib_GL_glBegin+:} false; then : 16316 $as_echo_n "(cached) " >&6 16317else 16318 ac_check_lib_save_LIBS=$LIBS 16319LIBS="-lGL $LIBS" 16320cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16321/* end confdefs.h. */ 16322 16323/* Override any GCC internal prototype to avoid an error. 16324 Use char because int might match the return type of a GCC 16325 builtin and then its argument prototype would still apply. */ 16326#ifdef __cplusplus 16327extern "C" 16328#endif 16329char glBegin (); 16330int 16331main () 16332{ 16333return glBegin (); 16334 ; 16335 return 0; 16336} 16337_ACEOF 16338if ac_fn_c_try_link "$LINENO"; then : 16339 ac_cv_lib_GL_glBegin=yes 16340else 16341 ac_cv_lib_GL_glBegin=no 16342fi 16343rm -f core conftest.err conftest.$ac_objext \ 16344 conftest$ac_exeext conftest.$ac_ext 16345LIBS=$ac_check_lib_save_LIBS 16346fi 16347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glBegin" >&5 16348$as_echo "$ac_cv_lib_GL_glBegin" >&6; } 16349if test "x$ac_cv_lib_GL_glBegin" = xyes; then : 16350 GL_LIBS=-lGL 16351else 16352 as_fn_error $? "GL required" "$LINENO" 5 16353fi 16354 16355 16356else 16357 GL_CFLAGS=$pkg_cv_GL_CFLAGS 16358 GL_LIBS=$pkg_cv_GL_LIBS 16359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16360$as_echo "yes" >&6; } 16361 16362fi 16363fi 16364 16365 16366if test "x$GCC" = xyes; then 16367 WARNCFLAGS="-Wall" 16368 16369 # Enable -fvisibility=hidden if using a gcc that supports it 16370 save_CFLAGS="$CFLAGS" 16371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fvisibility=hidden" >&5 16372$as_echo_n "checking whether $CC supports -fvisibility=hidden... " >&6; } 16373 VISIBILITY_CFLAGS="-fvisibility=hidden" 16374 CFLAGS="$CFLAGS $VISIBILITY_CFLAGS" 16375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16376/* end confdefs.h. */ 16377 16378int 16379main () 16380{ 16381 16382 ; 16383 return 0; 16384} 16385_ACEOF 16386if ac_fn_c_try_link "$LINENO"; then : 16387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16388$as_echo "yes" >&6; } 16389else 16390 VISIBILITY_CFLAGS=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16391$as_echo "no" >&6; } 16392fi 16393rm -f core conftest.err conftest.$ac_objext \ 16394 conftest$ac_exeext conftest.$ac_ext; 16395 16396 # Restore CFLAGS; VISIBILITY_CFLAGS are added to it where needed. 16397 CFLAGS=$save_CFLAGS 16398 16399 if test "x$GXX" = xyes; then 16400 WARNCXXFLAGS="-Wall" 16401 16402 # Enable -fvisibility=hidden if using a gcc that supports it 16403 save_CXXFLAGS="$CXXFLAGS" 16404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -fvisibility=hidden" >&5 16405$as_echo_n "checking whether $CXX supports -fvisibility=hidden... " >&6; } 16406 VISIBILITY_CXXFLAGS="-fvisibility=hidden" 16407 CXXFLAGS="$CXXFLAGS $VISIBILITY_CXXFLAGS" 16408 ac_ext=cpp 16409ac_cpp='$CXXCPP $CPPFLAGS' 16410ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16411ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16412ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16413 16414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16415/* end confdefs.h. */ 16416 16417int 16418main () 16419{ 16420 16421 ; 16422 return 0; 16423} 16424_ACEOF 16425if ac_fn_cxx_try_link "$LINENO"; then : 16426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16427$as_echo "yes" >&6; } 16428else 16429 VISIBILITY_CXXFLAGS=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16430$as_echo "no" >&6; } 16431fi 16432rm -f core conftest.err conftest.$ac_objext \ 16433 conftest$ac_exeext conftest.$ac_ext; 16434 ac_ext=c 16435ac_cpp='$CPP $CPPFLAGS' 16436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16438ac_compiler_gnu=$ac_cv_c_compiler_gnu 16439 16440 16441 # Restore CXXFLAGS; VISIBILITY_CXXFLAGS are added to it where needed. 16442 CXXFLAGS=$save_CXXFLAGS 16443 fi 16444else 16445 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 16446if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 16447 SUNCC="yes" 16448else 16449 SUNCC="no" 16450fi 16451 16452 if test "x$SUNCC" = "xyes"; then 16453 WARNCFLAGS="-v" 16454 WARNCXXFLAGS="-v" 16455 fi 16456fi 16457 16458 16459 16460 16461 16462ac_config_files="$ac_config_files Makefile glu.pc" 16463 16464cat >confcache <<\_ACEOF 16465# This file is a shell script that caches the results of configure 16466# tests run on this system so they can be shared between configure 16467# scripts and configure runs, see configure's option --config-cache. 16468# It is not useful on other systems. If it contains results you don't 16469# want to keep, you may remove or edit it. 16470# 16471# config.status only pays attention to the cache file if you give it 16472# the --recheck option to rerun configure. 16473# 16474# `ac_cv_env_foo' variables (set or unset) will be overridden when 16475# loading this file, other *unset* `ac_cv_foo' will be assigned the 16476# following values. 16477 16478_ACEOF 16479 16480# The following way of writing the cache mishandles newlines in values, 16481# but we know of no workaround that is simple, portable, and efficient. 16482# So, we kill variables containing newlines. 16483# Ultrix sh set writes to stderr and can't be redirected directly, 16484# and sets the high bit in the cache file unless we assign to the vars. 16485( 16486 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 16487 eval ac_val=\$$ac_var 16488 case $ac_val in #( 16489 *${as_nl}*) 16490 case $ac_var in #( 16491 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 16492$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 16493 esac 16494 case $ac_var in #( 16495 _ | IFS | as_nl) ;; #( 16496 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 16497 *) { eval $ac_var=; unset $ac_var;} ;; 16498 esac ;; 16499 esac 16500 done 16501 16502 (set) 2>&1 | 16503 case $as_nl`(ac_space=' '; set) 2>&1` in #( 16504 *${as_nl}ac_space=\ *) 16505 # `set' does not quote correctly, so add quotes: double-quote 16506 # substitution turns \\\\ into \\, and sed turns \\ into \. 16507 sed -n \ 16508 "s/'/'\\\\''/g; 16509 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 16510 ;; #( 16511 *) 16512 # `set' quotes correctly as required by POSIX, so do not add quotes. 16513 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 16514 ;; 16515 esac | 16516 sort 16517) | 16518 sed ' 16519 /^ac_cv_env_/b end 16520 t clear 16521 :clear 16522 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 16523 t end 16524 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16525 :end' >>confcache 16526if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16527 if test -w "$cache_file"; then 16528 if test "x$cache_file" != "x/dev/null"; then 16529 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 16530$as_echo "$as_me: updating cache $cache_file" >&6;} 16531 if test ! -f "$cache_file" || test -h "$cache_file"; then 16532 cat confcache >"$cache_file" 16533 else 16534 case $cache_file in #( 16535 */* | ?:*) 16536 mv -f confcache "$cache_file"$$ && 16537 mv -f "$cache_file"$$ "$cache_file" ;; #( 16538 *) 16539 mv -f confcache "$cache_file" ;; 16540 esac 16541 fi 16542 fi 16543 else 16544 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 16545$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 16546 fi 16547fi 16548rm -f confcache 16549 16550test "x$prefix" = xNONE && prefix=$ac_default_prefix 16551# Let make expand exec_prefix. 16552test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16553 16554# Transform confdefs.h into DEFS. 16555# Protect against shell expansion while executing Makefile rules. 16556# Protect against Makefile macro expansion. 16557# 16558# If the first sed substitution is executed (which looks for macros that 16559# take arguments), then branch to the quote section. Otherwise, 16560# look for a macro that doesn't take arguments. 16561ac_script=' 16562:mline 16563/\\$/{ 16564 N 16565 s,\\\n,, 16566 b mline 16567} 16568t clear 16569:clear 16570s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 16571t quote 16572s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 16573t quote 16574b any 16575:quote 16576s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 16577s/\[/\\&/g 16578s/\]/\\&/g 16579s/\$/$$/g 16580H 16581:any 16582${ 16583 g 16584 s/^\n// 16585 s/\n/ /g 16586 p 16587} 16588' 16589DEFS=`sed -n "$ac_script" confdefs.h` 16590 16591 16592ac_libobjs= 16593ac_ltlibobjs= 16594U= 16595for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 16596 # 1. Remove the extension, and $U if already installed. 16597 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 16598 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 16599 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 16600 # will be set to the directory where LIBOBJS objects are built. 16601 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 16602 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 16603done 16604LIBOBJS=$ac_libobjs 16605 16606LTLIBOBJS=$ac_ltlibobjs 16607 16608 16609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 16610$as_echo_n "checking that generated files are newer than configure... " >&6; } 16611 if test -n "$am_sleep_pid"; then 16612 # Hide warnings about reused PIDs. 16613 wait $am_sleep_pid 2>/dev/null 16614 fi 16615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 16616$as_echo "done" >&6; } 16617 if test -n "$EXEEXT"; then 16618 am__EXEEXT_TRUE= 16619 am__EXEEXT_FALSE='#' 16620else 16621 am__EXEEXT_TRUE='#' 16622 am__EXEEXT_FALSE= 16623fi 16624 16625if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 16626 as_fn_error $? "conditional \"AMDEP\" was never defined. 16627Usually this means the macro was only invoked conditionally." "$LINENO" 5 16628fi 16629if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16630 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 16631Usually this means the macro was only invoked conditionally." "$LINENO" 5 16632fi 16633if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16634 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 16635Usually this means the macro was only invoked conditionally." "$LINENO" 5 16636fi 16637if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 16638 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 16639Usually this means the macro was only invoked conditionally." "$LINENO" 5 16640fi 16641 16642: "${CONFIG_STATUS=./config.status}" 16643ac_write_fail=0 16644ac_clean_files_save=$ac_clean_files 16645ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16646{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 16647$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 16648as_write_fail=0 16649cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 16650#! $SHELL 16651# Generated by $as_me. 16652# Run this file to recreate the current configuration. 16653# Compiler output produced by configure, useful for debugging 16654# configure, is in config.log if it exists. 16655 16656debug=false 16657ac_cs_recheck=false 16658ac_cs_silent=false 16659 16660SHELL=\${CONFIG_SHELL-$SHELL} 16661export SHELL 16662_ASEOF 16663cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 16664## -------------------- ## 16665## M4sh Initialization. ## 16666## -------------------- ## 16667 16668# Be more Bourne compatible 16669DUALCASE=1; export DUALCASE # for MKS sh 16670if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 16671 emulate sh 16672 NULLCMD=: 16673 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 16674 # is contrary to our usage. Disable this feature. 16675 alias -g '${1+"$@"}'='"$@"' 16676 setopt NO_GLOB_SUBST 16677else 16678 case `(set -o) 2>/dev/null` in #( 16679 *posix*) : 16680 set -o posix ;; #( 16681 *) : 16682 ;; 16683esac 16684fi 16685 16686 16687as_nl=' 16688' 16689export as_nl 16690# Printing a long string crashes Solaris 7 /usr/bin/printf. 16691as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 16692as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 16693as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 16694# Prefer a ksh shell builtin over an external printf program on Solaris, 16695# but without wasting forks for bash or zsh. 16696if test -z "$BASH_VERSION$ZSH_VERSION" \ 16697 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 16698 as_echo='print -r --' 16699 as_echo_n='print -rn --' 16700elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 16701 as_echo='printf %s\n' 16702 as_echo_n='printf %s' 16703else 16704 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 16705 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 16706 as_echo_n='/usr/ucb/echo -n' 16707 else 16708 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 16709 as_echo_n_body='eval 16710 arg=$1; 16711 case $arg in #( 16712 *"$as_nl"*) 16713 expr "X$arg" : "X\\(.*\\)$as_nl"; 16714 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 16715 esac; 16716 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 16717 ' 16718 export as_echo_n_body 16719 as_echo_n='sh -c $as_echo_n_body as_echo' 16720 fi 16721 export as_echo_body 16722 as_echo='sh -c $as_echo_body as_echo' 16723fi 16724 16725# The user is always right. 16726if test "${PATH_SEPARATOR+set}" != set; then 16727 PATH_SEPARATOR=: 16728 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 16729 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 16730 PATH_SEPARATOR=';' 16731 } 16732fi 16733 16734 16735# IFS 16736# We need space, tab and new line, in precisely that order. Quoting is 16737# there to prevent editors from complaining about space-tab. 16738# (If _AS_PATH_WALK were called with IFS unset, it would disable word 16739# splitting by setting IFS to empty value.) 16740IFS=" "" $as_nl" 16741 16742# Find who we are. Look in the path if we contain no directory separator. 16743as_myself= 16744case $0 in #(( 16745 *[\\/]* ) as_myself=$0 ;; 16746 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16747for as_dir in $PATH 16748do 16749 IFS=$as_save_IFS 16750 test -z "$as_dir" && as_dir=. 16751 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 16752 done 16753IFS=$as_save_IFS 16754 16755 ;; 16756esac 16757# We did not find ourselves, most probably we were run as `sh COMMAND' 16758# in which case we are not to be found in the path. 16759if test "x$as_myself" = x; then 16760 as_myself=$0 16761fi 16762if test ! -f "$as_myself"; then 16763 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16764 exit 1 16765fi 16766 16767# Unset variables that we do not need and which cause bugs (e.g. in 16768# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 16769# suppresses any "Segmentation fault" message there. '((' could 16770# trigger a bug in pdksh 5.2.14. 16771for as_var in BASH_ENV ENV MAIL MAILPATH 16772do eval test x\${$as_var+set} = xset \ 16773 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 16774done 16775PS1='$ ' 16776PS2='> ' 16777PS4='+ ' 16778 16779# NLS nuisances. 16780LC_ALL=C 16781export LC_ALL 16782LANGUAGE=C 16783export LANGUAGE 16784 16785# CDPATH. 16786(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16787 16788 16789# as_fn_error STATUS ERROR [LINENO LOG_FD] 16790# ---------------------------------------- 16791# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16792# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16793# script with STATUS, using 1 if that was 0. 16794as_fn_error () 16795{ 16796 as_status=$1; test $as_status -eq 0 && as_status=1 16797 if test "$4"; then 16798 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16799 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 16800 fi 16801 $as_echo "$as_me: error: $2" >&2 16802 as_fn_exit $as_status 16803} # as_fn_error 16804 16805 16806# as_fn_set_status STATUS 16807# ----------------------- 16808# Set $? to STATUS, without forking. 16809as_fn_set_status () 16810{ 16811 return $1 16812} # as_fn_set_status 16813 16814# as_fn_exit STATUS 16815# ----------------- 16816# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16817as_fn_exit () 16818{ 16819 set +e 16820 as_fn_set_status $1 16821 exit $1 16822} # as_fn_exit 16823 16824# as_fn_unset VAR 16825# --------------- 16826# Portably unset VAR. 16827as_fn_unset () 16828{ 16829 { eval $1=; unset $1;} 16830} 16831as_unset=as_fn_unset 16832# as_fn_append VAR VALUE 16833# ---------------------- 16834# Append the text in VALUE to the end of the definition contained in VAR. Take 16835# advantage of any shell optimizations that allow amortized linear growth over 16836# repeated appends, instead of the typical quadratic growth present in naive 16837# implementations. 16838if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 16839 eval 'as_fn_append () 16840 { 16841 eval $1+=\$2 16842 }' 16843else 16844 as_fn_append () 16845 { 16846 eval $1=\$$1\$2 16847 } 16848fi # as_fn_append 16849 16850# as_fn_arith ARG... 16851# ------------------ 16852# Perform arithmetic evaluation on the ARGs, and store the result in the 16853# global $as_val. Take advantage of shells that can avoid forks. The arguments 16854# must be portable across $(()) and expr. 16855if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 16856 eval 'as_fn_arith () 16857 { 16858 as_val=$(( $* )) 16859 }' 16860else 16861 as_fn_arith () 16862 { 16863 as_val=`expr "$@" || test $? -eq 1` 16864 } 16865fi # as_fn_arith 16866 16867 16868if expr a : '\(a\)' >/dev/null 2>&1 && 16869 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16870 as_expr=expr 16871else 16872 as_expr=false 16873fi 16874 16875if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16876 as_basename=basename 16877else 16878 as_basename=false 16879fi 16880 16881if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16882 as_dirname=dirname 16883else 16884 as_dirname=false 16885fi 16886 16887as_me=`$as_basename -- "$0" || 16888$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16889 X"$0" : 'X\(//\)$' \| \ 16890 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16891$as_echo X/"$0" | 16892 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16893 s//\1/ 16894 q 16895 } 16896 /^X\/\(\/\/\)$/{ 16897 s//\1/ 16898 q 16899 } 16900 /^X\/\(\/\).*/{ 16901 s//\1/ 16902 q 16903 } 16904 s/.*/./; q'` 16905 16906# Avoid depending upon Character Ranges. 16907as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16908as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16909as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16910as_cr_digits='0123456789' 16911as_cr_alnum=$as_cr_Letters$as_cr_digits 16912 16913ECHO_C= ECHO_N= ECHO_T= 16914case `echo -n x` in #((((( 16915-n*) 16916 case `echo 'xy\c'` in 16917 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16918 xy) ECHO_C='\c';; 16919 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 16920 ECHO_T=' ';; 16921 esac;; 16922*) 16923 ECHO_N='-n';; 16924esac 16925 16926rm -f conf$$ conf$$.exe conf$$.file 16927if test -d conf$$.dir; then 16928 rm -f conf$$.dir/conf$$.file 16929else 16930 rm -f conf$$.dir 16931 mkdir conf$$.dir 2>/dev/null 16932fi 16933if (echo >conf$$.file) 2>/dev/null; then 16934 if ln -s conf$$.file conf$$ 2>/dev/null; then 16935 as_ln_s='ln -s' 16936 # ... but there are two gotchas: 16937 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16938 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16939 # In both cases, we have to default to `cp -p'. 16940 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16941 as_ln_s='cp -p' 16942 elif ln conf$$.file conf$$ 2>/dev/null; then 16943 as_ln_s=ln 16944 else 16945 as_ln_s='cp -p' 16946 fi 16947else 16948 as_ln_s='cp -p' 16949fi 16950rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16951rmdir conf$$.dir 2>/dev/null 16952 16953 16954# as_fn_mkdir_p 16955# ------------- 16956# Create "$as_dir" as a directory, including parents if necessary. 16957as_fn_mkdir_p () 16958{ 16959 16960 case $as_dir in #( 16961 -*) as_dir=./$as_dir;; 16962 esac 16963 test -d "$as_dir" || eval $as_mkdir_p || { 16964 as_dirs= 16965 while :; do 16966 case $as_dir in #( 16967 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16968 *) as_qdir=$as_dir;; 16969 esac 16970 as_dirs="'$as_qdir' $as_dirs" 16971 as_dir=`$as_dirname -- "$as_dir" || 16972$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16973 X"$as_dir" : 'X\(//\)[^/]' \| \ 16974 X"$as_dir" : 'X\(//\)$' \| \ 16975 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16976$as_echo X"$as_dir" | 16977 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16978 s//\1/ 16979 q 16980 } 16981 /^X\(\/\/\)[^/].*/{ 16982 s//\1/ 16983 q 16984 } 16985 /^X\(\/\/\)$/{ 16986 s//\1/ 16987 q 16988 } 16989 /^X\(\/\).*/{ 16990 s//\1/ 16991 q 16992 } 16993 s/.*/./; q'` 16994 test -d "$as_dir" && break 16995 done 16996 test -z "$as_dirs" || eval "mkdir $as_dirs" 16997 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 16998 16999 17000} # as_fn_mkdir_p 17001if mkdir -p . 2>/dev/null; then 17002 as_mkdir_p='mkdir -p "$as_dir"' 17003else 17004 test -d ./-p && rmdir ./-p 17005 as_mkdir_p=false 17006fi 17007 17008if test -x / >/dev/null 2>&1; then 17009 as_test_x='test -x' 17010else 17011 if ls -dL / >/dev/null 2>&1; then 17012 as_ls_L_option=L 17013 else 17014 as_ls_L_option= 17015 fi 17016 as_test_x=' 17017 eval sh -c '\'' 17018 if test -d "$1"; then 17019 test -d "$1/."; 17020 else 17021 case $1 in #( 17022 -*)set "./$1";; 17023 esac; 17024 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 17025 ???[sx]*):;;*)false;;esac;fi 17026 '\'' sh 17027 ' 17028fi 17029as_executable_p=$as_test_x 17030 17031# Sed expression to map a string onto a valid CPP name. 17032as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17033 17034# Sed expression to map a string onto a valid variable name. 17035as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17036 17037 17038exec 6>&1 17039## ----------------------------------- ## 17040## Main body of $CONFIG_STATUS script. ## 17041## ----------------------------------- ## 17042_ASEOF 17043test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17044 17045cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17046# Save the log message, to keep $0 and so on meaningful, and to 17047# report actual input values of CONFIG_FILES etc. instead of their 17048# values after options handling. 17049ac_log=" 17050This file was extended by glu $as_me 9.0.0, which was 17051generated by GNU Autoconf 2.68. Invocation command line was 17052 17053 CONFIG_FILES = $CONFIG_FILES 17054 CONFIG_HEADERS = $CONFIG_HEADERS 17055 CONFIG_LINKS = $CONFIG_LINKS 17056 CONFIG_COMMANDS = $CONFIG_COMMANDS 17057 $ $0 $@ 17058 17059on `(hostname || uname -n) 2>/dev/null | sed 1q` 17060" 17061 17062_ACEOF 17063 17064case $ac_config_files in *" 17065"*) set x $ac_config_files; shift; ac_config_files=$*;; 17066esac 17067 17068 17069 17070cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17071# Files that config.status was made for. 17072config_files="$ac_config_files" 17073config_commands="$ac_config_commands" 17074 17075_ACEOF 17076 17077cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17078ac_cs_usage="\ 17079\`$as_me' instantiates files and other configuration actions 17080from templates according to the current configuration. Unless the files 17081and actions are specified as TAGs, all are instantiated by default. 17082 17083Usage: $0 [OPTION]... [TAG]... 17084 17085 -h, --help print this help, then exit 17086 -V, --version print version number and configuration settings, then exit 17087 --config print configuration, then exit 17088 -q, --quiet, --silent 17089 do not print progress messages 17090 -d, --debug don't remove temporary files 17091 --recheck update $as_me by reconfiguring in the same conditions 17092 --file=FILE[:TEMPLATE] 17093 instantiate the configuration file FILE 17094 17095Configuration files: 17096$config_files 17097 17098Configuration commands: 17099$config_commands 17100 17101Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa&component=GLU>." 17102 17103_ACEOF 17104cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17105ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17106ac_cs_version="\\ 17107glu config.status 9.0.0 17108configured by $0, generated by GNU Autoconf 2.68, 17109 with options \\"\$ac_cs_config\\" 17110 17111Copyright (C) 2010 Free Software Foundation, Inc. 17112This config.status script is free software; the Free Software Foundation 17113gives unlimited permission to copy, distribute and modify it." 17114 17115ac_pwd='$ac_pwd' 17116srcdir='$srcdir' 17117INSTALL='$INSTALL' 17118MKDIR_P='$MKDIR_P' 17119AWK='$AWK' 17120test -n "\$AWK" || AWK=awk 17121_ACEOF 17122 17123cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17124# The default lists apply if the user does not specify any file. 17125ac_need_defaults=: 17126while test $# != 0 17127do 17128 case $1 in 17129 --*=?*) 17130 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17131 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17132 ac_shift=: 17133 ;; 17134 --*=) 17135 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17136 ac_optarg= 17137 ac_shift=: 17138 ;; 17139 *) 17140 ac_option=$1 17141 ac_optarg=$2 17142 ac_shift=shift 17143 ;; 17144 esac 17145 17146 case $ac_option in 17147 # Handling of the options. 17148 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17149 ac_cs_recheck=: ;; 17150 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17151 $as_echo "$ac_cs_version"; exit ;; 17152 --config | --confi | --conf | --con | --co | --c ) 17153 $as_echo "$ac_cs_config"; exit ;; 17154 --debug | --debu | --deb | --de | --d | -d ) 17155 debug=: ;; 17156 --file | --fil | --fi | --f ) 17157 $ac_shift 17158 case $ac_optarg in 17159 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17160 '') as_fn_error $? "missing file argument" ;; 17161 esac 17162 as_fn_append CONFIG_FILES " '$ac_optarg'" 17163 ac_need_defaults=false;; 17164 --he | --h | --help | --hel | -h ) 17165 $as_echo "$ac_cs_usage"; exit ;; 17166 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17167 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17168 ac_cs_silent=: ;; 17169 17170 # This is an error. 17171 -*) as_fn_error $? "unrecognized option: \`$1' 17172Try \`$0 --help' for more information." ;; 17173 17174 *) as_fn_append ac_config_targets " $1" 17175 ac_need_defaults=false ;; 17176 17177 esac 17178 shift 17179done 17180 17181ac_configure_extra_args= 17182 17183if $ac_cs_silent; then 17184 exec 6>/dev/null 17185 ac_configure_extra_args="$ac_configure_extra_args --silent" 17186fi 17187 17188_ACEOF 17189cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17190if \$ac_cs_recheck; then 17191 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17192 shift 17193 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 17194 CONFIG_SHELL='$SHELL' 17195 export CONFIG_SHELL 17196 exec "\$@" 17197fi 17198 17199_ACEOF 17200cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17201exec 5>>config.log 17202{ 17203 echo 17204 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17205## Running $as_me. ## 17206_ASBOX 17207 $as_echo "$ac_log" 17208} >&5 17209 17210_ACEOF 17211cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17212# 17213# INIT-COMMANDS 17214# 17215AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 17216 17217 17218# The HP-UX ksh and POSIX shell print the target directory to stdout 17219# if CDPATH is set. 17220(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17221 17222sed_quote_subst='$sed_quote_subst' 17223double_quote_subst='$double_quote_subst' 17224delay_variable_subst='$delay_variable_subst' 17225macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 17226macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 17227enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 17228enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 17229pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 17230enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 17231SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 17232ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 17233host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 17234host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 17235host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 17236build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 17237build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 17238build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 17239SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 17240Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 17241GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 17242EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 17243FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 17244LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 17245NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 17246LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 17247max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 17248ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 17249exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 17250lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 17251lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 17252lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 17253lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 17254lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 17255reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 17256reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 17257OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 17258deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 17259file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 17260file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 17261want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 17262DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 17263sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 17264AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 17265AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 17266archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 17267STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 17268RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 17269old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17270old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17271old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 17272lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 17273CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 17274CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 17275compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 17276GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 17277lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 17278lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 17279lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 17280lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 17281nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 17282lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 17283objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 17284MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 17285lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 17286lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 17287lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 17288lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 17289lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 17290need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 17291MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 17292DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 17293NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 17294LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 17295OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 17296OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 17297libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 17298shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 17299extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17300archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 17301enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 17302export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 17303whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 17304compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 17305old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 17306old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17307archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 17308archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17309module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 17310module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17311with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 17312allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 17313no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 17314hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 17315hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 17316hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 17317hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 17318hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 17319hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 17320hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 17321hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 17322inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 17323link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 17324always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 17325export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 17326exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 17327include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 17328prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 17329postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 17330file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 17331variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 17332need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 17333need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 17334version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 17335runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 17336shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 17337shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 17338libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 17339library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 17340soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 17341install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 17342postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17343postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17344finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 17345finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 17346hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 17347sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 17348sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 17349hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 17350enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 17351enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 17352enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 17353old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 17354striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 17355compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 17356predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 17357postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 17358predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 17359postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 17360compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 17361LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 17362reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 17363reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17364old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17365compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 17366GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 17367lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 17368lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 17369lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 17370lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 17371lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 17372archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 17373enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 17374export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17375whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17376compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 17377old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17378old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17379archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17380archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17381module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17382module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17383with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 17384allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 17385no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 17386hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17387hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' 17388hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 17389hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 17390hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 17391hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 17392hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 17393hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 17394inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 17395link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 17396always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 17397export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17398exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 17399include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 17400prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17401postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17402file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 17403hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 17404compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 17405predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 17406postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 17407predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 17408postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 17409compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 17410 17411LTCC='$LTCC' 17412LTCFLAGS='$LTCFLAGS' 17413compiler='$compiler_DEFAULT' 17414 17415# A function that is used when there is no print builtin or printf. 17416func_fallback_echo () 17417{ 17418 eval 'cat <<_LTECHO_EOF 17419\$1 17420_LTECHO_EOF' 17421} 17422 17423# Quote evaled strings. 17424for var in SHELL \ 17425ECHO \ 17426SED \ 17427GREP \ 17428EGREP \ 17429FGREP \ 17430LD \ 17431NM \ 17432LN_S \ 17433lt_SP2NL \ 17434lt_NL2SP \ 17435reload_flag \ 17436OBJDUMP \ 17437deplibs_check_method \ 17438file_magic_cmd \ 17439file_magic_glob \ 17440want_nocaseglob \ 17441DLLTOOL \ 17442sharedlib_from_linklib_cmd \ 17443AR \ 17444AR_FLAGS \ 17445archiver_list_spec \ 17446STRIP \ 17447RANLIB \ 17448CC \ 17449CFLAGS \ 17450compiler \ 17451lt_cv_sys_global_symbol_pipe \ 17452lt_cv_sys_global_symbol_to_cdecl \ 17453lt_cv_sys_global_symbol_to_c_name_address \ 17454lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 17455nm_file_list_spec \ 17456lt_prog_compiler_no_builtin_flag \ 17457lt_prog_compiler_pic \ 17458lt_prog_compiler_wl \ 17459lt_prog_compiler_static \ 17460lt_cv_prog_compiler_c_o \ 17461need_locks \ 17462MANIFEST_TOOL \ 17463DSYMUTIL \ 17464NMEDIT \ 17465LIPO \ 17466OTOOL \ 17467OTOOL64 \ 17468shrext_cmds \ 17469export_dynamic_flag_spec \ 17470whole_archive_flag_spec \ 17471compiler_needs_object \ 17472with_gnu_ld \ 17473allow_undefined_flag \ 17474no_undefined_flag \ 17475hardcode_libdir_flag_spec \ 17476hardcode_libdir_flag_spec_ld \ 17477hardcode_libdir_separator \ 17478exclude_expsyms \ 17479include_expsyms \ 17480file_list_spec \ 17481variables_saved_for_relink \ 17482libname_spec \ 17483library_names_spec \ 17484soname_spec \ 17485install_override_mode \ 17486finish_eval \ 17487old_striplib \ 17488striplib \ 17489compiler_lib_search_dirs \ 17490predep_objects \ 17491postdep_objects \ 17492predeps \ 17493postdeps \ 17494compiler_lib_search_path \ 17495LD_CXX \ 17496reload_flag_CXX \ 17497compiler_CXX \ 17498lt_prog_compiler_no_builtin_flag_CXX \ 17499lt_prog_compiler_pic_CXX \ 17500lt_prog_compiler_wl_CXX \ 17501lt_prog_compiler_static_CXX \ 17502lt_cv_prog_compiler_c_o_CXX \ 17503export_dynamic_flag_spec_CXX \ 17504whole_archive_flag_spec_CXX \ 17505compiler_needs_object_CXX \ 17506with_gnu_ld_CXX \ 17507allow_undefined_flag_CXX \ 17508no_undefined_flag_CXX \ 17509hardcode_libdir_flag_spec_CXX \ 17510hardcode_libdir_flag_spec_ld_CXX \ 17511hardcode_libdir_separator_CXX \ 17512exclude_expsyms_CXX \ 17513include_expsyms_CXX \ 17514file_list_spec_CXX \ 17515compiler_lib_search_dirs_CXX \ 17516predep_objects_CXX \ 17517postdep_objects_CXX \ 17518predeps_CXX \ 17519postdeps_CXX \ 17520compiler_lib_search_path_CXX; do 17521 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17522 *[\\\\\\\`\\"\\\$]*) 17523 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 17524 ;; 17525 *) 17526 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17527 ;; 17528 esac 17529done 17530 17531# Double-quote double-evaled strings. 17532for var in reload_cmds \ 17533old_postinstall_cmds \ 17534old_postuninstall_cmds \ 17535old_archive_cmds \ 17536extract_expsyms_cmds \ 17537old_archive_from_new_cmds \ 17538old_archive_from_expsyms_cmds \ 17539archive_cmds \ 17540archive_expsym_cmds \ 17541module_cmds \ 17542module_expsym_cmds \ 17543export_symbols_cmds \ 17544prelink_cmds \ 17545postlink_cmds \ 17546postinstall_cmds \ 17547postuninstall_cmds \ 17548finish_cmds \ 17549sys_lib_search_path_spec \ 17550sys_lib_dlsearch_path_spec \ 17551reload_cmds_CXX \ 17552old_archive_cmds_CXX \ 17553old_archive_from_new_cmds_CXX \ 17554old_archive_from_expsyms_cmds_CXX \ 17555archive_cmds_CXX \ 17556archive_expsym_cmds_CXX \ 17557module_cmds_CXX \ 17558module_expsym_cmds_CXX \ 17559export_symbols_cmds_CXX \ 17560prelink_cmds_CXX \ 17561postlink_cmds_CXX; do 17562 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17563 *[\\\\\\\`\\"\\\$]*) 17564 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 17565 ;; 17566 *) 17567 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17568 ;; 17569 esac 17570done 17571 17572ac_aux_dir='$ac_aux_dir' 17573xsi_shell='$xsi_shell' 17574lt_shell_append='$lt_shell_append' 17575 17576# See if we are running on zsh, and set the options which allow our 17577# commands through without removal of \ escapes INIT. 17578if test -n "\${ZSH_VERSION+set}" ; then 17579 setopt NO_GLOB_SUBST 17580fi 17581 17582 17583 PACKAGE='$PACKAGE' 17584 VERSION='$VERSION' 17585 TIMESTAMP='$TIMESTAMP' 17586 RM='$RM' 17587 ofile='$ofile' 17588 17589 17590 17591 17592 17593 17594_ACEOF 17595 17596cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17597 17598# Handling of arguments. 17599for ac_config_target in $ac_config_targets 17600do 17601 case $ac_config_target in 17602 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 17603 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 17604 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17605 "glu.pc") CONFIG_FILES="$CONFIG_FILES glu.pc" ;; 17606 17607 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 17608 esac 17609done 17610 17611 17612# If the user did not use the arguments to specify the items to instantiate, 17613# then the envvar interface is used. Set only those that are not. 17614# We use the long form for the default assignment because of an extremely 17615# bizarre bug on SunOS 4.1.3. 17616if $ac_need_defaults; then 17617 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 17618 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 17619fi 17620 17621# Have a temporary directory for convenience. Make it in the build tree 17622# simply because there is no reason against having it here, and in addition, 17623# creating and moving files from /tmp can sometimes cause problems. 17624# Hook for its removal unless debugging. 17625# Note that there is a small window in which the directory will not be cleaned: 17626# after its creation but before its name has been assigned to `$tmp'. 17627$debug || 17628{ 17629 tmp= ac_tmp= 17630 trap 'exit_status=$? 17631 : "${ac_tmp:=$tmp}" 17632 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 17633' 0 17634 trap 'as_fn_exit 1' 1 2 13 15 17635} 17636# Create a (secure) tmp directory for tmp files. 17637 17638{ 17639 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 17640 test -d "$tmp" 17641} || 17642{ 17643 tmp=./conf$$-$RANDOM 17644 (umask 077 && mkdir "$tmp") 17645} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 17646ac_tmp=$tmp 17647 17648# Set up the scripts for CONFIG_FILES section. 17649# No need to generate them if there are no CONFIG_FILES. 17650# This happens for instance with `./config.status config.h'. 17651if test -n "$CONFIG_FILES"; then 17652 17653 17654ac_cr=`echo X | tr X '\015'` 17655# On cygwin, bash can eat \r inside `` if the user requested igncr. 17656# But we know of no other shell where ac_cr would be empty at this 17657# point, so we can use a bashism as a fallback. 17658if test "x$ac_cr" = x; then 17659 eval ac_cr=\$\'\\r\' 17660fi 17661ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 17662if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 17663 ac_cs_awk_cr='\\r' 17664else 17665 ac_cs_awk_cr=$ac_cr 17666fi 17667 17668echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 17669_ACEOF 17670 17671 17672{ 17673 echo "cat >conf$$subs.awk <<_ACEOF" && 17674 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 17675 echo "_ACEOF" 17676} >conf$$subs.sh || 17677 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17678ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 17679ac_delim='%!_!# ' 17680for ac_last_try in false false false false false :; do 17681 . ./conf$$subs.sh || 17682 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17683 17684 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 17685 if test $ac_delim_n = $ac_delim_num; then 17686 break 17687 elif $ac_last_try; then 17688 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17689 else 17690 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17691 fi 17692done 17693rm -f conf$$subs.sh 17694 17695cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17696cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 17697_ACEOF 17698sed -n ' 17699h 17700s/^/S["/; s/!.*/"]=/ 17701p 17702g 17703s/^[^!]*!// 17704:repl 17705t repl 17706s/'"$ac_delim"'$// 17707t delim 17708:nl 17709h 17710s/\(.\{148\}\)..*/\1/ 17711t more1 17712s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 17713p 17714n 17715b repl 17716:more1 17717s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17718p 17719g 17720s/.\{148\}// 17721t nl 17722:delim 17723h 17724s/\(.\{148\}\)..*/\1/ 17725t more2 17726s/["\\]/\\&/g; s/^/"/; s/$/"/ 17727p 17728b 17729:more2 17730s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17731p 17732g 17733s/.\{148\}// 17734t delim 17735' <conf$$subs.awk | sed ' 17736/^[^""]/{ 17737 N 17738 s/\n// 17739} 17740' >>$CONFIG_STATUS || ac_write_fail=1 17741rm -f conf$$subs.awk 17742cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17743_ACAWK 17744cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 17745 for (key in S) S_is_set[key] = 1 17746 FS = "" 17747 17748} 17749{ 17750 line = $ 0 17751 nfields = split(line, field, "@") 17752 substed = 0 17753 len = length(field[1]) 17754 for (i = 2; i < nfields; i++) { 17755 key = field[i] 17756 keylen = length(key) 17757 if (S_is_set[key]) { 17758 value = S[key] 17759 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 17760 len += length(value) + length(field[++i]) 17761 substed = 1 17762 } else 17763 len += 1 + keylen 17764 } 17765 17766 print line 17767} 17768 17769_ACAWK 17770_ACEOF 17771cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17772if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 17773 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 17774else 17775 cat 17776fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 17777 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 17778_ACEOF 17779 17780# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 17781# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 17782# trailing colons and then remove the whole line if VPATH becomes empty 17783# (actually we leave an empty line to preserve line numbers). 17784if test "x$srcdir" = x.; then 17785 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 17786h 17787s/// 17788s/^/:/ 17789s/[ ]*$/:/ 17790s/:\$(srcdir):/:/g 17791s/:\${srcdir}:/:/g 17792s/:@srcdir@:/:/g 17793s/^:*// 17794s/:*$// 17795x 17796s/\(=[ ]*\).*/\1/ 17797G 17798s/\n// 17799s/^[^=]*=[ ]*$// 17800}' 17801fi 17802 17803cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17804fi # test -n "$CONFIG_FILES" 17805 17806 17807eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 17808shift 17809for ac_tag 17810do 17811 case $ac_tag in 17812 :[FHLC]) ac_mode=$ac_tag; continue;; 17813 esac 17814 case $ac_mode$ac_tag in 17815 :[FHL]*:*);; 17816 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 17817 :[FH]-) ac_tag=-:-;; 17818 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17819 esac 17820 ac_save_IFS=$IFS 17821 IFS=: 17822 set x $ac_tag 17823 IFS=$ac_save_IFS 17824 shift 17825 ac_file=$1 17826 shift 17827 17828 case $ac_mode in 17829 :L) ac_source=$1;; 17830 :[FH]) 17831 ac_file_inputs= 17832 for ac_f 17833 do 17834 case $ac_f in 17835 -) ac_f="$ac_tmp/stdin";; 17836 *) # Look for the file first in the build tree, then in the source tree 17837 # (if the path is not absolute). The absolute path cannot be DOS-style, 17838 # because $ac_f cannot contain `:'. 17839 test -f "$ac_f" || 17840 case $ac_f in 17841 [\\/$]*) false;; 17842 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17843 esac || 17844 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 17845 esac 17846 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 17847 as_fn_append ac_file_inputs " '$ac_f'" 17848 done 17849 17850 # Let's still pretend it is `configure' which instantiates (i.e., don't 17851 # use $as_me), people would be surprised to read: 17852 # /* config.h. Generated by config.status. */ 17853 configure_input='Generated from '` 17854 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 17855 `' by configure.' 17856 if test x"$ac_file" != x-; then 17857 configure_input="$ac_file. $configure_input" 17858 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 17859$as_echo "$as_me: creating $ac_file" >&6;} 17860 fi 17861 # Neutralize special characters interpreted by sed in replacement strings. 17862 case $configure_input in #( 17863 *\&* | *\|* | *\\* ) 17864 ac_sed_conf_input=`$as_echo "$configure_input" | 17865 sed 's/[\\\\&|]/\\\\&/g'`;; #( 17866 *) ac_sed_conf_input=$configure_input;; 17867 esac 17868 17869 case $ac_tag in 17870 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 17871 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 17872 esac 17873 ;; 17874 esac 17875 17876 ac_dir=`$as_dirname -- "$ac_file" || 17877$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17878 X"$ac_file" : 'X\(//\)[^/]' \| \ 17879 X"$ac_file" : 'X\(//\)$' \| \ 17880 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 17881$as_echo X"$ac_file" | 17882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17883 s//\1/ 17884 q 17885 } 17886 /^X\(\/\/\)[^/].*/{ 17887 s//\1/ 17888 q 17889 } 17890 /^X\(\/\/\)$/{ 17891 s//\1/ 17892 q 17893 } 17894 /^X\(\/\).*/{ 17895 s//\1/ 17896 q 17897 } 17898 s/.*/./; q'` 17899 as_dir="$ac_dir"; as_fn_mkdir_p 17900 ac_builddir=. 17901 17902case "$ac_dir" in 17903.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17904*) 17905 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 17906 # A ".." for each directory in $ac_dir_suffix. 17907 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 17908 case $ac_top_builddir_sub in 17909 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17910 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17911 esac ;; 17912esac 17913ac_abs_top_builddir=$ac_pwd 17914ac_abs_builddir=$ac_pwd$ac_dir_suffix 17915# for backward compatibility: 17916ac_top_builddir=$ac_top_build_prefix 17917 17918case $srcdir in 17919 .) # We are building in place. 17920 ac_srcdir=. 17921 ac_top_srcdir=$ac_top_builddir_sub 17922 ac_abs_top_srcdir=$ac_pwd ;; 17923 [\\/]* | ?:[\\/]* ) # Absolute name. 17924 ac_srcdir=$srcdir$ac_dir_suffix; 17925 ac_top_srcdir=$srcdir 17926 ac_abs_top_srcdir=$srcdir ;; 17927 *) # Relative name. 17928 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17929 ac_top_srcdir=$ac_top_build_prefix$srcdir 17930 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17931esac 17932ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17933 17934 17935 case $ac_mode in 17936 :F) 17937 # 17938 # CONFIG_FILE 17939 # 17940 17941 case $INSTALL in 17942 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17943 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17944 esac 17945 ac_MKDIR_P=$MKDIR_P 17946 case $MKDIR_P in 17947 [\\/$]* | ?:[\\/]* ) ;; 17948 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 17949 esac 17950_ACEOF 17951 17952cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17953# If the template does not know about datarootdir, expand it. 17954# FIXME: This hack should be removed a few years after 2.60. 17955ac_datarootdir_hack=; ac_datarootdir_seen= 17956ac_sed_dataroot=' 17957/datarootdir/ { 17958 p 17959 q 17960} 17961/@datadir@/p 17962/@docdir@/p 17963/@infodir@/p 17964/@localedir@/p 17965/@mandir@/p' 17966case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17967*datarootdir*) ac_datarootdir_seen=yes;; 17968*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17970$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17971_ACEOF 17972cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17973 ac_datarootdir_hack=' 17974 s&@datadir@&$datadir&g 17975 s&@docdir@&$docdir&g 17976 s&@infodir@&$infodir&g 17977 s&@localedir@&$localedir&g 17978 s&@mandir@&$mandir&g 17979 s&\\\${datarootdir}&$datarootdir&g' ;; 17980esac 17981_ACEOF 17982 17983# Neutralize VPATH when `$srcdir' = `.'. 17984# Shell code in configure.ac might set extrasub. 17985# FIXME: do we really want to maintain this feature? 17986cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17987ac_sed_extra="$ac_vpsub 17988$extrasub 17989_ACEOF 17990cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17991:t 17992/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17993s|@configure_input@|$ac_sed_conf_input|;t t 17994s&@top_builddir@&$ac_top_builddir_sub&;t t 17995s&@top_build_prefix@&$ac_top_build_prefix&;t t 17996s&@srcdir@&$ac_srcdir&;t t 17997s&@abs_srcdir@&$ac_abs_srcdir&;t t 17998s&@top_srcdir@&$ac_top_srcdir&;t t 17999s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18000s&@builddir@&$ac_builddir&;t t 18001s&@abs_builddir@&$ac_abs_builddir&;t t 18002s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18003s&@INSTALL@&$ac_INSTALL&;t t 18004s&@MKDIR_P@&$ac_MKDIR_P&;t t 18005$ac_datarootdir_hack 18006" 18007eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 18008 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18009 18010test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18011 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 18012 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 18013 "$ac_tmp/out"`; test -z "$ac_out"; } && 18014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18015which seems to be undefined. Please make sure it is defined" >&5 18016$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18017which seems to be undefined. Please make sure it is defined" >&2;} 18018 18019 rm -f "$ac_tmp/stdin" 18020 case $ac_file in 18021 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 18022 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 18023 esac \ 18024 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18025 ;; 18026 18027 18028 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 18029$as_echo "$as_me: executing $ac_file commands" >&6;} 18030 ;; 18031 esac 18032 18033 18034 case $ac_file$ac_mode in 18035 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 18036 # Autoconf 2.62 quotes --file arguments for eval, but not when files 18037 # are listed without --file. Let's play safe and only enable the eval 18038 # if we detect the quoting. 18039 case $CONFIG_FILES in 18040 *\'*) eval set x "$CONFIG_FILES" ;; 18041 *) set x $CONFIG_FILES ;; 18042 esac 18043 shift 18044 for mf 18045 do 18046 # Strip MF so we end up with the name of the file. 18047 mf=`echo "$mf" | sed -e 's/:.*$//'` 18048 # Check whether this is an Automake generated Makefile or not. 18049 # We used to match only the files named 'Makefile.in', but 18050 # some people rename them; so instead we look at the file content. 18051 # Grep'ing the first line is not enough: some people post-process 18052 # each Makefile.in and add a new line on top of each file to say so. 18053 # Grep'ing the whole file is not good either: AIX grep has a line 18054 # limit of 2048, but all sed's we know have understand at least 4000. 18055 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 18056 dirpart=`$as_dirname -- "$mf" || 18057$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18058 X"$mf" : 'X\(//\)[^/]' \| \ 18059 X"$mf" : 'X\(//\)$' \| \ 18060 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 18061$as_echo X"$mf" | 18062 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18063 s//\1/ 18064 q 18065 } 18066 /^X\(\/\/\)[^/].*/{ 18067 s//\1/ 18068 q 18069 } 18070 /^X\(\/\/\)$/{ 18071 s//\1/ 18072 q 18073 } 18074 /^X\(\/\).*/{ 18075 s//\1/ 18076 q 18077 } 18078 s/.*/./; q'` 18079 else 18080 continue 18081 fi 18082 # Extract the definition of DEPDIR, am__include, and am__quote 18083 # from the Makefile without running 'make'. 18084 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 18085 test -z "$DEPDIR" && continue 18086 am__include=`sed -n 's/^am__include = //p' < "$mf"` 18087 test -z "am__include" && continue 18088 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 18089 # Find all dependency output files, they are included files with 18090 # $(DEPDIR) in their names. We invoke sed twice because it is the 18091 # simplest approach to changing $(DEPDIR) to its actual value in the 18092 # expansion. 18093 for file in `sed -n " 18094 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 18095 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 18096 # Make sure the directory exists. 18097 test -f "$dirpart/$file" && continue 18098 fdir=`$as_dirname -- "$file" || 18099$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18100 X"$file" : 'X\(//\)[^/]' \| \ 18101 X"$file" : 'X\(//\)$' \| \ 18102 X"$file" : 'X\(/\)' \| . 2>/dev/null || 18103$as_echo X"$file" | 18104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18105 s//\1/ 18106 q 18107 } 18108 /^X\(\/\/\)[^/].*/{ 18109 s//\1/ 18110 q 18111 } 18112 /^X\(\/\/\)$/{ 18113 s//\1/ 18114 q 18115 } 18116 /^X\(\/\).*/{ 18117 s//\1/ 18118 q 18119 } 18120 s/.*/./; q'` 18121 as_dir=$dirpart/$fdir; as_fn_mkdir_p 18122 # echo "creating $dirpart/$file" 18123 echo '# dummy' > "$dirpart/$file" 18124 done 18125 done 18126} 18127 ;; 18128 "libtool":C) 18129 18130 # See if we are running on zsh, and set the options which allow our 18131 # commands through without removal of \ escapes. 18132 if test -n "${ZSH_VERSION+set}" ; then 18133 setopt NO_GLOB_SUBST 18134 fi 18135 18136 cfgfile="${ofile}T" 18137 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18138 $RM "$cfgfile" 18139 18140 cat <<_LT_EOF >> "$cfgfile" 18141#! $SHELL 18142 18143# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 18144# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 18145# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18146# NOTE: Changes made to this file will be lost: look at ltmain.sh. 18147# 18148# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 18149# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 18150# Inc. 18151# Written by Gordon Matzigkeit, 1996 18152# 18153# This file is part of GNU Libtool. 18154# 18155# GNU Libtool is free software; you can redistribute it and/or 18156# modify it under the terms of the GNU General Public License as 18157# published by the Free Software Foundation; either version 2 of 18158# the License, or (at your option) any later version. 18159# 18160# As a special exception to the GNU General Public License, 18161# if you distribute this file as part of a program or library that 18162# is built using GNU Libtool, you may include this file under the 18163# same distribution terms that you use for the rest of that program. 18164# 18165# GNU Libtool is distributed in the hope that it will be useful, 18166# but WITHOUT ANY WARRANTY; without even the implied warranty of 18167# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18168# GNU General Public License for more details. 18169# 18170# You should have received a copy of the GNU General Public License 18171# along with GNU Libtool; see the file COPYING. If not, a copy 18172# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 18173# obtained by writing to the Free Software Foundation, Inc., 18174# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 18175 18176 18177# The names of the tagged configurations supported by this script. 18178available_tags="CXX " 18179 18180# ### BEGIN LIBTOOL CONFIG 18181 18182# Which release of libtool.m4 was used? 18183macro_version=$macro_version 18184macro_revision=$macro_revision 18185 18186# Whether or not to build shared libraries. 18187build_libtool_libs=$enable_shared 18188 18189# Whether or not to build static libraries. 18190build_old_libs=$enable_static 18191 18192# What type of objects to build. 18193pic_mode=$pic_mode 18194 18195# Whether or not to optimize for fast installation. 18196fast_install=$enable_fast_install 18197 18198# Shell to use when invoking shell scripts. 18199SHELL=$lt_SHELL 18200 18201# An echo program that protects backslashes. 18202ECHO=$lt_ECHO 18203 18204# The host system. 18205host_alias=$host_alias 18206host=$host 18207host_os=$host_os 18208 18209# The build system. 18210build_alias=$build_alias 18211build=$build 18212build_os=$build_os 18213 18214# A sed program that does not truncate output. 18215SED=$lt_SED 18216 18217# Sed that helps us avoid accidentally triggering echo(1) options like -n. 18218Xsed="\$SED -e 1s/^X//" 18219 18220# A grep program that handles long lines. 18221GREP=$lt_GREP 18222 18223# An ERE matcher. 18224EGREP=$lt_EGREP 18225 18226# A literal string matcher. 18227FGREP=$lt_FGREP 18228 18229# A BSD- or MS-compatible name lister. 18230NM=$lt_NM 18231 18232# Whether we need soft or hard links. 18233LN_S=$lt_LN_S 18234 18235# What is the maximum length of a command? 18236max_cmd_len=$max_cmd_len 18237 18238# Object file suffix (normally "o"). 18239objext=$ac_objext 18240 18241# Executable file suffix (normally ""). 18242exeext=$exeext 18243 18244# whether the shell understands "unset". 18245lt_unset=$lt_unset 18246 18247# turn spaces into newlines. 18248SP2NL=$lt_lt_SP2NL 18249 18250# turn newlines into spaces. 18251NL2SP=$lt_lt_NL2SP 18252 18253# convert \$build file names to \$host format. 18254to_host_file_cmd=$lt_cv_to_host_file_cmd 18255 18256# convert \$build files to toolchain format. 18257to_tool_file_cmd=$lt_cv_to_tool_file_cmd 18258 18259# An object symbol dumper. 18260OBJDUMP=$lt_OBJDUMP 18261 18262# Method to check whether dependent libraries are shared objects. 18263deplibs_check_method=$lt_deplibs_check_method 18264 18265# Command to use when deplibs_check_method = "file_magic". 18266file_magic_cmd=$lt_file_magic_cmd 18267 18268# How to find potential files when deplibs_check_method = "file_magic". 18269file_magic_glob=$lt_file_magic_glob 18270 18271# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 18272want_nocaseglob=$lt_want_nocaseglob 18273 18274# DLL creation program. 18275DLLTOOL=$lt_DLLTOOL 18276 18277# Command to associate shared and link libraries. 18278sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 18279 18280# The archiver. 18281AR=$lt_AR 18282 18283# Flags to create an archive. 18284AR_FLAGS=$lt_AR_FLAGS 18285 18286# How to feed a file listing to the archiver. 18287archiver_list_spec=$lt_archiver_list_spec 18288 18289# A symbol stripping program. 18290STRIP=$lt_STRIP 18291 18292# Commands used to install an old-style archive. 18293RANLIB=$lt_RANLIB 18294old_postinstall_cmds=$lt_old_postinstall_cmds 18295old_postuninstall_cmds=$lt_old_postuninstall_cmds 18296 18297# Whether to use a lock for old archive extraction. 18298lock_old_archive_extraction=$lock_old_archive_extraction 18299 18300# A C compiler. 18301LTCC=$lt_CC 18302 18303# LTCC compiler flags. 18304LTCFLAGS=$lt_CFLAGS 18305 18306# Take the output of nm and produce a listing of raw symbols and C names. 18307global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18308 18309# Transform the output of nm in a proper C declaration. 18310global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18311 18312# Transform the output of nm in a C name address pair. 18313global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18314 18315# Transform the output of nm in a C name address pair when lib prefix is needed. 18316global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 18317 18318# Specify filename containing input files for \$NM. 18319nm_file_list_spec=$lt_nm_file_list_spec 18320 18321# The root where to search for dependent libraries,and in which our libraries should be installed. 18322lt_sysroot=$lt_sysroot 18323 18324# The name of the directory that contains temporary libtool files. 18325objdir=$objdir 18326 18327# Used to examine libraries when file_magic_cmd begins with "file". 18328MAGIC_CMD=$MAGIC_CMD 18329 18330# Must we lock files when doing compilation? 18331need_locks=$lt_need_locks 18332 18333# Manifest tool. 18334MANIFEST_TOOL=$lt_MANIFEST_TOOL 18335 18336# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 18337DSYMUTIL=$lt_DSYMUTIL 18338 18339# Tool to change global to local symbols on Mac OS X. 18340NMEDIT=$lt_NMEDIT 18341 18342# Tool to manipulate fat objects and archives on Mac OS X. 18343LIPO=$lt_LIPO 18344 18345# ldd/readelf like tool for Mach-O binaries on Mac OS X. 18346OTOOL=$lt_OTOOL 18347 18348# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 18349OTOOL64=$lt_OTOOL64 18350 18351# Old archive suffix (normally "a"). 18352libext=$libext 18353 18354# Shared library suffix (normally ".so"). 18355shrext_cmds=$lt_shrext_cmds 18356 18357# The commands to extract the exported symbol list from a shared archive. 18358extract_expsyms_cmds=$lt_extract_expsyms_cmds 18359 18360# Variables whose values should be saved in libtool wrapper scripts and 18361# restored at link time. 18362variables_saved_for_relink=$lt_variables_saved_for_relink 18363 18364# Do we need the "lib" prefix for modules? 18365need_lib_prefix=$need_lib_prefix 18366 18367# Do we need a version for libraries? 18368need_version=$need_version 18369 18370# Library versioning type. 18371version_type=$version_type 18372 18373# Shared library runtime path variable. 18374runpath_var=$runpath_var 18375 18376# Shared library path variable. 18377shlibpath_var=$shlibpath_var 18378 18379# Is shlibpath searched before the hard-coded library search path? 18380shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18381 18382# Format of library name prefix. 18383libname_spec=$lt_libname_spec 18384 18385# List of archive names. First name is the real one, the rest are links. 18386# The last name is the one that the linker finds with -lNAME 18387library_names_spec=$lt_library_names_spec 18388 18389# The coded name of the library, if different from the real name. 18390soname_spec=$lt_soname_spec 18391 18392# Permission mode override for installation of shared libraries. 18393install_override_mode=$lt_install_override_mode 18394 18395# Command to use after installation of a shared archive. 18396postinstall_cmds=$lt_postinstall_cmds 18397 18398# Command to use after uninstallation of a shared archive. 18399postuninstall_cmds=$lt_postuninstall_cmds 18400 18401# Commands used to finish a libtool library installation in a directory. 18402finish_cmds=$lt_finish_cmds 18403 18404# As "finish_cmds", except a single script fragment to be evaled but 18405# not shown. 18406finish_eval=$lt_finish_eval 18407 18408# Whether we should hardcode library paths into libraries. 18409hardcode_into_libs=$hardcode_into_libs 18410 18411# Compile-time system search path for libraries. 18412sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18413 18414# Run-time system search path for libraries. 18415sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18416 18417# Whether dlopen is supported. 18418dlopen_support=$enable_dlopen 18419 18420# Whether dlopen of programs is supported. 18421dlopen_self=$enable_dlopen_self 18422 18423# Whether dlopen of statically linked programs is supported. 18424dlopen_self_static=$enable_dlopen_self_static 18425 18426# Commands to strip libraries. 18427old_striplib=$lt_old_striplib 18428striplib=$lt_striplib 18429 18430 18431# The linker used to build libraries. 18432LD=$lt_LD 18433 18434# How to create reloadable object files. 18435reload_flag=$lt_reload_flag 18436reload_cmds=$lt_reload_cmds 18437 18438# Commands used to build an old-style archive. 18439old_archive_cmds=$lt_old_archive_cmds 18440 18441# A language specific compiler. 18442CC=$lt_compiler 18443 18444# Is the compiler the GNU compiler? 18445with_gcc=$GCC 18446 18447# Compiler flag to turn off builtin functions. 18448no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 18449 18450# Additional compiler flags for building library objects. 18451pic_flag=$lt_lt_prog_compiler_pic 18452 18453# How to pass a linker flag through the compiler. 18454wl=$lt_lt_prog_compiler_wl 18455 18456# Compiler flag to prevent dynamic linking. 18457link_static_flag=$lt_lt_prog_compiler_static 18458 18459# Does compiler simultaneously support -c and -o options? 18460compiler_c_o=$lt_lt_cv_prog_compiler_c_o 18461 18462# Whether or not to add -lc for building shared libraries. 18463build_libtool_need_lc=$archive_cmds_need_lc 18464 18465# Whether or not to disallow shared libs when runtime libs are static. 18466allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 18467 18468# Compiler flag to allow reflexive dlopens. 18469export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 18470 18471# Compiler flag to generate shared objects directly from archives. 18472whole_archive_flag_spec=$lt_whole_archive_flag_spec 18473 18474# Whether the compiler copes with passing no objects directly. 18475compiler_needs_object=$lt_compiler_needs_object 18476 18477# Create an old-style archive from a shared archive. 18478old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 18479 18480# Create a temporary old-style archive to link instead of a shared archive. 18481old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 18482 18483# Commands used to build a shared archive. 18484archive_cmds=$lt_archive_cmds 18485archive_expsym_cmds=$lt_archive_expsym_cmds 18486 18487# Commands used to build a loadable module if different from building 18488# a shared archive. 18489module_cmds=$lt_module_cmds 18490module_expsym_cmds=$lt_module_expsym_cmds 18491 18492# Whether we are building with GNU ld or not. 18493with_gnu_ld=$lt_with_gnu_ld 18494 18495# Flag that allows shared libraries with undefined symbols to be built. 18496allow_undefined_flag=$lt_allow_undefined_flag 18497 18498# Flag that enforces no undefined symbols. 18499no_undefined_flag=$lt_no_undefined_flag 18500 18501# Flag to hardcode \$libdir into a binary during linking. 18502# This must work even if \$libdir does not exist 18503hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 18504 18505# If ld is used when linking, flag to hardcode \$libdir into a binary 18506# during linking. This must work even if \$libdir does not exist. 18507hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 18508 18509# Whether we need a single "-rpath" flag with a separated argument. 18510hardcode_libdir_separator=$lt_hardcode_libdir_separator 18511 18512# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18513# DIR into the resulting binary. 18514hardcode_direct=$hardcode_direct 18515 18516# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18517# DIR into the resulting binary and the resulting library dependency is 18518# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 18519# library is relocated. 18520hardcode_direct_absolute=$hardcode_direct_absolute 18521 18522# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18523# into the resulting binary. 18524hardcode_minus_L=$hardcode_minus_L 18525 18526# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18527# into the resulting binary. 18528hardcode_shlibpath_var=$hardcode_shlibpath_var 18529 18530# Set to "yes" if building a shared library automatically hardcodes DIR 18531# into the library and all subsequent libraries and executables linked 18532# against it. 18533hardcode_automatic=$hardcode_automatic 18534 18535# Set to yes if linker adds runtime paths of dependent libraries 18536# to runtime path list. 18537inherit_rpath=$inherit_rpath 18538 18539# Whether libtool must link a program against all its dependency libraries. 18540link_all_deplibs=$link_all_deplibs 18541 18542# Set to "yes" if exported symbols are required. 18543always_export_symbols=$always_export_symbols 18544 18545# The commands to list exported symbols. 18546export_symbols_cmds=$lt_export_symbols_cmds 18547 18548# Symbols that should not be listed in the preloaded symbols. 18549exclude_expsyms=$lt_exclude_expsyms 18550 18551# Symbols that must always be exported. 18552include_expsyms=$lt_include_expsyms 18553 18554# Commands necessary for linking programs (against libraries) with templates. 18555prelink_cmds=$lt_prelink_cmds 18556 18557# Commands necessary for finishing linking programs. 18558postlink_cmds=$lt_postlink_cmds 18559 18560# Specify filename containing input files. 18561file_list_spec=$lt_file_list_spec 18562 18563# How to hardcode a shared library path into an executable. 18564hardcode_action=$hardcode_action 18565 18566# The directories searched by this compiler when creating a shared library. 18567compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 18568 18569# Dependencies to place before and after the objects being linked to 18570# create a shared library. 18571predep_objects=$lt_predep_objects 18572postdep_objects=$lt_postdep_objects 18573predeps=$lt_predeps 18574postdeps=$lt_postdeps 18575 18576# The library search path used internally by the compiler when linking 18577# a shared library. 18578compiler_lib_search_path=$lt_compiler_lib_search_path 18579 18580# ### END LIBTOOL CONFIG 18581 18582_LT_EOF 18583 18584 case $host_os in 18585 aix3*) 18586 cat <<\_LT_EOF >> "$cfgfile" 18587# AIX sometimes has problems with the GCC collect2 program. For some 18588# reason, if we set the COLLECT_NAMES environment variable, the problems 18589# vanish in a puff of smoke. 18590if test "X${COLLECT_NAMES+set}" != Xset; then 18591 COLLECT_NAMES= 18592 export COLLECT_NAMES 18593fi 18594_LT_EOF 18595 ;; 18596 esac 18597 18598 18599ltmain="$ac_aux_dir/ltmain.sh" 18600 18601 18602 # We use sed instead of cat because bash on DJGPP gets confused if 18603 # if finds mixed CR/LF and LF-only lines. Since sed operates in 18604 # text mode, it properly converts lines to CR/LF. This bash problem 18605 # is reportedly fixed, but why not run on old versions too? 18606 sed '$q' "$ltmain" >> "$cfgfile" \ 18607 || (rm -f "$cfgfile"; exit 1) 18608 18609 if test x"$xsi_shell" = xyes; then 18610 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 18611func_dirname ()\ 18612{\ 18613\ case ${1} in\ 18614\ */*) func_dirname_result="${1%/*}${2}" ;;\ 18615\ * ) func_dirname_result="${3}" ;;\ 18616\ esac\ 18617} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 18618 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18619 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18620test 0 -eq $? || _lt_function_replace_fail=: 18621 18622 18623 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 18624func_basename ()\ 18625{\ 18626\ func_basename_result="${1##*/}"\ 18627} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 18628 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18629 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18630test 0 -eq $? || _lt_function_replace_fail=: 18631 18632 18633 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 18634func_dirname_and_basename ()\ 18635{\ 18636\ case ${1} in\ 18637\ */*) func_dirname_result="${1%/*}${2}" ;;\ 18638\ * ) func_dirname_result="${3}" ;;\ 18639\ esac\ 18640\ func_basename_result="${1##*/}"\ 18641} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 18642 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18643 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18644test 0 -eq $? || _lt_function_replace_fail=: 18645 18646 18647 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 18648func_stripname ()\ 18649{\ 18650\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 18651\ # positional parameters, so assign one to ordinary parameter first.\ 18652\ func_stripname_result=${3}\ 18653\ func_stripname_result=${func_stripname_result#"${1}"}\ 18654\ func_stripname_result=${func_stripname_result%"${2}"}\ 18655} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 18656 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18657 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18658test 0 -eq $? || _lt_function_replace_fail=: 18659 18660 18661 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 18662func_split_long_opt ()\ 18663{\ 18664\ func_split_long_opt_name=${1%%=*}\ 18665\ func_split_long_opt_arg=${1#*=}\ 18666} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 18667 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18668 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18669test 0 -eq $? || _lt_function_replace_fail=: 18670 18671 18672 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 18673func_split_short_opt ()\ 18674{\ 18675\ func_split_short_opt_arg=${1#??}\ 18676\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 18677} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 18678 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18679 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18680test 0 -eq $? || _lt_function_replace_fail=: 18681 18682 18683 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 18684func_lo2o ()\ 18685{\ 18686\ case ${1} in\ 18687\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 18688\ *) func_lo2o_result=${1} ;;\ 18689\ esac\ 18690} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 18691 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18692 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18693test 0 -eq $? || _lt_function_replace_fail=: 18694 18695 18696 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 18697func_xform ()\ 18698{\ 18699 func_xform_result=${1%.*}.lo\ 18700} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 18701 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18702 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18703test 0 -eq $? || _lt_function_replace_fail=: 18704 18705 18706 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 18707func_arith ()\ 18708{\ 18709 func_arith_result=$(( $* ))\ 18710} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 18711 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18712 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18713test 0 -eq $? || _lt_function_replace_fail=: 18714 18715 18716 sed -e '/^func_len ()$/,/^} # func_len /c\ 18717func_len ()\ 18718{\ 18719 func_len_result=${#1}\ 18720} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 18721 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18722 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18723test 0 -eq $? || _lt_function_replace_fail=: 18724 18725fi 18726 18727if test x"$lt_shell_append" = xyes; then 18728 sed -e '/^func_append ()$/,/^} # func_append /c\ 18729func_append ()\ 18730{\ 18731 eval "${1}+=\\${2}"\ 18732} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 18733 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18734 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18735test 0 -eq $? || _lt_function_replace_fail=: 18736 18737 18738 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 18739func_append_quoted ()\ 18740{\ 18741\ func_quote_for_eval "${2}"\ 18742\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 18743} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 18744 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18745 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18746test 0 -eq $? || _lt_function_replace_fail=: 18747 18748 18749 # Save a `func_append' function call where possible by direct use of '+=' 18750 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 18751 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18752 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18753 test 0 -eq $? || _lt_function_replace_fail=: 18754else 18755 # Save a `func_append' function call even when '+=' is not available 18756 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 18757 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18758 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18759 test 0 -eq $? || _lt_function_replace_fail=: 18760fi 18761 18762if test x"$_lt_function_replace_fail" = x":"; then 18763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 18764$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 18765fi 18766 18767 18768 mv -f "$cfgfile" "$ofile" || 18769 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 18770 chmod +x "$ofile" 18771 18772 18773 cat <<_LT_EOF >> "$ofile" 18774 18775# ### BEGIN LIBTOOL TAG CONFIG: CXX 18776 18777# The linker used to build libraries. 18778LD=$lt_LD_CXX 18779 18780# How to create reloadable object files. 18781reload_flag=$lt_reload_flag_CXX 18782reload_cmds=$lt_reload_cmds_CXX 18783 18784# Commands used to build an old-style archive. 18785old_archive_cmds=$lt_old_archive_cmds_CXX 18786 18787# A language specific compiler. 18788CC=$lt_compiler_CXX 18789 18790# Is the compiler the GNU compiler? 18791with_gcc=$GCC_CXX 18792 18793# Compiler flag to turn off builtin functions. 18794no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 18795 18796# Additional compiler flags for building library objects. 18797pic_flag=$lt_lt_prog_compiler_pic_CXX 18798 18799# How to pass a linker flag through the compiler. 18800wl=$lt_lt_prog_compiler_wl_CXX 18801 18802# Compiler flag to prevent dynamic linking. 18803link_static_flag=$lt_lt_prog_compiler_static_CXX 18804 18805# Does compiler simultaneously support -c and -o options? 18806compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 18807 18808# Whether or not to add -lc for building shared libraries. 18809build_libtool_need_lc=$archive_cmds_need_lc_CXX 18810 18811# Whether or not to disallow shared libs when runtime libs are static. 18812allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 18813 18814# Compiler flag to allow reflexive dlopens. 18815export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 18816 18817# Compiler flag to generate shared objects directly from archives. 18818whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 18819 18820# Whether the compiler copes with passing no objects directly. 18821compiler_needs_object=$lt_compiler_needs_object_CXX 18822 18823# Create an old-style archive from a shared archive. 18824old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 18825 18826# Create a temporary old-style archive to link instead of a shared archive. 18827old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 18828 18829# Commands used to build a shared archive. 18830archive_cmds=$lt_archive_cmds_CXX 18831archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 18832 18833# Commands used to build a loadable module if different from building 18834# a shared archive. 18835module_cmds=$lt_module_cmds_CXX 18836module_expsym_cmds=$lt_module_expsym_cmds_CXX 18837 18838# Whether we are building with GNU ld or not. 18839with_gnu_ld=$lt_with_gnu_ld_CXX 18840 18841# Flag that allows shared libraries with undefined symbols to be built. 18842allow_undefined_flag=$lt_allow_undefined_flag_CXX 18843 18844# Flag that enforces no undefined symbols. 18845no_undefined_flag=$lt_no_undefined_flag_CXX 18846 18847# Flag to hardcode \$libdir into a binary during linking. 18848# This must work even if \$libdir does not exist 18849hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 18850 18851# If ld is used when linking, flag to hardcode \$libdir into a binary 18852# during linking. This must work even if \$libdir does not exist. 18853hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 18854 18855# Whether we need a single "-rpath" flag with a separated argument. 18856hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 18857 18858# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18859# DIR into the resulting binary. 18860hardcode_direct=$hardcode_direct_CXX 18861 18862# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18863# DIR into the resulting binary and the resulting library dependency is 18864# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 18865# library is relocated. 18866hardcode_direct_absolute=$hardcode_direct_absolute_CXX 18867 18868# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18869# into the resulting binary. 18870hardcode_minus_L=$hardcode_minus_L_CXX 18871 18872# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18873# into the resulting binary. 18874hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 18875 18876# Set to "yes" if building a shared library automatically hardcodes DIR 18877# into the library and all subsequent libraries and executables linked 18878# against it. 18879hardcode_automatic=$hardcode_automatic_CXX 18880 18881# Set to yes if linker adds runtime paths of dependent libraries 18882# to runtime path list. 18883inherit_rpath=$inherit_rpath_CXX 18884 18885# Whether libtool must link a program against all its dependency libraries. 18886link_all_deplibs=$link_all_deplibs_CXX 18887 18888# Set to "yes" if exported symbols are required. 18889always_export_symbols=$always_export_symbols_CXX 18890 18891# The commands to list exported symbols. 18892export_symbols_cmds=$lt_export_symbols_cmds_CXX 18893 18894# Symbols that should not be listed in the preloaded symbols. 18895exclude_expsyms=$lt_exclude_expsyms_CXX 18896 18897# Symbols that must always be exported. 18898include_expsyms=$lt_include_expsyms_CXX 18899 18900# Commands necessary for linking programs (against libraries) with templates. 18901prelink_cmds=$lt_prelink_cmds_CXX 18902 18903# Commands necessary for finishing linking programs. 18904postlink_cmds=$lt_postlink_cmds_CXX 18905 18906# Specify filename containing input files. 18907file_list_spec=$lt_file_list_spec_CXX 18908 18909# How to hardcode a shared library path into an executable. 18910hardcode_action=$hardcode_action_CXX 18911 18912# The directories searched by this compiler when creating a shared library. 18913compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 18914 18915# Dependencies to place before and after the objects being linked to 18916# create a shared library. 18917predep_objects=$lt_predep_objects_CXX 18918postdep_objects=$lt_postdep_objects_CXX 18919predeps=$lt_predeps_CXX 18920postdeps=$lt_postdeps_CXX 18921 18922# The library search path used internally by the compiler when linking 18923# a shared library. 18924compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 18925 18926# ### END LIBTOOL TAG CONFIG: CXX 18927_LT_EOF 18928 18929 ;; 18930 18931 esac 18932done # for ac_tag 18933 18934 18935as_fn_exit 0 18936_ACEOF 18937ac_clean_files=$ac_clean_files_save 18938 18939test $ac_write_fail = 0 || 18940 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 18941 18942 18943# configure is writing to config.log, and then calls config.status. 18944# config.status does its own redirection, appending to config.log. 18945# Unfortunately, on DOS this fails, as config.log is still kept open 18946# by configure, so config.status won't be able to write to it; its 18947# output is simply discarded. So we exec the FD to /dev/null, 18948# effectively closing config.log, so it can be properly (re)opened and 18949# appended to by config.status. When coming back to configure, we 18950# need to make the FD available again. 18951if test "$no_create" != yes; then 18952 ac_cs_success=: 18953 ac_config_status_args= 18954 test "$silent" = yes && 18955 ac_config_status_args="$ac_config_status_args --quiet" 18956 exec 5>/dev/null 18957 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18958 exec 5>>config.log 18959 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18960 # would make configure fail if this is the last instruction. 18961 $ac_cs_success || as_fn_exit 1 18962fi 18963if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18965$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18966fi 18967 18968