1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for mesa-demos 8.4.0. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa&component=Demos>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa&component=Demos 279$0: about your system, including any error possibly output 280$0: before this message. Then install a modern shell, or 281$0: manually run the script under such a shell if you do 282$0: have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306# as_fn_set_status STATUS 307# ----------------------- 308# Set $? to STATUS, without forking. 309as_fn_set_status () 310{ 311 return $1 312} # as_fn_set_status 313 314# as_fn_exit STATUS 315# ----------------- 316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317as_fn_exit () 318{ 319 set +e 320 as_fn_set_status $1 321 exit $1 322} # as_fn_exit 323 324# as_fn_mkdir_p 325# ------------- 326# Create "$as_dir" as a directory, including parents if necessary. 327as_fn_mkdir_p () 328{ 329 330 case $as_dir in #( 331 -*) as_dir=./$as_dir;; 332 esac 333 test -d "$as_dir" || eval $as_mkdir_p || { 334 as_dirs= 335 while :; do 336 case $as_dir in #( 337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *) as_qdir=$as_dir;; 339 esac 340 as_dirs="'$as_qdir' $as_dirs" 341 as_dir=`$as_dirname -- "$as_dir" || 342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346$as_echo X"$as_dir" | 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)[^/].*/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\).*/{ 360 s//\1/ 361 q 362 } 363 s/.*/./; q'` 364 test -d "$as_dir" && break 365 done 366 test -z "$as_dirs" || eval "mkdir $as_dirs" 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368 369 370} # as_fn_mkdir_p 371 372# as_fn_executable_p FILE 373# ----------------------- 374# Test if FILE is an executable regular file. 375as_fn_executable_p () 376{ 377 test -f "$1" && test -x "$1" 378} # as_fn_executable_p 379# as_fn_append VAR VALUE 380# ---------------------- 381# Append the text in VALUE to the end of the definition contained in VAR. Take 382# advantage of any shell optimizations that allow amortized linear growth over 383# repeated appends, instead of the typical quadratic growth present in naive 384# implementations. 385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 386 eval 'as_fn_append () 387 { 388 eval $1+=\$2 389 }' 390else 391 as_fn_append () 392 { 393 eval $1=\$$1\$2 394 } 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407else 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412fi # as_fn_arith 413 414 415# as_fn_error STATUS ERROR [LINENO LOG_FD] 416# ---------------------------------------- 417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 419# script with STATUS, using 1 if that was 0. 420as_fn_error () 421{ 422 as_status=$1; test $as_status -eq 0 && as_status=1 423 if test "$4"; then 424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 426 fi 427 $as_echo "$as_me: error: $2" >&2 428 as_fn_exit $as_status 429} # as_fn_error 430 431if expr a : '\(a\)' >/dev/null 2>&1 && 432 test "X`expr 00001 : '.*\(...\)'`" = X001; then 433 as_expr=expr 434else 435 as_expr=false 436fi 437 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439 as_basename=basename 440else 441 as_basename=false 442fi 443 444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445 as_dirname=dirname 446else 447 as_dirname=false 448fi 449 450as_me=`$as_basename -- "$0" || 451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 452 X"$0" : 'X\(//\)$' \| \ 453 X"$0" : 'X\(/\)' \| . 2>/dev/null || 454$as_echo X/"$0" | 455 sed '/^.*\/\([^/][^/]*\)\/*$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\/\)$/{ 460 s//\1/ 461 q 462 } 463 /^X\/\(\/\).*/{ 464 s//\1/ 465 q 466 } 467 s/.*/./; q'` 468 469# Avoid depending upon Character Ranges. 470as_cr_letters='abcdefghijklmnopqrstuvwxyz' 471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472as_cr_Letters=$as_cr_letters$as_cr_LETTERS 473as_cr_digits='0123456789' 474as_cr_alnum=$as_cr_Letters$as_cr_digits 475 476 477 as_lineno_1=$LINENO as_lineno_1a=$LINENO 478 as_lineno_2=$LINENO as_lineno_2a=$LINENO 479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 482 sed -n ' 483 p 484 /[$]LINENO/= 485 ' <$as_myself | 486 sed ' 487 s/[$]LINENO.*/&-/ 488 t lineno 489 b 490 :lineno 491 N 492 :loop 493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 494 t loop 495 s/-\n.*// 496 ' >$as_me.lineno && 497 chmod +x "$as_me.lineno" || 498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 499 500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 501 # already done that, so ensure we don't try to do so again and fall 502 # in an infinite loop. This has already happened in practice. 503 _as_can_reexec=no; export _as_can_reexec 504 # Don't try to exec as it changes $[0], causing all sort of problems 505 # (the dirname of $[0] is not the place where we might find the 506 # original and so on. Autoconf is especially sensitive to this). 507 . "./$as_me.lineno" 508 # Exit status is that of the last command. 509 exit 510} 511 512ECHO_C= ECHO_N= ECHO_T= 513case `echo -n x` in #((((( 514-n*) 515 case `echo 'xy\c'` in 516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 517 xy) ECHO_C='\c';; 518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 519 ECHO_T=' ';; 520 esac;; 521*) 522 ECHO_N='-n';; 523esac 524 525rm -f conf$$ conf$$.exe conf$$.file 526if test -d conf$$.dir; then 527 rm -f conf$$.dir/conf$$.file 528else 529 rm -f conf$$.dir 530 mkdir conf$$.dir 2>/dev/null 531fi 532if (echo >conf$$.file) 2>/dev/null; then 533 if ln -s conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s='ln -s' 535 # ... but there are two gotchas: 536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 538 # In both cases, we have to default to `cp -pR'. 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 540 as_ln_s='cp -pR' 541 elif ln conf$$.file conf$$ 2>/dev/null; then 542 as_ln_s=ln 543 else 544 as_ln_s='cp -pR' 545 fi 546else 547 as_ln_s='cp -pR' 548fi 549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550rmdir conf$$.dir 2>/dev/null 551 552if mkdir -p . 2>/dev/null; then 553 as_mkdir_p='mkdir -p "$as_dir"' 554else 555 test -d ./-p && rmdir ./-p 556 as_mkdir_p=false 557fi 558 559as_test_x='test -x' 560as_executable_p=as_fn_executable_p 561 562# Sed expression to map a string onto a valid CPP name. 563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 564 565# Sed expression to map a string onto a valid variable name. 566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567 568SHELL=${CONFIG_SHELL-/bin/sh} 569 570 571test -n "$DJDIR" || exec 7<&0 </dev/null 572exec 6>&1 573 574# Name of the host. 575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 576# so uname gets run too. 577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 578 579# 580# Initializations. 581# 582ac_default_prefix=/usr/local 583ac_clean_files= 584ac_config_libobj_dir=. 585LIBOBJS= 586cross_compiling=no 587subdirs= 588MFLAGS= 589MAKEFLAGS= 590 591# Identity of this package. 592PACKAGE_NAME='mesa-demos' 593PACKAGE_TARNAME='mesa-demos' 594PACKAGE_VERSION='8.4.0' 595PACKAGE_STRING='mesa-demos 8.4.0' 596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa&component=Demos' 597PACKAGE_URL='' 598 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638LIBOBJS 639HAVE_RBUG_FALSE 640HAVE_RBUG_TRUE 641HAVE_WAYLAND_FALSE 642HAVE_WAYLAND_TRUE 643HAVE_MESA_SOURCE_FALSE 644HAVE_MESA_SOURCE_TRUE 645HAVE_DRM_FALSE 646HAVE_DRM_TRUE 647HAVE_OSMESA_FALSE 648HAVE_OSMESA_TRUE 649HAVE_FREETYPE2_FALSE 650HAVE_FREETYPE2_TRUE 651HAVE_GBM_FALSE 652HAVE_GBM_TRUE 653HAVE_X11_FALSE 654HAVE_X11_TRUE 655HAVE_GLUT_FALSE 656HAVE_GLUT_TRUE 657HAVE_VG_FALSE 658HAVE_VG_TRUE 659HAVE_GLESV2_FALSE 660HAVE_GLESV2_TRUE 661HAVE_GLESV1_FALSE 662HAVE_GLESV1_TRUE 663HAVE_EGL_FALSE 664HAVE_EGL_TRUE 665MESA_GLAPI 666OSMESA32_LIBS 667OSMESA16_LIBS 668GLUT_LIBS 669GLUT_CFLAGS 670DEMO_LIBS 671DEMO_CFLAGS 672DEMOS_DATA_DIR 673FREETYPE2_LIBS 674FREETYPE2_CFLAGS 675GBM_LIBS 676GBM_CFLAGS 677WAYLAND_LIBS 678WAYLAND_CFLAGS 679X11_LIBS 680X11_CFLAGS 681DRM_LIBS 682DRM_CFLAGS 683OSMESA_LIBS 684OSMESA_CFLAGS 685VG_LIBS 686VG_CFLAGS 687GLESV2_LIBS 688GLESV2_CFLAGS 689GLESV1_LIBS 690GLESV1_CFLAGS 691EGL_LIBS 692EGL_CFLAGS 693GLU_LIBS 694GLU_CFLAGS 695GLEW_LIBS 696GLEW_CFLAGS 697GL_LIBS 698GL_CFLAGS 699PKG_CONFIG_LIBDIR 700PKG_CONFIG_PATH 701PKG_CONFIG 702CXXCPP 703LT_SYS_LIBRARY_PATH 704OTOOL64 705OTOOL 706LIPO 707NMEDIT 708DSYMUTIL 709MANIFEST_TOOL 710RANLIB 711ac_ct_AR 712AR 713DLLTOOL 714OBJDUMP 715LN_S 716NM 717ac_ct_DUMPBIN 718DUMPBIN 719LD 720FGREP 721EGREP 722GREP 723SED 724LIBTOOL 725am__fastdepCXX_FALSE 726am__fastdepCXX_TRUE 727CXXDEPMODE 728ac_ct_CXX 729CXXFLAGS 730CXX 731CPP 732am__fastdepCC_FALSE 733am__fastdepCC_TRUE 734CCDEPMODE 735am__nodep 736AMDEPBACKSLASH 737AMDEP_FALSE 738AMDEP_TRUE 739am__quote 740am__include 741DEPDIR 742OBJEXT 743EXEEXT 744ac_ct_CC 745CPPFLAGS 746LDFLAGS 747CFLAGS 748CC 749AM_BACKSLASH 750AM_DEFAULT_VERBOSITY 751AM_DEFAULT_V 752AM_V 753am__untar 754am__tar 755AMTAR 756am__leading_dot 757SET_MAKE 758AWK 759mkdir_p 760MKDIR_P 761INSTALL_STRIP_PROGRAM 762STRIP 763install_sh 764MAKEINFO 765AUTOHEADER 766AUTOMAKE 767AUTOCONF 768ACLOCAL 769VERSION 770PACKAGE 771CYGPATH_W 772am__isrc 773INSTALL_DATA 774INSTALL_SCRIPT 775INSTALL_PROGRAM 776host_os 777host_vendor 778host_cpu 779host 780build_os 781build_vendor 782build_cpu 783build 784target_alias 785host_alias 786build_alias 787LIBS 788ECHO_T 789ECHO_N 790ECHO_C 791DEFS 792mandir 793localedir 794libdir 795psdir 796pdfdir 797dvidir 798htmldir 799infodir 800docdir 801oldincludedir 802includedir 803runstatedir 804localstatedir 805sharedstatedir 806sysconfdir 807datadir 808datarootdir 809libexecdir 810sbindir 811bindir 812program_transform_name 813prefix 814exec_prefix 815PACKAGE_URL 816PACKAGE_BUGREPORT 817PACKAGE_STRING 818PACKAGE_VERSION 819PACKAGE_TARNAME 820PACKAGE_NAME 821PATH_SEPARATOR 822SHELL' 823ac_subst_files='' 824ac_user_opts=' 825enable_option_checking 826enable_silent_rules 827enable_dependency_tracking 828enable_shared 829enable_static 830with_pic 831enable_fast_install 832with_aix_soname 833with_gnu_ld 834with_sysroot 835enable_libtool_lock 836with_glut 837enable_egl 838enable_gles1 839enable_gles2 840enable_vg 841enable_osmesa 842enable_libdrm 843enable_x11 844enable_wayland 845enable_gbm 846enable_freetype2 847with_mesa_source 848enable_rbug 849with_system_data_files 850' 851 ac_precious_vars='build_alias 852host_alias 853target_alias 854CC 855CFLAGS 856LDFLAGS 857LIBS 858CPPFLAGS 859CPP 860CXX 861CXXFLAGS 862CCC 863LT_SYS_LIBRARY_PATH 864CXXCPP 865PKG_CONFIG 866PKG_CONFIG_PATH 867PKG_CONFIG_LIBDIR 868GL_CFLAGS 869GL_LIBS 870GLEW_CFLAGS 871GLEW_LIBS 872GLU_CFLAGS 873GLU_LIBS 874EGL_CFLAGS 875EGL_LIBS 876GLESV1_CFLAGS 877GLESV1_LIBS 878GLESV2_CFLAGS 879GLESV2_LIBS 880VG_CFLAGS 881VG_LIBS 882OSMESA_CFLAGS 883OSMESA_LIBS 884DRM_CFLAGS 885DRM_LIBS 886X11_CFLAGS 887X11_LIBS 888WAYLAND_CFLAGS 889WAYLAND_LIBS 890GBM_CFLAGS 891GBM_LIBS 892FREETYPE2_CFLAGS 893FREETYPE2_LIBS' 894 895 896# Initialize some variables set by options. 897ac_init_help= 898ac_init_version=false 899ac_unrecognized_opts= 900ac_unrecognized_sep= 901# The variables have the same names as the options, with 902# dashes changed to underlines. 903cache_file=/dev/null 904exec_prefix=NONE 905no_create= 906no_recursion= 907prefix=NONE 908program_prefix=NONE 909program_suffix=NONE 910program_transform_name=s,x,x, 911silent= 912site= 913srcdir= 914verbose= 915x_includes=NONE 916x_libraries=NONE 917 918# Installation directory options. 919# These are left unexpanded so users can "make install exec_prefix=/foo" 920# and all the variables that are supposed to be based on exec_prefix 921# by default will actually change. 922# Use braces instead of parens because sh, perl, etc. also accept them. 923# (The list follows the same order as the GNU Coding Standards.) 924bindir='${exec_prefix}/bin' 925sbindir='${exec_prefix}/sbin' 926libexecdir='${exec_prefix}/libexec' 927datarootdir='${prefix}/share' 928datadir='${datarootdir}' 929sysconfdir='${prefix}/etc' 930sharedstatedir='${prefix}/com' 931localstatedir='${prefix}/var' 932runstatedir='${localstatedir}/run' 933includedir='${prefix}/include' 934oldincludedir='/usr/include' 935docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 936infodir='${datarootdir}/info' 937htmldir='${docdir}' 938dvidir='${docdir}' 939pdfdir='${docdir}' 940psdir='${docdir}' 941libdir='${exec_prefix}/lib' 942localedir='${datarootdir}/locale' 943mandir='${datarootdir}/man' 944 945ac_prev= 946ac_dashdash= 947for ac_option 948do 949 # If the previous option needs an argument, assign it. 950 if test -n "$ac_prev"; then 951 eval $ac_prev=\$ac_option 952 ac_prev= 953 continue 954 fi 955 956 case $ac_option in 957 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 958 *=) ac_optarg= ;; 959 *) ac_optarg=yes ;; 960 esac 961 962 # Accept the important Cygnus configure options, so we can diagnose typos. 963 964 case $ac_dashdash$ac_option in 965 --) 966 ac_dashdash=yes ;; 967 968 -bindir | --bindir | --bindi | --bind | --bin | --bi) 969 ac_prev=bindir ;; 970 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 971 bindir=$ac_optarg ;; 972 973 -build | --build | --buil | --bui | --bu) 974 ac_prev=build_alias ;; 975 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 976 build_alias=$ac_optarg ;; 977 978 -cache-file | --cache-file | --cache-fil | --cache-fi \ 979 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 980 ac_prev=cache_file ;; 981 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 982 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 983 cache_file=$ac_optarg ;; 984 985 --config-cache | -C) 986 cache_file=config.cache ;; 987 988 -datadir | --datadir | --datadi | --datad) 989 ac_prev=datadir ;; 990 -datadir=* | --datadir=* | --datadi=* | --datad=*) 991 datadir=$ac_optarg ;; 992 993 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 994 | --dataroo | --dataro | --datar) 995 ac_prev=datarootdir ;; 996 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 997 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 998 datarootdir=$ac_optarg ;; 999 1000 -disable-* | --disable-*) 1001 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1002 # Reject names that are not valid shell variable names. 1003 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1004 as_fn_error $? "invalid feature name: $ac_useropt" 1005 ac_useropt_orig=$ac_useropt 1006 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1007 case $ac_user_opts in 1008 *" 1009"enable_$ac_useropt" 1010"*) ;; 1011 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1012 ac_unrecognized_sep=', ';; 1013 esac 1014 eval enable_$ac_useropt=no ;; 1015 1016 -docdir | --docdir | --docdi | --doc | --do) 1017 ac_prev=docdir ;; 1018 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1019 docdir=$ac_optarg ;; 1020 1021 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1022 ac_prev=dvidir ;; 1023 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1024 dvidir=$ac_optarg ;; 1025 1026 -enable-* | --enable-*) 1027 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1028 # Reject names that are not valid shell variable names. 1029 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1030 as_fn_error $? "invalid feature name: $ac_useropt" 1031 ac_useropt_orig=$ac_useropt 1032 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1033 case $ac_user_opts in 1034 *" 1035"enable_$ac_useropt" 1036"*) ;; 1037 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1038 ac_unrecognized_sep=', ';; 1039 esac 1040 eval enable_$ac_useropt=\$ac_optarg ;; 1041 1042 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1043 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1044 | --exec | --exe | --ex) 1045 ac_prev=exec_prefix ;; 1046 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1047 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1048 | --exec=* | --exe=* | --ex=*) 1049 exec_prefix=$ac_optarg ;; 1050 1051 -gas | --gas | --ga | --g) 1052 # Obsolete; use --with-gas. 1053 with_gas=yes ;; 1054 1055 -help | --help | --hel | --he | -h) 1056 ac_init_help=long ;; 1057 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1058 ac_init_help=recursive ;; 1059 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1060 ac_init_help=short ;; 1061 1062 -host | --host | --hos | --ho) 1063 ac_prev=host_alias ;; 1064 -host=* | --host=* | --hos=* | --ho=*) 1065 host_alias=$ac_optarg ;; 1066 1067 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1068 ac_prev=htmldir ;; 1069 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1070 | --ht=*) 1071 htmldir=$ac_optarg ;; 1072 1073 -includedir | --includedir | --includedi | --included | --include \ 1074 | --includ | --inclu | --incl | --inc) 1075 ac_prev=includedir ;; 1076 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1077 | --includ=* | --inclu=* | --incl=* | --inc=*) 1078 includedir=$ac_optarg ;; 1079 1080 -infodir | --infodir | --infodi | --infod | --info | --inf) 1081 ac_prev=infodir ;; 1082 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1083 infodir=$ac_optarg ;; 1084 1085 -libdir | --libdir | --libdi | --libd) 1086 ac_prev=libdir ;; 1087 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1088 libdir=$ac_optarg ;; 1089 1090 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1091 | --libexe | --libex | --libe) 1092 ac_prev=libexecdir ;; 1093 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1094 | --libexe=* | --libex=* | --libe=*) 1095 libexecdir=$ac_optarg ;; 1096 1097 -localedir | --localedir | --localedi | --localed | --locale) 1098 ac_prev=localedir ;; 1099 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1100 localedir=$ac_optarg ;; 1101 1102 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1103 | --localstate | --localstat | --localsta | --localst | --locals) 1104 ac_prev=localstatedir ;; 1105 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1106 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1107 localstatedir=$ac_optarg ;; 1108 1109 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1110 ac_prev=mandir ;; 1111 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1112 mandir=$ac_optarg ;; 1113 1114 -nfp | --nfp | --nf) 1115 # Obsolete; use --without-fp. 1116 with_fp=no ;; 1117 1118 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1119 | --no-cr | --no-c | -n) 1120 no_create=yes ;; 1121 1122 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1123 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1124 no_recursion=yes ;; 1125 1126 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1127 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1128 | --oldin | --oldi | --old | --ol | --o) 1129 ac_prev=oldincludedir ;; 1130 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1131 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1132 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1133 oldincludedir=$ac_optarg ;; 1134 1135 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1136 ac_prev=prefix ;; 1137 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1138 prefix=$ac_optarg ;; 1139 1140 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1141 | --program-pre | --program-pr | --program-p) 1142 ac_prev=program_prefix ;; 1143 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1144 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1145 program_prefix=$ac_optarg ;; 1146 1147 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1148 | --program-suf | --program-su | --program-s) 1149 ac_prev=program_suffix ;; 1150 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1151 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1152 program_suffix=$ac_optarg ;; 1153 1154 -program-transform-name | --program-transform-name \ 1155 | --program-transform-nam | --program-transform-na \ 1156 | --program-transform-n | --program-transform- \ 1157 | --program-transform | --program-transfor \ 1158 | --program-transfo | --program-transf \ 1159 | --program-trans | --program-tran \ 1160 | --progr-tra | --program-tr | --program-t) 1161 ac_prev=program_transform_name ;; 1162 -program-transform-name=* | --program-transform-name=* \ 1163 | --program-transform-nam=* | --program-transform-na=* \ 1164 | --program-transform-n=* | --program-transform-=* \ 1165 | --program-transform=* | --program-transfor=* \ 1166 | --program-transfo=* | --program-transf=* \ 1167 | --program-trans=* | --program-tran=* \ 1168 | --progr-tra=* | --program-tr=* | --program-t=*) 1169 program_transform_name=$ac_optarg ;; 1170 1171 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1172 ac_prev=pdfdir ;; 1173 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1174 pdfdir=$ac_optarg ;; 1175 1176 -psdir | --psdir | --psdi | --psd | --ps) 1177 ac_prev=psdir ;; 1178 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1179 psdir=$ac_optarg ;; 1180 1181 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1182 | -silent | --silent | --silen | --sile | --sil) 1183 silent=yes ;; 1184 1185 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1186 | --runstate | --runstat | --runsta | --runst | --runs \ 1187 | --run | --ru | --r) 1188 ac_prev=runstatedir ;; 1189 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1190 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1191 | --run=* | --ru=* | --r=*) 1192 runstatedir=$ac_optarg ;; 1193 1194 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1195 ac_prev=sbindir ;; 1196 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1197 | --sbi=* | --sb=*) 1198 sbindir=$ac_optarg ;; 1199 1200 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1201 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1202 | --sharedst | --shareds | --shared | --share | --shar \ 1203 | --sha | --sh) 1204 ac_prev=sharedstatedir ;; 1205 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1206 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1207 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1208 | --sha=* | --sh=*) 1209 sharedstatedir=$ac_optarg ;; 1210 1211 -site | --site | --sit) 1212 ac_prev=site ;; 1213 -site=* | --site=* | --sit=*) 1214 site=$ac_optarg ;; 1215 1216 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1217 ac_prev=srcdir ;; 1218 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1219 srcdir=$ac_optarg ;; 1220 1221 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1222 | --syscon | --sysco | --sysc | --sys | --sy) 1223 ac_prev=sysconfdir ;; 1224 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1225 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1226 sysconfdir=$ac_optarg ;; 1227 1228 -target | --target | --targe | --targ | --tar | --ta | --t) 1229 ac_prev=target_alias ;; 1230 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1231 target_alias=$ac_optarg ;; 1232 1233 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1234 verbose=yes ;; 1235 1236 -version | --version | --versio | --versi | --vers | -V) 1237 ac_init_version=: ;; 1238 1239 -with-* | --with-*) 1240 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1241 # Reject names that are not valid shell variable names. 1242 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1243 as_fn_error $? "invalid package name: $ac_useropt" 1244 ac_useropt_orig=$ac_useropt 1245 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1246 case $ac_user_opts in 1247 *" 1248"with_$ac_useropt" 1249"*) ;; 1250 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1251 ac_unrecognized_sep=', ';; 1252 esac 1253 eval with_$ac_useropt=\$ac_optarg ;; 1254 1255 -without-* | --without-*) 1256 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1257 # Reject names that are not valid shell variable names. 1258 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1259 as_fn_error $? "invalid package name: $ac_useropt" 1260 ac_useropt_orig=$ac_useropt 1261 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1262 case $ac_user_opts in 1263 *" 1264"with_$ac_useropt" 1265"*) ;; 1266 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1267 ac_unrecognized_sep=', ';; 1268 esac 1269 eval with_$ac_useropt=no ;; 1270 1271 --x) 1272 # Obsolete; use --with-x. 1273 with_x=yes ;; 1274 1275 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1276 | --x-incl | --x-inc | --x-in | --x-i) 1277 ac_prev=x_includes ;; 1278 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1279 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1280 x_includes=$ac_optarg ;; 1281 1282 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1283 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1284 ac_prev=x_libraries ;; 1285 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1286 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1287 x_libraries=$ac_optarg ;; 1288 1289 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1290Try \`$0 --help' for more information" 1291 ;; 1292 1293 *=*) 1294 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1295 # Reject names that are not valid shell variable names. 1296 case $ac_envvar in #( 1297 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1298 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1299 esac 1300 eval $ac_envvar=\$ac_optarg 1301 export $ac_envvar ;; 1302 1303 *) 1304 # FIXME: should be removed in autoconf 3.0. 1305 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1306 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1307 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1308 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1309 ;; 1310 1311 esac 1312done 1313 1314if test -n "$ac_prev"; then 1315 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1316 as_fn_error $? "missing argument to $ac_option" 1317fi 1318 1319if test -n "$ac_unrecognized_opts"; then 1320 case $enable_option_checking in 1321 no) ;; 1322 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1323 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1324 esac 1325fi 1326 1327# Check all directory arguments for consistency. 1328for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1329 datadir sysconfdir sharedstatedir localstatedir includedir \ 1330 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1331 libdir localedir mandir runstatedir 1332do 1333 eval ac_val=\$$ac_var 1334 # Remove trailing slashes. 1335 case $ac_val in 1336 */ ) 1337 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1338 eval $ac_var=\$ac_val;; 1339 esac 1340 # Be sure to have absolute directory names. 1341 case $ac_val in 1342 [\\/$]* | ?:[\\/]* ) continue;; 1343 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1344 esac 1345 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1346done 1347 1348# There might be people who depend on the old broken behavior: `$host' 1349# used to hold the argument of --host etc. 1350# FIXME: To remove some day. 1351build=$build_alias 1352host=$host_alias 1353target=$target_alias 1354 1355# FIXME: To remove some day. 1356if test "x$host_alias" != x; then 1357 if test "x$build_alias" = x; then 1358 cross_compiling=maybe 1359 elif test "x$build_alias" != "x$host_alias"; then 1360 cross_compiling=yes 1361 fi 1362fi 1363 1364ac_tool_prefix= 1365test -n "$host_alias" && ac_tool_prefix=$host_alias- 1366 1367test "$silent" = yes && exec 6>/dev/null 1368 1369 1370ac_pwd=`pwd` && test -n "$ac_pwd" && 1371ac_ls_di=`ls -di .` && 1372ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1373 as_fn_error $? "working directory cannot be determined" 1374test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1375 as_fn_error $? "pwd does not report name of working directory" 1376 1377 1378# Find the source files, if location was not specified. 1379if test -z "$srcdir"; then 1380 ac_srcdir_defaulted=yes 1381 # Try the directory containing this script, then the parent directory. 1382 ac_confdir=`$as_dirname -- "$as_myself" || 1383$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1384 X"$as_myself" : 'X\(//\)[^/]' \| \ 1385 X"$as_myself" : 'X\(//\)$' \| \ 1386 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1387$as_echo X"$as_myself" | 1388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1389 s//\1/ 1390 q 1391 } 1392 /^X\(\/\/\)[^/].*/{ 1393 s//\1/ 1394 q 1395 } 1396 /^X\(\/\/\)$/{ 1397 s//\1/ 1398 q 1399 } 1400 /^X\(\/\).*/{ 1401 s//\1/ 1402 q 1403 } 1404 s/.*/./; q'` 1405 srcdir=$ac_confdir 1406 if test ! -r "$srcdir/$ac_unique_file"; then 1407 srcdir=.. 1408 fi 1409else 1410 ac_srcdir_defaulted=no 1411fi 1412if test ! -r "$srcdir/$ac_unique_file"; then 1413 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1414 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1415fi 1416ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1417ac_abs_confdir=`( 1418 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1419 pwd)` 1420# When building in place, set srcdir=. 1421if test "$ac_abs_confdir" = "$ac_pwd"; then 1422 srcdir=. 1423fi 1424# Remove unnecessary trailing slashes from srcdir. 1425# Double slashes in file names in object file debugging info 1426# mess up M-x gdb in Emacs. 1427case $srcdir in 1428*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1429esac 1430for ac_var in $ac_precious_vars; do 1431 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1432 eval ac_env_${ac_var}_value=\$${ac_var} 1433 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1434 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1435done 1436 1437# 1438# Report the --help message. 1439# 1440if test "$ac_init_help" = "long"; then 1441 # Omit some internal or obsolete options to make the list less imposing. 1442 # This message is too long to be a string in the A/UX 3.1 sh. 1443 cat <<_ACEOF 1444\`configure' configures mesa-demos 8.4.0 to adapt to many kinds of systems. 1445 1446Usage: $0 [OPTION]... [VAR=VALUE]... 1447 1448To assign environment variables (e.g., CC, CFLAGS...), specify them as 1449VAR=VALUE. See below for descriptions of some of the useful variables. 1450 1451Defaults for the options are specified in brackets. 1452 1453Configuration: 1454 -h, --help display this help and exit 1455 --help=short display options specific to this package 1456 --help=recursive display the short help of all the included packages 1457 -V, --version display version information and exit 1458 -q, --quiet, --silent do not print \`checking ...' messages 1459 --cache-file=FILE cache test results in FILE [disabled] 1460 -C, --config-cache alias for \`--cache-file=config.cache' 1461 -n, --no-create do not create output files 1462 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1463 1464Installation directories: 1465 --prefix=PREFIX install architecture-independent files in PREFIX 1466 [$ac_default_prefix] 1467 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1468 [PREFIX] 1469 1470By default, \`make install' will install all the files in 1471\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1472an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1473for instance \`--prefix=\$HOME'. 1474 1475For better control, use the options below. 1476 1477Fine tuning of the installation directories: 1478 --bindir=DIR user executables [EPREFIX/bin] 1479 --sbindir=DIR system admin executables [EPREFIX/sbin] 1480 --libexecdir=DIR program executables [EPREFIX/libexec] 1481 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1482 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1483 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1484 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1485 --libdir=DIR object code libraries [EPREFIX/lib] 1486 --includedir=DIR C header files [PREFIX/include] 1487 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1488 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1489 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1490 --infodir=DIR info documentation [DATAROOTDIR/info] 1491 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1492 --mandir=DIR man documentation [DATAROOTDIR/man] 1493 --docdir=DIR documentation root [DATAROOTDIR/doc/mesa-demos] 1494 --htmldir=DIR html documentation [DOCDIR] 1495 --dvidir=DIR dvi documentation [DOCDIR] 1496 --pdfdir=DIR pdf documentation [DOCDIR] 1497 --psdir=DIR ps documentation [DOCDIR] 1498_ACEOF 1499 1500 cat <<\_ACEOF 1501 1502Program names: 1503 --program-prefix=PREFIX prepend PREFIX to installed program names 1504 --program-suffix=SUFFIX append SUFFIX to installed program names 1505 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1506 1507System types: 1508 --build=BUILD configure for building on BUILD [guessed] 1509 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1510_ACEOF 1511fi 1512 1513if test -n "$ac_init_help"; then 1514 case $ac_init_help in 1515 short | recursive ) echo "Configuration of mesa-demos 8.4.0:";; 1516 esac 1517 cat <<\_ACEOF 1518 1519Optional Features: 1520 --disable-option-checking ignore unrecognized --enable/--with options 1521 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1522 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1523 --enable-silent-rules less verbose build output (undo: "make V=1") 1524 --disable-silent-rules verbose build output (undo: "make V=0") 1525 --enable-dependency-tracking 1526 do not reject slow dependency extractors 1527 --disable-dependency-tracking 1528 speeds up one-time build 1529 --enable-shared[=PKGS] build shared libraries [default=yes] 1530 --enable-static[=PKGS] build static libraries [default=yes] 1531 --enable-fast-install[=PKGS] 1532 optimize for fast installation [default=yes] 1533 --disable-libtool-lock avoid locking (might break parallel builds) 1534 --enable-egl enable EGL library [default=auto] 1535 --enable-gles1 enable support for OpenGL ES 1.x API [default=auto] 1536 --enable-gles2 enable support for OpenGL ES 2.x API [default=auto] 1537 --enable-vg enable support for OpenVG API [default=auto] 1538 --enable-osmesa enable OSMesa library [default=auto] 1539 --enable-libdrm enable support for libdrm [default=auto] 1540 --enable-x11 enable support for X11 [default=auto] 1541 --enable-wayland enable support for wayland [default=auto] 1542 --enable-gbm enable support for GBM [default=auto] 1543 --enable-freetype2 enable support for FreeType2 [default=auto] 1544 --enable-rbug enable support for rbug [default=no] 1545 1546Optional Packages: 1547 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1548 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1549 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1550 both] 1551 --with-aix-soname=aix|svr4|both 1552 shared library versioning (aka "SONAME") variant to 1553 provide on AIX, [default=aix]. 1554 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1555 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1556 compiler's sysroot if not specified). 1557 --with-glut=DIR glut install directory 1558 --with-mesa-source=DIR Mesa source directory for finding gl_API.xml 1559 --with-system-data-files 1560 Use system data files for demos (default: no) 1561 1562Some influential environment variables: 1563 CC C compiler command 1564 CFLAGS C compiler flags 1565 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1566 nonstandard directory <lib dir> 1567 LIBS libraries to pass to the linker, e.g. -l<library> 1568 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1569 you have headers in a nonstandard directory <include dir> 1570 CPP C preprocessor 1571 CXX C++ compiler command 1572 CXXFLAGS C++ compiler flags 1573 LT_SYS_LIBRARY_PATH 1574 User-defined run-time library search path. 1575 CXXCPP C++ preprocessor 1576 PKG_CONFIG path to pkg-config utility 1577 PKG_CONFIG_PATH 1578 directories to add to pkg-config's search path 1579 PKG_CONFIG_LIBDIR 1580 path overriding pkg-config's built-in search path 1581 GL_CFLAGS C compiler flags for GL, overriding pkg-config 1582 GL_LIBS linker flags for GL, overriding pkg-config 1583 GLEW_CFLAGS C compiler flags for GLEW, overriding pkg-config 1584 GLEW_LIBS linker flags for GLEW, overriding pkg-config 1585 GLU_CFLAGS C compiler flags for GLU, overriding pkg-config 1586 GLU_LIBS linker flags for GLU, overriding pkg-config 1587 EGL_CFLAGS C compiler flags for EGL, overriding pkg-config 1588 EGL_LIBS linker flags for EGL, overriding pkg-config 1589 GLESV1_CFLAGS 1590 C compiler flags for GLESV1, overriding pkg-config 1591 GLESV1_LIBS linker flags for GLESV1, overriding pkg-config 1592 GLESV2_CFLAGS 1593 C compiler flags for GLESV2, overriding pkg-config 1594 GLESV2_LIBS linker flags for GLESV2, overriding pkg-config 1595 VG_CFLAGS C compiler flags for VG, overriding pkg-config 1596 VG_LIBS linker flags for VG, overriding pkg-config 1597 OSMESA_CFLAGS 1598 C compiler flags for OSMESA, overriding pkg-config 1599 OSMESA_LIBS linker flags for OSMESA, overriding pkg-config 1600 DRM_CFLAGS C compiler flags for DRM, overriding pkg-config 1601 DRM_LIBS linker flags for DRM, overriding pkg-config 1602 X11_CFLAGS C compiler flags for X11, overriding pkg-config 1603 X11_LIBS linker flags for X11, overriding pkg-config 1604 WAYLAND_CFLAGS 1605 C compiler flags for WAYLAND, overriding pkg-config 1606 WAYLAND_LIBS 1607 linker flags for WAYLAND, overriding pkg-config 1608 GBM_CFLAGS C compiler flags for GBM, overriding pkg-config 1609 GBM_LIBS linker flags for GBM, overriding pkg-config 1610 FREETYPE2_CFLAGS 1611 C compiler flags for FREETYPE2, overriding pkg-config 1612 FREETYPE2_LIBS 1613 linker flags for FREETYPE2, overriding pkg-config 1614 1615Use these variables to override the choices made by `configure' or to help 1616it to find libraries and programs with nonstandard names/locations. 1617 1618Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa&component=Demos>. 1619_ACEOF 1620ac_status=$? 1621fi 1622 1623if test "$ac_init_help" = "recursive"; then 1624 # If there are subdirs, report their specific --help. 1625 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1626 test -d "$ac_dir" || 1627 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1628 continue 1629 ac_builddir=. 1630 1631case "$ac_dir" in 1632.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1633*) 1634 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1635 # A ".." for each directory in $ac_dir_suffix. 1636 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1637 case $ac_top_builddir_sub in 1638 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1639 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1640 esac ;; 1641esac 1642ac_abs_top_builddir=$ac_pwd 1643ac_abs_builddir=$ac_pwd$ac_dir_suffix 1644# for backward compatibility: 1645ac_top_builddir=$ac_top_build_prefix 1646 1647case $srcdir in 1648 .) # We are building in place. 1649 ac_srcdir=. 1650 ac_top_srcdir=$ac_top_builddir_sub 1651 ac_abs_top_srcdir=$ac_pwd ;; 1652 [\\/]* | ?:[\\/]* ) # Absolute name. 1653 ac_srcdir=$srcdir$ac_dir_suffix; 1654 ac_top_srcdir=$srcdir 1655 ac_abs_top_srcdir=$srcdir ;; 1656 *) # Relative name. 1657 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1658 ac_top_srcdir=$ac_top_build_prefix$srcdir 1659 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1660esac 1661ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1662 1663 cd "$ac_dir" || { ac_status=$?; continue; } 1664 # Check for guested configure. 1665 if test -f "$ac_srcdir/configure.gnu"; then 1666 echo && 1667 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1668 elif test -f "$ac_srcdir/configure"; then 1669 echo && 1670 $SHELL "$ac_srcdir/configure" --help=recursive 1671 else 1672 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1673 fi || ac_status=$? 1674 cd "$ac_pwd" || { ac_status=$?; break; } 1675 done 1676fi 1677 1678test -n "$ac_init_help" && exit $ac_status 1679if $ac_init_version; then 1680 cat <<\_ACEOF 1681mesa-demos configure 8.4.0 1682generated by GNU Autoconf 2.69 1683 1684Copyright (C) 2012 Free Software Foundation, Inc. 1685This configure script is free software; the Free Software Foundation 1686gives unlimited permission to copy, distribute and modify it. 1687_ACEOF 1688 exit 1689fi 1690 1691## ------------------------ ## 1692## Autoconf initialization. ## 1693## ------------------------ ## 1694 1695# ac_fn_c_try_compile LINENO 1696# -------------------------- 1697# Try to compile conftest.$ac_ext, and return whether this succeeded. 1698ac_fn_c_try_compile () 1699{ 1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1701 rm -f conftest.$ac_objext 1702 if { { ac_try="$ac_compile" 1703case "(($ac_try" in 1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1705 *) ac_try_echo=$ac_try;; 1706esac 1707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1708$as_echo "$ac_try_echo"; } >&5 1709 (eval "$ac_compile") 2>conftest.err 1710 ac_status=$? 1711 if test -s conftest.err; then 1712 grep -v '^ *+' conftest.err >conftest.er1 1713 cat conftest.er1 >&5 1714 mv -f conftest.er1 conftest.err 1715 fi 1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1717 test $ac_status = 0; } && { 1718 test -z "$ac_c_werror_flag" || 1719 test ! -s conftest.err 1720 } && test -s conftest.$ac_objext; then : 1721 ac_retval=0 1722else 1723 $as_echo "$as_me: failed program was:" >&5 1724sed 's/^/| /' conftest.$ac_ext >&5 1725 1726 ac_retval=1 1727fi 1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1729 as_fn_set_status $ac_retval 1730 1731} # ac_fn_c_try_compile 1732 1733# ac_fn_c_try_cpp LINENO 1734# ---------------------- 1735# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1736ac_fn_c_try_cpp () 1737{ 1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1739 if { { ac_try="$ac_cpp conftest.$ac_ext" 1740case "(($ac_try" in 1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1742 *) ac_try_echo=$ac_try;; 1743esac 1744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1745$as_echo "$ac_try_echo"; } >&5 1746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1747 ac_status=$? 1748 if test -s conftest.err; then 1749 grep -v '^ *+' conftest.err >conftest.er1 1750 cat conftest.er1 >&5 1751 mv -f conftest.er1 conftest.err 1752 fi 1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1754 test $ac_status = 0; } > conftest.i && { 1755 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1756 test ! -s conftest.err 1757 }; then : 1758 ac_retval=0 1759else 1760 $as_echo "$as_me: failed program was:" >&5 1761sed 's/^/| /' conftest.$ac_ext >&5 1762 1763 ac_retval=1 1764fi 1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1766 as_fn_set_status $ac_retval 1767 1768} # ac_fn_c_try_cpp 1769 1770# ac_fn_cxx_try_compile LINENO 1771# ---------------------------- 1772# Try to compile conftest.$ac_ext, and return whether this succeeded. 1773ac_fn_cxx_try_compile () 1774{ 1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1776 rm -f conftest.$ac_objext 1777 if { { ac_try="$ac_compile" 1778case "(($ac_try" in 1779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1780 *) ac_try_echo=$ac_try;; 1781esac 1782eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1783$as_echo "$ac_try_echo"; } >&5 1784 (eval "$ac_compile") 2>conftest.err 1785 ac_status=$? 1786 if test -s conftest.err; then 1787 grep -v '^ *+' conftest.err >conftest.er1 1788 cat conftest.er1 >&5 1789 mv -f conftest.er1 conftest.err 1790 fi 1791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1792 test $ac_status = 0; } && { 1793 test -z "$ac_cxx_werror_flag" || 1794 test ! -s conftest.err 1795 } && test -s conftest.$ac_objext; then : 1796 ac_retval=0 1797else 1798 $as_echo "$as_me: failed program was:" >&5 1799sed 's/^/| /' conftest.$ac_ext >&5 1800 1801 ac_retval=1 1802fi 1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1804 as_fn_set_status $ac_retval 1805 1806} # ac_fn_cxx_try_compile 1807 1808# ac_fn_c_try_link LINENO 1809# ----------------------- 1810# Try to link conftest.$ac_ext, and return whether this succeeded. 1811ac_fn_c_try_link () 1812{ 1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1814 rm -f conftest.$ac_objext conftest$ac_exeext 1815 if { { ac_try="$ac_link" 1816case "(($ac_try" in 1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1818 *) ac_try_echo=$ac_try;; 1819esac 1820eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1821$as_echo "$ac_try_echo"; } >&5 1822 (eval "$ac_link") 2>conftest.err 1823 ac_status=$? 1824 if test -s conftest.err; then 1825 grep -v '^ *+' conftest.err >conftest.er1 1826 cat conftest.er1 >&5 1827 mv -f conftest.er1 conftest.err 1828 fi 1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1830 test $ac_status = 0; } && { 1831 test -z "$ac_c_werror_flag" || 1832 test ! -s conftest.err 1833 } && test -s conftest$ac_exeext && { 1834 test "$cross_compiling" = yes || 1835 test -x conftest$ac_exeext 1836 }; then : 1837 ac_retval=0 1838else 1839 $as_echo "$as_me: failed program was:" >&5 1840sed 's/^/| /' conftest.$ac_ext >&5 1841 1842 ac_retval=1 1843fi 1844 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1845 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1846 # interfere with the next link command; also delete a directory that is 1847 # left behind by Apple's compiler. We do this before executing the actions. 1848 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1850 as_fn_set_status $ac_retval 1851 1852} # ac_fn_c_try_link 1853 1854# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1855# ------------------------------------------------------- 1856# Tests whether HEADER exists and can be compiled using the include files in 1857# INCLUDES, setting the cache variable VAR accordingly. 1858ac_fn_c_check_header_compile () 1859{ 1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1862$as_echo_n "checking for $2... " >&6; } 1863if eval \${$3+:} false; then : 1864 $as_echo_n "(cached) " >&6 1865else 1866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1867/* end confdefs.h. */ 1868$4 1869#include <$2> 1870_ACEOF 1871if ac_fn_c_try_compile "$LINENO"; then : 1872 eval "$3=yes" 1873else 1874 eval "$3=no" 1875fi 1876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1877fi 1878eval ac_res=\$$3 1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1880$as_echo "$ac_res" >&6; } 1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1882 1883} # ac_fn_c_check_header_compile 1884 1885# ac_fn_c_try_run LINENO 1886# ---------------------- 1887# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1888# that executables *can* be run. 1889ac_fn_c_try_run () 1890{ 1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1892 if { { ac_try="$ac_link" 1893case "(($ac_try" in 1894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1895 *) ac_try_echo=$ac_try;; 1896esac 1897eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1898$as_echo "$ac_try_echo"; } >&5 1899 (eval "$ac_link") 2>&5 1900 ac_status=$? 1901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1902 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1903 { { case "(($ac_try" in 1904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1905 *) ac_try_echo=$ac_try;; 1906esac 1907eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1908$as_echo "$ac_try_echo"; } >&5 1909 (eval "$ac_try") 2>&5 1910 ac_status=$? 1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1912 test $ac_status = 0; }; }; then : 1913 ac_retval=0 1914else 1915 $as_echo "$as_me: program exited with status $ac_status" >&5 1916 $as_echo "$as_me: failed program was:" >&5 1917sed 's/^/| /' conftest.$ac_ext >&5 1918 1919 ac_retval=$ac_status 1920fi 1921 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1922 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1923 as_fn_set_status $ac_retval 1924 1925} # ac_fn_c_try_run 1926 1927# ac_fn_c_check_func LINENO FUNC VAR 1928# ---------------------------------- 1929# Tests whether FUNC exists, setting the cache variable VAR accordingly 1930ac_fn_c_check_func () 1931{ 1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1934$as_echo_n "checking for $2... " >&6; } 1935if eval \${$3+:} false; then : 1936 $as_echo_n "(cached) " >&6 1937else 1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1939/* end confdefs.h. */ 1940/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1941 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1942#define $2 innocuous_$2 1943 1944/* System header to define __stub macros and hopefully few prototypes, 1945 which can conflict with char $2 (); below. 1946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1947 <limits.h> exists even on freestanding compilers. */ 1948 1949#ifdef __STDC__ 1950# include <limits.h> 1951#else 1952# include <assert.h> 1953#endif 1954 1955#undef $2 1956 1957/* Override any GCC internal prototype to avoid an error. 1958 Use char because int might match the return type of a GCC 1959 builtin and then its argument prototype would still apply. */ 1960#ifdef __cplusplus 1961extern "C" 1962#endif 1963char $2 (); 1964/* The GNU C library defines this for functions which it implements 1965 to always fail with ENOSYS. Some functions are actually named 1966 something starting with __ and the normal name is an alias. */ 1967#if defined __stub_$2 || defined __stub___$2 1968choke me 1969#endif 1970 1971int 1972main () 1973{ 1974return $2 (); 1975 ; 1976 return 0; 1977} 1978_ACEOF 1979if ac_fn_c_try_link "$LINENO"; then : 1980 eval "$3=yes" 1981else 1982 eval "$3=no" 1983fi 1984rm -f core conftest.err conftest.$ac_objext \ 1985 conftest$ac_exeext conftest.$ac_ext 1986fi 1987eval ac_res=\$$3 1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1989$as_echo "$ac_res" >&6; } 1990 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1991 1992} # ac_fn_c_check_func 1993 1994# ac_fn_cxx_try_cpp LINENO 1995# ------------------------ 1996# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1997ac_fn_cxx_try_cpp () 1998{ 1999 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2000 if { { ac_try="$ac_cpp conftest.$ac_ext" 2001case "(($ac_try" in 2002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2003 *) ac_try_echo=$ac_try;; 2004esac 2005eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2006$as_echo "$ac_try_echo"; } >&5 2007 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2008 ac_status=$? 2009 if test -s conftest.err; then 2010 grep -v '^ *+' conftest.err >conftest.er1 2011 cat conftest.er1 >&5 2012 mv -f conftest.er1 conftest.err 2013 fi 2014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2015 test $ac_status = 0; } > conftest.i && { 2016 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2017 test ! -s conftest.err 2018 }; then : 2019 ac_retval=0 2020else 2021 $as_echo "$as_me: failed program was:" >&5 2022sed 's/^/| /' conftest.$ac_ext >&5 2023 2024 ac_retval=1 2025fi 2026 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2027 as_fn_set_status $ac_retval 2028 2029} # ac_fn_cxx_try_cpp 2030 2031# ac_fn_cxx_try_link LINENO 2032# ------------------------- 2033# Try to link conftest.$ac_ext, and return whether this succeeded. 2034ac_fn_cxx_try_link () 2035{ 2036 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2037 rm -f conftest.$ac_objext conftest$ac_exeext 2038 if { { ac_try="$ac_link" 2039case "(($ac_try" in 2040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2041 *) ac_try_echo=$ac_try;; 2042esac 2043eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2044$as_echo "$ac_try_echo"; } >&5 2045 (eval "$ac_link") 2>conftest.err 2046 ac_status=$? 2047 if test -s conftest.err; then 2048 grep -v '^ *+' conftest.err >conftest.er1 2049 cat conftest.er1 >&5 2050 mv -f conftest.er1 conftest.err 2051 fi 2052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2053 test $ac_status = 0; } && { 2054 test -z "$ac_cxx_werror_flag" || 2055 test ! -s conftest.err 2056 } && test -s conftest$ac_exeext && { 2057 test "$cross_compiling" = yes || 2058 test -x conftest$ac_exeext 2059 }; then : 2060 ac_retval=0 2061else 2062 $as_echo "$as_me: failed program was:" >&5 2063sed 's/^/| /' conftest.$ac_ext >&5 2064 2065 ac_retval=1 2066fi 2067 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2068 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2069 # interfere with the next link command; also delete a directory that is 2070 # left behind by Apple's compiler. We do this before executing the actions. 2071 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2072 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2073 as_fn_set_status $ac_retval 2074 2075} # ac_fn_cxx_try_link 2076 2077# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2078# ------------------------------------------------------- 2079# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2080# the include files in INCLUDES and setting the cache variable VAR 2081# accordingly. 2082ac_fn_c_check_header_mongrel () 2083{ 2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2085 if eval \${$3+:} false; then : 2086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2087$as_echo_n "checking for $2... " >&6; } 2088if eval \${$3+:} false; then : 2089 $as_echo_n "(cached) " >&6 2090fi 2091eval ac_res=\$$3 2092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2093$as_echo "$ac_res" >&6; } 2094else 2095 # Is the header compilable? 2096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2097$as_echo_n "checking $2 usability... " >&6; } 2098cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2099/* end confdefs.h. */ 2100$4 2101#include <$2> 2102_ACEOF 2103if ac_fn_c_try_compile "$LINENO"; then : 2104 ac_header_compiler=yes 2105else 2106 ac_header_compiler=no 2107fi 2108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2110$as_echo "$ac_header_compiler" >&6; } 2111 2112# Is the header present? 2113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2114$as_echo_n "checking $2 presence... " >&6; } 2115cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2116/* end confdefs.h. */ 2117#include <$2> 2118_ACEOF 2119if ac_fn_c_try_cpp "$LINENO"; then : 2120 ac_header_preproc=yes 2121else 2122 ac_header_preproc=no 2123fi 2124rm -f conftest.err conftest.i conftest.$ac_ext 2125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2126$as_echo "$ac_header_preproc" >&6; } 2127 2128# So? What about this header? 2129case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2130 yes:no: ) 2131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2132$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2134$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2135 ;; 2136 no:yes:* ) 2137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2138$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2140$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2142$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2144$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2146$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2147( $as_echo "## -------------------------------------------------------------------------------------- ## 2148## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa&component=Demos ## 2149## -------------------------------------------------------------------------------------- ##" 2150 ) | sed "s/^/$as_me: WARNING: /" >&2 2151 ;; 2152esac 2153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2154$as_echo_n "checking for $2... " >&6; } 2155if eval \${$3+:} false; then : 2156 $as_echo_n "(cached) " >&6 2157else 2158 eval "$3=\$ac_header_compiler" 2159fi 2160eval ac_res=\$$3 2161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2162$as_echo "$ac_res" >&6; } 2163fi 2164 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2165 2166} # ac_fn_c_check_header_mongrel 2167 2168# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2169# --------------------------------------------- 2170# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2171# accordingly. 2172ac_fn_c_check_decl () 2173{ 2174 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2175 as_decl_name=`echo $2|sed 's/ *(.*//'` 2176 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2178$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2179if eval \${$3+:} false; then : 2180 $as_echo_n "(cached) " >&6 2181else 2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2183/* end confdefs.h. */ 2184$4 2185int 2186main () 2187{ 2188#ifndef $as_decl_name 2189#ifdef __cplusplus 2190 (void) $as_decl_use; 2191#else 2192 (void) $as_decl_name; 2193#endif 2194#endif 2195 2196 ; 2197 return 0; 2198} 2199_ACEOF 2200if ac_fn_c_try_compile "$LINENO"; then : 2201 eval "$3=yes" 2202else 2203 eval "$3=no" 2204fi 2205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2206fi 2207eval ac_res=\$$3 2208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2209$as_echo "$ac_res" >&6; } 2210 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2211 2212} # ac_fn_c_check_decl 2213cat >config.log <<_ACEOF 2214This file contains any messages produced by compilers while 2215running configure, to aid debugging if configure makes a mistake. 2216 2217It was created by mesa-demos $as_me 8.4.0, which was 2218generated by GNU Autoconf 2.69. Invocation command line was 2219 2220 $ $0 $@ 2221 2222_ACEOF 2223exec 5>>config.log 2224{ 2225cat <<_ASUNAME 2226## --------- ## 2227## Platform. ## 2228## --------- ## 2229 2230hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2231uname -m = `(uname -m) 2>/dev/null || echo unknown` 2232uname -r = `(uname -r) 2>/dev/null || echo unknown` 2233uname -s = `(uname -s) 2>/dev/null || echo unknown` 2234uname -v = `(uname -v) 2>/dev/null || echo unknown` 2235 2236/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2237/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2238 2239/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2240/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2241/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2242/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2243/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2244/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2245/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2246 2247_ASUNAME 2248 2249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2250for as_dir in $PATH 2251do 2252 IFS=$as_save_IFS 2253 test -z "$as_dir" && as_dir=. 2254 $as_echo "PATH: $as_dir" 2255 done 2256IFS=$as_save_IFS 2257 2258} >&5 2259 2260cat >&5 <<_ACEOF 2261 2262 2263## ----------- ## 2264## Core tests. ## 2265## ----------- ## 2266 2267_ACEOF 2268 2269 2270# Keep a trace of the command line. 2271# Strip out --no-create and --no-recursion so they do not pile up. 2272# Strip out --silent because we don't want to record it for future runs. 2273# Also quote any args containing shell meta-characters. 2274# Make two passes to allow for proper duplicate-argument suppression. 2275ac_configure_args= 2276ac_configure_args0= 2277ac_configure_args1= 2278ac_must_keep_next=false 2279for ac_pass in 1 2 2280do 2281 for ac_arg 2282 do 2283 case $ac_arg in 2284 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2285 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2286 | -silent | --silent | --silen | --sile | --sil) 2287 continue ;; 2288 *\'*) 2289 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2290 esac 2291 case $ac_pass in 2292 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2293 2) 2294 as_fn_append ac_configure_args1 " '$ac_arg'" 2295 if test $ac_must_keep_next = true; then 2296 ac_must_keep_next=false # Got value, back to normal. 2297 else 2298 case $ac_arg in 2299 *=* | --config-cache | -C | -disable-* | --disable-* \ 2300 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2301 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2302 | -with-* | --with-* | -without-* | --without-* | --x) 2303 case "$ac_configure_args0 " in 2304 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2305 esac 2306 ;; 2307 -* ) ac_must_keep_next=true ;; 2308 esac 2309 fi 2310 as_fn_append ac_configure_args " '$ac_arg'" 2311 ;; 2312 esac 2313 done 2314done 2315{ ac_configure_args0=; unset ac_configure_args0;} 2316{ ac_configure_args1=; unset ac_configure_args1;} 2317 2318# When interrupted or exit'd, cleanup temporary files, and complete 2319# config.log. We remove comments because anyway the quotes in there 2320# would cause problems or look ugly. 2321# WARNING: Use '\'' to represent an apostrophe within the trap. 2322# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2323trap 'exit_status=$? 2324 # Save into config.log some information that might help in debugging. 2325 { 2326 echo 2327 2328 $as_echo "## ---------------- ## 2329## Cache variables. ## 2330## ---------------- ##" 2331 echo 2332 # The following way of writing the cache mishandles newlines in values, 2333( 2334 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2335 eval ac_val=\$$ac_var 2336 case $ac_val in #( 2337 *${as_nl}*) 2338 case $ac_var in #( 2339 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2340$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2341 esac 2342 case $ac_var in #( 2343 _ | IFS | as_nl) ;; #( 2344 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2345 *) { eval $ac_var=; unset $ac_var;} ;; 2346 esac ;; 2347 esac 2348 done 2349 (set) 2>&1 | 2350 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2351 *${as_nl}ac_space=\ *) 2352 sed -n \ 2353 "s/'\''/'\''\\\\'\'''\''/g; 2354 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2355 ;; #( 2356 *) 2357 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2358 ;; 2359 esac | 2360 sort 2361) 2362 echo 2363 2364 $as_echo "## ----------------- ## 2365## Output variables. ## 2366## ----------------- ##" 2367 echo 2368 for ac_var in $ac_subst_vars 2369 do 2370 eval ac_val=\$$ac_var 2371 case $ac_val in 2372 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2373 esac 2374 $as_echo "$ac_var='\''$ac_val'\''" 2375 done | sort 2376 echo 2377 2378 if test -n "$ac_subst_files"; then 2379 $as_echo "## ------------------- ## 2380## File substitutions. ## 2381## ------------------- ##" 2382 echo 2383 for ac_var in $ac_subst_files 2384 do 2385 eval ac_val=\$$ac_var 2386 case $ac_val in 2387 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2388 esac 2389 $as_echo "$ac_var='\''$ac_val'\''" 2390 done | sort 2391 echo 2392 fi 2393 2394 if test -s confdefs.h; then 2395 $as_echo "## ----------- ## 2396## confdefs.h. ## 2397## ----------- ##" 2398 echo 2399 cat confdefs.h 2400 echo 2401 fi 2402 test "$ac_signal" != 0 && 2403 $as_echo "$as_me: caught signal $ac_signal" 2404 $as_echo "$as_me: exit $exit_status" 2405 } >&5 2406 rm -f core *.core core.conftest.* && 2407 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2408 exit $exit_status 2409' 0 2410for ac_signal in 1 2 13 15; do 2411 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2412done 2413ac_signal=0 2414 2415# confdefs.h avoids OS command line length limits that DEFS can exceed. 2416rm -f -r conftest* confdefs.h 2417 2418$as_echo "/* confdefs.h */" > confdefs.h 2419 2420# Predefined preprocessor variables. 2421 2422cat >>confdefs.h <<_ACEOF 2423#define PACKAGE_NAME "$PACKAGE_NAME" 2424_ACEOF 2425 2426cat >>confdefs.h <<_ACEOF 2427#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2428_ACEOF 2429 2430cat >>confdefs.h <<_ACEOF 2431#define PACKAGE_VERSION "$PACKAGE_VERSION" 2432_ACEOF 2433 2434cat >>confdefs.h <<_ACEOF 2435#define PACKAGE_STRING "$PACKAGE_STRING" 2436_ACEOF 2437 2438cat >>confdefs.h <<_ACEOF 2439#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2440_ACEOF 2441 2442cat >>confdefs.h <<_ACEOF 2443#define PACKAGE_URL "$PACKAGE_URL" 2444_ACEOF 2445 2446 2447# Let the site file select an alternate cache file if it wants to. 2448# Prefer an explicitly selected file to automatically selected ones. 2449ac_site_file1=NONE 2450ac_site_file2=NONE 2451if test -n "$CONFIG_SITE"; then 2452 # We do not want a PATH search for config.site. 2453 case $CONFIG_SITE in #(( 2454 -*) ac_site_file1=./$CONFIG_SITE;; 2455 */*) ac_site_file1=$CONFIG_SITE;; 2456 *) ac_site_file1=./$CONFIG_SITE;; 2457 esac 2458elif test "x$prefix" != xNONE; then 2459 ac_site_file1=$prefix/share/config.site 2460 ac_site_file2=$prefix/etc/config.site 2461else 2462 ac_site_file1=$ac_default_prefix/share/config.site 2463 ac_site_file2=$ac_default_prefix/etc/config.site 2464fi 2465for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2466do 2467 test "x$ac_site_file" = xNONE && continue 2468 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2469 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2470$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2471 sed 's/^/| /' "$ac_site_file" >&5 2472 . "$ac_site_file" \ 2473 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2474$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2475as_fn_error $? "failed to load site script $ac_site_file 2476See \`config.log' for more details" "$LINENO" 5; } 2477 fi 2478done 2479 2480if test -r "$cache_file"; then 2481 # Some versions of bash will fail to source /dev/null (special files 2482 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2483 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2484 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2485$as_echo "$as_me: loading cache $cache_file" >&6;} 2486 case $cache_file in 2487 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2488 *) . "./$cache_file";; 2489 esac 2490 fi 2491else 2492 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2493$as_echo "$as_me: creating cache $cache_file" >&6;} 2494 >$cache_file 2495fi 2496 2497# Check that the precious variables saved in the cache have kept the same 2498# value. 2499ac_cache_corrupted=false 2500for ac_var in $ac_precious_vars; do 2501 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2502 eval ac_new_set=\$ac_env_${ac_var}_set 2503 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2504 eval ac_new_val=\$ac_env_${ac_var}_value 2505 case $ac_old_set,$ac_new_set in 2506 set,) 2507 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2508$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2509 ac_cache_corrupted=: ;; 2510 ,set) 2511 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2512$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2513 ac_cache_corrupted=: ;; 2514 ,);; 2515 *) 2516 if test "x$ac_old_val" != "x$ac_new_val"; then 2517 # differences in whitespace do not lead to failure. 2518 ac_old_val_w=`echo x $ac_old_val` 2519 ac_new_val_w=`echo x $ac_new_val` 2520 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2521 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2522$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2523 ac_cache_corrupted=: 2524 else 2525 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2526$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2527 eval $ac_var=\$ac_old_val 2528 fi 2529 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2530$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2531 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2532$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2533 fi;; 2534 esac 2535 # Pass precious variables to config.status. 2536 if test "$ac_new_set" = set; then 2537 case $ac_new_val in 2538 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2539 *) ac_arg=$ac_var=$ac_new_val ;; 2540 esac 2541 case " $ac_configure_args " in 2542 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2543 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2544 esac 2545 fi 2546done 2547if $ac_cache_corrupted; then 2548 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2549$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2550 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2551$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2552 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2553fi 2554## -------------------- ## 2555## Main body of script. ## 2556## -------------------- ## 2557 2558ac_ext=c 2559ac_cpp='$CPP $CPPFLAGS' 2560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2562ac_compiler_gnu=$ac_cv_c_compiler_gnu 2563 2564 2565ac_aux_dir= 2566for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2567 if test -f "$ac_dir/install-sh"; then 2568 ac_aux_dir=$ac_dir 2569 ac_install_sh="$ac_aux_dir/install-sh -c" 2570 break 2571 elif test -f "$ac_dir/install.sh"; then 2572 ac_aux_dir=$ac_dir 2573 ac_install_sh="$ac_aux_dir/install.sh -c" 2574 break 2575 elif test -f "$ac_dir/shtool"; then 2576 ac_aux_dir=$ac_dir 2577 ac_install_sh="$ac_aux_dir/shtool install -c" 2578 break 2579 fi 2580done 2581if test -z "$ac_aux_dir"; then 2582 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2583fi 2584 2585# These three variables are undocumented and unsupported, 2586# and are intended to be withdrawn in a future Autoconf release. 2587# They can cause serious problems if a builder's source tree is in a directory 2588# whose full name contains unusual characters. 2589ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2590ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2591ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2592 2593 2594# Make sure we can run config.sub. 2595$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2596 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2597 2598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2599$as_echo_n "checking build system type... " >&6; } 2600if ${ac_cv_build+:} false; then : 2601 $as_echo_n "(cached) " >&6 2602else 2603 ac_build_alias=$build_alias 2604test "x$ac_build_alias" = x && 2605 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2606test "x$ac_build_alias" = x && 2607 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2608ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2609 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2610 2611fi 2612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2613$as_echo "$ac_cv_build" >&6; } 2614case $ac_cv_build in 2615*-*-*) ;; 2616*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2617esac 2618build=$ac_cv_build 2619ac_save_IFS=$IFS; IFS='-' 2620set x $ac_cv_build 2621shift 2622build_cpu=$1 2623build_vendor=$2 2624shift; shift 2625# Remember, the first character of IFS is used to create $*, 2626# except with old shells: 2627build_os=$* 2628IFS=$ac_save_IFS 2629case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2630 2631 2632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2633$as_echo_n "checking host system type... " >&6; } 2634if ${ac_cv_host+:} false; then : 2635 $as_echo_n "(cached) " >&6 2636else 2637 if test "x$host_alias" = x; then 2638 ac_cv_host=$ac_cv_build 2639else 2640 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2641 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2642fi 2643 2644fi 2645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2646$as_echo "$ac_cv_host" >&6; } 2647case $ac_cv_host in 2648*-*-*) ;; 2649*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2650esac 2651host=$ac_cv_host 2652ac_save_IFS=$IFS; IFS='-' 2653set x $ac_cv_host 2654shift 2655host_cpu=$1 2656host_vendor=$2 2657shift; shift 2658# Remember, the first character of IFS is used to create $*, 2659# except with old shells: 2660host_os=$* 2661IFS=$ac_save_IFS 2662case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2663 2664 2665 2666am__api_version='1.15' 2667 2668# Find a good install program. We prefer a C program (faster), 2669# so one script is as good as another. But avoid the broken or 2670# incompatible versions: 2671# SysV /etc/install, /usr/sbin/install 2672# SunOS /usr/etc/install 2673# IRIX /sbin/install 2674# AIX /bin/install 2675# AmigaOS /C/install, which installs bootblocks on floppy discs 2676# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2677# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2678# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2679# OS/2's system install, which has a completely different semantic 2680# ./install, which can be erroneously created by make from ./install.sh. 2681# Reject install programs that cannot install multiple files. 2682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2683$as_echo_n "checking for a BSD-compatible install... " >&6; } 2684if test -z "$INSTALL"; then 2685if ${ac_cv_path_install+:} false; then : 2686 $as_echo_n "(cached) " >&6 2687else 2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2689for as_dir in $PATH 2690do 2691 IFS=$as_save_IFS 2692 test -z "$as_dir" && as_dir=. 2693 # Account for people who put trailing slashes in PATH elements. 2694case $as_dir/ in #(( 2695 ./ | .// | /[cC]/* | \ 2696 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2697 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2698 /usr/ucb/* ) ;; 2699 *) 2700 # OSF1 and SCO ODT 3.0 have their own names for install. 2701 # Don't use installbsd from OSF since it installs stuff as root 2702 # by default. 2703 for ac_prog in ginstall scoinst install; do 2704 for ac_exec_ext in '' $ac_executable_extensions; do 2705 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2706 if test $ac_prog = install && 2707 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2708 # AIX install. It has an incompatible calling convention. 2709 : 2710 elif test $ac_prog = install && 2711 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2712 # program-specific install script used by HP pwplus--don't use. 2713 : 2714 else 2715 rm -rf conftest.one conftest.two conftest.dir 2716 echo one > conftest.one 2717 echo two > conftest.two 2718 mkdir conftest.dir 2719 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2720 test -s conftest.one && test -s conftest.two && 2721 test -s conftest.dir/conftest.one && 2722 test -s conftest.dir/conftest.two 2723 then 2724 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2725 break 3 2726 fi 2727 fi 2728 fi 2729 done 2730 done 2731 ;; 2732esac 2733 2734 done 2735IFS=$as_save_IFS 2736 2737rm -rf conftest.one conftest.two conftest.dir 2738 2739fi 2740 if test "${ac_cv_path_install+set}" = set; then 2741 INSTALL=$ac_cv_path_install 2742 else 2743 # As a last resort, use the slow shell script. Don't cache a 2744 # value for INSTALL within a source directory, because that will 2745 # break other packages using the cache if that directory is 2746 # removed, or if the value is a relative name. 2747 INSTALL=$ac_install_sh 2748 fi 2749fi 2750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2751$as_echo "$INSTALL" >&6; } 2752 2753# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2754# It thinks the first close brace ends the variable substitution. 2755test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2756 2757test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2758 2759test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2760 2761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2762$as_echo_n "checking whether build environment is sane... " >&6; } 2763# Reject unsafe characters in $srcdir or the absolute working directory 2764# name. Accept space and tab only in the latter. 2765am_lf=' 2766' 2767case `pwd` in 2768 *[\\\"\#\$\&\'\`$am_lf]*) 2769 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2770esac 2771case $srcdir in 2772 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2773 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2774esac 2775 2776# Do 'set' in a subshell so we don't clobber the current shell's 2777# arguments. Must try -L first in case configure is actually a 2778# symlink; some systems play weird games with the mod time of symlinks 2779# (eg FreeBSD returns the mod time of the symlink's containing 2780# directory). 2781if ( 2782 am_has_slept=no 2783 for am_try in 1 2; do 2784 echo "timestamp, slept: $am_has_slept" > conftest.file 2785 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2786 if test "$*" = "X"; then 2787 # -L didn't work. 2788 set X `ls -t "$srcdir/configure" conftest.file` 2789 fi 2790 if test "$*" != "X $srcdir/configure conftest.file" \ 2791 && test "$*" != "X conftest.file $srcdir/configure"; then 2792 2793 # If neither matched, then we have a broken ls. This can happen 2794 # if, for instance, CONFIG_SHELL is bash and it inherits a 2795 # broken ls alias from the environment. This has actually 2796 # happened. Such a system could not be considered "sane". 2797 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2798 alias in your environment" "$LINENO" 5 2799 fi 2800 if test "$2" = conftest.file || test $am_try -eq 2; then 2801 break 2802 fi 2803 # Just in case. 2804 sleep 1 2805 am_has_slept=yes 2806 done 2807 test "$2" = conftest.file 2808 ) 2809then 2810 # Ok. 2811 : 2812else 2813 as_fn_error $? "newly created file is older than distributed files! 2814Check your system clock" "$LINENO" 5 2815fi 2816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2817$as_echo "yes" >&6; } 2818# If we didn't sleep, we still need to ensure time stamps of config.status and 2819# generated files are strictly newer. 2820am_sleep_pid= 2821if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2822 ( sleep 1 ) & 2823 am_sleep_pid=$! 2824fi 2825 2826rm -f conftest.file 2827 2828test "$program_prefix" != NONE && 2829 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2830# Use a double $ so make ignores it. 2831test "$program_suffix" != NONE && 2832 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2833# Double any \ or $. 2834# By default was `s,x,x', remove it if useless. 2835ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2836program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2837 2838# Expand $ac_aux_dir to an absolute path. 2839am_aux_dir=`cd "$ac_aux_dir" && pwd` 2840 2841if test x"${MISSING+set}" != xset; then 2842 case $am_aux_dir in 2843 *\ * | *\ *) 2844 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2845 *) 2846 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2847 esac 2848fi 2849# Use eval to expand $SHELL 2850if eval "$MISSING --is-lightweight"; then 2851 am_missing_run="$MISSING " 2852else 2853 am_missing_run= 2854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2855$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2856fi 2857 2858if test x"${install_sh+set}" != xset; then 2859 case $am_aux_dir in 2860 *\ * | *\ *) 2861 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2862 *) 2863 install_sh="\${SHELL} $am_aux_dir/install-sh" 2864 esac 2865fi 2866 2867# Installed binaries are usually stripped using 'strip' when the user 2868# run "make install-strip". However 'strip' might not be the right 2869# tool to use in cross-compilation environments, therefore Automake 2870# will honor the 'STRIP' environment variable to overrule this program. 2871if test "$cross_compiling" != no; then 2872 if test -n "$ac_tool_prefix"; then 2873 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2874set dummy ${ac_tool_prefix}strip; ac_word=$2 2875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2876$as_echo_n "checking for $ac_word... " >&6; } 2877if ${ac_cv_prog_STRIP+:} false; then : 2878 $as_echo_n "(cached) " >&6 2879else 2880 if test -n "$STRIP"; then 2881 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2882else 2883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2884for as_dir in $PATH 2885do 2886 IFS=$as_save_IFS 2887 test -z "$as_dir" && as_dir=. 2888 for ac_exec_ext in '' $ac_executable_extensions; do 2889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2890 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2892 break 2 2893 fi 2894done 2895 done 2896IFS=$as_save_IFS 2897 2898fi 2899fi 2900STRIP=$ac_cv_prog_STRIP 2901if test -n "$STRIP"; then 2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2903$as_echo "$STRIP" >&6; } 2904else 2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2906$as_echo "no" >&6; } 2907fi 2908 2909 2910fi 2911if test -z "$ac_cv_prog_STRIP"; then 2912 ac_ct_STRIP=$STRIP 2913 # Extract the first word of "strip", so it can be a program name with args. 2914set dummy strip; ac_word=$2 2915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2916$as_echo_n "checking for $ac_word... " >&6; } 2917if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2918 $as_echo_n "(cached) " >&6 2919else 2920 if test -n "$ac_ct_STRIP"; then 2921 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2922else 2923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2924for as_dir in $PATH 2925do 2926 IFS=$as_save_IFS 2927 test -z "$as_dir" && as_dir=. 2928 for ac_exec_ext in '' $ac_executable_extensions; do 2929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2930 ac_cv_prog_ac_ct_STRIP="strip" 2931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2932 break 2 2933 fi 2934done 2935 done 2936IFS=$as_save_IFS 2937 2938fi 2939fi 2940ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2941if test -n "$ac_ct_STRIP"; then 2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2943$as_echo "$ac_ct_STRIP" >&6; } 2944else 2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2946$as_echo "no" >&6; } 2947fi 2948 2949 if test "x$ac_ct_STRIP" = x; then 2950 STRIP=":" 2951 else 2952 case $cross_compiling:$ac_tool_warned in 2953yes:) 2954{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2955$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2956ac_tool_warned=yes ;; 2957esac 2958 STRIP=$ac_ct_STRIP 2959 fi 2960else 2961 STRIP="$ac_cv_prog_STRIP" 2962fi 2963 2964fi 2965INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2966 2967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2968$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2969if test -z "$MKDIR_P"; then 2970 if ${ac_cv_path_mkdir+:} false; then : 2971 $as_echo_n "(cached) " >&6 2972else 2973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2974for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2975do 2976 IFS=$as_save_IFS 2977 test -z "$as_dir" && as_dir=. 2978 for ac_prog in mkdir gmkdir; do 2979 for ac_exec_ext in '' $ac_executable_extensions; do 2980 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2981 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2982 'mkdir (GNU coreutils) '* | \ 2983 'mkdir (coreutils) '* | \ 2984 'mkdir (fileutils) '4.1*) 2985 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2986 break 3;; 2987 esac 2988 done 2989 done 2990 done 2991IFS=$as_save_IFS 2992 2993fi 2994 2995 test -d ./--version && rmdir ./--version 2996 if test "${ac_cv_path_mkdir+set}" = set; then 2997 MKDIR_P="$ac_cv_path_mkdir -p" 2998 else 2999 # As a last resort, use the slow shell script. Don't cache a 3000 # value for MKDIR_P within a source directory, because that will 3001 # break other packages using the cache if that directory is 3002 # removed, or if the value is a relative name. 3003 MKDIR_P="$ac_install_sh -d" 3004 fi 3005fi 3006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3007$as_echo "$MKDIR_P" >&6; } 3008 3009for ac_prog in gawk mawk nawk awk 3010do 3011 # Extract the first word of "$ac_prog", so it can be a program name with args. 3012set dummy $ac_prog; ac_word=$2 3013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3014$as_echo_n "checking for $ac_word... " >&6; } 3015if ${ac_cv_prog_AWK+:} false; then : 3016 $as_echo_n "(cached) " >&6 3017else 3018 if test -n "$AWK"; then 3019 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3020else 3021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3022for as_dir in $PATH 3023do 3024 IFS=$as_save_IFS 3025 test -z "$as_dir" && as_dir=. 3026 for ac_exec_ext in '' $ac_executable_extensions; do 3027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3028 ac_cv_prog_AWK="$ac_prog" 3029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3030 break 2 3031 fi 3032done 3033 done 3034IFS=$as_save_IFS 3035 3036fi 3037fi 3038AWK=$ac_cv_prog_AWK 3039if test -n "$AWK"; then 3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3041$as_echo "$AWK" >&6; } 3042else 3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3044$as_echo "no" >&6; } 3045fi 3046 3047 3048 test -n "$AWK" && break 3049done 3050 3051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3052$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3053set x ${MAKE-make} 3054ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3055if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3056 $as_echo_n "(cached) " >&6 3057else 3058 cat >conftest.make <<\_ACEOF 3059SHELL = /bin/sh 3060all: 3061 @echo '@@@%%%=$(MAKE)=@@@%%%' 3062_ACEOF 3063# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3064case `${MAKE-make} -f conftest.make 2>/dev/null` in 3065 *@@@%%%=?*=@@@%%%*) 3066 eval ac_cv_prog_make_${ac_make}_set=yes;; 3067 *) 3068 eval ac_cv_prog_make_${ac_make}_set=no;; 3069esac 3070rm -f conftest.make 3071fi 3072if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3074$as_echo "yes" >&6; } 3075 SET_MAKE= 3076else 3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3078$as_echo "no" >&6; } 3079 SET_MAKE="MAKE=${MAKE-make}" 3080fi 3081 3082rm -rf .tst 2>/dev/null 3083mkdir .tst 2>/dev/null 3084if test -d .tst; then 3085 am__leading_dot=. 3086else 3087 am__leading_dot=_ 3088fi 3089rmdir .tst 2>/dev/null 3090 3091# Check whether --enable-silent-rules was given. 3092if test "${enable_silent_rules+set}" = set; then : 3093 enableval=$enable_silent_rules; 3094fi 3095 3096case $enable_silent_rules in # ((( 3097 yes) AM_DEFAULT_VERBOSITY=0;; 3098 no) AM_DEFAULT_VERBOSITY=1;; 3099 *) AM_DEFAULT_VERBOSITY=1;; 3100esac 3101am_make=${MAKE-make} 3102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3103$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3104if ${am_cv_make_support_nested_variables+:} false; then : 3105 $as_echo_n "(cached) " >&6 3106else 3107 if $as_echo 'TRUE=$(BAR$(V)) 3108BAR0=false 3109BAR1=true 3110V=1 3111am__doit: 3112 @$(TRUE) 3113.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3114 am_cv_make_support_nested_variables=yes 3115else 3116 am_cv_make_support_nested_variables=no 3117fi 3118fi 3119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3120$as_echo "$am_cv_make_support_nested_variables" >&6; } 3121if test $am_cv_make_support_nested_variables = yes; then 3122 AM_V='$(V)' 3123 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3124else 3125 AM_V=$AM_DEFAULT_VERBOSITY 3126 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3127fi 3128AM_BACKSLASH='\' 3129 3130if test "`cd $srcdir && pwd`" != "`pwd`"; then 3131 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3132 # is not polluted with repeated "-I." 3133 am__isrc=' -I$(srcdir)' 3134 # test to see if srcdir already configured 3135 if test -f $srcdir/config.status; then 3136 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3137 fi 3138fi 3139 3140# test whether we have cygpath 3141if test -z "$CYGPATH_W"; then 3142 if (cygpath --version) >/dev/null 2>/dev/null; then 3143 CYGPATH_W='cygpath -w' 3144 else 3145 CYGPATH_W=echo 3146 fi 3147fi 3148 3149 3150# Define the identity of the package. 3151 PACKAGE='mesa-demos' 3152 VERSION='8.4.0' 3153 3154 3155cat >>confdefs.h <<_ACEOF 3156#define PACKAGE "$PACKAGE" 3157_ACEOF 3158 3159 3160cat >>confdefs.h <<_ACEOF 3161#define VERSION "$VERSION" 3162_ACEOF 3163 3164# Some tools Automake needs. 3165 3166ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3167 3168 3169AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3170 3171 3172AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3173 3174 3175AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3176 3177 3178MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3179 3180# For better backward compatibility. To be removed once Automake 1.9.x 3181# dies out for good. For more background, see: 3182# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3183# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3184mkdir_p='$(MKDIR_P)' 3185 3186# We need awk for the "check" target (and possibly the TAP driver). The 3187# system "awk" is bad on some platforms. 3188# Always define AMTAR for backward compatibility. Yes, it's still used 3189# in the wild :-( We should find a proper way to deprecate it ... 3190AMTAR='$${TAR-tar}' 3191 3192 3193# We'll loop over all known methods to create a tar archive until one works. 3194_am_tools='gnutar pax cpio none' 3195 3196am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3197 3198 3199 3200 3201 3202 3203# POSIX will say in a future version that running "rm -f" with no argument 3204# is OK; and we want to be able to make that assumption in our Makefile 3205# recipes. So use an aggressive probe to check that the usage we want is 3206# actually supported "in the wild" to an acceptable degree. 3207# See automake bug#10828. 3208# To make any issue more visible, cause the running configure to be aborted 3209# by default if the 'rm' program in use doesn't match our expectations; the 3210# user can still override this though. 3211if rm -f && rm -fr && rm -rf; then : OK; else 3212 cat >&2 <<'END' 3213Oops! 3214 3215Your 'rm' program seems unable to run without file operands specified 3216on the command line, even when the '-f' option is present. This is contrary 3217to the behaviour of most rm programs out there, and not conforming with 3218the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3219 3220Please tell bug-automake@gnu.org about your system, including the value 3221of your $PATH and any error possibly output before this message. This 3222can help us improve future automake versions. 3223 3224END 3225 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3226 echo 'Configuration will proceed anyway, since you have set the' >&2 3227 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3228 echo >&2 3229 else 3230 cat >&2 <<'END' 3231Aborting the configuration process, to ensure you take notice of the issue. 3232 3233You can download and install GNU coreutils to get an 'rm' implementation 3234that behaves properly: <http://www.gnu.org/software/coreutils/>. 3235 3236If you want to complete the configuration process using your problematic 3237'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3238to "yes", and re-run configure. 3239 3240END 3241 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3242 fi 3243fi 3244 3245 3246DEPDIR="${am__leading_dot}deps" 3247 3248ac_config_commands="$ac_config_commands depfiles" 3249 3250 3251am_make=${MAKE-make} 3252cat > confinc << 'END' 3253am__doit: 3254 @echo this is the am__doit target 3255.PHONY: am__doit 3256END 3257# If we don't find an include directive, just comment out the code. 3258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3259$as_echo_n "checking for style of include used by $am_make... " >&6; } 3260am__include="#" 3261am__quote= 3262_am_result=none 3263# First try GNU make style include. 3264echo "include confinc" > confmf 3265# Ignore all kinds of additional output from 'make'. 3266case `$am_make -s -f confmf 2> /dev/null` in #( 3267*the\ am__doit\ target*) 3268 am__include=include 3269 am__quote= 3270 _am_result=GNU 3271 ;; 3272esac 3273# Now try BSD make style include. 3274if test "$am__include" = "#"; then 3275 echo '.include "confinc"' > confmf 3276 case `$am_make -s -f confmf 2> /dev/null` in #( 3277 *the\ am__doit\ target*) 3278 am__include=.include 3279 am__quote="\"" 3280 _am_result=BSD 3281 ;; 3282 esac 3283fi 3284 3285 3286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3287$as_echo "$_am_result" >&6; } 3288rm -f confinc confmf 3289 3290# Check whether --enable-dependency-tracking was given. 3291if test "${enable_dependency_tracking+set}" = set; then : 3292 enableval=$enable_dependency_tracking; 3293fi 3294 3295if test "x$enable_dependency_tracking" != xno; then 3296 am_depcomp="$ac_aux_dir/depcomp" 3297 AMDEPBACKSLASH='\' 3298 am__nodep='_no' 3299fi 3300 if test "x$enable_dependency_tracking" != xno; then 3301 AMDEP_TRUE= 3302 AMDEP_FALSE='#' 3303else 3304 AMDEP_TRUE='#' 3305 AMDEP_FALSE= 3306fi 3307 3308 3309ac_ext=c 3310ac_cpp='$CPP $CPPFLAGS' 3311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3313ac_compiler_gnu=$ac_cv_c_compiler_gnu 3314if test -n "$ac_tool_prefix"; then 3315 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3316set dummy ${ac_tool_prefix}gcc; ac_word=$2 3317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3318$as_echo_n "checking for $ac_word... " >&6; } 3319if ${ac_cv_prog_CC+:} false; then : 3320 $as_echo_n "(cached) " >&6 3321else 3322 if test -n "$CC"; then 3323 ac_cv_prog_CC="$CC" # Let the user override the test. 3324else 3325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3326for as_dir in $PATH 3327do 3328 IFS=$as_save_IFS 3329 test -z "$as_dir" && as_dir=. 3330 for ac_exec_ext in '' $ac_executable_extensions; do 3331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3332 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3334 break 2 3335 fi 3336done 3337 done 3338IFS=$as_save_IFS 3339 3340fi 3341fi 3342CC=$ac_cv_prog_CC 3343if test -n "$CC"; then 3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3345$as_echo "$CC" >&6; } 3346else 3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3348$as_echo "no" >&6; } 3349fi 3350 3351 3352fi 3353if test -z "$ac_cv_prog_CC"; then 3354 ac_ct_CC=$CC 3355 # Extract the first word of "gcc", so it can be a program name with args. 3356set dummy gcc; ac_word=$2 3357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3358$as_echo_n "checking for $ac_word... " >&6; } 3359if ${ac_cv_prog_ac_ct_CC+:} false; then : 3360 $as_echo_n "(cached) " >&6 3361else 3362 if test -n "$ac_ct_CC"; then 3363 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3364else 3365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3366for as_dir in $PATH 3367do 3368 IFS=$as_save_IFS 3369 test -z "$as_dir" && as_dir=. 3370 for ac_exec_ext in '' $ac_executable_extensions; do 3371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3372 ac_cv_prog_ac_ct_CC="gcc" 3373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3374 break 2 3375 fi 3376done 3377 done 3378IFS=$as_save_IFS 3379 3380fi 3381fi 3382ac_ct_CC=$ac_cv_prog_ac_ct_CC 3383if test -n "$ac_ct_CC"; then 3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3385$as_echo "$ac_ct_CC" >&6; } 3386else 3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3388$as_echo "no" >&6; } 3389fi 3390 3391 if test "x$ac_ct_CC" = x; then 3392 CC="" 3393 else 3394 case $cross_compiling:$ac_tool_warned in 3395yes:) 3396{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3397$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3398ac_tool_warned=yes ;; 3399esac 3400 CC=$ac_ct_CC 3401 fi 3402else 3403 CC="$ac_cv_prog_CC" 3404fi 3405 3406if test -z "$CC"; then 3407 if test -n "$ac_tool_prefix"; then 3408 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3409set dummy ${ac_tool_prefix}cc; ac_word=$2 3410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3411$as_echo_n "checking for $ac_word... " >&6; } 3412if ${ac_cv_prog_CC+:} false; then : 3413 $as_echo_n "(cached) " >&6 3414else 3415 if test -n "$CC"; then 3416 ac_cv_prog_CC="$CC" # Let the user override the test. 3417else 3418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3419for as_dir in $PATH 3420do 3421 IFS=$as_save_IFS 3422 test -z "$as_dir" && as_dir=. 3423 for ac_exec_ext in '' $ac_executable_extensions; do 3424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3425 ac_cv_prog_CC="${ac_tool_prefix}cc" 3426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3427 break 2 3428 fi 3429done 3430 done 3431IFS=$as_save_IFS 3432 3433fi 3434fi 3435CC=$ac_cv_prog_CC 3436if test -n "$CC"; then 3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3438$as_echo "$CC" >&6; } 3439else 3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3441$as_echo "no" >&6; } 3442fi 3443 3444 3445 fi 3446fi 3447if test -z "$CC"; then 3448 # Extract the first word of "cc", so it can be a program name with args. 3449set dummy cc; ac_word=$2 3450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3451$as_echo_n "checking for $ac_word... " >&6; } 3452if ${ac_cv_prog_CC+:} false; then : 3453 $as_echo_n "(cached) " >&6 3454else 3455 if test -n "$CC"; then 3456 ac_cv_prog_CC="$CC" # Let the user override the test. 3457else 3458 ac_prog_rejected=no 3459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3460for as_dir in $PATH 3461do 3462 IFS=$as_save_IFS 3463 test -z "$as_dir" && as_dir=. 3464 for ac_exec_ext in '' $ac_executable_extensions; do 3465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3466 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3467 ac_prog_rejected=yes 3468 continue 3469 fi 3470 ac_cv_prog_CC="cc" 3471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3472 break 2 3473 fi 3474done 3475 done 3476IFS=$as_save_IFS 3477 3478if test $ac_prog_rejected = yes; then 3479 # We found a bogon in the path, so make sure we never use it. 3480 set dummy $ac_cv_prog_CC 3481 shift 3482 if test $# != 0; then 3483 # We chose a different compiler from the bogus one. 3484 # However, it has the same basename, so the bogon will be chosen 3485 # first if we set CC to just the basename; use the full file name. 3486 shift 3487 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3488 fi 3489fi 3490fi 3491fi 3492CC=$ac_cv_prog_CC 3493if test -n "$CC"; then 3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3495$as_echo "$CC" >&6; } 3496else 3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3498$as_echo "no" >&6; } 3499fi 3500 3501 3502fi 3503if test -z "$CC"; then 3504 if test -n "$ac_tool_prefix"; then 3505 for ac_prog in cl.exe 3506 do 3507 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3508set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3510$as_echo_n "checking for $ac_word... " >&6; } 3511if ${ac_cv_prog_CC+:} false; then : 3512 $as_echo_n "(cached) " >&6 3513else 3514 if test -n "$CC"; then 3515 ac_cv_prog_CC="$CC" # Let the user override the test. 3516else 3517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3518for as_dir in $PATH 3519do 3520 IFS=$as_save_IFS 3521 test -z "$as_dir" && as_dir=. 3522 for ac_exec_ext in '' $ac_executable_extensions; do 3523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3524 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3526 break 2 3527 fi 3528done 3529 done 3530IFS=$as_save_IFS 3531 3532fi 3533fi 3534CC=$ac_cv_prog_CC 3535if test -n "$CC"; then 3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3537$as_echo "$CC" >&6; } 3538else 3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3540$as_echo "no" >&6; } 3541fi 3542 3543 3544 test -n "$CC" && break 3545 done 3546fi 3547if test -z "$CC"; then 3548 ac_ct_CC=$CC 3549 for ac_prog in cl.exe 3550do 3551 # Extract the first word of "$ac_prog", so it can be a program name with args. 3552set dummy $ac_prog; ac_word=$2 3553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3554$as_echo_n "checking for $ac_word... " >&6; } 3555if ${ac_cv_prog_ac_ct_CC+:} false; then : 3556 $as_echo_n "(cached) " >&6 3557else 3558 if test -n "$ac_ct_CC"; then 3559 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3560else 3561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3562for as_dir in $PATH 3563do 3564 IFS=$as_save_IFS 3565 test -z "$as_dir" && as_dir=. 3566 for ac_exec_ext in '' $ac_executable_extensions; do 3567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3568 ac_cv_prog_ac_ct_CC="$ac_prog" 3569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3570 break 2 3571 fi 3572done 3573 done 3574IFS=$as_save_IFS 3575 3576fi 3577fi 3578ac_ct_CC=$ac_cv_prog_ac_ct_CC 3579if test -n "$ac_ct_CC"; then 3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3581$as_echo "$ac_ct_CC" >&6; } 3582else 3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3584$as_echo "no" >&6; } 3585fi 3586 3587 3588 test -n "$ac_ct_CC" && break 3589done 3590 3591 if test "x$ac_ct_CC" = x; then 3592 CC="" 3593 else 3594 case $cross_compiling:$ac_tool_warned in 3595yes:) 3596{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3597$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3598ac_tool_warned=yes ;; 3599esac 3600 CC=$ac_ct_CC 3601 fi 3602fi 3603 3604fi 3605 3606 3607test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3609as_fn_error $? "no acceptable C compiler found in \$PATH 3610See \`config.log' for more details" "$LINENO" 5; } 3611 3612# Provide some information about the compiler. 3613$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3614set X $ac_compile 3615ac_compiler=$2 3616for ac_option in --version -v -V -qversion; do 3617 { { ac_try="$ac_compiler $ac_option >&5" 3618case "(($ac_try" in 3619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3620 *) ac_try_echo=$ac_try;; 3621esac 3622eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3623$as_echo "$ac_try_echo"; } >&5 3624 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3625 ac_status=$? 3626 if test -s conftest.err; then 3627 sed '10a\ 3628... rest of stderr output deleted ... 3629 10q' conftest.err >conftest.er1 3630 cat conftest.er1 >&5 3631 fi 3632 rm -f conftest.er1 conftest.err 3633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3634 test $ac_status = 0; } 3635done 3636 3637cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3638/* end confdefs.h. */ 3639 3640int 3641main () 3642{ 3643 3644 ; 3645 return 0; 3646} 3647_ACEOF 3648ac_clean_files_save=$ac_clean_files 3649ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3650# Try to create an executable without -o first, disregard a.out. 3651# It will help us diagnose broken compilers, and finding out an intuition 3652# of exeext. 3653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3654$as_echo_n "checking whether the C compiler works... " >&6; } 3655ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3656 3657# The possible output files: 3658ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3659 3660ac_rmfiles= 3661for ac_file in $ac_files 3662do 3663 case $ac_file in 3664 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3665 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3666 esac 3667done 3668rm -f $ac_rmfiles 3669 3670if { { ac_try="$ac_link_default" 3671case "(($ac_try" in 3672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3673 *) ac_try_echo=$ac_try;; 3674esac 3675eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3676$as_echo "$ac_try_echo"; } >&5 3677 (eval "$ac_link_default") 2>&5 3678 ac_status=$? 3679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3680 test $ac_status = 0; }; then : 3681 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3682# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3683# in a Makefile. We should not override ac_cv_exeext if it was cached, 3684# so that the user can short-circuit this test for compilers unknown to 3685# Autoconf. 3686for ac_file in $ac_files '' 3687do 3688 test -f "$ac_file" || continue 3689 case $ac_file in 3690 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3691 ;; 3692 [ab].out ) 3693 # We found the default executable, but exeext='' is most 3694 # certainly right. 3695 break;; 3696 *.* ) 3697 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3698 then :; else 3699 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3700 fi 3701 # We set ac_cv_exeext here because the later test for it is not 3702 # safe: cross compilers may not add the suffix if given an `-o' 3703 # argument, so we may need to know it at that point already. 3704 # Even if this section looks crufty: it has the advantage of 3705 # actually working. 3706 break;; 3707 * ) 3708 break;; 3709 esac 3710done 3711test "$ac_cv_exeext" = no && ac_cv_exeext= 3712 3713else 3714 ac_file='' 3715fi 3716if test -z "$ac_file"; then : 3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3718$as_echo "no" >&6; } 3719$as_echo "$as_me: failed program was:" >&5 3720sed 's/^/| /' conftest.$ac_ext >&5 3721 3722{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3723$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3724as_fn_error 77 "C compiler cannot create executables 3725See \`config.log' for more details" "$LINENO" 5; } 3726else 3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3728$as_echo "yes" >&6; } 3729fi 3730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3731$as_echo_n "checking for C compiler default output file name... " >&6; } 3732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3733$as_echo "$ac_file" >&6; } 3734ac_exeext=$ac_cv_exeext 3735 3736rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3737ac_clean_files=$ac_clean_files_save 3738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3739$as_echo_n "checking for suffix of executables... " >&6; } 3740if { { ac_try="$ac_link" 3741case "(($ac_try" in 3742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3743 *) ac_try_echo=$ac_try;; 3744esac 3745eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3746$as_echo "$ac_try_echo"; } >&5 3747 (eval "$ac_link") 2>&5 3748 ac_status=$? 3749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3750 test $ac_status = 0; }; then : 3751 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3752# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3753# work properly (i.e., refer to `conftest.exe'), while it won't with 3754# `rm'. 3755for ac_file in conftest.exe conftest conftest.*; do 3756 test -f "$ac_file" || continue 3757 case $ac_file in 3758 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3759 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3760 break;; 3761 * ) break;; 3762 esac 3763done 3764else 3765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3766$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3767as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3768See \`config.log' for more details" "$LINENO" 5; } 3769fi 3770rm -f conftest conftest$ac_cv_exeext 3771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3772$as_echo "$ac_cv_exeext" >&6; } 3773 3774rm -f conftest.$ac_ext 3775EXEEXT=$ac_cv_exeext 3776ac_exeext=$EXEEXT 3777cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3778/* end confdefs.h. */ 3779#include <stdio.h> 3780int 3781main () 3782{ 3783FILE *f = fopen ("conftest.out", "w"); 3784 return ferror (f) || fclose (f) != 0; 3785 3786 ; 3787 return 0; 3788} 3789_ACEOF 3790ac_clean_files="$ac_clean_files conftest.out" 3791# Check that the compiler produces executables we can run. If not, either 3792# the compiler is broken, or we cross compile. 3793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3794$as_echo_n "checking whether we are cross compiling... " >&6; } 3795if test "$cross_compiling" != yes; then 3796 { { ac_try="$ac_link" 3797case "(($ac_try" in 3798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3799 *) ac_try_echo=$ac_try;; 3800esac 3801eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3802$as_echo "$ac_try_echo"; } >&5 3803 (eval "$ac_link") 2>&5 3804 ac_status=$? 3805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3806 test $ac_status = 0; } 3807 if { ac_try='./conftest$ac_cv_exeext' 3808 { { case "(($ac_try" in 3809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3810 *) ac_try_echo=$ac_try;; 3811esac 3812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3813$as_echo "$ac_try_echo"; } >&5 3814 (eval "$ac_try") 2>&5 3815 ac_status=$? 3816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3817 test $ac_status = 0; }; }; then 3818 cross_compiling=no 3819 else 3820 if test "$cross_compiling" = maybe; then 3821 cross_compiling=yes 3822 else 3823 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3824$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3825as_fn_error $? "cannot run C compiled programs. 3826If you meant to cross compile, use \`--host'. 3827See \`config.log' for more details" "$LINENO" 5; } 3828 fi 3829 fi 3830fi 3831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3832$as_echo "$cross_compiling" >&6; } 3833 3834rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3835ac_clean_files=$ac_clean_files_save 3836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3837$as_echo_n "checking for suffix of object files... " >&6; } 3838if ${ac_cv_objext+:} false; then : 3839 $as_echo_n "(cached) " >&6 3840else 3841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3842/* end confdefs.h. */ 3843 3844int 3845main () 3846{ 3847 3848 ; 3849 return 0; 3850} 3851_ACEOF 3852rm -f conftest.o conftest.obj 3853if { { ac_try="$ac_compile" 3854case "(($ac_try" in 3855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3856 *) ac_try_echo=$ac_try;; 3857esac 3858eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3859$as_echo "$ac_try_echo"; } >&5 3860 (eval "$ac_compile") 2>&5 3861 ac_status=$? 3862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3863 test $ac_status = 0; }; then : 3864 for ac_file in conftest.o conftest.obj conftest.*; do 3865 test -f "$ac_file" || continue; 3866 case $ac_file in 3867 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3868 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3869 break;; 3870 esac 3871done 3872else 3873 $as_echo "$as_me: failed program was:" >&5 3874sed 's/^/| /' conftest.$ac_ext >&5 3875 3876{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3877$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3878as_fn_error $? "cannot compute suffix of object files: cannot compile 3879See \`config.log' for more details" "$LINENO" 5; } 3880fi 3881rm -f conftest.$ac_cv_objext conftest.$ac_ext 3882fi 3883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3884$as_echo "$ac_cv_objext" >&6; } 3885OBJEXT=$ac_cv_objext 3886ac_objext=$OBJEXT 3887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3888$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3889if ${ac_cv_c_compiler_gnu+:} false; then : 3890 $as_echo_n "(cached) " >&6 3891else 3892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3893/* end confdefs.h. */ 3894 3895int 3896main () 3897{ 3898#ifndef __GNUC__ 3899 choke me 3900#endif 3901 3902 ; 3903 return 0; 3904} 3905_ACEOF 3906if ac_fn_c_try_compile "$LINENO"; then : 3907 ac_compiler_gnu=yes 3908else 3909 ac_compiler_gnu=no 3910fi 3911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3912ac_cv_c_compiler_gnu=$ac_compiler_gnu 3913 3914fi 3915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3916$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3917if test $ac_compiler_gnu = yes; then 3918 GCC=yes 3919else 3920 GCC= 3921fi 3922ac_test_CFLAGS=${CFLAGS+set} 3923ac_save_CFLAGS=$CFLAGS 3924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3925$as_echo_n "checking whether $CC accepts -g... " >&6; } 3926if ${ac_cv_prog_cc_g+:} false; then : 3927 $as_echo_n "(cached) " >&6 3928else 3929 ac_save_c_werror_flag=$ac_c_werror_flag 3930 ac_c_werror_flag=yes 3931 ac_cv_prog_cc_g=no 3932 CFLAGS="-g" 3933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3934/* end confdefs.h. */ 3935 3936int 3937main () 3938{ 3939 3940 ; 3941 return 0; 3942} 3943_ACEOF 3944if ac_fn_c_try_compile "$LINENO"; then : 3945 ac_cv_prog_cc_g=yes 3946else 3947 CFLAGS="" 3948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3949/* end confdefs.h. */ 3950 3951int 3952main () 3953{ 3954 3955 ; 3956 return 0; 3957} 3958_ACEOF 3959if ac_fn_c_try_compile "$LINENO"; then : 3960 3961else 3962 ac_c_werror_flag=$ac_save_c_werror_flag 3963 CFLAGS="-g" 3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3965/* end confdefs.h. */ 3966 3967int 3968main () 3969{ 3970 3971 ; 3972 return 0; 3973} 3974_ACEOF 3975if ac_fn_c_try_compile "$LINENO"; then : 3976 ac_cv_prog_cc_g=yes 3977fi 3978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3979fi 3980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3981fi 3982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3983 ac_c_werror_flag=$ac_save_c_werror_flag 3984fi 3985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3986$as_echo "$ac_cv_prog_cc_g" >&6; } 3987if test "$ac_test_CFLAGS" = set; then 3988 CFLAGS=$ac_save_CFLAGS 3989elif test $ac_cv_prog_cc_g = yes; then 3990 if test "$GCC" = yes; then 3991 CFLAGS="-g -O2" 3992 else 3993 CFLAGS="-g" 3994 fi 3995else 3996 if test "$GCC" = yes; then 3997 CFLAGS="-O2" 3998 else 3999 CFLAGS= 4000 fi 4001fi 4002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4003$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4004if ${ac_cv_prog_cc_c89+:} false; then : 4005 $as_echo_n "(cached) " >&6 4006else 4007 ac_cv_prog_cc_c89=no 4008ac_save_CC=$CC 4009cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4010/* end confdefs.h. */ 4011#include <stdarg.h> 4012#include <stdio.h> 4013struct stat; 4014/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4015struct buf { int x; }; 4016FILE * (*rcsopen) (struct buf *, struct stat *, int); 4017static char *e (p, i) 4018 char **p; 4019 int i; 4020{ 4021 return p[i]; 4022} 4023static char *f (char * (*g) (char **, int), char **p, ...) 4024{ 4025 char *s; 4026 va_list v; 4027 va_start (v,p); 4028 s = g (p, va_arg (v,int)); 4029 va_end (v); 4030 return s; 4031} 4032 4033/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4034 function prototypes and stuff, but not '\xHH' hex character constants. 4035 These don't provoke an error unfortunately, instead are silently treated 4036 as 'x'. The following induces an error, until -std is added to get 4037 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4038 array size at least. It's necessary to write '\x00'==0 to get something 4039 that's true only with -std. */ 4040int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4041 4042/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4043 inside strings and character constants. */ 4044#define FOO(x) 'x' 4045int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4046 4047int test (int i, double x); 4048struct s1 {int (*f) (int a);}; 4049struct s2 {int (*f) (double a);}; 4050int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4051int argc; 4052char **argv; 4053int 4054main () 4055{ 4056return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4057 ; 4058 return 0; 4059} 4060_ACEOF 4061for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4062 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4063do 4064 CC="$ac_save_CC $ac_arg" 4065 if ac_fn_c_try_compile "$LINENO"; then : 4066 ac_cv_prog_cc_c89=$ac_arg 4067fi 4068rm -f core conftest.err conftest.$ac_objext 4069 test "x$ac_cv_prog_cc_c89" != "xno" && break 4070done 4071rm -f conftest.$ac_ext 4072CC=$ac_save_CC 4073 4074fi 4075# AC_CACHE_VAL 4076case "x$ac_cv_prog_cc_c89" in 4077 x) 4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4079$as_echo "none needed" >&6; } ;; 4080 xno) 4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4082$as_echo "unsupported" >&6; } ;; 4083 *) 4084 CC="$CC $ac_cv_prog_cc_c89" 4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4086$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4087esac 4088if test "x$ac_cv_prog_cc_c89" != xno; then : 4089 4090fi 4091 4092ac_ext=c 4093ac_cpp='$CPP $CPPFLAGS' 4094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4096ac_compiler_gnu=$ac_cv_c_compiler_gnu 4097 4098ac_ext=c 4099ac_cpp='$CPP $CPPFLAGS' 4100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4102ac_compiler_gnu=$ac_cv_c_compiler_gnu 4103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4104$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4105if ${am_cv_prog_cc_c_o+:} false; then : 4106 $as_echo_n "(cached) " >&6 4107else 4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4109/* end confdefs.h. */ 4110 4111int 4112main () 4113{ 4114 4115 ; 4116 return 0; 4117} 4118_ACEOF 4119 # Make sure it works both with $CC and with simple cc. 4120 # Following AC_PROG_CC_C_O, we do the test twice because some 4121 # compilers refuse to overwrite an existing .o file with -o, 4122 # though they will create one. 4123 am_cv_prog_cc_c_o=yes 4124 for am_i in 1 2; do 4125 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4126 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4127 ac_status=$? 4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4129 (exit $ac_status); } \ 4130 && test -f conftest2.$ac_objext; then 4131 : OK 4132 else 4133 am_cv_prog_cc_c_o=no 4134 break 4135 fi 4136 done 4137 rm -f core conftest* 4138 unset am_i 4139fi 4140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4141$as_echo "$am_cv_prog_cc_c_o" >&6; } 4142if test "$am_cv_prog_cc_c_o" != yes; then 4143 # Losing compiler, so override with the script. 4144 # FIXME: It is wrong to rewrite CC. 4145 # But if we don't then we get into trouble of one sort or another. 4146 # A longer-term fix would be to have automake use am__CC in this case, 4147 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4148 CC="$am_aux_dir/compile $CC" 4149fi 4150ac_ext=c 4151ac_cpp='$CPP $CPPFLAGS' 4152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4154ac_compiler_gnu=$ac_cv_c_compiler_gnu 4155 4156 4157depcc="$CC" am_compiler_list= 4158 4159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4160$as_echo_n "checking dependency style of $depcc... " >&6; } 4161if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4162 $as_echo_n "(cached) " >&6 4163else 4164 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4165 # We make a subdir and do the tests there. Otherwise we can end up 4166 # making bogus files that we don't know about and never remove. For 4167 # instance it was reported that on HP-UX the gcc test will end up 4168 # making a dummy file named 'D' -- because '-MD' means "put the output 4169 # in D". 4170 rm -rf conftest.dir 4171 mkdir conftest.dir 4172 # Copy depcomp to subdir because otherwise we won't find it if we're 4173 # using a relative directory. 4174 cp "$am_depcomp" conftest.dir 4175 cd conftest.dir 4176 # We will build objects and dependencies in a subdirectory because 4177 # it helps to detect inapplicable dependency modes. For instance 4178 # both Tru64's cc and ICC support -MD to output dependencies as a 4179 # side effect of compilation, but ICC will put the dependencies in 4180 # the current directory while Tru64 will put them in the object 4181 # directory. 4182 mkdir sub 4183 4184 am_cv_CC_dependencies_compiler_type=none 4185 if test "$am_compiler_list" = ""; then 4186 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4187 fi 4188 am__universal=false 4189 case " $depcc " in #( 4190 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4191 esac 4192 4193 for depmode in $am_compiler_list; do 4194 # Setup a source with many dependencies, because some compilers 4195 # like to wrap large dependency lists on column 80 (with \), and 4196 # we should not choose a depcomp mode which is confused by this. 4197 # 4198 # We need to recreate these files for each test, as the compiler may 4199 # overwrite some of them when testing with obscure command lines. 4200 # This happens at least with the AIX C compiler. 4201 : > sub/conftest.c 4202 for i in 1 2 3 4 5 6; do 4203 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4204 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4205 # Solaris 10 /bin/sh. 4206 echo '/* dummy */' > sub/conftst$i.h 4207 done 4208 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4209 4210 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4211 # mode. It turns out that the SunPro C++ compiler does not properly 4212 # handle '-M -o', and we need to detect this. Also, some Intel 4213 # versions had trouble with output in subdirs. 4214 am__obj=sub/conftest.${OBJEXT-o} 4215 am__minus_obj="-o $am__obj" 4216 case $depmode in 4217 gcc) 4218 # This depmode causes a compiler race in universal mode. 4219 test "$am__universal" = false || continue 4220 ;; 4221 nosideeffect) 4222 # After this tag, mechanisms are not by side-effect, so they'll 4223 # only be used when explicitly requested. 4224 if test "x$enable_dependency_tracking" = xyes; then 4225 continue 4226 else 4227 break 4228 fi 4229 ;; 4230 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4231 # This compiler won't grok '-c -o', but also, the minuso test has 4232 # not run yet. These depmodes are late enough in the game, and 4233 # so weak that their functioning should not be impacted. 4234 am__obj=conftest.${OBJEXT-o} 4235 am__minus_obj= 4236 ;; 4237 none) break ;; 4238 esac 4239 if depmode=$depmode \ 4240 source=sub/conftest.c object=$am__obj \ 4241 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4242 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4243 >/dev/null 2>conftest.err && 4244 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4245 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4246 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4247 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4248 # icc doesn't choke on unknown options, it will just issue warnings 4249 # or remarks (even with -Werror). So we grep stderr for any message 4250 # that says an option was ignored or not supported. 4251 # When given -MP, icc 7.0 and 7.1 complain thusly: 4252 # icc: Command line warning: ignoring option '-M'; no argument required 4253 # The diagnosis changed in icc 8.0: 4254 # icc: Command line remark: option '-MP' not supported 4255 if (grep 'ignoring option' conftest.err || 4256 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4257 am_cv_CC_dependencies_compiler_type=$depmode 4258 break 4259 fi 4260 fi 4261 done 4262 4263 cd .. 4264 rm -rf conftest.dir 4265else 4266 am_cv_CC_dependencies_compiler_type=none 4267fi 4268 4269fi 4270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4271$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4272CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4273 4274 if 4275 test "x$enable_dependency_tracking" != xno \ 4276 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4277 am__fastdepCC_TRUE= 4278 am__fastdepCC_FALSE='#' 4279else 4280 am__fastdepCC_TRUE='#' 4281 am__fastdepCC_FALSE= 4282fi 4283 4284 4285ac_ext=c 4286ac_cpp='$CPP $CPPFLAGS' 4287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4289ac_compiler_gnu=$ac_cv_c_compiler_gnu 4290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4291$as_echo_n "checking how to run the C preprocessor... " >&6; } 4292# On Suns, sometimes $CPP names a directory. 4293if test -n "$CPP" && test -d "$CPP"; then 4294 CPP= 4295fi 4296if test -z "$CPP"; then 4297 if ${ac_cv_prog_CPP+:} false; then : 4298 $as_echo_n "(cached) " >&6 4299else 4300 # Double quotes because CPP needs to be expanded 4301 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4302 do 4303 ac_preproc_ok=false 4304for ac_c_preproc_warn_flag in '' yes 4305do 4306 # Use a header file that comes with gcc, so configuring glibc 4307 # with a fresh cross-compiler works. 4308 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4309 # <limits.h> exists even on freestanding compilers. 4310 # On the NeXT, cc -E runs the code through the compiler's parser, 4311 # not just through cpp. "Syntax error" is here to catch this case. 4312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4313/* end confdefs.h. */ 4314#ifdef __STDC__ 4315# include <limits.h> 4316#else 4317# include <assert.h> 4318#endif 4319 Syntax error 4320_ACEOF 4321if ac_fn_c_try_cpp "$LINENO"; then : 4322 4323else 4324 # Broken: fails on valid input. 4325continue 4326fi 4327rm -f conftest.err conftest.i conftest.$ac_ext 4328 4329 # OK, works on sane cases. Now check whether nonexistent headers 4330 # can be detected and how. 4331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4332/* end confdefs.h. */ 4333#include <ac_nonexistent.h> 4334_ACEOF 4335if ac_fn_c_try_cpp "$LINENO"; then : 4336 # Broken: success on invalid input. 4337continue 4338else 4339 # Passes both tests. 4340ac_preproc_ok=: 4341break 4342fi 4343rm -f conftest.err conftest.i conftest.$ac_ext 4344 4345done 4346# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4347rm -f conftest.i conftest.err conftest.$ac_ext 4348if $ac_preproc_ok; then : 4349 break 4350fi 4351 4352 done 4353 ac_cv_prog_CPP=$CPP 4354 4355fi 4356 CPP=$ac_cv_prog_CPP 4357else 4358 ac_cv_prog_CPP=$CPP 4359fi 4360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4361$as_echo "$CPP" >&6; } 4362ac_preproc_ok=false 4363for ac_c_preproc_warn_flag in '' yes 4364do 4365 # Use a header file that comes with gcc, so configuring glibc 4366 # with a fresh cross-compiler works. 4367 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4368 # <limits.h> exists even on freestanding compilers. 4369 # On the NeXT, cc -E runs the code through the compiler's parser, 4370 # not just through cpp. "Syntax error" is here to catch this case. 4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4372/* end confdefs.h. */ 4373#ifdef __STDC__ 4374# include <limits.h> 4375#else 4376# include <assert.h> 4377#endif 4378 Syntax error 4379_ACEOF 4380if ac_fn_c_try_cpp "$LINENO"; then : 4381 4382else 4383 # Broken: fails on valid input. 4384continue 4385fi 4386rm -f conftest.err conftest.i conftest.$ac_ext 4387 4388 # OK, works on sane cases. Now check whether nonexistent headers 4389 # can be detected and how. 4390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4391/* end confdefs.h. */ 4392#include <ac_nonexistent.h> 4393_ACEOF 4394if ac_fn_c_try_cpp "$LINENO"; then : 4395 # Broken: success on invalid input. 4396continue 4397else 4398 # Passes both tests. 4399ac_preproc_ok=: 4400break 4401fi 4402rm -f conftest.err conftest.i conftest.$ac_ext 4403 4404done 4405# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4406rm -f conftest.i conftest.err conftest.$ac_ext 4407if $ac_preproc_ok; then : 4408 4409else 4410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4411$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4412as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4413See \`config.log' for more details" "$LINENO" 5; } 4414fi 4415 4416ac_ext=c 4417ac_cpp='$CPP $CPPFLAGS' 4418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4420ac_compiler_gnu=$ac_cv_c_compiler_gnu 4421 4422ac_ext=c 4423ac_cpp='$CPP $CPPFLAGS' 4424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4426ac_compiler_gnu=$ac_cv_c_compiler_gnu 4427if test -n "$ac_tool_prefix"; then 4428 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4429set dummy ${ac_tool_prefix}gcc; ac_word=$2 4430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4431$as_echo_n "checking for $ac_word... " >&6; } 4432if ${ac_cv_prog_CC+:} false; then : 4433 $as_echo_n "(cached) " >&6 4434else 4435 if test -n "$CC"; then 4436 ac_cv_prog_CC="$CC" # Let the user override the test. 4437else 4438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4439for as_dir in $PATH 4440do 4441 IFS=$as_save_IFS 4442 test -z "$as_dir" && as_dir=. 4443 for ac_exec_ext in '' $ac_executable_extensions; do 4444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4445 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4447 break 2 4448 fi 4449done 4450 done 4451IFS=$as_save_IFS 4452 4453fi 4454fi 4455CC=$ac_cv_prog_CC 4456if test -n "$CC"; then 4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4458$as_echo "$CC" >&6; } 4459else 4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4461$as_echo "no" >&6; } 4462fi 4463 4464 4465fi 4466if test -z "$ac_cv_prog_CC"; then 4467 ac_ct_CC=$CC 4468 # Extract the first word of "gcc", so it can be a program name with args. 4469set dummy gcc; ac_word=$2 4470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4471$as_echo_n "checking for $ac_word... " >&6; } 4472if ${ac_cv_prog_ac_ct_CC+:} false; then : 4473 $as_echo_n "(cached) " >&6 4474else 4475 if test -n "$ac_ct_CC"; then 4476 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4477else 4478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4479for as_dir in $PATH 4480do 4481 IFS=$as_save_IFS 4482 test -z "$as_dir" && as_dir=. 4483 for ac_exec_ext in '' $ac_executable_extensions; do 4484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4485 ac_cv_prog_ac_ct_CC="gcc" 4486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4487 break 2 4488 fi 4489done 4490 done 4491IFS=$as_save_IFS 4492 4493fi 4494fi 4495ac_ct_CC=$ac_cv_prog_ac_ct_CC 4496if test -n "$ac_ct_CC"; then 4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4498$as_echo "$ac_ct_CC" >&6; } 4499else 4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4501$as_echo "no" >&6; } 4502fi 4503 4504 if test "x$ac_ct_CC" = x; then 4505 CC="" 4506 else 4507 case $cross_compiling:$ac_tool_warned in 4508yes:) 4509{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4510$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4511ac_tool_warned=yes ;; 4512esac 4513 CC=$ac_ct_CC 4514 fi 4515else 4516 CC="$ac_cv_prog_CC" 4517fi 4518 4519if test -z "$CC"; then 4520 if test -n "$ac_tool_prefix"; then 4521 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4522set dummy ${ac_tool_prefix}cc; ac_word=$2 4523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4524$as_echo_n "checking for $ac_word... " >&6; } 4525if ${ac_cv_prog_CC+:} false; then : 4526 $as_echo_n "(cached) " >&6 4527else 4528 if test -n "$CC"; then 4529 ac_cv_prog_CC="$CC" # Let the user override the test. 4530else 4531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4532for as_dir in $PATH 4533do 4534 IFS=$as_save_IFS 4535 test -z "$as_dir" && as_dir=. 4536 for ac_exec_ext in '' $ac_executable_extensions; do 4537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4538 ac_cv_prog_CC="${ac_tool_prefix}cc" 4539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4540 break 2 4541 fi 4542done 4543 done 4544IFS=$as_save_IFS 4545 4546fi 4547fi 4548CC=$ac_cv_prog_CC 4549if test -n "$CC"; then 4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4551$as_echo "$CC" >&6; } 4552else 4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4554$as_echo "no" >&6; } 4555fi 4556 4557 4558 fi 4559fi 4560if test -z "$CC"; then 4561 # Extract the first word of "cc", so it can be a program name with args. 4562set dummy cc; ac_word=$2 4563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4564$as_echo_n "checking for $ac_word... " >&6; } 4565if ${ac_cv_prog_CC+:} false; then : 4566 $as_echo_n "(cached) " >&6 4567else 4568 if test -n "$CC"; then 4569 ac_cv_prog_CC="$CC" # Let the user override the test. 4570else 4571 ac_prog_rejected=no 4572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4573for as_dir in $PATH 4574do 4575 IFS=$as_save_IFS 4576 test -z "$as_dir" && as_dir=. 4577 for ac_exec_ext in '' $ac_executable_extensions; do 4578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4579 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4580 ac_prog_rejected=yes 4581 continue 4582 fi 4583 ac_cv_prog_CC="cc" 4584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4585 break 2 4586 fi 4587done 4588 done 4589IFS=$as_save_IFS 4590 4591if test $ac_prog_rejected = yes; then 4592 # We found a bogon in the path, so make sure we never use it. 4593 set dummy $ac_cv_prog_CC 4594 shift 4595 if test $# != 0; then 4596 # We chose a different compiler from the bogus one. 4597 # However, it has the same basename, so the bogon will be chosen 4598 # first if we set CC to just the basename; use the full file name. 4599 shift 4600 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4601 fi 4602fi 4603fi 4604fi 4605CC=$ac_cv_prog_CC 4606if test -n "$CC"; then 4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4608$as_echo "$CC" >&6; } 4609else 4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4611$as_echo "no" >&6; } 4612fi 4613 4614 4615fi 4616if test -z "$CC"; then 4617 if test -n "$ac_tool_prefix"; then 4618 for ac_prog in cl.exe 4619 do 4620 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4621set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4623$as_echo_n "checking for $ac_word... " >&6; } 4624if ${ac_cv_prog_CC+:} false; then : 4625 $as_echo_n "(cached) " >&6 4626else 4627 if test -n "$CC"; then 4628 ac_cv_prog_CC="$CC" # Let the user override the test. 4629else 4630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4631for as_dir in $PATH 4632do 4633 IFS=$as_save_IFS 4634 test -z "$as_dir" && as_dir=. 4635 for ac_exec_ext in '' $ac_executable_extensions; do 4636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4637 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4639 break 2 4640 fi 4641done 4642 done 4643IFS=$as_save_IFS 4644 4645fi 4646fi 4647CC=$ac_cv_prog_CC 4648if test -n "$CC"; then 4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4650$as_echo "$CC" >&6; } 4651else 4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4653$as_echo "no" >&6; } 4654fi 4655 4656 4657 test -n "$CC" && break 4658 done 4659fi 4660if test -z "$CC"; then 4661 ac_ct_CC=$CC 4662 for ac_prog in cl.exe 4663do 4664 # Extract the first word of "$ac_prog", so it can be a program name with args. 4665set dummy $ac_prog; ac_word=$2 4666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4667$as_echo_n "checking for $ac_word... " >&6; } 4668if ${ac_cv_prog_ac_ct_CC+:} false; then : 4669 $as_echo_n "(cached) " >&6 4670else 4671 if test -n "$ac_ct_CC"; then 4672 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4673else 4674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4675for as_dir in $PATH 4676do 4677 IFS=$as_save_IFS 4678 test -z "$as_dir" && as_dir=. 4679 for ac_exec_ext in '' $ac_executable_extensions; do 4680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4681 ac_cv_prog_ac_ct_CC="$ac_prog" 4682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4683 break 2 4684 fi 4685done 4686 done 4687IFS=$as_save_IFS 4688 4689fi 4690fi 4691ac_ct_CC=$ac_cv_prog_ac_ct_CC 4692if test -n "$ac_ct_CC"; then 4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4694$as_echo "$ac_ct_CC" >&6; } 4695else 4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4697$as_echo "no" >&6; } 4698fi 4699 4700 4701 test -n "$ac_ct_CC" && break 4702done 4703 4704 if test "x$ac_ct_CC" = x; then 4705 CC="" 4706 else 4707 case $cross_compiling:$ac_tool_warned in 4708yes:) 4709{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4710$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4711ac_tool_warned=yes ;; 4712esac 4713 CC=$ac_ct_CC 4714 fi 4715fi 4716 4717fi 4718 4719 4720test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4721$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4722as_fn_error $? "no acceptable C compiler found in \$PATH 4723See \`config.log' for more details" "$LINENO" 5; } 4724 4725# Provide some information about the compiler. 4726$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4727set X $ac_compile 4728ac_compiler=$2 4729for ac_option in --version -v -V -qversion; do 4730 { { ac_try="$ac_compiler $ac_option >&5" 4731case "(($ac_try" in 4732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4733 *) ac_try_echo=$ac_try;; 4734esac 4735eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4736$as_echo "$ac_try_echo"; } >&5 4737 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4738 ac_status=$? 4739 if test -s conftest.err; then 4740 sed '10a\ 4741... rest of stderr output deleted ... 4742 10q' conftest.err >conftest.er1 4743 cat conftest.er1 >&5 4744 fi 4745 rm -f conftest.er1 conftest.err 4746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4747 test $ac_status = 0; } 4748done 4749 4750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4751$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4752if ${ac_cv_c_compiler_gnu+:} false; then : 4753 $as_echo_n "(cached) " >&6 4754else 4755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4756/* end confdefs.h. */ 4757 4758int 4759main () 4760{ 4761#ifndef __GNUC__ 4762 choke me 4763#endif 4764 4765 ; 4766 return 0; 4767} 4768_ACEOF 4769if ac_fn_c_try_compile "$LINENO"; then : 4770 ac_compiler_gnu=yes 4771else 4772 ac_compiler_gnu=no 4773fi 4774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4775ac_cv_c_compiler_gnu=$ac_compiler_gnu 4776 4777fi 4778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4779$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4780if test $ac_compiler_gnu = yes; then 4781 GCC=yes 4782else 4783 GCC= 4784fi 4785ac_test_CFLAGS=${CFLAGS+set} 4786ac_save_CFLAGS=$CFLAGS 4787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4788$as_echo_n "checking whether $CC accepts -g... " >&6; } 4789if ${ac_cv_prog_cc_g+:} false; then : 4790 $as_echo_n "(cached) " >&6 4791else 4792 ac_save_c_werror_flag=$ac_c_werror_flag 4793 ac_c_werror_flag=yes 4794 ac_cv_prog_cc_g=no 4795 CFLAGS="-g" 4796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4797/* end confdefs.h. */ 4798 4799int 4800main () 4801{ 4802 4803 ; 4804 return 0; 4805} 4806_ACEOF 4807if ac_fn_c_try_compile "$LINENO"; then : 4808 ac_cv_prog_cc_g=yes 4809else 4810 CFLAGS="" 4811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4812/* end confdefs.h. */ 4813 4814int 4815main () 4816{ 4817 4818 ; 4819 return 0; 4820} 4821_ACEOF 4822if ac_fn_c_try_compile "$LINENO"; then : 4823 4824else 4825 ac_c_werror_flag=$ac_save_c_werror_flag 4826 CFLAGS="-g" 4827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4828/* end confdefs.h. */ 4829 4830int 4831main () 4832{ 4833 4834 ; 4835 return 0; 4836} 4837_ACEOF 4838if ac_fn_c_try_compile "$LINENO"; then : 4839 ac_cv_prog_cc_g=yes 4840fi 4841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4842fi 4843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4844fi 4845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4846 ac_c_werror_flag=$ac_save_c_werror_flag 4847fi 4848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4849$as_echo "$ac_cv_prog_cc_g" >&6; } 4850if test "$ac_test_CFLAGS" = set; then 4851 CFLAGS=$ac_save_CFLAGS 4852elif test $ac_cv_prog_cc_g = yes; then 4853 if test "$GCC" = yes; then 4854 CFLAGS="-g -O2" 4855 else 4856 CFLAGS="-g" 4857 fi 4858else 4859 if test "$GCC" = yes; then 4860 CFLAGS="-O2" 4861 else 4862 CFLAGS= 4863 fi 4864fi 4865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4866$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4867if ${ac_cv_prog_cc_c89+:} false; then : 4868 $as_echo_n "(cached) " >&6 4869else 4870 ac_cv_prog_cc_c89=no 4871ac_save_CC=$CC 4872cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4873/* end confdefs.h. */ 4874#include <stdarg.h> 4875#include <stdio.h> 4876struct stat; 4877/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4878struct buf { int x; }; 4879FILE * (*rcsopen) (struct buf *, struct stat *, int); 4880static char *e (p, i) 4881 char **p; 4882 int i; 4883{ 4884 return p[i]; 4885} 4886static char *f (char * (*g) (char **, int), char **p, ...) 4887{ 4888 char *s; 4889 va_list v; 4890 va_start (v,p); 4891 s = g (p, va_arg (v,int)); 4892 va_end (v); 4893 return s; 4894} 4895 4896/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4897 function prototypes and stuff, but not '\xHH' hex character constants. 4898 These don't provoke an error unfortunately, instead are silently treated 4899 as 'x'. The following induces an error, until -std is added to get 4900 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4901 array size at least. It's necessary to write '\x00'==0 to get something 4902 that's true only with -std. */ 4903int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4904 4905/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4906 inside strings and character constants. */ 4907#define FOO(x) 'x' 4908int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4909 4910int test (int i, double x); 4911struct s1 {int (*f) (int a);}; 4912struct s2 {int (*f) (double a);}; 4913int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4914int argc; 4915char **argv; 4916int 4917main () 4918{ 4919return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4920 ; 4921 return 0; 4922} 4923_ACEOF 4924for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4925 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4926do 4927 CC="$ac_save_CC $ac_arg" 4928 if ac_fn_c_try_compile "$LINENO"; then : 4929 ac_cv_prog_cc_c89=$ac_arg 4930fi 4931rm -f core conftest.err conftest.$ac_objext 4932 test "x$ac_cv_prog_cc_c89" != "xno" && break 4933done 4934rm -f conftest.$ac_ext 4935CC=$ac_save_CC 4936 4937fi 4938# AC_CACHE_VAL 4939case "x$ac_cv_prog_cc_c89" in 4940 x) 4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4942$as_echo "none needed" >&6; } ;; 4943 xno) 4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4945$as_echo "unsupported" >&6; } ;; 4946 *) 4947 CC="$CC $ac_cv_prog_cc_c89" 4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4949$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4950esac 4951if test "x$ac_cv_prog_cc_c89" != xno; then : 4952 4953fi 4954 4955ac_ext=c 4956ac_cpp='$CPP $CPPFLAGS' 4957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4959ac_compiler_gnu=$ac_cv_c_compiler_gnu 4960 4961ac_ext=c 4962ac_cpp='$CPP $CPPFLAGS' 4963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4965ac_compiler_gnu=$ac_cv_c_compiler_gnu 4966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4967$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4968if ${am_cv_prog_cc_c_o+:} false; then : 4969 $as_echo_n "(cached) " >&6 4970else 4971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4972/* end confdefs.h. */ 4973 4974int 4975main () 4976{ 4977 4978 ; 4979 return 0; 4980} 4981_ACEOF 4982 # Make sure it works both with $CC and with simple cc. 4983 # Following AC_PROG_CC_C_O, we do the test twice because some 4984 # compilers refuse to overwrite an existing .o file with -o, 4985 # though they will create one. 4986 am_cv_prog_cc_c_o=yes 4987 for am_i in 1 2; do 4988 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4989 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4990 ac_status=$? 4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4992 (exit $ac_status); } \ 4993 && test -f conftest2.$ac_objext; then 4994 : OK 4995 else 4996 am_cv_prog_cc_c_o=no 4997 break 4998 fi 4999 done 5000 rm -f core conftest* 5001 unset am_i 5002fi 5003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5004$as_echo "$am_cv_prog_cc_c_o" >&6; } 5005if test "$am_cv_prog_cc_c_o" != yes; then 5006 # Losing compiler, so override with the script. 5007 # FIXME: It is wrong to rewrite CC. 5008 # But if we don't then we get into trouble of one sort or another. 5009 # A longer-term fix would be to have automake use am__CC in this case, 5010 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5011 CC="$am_aux_dir/compile $CC" 5012fi 5013ac_ext=c 5014ac_cpp='$CPP $CPPFLAGS' 5015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5017ac_compiler_gnu=$ac_cv_c_compiler_gnu 5018 5019 5020depcc="$CC" am_compiler_list= 5021 5022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5023$as_echo_n "checking dependency style of $depcc... " >&6; } 5024if ${am_cv_CC_dependencies_compiler_type+:} false; then : 5025 $as_echo_n "(cached) " >&6 5026else 5027 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5028 # We make a subdir and do the tests there. Otherwise we can end up 5029 # making bogus files that we don't know about and never remove. For 5030 # instance it was reported that on HP-UX the gcc test will end up 5031 # making a dummy file named 'D' -- because '-MD' means "put the output 5032 # in D". 5033 rm -rf conftest.dir 5034 mkdir conftest.dir 5035 # Copy depcomp to subdir because otherwise we won't find it if we're 5036 # using a relative directory. 5037 cp "$am_depcomp" conftest.dir 5038 cd conftest.dir 5039 # We will build objects and dependencies in a subdirectory because 5040 # it helps to detect inapplicable dependency modes. For instance 5041 # both Tru64's cc and ICC support -MD to output dependencies as a 5042 # side effect of compilation, but ICC will put the dependencies in 5043 # the current directory while Tru64 will put them in the object 5044 # directory. 5045 mkdir sub 5046 5047 am_cv_CC_dependencies_compiler_type=none 5048 if test "$am_compiler_list" = ""; then 5049 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5050 fi 5051 am__universal=false 5052 case " $depcc " in #( 5053 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5054 esac 5055 5056 for depmode in $am_compiler_list; do 5057 # Setup a source with many dependencies, because some compilers 5058 # like to wrap large dependency lists on column 80 (with \), and 5059 # we should not choose a depcomp mode which is confused by this. 5060 # 5061 # We need to recreate these files for each test, as the compiler may 5062 # overwrite some of them when testing with obscure command lines. 5063 # This happens at least with the AIX C compiler. 5064 : > sub/conftest.c 5065 for i in 1 2 3 4 5 6; do 5066 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5067 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5068 # Solaris 10 /bin/sh. 5069 echo '/* dummy */' > sub/conftst$i.h 5070 done 5071 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5072 5073 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5074 # mode. It turns out that the SunPro C++ compiler does not properly 5075 # handle '-M -o', and we need to detect this. Also, some Intel 5076 # versions had trouble with output in subdirs. 5077 am__obj=sub/conftest.${OBJEXT-o} 5078 am__minus_obj="-o $am__obj" 5079 case $depmode in 5080 gcc) 5081 # This depmode causes a compiler race in universal mode. 5082 test "$am__universal" = false || continue 5083 ;; 5084 nosideeffect) 5085 # After this tag, mechanisms are not by side-effect, so they'll 5086 # only be used when explicitly requested. 5087 if test "x$enable_dependency_tracking" = xyes; then 5088 continue 5089 else 5090 break 5091 fi 5092 ;; 5093 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5094 # This compiler won't grok '-c -o', but also, the minuso test has 5095 # not run yet. These depmodes are late enough in the game, and 5096 # so weak that their functioning should not be impacted. 5097 am__obj=conftest.${OBJEXT-o} 5098 am__minus_obj= 5099 ;; 5100 none) break ;; 5101 esac 5102 if depmode=$depmode \ 5103 source=sub/conftest.c object=$am__obj \ 5104 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5105 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5106 >/dev/null 2>conftest.err && 5107 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5108 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5109 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5110 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5111 # icc doesn't choke on unknown options, it will just issue warnings 5112 # or remarks (even with -Werror). So we grep stderr for any message 5113 # that says an option was ignored or not supported. 5114 # When given -MP, icc 7.0 and 7.1 complain thusly: 5115 # icc: Command line warning: ignoring option '-M'; no argument required 5116 # The diagnosis changed in icc 8.0: 5117 # icc: Command line remark: option '-MP' not supported 5118 if (grep 'ignoring option' conftest.err || 5119 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5120 am_cv_CC_dependencies_compiler_type=$depmode 5121 break 5122 fi 5123 fi 5124 done 5125 5126 cd .. 5127 rm -rf conftest.dir 5128else 5129 am_cv_CC_dependencies_compiler_type=none 5130fi 5131 5132fi 5133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5134$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5135CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5136 5137 if 5138 test "x$enable_dependency_tracking" != xno \ 5139 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5140 am__fastdepCC_TRUE= 5141 am__fastdepCC_FALSE='#' 5142else 5143 am__fastdepCC_TRUE='#' 5144 am__fastdepCC_FALSE= 5145fi 5146 5147 5148ac_ext=cpp 5149ac_cpp='$CXXCPP $CPPFLAGS' 5150ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5151ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5152ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5153if test -z "$CXX"; then 5154 if test -n "$CCC"; then 5155 CXX=$CCC 5156 else 5157 if test -n "$ac_tool_prefix"; then 5158 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5159 do 5160 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5161set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5163$as_echo_n "checking for $ac_word... " >&6; } 5164if ${ac_cv_prog_CXX+:} false; then : 5165 $as_echo_n "(cached) " >&6 5166else 5167 if test -n "$CXX"; then 5168 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5169else 5170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5171for as_dir in $PATH 5172do 5173 IFS=$as_save_IFS 5174 test -z "$as_dir" && as_dir=. 5175 for ac_exec_ext in '' $ac_executable_extensions; do 5176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5177 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5179 break 2 5180 fi 5181done 5182 done 5183IFS=$as_save_IFS 5184 5185fi 5186fi 5187CXX=$ac_cv_prog_CXX 5188if test -n "$CXX"; then 5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 5190$as_echo "$CXX" >&6; } 5191else 5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5193$as_echo "no" >&6; } 5194fi 5195 5196 5197 test -n "$CXX" && break 5198 done 5199fi 5200if test -z "$CXX"; then 5201 ac_ct_CXX=$CXX 5202 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5203do 5204 # Extract the first word of "$ac_prog", so it can be a program name with args. 5205set dummy $ac_prog; ac_word=$2 5206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5207$as_echo_n "checking for $ac_word... " >&6; } 5208if ${ac_cv_prog_ac_ct_CXX+:} false; then : 5209 $as_echo_n "(cached) " >&6 5210else 5211 if test -n "$ac_ct_CXX"; then 5212 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5213else 5214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5215for as_dir in $PATH 5216do 5217 IFS=$as_save_IFS 5218 test -z "$as_dir" && as_dir=. 5219 for ac_exec_ext in '' $ac_executable_extensions; do 5220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5221 ac_cv_prog_ac_ct_CXX="$ac_prog" 5222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5223 break 2 5224 fi 5225done 5226 done 5227IFS=$as_save_IFS 5228 5229fi 5230fi 5231ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5232if test -n "$ac_ct_CXX"; then 5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 5234$as_echo "$ac_ct_CXX" >&6; } 5235else 5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5237$as_echo "no" >&6; } 5238fi 5239 5240 5241 test -n "$ac_ct_CXX" && break 5242done 5243 5244 if test "x$ac_ct_CXX" = x; then 5245 CXX="g++" 5246 else 5247 case $cross_compiling:$ac_tool_warned in 5248yes:) 5249{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5250$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5251ac_tool_warned=yes ;; 5252esac 5253 CXX=$ac_ct_CXX 5254 fi 5255fi 5256 5257 fi 5258fi 5259# Provide some information about the compiler. 5260$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 5261set X $ac_compile 5262ac_compiler=$2 5263for ac_option in --version -v -V -qversion; do 5264 { { ac_try="$ac_compiler $ac_option >&5" 5265case "(($ac_try" in 5266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5267 *) ac_try_echo=$ac_try;; 5268esac 5269eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5270$as_echo "$ac_try_echo"; } >&5 5271 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5272 ac_status=$? 5273 if test -s conftest.err; then 5274 sed '10a\ 5275... rest of stderr output deleted ... 5276 10q' conftest.err >conftest.er1 5277 cat conftest.er1 >&5 5278 fi 5279 rm -f conftest.er1 conftest.err 5280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5281 test $ac_status = 0; } 5282done 5283 5284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 5285$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 5286if ${ac_cv_cxx_compiler_gnu+:} false; then : 5287 $as_echo_n "(cached) " >&6 5288else 5289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5290/* end confdefs.h. */ 5291 5292int 5293main () 5294{ 5295#ifndef __GNUC__ 5296 choke me 5297#endif 5298 5299 ; 5300 return 0; 5301} 5302_ACEOF 5303if ac_fn_cxx_try_compile "$LINENO"; then : 5304 ac_compiler_gnu=yes 5305else 5306 ac_compiler_gnu=no 5307fi 5308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5309ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5310 5311fi 5312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 5313$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 5314if test $ac_compiler_gnu = yes; then 5315 GXX=yes 5316else 5317 GXX= 5318fi 5319ac_test_CXXFLAGS=${CXXFLAGS+set} 5320ac_save_CXXFLAGS=$CXXFLAGS 5321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 5322$as_echo_n "checking whether $CXX accepts -g... " >&6; } 5323if ${ac_cv_prog_cxx_g+:} false; then : 5324 $as_echo_n "(cached) " >&6 5325else 5326 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5327 ac_cxx_werror_flag=yes 5328 ac_cv_prog_cxx_g=no 5329 CXXFLAGS="-g" 5330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5331/* end confdefs.h. */ 5332 5333int 5334main () 5335{ 5336 5337 ; 5338 return 0; 5339} 5340_ACEOF 5341if ac_fn_cxx_try_compile "$LINENO"; then : 5342 ac_cv_prog_cxx_g=yes 5343else 5344 CXXFLAGS="" 5345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5346/* end confdefs.h. */ 5347 5348int 5349main () 5350{ 5351 5352 ; 5353 return 0; 5354} 5355_ACEOF 5356if ac_fn_cxx_try_compile "$LINENO"; then : 5357 5358else 5359 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5360 CXXFLAGS="-g" 5361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5362/* end confdefs.h. */ 5363 5364int 5365main () 5366{ 5367 5368 ; 5369 return 0; 5370} 5371_ACEOF 5372if ac_fn_cxx_try_compile "$LINENO"; then : 5373 ac_cv_prog_cxx_g=yes 5374fi 5375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5376fi 5377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5378fi 5379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5380 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5381fi 5382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 5383$as_echo "$ac_cv_prog_cxx_g" >&6; } 5384if test "$ac_test_CXXFLAGS" = set; then 5385 CXXFLAGS=$ac_save_CXXFLAGS 5386elif test $ac_cv_prog_cxx_g = yes; then 5387 if test "$GXX" = yes; then 5388 CXXFLAGS="-g -O2" 5389 else 5390 CXXFLAGS="-g" 5391 fi 5392else 5393 if test "$GXX" = yes; then 5394 CXXFLAGS="-O2" 5395 else 5396 CXXFLAGS= 5397 fi 5398fi 5399ac_ext=c 5400ac_cpp='$CPP $CPPFLAGS' 5401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5403ac_compiler_gnu=$ac_cv_c_compiler_gnu 5404 5405depcc="$CXX" am_compiler_list= 5406 5407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5408$as_echo_n "checking dependency style of $depcc... " >&6; } 5409if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 5410 $as_echo_n "(cached) " >&6 5411else 5412 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5413 # We make a subdir and do the tests there. Otherwise we can end up 5414 # making bogus files that we don't know about and never remove. For 5415 # instance it was reported that on HP-UX the gcc test will end up 5416 # making a dummy file named 'D' -- because '-MD' means "put the output 5417 # in D". 5418 rm -rf conftest.dir 5419 mkdir conftest.dir 5420 # Copy depcomp to subdir because otherwise we won't find it if we're 5421 # using a relative directory. 5422 cp "$am_depcomp" conftest.dir 5423 cd conftest.dir 5424 # We will build objects and dependencies in a subdirectory because 5425 # it helps to detect inapplicable dependency modes. For instance 5426 # both Tru64's cc and ICC support -MD to output dependencies as a 5427 # side effect of compilation, but ICC will put the dependencies in 5428 # the current directory while Tru64 will put them in the object 5429 # directory. 5430 mkdir sub 5431 5432 am_cv_CXX_dependencies_compiler_type=none 5433 if test "$am_compiler_list" = ""; then 5434 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5435 fi 5436 am__universal=false 5437 case " $depcc " in #( 5438 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5439 esac 5440 5441 for depmode in $am_compiler_list; do 5442 # Setup a source with many dependencies, because some compilers 5443 # like to wrap large dependency lists on column 80 (with \), and 5444 # we should not choose a depcomp mode which is confused by this. 5445 # 5446 # We need to recreate these files for each test, as the compiler may 5447 # overwrite some of them when testing with obscure command lines. 5448 # This happens at least with the AIX C compiler. 5449 : > sub/conftest.c 5450 for i in 1 2 3 4 5 6; do 5451 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5452 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5453 # Solaris 10 /bin/sh. 5454 echo '/* dummy */' > sub/conftst$i.h 5455 done 5456 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5457 5458 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5459 # mode. It turns out that the SunPro C++ compiler does not properly 5460 # handle '-M -o', and we need to detect this. Also, some Intel 5461 # versions had trouble with output in subdirs. 5462 am__obj=sub/conftest.${OBJEXT-o} 5463 am__minus_obj="-o $am__obj" 5464 case $depmode in 5465 gcc) 5466 # This depmode causes a compiler race in universal mode. 5467 test "$am__universal" = false || continue 5468 ;; 5469 nosideeffect) 5470 # After this tag, mechanisms are not by side-effect, so they'll 5471 # only be used when explicitly requested. 5472 if test "x$enable_dependency_tracking" = xyes; then 5473 continue 5474 else 5475 break 5476 fi 5477 ;; 5478 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5479 # This compiler won't grok '-c -o', but also, the minuso test has 5480 # not run yet. These depmodes are late enough in the game, and 5481 # so weak that their functioning should not be impacted. 5482 am__obj=conftest.${OBJEXT-o} 5483 am__minus_obj= 5484 ;; 5485 none) break ;; 5486 esac 5487 if depmode=$depmode \ 5488 source=sub/conftest.c object=$am__obj \ 5489 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5490 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5491 >/dev/null 2>conftest.err && 5492 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5493 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5494 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5495 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5496 # icc doesn't choke on unknown options, it will just issue warnings 5497 # or remarks (even with -Werror). So we grep stderr for any message 5498 # that says an option was ignored or not supported. 5499 # When given -MP, icc 7.0 and 7.1 complain thusly: 5500 # icc: Command line warning: ignoring option '-M'; no argument required 5501 # The diagnosis changed in icc 8.0: 5502 # icc: Command line remark: option '-MP' not supported 5503 if (grep 'ignoring option' conftest.err || 5504 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5505 am_cv_CXX_dependencies_compiler_type=$depmode 5506 break 5507 fi 5508 fi 5509 done 5510 5511 cd .. 5512 rm -rf conftest.dir 5513else 5514 am_cv_CXX_dependencies_compiler_type=none 5515fi 5516 5517fi 5518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 5519$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 5520CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5521 5522 if 5523 test "x$enable_dependency_tracking" != xno \ 5524 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5525 am__fastdepCXX_TRUE= 5526 am__fastdepCXX_FALSE='#' 5527else 5528 am__fastdepCXX_TRUE='#' 5529 am__fastdepCXX_FALSE= 5530fi 5531 5532 5533case `pwd` in 5534 *\ * | *\ *) 5535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5536$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5537esac 5538 5539 5540 5541macro_version='2.4.6' 5542macro_revision='2.4.6' 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556ltmain=$ac_aux_dir/ltmain.sh 5557 5558# Backslashify metacharacters that are still active within 5559# double-quoted strings. 5560sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5561 5562# Same as above, but do not quote variable references. 5563double_quote_subst='s/\(["`\\]\)/\\\1/g' 5564 5565# Sed substitution to delay expansion of an escaped shell variable in a 5566# double_quote_subst'ed string. 5567delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5568 5569# Sed substitution to delay expansion of an escaped single quote. 5570delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5571 5572# Sed substitution to avoid accidental globbing in evaled expressions 5573no_glob_subst='s/\*/\\\*/g' 5574 5575ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5576ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5577ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5578 5579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5580$as_echo_n "checking how to print strings... " >&6; } 5581# Test print first, because it will be a builtin if present. 5582if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5583 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5584 ECHO='print -r --' 5585elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5586 ECHO='printf %s\n' 5587else 5588 # Use this function as a fallback that always works. 5589 func_fallback_echo () 5590 { 5591 eval 'cat <<_LTECHO_EOF 5592$1 5593_LTECHO_EOF' 5594 } 5595 ECHO='func_fallback_echo' 5596fi 5597 5598# func_echo_all arg... 5599# Invoke $ECHO with all args, space-separated. 5600func_echo_all () 5601{ 5602 $ECHO "" 5603} 5604 5605case $ECHO in 5606 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5607$as_echo "printf" >&6; } ;; 5608 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5609$as_echo "print -r" >&6; } ;; 5610 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5611$as_echo "cat" >&6; } ;; 5612esac 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5628$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5629if ${ac_cv_path_SED+:} false; then : 5630 $as_echo_n "(cached) " >&6 5631else 5632 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5633 for ac_i in 1 2 3 4 5 6 7; do 5634 ac_script="$ac_script$as_nl$ac_script" 5635 done 5636 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5637 { ac_script=; unset ac_script;} 5638 if test -z "$SED"; then 5639 ac_path_SED_found=false 5640 # Loop through the user's path and test for each of PROGNAME-LIST 5641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5642for as_dir in $PATH 5643do 5644 IFS=$as_save_IFS 5645 test -z "$as_dir" && as_dir=. 5646 for ac_prog in sed gsed; do 5647 for ac_exec_ext in '' $ac_executable_extensions; do 5648 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5649 as_fn_executable_p "$ac_path_SED" || continue 5650# Check for GNU ac_path_SED and select it if it is found. 5651 # Check for GNU $ac_path_SED 5652case `"$ac_path_SED" --version 2>&1` in 5653*GNU*) 5654 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5655*) 5656 ac_count=0 5657 $as_echo_n 0123456789 >"conftest.in" 5658 while : 5659 do 5660 cat "conftest.in" "conftest.in" >"conftest.tmp" 5661 mv "conftest.tmp" "conftest.in" 5662 cp "conftest.in" "conftest.nl" 5663 $as_echo '' >> "conftest.nl" 5664 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5665 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5666 as_fn_arith $ac_count + 1 && ac_count=$as_val 5667 if test $ac_count -gt ${ac_path_SED_max-0}; then 5668 # Best one so far, save it but keep looking for a better one 5669 ac_cv_path_SED="$ac_path_SED" 5670 ac_path_SED_max=$ac_count 5671 fi 5672 # 10*(2^10) chars as input seems more than enough 5673 test $ac_count -gt 10 && break 5674 done 5675 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5676esac 5677 5678 $ac_path_SED_found && break 3 5679 done 5680 done 5681 done 5682IFS=$as_save_IFS 5683 if test -z "$ac_cv_path_SED"; then 5684 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5685 fi 5686else 5687 ac_cv_path_SED=$SED 5688fi 5689 5690fi 5691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5692$as_echo "$ac_cv_path_SED" >&6; } 5693 SED="$ac_cv_path_SED" 5694 rm -f conftest.sed 5695 5696test -z "$SED" && SED=sed 5697Xsed="$SED -e 1s/^X//" 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5710$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5711if ${ac_cv_path_GREP+:} false; then : 5712 $as_echo_n "(cached) " >&6 5713else 5714 if test -z "$GREP"; then 5715 ac_path_GREP_found=false 5716 # Loop through the user's path and test for each of PROGNAME-LIST 5717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5718for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5719do 5720 IFS=$as_save_IFS 5721 test -z "$as_dir" && as_dir=. 5722 for ac_prog in grep ggrep; do 5723 for ac_exec_ext in '' $ac_executable_extensions; do 5724 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5725 as_fn_executable_p "$ac_path_GREP" || continue 5726# Check for GNU ac_path_GREP and select it if it is found. 5727 # Check for GNU $ac_path_GREP 5728case `"$ac_path_GREP" --version 2>&1` in 5729*GNU*) 5730 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5731*) 5732 ac_count=0 5733 $as_echo_n 0123456789 >"conftest.in" 5734 while : 5735 do 5736 cat "conftest.in" "conftest.in" >"conftest.tmp" 5737 mv "conftest.tmp" "conftest.in" 5738 cp "conftest.in" "conftest.nl" 5739 $as_echo 'GREP' >> "conftest.nl" 5740 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5741 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5742 as_fn_arith $ac_count + 1 && ac_count=$as_val 5743 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5744 # Best one so far, save it but keep looking for a better one 5745 ac_cv_path_GREP="$ac_path_GREP" 5746 ac_path_GREP_max=$ac_count 5747 fi 5748 # 10*(2^10) chars as input seems more than enough 5749 test $ac_count -gt 10 && break 5750 done 5751 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5752esac 5753 5754 $ac_path_GREP_found && break 3 5755 done 5756 done 5757 done 5758IFS=$as_save_IFS 5759 if test -z "$ac_cv_path_GREP"; then 5760 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5761 fi 5762else 5763 ac_cv_path_GREP=$GREP 5764fi 5765 5766fi 5767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5768$as_echo "$ac_cv_path_GREP" >&6; } 5769 GREP="$ac_cv_path_GREP" 5770 5771 5772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5773$as_echo_n "checking for egrep... " >&6; } 5774if ${ac_cv_path_EGREP+:} false; then : 5775 $as_echo_n "(cached) " >&6 5776else 5777 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5778 then ac_cv_path_EGREP="$GREP -E" 5779 else 5780 if test -z "$EGREP"; then 5781 ac_path_EGREP_found=false 5782 # Loop through the user's path and test for each of PROGNAME-LIST 5783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5784for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5785do 5786 IFS=$as_save_IFS 5787 test -z "$as_dir" && as_dir=. 5788 for ac_prog in egrep; do 5789 for ac_exec_ext in '' $ac_executable_extensions; do 5790 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5791 as_fn_executable_p "$ac_path_EGREP" || continue 5792# Check for GNU ac_path_EGREP and select it if it is found. 5793 # Check for GNU $ac_path_EGREP 5794case `"$ac_path_EGREP" --version 2>&1` in 5795*GNU*) 5796 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5797*) 5798 ac_count=0 5799 $as_echo_n 0123456789 >"conftest.in" 5800 while : 5801 do 5802 cat "conftest.in" "conftest.in" >"conftest.tmp" 5803 mv "conftest.tmp" "conftest.in" 5804 cp "conftest.in" "conftest.nl" 5805 $as_echo 'EGREP' >> "conftest.nl" 5806 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5807 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5808 as_fn_arith $ac_count + 1 && ac_count=$as_val 5809 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5810 # Best one so far, save it but keep looking for a better one 5811 ac_cv_path_EGREP="$ac_path_EGREP" 5812 ac_path_EGREP_max=$ac_count 5813 fi 5814 # 10*(2^10) chars as input seems more than enough 5815 test $ac_count -gt 10 && break 5816 done 5817 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5818esac 5819 5820 $ac_path_EGREP_found && break 3 5821 done 5822 done 5823 done 5824IFS=$as_save_IFS 5825 if test -z "$ac_cv_path_EGREP"; then 5826 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5827 fi 5828else 5829 ac_cv_path_EGREP=$EGREP 5830fi 5831 5832 fi 5833fi 5834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5835$as_echo "$ac_cv_path_EGREP" >&6; } 5836 EGREP="$ac_cv_path_EGREP" 5837 5838 5839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5840$as_echo_n "checking for fgrep... " >&6; } 5841if ${ac_cv_path_FGREP+:} false; then : 5842 $as_echo_n "(cached) " >&6 5843else 5844 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5845 then ac_cv_path_FGREP="$GREP -F" 5846 else 5847 if test -z "$FGREP"; then 5848 ac_path_FGREP_found=false 5849 # Loop through the user's path and test for each of PROGNAME-LIST 5850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5851for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5852do 5853 IFS=$as_save_IFS 5854 test -z "$as_dir" && as_dir=. 5855 for ac_prog in fgrep; do 5856 for ac_exec_ext in '' $ac_executable_extensions; do 5857 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5858 as_fn_executable_p "$ac_path_FGREP" || continue 5859# Check for GNU ac_path_FGREP and select it if it is found. 5860 # Check for GNU $ac_path_FGREP 5861case `"$ac_path_FGREP" --version 2>&1` in 5862*GNU*) 5863 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5864*) 5865 ac_count=0 5866 $as_echo_n 0123456789 >"conftest.in" 5867 while : 5868 do 5869 cat "conftest.in" "conftest.in" >"conftest.tmp" 5870 mv "conftest.tmp" "conftest.in" 5871 cp "conftest.in" "conftest.nl" 5872 $as_echo 'FGREP' >> "conftest.nl" 5873 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5874 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5875 as_fn_arith $ac_count + 1 && ac_count=$as_val 5876 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5877 # Best one so far, save it but keep looking for a better one 5878 ac_cv_path_FGREP="$ac_path_FGREP" 5879 ac_path_FGREP_max=$ac_count 5880 fi 5881 # 10*(2^10) chars as input seems more than enough 5882 test $ac_count -gt 10 && break 5883 done 5884 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5885esac 5886 5887 $ac_path_FGREP_found && break 3 5888 done 5889 done 5890 done 5891IFS=$as_save_IFS 5892 if test -z "$ac_cv_path_FGREP"; then 5893 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5894 fi 5895else 5896 ac_cv_path_FGREP=$FGREP 5897fi 5898 5899 fi 5900fi 5901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5902$as_echo "$ac_cv_path_FGREP" >&6; } 5903 FGREP="$ac_cv_path_FGREP" 5904 5905 5906test -z "$GREP" && GREP=grep 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926# Check whether --with-gnu-ld was given. 5927if test "${with_gnu_ld+set}" = set; then : 5928 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5929else 5930 with_gnu_ld=no 5931fi 5932 5933ac_prog=ld 5934if test yes = "$GCC"; then 5935 # Check if gcc -print-prog-name=ld gives a path. 5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5937$as_echo_n "checking for ld used by $CC... " >&6; } 5938 case $host in 5939 *-*-mingw*) 5940 # gcc leaves a trailing carriage return, which upsets mingw 5941 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5942 *) 5943 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5944 esac 5945 case $ac_prog in 5946 # Accept absolute paths. 5947 [\\/]* | ?:[\\/]*) 5948 re_direlt='/[^/][^/]*/\.\./' 5949 # Canonicalize the pathname of ld 5950 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5951 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5952 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5953 done 5954 test -z "$LD" && LD=$ac_prog 5955 ;; 5956 "") 5957 # If it fails, then pretend we aren't using GCC. 5958 ac_prog=ld 5959 ;; 5960 *) 5961 # If it is relative, then search for the first ld in PATH. 5962 with_gnu_ld=unknown 5963 ;; 5964 esac 5965elif test yes = "$with_gnu_ld"; then 5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5967$as_echo_n "checking for GNU ld... " >&6; } 5968else 5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5970$as_echo_n "checking for non-GNU ld... " >&6; } 5971fi 5972if ${lt_cv_path_LD+:} false; then : 5973 $as_echo_n "(cached) " >&6 5974else 5975 if test -z "$LD"; then 5976 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5977 for ac_dir in $PATH; do 5978 IFS=$lt_save_ifs 5979 test -z "$ac_dir" && ac_dir=. 5980 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5981 lt_cv_path_LD=$ac_dir/$ac_prog 5982 # Check to see if the program is GNU ld. I'd rather use --version, 5983 # but apparently some variants of GNU ld only accept -v. 5984 # Break only if it was the GNU/non-GNU ld that we prefer. 5985 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5986 *GNU* | *'with BFD'*) 5987 test no != "$with_gnu_ld" && break 5988 ;; 5989 *) 5990 test yes != "$with_gnu_ld" && break 5991 ;; 5992 esac 5993 fi 5994 done 5995 IFS=$lt_save_ifs 5996else 5997 lt_cv_path_LD=$LD # Let the user override the test with a path. 5998fi 5999fi 6000 6001LD=$lt_cv_path_LD 6002if test -n "$LD"; then 6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6004$as_echo "$LD" >&6; } 6005else 6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6007$as_echo "no" >&6; } 6008fi 6009test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6011$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 6012if ${lt_cv_prog_gnu_ld+:} false; then : 6013 $as_echo_n "(cached) " >&6 6014else 6015 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6016case `$LD -v 2>&1 </dev/null` in 6017*GNU* | *'with BFD'*) 6018 lt_cv_prog_gnu_ld=yes 6019 ;; 6020*) 6021 lt_cv_prog_gnu_ld=no 6022 ;; 6023esac 6024fi 6025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6026$as_echo "$lt_cv_prog_gnu_ld" >&6; } 6027with_gnu_ld=$lt_cv_prog_gnu_ld 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6038$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6039if ${lt_cv_path_NM+:} false; then : 6040 $as_echo_n "(cached) " >&6 6041else 6042 if test -n "$NM"; then 6043 # Let the user override the test. 6044 lt_cv_path_NM=$NM 6045else 6046 lt_nm_to_check=${ac_tool_prefix}nm 6047 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6048 lt_nm_to_check="$lt_nm_to_check nm" 6049 fi 6050 for lt_tmp_nm in $lt_nm_to_check; do 6051 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6052 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6053 IFS=$lt_save_ifs 6054 test -z "$ac_dir" && ac_dir=. 6055 tmp_nm=$ac_dir/$lt_tmp_nm 6056 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 6057 # Check to see if the nm accepts a BSD-compat flag. 6058 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 6059 # nm: unknown option "B" ignored 6060 # Tru64's nm complains that /dev/null is an invalid object file 6061 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 6062 case $build_os in 6063 mingw*) lt_bad_file=conftest.nm/nofile ;; 6064 *) lt_bad_file=/dev/null ;; 6065 esac 6066 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 6067 *$lt_bad_file* | *'Invalid file or object type'*) 6068 lt_cv_path_NM="$tmp_nm -B" 6069 break 2 6070 ;; 6071 *) 6072 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6073 */dev/null*) 6074 lt_cv_path_NM="$tmp_nm -p" 6075 break 2 6076 ;; 6077 *) 6078 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6079 continue # so that we can try to find one that supports BSD flags 6080 ;; 6081 esac 6082 ;; 6083 esac 6084 fi 6085 done 6086 IFS=$lt_save_ifs 6087 done 6088 : ${lt_cv_path_NM=no} 6089fi 6090fi 6091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6092$as_echo "$lt_cv_path_NM" >&6; } 6093if test no != "$lt_cv_path_NM"; then 6094 NM=$lt_cv_path_NM 6095else 6096 # Didn't find any BSD compatible name lister, look for dumpbin. 6097 if test -n "$DUMPBIN"; then : 6098 # Let the user override the test. 6099 else 6100 if test -n "$ac_tool_prefix"; then 6101 for ac_prog in dumpbin "link -dump" 6102 do 6103 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6104set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6106$as_echo_n "checking for $ac_word... " >&6; } 6107if ${ac_cv_prog_DUMPBIN+:} false; then : 6108 $as_echo_n "(cached) " >&6 6109else 6110 if test -n "$DUMPBIN"; then 6111 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6112else 6113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6114for as_dir in $PATH 6115do 6116 IFS=$as_save_IFS 6117 test -z "$as_dir" && as_dir=. 6118 for ac_exec_ext in '' $ac_executable_extensions; do 6119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6120 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6122 break 2 6123 fi 6124done 6125 done 6126IFS=$as_save_IFS 6127 6128fi 6129fi 6130DUMPBIN=$ac_cv_prog_DUMPBIN 6131if test -n "$DUMPBIN"; then 6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6133$as_echo "$DUMPBIN" >&6; } 6134else 6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6136$as_echo "no" >&6; } 6137fi 6138 6139 6140 test -n "$DUMPBIN" && break 6141 done 6142fi 6143if test -z "$DUMPBIN"; then 6144 ac_ct_DUMPBIN=$DUMPBIN 6145 for ac_prog in dumpbin "link -dump" 6146do 6147 # Extract the first word of "$ac_prog", so it can be a program name with args. 6148set dummy $ac_prog; ac_word=$2 6149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6150$as_echo_n "checking for $ac_word... " >&6; } 6151if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 6152 $as_echo_n "(cached) " >&6 6153else 6154 if test -n "$ac_ct_DUMPBIN"; then 6155 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6156else 6157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6158for as_dir in $PATH 6159do 6160 IFS=$as_save_IFS 6161 test -z "$as_dir" && as_dir=. 6162 for ac_exec_ext in '' $ac_executable_extensions; do 6163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6164 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6166 break 2 6167 fi 6168done 6169 done 6170IFS=$as_save_IFS 6171 6172fi 6173fi 6174ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6175if test -n "$ac_ct_DUMPBIN"; then 6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6177$as_echo "$ac_ct_DUMPBIN" >&6; } 6178else 6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6180$as_echo "no" >&6; } 6181fi 6182 6183 6184 test -n "$ac_ct_DUMPBIN" && break 6185done 6186 6187 if test "x$ac_ct_DUMPBIN" = x; then 6188 DUMPBIN=":" 6189 else 6190 case $cross_compiling:$ac_tool_warned in 6191yes:) 6192{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6193$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6194ac_tool_warned=yes ;; 6195esac 6196 DUMPBIN=$ac_ct_DUMPBIN 6197 fi 6198fi 6199 6200 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 6201 *COFF*) 6202 DUMPBIN="$DUMPBIN -symbols -headers" 6203 ;; 6204 *) 6205 DUMPBIN=: 6206 ;; 6207 esac 6208 fi 6209 6210 if test : != "$DUMPBIN"; then 6211 NM=$DUMPBIN 6212 fi 6213fi 6214test -z "$NM" && NM=nm 6215 6216 6217 6218 6219 6220 6221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6222$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6223if ${lt_cv_nm_interface+:} false; then : 6224 $as_echo_n "(cached) " >&6 6225else 6226 lt_cv_nm_interface="BSD nm" 6227 echo "int some_variable = 0;" > conftest.$ac_ext 6228 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6229 (eval "$ac_compile" 2>conftest.err) 6230 cat conftest.err >&5 6231 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6232 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6233 cat conftest.err >&5 6234 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6235 cat conftest.out >&5 6236 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6237 lt_cv_nm_interface="MS dumpbin" 6238 fi 6239 rm -f conftest* 6240fi 6241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6242$as_echo "$lt_cv_nm_interface" >&6; } 6243 6244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6245$as_echo_n "checking whether ln -s works... " >&6; } 6246LN_S=$as_ln_s 6247if test "$LN_S" = "ln -s"; then 6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6249$as_echo "yes" >&6; } 6250else 6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6252$as_echo "no, using $LN_S" >&6; } 6253fi 6254 6255# find the maximum length of command line arguments 6256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6257$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6258if ${lt_cv_sys_max_cmd_len+:} false; then : 6259 $as_echo_n "(cached) " >&6 6260else 6261 i=0 6262 teststring=ABCD 6263 6264 case $build_os in 6265 msdosdjgpp*) 6266 # On DJGPP, this test can blow up pretty badly due to problems in libc 6267 # (any single argument exceeding 2000 bytes causes a buffer overrun 6268 # during glob expansion). Even if it were fixed, the result of this 6269 # check would be larger than it should be. 6270 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6271 ;; 6272 6273 gnu*) 6274 # Under GNU Hurd, this test is not required because there is 6275 # no limit to the length of command line arguments. 6276 # Libtool will interpret -1 as no limit whatsoever 6277 lt_cv_sys_max_cmd_len=-1; 6278 ;; 6279 6280 cygwin* | mingw* | cegcc*) 6281 # On Win9x/ME, this test blows up -- it succeeds, but takes 6282 # about 5 minutes as the teststring grows exponentially. 6283 # Worse, since 9x/ME are not pre-emptively multitasking, 6284 # you end up with a "frozen" computer, even though with patience 6285 # the test eventually succeeds (with a max line length of 256k). 6286 # Instead, let's just punt: use the minimum linelength reported by 6287 # all of the supported platforms: 8192 (on NT/2K/XP). 6288 lt_cv_sys_max_cmd_len=8192; 6289 ;; 6290 6291 mint*) 6292 # On MiNT this can take a long time and run out of memory. 6293 lt_cv_sys_max_cmd_len=8192; 6294 ;; 6295 6296 amigaos*) 6297 # On AmigaOS with pdksh, this test takes hours, literally. 6298 # So we just punt and use a minimum line length of 8192. 6299 lt_cv_sys_max_cmd_len=8192; 6300 ;; 6301 6302 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 6303 # This has been around since 386BSD, at least. Likely further. 6304 if test -x /sbin/sysctl; then 6305 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6306 elif test -x /usr/sbin/sysctl; then 6307 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6308 else 6309 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6310 fi 6311 # And add a safety zone 6312 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6313 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6314 ;; 6315 6316 interix*) 6317 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6318 lt_cv_sys_max_cmd_len=196608 6319 ;; 6320 6321 os2*) 6322 # The test takes a long time on OS/2. 6323 lt_cv_sys_max_cmd_len=8192 6324 ;; 6325 6326 osf*) 6327 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6328 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6329 # nice to cause kernel panics so lets avoid the loop below. 6330 # First set a reasonable default. 6331 lt_cv_sys_max_cmd_len=16384 6332 # 6333 if test -x /sbin/sysconfig; then 6334 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6335 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6336 esac 6337 fi 6338 ;; 6339 sco3.2v5*) 6340 lt_cv_sys_max_cmd_len=102400 6341 ;; 6342 sysv5* | sco5v6* | sysv4.2uw2*) 6343 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6344 if test -n "$kargmax"; then 6345 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6346 else 6347 lt_cv_sys_max_cmd_len=32768 6348 fi 6349 ;; 6350 *) 6351 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6352 if test -n "$lt_cv_sys_max_cmd_len" && \ 6353 test undefined != "$lt_cv_sys_max_cmd_len"; then 6354 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6355 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6356 else 6357 # Make teststring a little bigger before we do anything with it. 6358 # a 1K string should be a reasonable start. 6359 for i in 1 2 3 4 5 6 7 8; do 6360 teststring=$teststring$teststring 6361 done 6362 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6363 # If test is not a shell built-in, we'll probably end up computing a 6364 # maximum length that is only half of the actual maximum length, but 6365 # we can't tell. 6366 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6367 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6368 test 17 != "$i" # 1/2 MB should be enough 6369 do 6370 i=`expr $i + 1` 6371 teststring=$teststring$teststring 6372 done 6373 # Only check the string length outside the loop. 6374 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6375 teststring= 6376 # Add a significant safety factor because C++ compilers can tack on 6377 # massive amounts of additional arguments before passing them to the 6378 # linker. It appears as though 1/2 is a usable value. 6379 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6380 fi 6381 ;; 6382 esac 6383 6384fi 6385 6386if test -n "$lt_cv_sys_max_cmd_len"; then 6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6388$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6389else 6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6391$as_echo "none" >&6; } 6392fi 6393max_cmd_len=$lt_cv_sys_max_cmd_len 6394 6395 6396 6397 6398 6399 6400: ${CP="cp -f"} 6401: ${MV="mv -f"} 6402: ${RM="rm -f"} 6403 6404if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6405 lt_unset=unset 6406else 6407 lt_unset=false 6408fi 6409 6410 6411 6412 6413 6414# test EBCDIC or ASCII 6415case `echo X|tr X '\101'` in 6416 A) # ASCII based system 6417 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6418 lt_SP2NL='tr \040 \012' 6419 lt_NL2SP='tr \015\012 \040\040' 6420 ;; 6421 *) # EBCDIC based system 6422 lt_SP2NL='tr \100 \n' 6423 lt_NL2SP='tr \r\n \100\100' 6424 ;; 6425esac 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6436$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6437if ${lt_cv_to_host_file_cmd+:} false; then : 6438 $as_echo_n "(cached) " >&6 6439else 6440 case $host in 6441 *-*-mingw* ) 6442 case $build in 6443 *-*-mingw* ) # actually msys 6444 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6445 ;; 6446 *-*-cygwin* ) 6447 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6448 ;; 6449 * ) # otherwise, assume *nix 6450 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6451 ;; 6452 esac 6453 ;; 6454 *-*-cygwin* ) 6455 case $build in 6456 *-*-mingw* ) # actually msys 6457 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6458 ;; 6459 *-*-cygwin* ) 6460 lt_cv_to_host_file_cmd=func_convert_file_noop 6461 ;; 6462 * ) # otherwise, assume *nix 6463 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6464 ;; 6465 esac 6466 ;; 6467 * ) # unhandled hosts (and "normal" native builds) 6468 lt_cv_to_host_file_cmd=func_convert_file_noop 6469 ;; 6470esac 6471 6472fi 6473 6474to_host_file_cmd=$lt_cv_to_host_file_cmd 6475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6476$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6477 6478 6479 6480 6481 6482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6483$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6484if ${lt_cv_to_tool_file_cmd+:} false; then : 6485 $as_echo_n "(cached) " >&6 6486else 6487 #assume ordinary cross tools, or native build. 6488lt_cv_to_tool_file_cmd=func_convert_file_noop 6489case $host in 6490 *-*-mingw* ) 6491 case $build in 6492 *-*-mingw* ) # actually msys 6493 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6494 ;; 6495 esac 6496 ;; 6497esac 6498 6499fi 6500 6501to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6503$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6504 6505 6506 6507 6508 6509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6510$as_echo_n "checking for $LD option to reload object files... " >&6; } 6511if ${lt_cv_ld_reload_flag+:} false; then : 6512 $as_echo_n "(cached) " >&6 6513else 6514 lt_cv_ld_reload_flag='-r' 6515fi 6516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6517$as_echo "$lt_cv_ld_reload_flag" >&6; } 6518reload_flag=$lt_cv_ld_reload_flag 6519case $reload_flag in 6520"" | " "*) ;; 6521*) reload_flag=" $reload_flag" ;; 6522esac 6523reload_cmds='$LD$reload_flag -o $output$reload_objs' 6524case $host_os in 6525 cygwin* | mingw* | pw32* | cegcc*) 6526 if test yes != "$GCC"; then 6527 reload_cmds=false 6528 fi 6529 ;; 6530 darwin*) 6531 if test yes = "$GCC"; then 6532 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6533 else 6534 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6535 fi 6536 ;; 6537esac 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547if test -n "$ac_tool_prefix"; then 6548 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6549set dummy ${ac_tool_prefix}objdump; ac_word=$2 6550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6551$as_echo_n "checking for $ac_word... " >&6; } 6552if ${ac_cv_prog_OBJDUMP+:} false; then : 6553 $as_echo_n "(cached) " >&6 6554else 6555 if test -n "$OBJDUMP"; then 6556 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6557else 6558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6559for as_dir in $PATH 6560do 6561 IFS=$as_save_IFS 6562 test -z "$as_dir" && as_dir=. 6563 for ac_exec_ext in '' $ac_executable_extensions; do 6564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6565 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6567 break 2 6568 fi 6569done 6570 done 6571IFS=$as_save_IFS 6572 6573fi 6574fi 6575OBJDUMP=$ac_cv_prog_OBJDUMP 6576if test -n "$OBJDUMP"; then 6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6578$as_echo "$OBJDUMP" >&6; } 6579else 6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6581$as_echo "no" >&6; } 6582fi 6583 6584 6585fi 6586if test -z "$ac_cv_prog_OBJDUMP"; then 6587 ac_ct_OBJDUMP=$OBJDUMP 6588 # Extract the first word of "objdump", so it can be a program name with args. 6589set dummy objdump; ac_word=$2 6590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6591$as_echo_n "checking for $ac_word... " >&6; } 6592if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6593 $as_echo_n "(cached) " >&6 6594else 6595 if test -n "$ac_ct_OBJDUMP"; then 6596 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6597else 6598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6599for as_dir in $PATH 6600do 6601 IFS=$as_save_IFS 6602 test -z "$as_dir" && as_dir=. 6603 for ac_exec_ext in '' $ac_executable_extensions; do 6604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6605 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6607 break 2 6608 fi 6609done 6610 done 6611IFS=$as_save_IFS 6612 6613fi 6614fi 6615ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6616if test -n "$ac_ct_OBJDUMP"; then 6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6618$as_echo "$ac_ct_OBJDUMP" >&6; } 6619else 6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6621$as_echo "no" >&6; } 6622fi 6623 6624 if test "x$ac_ct_OBJDUMP" = x; then 6625 OBJDUMP="false" 6626 else 6627 case $cross_compiling:$ac_tool_warned in 6628yes:) 6629{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6630$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6631ac_tool_warned=yes ;; 6632esac 6633 OBJDUMP=$ac_ct_OBJDUMP 6634 fi 6635else 6636 OBJDUMP="$ac_cv_prog_OBJDUMP" 6637fi 6638 6639test -z "$OBJDUMP" && OBJDUMP=objdump 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6650$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6651if ${lt_cv_deplibs_check_method+:} false; then : 6652 $as_echo_n "(cached) " >&6 6653else 6654 lt_cv_file_magic_cmd='$MAGIC_CMD' 6655lt_cv_file_magic_test_file= 6656lt_cv_deplibs_check_method='unknown' 6657# Need to set the preceding variable on all platforms that support 6658# interlibrary dependencies. 6659# 'none' -- dependencies not supported. 6660# 'unknown' -- same as none, but documents that we really don't know. 6661# 'pass_all' -- all dependencies passed with no checks. 6662# 'test_compile' -- check by making test program. 6663# 'file_magic [[regex]]' -- check by looking for files in library path 6664# that responds to the $file_magic_cmd with a given extended regex. 6665# If you have 'file' or equivalent on your system and you're not sure 6666# whether 'pass_all' will *always* work, you probably want this one. 6667 6668case $host_os in 6669aix[4-9]*) 6670 lt_cv_deplibs_check_method=pass_all 6671 ;; 6672 6673beos*) 6674 lt_cv_deplibs_check_method=pass_all 6675 ;; 6676 6677bsdi[45]*) 6678 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6679 lt_cv_file_magic_cmd='/usr/bin/file -L' 6680 lt_cv_file_magic_test_file=/shlib/libc.so 6681 ;; 6682 6683cygwin*) 6684 # func_win32_libid is a shell function defined in ltmain.sh 6685 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6686 lt_cv_file_magic_cmd='func_win32_libid' 6687 ;; 6688 6689mingw* | pw32*) 6690 # Base MSYS/MinGW do not provide the 'file' command needed by 6691 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6692 # unless we find 'file', for example because we are cross-compiling. 6693 if ( file / ) >/dev/null 2>&1; then 6694 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6695 lt_cv_file_magic_cmd='func_win32_libid' 6696 else 6697 # Keep this pattern in sync with the one in func_win32_libid. 6698 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6699 lt_cv_file_magic_cmd='$OBJDUMP -f' 6700 fi 6701 ;; 6702 6703cegcc*) 6704 # use the weaker test based on 'objdump'. See mingw*. 6705 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6706 lt_cv_file_magic_cmd='$OBJDUMP -f' 6707 ;; 6708 6709darwin* | rhapsody*) 6710 lt_cv_deplibs_check_method=pass_all 6711 ;; 6712 6713freebsd* | dragonfly*) 6714 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6715 case $host_cpu in 6716 i*86 ) 6717 # Not sure whether the presence of OpenBSD here was a mistake. 6718 # Let's accept both of them until this is cleared up. 6719 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6720 lt_cv_file_magic_cmd=/usr/bin/file 6721 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6722 ;; 6723 esac 6724 else 6725 lt_cv_deplibs_check_method=pass_all 6726 fi 6727 ;; 6728 6729haiku*) 6730 lt_cv_deplibs_check_method=pass_all 6731 ;; 6732 6733hpux10.20* | hpux11*) 6734 lt_cv_file_magic_cmd=/usr/bin/file 6735 case $host_cpu in 6736 ia64*) 6737 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6738 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6739 ;; 6740 hppa*64*) 6741 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]' 6742 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6743 ;; 6744 *) 6745 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6746 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6747 ;; 6748 esac 6749 ;; 6750 6751interix[3-9]*) 6752 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6753 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6754 ;; 6755 6756irix5* | irix6* | nonstopux*) 6757 case $LD in 6758 *-32|*"-32 ") libmagic=32-bit;; 6759 *-n32|*"-n32 ") libmagic=N32;; 6760 *-64|*"-64 ") libmagic=64-bit;; 6761 *) libmagic=never-match;; 6762 esac 6763 lt_cv_deplibs_check_method=pass_all 6764 ;; 6765 6766# This must be glibc/ELF. 6767linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6768 lt_cv_deplibs_check_method=pass_all 6769 ;; 6770 6771netbsd* | netbsdelf*-gnu) 6772 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6773 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6774 else 6775 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6776 fi 6777 ;; 6778 6779newos6*) 6780 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6781 lt_cv_file_magic_cmd=/usr/bin/file 6782 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6783 ;; 6784 6785*nto* | *qnx*) 6786 lt_cv_deplibs_check_method=pass_all 6787 ;; 6788 6789openbsd* | bitrig*) 6790 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6791 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6792 else 6793 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6794 fi 6795 ;; 6796 6797osf3* | osf4* | osf5*) 6798 lt_cv_deplibs_check_method=pass_all 6799 ;; 6800 6801rdos*) 6802 lt_cv_deplibs_check_method=pass_all 6803 ;; 6804 6805solaris*) 6806 lt_cv_deplibs_check_method=pass_all 6807 ;; 6808 6809sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6810 lt_cv_deplibs_check_method=pass_all 6811 ;; 6812 6813sysv4 | sysv4.3*) 6814 case $host_vendor in 6815 motorola) 6816 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]' 6817 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6818 ;; 6819 ncr) 6820 lt_cv_deplibs_check_method=pass_all 6821 ;; 6822 sequent) 6823 lt_cv_file_magic_cmd='/bin/file' 6824 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6825 ;; 6826 sni) 6827 lt_cv_file_magic_cmd='/bin/file' 6828 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6829 lt_cv_file_magic_test_file=/lib/libc.so 6830 ;; 6831 siemens) 6832 lt_cv_deplibs_check_method=pass_all 6833 ;; 6834 pc) 6835 lt_cv_deplibs_check_method=pass_all 6836 ;; 6837 esac 6838 ;; 6839 6840tpf*) 6841 lt_cv_deplibs_check_method=pass_all 6842 ;; 6843os2*) 6844 lt_cv_deplibs_check_method=pass_all 6845 ;; 6846esac 6847 6848fi 6849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6850$as_echo "$lt_cv_deplibs_check_method" >&6; } 6851 6852file_magic_glob= 6853want_nocaseglob=no 6854if test "$build" = "$host"; then 6855 case $host_os in 6856 mingw* | pw32*) 6857 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6858 want_nocaseglob=yes 6859 else 6860 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6861 fi 6862 ;; 6863 esac 6864fi 6865 6866file_magic_cmd=$lt_cv_file_magic_cmd 6867deplibs_check_method=$lt_cv_deplibs_check_method 6868test -z "$deplibs_check_method" && deplibs_check_method=unknown 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891if test -n "$ac_tool_prefix"; then 6892 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6893set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6895$as_echo_n "checking for $ac_word... " >&6; } 6896if ${ac_cv_prog_DLLTOOL+:} false; then : 6897 $as_echo_n "(cached) " >&6 6898else 6899 if test -n "$DLLTOOL"; then 6900 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6901else 6902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6903for as_dir in $PATH 6904do 6905 IFS=$as_save_IFS 6906 test -z "$as_dir" && as_dir=. 6907 for ac_exec_ext in '' $ac_executable_extensions; do 6908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6909 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6911 break 2 6912 fi 6913done 6914 done 6915IFS=$as_save_IFS 6916 6917fi 6918fi 6919DLLTOOL=$ac_cv_prog_DLLTOOL 6920if test -n "$DLLTOOL"; then 6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6922$as_echo "$DLLTOOL" >&6; } 6923else 6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6925$as_echo "no" >&6; } 6926fi 6927 6928 6929fi 6930if test -z "$ac_cv_prog_DLLTOOL"; then 6931 ac_ct_DLLTOOL=$DLLTOOL 6932 # Extract the first word of "dlltool", so it can be a program name with args. 6933set dummy dlltool; ac_word=$2 6934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6935$as_echo_n "checking for $ac_word... " >&6; } 6936if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6937 $as_echo_n "(cached) " >&6 6938else 6939 if test -n "$ac_ct_DLLTOOL"; then 6940 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6941else 6942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6943for as_dir in $PATH 6944do 6945 IFS=$as_save_IFS 6946 test -z "$as_dir" && as_dir=. 6947 for ac_exec_ext in '' $ac_executable_extensions; do 6948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6949 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6951 break 2 6952 fi 6953done 6954 done 6955IFS=$as_save_IFS 6956 6957fi 6958fi 6959ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6960if test -n "$ac_ct_DLLTOOL"; then 6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6962$as_echo "$ac_ct_DLLTOOL" >&6; } 6963else 6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6965$as_echo "no" >&6; } 6966fi 6967 6968 if test "x$ac_ct_DLLTOOL" = x; then 6969 DLLTOOL="false" 6970 else 6971 case $cross_compiling:$ac_tool_warned in 6972yes:) 6973{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6974$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6975ac_tool_warned=yes ;; 6976esac 6977 DLLTOOL=$ac_ct_DLLTOOL 6978 fi 6979else 6980 DLLTOOL="$ac_cv_prog_DLLTOOL" 6981fi 6982 6983test -z "$DLLTOOL" && DLLTOOL=dlltool 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6995$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6996if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6997 $as_echo_n "(cached) " >&6 6998else 6999 lt_cv_sharedlib_from_linklib_cmd='unknown' 7000 7001case $host_os in 7002cygwin* | mingw* | pw32* | cegcc*) 7003 # two different shell functions defined in ltmain.sh; 7004 # decide which one to use based on capabilities of $DLLTOOL 7005 case `$DLLTOOL --help 2>&1` in 7006 *--identify-strict*) 7007 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 7008 ;; 7009 *) 7010 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 7011 ;; 7012 esac 7013 ;; 7014*) 7015 # fallback: assume linklib IS sharedlib 7016 lt_cv_sharedlib_from_linklib_cmd=$ECHO 7017 ;; 7018esac 7019 7020fi 7021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 7022$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 7023sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 7024test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 7025 7026 7027 7028 7029 7030 7031 7032 7033if test -n "$ac_tool_prefix"; then 7034 for ac_prog in ar 7035 do 7036 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7037set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7039$as_echo_n "checking for $ac_word... " >&6; } 7040if ${ac_cv_prog_AR+:} false; then : 7041 $as_echo_n "(cached) " >&6 7042else 7043 if test -n "$AR"; then 7044 ac_cv_prog_AR="$AR" # Let the user override the test. 7045else 7046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7047for as_dir in $PATH 7048do 7049 IFS=$as_save_IFS 7050 test -z "$as_dir" && as_dir=. 7051 for ac_exec_ext in '' $ac_executable_extensions; do 7052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7053 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7055 break 2 7056 fi 7057done 7058 done 7059IFS=$as_save_IFS 7060 7061fi 7062fi 7063AR=$ac_cv_prog_AR 7064if test -n "$AR"; then 7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7066$as_echo "$AR" >&6; } 7067else 7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7069$as_echo "no" >&6; } 7070fi 7071 7072 7073 test -n "$AR" && break 7074 done 7075fi 7076if test -z "$AR"; then 7077 ac_ct_AR=$AR 7078 for ac_prog in ar 7079do 7080 # Extract the first word of "$ac_prog", so it can be a program name with args. 7081set dummy $ac_prog; ac_word=$2 7082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7083$as_echo_n "checking for $ac_word... " >&6; } 7084if ${ac_cv_prog_ac_ct_AR+:} false; then : 7085 $as_echo_n "(cached) " >&6 7086else 7087 if test -n "$ac_ct_AR"; then 7088 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7089else 7090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7091for as_dir in $PATH 7092do 7093 IFS=$as_save_IFS 7094 test -z "$as_dir" && as_dir=. 7095 for ac_exec_ext in '' $ac_executable_extensions; do 7096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7097 ac_cv_prog_ac_ct_AR="$ac_prog" 7098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7099 break 2 7100 fi 7101done 7102 done 7103IFS=$as_save_IFS 7104 7105fi 7106fi 7107ac_ct_AR=$ac_cv_prog_ac_ct_AR 7108if test -n "$ac_ct_AR"; then 7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7110$as_echo "$ac_ct_AR" >&6; } 7111else 7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7113$as_echo "no" >&6; } 7114fi 7115 7116 7117 test -n "$ac_ct_AR" && break 7118done 7119 7120 if test "x$ac_ct_AR" = x; then 7121 AR="false" 7122 else 7123 case $cross_compiling:$ac_tool_warned in 7124yes:) 7125{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7126$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7127ac_tool_warned=yes ;; 7128esac 7129 AR=$ac_ct_AR 7130 fi 7131fi 7132 7133: ${AR=ar} 7134: ${AR_FLAGS=cru} 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7147$as_echo_n "checking for archiver @FILE support... " >&6; } 7148if ${lt_cv_ar_at_file+:} false; then : 7149 $as_echo_n "(cached) " >&6 7150else 7151 lt_cv_ar_at_file=no 7152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7153/* end confdefs.h. */ 7154 7155int 7156main () 7157{ 7158 7159 ; 7160 return 0; 7161} 7162_ACEOF 7163if ac_fn_c_try_compile "$LINENO"; then : 7164 echo conftest.$ac_objext > conftest.lst 7165 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7167 (eval $lt_ar_try) 2>&5 7168 ac_status=$? 7169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7170 test $ac_status = 0; } 7171 if test 0 -eq "$ac_status"; then 7172 # Ensure the archiver fails upon bogus file names. 7173 rm -f conftest.$ac_objext libconftest.a 7174 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7175 (eval $lt_ar_try) 2>&5 7176 ac_status=$? 7177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7178 test $ac_status = 0; } 7179 if test 0 -ne "$ac_status"; then 7180 lt_cv_ar_at_file=@ 7181 fi 7182 fi 7183 rm -f conftest.* libconftest.a 7184 7185fi 7186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7187 7188fi 7189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7190$as_echo "$lt_cv_ar_at_file" >&6; } 7191 7192if test no = "$lt_cv_ar_at_file"; then 7193 archiver_list_spec= 7194else 7195 archiver_list_spec=$lt_cv_ar_at_file 7196fi 7197 7198 7199 7200 7201 7202 7203 7204if test -n "$ac_tool_prefix"; then 7205 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7206set dummy ${ac_tool_prefix}strip; ac_word=$2 7207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7208$as_echo_n "checking for $ac_word... " >&6; } 7209if ${ac_cv_prog_STRIP+:} false; then : 7210 $as_echo_n "(cached) " >&6 7211else 7212 if test -n "$STRIP"; then 7213 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7214else 7215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7216for as_dir in $PATH 7217do 7218 IFS=$as_save_IFS 7219 test -z "$as_dir" && as_dir=. 7220 for ac_exec_ext in '' $ac_executable_extensions; do 7221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7222 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7224 break 2 7225 fi 7226done 7227 done 7228IFS=$as_save_IFS 7229 7230fi 7231fi 7232STRIP=$ac_cv_prog_STRIP 7233if test -n "$STRIP"; then 7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7235$as_echo "$STRIP" >&6; } 7236else 7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7238$as_echo "no" >&6; } 7239fi 7240 7241 7242fi 7243if test -z "$ac_cv_prog_STRIP"; then 7244 ac_ct_STRIP=$STRIP 7245 # Extract the first word of "strip", so it can be a program name with args. 7246set dummy strip; ac_word=$2 7247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7248$as_echo_n "checking for $ac_word... " >&6; } 7249if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 7250 $as_echo_n "(cached) " >&6 7251else 7252 if test -n "$ac_ct_STRIP"; then 7253 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7254else 7255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7256for as_dir in $PATH 7257do 7258 IFS=$as_save_IFS 7259 test -z "$as_dir" && as_dir=. 7260 for ac_exec_ext in '' $ac_executable_extensions; do 7261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7262 ac_cv_prog_ac_ct_STRIP="strip" 7263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7264 break 2 7265 fi 7266done 7267 done 7268IFS=$as_save_IFS 7269 7270fi 7271fi 7272ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7273if test -n "$ac_ct_STRIP"; then 7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7275$as_echo "$ac_ct_STRIP" >&6; } 7276else 7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7278$as_echo "no" >&6; } 7279fi 7280 7281 if test "x$ac_ct_STRIP" = x; then 7282 STRIP=":" 7283 else 7284 case $cross_compiling:$ac_tool_warned in 7285yes:) 7286{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7287$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7288ac_tool_warned=yes ;; 7289esac 7290 STRIP=$ac_ct_STRIP 7291 fi 7292else 7293 STRIP="$ac_cv_prog_STRIP" 7294fi 7295 7296test -z "$STRIP" && STRIP=: 7297 7298 7299 7300 7301 7302 7303if test -n "$ac_tool_prefix"; then 7304 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7305set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7307$as_echo_n "checking for $ac_word... " >&6; } 7308if ${ac_cv_prog_RANLIB+:} false; then : 7309 $as_echo_n "(cached) " >&6 7310else 7311 if test -n "$RANLIB"; then 7312 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7313else 7314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7315for as_dir in $PATH 7316do 7317 IFS=$as_save_IFS 7318 test -z "$as_dir" && as_dir=. 7319 for ac_exec_ext in '' $ac_executable_extensions; do 7320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7321 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7323 break 2 7324 fi 7325done 7326 done 7327IFS=$as_save_IFS 7328 7329fi 7330fi 7331RANLIB=$ac_cv_prog_RANLIB 7332if test -n "$RANLIB"; then 7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7334$as_echo "$RANLIB" >&6; } 7335else 7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7337$as_echo "no" >&6; } 7338fi 7339 7340 7341fi 7342if test -z "$ac_cv_prog_RANLIB"; then 7343 ac_ct_RANLIB=$RANLIB 7344 # Extract the first word of "ranlib", so it can be a program name with args. 7345set dummy ranlib; ac_word=$2 7346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7347$as_echo_n "checking for $ac_word... " >&6; } 7348if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7349 $as_echo_n "(cached) " >&6 7350else 7351 if test -n "$ac_ct_RANLIB"; then 7352 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7353else 7354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7355for as_dir in $PATH 7356do 7357 IFS=$as_save_IFS 7358 test -z "$as_dir" && as_dir=. 7359 for ac_exec_ext in '' $ac_executable_extensions; do 7360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7361 ac_cv_prog_ac_ct_RANLIB="ranlib" 7362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7363 break 2 7364 fi 7365done 7366 done 7367IFS=$as_save_IFS 7368 7369fi 7370fi 7371ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7372if test -n "$ac_ct_RANLIB"; then 7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7374$as_echo "$ac_ct_RANLIB" >&6; } 7375else 7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7377$as_echo "no" >&6; } 7378fi 7379 7380 if test "x$ac_ct_RANLIB" = x; then 7381 RANLIB=":" 7382 else 7383 case $cross_compiling:$ac_tool_warned in 7384yes:) 7385{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7386$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7387ac_tool_warned=yes ;; 7388esac 7389 RANLIB=$ac_ct_RANLIB 7390 fi 7391else 7392 RANLIB="$ac_cv_prog_RANLIB" 7393fi 7394 7395test -z "$RANLIB" && RANLIB=: 7396 7397 7398 7399 7400 7401 7402# Determine commands to create old-style static archives. 7403old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7404old_postinstall_cmds='chmod 644 $oldlib' 7405old_postuninstall_cmds= 7406 7407if test -n "$RANLIB"; then 7408 case $host_os in 7409 bitrig* | openbsd*) 7410 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7411 ;; 7412 *) 7413 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7414 ;; 7415 esac 7416 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7417fi 7418 7419case $host_os in 7420 darwin*) 7421 lock_old_archive_extraction=yes ;; 7422 *) 7423 lock_old_archive_extraction=no ;; 7424esac 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464# If no C compiler was specified, use CC. 7465LTCC=${LTCC-"$CC"} 7466 7467# If no C compiler flags were specified, use CFLAGS. 7468LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7469 7470# Allow CC to be a program name with arguments. 7471compiler=$CC 7472 7473 7474# Check for command to grab the raw symbol name followed by C symbol from nm. 7475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7476$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7477if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7478 $as_echo_n "(cached) " >&6 7479else 7480 7481# These are sane defaults that work on at least a few old systems. 7482# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7483 7484# Character class describing NM global symbol codes. 7485symcode='[BCDEGRST]' 7486 7487# Regexp to match symbols that can be accessed directly from C. 7488sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7489 7490# Define system-specific variables. 7491case $host_os in 7492aix*) 7493 symcode='[BCDT]' 7494 ;; 7495cygwin* | mingw* | pw32* | cegcc*) 7496 symcode='[ABCDGISTW]' 7497 ;; 7498hpux*) 7499 if test ia64 = "$host_cpu"; then 7500 symcode='[ABCDEGRST]' 7501 fi 7502 ;; 7503irix* | nonstopux*) 7504 symcode='[BCDEGRST]' 7505 ;; 7506osf*) 7507 symcode='[BCDEGQRST]' 7508 ;; 7509solaris*) 7510 symcode='[BDRT]' 7511 ;; 7512sco3.2v5*) 7513 symcode='[DT]' 7514 ;; 7515sysv4.2uw2*) 7516 symcode='[DT]' 7517 ;; 7518sysv5* | sco5v6* | unixware* | OpenUNIX*) 7519 symcode='[ABDT]' 7520 ;; 7521sysv4) 7522 symcode='[DFNSTU]' 7523 ;; 7524esac 7525 7526# If we're using GNU nm, then use its standard symbol codes. 7527case `$NM -V 2>&1` in 7528*GNU* | *'with BFD'*) 7529 symcode='[ABCDGIRSTW]' ;; 7530esac 7531 7532if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7533 # Gets list of data symbols to import. 7534 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 7535 # Adjust the below global symbol transforms to fixup imported variables. 7536 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7537 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7538 lt_c_name_lib_hook="\ 7539 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7540 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7541else 7542 # Disable hooks by default. 7543 lt_cv_sys_global_symbol_to_import= 7544 lt_cdecl_hook= 7545 lt_c_name_hook= 7546 lt_c_name_lib_hook= 7547fi 7548 7549# Transform an extracted symbol line into a proper C declaration. 7550# Some systems (esp. on ia64) link data and code symbols differently, 7551# so use this general approach. 7552lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 7553$lt_cdecl_hook\ 7554" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7555" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7556 7557# Transform an extracted symbol line into symbol name and symbol address 7558lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7559$lt_c_name_hook\ 7560" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7561" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7562 7563# Transform an extracted symbol line into symbol name with lib prefix and 7564# symbol address. 7565lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7566$lt_c_name_lib_hook\ 7567" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7568" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7569" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7570 7571# Handle CRLF in mingw tool chain 7572opt_cr= 7573case $build_os in 7574mingw*) 7575 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7576 ;; 7577esac 7578 7579# Try without a prefix underscore, then with it. 7580for ac_symprfx in "" "_"; do 7581 7582 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7583 symxfrm="\\1 $ac_symprfx\\2 \\2" 7584 7585 # Write the raw and C identifiers. 7586 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7587 # Fake it for dumpbin and say T for any non-static function, 7588 # D for any global variable and I for any imported variable. 7589 # Also find C++ and __fastcall symbols from MSVC++, 7590 # which start with @ or ?. 7591 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7592" {last_section=section; section=\$ 3};"\ 7593" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7594" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7595" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7596" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7597" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7598" \$ 0!~/External *\|/{next};"\ 7599" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7600" {if(hide[section]) next};"\ 7601" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7602" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7603" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7604" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7605" ' prfx=^$ac_symprfx" 7606 else 7607 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7608 fi 7609 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7610 7611 # Check to see that the pipe works correctly. 7612 pipe_works=no 7613 7614 rm -f conftest* 7615 cat > conftest.$ac_ext <<_LT_EOF 7616#ifdef __cplusplus 7617extern "C" { 7618#endif 7619char nm_test_var; 7620void nm_test_func(void); 7621void nm_test_func(void){} 7622#ifdef __cplusplus 7623} 7624#endif 7625int main(){nm_test_var='a';nm_test_func();return(0);} 7626_LT_EOF 7627 7628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7629 (eval $ac_compile) 2>&5 7630 ac_status=$? 7631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7632 test $ac_status = 0; }; then 7633 # Now try to grab the symbols. 7634 nlist=conftest.nm 7635 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7636 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7637 ac_status=$? 7638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7639 test $ac_status = 0; } && test -s "$nlist"; then 7640 # Try sorting and uniquifying the output. 7641 if sort "$nlist" | uniq > "$nlist"T; then 7642 mv -f "$nlist"T "$nlist" 7643 else 7644 rm -f "$nlist"T 7645 fi 7646 7647 # Make sure that we snagged all the symbols we need. 7648 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7649 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7650 cat <<_LT_EOF > conftest.$ac_ext 7651/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7652#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7653/* DATA imports from DLLs on WIN32 can't be const, because runtime 7654 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7655# define LT_DLSYM_CONST 7656#elif defined __osf__ 7657/* This system does not cope well with relocations in const data. */ 7658# define LT_DLSYM_CONST 7659#else 7660# define LT_DLSYM_CONST const 7661#endif 7662 7663#ifdef __cplusplus 7664extern "C" { 7665#endif 7666 7667_LT_EOF 7668 # Now generate the symbol file. 7669 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7670 7671 cat <<_LT_EOF >> conftest.$ac_ext 7672 7673/* The mapping between symbol names and symbols. */ 7674LT_DLSYM_CONST struct { 7675 const char *name; 7676 void *address; 7677} 7678lt__PROGRAM__LTX_preloaded_symbols[] = 7679{ 7680 { "@PROGRAM@", (void *) 0 }, 7681_LT_EOF 7682 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7683 cat <<\_LT_EOF >> conftest.$ac_ext 7684 {0, (void *) 0} 7685}; 7686 7687/* This works around a problem in FreeBSD linker */ 7688#ifdef FREEBSD_WORKAROUND 7689static const void *lt_preloaded_setup() { 7690 return lt__PROGRAM__LTX_preloaded_symbols; 7691} 7692#endif 7693 7694#ifdef __cplusplus 7695} 7696#endif 7697_LT_EOF 7698 # Now try linking the two files. 7699 mv conftest.$ac_objext conftstm.$ac_objext 7700 lt_globsym_save_LIBS=$LIBS 7701 lt_globsym_save_CFLAGS=$CFLAGS 7702 LIBS=conftstm.$ac_objext 7703 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7704 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7705 (eval $ac_link) 2>&5 7706 ac_status=$? 7707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7708 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7709 pipe_works=yes 7710 fi 7711 LIBS=$lt_globsym_save_LIBS 7712 CFLAGS=$lt_globsym_save_CFLAGS 7713 else 7714 echo "cannot find nm_test_func in $nlist" >&5 7715 fi 7716 else 7717 echo "cannot find nm_test_var in $nlist" >&5 7718 fi 7719 else 7720 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7721 fi 7722 else 7723 echo "$progname: failed program was:" >&5 7724 cat conftest.$ac_ext >&5 7725 fi 7726 rm -rf conftest* conftst* 7727 7728 # Do not use the global_symbol_pipe unless it works. 7729 if test yes = "$pipe_works"; then 7730 break 7731 else 7732 lt_cv_sys_global_symbol_pipe= 7733 fi 7734done 7735 7736fi 7737 7738if test -z "$lt_cv_sys_global_symbol_pipe"; then 7739 lt_cv_sys_global_symbol_to_cdecl= 7740fi 7741if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7743$as_echo "failed" >&6; } 7744else 7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7746$as_echo "ok" >&6; } 7747fi 7748 7749# Response file support. 7750if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7751 nm_file_list_spec='@' 7752elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7753 nm_file_list_spec='@' 7754fi 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7793$as_echo_n "checking for sysroot... " >&6; } 7794 7795# Check whether --with-sysroot was given. 7796if test "${with_sysroot+set}" = set; then : 7797 withval=$with_sysroot; 7798else 7799 with_sysroot=no 7800fi 7801 7802 7803lt_sysroot= 7804case $with_sysroot in #( 7805 yes) 7806 if test yes = "$GCC"; then 7807 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7808 fi 7809 ;; #( 7810 /*) 7811 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7812 ;; #( 7813 no|'') 7814 ;; #( 7815 *) 7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7817$as_echo "$with_sysroot" >&6; } 7818 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7819 ;; 7820esac 7821 7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7823$as_echo "${lt_sysroot:-no}" >&6; } 7824 7825 7826 7827 7828 7829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7830$as_echo_n "checking for a working dd... " >&6; } 7831if ${ac_cv_path_lt_DD+:} false; then : 7832 $as_echo_n "(cached) " >&6 7833else 7834 printf 0123456789abcdef0123456789abcdef >conftest.i 7835cat conftest.i conftest.i >conftest2.i 7836: ${lt_DD:=$DD} 7837if test -z "$lt_DD"; then 7838 ac_path_lt_DD_found=false 7839 # Loop through the user's path and test for each of PROGNAME-LIST 7840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7841for as_dir in $PATH 7842do 7843 IFS=$as_save_IFS 7844 test -z "$as_dir" && as_dir=. 7845 for ac_prog in dd; do 7846 for ac_exec_ext in '' $ac_executable_extensions; do 7847 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7848 as_fn_executable_p "$ac_path_lt_DD" || continue 7849if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7850 cmp -s conftest.i conftest.out \ 7851 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7852fi 7853 $ac_path_lt_DD_found && break 3 7854 done 7855 done 7856 done 7857IFS=$as_save_IFS 7858 if test -z "$ac_cv_path_lt_DD"; then 7859 : 7860 fi 7861else 7862 ac_cv_path_lt_DD=$lt_DD 7863fi 7864 7865rm -f conftest.i conftest2.i conftest.out 7866fi 7867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7868$as_echo "$ac_cv_path_lt_DD" >&6; } 7869 7870 7871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7872$as_echo_n "checking how to truncate binary pipes... " >&6; } 7873if ${lt_cv_truncate_bin+:} false; then : 7874 $as_echo_n "(cached) " >&6 7875else 7876 printf 0123456789abcdef0123456789abcdef >conftest.i 7877cat conftest.i conftest.i >conftest2.i 7878lt_cv_truncate_bin= 7879if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7880 cmp -s conftest.i conftest.out \ 7881 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7882fi 7883rm -f conftest.i conftest2.i conftest.out 7884test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7885fi 7886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7887$as_echo "$lt_cv_truncate_bin" >&6; } 7888 7889 7890 7891 7892 7893 7894 7895# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7896func_cc_basename () 7897{ 7898 for cc_temp in $*""; do 7899 case $cc_temp in 7900 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7901 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7902 \-*) ;; 7903 *) break;; 7904 esac 7905 done 7906 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7907} 7908 7909# Check whether --enable-libtool-lock was given. 7910if test "${enable_libtool_lock+set}" = set; then : 7911 enableval=$enable_libtool_lock; 7912fi 7913 7914test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7915 7916# Some flags need to be propagated to the compiler or linker for good 7917# libtool support. 7918case $host in 7919ia64-*-hpux*) 7920 # Find out what ABI is being produced by ac_compile, and set mode 7921 # options accordingly. 7922 echo 'int i;' > conftest.$ac_ext 7923 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7924 (eval $ac_compile) 2>&5 7925 ac_status=$? 7926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7927 test $ac_status = 0; }; then 7928 case `/usr/bin/file conftest.$ac_objext` in 7929 *ELF-32*) 7930 HPUX_IA64_MODE=32 7931 ;; 7932 *ELF-64*) 7933 HPUX_IA64_MODE=64 7934 ;; 7935 esac 7936 fi 7937 rm -rf conftest* 7938 ;; 7939*-*-irix6*) 7940 # Find out what ABI is being produced by ac_compile, and set linker 7941 # options accordingly. 7942 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7943 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7944 (eval $ac_compile) 2>&5 7945 ac_status=$? 7946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7947 test $ac_status = 0; }; then 7948 if test yes = "$lt_cv_prog_gnu_ld"; then 7949 case `/usr/bin/file conftest.$ac_objext` in 7950 *32-bit*) 7951 LD="${LD-ld} -melf32bsmip" 7952 ;; 7953 *N32*) 7954 LD="${LD-ld} -melf32bmipn32" 7955 ;; 7956 *64-bit*) 7957 LD="${LD-ld} -melf64bmip" 7958 ;; 7959 esac 7960 else 7961 case `/usr/bin/file conftest.$ac_objext` in 7962 *32-bit*) 7963 LD="${LD-ld} -32" 7964 ;; 7965 *N32*) 7966 LD="${LD-ld} -n32" 7967 ;; 7968 *64-bit*) 7969 LD="${LD-ld} -64" 7970 ;; 7971 esac 7972 fi 7973 fi 7974 rm -rf conftest* 7975 ;; 7976 7977mips64*-*linux*) 7978 # Find out what ABI is being produced by ac_compile, and set linker 7979 # options accordingly. 7980 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7981 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7982 (eval $ac_compile) 2>&5 7983 ac_status=$? 7984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7985 test $ac_status = 0; }; then 7986 emul=elf 7987 case `/usr/bin/file conftest.$ac_objext` in 7988 *32-bit*) 7989 emul="${emul}32" 7990 ;; 7991 *64-bit*) 7992 emul="${emul}64" 7993 ;; 7994 esac 7995 case `/usr/bin/file conftest.$ac_objext` in 7996 *MSB*) 7997 emul="${emul}btsmip" 7998 ;; 7999 *LSB*) 8000 emul="${emul}ltsmip" 8001 ;; 8002 esac 8003 case `/usr/bin/file conftest.$ac_objext` in 8004 *N32*) 8005 emul="${emul}n32" 8006 ;; 8007 esac 8008 LD="${LD-ld} -m $emul" 8009 fi 8010 rm -rf conftest* 8011 ;; 8012 8013x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 8014s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8015 # Find out what ABI is being produced by ac_compile, and set linker 8016 # options accordingly. Note that the listed cases only cover the 8017 # situations where additional linker options are needed (such as when 8018 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 8019 # vice versa); the common cases where no linker options are needed do 8020 # not appear in the list. 8021 echo 'int i;' > conftest.$ac_ext 8022 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8023 (eval $ac_compile) 2>&5 8024 ac_status=$? 8025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8026 test $ac_status = 0; }; then 8027 case `/usr/bin/file conftest.o` in 8028 *32-bit*) 8029 case $host in 8030 x86_64-*kfreebsd*-gnu) 8031 LD="${LD-ld} -m elf_i386_fbsd" 8032 ;; 8033 x86_64-*linux*) 8034 case `/usr/bin/file conftest.o` in 8035 *x86-64*) 8036 LD="${LD-ld} -m elf32_x86_64" 8037 ;; 8038 *) 8039 LD="${LD-ld} -m elf_i386" 8040 ;; 8041 esac 8042 ;; 8043 powerpc64le-*linux*) 8044 LD="${LD-ld} -m elf32lppclinux" 8045 ;; 8046 powerpc64-*linux*) 8047 LD="${LD-ld} -m elf32ppclinux" 8048 ;; 8049 s390x-*linux*) 8050 LD="${LD-ld} -m elf_s390" 8051 ;; 8052 sparc64-*linux*) 8053 LD="${LD-ld} -m elf32_sparc" 8054 ;; 8055 esac 8056 ;; 8057 *64-bit*) 8058 case $host in 8059 x86_64-*kfreebsd*-gnu) 8060 LD="${LD-ld} -m elf_x86_64_fbsd" 8061 ;; 8062 x86_64-*linux*) 8063 LD="${LD-ld} -m elf_x86_64" 8064 ;; 8065 powerpcle-*linux*) 8066 LD="${LD-ld} -m elf64lppc" 8067 ;; 8068 powerpc-*linux*) 8069 LD="${LD-ld} -m elf64ppc" 8070 ;; 8071 s390*-*linux*|s390*-*tpf*) 8072 LD="${LD-ld} -m elf64_s390" 8073 ;; 8074 sparc*-*linux*) 8075 LD="${LD-ld} -m elf64_sparc" 8076 ;; 8077 esac 8078 ;; 8079 esac 8080 fi 8081 rm -rf conftest* 8082 ;; 8083 8084*-*-sco3.2v5*) 8085 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8086 SAVE_CFLAGS=$CFLAGS 8087 CFLAGS="$CFLAGS -belf" 8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8089$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 8090if ${lt_cv_cc_needs_belf+:} false; then : 8091 $as_echo_n "(cached) " >&6 8092else 8093 ac_ext=c 8094ac_cpp='$CPP $CPPFLAGS' 8095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8097ac_compiler_gnu=$ac_cv_c_compiler_gnu 8098 8099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8100/* end confdefs.h. */ 8101 8102int 8103main () 8104{ 8105 8106 ; 8107 return 0; 8108} 8109_ACEOF 8110if ac_fn_c_try_link "$LINENO"; then : 8111 lt_cv_cc_needs_belf=yes 8112else 8113 lt_cv_cc_needs_belf=no 8114fi 8115rm -f core conftest.err conftest.$ac_objext \ 8116 conftest$ac_exeext conftest.$ac_ext 8117 ac_ext=c 8118ac_cpp='$CPP $CPPFLAGS' 8119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8121ac_compiler_gnu=$ac_cv_c_compiler_gnu 8122 8123fi 8124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8125$as_echo "$lt_cv_cc_needs_belf" >&6; } 8126 if test yes != "$lt_cv_cc_needs_belf"; then 8127 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8128 CFLAGS=$SAVE_CFLAGS 8129 fi 8130 ;; 8131*-*solaris*) 8132 # Find out what ABI is being produced by ac_compile, and set linker 8133 # options accordingly. 8134 echo 'int i;' > conftest.$ac_ext 8135 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8136 (eval $ac_compile) 2>&5 8137 ac_status=$? 8138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8139 test $ac_status = 0; }; then 8140 case `/usr/bin/file conftest.o` in 8141 *64-bit*) 8142 case $lt_cv_prog_gnu_ld in 8143 yes*) 8144 case $host in 8145 i?86-*-solaris*|x86_64-*-solaris*) 8146 LD="${LD-ld} -m elf_x86_64" 8147 ;; 8148 sparc*-*-solaris*) 8149 LD="${LD-ld} -m elf64_sparc" 8150 ;; 8151 esac 8152 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8153 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8154 LD=${LD-ld}_sol2 8155 fi 8156 ;; 8157 *) 8158 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8159 LD="${LD-ld} -64" 8160 fi 8161 ;; 8162 esac 8163 ;; 8164 esac 8165 fi 8166 rm -rf conftest* 8167 ;; 8168esac 8169 8170need_locks=$enable_libtool_lock 8171 8172if test -n "$ac_tool_prefix"; then 8173 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8174set dummy ${ac_tool_prefix}mt; ac_word=$2 8175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8176$as_echo_n "checking for $ac_word... " >&6; } 8177if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 8178 $as_echo_n "(cached) " >&6 8179else 8180 if test -n "$MANIFEST_TOOL"; then 8181 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8182else 8183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8184for as_dir in $PATH 8185do 8186 IFS=$as_save_IFS 8187 test -z "$as_dir" && as_dir=. 8188 for ac_exec_ext in '' $ac_executable_extensions; do 8189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8190 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8192 break 2 8193 fi 8194done 8195 done 8196IFS=$as_save_IFS 8197 8198fi 8199fi 8200MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8201if test -n "$MANIFEST_TOOL"; then 8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8203$as_echo "$MANIFEST_TOOL" >&6; } 8204else 8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8206$as_echo "no" >&6; } 8207fi 8208 8209 8210fi 8211if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8212 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8213 # Extract the first word of "mt", so it can be a program name with args. 8214set dummy mt; ac_word=$2 8215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8216$as_echo_n "checking for $ac_word... " >&6; } 8217if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 8218 $as_echo_n "(cached) " >&6 8219else 8220 if test -n "$ac_ct_MANIFEST_TOOL"; then 8221 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8222else 8223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8224for as_dir in $PATH 8225do 8226 IFS=$as_save_IFS 8227 test -z "$as_dir" && as_dir=. 8228 for ac_exec_ext in '' $ac_executable_extensions; do 8229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8230 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8232 break 2 8233 fi 8234done 8235 done 8236IFS=$as_save_IFS 8237 8238fi 8239fi 8240ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8241if test -n "$ac_ct_MANIFEST_TOOL"; then 8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8243$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 8244else 8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8246$as_echo "no" >&6; } 8247fi 8248 8249 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8250 MANIFEST_TOOL=":" 8251 else 8252 case $cross_compiling:$ac_tool_warned in 8253yes:) 8254{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8255$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8256ac_tool_warned=yes ;; 8257esac 8258 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8259 fi 8260else 8261 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8262fi 8263 8264test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8266$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8267if ${lt_cv_path_mainfest_tool+:} false; then : 8268 $as_echo_n "(cached) " >&6 8269else 8270 lt_cv_path_mainfest_tool=no 8271 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8272 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8273 cat conftest.err >&5 8274 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8275 lt_cv_path_mainfest_tool=yes 8276 fi 8277 rm -f conftest* 8278fi 8279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8280$as_echo "$lt_cv_path_mainfest_tool" >&6; } 8281if test yes != "$lt_cv_path_mainfest_tool"; then 8282 MANIFEST_TOOL=: 8283fi 8284 8285 8286 8287 8288 8289 8290 case $host_os in 8291 rhapsody* | darwin*) 8292 if test -n "$ac_tool_prefix"; then 8293 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8294set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8296$as_echo_n "checking for $ac_word... " >&6; } 8297if ${ac_cv_prog_DSYMUTIL+:} false; then : 8298 $as_echo_n "(cached) " >&6 8299else 8300 if test -n "$DSYMUTIL"; then 8301 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8302else 8303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8304for as_dir in $PATH 8305do 8306 IFS=$as_save_IFS 8307 test -z "$as_dir" && as_dir=. 8308 for ac_exec_ext in '' $ac_executable_extensions; do 8309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8310 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8312 break 2 8313 fi 8314done 8315 done 8316IFS=$as_save_IFS 8317 8318fi 8319fi 8320DSYMUTIL=$ac_cv_prog_DSYMUTIL 8321if test -n "$DSYMUTIL"; then 8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8323$as_echo "$DSYMUTIL" >&6; } 8324else 8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8326$as_echo "no" >&6; } 8327fi 8328 8329 8330fi 8331if test -z "$ac_cv_prog_DSYMUTIL"; then 8332 ac_ct_DSYMUTIL=$DSYMUTIL 8333 # Extract the first word of "dsymutil", so it can be a program name with args. 8334set dummy dsymutil; ac_word=$2 8335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8336$as_echo_n "checking for $ac_word... " >&6; } 8337if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 8338 $as_echo_n "(cached) " >&6 8339else 8340 if test -n "$ac_ct_DSYMUTIL"; then 8341 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8342else 8343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8344for as_dir in $PATH 8345do 8346 IFS=$as_save_IFS 8347 test -z "$as_dir" && as_dir=. 8348 for ac_exec_ext in '' $ac_executable_extensions; do 8349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8350 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8352 break 2 8353 fi 8354done 8355 done 8356IFS=$as_save_IFS 8357 8358fi 8359fi 8360ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8361if test -n "$ac_ct_DSYMUTIL"; then 8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8363$as_echo "$ac_ct_DSYMUTIL" >&6; } 8364else 8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8366$as_echo "no" >&6; } 8367fi 8368 8369 if test "x$ac_ct_DSYMUTIL" = x; then 8370 DSYMUTIL=":" 8371 else 8372 case $cross_compiling:$ac_tool_warned in 8373yes:) 8374{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8375$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8376ac_tool_warned=yes ;; 8377esac 8378 DSYMUTIL=$ac_ct_DSYMUTIL 8379 fi 8380else 8381 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8382fi 8383 8384 if test -n "$ac_tool_prefix"; then 8385 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8386set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8388$as_echo_n "checking for $ac_word... " >&6; } 8389if ${ac_cv_prog_NMEDIT+:} false; then : 8390 $as_echo_n "(cached) " >&6 8391else 8392 if test -n "$NMEDIT"; then 8393 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8394else 8395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8396for as_dir in $PATH 8397do 8398 IFS=$as_save_IFS 8399 test -z "$as_dir" && as_dir=. 8400 for ac_exec_ext in '' $ac_executable_extensions; do 8401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8402 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8404 break 2 8405 fi 8406done 8407 done 8408IFS=$as_save_IFS 8409 8410fi 8411fi 8412NMEDIT=$ac_cv_prog_NMEDIT 8413if test -n "$NMEDIT"; then 8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8415$as_echo "$NMEDIT" >&6; } 8416else 8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8418$as_echo "no" >&6; } 8419fi 8420 8421 8422fi 8423if test -z "$ac_cv_prog_NMEDIT"; then 8424 ac_ct_NMEDIT=$NMEDIT 8425 # Extract the first word of "nmedit", so it can be a program name with args. 8426set dummy nmedit; ac_word=$2 8427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8428$as_echo_n "checking for $ac_word... " >&6; } 8429if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8430 $as_echo_n "(cached) " >&6 8431else 8432 if test -n "$ac_ct_NMEDIT"; then 8433 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8434else 8435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8436for as_dir in $PATH 8437do 8438 IFS=$as_save_IFS 8439 test -z "$as_dir" && as_dir=. 8440 for ac_exec_ext in '' $ac_executable_extensions; do 8441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8442 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8444 break 2 8445 fi 8446done 8447 done 8448IFS=$as_save_IFS 8449 8450fi 8451fi 8452ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8453if test -n "$ac_ct_NMEDIT"; then 8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8455$as_echo "$ac_ct_NMEDIT" >&6; } 8456else 8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8458$as_echo "no" >&6; } 8459fi 8460 8461 if test "x$ac_ct_NMEDIT" = x; then 8462 NMEDIT=":" 8463 else 8464 case $cross_compiling:$ac_tool_warned in 8465yes:) 8466{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8467$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8468ac_tool_warned=yes ;; 8469esac 8470 NMEDIT=$ac_ct_NMEDIT 8471 fi 8472else 8473 NMEDIT="$ac_cv_prog_NMEDIT" 8474fi 8475 8476 if test -n "$ac_tool_prefix"; then 8477 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8478set dummy ${ac_tool_prefix}lipo; ac_word=$2 8479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8480$as_echo_n "checking for $ac_word... " >&6; } 8481if ${ac_cv_prog_LIPO+:} false; then : 8482 $as_echo_n "(cached) " >&6 8483else 8484 if test -n "$LIPO"; then 8485 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8486else 8487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8488for as_dir in $PATH 8489do 8490 IFS=$as_save_IFS 8491 test -z "$as_dir" && as_dir=. 8492 for ac_exec_ext in '' $ac_executable_extensions; do 8493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8494 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8496 break 2 8497 fi 8498done 8499 done 8500IFS=$as_save_IFS 8501 8502fi 8503fi 8504LIPO=$ac_cv_prog_LIPO 8505if test -n "$LIPO"; then 8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8507$as_echo "$LIPO" >&6; } 8508else 8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8510$as_echo "no" >&6; } 8511fi 8512 8513 8514fi 8515if test -z "$ac_cv_prog_LIPO"; then 8516 ac_ct_LIPO=$LIPO 8517 # Extract the first word of "lipo", so it can be a program name with args. 8518set dummy lipo; ac_word=$2 8519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8520$as_echo_n "checking for $ac_word... " >&6; } 8521if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8522 $as_echo_n "(cached) " >&6 8523else 8524 if test -n "$ac_ct_LIPO"; then 8525 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8526else 8527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8528for as_dir in $PATH 8529do 8530 IFS=$as_save_IFS 8531 test -z "$as_dir" && as_dir=. 8532 for ac_exec_ext in '' $ac_executable_extensions; do 8533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8534 ac_cv_prog_ac_ct_LIPO="lipo" 8535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8536 break 2 8537 fi 8538done 8539 done 8540IFS=$as_save_IFS 8541 8542fi 8543fi 8544ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8545if test -n "$ac_ct_LIPO"; then 8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8547$as_echo "$ac_ct_LIPO" >&6; } 8548else 8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8550$as_echo "no" >&6; } 8551fi 8552 8553 if test "x$ac_ct_LIPO" = x; then 8554 LIPO=":" 8555 else 8556 case $cross_compiling:$ac_tool_warned in 8557yes:) 8558{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8559$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8560ac_tool_warned=yes ;; 8561esac 8562 LIPO=$ac_ct_LIPO 8563 fi 8564else 8565 LIPO="$ac_cv_prog_LIPO" 8566fi 8567 8568 if test -n "$ac_tool_prefix"; then 8569 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8570set dummy ${ac_tool_prefix}otool; ac_word=$2 8571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8572$as_echo_n "checking for $ac_word... " >&6; } 8573if ${ac_cv_prog_OTOOL+:} false; then : 8574 $as_echo_n "(cached) " >&6 8575else 8576 if test -n "$OTOOL"; then 8577 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8578else 8579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8580for as_dir in $PATH 8581do 8582 IFS=$as_save_IFS 8583 test -z "$as_dir" && as_dir=. 8584 for ac_exec_ext in '' $ac_executable_extensions; do 8585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8586 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8588 break 2 8589 fi 8590done 8591 done 8592IFS=$as_save_IFS 8593 8594fi 8595fi 8596OTOOL=$ac_cv_prog_OTOOL 8597if test -n "$OTOOL"; then 8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8599$as_echo "$OTOOL" >&6; } 8600else 8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8602$as_echo "no" >&6; } 8603fi 8604 8605 8606fi 8607if test -z "$ac_cv_prog_OTOOL"; then 8608 ac_ct_OTOOL=$OTOOL 8609 # Extract the first word of "otool", so it can be a program name with args. 8610set dummy otool; ac_word=$2 8611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8612$as_echo_n "checking for $ac_word... " >&6; } 8613if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8614 $as_echo_n "(cached) " >&6 8615else 8616 if test -n "$ac_ct_OTOOL"; then 8617 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8618else 8619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8620for as_dir in $PATH 8621do 8622 IFS=$as_save_IFS 8623 test -z "$as_dir" && as_dir=. 8624 for ac_exec_ext in '' $ac_executable_extensions; do 8625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8626 ac_cv_prog_ac_ct_OTOOL="otool" 8627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8628 break 2 8629 fi 8630done 8631 done 8632IFS=$as_save_IFS 8633 8634fi 8635fi 8636ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8637if test -n "$ac_ct_OTOOL"; then 8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8639$as_echo "$ac_ct_OTOOL" >&6; } 8640else 8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8642$as_echo "no" >&6; } 8643fi 8644 8645 if test "x$ac_ct_OTOOL" = x; then 8646 OTOOL=":" 8647 else 8648 case $cross_compiling:$ac_tool_warned in 8649yes:) 8650{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8651$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8652ac_tool_warned=yes ;; 8653esac 8654 OTOOL=$ac_ct_OTOOL 8655 fi 8656else 8657 OTOOL="$ac_cv_prog_OTOOL" 8658fi 8659 8660 if test -n "$ac_tool_prefix"; then 8661 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8662set dummy ${ac_tool_prefix}otool64; ac_word=$2 8663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8664$as_echo_n "checking for $ac_word... " >&6; } 8665if ${ac_cv_prog_OTOOL64+:} false; then : 8666 $as_echo_n "(cached) " >&6 8667else 8668 if test -n "$OTOOL64"; then 8669 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8670else 8671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8672for as_dir in $PATH 8673do 8674 IFS=$as_save_IFS 8675 test -z "$as_dir" && as_dir=. 8676 for ac_exec_ext in '' $ac_executable_extensions; do 8677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8678 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8680 break 2 8681 fi 8682done 8683 done 8684IFS=$as_save_IFS 8685 8686fi 8687fi 8688OTOOL64=$ac_cv_prog_OTOOL64 8689if test -n "$OTOOL64"; then 8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8691$as_echo "$OTOOL64" >&6; } 8692else 8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8694$as_echo "no" >&6; } 8695fi 8696 8697 8698fi 8699if test -z "$ac_cv_prog_OTOOL64"; then 8700 ac_ct_OTOOL64=$OTOOL64 8701 # Extract the first word of "otool64", so it can be a program name with args. 8702set dummy otool64; ac_word=$2 8703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8704$as_echo_n "checking for $ac_word... " >&6; } 8705if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8706 $as_echo_n "(cached) " >&6 8707else 8708 if test -n "$ac_ct_OTOOL64"; then 8709 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8710else 8711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8712for as_dir in $PATH 8713do 8714 IFS=$as_save_IFS 8715 test -z "$as_dir" && as_dir=. 8716 for ac_exec_ext in '' $ac_executable_extensions; do 8717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8718 ac_cv_prog_ac_ct_OTOOL64="otool64" 8719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8720 break 2 8721 fi 8722done 8723 done 8724IFS=$as_save_IFS 8725 8726fi 8727fi 8728ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8729if test -n "$ac_ct_OTOOL64"; then 8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8731$as_echo "$ac_ct_OTOOL64" >&6; } 8732else 8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8734$as_echo "no" >&6; } 8735fi 8736 8737 if test "x$ac_ct_OTOOL64" = x; then 8738 OTOOL64=":" 8739 else 8740 case $cross_compiling:$ac_tool_warned in 8741yes:) 8742{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8743$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8744ac_tool_warned=yes ;; 8745esac 8746 OTOOL64=$ac_ct_OTOOL64 8747 fi 8748else 8749 OTOOL64="$ac_cv_prog_OTOOL64" 8750fi 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8779$as_echo_n "checking for -single_module linker flag... " >&6; } 8780if ${lt_cv_apple_cc_single_mod+:} false; then : 8781 $as_echo_n "(cached) " >&6 8782else 8783 lt_cv_apple_cc_single_mod=no 8784 if test -z "$LT_MULTI_MODULE"; then 8785 # By default we will add the -single_module flag. You can override 8786 # by either setting the environment variable LT_MULTI_MODULE 8787 # non-empty at configure time, or by adding -multi_module to the 8788 # link flags. 8789 rm -rf libconftest.dylib* 8790 echo "int foo(void){return 1;}" > conftest.c 8791 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8792-dynamiclib -Wl,-single_module conftest.c" >&5 8793 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8794 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8795 _lt_result=$? 8796 # If there is a non-empty error log, and "single_module" 8797 # appears in it, assume the flag caused a linker warning 8798 if test -s conftest.err && $GREP single_module conftest.err; then 8799 cat conftest.err >&5 8800 # Otherwise, if the output was created with a 0 exit code from 8801 # the compiler, it worked. 8802 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8803 lt_cv_apple_cc_single_mod=yes 8804 else 8805 cat conftest.err >&5 8806 fi 8807 rm -rf libconftest.dylib* 8808 rm -f conftest.* 8809 fi 8810fi 8811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8812$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8813 8814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8815$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8816if ${lt_cv_ld_exported_symbols_list+:} false; then : 8817 $as_echo_n "(cached) " >&6 8818else 8819 lt_cv_ld_exported_symbols_list=no 8820 save_LDFLAGS=$LDFLAGS 8821 echo "_main" > conftest.sym 8822 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8824/* end confdefs.h. */ 8825 8826int 8827main () 8828{ 8829 8830 ; 8831 return 0; 8832} 8833_ACEOF 8834if ac_fn_c_try_link "$LINENO"; then : 8835 lt_cv_ld_exported_symbols_list=yes 8836else 8837 lt_cv_ld_exported_symbols_list=no 8838fi 8839rm -f core conftest.err conftest.$ac_objext \ 8840 conftest$ac_exeext conftest.$ac_ext 8841 LDFLAGS=$save_LDFLAGS 8842 8843fi 8844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8845$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8846 8847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8848$as_echo_n "checking for -force_load linker flag... " >&6; } 8849if ${lt_cv_ld_force_load+:} false; then : 8850 $as_echo_n "(cached) " >&6 8851else 8852 lt_cv_ld_force_load=no 8853 cat > conftest.c << _LT_EOF 8854int forced_loaded() { return 2;} 8855_LT_EOF 8856 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8857 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8858 echo "$AR cru libconftest.a conftest.o" >&5 8859 $AR cru libconftest.a conftest.o 2>&5 8860 echo "$RANLIB libconftest.a" >&5 8861 $RANLIB libconftest.a 2>&5 8862 cat > conftest.c << _LT_EOF 8863int main() { return 0;} 8864_LT_EOF 8865 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8866 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8867 _lt_result=$? 8868 if test -s conftest.err && $GREP force_load conftest.err; then 8869 cat conftest.err >&5 8870 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8871 lt_cv_ld_force_load=yes 8872 else 8873 cat conftest.err >&5 8874 fi 8875 rm -f conftest.err libconftest.a conftest conftest.c 8876 rm -rf conftest.dSYM 8877 8878fi 8879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8880$as_echo "$lt_cv_ld_force_load" >&6; } 8881 case $host_os in 8882 rhapsody* | darwin1.[012]) 8883 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8884 darwin1.*) 8885 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8886 darwin*) # darwin 5.x on 8887 # if running on 10.5 or later, the deployment target defaults 8888 # to the OS version, if on x86, and 10.4, the deployment 8889 # target defaults to 10.4. Don't you love it? 8890 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8891 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8892 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8893 10.[012][,.]*) 8894 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8895 10.*) 8896 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8897 esac 8898 ;; 8899 esac 8900 if test yes = "$lt_cv_apple_cc_single_mod"; then 8901 _lt_dar_single_mod='$single_module' 8902 fi 8903 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8904 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8905 else 8906 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8907 fi 8908 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8909 _lt_dsymutil='~$DSYMUTIL $lib || :' 8910 else 8911 _lt_dsymutil= 8912 fi 8913 ;; 8914 esac 8915 8916# func_munge_path_list VARIABLE PATH 8917# ----------------------------------- 8918# VARIABLE is name of variable containing _space_ separated list of 8919# directories to be munged by the contents of PATH, which is string 8920# having a format: 8921# "DIR[:DIR]:" 8922# string "DIR[ DIR]" will be prepended to VARIABLE 8923# ":DIR[:DIR]" 8924# string "DIR[ DIR]" will be appended to VARIABLE 8925# "DIRP[:DIRP]::[DIRA:]DIRA" 8926# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8927# "DIRA[ DIRA]" will be appended to VARIABLE 8928# "DIR[:DIR]" 8929# VARIABLE will be replaced by "DIR[ DIR]" 8930func_munge_path_list () 8931{ 8932 case x$2 in 8933 x) 8934 ;; 8935 *:) 8936 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8937 ;; 8938 x:*) 8939 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8940 ;; 8941 *::*) 8942 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8943 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8944 ;; 8945 *) 8946 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8947 ;; 8948 esac 8949} 8950 8951 8952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8953$as_echo_n "checking for ANSI C header files... " >&6; } 8954if ${ac_cv_header_stdc+:} false; then : 8955 $as_echo_n "(cached) " >&6 8956else 8957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8958/* end confdefs.h. */ 8959#include <stdlib.h> 8960#include <stdarg.h> 8961#include <string.h> 8962#include <float.h> 8963 8964int 8965main () 8966{ 8967 8968 ; 8969 return 0; 8970} 8971_ACEOF 8972if ac_fn_c_try_compile "$LINENO"; then : 8973 ac_cv_header_stdc=yes 8974else 8975 ac_cv_header_stdc=no 8976fi 8977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8978 8979if test $ac_cv_header_stdc = yes; then 8980 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8982/* end confdefs.h. */ 8983#include <string.h> 8984 8985_ACEOF 8986if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8987 $EGREP "memchr" >/dev/null 2>&1; then : 8988 8989else 8990 ac_cv_header_stdc=no 8991fi 8992rm -f conftest* 8993 8994fi 8995 8996if test $ac_cv_header_stdc = yes; then 8997 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8999/* end confdefs.h. */ 9000#include <stdlib.h> 9001 9002_ACEOF 9003if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9004 $EGREP "free" >/dev/null 2>&1; then : 9005 9006else 9007 ac_cv_header_stdc=no 9008fi 9009rm -f conftest* 9010 9011fi 9012 9013if test $ac_cv_header_stdc = yes; then 9014 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 9015 if test "$cross_compiling" = yes; then : 9016 : 9017else 9018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9019/* end confdefs.h. */ 9020#include <ctype.h> 9021#include <stdlib.h> 9022#if ((' ' & 0x0FF) == 0x020) 9023# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 9024# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 9025#else 9026# define ISLOWER(c) \ 9027 (('a' <= (c) && (c) <= 'i') \ 9028 || ('j' <= (c) && (c) <= 'r') \ 9029 || ('s' <= (c) && (c) <= 'z')) 9030# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 9031#endif 9032 9033#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 9034int 9035main () 9036{ 9037 int i; 9038 for (i = 0; i < 256; i++) 9039 if (XOR (islower (i), ISLOWER (i)) 9040 || toupper (i) != TOUPPER (i)) 9041 return 2; 9042 return 0; 9043} 9044_ACEOF 9045if ac_fn_c_try_run "$LINENO"; then : 9046 9047else 9048 ac_cv_header_stdc=no 9049fi 9050rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9051 conftest.$ac_objext conftest.beam conftest.$ac_ext 9052fi 9053 9054fi 9055fi 9056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 9057$as_echo "$ac_cv_header_stdc" >&6; } 9058if test $ac_cv_header_stdc = yes; then 9059 9060$as_echo "#define STDC_HEADERS 1" >>confdefs.h 9061 9062fi 9063 9064# On IRIX 5.3, sys/types and inttypes.h are conflicting. 9065for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 9066 inttypes.h stdint.h unistd.h 9067do : 9068 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9069ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 9070" 9071if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9072 cat >>confdefs.h <<_ACEOF 9073#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9074_ACEOF 9075 9076fi 9077 9078done 9079 9080 9081for ac_header in dlfcn.h 9082do : 9083 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9084" 9085if test "x$ac_cv_header_dlfcn_h" = xyes; then : 9086 cat >>confdefs.h <<_ACEOF 9087#define HAVE_DLFCN_H 1 9088_ACEOF 9089 9090fi 9091 9092done 9093 9094 9095 9096 9097func_stripname_cnf () 9098{ 9099 case $2 in 9100 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 9101 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 9102 esac 9103} # func_stripname_cnf 9104 9105 9106 9107 9108 9109# Set options 9110 9111 9112 9113 enable_dlopen=no 9114 9115 9116 enable_win32_dll=no 9117 9118 9119 # Check whether --enable-shared was given. 9120if test "${enable_shared+set}" = set; then : 9121 enableval=$enable_shared; p=${PACKAGE-default} 9122 case $enableval in 9123 yes) enable_shared=yes ;; 9124 no) enable_shared=no ;; 9125 *) 9126 enable_shared=no 9127 # Look at the argument we got. We use all the common list separators. 9128 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9129 for pkg in $enableval; do 9130 IFS=$lt_save_ifs 9131 if test "X$pkg" = "X$p"; then 9132 enable_shared=yes 9133 fi 9134 done 9135 IFS=$lt_save_ifs 9136 ;; 9137 esac 9138else 9139 enable_shared=yes 9140fi 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 # Check whether --enable-static was given. 9151if test "${enable_static+set}" = set; then : 9152 enableval=$enable_static; p=${PACKAGE-default} 9153 case $enableval in 9154 yes) enable_static=yes ;; 9155 no) enable_static=no ;; 9156 *) 9157 enable_static=no 9158 # Look at the argument we got. We use all the common list separators. 9159 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9160 for pkg in $enableval; do 9161 IFS=$lt_save_ifs 9162 if test "X$pkg" = "X$p"; then 9163 enable_static=yes 9164 fi 9165 done 9166 IFS=$lt_save_ifs 9167 ;; 9168 esac 9169else 9170 enable_static=yes 9171fi 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182# Check whether --with-pic was given. 9183if test "${with_pic+set}" = set; then : 9184 withval=$with_pic; lt_p=${PACKAGE-default} 9185 case $withval in 9186 yes|no) pic_mode=$withval ;; 9187 *) 9188 pic_mode=default 9189 # Look at the argument we got. We use all the common list separators. 9190 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9191 for lt_pkg in $withval; do 9192 IFS=$lt_save_ifs 9193 if test "X$lt_pkg" = "X$lt_p"; then 9194 pic_mode=yes 9195 fi 9196 done 9197 IFS=$lt_save_ifs 9198 ;; 9199 esac 9200else 9201 pic_mode=default 9202fi 9203 9204 9205 9206 9207 9208 9209 9210 9211 # Check whether --enable-fast-install was given. 9212if test "${enable_fast_install+set}" = set; then : 9213 enableval=$enable_fast_install; p=${PACKAGE-default} 9214 case $enableval in 9215 yes) enable_fast_install=yes ;; 9216 no) enable_fast_install=no ;; 9217 *) 9218 enable_fast_install=no 9219 # Look at the argument we got. We use all the common list separators. 9220 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9221 for pkg in $enableval; do 9222 IFS=$lt_save_ifs 9223 if test "X$pkg" = "X$p"; then 9224 enable_fast_install=yes 9225 fi 9226 done 9227 IFS=$lt_save_ifs 9228 ;; 9229 esac 9230else 9231 enable_fast_install=yes 9232fi 9233 9234 9235 9236 9237 9238 9239 9240 9241 shared_archive_member_spec= 9242case $host,$enable_shared in 9243power*-*-aix[5-9]*,yes) 9244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9245$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 9246 9247# Check whether --with-aix-soname was given. 9248if test "${with_aix_soname+set}" = set; then : 9249 withval=$with_aix_soname; case $withval in 9250 aix|svr4|both) 9251 ;; 9252 *) 9253 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9254 ;; 9255 esac 9256 lt_cv_with_aix_soname=$with_aix_soname 9257else 9258 if ${lt_cv_with_aix_soname+:} false; then : 9259 $as_echo_n "(cached) " >&6 9260else 9261 lt_cv_with_aix_soname=aix 9262fi 9263 9264 with_aix_soname=$lt_cv_with_aix_soname 9265fi 9266 9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9268$as_echo "$with_aix_soname" >&6; } 9269 if test aix != "$with_aix_soname"; then 9270 # For the AIX way of multilib, we name the shared archive member 9271 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9272 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9273 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9274 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9275 if test 64 = "${OBJECT_MODE-32}"; then 9276 shared_archive_member_spec=shr_64 9277 else 9278 shared_archive_member_spec=shr 9279 fi 9280 fi 9281 ;; 9282*) 9283 with_aix_soname=aix 9284 ;; 9285esac 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296# This can be used to rebuild libtool when needed 9297LIBTOOL_DEPS=$ltmain 9298 9299# Always use our own libtool. 9300LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331test -z "$LN_S" && LN_S="ln -s" 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346if test -n "${ZSH_VERSION+set}"; then 9347 setopt NO_GLOB_SUBST 9348fi 9349 9350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9351$as_echo_n "checking for objdir... " >&6; } 9352if ${lt_cv_objdir+:} false; then : 9353 $as_echo_n "(cached) " >&6 9354else 9355 rm -f .libs 2>/dev/null 9356mkdir .libs 2>/dev/null 9357if test -d .libs; then 9358 lt_cv_objdir=.libs 9359else 9360 # MS-DOS does not allow filenames that begin with a dot. 9361 lt_cv_objdir=_libs 9362fi 9363rmdir .libs 2>/dev/null 9364fi 9365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9366$as_echo "$lt_cv_objdir" >&6; } 9367objdir=$lt_cv_objdir 9368 9369 9370 9371 9372 9373cat >>confdefs.h <<_ACEOF 9374#define LT_OBJDIR "$lt_cv_objdir/" 9375_ACEOF 9376 9377 9378 9379 9380case $host_os in 9381aix3*) 9382 # AIX sometimes has problems with the GCC collect2 program. For some 9383 # reason, if we set the COLLECT_NAMES environment variable, the problems 9384 # vanish in a puff of smoke. 9385 if test set != "${COLLECT_NAMES+set}"; then 9386 COLLECT_NAMES= 9387 export COLLECT_NAMES 9388 fi 9389 ;; 9390esac 9391 9392# Global variables: 9393ofile=libtool 9394can_build_shared=yes 9395 9396# All known linkers require a '.a' archive for static linking (except MSVC, 9397# which needs '.lib'). 9398libext=a 9399 9400with_gnu_ld=$lt_cv_prog_gnu_ld 9401 9402old_CC=$CC 9403old_CFLAGS=$CFLAGS 9404 9405# Set sane defaults for various variables 9406test -z "$CC" && CC=cc 9407test -z "$LTCC" && LTCC=$CC 9408test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9409test -z "$LD" && LD=ld 9410test -z "$ac_objext" && ac_objext=o 9411 9412func_cc_basename $compiler 9413cc_basename=$func_cc_basename_result 9414 9415 9416# Only perform the check for file, if the check method requires it 9417test -z "$MAGIC_CMD" && MAGIC_CMD=file 9418case $deplibs_check_method in 9419file_magic*) 9420 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9422$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9423if ${lt_cv_path_MAGIC_CMD+:} false; then : 9424 $as_echo_n "(cached) " >&6 9425else 9426 case $MAGIC_CMD in 9427[\\/*] | ?:[\\/]*) 9428 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9429 ;; 9430*) 9431 lt_save_MAGIC_CMD=$MAGIC_CMD 9432 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9433 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9434 for ac_dir in $ac_dummy; do 9435 IFS=$lt_save_ifs 9436 test -z "$ac_dir" && ac_dir=. 9437 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9438 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9439 if test -n "$file_magic_test_file"; then 9440 case $deplibs_check_method in 9441 "file_magic "*) 9442 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9443 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9444 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9445 $EGREP "$file_magic_regex" > /dev/null; then 9446 : 9447 else 9448 cat <<_LT_EOF 1>&2 9449 9450*** Warning: the command libtool uses to detect shared libraries, 9451*** $file_magic_cmd, produces output that libtool cannot recognize. 9452*** The result is that libtool may fail to recognize shared libraries 9453*** as such. This will affect the creation of libtool libraries that 9454*** depend on shared libraries, but programs linked with such libtool 9455*** libraries will work regardless of this problem. Nevertheless, you 9456*** may want to report the problem to your system manager and/or to 9457*** bug-libtool@gnu.org 9458 9459_LT_EOF 9460 fi ;; 9461 esac 9462 fi 9463 break 9464 fi 9465 done 9466 IFS=$lt_save_ifs 9467 MAGIC_CMD=$lt_save_MAGIC_CMD 9468 ;; 9469esac 9470fi 9471 9472MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9473if test -n "$MAGIC_CMD"; then 9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9475$as_echo "$MAGIC_CMD" >&6; } 9476else 9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9478$as_echo "no" >&6; } 9479fi 9480 9481 9482 9483 9484 9485if test -z "$lt_cv_path_MAGIC_CMD"; then 9486 if test -n "$ac_tool_prefix"; then 9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9488$as_echo_n "checking for file... " >&6; } 9489if ${lt_cv_path_MAGIC_CMD+:} false; then : 9490 $as_echo_n "(cached) " >&6 9491else 9492 case $MAGIC_CMD in 9493[\\/*] | ?:[\\/]*) 9494 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9495 ;; 9496*) 9497 lt_save_MAGIC_CMD=$MAGIC_CMD 9498 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9499 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9500 for ac_dir in $ac_dummy; do 9501 IFS=$lt_save_ifs 9502 test -z "$ac_dir" && ac_dir=. 9503 if test -f "$ac_dir/file"; then 9504 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9505 if test -n "$file_magic_test_file"; then 9506 case $deplibs_check_method in 9507 "file_magic "*) 9508 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9509 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9510 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9511 $EGREP "$file_magic_regex" > /dev/null; then 9512 : 9513 else 9514 cat <<_LT_EOF 1>&2 9515 9516*** Warning: the command libtool uses to detect shared libraries, 9517*** $file_magic_cmd, produces output that libtool cannot recognize. 9518*** The result is that libtool may fail to recognize shared libraries 9519*** as such. This will affect the creation of libtool libraries that 9520*** depend on shared libraries, but programs linked with such libtool 9521*** libraries will work regardless of this problem. Nevertheless, you 9522*** may want to report the problem to your system manager and/or to 9523*** bug-libtool@gnu.org 9524 9525_LT_EOF 9526 fi ;; 9527 esac 9528 fi 9529 break 9530 fi 9531 done 9532 IFS=$lt_save_ifs 9533 MAGIC_CMD=$lt_save_MAGIC_CMD 9534 ;; 9535esac 9536fi 9537 9538MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9539if test -n "$MAGIC_CMD"; then 9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9541$as_echo "$MAGIC_CMD" >&6; } 9542else 9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9544$as_echo "no" >&6; } 9545fi 9546 9547 9548 else 9549 MAGIC_CMD=: 9550 fi 9551fi 9552 9553 fi 9554 ;; 9555esac 9556 9557# Use C for the default configuration in the libtool script 9558 9559lt_save_CC=$CC 9560ac_ext=c 9561ac_cpp='$CPP $CPPFLAGS' 9562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9564ac_compiler_gnu=$ac_cv_c_compiler_gnu 9565 9566 9567# Source file extension for C test sources. 9568ac_ext=c 9569 9570# Object file extension for compiled C test sources. 9571objext=o 9572objext=$objext 9573 9574# Code to be used in simple compile tests 9575lt_simple_compile_test_code="int some_variable = 0;" 9576 9577# Code to be used in simple link tests 9578lt_simple_link_test_code='int main(){return(0);}' 9579 9580 9581 9582 9583 9584 9585 9586# If no C compiler was specified, use CC. 9587LTCC=${LTCC-"$CC"} 9588 9589# If no C compiler flags were specified, use CFLAGS. 9590LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9591 9592# Allow CC to be a program name with arguments. 9593compiler=$CC 9594 9595# Save the default compiler, since it gets overwritten when the other 9596# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9597compiler_DEFAULT=$CC 9598 9599# save warnings/boilerplate of simple test code 9600ac_outfile=conftest.$ac_objext 9601echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9602eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9603_lt_compiler_boilerplate=`cat conftest.err` 9604$RM conftest* 9605 9606ac_outfile=conftest.$ac_objext 9607echo "$lt_simple_link_test_code" >conftest.$ac_ext 9608eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9609_lt_linker_boilerplate=`cat conftest.err` 9610$RM -r conftest* 9611 9612 9613## CAVEAT EMPTOR: 9614## There is no encapsulation within the following macros, do not change 9615## the running order or otherwise move them around unless you know exactly 9616## what you are doing... 9617if test -n "$compiler"; then 9618 9619lt_prog_compiler_no_builtin_flag= 9620 9621if test yes = "$GCC"; then 9622 case $cc_basename in 9623 nvcc*) 9624 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9625 *) 9626 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9627 esac 9628 9629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9630$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9631if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9632 $as_echo_n "(cached) " >&6 9633else 9634 lt_cv_prog_compiler_rtti_exceptions=no 9635 ac_outfile=conftest.$ac_objext 9636 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9637 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9638 # Insert the option either (1) after the last *FLAGS variable, or 9639 # (2) before a word containing "conftest.", or (3) at the end. 9640 # Note that $ac_compile itself does not contain backslashes and begins 9641 # with a dollar sign (not a hyphen), so the echo should work correctly. 9642 # The option is referenced via a variable to avoid confusing sed. 9643 lt_compile=`echo "$ac_compile" | $SED \ 9644 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9645 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9646 -e 's:$: $lt_compiler_flag:'` 9647 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9648 (eval "$lt_compile" 2>conftest.err) 9649 ac_status=$? 9650 cat conftest.err >&5 9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9652 if (exit $ac_status) && test -s "$ac_outfile"; then 9653 # The compiler can only warn and ignore the option if not recognized 9654 # So say no if there are warnings other than the usual output. 9655 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9656 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9657 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9658 lt_cv_prog_compiler_rtti_exceptions=yes 9659 fi 9660 fi 9661 $RM conftest* 9662 9663fi 9664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9665$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9666 9667if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9668 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9669else 9670 : 9671fi 9672 9673fi 9674 9675 9676 9677 9678 9679 9680 lt_prog_compiler_wl= 9681lt_prog_compiler_pic= 9682lt_prog_compiler_static= 9683 9684 9685 if test yes = "$GCC"; then 9686 lt_prog_compiler_wl='-Wl,' 9687 lt_prog_compiler_static='-static' 9688 9689 case $host_os in 9690 aix*) 9691 # All AIX code is PIC. 9692 if test ia64 = "$host_cpu"; then 9693 # AIX 5 now supports IA64 processor 9694 lt_prog_compiler_static='-Bstatic' 9695 fi 9696 lt_prog_compiler_pic='-fPIC' 9697 ;; 9698 9699 amigaos*) 9700 case $host_cpu in 9701 powerpc) 9702 # see comment about AmigaOS4 .so support 9703 lt_prog_compiler_pic='-fPIC' 9704 ;; 9705 m68k) 9706 # FIXME: we need at least 68020 code to build shared libraries, but 9707 # adding the '-m68020' flag to GCC prevents building anything better, 9708 # like '-m68040'. 9709 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9710 ;; 9711 esac 9712 ;; 9713 9714 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9715 # PIC is the default for these OSes. 9716 ;; 9717 9718 mingw* | cygwin* | pw32* | os2* | cegcc*) 9719 # This hack is so that the source file can tell whether it is being 9720 # built for inclusion in a dll (and should export symbols for example). 9721 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9722 # (--disable-auto-import) libraries 9723 lt_prog_compiler_pic='-DDLL_EXPORT' 9724 case $host_os in 9725 os2*) 9726 lt_prog_compiler_static='$wl-static' 9727 ;; 9728 esac 9729 ;; 9730 9731 darwin* | rhapsody*) 9732 # PIC is the default on this platform 9733 # Common symbols not allowed in MH_DYLIB files 9734 lt_prog_compiler_pic='-fno-common' 9735 ;; 9736 9737 haiku*) 9738 # PIC is the default for Haiku. 9739 # The "-static" flag exists, but is broken. 9740 lt_prog_compiler_static= 9741 ;; 9742 9743 hpux*) 9744 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9745 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9746 # sets the default TLS model and affects inlining. 9747 case $host_cpu in 9748 hppa*64*) 9749 # +Z the default 9750 ;; 9751 *) 9752 lt_prog_compiler_pic='-fPIC' 9753 ;; 9754 esac 9755 ;; 9756 9757 interix[3-9]*) 9758 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9759 # Instead, we relocate shared libraries at runtime. 9760 ;; 9761 9762 msdosdjgpp*) 9763 # Just because we use GCC doesn't mean we suddenly get shared libraries 9764 # on systems that don't support them. 9765 lt_prog_compiler_can_build_shared=no 9766 enable_shared=no 9767 ;; 9768 9769 *nto* | *qnx*) 9770 # QNX uses GNU C++, but need to define -shared option too, otherwise 9771 # it will coredump. 9772 lt_prog_compiler_pic='-fPIC -shared' 9773 ;; 9774 9775 sysv4*MP*) 9776 if test -d /usr/nec; then 9777 lt_prog_compiler_pic=-Kconform_pic 9778 fi 9779 ;; 9780 9781 *) 9782 lt_prog_compiler_pic='-fPIC' 9783 ;; 9784 esac 9785 9786 case $cc_basename in 9787 nvcc*) # Cuda Compiler Driver 2.2 9788 lt_prog_compiler_wl='-Xlinker ' 9789 if test -n "$lt_prog_compiler_pic"; then 9790 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9791 fi 9792 ;; 9793 esac 9794 else 9795 # PORTME Check for flag to pass linker flags through the system compiler. 9796 case $host_os in 9797 aix*) 9798 lt_prog_compiler_wl='-Wl,' 9799 if test ia64 = "$host_cpu"; then 9800 # AIX 5 now supports IA64 processor 9801 lt_prog_compiler_static='-Bstatic' 9802 else 9803 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9804 fi 9805 ;; 9806 9807 darwin* | rhapsody*) 9808 # PIC is the default on this platform 9809 # Common symbols not allowed in MH_DYLIB files 9810 lt_prog_compiler_pic='-fno-common' 9811 case $cc_basename in 9812 nagfor*) 9813 # NAG Fortran compiler 9814 lt_prog_compiler_wl='-Wl,-Wl,,' 9815 lt_prog_compiler_pic='-PIC' 9816 lt_prog_compiler_static='-Bstatic' 9817 ;; 9818 esac 9819 ;; 9820 9821 mingw* | cygwin* | pw32* | os2* | cegcc*) 9822 # This hack is so that the source file can tell whether it is being 9823 # built for inclusion in a dll (and should export symbols for example). 9824 lt_prog_compiler_pic='-DDLL_EXPORT' 9825 case $host_os in 9826 os2*) 9827 lt_prog_compiler_static='$wl-static' 9828 ;; 9829 esac 9830 ;; 9831 9832 hpux9* | hpux10* | hpux11*) 9833 lt_prog_compiler_wl='-Wl,' 9834 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9835 # not for PA HP-UX. 9836 case $host_cpu in 9837 hppa*64*|ia64*) 9838 # +Z the default 9839 ;; 9840 *) 9841 lt_prog_compiler_pic='+Z' 9842 ;; 9843 esac 9844 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9845 lt_prog_compiler_static='$wl-a ${wl}archive' 9846 ;; 9847 9848 irix5* | irix6* | nonstopux*) 9849 lt_prog_compiler_wl='-Wl,' 9850 # PIC (with -KPIC) is the default. 9851 lt_prog_compiler_static='-non_shared' 9852 ;; 9853 9854 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9855 case $cc_basename in 9856 # old Intel for x86_64, which still supported -KPIC. 9857 ecc*) 9858 lt_prog_compiler_wl='-Wl,' 9859 lt_prog_compiler_pic='-KPIC' 9860 lt_prog_compiler_static='-static' 9861 ;; 9862 # icc used to be incompatible with GCC. 9863 # ICC 10 doesn't accept -KPIC any more. 9864 icc* | ifort*) 9865 lt_prog_compiler_wl='-Wl,' 9866 lt_prog_compiler_pic='-fPIC' 9867 lt_prog_compiler_static='-static' 9868 ;; 9869 # Lahey Fortran 8.1. 9870 lf95*) 9871 lt_prog_compiler_wl='-Wl,' 9872 lt_prog_compiler_pic='--shared' 9873 lt_prog_compiler_static='--static' 9874 ;; 9875 nagfor*) 9876 # NAG Fortran compiler 9877 lt_prog_compiler_wl='-Wl,-Wl,,' 9878 lt_prog_compiler_pic='-PIC' 9879 lt_prog_compiler_static='-Bstatic' 9880 ;; 9881 tcc*) 9882 # Fabrice Bellard et al's Tiny C Compiler 9883 lt_prog_compiler_wl='-Wl,' 9884 lt_prog_compiler_pic='-fPIC' 9885 lt_prog_compiler_static='-static' 9886 ;; 9887 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9888 # Portland Group compilers (*not* the Pentium gcc compiler, 9889 # which looks to be a dead project) 9890 lt_prog_compiler_wl='-Wl,' 9891 lt_prog_compiler_pic='-fpic' 9892 lt_prog_compiler_static='-Bstatic' 9893 ;; 9894 ccc*) 9895 lt_prog_compiler_wl='-Wl,' 9896 # All Alpha code is PIC. 9897 lt_prog_compiler_static='-non_shared' 9898 ;; 9899 xl* | bgxl* | bgf* | mpixl*) 9900 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9901 lt_prog_compiler_wl='-Wl,' 9902 lt_prog_compiler_pic='-qpic' 9903 lt_prog_compiler_static='-qstaticlink' 9904 ;; 9905 *) 9906 case `$CC -V 2>&1 | sed 5q` in 9907 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9908 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9909 lt_prog_compiler_pic='-KPIC' 9910 lt_prog_compiler_static='-Bstatic' 9911 lt_prog_compiler_wl='' 9912 ;; 9913 *Sun\ F* | *Sun*Fortran*) 9914 lt_prog_compiler_pic='-KPIC' 9915 lt_prog_compiler_static='-Bstatic' 9916 lt_prog_compiler_wl='-Qoption ld ' 9917 ;; 9918 *Sun\ C*) 9919 # Sun C 5.9 9920 lt_prog_compiler_pic='-KPIC' 9921 lt_prog_compiler_static='-Bstatic' 9922 lt_prog_compiler_wl='-Wl,' 9923 ;; 9924 *Intel*\ [CF]*Compiler*) 9925 lt_prog_compiler_wl='-Wl,' 9926 lt_prog_compiler_pic='-fPIC' 9927 lt_prog_compiler_static='-static' 9928 ;; 9929 *Portland\ Group*) 9930 lt_prog_compiler_wl='-Wl,' 9931 lt_prog_compiler_pic='-fpic' 9932 lt_prog_compiler_static='-Bstatic' 9933 ;; 9934 esac 9935 ;; 9936 esac 9937 ;; 9938 9939 newsos6) 9940 lt_prog_compiler_pic='-KPIC' 9941 lt_prog_compiler_static='-Bstatic' 9942 ;; 9943 9944 *nto* | *qnx*) 9945 # QNX uses GNU C++, but need to define -shared option too, otherwise 9946 # it will coredump. 9947 lt_prog_compiler_pic='-fPIC -shared' 9948 ;; 9949 9950 osf3* | osf4* | osf5*) 9951 lt_prog_compiler_wl='-Wl,' 9952 # All OSF/1 code is PIC. 9953 lt_prog_compiler_static='-non_shared' 9954 ;; 9955 9956 rdos*) 9957 lt_prog_compiler_static='-non_shared' 9958 ;; 9959 9960 solaris*) 9961 lt_prog_compiler_pic='-KPIC' 9962 lt_prog_compiler_static='-Bstatic' 9963 case $cc_basename in 9964 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9965 lt_prog_compiler_wl='-Qoption ld ';; 9966 *) 9967 lt_prog_compiler_wl='-Wl,';; 9968 esac 9969 ;; 9970 9971 sunos4*) 9972 lt_prog_compiler_wl='-Qoption ld ' 9973 lt_prog_compiler_pic='-PIC' 9974 lt_prog_compiler_static='-Bstatic' 9975 ;; 9976 9977 sysv4 | sysv4.2uw2* | sysv4.3*) 9978 lt_prog_compiler_wl='-Wl,' 9979 lt_prog_compiler_pic='-KPIC' 9980 lt_prog_compiler_static='-Bstatic' 9981 ;; 9982 9983 sysv4*MP*) 9984 if test -d /usr/nec; then 9985 lt_prog_compiler_pic='-Kconform_pic' 9986 lt_prog_compiler_static='-Bstatic' 9987 fi 9988 ;; 9989 9990 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9991 lt_prog_compiler_wl='-Wl,' 9992 lt_prog_compiler_pic='-KPIC' 9993 lt_prog_compiler_static='-Bstatic' 9994 ;; 9995 9996 unicos*) 9997 lt_prog_compiler_wl='-Wl,' 9998 lt_prog_compiler_can_build_shared=no 9999 ;; 10000 10001 uts4*) 10002 lt_prog_compiler_pic='-pic' 10003 lt_prog_compiler_static='-Bstatic' 10004 ;; 10005 10006 *) 10007 lt_prog_compiler_can_build_shared=no 10008 ;; 10009 esac 10010 fi 10011 10012case $host_os in 10013 # For platforms that do not support PIC, -DPIC is meaningless: 10014 *djgpp*) 10015 lt_prog_compiler_pic= 10016 ;; 10017 *) 10018 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10019 ;; 10020esac 10021 10022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10023$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 10024if ${lt_cv_prog_compiler_pic+:} false; then : 10025 $as_echo_n "(cached) " >&6 10026else 10027 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 10028fi 10029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10030$as_echo "$lt_cv_prog_compiler_pic" >&6; } 10031lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10032 10033# 10034# Check to make sure the PIC flag actually works. 10035# 10036if test -n "$lt_prog_compiler_pic"; then 10037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10038$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10039if ${lt_cv_prog_compiler_pic_works+:} false; then : 10040 $as_echo_n "(cached) " >&6 10041else 10042 lt_cv_prog_compiler_pic_works=no 10043 ac_outfile=conftest.$ac_objext 10044 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10045 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 10046 # Insert the option either (1) after the last *FLAGS variable, or 10047 # (2) before a word containing "conftest.", or (3) at the end. 10048 # Note that $ac_compile itself does not contain backslashes and begins 10049 # with a dollar sign (not a hyphen), so the echo should work correctly. 10050 # The option is referenced via a variable to avoid confusing sed. 10051 lt_compile=`echo "$ac_compile" | $SED \ 10052 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10053 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10054 -e 's:$: $lt_compiler_flag:'` 10055 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10056 (eval "$lt_compile" 2>conftest.err) 10057 ac_status=$? 10058 cat conftest.err >&5 10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10060 if (exit $ac_status) && test -s "$ac_outfile"; then 10061 # The compiler can only warn and ignore the option if not recognized 10062 # So say no if there are warnings other than the usual output. 10063 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10064 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10065 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10066 lt_cv_prog_compiler_pic_works=yes 10067 fi 10068 fi 10069 $RM conftest* 10070 10071fi 10072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10073$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 10074 10075if test yes = "$lt_cv_prog_compiler_pic_works"; then 10076 case $lt_prog_compiler_pic in 10077 "" | " "*) ;; 10078 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10079 esac 10080else 10081 lt_prog_compiler_pic= 10082 lt_prog_compiler_can_build_shared=no 10083fi 10084 10085fi 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097# 10098# Check to make sure the static flag actually works. 10099# 10100wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10102$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10103if ${lt_cv_prog_compiler_static_works+:} false; then : 10104 $as_echo_n "(cached) " >&6 10105else 10106 lt_cv_prog_compiler_static_works=no 10107 save_LDFLAGS=$LDFLAGS 10108 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10109 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10110 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10111 # The linker can only warn and ignore the option if not recognized 10112 # So say no if there are warnings 10113 if test -s conftest.err; then 10114 # Append any errors to the config.log. 10115 cat conftest.err 1>&5 10116 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10117 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10118 if diff conftest.exp conftest.er2 >/dev/null; then 10119 lt_cv_prog_compiler_static_works=yes 10120 fi 10121 else 10122 lt_cv_prog_compiler_static_works=yes 10123 fi 10124 fi 10125 $RM -r conftest* 10126 LDFLAGS=$save_LDFLAGS 10127 10128fi 10129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10130$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 10131 10132if test yes = "$lt_cv_prog_compiler_static_works"; then 10133 : 10134else 10135 lt_prog_compiler_static= 10136fi 10137 10138 10139 10140 10141 10142 10143 10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10145$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10146if ${lt_cv_prog_compiler_c_o+:} false; then : 10147 $as_echo_n "(cached) " >&6 10148else 10149 lt_cv_prog_compiler_c_o=no 10150 $RM -r conftest 2>/dev/null 10151 mkdir conftest 10152 cd conftest 10153 mkdir out 10154 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10155 10156 lt_compiler_flag="-o out/conftest2.$ac_objext" 10157 # Insert the option either (1) after the last *FLAGS variable, or 10158 # (2) before a word containing "conftest.", or (3) at the end. 10159 # Note that $ac_compile itself does not contain backslashes and begins 10160 # with a dollar sign (not a hyphen), so the echo should work correctly. 10161 lt_compile=`echo "$ac_compile" | $SED \ 10162 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10163 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10164 -e 's:$: $lt_compiler_flag:'` 10165 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10166 (eval "$lt_compile" 2>out/conftest.err) 10167 ac_status=$? 10168 cat out/conftest.err >&5 10169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10170 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10171 then 10172 # The compiler can only warn and ignore the option if not recognized 10173 # So say no if there are warnings 10174 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10175 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10176 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10177 lt_cv_prog_compiler_c_o=yes 10178 fi 10179 fi 10180 chmod u+w . 2>&5 10181 $RM conftest* 10182 # SGI C++ compiler will create directory out/ii_files/ for 10183 # template instantiation 10184 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10185 $RM out/* && rmdir out 10186 cd .. 10187 $RM -r conftest 10188 $RM conftest* 10189 10190fi 10191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10192$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10193 10194 10195 10196 10197 10198 10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10200$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10201if ${lt_cv_prog_compiler_c_o+:} false; then : 10202 $as_echo_n "(cached) " >&6 10203else 10204 lt_cv_prog_compiler_c_o=no 10205 $RM -r conftest 2>/dev/null 10206 mkdir conftest 10207 cd conftest 10208 mkdir out 10209 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10210 10211 lt_compiler_flag="-o out/conftest2.$ac_objext" 10212 # Insert the option either (1) after the last *FLAGS variable, or 10213 # (2) before a word containing "conftest.", or (3) at the end. 10214 # Note that $ac_compile itself does not contain backslashes and begins 10215 # with a dollar sign (not a hyphen), so the echo should work correctly. 10216 lt_compile=`echo "$ac_compile" | $SED \ 10217 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10218 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10219 -e 's:$: $lt_compiler_flag:'` 10220 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10221 (eval "$lt_compile" 2>out/conftest.err) 10222 ac_status=$? 10223 cat out/conftest.err >&5 10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10225 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10226 then 10227 # The compiler can only warn and ignore the option if not recognized 10228 # So say no if there are warnings 10229 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10230 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10231 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10232 lt_cv_prog_compiler_c_o=yes 10233 fi 10234 fi 10235 chmod u+w . 2>&5 10236 $RM conftest* 10237 # SGI C++ compiler will create directory out/ii_files/ for 10238 # template instantiation 10239 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10240 $RM out/* && rmdir out 10241 cd .. 10242 $RM -r conftest 10243 $RM conftest* 10244 10245fi 10246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10247$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10248 10249 10250 10251 10252hard_links=nottested 10253if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10254 # do not overwrite the value of need_locks provided by the user 10255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10256$as_echo_n "checking if we can lock with hard links... " >&6; } 10257 hard_links=yes 10258 $RM conftest* 10259 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10260 touch conftest.a 10261 ln conftest.a conftest.b 2>&5 || hard_links=no 10262 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10264$as_echo "$hard_links" >&6; } 10265 if test no = "$hard_links"; then 10266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10267$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10268 need_locks=warn 10269 fi 10270else 10271 need_locks=no 10272fi 10273 10274 10275 10276 10277 10278 10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10280$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10281 10282 runpath_var= 10283 allow_undefined_flag= 10284 always_export_symbols=no 10285 archive_cmds= 10286 archive_expsym_cmds= 10287 compiler_needs_object=no 10288 enable_shared_with_static_runtimes=no 10289 export_dynamic_flag_spec= 10290 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10291 hardcode_automatic=no 10292 hardcode_direct=no 10293 hardcode_direct_absolute=no 10294 hardcode_libdir_flag_spec= 10295 hardcode_libdir_separator= 10296 hardcode_minus_L=no 10297 hardcode_shlibpath_var=unsupported 10298 inherit_rpath=no 10299 link_all_deplibs=unknown 10300 module_cmds= 10301 module_expsym_cmds= 10302 old_archive_from_new_cmds= 10303 old_archive_from_expsyms_cmds= 10304 thread_safe_flag_spec= 10305 whole_archive_flag_spec= 10306 # include_expsyms should be a list of space-separated symbols to be *always* 10307 # included in the symbol list 10308 include_expsyms= 10309 # exclude_expsyms can be an extended regexp of symbols to exclude 10310 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10311 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10312 # as well as any symbol that contains 'd'. 10313 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10314 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10315 # platforms (ab)use it in PIC code, but their linkers get confused if 10316 # the symbol is explicitly referenced. Since portable code cannot 10317 # rely on this symbol name, it's probably fine to never include it in 10318 # preloaded symbol tables. 10319 # Exclude shared library initialization/finalization symbols. 10320 extract_expsyms_cmds= 10321 10322 case $host_os in 10323 cygwin* | mingw* | pw32* | cegcc*) 10324 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10325 # When not using gcc, we currently assume that we are using 10326 # Microsoft Visual C++. 10327 if test yes != "$GCC"; then 10328 with_gnu_ld=no 10329 fi 10330 ;; 10331 interix*) 10332 # we just hope/assume this is gcc and not c89 (= MSVC++) 10333 with_gnu_ld=yes 10334 ;; 10335 openbsd* | bitrig*) 10336 with_gnu_ld=no 10337 ;; 10338 linux* | k*bsd*-gnu | gnu*) 10339 link_all_deplibs=no 10340 ;; 10341 esac 10342 10343 ld_shlibs=yes 10344 10345 # On some targets, GNU ld is compatible enough with the native linker 10346 # that we're better off using the native interface for both. 10347 lt_use_gnu_ld_interface=no 10348 if test yes = "$with_gnu_ld"; then 10349 case $host_os in 10350 aix*) 10351 # The AIX port of GNU ld has always aspired to compatibility 10352 # with the native linker. However, as the warning in the GNU ld 10353 # block says, versions before 2.19.5* couldn't really create working 10354 # shared libraries, regardless of the interface used. 10355 case `$LD -v 2>&1` in 10356 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10357 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10358 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10359 *) 10360 lt_use_gnu_ld_interface=yes 10361 ;; 10362 esac 10363 ;; 10364 *) 10365 lt_use_gnu_ld_interface=yes 10366 ;; 10367 esac 10368 fi 10369 10370 if test yes = "$lt_use_gnu_ld_interface"; then 10371 # If archive_cmds runs LD, not CC, wlarc should be empty 10372 wlarc='$wl' 10373 10374 # Set some defaults for GNU ld with shared library support. These 10375 # are reset later if shared libraries are not supported. Putting them 10376 # here allows them to be overridden if necessary. 10377 runpath_var=LD_RUN_PATH 10378 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10379 export_dynamic_flag_spec='$wl--export-dynamic' 10380 # ancient GNU ld didn't support --whole-archive et. al. 10381 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10382 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10383 else 10384 whole_archive_flag_spec= 10385 fi 10386 supports_anon_versioning=no 10387 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 10388 *GNU\ gold*) supports_anon_versioning=yes ;; 10389 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10390 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10391 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10392 *\ 2.11.*) ;; # other 2.11 versions 10393 *) supports_anon_versioning=yes ;; 10394 esac 10395 10396 # See if GNU ld supports shared libraries. 10397 case $host_os in 10398 aix[3-9]*) 10399 # On AIX/PPC, the GNU linker is very broken 10400 if test ia64 != "$host_cpu"; then 10401 ld_shlibs=no 10402 cat <<_LT_EOF 1>&2 10403 10404*** Warning: the GNU linker, at least up to release 2.19, is reported 10405*** to be unable to reliably create shared libraries on AIX. 10406*** Therefore, libtool is disabling shared libraries support. If you 10407*** really care for shared libraries, you may want to install binutils 10408*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10409*** You will then need to restart the configuration process. 10410 10411_LT_EOF 10412 fi 10413 ;; 10414 10415 amigaos*) 10416 case $host_cpu in 10417 powerpc) 10418 # see comment about AmigaOS4 .so support 10419 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10420 archive_expsym_cmds='' 10421 ;; 10422 m68k) 10423 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)' 10424 hardcode_libdir_flag_spec='-L$libdir' 10425 hardcode_minus_L=yes 10426 ;; 10427 esac 10428 ;; 10429 10430 beos*) 10431 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10432 allow_undefined_flag=unsupported 10433 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10434 # support --undefined. This deserves some investigation. FIXME 10435 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10436 else 10437 ld_shlibs=no 10438 fi 10439 ;; 10440 10441 cygwin* | mingw* | pw32* | cegcc*) 10442 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10443 # as there is no search path for DLLs. 10444 hardcode_libdir_flag_spec='-L$libdir' 10445 export_dynamic_flag_spec='$wl--export-all-symbols' 10446 allow_undefined_flag=unsupported 10447 always_export_symbols=no 10448 enable_shared_with_static_runtimes=yes 10449 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' 10450 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10451 10452 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10453 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10454 # If the export-symbols file already is a .def file, use it as 10455 # is; otherwise, prepend EXPORTS... 10456 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10457 cp $export_symbols $output_objdir/$soname.def; 10458 else 10459 echo EXPORTS > $output_objdir/$soname.def; 10460 cat $export_symbols >> $output_objdir/$soname.def; 10461 fi~ 10462 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10463 else 10464 ld_shlibs=no 10465 fi 10466 ;; 10467 10468 haiku*) 10469 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10470 link_all_deplibs=yes 10471 ;; 10472 10473 os2*) 10474 hardcode_libdir_flag_spec='-L$libdir' 10475 hardcode_minus_L=yes 10476 allow_undefined_flag=unsupported 10477 shrext_cmds=.dll 10478 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10479 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10480 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10481 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10482 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10483 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10484 emximp -o $lib $output_objdir/$libname.def' 10485 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10486 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10487 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10488 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10489 prefix_cmds="$SED"~ 10490 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10491 prefix_cmds="$prefix_cmds -e 1d"; 10492 fi~ 10493 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10494 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10495 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10496 emximp -o $lib $output_objdir/$libname.def' 10497 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10498 enable_shared_with_static_runtimes=yes 10499 ;; 10500 10501 interix[3-9]*) 10502 hardcode_direct=no 10503 hardcode_shlibpath_var=no 10504 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10505 export_dynamic_flag_spec='$wl-E' 10506 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10507 # Instead, shared libraries are loaded at an image base (0x10000000 by 10508 # default) and relocated if they conflict, which is a slow very memory 10509 # consuming and fragmenting process. To avoid this, we pick a random, 10510 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10511 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10512 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10513 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' 10514 ;; 10515 10516 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10517 tmp_diet=no 10518 if test linux-dietlibc = "$host_os"; then 10519 case $cc_basename in 10520 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10521 esac 10522 fi 10523 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10524 && test no = "$tmp_diet" 10525 then 10526 tmp_addflag=' $pic_flag' 10527 tmp_sharedflag='-shared' 10528 case $cc_basename,$host_cpu in 10529 pgcc*) # Portland Group C compiler 10530 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' 10531 tmp_addflag=' $pic_flag' 10532 ;; 10533 pgf77* | pgf90* | pgf95* | pgfortran*) 10534 # Portland Group f77 and f90 compilers 10535 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' 10536 tmp_addflag=' $pic_flag -Mnomain' ;; 10537 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10538 tmp_addflag=' -i_dynamic' ;; 10539 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10540 tmp_addflag=' -i_dynamic -nofor_main' ;; 10541 ifc* | ifort*) # Intel Fortran compiler 10542 tmp_addflag=' -nofor_main' ;; 10543 lf95*) # Lahey Fortran 8.1 10544 whole_archive_flag_spec= 10545 tmp_sharedflag='--shared' ;; 10546 nagfor*) # NAGFOR 5.3 10547 tmp_sharedflag='-Wl,-shared' ;; 10548 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10549 tmp_sharedflag='-qmkshrobj' 10550 tmp_addflag= ;; 10551 nvcc*) # Cuda Compiler Driver 2.2 10552 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' 10553 compiler_needs_object=yes 10554 ;; 10555 esac 10556 case `$CC -V 2>&1 | sed 5q` in 10557 *Sun\ C*) # Sun C 5.9 10558 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' 10559 compiler_needs_object=yes 10560 tmp_sharedflag='-G' ;; 10561 *Sun\ F*) # Sun Fortran 8.3 10562 tmp_sharedflag='-G' ;; 10563 esac 10564 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10565 10566 if test yes = "$supports_anon_versioning"; then 10567 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10568 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10569 echo "local: *; };" >> $output_objdir/$libname.ver~ 10570 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10571 fi 10572 10573 case $cc_basename in 10574 tcc*) 10575 export_dynamic_flag_spec='-rdynamic' 10576 ;; 10577 xlf* | bgf* | bgxlf* | mpixlf*) 10578 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10579 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10580 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10581 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10582 if test yes = "$supports_anon_versioning"; then 10583 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10584 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10585 echo "local: *; };" >> $output_objdir/$libname.ver~ 10586 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10587 fi 10588 ;; 10589 esac 10590 else 10591 ld_shlibs=no 10592 fi 10593 ;; 10594 10595 netbsd* | netbsdelf*-gnu) 10596 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10597 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10598 wlarc= 10599 else 10600 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10601 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10602 fi 10603 ;; 10604 10605 solaris*) 10606 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10607 ld_shlibs=no 10608 cat <<_LT_EOF 1>&2 10609 10610*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10611*** create shared libraries on Solaris systems. Therefore, libtool 10612*** is disabling shared libraries support. We urge you to upgrade GNU 10613*** binutils to release 2.9.1 or newer. Another option is to modify 10614*** your PATH or compiler configuration so that the native linker is 10615*** used, and then restart. 10616 10617_LT_EOF 10618 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10619 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10620 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10621 else 10622 ld_shlibs=no 10623 fi 10624 ;; 10625 10626 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10627 case `$LD -v 2>&1` in 10628 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10629 ld_shlibs=no 10630 cat <<_LT_EOF 1>&2 10631 10632*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10633*** reliably create shared libraries on SCO systems. Therefore, libtool 10634*** is disabling shared libraries support. We urge you to upgrade GNU 10635*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10636*** your PATH or compiler configuration so that the native linker is 10637*** used, and then restart. 10638 10639_LT_EOF 10640 ;; 10641 *) 10642 # For security reasons, it is highly recommended that you always 10643 # use absolute paths for naming shared libraries, and exclude the 10644 # DT_RUNPATH tag from executables and libraries. But doing so 10645 # requires that you compile everything twice, which is a pain. 10646 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10647 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10648 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10649 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10650 else 10651 ld_shlibs=no 10652 fi 10653 ;; 10654 esac 10655 ;; 10656 10657 sunos4*) 10658 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10659 wlarc= 10660 hardcode_direct=yes 10661 hardcode_shlibpath_var=no 10662 ;; 10663 10664 *) 10665 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10666 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10667 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10668 else 10669 ld_shlibs=no 10670 fi 10671 ;; 10672 esac 10673 10674 if test no = "$ld_shlibs"; then 10675 runpath_var= 10676 hardcode_libdir_flag_spec= 10677 export_dynamic_flag_spec= 10678 whole_archive_flag_spec= 10679 fi 10680 else 10681 # PORTME fill in a description of your system's linker (not GNU ld) 10682 case $host_os in 10683 aix3*) 10684 allow_undefined_flag=unsupported 10685 always_export_symbols=yes 10686 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' 10687 # Note: this linker hardcodes the directories in LIBPATH if there 10688 # are no directories specified by -L. 10689 hardcode_minus_L=yes 10690 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10691 # Neither direct hardcoding nor static linking is supported with a 10692 # broken collect2. 10693 hardcode_direct=unsupported 10694 fi 10695 ;; 10696 10697 aix[4-9]*) 10698 if test ia64 = "$host_cpu"; then 10699 # On IA64, the linker does run time linking by default, so we don't 10700 # have to do anything special. 10701 aix_use_runtimelinking=no 10702 exp_sym_flag='-Bexport' 10703 no_entry_flag= 10704 else 10705 # If we're using GNU nm, then we don't want the "-C" option. 10706 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10707 # Without the "-l" option, or with the "-B" option, AIX nm treats 10708 # weak defined symbols like other global defined symbols, whereas 10709 # GNU nm marks them as "W". 10710 # While the 'weak' keyword is ignored in the Export File, we need 10711 # it in the Import File for the 'aix-soname' feature, so we have 10712 # to replace the "-B" option with "-P" for AIX nm. 10713 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10714 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 10715 else 10716 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 10717 fi 10718 aix_use_runtimelinking=no 10719 10720 # Test if we are trying to use run time linking or normal 10721 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10722 # have runtime linking enabled, and use it for executables. 10723 # For shared libraries, we enable/disable runtime linking 10724 # depending on the kind of the shared library created - 10725 # when "with_aix_soname,aix_use_runtimelinking" is: 10726 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10727 # "aix,yes" lib.so shared, rtl:yes, for executables 10728 # lib.a static archive 10729 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10730 # lib.a(lib.so.V) shared, rtl:no, for executables 10731 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10732 # lib.a(lib.so.V) shared, rtl:no 10733 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10734 # lib.a static archive 10735 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10736 for ld_flag in $LDFLAGS; do 10737 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10738 aix_use_runtimelinking=yes 10739 break 10740 fi 10741 done 10742 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10743 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10744 # so we don't have lib.a shared libs to link our executables. 10745 # We have to force runtime linking in this case. 10746 aix_use_runtimelinking=yes 10747 LDFLAGS="$LDFLAGS -Wl,-brtl" 10748 fi 10749 ;; 10750 esac 10751 10752 exp_sym_flag='-bexport' 10753 no_entry_flag='-bnoentry' 10754 fi 10755 10756 # When large executables or shared objects are built, AIX ld can 10757 # have problems creating the table of contents. If linking a library 10758 # or program results in "error TOC overflow" add -mminimal-toc to 10759 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10760 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10761 10762 archive_cmds='' 10763 hardcode_direct=yes 10764 hardcode_direct_absolute=yes 10765 hardcode_libdir_separator=':' 10766 link_all_deplibs=yes 10767 file_list_spec='$wl-f,' 10768 case $with_aix_soname,$aix_use_runtimelinking in 10769 aix,*) ;; # traditional, no import file 10770 svr4,* | *,yes) # use import file 10771 # The Import File defines what to hardcode. 10772 hardcode_direct=no 10773 hardcode_direct_absolute=no 10774 ;; 10775 esac 10776 10777 if test yes = "$GCC"; then 10778 case $host_os in aix4.[012]|aix4.[012].*) 10779 # We only want to do this on AIX 4.2 and lower, the check 10780 # below for broken collect2 doesn't work under 4.3+ 10781 collect2name=`$CC -print-prog-name=collect2` 10782 if test -f "$collect2name" && 10783 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10784 then 10785 # We have reworked collect2 10786 : 10787 else 10788 # We have old collect2 10789 hardcode_direct=unsupported 10790 # It fails to find uninstalled libraries when the uninstalled 10791 # path is not listed in the libpath. Setting hardcode_minus_L 10792 # to unsupported forces relinking 10793 hardcode_minus_L=yes 10794 hardcode_libdir_flag_spec='-L$libdir' 10795 hardcode_libdir_separator= 10796 fi 10797 ;; 10798 esac 10799 shared_flag='-shared' 10800 if test yes = "$aix_use_runtimelinking"; then 10801 shared_flag="$shared_flag "'$wl-G' 10802 fi 10803 # Need to ensure runtime linking is disabled for the traditional 10804 # shared library, or the linker may eventually find shared libraries 10805 # /with/ Import File - we do not want to mix them. 10806 shared_flag_aix='-shared' 10807 shared_flag_svr4='-shared $wl-G' 10808 else 10809 # not using gcc 10810 if test ia64 = "$host_cpu"; then 10811 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10812 # chokes on -Wl,-G. The following line is correct: 10813 shared_flag='-G' 10814 else 10815 if test yes = "$aix_use_runtimelinking"; then 10816 shared_flag='$wl-G' 10817 else 10818 shared_flag='$wl-bM:SRE' 10819 fi 10820 shared_flag_aix='$wl-bM:SRE' 10821 shared_flag_svr4='$wl-G' 10822 fi 10823 fi 10824 10825 export_dynamic_flag_spec='$wl-bexpall' 10826 # It seems that -bexpall does not export symbols beginning with 10827 # underscore (_), so it is better to generate a list of symbols to export. 10828 always_export_symbols=yes 10829 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10830 # Warning - without using the other runtime loading flags (-brtl), 10831 # -berok will link without error, but may produce a broken library. 10832 allow_undefined_flag='-berok' 10833 # Determine the default libpath from the value encoded in an 10834 # empty executable. 10835 if test set = "${lt_cv_aix_libpath+set}"; then 10836 aix_libpath=$lt_cv_aix_libpath 10837else 10838 if ${lt_cv_aix_libpath_+:} false; then : 10839 $as_echo_n "(cached) " >&6 10840else 10841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10842/* end confdefs.h. */ 10843 10844int 10845main () 10846{ 10847 10848 ; 10849 return 0; 10850} 10851_ACEOF 10852if ac_fn_c_try_link "$LINENO"; then : 10853 10854 lt_aix_libpath_sed=' 10855 /Import File Strings/,/^$/ { 10856 /^0/ { 10857 s/^0 *\([^ ]*\) *$/\1/ 10858 p 10859 } 10860 }' 10861 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10862 # Check for a 64-bit object if we didn't find anything. 10863 if test -z "$lt_cv_aix_libpath_"; then 10864 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10865 fi 10866fi 10867rm -f core conftest.err conftest.$ac_objext \ 10868 conftest$ac_exeext conftest.$ac_ext 10869 if test -z "$lt_cv_aix_libpath_"; then 10870 lt_cv_aix_libpath_=/usr/lib:/lib 10871 fi 10872 10873fi 10874 10875 aix_libpath=$lt_cv_aix_libpath_ 10876fi 10877 10878 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10879 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 10880 else 10881 if test ia64 = "$host_cpu"; then 10882 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10883 allow_undefined_flag="-z nodefs" 10884 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" 10885 else 10886 # Determine the default libpath from the value encoded in an 10887 # empty executable. 10888 if test set = "${lt_cv_aix_libpath+set}"; then 10889 aix_libpath=$lt_cv_aix_libpath 10890else 10891 if ${lt_cv_aix_libpath_+:} false; then : 10892 $as_echo_n "(cached) " >&6 10893else 10894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10895/* end confdefs.h. */ 10896 10897int 10898main () 10899{ 10900 10901 ; 10902 return 0; 10903} 10904_ACEOF 10905if ac_fn_c_try_link "$LINENO"; then : 10906 10907 lt_aix_libpath_sed=' 10908 /Import File Strings/,/^$/ { 10909 /^0/ { 10910 s/^0 *\([^ ]*\) *$/\1/ 10911 p 10912 } 10913 }' 10914 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10915 # Check for a 64-bit object if we didn't find anything. 10916 if test -z "$lt_cv_aix_libpath_"; then 10917 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10918 fi 10919fi 10920rm -f core conftest.err conftest.$ac_objext \ 10921 conftest$ac_exeext conftest.$ac_ext 10922 if test -z "$lt_cv_aix_libpath_"; then 10923 lt_cv_aix_libpath_=/usr/lib:/lib 10924 fi 10925 10926fi 10927 10928 aix_libpath=$lt_cv_aix_libpath_ 10929fi 10930 10931 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10932 # Warning - without using the other run time loading flags, 10933 # -berok will link without error, but may produce a broken library. 10934 no_undefined_flag=' $wl-bernotok' 10935 allow_undefined_flag=' $wl-berok' 10936 if test yes = "$with_gnu_ld"; then 10937 # We only use this code for GNU lds that support --whole-archive. 10938 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10939 else 10940 # Exported symbols can be pulled into shared objects from archives 10941 whole_archive_flag_spec='$convenience' 10942 fi 10943 archive_cmds_need_lc=yes 10944 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10945 # -brtl affects multiple linker settings, -berok does not and is overridden later 10946 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10947 if test svr4 != "$with_aix_soname"; then 10948 # This is similar to how AIX traditionally builds its shared libraries. 10949 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 10950 fi 10951 if test aix != "$with_aix_soname"; then 10952 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 10953 else 10954 # used by -dlpreopen to get the symbols 10955 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10956 fi 10957 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10958 fi 10959 fi 10960 ;; 10961 10962 amigaos*) 10963 case $host_cpu in 10964 powerpc) 10965 # see comment about AmigaOS4 .so support 10966 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10967 archive_expsym_cmds='' 10968 ;; 10969 m68k) 10970 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)' 10971 hardcode_libdir_flag_spec='-L$libdir' 10972 hardcode_minus_L=yes 10973 ;; 10974 esac 10975 ;; 10976 10977 bsdi[45]*) 10978 export_dynamic_flag_spec=-rdynamic 10979 ;; 10980 10981 cygwin* | mingw* | pw32* | cegcc*) 10982 # When not using gcc, we currently assume that we are using 10983 # Microsoft Visual C++. 10984 # hardcode_libdir_flag_spec is actually meaningless, as there is 10985 # no search path for DLLs. 10986 case $cc_basename in 10987 cl*) 10988 # Native MSVC 10989 hardcode_libdir_flag_spec=' ' 10990 allow_undefined_flag=unsupported 10991 always_export_symbols=yes 10992 file_list_spec='@' 10993 # Tell ltmain to make .lib files, not .a files. 10994 libext=lib 10995 # Tell ltmain to make .dll files, not .so files. 10996 shrext_cmds=.dll 10997 # FIXME: Setting linknames here is a bad hack. 10998 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10999 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11000 cp "$export_symbols" "$output_objdir/$soname.def"; 11001 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 11002 else 11003 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 11004 fi~ 11005 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11006 linknames=' 11007 # The linker will not automatically build a static lib if we build a DLL. 11008 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11009 enable_shared_with_static_runtimes=yes 11010 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11011 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11012 # Don't use ranlib 11013 old_postinstall_cmds='chmod 644 $oldlib' 11014 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11015 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11016 case $lt_outputfile in 11017 *.exe|*.EXE) ;; 11018 *) 11019 lt_outputfile=$lt_outputfile.exe 11020 lt_tool_outputfile=$lt_tool_outputfile.exe 11021 ;; 11022 esac~ 11023 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 11024 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11025 $RM "$lt_outputfile.manifest"; 11026 fi' 11027 ;; 11028 *) 11029 # Assume MSVC wrapper 11030 hardcode_libdir_flag_spec=' ' 11031 allow_undefined_flag=unsupported 11032 # Tell ltmain to make .lib files, not .a files. 11033 libext=lib 11034 # Tell ltmain to make .dll files, not .so files. 11035 shrext_cmds=.dll 11036 # FIXME: Setting linknames here is a bad hack. 11037 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11038 # The linker will automatically build a .lib file if we build a DLL. 11039 old_archive_from_new_cmds='true' 11040 # FIXME: Should let the user specify the lib program. 11041 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11042 enable_shared_with_static_runtimes=yes 11043 ;; 11044 esac 11045 ;; 11046 11047 darwin* | rhapsody*) 11048 11049 11050 archive_cmds_need_lc=no 11051 hardcode_direct=no 11052 hardcode_automatic=yes 11053 hardcode_shlibpath_var=unsupported 11054 if test yes = "$lt_cv_ld_force_load"; then 11055 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\"`' 11056 11057 else 11058 whole_archive_flag_spec='' 11059 fi 11060 link_all_deplibs=yes 11061 allow_undefined_flag=$_lt_dar_allow_undefined 11062 case $cc_basename in 11063 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 11064 *) _lt_dar_can_shared=$GCC ;; 11065 esac 11066 if test yes = "$_lt_dar_can_shared"; then 11067 output_verbose_link_cmd=func_echo_all 11068 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 11069 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 11070 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" 11071 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" 11072 11073 else 11074 ld_shlibs=no 11075 fi 11076 11077 ;; 11078 11079 dgux*) 11080 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11081 hardcode_libdir_flag_spec='-L$libdir' 11082 hardcode_shlibpath_var=no 11083 ;; 11084 11085 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11086 # support. Future versions do this automatically, but an explicit c++rt0.o 11087 # does not break anything, and helps significantly (at the cost of a little 11088 # extra space). 11089 freebsd2.2*) 11090 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11091 hardcode_libdir_flag_spec='-R$libdir' 11092 hardcode_direct=yes 11093 hardcode_shlibpath_var=no 11094 ;; 11095 11096 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11097 freebsd2.*) 11098 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11099 hardcode_direct=yes 11100 hardcode_minus_L=yes 11101 hardcode_shlibpath_var=no 11102 ;; 11103 11104 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11105 freebsd* | dragonfly*) 11106 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11107 hardcode_libdir_flag_spec='-R$libdir' 11108 hardcode_direct=yes 11109 hardcode_shlibpath_var=no 11110 ;; 11111 11112 hpux9*) 11113 if test yes = "$GCC"; then 11114 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 11115 else 11116 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 11117 fi 11118 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11119 hardcode_libdir_separator=: 11120 hardcode_direct=yes 11121 11122 # hardcode_minus_L: Not really in the search PATH, 11123 # but as the default location of the library. 11124 hardcode_minus_L=yes 11125 export_dynamic_flag_spec='$wl-E' 11126 ;; 11127 11128 hpux10*) 11129 if test yes,no = "$GCC,$with_gnu_ld"; then 11130 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11131 else 11132 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11133 fi 11134 if test no = "$with_gnu_ld"; then 11135 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11136 hardcode_libdir_separator=: 11137 hardcode_direct=yes 11138 hardcode_direct_absolute=yes 11139 export_dynamic_flag_spec='$wl-E' 11140 # hardcode_minus_L: Not really in the search PATH, 11141 # but as the default location of the library. 11142 hardcode_minus_L=yes 11143 fi 11144 ;; 11145 11146 hpux11*) 11147 if test yes,no = "$GCC,$with_gnu_ld"; then 11148 case $host_cpu in 11149 hppa*64*) 11150 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11151 ;; 11152 ia64*) 11153 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11154 ;; 11155 *) 11156 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11157 ;; 11158 esac 11159 else 11160 case $host_cpu in 11161 hppa*64*) 11162 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11163 ;; 11164 ia64*) 11165 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11166 ;; 11167 *) 11168 11169 # Older versions of the 11.00 compiler do not understand -b yet 11170 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11172$as_echo_n "checking if $CC understands -b... " >&6; } 11173if ${lt_cv_prog_compiler__b+:} false; then : 11174 $as_echo_n "(cached) " >&6 11175else 11176 lt_cv_prog_compiler__b=no 11177 save_LDFLAGS=$LDFLAGS 11178 LDFLAGS="$LDFLAGS -b" 11179 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11180 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11181 # The linker can only warn and ignore the option if not recognized 11182 # So say no if there are warnings 11183 if test -s conftest.err; then 11184 # Append any errors to the config.log. 11185 cat conftest.err 1>&5 11186 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11187 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11188 if diff conftest.exp conftest.er2 >/dev/null; then 11189 lt_cv_prog_compiler__b=yes 11190 fi 11191 else 11192 lt_cv_prog_compiler__b=yes 11193 fi 11194 fi 11195 $RM -r conftest* 11196 LDFLAGS=$save_LDFLAGS 11197 11198fi 11199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11200$as_echo "$lt_cv_prog_compiler__b" >&6; } 11201 11202if test yes = "$lt_cv_prog_compiler__b"; then 11203 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11204else 11205 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11206fi 11207 11208 ;; 11209 esac 11210 fi 11211 if test no = "$with_gnu_ld"; then 11212 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11213 hardcode_libdir_separator=: 11214 11215 case $host_cpu in 11216 hppa*64*|ia64*) 11217 hardcode_direct=no 11218 hardcode_shlibpath_var=no 11219 ;; 11220 *) 11221 hardcode_direct=yes 11222 hardcode_direct_absolute=yes 11223 export_dynamic_flag_spec='$wl-E' 11224 11225 # hardcode_minus_L: Not really in the search PATH, 11226 # but as the default location of the library. 11227 hardcode_minus_L=yes 11228 ;; 11229 esac 11230 fi 11231 ;; 11232 11233 irix5* | irix6* | nonstopux*) 11234 if test yes = "$GCC"; then 11235 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' 11236 # Try to use the -exported_symbol ld option, if it does not 11237 # work, assume that -exports_file does not work either and 11238 # implicitly export all symbols. 11239 # This should be the same for all languages, so no per-tag cache variable. 11240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11241$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11242if ${lt_cv_irix_exported_symbol+:} false; then : 11243 $as_echo_n "(cached) " >&6 11244else 11245 save_LDFLAGS=$LDFLAGS 11246 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11248/* end confdefs.h. */ 11249int foo (void) { return 0; } 11250_ACEOF 11251if ac_fn_c_try_link "$LINENO"; then : 11252 lt_cv_irix_exported_symbol=yes 11253else 11254 lt_cv_irix_exported_symbol=no 11255fi 11256rm -f core conftest.err conftest.$ac_objext \ 11257 conftest$ac_exeext conftest.$ac_ext 11258 LDFLAGS=$save_LDFLAGS 11259fi 11260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11261$as_echo "$lt_cv_irix_exported_symbol" >&6; } 11262 if test yes = "$lt_cv_irix_exported_symbol"; then 11263 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' 11264 fi 11265 link_all_deplibs=no 11266 else 11267 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' 11268 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' 11269 fi 11270 archive_cmds_need_lc='no' 11271 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11272 hardcode_libdir_separator=: 11273 inherit_rpath=yes 11274 link_all_deplibs=yes 11275 ;; 11276 11277 linux*) 11278 case $cc_basename in 11279 tcc*) 11280 # Fabrice Bellard et al's Tiny C Compiler 11281 ld_shlibs=yes 11282 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11283 ;; 11284 esac 11285 ;; 11286 11287 netbsd* | netbsdelf*-gnu) 11288 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11289 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11290 else 11291 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11292 fi 11293 hardcode_libdir_flag_spec='-R$libdir' 11294 hardcode_direct=yes 11295 hardcode_shlibpath_var=no 11296 ;; 11297 11298 newsos6) 11299 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11300 hardcode_direct=yes 11301 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11302 hardcode_libdir_separator=: 11303 hardcode_shlibpath_var=no 11304 ;; 11305 11306 *nto* | *qnx*) 11307 ;; 11308 11309 openbsd* | bitrig*) 11310 if test -f /usr/libexec/ld.so; then 11311 hardcode_direct=yes 11312 hardcode_shlibpath_var=no 11313 hardcode_direct_absolute=yes 11314 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11315 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11316 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11317 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11318 export_dynamic_flag_spec='$wl-E' 11319 else 11320 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11321 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11322 fi 11323 else 11324 ld_shlibs=no 11325 fi 11326 ;; 11327 11328 os2*) 11329 hardcode_libdir_flag_spec='-L$libdir' 11330 hardcode_minus_L=yes 11331 allow_undefined_flag=unsupported 11332 shrext_cmds=.dll 11333 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11334 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11335 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11336 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11337 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11338 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11339 emximp -o $lib $output_objdir/$libname.def' 11340 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11341 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11342 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11343 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11344 prefix_cmds="$SED"~ 11345 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11346 prefix_cmds="$prefix_cmds -e 1d"; 11347 fi~ 11348 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11349 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11350 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11351 emximp -o $lib $output_objdir/$libname.def' 11352 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11353 enable_shared_with_static_runtimes=yes 11354 ;; 11355 11356 osf3*) 11357 if test yes = "$GCC"; then 11358 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11359 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' 11360 else 11361 allow_undefined_flag=' -expect_unresolved \*' 11362 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' 11363 fi 11364 archive_cmds_need_lc='no' 11365 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11366 hardcode_libdir_separator=: 11367 ;; 11368 11369 osf4* | osf5*) # as osf3* with the addition of -msym flag 11370 if test yes = "$GCC"; then 11371 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11372 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' 11373 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11374 else 11375 allow_undefined_flag=' -expect_unresolved \*' 11376 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' 11377 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~ 11378 $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' 11379 11380 # Both c and cxx compiler support -rpath directly 11381 hardcode_libdir_flag_spec='-rpath $libdir' 11382 fi 11383 archive_cmds_need_lc='no' 11384 hardcode_libdir_separator=: 11385 ;; 11386 11387 solaris*) 11388 no_undefined_flag=' -z defs' 11389 if test yes = "$GCC"; then 11390 wlarc='$wl' 11391 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11392 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11393 $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' 11394 else 11395 case `$CC -V 2>&1` in 11396 *"Compilers 5.0"*) 11397 wlarc='' 11398 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11399 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11400 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11401 ;; 11402 *) 11403 wlarc='$wl' 11404 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11405 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11406 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11407 ;; 11408 esac 11409 fi 11410 hardcode_libdir_flag_spec='-R$libdir' 11411 hardcode_shlibpath_var=no 11412 case $host_os in 11413 solaris2.[0-5] | solaris2.[0-5].*) ;; 11414 *) 11415 # The compiler driver will combine and reorder linker options, 11416 # but understands '-z linker_flag'. GCC discards it without '$wl', 11417 # but is careful enough not to reorder. 11418 # Supported since Solaris 2.6 (maybe 2.5.1?) 11419 if test yes = "$GCC"; then 11420 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11421 else 11422 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11423 fi 11424 ;; 11425 esac 11426 link_all_deplibs=yes 11427 ;; 11428 11429 sunos4*) 11430 if test sequent = "$host_vendor"; then 11431 # Use $CC to link under sequent, because it throws in some extra .o 11432 # files that make .init and .fini sections work. 11433 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11434 else 11435 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11436 fi 11437 hardcode_libdir_flag_spec='-L$libdir' 11438 hardcode_direct=yes 11439 hardcode_minus_L=yes 11440 hardcode_shlibpath_var=no 11441 ;; 11442 11443 sysv4) 11444 case $host_vendor in 11445 sni) 11446 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11447 hardcode_direct=yes # is this really true??? 11448 ;; 11449 siemens) 11450 ## LD is ld it makes a PLAMLIB 11451 ## CC just makes a GrossModule. 11452 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11453 reload_cmds='$CC -r -o $output$reload_objs' 11454 hardcode_direct=no 11455 ;; 11456 motorola) 11457 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11458 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11459 ;; 11460 esac 11461 runpath_var='LD_RUN_PATH' 11462 hardcode_shlibpath_var=no 11463 ;; 11464 11465 sysv4.3*) 11466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11467 hardcode_shlibpath_var=no 11468 export_dynamic_flag_spec='-Bexport' 11469 ;; 11470 11471 sysv4*MP*) 11472 if test -d /usr/nec; then 11473 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11474 hardcode_shlibpath_var=no 11475 runpath_var=LD_RUN_PATH 11476 hardcode_runpath_var=yes 11477 ld_shlibs=yes 11478 fi 11479 ;; 11480 11481 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11482 no_undefined_flag='$wl-z,text' 11483 archive_cmds_need_lc=no 11484 hardcode_shlibpath_var=no 11485 runpath_var='LD_RUN_PATH' 11486 11487 if test yes = "$GCC"; then 11488 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11489 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11490 else 11491 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11492 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11493 fi 11494 ;; 11495 11496 sysv5* | sco3.2v5* | sco5v6*) 11497 # Note: We CANNOT use -z defs as we might desire, because we do not 11498 # link with -lc, and that would cause any symbols used from libc to 11499 # always be unresolved, which means just about no library would 11500 # ever link correctly. If we're not using GNU ld we use -z text 11501 # though, which does catch some bad symbols but isn't as heavy-handed 11502 # as -z defs. 11503 no_undefined_flag='$wl-z,text' 11504 allow_undefined_flag='$wl-z,nodefs' 11505 archive_cmds_need_lc=no 11506 hardcode_shlibpath_var=no 11507 hardcode_libdir_flag_spec='$wl-R,$libdir' 11508 hardcode_libdir_separator=':' 11509 link_all_deplibs=yes 11510 export_dynamic_flag_spec='$wl-Bexport' 11511 runpath_var='LD_RUN_PATH' 11512 11513 if test yes = "$GCC"; then 11514 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11515 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11516 else 11517 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11518 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11519 fi 11520 ;; 11521 11522 uts4*) 11523 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11524 hardcode_libdir_flag_spec='-L$libdir' 11525 hardcode_shlibpath_var=no 11526 ;; 11527 11528 *) 11529 ld_shlibs=no 11530 ;; 11531 esac 11532 11533 if test sni = "$host_vendor"; then 11534 case $host in 11535 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11536 export_dynamic_flag_spec='$wl-Blargedynsym' 11537 ;; 11538 esac 11539 fi 11540 fi 11541 11542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11543$as_echo "$ld_shlibs" >&6; } 11544test no = "$ld_shlibs" && can_build_shared=no 11545 11546with_gnu_ld=$with_gnu_ld 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562# 11563# Do we need to explicitly link libc? 11564# 11565case "x$archive_cmds_need_lc" in 11566x|xyes) 11567 # Assume -lc should be added 11568 archive_cmds_need_lc=yes 11569 11570 if test yes,yes = "$GCC,$enable_shared"; then 11571 case $archive_cmds in 11572 *'~'*) 11573 # FIXME: we may have to deal with multi-command sequences. 11574 ;; 11575 '$CC '*) 11576 # Test whether the compiler implicitly links with -lc since on some 11577 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11578 # to ld, don't add -lc before -lgcc. 11579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11580$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11581if ${lt_cv_archive_cmds_need_lc+:} false; then : 11582 $as_echo_n "(cached) " >&6 11583else 11584 $RM conftest* 11585 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11586 11587 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11588 (eval $ac_compile) 2>&5 11589 ac_status=$? 11590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11591 test $ac_status = 0; } 2>conftest.err; then 11592 soname=conftest 11593 lib=conftest 11594 libobjs=conftest.$ac_objext 11595 deplibs= 11596 wl=$lt_prog_compiler_wl 11597 pic_flag=$lt_prog_compiler_pic 11598 compiler_flags=-v 11599 linker_flags=-v 11600 verstring= 11601 output_objdir=. 11602 libname=conftest 11603 lt_save_allow_undefined_flag=$allow_undefined_flag 11604 allow_undefined_flag= 11605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11606 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11607 ac_status=$? 11608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11609 test $ac_status = 0; } 11610 then 11611 lt_cv_archive_cmds_need_lc=no 11612 else 11613 lt_cv_archive_cmds_need_lc=yes 11614 fi 11615 allow_undefined_flag=$lt_save_allow_undefined_flag 11616 else 11617 cat conftest.err 1>&5 11618 fi 11619 $RM conftest* 11620 11621fi 11622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11623$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11624 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11625 ;; 11626 esac 11627 fi 11628 ;; 11629esac 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11783$as_echo_n "checking dynamic linker characteristics... " >&6; } 11784 11785if test yes = "$GCC"; then 11786 case $host_os in 11787 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11788 *) lt_awk_arg='/^libraries:/' ;; 11789 esac 11790 case $host_os in 11791 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11792 *) lt_sed_strip_eq='s|=/|/|g' ;; 11793 esac 11794 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11795 case $lt_search_path_spec in 11796 *\;*) 11797 # if the path contains ";" then we assume it to be the separator 11798 # otherwise default to the standard path separator (i.e. ":") - it is 11799 # assumed that no part of a normal pathname contains ";" but that should 11800 # okay in the real world where ";" in dirpaths is itself problematic. 11801 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11802 ;; 11803 *) 11804 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11805 ;; 11806 esac 11807 # Ok, now we have the path, separated by spaces, we can step through it 11808 # and add multilib dir if necessary... 11809 lt_tmp_lt_search_path_spec= 11810 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11811 # ...but if some path component already ends with the multilib dir we assume 11812 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11813 case "$lt_multi_os_dir; $lt_search_path_spec " in 11814 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11815 lt_multi_os_dir= 11816 ;; 11817 esac 11818 for lt_sys_path in $lt_search_path_spec; do 11819 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11820 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11821 elif test -n "$lt_multi_os_dir"; then 11822 test -d "$lt_sys_path" && \ 11823 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11824 fi 11825 done 11826 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11827BEGIN {RS = " "; FS = "/|\n";} { 11828 lt_foo = ""; 11829 lt_count = 0; 11830 for (lt_i = NF; lt_i > 0; lt_i--) { 11831 if ($lt_i != "" && $lt_i != ".") { 11832 if ($lt_i == "..") { 11833 lt_count++; 11834 } else { 11835 if (lt_count == 0) { 11836 lt_foo = "/" $lt_i lt_foo; 11837 } else { 11838 lt_count--; 11839 } 11840 } 11841 } 11842 } 11843 if (lt_foo != "") { lt_freq[lt_foo]++; } 11844 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11845}'` 11846 # AWK program above erroneously prepends '/' to C:/dos/paths 11847 # for these hosts. 11848 case $host_os in 11849 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11850 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11851 esac 11852 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11853else 11854 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11855fi 11856library_names_spec= 11857libname_spec='lib$name' 11858soname_spec= 11859shrext_cmds=.so 11860postinstall_cmds= 11861postuninstall_cmds= 11862finish_cmds= 11863finish_eval= 11864shlibpath_var= 11865shlibpath_overrides_runpath=unknown 11866version_type=none 11867dynamic_linker="$host_os ld.so" 11868sys_lib_dlsearch_path_spec="/lib /usr/lib" 11869need_lib_prefix=unknown 11870hardcode_into_libs=no 11871 11872# when you set need_version to no, make sure it does not cause -set_version 11873# flags to be left without arguments 11874need_version=unknown 11875 11876 11877 11878case $host_os in 11879aix3*) 11880 version_type=linux # correct to gnu/linux during the next big refactor 11881 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11882 shlibpath_var=LIBPATH 11883 11884 # AIX 3 has no versioning support, so we append a major version to the name. 11885 soname_spec='$libname$release$shared_ext$major' 11886 ;; 11887 11888aix[4-9]*) 11889 version_type=linux # correct to gnu/linux during the next big refactor 11890 need_lib_prefix=no 11891 need_version=no 11892 hardcode_into_libs=yes 11893 if test ia64 = "$host_cpu"; then 11894 # AIX 5 supports IA64 11895 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11896 shlibpath_var=LD_LIBRARY_PATH 11897 else 11898 # With GCC up to 2.95.x, collect2 would create an import file 11899 # for dependence libraries. The import file would start with 11900 # the line '#! .'. This would cause the generated library to 11901 # depend on '.', always an invalid library. This was fixed in 11902 # development snapshots of GCC prior to 3.0. 11903 case $host_os in 11904 aix4 | aix4.[01] | aix4.[01].*) 11905 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11906 echo ' yes ' 11907 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11908 : 11909 else 11910 can_build_shared=no 11911 fi 11912 ;; 11913 esac 11914 # Using Import Files as archive members, it is possible to support 11915 # filename-based versioning of shared library archives on AIX. While 11916 # this would work for both with and without runtime linking, it will 11917 # prevent static linking of such archives. So we do filename-based 11918 # shared library versioning with .so extension only, which is used 11919 # when both runtime linking and shared linking is enabled. 11920 # Unfortunately, runtime linking may impact performance, so we do 11921 # not want this to be the default eventually. Also, we use the 11922 # versioned .so libs for executables only if there is the -brtl 11923 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11924 # To allow for filename-based versioning support, we need to create 11925 # libNAME.so.V as an archive file, containing: 11926 # *) an Import File, referring to the versioned filename of the 11927 # archive as well as the shared archive member, telling the 11928 # bitwidth (32 or 64) of that shared object, and providing the 11929 # list of exported symbols of that shared object, eventually 11930 # decorated with the 'weak' keyword 11931 # *) the shared object with the F_LOADONLY flag set, to really avoid 11932 # it being seen by the linker. 11933 # At run time we better use the real file rather than another symlink, 11934 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11935 11936 case $with_aix_soname,$aix_use_runtimelinking in 11937 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11938 # soname into executable. Probably we can add versioning support to 11939 # collect2, so additional links can be useful in future. 11940 aix,yes) # traditional libtool 11941 dynamic_linker='AIX unversionable lib.so' 11942 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11943 # instead of lib<name>.a to let people know that these are not 11944 # typical AIX shared libraries. 11945 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11946 ;; 11947 aix,no) # traditional AIX only 11948 dynamic_linker='AIX lib.a(lib.so.V)' 11949 # We preserve .a as extension for shared libraries through AIX4.2 11950 # and later when we are not doing run time linking. 11951 library_names_spec='$libname$release.a $libname.a' 11952 soname_spec='$libname$release$shared_ext$major' 11953 ;; 11954 svr4,*) # full svr4 only 11955 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11956 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11957 # We do not specify a path in Import Files, so LIBPATH fires. 11958 shlibpath_overrides_runpath=yes 11959 ;; 11960 *,yes) # both, prefer svr4 11961 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11962 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11963 # unpreferred sharedlib libNAME.a needs extra handling 11964 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 11965 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 11966 # We do not specify a path in Import Files, so LIBPATH fires. 11967 shlibpath_overrides_runpath=yes 11968 ;; 11969 *,no) # both, prefer aix 11970 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11971 library_names_spec='$libname$release.a $libname.a' 11972 soname_spec='$libname$release$shared_ext$major' 11973 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11974 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 11975 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 11976 ;; 11977 esac 11978 shlibpath_var=LIBPATH 11979 fi 11980 ;; 11981 11982amigaos*) 11983 case $host_cpu in 11984 powerpc) 11985 # Since July 2007 AmigaOS4 officially supports .so libraries. 11986 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11987 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11988 ;; 11989 m68k) 11990 library_names_spec='$libname.ixlibrary $libname.a' 11991 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11992 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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' 11993 ;; 11994 esac 11995 ;; 11996 11997beos*) 11998 library_names_spec='$libname$shared_ext' 11999 dynamic_linker="$host_os ld.so" 12000 shlibpath_var=LIBRARY_PATH 12001 ;; 12002 12003bsdi[45]*) 12004 version_type=linux # correct to gnu/linux during the next big refactor 12005 need_version=no 12006 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12007 soname_spec='$libname$release$shared_ext$major' 12008 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12009 shlibpath_var=LD_LIBRARY_PATH 12010 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12011 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12012 # the default ld.so.conf also contains /usr/contrib/lib and 12013 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12014 # libtool to hard-code these into programs 12015 ;; 12016 12017cygwin* | mingw* | pw32* | cegcc*) 12018 version_type=windows 12019 shrext_cmds=.dll 12020 need_version=no 12021 need_lib_prefix=no 12022 12023 case $GCC,$cc_basename in 12024 yes,*) 12025 # gcc 12026 library_names_spec='$libname.dll.a' 12027 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12028 postinstall_cmds='base_file=`basename \$file`~ 12029 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12030 dldir=$destdir/`dirname \$dlpath`~ 12031 test -d \$dldir || mkdir -p \$dldir~ 12032 $install_prog $dir/$dlname \$dldir/$dlname~ 12033 chmod a+x \$dldir/$dlname~ 12034 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12035 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12036 fi' 12037 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12038 dlpath=$dir/\$dldll~ 12039 $RM \$dlpath' 12040 shlibpath_overrides_runpath=yes 12041 12042 case $host_os in 12043 cygwin*) 12044 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12045 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12046 12047 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12048 ;; 12049 mingw* | cegcc*) 12050 # MinGW DLLs use traditional 'lib' prefix 12051 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12052 ;; 12053 pw32*) 12054 # pw32 DLLs use 'pw' prefix rather than 'lib' 12055 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12056 ;; 12057 esac 12058 dynamic_linker='Win32 ld.exe' 12059 ;; 12060 12061 *,cl*) 12062 # Native MSVC 12063 libname_spec='$name' 12064 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12065 library_names_spec='$libname.dll.lib' 12066 12067 case $build_os in 12068 mingw*) 12069 sys_lib_search_path_spec= 12070 lt_save_ifs=$IFS 12071 IFS=';' 12072 for lt_path in $LIB 12073 do 12074 IFS=$lt_save_ifs 12075 # Let DOS variable expansion print the short 8.3 style file name. 12076 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12077 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12078 done 12079 IFS=$lt_save_ifs 12080 # Convert to MSYS style. 12081 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12082 ;; 12083 cygwin*) 12084 # Convert to unix form, then to dos form, then back to unix form 12085 # but this time dos style (no spaces!) so that the unix form looks 12086 # like /cygdrive/c/PROGRA~1:/cygdr... 12087 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12088 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12089 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12090 ;; 12091 *) 12092 sys_lib_search_path_spec=$LIB 12093 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12094 # It is most probably a Windows format PATH. 12095 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12096 else 12097 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12098 fi 12099 # FIXME: find the short name or the path components, as spaces are 12100 # common. (e.g. "Program Files" -> "PROGRA~1") 12101 ;; 12102 esac 12103 12104 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12105 postinstall_cmds='base_file=`basename \$file`~ 12106 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12107 dldir=$destdir/`dirname \$dlpath`~ 12108 test -d \$dldir || mkdir -p \$dldir~ 12109 $install_prog $dir/$dlname \$dldir/$dlname' 12110 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12111 dlpath=$dir/\$dldll~ 12112 $RM \$dlpath' 12113 shlibpath_overrides_runpath=yes 12114 dynamic_linker='Win32 link.exe' 12115 ;; 12116 12117 *) 12118 # Assume MSVC wrapper 12119 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 12120 dynamic_linker='Win32 ld.exe' 12121 ;; 12122 esac 12123 # FIXME: first we should search . and the directory the executable is in 12124 shlibpath_var=PATH 12125 ;; 12126 12127darwin* | rhapsody*) 12128 dynamic_linker="$host_os dyld" 12129 version_type=darwin 12130 need_lib_prefix=no 12131 need_version=no 12132 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 12133 soname_spec='$libname$release$major$shared_ext' 12134 shlibpath_overrides_runpath=yes 12135 shlibpath_var=DYLD_LIBRARY_PATH 12136 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12137 12138 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12139 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12140 ;; 12141 12142dgux*) 12143 version_type=linux # correct to gnu/linux during the next big refactor 12144 need_lib_prefix=no 12145 need_version=no 12146 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12147 soname_spec='$libname$release$shared_ext$major' 12148 shlibpath_var=LD_LIBRARY_PATH 12149 ;; 12150 12151freebsd* | dragonfly*) 12152 # DragonFly does not have aout. When/if they implement a new 12153 # versioning mechanism, adjust this. 12154 if test -x /usr/bin/objformat; then 12155 objformat=`/usr/bin/objformat` 12156 else 12157 case $host_os in 12158 freebsd[23].*) objformat=aout ;; 12159 *) objformat=elf ;; 12160 esac 12161 fi 12162 version_type=freebsd-$objformat 12163 case $version_type in 12164 freebsd-elf*) 12165 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12166 soname_spec='$libname$release$shared_ext$major' 12167 need_version=no 12168 need_lib_prefix=no 12169 ;; 12170 freebsd-*) 12171 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12172 need_version=yes 12173 ;; 12174 esac 12175 shlibpath_var=LD_LIBRARY_PATH 12176 case $host_os in 12177 freebsd2.*) 12178 shlibpath_overrides_runpath=yes 12179 ;; 12180 freebsd3.[01]* | freebsdelf3.[01]*) 12181 shlibpath_overrides_runpath=yes 12182 hardcode_into_libs=yes 12183 ;; 12184 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12185 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12186 shlibpath_overrides_runpath=no 12187 hardcode_into_libs=yes 12188 ;; 12189 *) # from 4.6 on, and DragonFly 12190 shlibpath_overrides_runpath=yes 12191 hardcode_into_libs=yes 12192 ;; 12193 esac 12194 ;; 12195 12196haiku*) 12197 version_type=linux # correct to gnu/linux during the next big refactor 12198 need_lib_prefix=no 12199 need_version=no 12200 dynamic_linker="$host_os runtime_loader" 12201 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12202 soname_spec='$libname$release$shared_ext$major' 12203 shlibpath_var=LIBRARY_PATH 12204 shlibpath_overrides_runpath=no 12205 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12206 hardcode_into_libs=yes 12207 ;; 12208 12209hpux9* | hpux10* | hpux11*) 12210 # Give a soname corresponding to the major version so that dld.sl refuses to 12211 # link against other versions. 12212 version_type=sunos 12213 need_lib_prefix=no 12214 need_version=no 12215 case $host_cpu in 12216 ia64*) 12217 shrext_cmds='.so' 12218 hardcode_into_libs=yes 12219 dynamic_linker="$host_os dld.so" 12220 shlibpath_var=LD_LIBRARY_PATH 12221 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12222 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12223 soname_spec='$libname$release$shared_ext$major' 12224 if test 32 = "$HPUX_IA64_MODE"; then 12225 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12226 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12227 else 12228 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12229 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12230 fi 12231 ;; 12232 hppa*64*) 12233 shrext_cmds='.sl' 12234 hardcode_into_libs=yes 12235 dynamic_linker="$host_os dld.sl" 12236 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12237 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12238 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12239 soname_spec='$libname$release$shared_ext$major' 12240 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12241 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12242 ;; 12243 *) 12244 shrext_cmds='.sl' 12245 dynamic_linker="$host_os dld.sl" 12246 shlibpath_var=SHLIB_PATH 12247 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12248 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12249 soname_spec='$libname$release$shared_ext$major' 12250 ;; 12251 esac 12252 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12253 postinstall_cmds='chmod 555 $lib' 12254 # or fails outright, so override atomically: 12255 install_override_mode=555 12256 ;; 12257 12258interix[3-9]*) 12259 version_type=linux # correct to gnu/linux during the next big refactor 12260 need_lib_prefix=no 12261 need_version=no 12262 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12263 soname_spec='$libname$release$shared_ext$major' 12264 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12265 shlibpath_var=LD_LIBRARY_PATH 12266 shlibpath_overrides_runpath=no 12267 hardcode_into_libs=yes 12268 ;; 12269 12270irix5* | irix6* | nonstopux*) 12271 case $host_os in 12272 nonstopux*) version_type=nonstopux ;; 12273 *) 12274 if test yes = "$lt_cv_prog_gnu_ld"; then 12275 version_type=linux # correct to gnu/linux during the next big refactor 12276 else 12277 version_type=irix 12278 fi ;; 12279 esac 12280 need_lib_prefix=no 12281 need_version=no 12282 soname_spec='$libname$release$shared_ext$major' 12283 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12284 case $host_os in 12285 irix5* | nonstopux*) 12286 libsuff= shlibsuff= 12287 ;; 12288 *) 12289 case $LD in # libtool.m4 will add one of these switches to LD 12290 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12291 libsuff= shlibsuff= libmagic=32-bit;; 12292 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12293 libsuff=32 shlibsuff=N32 libmagic=N32;; 12294 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12295 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12296 *) libsuff= shlibsuff= libmagic=never-match;; 12297 esac 12298 ;; 12299 esac 12300 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12301 shlibpath_overrides_runpath=no 12302 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12303 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12304 hardcode_into_libs=yes 12305 ;; 12306 12307# No shared lib support for Linux oldld, aout, or coff. 12308linux*oldld* | linux*aout* | linux*coff*) 12309 dynamic_linker=no 12310 ;; 12311 12312linux*android*) 12313 version_type=none # Android doesn't support versioned libraries. 12314 need_lib_prefix=no 12315 need_version=no 12316 library_names_spec='$libname$release$shared_ext' 12317 soname_spec='$libname$release$shared_ext' 12318 finish_cmds= 12319 shlibpath_var=LD_LIBRARY_PATH 12320 shlibpath_overrides_runpath=yes 12321 12322 # This implies no fast_install, which is unacceptable. 12323 # Some rework will be needed to allow for fast_install 12324 # before this can be enabled. 12325 hardcode_into_libs=yes 12326 12327 dynamic_linker='Android linker' 12328 # Don't embed -rpath directories since the linker doesn't support them. 12329 hardcode_libdir_flag_spec='-L$libdir' 12330 ;; 12331 12332# This must be glibc/ELF. 12333linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12334 version_type=linux # correct to gnu/linux during the next big refactor 12335 need_lib_prefix=no 12336 need_version=no 12337 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12338 soname_spec='$libname$release$shared_ext$major' 12339 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12340 shlibpath_var=LD_LIBRARY_PATH 12341 shlibpath_overrides_runpath=no 12342 12343 # Some binutils ld are patched to set DT_RUNPATH 12344 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 12345 $as_echo_n "(cached) " >&6 12346else 12347 lt_cv_shlibpath_overrides_runpath=no 12348 save_LDFLAGS=$LDFLAGS 12349 save_libdir=$libdir 12350 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12351 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12353/* end confdefs.h. */ 12354 12355int 12356main () 12357{ 12358 12359 ; 12360 return 0; 12361} 12362_ACEOF 12363if ac_fn_c_try_link "$LINENO"; then : 12364 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12365 lt_cv_shlibpath_overrides_runpath=yes 12366fi 12367fi 12368rm -f core conftest.err conftest.$ac_objext \ 12369 conftest$ac_exeext conftest.$ac_ext 12370 LDFLAGS=$save_LDFLAGS 12371 libdir=$save_libdir 12372 12373fi 12374 12375 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12376 12377 # This implies no fast_install, which is unacceptable. 12378 # Some rework will be needed to allow for fast_install 12379 # before this can be enabled. 12380 hardcode_into_libs=yes 12381 12382 # Ideally, we could use ldconfig to report *all* directores which are 12383 # searched for libraries, however this is still not possible. Aside from not 12384 # being certain /sbin/ldconfig is available, command 12385 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12386 # even though it is searched at run-time. Try to do the best guess by 12387 # appending ld.so.conf contents (and includes) to the search path. 12388 if test -f /etc/ld.so.conf; then 12389 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' ' '` 12390 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12391 fi 12392 12393 # We used to test for /lib/ld.so.1 and disable shared libraries on 12394 # powerpc, because MkLinux only supported shared libraries with the 12395 # GNU dynamic linker. Since this was broken with cross compilers, 12396 # most powerpc-linux boxes support dynamic linking these days and 12397 # people can always --disable-shared, the test was removed, and we 12398 # assume the GNU/Linux dynamic linker is in use. 12399 dynamic_linker='GNU/Linux ld.so' 12400 ;; 12401 12402netbsdelf*-gnu) 12403 version_type=linux 12404 need_lib_prefix=no 12405 need_version=no 12406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12407 soname_spec='${libname}${release}${shared_ext}$major' 12408 shlibpath_var=LD_LIBRARY_PATH 12409 shlibpath_overrides_runpath=no 12410 hardcode_into_libs=yes 12411 dynamic_linker='NetBSD ld.elf_so' 12412 ;; 12413 12414netbsd*) 12415 version_type=sunos 12416 need_lib_prefix=no 12417 need_version=no 12418 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12419 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12420 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12421 dynamic_linker='NetBSD (a.out) ld.so' 12422 else 12423 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12424 soname_spec='$libname$release$shared_ext$major' 12425 dynamic_linker='NetBSD ld.elf_so' 12426 fi 12427 shlibpath_var=LD_LIBRARY_PATH 12428 shlibpath_overrides_runpath=yes 12429 hardcode_into_libs=yes 12430 ;; 12431 12432newsos6) 12433 version_type=linux # correct to gnu/linux during the next big refactor 12434 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12435 shlibpath_var=LD_LIBRARY_PATH 12436 shlibpath_overrides_runpath=yes 12437 ;; 12438 12439*nto* | *qnx*) 12440 version_type=qnx 12441 need_lib_prefix=no 12442 need_version=no 12443 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12444 soname_spec='$libname$release$shared_ext$major' 12445 shlibpath_var=LD_LIBRARY_PATH 12446 shlibpath_overrides_runpath=no 12447 hardcode_into_libs=yes 12448 dynamic_linker='ldqnx.so' 12449 ;; 12450 12451openbsd* | bitrig*) 12452 version_type=sunos 12453 sys_lib_dlsearch_path_spec=/usr/lib 12454 need_lib_prefix=no 12455 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12456 need_version=no 12457 else 12458 need_version=yes 12459 fi 12460 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12461 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12462 shlibpath_var=LD_LIBRARY_PATH 12463 shlibpath_overrides_runpath=yes 12464 ;; 12465 12466os2*) 12467 libname_spec='$name' 12468 version_type=windows 12469 shrext_cmds=.dll 12470 need_version=no 12471 need_lib_prefix=no 12472 # OS/2 can only load a DLL with a base name of 8 characters or less. 12473 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12474 v=$($ECHO $release$versuffix | tr -d .-); 12475 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12476 $ECHO $n$v`$shared_ext' 12477 library_names_spec='${libname}_dll.$libext' 12478 dynamic_linker='OS/2 ld.exe' 12479 shlibpath_var=BEGINLIBPATH 12480 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12481 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12482 postinstall_cmds='base_file=`basename \$file`~ 12483 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12484 dldir=$destdir/`dirname \$dlpath`~ 12485 test -d \$dldir || mkdir -p \$dldir~ 12486 $install_prog $dir/$dlname \$dldir/$dlname~ 12487 chmod a+x \$dldir/$dlname~ 12488 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12489 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12490 fi' 12491 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12492 dlpath=$dir/\$dldll~ 12493 $RM \$dlpath' 12494 ;; 12495 12496osf3* | osf4* | osf5*) 12497 version_type=osf 12498 need_lib_prefix=no 12499 need_version=no 12500 soname_spec='$libname$release$shared_ext$major' 12501 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12502 shlibpath_var=LD_LIBRARY_PATH 12503 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12504 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12505 ;; 12506 12507rdos*) 12508 dynamic_linker=no 12509 ;; 12510 12511solaris*) 12512 version_type=linux # correct to gnu/linux during the next big refactor 12513 need_lib_prefix=no 12514 need_version=no 12515 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12516 soname_spec='$libname$release$shared_ext$major' 12517 shlibpath_var=LD_LIBRARY_PATH 12518 shlibpath_overrides_runpath=yes 12519 hardcode_into_libs=yes 12520 # ldd complains unless libraries are executable 12521 postinstall_cmds='chmod +x $lib' 12522 ;; 12523 12524sunos4*) 12525 version_type=sunos 12526 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12527 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12528 shlibpath_var=LD_LIBRARY_PATH 12529 shlibpath_overrides_runpath=yes 12530 if test yes = "$with_gnu_ld"; then 12531 need_lib_prefix=no 12532 fi 12533 need_version=yes 12534 ;; 12535 12536sysv4 | sysv4.3*) 12537 version_type=linux # correct to gnu/linux during the next big refactor 12538 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12539 soname_spec='$libname$release$shared_ext$major' 12540 shlibpath_var=LD_LIBRARY_PATH 12541 case $host_vendor in 12542 sni) 12543 shlibpath_overrides_runpath=no 12544 need_lib_prefix=no 12545 runpath_var=LD_RUN_PATH 12546 ;; 12547 siemens) 12548 need_lib_prefix=no 12549 ;; 12550 motorola) 12551 need_lib_prefix=no 12552 need_version=no 12553 shlibpath_overrides_runpath=no 12554 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12555 ;; 12556 esac 12557 ;; 12558 12559sysv4*MP*) 12560 if test -d /usr/nec; then 12561 version_type=linux # correct to gnu/linux during the next big refactor 12562 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12563 soname_spec='$libname$shared_ext.$major' 12564 shlibpath_var=LD_LIBRARY_PATH 12565 fi 12566 ;; 12567 12568sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12569 version_type=sco 12570 need_lib_prefix=no 12571 need_version=no 12572 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12573 soname_spec='$libname$release$shared_ext$major' 12574 shlibpath_var=LD_LIBRARY_PATH 12575 shlibpath_overrides_runpath=yes 12576 hardcode_into_libs=yes 12577 if test yes = "$with_gnu_ld"; then 12578 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12579 else 12580 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12581 case $host_os in 12582 sco3.2v5*) 12583 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12584 ;; 12585 esac 12586 fi 12587 sys_lib_dlsearch_path_spec='/usr/lib' 12588 ;; 12589 12590tpf*) 12591 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12592 version_type=linux # correct to gnu/linux during the next big refactor 12593 need_lib_prefix=no 12594 need_version=no 12595 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12596 shlibpath_var=LD_LIBRARY_PATH 12597 shlibpath_overrides_runpath=no 12598 hardcode_into_libs=yes 12599 ;; 12600 12601uts4*) 12602 version_type=linux # correct to gnu/linux during the next big refactor 12603 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12604 soname_spec='$libname$release$shared_ext$major' 12605 shlibpath_var=LD_LIBRARY_PATH 12606 ;; 12607 12608*) 12609 dynamic_linker=no 12610 ;; 12611esac 12612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12613$as_echo "$dynamic_linker" >&6; } 12614test no = "$dynamic_linker" && can_build_shared=no 12615 12616variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12617if test yes = "$GCC"; then 12618 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12619fi 12620 12621if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12622 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12623fi 12624 12625if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12626 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12627fi 12628 12629# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12630configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12631 12632# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12633func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12634 12635# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12636configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12637 12638 12639 12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707 12708 12709 12710 12711 12712 12713 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731 12732 12733 12734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12735$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12736hardcode_action= 12737if test -n "$hardcode_libdir_flag_spec" || 12738 test -n "$runpath_var" || 12739 test yes = "$hardcode_automatic"; then 12740 12741 # We can hardcode non-existent directories. 12742 if test no != "$hardcode_direct" && 12743 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12744 # have to relink, otherwise we might link with an installed library 12745 # when we should be linking with a yet-to-be-installed one 12746 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12747 test no != "$hardcode_minus_L"; then 12748 # Linking always hardcodes the temporary library directory. 12749 hardcode_action=relink 12750 else 12751 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12752 hardcode_action=immediate 12753 fi 12754else 12755 # We cannot hardcode anything, or else we can only hardcode existing 12756 # directories. 12757 hardcode_action=unsupported 12758fi 12759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12760$as_echo "$hardcode_action" >&6; } 12761 12762if test relink = "$hardcode_action" || 12763 test yes = "$inherit_rpath"; then 12764 # Fast installation is not supported 12765 enable_fast_install=no 12766elif test yes = "$shlibpath_overrides_runpath" || 12767 test no = "$enable_shared"; then 12768 # Fast installation is not necessary 12769 enable_fast_install=needless 12770fi 12771 12772 12773 12774 12775 12776 12777 if test yes != "$enable_dlopen"; then 12778 enable_dlopen=unknown 12779 enable_dlopen_self=unknown 12780 enable_dlopen_self_static=unknown 12781else 12782 lt_cv_dlopen=no 12783 lt_cv_dlopen_libs= 12784 12785 case $host_os in 12786 beos*) 12787 lt_cv_dlopen=load_add_on 12788 lt_cv_dlopen_libs= 12789 lt_cv_dlopen_self=yes 12790 ;; 12791 12792 mingw* | pw32* | cegcc*) 12793 lt_cv_dlopen=LoadLibrary 12794 lt_cv_dlopen_libs= 12795 ;; 12796 12797 cygwin*) 12798 lt_cv_dlopen=dlopen 12799 lt_cv_dlopen_libs= 12800 ;; 12801 12802 darwin*) 12803 # if libdl is installed we need to link against it 12804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12805$as_echo_n "checking for dlopen in -ldl... " >&6; } 12806if ${ac_cv_lib_dl_dlopen+:} false; then : 12807 $as_echo_n "(cached) " >&6 12808else 12809 ac_check_lib_save_LIBS=$LIBS 12810LIBS="-ldl $LIBS" 12811cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12812/* end confdefs.h. */ 12813 12814/* Override any GCC internal prototype to avoid an error. 12815 Use char because int might match the return type of a GCC 12816 builtin and then its argument prototype would still apply. */ 12817#ifdef __cplusplus 12818extern "C" 12819#endif 12820char dlopen (); 12821int 12822main () 12823{ 12824return dlopen (); 12825 ; 12826 return 0; 12827} 12828_ACEOF 12829if ac_fn_c_try_link "$LINENO"; then : 12830 ac_cv_lib_dl_dlopen=yes 12831else 12832 ac_cv_lib_dl_dlopen=no 12833fi 12834rm -f core conftest.err conftest.$ac_objext \ 12835 conftest$ac_exeext conftest.$ac_ext 12836LIBS=$ac_check_lib_save_LIBS 12837fi 12838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12839$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12840if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12841 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12842else 12843 12844 lt_cv_dlopen=dyld 12845 lt_cv_dlopen_libs= 12846 lt_cv_dlopen_self=yes 12847 12848fi 12849 12850 ;; 12851 12852 tpf*) 12853 # Don't try to run any link tests for TPF. We know it's impossible 12854 # because TPF is a cross-compiler, and we know how we open DSOs. 12855 lt_cv_dlopen=dlopen 12856 lt_cv_dlopen_libs= 12857 lt_cv_dlopen_self=no 12858 ;; 12859 12860 *) 12861 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12862if test "x$ac_cv_func_shl_load" = xyes; then : 12863 lt_cv_dlopen=shl_load 12864else 12865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12866$as_echo_n "checking for shl_load in -ldld... " >&6; } 12867if ${ac_cv_lib_dld_shl_load+:} false; then : 12868 $as_echo_n "(cached) " >&6 12869else 12870 ac_check_lib_save_LIBS=$LIBS 12871LIBS="-ldld $LIBS" 12872cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12873/* end confdefs.h. */ 12874 12875/* Override any GCC internal prototype to avoid an error. 12876 Use char because int might match the return type of a GCC 12877 builtin and then its argument prototype would still apply. */ 12878#ifdef __cplusplus 12879extern "C" 12880#endif 12881char shl_load (); 12882int 12883main () 12884{ 12885return shl_load (); 12886 ; 12887 return 0; 12888} 12889_ACEOF 12890if ac_fn_c_try_link "$LINENO"; then : 12891 ac_cv_lib_dld_shl_load=yes 12892else 12893 ac_cv_lib_dld_shl_load=no 12894fi 12895rm -f core conftest.err conftest.$ac_objext \ 12896 conftest$ac_exeext conftest.$ac_ext 12897LIBS=$ac_check_lib_save_LIBS 12898fi 12899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12900$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12901if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12902 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12903else 12904 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12905if test "x$ac_cv_func_dlopen" = xyes; then : 12906 lt_cv_dlopen=dlopen 12907else 12908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12909$as_echo_n "checking for dlopen in -ldl... " >&6; } 12910if ${ac_cv_lib_dl_dlopen+:} false; then : 12911 $as_echo_n "(cached) " >&6 12912else 12913 ac_check_lib_save_LIBS=$LIBS 12914LIBS="-ldl $LIBS" 12915cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12916/* end confdefs.h. */ 12917 12918/* Override any GCC internal prototype to avoid an error. 12919 Use char because int might match the return type of a GCC 12920 builtin and then its argument prototype would still apply. */ 12921#ifdef __cplusplus 12922extern "C" 12923#endif 12924char dlopen (); 12925int 12926main () 12927{ 12928return dlopen (); 12929 ; 12930 return 0; 12931} 12932_ACEOF 12933if ac_fn_c_try_link "$LINENO"; then : 12934 ac_cv_lib_dl_dlopen=yes 12935else 12936 ac_cv_lib_dl_dlopen=no 12937fi 12938rm -f core conftest.err conftest.$ac_objext \ 12939 conftest$ac_exeext conftest.$ac_ext 12940LIBS=$ac_check_lib_save_LIBS 12941fi 12942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12943$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12944if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12945 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12946else 12947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12948$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12949if ${ac_cv_lib_svld_dlopen+:} false; then : 12950 $as_echo_n "(cached) " >&6 12951else 12952 ac_check_lib_save_LIBS=$LIBS 12953LIBS="-lsvld $LIBS" 12954cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12955/* end confdefs.h. */ 12956 12957/* Override any GCC internal prototype to avoid an error. 12958 Use char because int might match the return type of a GCC 12959 builtin and then its argument prototype would still apply. */ 12960#ifdef __cplusplus 12961extern "C" 12962#endif 12963char dlopen (); 12964int 12965main () 12966{ 12967return dlopen (); 12968 ; 12969 return 0; 12970} 12971_ACEOF 12972if ac_fn_c_try_link "$LINENO"; then : 12973 ac_cv_lib_svld_dlopen=yes 12974else 12975 ac_cv_lib_svld_dlopen=no 12976fi 12977rm -f core conftest.err conftest.$ac_objext \ 12978 conftest$ac_exeext conftest.$ac_ext 12979LIBS=$ac_check_lib_save_LIBS 12980fi 12981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12982$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12983if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12984 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12985else 12986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12987$as_echo_n "checking for dld_link in -ldld... " >&6; } 12988if ${ac_cv_lib_dld_dld_link+:} false; then : 12989 $as_echo_n "(cached) " >&6 12990else 12991 ac_check_lib_save_LIBS=$LIBS 12992LIBS="-ldld $LIBS" 12993cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12994/* end confdefs.h. */ 12995 12996/* Override any GCC internal prototype to avoid an error. 12997 Use char because int might match the return type of a GCC 12998 builtin and then its argument prototype would still apply. */ 12999#ifdef __cplusplus 13000extern "C" 13001#endif 13002char dld_link (); 13003int 13004main () 13005{ 13006return dld_link (); 13007 ; 13008 return 0; 13009} 13010_ACEOF 13011if ac_fn_c_try_link "$LINENO"; then : 13012 ac_cv_lib_dld_dld_link=yes 13013else 13014 ac_cv_lib_dld_dld_link=no 13015fi 13016rm -f core conftest.err conftest.$ac_objext \ 13017 conftest$ac_exeext conftest.$ac_ext 13018LIBS=$ac_check_lib_save_LIBS 13019fi 13020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13021$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 13022if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 13023 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13024fi 13025 13026 13027fi 13028 13029 13030fi 13031 13032 13033fi 13034 13035 13036fi 13037 13038 13039fi 13040 13041 ;; 13042 esac 13043 13044 if test no = "$lt_cv_dlopen"; then 13045 enable_dlopen=no 13046 else 13047 enable_dlopen=yes 13048 fi 13049 13050 case $lt_cv_dlopen in 13051 dlopen) 13052 save_CPPFLAGS=$CPPFLAGS 13053 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13054 13055 save_LDFLAGS=$LDFLAGS 13056 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13057 13058 save_LIBS=$LIBS 13059 LIBS="$lt_cv_dlopen_libs $LIBS" 13060 13061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13062$as_echo_n "checking whether a program can dlopen itself... " >&6; } 13063if ${lt_cv_dlopen_self+:} false; then : 13064 $as_echo_n "(cached) " >&6 13065else 13066 if test yes = "$cross_compiling"; then : 13067 lt_cv_dlopen_self=cross 13068else 13069 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13070 lt_status=$lt_dlunknown 13071 cat > conftest.$ac_ext <<_LT_EOF 13072#line $LINENO "configure" 13073#include "confdefs.h" 13074 13075#if HAVE_DLFCN_H 13076#include <dlfcn.h> 13077#endif 13078 13079#include <stdio.h> 13080 13081#ifdef RTLD_GLOBAL 13082# define LT_DLGLOBAL RTLD_GLOBAL 13083#else 13084# ifdef DL_GLOBAL 13085# define LT_DLGLOBAL DL_GLOBAL 13086# else 13087# define LT_DLGLOBAL 0 13088# endif 13089#endif 13090 13091/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13092 find out it does not work in some platform. */ 13093#ifndef LT_DLLAZY_OR_NOW 13094# ifdef RTLD_LAZY 13095# define LT_DLLAZY_OR_NOW RTLD_LAZY 13096# else 13097# ifdef DL_LAZY 13098# define LT_DLLAZY_OR_NOW DL_LAZY 13099# else 13100# ifdef RTLD_NOW 13101# define LT_DLLAZY_OR_NOW RTLD_NOW 13102# else 13103# ifdef DL_NOW 13104# define LT_DLLAZY_OR_NOW DL_NOW 13105# else 13106# define LT_DLLAZY_OR_NOW 0 13107# endif 13108# endif 13109# endif 13110# endif 13111#endif 13112 13113/* When -fvisibility=hidden is used, assume the code has been annotated 13114 correspondingly for the symbols needed. */ 13115#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13116int fnord () __attribute__((visibility("default"))); 13117#endif 13118 13119int fnord () { return 42; } 13120int main () 13121{ 13122 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13123 int status = $lt_dlunknown; 13124 13125 if (self) 13126 { 13127 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13128 else 13129 { 13130 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13131 else puts (dlerror ()); 13132 } 13133 /* dlclose (self); */ 13134 } 13135 else 13136 puts (dlerror ()); 13137 13138 return status; 13139} 13140_LT_EOF 13141 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13142 (eval $ac_link) 2>&5 13143 ac_status=$? 13144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13145 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13146 (./conftest; exit; ) >&5 2>/dev/null 13147 lt_status=$? 13148 case x$lt_status in 13149 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13150 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13151 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13152 esac 13153 else : 13154 # compilation failed 13155 lt_cv_dlopen_self=no 13156 fi 13157fi 13158rm -fr conftest* 13159 13160 13161fi 13162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13163$as_echo "$lt_cv_dlopen_self" >&6; } 13164 13165 if test yes = "$lt_cv_dlopen_self"; then 13166 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13168$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 13169if ${lt_cv_dlopen_self_static+:} false; then : 13170 $as_echo_n "(cached) " >&6 13171else 13172 if test yes = "$cross_compiling"; then : 13173 lt_cv_dlopen_self_static=cross 13174else 13175 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13176 lt_status=$lt_dlunknown 13177 cat > conftest.$ac_ext <<_LT_EOF 13178#line $LINENO "configure" 13179#include "confdefs.h" 13180 13181#if HAVE_DLFCN_H 13182#include <dlfcn.h> 13183#endif 13184 13185#include <stdio.h> 13186 13187#ifdef RTLD_GLOBAL 13188# define LT_DLGLOBAL RTLD_GLOBAL 13189#else 13190# ifdef DL_GLOBAL 13191# define LT_DLGLOBAL DL_GLOBAL 13192# else 13193# define LT_DLGLOBAL 0 13194# endif 13195#endif 13196 13197/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13198 find out it does not work in some platform. */ 13199#ifndef LT_DLLAZY_OR_NOW 13200# ifdef RTLD_LAZY 13201# define LT_DLLAZY_OR_NOW RTLD_LAZY 13202# else 13203# ifdef DL_LAZY 13204# define LT_DLLAZY_OR_NOW DL_LAZY 13205# else 13206# ifdef RTLD_NOW 13207# define LT_DLLAZY_OR_NOW RTLD_NOW 13208# else 13209# ifdef DL_NOW 13210# define LT_DLLAZY_OR_NOW DL_NOW 13211# else 13212# define LT_DLLAZY_OR_NOW 0 13213# endif 13214# endif 13215# endif 13216# endif 13217#endif 13218 13219/* When -fvisibility=hidden is used, assume the code has been annotated 13220 correspondingly for the symbols needed. */ 13221#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13222int fnord () __attribute__((visibility("default"))); 13223#endif 13224 13225int fnord () { return 42; } 13226int main () 13227{ 13228 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13229 int status = $lt_dlunknown; 13230 13231 if (self) 13232 { 13233 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13234 else 13235 { 13236 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13237 else puts (dlerror ()); 13238 } 13239 /* dlclose (self); */ 13240 } 13241 else 13242 puts (dlerror ()); 13243 13244 return status; 13245} 13246_LT_EOF 13247 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13248 (eval $ac_link) 2>&5 13249 ac_status=$? 13250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13251 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13252 (./conftest; exit; ) >&5 2>/dev/null 13253 lt_status=$? 13254 case x$lt_status in 13255 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13256 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13257 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13258 esac 13259 else : 13260 # compilation failed 13261 lt_cv_dlopen_self_static=no 13262 fi 13263fi 13264rm -fr conftest* 13265 13266 13267fi 13268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13269$as_echo "$lt_cv_dlopen_self_static" >&6; } 13270 fi 13271 13272 CPPFLAGS=$save_CPPFLAGS 13273 LDFLAGS=$save_LDFLAGS 13274 LIBS=$save_LIBS 13275 ;; 13276 esac 13277 13278 case $lt_cv_dlopen_self in 13279 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13280 *) enable_dlopen_self=unknown ;; 13281 esac 13282 13283 case $lt_cv_dlopen_self_static in 13284 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13285 *) enable_dlopen_self_static=unknown ;; 13286 esac 13287fi 13288 13289 13290 13291 13292 13293 13294 13295 13296 13297 13298 13299 13300 13301 13302 13303 13304 13305striplib= 13306old_striplib= 13307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13308$as_echo_n "checking whether stripping libraries is possible... " >&6; } 13309if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13310 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13311 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13313$as_echo "yes" >&6; } 13314else 13315# FIXME - insert some real tests, host_os isn't really good enough 13316 case $host_os in 13317 darwin*) 13318 if test -n "$STRIP"; then 13319 striplib="$STRIP -x" 13320 old_striplib="$STRIP -S" 13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13322$as_echo "yes" >&6; } 13323 else 13324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13325$as_echo "no" >&6; } 13326 fi 13327 ;; 13328 *) 13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13330$as_echo "no" >&6; } 13331 ;; 13332 esac 13333fi 13334 13335 13336 13337 13338 13339 13340 13341 13342 13343 13344 13345 13346 # Report what library types will actually be built 13347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13348$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13350$as_echo "$can_build_shared" >&6; } 13351 13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13353$as_echo_n "checking whether to build shared libraries... " >&6; } 13354 test no = "$can_build_shared" && enable_shared=no 13355 13356 # On AIX, shared libraries and static libraries use the same namespace, and 13357 # are all built from PIC. 13358 case $host_os in 13359 aix3*) 13360 test yes = "$enable_shared" && enable_static=no 13361 if test -n "$RANLIB"; then 13362 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13363 postinstall_cmds='$RANLIB $lib' 13364 fi 13365 ;; 13366 13367 aix[4-9]*) 13368 if test ia64 != "$host_cpu"; then 13369 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13370 yes,aix,yes) ;; # shared object as lib.so file only 13371 yes,svr4,*) ;; # shared object as lib.so archive member only 13372 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13373 esac 13374 fi 13375 ;; 13376 esac 13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13378$as_echo "$enable_shared" >&6; } 13379 13380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13381$as_echo_n "checking whether to build static libraries... " >&6; } 13382 # Make sure either enable_shared or enable_static is yes. 13383 test yes = "$enable_shared" || enable_static=yes 13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13385$as_echo "$enable_static" >&6; } 13386 13387 13388 13389 13390fi 13391ac_ext=c 13392ac_cpp='$CPP $CPPFLAGS' 13393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13395ac_compiler_gnu=$ac_cv_c_compiler_gnu 13396 13397CC=$lt_save_CC 13398 13399 if test -n "$CXX" && ( test no != "$CXX" && 13400 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 13401 (test g++ != "$CXX"))); then 13402 ac_ext=cpp 13403ac_cpp='$CXXCPP $CPPFLAGS' 13404ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13405ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13406ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 13408$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 13409if test -z "$CXXCPP"; then 13410 if ${ac_cv_prog_CXXCPP+:} false; then : 13411 $as_echo_n "(cached) " >&6 13412else 13413 # Double quotes because CXXCPP needs to be expanded 13414 for CXXCPP in "$CXX -E" "/lib/cpp" 13415 do 13416 ac_preproc_ok=false 13417for ac_cxx_preproc_warn_flag in '' yes 13418do 13419 # Use a header file that comes with gcc, so configuring glibc 13420 # with a fresh cross-compiler works. 13421 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13422 # <limits.h> exists even on freestanding compilers. 13423 # On the NeXT, cc -E runs the code through the compiler's parser, 13424 # not just through cpp. "Syntax error" is here to catch this case. 13425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13426/* end confdefs.h. */ 13427#ifdef __STDC__ 13428# include <limits.h> 13429#else 13430# include <assert.h> 13431#endif 13432 Syntax error 13433_ACEOF 13434if ac_fn_cxx_try_cpp "$LINENO"; then : 13435 13436else 13437 # Broken: fails on valid input. 13438continue 13439fi 13440rm -f conftest.err conftest.i conftest.$ac_ext 13441 13442 # OK, works on sane cases. Now check whether nonexistent headers 13443 # can be detected and how. 13444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13445/* end confdefs.h. */ 13446#include <ac_nonexistent.h> 13447_ACEOF 13448if ac_fn_cxx_try_cpp "$LINENO"; then : 13449 # Broken: success on invalid input. 13450continue 13451else 13452 # Passes both tests. 13453ac_preproc_ok=: 13454break 13455fi 13456rm -f conftest.err conftest.i conftest.$ac_ext 13457 13458done 13459# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13460rm -f conftest.i conftest.err conftest.$ac_ext 13461if $ac_preproc_ok; then : 13462 break 13463fi 13464 13465 done 13466 ac_cv_prog_CXXCPP=$CXXCPP 13467 13468fi 13469 CXXCPP=$ac_cv_prog_CXXCPP 13470else 13471 ac_cv_prog_CXXCPP=$CXXCPP 13472fi 13473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 13474$as_echo "$CXXCPP" >&6; } 13475ac_preproc_ok=false 13476for ac_cxx_preproc_warn_flag in '' yes 13477do 13478 # Use a header file that comes with gcc, so configuring glibc 13479 # with a fresh cross-compiler works. 13480 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13481 # <limits.h> exists even on freestanding compilers. 13482 # On the NeXT, cc -E runs the code through the compiler's parser, 13483 # not just through cpp. "Syntax error" is here to catch this case. 13484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13485/* end confdefs.h. */ 13486#ifdef __STDC__ 13487# include <limits.h> 13488#else 13489# include <assert.h> 13490#endif 13491 Syntax error 13492_ACEOF 13493if ac_fn_cxx_try_cpp "$LINENO"; then : 13494 13495else 13496 # Broken: fails on valid input. 13497continue 13498fi 13499rm -f conftest.err conftest.i conftest.$ac_ext 13500 13501 # OK, works on sane cases. Now check whether nonexistent headers 13502 # can be detected and how. 13503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13504/* end confdefs.h. */ 13505#include <ac_nonexistent.h> 13506_ACEOF 13507if ac_fn_cxx_try_cpp "$LINENO"; then : 13508 # Broken: success on invalid input. 13509continue 13510else 13511 # Passes both tests. 13512ac_preproc_ok=: 13513break 13514fi 13515rm -f conftest.err conftest.i conftest.$ac_ext 13516 13517done 13518# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13519rm -f conftest.i conftest.err conftest.$ac_ext 13520if $ac_preproc_ok; then : 13521 13522else 13523 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13524$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13525as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 13526See \`config.log' for more details" "$LINENO" 5; } 13527fi 13528 13529ac_ext=c 13530ac_cpp='$CPP $CPPFLAGS' 13531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13533ac_compiler_gnu=$ac_cv_c_compiler_gnu 13534 13535else 13536 _lt_caught_CXX_error=yes 13537fi 13538 13539ac_ext=cpp 13540ac_cpp='$CXXCPP $CPPFLAGS' 13541ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13542ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13543ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13544 13545archive_cmds_need_lc_CXX=no 13546allow_undefined_flag_CXX= 13547always_export_symbols_CXX=no 13548archive_expsym_cmds_CXX= 13549compiler_needs_object_CXX=no 13550export_dynamic_flag_spec_CXX= 13551hardcode_direct_CXX=no 13552hardcode_direct_absolute_CXX=no 13553hardcode_libdir_flag_spec_CXX= 13554hardcode_libdir_separator_CXX= 13555hardcode_minus_L_CXX=no 13556hardcode_shlibpath_var_CXX=unsupported 13557hardcode_automatic_CXX=no 13558inherit_rpath_CXX=no 13559module_cmds_CXX= 13560module_expsym_cmds_CXX= 13561link_all_deplibs_CXX=unknown 13562old_archive_cmds_CXX=$old_archive_cmds 13563reload_flag_CXX=$reload_flag 13564reload_cmds_CXX=$reload_cmds 13565no_undefined_flag_CXX= 13566whole_archive_flag_spec_CXX= 13567enable_shared_with_static_runtimes_CXX=no 13568 13569# Source file extension for C++ test sources. 13570ac_ext=cpp 13571 13572# Object file extension for compiled C++ test sources. 13573objext=o 13574objext_CXX=$objext 13575 13576# No sense in running all these tests if we already determined that 13577# the CXX compiler isn't working. Some variables (like enable_shared) 13578# are currently assumed to apply to all compilers on this platform, 13579# and will be corrupted by setting them based on a non-working compiler. 13580if test yes != "$_lt_caught_CXX_error"; then 13581 # Code to be used in simple compile tests 13582 lt_simple_compile_test_code="int some_variable = 0;" 13583 13584 # Code to be used in simple link tests 13585 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 13586 13587 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 13588 13589 13590 13591 13592 13593 13594# If no C compiler was specified, use CC. 13595LTCC=${LTCC-"$CC"} 13596 13597# If no C compiler flags were specified, use CFLAGS. 13598LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13599 13600# Allow CC to be a program name with arguments. 13601compiler=$CC 13602 13603 13604 # save warnings/boilerplate of simple test code 13605 ac_outfile=conftest.$ac_objext 13606echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13607eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13608_lt_compiler_boilerplate=`cat conftest.err` 13609$RM conftest* 13610 13611 ac_outfile=conftest.$ac_objext 13612echo "$lt_simple_link_test_code" >conftest.$ac_ext 13613eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13614_lt_linker_boilerplate=`cat conftest.err` 13615$RM -r conftest* 13616 13617 13618 # Allow CC to be a program name with arguments. 13619 lt_save_CC=$CC 13620 lt_save_CFLAGS=$CFLAGS 13621 lt_save_LD=$LD 13622 lt_save_GCC=$GCC 13623 GCC=$GXX 13624 lt_save_with_gnu_ld=$with_gnu_ld 13625 lt_save_path_LD=$lt_cv_path_LD 13626 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 13627 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 13628 else 13629 $as_unset lt_cv_prog_gnu_ld 13630 fi 13631 if test -n "${lt_cv_path_LDCXX+set}"; then 13632 lt_cv_path_LD=$lt_cv_path_LDCXX 13633 else 13634 $as_unset lt_cv_path_LD 13635 fi 13636 test -z "${LDCXX+set}" || LD=$LDCXX 13637 CC=${CXX-"c++"} 13638 CFLAGS=$CXXFLAGS 13639 compiler=$CC 13640 compiler_CXX=$CC 13641 func_cc_basename $compiler 13642cc_basename=$func_cc_basename_result 13643 13644 13645 if test -n "$compiler"; then 13646 # We don't want -fno-exception when compiling C++ code, so set the 13647 # no_builtin_flag separately 13648 if test yes = "$GXX"; then 13649 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 13650 else 13651 lt_prog_compiler_no_builtin_flag_CXX= 13652 fi 13653 13654 if test yes = "$GXX"; then 13655 # Set up default GNU C++ configuration 13656 13657 13658 13659# Check whether --with-gnu-ld was given. 13660if test "${with_gnu_ld+set}" = set; then : 13661 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 13662else 13663 with_gnu_ld=no 13664fi 13665 13666ac_prog=ld 13667if test yes = "$GCC"; then 13668 # Check if gcc -print-prog-name=ld gives a path. 13669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13670$as_echo_n "checking for ld used by $CC... " >&6; } 13671 case $host in 13672 *-*-mingw*) 13673 # gcc leaves a trailing carriage return, which upsets mingw 13674 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13675 *) 13676 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13677 esac 13678 case $ac_prog in 13679 # Accept absolute paths. 13680 [\\/]* | ?:[\\/]*) 13681 re_direlt='/[^/][^/]*/\.\./' 13682 # Canonicalize the pathname of ld 13683 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 13684 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 13685 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 13686 done 13687 test -z "$LD" && LD=$ac_prog 13688 ;; 13689 "") 13690 # If it fails, then pretend we aren't using GCC. 13691 ac_prog=ld 13692 ;; 13693 *) 13694 # If it is relative, then search for the first ld in PATH. 13695 with_gnu_ld=unknown 13696 ;; 13697 esac 13698elif test yes = "$with_gnu_ld"; then 13699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13700$as_echo_n "checking for GNU ld... " >&6; } 13701else 13702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13703$as_echo_n "checking for non-GNU ld... " >&6; } 13704fi 13705if ${lt_cv_path_LD+:} false; then : 13706 $as_echo_n "(cached) " >&6 13707else 13708 if test -z "$LD"; then 13709 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 13710 for ac_dir in $PATH; do 13711 IFS=$lt_save_ifs 13712 test -z "$ac_dir" && ac_dir=. 13713 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13714 lt_cv_path_LD=$ac_dir/$ac_prog 13715 # Check to see if the program is GNU ld. I'd rather use --version, 13716 # but apparently some variants of GNU ld only accept -v. 13717 # Break only if it was the GNU/non-GNU ld that we prefer. 13718 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13719 *GNU* | *'with BFD'*) 13720 test no != "$with_gnu_ld" && break 13721 ;; 13722 *) 13723 test yes != "$with_gnu_ld" && break 13724 ;; 13725 esac 13726 fi 13727 done 13728 IFS=$lt_save_ifs 13729else 13730 lt_cv_path_LD=$LD # Let the user override the test with a path. 13731fi 13732fi 13733 13734LD=$lt_cv_path_LD 13735if test -n "$LD"; then 13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13737$as_echo "$LD" >&6; } 13738else 13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13740$as_echo "no" >&6; } 13741fi 13742test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13744$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13745if ${lt_cv_prog_gnu_ld+:} false; then : 13746 $as_echo_n "(cached) " >&6 13747else 13748 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13749case `$LD -v 2>&1 </dev/null` in 13750*GNU* | *'with BFD'*) 13751 lt_cv_prog_gnu_ld=yes 13752 ;; 13753*) 13754 lt_cv_prog_gnu_ld=no 13755 ;; 13756esac 13757fi 13758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 13759$as_echo "$lt_cv_prog_gnu_ld" >&6; } 13760with_gnu_ld=$lt_cv_prog_gnu_ld 13761 13762 13763 13764 13765 13766 13767 13768 # Check if GNU C++ uses GNU ld as the underlying linker, since the 13769 # archiving commands below assume that GNU ld is being used. 13770 if test yes = "$with_gnu_ld"; then 13771 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13772 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' 13773 13774 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13775 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13776 13777 # If archive_cmds runs LD, not CC, wlarc should be empty 13778 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 13779 # investigate it a little bit more. (MM) 13780 wlarc='$wl' 13781 13782 # ancient GNU ld didn't support --whole-archive et. al. 13783 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 13784 $GREP 'no-whole-archive' > /dev/null; then 13785 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 13786 else 13787 whole_archive_flag_spec_CXX= 13788 fi 13789 else 13790 with_gnu_ld=no 13791 wlarc= 13792 13793 # A generic and very simple default shared library creation 13794 # command for GNU C++ for the case where it uses the native 13795 # linker, instead of GNU ld. If possible, this setting should 13796 # overridden to take advantage of the native linker features on 13797 # the platform it is being used on. 13798 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13799 fi 13800 13801 # Commands to make compiler produce verbose output that lists 13802 # what "hidden" libraries, object files and flags are used when 13803 # linking a shared library. 13804 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13805 13806 else 13807 GXX=no 13808 with_gnu_ld=no 13809 wlarc= 13810 fi 13811 13812 # PORTME: fill in a description of your system's C++ link characteristics 13813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13814$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13815 ld_shlibs_CXX=yes 13816 case $host_os in 13817 aix3*) 13818 # FIXME: insert proper C++ library support 13819 ld_shlibs_CXX=no 13820 ;; 13821 aix[4-9]*) 13822 if test ia64 = "$host_cpu"; then 13823 # On IA64, the linker does run time linking by default, so we don't 13824 # have to do anything special. 13825 aix_use_runtimelinking=no 13826 exp_sym_flag='-Bexport' 13827 no_entry_flag= 13828 else 13829 aix_use_runtimelinking=no 13830 13831 # Test if we are trying to use run time linking or normal 13832 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13833 # have runtime linking enabled, and use it for executables. 13834 # For shared libraries, we enable/disable runtime linking 13835 # depending on the kind of the shared library created - 13836 # when "with_aix_soname,aix_use_runtimelinking" is: 13837 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 13838 # "aix,yes" lib.so shared, rtl:yes, for executables 13839 # lib.a static archive 13840 # "both,no" lib.so.V(shr.o) shared, rtl:yes 13841 # lib.a(lib.so.V) shared, rtl:no, for executables 13842 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 13843 # lib.a(lib.so.V) shared, rtl:no 13844 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 13845 # lib.a static archive 13846 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13847 for ld_flag in $LDFLAGS; do 13848 case $ld_flag in 13849 *-brtl*) 13850 aix_use_runtimelinking=yes 13851 break 13852 ;; 13853 esac 13854 done 13855 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 13856 # With aix-soname=svr4, we create the lib.so.V shared archives only, 13857 # so we don't have lib.a shared libs to link our executables. 13858 # We have to force runtime linking in this case. 13859 aix_use_runtimelinking=yes 13860 LDFLAGS="$LDFLAGS -Wl,-brtl" 13861 fi 13862 ;; 13863 esac 13864 13865 exp_sym_flag='-bexport' 13866 no_entry_flag='-bnoentry' 13867 fi 13868 13869 # When large executables or shared objects are built, AIX ld can 13870 # have problems creating the table of contents. If linking a library 13871 # or program results in "error TOC overflow" add -mminimal-toc to 13872 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13873 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13874 13875 archive_cmds_CXX='' 13876 hardcode_direct_CXX=yes 13877 hardcode_direct_absolute_CXX=yes 13878 hardcode_libdir_separator_CXX=':' 13879 link_all_deplibs_CXX=yes 13880 file_list_spec_CXX='$wl-f,' 13881 case $with_aix_soname,$aix_use_runtimelinking in 13882 aix,*) ;; # no import file 13883 svr4,* | *,yes) # use import file 13884 # The Import File defines what to hardcode. 13885 hardcode_direct_CXX=no 13886 hardcode_direct_absolute_CXX=no 13887 ;; 13888 esac 13889 13890 if test yes = "$GXX"; then 13891 case $host_os in aix4.[012]|aix4.[012].*) 13892 # We only want to do this on AIX 4.2 and lower, the check 13893 # below for broken collect2 doesn't work under 4.3+ 13894 collect2name=`$CC -print-prog-name=collect2` 13895 if test -f "$collect2name" && 13896 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13897 then 13898 # We have reworked collect2 13899 : 13900 else 13901 # We have old collect2 13902 hardcode_direct_CXX=unsupported 13903 # It fails to find uninstalled libraries when the uninstalled 13904 # path is not listed in the libpath. Setting hardcode_minus_L 13905 # to unsupported forces relinking 13906 hardcode_minus_L_CXX=yes 13907 hardcode_libdir_flag_spec_CXX='-L$libdir' 13908 hardcode_libdir_separator_CXX= 13909 fi 13910 esac 13911 shared_flag='-shared' 13912 if test yes = "$aix_use_runtimelinking"; then 13913 shared_flag=$shared_flag' $wl-G' 13914 fi 13915 # Need to ensure runtime linking is disabled for the traditional 13916 # shared library, or the linker may eventually find shared libraries 13917 # /with/ Import File - we do not want to mix them. 13918 shared_flag_aix='-shared' 13919 shared_flag_svr4='-shared $wl-G' 13920 else 13921 # not using gcc 13922 if test ia64 = "$host_cpu"; then 13923 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13924 # chokes on -Wl,-G. The following line is correct: 13925 shared_flag='-G' 13926 else 13927 if test yes = "$aix_use_runtimelinking"; then 13928 shared_flag='$wl-G' 13929 else 13930 shared_flag='$wl-bM:SRE' 13931 fi 13932 shared_flag_aix='$wl-bM:SRE' 13933 shared_flag_svr4='$wl-G' 13934 fi 13935 fi 13936 13937 export_dynamic_flag_spec_CXX='$wl-bexpall' 13938 # It seems that -bexpall does not export symbols beginning with 13939 # underscore (_), so it is better to generate a list of symbols to 13940 # export. 13941 always_export_symbols_CXX=yes 13942 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 13943 # Warning - without using the other runtime loading flags (-brtl), 13944 # -berok will link without error, but may produce a broken library. 13945 # The "-G" linker flag allows undefined symbols. 13946 no_undefined_flag_CXX='-bernotok' 13947 # Determine the default libpath from the value encoded in an empty 13948 # executable. 13949 if test set = "${lt_cv_aix_libpath+set}"; then 13950 aix_libpath=$lt_cv_aix_libpath 13951else 13952 if ${lt_cv_aix_libpath__CXX+:} false; then : 13953 $as_echo_n "(cached) " >&6 13954else 13955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13956/* end confdefs.h. */ 13957 13958int 13959main () 13960{ 13961 13962 ; 13963 return 0; 13964} 13965_ACEOF 13966if ac_fn_cxx_try_link "$LINENO"; then : 13967 13968 lt_aix_libpath_sed=' 13969 /Import File Strings/,/^$/ { 13970 /^0/ { 13971 s/^0 *\([^ ]*\) *$/\1/ 13972 p 13973 } 13974 }' 13975 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13976 # Check for a 64-bit object if we didn't find anything. 13977 if test -z "$lt_cv_aix_libpath__CXX"; then 13978 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13979 fi 13980fi 13981rm -f core conftest.err conftest.$ac_objext \ 13982 conftest$ac_exeext conftest.$ac_ext 13983 if test -z "$lt_cv_aix_libpath__CXX"; then 13984 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13985 fi 13986 13987fi 13988 13989 aix_libpath=$lt_cv_aix_libpath__CXX 13990fi 13991 13992 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13993 13994 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 13995 else 13996 if test ia64 = "$host_cpu"; then 13997 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 13998 allow_undefined_flag_CXX="-z nodefs" 13999 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" 14000 else 14001 # Determine the default libpath from the value encoded in an 14002 # empty executable. 14003 if test set = "${lt_cv_aix_libpath+set}"; then 14004 aix_libpath=$lt_cv_aix_libpath 14005else 14006 if ${lt_cv_aix_libpath__CXX+:} false; then : 14007 $as_echo_n "(cached) " >&6 14008else 14009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14010/* end confdefs.h. */ 14011 14012int 14013main () 14014{ 14015 14016 ; 14017 return 0; 14018} 14019_ACEOF 14020if ac_fn_cxx_try_link "$LINENO"; then : 14021 14022 lt_aix_libpath_sed=' 14023 /Import File Strings/,/^$/ { 14024 /^0/ { 14025 s/^0 *\([^ ]*\) *$/\1/ 14026 p 14027 } 14028 }' 14029 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14030 # Check for a 64-bit object if we didn't find anything. 14031 if test -z "$lt_cv_aix_libpath__CXX"; then 14032 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14033 fi 14034fi 14035rm -f core conftest.err conftest.$ac_objext \ 14036 conftest$ac_exeext conftest.$ac_ext 14037 if test -z "$lt_cv_aix_libpath__CXX"; then 14038 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14039 fi 14040 14041fi 14042 14043 aix_libpath=$lt_cv_aix_libpath__CXX 14044fi 14045 14046 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14047 # Warning - without using the other run time loading flags, 14048 # -berok will link without error, but may produce a broken library. 14049 no_undefined_flag_CXX=' $wl-bernotok' 14050 allow_undefined_flag_CXX=' $wl-berok' 14051 if test yes = "$with_gnu_ld"; then 14052 # We only use this code for GNU lds that support --whole-archive. 14053 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14054 else 14055 # Exported symbols can be pulled into shared objects from archives 14056 whole_archive_flag_spec_CXX='$convenience' 14057 fi 14058 archive_cmds_need_lc_CXX=yes 14059 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 14060 # -brtl affects multiple linker settings, -berok does not and is overridden later 14061 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 14062 if test svr4 != "$with_aix_soname"; then 14063 # This is similar to how AIX traditionally builds its shared 14064 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 14065 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 14066 fi 14067 if test aix != "$with_aix_soname"; then 14068 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 14069 else 14070 # used by -dlpreopen to get the symbols 14071 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 14072 fi 14073 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 14074 fi 14075 fi 14076 ;; 14077 14078 beos*) 14079 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14080 allow_undefined_flag_CXX=unsupported 14081 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14082 # support --undefined. This deserves some investigation. FIXME 14083 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14084 else 14085 ld_shlibs_CXX=no 14086 fi 14087 ;; 14088 14089 chorus*) 14090 case $cc_basename in 14091 *) 14092 # FIXME: insert proper C++ library support 14093 ld_shlibs_CXX=no 14094 ;; 14095 esac 14096 ;; 14097 14098 cygwin* | mingw* | pw32* | cegcc*) 14099 case $GXX,$cc_basename in 14100 ,cl* | no,cl*) 14101 # Native MSVC 14102 # hardcode_libdir_flag_spec is actually meaningless, as there is 14103 # no search path for DLLs. 14104 hardcode_libdir_flag_spec_CXX=' ' 14105 allow_undefined_flag_CXX=unsupported 14106 always_export_symbols_CXX=yes 14107 file_list_spec_CXX='@' 14108 # Tell ltmain to make .lib files, not .a files. 14109 libext=lib 14110 # Tell ltmain to make .dll files, not .so files. 14111 shrext_cmds=.dll 14112 # FIXME: Setting linknames here is a bad hack. 14113 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 14114 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14115 cp "$export_symbols" "$output_objdir/$soname.def"; 14116 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 14117 else 14118 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 14119 fi~ 14120 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 14121 linknames=' 14122 # The linker will not automatically build a static lib if we build a DLL. 14123 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 14124 enable_shared_with_static_runtimes_CXX=yes 14125 # Don't use ranlib 14126 old_postinstall_cmds_CXX='chmod 644 $oldlib' 14127 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 14128 lt_tool_outputfile="@TOOL_OUTPUT@"~ 14129 case $lt_outputfile in 14130 *.exe|*.EXE) ;; 14131 *) 14132 lt_outputfile=$lt_outputfile.exe 14133 lt_tool_outputfile=$lt_tool_outputfile.exe 14134 ;; 14135 esac~ 14136 func_to_tool_file "$lt_outputfile"~ 14137 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 14138 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 14139 $RM "$lt_outputfile.manifest"; 14140 fi' 14141 ;; 14142 *) 14143 # g++ 14144 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 14145 # as there is no search path for DLLs. 14146 hardcode_libdir_flag_spec_CXX='-L$libdir' 14147 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 14148 allow_undefined_flag_CXX=unsupported 14149 always_export_symbols_CXX=no 14150 enable_shared_with_static_runtimes_CXX=yes 14151 14152 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 14153 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' 14154 # If the export-symbols file already is a .def file, use it as 14155 # is; otherwise, prepend EXPORTS... 14156 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14157 cp $export_symbols $output_objdir/$soname.def; 14158 else 14159 echo EXPORTS > $output_objdir/$soname.def; 14160 cat $export_symbols >> $output_objdir/$soname.def; 14161 fi~ 14162 $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' 14163 else 14164 ld_shlibs_CXX=no 14165 fi 14166 ;; 14167 esac 14168 ;; 14169 darwin* | rhapsody*) 14170 14171 14172 archive_cmds_need_lc_CXX=no 14173 hardcode_direct_CXX=no 14174 hardcode_automatic_CXX=yes 14175 hardcode_shlibpath_var_CXX=unsupported 14176 if test yes = "$lt_cv_ld_force_load"; then 14177 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\"`' 14178 14179 else 14180 whole_archive_flag_spec_CXX='' 14181 fi 14182 link_all_deplibs_CXX=yes 14183 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 14184 case $cc_basename in 14185 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 14186 *) _lt_dar_can_shared=$GCC ;; 14187 esac 14188 if test yes = "$_lt_dar_can_shared"; then 14189 output_verbose_link_cmd=func_echo_all 14190 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" 14191 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 14192 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" 14193 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" 14194 if test yes != "$lt_cv_apple_cc_single_mod"; then 14195 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" 14196 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" 14197 fi 14198 14199 else 14200 ld_shlibs_CXX=no 14201 fi 14202 14203 ;; 14204 14205 os2*) 14206 hardcode_libdir_flag_spec_CXX='-L$libdir' 14207 hardcode_minus_L_CXX=yes 14208 allow_undefined_flag_CXX=unsupported 14209 shrext_cmds=.dll 14210 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14211 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14212 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14213 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14214 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 14215 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14216 emximp -o $lib $output_objdir/$libname.def' 14217 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14218 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14219 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14220 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14221 prefix_cmds="$SED"~ 14222 if test EXPORTS = "`$SED 1q $export_symbols`"; then 14223 prefix_cmds="$prefix_cmds -e 1d"; 14224 fi~ 14225 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 14226 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 14227 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14228 emximp -o $lib $output_objdir/$libname.def' 14229 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 14230 enable_shared_with_static_runtimes_CXX=yes 14231 ;; 14232 14233 dgux*) 14234 case $cc_basename in 14235 ec++*) 14236 # FIXME: insert proper C++ library support 14237 ld_shlibs_CXX=no 14238 ;; 14239 ghcx*) 14240 # Green Hills C++ Compiler 14241 # FIXME: insert proper C++ library support 14242 ld_shlibs_CXX=no 14243 ;; 14244 *) 14245 # FIXME: insert proper C++ library support 14246 ld_shlibs_CXX=no 14247 ;; 14248 esac 14249 ;; 14250 14251 freebsd2.*) 14252 # C++ shared libraries reported to be fairly broken before 14253 # switch to ELF 14254 ld_shlibs_CXX=no 14255 ;; 14256 14257 freebsd-elf*) 14258 archive_cmds_need_lc_CXX=no 14259 ;; 14260 14261 freebsd* | dragonfly*) 14262 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 14263 # conventions 14264 ld_shlibs_CXX=yes 14265 ;; 14266 14267 haiku*) 14268 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14269 link_all_deplibs_CXX=yes 14270 ;; 14271 14272 hpux9*) 14273 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14274 hardcode_libdir_separator_CXX=: 14275 export_dynamic_flag_spec_CXX='$wl-E' 14276 hardcode_direct_CXX=yes 14277 hardcode_minus_L_CXX=yes # Not in the search PATH, 14278 # but as the default 14279 # location of the library. 14280 14281 case $cc_basename in 14282 CC*) 14283 # FIXME: insert proper C++ library support 14284 ld_shlibs_CXX=no 14285 ;; 14286 aCC*) 14287 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 14288 # Commands to make compiler produce verbose output that lists 14289 # what "hidden" libraries, object files and flags are used when 14290 # linking a shared library. 14291 # 14292 # There doesn't appear to be a way to prevent this compiler from 14293 # explicitly linking system object files so we need to strip them 14294 # from the output so that they don't get included in the library 14295 # dependencies. 14296 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"' 14297 ;; 14298 *) 14299 if test yes = "$GXX"; then 14300 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 14301 else 14302 # FIXME: insert proper C++ library support 14303 ld_shlibs_CXX=no 14304 fi 14305 ;; 14306 esac 14307 ;; 14308 14309 hpux10*|hpux11*) 14310 if test no = "$with_gnu_ld"; then 14311 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14312 hardcode_libdir_separator_CXX=: 14313 14314 case $host_cpu in 14315 hppa*64*|ia64*) 14316 ;; 14317 *) 14318 export_dynamic_flag_spec_CXX='$wl-E' 14319 ;; 14320 esac 14321 fi 14322 case $host_cpu in 14323 hppa*64*|ia64*) 14324 hardcode_direct_CXX=no 14325 hardcode_shlibpath_var_CXX=no 14326 ;; 14327 *) 14328 hardcode_direct_CXX=yes 14329 hardcode_direct_absolute_CXX=yes 14330 hardcode_minus_L_CXX=yes # Not in the search PATH, 14331 # but as the default 14332 # location of the library. 14333 ;; 14334 esac 14335 14336 case $cc_basename in 14337 CC*) 14338 # FIXME: insert proper C++ library support 14339 ld_shlibs_CXX=no 14340 ;; 14341 aCC*) 14342 case $host_cpu in 14343 hppa*64*) 14344 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14345 ;; 14346 ia64*) 14347 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14348 ;; 14349 *) 14350 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14351 ;; 14352 esac 14353 # Commands to make compiler produce verbose output that lists 14354 # what "hidden" libraries, object files and flags are used when 14355 # linking a shared library. 14356 # 14357 # There doesn't appear to be a way to prevent this compiler from 14358 # explicitly linking system object files so we need to strip them 14359 # from the output so that they don't get included in the library 14360 # dependencies. 14361 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"' 14362 ;; 14363 *) 14364 if test yes = "$GXX"; then 14365 if test no = "$with_gnu_ld"; then 14366 case $host_cpu in 14367 hppa*64*) 14368 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14369 ;; 14370 ia64*) 14371 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14372 ;; 14373 *) 14374 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' 14375 ;; 14376 esac 14377 fi 14378 else 14379 # FIXME: insert proper C++ library support 14380 ld_shlibs_CXX=no 14381 fi 14382 ;; 14383 esac 14384 ;; 14385 14386 interix[3-9]*) 14387 hardcode_direct_CXX=no 14388 hardcode_shlibpath_var_CXX=no 14389 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14390 export_dynamic_flag_spec_CXX='$wl-E' 14391 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14392 # Instead, shared libraries are loaded at an image base (0x10000000 by 14393 # default) and relocated if they conflict, which is a slow very memory 14394 # consuming and fragmenting process. To avoid this, we pick a random, 14395 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14396 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14397 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' 14398 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' 14399 ;; 14400 irix5* | irix6*) 14401 case $cc_basename in 14402 CC*) 14403 # SGI C++ 14404 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' 14405 14406 # Archives containing C++ object files must be created using 14407 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 14408 # necessary to make sure instantiated templates are included 14409 # in the archive. 14410 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 14411 ;; 14412 *) 14413 if test yes = "$GXX"; then 14414 if test no = "$with_gnu_ld"; then 14415 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' 14416 else 14417 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' 14418 fi 14419 fi 14420 link_all_deplibs_CXX=yes 14421 ;; 14422 esac 14423 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14424 hardcode_libdir_separator_CXX=: 14425 inherit_rpath_CXX=yes 14426 ;; 14427 14428 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14429 case $cc_basename in 14430 KCC*) 14431 # Kuck and Associates, Inc. (KAI) C++ Compiler 14432 14433 # KCC will only create a shared library if the output file 14434 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14435 # to its proper name (with version) after linking. 14436 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' 14437 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' 14438 # Commands to make compiler produce verbose output that lists 14439 # what "hidden" libraries, object files and flags are used when 14440 # linking a shared library. 14441 # 14442 # There doesn't appear to be a way to prevent this compiler from 14443 # explicitly linking system object files so we need to strip them 14444 # from the output so that they don't get included in the library 14445 # dependencies. 14446 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"' 14447 14448 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14449 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14450 14451 # Archives containing C++ object files must be created using 14452 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 14453 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 14454 ;; 14455 icpc* | ecpc* ) 14456 # Intel C++ 14457 with_gnu_ld=yes 14458 # version 8.0 and above of icpc choke on multiply defined symbols 14459 # if we add $predep_objects and $postdep_objects, however 7.1 and 14460 # earlier do not add the objects themselves. 14461 case `$CC -V 2>&1` in 14462 *"Version 7."*) 14463 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14464 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' 14465 ;; 14466 *) # Version 8.0 or newer 14467 tmp_idyn= 14468 case $host_cpu in 14469 ia64*) tmp_idyn=' -i_dynamic';; 14470 esac 14471 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14472 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' 14473 ;; 14474 esac 14475 archive_cmds_need_lc_CXX=no 14476 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14477 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14478 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14479 ;; 14480 pgCC* | pgcpp*) 14481 # Portland Group C++ compiler 14482 case `$CC -V` in 14483 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 14484 prelink_cmds_CXX='tpldir=Template.dir~ 14485 rm -rf $tpldir~ 14486 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 14487 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 14488 old_archive_cmds_CXX='tpldir=Template.dir~ 14489 rm -rf $tpldir~ 14490 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 14491 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 14492 $RANLIB $oldlib' 14493 archive_cmds_CXX='tpldir=Template.dir~ 14494 rm -rf $tpldir~ 14495 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14496 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14497 archive_expsym_cmds_CXX='tpldir=Template.dir~ 14498 rm -rf $tpldir~ 14499 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14500 $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' 14501 ;; 14502 *) # Version 6 and above use weak symbols 14503 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14504 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' 14505 ;; 14506 esac 14507 14508 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 14509 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14510 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' 14511 ;; 14512 cxx*) 14513 # Compaq C++ 14514 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14515 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' 14516 14517 runpath_var=LD_RUN_PATH 14518 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14519 hardcode_libdir_separator_CXX=: 14520 14521 # Commands to make compiler produce verbose output that lists 14522 # what "hidden" libraries, object files and flags are used when 14523 # linking a shared library. 14524 # 14525 # There doesn't appear to be a way to prevent this compiler from 14526 # explicitly linking system object files so we need to strip them 14527 # from the output so that they don't get included in the library 14528 # dependencies. 14529 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' 14530 ;; 14531 xl* | mpixl* | bgxl*) 14532 # IBM XL 8.0 on PPC, with GNU ld 14533 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14534 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14535 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14536 if test yes = "$supports_anon_versioning"; then 14537 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 14538 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14539 echo "local: *; };" >> $output_objdir/$libname.ver~ 14540 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 14541 fi 14542 ;; 14543 *) 14544 case `$CC -V 2>&1 | sed 5q` in 14545 *Sun\ C*) 14546 # Sun C++ 5.9 14547 no_undefined_flag_CXX=' -zdefs' 14548 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14549 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' 14550 hardcode_libdir_flag_spec_CXX='-R$libdir' 14551 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' 14552 compiler_needs_object_CXX=yes 14553 14554 # Not sure whether something based on 14555 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 14556 # would be better. 14557 output_verbose_link_cmd='func_echo_all' 14558 14559 # Archives containing C++ object files must be created using 14560 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14561 # necessary to make sure instantiated templates are included 14562 # in the archive. 14563 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14564 ;; 14565 esac 14566 ;; 14567 esac 14568 ;; 14569 14570 lynxos*) 14571 # FIXME: insert proper C++ library support 14572 ld_shlibs_CXX=no 14573 ;; 14574 14575 m88k*) 14576 # FIXME: insert proper C++ library support 14577 ld_shlibs_CXX=no 14578 ;; 14579 14580 mvs*) 14581 case $cc_basename in 14582 cxx*) 14583 # FIXME: insert proper C++ library support 14584 ld_shlibs_CXX=no 14585 ;; 14586 *) 14587 # FIXME: insert proper C++ library support 14588 ld_shlibs_CXX=no 14589 ;; 14590 esac 14591 ;; 14592 14593 netbsd*) 14594 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14595 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 14596 wlarc= 14597 hardcode_libdir_flag_spec_CXX='-R$libdir' 14598 hardcode_direct_CXX=yes 14599 hardcode_shlibpath_var_CXX=no 14600 fi 14601 # Workaround some broken pre-1.5 toolchains 14602 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 14603 ;; 14604 14605 *nto* | *qnx*) 14606 ld_shlibs_CXX=yes 14607 ;; 14608 14609 openbsd* | bitrig*) 14610 if test -f /usr/libexec/ld.so; then 14611 hardcode_direct_CXX=yes 14612 hardcode_shlibpath_var_CXX=no 14613 hardcode_direct_absolute_CXX=yes 14614 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14615 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14616 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 14617 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 14618 export_dynamic_flag_spec_CXX='$wl-E' 14619 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14620 fi 14621 output_verbose_link_cmd=func_echo_all 14622 else 14623 ld_shlibs_CXX=no 14624 fi 14625 ;; 14626 14627 osf3* | osf4* | osf5*) 14628 case $cc_basename in 14629 KCC*) 14630 # Kuck and Associates, Inc. (KAI) C++ Compiler 14631 14632 # KCC will only create a shared library if the output file 14633 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14634 # to its proper name (with version) after linking. 14635 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' 14636 14637 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14638 hardcode_libdir_separator_CXX=: 14639 14640 # Archives containing C++ object files must be created using 14641 # the KAI C++ compiler. 14642 case $host in 14643 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 14644 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 14645 esac 14646 ;; 14647 RCC*) 14648 # Rational C++ 2.4.1 14649 # FIXME: insert proper C++ library support 14650 ld_shlibs_CXX=no 14651 ;; 14652 cxx*) 14653 case $host in 14654 osf3*) 14655 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14656 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' 14657 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14658 ;; 14659 *) 14660 allow_undefined_flag_CXX=' -expect_unresolved \*' 14661 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' 14662 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 14663 echo "-hidden">> $lib.exp~ 14664 $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~ 14665 $RM $lib.exp' 14666 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14667 ;; 14668 esac 14669 14670 hardcode_libdir_separator_CXX=: 14671 14672 # Commands to make compiler produce verbose output that lists 14673 # what "hidden" libraries, object files and flags are used when 14674 # linking a shared library. 14675 # 14676 # There doesn't appear to be a way to prevent this compiler from 14677 # explicitly linking system object files so we need to strip them 14678 # from the output so that they don't get included in the library 14679 # dependencies. 14680 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"' 14681 ;; 14682 *) 14683 if test yes,no = "$GXX,$with_gnu_ld"; then 14684 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14685 case $host in 14686 osf3*) 14687 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' 14688 ;; 14689 *) 14690 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' 14691 ;; 14692 esac 14693 14694 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14695 hardcode_libdir_separator_CXX=: 14696 14697 # Commands to make compiler produce verbose output that lists 14698 # what "hidden" libraries, object files and flags are used when 14699 # linking a shared library. 14700 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14701 14702 else 14703 # FIXME: insert proper C++ library support 14704 ld_shlibs_CXX=no 14705 fi 14706 ;; 14707 esac 14708 ;; 14709 14710 psos*) 14711 # FIXME: insert proper C++ library support 14712 ld_shlibs_CXX=no 14713 ;; 14714 14715 sunos4*) 14716 case $cc_basename in 14717 CC*) 14718 # Sun C++ 4.x 14719 # FIXME: insert proper C++ library support 14720 ld_shlibs_CXX=no 14721 ;; 14722 lcc*) 14723 # Lucid 14724 # FIXME: insert proper C++ library support 14725 ld_shlibs_CXX=no 14726 ;; 14727 *) 14728 # FIXME: insert proper C++ library support 14729 ld_shlibs_CXX=no 14730 ;; 14731 esac 14732 ;; 14733 14734 solaris*) 14735 case $cc_basename in 14736 CC* | sunCC*) 14737 # Sun C++ 4.2, 5.x and Centerline C++ 14738 archive_cmds_need_lc_CXX=yes 14739 no_undefined_flag_CXX=' -zdefs' 14740 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14741 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14742 $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' 14743 14744 hardcode_libdir_flag_spec_CXX='-R$libdir' 14745 hardcode_shlibpath_var_CXX=no 14746 case $host_os in 14747 solaris2.[0-5] | solaris2.[0-5].*) ;; 14748 *) 14749 # The compiler driver will combine and reorder linker options, 14750 # but understands '-z linker_flag'. 14751 # Supported since Solaris 2.6 (maybe 2.5.1?) 14752 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 14753 ;; 14754 esac 14755 link_all_deplibs_CXX=yes 14756 14757 output_verbose_link_cmd='func_echo_all' 14758 14759 # Archives containing C++ object files must be created using 14760 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14761 # necessary to make sure instantiated templates are included 14762 # in the archive. 14763 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14764 ;; 14765 gcx*) 14766 # Green Hills C++ Compiler 14767 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14768 14769 # The C++ compiler must be used to create the archive. 14770 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 14771 ;; 14772 *) 14773 # GNU C++ compiler with Solaris linker 14774 if test yes,no = "$GXX,$with_gnu_ld"; then 14775 no_undefined_flag_CXX=' $wl-z ${wl}defs' 14776 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 14777 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14778 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14779 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14780 14781 # Commands to make compiler produce verbose output that lists 14782 # what "hidden" libraries, object files and flags are used when 14783 # linking a shared library. 14784 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14785 else 14786 # g++ 2.7 appears to require '-G' NOT '-shared' on this 14787 # platform. 14788 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14789 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14790 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14791 14792 # Commands to make compiler produce verbose output that lists 14793 # what "hidden" libraries, object files and flags are used when 14794 # linking a shared library. 14795 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14796 fi 14797 14798 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 14799 case $host_os in 14800 solaris2.[0-5] | solaris2.[0-5].*) ;; 14801 *) 14802 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 14803 ;; 14804 esac 14805 fi 14806 ;; 14807 esac 14808 ;; 14809 14810 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14811 no_undefined_flag_CXX='$wl-z,text' 14812 archive_cmds_need_lc_CXX=no 14813 hardcode_shlibpath_var_CXX=no 14814 runpath_var='LD_RUN_PATH' 14815 14816 case $cc_basename in 14817 CC*) 14818 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14819 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14820 ;; 14821 *) 14822 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14823 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14824 ;; 14825 esac 14826 ;; 14827 14828 sysv5* | sco3.2v5* | sco5v6*) 14829 # Note: We CANNOT use -z defs as we might desire, because we do not 14830 # link with -lc, and that would cause any symbols used from libc to 14831 # always be unresolved, which means just about no library would 14832 # ever link correctly. If we're not using GNU ld we use -z text 14833 # though, which does catch some bad symbols but isn't as heavy-handed 14834 # as -z defs. 14835 no_undefined_flag_CXX='$wl-z,text' 14836 allow_undefined_flag_CXX='$wl-z,nodefs' 14837 archive_cmds_need_lc_CXX=no 14838 hardcode_shlibpath_var_CXX=no 14839 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 14840 hardcode_libdir_separator_CXX=':' 14841 link_all_deplibs_CXX=yes 14842 export_dynamic_flag_spec_CXX='$wl-Bexport' 14843 runpath_var='LD_RUN_PATH' 14844 14845 case $cc_basename in 14846 CC*) 14847 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14848 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14849 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 14850 '"$old_archive_cmds_CXX" 14851 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 14852 '"$reload_cmds_CXX" 14853 ;; 14854 *) 14855 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14856 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14857 ;; 14858 esac 14859 ;; 14860 14861 tandem*) 14862 case $cc_basename in 14863 NCC*) 14864 # NonStop-UX NCC 3.20 14865 # FIXME: insert proper C++ library support 14866 ld_shlibs_CXX=no 14867 ;; 14868 *) 14869 # FIXME: insert proper C++ library support 14870 ld_shlibs_CXX=no 14871 ;; 14872 esac 14873 ;; 14874 14875 vxworks*) 14876 # FIXME: insert proper C++ library support 14877 ld_shlibs_CXX=no 14878 ;; 14879 14880 *) 14881 # FIXME: insert proper C++ library support 14882 ld_shlibs_CXX=no 14883 ;; 14884 esac 14885 14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14887$as_echo "$ld_shlibs_CXX" >&6; } 14888 test no = "$ld_shlibs_CXX" && can_build_shared=no 14889 14890 GCC_CXX=$GXX 14891 LD_CXX=$LD 14892 14893 ## CAVEAT EMPTOR: 14894 ## There is no encapsulation within the following macros, do not change 14895 ## the running order or otherwise move them around unless you know exactly 14896 ## what you are doing... 14897 # Dependencies to place before and after the object being linked: 14898predep_objects_CXX= 14899postdep_objects_CXX= 14900predeps_CXX= 14901postdeps_CXX= 14902compiler_lib_search_path_CXX= 14903 14904cat > conftest.$ac_ext <<_LT_EOF 14905class Foo 14906{ 14907public: 14908 Foo (void) { a = 0; } 14909private: 14910 int a; 14911}; 14912_LT_EOF 14913 14914 14915_lt_libdeps_save_CFLAGS=$CFLAGS 14916case "$CC $CFLAGS " in #( 14917*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 14918*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 14919*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 14920esac 14921 14922if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14923 (eval $ac_compile) 2>&5 14924 ac_status=$? 14925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14926 test $ac_status = 0; }; then 14927 # Parse the compiler output and extract the necessary 14928 # objects, libraries and library flags. 14929 14930 # Sentinel used to keep track of whether or not we are before 14931 # the conftest object file. 14932 pre_test_object_deps_done=no 14933 14934 for p in `eval "$output_verbose_link_cmd"`; do 14935 case $prev$p in 14936 14937 -L* | -R* | -l*) 14938 # Some compilers place space between "-{L,R}" and the path. 14939 # Remove the space. 14940 if test x-L = "$p" || 14941 test x-R = "$p"; then 14942 prev=$p 14943 continue 14944 fi 14945 14946 # Expand the sysroot to ease extracting the directories later. 14947 if test -z "$prev"; then 14948 case $p in 14949 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 14950 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 14951 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 14952 esac 14953 fi 14954 case $p in 14955 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 14956 esac 14957 if test no = "$pre_test_object_deps_done"; then 14958 case $prev in 14959 -L | -R) 14960 # Internal compiler library paths should come after those 14961 # provided the user. The postdeps already come after the 14962 # user supplied libs so there is no need to process them. 14963 if test -z "$compiler_lib_search_path_CXX"; then 14964 compiler_lib_search_path_CXX=$prev$p 14965 else 14966 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 14967 fi 14968 ;; 14969 # The "-l" case would never come before the object being 14970 # linked, so don't bother handling this case. 14971 esac 14972 else 14973 if test -z "$postdeps_CXX"; then 14974 postdeps_CXX=$prev$p 14975 else 14976 postdeps_CXX="${postdeps_CXX} $prev$p" 14977 fi 14978 fi 14979 prev= 14980 ;; 14981 14982 *.lto.$objext) ;; # Ignore GCC LTO objects 14983 *.$objext) 14984 # This assumes that the test object file only shows up 14985 # once in the compiler output. 14986 if test "$p" = "conftest.$objext"; then 14987 pre_test_object_deps_done=yes 14988 continue 14989 fi 14990 14991 if test no = "$pre_test_object_deps_done"; then 14992 if test -z "$predep_objects_CXX"; then 14993 predep_objects_CXX=$p 14994 else 14995 predep_objects_CXX="$predep_objects_CXX $p" 14996 fi 14997 else 14998 if test -z "$postdep_objects_CXX"; then 14999 postdep_objects_CXX=$p 15000 else 15001 postdep_objects_CXX="$postdep_objects_CXX $p" 15002 fi 15003 fi 15004 ;; 15005 15006 *) ;; # Ignore the rest. 15007 15008 esac 15009 done 15010 15011 # Clean up. 15012 rm -f a.out a.exe 15013else 15014 echo "libtool.m4: error: problem compiling CXX test program" 15015fi 15016 15017$RM -f confest.$objext 15018CFLAGS=$_lt_libdeps_save_CFLAGS 15019 15020# PORTME: override above test on systems where it is broken 15021case $host_os in 15022interix[3-9]*) 15023 # Interix 3.5 installs completely hosed .la files for C++, so rather than 15024 # hack all around it, let's just trust "g++" to DTRT. 15025 predep_objects_CXX= 15026 postdep_objects_CXX= 15027 postdeps_CXX= 15028 ;; 15029esac 15030 15031 15032case " $postdeps_CXX " in 15033*" -lc "*) archive_cmds_need_lc_CXX=no ;; 15034esac 15035 compiler_lib_search_dirs_CXX= 15036if test -n "${compiler_lib_search_path_CXX}"; then 15037 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 15038fi 15039 15040 15041 15042 15043 15044 15045 15046 15047 15048 15049 15050 15051 15052 15053 15054 15055 15056 15057 15058 15059 15060 15061 15062 15063 15064 15065 15066 15067 15068 15069 15070 lt_prog_compiler_wl_CXX= 15071lt_prog_compiler_pic_CXX= 15072lt_prog_compiler_static_CXX= 15073 15074 15075 # C++ specific cases for pic, static, wl, etc. 15076 if test yes = "$GXX"; then 15077 lt_prog_compiler_wl_CXX='-Wl,' 15078 lt_prog_compiler_static_CXX='-static' 15079 15080 case $host_os in 15081 aix*) 15082 # All AIX code is PIC. 15083 if test ia64 = "$host_cpu"; then 15084 # AIX 5 now supports IA64 processor 15085 lt_prog_compiler_static_CXX='-Bstatic' 15086 fi 15087 lt_prog_compiler_pic_CXX='-fPIC' 15088 ;; 15089 15090 amigaos*) 15091 case $host_cpu in 15092 powerpc) 15093 # see comment about AmigaOS4 .so support 15094 lt_prog_compiler_pic_CXX='-fPIC' 15095 ;; 15096 m68k) 15097 # FIXME: we need at least 68020 code to build shared libraries, but 15098 # adding the '-m68020' flag to GCC prevents building anything better, 15099 # like '-m68040'. 15100 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 15101 ;; 15102 esac 15103 ;; 15104 15105 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15106 # PIC is the default for these OSes. 15107 ;; 15108 mingw* | cygwin* | os2* | pw32* | cegcc*) 15109 # This hack is so that the source file can tell whether it is being 15110 # built for inclusion in a dll (and should export symbols for example). 15111 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15112 # (--disable-auto-import) libraries 15113 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15114 case $host_os in 15115 os2*) 15116 lt_prog_compiler_static_CXX='$wl-static' 15117 ;; 15118 esac 15119 ;; 15120 darwin* | rhapsody*) 15121 # PIC is the default on this platform 15122 # Common symbols not allowed in MH_DYLIB files 15123 lt_prog_compiler_pic_CXX='-fno-common' 15124 ;; 15125 *djgpp*) 15126 # DJGPP does not support shared libraries at all 15127 lt_prog_compiler_pic_CXX= 15128 ;; 15129 haiku*) 15130 # PIC is the default for Haiku. 15131 # The "-static" flag exists, but is broken. 15132 lt_prog_compiler_static_CXX= 15133 ;; 15134 interix[3-9]*) 15135 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15136 # Instead, we relocate shared libraries at runtime. 15137 ;; 15138 sysv4*MP*) 15139 if test -d /usr/nec; then 15140 lt_prog_compiler_pic_CXX=-Kconform_pic 15141 fi 15142 ;; 15143 hpux*) 15144 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15145 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15146 # sets the default TLS model and affects inlining. 15147 case $host_cpu in 15148 hppa*64*) 15149 ;; 15150 *) 15151 lt_prog_compiler_pic_CXX='-fPIC' 15152 ;; 15153 esac 15154 ;; 15155 *qnx* | *nto*) 15156 # QNX uses GNU C++, but need to define -shared option too, otherwise 15157 # it will coredump. 15158 lt_prog_compiler_pic_CXX='-fPIC -shared' 15159 ;; 15160 *) 15161 lt_prog_compiler_pic_CXX='-fPIC' 15162 ;; 15163 esac 15164 else 15165 case $host_os in 15166 aix[4-9]*) 15167 # All AIX code is PIC. 15168 if test ia64 = "$host_cpu"; then 15169 # AIX 5 now supports IA64 processor 15170 lt_prog_compiler_static_CXX='-Bstatic' 15171 else 15172 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 15173 fi 15174 ;; 15175 chorus*) 15176 case $cc_basename in 15177 cxch68*) 15178 # Green Hills C++ Compiler 15179 # _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" 15180 ;; 15181 esac 15182 ;; 15183 mingw* | cygwin* | os2* | pw32* | cegcc*) 15184 # This hack is so that the source file can tell whether it is being 15185 # built for inclusion in a dll (and should export symbols for example). 15186 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15187 ;; 15188 dgux*) 15189 case $cc_basename in 15190 ec++*) 15191 lt_prog_compiler_pic_CXX='-KPIC' 15192 ;; 15193 ghcx*) 15194 # Green Hills C++ Compiler 15195 lt_prog_compiler_pic_CXX='-pic' 15196 ;; 15197 *) 15198 ;; 15199 esac 15200 ;; 15201 freebsd* | dragonfly*) 15202 # FreeBSD uses GNU C++ 15203 ;; 15204 hpux9* | hpux10* | hpux11*) 15205 case $cc_basename in 15206 CC*) 15207 lt_prog_compiler_wl_CXX='-Wl,' 15208 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15209 if test ia64 != "$host_cpu"; then 15210 lt_prog_compiler_pic_CXX='+Z' 15211 fi 15212 ;; 15213 aCC*) 15214 lt_prog_compiler_wl_CXX='-Wl,' 15215 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15216 case $host_cpu in 15217 hppa*64*|ia64*) 15218 # +Z the default 15219 ;; 15220 *) 15221 lt_prog_compiler_pic_CXX='+Z' 15222 ;; 15223 esac 15224 ;; 15225 *) 15226 ;; 15227 esac 15228 ;; 15229 interix*) 15230 # This is c89, which is MS Visual C++ (no shared libs) 15231 # Anyone wants to do a port? 15232 ;; 15233 irix5* | irix6* | nonstopux*) 15234 case $cc_basename in 15235 CC*) 15236 lt_prog_compiler_wl_CXX='-Wl,' 15237 lt_prog_compiler_static_CXX='-non_shared' 15238 # CC pic flag -KPIC is the default. 15239 ;; 15240 *) 15241 ;; 15242 esac 15243 ;; 15244 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15245 case $cc_basename in 15246 KCC*) 15247 # KAI C++ Compiler 15248 lt_prog_compiler_wl_CXX='--backend -Wl,' 15249 lt_prog_compiler_pic_CXX='-fPIC' 15250 ;; 15251 ecpc* ) 15252 # old Intel C++ for x86_64, which still supported -KPIC. 15253 lt_prog_compiler_wl_CXX='-Wl,' 15254 lt_prog_compiler_pic_CXX='-KPIC' 15255 lt_prog_compiler_static_CXX='-static' 15256 ;; 15257 icpc* ) 15258 # Intel C++, used to be incompatible with GCC. 15259 # ICC 10 doesn't accept -KPIC any more. 15260 lt_prog_compiler_wl_CXX='-Wl,' 15261 lt_prog_compiler_pic_CXX='-fPIC' 15262 lt_prog_compiler_static_CXX='-static' 15263 ;; 15264 pgCC* | pgcpp*) 15265 # Portland Group C++ compiler 15266 lt_prog_compiler_wl_CXX='-Wl,' 15267 lt_prog_compiler_pic_CXX='-fpic' 15268 lt_prog_compiler_static_CXX='-Bstatic' 15269 ;; 15270 cxx*) 15271 # Compaq C++ 15272 # Make sure the PIC flag is empty. It appears that all Alpha 15273 # Linux and Compaq Tru64 Unix objects are PIC. 15274 lt_prog_compiler_pic_CXX= 15275 lt_prog_compiler_static_CXX='-non_shared' 15276 ;; 15277 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 15278 # IBM XL 8.0, 9.0 on PPC and BlueGene 15279 lt_prog_compiler_wl_CXX='-Wl,' 15280 lt_prog_compiler_pic_CXX='-qpic' 15281 lt_prog_compiler_static_CXX='-qstaticlink' 15282 ;; 15283 *) 15284 case `$CC -V 2>&1 | sed 5q` in 15285 *Sun\ C*) 15286 # Sun C++ 5.9 15287 lt_prog_compiler_pic_CXX='-KPIC' 15288 lt_prog_compiler_static_CXX='-Bstatic' 15289 lt_prog_compiler_wl_CXX='-Qoption ld ' 15290 ;; 15291 esac 15292 ;; 15293 esac 15294 ;; 15295 lynxos*) 15296 ;; 15297 m88k*) 15298 ;; 15299 mvs*) 15300 case $cc_basename in 15301 cxx*) 15302 lt_prog_compiler_pic_CXX='-W c,exportall' 15303 ;; 15304 *) 15305 ;; 15306 esac 15307 ;; 15308 netbsd* | netbsdelf*-gnu) 15309 ;; 15310 *qnx* | *nto*) 15311 # QNX uses GNU C++, but need to define -shared option too, otherwise 15312 # it will coredump. 15313 lt_prog_compiler_pic_CXX='-fPIC -shared' 15314 ;; 15315 osf3* | osf4* | osf5*) 15316 case $cc_basename in 15317 KCC*) 15318 lt_prog_compiler_wl_CXX='--backend -Wl,' 15319 ;; 15320 RCC*) 15321 # Rational C++ 2.4.1 15322 lt_prog_compiler_pic_CXX='-pic' 15323 ;; 15324 cxx*) 15325 # Digital/Compaq C++ 15326 lt_prog_compiler_wl_CXX='-Wl,' 15327 # Make sure the PIC flag is empty. It appears that all Alpha 15328 # Linux and Compaq Tru64 Unix objects are PIC. 15329 lt_prog_compiler_pic_CXX= 15330 lt_prog_compiler_static_CXX='-non_shared' 15331 ;; 15332 *) 15333 ;; 15334 esac 15335 ;; 15336 psos*) 15337 ;; 15338 solaris*) 15339 case $cc_basename in 15340 CC* | sunCC*) 15341 # Sun C++ 4.2, 5.x and Centerline C++ 15342 lt_prog_compiler_pic_CXX='-KPIC' 15343 lt_prog_compiler_static_CXX='-Bstatic' 15344 lt_prog_compiler_wl_CXX='-Qoption ld ' 15345 ;; 15346 gcx*) 15347 # Green Hills C++ Compiler 15348 lt_prog_compiler_pic_CXX='-PIC' 15349 ;; 15350 *) 15351 ;; 15352 esac 15353 ;; 15354 sunos4*) 15355 case $cc_basename in 15356 CC*) 15357 # Sun C++ 4.x 15358 lt_prog_compiler_pic_CXX='-pic' 15359 lt_prog_compiler_static_CXX='-Bstatic' 15360 ;; 15361 lcc*) 15362 # Lucid 15363 lt_prog_compiler_pic_CXX='-pic' 15364 ;; 15365 *) 15366 ;; 15367 esac 15368 ;; 15369 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15370 case $cc_basename in 15371 CC*) 15372 lt_prog_compiler_wl_CXX='-Wl,' 15373 lt_prog_compiler_pic_CXX='-KPIC' 15374 lt_prog_compiler_static_CXX='-Bstatic' 15375 ;; 15376 esac 15377 ;; 15378 tandem*) 15379 case $cc_basename in 15380 NCC*) 15381 # NonStop-UX NCC 3.20 15382 lt_prog_compiler_pic_CXX='-KPIC' 15383 ;; 15384 *) 15385 ;; 15386 esac 15387 ;; 15388 vxworks*) 15389 ;; 15390 *) 15391 lt_prog_compiler_can_build_shared_CXX=no 15392 ;; 15393 esac 15394 fi 15395 15396case $host_os in 15397 # For platforms that do not support PIC, -DPIC is meaningless: 15398 *djgpp*) 15399 lt_prog_compiler_pic_CXX= 15400 ;; 15401 *) 15402 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 15403 ;; 15404esac 15405 15406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15407$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15408if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 15409 $as_echo_n "(cached) " >&6 15410else 15411 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 15412fi 15413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 15414$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 15415lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 15416 15417# 15418# Check to make sure the PIC flag actually works. 15419# 15420if test -n "$lt_prog_compiler_pic_CXX"; then 15421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 15422$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 15423if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 15424 $as_echo_n "(cached) " >&6 15425else 15426 lt_cv_prog_compiler_pic_works_CXX=no 15427 ac_outfile=conftest.$ac_objext 15428 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15429 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 15430 # Insert the option either (1) after the last *FLAGS variable, or 15431 # (2) before a word containing "conftest.", or (3) at the end. 15432 # Note that $ac_compile itself does not contain backslashes and begins 15433 # with a dollar sign (not a hyphen), so the echo should work correctly. 15434 # The option is referenced via a variable to avoid confusing sed. 15435 lt_compile=`echo "$ac_compile" | $SED \ 15436 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15437 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15438 -e 's:$: $lt_compiler_flag:'` 15439 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15440 (eval "$lt_compile" 2>conftest.err) 15441 ac_status=$? 15442 cat conftest.err >&5 15443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15444 if (exit $ac_status) && test -s "$ac_outfile"; then 15445 # The compiler can only warn and ignore the option if not recognized 15446 # So say no if there are warnings other than the usual output. 15447 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15448 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15449 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15450 lt_cv_prog_compiler_pic_works_CXX=yes 15451 fi 15452 fi 15453 $RM conftest* 15454 15455fi 15456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 15457$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 15458 15459if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 15460 case $lt_prog_compiler_pic_CXX in 15461 "" | " "*) ;; 15462 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 15463 esac 15464else 15465 lt_prog_compiler_pic_CXX= 15466 lt_prog_compiler_can_build_shared_CXX=no 15467fi 15468 15469fi 15470 15471 15472 15473 15474 15475# 15476# Check to make sure the static flag actually works. 15477# 15478wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 15479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15480$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15481if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 15482 $as_echo_n "(cached) " >&6 15483else 15484 lt_cv_prog_compiler_static_works_CXX=no 15485 save_LDFLAGS=$LDFLAGS 15486 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15487 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15488 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15489 # The linker can only warn and ignore the option if not recognized 15490 # So say no if there are warnings 15491 if test -s conftest.err; then 15492 # Append any errors to the config.log. 15493 cat conftest.err 1>&5 15494 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15495 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15496 if diff conftest.exp conftest.er2 >/dev/null; then 15497 lt_cv_prog_compiler_static_works_CXX=yes 15498 fi 15499 else 15500 lt_cv_prog_compiler_static_works_CXX=yes 15501 fi 15502 fi 15503 $RM -r conftest* 15504 LDFLAGS=$save_LDFLAGS 15505 15506fi 15507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 15508$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 15509 15510if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 15511 : 15512else 15513 lt_prog_compiler_static_CXX= 15514fi 15515 15516 15517 15518 15519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15520$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15521if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15522 $as_echo_n "(cached) " >&6 15523else 15524 lt_cv_prog_compiler_c_o_CXX=no 15525 $RM -r conftest 2>/dev/null 15526 mkdir conftest 15527 cd conftest 15528 mkdir out 15529 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15530 15531 lt_compiler_flag="-o out/conftest2.$ac_objext" 15532 # Insert the option either (1) after the last *FLAGS variable, or 15533 # (2) before a word containing "conftest.", or (3) at the end. 15534 # Note that $ac_compile itself does not contain backslashes and begins 15535 # with a dollar sign (not a hyphen), so the echo should work correctly. 15536 lt_compile=`echo "$ac_compile" | $SED \ 15537 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15538 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15539 -e 's:$: $lt_compiler_flag:'` 15540 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15541 (eval "$lt_compile" 2>out/conftest.err) 15542 ac_status=$? 15543 cat out/conftest.err >&5 15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15545 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15546 then 15547 # The compiler can only warn and ignore the option if not recognized 15548 # So say no if there are warnings 15549 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15550 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15551 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15552 lt_cv_prog_compiler_c_o_CXX=yes 15553 fi 15554 fi 15555 chmod u+w . 2>&5 15556 $RM conftest* 15557 # SGI C++ compiler will create directory out/ii_files/ for 15558 # template instantiation 15559 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15560 $RM out/* && rmdir out 15561 cd .. 15562 $RM -r conftest 15563 $RM conftest* 15564 15565fi 15566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15567$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15568 15569 15570 15571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15572$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15573if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15574 $as_echo_n "(cached) " >&6 15575else 15576 lt_cv_prog_compiler_c_o_CXX=no 15577 $RM -r conftest 2>/dev/null 15578 mkdir conftest 15579 cd conftest 15580 mkdir out 15581 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15582 15583 lt_compiler_flag="-o out/conftest2.$ac_objext" 15584 # Insert the option either (1) after the last *FLAGS variable, or 15585 # (2) before a word containing "conftest.", or (3) at the end. 15586 # Note that $ac_compile itself does not contain backslashes and begins 15587 # with a dollar sign (not a hyphen), so the echo should work correctly. 15588 lt_compile=`echo "$ac_compile" | $SED \ 15589 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15590 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15591 -e 's:$: $lt_compiler_flag:'` 15592 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15593 (eval "$lt_compile" 2>out/conftest.err) 15594 ac_status=$? 15595 cat out/conftest.err >&5 15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15597 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15598 then 15599 # The compiler can only warn and ignore the option if not recognized 15600 # So say no if there are warnings 15601 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15602 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15603 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15604 lt_cv_prog_compiler_c_o_CXX=yes 15605 fi 15606 fi 15607 chmod u+w . 2>&5 15608 $RM conftest* 15609 # SGI C++ compiler will create directory out/ii_files/ for 15610 # template instantiation 15611 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15612 $RM out/* && rmdir out 15613 cd .. 15614 $RM -r conftest 15615 $RM conftest* 15616 15617fi 15618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15619$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15620 15621 15622 15623 15624hard_links=nottested 15625if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 15626 # do not overwrite the value of need_locks provided by the user 15627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15628$as_echo_n "checking if we can lock with hard links... " >&6; } 15629 hard_links=yes 15630 $RM conftest* 15631 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15632 touch conftest.a 15633 ln conftest.a conftest.b 2>&5 || hard_links=no 15634 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15636$as_echo "$hard_links" >&6; } 15637 if test no = "$hard_links"; then 15638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15639$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15640 need_locks=warn 15641 fi 15642else 15643 need_locks=no 15644fi 15645 15646 15647 15648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15649$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15650 15651 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15652 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15653 case $host_os in 15654 aix[4-9]*) 15655 # If we're using GNU nm, then we don't want the "-C" option. 15656 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 15657 # Without the "-l" option, or with the "-B" option, AIX nm treats 15658 # weak defined symbols like other global defined symbols, whereas 15659 # GNU nm marks them as "W". 15660 # While the 'weak' keyword is ignored in the Export File, we need 15661 # it in the Import File for the 'aix-soname' feature, so we have 15662 # to replace the "-B" option with "-P" for AIX nm. 15663 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15664 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 15665 else 15666 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 15667 fi 15668 ;; 15669 pw32*) 15670 export_symbols_cmds_CXX=$ltdll_cmds 15671 ;; 15672 cygwin* | mingw* | cegcc*) 15673 case $cc_basename in 15674 cl*) 15675 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15676 ;; 15677 *) 15678 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' 15679 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15680 ;; 15681 esac 15682 ;; 15683 linux* | k*bsd*-gnu | gnu*) 15684 link_all_deplibs_CXX=no 15685 ;; 15686 *) 15687 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15688 ;; 15689 esac 15690 15691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15692$as_echo "$ld_shlibs_CXX" >&6; } 15693test no = "$ld_shlibs_CXX" && can_build_shared=no 15694 15695with_gnu_ld_CXX=$with_gnu_ld 15696 15697 15698 15699 15700 15701 15702# 15703# Do we need to explicitly link libc? 15704# 15705case "x$archive_cmds_need_lc_CXX" in 15706x|xyes) 15707 # Assume -lc should be added 15708 archive_cmds_need_lc_CXX=yes 15709 15710 if test yes,yes = "$GCC,$enable_shared"; then 15711 case $archive_cmds_CXX in 15712 *'~'*) 15713 # FIXME: we may have to deal with multi-command sequences. 15714 ;; 15715 '$CC '*) 15716 # Test whether the compiler implicitly links with -lc since on some 15717 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15718 # to ld, don't add -lc before -lgcc. 15719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15720$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15721if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 15722 $as_echo_n "(cached) " >&6 15723else 15724 $RM conftest* 15725 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15726 15727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15728 (eval $ac_compile) 2>&5 15729 ac_status=$? 15730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15731 test $ac_status = 0; } 2>conftest.err; then 15732 soname=conftest 15733 lib=conftest 15734 libobjs=conftest.$ac_objext 15735 deplibs= 15736 wl=$lt_prog_compiler_wl_CXX 15737 pic_flag=$lt_prog_compiler_pic_CXX 15738 compiler_flags=-v 15739 linker_flags=-v 15740 verstring= 15741 output_objdir=. 15742 libname=conftest 15743 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 15744 allow_undefined_flag_CXX= 15745 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15746 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15747 ac_status=$? 15748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15749 test $ac_status = 0; } 15750 then 15751 lt_cv_archive_cmds_need_lc_CXX=no 15752 else 15753 lt_cv_archive_cmds_need_lc_CXX=yes 15754 fi 15755 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 15756 else 15757 cat conftest.err 1>&5 15758 fi 15759 $RM conftest* 15760 15761fi 15762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 15763$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 15764 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 15765 ;; 15766 esac 15767 fi 15768 ;; 15769esac 15770 15771 15772 15773 15774 15775 15776 15777 15778 15779 15780 15781 15782 15783 15784 15785 15786 15787 15788 15789 15790 15791 15792 15793 15794 15795 15796 15797 15798 15799 15800 15801 15802 15803 15804 15805 15806 15807 15808 15809 15810 15811 15812 15813 15814 15815 15816 15817 15818 15819 15820 15821 15822 15823 15824 15825 15826 15827 15828 15829 15830 15831 15832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15833$as_echo_n "checking dynamic linker characteristics... " >&6; } 15834 15835library_names_spec= 15836libname_spec='lib$name' 15837soname_spec= 15838shrext_cmds=.so 15839postinstall_cmds= 15840postuninstall_cmds= 15841finish_cmds= 15842finish_eval= 15843shlibpath_var= 15844shlibpath_overrides_runpath=unknown 15845version_type=none 15846dynamic_linker="$host_os ld.so" 15847sys_lib_dlsearch_path_spec="/lib /usr/lib" 15848need_lib_prefix=unknown 15849hardcode_into_libs=no 15850 15851# when you set need_version to no, make sure it does not cause -set_version 15852# flags to be left without arguments 15853need_version=unknown 15854 15855 15856 15857case $host_os in 15858aix3*) 15859 version_type=linux # correct to gnu/linux during the next big refactor 15860 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 15861 shlibpath_var=LIBPATH 15862 15863 # AIX 3 has no versioning support, so we append a major version to the name. 15864 soname_spec='$libname$release$shared_ext$major' 15865 ;; 15866 15867aix[4-9]*) 15868 version_type=linux # correct to gnu/linux during the next big refactor 15869 need_lib_prefix=no 15870 need_version=no 15871 hardcode_into_libs=yes 15872 if test ia64 = "$host_cpu"; then 15873 # AIX 5 supports IA64 15874 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 15875 shlibpath_var=LD_LIBRARY_PATH 15876 else 15877 # With GCC up to 2.95.x, collect2 would create an import file 15878 # for dependence libraries. The import file would start with 15879 # the line '#! .'. This would cause the generated library to 15880 # depend on '.', always an invalid library. This was fixed in 15881 # development snapshots of GCC prior to 3.0. 15882 case $host_os in 15883 aix4 | aix4.[01] | aix4.[01].*) 15884 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15885 echo ' yes ' 15886 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 15887 : 15888 else 15889 can_build_shared=no 15890 fi 15891 ;; 15892 esac 15893 # Using Import Files as archive members, it is possible to support 15894 # filename-based versioning of shared library archives on AIX. While 15895 # this would work for both with and without runtime linking, it will 15896 # prevent static linking of such archives. So we do filename-based 15897 # shared library versioning with .so extension only, which is used 15898 # when both runtime linking and shared linking is enabled. 15899 # Unfortunately, runtime linking may impact performance, so we do 15900 # not want this to be the default eventually. Also, we use the 15901 # versioned .so libs for executables only if there is the -brtl 15902 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 15903 # To allow for filename-based versioning support, we need to create 15904 # libNAME.so.V as an archive file, containing: 15905 # *) an Import File, referring to the versioned filename of the 15906 # archive as well as the shared archive member, telling the 15907 # bitwidth (32 or 64) of that shared object, and providing the 15908 # list of exported symbols of that shared object, eventually 15909 # decorated with the 'weak' keyword 15910 # *) the shared object with the F_LOADONLY flag set, to really avoid 15911 # it being seen by the linker. 15912 # At run time we better use the real file rather than another symlink, 15913 # but for link time we create the symlink libNAME.so -> libNAME.so.V 15914 15915 case $with_aix_soname,$aix_use_runtimelinking in 15916 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 15917 # soname into executable. Probably we can add versioning support to 15918 # collect2, so additional links can be useful in future. 15919 aix,yes) # traditional libtool 15920 dynamic_linker='AIX unversionable lib.so' 15921 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15922 # instead of lib<name>.a to let people know that these are not 15923 # typical AIX shared libraries. 15924 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15925 ;; 15926 aix,no) # traditional AIX only 15927 dynamic_linker='AIX lib.a(lib.so.V)' 15928 # We preserve .a as extension for shared libraries through AIX4.2 15929 # and later when we are not doing run time linking. 15930 library_names_spec='$libname$release.a $libname.a' 15931 soname_spec='$libname$release$shared_ext$major' 15932 ;; 15933 svr4,*) # full svr4 only 15934 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 15935 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15936 # We do not specify a path in Import Files, so LIBPATH fires. 15937 shlibpath_overrides_runpath=yes 15938 ;; 15939 *,yes) # both, prefer svr4 15940 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 15941 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15942 # unpreferred sharedlib libNAME.a needs extra handling 15943 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 15944 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 15945 # We do not specify a path in Import Files, so LIBPATH fires. 15946 shlibpath_overrides_runpath=yes 15947 ;; 15948 *,no) # both, prefer aix 15949 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 15950 library_names_spec='$libname$release.a $libname.a' 15951 soname_spec='$libname$release$shared_ext$major' 15952 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 15953 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 15954 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 15955 ;; 15956 esac 15957 shlibpath_var=LIBPATH 15958 fi 15959 ;; 15960 15961amigaos*) 15962 case $host_cpu in 15963 powerpc) 15964 # Since July 2007 AmigaOS4 officially supports .so libraries. 15965 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15966 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15967 ;; 15968 m68k) 15969 library_names_spec='$libname.ixlibrary $libname.a' 15970 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15971 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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' 15972 ;; 15973 esac 15974 ;; 15975 15976beos*) 15977 library_names_spec='$libname$shared_ext' 15978 dynamic_linker="$host_os ld.so" 15979 shlibpath_var=LIBRARY_PATH 15980 ;; 15981 15982bsdi[45]*) 15983 version_type=linux # correct to gnu/linux during the next big refactor 15984 need_version=no 15985 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15986 soname_spec='$libname$release$shared_ext$major' 15987 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15988 shlibpath_var=LD_LIBRARY_PATH 15989 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15990 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15991 # the default ld.so.conf also contains /usr/contrib/lib and 15992 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15993 # libtool to hard-code these into programs 15994 ;; 15995 15996cygwin* | mingw* | pw32* | cegcc*) 15997 version_type=windows 15998 shrext_cmds=.dll 15999 need_version=no 16000 need_lib_prefix=no 16001 16002 case $GCC,$cc_basename in 16003 yes,*) 16004 # gcc 16005 library_names_spec='$libname.dll.a' 16006 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16007 postinstall_cmds='base_file=`basename \$file`~ 16008 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16009 dldir=$destdir/`dirname \$dlpath`~ 16010 test -d \$dldir || mkdir -p \$dldir~ 16011 $install_prog $dir/$dlname \$dldir/$dlname~ 16012 chmod a+x \$dldir/$dlname~ 16013 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16014 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16015 fi' 16016 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16017 dlpath=$dir/\$dldll~ 16018 $RM \$dlpath' 16019 shlibpath_overrides_runpath=yes 16020 16021 case $host_os in 16022 cygwin*) 16023 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16024 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16025 16026 ;; 16027 mingw* | cegcc*) 16028 # MinGW DLLs use traditional 'lib' prefix 16029 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16030 ;; 16031 pw32*) 16032 # pw32 DLLs use 'pw' prefix rather than 'lib' 16033 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16034 ;; 16035 esac 16036 dynamic_linker='Win32 ld.exe' 16037 ;; 16038 16039 *,cl*) 16040 # Native MSVC 16041 libname_spec='$name' 16042 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16043 library_names_spec='$libname.dll.lib' 16044 16045 case $build_os in 16046 mingw*) 16047 sys_lib_search_path_spec= 16048 lt_save_ifs=$IFS 16049 IFS=';' 16050 for lt_path in $LIB 16051 do 16052 IFS=$lt_save_ifs 16053 # Let DOS variable expansion print the short 8.3 style file name. 16054 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 16055 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 16056 done 16057 IFS=$lt_save_ifs 16058 # Convert to MSYS style. 16059 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 16060 ;; 16061 cygwin*) 16062 # Convert to unix form, then to dos form, then back to unix form 16063 # but this time dos style (no spaces!) so that the unix form looks 16064 # like /cygdrive/c/PROGRA~1:/cygdr... 16065 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 16066 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 16067 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16068 ;; 16069 *) 16070 sys_lib_search_path_spec=$LIB 16071 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 16072 # It is most probably a Windows format PATH. 16073 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16074 else 16075 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16076 fi 16077 # FIXME: find the short name or the path components, as spaces are 16078 # common. (e.g. "Program Files" -> "PROGRA~1") 16079 ;; 16080 esac 16081 16082 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16083 postinstall_cmds='base_file=`basename \$file`~ 16084 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16085 dldir=$destdir/`dirname \$dlpath`~ 16086 test -d \$dldir || mkdir -p \$dldir~ 16087 $install_prog $dir/$dlname \$dldir/$dlname' 16088 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16089 dlpath=$dir/\$dldll~ 16090 $RM \$dlpath' 16091 shlibpath_overrides_runpath=yes 16092 dynamic_linker='Win32 link.exe' 16093 ;; 16094 16095 *) 16096 # Assume MSVC wrapper 16097 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 16098 dynamic_linker='Win32 ld.exe' 16099 ;; 16100 esac 16101 # FIXME: first we should search . and the directory the executable is in 16102 shlibpath_var=PATH 16103 ;; 16104 16105darwin* | rhapsody*) 16106 dynamic_linker="$host_os dyld" 16107 version_type=darwin 16108 need_lib_prefix=no 16109 need_version=no 16110 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 16111 soname_spec='$libname$release$major$shared_ext' 16112 shlibpath_overrides_runpath=yes 16113 shlibpath_var=DYLD_LIBRARY_PATH 16114 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16115 16116 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16117 ;; 16118 16119dgux*) 16120 version_type=linux # correct to gnu/linux during the next big refactor 16121 need_lib_prefix=no 16122 need_version=no 16123 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16124 soname_spec='$libname$release$shared_ext$major' 16125 shlibpath_var=LD_LIBRARY_PATH 16126 ;; 16127 16128freebsd* | dragonfly*) 16129 # DragonFly does not have aout. When/if they implement a new 16130 # versioning mechanism, adjust this. 16131 if test -x /usr/bin/objformat; then 16132 objformat=`/usr/bin/objformat` 16133 else 16134 case $host_os in 16135 freebsd[23].*) objformat=aout ;; 16136 *) objformat=elf ;; 16137 esac 16138 fi 16139 version_type=freebsd-$objformat 16140 case $version_type in 16141 freebsd-elf*) 16142 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16143 soname_spec='$libname$release$shared_ext$major' 16144 need_version=no 16145 need_lib_prefix=no 16146 ;; 16147 freebsd-*) 16148 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16149 need_version=yes 16150 ;; 16151 esac 16152 shlibpath_var=LD_LIBRARY_PATH 16153 case $host_os in 16154 freebsd2.*) 16155 shlibpath_overrides_runpath=yes 16156 ;; 16157 freebsd3.[01]* | freebsdelf3.[01]*) 16158 shlibpath_overrides_runpath=yes 16159 hardcode_into_libs=yes 16160 ;; 16161 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16162 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16163 shlibpath_overrides_runpath=no 16164 hardcode_into_libs=yes 16165 ;; 16166 *) # from 4.6 on, and DragonFly 16167 shlibpath_overrides_runpath=yes 16168 hardcode_into_libs=yes 16169 ;; 16170 esac 16171 ;; 16172 16173haiku*) 16174 version_type=linux # correct to gnu/linux during the next big refactor 16175 need_lib_prefix=no 16176 need_version=no 16177 dynamic_linker="$host_os runtime_loader" 16178 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16179 soname_spec='$libname$release$shared_ext$major' 16180 shlibpath_var=LIBRARY_PATH 16181 shlibpath_overrides_runpath=no 16182 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16183 hardcode_into_libs=yes 16184 ;; 16185 16186hpux9* | hpux10* | hpux11*) 16187 # Give a soname corresponding to the major version so that dld.sl refuses to 16188 # link against other versions. 16189 version_type=sunos 16190 need_lib_prefix=no 16191 need_version=no 16192 case $host_cpu in 16193 ia64*) 16194 shrext_cmds='.so' 16195 hardcode_into_libs=yes 16196 dynamic_linker="$host_os dld.so" 16197 shlibpath_var=LD_LIBRARY_PATH 16198 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16199 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16200 soname_spec='$libname$release$shared_ext$major' 16201 if test 32 = "$HPUX_IA64_MODE"; then 16202 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16203 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 16204 else 16205 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16206 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 16207 fi 16208 ;; 16209 hppa*64*) 16210 shrext_cmds='.sl' 16211 hardcode_into_libs=yes 16212 dynamic_linker="$host_os dld.sl" 16213 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16214 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16215 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16216 soname_spec='$libname$release$shared_ext$major' 16217 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16218 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16219 ;; 16220 *) 16221 shrext_cmds='.sl' 16222 dynamic_linker="$host_os dld.sl" 16223 shlibpath_var=SHLIB_PATH 16224 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16225 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16226 soname_spec='$libname$release$shared_ext$major' 16227 ;; 16228 esac 16229 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16230 postinstall_cmds='chmod 555 $lib' 16231 # or fails outright, so override atomically: 16232 install_override_mode=555 16233 ;; 16234 16235interix[3-9]*) 16236 version_type=linux # correct to gnu/linux during the next big refactor 16237 need_lib_prefix=no 16238 need_version=no 16239 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16240 soname_spec='$libname$release$shared_ext$major' 16241 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16242 shlibpath_var=LD_LIBRARY_PATH 16243 shlibpath_overrides_runpath=no 16244 hardcode_into_libs=yes 16245 ;; 16246 16247irix5* | irix6* | nonstopux*) 16248 case $host_os in 16249 nonstopux*) version_type=nonstopux ;; 16250 *) 16251 if test yes = "$lt_cv_prog_gnu_ld"; then 16252 version_type=linux # correct to gnu/linux during the next big refactor 16253 else 16254 version_type=irix 16255 fi ;; 16256 esac 16257 need_lib_prefix=no 16258 need_version=no 16259 soname_spec='$libname$release$shared_ext$major' 16260 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 16261 case $host_os in 16262 irix5* | nonstopux*) 16263 libsuff= shlibsuff= 16264 ;; 16265 *) 16266 case $LD in # libtool.m4 will add one of these switches to LD 16267 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16268 libsuff= shlibsuff= libmagic=32-bit;; 16269 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16270 libsuff=32 shlibsuff=N32 libmagic=N32;; 16271 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16272 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16273 *) libsuff= shlibsuff= libmagic=never-match;; 16274 esac 16275 ;; 16276 esac 16277 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16278 shlibpath_overrides_runpath=no 16279 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 16280 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 16281 hardcode_into_libs=yes 16282 ;; 16283 16284# No shared lib support for Linux oldld, aout, or coff. 16285linux*oldld* | linux*aout* | linux*coff*) 16286 dynamic_linker=no 16287 ;; 16288 16289linux*android*) 16290 version_type=none # Android doesn't support versioned libraries. 16291 need_lib_prefix=no 16292 need_version=no 16293 library_names_spec='$libname$release$shared_ext' 16294 soname_spec='$libname$release$shared_ext' 16295 finish_cmds= 16296 shlibpath_var=LD_LIBRARY_PATH 16297 shlibpath_overrides_runpath=yes 16298 16299 # This implies no fast_install, which is unacceptable. 16300 # Some rework will be needed to allow for fast_install 16301 # before this can be enabled. 16302 hardcode_into_libs=yes 16303 16304 dynamic_linker='Android linker' 16305 # Don't embed -rpath directories since the linker doesn't support them. 16306 hardcode_libdir_flag_spec_CXX='-L$libdir' 16307 ;; 16308 16309# This must be glibc/ELF. 16310linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16311 version_type=linux # correct to gnu/linux during the next big refactor 16312 need_lib_prefix=no 16313 need_version=no 16314 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16315 soname_spec='$libname$release$shared_ext$major' 16316 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16317 shlibpath_var=LD_LIBRARY_PATH 16318 shlibpath_overrides_runpath=no 16319 16320 # Some binutils ld are patched to set DT_RUNPATH 16321 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 16322 $as_echo_n "(cached) " >&6 16323else 16324 lt_cv_shlibpath_overrides_runpath=no 16325 save_LDFLAGS=$LDFLAGS 16326 save_libdir=$libdir 16327 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 16328 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 16329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16330/* end confdefs.h. */ 16331 16332int 16333main () 16334{ 16335 16336 ; 16337 return 0; 16338} 16339_ACEOF 16340if ac_fn_cxx_try_link "$LINENO"; then : 16341 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16342 lt_cv_shlibpath_overrides_runpath=yes 16343fi 16344fi 16345rm -f core conftest.err conftest.$ac_objext \ 16346 conftest$ac_exeext conftest.$ac_ext 16347 LDFLAGS=$save_LDFLAGS 16348 libdir=$save_libdir 16349 16350fi 16351 16352 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16353 16354 # This implies no fast_install, which is unacceptable. 16355 # Some rework will be needed to allow for fast_install 16356 # before this can be enabled. 16357 hardcode_into_libs=yes 16358 16359 # Ideally, we could use ldconfig to report *all* directores which are 16360 # searched for libraries, however this is still not possible. Aside from not 16361 # being certain /sbin/ldconfig is available, command 16362 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 16363 # even though it is searched at run-time. Try to do the best guess by 16364 # appending ld.so.conf contents (and includes) to the search path. 16365 if test -f /etc/ld.so.conf; then 16366 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' ' '` 16367 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16368 fi 16369 16370 # We used to test for /lib/ld.so.1 and disable shared libraries on 16371 # powerpc, because MkLinux only supported shared libraries with the 16372 # GNU dynamic linker. Since this was broken with cross compilers, 16373 # most powerpc-linux boxes support dynamic linking these days and 16374 # people can always --disable-shared, the test was removed, and we 16375 # assume the GNU/Linux dynamic linker is in use. 16376 dynamic_linker='GNU/Linux ld.so' 16377 ;; 16378 16379netbsdelf*-gnu) 16380 version_type=linux 16381 need_lib_prefix=no 16382 need_version=no 16383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16384 soname_spec='${libname}${release}${shared_ext}$major' 16385 shlibpath_var=LD_LIBRARY_PATH 16386 shlibpath_overrides_runpath=no 16387 hardcode_into_libs=yes 16388 dynamic_linker='NetBSD ld.elf_so' 16389 ;; 16390 16391netbsd*) 16392 version_type=sunos 16393 need_lib_prefix=no 16394 need_version=no 16395 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16396 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16397 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16398 dynamic_linker='NetBSD (a.out) ld.so' 16399 else 16400 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16401 soname_spec='$libname$release$shared_ext$major' 16402 dynamic_linker='NetBSD ld.elf_so' 16403 fi 16404 shlibpath_var=LD_LIBRARY_PATH 16405 shlibpath_overrides_runpath=yes 16406 hardcode_into_libs=yes 16407 ;; 16408 16409newsos6) 16410 version_type=linux # correct to gnu/linux during the next big refactor 16411 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16412 shlibpath_var=LD_LIBRARY_PATH 16413 shlibpath_overrides_runpath=yes 16414 ;; 16415 16416*nto* | *qnx*) 16417 version_type=qnx 16418 need_lib_prefix=no 16419 need_version=no 16420 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16421 soname_spec='$libname$release$shared_ext$major' 16422 shlibpath_var=LD_LIBRARY_PATH 16423 shlibpath_overrides_runpath=no 16424 hardcode_into_libs=yes 16425 dynamic_linker='ldqnx.so' 16426 ;; 16427 16428openbsd* | bitrig*) 16429 version_type=sunos 16430 sys_lib_dlsearch_path_spec=/usr/lib 16431 need_lib_prefix=no 16432 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16433 need_version=no 16434 else 16435 need_version=yes 16436 fi 16437 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16438 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16439 shlibpath_var=LD_LIBRARY_PATH 16440 shlibpath_overrides_runpath=yes 16441 ;; 16442 16443os2*) 16444 libname_spec='$name' 16445 version_type=windows 16446 shrext_cmds=.dll 16447 need_version=no 16448 need_lib_prefix=no 16449 # OS/2 can only load a DLL with a base name of 8 characters or less. 16450 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 16451 v=$($ECHO $release$versuffix | tr -d .-); 16452 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 16453 $ECHO $n$v`$shared_ext' 16454 library_names_spec='${libname}_dll.$libext' 16455 dynamic_linker='OS/2 ld.exe' 16456 shlibpath_var=BEGINLIBPATH 16457 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16458 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16459 postinstall_cmds='base_file=`basename \$file`~ 16460 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 16461 dldir=$destdir/`dirname \$dlpath`~ 16462 test -d \$dldir || mkdir -p \$dldir~ 16463 $install_prog $dir/$dlname \$dldir/$dlname~ 16464 chmod a+x \$dldir/$dlname~ 16465 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16466 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16467 fi' 16468 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 16469 dlpath=$dir/\$dldll~ 16470 $RM \$dlpath' 16471 ;; 16472 16473osf3* | osf4* | osf5*) 16474 version_type=osf 16475 need_lib_prefix=no 16476 need_version=no 16477 soname_spec='$libname$release$shared_ext$major' 16478 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16479 shlibpath_var=LD_LIBRARY_PATH 16480 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16481 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16482 ;; 16483 16484rdos*) 16485 dynamic_linker=no 16486 ;; 16487 16488solaris*) 16489 version_type=linux # correct to gnu/linux during the next big refactor 16490 need_lib_prefix=no 16491 need_version=no 16492 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16493 soname_spec='$libname$release$shared_ext$major' 16494 shlibpath_var=LD_LIBRARY_PATH 16495 shlibpath_overrides_runpath=yes 16496 hardcode_into_libs=yes 16497 # ldd complains unless libraries are executable 16498 postinstall_cmds='chmod +x $lib' 16499 ;; 16500 16501sunos4*) 16502 version_type=sunos 16503 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16504 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16505 shlibpath_var=LD_LIBRARY_PATH 16506 shlibpath_overrides_runpath=yes 16507 if test yes = "$with_gnu_ld"; then 16508 need_lib_prefix=no 16509 fi 16510 need_version=yes 16511 ;; 16512 16513sysv4 | sysv4.3*) 16514 version_type=linux # correct to gnu/linux during the next big refactor 16515 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16516 soname_spec='$libname$release$shared_ext$major' 16517 shlibpath_var=LD_LIBRARY_PATH 16518 case $host_vendor in 16519 sni) 16520 shlibpath_overrides_runpath=no 16521 need_lib_prefix=no 16522 runpath_var=LD_RUN_PATH 16523 ;; 16524 siemens) 16525 need_lib_prefix=no 16526 ;; 16527 motorola) 16528 need_lib_prefix=no 16529 need_version=no 16530 shlibpath_overrides_runpath=no 16531 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16532 ;; 16533 esac 16534 ;; 16535 16536sysv4*MP*) 16537 if test -d /usr/nec; then 16538 version_type=linux # correct to gnu/linux during the next big refactor 16539 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 16540 soname_spec='$libname$shared_ext.$major' 16541 shlibpath_var=LD_LIBRARY_PATH 16542 fi 16543 ;; 16544 16545sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16546 version_type=sco 16547 need_lib_prefix=no 16548 need_version=no 16549 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 16550 soname_spec='$libname$release$shared_ext$major' 16551 shlibpath_var=LD_LIBRARY_PATH 16552 shlibpath_overrides_runpath=yes 16553 hardcode_into_libs=yes 16554 if test yes = "$with_gnu_ld"; then 16555 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16556 else 16557 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16558 case $host_os in 16559 sco3.2v5*) 16560 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16561 ;; 16562 esac 16563 fi 16564 sys_lib_dlsearch_path_spec='/usr/lib' 16565 ;; 16566 16567tpf*) 16568 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16569 version_type=linux # correct to gnu/linux during the next big refactor 16570 need_lib_prefix=no 16571 need_version=no 16572 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16573 shlibpath_var=LD_LIBRARY_PATH 16574 shlibpath_overrides_runpath=no 16575 hardcode_into_libs=yes 16576 ;; 16577 16578uts4*) 16579 version_type=linux # correct to gnu/linux during the next big refactor 16580 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16581 soname_spec='$libname$release$shared_ext$major' 16582 shlibpath_var=LD_LIBRARY_PATH 16583 ;; 16584 16585*) 16586 dynamic_linker=no 16587 ;; 16588esac 16589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16590$as_echo "$dynamic_linker" >&6; } 16591test no = "$dynamic_linker" && can_build_shared=no 16592 16593variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16594if test yes = "$GCC"; then 16595 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16596fi 16597 16598if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 16599 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 16600fi 16601 16602if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 16603 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 16604fi 16605 16606# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 16607configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 16608 16609# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 16610func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 16611 16612# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 16613configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 16614 16615 16616 16617 16618 16619 16620 16621 16622 16623 16624 16625 16626 16627 16628 16629 16630 16631 16632 16633 16634 16635 16636 16637 16638 16639 16640 16641 16642 16643 16644 16645 16646 16647 16648 16649 16650 16651 16652 16653 16654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16655$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16656hardcode_action_CXX= 16657if test -n "$hardcode_libdir_flag_spec_CXX" || 16658 test -n "$runpath_var_CXX" || 16659 test yes = "$hardcode_automatic_CXX"; then 16660 16661 # We can hardcode non-existent directories. 16662 if test no != "$hardcode_direct_CXX" && 16663 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16664 # have to relink, otherwise we might link with an installed library 16665 # when we should be linking with a yet-to-be-installed one 16666 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 16667 test no != "$hardcode_minus_L_CXX"; then 16668 # Linking always hardcodes the temporary library directory. 16669 hardcode_action_CXX=relink 16670 else 16671 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16672 hardcode_action_CXX=immediate 16673 fi 16674else 16675 # We cannot hardcode anything, or else we can only hardcode existing 16676 # directories. 16677 hardcode_action_CXX=unsupported 16678fi 16679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 16680$as_echo "$hardcode_action_CXX" >&6; } 16681 16682if test relink = "$hardcode_action_CXX" || 16683 test yes = "$inherit_rpath_CXX"; then 16684 # Fast installation is not supported 16685 enable_fast_install=no 16686elif test yes = "$shlibpath_overrides_runpath" || 16687 test no = "$enable_shared"; then 16688 # Fast installation is not necessary 16689 enable_fast_install=needless 16690fi 16691 16692 16693 16694 16695 16696 16697 16698 fi # test -n "$compiler" 16699 16700 CC=$lt_save_CC 16701 CFLAGS=$lt_save_CFLAGS 16702 LDCXX=$LD 16703 LD=$lt_save_LD 16704 GCC=$lt_save_GCC 16705 with_gnu_ld=$lt_save_with_gnu_ld 16706 lt_cv_path_LDCXX=$lt_cv_path_LD 16707 lt_cv_path_LD=$lt_save_path_LD 16708 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 16709 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 16710fi # test yes != "$_lt_caught_CXX_error" 16711 16712ac_ext=c 16713ac_cpp='$CPP $CPPFLAGS' 16714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16716ac_compiler_gnu=$ac_cv_c_compiler_gnu 16717 16718 16719 16720 16721 16722 16723 16724 16725 16726 16727 16728 16729 16730 16731 16732 ac_config_commands="$ac_config_commands libtool" 16733 16734 16735 16736 16737# Only expand once: 16738 16739 16740 16741 16742 16743 16744# Enable quiet compiles on automake 1.11. 16745# Check whether --enable-silent-rules was given. 16746if test "${enable_silent_rules+set}" = set; then : 16747 enableval=$enable_silent_rules; 16748fi 16749 16750case $enable_silent_rules in # ((( 16751 yes) AM_DEFAULT_VERBOSITY=0;; 16752 no) AM_DEFAULT_VERBOSITY=1;; 16753 *) AM_DEFAULT_VERBOSITY=0;; 16754esac 16755am_make=${MAKE-make} 16756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 16757$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 16758if ${am_cv_make_support_nested_variables+:} false; then : 16759 $as_echo_n "(cached) " >&6 16760else 16761 if $as_echo 'TRUE=$(BAR$(V)) 16762BAR0=false 16763BAR1=true 16764V=1 16765am__doit: 16766 @$(TRUE) 16767.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 16768 am_cv_make_support_nested_variables=yes 16769else 16770 am_cv_make_support_nested_variables=no 16771fi 16772fi 16773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 16774$as_echo "$am_cv_make_support_nested_variables" >&6; } 16775if test $am_cv_make_support_nested_variables = yes; then 16776 AM_V='$(V)' 16777 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 16778else 16779 AM_V=$AM_DEFAULT_VERBOSITY 16780 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 16781fi 16782AM_BACKSLASH='\' 16783 16784 16785 16786 16787 16788 16789 16790 16791 16792 16793if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 16794 if test -n "$ac_tool_prefix"; then 16795 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 16796set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 16797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16798$as_echo_n "checking for $ac_word... " >&6; } 16799if ${ac_cv_path_PKG_CONFIG+:} false; then : 16800 $as_echo_n "(cached) " >&6 16801else 16802 case $PKG_CONFIG in 16803 [\\/]* | ?:[\\/]*) 16804 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 16805 ;; 16806 *) 16807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16808for as_dir in $PATH 16809do 16810 IFS=$as_save_IFS 16811 test -z "$as_dir" && as_dir=. 16812 for ac_exec_ext in '' $ac_executable_extensions; do 16813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16814 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 16815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16816 break 2 16817 fi 16818done 16819 done 16820IFS=$as_save_IFS 16821 16822 ;; 16823esac 16824fi 16825PKG_CONFIG=$ac_cv_path_PKG_CONFIG 16826if test -n "$PKG_CONFIG"; then 16827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 16828$as_echo "$PKG_CONFIG" >&6; } 16829else 16830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16831$as_echo "no" >&6; } 16832fi 16833 16834 16835fi 16836if test -z "$ac_cv_path_PKG_CONFIG"; then 16837 ac_pt_PKG_CONFIG=$PKG_CONFIG 16838 # Extract the first word of "pkg-config", so it can be a program name with args. 16839set dummy pkg-config; ac_word=$2 16840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16841$as_echo_n "checking for $ac_word... " >&6; } 16842if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 16843 $as_echo_n "(cached) " >&6 16844else 16845 case $ac_pt_PKG_CONFIG in 16846 [\\/]* | ?:[\\/]*) 16847 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 16848 ;; 16849 *) 16850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16851for as_dir in $PATH 16852do 16853 IFS=$as_save_IFS 16854 test -z "$as_dir" && as_dir=. 16855 for ac_exec_ext in '' $ac_executable_extensions; do 16856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16857 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 16858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16859 break 2 16860 fi 16861done 16862 done 16863IFS=$as_save_IFS 16864 16865 ;; 16866esac 16867fi 16868ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 16869if test -n "$ac_pt_PKG_CONFIG"; then 16870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 16871$as_echo "$ac_pt_PKG_CONFIG" >&6; } 16872else 16873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16874$as_echo "no" >&6; } 16875fi 16876 16877 if test "x$ac_pt_PKG_CONFIG" = x; then 16878 PKG_CONFIG="" 16879 else 16880 case $cross_compiling:$ac_tool_warned in 16881yes:) 16882{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16883$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16884ac_tool_warned=yes ;; 16885esac 16886 PKG_CONFIG=$ac_pt_PKG_CONFIG 16887 fi 16888else 16889 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 16890fi 16891 16892fi 16893if test -n "$PKG_CONFIG"; then 16894 _pkg_min_version=0.9.0 16895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 16896$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 16897 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 16898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16899$as_echo "yes" >&6; } 16900 else 16901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16902$as_echo "no" >&6; } 16903 PKG_CONFIG="" 16904 fi 16905fi 16906 16907 16908pkg_failed=no 16909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL" >&5 16910$as_echo_n "checking for GL... " >&6; } 16911 16912if test -n "$GL_CFLAGS"; then 16913 pkg_cv_GL_CFLAGS="$GL_CFLAGS" 16914 elif test -n "$PKG_CONFIG"; then 16915 if test -n "$PKG_CONFIG" && \ 16916 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl\""; } >&5 16917 ($PKG_CONFIG --exists --print-errors "gl") 2>&5 16918 ac_status=$? 16919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16920 test $ac_status = 0; }; then 16921 pkg_cv_GL_CFLAGS=`$PKG_CONFIG --cflags "gl" 2>/dev/null` 16922 test "x$?" != "x0" && pkg_failed=yes 16923else 16924 pkg_failed=yes 16925fi 16926 else 16927 pkg_failed=untried 16928fi 16929if test -n "$GL_LIBS"; then 16930 pkg_cv_GL_LIBS="$GL_LIBS" 16931 elif test -n "$PKG_CONFIG"; then 16932 if test -n "$PKG_CONFIG" && \ 16933 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gl\""; } >&5 16934 ($PKG_CONFIG --exists --print-errors "gl") 2>&5 16935 ac_status=$? 16936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16937 test $ac_status = 0; }; then 16938 pkg_cv_GL_LIBS=`$PKG_CONFIG --libs "gl" 2>/dev/null` 16939 test "x$?" != "x0" && pkg_failed=yes 16940else 16941 pkg_failed=yes 16942fi 16943 else 16944 pkg_failed=untried 16945fi 16946 16947 16948 16949if test $pkg_failed = yes; then 16950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16951$as_echo "no" >&6; } 16952 16953if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16954 _pkg_short_errors_supported=yes 16955else 16956 _pkg_short_errors_supported=no 16957fi 16958 if test $_pkg_short_errors_supported = yes; then 16959 GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gl" 2>&1` 16960 else 16961 GL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gl" 2>&1` 16962 fi 16963 # Put the nasty error message in config.log where it belongs 16964 echo "$GL_PKG_ERRORS" >&5 16965 16966 16967 ac_fn_c_check_header_mongrel "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default" 16968if test "x$ac_cv_header_GL_gl_h" = xyes; then : 16969 16970else 16971 as_fn_error $? "GL not found" "$LINENO" 5 16972fi 16973 16974 16975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glBegin in -lGL" >&5 16976$as_echo_n "checking for glBegin in -lGL... " >&6; } 16977if ${ac_cv_lib_GL_glBegin+:} false; then : 16978 $as_echo_n "(cached) " >&6 16979else 16980 ac_check_lib_save_LIBS=$LIBS 16981LIBS="-lGL $LIBS" 16982cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16983/* end confdefs.h. */ 16984 16985/* Override any GCC internal prototype to avoid an error. 16986 Use char because int might match the return type of a GCC 16987 builtin and then its argument prototype would still apply. */ 16988#ifdef __cplusplus 16989extern "C" 16990#endif 16991char glBegin (); 16992int 16993main () 16994{ 16995return glBegin (); 16996 ; 16997 return 0; 16998} 16999_ACEOF 17000if ac_fn_c_try_link "$LINENO"; then : 17001 ac_cv_lib_GL_glBegin=yes 17002else 17003 ac_cv_lib_GL_glBegin=no 17004fi 17005rm -f core conftest.err conftest.$ac_objext \ 17006 conftest$ac_exeext conftest.$ac_ext 17007LIBS=$ac_check_lib_save_LIBS 17008fi 17009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glBegin" >&5 17010$as_echo "$ac_cv_lib_GL_glBegin" >&6; } 17011if test "x$ac_cv_lib_GL_glBegin" = xyes; then : 17012 GL_LIBS=-lGL 17013else 17014 as_fn_error $? "GL required" "$LINENO" 5 17015fi 17016 17017 17018elif test $pkg_failed = untried; then 17019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17020$as_echo "no" >&6; } 17021 17022 ac_fn_c_check_header_mongrel "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default" 17023if test "x$ac_cv_header_GL_gl_h" = xyes; then : 17024 17025else 17026 as_fn_error $? "GL not found" "$LINENO" 5 17027fi 17028 17029 17030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glBegin in -lGL" >&5 17031$as_echo_n "checking for glBegin in -lGL... " >&6; } 17032if ${ac_cv_lib_GL_glBegin+:} false; then : 17033 $as_echo_n "(cached) " >&6 17034else 17035 ac_check_lib_save_LIBS=$LIBS 17036LIBS="-lGL $LIBS" 17037cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17038/* end confdefs.h. */ 17039 17040/* Override any GCC internal prototype to avoid an error. 17041 Use char because int might match the return type of a GCC 17042 builtin and then its argument prototype would still apply. */ 17043#ifdef __cplusplus 17044extern "C" 17045#endif 17046char glBegin (); 17047int 17048main () 17049{ 17050return glBegin (); 17051 ; 17052 return 0; 17053} 17054_ACEOF 17055if ac_fn_c_try_link "$LINENO"; then : 17056 ac_cv_lib_GL_glBegin=yes 17057else 17058 ac_cv_lib_GL_glBegin=no 17059fi 17060rm -f core conftest.err conftest.$ac_objext \ 17061 conftest$ac_exeext conftest.$ac_ext 17062LIBS=$ac_check_lib_save_LIBS 17063fi 17064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glBegin" >&5 17065$as_echo "$ac_cv_lib_GL_glBegin" >&6; } 17066if test "x$ac_cv_lib_GL_glBegin" = xyes; then : 17067 GL_LIBS=-lGL 17068else 17069 as_fn_error $? "GL required" "$LINENO" 5 17070fi 17071 17072 17073else 17074 GL_CFLAGS=$pkg_cv_GL_CFLAGS 17075 GL_LIBS=$pkg_cv_GL_LIBS 17076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17077$as_echo "yes" >&6; } 17078 17079fi 17080 17081DEMO_CFLAGS="$DEMO_CFLAGS $GL_CFLAGS" 17082DEMO_LIBS="$DEMO_LIBS $GL_LIBS" 17083 17084glut_enabled=yes 17085 17086# Check whether --with-glut was given. 17087if test "${with_glut+set}" = set; then : 17088 withval=$with_glut; GLUT_CFLAGS="-I$withval/include" 17089 GLUT_LIBS="-L$withval/lib -lglut" 17090else 17091 GLUT_CFLAGS="" 17092 GLUT_LIBS="-lglut" 17093 17094fi 17095 17096if test "x$with_glut" != xno; then : 17097 ac_fn_c_check_header_mongrel "$LINENO" "GL/glut.h" "ac_cv_header_GL_glut_h" "$ac_includes_default" 17098if test "x$ac_cv_header_GL_glut_h" = xyes; then : 17099 17100else 17101 glut_enabled=no 17102fi 17103 17104 17105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glutInit in -lglut" >&5 17106$as_echo_n "checking for glutInit in -lglut... " >&6; } 17107if ${ac_cv_lib_glut_glutInit+:} false; then : 17108 $as_echo_n "(cached) " >&6 17109else 17110 ac_check_lib_save_LIBS=$LIBS 17111LIBS="-lglut $LIBS" 17112cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17113/* end confdefs.h. */ 17114 17115/* Override any GCC internal prototype to avoid an error. 17116 Use char because int might match the return type of a GCC 17117 builtin and then its argument prototype would still apply. */ 17118#ifdef __cplusplus 17119extern "C" 17120#endif 17121char glutInit (); 17122int 17123main () 17124{ 17125return glutInit (); 17126 ; 17127 return 0; 17128} 17129_ACEOF 17130if ac_fn_c_try_link "$LINENO"; then : 17131 ac_cv_lib_glut_glutInit=yes 17132else 17133 ac_cv_lib_glut_glutInit=no 17134fi 17135rm -f core conftest.err conftest.$ac_objext \ 17136 conftest$ac_exeext conftest.$ac_ext 17137LIBS=$ac_check_lib_save_LIBS 17138fi 17139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_glut_glutInit" >&5 17140$as_echo "$ac_cv_lib_glut_glutInit" >&6; } 17141if test "x$ac_cv_lib_glut_glutInit" = xyes; then : 17142 cat >>confdefs.h <<_ACEOF 17143#define HAVE_LIBGLUT 1 17144_ACEOF 17145 17146 LIBS="-lglut $LIBS" 17147 17148else 17149 glut_enabled=no 17150fi 17151 17152else 17153 glut_enabled=no 17154fi 17155 17156cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17157/* end confdefs.h. */ 17158#include <GL/freeglut.h> 17159 17160_ACEOF 17161if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17162 $EGREP "glutInitContextProfile" >/dev/null 2>&1; then : 17163 $as_echo "#define HAVE_FREEGLUT 1" >>confdefs.h 17164 17165fi 17166rm -f conftest* 17167 17168 17169 17170pkg_failed=no 17171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLEW" >&5 17172$as_echo_n "checking for GLEW... " >&6; } 17173 17174if test -n "$GLEW_CFLAGS"; then 17175 pkg_cv_GLEW_CFLAGS="$GLEW_CFLAGS" 17176 elif test -n "$PKG_CONFIG"; then 17177 if test -n "$PKG_CONFIG" && \ 17178 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glew >= 1.5.4\""; } >&5 17179 ($PKG_CONFIG --exists --print-errors "glew >= 1.5.4") 2>&5 17180 ac_status=$? 17181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17182 test $ac_status = 0; }; then 17183 pkg_cv_GLEW_CFLAGS=`$PKG_CONFIG --cflags "glew >= 1.5.4" 2>/dev/null` 17184 test "x$?" != "x0" && pkg_failed=yes 17185else 17186 pkg_failed=yes 17187fi 17188 else 17189 pkg_failed=untried 17190fi 17191if test -n "$GLEW_LIBS"; then 17192 pkg_cv_GLEW_LIBS="$GLEW_LIBS" 17193 elif test -n "$PKG_CONFIG"; then 17194 if test -n "$PKG_CONFIG" && \ 17195 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glew >= 1.5.4\""; } >&5 17196 ($PKG_CONFIG --exists --print-errors "glew >= 1.5.4") 2>&5 17197 ac_status=$? 17198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17199 test $ac_status = 0; }; then 17200 pkg_cv_GLEW_LIBS=`$PKG_CONFIG --libs "glew >= 1.5.4" 2>/dev/null` 17201 test "x$?" != "x0" && pkg_failed=yes 17202else 17203 pkg_failed=yes 17204fi 17205 else 17206 pkg_failed=untried 17207fi 17208 17209 17210 17211if test $pkg_failed = yes; then 17212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17213$as_echo "no" >&6; } 17214 17215if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17216 _pkg_short_errors_supported=yes 17217else 17218 _pkg_short_errors_supported=no 17219fi 17220 if test $_pkg_short_errors_supported = yes; then 17221 GLEW_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glew >= 1.5.4" 2>&1` 17222 else 17223 GLEW_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glew >= 1.5.4" 2>&1` 17224 fi 17225 # Put the nasty error message in config.log where it belongs 17226 echo "$GLEW_PKG_ERRORS" >&5 17227 17228 as_fn_error $? "Package requirements (glew >= 1.5.4) were not met: 17229 17230$GLEW_PKG_ERRORS 17231 17232Consider adjusting the PKG_CONFIG_PATH environment variable if you 17233installed software in a non-standard prefix. 17234 17235Alternatively, you may set the environment variables GLEW_CFLAGS 17236and GLEW_LIBS to avoid the need to call pkg-config. 17237See the pkg-config man page for more details." "$LINENO" 5 17238elif test $pkg_failed = untried; then 17239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17240$as_echo "no" >&6; } 17241 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17242$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17243as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 17244is in your PATH or set the PKG_CONFIG environment variable to the full 17245path to pkg-config. 17246 17247Alternatively, you may set the environment variables GLEW_CFLAGS 17248and GLEW_LIBS to avoid the need to call pkg-config. 17249See the pkg-config man page for more details. 17250 17251To get pkg-config, see <http://pkg-config.freedesktop.org/>. 17252See \`config.log' for more details" "$LINENO" 5; } 17253else 17254 GLEW_CFLAGS=$pkg_cv_GLEW_CFLAGS 17255 GLEW_LIBS=$pkg_cv_GLEW_LIBS 17256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17257$as_echo "yes" >&6; } 17258 17259fi 17260DEMO_CFLAGS="$DEMO_CFLAGS $GLEW_CFLAGS" 17261DEMO_LIBS="$DEMO_LIBS $GLEW_LIBS" 17262 17263# LIBS was set by AC_CHECK_LIB above 17264LIBS="" 17265 17266 17267pkg_failed=no 17268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLU" >&5 17269$as_echo_n "checking for GLU... " >&6; } 17270 17271if test -n "$GLU_CFLAGS"; then 17272 pkg_cv_GLU_CFLAGS="$GLU_CFLAGS" 17273 elif test -n "$PKG_CONFIG"; then 17274 if test -n "$PKG_CONFIG" && \ 17275 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glu\""; } >&5 17276 ($PKG_CONFIG --exists --print-errors "glu") 2>&5 17277 ac_status=$? 17278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17279 test $ac_status = 0; }; then 17280 pkg_cv_GLU_CFLAGS=`$PKG_CONFIG --cflags "glu" 2>/dev/null` 17281 test "x$?" != "x0" && pkg_failed=yes 17282else 17283 pkg_failed=yes 17284fi 17285 else 17286 pkg_failed=untried 17287fi 17288if test -n "$GLU_LIBS"; then 17289 pkg_cv_GLU_LIBS="$GLU_LIBS" 17290 elif test -n "$PKG_CONFIG"; then 17291 if test -n "$PKG_CONFIG" && \ 17292 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glu\""; } >&5 17293 ($PKG_CONFIG --exists --print-errors "glu") 2>&5 17294 ac_status=$? 17295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17296 test $ac_status = 0; }; then 17297 pkg_cv_GLU_LIBS=`$PKG_CONFIG --libs "glu" 2>/dev/null` 17298 test "x$?" != "x0" && pkg_failed=yes 17299else 17300 pkg_failed=yes 17301fi 17302 else 17303 pkg_failed=untried 17304fi 17305 17306 17307 17308if test $pkg_failed = yes; then 17309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17310$as_echo "no" >&6; } 17311 17312if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17313 _pkg_short_errors_supported=yes 17314else 17315 _pkg_short_errors_supported=no 17316fi 17317 if test $_pkg_short_errors_supported = yes; then 17318 GLU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glu" 2>&1` 17319 else 17320 GLU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glu" 2>&1` 17321 fi 17322 # Put the nasty error message in config.log where it belongs 17323 echo "$GLU_PKG_ERRORS" >&5 17324 17325 ac_fn_c_check_header_mongrel "$LINENO" "GL/glu.h" "ac_cv_header_GL_glu_h" "$ac_includes_default" 17326if test "x$ac_cv_header_GL_glu_h" = xyes; then : 17327 17328else 17329 as_fn_error $? "GLU not found" "$LINENO" 5 17330fi 17331 17332 17333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluBeginCurve in -lGLU" >&5 17334$as_echo_n "checking for gluBeginCurve in -lGLU... " >&6; } 17335if ${ac_cv_lib_GLU_gluBeginCurve+:} false; then : 17336 $as_echo_n "(cached) " >&6 17337else 17338 ac_check_lib_save_LIBS=$LIBS 17339LIBS="-lGLU $LIBS" 17340cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17341/* end confdefs.h. */ 17342 17343/* Override any GCC internal prototype to avoid an error. 17344 Use char because int might match the return type of a GCC 17345 builtin and then its argument prototype would still apply. */ 17346#ifdef __cplusplus 17347extern "C" 17348#endif 17349char gluBeginCurve (); 17350int 17351main () 17352{ 17353return gluBeginCurve (); 17354 ; 17355 return 0; 17356} 17357_ACEOF 17358if ac_fn_c_try_link "$LINENO"; then : 17359 ac_cv_lib_GLU_gluBeginCurve=yes 17360else 17361 ac_cv_lib_GLU_gluBeginCurve=no 17362fi 17363rm -f core conftest.err conftest.$ac_objext \ 17364 conftest$ac_exeext conftest.$ac_ext 17365LIBS=$ac_check_lib_save_LIBS 17366fi 17367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluBeginCurve" >&5 17368$as_echo "$ac_cv_lib_GLU_gluBeginCurve" >&6; } 17369if test "x$ac_cv_lib_GLU_gluBeginCurve" = xyes; then : 17370 GLU_LIBS=-lGLU 17371else 17372 as_fn_error $? "GLU required" "$LINENO" 5 17373fi 17374 17375elif test $pkg_failed = untried; then 17376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17377$as_echo "no" >&6; } 17378 ac_fn_c_check_header_mongrel "$LINENO" "GL/glu.h" "ac_cv_header_GL_glu_h" "$ac_includes_default" 17379if test "x$ac_cv_header_GL_glu_h" = xyes; then : 17380 17381else 17382 as_fn_error $? "GLU not found" "$LINENO" 5 17383fi 17384 17385 17386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluBeginCurve in -lGLU" >&5 17387$as_echo_n "checking for gluBeginCurve in -lGLU... " >&6; } 17388if ${ac_cv_lib_GLU_gluBeginCurve+:} false; then : 17389 $as_echo_n "(cached) " >&6 17390else 17391 ac_check_lib_save_LIBS=$LIBS 17392LIBS="-lGLU $LIBS" 17393cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17394/* end confdefs.h. */ 17395 17396/* Override any GCC internal prototype to avoid an error. 17397 Use char because int might match the return type of a GCC 17398 builtin and then its argument prototype would still apply. */ 17399#ifdef __cplusplus 17400extern "C" 17401#endif 17402char gluBeginCurve (); 17403int 17404main () 17405{ 17406return gluBeginCurve (); 17407 ; 17408 return 0; 17409} 17410_ACEOF 17411if ac_fn_c_try_link "$LINENO"; then : 17412 ac_cv_lib_GLU_gluBeginCurve=yes 17413else 17414 ac_cv_lib_GLU_gluBeginCurve=no 17415fi 17416rm -f core conftest.err conftest.$ac_objext \ 17417 conftest$ac_exeext conftest.$ac_ext 17418LIBS=$ac_check_lib_save_LIBS 17419fi 17420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluBeginCurve" >&5 17421$as_echo "$ac_cv_lib_GLU_gluBeginCurve" >&6; } 17422if test "x$ac_cv_lib_GLU_gluBeginCurve" = xyes; then : 17423 GLU_LIBS=-lGLU 17424else 17425 as_fn_error $? "GLU required" "$LINENO" 5 17426fi 17427 17428else 17429 GLU_CFLAGS=$pkg_cv_GLU_CFLAGS 17430 GLU_LIBS=$pkg_cv_GLU_LIBS 17431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17432$as_echo "yes" >&6; } 17433 17434fi 17435 17436DEMO_CFLAGS="$DEMO_CFLAGS $GLU_CFLAGS" 17437DEMO_LIBS="$DEMO_LIBS $GLU_LIBS" 17438 17439# Check whether --enable-egl was given. 17440if test "${enable_egl+set}" = set; then : 17441 enableval=$enable_egl; egl_enabled="$enableval" 17442else 17443 egl_enabled=auto 17444fi 17445 17446if test "x$egl_enabled" != "xno"; then 17447 17448pkg_failed=no 17449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL" >&5 17450$as_echo_n "checking for EGL... " >&6; } 17451 17452if test -n "$EGL_CFLAGS"; then 17453 pkg_cv_EGL_CFLAGS="$EGL_CFLAGS" 17454 elif test -n "$PKG_CONFIG"; then 17455 if test -n "$PKG_CONFIG" && \ 17456 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"egl\""; } >&5 17457 ($PKG_CONFIG --exists --print-errors "egl") 2>&5 17458 ac_status=$? 17459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17460 test $ac_status = 0; }; then 17461 pkg_cv_EGL_CFLAGS=`$PKG_CONFIG --cflags "egl" 2>/dev/null` 17462 test "x$?" != "x0" && pkg_failed=yes 17463else 17464 pkg_failed=yes 17465fi 17466 else 17467 pkg_failed=untried 17468fi 17469if test -n "$EGL_LIBS"; then 17470 pkg_cv_EGL_LIBS="$EGL_LIBS" 17471 elif test -n "$PKG_CONFIG"; then 17472 if test -n "$PKG_CONFIG" && \ 17473 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"egl\""; } >&5 17474 ($PKG_CONFIG --exists --print-errors "egl") 2>&5 17475 ac_status=$? 17476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17477 test $ac_status = 0; }; then 17478 pkg_cv_EGL_LIBS=`$PKG_CONFIG --libs "egl" 2>/dev/null` 17479 test "x$?" != "x0" && pkg_failed=yes 17480else 17481 pkg_failed=yes 17482fi 17483 else 17484 pkg_failed=untried 17485fi 17486 17487 17488 17489if test $pkg_failed = yes; then 17490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17491$as_echo "no" >&6; } 17492 17493if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17494 _pkg_short_errors_supported=yes 17495else 17496 _pkg_short_errors_supported=no 17497fi 17498 if test $_pkg_short_errors_supported = yes; then 17499 EGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "egl" 2>&1` 17500 else 17501 EGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "egl" 2>&1` 17502 fi 17503 # Put the nasty error message in config.log where it belongs 17504 echo "$EGL_PKG_ERRORS" >&5 17505 17506 egl_enabled=no 17507elif test $pkg_failed = untried; then 17508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17509$as_echo "no" >&6; } 17510 egl_enabled=no 17511else 17512 EGL_CFLAGS=$pkg_cv_EGL_CFLAGS 17513 EGL_LIBS=$pkg_cv_EGL_LIBS 17514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17515$as_echo "yes" >&6; } 17516 egl_enabled=yes 17517fi 17518fi 17519# Check whether --enable-gles1 was given. 17520if test "${enable_gles1+set}" = set; then : 17521 enableval=$enable_gles1; glesv1_enabled="$enableval" 17522else 17523 glesv1_enabled=auto 17524fi 17525 17526if test "x$glesv1_enabled" != "xno"; then 17527 17528pkg_failed=no 17529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLESV1" >&5 17530$as_echo_n "checking for GLESV1... " >&6; } 17531 17532if test -n "$GLESV1_CFLAGS"; then 17533 pkg_cv_GLESV1_CFLAGS="$GLESV1_CFLAGS" 17534 elif test -n "$PKG_CONFIG"; then 17535 if test -n "$PKG_CONFIG" && \ 17536 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glesv1_cm\""; } >&5 17537 ($PKG_CONFIG --exists --print-errors "glesv1_cm") 2>&5 17538 ac_status=$? 17539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17540 test $ac_status = 0; }; then 17541 pkg_cv_GLESV1_CFLAGS=`$PKG_CONFIG --cflags "glesv1_cm" 2>/dev/null` 17542 test "x$?" != "x0" && pkg_failed=yes 17543else 17544 pkg_failed=yes 17545fi 17546 else 17547 pkg_failed=untried 17548fi 17549if test -n "$GLESV1_LIBS"; then 17550 pkg_cv_GLESV1_LIBS="$GLESV1_LIBS" 17551 elif test -n "$PKG_CONFIG"; then 17552 if test -n "$PKG_CONFIG" && \ 17553 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glesv1_cm\""; } >&5 17554 ($PKG_CONFIG --exists --print-errors "glesv1_cm") 2>&5 17555 ac_status=$? 17556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17557 test $ac_status = 0; }; then 17558 pkg_cv_GLESV1_LIBS=`$PKG_CONFIG --libs "glesv1_cm" 2>/dev/null` 17559 test "x$?" != "x0" && pkg_failed=yes 17560else 17561 pkg_failed=yes 17562fi 17563 else 17564 pkg_failed=untried 17565fi 17566 17567 17568 17569if test $pkg_failed = yes; then 17570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17571$as_echo "no" >&6; } 17572 17573if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17574 _pkg_short_errors_supported=yes 17575else 17576 _pkg_short_errors_supported=no 17577fi 17578 if test $_pkg_short_errors_supported = yes; then 17579 GLESV1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glesv1_cm" 2>&1` 17580 else 17581 GLESV1_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glesv1_cm" 2>&1` 17582 fi 17583 # Put the nasty error message in config.log where it belongs 17584 echo "$GLESV1_PKG_ERRORS" >&5 17585 17586 glesv1_enabled=no 17587elif test $pkg_failed = untried; then 17588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17589$as_echo "no" >&6; } 17590 glesv1_enabled=no 17591else 17592 GLESV1_CFLAGS=$pkg_cv_GLESV1_CFLAGS 17593 GLESV1_LIBS=$pkg_cv_GLESV1_LIBS 17594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17595$as_echo "yes" >&6; } 17596 glesv1_enabled=yes 17597fi 17598fi 17599# Check whether --enable-gles2 was given. 17600if test "${enable_gles2+set}" = set; then : 17601 enableval=$enable_gles2; glesv2_enabled="$enableval" 17602else 17603 glesv2_enabled=auto 17604fi 17605 17606if test "x$glesv2_enabled" != "xno"; then 17607 17608pkg_failed=no 17609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLESV2" >&5 17610$as_echo_n "checking for GLESV2... " >&6; } 17611 17612if test -n "$GLESV2_CFLAGS"; then 17613 pkg_cv_GLESV2_CFLAGS="$GLESV2_CFLAGS" 17614 elif test -n "$PKG_CONFIG"; then 17615 if test -n "$PKG_CONFIG" && \ 17616 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glesv2\""; } >&5 17617 ($PKG_CONFIG --exists --print-errors "glesv2") 2>&5 17618 ac_status=$? 17619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17620 test $ac_status = 0; }; then 17621 pkg_cv_GLESV2_CFLAGS=`$PKG_CONFIG --cflags "glesv2" 2>/dev/null` 17622 test "x$?" != "x0" && pkg_failed=yes 17623else 17624 pkg_failed=yes 17625fi 17626 else 17627 pkg_failed=untried 17628fi 17629if test -n "$GLESV2_LIBS"; then 17630 pkg_cv_GLESV2_LIBS="$GLESV2_LIBS" 17631 elif test -n "$PKG_CONFIG"; then 17632 if test -n "$PKG_CONFIG" && \ 17633 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glesv2\""; } >&5 17634 ($PKG_CONFIG --exists --print-errors "glesv2") 2>&5 17635 ac_status=$? 17636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17637 test $ac_status = 0; }; then 17638 pkg_cv_GLESV2_LIBS=`$PKG_CONFIG --libs "glesv2" 2>/dev/null` 17639 test "x$?" != "x0" && pkg_failed=yes 17640else 17641 pkg_failed=yes 17642fi 17643 else 17644 pkg_failed=untried 17645fi 17646 17647 17648 17649if test $pkg_failed = yes; then 17650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17651$as_echo "no" >&6; } 17652 17653if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17654 _pkg_short_errors_supported=yes 17655else 17656 _pkg_short_errors_supported=no 17657fi 17658 if test $_pkg_short_errors_supported = yes; then 17659 GLESV2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glesv2" 2>&1` 17660 else 17661 GLESV2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glesv2" 2>&1` 17662 fi 17663 # Put the nasty error message in config.log where it belongs 17664 echo "$GLESV2_PKG_ERRORS" >&5 17665 17666 glesv2_enabled=no 17667elif test $pkg_failed = untried; then 17668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17669$as_echo "no" >&6; } 17670 glesv2_enabled=no 17671else 17672 GLESV2_CFLAGS=$pkg_cv_GLESV2_CFLAGS 17673 GLESV2_LIBS=$pkg_cv_GLESV2_LIBS 17674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17675$as_echo "yes" >&6; } 17676 glesv2_enabled=yes 17677fi 17678fi 17679# Check whether --enable-vg was given. 17680if test "${enable_vg+set}" = set; then : 17681 enableval=$enable_vg; vg_enabled="$enableval" 17682else 17683 vg_enabled=auto 17684fi 17685 17686if test "x$vg_enabled" != "xno"; then 17687 17688pkg_failed=no 17689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VG" >&5 17690$as_echo_n "checking for VG... " >&6; } 17691 17692if test -n "$VG_CFLAGS"; then 17693 pkg_cv_VG_CFLAGS="$VG_CFLAGS" 17694 elif test -n "$PKG_CONFIG"; then 17695 if test -n "$PKG_CONFIG" && \ 17696 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vg\""; } >&5 17697 ($PKG_CONFIG --exists --print-errors "vg") 2>&5 17698 ac_status=$? 17699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17700 test $ac_status = 0; }; then 17701 pkg_cv_VG_CFLAGS=`$PKG_CONFIG --cflags "vg" 2>/dev/null` 17702 test "x$?" != "x0" && pkg_failed=yes 17703else 17704 pkg_failed=yes 17705fi 17706 else 17707 pkg_failed=untried 17708fi 17709if test -n "$VG_LIBS"; then 17710 pkg_cv_VG_LIBS="$VG_LIBS" 17711 elif test -n "$PKG_CONFIG"; then 17712 if test -n "$PKG_CONFIG" && \ 17713 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vg\""; } >&5 17714 ($PKG_CONFIG --exists --print-errors "vg") 2>&5 17715 ac_status=$? 17716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17717 test $ac_status = 0; }; then 17718 pkg_cv_VG_LIBS=`$PKG_CONFIG --libs "vg" 2>/dev/null` 17719 test "x$?" != "x0" && pkg_failed=yes 17720else 17721 pkg_failed=yes 17722fi 17723 else 17724 pkg_failed=untried 17725fi 17726 17727 17728 17729if test $pkg_failed = yes; then 17730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17731$as_echo "no" >&6; } 17732 17733if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17734 _pkg_short_errors_supported=yes 17735else 17736 _pkg_short_errors_supported=no 17737fi 17738 if test $_pkg_short_errors_supported = yes; then 17739 VG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "vg" 2>&1` 17740 else 17741 VG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "vg" 2>&1` 17742 fi 17743 # Put the nasty error message in config.log where it belongs 17744 echo "$VG_PKG_ERRORS" >&5 17745 17746 vg_enabled=no 17747elif test $pkg_failed = untried; then 17748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17749$as_echo "no" >&6; } 17750 vg_enabled=no 17751else 17752 VG_CFLAGS=$pkg_cv_VG_CFLAGS 17753 VG_LIBS=$pkg_cv_VG_LIBS 17754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17755$as_echo "yes" >&6; } 17756 vg_enabled=yes 17757fi 17758fi 17759# Check whether --enable-osmesa was given. 17760if test "${enable_osmesa+set}" = set; then : 17761 enableval=$enable_osmesa; osmesa_enabled="$enableval" 17762else 17763 osmesa_enabled=auto 17764fi 17765 17766if test "x$osmesa_enabled" != "xno"; then 17767 17768pkg_failed=no 17769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSMESA" >&5 17770$as_echo_n "checking for OSMESA... " >&6; } 17771 17772if test -n "$OSMESA_CFLAGS"; then 17773 pkg_cv_OSMESA_CFLAGS="$OSMESA_CFLAGS" 17774 elif test -n "$PKG_CONFIG"; then 17775 if test -n "$PKG_CONFIG" && \ 17776 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"osmesa\""; } >&5 17777 ($PKG_CONFIG --exists --print-errors "osmesa") 2>&5 17778 ac_status=$? 17779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17780 test $ac_status = 0; }; then 17781 pkg_cv_OSMESA_CFLAGS=`$PKG_CONFIG --cflags "osmesa" 2>/dev/null` 17782 test "x$?" != "x0" && pkg_failed=yes 17783else 17784 pkg_failed=yes 17785fi 17786 else 17787 pkg_failed=untried 17788fi 17789if test -n "$OSMESA_LIBS"; then 17790 pkg_cv_OSMESA_LIBS="$OSMESA_LIBS" 17791 elif test -n "$PKG_CONFIG"; then 17792 if test -n "$PKG_CONFIG" && \ 17793 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"osmesa\""; } >&5 17794 ($PKG_CONFIG --exists --print-errors "osmesa") 2>&5 17795 ac_status=$? 17796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17797 test $ac_status = 0; }; then 17798 pkg_cv_OSMESA_LIBS=`$PKG_CONFIG --libs "osmesa" 2>/dev/null` 17799 test "x$?" != "x0" && pkg_failed=yes 17800else 17801 pkg_failed=yes 17802fi 17803 else 17804 pkg_failed=untried 17805fi 17806 17807 17808 17809if test $pkg_failed = yes; then 17810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17811$as_echo "no" >&6; } 17812 17813if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17814 _pkg_short_errors_supported=yes 17815else 17816 _pkg_short_errors_supported=no 17817fi 17818 if test $_pkg_short_errors_supported = yes; then 17819 OSMESA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "osmesa" 2>&1` 17820 else 17821 OSMESA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "osmesa" 2>&1` 17822 fi 17823 # Put the nasty error message in config.log where it belongs 17824 echo "$OSMESA_PKG_ERRORS" >&5 17825 17826 osmesa_enabled=no 17827elif test $pkg_failed = untried; then 17828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17829$as_echo "no" >&6; } 17830 osmesa_enabled=no 17831else 17832 OSMESA_CFLAGS=$pkg_cv_OSMESA_CFLAGS 17833 OSMESA_LIBS=$pkg_cv_OSMESA_LIBS 17834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17835$as_echo "yes" >&6; } 17836 osmesa_enabled=yes 17837fi 17838fi 17839# Check whether --enable-libdrm was given. 17840if test "${enable_libdrm+set}" = set; then : 17841 enableval=$enable_libdrm; drm_enabled="$enableval" 17842else 17843 drm_enabled=auto 17844fi 17845 17846if test "x$drm_enabled" != "xno"; then 17847 17848pkg_failed=no 17849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRM" >&5 17850$as_echo_n "checking for DRM... " >&6; } 17851 17852if test -n "$DRM_CFLAGS"; then 17853 pkg_cv_DRM_CFLAGS="$DRM_CFLAGS" 17854 elif test -n "$PKG_CONFIG"; then 17855 if test -n "$PKG_CONFIG" && \ 17856 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm\""; } >&5 17857 ($PKG_CONFIG --exists --print-errors "libdrm") 2>&5 17858 ac_status=$? 17859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17860 test $ac_status = 0; }; then 17861 pkg_cv_DRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm" 2>/dev/null` 17862 test "x$?" != "x0" && pkg_failed=yes 17863else 17864 pkg_failed=yes 17865fi 17866 else 17867 pkg_failed=untried 17868fi 17869if test -n "$DRM_LIBS"; then 17870 pkg_cv_DRM_LIBS="$DRM_LIBS" 17871 elif test -n "$PKG_CONFIG"; then 17872 if test -n "$PKG_CONFIG" && \ 17873 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm\""; } >&5 17874 ($PKG_CONFIG --exists --print-errors "libdrm") 2>&5 17875 ac_status=$? 17876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17877 test $ac_status = 0; }; then 17878 pkg_cv_DRM_LIBS=`$PKG_CONFIG --libs "libdrm" 2>/dev/null` 17879 test "x$?" != "x0" && pkg_failed=yes 17880else 17881 pkg_failed=yes 17882fi 17883 else 17884 pkg_failed=untried 17885fi 17886 17887 17888 17889if test $pkg_failed = yes; then 17890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17891$as_echo "no" >&6; } 17892 17893if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17894 _pkg_short_errors_supported=yes 17895else 17896 _pkg_short_errors_supported=no 17897fi 17898 if test $_pkg_short_errors_supported = yes; then 17899 DRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm" 2>&1` 17900 else 17901 DRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm" 2>&1` 17902 fi 17903 # Put the nasty error message in config.log where it belongs 17904 echo "$DRM_PKG_ERRORS" >&5 17905 17906 drm_enabled=no 17907elif test $pkg_failed = untried; then 17908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17909$as_echo "no" >&6; } 17910 drm_enabled=no 17911else 17912 DRM_CFLAGS=$pkg_cv_DRM_CFLAGS 17913 DRM_LIBS=$pkg_cv_DRM_LIBS 17914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17915$as_echo "yes" >&6; } 17916 drm_enabled=yes 17917fi 17918fi 17919OSMESA32_LIBS=$OSMESA_LIBS 17920OSMESA16_LIBS=`echo $OSMESA_LIBS | sed 's|32|16|g'` 17921OSMESA_LIBS=`echo $OSMESA_LIBS | sed 's|32||g'` 17922 17923case "$host_os" in 17924linux*|*-gnu*|gnu*) 17925 DEMO_CFLAGS="$DEMO_CFLAGS -D_GNU_SOURCE -DPTHREADS" 17926 ;; 17927solaris*) 17928 DEMO_CFLAGS="$DEFINES -DPTHREADS -DSVR4" 17929 ;; 17930cygwin*) 17931 DEMO_CFLAGS="$DEFINES -DPTHREADS" 17932 ;; 17933esac 17934 17935if test "x$GCC" = xyes ; then 17936 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 17937-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 17938-Wbad-function-cast" 17939 case `$CC -dumpversion` in 17940 3.4.* | 4.*) 17941 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 17942 ;; 17943 esac 17944else 17945 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 17946if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 17947 SUNCC="yes" 17948else 17949 SUNCC="no" 17950fi 17951 17952 if test "x$SUNCC" = "xyes"; then 17953 CWARNFLAGS="-v" 17954 fi 17955fi 17956DEMO_CFLAGS="$DEMO_CFLAGS $CWARNFLAGS" 17957 17958# Check whether --enable-x11 was given. 17959if test "${enable_x11+set}" = set; then : 17960 enableval=$enable_x11; x11_enabled="$enableval" 17961else 17962 x11_enabled=auto 17963fi 17964 17965if test "x$x11_enabled" != "xno"; then 17966 17967pkg_failed=no 17968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5 17969$as_echo_n "checking for X11... " >&6; } 17970 17971if test -n "$X11_CFLAGS"; then 17972 pkg_cv_X11_CFLAGS="$X11_CFLAGS" 17973 elif test -n "$PKG_CONFIG"; then 17974 if test -n "$PKG_CONFIG" && \ 17975 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext\""; } >&5 17976 ($PKG_CONFIG --exists --print-errors "x11 xext") 2>&5 17977 ac_status=$? 17978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17979 test $ac_status = 0; }; then 17980 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11 xext" 2>/dev/null` 17981 test "x$?" != "x0" && pkg_failed=yes 17982else 17983 pkg_failed=yes 17984fi 17985 else 17986 pkg_failed=untried 17987fi 17988if test -n "$X11_LIBS"; then 17989 pkg_cv_X11_LIBS="$X11_LIBS" 17990 elif test -n "$PKG_CONFIG"; then 17991 if test -n "$PKG_CONFIG" && \ 17992 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext\""; } >&5 17993 ($PKG_CONFIG --exists --print-errors "x11 xext") 2>&5 17994 ac_status=$? 17995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17996 test $ac_status = 0; }; then 17997 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11 xext" 2>/dev/null` 17998 test "x$?" != "x0" && pkg_failed=yes 17999else 18000 pkg_failed=yes 18001fi 18002 else 18003 pkg_failed=untried 18004fi 18005 18006 18007 18008if test $pkg_failed = yes; then 18009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18010$as_echo "no" >&6; } 18011 18012if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18013 _pkg_short_errors_supported=yes 18014else 18015 _pkg_short_errors_supported=no 18016fi 18017 if test $_pkg_short_errors_supported = yes; then 18018 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xext" 2>&1` 18019 else 18020 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xext" 2>&1` 18021 fi 18022 # Put the nasty error message in config.log where it belongs 18023 echo "$X11_PKG_ERRORS" >&5 18024 18025 x11_enabled=no 18026elif test $pkg_failed = untried; then 18027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18028$as_echo "no" >&6; } 18029 x11_enabled=no 18030else 18031 X11_CFLAGS=$pkg_cv_X11_CFLAGS 18032 X11_LIBS=$pkg_cv_X11_LIBS 18033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18034$as_echo "yes" >&6; } 18035 x11_enabled=yes 18036fi 18037fi 18038 18039# Check whether --enable-wayland was given. 18040if test "${enable_wayland+set}" = set; then : 18041 enableval=$enable_wayland; wayland_enabled="$enableval" 18042else 18043 wayland_enabled=auto 18044fi 18045 18046 18047if test "x$wayland_enabled" != "xno"; then 18048 18049pkg_failed=no 18050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAYLAND" >&5 18051$as_echo_n "checking for WAYLAND... " >&6; } 18052 18053if test -n "$WAYLAND_CFLAGS"; then 18054 pkg_cv_WAYLAND_CFLAGS="$WAYLAND_CFLAGS" 18055 elif test -n "$PKG_CONFIG"; then 18056 if test -n "$PKG_CONFIG" && \ 18057 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-client wayland-egl\""; } >&5 18058 ($PKG_CONFIG --exists --print-errors "wayland-client wayland-egl") 2>&5 18059 ac_status=$? 18060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18061 test $ac_status = 0; }; then 18062 pkg_cv_WAYLAND_CFLAGS=`$PKG_CONFIG --cflags "wayland-client wayland-egl" 2>/dev/null` 18063 test "x$?" != "x0" && pkg_failed=yes 18064else 18065 pkg_failed=yes 18066fi 18067 else 18068 pkg_failed=untried 18069fi 18070if test -n "$WAYLAND_LIBS"; then 18071 pkg_cv_WAYLAND_LIBS="$WAYLAND_LIBS" 18072 elif test -n "$PKG_CONFIG"; then 18073 if test -n "$PKG_CONFIG" && \ 18074 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"wayland-client wayland-egl\""; } >&5 18075 ($PKG_CONFIG --exists --print-errors "wayland-client wayland-egl") 2>&5 18076 ac_status=$? 18077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18078 test $ac_status = 0; }; then 18079 pkg_cv_WAYLAND_LIBS=`$PKG_CONFIG --libs "wayland-client wayland-egl" 2>/dev/null` 18080 test "x$?" != "x0" && pkg_failed=yes 18081else 18082 pkg_failed=yes 18083fi 18084 else 18085 pkg_failed=untried 18086fi 18087 18088 18089 18090if test $pkg_failed = yes; then 18091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18092$as_echo "no" >&6; } 18093 18094if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18095 _pkg_short_errors_supported=yes 18096else 18097 _pkg_short_errors_supported=no 18098fi 18099 if test $_pkg_short_errors_supported = yes; then 18100 WAYLAND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "wayland-client wayland-egl" 2>&1` 18101 else 18102 WAYLAND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "wayland-client wayland-egl" 2>&1` 18103 fi 18104 # Put the nasty error message in config.log where it belongs 18105 echo "$WAYLAND_PKG_ERRORS" >&5 18106 18107 wayland_enabled=no 18108elif test $pkg_failed = untried; then 18109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18110$as_echo "no" >&6; } 18111 wayland_enabled=no 18112else 18113 WAYLAND_CFLAGS=$pkg_cv_WAYLAND_CFLAGS 18114 WAYLAND_LIBS=$pkg_cv_WAYLAND_LIBS 18115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18116$as_echo "yes" >&6; } 18117 wayland_enabled=yes 18118fi 18119fi 18120 18121# Check whether --enable-gbm was given. 18122if test "${enable_gbm+set}" = set; then : 18123 enableval=$enable_gbm; gbm_enabled="$enableval" 18124else 18125 gbm_enabled=auto 18126fi 18127 18128if test "x$gbm_enabled" != "xno"; then 18129 18130pkg_failed=no 18131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GBM" >&5 18132$as_echo_n "checking for GBM... " >&6; } 18133 18134if test -n "$GBM_CFLAGS"; then 18135 pkg_cv_GBM_CFLAGS="$GBM_CFLAGS" 18136 elif test -n "$PKG_CONFIG"; then 18137 if test -n "$PKG_CONFIG" && \ 18138 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm\""; } >&5 18139 ($PKG_CONFIG --exists --print-errors "gbm") 2>&5 18140 ac_status=$? 18141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18142 test $ac_status = 0; }; then 18143 pkg_cv_GBM_CFLAGS=`$PKG_CONFIG --cflags "gbm" 2>/dev/null` 18144 test "x$?" != "x0" && pkg_failed=yes 18145else 18146 pkg_failed=yes 18147fi 18148 else 18149 pkg_failed=untried 18150fi 18151if test -n "$GBM_LIBS"; then 18152 pkg_cv_GBM_LIBS="$GBM_LIBS" 18153 elif test -n "$PKG_CONFIG"; then 18154 if test -n "$PKG_CONFIG" && \ 18155 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm\""; } >&5 18156 ($PKG_CONFIG --exists --print-errors "gbm") 2>&5 18157 ac_status=$? 18158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18159 test $ac_status = 0; }; then 18160 pkg_cv_GBM_LIBS=`$PKG_CONFIG --libs "gbm" 2>/dev/null` 18161 test "x$?" != "x0" && pkg_failed=yes 18162else 18163 pkg_failed=yes 18164fi 18165 else 18166 pkg_failed=untried 18167fi 18168 18169 18170 18171if test $pkg_failed = yes; then 18172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18173$as_echo "no" >&6; } 18174 18175if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18176 _pkg_short_errors_supported=yes 18177else 18178 _pkg_short_errors_supported=no 18179fi 18180 if test $_pkg_short_errors_supported = yes; then 18181 GBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gbm" 2>&1` 18182 else 18183 GBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gbm" 2>&1` 18184 fi 18185 # Put the nasty error message in config.log where it belongs 18186 echo "$GBM_PKG_ERRORS" >&5 18187 18188 gbm_enabled=no 18189elif test $pkg_failed = untried; then 18190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18191$as_echo "no" >&6; } 18192 gbm_enabled=no 18193else 18194 GBM_CFLAGS=$pkg_cv_GBM_CFLAGS 18195 GBM_LIBS=$pkg_cv_GBM_LIBS 18196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18197$as_echo "yes" >&6; } 18198 gbm_enabled=yes 18199fi 18200fi 18201 18202# Check whether --enable-freetype2 was given. 18203if test "${enable_freetype2+set}" = set; then : 18204 enableval=$enable_freetype2; freetype2_enabled="$enableval" 18205else 18206 freetype2_enabled=auto 18207fi 18208 18209if test "x$freetype2_enabled" != "xno"; then 18210 18211pkg_failed=no 18212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE2" >&5 18213$as_echo_n "checking for FREETYPE2... " >&6; } 18214 18215if test -n "$FREETYPE2_CFLAGS"; then 18216 pkg_cv_FREETYPE2_CFLAGS="$FREETYPE2_CFLAGS" 18217 elif test -n "$PKG_CONFIG"; then 18218 if test -n "$PKG_CONFIG" && \ 18219 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 18220 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 18221 ac_status=$? 18222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18223 test $ac_status = 0; }; then 18224 pkg_cv_FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 18225 test "x$?" != "x0" && pkg_failed=yes 18226else 18227 pkg_failed=yes 18228fi 18229 else 18230 pkg_failed=untried 18231fi 18232if test -n "$FREETYPE2_LIBS"; then 18233 pkg_cv_FREETYPE2_LIBS="$FREETYPE2_LIBS" 18234 elif test -n "$PKG_CONFIG"; then 18235 if test -n "$PKG_CONFIG" && \ 18236 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 18237 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 18238 ac_status=$? 18239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18240 test $ac_status = 0; }; then 18241 pkg_cv_FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 18242 test "x$?" != "x0" && pkg_failed=yes 18243else 18244 pkg_failed=yes 18245fi 18246 else 18247 pkg_failed=untried 18248fi 18249 18250 18251 18252if test $pkg_failed = yes; then 18253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18254$as_echo "no" >&6; } 18255 18256if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18257 _pkg_short_errors_supported=yes 18258else 18259 _pkg_short_errors_supported=no 18260fi 18261 if test $_pkg_short_errors_supported = yes; then 18262 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1` 18263 else 18264 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1` 18265 fi 18266 # Put the nasty error message in config.log where it belongs 18267 echo "$FREETYPE2_PKG_ERRORS" >&5 18268 18269 freetype2_enabled=no 18270elif test $pkg_failed = untried; then 18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18272$as_echo "no" >&6; } 18273 freetype2_enabled=no 18274else 18275 FREETYPE2_CFLAGS=$pkg_cv_FREETYPE2_CFLAGS 18276 FREETYPE2_LIBS=$pkg_cv_FREETYPE2_LIBS 18277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18278$as_echo "yes" >&6; } 18279 freetype2_enabled=yes 18280fi 18281fi 18282 18283mesa_source_enabled=no 18284 18285# Check whether --with-mesa-source was given. 18286if test "${with_mesa_source+set}" = set; then : 18287 withval=$with_mesa_source; mesa_source_enabled="yes" 18288 mesa_source_dir="$withval" 18289else 18290 mesa_source_enabled="no" 18291fi 18292 18293MESA_GLAPI="$mesa_source_dir/src/mapi/glapi/gen" 18294 18295# Check whether --enable-rbug was given. 18296if test "${enable_rbug+set}" = set; then : 18297 enableval=$enable_rbug; rbug_enabled="yes" 18298else 18299 rbug_enabled="no" 18300fi 18301 18302 18303use_system_data=no 18304 18305# Check whether --with-system-data-files was given. 18306if test "${with_system_data_files+set}" = set; then : 18307 withval=$with_system_data_files; use_system_data=yes 18308fi 18309 18310if test "x$use_system_data" = xyes; then 18311 demos_data_dir="${datadir}/${PACKAGE}/" 18312else 18313 demos_data_dir="../data/" 18314fi 18315 18316 prefix_NONE= 18317 exec_prefix_NONE= 18318 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 18319 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 18320 eval ac_define_dir="\"$demos_data_dir\"" 18321 eval ac_define_dir="\"$ac_define_dir\"" 18322 DEMOS_DATA_DIR="$ac_define_dir" 18323 18324 18325cat >>confdefs.h <<_ACEOF 18326#define DEMOS_DATA_DIR "$ac_define_dir" 18327_ACEOF 18328 18329 test "$prefix_NONE" && prefix=NONE 18330 test "$exec_prefix_NONE" && exec_prefix=NONE 18331 18332 18333cat >>confdefs.h <<_ACEOF 18334#define DEMOS_DATA_DIR "$DEMOS_DATA_DIR" 18335_ACEOF 18336 18337 18338case "$host_os" in 18339solaris*) 18340 DEMO_LIBS="$DEMO_LIBS -lX11 -lsocket -lnsl -lm" 18341 ;; 18342cygwin*) 18343 DEMO_LIBS="$DEMO_LIBS -lX11" 18344 ;; 18345*) 18346 DEMO_LIBS="$DEMO_LIBS -lm" 18347 ;; 18348esac 18349 18350 18351 18352 18353 18354 18355 18356 18357 18358 18359 18360 18361 18362 18363 18364 18365 18366 18367 18368 18369 18370 18371 if test "x$egl_enabled" = "xyes"; then 18372 HAVE_EGL_TRUE= 18373 HAVE_EGL_FALSE='#' 18374else 18375 HAVE_EGL_TRUE='#' 18376 HAVE_EGL_FALSE= 18377fi 18378 18379 if test "x$glesv1_enabled" = "xyes"; then 18380 HAVE_GLESV1_TRUE= 18381 HAVE_GLESV1_FALSE='#' 18382else 18383 HAVE_GLESV1_TRUE='#' 18384 HAVE_GLESV1_FALSE= 18385fi 18386 18387 if test "x$glesv2_enabled" = "xyes"; then 18388 HAVE_GLESV2_TRUE= 18389 HAVE_GLESV2_FALSE='#' 18390else 18391 HAVE_GLESV2_TRUE='#' 18392 HAVE_GLESV2_FALSE= 18393fi 18394 18395 if test "x$vg_enabled" = "xyes"; then 18396 HAVE_VG_TRUE= 18397 HAVE_VG_FALSE='#' 18398else 18399 HAVE_VG_TRUE='#' 18400 HAVE_VG_FALSE= 18401fi 18402 18403 if test "x$glut_enabled" = "xyes"; then 18404 HAVE_GLUT_TRUE= 18405 HAVE_GLUT_FALSE='#' 18406else 18407 HAVE_GLUT_TRUE='#' 18408 HAVE_GLUT_FALSE= 18409fi 18410 18411 if test "x$x11_enabled" = "xyes"; then 18412 HAVE_X11_TRUE= 18413 HAVE_X11_FALSE='#' 18414else 18415 HAVE_X11_TRUE='#' 18416 HAVE_X11_FALSE= 18417fi 18418 18419 if test "x$gbm_enabled" = "xyes"; then 18420 HAVE_GBM_TRUE= 18421 HAVE_GBM_FALSE='#' 18422else 18423 HAVE_GBM_TRUE='#' 18424 HAVE_GBM_FALSE= 18425fi 18426 18427 if test "x$freetype2_enabled" = "xyes"; then 18428 HAVE_FREETYPE2_TRUE= 18429 HAVE_FREETYPE2_FALSE='#' 18430else 18431 HAVE_FREETYPE2_TRUE='#' 18432 HAVE_FREETYPE2_FALSE= 18433fi 18434 18435 if test "x$osmesa_enabled" = "xyes"; then 18436 HAVE_OSMESA_TRUE= 18437 HAVE_OSMESA_FALSE='#' 18438else 18439 HAVE_OSMESA_TRUE='#' 18440 HAVE_OSMESA_FALSE= 18441fi 18442 18443 if test "x$drm_enabled" = "xyes"; then 18444 HAVE_DRM_TRUE= 18445 HAVE_DRM_FALSE='#' 18446else 18447 HAVE_DRM_TRUE='#' 18448 HAVE_DRM_FALSE= 18449fi 18450 18451 if test "x$mesa_source_enabled" = "xyes"; then 18452 HAVE_MESA_SOURCE_TRUE= 18453 HAVE_MESA_SOURCE_FALSE='#' 18454else 18455 HAVE_MESA_SOURCE_TRUE='#' 18456 HAVE_MESA_SOURCE_FALSE= 18457fi 18458 18459 if test "x$wayland_enabled" = "xyes"; then 18460 HAVE_WAYLAND_TRUE= 18461 HAVE_WAYLAND_FALSE='#' 18462else 18463 HAVE_WAYLAND_TRUE='#' 18464 HAVE_WAYLAND_FALSE= 18465fi 18466 18467 if test "x$rbug_enabled" = "xyes"; then 18468 HAVE_RBUG_TRUE= 18469 HAVE_RBUG_FALSE='#' 18470else 18471 HAVE_RBUG_TRUE='#' 18472 HAVE_RBUG_FALSE= 18473fi 18474 18475 18476ac_config_files="$ac_config_files Makefile src/Makefile src/demos/Makefile src/egl/Makefile src/egl/eglut/Makefile src/egl/opengl/Makefile src/egl/opengles1/Makefile src/egl/opengles2/Makefile src/egl/openvg/Makefile src/egl/openvg/trivial/Makefile src/egl/oes_vg/Makefile src/fp/Makefile src/fpglsl/Makefile src/glsl/Makefile src/gs/Makefile src/data/Makefile src/objviewer/Makefile src/osdemos/Makefile src/perf/Makefile src/rbug/Makefile src/redbook/Makefile src/samples/Makefile src/slang/Makefile src/tests/Makefile src/tools/Makefile src/trivial/Makefile src/util/Makefile src/vp/Makefile src/vpglsl/Makefile src/wgl/Makefile src/xdemos/Makefile" 18477 18478cat >confcache <<\_ACEOF 18479# This file is a shell script that caches the results of configure 18480# tests run on this system so they can be shared between configure 18481# scripts and configure runs, see configure's option --config-cache. 18482# It is not useful on other systems. If it contains results you don't 18483# want to keep, you may remove or edit it. 18484# 18485# config.status only pays attention to the cache file if you give it 18486# the --recheck option to rerun configure. 18487# 18488# `ac_cv_env_foo' variables (set or unset) will be overridden when 18489# loading this file, other *unset* `ac_cv_foo' will be assigned the 18490# following values. 18491 18492_ACEOF 18493 18494# The following way of writing the cache mishandles newlines in values, 18495# but we know of no workaround that is simple, portable, and efficient. 18496# So, we kill variables containing newlines. 18497# Ultrix sh set writes to stderr and can't be redirected directly, 18498# and sets the high bit in the cache file unless we assign to the vars. 18499( 18500 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18501 eval ac_val=\$$ac_var 18502 case $ac_val in #( 18503 *${as_nl}*) 18504 case $ac_var in #( 18505 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18506$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18507 esac 18508 case $ac_var in #( 18509 _ | IFS | as_nl) ;; #( 18510 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18511 *) { eval $ac_var=; unset $ac_var;} ;; 18512 esac ;; 18513 esac 18514 done 18515 18516 (set) 2>&1 | 18517 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18518 *${as_nl}ac_space=\ *) 18519 # `set' does not quote correctly, so add quotes: double-quote 18520 # substitution turns \\\\ into \\, and sed turns \\ into \. 18521 sed -n \ 18522 "s/'/'\\\\''/g; 18523 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18524 ;; #( 18525 *) 18526 # `set' quotes correctly as required by POSIX, so do not add quotes. 18527 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18528 ;; 18529 esac | 18530 sort 18531) | 18532 sed ' 18533 /^ac_cv_env_/b end 18534 t clear 18535 :clear 18536 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18537 t end 18538 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18539 :end' >>confcache 18540if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18541 if test -w "$cache_file"; then 18542 if test "x$cache_file" != "x/dev/null"; then 18543 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18544$as_echo "$as_me: updating cache $cache_file" >&6;} 18545 if test ! -f "$cache_file" || test -h "$cache_file"; then 18546 cat confcache >"$cache_file" 18547 else 18548 case $cache_file in #( 18549 */* | ?:*) 18550 mv -f confcache "$cache_file"$$ && 18551 mv -f "$cache_file"$$ "$cache_file" ;; #( 18552 *) 18553 mv -f confcache "$cache_file" ;; 18554 esac 18555 fi 18556 fi 18557 else 18558 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18559$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18560 fi 18561fi 18562rm -f confcache 18563 18564test "x$prefix" = xNONE && prefix=$ac_default_prefix 18565# Let make expand exec_prefix. 18566test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18567 18568# Transform confdefs.h into DEFS. 18569# Protect against shell expansion while executing Makefile rules. 18570# Protect against Makefile macro expansion. 18571# 18572# If the first sed substitution is executed (which looks for macros that 18573# take arguments), then branch to the quote section. Otherwise, 18574# look for a macro that doesn't take arguments. 18575ac_script=' 18576:mline 18577/\\$/{ 18578 N 18579 s,\\\n,, 18580 b mline 18581} 18582t clear 18583:clear 18584s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 18585t quote 18586s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 18587t quote 18588b any 18589:quote 18590s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 18591s/\[/\\&/g 18592s/\]/\\&/g 18593s/\$/$$/g 18594H 18595:any 18596${ 18597 g 18598 s/^\n// 18599 s/\n/ /g 18600 p 18601} 18602' 18603DEFS=`sed -n "$ac_script" confdefs.h` 18604 18605 18606ac_libobjs= 18607ac_ltlibobjs= 18608U= 18609for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18610 # 1. Remove the extension, and $U if already installed. 18611 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18612 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18613 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18614 # will be set to the directory where LIBOBJS objects are built. 18615 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18616 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18617done 18618LIBOBJS=$ac_libobjs 18619 18620LTLIBOBJS=$ac_ltlibobjs 18621 18622 18623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 18624$as_echo_n "checking that generated files are newer than configure... " >&6; } 18625 if test -n "$am_sleep_pid"; then 18626 # Hide warnings about reused PIDs. 18627 wait $am_sleep_pid 2>/dev/null 18628 fi 18629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 18630$as_echo "done" >&6; } 18631 if test -n "$EXEEXT"; then 18632 am__EXEEXT_TRUE= 18633 am__EXEEXT_FALSE='#' 18634else 18635 am__EXEEXT_TRUE='#' 18636 am__EXEEXT_FALSE= 18637fi 18638 18639if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18640 as_fn_error $? "conditional \"AMDEP\" was never defined. 18641Usually this means the macro was only invoked conditionally." "$LINENO" 5 18642fi 18643if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18644 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18645Usually this means the macro was only invoked conditionally." "$LINENO" 5 18646fi 18647if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18648 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18649Usually this means the macro was only invoked conditionally." "$LINENO" 5 18650fi 18651if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 18652 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 18653Usually this means the macro was only invoked conditionally." "$LINENO" 5 18654fi 18655if test -z "${HAVE_EGL_TRUE}" && test -z "${HAVE_EGL_FALSE}"; then 18656 as_fn_error $? "conditional \"HAVE_EGL\" was never defined. 18657Usually this means the macro was only invoked conditionally." "$LINENO" 5 18658fi 18659if test -z "${HAVE_GLESV1_TRUE}" && test -z "${HAVE_GLESV1_FALSE}"; then 18660 as_fn_error $? "conditional \"HAVE_GLESV1\" was never defined. 18661Usually this means the macro was only invoked conditionally." "$LINENO" 5 18662fi 18663if test -z "${HAVE_GLESV2_TRUE}" && test -z "${HAVE_GLESV2_FALSE}"; then 18664 as_fn_error $? "conditional \"HAVE_GLESV2\" was never defined. 18665Usually this means the macro was only invoked conditionally." "$LINENO" 5 18666fi 18667if test -z "${HAVE_VG_TRUE}" && test -z "${HAVE_VG_FALSE}"; then 18668 as_fn_error $? "conditional \"HAVE_VG\" was never defined. 18669Usually this means the macro was only invoked conditionally." "$LINENO" 5 18670fi 18671if test -z "${HAVE_GLUT_TRUE}" && test -z "${HAVE_GLUT_FALSE}"; then 18672 as_fn_error $? "conditional \"HAVE_GLUT\" was never defined. 18673Usually this means the macro was only invoked conditionally." "$LINENO" 5 18674fi 18675if test -z "${HAVE_X11_TRUE}" && test -z "${HAVE_X11_FALSE}"; then 18676 as_fn_error $? "conditional \"HAVE_X11\" was never defined. 18677Usually this means the macro was only invoked conditionally." "$LINENO" 5 18678fi 18679if test -z "${HAVE_GBM_TRUE}" && test -z "${HAVE_GBM_FALSE}"; then 18680 as_fn_error $? "conditional \"HAVE_GBM\" was never defined. 18681Usually this means the macro was only invoked conditionally." "$LINENO" 5 18682fi 18683if test -z "${HAVE_FREETYPE2_TRUE}" && test -z "${HAVE_FREETYPE2_FALSE}"; then 18684 as_fn_error $? "conditional \"HAVE_FREETYPE2\" was never defined. 18685Usually this means the macro was only invoked conditionally." "$LINENO" 5 18686fi 18687if test -z "${HAVE_OSMESA_TRUE}" && test -z "${HAVE_OSMESA_FALSE}"; then 18688 as_fn_error $? "conditional \"HAVE_OSMESA\" was never defined. 18689Usually this means the macro was only invoked conditionally." "$LINENO" 5 18690fi 18691if test -z "${HAVE_DRM_TRUE}" && test -z "${HAVE_DRM_FALSE}"; then 18692 as_fn_error $? "conditional \"HAVE_DRM\" was never defined. 18693Usually this means the macro was only invoked conditionally." "$LINENO" 5 18694fi 18695if test -z "${HAVE_MESA_SOURCE_TRUE}" && test -z "${HAVE_MESA_SOURCE_FALSE}"; then 18696 as_fn_error $? "conditional \"HAVE_MESA_SOURCE\" was never defined. 18697Usually this means the macro was only invoked conditionally." "$LINENO" 5 18698fi 18699if test -z "${HAVE_WAYLAND_TRUE}" && test -z "${HAVE_WAYLAND_FALSE}"; then 18700 as_fn_error $? "conditional \"HAVE_WAYLAND\" was never defined. 18701Usually this means the macro was only invoked conditionally." "$LINENO" 5 18702fi 18703if test -z "${HAVE_RBUG_TRUE}" && test -z "${HAVE_RBUG_FALSE}"; then 18704 as_fn_error $? "conditional \"HAVE_RBUG\" was never defined. 18705Usually this means the macro was only invoked conditionally." "$LINENO" 5 18706fi 18707 18708: "${CONFIG_STATUS=./config.status}" 18709ac_write_fail=0 18710ac_clean_files_save=$ac_clean_files 18711ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18712{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18713$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18714as_write_fail=0 18715cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18716#! $SHELL 18717# Generated by $as_me. 18718# Run this file to recreate the current configuration. 18719# Compiler output produced by configure, useful for debugging 18720# configure, is in config.log if it exists. 18721 18722debug=false 18723ac_cs_recheck=false 18724ac_cs_silent=false 18725 18726SHELL=\${CONFIG_SHELL-$SHELL} 18727export SHELL 18728_ASEOF 18729cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18730## -------------------- ## 18731## M4sh Initialization. ## 18732## -------------------- ## 18733 18734# Be more Bourne compatible 18735DUALCASE=1; export DUALCASE # for MKS sh 18736if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18737 emulate sh 18738 NULLCMD=: 18739 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18740 # is contrary to our usage. Disable this feature. 18741 alias -g '${1+"$@"}'='"$@"' 18742 setopt NO_GLOB_SUBST 18743else 18744 case `(set -o) 2>/dev/null` in #( 18745 *posix*) : 18746 set -o posix ;; #( 18747 *) : 18748 ;; 18749esac 18750fi 18751 18752 18753as_nl=' 18754' 18755export as_nl 18756# Printing a long string crashes Solaris 7 /usr/bin/printf. 18757as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18758as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18759as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18760# Prefer a ksh shell builtin over an external printf program on Solaris, 18761# but without wasting forks for bash or zsh. 18762if test -z "$BASH_VERSION$ZSH_VERSION" \ 18763 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18764 as_echo='print -r --' 18765 as_echo_n='print -rn --' 18766elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18767 as_echo='printf %s\n' 18768 as_echo_n='printf %s' 18769else 18770 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18771 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18772 as_echo_n='/usr/ucb/echo -n' 18773 else 18774 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18775 as_echo_n_body='eval 18776 arg=$1; 18777 case $arg in #( 18778 *"$as_nl"*) 18779 expr "X$arg" : "X\\(.*\\)$as_nl"; 18780 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18781 esac; 18782 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18783 ' 18784 export as_echo_n_body 18785 as_echo_n='sh -c $as_echo_n_body as_echo' 18786 fi 18787 export as_echo_body 18788 as_echo='sh -c $as_echo_body as_echo' 18789fi 18790 18791# The user is always right. 18792if test "${PATH_SEPARATOR+set}" != set; then 18793 PATH_SEPARATOR=: 18794 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18795 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18796 PATH_SEPARATOR=';' 18797 } 18798fi 18799 18800 18801# IFS 18802# We need space, tab and new line, in precisely that order. Quoting is 18803# there to prevent editors from complaining about space-tab. 18804# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18805# splitting by setting IFS to empty value.) 18806IFS=" "" $as_nl" 18807 18808# Find who we are. Look in the path if we contain no directory separator. 18809as_myself= 18810case $0 in #(( 18811 *[\\/]* ) as_myself=$0 ;; 18812 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18813for as_dir in $PATH 18814do 18815 IFS=$as_save_IFS 18816 test -z "$as_dir" && as_dir=. 18817 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18818 done 18819IFS=$as_save_IFS 18820 18821 ;; 18822esac 18823# We did not find ourselves, most probably we were run as `sh COMMAND' 18824# in which case we are not to be found in the path. 18825if test "x$as_myself" = x; then 18826 as_myself=$0 18827fi 18828if test ! -f "$as_myself"; then 18829 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18830 exit 1 18831fi 18832 18833# Unset variables that we do not need and which cause bugs (e.g. in 18834# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18835# suppresses any "Segmentation fault" message there. '((' could 18836# trigger a bug in pdksh 5.2.14. 18837for as_var in BASH_ENV ENV MAIL MAILPATH 18838do eval test x\${$as_var+set} = xset \ 18839 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18840done 18841PS1='$ ' 18842PS2='> ' 18843PS4='+ ' 18844 18845# NLS nuisances. 18846LC_ALL=C 18847export LC_ALL 18848LANGUAGE=C 18849export LANGUAGE 18850 18851# CDPATH. 18852(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18853 18854 18855# as_fn_error STATUS ERROR [LINENO LOG_FD] 18856# ---------------------------------------- 18857# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18858# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18859# script with STATUS, using 1 if that was 0. 18860as_fn_error () 18861{ 18862 as_status=$1; test $as_status -eq 0 && as_status=1 18863 if test "$4"; then 18864 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18865 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18866 fi 18867 $as_echo "$as_me: error: $2" >&2 18868 as_fn_exit $as_status 18869} # as_fn_error 18870 18871 18872# as_fn_set_status STATUS 18873# ----------------------- 18874# Set $? to STATUS, without forking. 18875as_fn_set_status () 18876{ 18877 return $1 18878} # as_fn_set_status 18879 18880# as_fn_exit STATUS 18881# ----------------- 18882# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18883as_fn_exit () 18884{ 18885 set +e 18886 as_fn_set_status $1 18887 exit $1 18888} # as_fn_exit 18889 18890# as_fn_unset VAR 18891# --------------- 18892# Portably unset VAR. 18893as_fn_unset () 18894{ 18895 { eval $1=; unset $1;} 18896} 18897as_unset=as_fn_unset 18898# as_fn_append VAR VALUE 18899# ---------------------- 18900# Append the text in VALUE to the end of the definition contained in VAR. Take 18901# advantage of any shell optimizations that allow amortized linear growth over 18902# repeated appends, instead of the typical quadratic growth present in naive 18903# implementations. 18904if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18905 eval 'as_fn_append () 18906 { 18907 eval $1+=\$2 18908 }' 18909else 18910 as_fn_append () 18911 { 18912 eval $1=\$$1\$2 18913 } 18914fi # as_fn_append 18915 18916# as_fn_arith ARG... 18917# ------------------ 18918# Perform arithmetic evaluation on the ARGs, and store the result in the 18919# global $as_val. Take advantage of shells that can avoid forks. The arguments 18920# must be portable across $(()) and expr. 18921if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18922 eval 'as_fn_arith () 18923 { 18924 as_val=$(( $* )) 18925 }' 18926else 18927 as_fn_arith () 18928 { 18929 as_val=`expr "$@" || test $? -eq 1` 18930 } 18931fi # as_fn_arith 18932 18933 18934if expr a : '\(a\)' >/dev/null 2>&1 && 18935 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18936 as_expr=expr 18937else 18938 as_expr=false 18939fi 18940 18941if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18942 as_basename=basename 18943else 18944 as_basename=false 18945fi 18946 18947if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18948 as_dirname=dirname 18949else 18950 as_dirname=false 18951fi 18952 18953as_me=`$as_basename -- "$0" || 18954$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18955 X"$0" : 'X\(//\)$' \| \ 18956 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18957$as_echo X/"$0" | 18958 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18959 s//\1/ 18960 q 18961 } 18962 /^X\/\(\/\/\)$/{ 18963 s//\1/ 18964 q 18965 } 18966 /^X\/\(\/\).*/{ 18967 s//\1/ 18968 q 18969 } 18970 s/.*/./; q'` 18971 18972# Avoid depending upon Character Ranges. 18973as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18974as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18975as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18976as_cr_digits='0123456789' 18977as_cr_alnum=$as_cr_Letters$as_cr_digits 18978 18979ECHO_C= ECHO_N= ECHO_T= 18980case `echo -n x` in #((((( 18981-n*) 18982 case `echo 'xy\c'` in 18983 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18984 xy) ECHO_C='\c';; 18985 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18986 ECHO_T=' ';; 18987 esac;; 18988*) 18989 ECHO_N='-n';; 18990esac 18991 18992rm -f conf$$ conf$$.exe conf$$.file 18993if test -d conf$$.dir; then 18994 rm -f conf$$.dir/conf$$.file 18995else 18996 rm -f conf$$.dir 18997 mkdir conf$$.dir 2>/dev/null 18998fi 18999if (echo >conf$$.file) 2>/dev/null; then 19000 if ln -s conf$$.file conf$$ 2>/dev/null; then 19001 as_ln_s='ln -s' 19002 # ... but there are two gotchas: 19003 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19004 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19005 # In both cases, we have to default to `cp -pR'. 19006 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19007 as_ln_s='cp -pR' 19008 elif ln conf$$.file conf$$ 2>/dev/null; then 19009 as_ln_s=ln 19010 else 19011 as_ln_s='cp -pR' 19012 fi 19013else 19014 as_ln_s='cp -pR' 19015fi 19016rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19017rmdir conf$$.dir 2>/dev/null 19018 19019 19020# as_fn_mkdir_p 19021# ------------- 19022# Create "$as_dir" as a directory, including parents if necessary. 19023as_fn_mkdir_p () 19024{ 19025 19026 case $as_dir in #( 19027 -*) as_dir=./$as_dir;; 19028 esac 19029 test -d "$as_dir" || eval $as_mkdir_p || { 19030 as_dirs= 19031 while :; do 19032 case $as_dir in #( 19033 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19034 *) as_qdir=$as_dir;; 19035 esac 19036 as_dirs="'$as_qdir' $as_dirs" 19037 as_dir=`$as_dirname -- "$as_dir" || 19038$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19039 X"$as_dir" : 'X\(//\)[^/]' \| \ 19040 X"$as_dir" : 'X\(//\)$' \| \ 19041 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19042$as_echo X"$as_dir" | 19043 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19044 s//\1/ 19045 q 19046 } 19047 /^X\(\/\/\)[^/].*/{ 19048 s//\1/ 19049 q 19050 } 19051 /^X\(\/\/\)$/{ 19052 s//\1/ 19053 q 19054 } 19055 /^X\(\/\).*/{ 19056 s//\1/ 19057 q 19058 } 19059 s/.*/./; q'` 19060 test -d "$as_dir" && break 19061 done 19062 test -z "$as_dirs" || eval "mkdir $as_dirs" 19063 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19064 19065 19066} # as_fn_mkdir_p 19067if mkdir -p . 2>/dev/null; then 19068 as_mkdir_p='mkdir -p "$as_dir"' 19069else 19070 test -d ./-p && rmdir ./-p 19071 as_mkdir_p=false 19072fi 19073 19074 19075# as_fn_executable_p FILE 19076# ----------------------- 19077# Test if FILE is an executable regular file. 19078as_fn_executable_p () 19079{ 19080 test -f "$1" && test -x "$1" 19081} # as_fn_executable_p 19082as_test_x='test -x' 19083as_executable_p=as_fn_executable_p 19084 19085# Sed expression to map a string onto a valid CPP name. 19086as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19087 19088# Sed expression to map a string onto a valid variable name. 19089as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19090 19091 19092exec 6>&1 19093## ----------------------------------- ## 19094## Main body of $CONFIG_STATUS script. ## 19095## ----------------------------------- ## 19096_ASEOF 19097test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19098 19099cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19100# Save the log message, to keep $0 and so on meaningful, and to 19101# report actual input values of CONFIG_FILES etc. instead of their 19102# values after options handling. 19103ac_log=" 19104This file was extended by mesa-demos $as_me 8.4.0, which was 19105generated by GNU Autoconf 2.69. Invocation command line was 19106 19107 CONFIG_FILES = $CONFIG_FILES 19108 CONFIG_HEADERS = $CONFIG_HEADERS 19109 CONFIG_LINKS = $CONFIG_LINKS 19110 CONFIG_COMMANDS = $CONFIG_COMMANDS 19111 $ $0 $@ 19112 19113on `(hostname || uname -n) 2>/dev/null | sed 1q` 19114" 19115 19116_ACEOF 19117 19118case $ac_config_files in *" 19119"*) set x $ac_config_files; shift; ac_config_files=$*;; 19120esac 19121 19122 19123 19124cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19125# Files that config.status was made for. 19126config_files="$ac_config_files" 19127config_commands="$ac_config_commands" 19128 19129_ACEOF 19130 19131cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19132ac_cs_usage="\ 19133\`$as_me' instantiates files and other configuration actions 19134from templates according to the current configuration. Unless the files 19135and actions are specified as TAGs, all are instantiated by default. 19136 19137Usage: $0 [OPTION]... [TAG]... 19138 19139 -h, --help print this help, then exit 19140 -V, --version print version number and configuration settings, then exit 19141 --config print configuration, then exit 19142 -q, --quiet, --silent 19143 do not print progress messages 19144 -d, --debug don't remove temporary files 19145 --recheck update $as_me by reconfiguring in the same conditions 19146 --file=FILE[:TEMPLATE] 19147 instantiate the configuration file FILE 19148 19149Configuration files: 19150$config_files 19151 19152Configuration commands: 19153$config_commands 19154 19155Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa&component=Demos>." 19156 19157_ACEOF 19158cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19159ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19160ac_cs_version="\\ 19161mesa-demos config.status 8.4.0 19162configured by $0, generated by GNU Autoconf 2.69, 19163 with options \\"\$ac_cs_config\\" 19164 19165Copyright (C) 2012 Free Software Foundation, Inc. 19166This config.status script is free software; the Free Software Foundation 19167gives unlimited permission to copy, distribute and modify it." 19168 19169ac_pwd='$ac_pwd' 19170srcdir='$srcdir' 19171INSTALL='$INSTALL' 19172MKDIR_P='$MKDIR_P' 19173AWK='$AWK' 19174test -n "\$AWK" || AWK=awk 19175_ACEOF 19176 19177cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19178# The default lists apply if the user does not specify any file. 19179ac_need_defaults=: 19180while test $# != 0 19181do 19182 case $1 in 19183 --*=?*) 19184 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19185 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19186 ac_shift=: 19187 ;; 19188 --*=) 19189 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19190 ac_optarg= 19191 ac_shift=: 19192 ;; 19193 *) 19194 ac_option=$1 19195 ac_optarg=$2 19196 ac_shift=shift 19197 ;; 19198 esac 19199 19200 case $ac_option in 19201 # Handling of the options. 19202 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19203 ac_cs_recheck=: ;; 19204 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19205 $as_echo "$ac_cs_version"; exit ;; 19206 --config | --confi | --conf | --con | --co | --c ) 19207 $as_echo "$ac_cs_config"; exit ;; 19208 --debug | --debu | --deb | --de | --d | -d ) 19209 debug=: ;; 19210 --file | --fil | --fi | --f ) 19211 $ac_shift 19212 case $ac_optarg in 19213 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19214 '') as_fn_error $? "missing file argument" ;; 19215 esac 19216 as_fn_append CONFIG_FILES " '$ac_optarg'" 19217 ac_need_defaults=false;; 19218 --he | --h | --help | --hel | -h ) 19219 $as_echo "$ac_cs_usage"; exit ;; 19220 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19221 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19222 ac_cs_silent=: ;; 19223 19224 # This is an error. 19225 -*) as_fn_error $? "unrecognized option: \`$1' 19226Try \`$0 --help' for more information." ;; 19227 19228 *) as_fn_append ac_config_targets " $1" 19229 ac_need_defaults=false ;; 19230 19231 esac 19232 shift 19233done 19234 19235ac_configure_extra_args= 19236 19237if $ac_cs_silent; then 19238 exec 6>/dev/null 19239 ac_configure_extra_args="$ac_configure_extra_args --silent" 19240fi 19241 19242_ACEOF 19243cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19244if \$ac_cs_recheck; then 19245 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19246 shift 19247 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19248 CONFIG_SHELL='$SHELL' 19249 export CONFIG_SHELL 19250 exec "\$@" 19251fi 19252 19253_ACEOF 19254cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19255exec 5>>config.log 19256{ 19257 echo 19258 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19259## Running $as_me. ## 19260_ASBOX 19261 $as_echo "$ac_log" 19262} >&5 19263 19264_ACEOF 19265cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19266# 19267# INIT-COMMANDS 19268# 19269AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19270 19271 19272# The HP-UX ksh and POSIX shell print the target directory to stdout 19273# if CDPATH is set. 19274(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19275 19276sed_quote_subst='$sed_quote_subst' 19277double_quote_subst='$double_quote_subst' 19278delay_variable_subst='$delay_variable_subst' 19279macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19280macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19281enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19282enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19283pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19284enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19285shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 19286SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19287ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19288PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19289host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19290host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19291host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19292build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19293build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19294build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19295SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19296Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19297GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19298EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19299FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19300LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19301NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19302LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19303max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19304ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19305exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19306lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19307lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19308lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19309lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19310lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19311reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19312reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19313OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19314deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19315file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19316file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19317want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19318DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19319sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19320AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19321AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19322archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19323STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19324RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19325old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19326old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19327old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19328lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19329CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19330CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19331compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19332GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19333lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19334lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19335lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 19336lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19337lt_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"`' 19338lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 19339nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19340lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19341lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 19342objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19343MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19344lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19345lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19346lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19347lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19348lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19349need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19350MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19351DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19352NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19353LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19354OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19355OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19356libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19357shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19358extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19359archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19360enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19361export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19362whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19363compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19364old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19365old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19366archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19367archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19368module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19369module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19370with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19371allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19372no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19373hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19374hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19375hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19376hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19377hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19378hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19379hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19380inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19381link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19382always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19383export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19384exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19385include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19386prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19387postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19388file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19389variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19390need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19391need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19392version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19393runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19394shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19395shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19396libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19397library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19398soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19399install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19400postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19401postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19402finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19403finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19404hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19405sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19406configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 19407configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 19408hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19409enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19410enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19411enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19412old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19413striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19414compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 19415predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 19416postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 19417predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 19418postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 19419compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 19420LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 19421reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 19422reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19423old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19424compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 19425GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 19426lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 19427lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 19428lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 19429lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 19430lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 19431archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 19432enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 19433export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 19434whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 19435compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 19436old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19437old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19438archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19439archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19440module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19441module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19442with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 19443allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 19444no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 19445hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 19446hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 19447hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 19448hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 19449hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 19450hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 19451hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 19452inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 19453link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 19454always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 19455export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19456exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 19457include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 19458prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19459postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19460file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 19461hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 19462compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 19463predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 19464postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 19465predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 19466postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 19467compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 19468 19469LTCC='$LTCC' 19470LTCFLAGS='$LTCFLAGS' 19471compiler='$compiler_DEFAULT' 19472 19473# A function that is used when there is no print builtin or printf. 19474func_fallback_echo () 19475{ 19476 eval 'cat <<_LTECHO_EOF 19477\$1 19478_LTECHO_EOF' 19479} 19480 19481# Quote evaled strings. 19482for var in SHELL \ 19483ECHO \ 19484PATH_SEPARATOR \ 19485SED \ 19486GREP \ 19487EGREP \ 19488FGREP \ 19489LD \ 19490NM \ 19491LN_S \ 19492lt_SP2NL \ 19493lt_NL2SP \ 19494reload_flag \ 19495OBJDUMP \ 19496deplibs_check_method \ 19497file_magic_cmd \ 19498file_magic_glob \ 19499want_nocaseglob \ 19500DLLTOOL \ 19501sharedlib_from_linklib_cmd \ 19502AR \ 19503AR_FLAGS \ 19504archiver_list_spec \ 19505STRIP \ 19506RANLIB \ 19507CC \ 19508CFLAGS \ 19509compiler \ 19510lt_cv_sys_global_symbol_pipe \ 19511lt_cv_sys_global_symbol_to_cdecl \ 19512lt_cv_sys_global_symbol_to_import \ 19513lt_cv_sys_global_symbol_to_c_name_address \ 19514lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19515lt_cv_nm_interface \ 19516nm_file_list_spec \ 19517lt_cv_truncate_bin \ 19518lt_prog_compiler_no_builtin_flag \ 19519lt_prog_compiler_pic \ 19520lt_prog_compiler_wl \ 19521lt_prog_compiler_static \ 19522lt_cv_prog_compiler_c_o \ 19523need_locks \ 19524MANIFEST_TOOL \ 19525DSYMUTIL \ 19526NMEDIT \ 19527LIPO \ 19528OTOOL \ 19529OTOOL64 \ 19530shrext_cmds \ 19531export_dynamic_flag_spec \ 19532whole_archive_flag_spec \ 19533compiler_needs_object \ 19534with_gnu_ld \ 19535allow_undefined_flag \ 19536no_undefined_flag \ 19537hardcode_libdir_flag_spec \ 19538hardcode_libdir_separator \ 19539exclude_expsyms \ 19540include_expsyms \ 19541file_list_spec \ 19542variables_saved_for_relink \ 19543libname_spec \ 19544library_names_spec \ 19545soname_spec \ 19546install_override_mode \ 19547finish_eval \ 19548old_striplib \ 19549striplib \ 19550compiler_lib_search_dirs \ 19551predep_objects \ 19552postdep_objects \ 19553predeps \ 19554postdeps \ 19555compiler_lib_search_path \ 19556LD_CXX \ 19557reload_flag_CXX \ 19558compiler_CXX \ 19559lt_prog_compiler_no_builtin_flag_CXX \ 19560lt_prog_compiler_pic_CXX \ 19561lt_prog_compiler_wl_CXX \ 19562lt_prog_compiler_static_CXX \ 19563lt_cv_prog_compiler_c_o_CXX \ 19564export_dynamic_flag_spec_CXX \ 19565whole_archive_flag_spec_CXX \ 19566compiler_needs_object_CXX \ 19567with_gnu_ld_CXX \ 19568allow_undefined_flag_CXX \ 19569no_undefined_flag_CXX \ 19570hardcode_libdir_flag_spec_CXX \ 19571hardcode_libdir_separator_CXX \ 19572exclude_expsyms_CXX \ 19573include_expsyms_CXX \ 19574file_list_spec_CXX \ 19575compiler_lib_search_dirs_CXX \ 19576predep_objects_CXX \ 19577postdep_objects_CXX \ 19578predeps_CXX \ 19579postdeps_CXX \ 19580compiler_lib_search_path_CXX; do 19581 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19582 *[\\\\\\\`\\"\\\$]*) 19583 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19584 ;; 19585 *) 19586 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19587 ;; 19588 esac 19589done 19590 19591# Double-quote double-evaled strings. 19592for var in reload_cmds \ 19593old_postinstall_cmds \ 19594old_postuninstall_cmds \ 19595old_archive_cmds \ 19596extract_expsyms_cmds \ 19597old_archive_from_new_cmds \ 19598old_archive_from_expsyms_cmds \ 19599archive_cmds \ 19600archive_expsym_cmds \ 19601module_cmds \ 19602module_expsym_cmds \ 19603export_symbols_cmds \ 19604prelink_cmds \ 19605postlink_cmds \ 19606postinstall_cmds \ 19607postuninstall_cmds \ 19608finish_cmds \ 19609sys_lib_search_path_spec \ 19610configure_time_dlsearch_path \ 19611configure_time_lt_sys_library_path \ 19612reload_cmds_CXX \ 19613old_archive_cmds_CXX \ 19614old_archive_from_new_cmds_CXX \ 19615old_archive_from_expsyms_cmds_CXX \ 19616archive_cmds_CXX \ 19617archive_expsym_cmds_CXX \ 19618module_cmds_CXX \ 19619module_expsym_cmds_CXX \ 19620export_symbols_cmds_CXX \ 19621prelink_cmds_CXX \ 19622postlink_cmds_CXX; do 19623 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19624 *[\\\\\\\`\\"\\\$]*) 19625 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19626 ;; 19627 *) 19628 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19629 ;; 19630 esac 19631done 19632 19633ac_aux_dir='$ac_aux_dir' 19634 19635# See if we are running on zsh, and set the options that allow our 19636# commands through without removal of \ escapes INIT. 19637if test -n "\${ZSH_VERSION+set}"; then 19638 setopt NO_GLOB_SUBST 19639fi 19640 19641 19642 PACKAGE='$PACKAGE' 19643 VERSION='$VERSION' 19644 RM='$RM' 19645 ofile='$ofile' 19646 19647 19648 19649 19650 19651 19652_ACEOF 19653 19654cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19655 19656# Handling of arguments. 19657for ac_config_target in $ac_config_targets 19658do 19659 case $ac_config_target in 19660 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19661 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19662 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19663 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19664 "src/demos/Makefile") CONFIG_FILES="$CONFIG_FILES src/demos/Makefile" ;; 19665 "src/egl/Makefile") CONFIG_FILES="$CONFIG_FILES src/egl/Makefile" ;; 19666 "src/egl/eglut/Makefile") CONFIG_FILES="$CONFIG_FILES src/egl/eglut/Makefile" ;; 19667 "src/egl/opengl/Makefile") CONFIG_FILES="$CONFIG_FILES src/egl/opengl/Makefile" ;; 19668 "src/egl/opengles1/Makefile") CONFIG_FILES="$CONFIG_FILES src/egl/opengles1/Makefile" ;; 19669 "src/egl/opengles2/Makefile") CONFIG_FILES="$CONFIG_FILES src/egl/opengles2/Makefile" ;; 19670 "src/egl/openvg/Makefile") CONFIG_FILES="$CONFIG_FILES src/egl/openvg/Makefile" ;; 19671 "src/egl/openvg/trivial/Makefile") CONFIG_FILES="$CONFIG_FILES src/egl/openvg/trivial/Makefile" ;; 19672 "src/egl/oes_vg/Makefile") CONFIG_FILES="$CONFIG_FILES src/egl/oes_vg/Makefile" ;; 19673 "src/fp/Makefile") CONFIG_FILES="$CONFIG_FILES src/fp/Makefile" ;; 19674 "src/fpglsl/Makefile") CONFIG_FILES="$CONFIG_FILES src/fpglsl/Makefile" ;; 19675 "src/glsl/Makefile") CONFIG_FILES="$CONFIG_FILES src/glsl/Makefile" ;; 19676 "src/gs/Makefile") CONFIG_FILES="$CONFIG_FILES src/gs/Makefile" ;; 19677 "src/data/Makefile") CONFIG_FILES="$CONFIG_FILES src/data/Makefile" ;; 19678 "src/objviewer/Makefile") CONFIG_FILES="$CONFIG_FILES src/objviewer/Makefile" ;; 19679 "src/osdemos/Makefile") CONFIG_FILES="$CONFIG_FILES src/osdemos/Makefile" ;; 19680 "src/perf/Makefile") CONFIG_FILES="$CONFIG_FILES src/perf/Makefile" ;; 19681 "src/rbug/Makefile") CONFIG_FILES="$CONFIG_FILES src/rbug/Makefile" ;; 19682 "src/redbook/Makefile") CONFIG_FILES="$CONFIG_FILES src/redbook/Makefile" ;; 19683 "src/samples/Makefile") CONFIG_FILES="$CONFIG_FILES src/samples/Makefile" ;; 19684 "src/slang/Makefile") CONFIG_FILES="$CONFIG_FILES src/slang/Makefile" ;; 19685 "src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/Makefile" ;; 19686 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;; 19687 "src/trivial/Makefile") CONFIG_FILES="$CONFIG_FILES src/trivial/Makefile" ;; 19688 "src/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;; 19689 "src/vp/Makefile") CONFIG_FILES="$CONFIG_FILES src/vp/Makefile" ;; 19690 "src/vpglsl/Makefile") CONFIG_FILES="$CONFIG_FILES src/vpglsl/Makefile" ;; 19691 "src/wgl/Makefile") CONFIG_FILES="$CONFIG_FILES src/wgl/Makefile" ;; 19692 "src/xdemos/Makefile") CONFIG_FILES="$CONFIG_FILES src/xdemos/Makefile" ;; 19693 19694 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19695 esac 19696done 19697 19698 19699# If the user did not use the arguments to specify the items to instantiate, 19700# then the envvar interface is used. Set only those that are not. 19701# We use the long form for the default assignment because of an extremely 19702# bizarre bug on SunOS 4.1.3. 19703if $ac_need_defaults; then 19704 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19705 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19706fi 19707 19708# Have a temporary directory for convenience. Make it in the build tree 19709# simply because there is no reason against having it here, and in addition, 19710# creating and moving files from /tmp can sometimes cause problems. 19711# Hook for its removal unless debugging. 19712# Note that there is a small window in which the directory will not be cleaned: 19713# after its creation but before its name has been assigned to `$tmp'. 19714$debug || 19715{ 19716 tmp= ac_tmp= 19717 trap 'exit_status=$? 19718 : "${ac_tmp:=$tmp}" 19719 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19720' 0 19721 trap 'as_fn_exit 1' 1 2 13 15 19722} 19723# Create a (secure) tmp directory for tmp files. 19724 19725{ 19726 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19727 test -d "$tmp" 19728} || 19729{ 19730 tmp=./conf$$-$RANDOM 19731 (umask 077 && mkdir "$tmp") 19732} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19733ac_tmp=$tmp 19734 19735# Set up the scripts for CONFIG_FILES section. 19736# No need to generate them if there are no CONFIG_FILES. 19737# This happens for instance with `./config.status config.h'. 19738if test -n "$CONFIG_FILES"; then 19739 19740 19741ac_cr=`echo X | tr X '\015'` 19742# On cygwin, bash can eat \r inside `` if the user requested igncr. 19743# But we know of no other shell where ac_cr would be empty at this 19744# point, so we can use a bashism as a fallback. 19745if test "x$ac_cr" = x; then 19746 eval ac_cr=\$\'\\r\' 19747fi 19748ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19749if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19750 ac_cs_awk_cr='\\r' 19751else 19752 ac_cs_awk_cr=$ac_cr 19753fi 19754 19755echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19756_ACEOF 19757 19758 19759{ 19760 echo "cat >conf$$subs.awk <<_ACEOF" && 19761 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19762 echo "_ACEOF" 19763} >conf$$subs.sh || 19764 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19765ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19766ac_delim='%!_!# ' 19767for ac_last_try in false false false false false :; do 19768 . ./conf$$subs.sh || 19769 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19770 19771 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19772 if test $ac_delim_n = $ac_delim_num; then 19773 break 19774 elif $ac_last_try; then 19775 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19776 else 19777 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19778 fi 19779done 19780rm -f conf$$subs.sh 19781 19782cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19783cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19784_ACEOF 19785sed -n ' 19786h 19787s/^/S["/; s/!.*/"]=/ 19788p 19789g 19790s/^[^!]*!// 19791:repl 19792t repl 19793s/'"$ac_delim"'$// 19794t delim 19795:nl 19796h 19797s/\(.\{148\}\)..*/\1/ 19798t more1 19799s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19800p 19801n 19802b repl 19803:more1 19804s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19805p 19806g 19807s/.\{148\}// 19808t nl 19809:delim 19810h 19811s/\(.\{148\}\)..*/\1/ 19812t more2 19813s/["\\]/\\&/g; s/^/"/; s/$/"/ 19814p 19815b 19816:more2 19817s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19818p 19819g 19820s/.\{148\}// 19821t delim 19822' <conf$$subs.awk | sed ' 19823/^[^""]/{ 19824 N 19825 s/\n// 19826} 19827' >>$CONFIG_STATUS || ac_write_fail=1 19828rm -f conf$$subs.awk 19829cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19830_ACAWK 19831cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19832 for (key in S) S_is_set[key] = 1 19833 FS = "" 19834 19835} 19836{ 19837 line = $ 0 19838 nfields = split(line, field, "@") 19839 substed = 0 19840 len = length(field[1]) 19841 for (i = 2; i < nfields; i++) { 19842 key = field[i] 19843 keylen = length(key) 19844 if (S_is_set[key]) { 19845 value = S[key] 19846 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19847 len += length(value) + length(field[++i]) 19848 substed = 1 19849 } else 19850 len += 1 + keylen 19851 } 19852 19853 print line 19854} 19855 19856_ACAWK 19857_ACEOF 19858cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19859if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19860 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19861else 19862 cat 19863fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19864 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19865_ACEOF 19866 19867# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19868# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19869# trailing colons and then remove the whole line if VPATH becomes empty 19870# (actually we leave an empty line to preserve line numbers). 19871if test "x$srcdir" = x.; then 19872 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19873h 19874s/// 19875s/^/:/ 19876s/[ ]*$/:/ 19877s/:\$(srcdir):/:/g 19878s/:\${srcdir}:/:/g 19879s/:@srcdir@:/:/g 19880s/^:*// 19881s/:*$// 19882x 19883s/\(=[ ]*\).*/\1/ 19884G 19885s/\n// 19886s/^[^=]*=[ ]*$// 19887}' 19888fi 19889 19890cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19891fi # test -n "$CONFIG_FILES" 19892 19893 19894eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 19895shift 19896for ac_tag 19897do 19898 case $ac_tag in 19899 :[FHLC]) ac_mode=$ac_tag; continue;; 19900 esac 19901 case $ac_mode$ac_tag in 19902 :[FHL]*:*);; 19903 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19904 :[FH]-) ac_tag=-:-;; 19905 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19906 esac 19907 ac_save_IFS=$IFS 19908 IFS=: 19909 set x $ac_tag 19910 IFS=$ac_save_IFS 19911 shift 19912 ac_file=$1 19913 shift 19914 19915 case $ac_mode in 19916 :L) ac_source=$1;; 19917 :[FH]) 19918 ac_file_inputs= 19919 for ac_f 19920 do 19921 case $ac_f in 19922 -) ac_f="$ac_tmp/stdin";; 19923 *) # Look for the file first in the build tree, then in the source tree 19924 # (if the path is not absolute). The absolute path cannot be DOS-style, 19925 # because $ac_f cannot contain `:'. 19926 test -f "$ac_f" || 19927 case $ac_f in 19928 [\\/$]*) false;; 19929 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19930 esac || 19931 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19932 esac 19933 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19934 as_fn_append ac_file_inputs " '$ac_f'" 19935 done 19936 19937 # Let's still pretend it is `configure' which instantiates (i.e., don't 19938 # use $as_me), people would be surprised to read: 19939 # /* config.h. Generated by config.status. */ 19940 configure_input='Generated from '` 19941 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19942 `' by configure.' 19943 if test x"$ac_file" != x-; then 19944 configure_input="$ac_file. $configure_input" 19945 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19946$as_echo "$as_me: creating $ac_file" >&6;} 19947 fi 19948 # Neutralize special characters interpreted by sed in replacement strings. 19949 case $configure_input in #( 19950 *\&* | *\|* | *\\* ) 19951 ac_sed_conf_input=`$as_echo "$configure_input" | 19952 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19953 *) ac_sed_conf_input=$configure_input;; 19954 esac 19955 19956 case $ac_tag in 19957 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19958 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19959 esac 19960 ;; 19961 esac 19962 19963 ac_dir=`$as_dirname -- "$ac_file" || 19964$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19965 X"$ac_file" : 'X\(//\)[^/]' \| \ 19966 X"$ac_file" : 'X\(//\)$' \| \ 19967 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19968$as_echo X"$ac_file" | 19969 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19970 s//\1/ 19971 q 19972 } 19973 /^X\(\/\/\)[^/].*/{ 19974 s//\1/ 19975 q 19976 } 19977 /^X\(\/\/\)$/{ 19978 s//\1/ 19979 q 19980 } 19981 /^X\(\/\).*/{ 19982 s//\1/ 19983 q 19984 } 19985 s/.*/./; q'` 19986 as_dir="$ac_dir"; as_fn_mkdir_p 19987 ac_builddir=. 19988 19989case "$ac_dir" in 19990.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19991*) 19992 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19993 # A ".." for each directory in $ac_dir_suffix. 19994 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19995 case $ac_top_builddir_sub in 19996 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19997 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19998 esac ;; 19999esac 20000ac_abs_top_builddir=$ac_pwd 20001ac_abs_builddir=$ac_pwd$ac_dir_suffix 20002# for backward compatibility: 20003ac_top_builddir=$ac_top_build_prefix 20004 20005case $srcdir in 20006 .) # We are building in place. 20007 ac_srcdir=. 20008 ac_top_srcdir=$ac_top_builddir_sub 20009 ac_abs_top_srcdir=$ac_pwd ;; 20010 [\\/]* | ?:[\\/]* ) # Absolute name. 20011 ac_srcdir=$srcdir$ac_dir_suffix; 20012 ac_top_srcdir=$srcdir 20013 ac_abs_top_srcdir=$srcdir ;; 20014 *) # Relative name. 20015 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20016 ac_top_srcdir=$ac_top_build_prefix$srcdir 20017 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20018esac 20019ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20020 20021 20022 case $ac_mode in 20023 :F) 20024 # 20025 # CONFIG_FILE 20026 # 20027 20028 case $INSTALL in 20029 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20030 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20031 esac 20032 ac_MKDIR_P=$MKDIR_P 20033 case $MKDIR_P in 20034 [\\/$]* | ?:[\\/]* ) ;; 20035 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20036 esac 20037_ACEOF 20038 20039cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20040# If the template does not know about datarootdir, expand it. 20041# FIXME: This hack should be removed a few years after 2.60. 20042ac_datarootdir_hack=; ac_datarootdir_seen= 20043ac_sed_dataroot=' 20044/datarootdir/ { 20045 p 20046 q 20047} 20048/@datadir@/p 20049/@docdir@/p 20050/@infodir@/p 20051/@localedir@/p 20052/@mandir@/p' 20053case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20054*datarootdir*) ac_datarootdir_seen=yes;; 20055*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20057$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20058_ACEOF 20059cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20060 ac_datarootdir_hack=' 20061 s&@datadir@&$datadir&g 20062 s&@docdir@&$docdir&g 20063 s&@infodir@&$infodir&g 20064 s&@localedir@&$localedir&g 20065 s&@mandir@&$mandir&g 20066 s&\\\${datarootdir}&$datarootdir&g' ;; 20067esac 20068_ACEOF 20069 20070# Neutralize VPATH when `$srcdir' = `.'. 20071# Shell code in configure.ac might set extrasub. 20072# FIXME: do we really want to maintain this feature? 20073cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20074ac_sed_extra="$ac_vpsub 20075$extrasub 20076_ACEOF 20077cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20078:t 20079/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20080s|@configure_input@|$ac_sed_conf_input|;t t 20081s&@top_builddir@&$ac_top_builddir_sub&;t t 20082s&@top_build_prefix@&$ac_top_build_prefix&;t t 20083s&@srcdir@&$ac_srcdir&;t t 20084s&@abs_srcdir@&$ac_abs_srcdir&;t t 20085s&@top_srcdir@&$ac_top_srcdir&;t t 20086s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20087s&@builddir@&$ac_builddir&;t t 20088s&@abs_builddir@&$ac_abs_builddir&;t t 20089s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20090s&@INSTALL@&$ac_INSTALL&;t t 20091s&@MKDIR_P@&$ac_MKDIR_P&;t t 20092$ac_datarootdir_hack 20093" 20094eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20095 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20096 20097test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20098 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20099 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20100 "$ac_tmp/out"`; test -z "$ac_out"; } && 20101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20102which seems to be undefined. Please make sure it is defined" >&5 20103$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20104which seems to be undefined. Please make sure it is defined" >&2;} 20105 20106 rm -f "$ac_tmp/stdin" 20107 case $ac_file in 20108 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20109 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20110 esac \ 20111 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20112 ;; 20113 20114 20115 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20116$as_echo "$as_me: executing $ac_file commands" >&6;} 20117 ;; 20118 esac 20119 20120 20121 case $ac_file$ac_mode in 20122 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20123 # Older Autoconf quotes --file arguments for eval, but not when files 20124 # are listed without --file. Let's play safe and only enable the eval 20125 # if we detect the quoting. 20126 case $CONFIG_FILES in 20127 *\'*) eval set x "$CONFIG_FILES" ;; 20128 *) set x $CONFIG_FILES ;; 20129 esac 20130 shift 20131 for mf 20132 do 20133 # Strip MF so we end up with the name of the file. 20134 mf=`echo "$mf" | sed -e 's/:.*$//'` 20135 # Check whether this is an Automake generated Makefile or not. 20136 # We used to match only the files named 'Makefile.in', but 20137 # some people rename them; so instead we look at the file content. 20138 # Grep'ing the first line is not enough: some people post-process 20139 # each Makefile.in and add a new line on top of each file to say so. 20140 # Grep'ing the whole file is not good either: AIX grep has a line 20141 # limit of 2048, but all sed's we know have understand at least 4000. 20142 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20143 dirpart=`$as_dirname -- "$mf" || 20144$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20145 X"$mf" : 'X\(//\)[^/]' \| \ 20146 X"$mf" : 'X\(//\)$' \| \ 20147 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20148$as_echo X"$mf" | 20149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20150 s//\1/ 20151 q 20152 } 20153 /^X\(\/\/\)[^/].*/{ 20154 s//\1/ 20155 q 20156 } 20157 /^X\(\/\/\)$/{ 20158 s//\1/ 20159 q 20160 } 20161 /^X\(\/\).*/{ 20162 s//\1/ 20163 q 20164 } 20165 s/.*/./; q'` 20166 else 20167 continue 20168 fi 20169 # Extract the definition of DEPDIR, am__include, and am__quote 20170 # from the Makefile without running 'make'. 20171 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20172 test -z "$DEPDIR" && continue 20173 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20174 test -z "$am__include" && continue 20175 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20176 # Find all dependency output files, they are included files with 20177 # $(DEPDIR) in their names. We invoke sed twice because it is the 20178 # simplest approach to changing $(DEPDIR) to its actual value in the 20179 # expansion. 20180 for file in `sed -n " 20181 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20182 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 20183 # Make sure the directory exists. 20184 test -f "$dirpart/$file" && continue 20185 fdir=`$as_dirname -- "$file" || 20186$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20187 X"$file" : 'X\(//\)[^/]' \| \ 20188 X"$file" : 'X\(//\)$' \| \ 20189 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20190$as_echo X"$file" | 20191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20192 s//\1/ 20193 q 20194 } 20195 /^X\(\/\/\)[^/].*/{ 20196 s//\1/ 20197 q 20198 } 20199 /^X\(\/\/\)$/{ 20200 s//\1/ 20201 q 20202 } 20203 /^X\(\/\).*/{ 20204 s//\1/ 20205 q 20206 } 20207 s/.*/./; q'` 20208 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20209 # echo "creating $dirpart/$file" 20210 echo '# dummy' > "$dirpart/$file" 20211 done 20212 done 20213} 20214 ;; 20215 "libtool":C) 20216 20217 # See if we are running on zsh, and set the options that allow our 20218 # commands through without removal of \ escapes. 20219 if test -n "${ZSH_VERSION+set}"; then 20220 setopt NO_GLOB_SUBST 20221 fi 20222 20223 cfgfile=${ofile}T 20224 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20225 $RM "$cfgfile" 20226 20227 cat <<_LT_EOF >> "$cfgfile" 20228#! $SHELL 20229# Generated automatically by $as_me ($PACKAGE) $VERSION 20230# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20231 20232# Provide generalized library-building support services. 20233# Written by Gordon Matzigkeit, 1996 20234 20235# Copyright (C) 2014 Free Software Foundation, Inc. 20236# This is free software; see the source for copying conditions. There is NO 20237# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 20238 20239# GNU Libtool is free software; you can redistribute it and/or modify 20240# it under the terms of the GNU General Public License as published by 20241# the Free Software Foundation; either version 2 of of the License, or 20242# (at your option) any later version. 20243# 20244# As a special exception to the GNU General Public License, if you 20245# distribute this file as part of a program or library that is built 20246# using GNU Libtool, you may include this file under the same 20247# distribution terms that you use for the rest of that program. 20248# 20249# GNU Libtool is distributed in the hope that it will be useful, but 20250# WITHOUT ANY WARRANTY; without even the implied warranty of 20251# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20252# GNU General Public License for more details. 20253# 20254# You should have received a copy of the GNU General Public License 20255# along with this program. If not, see <http://www.gnu.org/licenses/>. 20256 20257 20258# The names of the tagged configurations supported by this script. 20259available_tags='CXX ' 20260 20261# Configured defaults for sys_lib_dlsearch_path munging. 20262: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 20263 20264# ### BEGIN LIBTOOL CONFIG 20265 20266# Which release of libtool.m4 was used? 20267macro_version=$macro_version 20268macro_revision=$macro_revision 20269 20270# Whether or not to build shared libraries. 20271build_libtool_libs=$enable_shared 20272 20273# Whether or not to build static libraries. 20274build_old_libs=$enable_static 20275 20276# What type of objects to build. 20277pic_mode=$pic_mode 20278 20279# Whether or not to optimize for fast installation. 20280fast_install=$enable_fast_install 20281 20282# Shared archive member basename,for filename based shared library versioning on AIX. 20283shared_archive_member_spec=$shared_archive_member_spec 20284 20285# Shell to use when invoking shell scripts. 20286SHELL=$lt_SHELL 20287 20288# An echo program that protects backslashes. 20289ECHO=$lt_ECHO 20290 20291# The PATH separator for the build system. 20292PATH_SEPARATOR=$lt_PATH_SEPARATOR 20293 20294# The host system. 20295host_alias=$host_alias 20296host=$host 20297host_os=$host_os 20298 20299# The build system. 20300build_alias=$build_alias 20301build=$build 20302build_os=$build_os 20303 20304# A sed program that does not truncate output. 20305SED=$lt_SED 20306 20307# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20308Xsed="\$SED -e 1s/^X//" 20309 20310# A grep program that handles long lines. 20311GREP=$lt_GREP 20312 20313# An ERE matcher. 20314EGREP=$lt_EGREP 20315 20316# A literal string matcher. 20317FGREP=$lt_FGREP 20318 20319# A BSD- or MS-compatible name lister. 20320NM=$lt_NM 20321 20322# Whether we need soft or hard links. 20323LN_S=$lt_LN_S 20324 20325# What is the maximum length of a command? 20326max_cmd_len=$max_cmd_len 20327 20328# Object file suffix (normally "o"). 20329objext=$ac_objext 20330 20331# Executable file suffix (normally ""). 20332exeext=$exeext 20333 20334# whether the shell understands "unset". 20335lt_unset=$lt_unset 20336 20337# turn spaces into newlines. 20338SP2NL=$lt_lt_SP2NL 20339 20340# turn newlines into spaces. 20341NL2SP=$lt_lt_NL2SP 20342 20343# convert \$build file names to \$host format. 20344to_host_file_cmd=$lt_cv_to_host_file_cmd 20345 20346# convert \$build files to toolchain format. 20347to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20348 20349# An object symbol dumper. 20350OBJDUMP=$lt_OBJDUMP 20351 20352# Method to check whether dependent libraries are shared objects. 20353deplibs_check_method=$lt_deplibs_check_method 20354 20355# Command to use when deplibs_check_method = "file_magic". 20356file_magic_cmd=$lt_file_magic_cmd 20357 20358# How to find potential files when deplibs_check_method = "file_magic". 20359file_magic_glob=$lt_file_magic_glob 20360 20361# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20362want_nocaseglob=$lt_want_nocaseglob 20363 20364# DLL creation program. 20365DLLTOOL=$lt_DLLTOOL 20366 20367# Command to associate shared and link libraries. 20368sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20369 20370# The archiver. 20371AR=$lt_AR 20372 20373# Flags to create an archive. 20374AR_FLAGS=$lt_AR_FLAGS 20375 20376# How to feed a file listing to the archiver. 20377archiver_list_spec=$lt_archiver_list_spec 20378 20379# A symbol stripping program. 20380STRIP=$lt_STRIP 20381 20382# Commands used to install an old-style archive. 20383RANLIB=$lt_RANLIB 20384old_postinstall_cmds=$lt_old_postinstall_cmds 20385old_postuninstall_cmds=$lt_old_postuninstall_cmds 20386 20387# Whether to use a lock for old archive extraction. 20388lock_old_archive_extraction=$lock_old_archive_extraction 20389 20390# A C compiler. 20391LTCC=$lt_CC 20392 20393# LTCC compiler flags. 20394LTCFLAGS=$lt_CFLAGS 20395 20396# Take the output of nm and produce a listing of raw symbols and C names. 20397global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20398 20399# Transform the output of nm in a proper C declaration. 20400global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20401 20402# Transform the output of nm into a list of symbols to manually relocate. 20403global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 20404 20405# Transform the output of nm in a C name address pair. 20406global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20407 20408# Transform the output of nm in a C name address pair when lib prefix is needed. 20409global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20410 20411# The name lister interface. 20412nm_interface=$lt_lt_cv_nm_interface 20413 20414# Specify filename containing input files for \$NM. 20415nm_file_list_spec=$lt_nm_file_list_spec 20416 20417# The root where to search for dependent libraries,and where our libraries should be installed. 20418lt_sysroot=$lt_sysroot 20419 20420# Command to truncate a binary pipe. 20421lt_truncate_bin=$lt_lt_cv_truncate_bin 20422 20423# The name of the directory that contains temporary libtool files. 20424objdir=$objdir 20425 20426# Used to examine libraries when file_magic_cmd begins with "file". 20427MAGIC_CMD=$MAGIC_CMD 20428 20429# Must we lock files when doing compilation? 20430need_locks=$lt_need_locks 20431 20432# Manifest tool. 20433MANIFEST_TOOL=$lt_MANIFEST_TOOL 20434 20435# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20436DSYMUTIL=$lt_DSYMUTIL 20437 20438# Tool to change global to local symbols on Mac OS X. 20439NMEDIT=$lt_NMEDIT 20440 20441# Tool to manipulate fat objects and archives on Mac OS X. 20442LIPO=$lt_LIPO 20443 20444# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20445OTOOL=$lt_OTOOL 20446 20447# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20448OTOOL64=$lt_OTOOL64 20449 20450# Old archive suffix (normally "a"). 20451libext=$libext 20452 20453# Shared library suffix (normally ".so"). 20454shrext_cmds=$lt_shrext_cmds 20455 20456# The commands to extract the exported symbol list from a shared archive. 20457extract_expsyms_cmds=$lt_extract_expsyms_cmds 20458 20459# Variables whose values should be saved in libtool wrapper scripts and 20460# restored at link time. 20461variables_saved_for_relink=$lt_variables_saved_for_relink 20462 20463# Do we need the "lib" prefix for modules? 20464need_lib_prefix=$need_lib_prefix 20465 20466# Do we need a version for libraries? 20467need_version=$need_version 20468 20469# Library versioning type. 20470version_type=$version_type 20471 20472# Shared library runtime path variable. 20473runpath_var=$runpath_var 20474 20475# Shared library path variable. 20476shlibpath_var=$shlibpath_var 20477 20478# Is shlibpath searched before the hard-coded library search path? 20479shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20480 20481# Format of library name prefix. 20482libname_spec=$lt_libname_spec 20483 20484# List of archive names. First name is the real one, the rest are links. 20485# The last name is the one that the linker finds with -lNAME 20486library_names_spec=$lt_library_names_spec 20487 20488# The coded name of the library, if different from the real name. 20489soname_spec=$lt_soname_spec 20490 20491# Permission mode override for installation of shared libraries. 20492install_override_mode=$lt_install_override_mode 20493 20494# Command to use after installation of a shared archive. 20495postinstall_cmds=$lt_postinstall_cmds 20496 20497# Command to use after uninstallation of a shared archive. 20498postuninstall_cmds=$lt_postuninstall_cmds 20499 20500# Commands used to finish a libtool library installation in a directory. 20501finish_cmds=$lt_finish_cmds 20502 20503# As "finish_cmds", except a single script fragment to be evaled but 20504# not shown. 20505finish_eval=$lt_finish_eval 20506 20507# Whether we should hardcode library paths into libraries. 20508hardcode_into_libs=$hardcode_into_libs 20509 20510# Compile-time system search path for libraries. 20511sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20512 20513# Detected run-time system search path for libraries. 20514sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 20515 20516# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 20517configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 20518 20519# Whether dlopen is supported. 20520dlopen_support=$enable_dlopen 20521 20522# Whether dlopen of programs is supported. 20523dlopen_self=$enable_dlopen_self 20524 20525# Whether dlopen of statically linked programs is supported. 20526dlopen_self_static=$enable_dlopen_self_static 20527 20528# Commands to strip libraries. 20529old_striplib=$lt_old_striplib 20530striplib=$lt_striplib 20531 20532 20533# The linker used to build libraries. 20534LD=$lt_LD 20535 20536# How to create reloadable object files. 20537reload_flag=$lt_reload_flag 20538reload_cmds=$lt_reload_cmds 20539 20540# Commands used to build an old-style archive. 20541old_archive_cmds=$lt_old_archive_cmds 20542 20543# A language specific compiler. 20544CC=$lt_compiler 20545 20546# Is the compiler the GNU compiler? 20547with_gcc=$GCC 20548 20549# Compiler flag to turn off builtin functions. 20550no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20551 20552# Additional compiler flags for building library objects. 20553pic_flag=$lt_lt_prog_compiler_pic 20554 20555# How to pass a linker flag through the compiler. 20556wl=$lt_lt_prog_compiler_wl 20557 20558# Compiler flag to prevent dynamic linking. 20559link_static_flag=$lt_lt_prog_compiler_static 20560 20561# Does compiler simultaneously support -c and -o options? 20562compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20563 20564# Whether or not to add -lc for building shared libraries. 20565build_libtool_need_lc=$archive_cmds_need_lc 20566 20567# Whether or not to disallow shared libs when runtime libs are static. 20568allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20569 20570# Compiler flag to allow reflexive dlopens. 20571export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20572 20573# Compiler flag to generate shared objects directly from archives. 20574whole_archive_flag_spec=$lt_whole_archive_flag_spec 20575 20576# Whether the compiler copes with passing no objects directly. 20577compiler_needs_object=$lt_compiler_needs_object 20578 20579# Create an old-style archive from a shared archive. 20580old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20581 20582# Create a temporary old-style archive to link instead of a shared archive. 20583old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20584 20585# Commands used to build a shared archive. 20586archive_cmds=$lt_archive_cmds 20587archive_expsym_cmds=$lt_archive_expsym_cmds 20588 20589# Commands used to build a loadable module if different from building 20590# a shared archive. 20591module_cmds=$lt_module_cmds 20592module_expsym_cmds=$lt_module_expsym_cmds 20593 20594# Whether we are building with GNU ld or not. 20595with_gnu_ld=$lt_with_gnu_ld 20596 20597# Flag that allows shared libraries with undefined symbols to be built. 20598allow_undefined_flag=$lt_allow_undefined_flag 20599 20600# Flag that enforces no undefined symbols. 20601no_undefined_flag=$lt_no_undefined_flag 20602 20603# Flag to hardcode \$libdir into a binary during linking. 20604# This must work even if \$libdir does not exist 20605hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20606 20607# Whether we need a single "-rpath" flag with a separated argument. 20608hardcode_libdir_separator=$lt_hardcode_libdir_separator 20609 20610# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20611# DIR into the resulting binary. 20612hardcode_direct=$hardcode_direct 20613 20614# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20615# DIR into the resulting binary and the resulting library dependency is 20616# "absolute",i.e impossible to change by setting \$shlibpath_var if the 20617# library is relocated. 20618hardcode_direct_absolute=$hardcode_direct_absolute 20619 20620# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20621# into the resulting binary. 20622hardcode_minus_L=$hardcode_minus_L 20623 20624# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20625# into the resulting binary. 20626hardcode_shlibpath_var=$hardcode_shlibpath_var 20627 20628# Set to "yes" if building a shared library automatically hardcodes DIR 20629# into the library and all subsequent libraries and executables linked 20630# against it. 20631hardcode_automatic=$hardcode_automatic 20632 20633# Set to yes if linker adds runtime paths of dependent libraries 20634# to runtime path list. 20635inherit_rpath=$inherit_rpath 20636 20637# Whether libtool must link a program against all its dependency libraries. 20638link_all_deplibs=$link_all_deplibs 20639 20640# Set to "yes" if exported symbols are required. 20641always_export_symbols=$always_export_symbols 20642 20643# The commands to list exported symbols. 20644export_symbols_cmds=$lt_export_symbols_cmds 20645 20646# Symbols that should not be listed in the preloaded symbols. 20647exclude_expsyms=$lt_exclude_expsyms 20648 20649# Symbols that must always be exported. 20650include_expsyms=$lt_include_expsyms 20651 20652# Commands necessary for linking programs (against libraries) with templates. 20653prelink_cmds=$lt_prelink_cmds 20654 20655# Commands necessary for finishing linking programs. 20656postlink_cmds=$lt_postlink_cmds 20657 20658# Specify filename containing input files. 20659file_list_spec=$lt_file_list_spec 20660 20661# How to hardcode a shared library path into an executable. 20662hardcode_action=$hardcode_action 20663 20664# The directories searched by this compiler when creating a shared library. 20665compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 20666 20667# Dependencies to place before and after the objects being linked to 20668# create a shared library. 20669predep_objects=$lt_predep_objects 20670postdep_objects=$lt_postdep_objects 20671predeps=$lt_predeps 20672postdeps=$lt_postdeps 20673 20674# The library search path used internally by the compiler when linking 20675# a shared library. 20676compiler_lib_search_path=$lt_compiler_lib_search_path 20677 20678# ### END LIBTOOL CONFIG 20679 20680_LT_EOF 20681 20682 cat <<'_LT_EOF' >> "$cfgfile" 20683 20684# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 20685 20686# func_munge_path_list VARIABLE PATH 20687# ----------------------------------- 20688# VARIABLE is name of variable containing _space_ separated list of 20689# directories to be munged by the contents of PATH, which is string 20690# having a format: 20691# "DIR[:DIR]:" 20692# string "DIR[ DIR]" will be prepended to VARIABLE 20693# ":DIR[:DIR]" 20694# string "DIR[ DIR]" will be appended to VARIABLE 20695# "DIRP[:DIRP]::[DIRA:]DIRA" 20696# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 20697# "DIRA[ DIRA]" will be appended to VARIABLE 20698# "DIR[:DIR]" 20699# VARIABLE will be replaced by "DIR[ DIR]" 20700func_munge_path_list () 20701{ 20702 case x$2 in 20703 x) 20704 ;; 20705 *:) 20706 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 20707 ;; 20708 x:*) 20709 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 20710 ;; 20711 *::*) 20712 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 20713 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 20714 ;; 20715 *) 20716 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 20717 ;; 20718 esac 20719} 20720 20721 20722# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 20723func_cc_basename () 20724{ 20725 for cc_temp in $*""; do 20726 case $cc_temp in 20727 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 20728 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 20729 \-*) ;; 20730 *) break;; 20731 esac 20732 done 20733 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 20734} 20735 20736 20737# ### END FUNCTIONS SHARED WITH CONFIGURE 20738 20739_LT_EOF 20740 20741 case $host_os in 20742 aix3*) 20743 cat <<\_LT_EOF >> "$cfgfile" 20744# AIX sometimes has problems with the GCC collect2 program. For some 20745# reason, if we set the COLLECT_NAMES environment variable, the problems 20746# vanish in a puff of smoke. 20747if test set != "${COLLECT_NAMES+set}"; then 20748 COLLECT_NAMES= 20749 export COLLECT_NAMES 20750fi 20751_LT_EOF 20752 ;; 20753 esac 20754 20755 20756ltmain=$ac_aux_dir/ltmain.sh 20757 20758 20759 # We use sed instead of cat because bash on DJGPP gets confused if 20760 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20761 # text mode, it properly converts lines to CR/LF. This bash problem 20762 # is reportedly fixed, but why not run on old versions too? 20763 sed '$q' "$ltmain" >> "$cfgfile" \ 20764 || (rm -f "$cfgfile"; exit 1) 20765 20766 mv -f "$cfgfile" "$ofile" || 20767 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20768 chmod +x "$ofile" 20769 20770 20771 cat <<_LT_EOF >> "$ofile" 20772 20773# ### BEGIN LIBTOOL TAG CONFIG: CXX 20774 20775# The linker used to build libraries. 20776LD=$lt_LD_CXX 20777 20778# How to create reloadable object files. 20779reload_flag=$lt_reload_flag_CXX 20780reload_cmds=$lt_reload_cmds_CXX 20781 20782# Commands used to build an old-style archive. 20783old_archive_cmds=$lt_old_archive_cmds_CXX 20784 20785# A language specific compiler. 20786CC=$lt_compiler_CXX 20787 20788# Is the compiler the GNU compiler? 20789with_gcc=$GCC_CXX 20790 20791# Compiler flag to turn off builtin functions. 20792no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 20793 20794# Additional compiler flags for building library objects. 20795pic_flag=$lt_lt_prog_compiler_pic_CXX 20796 20797# How to pass a linker flag through the compiler. 20798wl=$lt_lt_prog_compiler_wl_CXX 20799 20800# Compiler flag to prevent dynamic linking. 20801link_static_flag=$lt_lt_prog_compiler_static_CXX 20802 20803# Does compiler simultaneously support -c and -o options? 20804compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 20805 20806# Whether or not to add -lc for building shared libraries. 20807build_libtool_need_lc=$archive_cmds_need_lc_CXX 20808 20809# Whether or not to disallow shared libs when runtime libs are static. 20810allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 20811 20812# Compiler flag to allow reflexive dlopens. 20813export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 20814 20815# Compiler flag to generate shared objects directly from archives. 20816whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 20817 20818# Whether the compiler copes with passing no objects directly. 20819compiler_needs_object=$lt_compiler_needs_object_CXX 20820 20821# Create an old-style archive from a shared archive. 20822old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 20823 20824# Create a temporary old-style archive to link instead of a shared archive. 20825old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 20826 20827# Commands used to build a shared archive. 20828archive_cmds=$lt_archive_cmds_CXX 20829archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 20830 20831# Commands used to build a loadable module if different from building 20832# a shared archive. 20833module_cmds=$lt_module_cmds_CXX 20834module_expsym_cmds=$lt_module_expsym_cmds_CXX 20835 20836# Whether we are building with GNU ld or not. 20837with_gnu_ld=$lt_with_gnu_ld_CXX 20838 20839# Flag that allows shared libraries with undefined symbols to be built. 20840allow_undefined_flag=$lt_allow_undefined_flag_CXX 20841 20842# Flag that enforces no undefined symbols. 20843no_undefined_flag=$lt_no_undefined_flag_CXX 20844 20845# Flag to hardcode \$libdir into a binary during linking. 20846# This must work even if \$libdir does not exist 20847hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 20848 20849# Whether we need a single "-rpath" flag with a separated argument. 20850hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 20851 20852# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20853# DIR into the resulting binary. 20854hardcode_direct=$hardcode_direct_CXX 20855 20856# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20857# DIR into the resulting binary and the resulting library dependency is 20858# "absolute",i.e impossible to change by setting \$shlibpath_var if the 20859# library is relocated. 20860hardcode_direct_absolute=$hardcode_direct_absolute_CXX 20861 20862# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20863# into the resulting binary. 20864hardcode_minus_L=$hardcode_minus_L_CXX 20865 20866# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20867# into the resulting binary. 20868hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 20869 20870# Set to "yes" if building a shared library automatically hardcodes DIR 20871# into the library and all subsequent libraries and executables linked 20872# against it. 20873hardcode_automatic=$hardcode_automatic_CXX 20874 20875# Set to yes if linker adds runtime paths of dependent libraries 20876# to runtime path list. 20877inherit_rpath=$inherit_rpath_CXX 20878 20879# Whether libtool must link a program against all its dependency libraries. 20880link_all_deplibs=$link_all_deplibs_CXX 20881 20882# Set to "yes" if exported symbols are required. 20883always_export_symbols=$always_export_symbols_CXX 20884 20885# The commands to list exported symbols. 20886export_symbols_cmds=$lt_export_symbols_cmds_CXX 20887 20888# Symbols that should not be listed in the preloaded symbols. 20889exclude_expsyms=$lt_exclude_expsyms_CXX 20890 20891# Symbols that must always be exported. 20892include_expsyms=$lt_include_expsyms_CXX 20893 20894# Commands necessary for linking programs (against libraries) with templates. 20895prelink_cmds=$lt_prelink_cmds_CXX 20896 20897# Commands necessary for finishing linking programs. 20898postlink_cmds=$lt_postlink_cmds_CXX 20899 20900# Specify filename containing input files. 20901file_list_spec=$lt_file_list_spec_CXX 20902 20903# How to hardcode a shared library path into an executable. 20904hardcode_action=$hardcode_action_CXX 20905 20906# The directories searched by this compiler when creating a shared library. 20907compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 20908 20909# Dependencies to place before and after the objects being linked to 20910# create a shared library. 20911predep_objects=$lt_predep_objects_CXX 20912postdep_objects=$lt_postdep_objects_CXX 20913predeps=$lt_predeps_CXX 20914postdeps=$lt_postdeps_CXX 20915 20916# The library search path used internally by the compiler when linking 20917# a shared library. 20918compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 20919 20920# ### END LIBTOOL TAG CONFIG: CXX 20921_LT_EOF 20922 20923 ;; 20924 20925 esac 20926done # for ac_tag 20927 20928 20929as_fn_exit 0 20930_ACEOF 20931ac_clean_files=$ac_clean_files_save 20932 20933test $ac_write_fail = 0 || 20934 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20935 20936 20937# configure is writing to config.log, and then calls config.status. 20938# config.status does its own redirection, appending to config.log. 20939# Unfortunately, on DOS this fails, as config.log is still kept open 20940# by configure, so config.status won't be able to write to it; its 20941# output is simply discarded. So we exec the FD to /dev/null, 20942# effectively closing config.log, so it can be properly (re)opened and 20943# appended to by config.status. When coming back to configure, we 20944# need to make the FD available again. 20945if test "$no_create" != yes; then 20946 ac_cs_success=: 20947 ac_config_status_args= 20948 test "$silent" = yes && 20949 ac_config_status_args="$ac_config_status_args --quiet" 20950 exec 5>/dev/null 20951 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20952 exec 5>>config.log 20953 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20954 # would make configure fail if this is the last instruction. 20955 $ac_cs_success || as_fn_exit 1 20956fi 20957if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20959$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20960fi 20961 20962