1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for NormalizInterface package. 4# 5# Report bugs to <https://github.com/gap-packages/NormalizInterface/issues>. 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://github.com/gap-packages/NormalizInterface/issues 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='NormalizInterface' 593PACKAGE_TARNAME='NormalizInterface' 594PACKAGE_VERSION='package' 595PACKAGE_STRING='NormalizInterface package' 596PACKAGE_BUGREPORT='https://github.com/gap-packages/NormalizInterface/issues' 597PACKAGE_URL='https://gap-packages.github.io/NormalizInterface/' 598 599ac_unique_file="src/normaliz.cc" 600# Factoring default headers for most tests. 601ac_includes_default="\ 602#include <stdio.h> 603#ifdef HAVE_SYS_TYPES_H 604# include <sys/types.h> 605#endif 606#ifdef HAVE_SYS_STAT_H 607# include <sys/stat.h> 608#endif 609#ifdef STDC_HEADERS 610# include <stdlib.h> 611# include <stddef.h> 612#else 613# ifdef HAVE_STDLIB_H 614# include <stdlib.h> 615# endif 616#endif 617#ifdef HAVE_STRING_H 618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 619# include <memory.h> 620# endif 621# include <string.h> 622#endif 623#ifdef HAVE_STRINGS_H 624# include <strings.h> 625#endif 626#ifdef HAVE_INTTYPES_H 627# include <inttypes.h> 628#endif 629#ifdef HAVE_STDINT_H 630# include <stdint.h> 631#endif 632#ifdef HAVE_UNISTD_H 633# include <unistd.h> 634#endif" 635 636ac_subst_vars='am__EXEEXT_FALSE 637am__EXEEXT_TRUE 638LTLIBOBJS 639LIBOBJS 640SYS_IS_CYGWIN_FALSE 641SYS_IS_CYGWIN_TRUE 642NORMALIZ_CPPFLAGS 643NORMALIZ_LDFLAGS 644NORMALIZ_LDPATH 645GAP_LIBS 646GAP_LDFLAGS 647GAP_CFLAGS 648GAP_CPPFLAGS 649GAPROOT 650GAPARCH 651CXXCPP 652CPP 653LT_SYS_LIBRARY_PATH 654OTOOL64 655OTOOL 656LIPO 657NMEDIT 658DSYMUTIL 659MANIFEST_TOOL 660RANLIB 661LN_S 662NM 663ac_ct_DUMPBIN 664DUMPBIN 665LD 666FGREP 667EGREP 668GREP 669SED 670LIBTOOL 671OBJDUMP 672DLLTOOL 673AS 674HAVE_CXX11 675am__fastdepCXX_FALSE 676am__fastdepCXX_TRUE 677CXXDEPMODE 678ac_ct_CXX 679CXXFLAGS 680CXX 681am__fastdepCC_FALSE 682am__fastdepCC_TRUE 683CCDEPMODE 684am__nodep 685AMDEPBACKSLASH 686AMDEP_FALSE 687AMDEP_TRUE 688am__include 689DEPDIR 690OBJEXT 691EXEEXT 692ac_ct_CC 693CPPFLAGS 694LDFLAGS 695CFLAGS 696CC 697ac_ct_AR 698AR 699AM_BACKSLASH 700AM_DEFAULT_VERBOSITY 701AM_DEFAULT_V 702AM_V 703am__untar 704am__tar 705AMTAR 706am__leading_dot 707SET_MAKE 708AWK 709mkdir_p 710MKDIR_P 711INSTALL_STRIP_PROGRAM 712STRIP 713install_sh 714MAKEINFO 715AUTOHEADER 716AUTOMAKE 717AUTOCONF 718ACLOCAL 719VERSION 720PACKAGE 721CYGPATH_W 722am__isrc 723INSTALL_DATA 724INSTALL_SCRIPT 725INSTALL_PROGRAM 726host_os 727host_vendor 728host_cpu 729host 730build_os 731build_vendor 732build_cpu 733build 734target_alias 735host_alias 736build_alias 737LIBS 738ECHO_T 739ECHO_N 740ECHO_C 741DEFS 742mandir 743localedir 744libdir 745psdir 746pdfdir 747dvidir 748htmldir 749infodir 750docdir 751oldincludedir 752includedir 753localstatedir 754sharedstatedir 755sysconfdir 756datadir 757datarootdir 758libexecdir 759sbindir 760bindir 761program_transform_name 762prefix 763exec_prefix 764PACKAGE_URL 765PACKAGE_BUGREPORT 766PACKAGE_STRING 767PACKAGE_VERSION 768PACKAGE_TARNAME 769PACKAGE_NAME 770PATH_SEPARATOR 771SHELL 772am__quote' 773ac_subst_files='' 774ac_user_opts=' 775enable_option_checking 776enable_silent_rules 777enable_dependency_tracking 778enable_static 779enable_shared 780with_pic 781enable_fast_install 782with_aix_soname 783with_gnu_ld 784with_sysroot 785enable_libtool_lock 786with_gaproot 787with_normaliz 788' 789 ac_precious_vars='build_alias 790host_alias 791target_alias 792CC 793CFLAGS 794LDFLAGS 795LIBS 796CPPFLAGS 797CXX 798CXXFLAGS 799CCC 800LT_SYS_LIBRARY_PATH 801CPP 802CXXCPP' 803 804 805# Initialize some variables set by options. 806ac_init_help= 807ac_init_version=false 808ac_unrecognized_opts= 809ac_unrecognized_sep= 810# The variables have the same names as the options, with 811# dashes changed to underlines. 812cache_file=/dev/null 813exec_prefix=NONE 814no_create= 815no_recursion= 816prefix=NONE 817program_prefix=NONE 818program_suffix=NONE 819program_transform_name=s,x,x, 820silent= 821site= 822srcdir= 823verbose= 824x_includes=NONE 825x_libraries=NONE 826 827# Installation directory options. 828# These are left unexpanded so users can "make install exec_prefix=/foo" 829# and all the variables that are supposed to be based on exec_prefix 830# by default will actually change. 831# Use braces instead of parens because sh, perl, etc. also accept them. 832# (The list follows the same order as the GNU Coding Standards.) 833bindir='${exec_prefix}/bin' 834sbindir='${exec_prefix}/sbin' 835libexecdir='${exec_prefix}/libexec' 836datarootdir='${prefix}/share' 837datadir='${datarootdir}' 838sysconfdir='${prefix}/etc' 839sharedstatedir='${prefix}/com' 840localstatedir='${prefix}/var' 841includedir='${prefix}/include' 842oldincludedir='/usr/include' 843docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 844infodir='${datarootdir}/info' 845htmldir='${docdir}' 846dvidir='${docdir}' 847pdfdir='${docdir}' 848psdir='${docdir}' 849libdir='${exec_prefix}/lib' 850localedir='${datarootdir}/locale' 851mandir='${datarootdir}/man' 852 853ac_prev= 854ac_dashdash= 855for ac_option 856do 857 # If the previous option needs an argument, assign it. 858 if test -n "$ac_prev"; then 859 eval $ac_prev=\$ac_option 860 ac_prev= 861 continue 862 fi 863 864 case $ac_option in 865 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 866 *=) ac_optarg= ;; 867 *) ac_optarg=yes ;; 868 esac 869 870 # Accept the important Cygnus configure options, so we can diagnose typos. 871 872 case $ac_dashdash$ac_option in 873 --) 874 ac_dashdash=yes ;; 875 876 -bindir | --bindir | --bindi | --bind | --bin | --bi) 877 ac_prev=bindir ;; 878 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 879 bindir=$ac_optarg ;; 880 881 -build | --build | --buil | --bui | --bu) 882 ac_prev=build_alias ;; 883 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 884 build_alias=$ac_optarg ;; 885 886 -cache-file | --cache-file | --cache-fil | --cache-fi \ 887 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 888 ac_prev=cache_file ;; 889 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 890 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 891 cache_file=$ac_optarg ;; 892 893 --config-cache | -C) 894 cache_file=config.cache ;; 895 896 -datadir | --datadir | --datadi | --datad) 897 ac_prev=datadir ;; 898 -datadir=* | --datadir=* | --datadi=* | --datad=*) 899 datadir=$ac_optarg ;; 900 901 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 902 | --dataroo | --dataro | --datar) 903 ac_prev=datarootdir ;; 904 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 905 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 906 datarootdir=$ac_optarg ;; 907 908 -disable-* | --disable-*) 909 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 910 # Reject names that are not valid shell variable names. 911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 912 as_fn_error $? "invalid feature name: $ac_useropt" 913 ac_useropt_orig=$ac_useropt 914 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 915 case $ac_user_opts in 916 *" 917"enable_$ac_useropt" 918"*) ;; 919 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 920 ac_unrecognized_sep=', ';; 921 esac 922 eval enable_$ac_useropt=no ;; 923 924 -docdir | --docdir | --docdi | --doc | --do) 925 ac_prev=docdir ;; 926 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 927 docdir=$ac_optarg ;; 928 929 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 930 ac_prev=dvidir ;; 931 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 932 dvidir=$ac_optarg ;; 933 934 -enable-* | --enable-*) 935 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 936 # Reject names that are not valid shell variable names. 937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 938 as_fn_error $? "invalid feature name: $ac_useropt" 939 ac_useropt_orig=$ac_useropt 940 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 941 case $ac_user_opts in 942 *" 943"enable_$ac_useropt" 944"*) ;; 945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 946 ac_unrecognized_sep=', ';; 947 esac 948 eval enable_$ac_useropt=\$ac_optarg ;; 949 950 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 951 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 952 | --exec | --exe | --ex) 953 ac_prev=exec_prefix ;; 954 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 955 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 956 | --exec=* | --exe=* | --ex=*) 957 exec_prefix=$ac_optarg ;; 958 959 -gas | --gas | --ga | --g) 960 # Obsolete; use --with-gas. 961 with_gas=yes ;; 962 963 -help | --help | --hel | --he | -h) 964 ac_init_help=long ;; 965 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 966 ac_init_help=recursive ;; 967 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 968 ac_init_help=short ;; 969 970 -host | --host | --hos | --ho) 971 ac_prev=host_alias ;; 972 -host=* | --host=* | --hos=* | --ho=*) 973 host_alias=$ac_optarg ;; 974 975 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 976 ac_prev=htmldir ;; 977 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 978 | --ht=*) 979 htmldir=$ac_optarg ;; 980 981 -includedir | --includedir | --includedi | --included | --include \ 982 | --includ | --inclu | --incl | --inc) 983 ac_prev=includedir ;; 984 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 985 | --includ=* | --inclu=* | --incl=* | --inc=*) 986 includedir=$ac_optarg ;; 987 988 -infodir | --infodir | --infodi | --infod | --info | --inf) 989 ac_prev=infodir ;; 990 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 991 infodir=$ac_optarg ;; 992 993 -libdir | --libdir | --libdi | --libd) 994 ac_prev=libdir ;; 995 -libdir=* | --libdir=* | --libdi=* | --libd=*) 996 libdir=$ac_optarg ;; 997 998 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 999 | --libexe | --libex | --libe) 1000 ac_prev=libexecdir ;; 1001 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1002 | --libexe=* | --libex=* | --libe=*) 1003 libexecdir=$ac_optarg ;; 1004 1005 -localedir | --localedir | --localedi | --localed | --locale) 1006 ac_prev=localedir ;; 1007 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1008 localedir=$ac_optarg ;; 1009 1010 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1011 | --localstate | --localstat | --localsta | --localst | --locals) 1012 ac_prev=localstatedir ;; 1013 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1014 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1015 localstatedir=$ac_optarg ;; 1016 1017 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1018 ac_prev=mandir ;; 1019 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1020 mandir=$ac_optarg ;; 1021 1022 -nfp | --nfp | --nf) 1023 # Obsolete; use --without-fp. 1024 with_fp=no ;; 1025 1026 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1027 | --no-cr | --no-c | -n) 1028 no_create=yes ;; 1029 1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1032 no_recursion=yes ;; 1033 1034 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1035 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1036 | --oldin | --oldi | --old | --ol | --o) 1037 ac_prev=oldincludedir ;; 1038 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1039 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1040 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1041 oldincludedir=$ac_optarg ;; 1042 1043 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1044 ac_prev=prefix ;; 1045 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1046 prefix=$ac_optarg ;; 1047 1048 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1049 | --program-pre | --program-pr | --program-p) 1050 ac_prev=program_prefix ;; 1051 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1052 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1053 program_prefix=$ac_optarg ;; 1054 1055 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1056 | --program-suf | --program-su | --program-s) 1057 ac_prev=program_suffix ;; 1058 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1059 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1060 program_suffix=$ac_optarg ;; 1061 1062 -program-transform-name | --program-transform-name \ 1063 | --program-transform-nam | --program-transform-na \ 1064 | --program-transform-n | --program-transform- \ 1065 | --program-transform | --program-transfor \ 1066 | --program-transfo | --program-transf \ 1067 | --program-trans | --program-tran \ 1068 | --progr-tra | --program-tr | --program-t) 1069 ac_prev=program_transform_name ;; 1070 -program-transform-name=* | --program-transform-name=* \ 1071 | --program-transform-nam=* | --program-transform-na=* \ 1072 | --program-transform-n=* | --program-transform-=* \ 1073 | --program-transform=* | --program-transfor=* \ 1074 | --program-transfo=* | --program-transf=* \ 1075 | --program-trans=* | --program-tran=* \ 1076 | --progr-tra=* | --program-tr=* | --program-t=*) 1077 program_transform_name=$ac_optarg ;; 1078 1079 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1080 ac_prev=pdfdir ;; 1081 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1082 pdfdir=$ac_optarg ;; 1083 1084 -psdir | --psdir | --psdi | --psd | --ps) 1085 ac_prev=psdir ;; 1086 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1087 psdir=$ac_optarg ;; 1088 1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1090 | -silent | --silent | --silen | --sile | --sil) 1091 silent=yes ;; 1092 1093 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1094 ac_prev=sbindir ;; 1095 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1096 | --sbi=* | --sb=*) 1097 sbindir=$ac_optarg ;; 1098 1099 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1100 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1101 | --sharedst | --shareds | --shared | --share | --shar \ 1102 | --sha | --sh) 1103 ac_prev=sharedstatedir ;; 1104 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1105 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1106 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1107 | --sha=* | --sh=*) 1108 sharedstatedir=$ac_optarg ;; 1109 1110 -site | --site | --sit) 1111 ac_prev=site ;; 1112 -site=* | --site=* | --sit=*) 1113 site=$ac_optarg ;; 1114 1115 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1116 ac_prev=srcdir ;; 1117 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1118 srcdir=$ac_optarg ;; 1119 1120 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1121 | --syscon | --sysco | --sysc | --sys | --sy) 1122 ac_prev=sysconfdir ;; 1123 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1124 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1125 sysconfdir=$ac_optarg ;; 1126 1127 -target | --target | --targe | --targ | --tar | --ta | --t) 1128 ac_prev=target_alias ;; 1129 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1130 target_alias=$ac_optarg ;; 1131 1132 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1133 verbose=yes ;; 1134 1135 -version | --version | --versio | --versi | --vers | -V) 1136 ac_init_version=: ;; 1137 1138 -with-* | --with-*) 1139 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1140 # Reject names that are not valid shell variable names. 1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1142 as_fn_error $? "invalid package name: $ac_useropt" 1143 ac_useropt_orig=$ac_useropt 1144 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1145 case $ac_user_opts in 1146 *" 1147"with_$ac_useropt" 1148"*) ;; 1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1150 ac_unrecognized_sep=', ';; 1151 esac 1152 eval with_$ac_useropt=\$ac_optarg ;; 1153 1154 -without-* | --without-*) 1155 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1156 # Reject names that are not valid shell variable names. 1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1158 as_fn_error $? "invalid package name: $ac_useropt" 1159 ac_useropt_orig=$ac_useropt 1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1161 case $ac_user_opts in 1162 *" 1163"with_$ac_useropt" 1164"*) ;; 1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1166 ac_unrecognized_sep=', ';; 1167 esac 1168 eval with_$ac_useropt=no ;; 1169 1170 --x) 1171 # Obsolete; use --with-x. 1172 with_x=yes ;; 1173 1174 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1175 | --x-incl | --x-inc | --x-in | --x-i) 1176 ac_prev=x_includes ;; 1177 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1178 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1179 x_includes=$ac_optarg ;; 1180 1181 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1182 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1183 ac_prev=x_libraries ;; 1184 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1185 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1186 x_libraries=$ac_optarg ;; 1187 1188 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1189Try \`$0 --help' for more information" 1190 ;; 1191 1192 *=*) 1193 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1194 # Reject names that are not valid shell variable names. 1195 case $ac_envvar in #( 1196 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1197 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1198 esac 1199 eval $ac_envvar=\$ac_optarg 1200 export $ac_envvar ;; 1201 1202 *) 1203 # FIXME: should be removed in autoconf 3.0. 1204 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1205 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1206 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1207 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1208 ;; 1209 1210 esac 1211done 1212 1213if test -n "$ac_prev"; then 1214 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1215 as_fn_error $? "missing argument to $ac_option" 1216fi 1217 1218if test -n "$ac_unrecognized_opts"; then 1219 case $enable_option_checking in 1220 no) ;; 1221 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1222 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1223 esac 1224fi 1225 1226# Check all directory arguments for consistency. 1227for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1228 datadir sysconfdir sharedstatedir localstatedir includedir \ 1229 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1230 libdir localedir mandir 1231do 1232 eval ac_val=\$$ac_var 1233 # Remove trailing slashes. 1234 case $ac_val in 1235 */ ) 1236 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1237 eval $ac_var=\$ac_val;; 1238 esac 1239 # Be sure to have absolute directory names. 1240 case $ac_val in 1241 [\\/$]* | ?:[\\/]* ) continue;; 1242 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1243 esac 1244 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1245done 1246 1247# There might be people who depend on the old broken behavior: `$host' 1248# used to hold the argument of --host etc. 1249# FIXME: To remove some day. 1250build=$build_alias 1251host=$host_alias 1252target=$target_alias 1253 1254# FIXME: To remove some day. 1255if test "x$host_alias" != x; then 1256 if test "x$build_alias" = x; then 1257 cross_compiling=maybe 1258 elif test "x$build_alias" != "x$host_alias"; then 1259 cross_compiling=yes 1260 fi 1261fi 1262 1263ac_tool_prefix= 1264test -n "$host_alias" && ac_tool_prefix=$host_alias- 1265 1266test "$silent" = yes && exec 6>/dev/null 1267 1268 1269ac_pwd=`pwd` && test -n "$ac_pwd" && 1270ac_ls_di=`ls -di .` && 1271ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1272 as_fn_error $? "working directory cannot be determined" 1273test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1274 as_fn_error $? "pwd does not report name of working directory" 1275 1276 1277# Find the source files, if location was not specified. 1278if test -z "$srcdir"; then 1279 ac_srcdir_defaulted=yes 1280 # Try the directory containing this script, then the parent directory. 1281 ac_confdir=`$as_dirname -- "$as_myself" || 1282$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1283 X"$as_myself" : 'X\(//\)[^/]' \| \ 1284 X"$as_myself" : 'X\(//\)$' \| \ 1285 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1286$as_echo X"$as_myself" | 1287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1288 s//\1/ 1289 q 1290 } 1291 /^X\(\/\/\)[^/].*/{ 1292 s//\1/ 1293 q 1294 } 1295 /^X\(\/\/\)$/{ 1296 s//\1/ 1297 q 1298 } 1299 /^X\(\/\).*/{ 1300 s//\1/ 1301 q 1302 } 1303 s/.*/./; q'` 1304 srcdir=$ac_confdir 1305 if test ! -r "$srcdir/$ac_unique_file"; then 1306 srcdir=.. 1307 fi 1308else 1309 ac_srcdir_defaulted=no 1310fi 1311if test ! -r "$srcdir/$ac_unique_file"; then 1312 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1313 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1314fi 1315ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1316ac_abs_confdir=`( 1317 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1318 pwd)` 1319# When building in place, set srcdir=. 1320if test "$ac_abs_confdir" = "$ac_pwd"; then 1321 srcdir=. 1322fi 1323# Remove unnecessary trailing slashes from srcdir. 1324# Double slashes in file names in object file debugging info 1325# mess up M-x gdb in Emacs. 1326case $srcdir in 1327*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1328esac 1329for ac_var in $ac_precious_vars; do 1330 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1331 eval ac_env_${ac_var}_value=\$${ac_var} 1332 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1333 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1334done 1335 1336# 1337# Report the --help message. 1338# 1339if test "$ac_init_help" = "long"; then 1340 # Omit some internal or obsolete options to make the list less imposing. 1341 # This message is too long to be a string in the A/UX 3.1 sh. 1342 cat <<_ACEOF 1343\`configure' configures NormalizInterface package to adapt to many kinds of systems. 1344 1345Usage: $0 [OPTION]... [VAR=VALUE]... 1346 1347To assign environment variables (e.g., CC, CFLAGS...), specify them as 1348VAR=VALUE. See below for descriptions of some of the useful variables. 1349 1350Defaults for the options are specified in brackets. 1351 1352Configuration: 1353 -h, --help display this help and exit 1354 --help=short display options specific to this package 1355 --help=recursive display the short help of all the included packages 1356 -V, --version display version information and exit 1357 -q, --quiet, --silent do not print \`checking ...' messages 1358 --cache-file=FILE cache test results in FILE [disabled] 1359 -C, --config-cache alias for \`--cache-file=config.cache' 1360 -n, --no-create do not create output files 1361 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1362 1363Installation directories: 1364 --prefix=PREFIX install architecture-independent files in PREFIX 1365 [$ac_default_prefix] 1366 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1367 [PREFIX] 1368 1369By default, \`make install' will install all the files in 1370\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1371an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1372for instance \`--prefix=\$HOME'. 1373 1374For better control, use the options below. 1375 1376Fine tuning of the installation directories: 1377 --bindir=DIR user executables [EPREFIX/bin] 1378 --sbindir=DIR system admin executables [EPREFIX/sbin] 1379 --libexecdir=DIR program executables [EPREFIX/libexec] 1380 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1381 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1382 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1383 --libdir=DIR object code libraries [EPREFIX/lib] 1384 --includedir=DIR C header files [PREFIX/include] 1385 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1386 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1387 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1388 --infodir=DIR info documentation [DATAROOTDIR/info] 1389 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1390 --mandir=DIR man documentation [DATAROOTDIR/man] 1391 --docdir=DIR documentation root 1392 [DATAROOTDIR/doc/NormalizInterface] 1393 --htmldir=DIR html documentation [DOCDIR] 1394 --dvidir=DIR dvi documentation [DOCDIR] 1395 --pdfdir=DIR pdf documentation [DOCDIR] 1396 --psdir=DIR ps documentation [DOCDIR] 1397_ACEOF 1398 1399 cat <<\_ACEOF 1400 1401Program names: 1402 --program-prefix=PREFIX prepend PREFIX to installed program names 1403 --program-suffix=SUFFIX append SUFFIX to installed program names 1404 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1405 1406System types: 1407 --build=BUILD configure for building on BUILD [guessed] 1408 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1409_ACEOF 1410fi 1411 1412if test -n "$ac_init_help"; then 1413 case $ac_init_help in 1414 short | recursive ) echo "Configuration of NormalizInterface package:";; 1415 esac 1416 cat <<\_ACEOF 1417 1418Optional Features: 1419 --disable-option-checking ignore unrecognized --enable/--with options 1420 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1421 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1422 --enable-silent-rules less verbose build output (undo: "make V=1") 1423 --disable-silent-rules verbose build output (undo: "make V=0") 1424 --enable-dependency-tracking 1425 do not reject slow dependency extractors 1426 --disable-dependency-tracking 1427 speeds up one-time build 1428 --enable-static[=PKGS] build static libraries [default=no] 1429 --enable-shared[=PKGS] build shared libraries [default=yes] 1430 --enable-fast-install[=PKGS] 1431 optimize for fast installation [default=yes] 1432 --disable-libtool-lock avoid locking (might break parallel builds) 1433 1434Optional Packages: 1435 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1436 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1437 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1438 both] 1439 --with-aix-soname=aix|svr4|both 1440 shared library versioning (aka "SONAME") variant to 1441 provide on AIX, [default=aix]. 1442 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1443 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1444 compiler's sysroot if not specified). 1445 --with-gaproot=<path> specify root of GAP installation 1446 --with-normaliz=<path> specify root of Normaliz installation 1447 1448Some influential environment variables: 1449 CC C compiler command 1450 CFLAGS C compiler flags 1451 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1452 nonstandard directory <lib dir> 1453 LIBS libraries to pass to the linker, e.g. -l<library> 1454 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1455 you have headers in a nonstandard directory <include dir> 1456 CXX C++ compiler command 1457 CXXFLAGS C++ compiler flags 1458 LT_SYS_LIBRARY_PATH 1459 User-defined run-time library search path. 1460 CPP C preprocessor 1461 CXXCPP C++ preprocessor 1462 1463Use these variables to override the choices made by `configure' or to help 1464it to find libraries and programs with nonstandard names/locations. 1465 1466Report bugs to <https://github.com/gap-packages/NormalizInterface/issues>. 1467NormalizInterface home page: <https://gap-packages.github.io/NormalizInterface/>. 1468_ACEOF 1469ac_status=$? 1470fi 1471 1472if test "$ac_init_help" = "recursive"; then 1473 # If there are subdirs, report their specific --help. 1474 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1475 test -d "$ac_dir" || 1476 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1477 continue 1478 ac_builddir=. 1479 1480case "$ac_dir" in 1481.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1482*) 1483 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1484 # A ".." for each directory in $ac_dir_suffix. 1485 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1486 case $ac_top_builddir_sub in 1487 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1488 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1489 esac ;; 1490esac 1491ac_abs_top_builddir=$ac_pwd 1492ac_abs_builddir=$ac_pwd$ac_dir_suffix 1493# for backward compatibility: 1494ac_top_builddir=$ac_top_build_prefix 1495 1496case $srcdir in 1497 .) # We are building in place. 1498 ac_srcdir=. 1499 ac_top_srcdir=$ac_top_builddir_sub 1500 ac_abs_top_srcdir=$ac_pwd ;; 1501 [\\/]* | ?:[\\/]* ) # Absolute name. 1502 ac_srcdir=$srcdir$ac_dir_suffix; 1503 ac_top_srcdir=$srcdir 1504 ac_abs_top_srcdir=$srcdir ;; 1505 *) # Relative name. 1506 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1507 ac_top_srcdir=$ac_top_build_prefix$srcdir 1508 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1509esac 1510ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1511 1512 cd "$ac_dir" || { ac_status=$?; continue; } 1513 # Check for guested configure. 1514 if test -f "$ac_srcdir/configure.gnu"; then 1515 echo && 1516 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1517 elif test -f "$ac_srcdir/configure"; then 1518 echo && 1519 $SHELL "$ac_srcdir/configure" --help=recursive 1520 else 1521 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1522 fi || ac_status=$? 1523 cd "$ac_pwd" || { ac_status=$?; break; } 1524 done 1525fi 1526 1527test -n "$ac_init_help" && exit $ac_status 1528if $ac_init_version; then 1529 cat <<\_ACEOF 1530NormalizInterface configure package 1531generated by GNU Autoconf 2.69 1532 1533Copyright (C) 2012 Free Software Foundation, Inc. 1534This configure script is free software; the Free Software Foundation 1535gives unlimited permission to copy, distribute and modify it. 1536_ACEOF 1537 exit 1538fi 1539 1540## ------------------------ ## 1541## Autoconf initialization. ## 1542## ------------------------ ## 1543 1544# ac_fn_c_try_compile LINENO 1545# -------------------------- 1546# Try to compile conftest.$ac_ext, and return whether this succeeded. 1547ac_fn_c_try_compile () 1548{ 1549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1550 rm -f conftest.$ac_objext 1551 if { { ac_try="$ac_compile" 1552case "(($ac_try" in 1553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1554 *) ac_try_echo=$ac_try;; 1555esac 1556eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1557$as_echo "$ac_try_echo"; } >&5 1558 (eval "$ac_compile") 2>conftest.err 1559 ac_status=$? 1560 if test -s conftest.err; then 1561 grep -v '^ *+' conftest.err >conftest.er1 1562 cat conftest.er1 >&5 1563 mv -f conftest.er1 conftest.err 1564 fi 1565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1566 test $ac_status = 0; } && { 1567 test -z "$ac_c_werror_flag" || 1568 test ! -s conftest.err 1569 } && test -s conftest.$ac_objext; then : 1570 ac_retval=0 1571else 1572 $as_echo "$as_me: failed program was:" >&5 1573sed 's/^/| /' conftest.$ac_ext >&5 1574 1575 ac_retval=1 1576fi 1577 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1578 as_fn_set_status $ac_retval 1579 1580} # ac_fn_c_try_compile 1581 1582# ac_fn_cxx_try_compile LINENO 1583# ---------------------------- 1584# Try to compile conftest.$ac_ext, and return whether this succeeded. 1585ac_fn_cxx_try_compile () 1586{ 1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1588 rm -f conftest.$ac_objext 1589 if { { ac_try="$ac_compile" 1590case "(($ac_try" in 1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1592 *) ac_try_echo=$ac_try;; 1593esac 1594eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1595$as_echo "$ac_try_echo"; } >&5 1596 (eval "$ac_compile") 2>conftest.err 1597 ac_status=$? 1598 if test -s conftest.err; then 1599 grep -v '^ *+' conftest.err >conftest.er1 1600 cat conftest.er1 >&5 1601 mv -f conftest.er1 conftest.err 1602 fi 1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1604 test $ac_status = 0; } && { 1605 test -z "$ac_cxx_werror_flag" || 1606 test ! -s conftest.err 1607 } && test -s conftest.$ac_objext; then : 1608 ac_retval=0 1609else 1610 $as_echo "$as_me: failed program was:" >&5 1611sed 's/^/| /' conftest.$ac_ext >&5 1612 1613 ac_retval=1 1614fi 1615 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1616 as_fn_set_status $ac_retval 1617 1618} # ac_fn_cxx_try_compile 1619 1620# ac_fn_c_try_link LINENO 1621# ----------------------- 1622# Try to link conftest.$ac_ext, and return whether this succeeded. 1623ac_fn_c_try_link () 1624{ 1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1626 rm -f conftest.$ac_objext conftest$ac_exeext 1627 if { { ac_try="$ac_link" 1628case "(($ac_try" in 1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1630 *) ac_try_echo=$ac_try;; 1631esac 1632eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1633$as_echo "$ac_try_echo"; } >&5 1634 (eval "$ac_link") 2>conftest.err 1635 ac_status=$? 1636 if test -s conftest.err; then 1637 grep -v '^ *+' conftest.err >conftest.er1 1638 cat conftest.er1 >&5 1639 mv -f conftest.er1 conftest.err 1640 fi 1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1642 test $ac_status = 0; } && { 1643 test -z "$ac_c_werror_flag" || 1644 test ! -s conftest.err 1645 } && test -s conftest$ac_exeext && { 1646 test "$cross_compiling" = yes || 1647 test -x conftest$ac_exeext 1648 }; then : 1649 ac_retval=0 1650else 1651 $as_echo "$as_me: failed program was:" >&5 1652sed 's/^/| /' conftest.$ac_ext >&5 1653 1654 ac_retval=1 1655fi 1656 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1657 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1658 # interfere with the next link command; also delete a directory that is 1659 # left behind by Apple's compiler. We do this before executing the actions. 1660 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1661 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1662 as_fn_set_status $ac_retval 1663 1664} # ac_fn_c_try_link 1665 1666# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1667# ------------------------------------------------------- 1668# Tests whether HEADER exists and can be compiled using the include files in 1669# INCLUDES, setting the cache variable VAR accordingly. 1670ac_fn_c_check_header_compile () 1671{ 1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1674$as_echo_n "checking for $2... " >&6; } 1675if eval \${$3+:} false; then : 1676 $as_echo_n "(cached) " >&6 1677else 1678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1679/* end confdefs.h. */ 1680$4 1681#include <$2> 1682_ACEOF 1683if ac_fn_c_try_compile "$LINENO"; then : 1684 eval "$3=yes" 1685else 1686 eval "$3=no" 1687fi 1688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1689fi 1690eval ac_res=\$$3 1691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1692$as_echo "$ac_res" >&6; } 1693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1694 1695} # ac_fn_c_check_header_compile 1696 1697# ac_fn_c_try_cpp LINENO 1698# ---------------------- 1699# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1700ac_fn_c_try_cpp () 1701{ 1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1703 if { { ac_try="$ac_cpp conftest.$ac_ext" 1704case "(($ac_try" in 1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1706 *) ac_try_echo=$ac_try;; 1707esac 1708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1709$as_echo "$ac_try_echo"; } >&5 1710 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1711 ac_status=$? 1712 if test -s conftest.err; then 1713 grep -v '^ *+' conftest.err >conftest.er1 1714 cat conftest.er1 >&5 1715 mv -f conftest.er1 conftest.err 1716 fi 1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1718 test $ac_status = 0; } > conftest.i && { 1719 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1720 test ! -s conftest.err 1721 }; then : 1722 ac_retval=0 1723else 1724 $as_echo "$as_me: failed program was:" >&5 1725sed 's/^/| /' conftest.$ac_ext >&5 1726 1727 ac_retval=1 1728fi 1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1730 as_fn_set_status $ac_retval 1731 1732} # ac_fn_c_try_cpp 1733 1734# ac_fn_c_try_run LINENO 1735# ---------------------- 1736# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1737# that executables *can* be run. 1738ac_fn_c_try_run () 1739{ 1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1741 if { { ac_try="$ac_link" 1742case "(($ac_try" in 1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1744 *) ac_try_echo=$ac_try;; 1745esac 1746eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1747$as_echo "$ac_try_echo"; } >&5 1748 (eval "$ac_link") 2>&5 1749 ac_status=$? 1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1751 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1752 { { case "(($ac_try" in 1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1754 *) ac_try_echo=$ac_try;; 1755esac 1756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1757$as_echo "$ac_try_echo"; } >&5 1758 (eval "$ac_try") 2>&5 1759 ac_status=$? 1760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1761 test $ac_status = 0; }; }; then : 1762 ac_retval=0 1763else 1764 $as_echo "$as_me: program exited with status $ac_status" >&5 1765 $as_echo "$as_me: failed program was:" >&5 1766sed 's/^/| /' conftest.$ac_ext >&5 1767 1768 ac_retval=$ac_status 1769fi 1770 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1772 as_fn_set_status $ac_retval 1773 1774} # ac_fn_c_try_run 1775 1776# ac_fn_c_check_func LINENO FUNC VAR 1777# ---------------------------------- 1778# Tests whether FUNC exists, setting the cache variable VAR accordingly 1779ac_fn_c_check_func () 1780{ 1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1783$as_echo_n "checking for $2... " >&6; } 1784if eval \${$3+:} false; then : 1785 $as_echo_n "(cached) " >&6 1786else 1787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1788/* end confdefs.h. */ 1789/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1790 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1791#define $2 innocuous_$2 1792 1793/* System header to define __stub macros and hopefully few prototypes, 1794 which can conflict with char $2 (); below. 1795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1796 <limits.h> exists even on freestanding compilers. */ 1797 1798#ifdef __STDC__ 1799# include <limits.h> 1800#else 1801# include <assert.h> 1802#endif 1803 1804#undef $2 1805 1806/* Override any GCC internal prototype to avoid an error. 1807 Use char because int might match the return type of a GCC 1808 builtin and then its argument prototype would still apply. */ 1809#ifdef __cplusplus 1810extern "C" 1811#endif 1812char $2 (); 1813/* The GNU C library defines this for functions which it implements 1814 to always fail with ENOSYS. Some functions are actually named 1815 something starting with __ and the normal name is an alias. */ 1816#if defined __stub_$2 || defined __stub___$2 1817choke me 1818#endif 1819 1820int 1821main () 1822{ 1823return $2 (); 1824 ; 1825 return 0; 1826} 1827_ACEOF 1828if ac_fn_c_try_link "$LINENO"; then : 1829 eval "$3=yes" 1830else 1831 eval "$3=no" 1832fi 1833rm -f core conftest.err conftest.$ac_objext \ 1834 conftest$ac_exeext conftest.$ac_ext 1835fi 1836eval ac_res=\$$3 1837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1838$as_echo "$ac_res" >&6; } 1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1840 1841} # ac_fn_c_check_func 1842 1843# ac_fn_cxx_try_cpp LINENO 1844# ------------------------ 1845# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1846ac_fn_cxx_try_cpp () 1847{ 1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1849 if { { ac_try="$ac_cpp conftest.$ac_ext" 1850case "(($ac_try" in 1851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1852 *) ac_try_echo=$ac_try;; 1853esac 1854eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1855$as_echo "$ac_try_echo"; } >&5 1856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1857 ac_status=$? 1858 if test -s conftest.err; then 1859 grep -v '^ *+' conftest.err >conftest.er1 1860 cat conftest.er1 >&5 1861 mv -f conftest.er1 conftest.err 1862 fi 1863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1864 test $ac_status = 0; } > conftest.i && { 1865 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1866 test ! -s conftest.err 1867 }; then : 1868 ac_retval=0 1869else 1870 $as_echo "$as_me: failed program was:" >&5 1871sed 's/^/| /' conftest.$ac_ext >&5 1872 1873 ac_retval=1 1874fi 1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1876 as_fn_set_status $ac_retval 1877 1878} # ac_fn_cxx_try_cpp 1879 1880# ac_fn_cxx_try_link LINENO 1881# ------------------------- 1882# Try to link conftest.$ac_ext, and return whether this succeeded. 1883ac_fn_cxx_try_link () 1884{ 1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1886 rm -f conftest.$ac_objext conftest$ac_exeext 1887 if { { ac_try="$ac_link" 1888case "(($ac_try" in 1889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1890 *) ac_try_echo=$ac_try;; 1891esac 1892eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1893$as_echo "$ac_try_echo"; } >&5 1894 (eval "$ac_link") 2>conftest.err 1895 ac_status=$? 1896 if test -s conftest.err; then 1897 grep -v '^ *+' conftest.err >conftest.er1 1898 cat conftest.er1 >&5 1899 mv -f conftest.er1 conftest.err 1900 fi 1901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1902 test $ac_status = 0; } && { 1903 test -z "$ac_cxx_werror_flag" || 1904 test ! -s conftest.err 1905 } && test -s conftest$ac_exeext && { 1906 test "$cross_compiling" = yes || 1907 test -x conftest$ac_exeext 1908 }; then : 1909 ac_retval=0 1910else 1911 $as_echo "$as_me: failed program was:" >&5 1912sed 's/^/| /' conftest.$ac_ext >&5 1913 1914 ac_retval=1 1915fi 1916 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1917 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1918 # interfere with the next link command; also delete a directory that is 1919 # left behind by Apple's compiler. We do this before executing the actions. 1920 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1922 as_fn_set_status $ac_retval 1923 1924} # ac_fn_cxx_try_link 1925 1926# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 1927# --------------------------------------------------------- 1928# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1929# the include files in INCLUDES and setting the cache variable VAR 1930# accordingly. 1931ac_fn_cxx_check_header_mongrel () 1932{ 1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1934 if eval \${$3+:} false; then : 1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1936$as_echo_n "checking for $2... " >&6; } 1937if eval \${$3+:} false; then : 1938 $as_echo_n "(cached) " >&6 1939fi 1940eval ac_res=\$$3 1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1942$as_echo "$ac_res" >&6; } 1943else 1944 # Is the header compilable? 1945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1946$as_echo_n "checking $2 usability... " >&6; } 1947cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1948/* end confdefs.h. */ 1949$4 1950#include <$2> 1951_ACEOF 1952if ac_fn_cxx_try_compile "$LINENO"; then : 1953 ac_header_compiler=yes 1954else 1955 ac_header_compiler=no 1956fi 1957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1959$as_echo "$ac_header_compiler" >&6; } 1960 1961# Is the header present? 1962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1963$as_echo_n "checking $2 presence... " >&6; } 1964cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1965/* end confdefs.h. */ 1966#include <$2> 1967_ACEOF 1968if ac_fn_cxx_try_cpp "$LINENO"; then : 1969 ac_header_preproc=yes 1970else 1971 ac_header_preproc=no 1972fi 1973rm -f conftest.err conftest.i conftest.$ac_ext 1974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1975$as_echo "$ac_header_preproc" >&6; } 1976 1977# So? What about this header? 1978case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 1979 yes:no: ) 1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1981$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1983$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1984 ;; 1985 no:yes:* ) 1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1987$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1989$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1991$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1993$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1995$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1996( $as_echo "## ----------------------------------------------------------------------- ## 1997## Report this to https://github.com/gap-packages/NormalizInterface/issues ## 1998## ----------------------------------------------------------------------- ##" 1999 ) | sed "s/^/$as_me: WARNING: /" >&2 2000 ;; 2001esac 2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2003$as_echo_n "checking for $2... " >&6; } 2004if eval \${$3+:} false; then : 2005 $as_echo_n "(cached) " >&6 2006else 2007 eval "$3=\$ac_header_compiler" 2008fi 2009eval ac_res=\$$3 2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2011$as_echo "$ac_res" >&6; } 2012fi 2013 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2014 2015} # ac_fn_cxx_check_header_mongrel 2016cat >config.log <<_ACEOF 2017This file contains any messages produced by compilers while 2018running configure, to aid debugging if configure makes a mistake. 2019 2020It was created by NormalizInterface $as_me package, which was 2021generated by GNU Autoconf 2.69. Invocation command line was 2022 2023 $ $0 $@ 2024 2025_ACEOF 2026exec 5>>config.log 2027{ 2028cat <<_ASUNAME 2029## --------- ## 2030## Platform. ## 2031## --------- ## 2032 2033hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2034uname -m = `(uname -m) 2>/dev/null || echo unknown` 2035uname -r = `(uname -r) 2>/dev/null || echo unknown` 2036uname -s = `(uname -s) 2>/dev/null || echo unknown` 2037uname -v = `(uname -v) 2>/dev/null || echo unknown` 2038 2039/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2040/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2041 2042/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2043/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2044/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2045/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2046/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2047/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2048/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2049 2050_ASUNAME 2051 2052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2053for as_dir in $PATH 2054do 2055 IFS=$as_save_IFS 2056 test -z "$as_dir" && as_dir=. 2057 $as_echo "PATH: $as_dir" 2058 done 2059IFS=$as_save_IFS 2060 2061} >&5 2062 2063cat >&5 <<_ACEOF 2064 2065 2066## ----------- ## 2067## Core tests. ## 2068## ----------- ## 2069 2070_ACEOF 2071 2072 2073# Keep a trace of the command line. 2074# Strip out --no-create and --no-recursion so they do not pile up. 2075# Strip out --silent because we don't want to record it for future runs. 2076# Also quote any args containing shell meta-characters. 2077# Make two passes to allow for proper duplicate-argument suppression. 2078ac_configure_args= 2079ac_configure_args0= 2080ac_configure_args1= 2081ac_must_keep_next=false 2082for ac_pass in 1 2 2083do 2084 for ac_arg 2085 do 2086 case $ac_arg in 2087 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2089 | -silent | --silent | --silen | --sile | --sil) 2090 continue ;; 2091 *\'*) 2092 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2093 esac 2094 case $ac_pass in 2095 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2096 2) 2097 as_fn_append ac_configure_args1 " '$ac_arg'" 2098 if test $ac_must_keep_next = true; then 2099 ac_must_keep_next=false # Got value, back to normal. 2100 else 2101 case $ac_arg in 2102 *=* | --config-cache | -C | -disable-* | --disable-* \ 2103 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2104 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2105 | -with-* | --with-* | -without-* | --without-* | --x) 2106 case "$ac_configure_args0 " in 2107 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2108 esac 2109 ;; 2110 -* ) ac_must_keep_next=true ;; 2111 esac 2112 fi 2113 as_fn_append ac_configure_args " '$ac_arg'" 2114 ;; 2115 esac 2116 done 2117done 2118{ ac_configure_args0=; unset ac_configure_args0;} 2119{ ac_configure_args1=; unset ac_configure_args1;} 2120 2121# When interrupted or exit'd, cleanup temporary files, and complete 2122# config.log. We remove comments because anyway the quotes in there 2123# would cause problems or look ugly. 2124# WARNING: Use '\'' to represent an apostrophe within the trap. 2125# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2126trap 'exit_status=$? 2127 # Save into config.log some information that might help in debugging. 2128 { 2129 echo 2130 2131 $as_echo "## ---------------- ## 2132## Cache variables. ## 2133## ---------------- ##" 2134 echo 2135 # The following way of writing the cache mishandles newlines in values, 2136( 2137 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2138 eval ac_val=\$$ac_var 2139 case $ac_val in #( 2140 *${as_nl}*) 2141 case $ac_var in #( 2142 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2143$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2144 esac 2145 case $ac_var in #( 2146 _ | IFS | as_nl) ;; #( 2147 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2148 *) { eval $ac_var=; unset $ac_var;} ;; 2149 esac ;; 2150 esac 2151 done 2152 (set) 2>&1 | 2153 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2154 *${as_nl}ac_space=\ *) 2155 sed -n \ 2156 "s/'\''/'\''\\\\'\'''\''/g; 2157 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2158 ;; #( 2159 *) 2160 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2161 ;; 2162 esac | 2163 sort 2164) 2165 echo 2166 2167 $as_echo "## ----------------- ## 2168## Output variables. ## 2169## ----------------- ##" 2170 echo 2171 for ac_var in $ac_subst_vars 2172 do 2173 eval ac_val=\$$ac_var 2174 case $ac_val in 2175 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2176 esac 2177 $as_echo "$ac_var='\''$ac_val'\''" 2178 done | sort 2179 echo 2180 2181 if test -n "$ac_subst_files"; then 2182 $as_echo "## ------------------- ## 2183## File substitutions. ## 2184## ------------------- ##" 2185 echo 2186 for ac_var in $ac_subst_files 2187 do 2188 eval ac_val=\$$ac_var 2189 case $ac_val in 2190 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2191 esac 2192 $as_echo "$ac_var='\''$ac_val'\''" 2193 done | sort 2194 echo 2195 fi 2196 2197 if test -s confdefs.h; then 2198 $as_echo "## ----------- ## 2199## confdefs.h. ## 2200## ----------- ##" 2201 echo 2202 cat confdefs.h 2203 echo 2204 fi 2205 test "$ac_signal" != 0 && 2206 $as_echo "$as_me: caught signal $ac_signal" 2207 $as_echo "$as_me: exit $exit_status" 2208 } >&5 2209 rm -f core *.core core.conftest.* && 2210 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2211 exit $exit_status 2212' 0 2213for ac_signal in 1 2 13 15; do 2214 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2215done 2216ac_signal=0 2217 2218# confdefs.h avoids OS command line length limits that DEFS can exceed. 2219rm -f -r conftest* confdefs.h 2220 2221$as_echo "/* confdefs.h */" > confdefs.h 2222 2223# Predefined preprocessor variables. 2224 2225cat >>confdefs.h <<_ACEOF 2226#define PACKAGE_NAME "$PACKAGE_NAME" 2227_ACEOF 2228 2229cat >>confdefs.h <<_ACEOF 2230#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2231_ACEOF 2232 2233cat >>confdefs.h <<_ACEOF 2234#define PACKAGE_VERSION "$PACKAGE_VERSION" 2235_ACEOF 2236 2237cat >>confdefs.h <<_ACEOF 2238#define PACKAGE_STRING "$PACKAGE_STRING" 2239_ACEOF 2240 2241cat >>confdefs.h <<_ACEOF 2242#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2243_ACEOF 2244 2245cat >>confdefs.h <<_ACEOF 2246#define PACKAGE_URL "$PACKAGE_URL" 2247_ACEOF 2248 2249 2250# Let the site file select an alternate cache file if it wants to. 2251# Prefer an explicitly selected file to automatically selected ones. 2252ac_site_file1=NONE 2253ac_site_file2=NONE 2254if test -n "$CONFIG_SITE"; then 2255 # We do not want a PATH search for config.site. 2256 case $CONFIG_SITE in #(( 2257 -*) ac_site_file1=./$CONFIG_SITE;; 2258 */*) ac_site_file1=$CONFIG_SITE;; 2259 *) ac_site_file1=./$CONFIG_SITE;; 2260 esac 2261elif test "x$prefix" != xNONE; then 2262 ac_site_file1=$prefix/share/config.site 2263 ac_site_file2=$prefix/etc/config.site 2264else 2265 ac_site_file1=$ac_default_prefix/share/config.site 2266 ac_site_file2=$ac_default_prefix/etc/config.site 2267fi 2268for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2269do 2270 test "x$ac_site_file" = xNONE && continue 2271 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2272 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2273$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2274 sed 's/^/| /' "$ac_site_file" >&5 2275 . "$ac_site_file" \ 2276 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2277$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2278as_fn_error $? "failed to load site script $ac_site_file 2279See \`config.log' for more details" "$LINENO" 5; } 2280 fi 2281done 2282 2283if test -r "$cache_file"; then 2284 # Some versions of bash will fail to source /dev/null (special files 2285 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2286 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2287 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2288$as_echo "$as_me: loading cache $cache_file" >&6;} 2289 case $cache_file in 2290 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2291 *) . "./$cache_file";; 2292 esac 2293 fi 2294else 2295 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2296$as_echo "$as_me: creating cache $cache_file" >&6;} 2297 >$cache_file 2298fi 2299 2300# Check that the precious variables saved in the cache have kept the same 2301# value. 2302ac_cache_corrupted=false 2303for ac_var in $ac_precious_vars; do 2304 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2305 eval ac_new_set=\$ac_env_${ac_var}_set 2306 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2307 eval ac_new_val=\$ac_env_${ac_var}_value 2308 case $ac_old_set,$ac_new_set in 2309 set,) 2310 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2311$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2312 ac_cache_corrupted=: ;; 2313 ,set) 2314 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2315$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2316 ac_cache_corrupted=: ;; 2317 ,);; 2318 *) 2319 if test "x$ac_old_val" != "x$ac_new_val"; then 2320 # differences in whitespace do not lead to failure. 2321 ac_old_val_w=`echo x $ac_old_val` 2322 ac_new_val_w=`echo x $ac_new_val` 2323 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2324 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2325$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2326 ac_cache_corrupted=: 2327 else 2328 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2329$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2330 eval $ac_var=\$ac_old_val 2331 fi 2332 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2333$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2334 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2335$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2336 fi;; 2337 esac 2338 # Pass precious variables to config.status. 2339 if test "$ac_new_set" = set; then 2340 case $ac_new_val in 2341 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2342 *) ac_arg=$ac_var=$ac_new_val ;; 2343 esac 2344 case " $ac_configure_args " in 2345 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2346 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2347 esac 2348 fi 2349done 2350if $ac_cache_corrupted; then 2351 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2352$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2353 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2354$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2355 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2356fi 2357## -------------------- ## 2358## Main body of script. ## 2359## -------------------- ## 2360 2361ac_ext=c 2362ac_cpp='$CPP $CPPFLAGS' 2363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2365ac_compiler_gnu=$ac_cv_c_compiler_gnu 2366 2367 2368 2369ac_config_headers="$ac_config_headers src/pkgconfig.h:cnf/pkgconfig.h.in" 2370 2371 2372ac_aux_dir= 2373for ac_dir in cnf "$srcdir"/cnf; do 2374 if test -f "$ac_dir/install-sh"; then 2375 ac_aux_dir=$ac_dir 2376 ac_install_sh="$ac_aux_dir/install-sh -c" 2377 break 2378 elif test -f "$ac_dir/install.sh"; then 2379 ac_aux_dir=$ac_dir 2380 ac_install_sh="$ac_aux_dir/install.sh -c" 2381 break 2382 elif test -f "$ac_dir/shtool"; then 2383 ac_aux_dir=$ac_dir 2384 ac_install_sh="$ac_aux_dir/shtool install -c" 2385 break 2386 fi 2387done 2388if test -z "$ac_aux_dir"; then 2389 as_fn_error $? "cannot find install-sh, install.sh, or shtool in cnf \"$srcdir\"/cnf" "$LINENO" 5 2390fi 2391 2392# These three variables are undocumented and unsupported, 2393# and are intended to be withdrawn in a future Autoconf release. 2394# They can cause serious problems if a builder's source tree is in a directory 2395# whose full name contains unusual characters. 2396ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2397ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2398ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2399 2400 2401 2402# Make sure we can run config.sub. 2403$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2404 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2405 2406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2407$as_echo_n "checking build system type... " >&6; } 2408if ${ac_cv_build+:} false; then : 2409 $as_echo_n "(cached) " >&6 2410else 2411 ac_build_alias=$build_alias 2412test "x$ac_build_alias" = x && 2413 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2414test "x$ac_build_alias" = x && 2415 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2416ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2417 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2418 2419fi 2420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2421$as_echo "$ac_cv_build" >&6; } 2422case $ac_cv_build in 2423*-*-*) ;; 2424*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2425esac 2426build=$ac_cv_build 2427ac_save_IFS=$IFS; IFS='-' 2428set x $ac_cv_build 2429shift 2430build_cpu=$1 2431build_vendor=$2 2432shift; shift 2433# Remember, the first character of IFS is used to create $*, 2434# except with old shells: 2435build_os=$* 2436IFS=$ac_save_IFS 2437case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2438 2439 2440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2441$as_echo_n "checking host system type... " >&6; } 2442if ${ac_cv_host+:} false; then : 2443 $as_echo_n "(cached) " >&6 2444else 2445 if test "x$host_alias" = x; then 2446 ac_cv_host=$ac_cv_build 2447else 2448 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2449 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2450fi 2451 2452fi 2453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2454$as_echo "$ac_cv_host" >&6; } 2455case $ac_cv_host in 2456*-*-*) ;; 2457*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2458esac 2459host=$ac_cv_host 2460ac_save_IFS=$IFS; IFS='-' 2461set x $ac_cv_host 2462shift 2463host_cpu=$1 2464host_vendor=$2 2465shift; shift 2466# Remember, the first character of IFS is used to create $*, 2467# except with old shells: 2468host_os=$* 2469IFS=$ac_save_IFS 2470case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2471 2472 2473 2474am__api_version='1.16' 2475 2476# Find a good install program. We prefer a C program (faster), 2477# so one script is as good as another. But avoid the broken or 2478# incompatible versions: 2479# SysV /etc/install, /usr/sbin/install 2480# SunOS /usr/etc/install 2481# IRIX /sbin/install 2482# AIX /bin/install 2483# AmigaOS /C/install, which installs bootblocks on floppy discs 2484# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2485# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2486# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2487# OS/2's system install, which has a completely different semantic 2488# ./install, which can be erroneously created by make from ./install.sh. 2489# Reject install programs that cannot install multiple files. 2490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2491$as_echo_n "checking for a BSD-compatible install... " >&6; } 2492if test -z "$INSTALL"; then 2493if ${ac_cv_path_install+:} false; then : 2494 $as_echo_n "(cached) " >&6 2495else 2496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2497for as_dir in $PATH 2498do 2499 IFS=$as_save_IFS 2500 test -z "$as_dir" && as_dir=. 2501 # Account for people who put trailing slashes in PATH elements. 2502case $as_dir/ in #(( 2503 ./ | .// | /[cC]/* | \ 2504 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2505 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2506 /usr/ucb/* ) ;; 2507 *) 2508 # OSF1 and SCO ODT 3.0 have their own names for install. 2509 # Don't use installbsd from OSF since it installs stuff as root 2510 # by default. 2511 for ac_prog in ginstall scoinst install; do 2512 for ac_exec_ext in '' $ac_executable_extensions; do 2513 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2514 if test $ac_prog = install && 2515 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2516 # AIX install. It has an incompatible calling convention. 2517 : 2518 elif test $ac_prog = install && 2519 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2520 # program-specific install script used by HP pwplus--don't use. 2521 : 2522 else 2523 rm -rf conftest.one conftest.two conftest.dir 2524 echo one > conftest.one 2525 echo two > conftest.two 2526 mkdir conftest.dir 2527 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2528 test -s conftest.one && test -s conftest.two && 2529 test -s conftest.dir/conftest.one && 2530 test -s conftest.dir/conftest.two 2531 then 2532 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2533 break 3 2534 fi 2535 fi 2536 fi 2537 done 2538 done 2539 ;; 2540esac 2541 2542 done 2543IFS=$as_save_IFS 2544 2545rm -rf conftest.one conftest.two conftest.dir 2546 2547fi 2548 if test "${ac_cv_path_install+set}" = set; then 2549 INSTALL=$ac_cv_path_install 2550 else 2551 # As a last resort, use the slow shell script. Don't cache a 2552 # value for INSTALL within a source directory, because that will 2553 # break other packages using the cache if that directory is 2554 # removed, or if the value is a relative name. 2555 INSTALL=$ac_install_sh 2556 fi 2557fi 2558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2559$as_echo "$INSTALL" >&6; } 2560 2561# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2562# It thinks the first close brace ends the variable substitution. 2563test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2564 2565test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2566 2567test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2568 2569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2570$as_echo_n "checking whether build environment is sane... " >&6; } 2571# Reject unsafe characters in $srcdir or the absolute working directory 2572# name. Accept space and tab only in the latter. 2573am_lf=' 2574' 2575case `pwd` in 2576 *[\\\"\#\$\&\'\`$am_lf]*) 2577 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2578esac 2579case $srcdir in 2580 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2581 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2582esac 2583 2584# Do 'set' in a subshell so we don't clobber the current shell's 2585# arguments. Must try -L first in case configure is actually a 2586# symlink; some systems play weird games with the mod time of symlinks 2587# (eg FreeBSD returns the mod time of the symlink's containing 2588# directory). 2589if ( 2590 am_has_slept=no 2591 for am_try in 1 2; do 2592 echo "timestamp, slept: $am_has_slept" > conftest.file 2593 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2594 if test "$*" = "X"; then 2595 # -L didn't work. 2596 set X `ls -t "$srcdir/configure" conftest.file` 2597 fi 2598 if test "$*" != "X $srcdir/configure conftest.file" \ 2599 && test "$*" != "X conftest.file $srcdir/configure"; then 2600 2601 # If neither matched, then we have a broken ls. This can happen 2602 # if, for instance, CONFIG_SHELL is bash and it inherits a 2603 # broken ls alias from the environment. This has actually 2604 # happened. Such a system could not be considered "sane". 2605 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2606 alias in your environment" "$LINENO" 5 2607 fi 2608 if test "$2" = conftest.file || test $am_try -eq 2; then 2609 break 2610 fi 2611 # Just in case. 2612 sleep 1 2613 am_has_slept=yes 2614 done 2615 test "$2" = conftest.file 2616 ) 2617then 2618 # Ok. 2619 : 2620else 2621 as_fn_error $? "newly created file is older than distributed files! 2622Check your system clock" "$LINENO" 5 2623fi 2624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2625$as_echo "yes" >&6; } 2626# If we didn't sleep, we still need to ensure time stamps of config.status and 2627# generated files are strictly newer. 2628am_sleep_pid= 2629if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2630 ( sleep 1 ) & 2631 am_sleep_pid=$! 2632fi 2633 2634rm -f conftest.file 2635 2636test "$program_prefix" != NONE && 2637 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2638# Use a double $ so make ignores it. 2639test "$program_suffix" != NONE && 2640 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2641# Double any \ or $. 2642# By default was `s,x,x', remove it if useless. 2643ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2644program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2645 2646# Expand $ac_aux_dir to an absolute path. 2647am_aux_dir=`cd "$ac_aux_dir" && pwd` 2648 2649if test x"${MISSING+set}" != xset; then 2650 case $am_aux_dir in 2651 *\ * | *\ *) 2652 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2653 *) 2654 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2655 esac 2656fi 2657# Use eval to expand $SHELL 2658if eval "$MISSING --is-lightweight"; then 2659 am_missing_run="$MISSING " 2660else 2661 am_missing_run= 2662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2663$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2664fi 2665 2666if test x"${install_sh+set}" != xset; then 2667 case $am_aux_dir in 2668 *\ * | *\ *) 2669 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2670 *) 2671 install_sh="\${SHELL} $am_aux_dir/install-sh" 2672 esac 2673fi 2674 2675# Installed binaries are usually stripped using 'strip' when the user 2676# run "make install-strip". However 'strip' might not be the right 2677# tool to use in cross-compilation environments, therefore Automake 2678# will honor the 'STRIP' environment variable to overrule this program. 2679if test "$cross_compiling" != no; then 2680 if test -n "$ac_tool_prefix"; then 2681 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2682set dummy ${ac_tool_prefix}strip; ac_word=$2 2683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2684$as_echo_n "checking for $ac_word... " >&6; } 2685if ${ac_cv_prog_STRIP+:} false; then : 2686 $as_echo_n "(cached) " >&6 2687else 2688 if test -n "$STRIP"; then 2689 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2690else 2691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2692for as_dir in $PATH 2693do 2694 IFS=$as_save_IFS 2695 test -z "$as_dir" && as_dir=. 2696 for ac_exec_ext in '' $ac_executable_extensions; do 2697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2698 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2700 break 2 2701 fi 2702done 2703 done 2704IFS=$as_save_IFS 2705 2706fi 2707fi 2708STRIP=$ac_cv_prog_STRIP 2709if test -n "$STRIP"; then 2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2711$as_echo "$STRIP" >&6; } 2712else 2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2714$as_echo "no" >&6; } 2715fi 2716 2717 2718fi 2719if test -z "$ac_cv_prog_STRIP"; then 2720 ac_ct_STRIP=$STRIP 2721 # Extract the first word of "strip", so it can be a program name with args. 2722set dummy strip; ac_word=$2 2723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2724$as_echo_n "checking for $ac_word... " >&6; } 2725if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2726 $as_echo_n "(cached) " >&6 2727else 2728 if test -n "$ac_ct_STRIP"; then 2729 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2730else 2731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2732for as_dir in $PATH 2733do 2734 IFS=$as_save_IFS 2735 test -z "$as_dir" && as_dir=. 2736 for ac_exec_ext in '' $ac_executable_extensions; do 2737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2738 ac_cv_prog_ac_ct_STRIP="strip" 2739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2740 break 2 2741 fi 2742done 2743 done 2744IFS=$as_save_IFS 2745 2746fi 2747fi 2748ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2749if test -n "$ac_ct_STRIP"; then 2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2751$as_echo "$ac_ct_STRIP" >&6; } 2752else 2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2754$as_echo "no" >&6; } 2755fi 2756 2757 if test "x$ac_ct_STRIP" = x; then 2758 STRIP=":" 2759 else 2760 case $cross_compiling:$ac_tool_warned in 2761yes:) 2762{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2763$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2764ac_tool_warned=yes ;; 2765esac 2766 STRIP=$ac_ct_STRIP 2767 fi 2768else 2769 STRIP="$ac_cv_prog_STRIP" 2770fi 2771 2772fi 2773INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2774 2775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2776$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2777if test -z "$MKDIR_P"; then 2778 if ${ac_cv_path_mkdir+:} false; then : 2779 $as_echo_n "(cached) " >&6 2780else 2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2782for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2783do 2784 IFS=$as_save_IFS 2785 test -z "$as_dir" && as_dir=. 2786 for ac_prog in mkdir gmkdir; do 2787 for ac_exec_ext in '' $ac_executable_extensions; do 2788 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2789 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2790 'mkdir (GNU coreutils) '* | \ 2791 'mkdir (coreutils) '* | \ 2792 'mkdir (fileutils) '4.1*) 2793 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2794 break 3;; 2795 esac 2796 done 2797 done 2798 done 2799IFS=$as_save_IFS 2800 2801fi 2802 2803 test -d ./--version && rmdir ./--version 2804 if test "${ac_cv_path_mkdir+set}" = set; then 2805 MKDIR_P="$ac_cv_path_mkdir -p" 2806 else 2807 # As a last resort, use the slow shell script. Don't cache a 2808 # value for MKDIR_P within a source directory, because that will 2809 # break other packages using the cache if that directory is 2810 # removed, or if the value is a relative name. 2811 MKDIR_P="$ac_install_sh -d" 2812 fi 2813fi 2814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2815$as_echo "$MKDIR_P" >&6; } 2816 2817for ac_prog in gawk mawk nawk awk 2818do 2819 # Extract the first word of "$ac_prog", so it can be a program name with args. 2820set dummy $ac_prog; ac_word=$2 2821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2822$as_echo_n "checking for $ac_word... " >&6; } 2823if ${ac_cv_prog_AWK+:} false; then : 2824 $as_echo_n "(cached) " >&6 2825else 2826 if test -n "$AWK"; then 2827 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2828else 2829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2830for as_dir in $PATH 2831do 2832 IFS=$as_save_IFS 2833 test -z "$as_dir" && as_dir=. 2834 for ac_exec_ext in '' $ac_executable_extensions; do 2835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2836 ac_cv_prog_AWK="$ac_prog" 2837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2838 break 2 2839 fi 2840done 2841 done 2842IFS=$as_save_IFS 2843 2844fi 2845fi 2846AWK=$ac_cv_prog_AWK 2847if test -n "$AWK"; then 2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2849$as_echo "$AWK" >&6; } 2850else 2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2852$as_echo "no" >&6; } 2853fi 2854 2855 2856 test -n "$AWK" && break 2857done 2858 2859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2860$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2861set x ${MAKE-make} 2862ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2863if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2864 $as_echo_n "(cached) " >&6 2865else 2866 cat >conftest.make <<\_ACEOF 2867SHELL = /bin/sh 2868all: 2869 @echo '@@@%%%=$(MAKE)=@@@%%%' 2870_ACEOF 2871# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2872case `${MAKE-make} -f conftest.make 2>/dev/null` in 2873 *@@@%%%=?*=@@@%%%*) 2874 eval ac_cv_prog_make_${ac_make}_set=yes;; 2875 *) 2876 eval ac_cv_prog_make_${ac_make}_set=no;; 2877esac 2878rm -f conftest.make 2879fi 2880if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2882$as_echo "yes" >&6; } 2883 SET_MAKE= 2884else 2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2886$as_echo "no" >&6; } 2887 SET_MAKE="MAKE=${MAKE-make}" 2888fi 2889 2890rm -rf .tst 2>/dev/null 2891mkdir .tst 2>/dev/null 2892if test -d .tst; then 2893 am__leading_dot=. 2894else 2895 am__leading_dot=_ 2896fi 2897rmdir .tst 2>/dev/null 2898 2899# Check whether --enable-silent-rules was given. 2900if test "${enable_silent_rules+set}" = set; then : 2901 enableval=$enable_silent_rules; 2902fi 2903 2904case $enable_silent_rules in # ((( 2905 yes) AM_DEFAULT_VERBOSITY=0;; 2906 no) AM_DEFAULT_VERBOSITY=1;; 2907 *) AM_DEFAULT_VERBOSITY=1;; 2908esac 2909am_make=${MAKE-make} 2910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2911$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2912if ${am_cv_make_support_nested_variables+:} false; then : 2913 $as_echo_n "(cached) " >&6 2914else 2915 if $as_echo 'TRUE=$(BAR$(V)) 2916BAR0=false 2917BAR1=true 2918V=1 2919am__doit: 2920 @$(TRUE) 2921.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2922 am_cv_make_support_nested_variables=yes 2923else 2924 am_cv_make_support_nested_variables=no 2925fi 2926fi 2927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2928$as_echo "$am_cv_make_support_nested_variables" >&6; } 2929if test $am_cv_make_support_nested_variables = yes; then 2930 AM_V='$(V)' 2931 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2932else 2933 AM_V=$AM_DEFAULT_VERBOSITY 2934 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2935fi 2936AM_BACKSLASH='\' 2937 2938if test "`cd $srcdir && pwd`" != "`pwd`"; then 2939 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2940 # is not polluted with repeated "-I." 2941 am__isrc=' -I$(srcdir)' 2942 # test to see if srcdir already configured 2943 if test -f $srcdir/config.status; then 2944 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2945 fi 2946fi 2947 2948# test whether we have cygpath 2949if test -z "$CYGPATH_W"; then 2950 if (cygpath --version) >/dev/null 2>/dev/null; then 2951 CYGPATH_W='cygpath -w' 2952 else 2953 CYGPATH_W=echo 2954 fi 2955fi 2956 2957 2958# Define the identity of the package. 2959 PACKAGE='NormalizInterface' 2960 VERSION='package' 2961 2962 2963cat >>confdefs.h <<_ACEOF 2964#define PACKAGE "$PACKAGE" 2965_ACEOF 2966 2967 2968cat >>confdefs.h <<_ACEOF 2969#define VERSION "$VERSION" 2970_ACEOF 2971 2972# Some tools Automake needs. 2973 2974ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2975 2976 2977AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2978 2979 2980AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2981 2982 2983AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2984 2985 2986MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2987 2988# For better backward compatibility. To be removed once Automake 1.9.x 2989# dies out for good. For more background, see: 2990# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2991# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2992mkdir_p='$(MKDIR_P)' 2993 2994# We need awk for the "check" target (and possibly the TAP driver). The 2995# system "awk" is bad on some platforms. 2996# Always define AMTAR for backward compatibility. Yes, it's still used 2997# in the wild :-( We should find a proper way to deprecate it ... 2998AMTAR='$${TAR-tar}' 2999 3000 3001# We'll loop over all known methods to create a tar archive until one works. 3002_am_tools='gnutar pax cpio none' 3003 3004am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3005 3006 3007 3008 3009 3010 3011# POSIX will say in a future version that running "rm -f" with no argument 3012# is OK; and we want to be able to make that assumption in our Makefile 3013# recipes. So use an aggressive probe to check that the usage we want is 3014# actually supported "in the wild" to an acceptable degree. 3015# See automake bug#10828. 3016# To make any issue more visible, cause the running configure to be aborted 3017# by default if the 'rm' program in use doesn't match our expectations; the 3018# user can still override this though. 3019if rm -f && rm -fr && rm -rf; then : OK; else 3020 cat >&2 <<'END' 3021Oops! 3022 3023Your 'rm' program seems unable to run without file operands specified 3024on the command line, even when the '-f' option is present. This is contrary 3025to the behaviour of most rm programs out there, and not conforming with 3026the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3027 3028Please tell bug-automake@gnu.org about your system, including the value 3029of your $PATH and any error possibly output before this message. This 3030can help us improve future automake versions. 3031 3032END 3033 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3034 echo 'Configuration will proceed anyway, since you have set the' >&2 3035 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3036 echo >&2 3037 else 3038 cat >&2 <<'END' 3039Aborting the configuration process, to ensure you take notice of the issue. 3040 3041You can download and install GNU coreutils to get an 'rm' implementation 3042that behaves properly: <https://www.gnu.org/software/coreutils/>. 3043 3044If you want to complete the configuration process using your problematic 3045'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3046to "yes", and re-run configure. 3047 3048END 3049 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3050 fi 3051fi 3052 3053# Check whether --enable-silent-rules was given. 3054if test "${enable_silent_rules+set}" = set; then : 3055 enableval=$enable_silent_rules; 3056fi 3057 3058case $enable_silent_rules in # ((( 3059 yes) AM_DEFAULT_VERBOSITY=0;; 3060 no) AM_DEFAULT_VERBOSITY=1;; 3061 *) AM_DEFAULT_VERBOSITY=0;; 3062esac 3063am_make=${MAKE-make} 3064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3065$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3066if ${am_cv_make_support_nested_variables+:} false; then : 3067 $as_echo_n "(cached) " >&6 3068else 3069 if $as_echo 'TRUE=$(BAR$(V)) 3070BAR0=false 3071BAR1=true 3072V=1 3073am__doit: 3074 @$(TRUE) 3075.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3076 am_cv_make_support_nested_variables=yes 3077else 3078 am_cv_make_support_nested_variables=no 3079fi 3080fi 3081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3082$as_echo "$am_cv_make_support_nested_variables" >&6; } 3083if test $am_cv_make_support_nested_variables = yes; then 3084 AM_V='$(V)' 3085 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3086else 3087 AM_V=$AM_DEFAULT_VERBOSITY 3088 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3089fi 3090AM_BACKSLASH='\' 3091 3092DEPDIR="${am__leading_dot}deps" 3093 3094ac_config_commands="$ac_config_commands depfiles" 3095 3096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3097$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3098cat > confinc.mk << 'END' 3099am__doit: 3100 @echo this is the am__doit target >confinc.out 3101.PHONY: am__doit 3102END 3103am__include="#" 3104am__quote= 3105# BSD make does it like this. 3106echo '.include "confinc.mk" # ignored' > confmf.BSD 3107# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3108echo 'include confinc.mk # ignored' > confmf.GNU 3109_am_result=no 3110for s in GNU BSD; do 3111 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3112 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3113 ac_status=$? 3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3115 (exit $ac_status); } 3116 case $?:`cat confinc.out 2>/dev/null` in #( 3117 '0:this is the am__doit target') : 3118 case $s in #( 3119 BSD) : 3120 am__include='.include' am__quote='"' ;; #( 3121 *) : 3122 am__include='include' am__quote='' ;; 3123esac ;; #( 3124 *) : 3125 ;; 3126esac 3127 if test "$am__include" != "#"; then 3128 _am_result="yes ($s style)" 3129 break 3130 fi 3131done 3132rm -f confinc.* confmf.* 3133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3134$as_echo "${_am_result}" >&6; } 3135 3136# Check whether --enable-dependency-tracking was given. 3137if test "${enable_dependency_tracking+set}" = set; then : 3138 enableval=$enable_dependency_tracking; 3139fi 3140 3141if test "x$enable_dependency_tracking" != xno; then 3142 am_depcomp="$ac_aux_dir/depcomp" 3143 AMDEPBACKSLASH='\' 3144 am__nodep='_no' 3145fi 3146 if test "x$enable_dependency_tracking" != xno; then 3147 AMDEP_TRUE= 3148 AMDEP_FALSE='#' 3149else 3150 AMDEP_TRUE='#' 3151 AMDEP_FALSE= 3152fi 3153 3154 3155ac_ext=c 3156ac_cpp='$CPP $CPPFLAGS' 3157ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3158ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3159ac_compiler_gnu=$ac_cv_c_compiler_gnu 3160if test -n "$ac_tool_prefix"; then 3161 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3162set dummy ${ac_tool_prefix}gcc; ac_word=$2 3163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3164$as_echo_n "checking for $ac_word... " >&6; } 3165if ${ac_cv_prog_CC+:} false; then : 3166 $as_echo_n "(cached) " >&6 3167else 3168 if test -n "$CC"; then 3169 ac_cv_prog_CC="$CC" # Let the user override the test. 3170else 3171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3172for as_dir in $PATH 3173do 3174 IFS=$as_save_IFS 3175 test -z "$as_dir" && as_dir=. 3176 for ac_exec_ext in '' $ac_executable_extensions; do 3177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3178 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3180 break 2 3181 fi 3182done 3183 done 3184IFS=$as_save_IFS 3185 3186fi 3187fi 3188CC=$ac_cv_prog_CC 3189if test -n "$CC"; then 3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3191$as_echo "$CC" >&6; } 3192else 3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3194$as_echo "no" >&6; } 3195fi 3196 3197 3198fi 3199if test -z "$ac_cv_prog_CC"; then 3200 ac_ct_CC=$CC 3201 # Extract the first word of "gcc", so it can be a program name with args. 3202set dummy gcc; ac_word=$2 3203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3204$as_echo_n "checking for $ac_word... " >&6; } 3205if ${ac_cv_prog_ac_ct_CC+:} false; then : 3206 $as_echo_n "(cached) " >&6 3207else 3208 if test -n "$ac_ct_CC"; then 3209 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3210else 3211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3212for as_dir in $PATH 3213do 3214 IFS=$as_save_IFS 3215 test -z "$as_dir" && as_dir=. 3216 for ac_exec_ext in '' $ac_executable_extensions; do 3217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3218 ac_cv_prog_ac_ct_CC="gcc" 3219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3220 break 2 3221 fi 3222done 3223 done 3224IFS=$as_save_IFS 3225 3226fi 3227fi 3228ac_ct_CC=$ac_cv_prog_ac_ct_CC 3229if test -n "$ac_ct_CC"; then 3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3231$as_echo "$ac_ct_CC" >&6; } 3232else 3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3234$as_echo "no" >&6; } 3235fi 3236 3237 if test "x$ac_ct_CC" = x; then 3238 CC="" 3239 else 3240 case $cross_compiling:$ac_tool_warned in 3241yes:) 3242{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3243$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3244ac_tool_warned=yes ;; 3245esac 3246 CC=$ac_ct_CC 3247 fi 3248else 3249 CC="$ac_cv_prog_CC" 3250fi 3251 3252if test -z "$CC"; then 3253 if test -n "$ac_tool_prefix"; then 3254 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3255set dummy ${ac_tool_prefix}cc; ac_word=$2 3256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3257$as_echo_n "checking for $ac_word... " >&6; } 3258if ${ac_cv_prog_CC+:} false; then : 3259 $as_echo_n "(cached) " >&6 3260else 3261 if test -n "$CC"; then 3262 ac_cv_prog_CC="$CC" # Let the user override the test. 3263else 3264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3265for as_dir in $PATH 3266do 3267 IFS=$as_save_IFS 3268 test -z "$as_dir" && as_dir=. 3269 for ac_exec_ext in '' $ac_executable_extensions; do 3270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3271 ac_cv_prog_CC="${ac_tool_prefix}cc" 3272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3273 break 2 3274 fi 3275done 3276 done 3277IFS=$as_save_IFS 3278 3279fi 3280fi 3281CC=$ac_cv_prog_CC 3282if test -n "$CC"; then 3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3284$as_echo "$CC" >&6; } 3285else 3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3287$as_echo "no" >&6; } 3288fi 3289 3290 3291 fi 3292fi 3293if test -z "$CC"; then 3294 # Extract the first word of "cc", so it can be a program name with args. 3295set dummy cc; ac_word=$2 3296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3297$as_echo_n "checking for $ac_word... " >&6; } 3298if ${ac_cv_prog_CC+:} false; then : 3299 $as_echo_n "(cached) " >&6 3300else 3301 if test -n "$CC"; then 3302 ac_cv_prog_CC="$CC" # Let the user override the test. 3303else 3304 ac_prog_rejected=no 3305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3306for as_dir in $PATH 3307do 3308 IFS=$as_save_IFS 3309 test -z "$as_dir" && as_dir=. 3310 for ac_exec_ext in '' $ac_executable_extensions; do 3311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3312 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3313 ac_prog_rejected=yes 3314 continue 3315 fi 3316 ac_cv_prog_CC="cc" 3317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3318 break 2 3319 fi 3320done 3321 done 3322IFS=$as_save_IFS 3323 3324if test $ac_prog_rejected = yes; then 3325 # We found a bogon in the path, so make sure we never use it. 3326 set dummy $ac_cv_prog_CC 3327 shift 3328 if test $# != 0; then 3329 # We chose a different compiler from the bogus one. 3330 # However, it has the same basename, so the bogon will be chosen 3331 # first if we set CC to just the basename; use the full file name. 3332 shift 3333 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3334 fi 3335fi 3336fi 3337fi 3338CC=$ac_cv_prog_CC 3339if test -n "$CC"; then 3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3341$as_echo "$CC" >&6; } 3342else 3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3344$as_echo "no" >&6; } 3345fi 3346 3347 3348fi 3349if test -z "$CC"; then 3350 if test -n "$ac_tool_prefix"; then 3351 for ac_prog in cl.exe 3352 do 3353 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3354set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3356$as_echo_n "checking for $ac_word... " >&6; } 3357if ${ac_cv_prog_CC+:} false; then : 3358 $as_echo_n "(cached) " >&6 3359else 3360 if test -n "$CC"; then 3361 ac_cv_prog_CC="$CC" # Let the user override the test. 3362else 3363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3364for as_dir in $PATH 3365do 3366 IFS=$as_save_IFS 3367 test -z "$as_dir" && as_dir=. 3368 for ac_exec_ext in '' $ac_executable_extensions; do 3369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3370 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3372 break 2 3373 fi 3374done 3375 done 3376IFS=$as_save_IFS 3377 3378fi 3379fi 3380CC=$ac_cv_prog_CC 3381if test -n "$CC"; then 3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3383$as_echo "$CC" >&6; } 3384else 3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3386$as_echo "no" >&6; } 3387fi 3388 3389 3390 test -n "$CC" && break 3391 done 3392fi 3393if test -z "$CC"; then 3394 ac_ct_CC=$CC 3395 for ac_prog in cl.exe 3396do 3397 # Extract the first word of "$ac_prog", so it can be a program name with args. 3398set dummy $ac_prog; ac_word=$2 3399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3400$as_echo_n "checking for $ac_word... " >&6; } 3401if ${ac_cv_prog_ac_ct_CC+:} false; then : 3402 $as_echo_n "(cached) " >&6 3403else 3404 if test -n "$ac_ct_CC"; then 3405 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3406else 3407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3408for as_dir in $PATH 3409do 3410 IFS=$as_save_IFS 3411 test -z "$as_dir" && as_dir=. 3412 for ac_exec_ext in '' $ac_executable_extensions; do 3413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3414 ac_cv_prog_ac_ct_CC="$ac_prog" 3415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3416 break 2 3417 fi 3418done 3419 done 3420IFS=$as_save_IFS 3421 3422fi 3423fi 3424ac_ct_CC=$ac_cv_prog_ac_ct_CC 3425if test -n "$ac_ct_CC"; then 3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3427$as_echo "$ac_ct_CC" >&6; } 3428else 3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3430$as_echo "no" >&6; } 3431fi 3432 3433 3434 test -n "$ac_ct_CC" && break 3435done 3436 3437 if test "x$ac_ct_CC" = x; then 3438 CC="" 3439 else 3440 case $cross_compiling:$ac_tool_warned in 3441yes:) 3442{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3443$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3444ac_tool_warned=yes ;; 3445esac 3446 CC=$ac_ct_CC 3447 fi 3448fi 3449 3450fi 3451 3452 3453test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3454$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3455as_fn_error $? "no acceptable C compiler found in \$PATH 3456See \`config.log' for more details" "$LINENO" 5; } 3457 3458# Provide some information about the compiler. 3459$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3460set X $ac_compile 3461ac_compiler=$2 3462for ac_option in --version -v -V -qversion; do 3463 { { ac_try="$ac_compiler $ac_option >&5" 3464case "(($ac_try" in 3465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3466 *) ac_try_echo=$ac_try;; 3467esac 3468eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3469$as_echo "$ac_try_echo"; } >&5 3470 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3471 ac_status=$? 3472 if test -s conftest.err; then 3473 sed '10a\ 3474... rest of stderr output deleted ... 3475 10q' conftest.err >conftest.er1 3476 cat conftest.er1 >&5 3477 fi 3478 rm -f conftest.er1 conftest.err 3479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3480 test $ac_status = 0; } 3481done 3482 3483cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3484/* end confdefs.h. */ 3485 3486int 3487main () 3488{ 3489 3490 ; 3491 return 0; 3492} 3493_ACEOF 3494ac_clean_files_save=$ac_clean_files 3495ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3496# Try to create an executable without -o first, disregard a.out. 3497# It will help us diagnose broken compilers, and finding out an intuition 3498# of exeext. 3499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3500$as_echo_n "checking whether the C compiler works... " >&6; } 3501ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3502 3503# The possible output files: 3504ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3505 3506ac_rmfiles= 3507for ac_file in $ac_files 3508do 3509 case $ac_file in 3510 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3511 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3512 esac 3513done 3514rm -f $ac_rmfiles 3515 3516if { { ac_try="$ac_link_default" 3517case "(($ac_try" in 3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3519 *) ac_try_echo=$ac_try;; 3520esac 3521eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3522$as_echo "$ac_try_echo"; } >&5 3523 (eval "$ac_link_default") 2>&5 3524 ac_status=$? 3525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3526 test $ac_status = 0; }; then : 3527 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3528# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3529# in a Makefile. We should not override ac_cv_exeext if it was cached, 3530# so that the user can short-circuit this test for compilers unknown to 3531# Autoconf. 3532for ac_file in $ac_files '' 3533do 3534 test -f "$ac_file" || continue 3535 case $ac_file in 3536 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3537 ;; 3538 [ab].out ) 3539 # We found the default executable, but exeext='' is most 3540 # certainly right. 3541 break;; 3542 *.* ) 3543 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3544 then :; else 3545 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3546 fi 3547 # We set ac_cv_exeext here because the later test for it is not 3548 # safe: cross compilers may not add the suffix if given an `-o' 3549 # argument, so we may need to know it at that point already. 3550 # Even if this section looks crufty: it has the advantage of 3551 # actually working. 3552 break;; 3553 * ) 3554 break;; 3555 esac 3556done 3557test "$ac_cv_exeext" = no && ac_cv_exeext= 3558 3559else 3560 ac_file='' 3561fi 3562if test -z "$ac_file"; then : 3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3564$as_echo "no" >&6; } 3565$as_echo "$as_me: failed program was:" >&5 3566sed 's/^/| /' conftest.$ac_ext >&5 3567 3568{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3569$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3570as_fn_error 77 "C compiler cannot create executables 3571See \`config.log' for more details" "$LINENO" 5; } 3572else 3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3574$as_echo "yes" >&6; } 3575fi 3576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3577$as_echo_n "checking for C compiler default output file name... " >&6; } 3578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3579$as_echo "$ac_file" >&6; } 3580ac_exeext=$ac_cv_exeext 3581 3582rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3583ac_clean_files=$ac_clean_files_save 3584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3585$as_echo_n "checking for suffix of executables... " >&6; } 3586if { { ac_try="$ac_link" 3587case "(($ac_try" in 3588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3589 *) ac_try_echo=$ac_try;; 3590esac 3591eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3592$as_echo "$ac_try_echo"; } >&5 3593 (eval "$ac_link") 2>&5 3594 ac_status=$? 3595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3596 test $ac_status = 0; }; then : 3597 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3598# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3599# work properly (i.e., refer to `conftest.exe'), while it won't with 3600# `rm'. 3601for ac_file in conftest.exe conftest conftest.*; do 3602 test -f "$ac_file" || continue 3603 case $ac_file in 3604 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3605 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3606 break;; 3607 * ) break;; 3608 esac 3609done 3610else 3611 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3612$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3613as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3614See \`config.log' for more details" "$LINENO" 5; } 3615fi 3616rm -f conftest conftest$ac_cv_exeext 3617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3618$as_echo "$ac_cv_exeext" >&6; } 3619 3620rm -f conftest.$ac_ext 3621EXEEXT=$ac_cv_exeext 3622ac_exeext=$EXEEXT 3623cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3624/* end confdefs.h. */ 3625#include <stdio.h> 3626int 3627main () 3628{ 3629FILE *f = fopen ("conftest.out", "w"); 3630 return ferror (f) || fclose (f) != 0; 3631 3632 ; 3633 return 0; 3634} 3635_ACEOF 3636ac_clean_files="$ac_clean_files conftest.out" 3637# Check that the compiler produces executables we can run. If not, either 3638# the compiler is broken, or we cross compile. 3639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3640$as_echo_n "checking whether we are cross compiling... " >&6; } 3641if test "$cross_compiling" != yes; then 3642 { { ac_try="$ac_link" 3643case "(($ac_try" in 3644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3645 *) ac_try_echo=$ac_try;; 3646esac 3647eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3648$as_echo "$ac_try_echo"; } >&5 3649 (eval "$ac_link") 2>&5 3650 ac_status=$? 3651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3652 test $ac_status = 0; } 3653 if { ac_try='./conftest$ac_cv_exeext' 3654 { { case "(($ac_try" in 3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3656 *) ac_try_echo=$ac_try;; 3657esac 3658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3659$as_echo "$ac_try_echo"; } >&5 3660 (eval "$ac_try") 2>&5 3661 ac_status=$? 3662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3663 test $ac_status = 0; }; }; then 3664 cross_compiling=no 3665 else 3666 if test "$cross_compiling" = maybe; then 3667 cross_compiling=yes 3668 else 3669 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3670$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3671as_fn_error $? "cannot run C compiled programs. 3672If you meant to cross compile, use \`--host'. 3673See \`config.log' for more details" "$LINENO" 5; } 3674 fi 3675 fi 3676fi 3677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3678$as_echo "$cross_compiling" >&6; } 3679 3680rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3681ac_clean_files=$ac_clean_files_save 3682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3683$as_echo_n "checking for suffix of object files... " >&6; } 3684if ${ac_cv_objext+:} false; then : 3685 $as_echo_n "(cached) " >&6 3686else 3687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3688/* end confdefs.h. */ 3689 3690int 3691main () 3692{ 3693 3694 ; 3695 return 0; 3696} 3697_ACEOF 3698rm -f conftest.o conftest.obj 3699if { { ac_try="$ac_compile" 3700case "(($ac_try" in 3701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3702 *) ac_try_echo=$ac_try;; 3703esac 3704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3705$as_echo "$ac_try_echo"; } >&5 3706 (eval "$ac_compile") 2>&5 3707 ac_status=$? 3708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3709 test $ac_status = 0; }; then : 3710 for ac_file in conftest.o conftest.obj conftest.*; do 3711 test -f "$ac_file" || continue; 3712 case $ac_file in 3713 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3714 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3715 break;; 3716 esac 3717done 3718else 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 $? "cannot compute suffix of object files: cannot compile 3725See \`config.log' for more details" "$LINENO" 5; } 3726fi 3727rm -f conftest.$ac_cv_objext conftest.$ac_ext 3728fi 3729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3730$as_echo "$ac_cv_objext" >&6; } 3731OBJEXT=$ac_cv_objext 3732ac_objext=$OBJEXT 3733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3734$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3735if ${ac_cv_c_compiler_gnu+:} false; then : 3736 $as_echo_n "(cached) " >&6 3737else 3738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3739/* end confdefs.h. */ 3740 3741int 3742main () 3743{ 3744#ifndef __GNUC__ 3745 choke me 3746#endif 3747 3748 ; 3749 return 0; 3750} 3751_ACEOF 3752if ac_fn_c_try_compile "$LINENO"; then : 3753 ac_compiler_gnu=yes 3754else 3755 ac_compiler_gnu=no 3756fi 3757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3758ac_cv_c_compiler_gnu=$ac_compiler_gnu 3759 3760fi 3761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3762$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3763if test $ac_compiler_gnu = yes; then 3764 GCC=yes 3765else 3766 GCC= 3767fi 3768ac_test_CFLAGS=${CFLAGS+set} 3769ac_save_CFLAGS=$CFLAGS 3770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3771$as_echo_n "checking whether $CC accepts -g... " >&6; } 3772if ${ac_cv_prog_cc_g+:} false; then : 3773 $as_echo_n "(cached) " >&6 3774else 3775 ac_save_c_werror_flag=$ac_c_werror_flag 3776 ac_c_werror_flag=yes 3777 ac_cv_prog_cc_g=no 3778 CFLAGS="-g" 3779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3780/* end confdefs.h. */ 3781 3782int 3783main () 3784{ 3785 3786 ; 3787 return 0; 3788} 3789_ACEOF 3790if ac_fn_c_try_compile "$LINENO"; then : 3791 ac_cv_prog_cc_g=yes 3792else 3793 CFLAGS="" 3794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3795/* end confdefs.h. */ 3796 3797int 3798main () 3799{ 3800 3801 ; 3802 return 0; 3803} 3804_ACEOF 3805if ac_fn_c_try_compile "$LINENO"; then : 3806 3807else 3808 ac_c_werror_flag=$ac_save_c_werror_flag 3809 CFLAGS="-g" 3810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3811/* end confdefs.h. */ 3812 3813int 3814main () 3815{ 3816 3817 ; 3818 return 0; 3819} 3820_ACEOF 3821if ac_fn_c_try_compile "$LINENO"; then : 3822 ac_cv_prog_cc_g=yes 3823fi 3824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3825fi 3826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3827fi 3828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3829 ac_c_werror_flag=$ac_save_c_werror_flag 3830fi 3831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3832$as_echo "$ac_cv_prog_cc_g" >&6; } 3833if test "$ac_test_CFLAGS" = set; then 3834 CFLAGS=$ac_save_CFLAGS 3835elif test $ac_cv_prog_cc_g = yes; then 3836 if test "$GCC" = yes; then 3837 CFLAGS="-g -O2" 3838 else 3839 CFLAGS="-g" 3840 fi 3841else 3842 if test "$GCC" = yes; then 3843 CFLAGS="-O2" 3844 else 3845 CFLAGS= 3846 fi 3847fi 3848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3849$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3850if ${ac_cv_prog_cc_c89+:} false; then : 3851 $as_echo_n "(cached) " >&6 3852else 3853 ac_cv_prog_cc_c89=no 3854ac_save_CC=$CC 3855cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3856/* end confdefs.h. */ 3857#include <stdarg.h> 3858#include <stdio.h> 3859struct stat; 3860/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3861struct buf { int x; }; 3862FILE * (*rcsopen) (struct buf *, struct stat *, int); 3863static char *e (p, i) 3864 char **p; 3865 int i; 3866{ 3867 return p[i]; 3868} 3869static char *f (char * (*g) (char **, int), char **p, ...) 3870{ 3871 char *s; 3872 va_list v; 3873 va_start (v,p); 3874 s = g (p, va_arg (v,int)); 3875 va_end (v); 3876 return s; 3877} 3878 3879/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3880 function prototypes and stuff, but not '\xHH' hex character constants. 3881 These don't provoke an error unfortunately, instead are silently treated 3882 as 'x'. The following induces an error, until -std is added to get 3883 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3884 array size at least. It's necessary to write '\x00'==0 to get something 3885 that's true only with -std. */ 3886int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3887 3888/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3889 inside strings and character constants. */ 3890#define FOO(x) 'x' 3891int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3892 3893int test (int i, double x); 3894struct s1 {int (*f) (int a);}; 3895struct s2 {int (*f) (double a);}; 3896int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3897int argc; 3898char **argv; 3899int 3900main () 3901{ 3902return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3903 ; 3904 return 0; 3905} 3906_ACEOF 3907for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3908 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3909do 3910 CC="$ac_save_CC $ac_arg" 3911 if ac_fn_c_try_compile "$LINENO"; then : 3912 ac_cv_prog_cc_c89=$ac_arg 3913fi 3914rm -f core conftest.err conftest.$ac_objext 3915 test "x$ac_cv_prog_cc_c89" != "xno" && break 3916done 3917rm -f conftest.$ac_ext 3918CC=$ac_save_CC 3919 3920fi 3921# AC_CACHE_VAL 3922case "x$ac_cv_prog_cc_c89" in 3923 x) 3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3925$as_echo "none needed" >&6; } ;; 3926 xno) 3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3928$as_echo "unsupported" >&6; } ;; 3929 *) 3930 CC="$CC $ac_cv_prog_cc_c89" 3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3932$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3933esac 3934if test "x$ac_cv_prog_cc_c89" != xno; then : 3935 3936fi 3937 3938ac_ext=c 3939ac_cpp='$CPP $CPPFLAGS' 3940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3942ac_compiler_gnu=$ac_cv_c_compiler_gnu 3943 3944ac_ext=c 3945ac_cpp='$CPP $CPPFLAGS' 3946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3948ac_compiler_gnu=$ac_cv_c_compiler_gnu 3949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3950$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3951if ${am_cv_prog_cc_c_o+:} false; then : 3952 $as_echo_n "(cached) " >&6 3953else 3954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3955/* end confdefs.h. */ 3956 3957int 3958main () 3959{ 3960 3961 ; 3962 return 0; 3963} 3964_ACEOF 3965 # Make sure it works both with $CC and with simple cc. 3966 # Following AC_PROG_CC_C_O, we do the test twice because some 3967 # compilers refuse to overwrite an existing .o file with -o, 3968 # though they will create one. 3969 am_cv_prog_cc_c_o=yes 3970 for am_i in 1 2; do 3971 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3972 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3973 ac_status=$? 3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3975 (exit $ac_status); } \ 3976 && test -f conftest2.$ac_objext; then 3977 : OK 3978 else 3979 am_cv_prog_cc_c_o=no 3980 break 3981 fi 3982 done 3983 rm -f core conftest* 3984 unset am_i 3985fi 3986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3987$as_echo "$am_cv_prog_cc_c_o" >&6; } 3988if test "$am_cv_prog_cc_c_o" != yes; then 3989 # Losing compiler, so override with the script. 3990 # FIXME: It is wrong to rewrite CC. 3991 # But if we don't then we get into trouble of one sort or another. 3992 # A longer-term fix would be to have automake use am__CC in this case, 3993 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3994 CC="$am_aux_dir/compile $CC" 3995fi 3996ac_ext=c 3997ac_cpp='$CPP $CPPFLAGS' 3998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4000ac_compiler_gnu=$ac_cv_c_compiler_gnu 4001 4002 4003depcc="$CC" am_compiler_list= 4004 4005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4006$as_echo_n "checking dependency style of $depcc... " >&6; } 4007if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4008 $as_echo_n "(cached) " >&6 4009else 4010 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4011 # We make a subdir and do the tests there. Otherwise we can end up 4012 # making bogus files that we don't know about and never remove. For 4013 # instance it was reported that on HP-UX the gcc test will end up 4014 # making a dummy file named 'D' -- because '-MD' means "put the output 4015 # in D". 4016 rm -rf conftest.dir 4017 mkdir conftest.dir 4018 # Copy depcomp to subdir because otherwise we won't find it if we're 4019 # using a relative directory. 4020 cp "$am_depcomp" conftest.dir 4021 cd conftest.dir 4022 # We will build objects and dependencies in a subdirectory because 4023 # it helps to detect inapplicable dependency modes. For instance 4024 # both Tru64's cc and ICC support -MD to output dependencies as a 4025 # side effect of compilation, but ICC will put the dependencies in 4026 # the current directory while Tru64 will put them in the object 4027 # directory. 4028 mkdir sub 4029 4030 am_cv_CC_dependencies_compiler_type=none 4031 if test "$am_compiler_list" = ""; then 4032 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4033 fi 4034 am__universal=false 4035 case " $depcc " in #( 4036 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4037 esac 4038 4039 for depmode in $am_compiler_list; do 4040 # Setup a source with many dependencies, because some compilers 4041 # like to wrap large dependency lists on column 80 (with \), and 4042 # we should not choose a depcomp mode which is confused by this. 4043 # 4044 # We need to recreate these files for each test, as the compiler may 4045 # overwrite some of them when testing with obscure command lines. 4046 # This happens at least with the AIX C compiler. 4047 : > sub/conftest.c 4048 for i in 1 2 3 4 5 6; do 4049 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4050 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4051 # Solaris 10 /bin/sh. 4052 echo '/* dummy */' > sub/conftst$i.h 4053 done 4054 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4055 4056 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4057 # mode. It turns out that the SunPro C++ compiler does not properly 4058 # handle '-M -o', and we need to detect this. Also, some Intel 4059 # versions had trouble with output in subdirs. 4060 am__obj=sub/conftest.${OBJEXT-o} 4061 am__minus_obj="-o $am__obj" 4062 case $depmode in 4063 gcc) 4064 # This depmode causes a compiler race in universal mode. 4065 test "$am__universal" = false || continue 4066 ;; 4067 nosideeffect) 4068 # After this tag, mechanisms are not by side-effect, so they'll 4069 # only be used when explicitly requested. 4070 if test "x$enable_dependency_tracking" = xyes; then 4071 continue 4072 else 4073 break 4074 fi 4075 ;; 4076 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4077 # This compiler won't grok '-c -o', but also, the minuso test has 4078 # not run yet. These depmodes are late enough in the game, and 4079 # so weak that their functioning should not be impacted. 4080 am__obj=conftest.${OBJEXT-o} 4081 am__minus_obj= 4082 ;; 4083 none) break ;; 4084 esac 4085 if depmode=$depmode \ 4086 source=sub/conftest.c object=$am__obj \ 4087 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4088 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4089 >/dev/null 2>conftest.err && 4090 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4091 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4092 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4093 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4094 # icc doesn't choke on unknown options, it will just issue warnings 4095 # or remarks (even with -Werror). So we grep stderr for any message 4096 # that says an option was ignored or not supported. 4097 # When given -MP, icc 7.0 and 7.1 complain thusly: 4098 # icc: Command line warning: ignoring option '-M'; no argument required 4099 # The diagnosis changed in icc 8.0: 4100 # icc: Command line remark: option '-MP' not supported 4101 if (grep 'ignoring option' conftest.err || 4102 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4103 am_cv_CC_dependencies_compiler_type=$depmode 4104 break 4105 fi 4106 fi 4107 done 4108 4109 cd .. 4110 rm -rf conftest.dir 4111else 4112 am_cv_CC_dependencies_compiler_type=none 4113fi 4114 4115fi 4116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4117$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4118CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4119 4120 if 4121 test "x$enable_dependency_tracking" != xno \ 4122 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4123 am__fastdepCC_TRUE= 4124 am__fastdepCC_FALSE='#' 4125else 4126 am__fastdepCC_TRUE='#' 4127 am__fastdepCC_FALSE= 4128fi 4129 4130 4131 4132if test -n "$ac_tool_prefix"; then 4133 for ac_prog in ar lib "link -lib" 4134 do 4135 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4136set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4138$as_echo_n "checking for $ac_word... " >&6; } 4139if ${ac_cv_prog_AR+:} false; then : 4140 $as_echo_n "(cached) " >&6 4141else 4142 if test -n "$AR"; then 4143 ac_cv_prog_AR="$AR" # Let the user override the test. 4144else 4145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4146for as_dir in $PATH 4147do 4148 IFS=$as_save_IFS 4149 test -z "$as_dir" && as_dir=. 4150 for ac_exec_ext in '' $ac_executable_extensions; do 4151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4152 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 4153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4154 break 2 4155 fi 4156done 4157 done 4158IFS=$as_save_IFS 4159 4160fi 4161fi 4162AR=$ac_cv_prog_AR 4163if test -n "$AR"; then 4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4165$as_echo "$AR" >&6; } 4166else 4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4168$as_echo "no" >&6; } 4169fi 4170 4171 4172 test -n "$AR" && break 4173 done 4174fi 4175if test -z "$AR"; then 4176 ac_ct_AR=$AR 4177 for ac_prog in ar lib "link -lib" 4178do 4179 # Extract the first word of "$ac_prog", so it can be a program name with args. 4180set dummy $ac_prog; ac_word=$2 4181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4182$as_echo_n "checking for $ac_word... " >&6; } 4183if ${ac_cv_prog_ac_ct_AR+:} false; then : 4184 $as_echo_n "(cached) " >&6 4185else 4186 if test -n "$ac_ct_AR"; then 4187 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4188else 4189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4190for as_dir in $PATH 4191do 4192 IFS=$as_save_IFS 4193 test -z "$as_dir" && as_dir=. 4194 for ac_exec_ext in '' $ac_executable_extensions; do 4195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4196 ac_cv_prog_ac_ct_AR="$ac_prog" 4197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4198 break 2 4199 fi 4200done 4201 done 4202IFS=$as_save_IFS 4203 4204fi 4205fi 4206ac_ct_AR=$ac_cv_prog_ac_ct_AR 4207if test -n "$ac_ct_AR"; then 4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4209$as_echo "$ac_ct_AR" >&6; } 4210else 4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4212$as_echo "no" >&6; } 4213fi 4214 4215 4216 test -n "$ac_ct_AR" && break 4217done 4218 4219 if test "x$ac_ct_AR" = x; then 4220 AR="false" 4221 else 4222 case $cross_compiling:$ac_tool_warned in 4223yes:) 4224{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4225$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4226ac_tool_warned=yes ;; 4227esac 4228 AR=$ac_ct_AR 4229 fi 4230fi 4231 4232: ${AR=ar} 4233 4234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 4235$as_echo_n "checking the archiver ($AR) interface... " >&6; } 4236if ${am_cv_ar_interface+:} false; then : 4237 $as_echo_n "(cached) " >&6 4238else 4239 ac_ext=c 4240ac_cpp='$CPP $CPPFLAGS' 4241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4243ac_compiler_gnu=$ac_cv_c_compiler_gnu 4244 4245 am_cv_ar_interface=ar 4246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4247/* end confdefs.h. */ 4248int some_variable = 0; 4249_ACEOF 4250if ac_fn_c_try_compile "$LINENO"; then : 4251 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 4252 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4253 (eval $am_ar_try) 2>&5 4254 ac_status=$? 4255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4256 test $ac_status = 0; } 4257 if test "$ac_status" -eq 0; then 4258 am_cv_ar_interface=ar 4259 else 4260 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 4261 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4262 (eval $am_ar_try) 2>&5 4263 ac_status=$? 4264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4265 test $ac_status = 0; } 4266 if test "$ac_status" -eq 0; then 4267 am_cv_ar_interface=lib 4268 else 4269 am_cv_ar_interface=unknown 4270 fi 4271 fi 4272 rm -f conftest.lib libconftest.a 4273 4274fi 4275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4276 ac_ext=c 4277ac_cpp='$CPP $CPPFLAGS' 4278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4280ac_compiler_gnu=$ac_cv_c_compiler_gnu 4281 4282fi 4283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 4284$as_echo "$am_cv_ar_interface" >&6; } 4285 4286case $am_cv_ar_interface in 4287ar) 4288 ;; 4289lib) 4290 # Microsoft lib, so override with the ar-lib wrapper script. 4291 # FIXME: It is wrong to rewrite AR. 4292 # But if we don't then we get into trouble of one sort or another. 4293 # A longer-term fix would be to have automake use am__AR in this case, 4294 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 4295 # similar. 4296 AR="$am_aux_dir/ar-lib $AR" 4297 ;; 4298unknown) 4299 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 4300 ;; 4301esac 4302 4303 4304ac_ext=cpp 4305ac_cpp='$CXXCPP $CPPFLAGS' 4306ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4307ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4308ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4309if test -z "$CXX"; then 4310 if test -n "$CCC"; then 4311 CXX=$CCC 4312 else 4313 if test -n "$ac_tool_prefix"; then 4314 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4315 do 4316 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4317set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4319$as_echo_n "checking for $ac_word... " >&6; } 4320if ${ac_cv_prog_CXX+:} false; then : 4321 $as_echo_n "(cached) " >&6 4322else 4323 if test -n "$CXX"; then 4324 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4325else 4326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4327for as_dir in $PATH 4328do 4329 IFS=$as_save_IFS 4330 test -z "$as_dir" && as_dir=. 4331 for ac_exec_ext in '' $ac_executable_extensions; do 4332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4333 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4335 break 2 4336 fi 4337done 4338 done 4339IFS=$as_save_IFS 4340 4341fi 4342fi 4343CXX=$ac_cv_prog_CXX 4344if test -n "$CXX"; then 4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4346$as_echo "$CXX" >&6; } 4347else 4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4349$as_echo "no" >&6; } 4350fi 4351 4352 4353 test -n "$CXX" && break 4354 done 4355fi 4356if test -z "$CXX"; then 4357 ac_ct_CXX=$CXX 4358 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4359do 4360 # Extract the first word of "$ac_prog", so it can be a program name with args. 4361set dummy $ac_prog; ac_word=$2 4362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4363$as_echo_n "checking for $ac_word... " >&6; } 4364if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4365 $as_echo_n "(cached) " >&6 4366else 4367 if test -n "$ac_ct_CXX"; then 4368 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4369else 4370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4371for as_dir in $PATH 4372do 4373 IFS=$as_save_IFS 4374 test -z "$as_dir" && as_dir=. 4375 for ac_exec_ext in '' $ac_executable_extensions; do 4376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4377 ac_cv_prog_ac_ct_CXX="$ac_prog" 4378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4379 break 2 4380 fi 4381done 4382 done 4383IFS=$as_save_IFS 4384 4385fi 4386fi 4387ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4388if test -n "$ac_ct_CXX"; then 4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4390$as_echo "$ac_ct_CXX" >&6; } 4391else 4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4393$as_echo "no" >&6; } 4394fi 4395 4396 4397 test -n "$ac_ct_CXX" && break 4398done 4399 4400 if test "x$ac_ct_CXX" = x; then 4401 CXX="g++" 4402 else 4403 case $cross_compiling:$ac_tool_warned in 4404yes:) 4405{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4406$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4407ac_tool_warned=yes ;; 4408esac 4409 CXX=$ac_ct_CXX 4410 fi 4411fi 4412 4413 fi 4414fi 4415# Provide some information about the compiler. 4416$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4417set X $ac_compile 4418ac_compiler=$2 4419for ac_option in --version -v -V -qversion; do 4420 { { ac_try="$ac_compiler $ac_option >&5" 4421case "(($ac_try" in 4422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4423 *) ac_try_echo=$ac_try;; 4424esac 4425eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4426$as_echo "$ac_try_echo"; } >&5 4427 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4428 ac_status=$? 4429 if test -s conftest.err; then 4430 sed '10a\ 4431... rest of stderr output deleted ... 4432 10q' conftest.err >conftest.er1 4433 cat conftest.er1 >&5 4434 fi 4435 rm -f conftest.er1 conftest.err 4436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4437 test $ac_status = 0; } 4438done 4439 4440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4441$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4442if ${ac_cv_cxx_compiler_gnu+:} false; then : 4443 $as_echo_n "(cached) " >&6 4444else 4445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4446/* end confdefs.h. */ 4447 4448int 4449main () 4450{ 4451#ifndef __GNUC__ 4452 choke me 4453#endif 4454 4455 ; 4456 return 0; 4457} 4458_ACEOF 4459if ac_fn_cxx_try_compile "$LINENO"; then : 4460 ac_compiler_gnu=yes 4461else 4462 ac_compiler_gnu=no 4463fi 4464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4465ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4466 4467fi 4468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4469$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4470if test $ac_compiler_gnu = yes; then 4471 GXX=yes 4472else 4473 GXX= 4474fi 4475ac_test_CXXFLAGS=${CXXFLAGS+set} 4476ac_save_CXXFLAGS=$CXXFLAGS 4477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4478$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4479if ${ac_cv_prog_cxx_g+:} false; then : 4480 $as_echo_n "(cached) " >&6 4481else 4482 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4483 ac_cxx_werror_flag=yes 4484 ac_cv_prog_cxx_g=no 4485 CXXFLAGS="-g" 4486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4487/* end confdefs.h. */ 4488 4489int 4490main () 4491{ 4492 4493 ; 4494 return 0; 4495} 4496_ACEOF 4497if ac_fn_cxx_try_compile "$LINENO"; then : 4498 ac_cv_prog_cxx_g=yes 4499else 4500 CXXFLAGS="" 4501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4502/* end confdefs.h. */ 4503 4504int 4505main () 4506{ 4507 4508 ; 4509 return 0; 4510} 4511_ACEOF 4512if ac_fn_cxx_try_compile "$LINENO"; then : 4513 4514else 4515 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4516 CXXFLAGS="-g" 4517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4518/* end confdefs.h. */ 4519 4520int 4521main () 4522{ 4523 4524 ; 4525 return 0; 4526} 4527_ACEOF 4528if ac_fn_cxx_try_compile "$LINENO"; then : 4529 ac_cv_prog_cxx_g=yes 4530fi 4531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4532fi 4533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4534fi 4535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4536 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4537fi 4538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4539$as_echo "$ac_cv_prog_cxx_g" >&6; } 4540if test "$ac_test_CXXFLAGS" = set; then 4541 CXXFLAGS=$ac_save_CXXFLAGS 4542elif test $ac_cv_prog_cxx_g = yes; then 4543 if test "$GXX" = yes; then 4544 CXXFLAGS="-g -O2" 4545 else 4546 CXXFLAGS="-g" 4547 fi 4548else 4549 if test "$GXX" = yes; then 4550 CXXFLAGS="-O2" 4551 else 4552 CXXFLAGS= 4553 fi 4554fi 4555ac_ext=c 4556ac_cpp='$CPP $CPPFLAGS' 4557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4559ac_compiler_gnu=$ac_cv_c_compiler_gnu 4560 4561depcc="$CXX" am_compiler_list= 4562 4563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4564$as_echo_n "checking dependency style of $depcc... " >&6; } 4565if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 4566 $as_echo_n "(cached) " >&6 4567else 4568 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4569 # We make a subdir and do the tests there. Otherwise we can end up 4570 # making bogus files that we don't know about and never remove. For 4571 # instance it was reported that on HP-UX the gcc test will end up 4572 # making a dummy file named 'D' -- because '-MD' means "put the output 4573 # in D". 4574 rm -rf conftest.dir 4575 mkdir conftest.dir 4576 # Copy depcomp to subdir because otherwise we won't find it if we're 4577 # using a relative directory. 4578 cp "$am_depcomp" conftest.dir 4579 cd conftest.dir 4580 # We will build objects and dependencies in a subdirectory because 4581 # it helps to detect inapplicable dependency modes. For instance 4582 # both Tru64's cc and ICC support -MD to output dependencies as a 4583 # side effect of compilation, but ICC will put the dependencies in 4584 # the current directory while Tru64 will put them in the object 4585 # directory. 4586 mkdir sub 4587 4588 am_cv_CXX_dependencies_compiler_type=none 4589 if test "$am_compiler_list" = ""; then 4590 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4591 fi 4592 am__universal=false 4593 case " $depcc " in #( 4594 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4595 esac 4596 4597 for depmode in $am_compiler_list; do 4598 # Setup a source with many dependencies, because some compilers 4599 # like to wrap large dependency lists on column 80 (with \), and 4600 # we should not choose a depcomp mode which is confused by this. 4601 # 4602 # We need to recreate these files for each test, as the compiler may 4603 # overwrite some of them when testing with obscure command lines. 4604 # This happens at least with the AIX C compiler. 4605 : > sub/conftest.c 4606 for i in 1 2 3 4 5 6; do 4607 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4608 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4609 # Solaris 10 /bin/sh. 4610 echo '/* dummy */' > sub/conftst$i.h 4611 done 4612 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4613 4614 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4615 # mode. It turns out that the SunPro C++ compiler does not properly 4616 # handle '-M -o', and we need to detect this. Also, some Intel 4617 # versions had trouble with output in subdirs. 4618 am__obj=sub/conftest.${OBJEXT-o} 4619 am__minus_obj="-o $am__obj" 4620 case $depmode in 4621 gcc) 4622 # This depmode causes a compiler race in universal mode. 4623 test "$am__universal" = false || continue 4624 ;; 4625 nosideeffect) 4626 # After this tag, mechanisms are not by side-effect, so they'll 4627 # only be used when explicitly requested. 4628 if test "x$enable_dependency_tracking" = xyes; then 4629 continue 4630 else 4631 break 4632 fi 4633 ;; 4634 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4635 # This compiler won't grok '-c -o', but also, the minuso test has 4636 # not run yet. These depmodes are late enough in the game, and 4637 # so weak that their functioning should not be impacted. 4638 am__obj=conftest.${OBJEXT-o} 4639 am__minus_obj= 4640 ;; 4641 none) break ;; 4642 esac 4643 if depmode=$depmode \ 4644 source=sub/conftest.c object=$am__obj \ 4645 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4646 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4647 >/dev/null 2>conftest.err && 4648 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4649 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4650 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4651 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4652 # icc doesn't choke on unknown options, it will just issue warnings 4653 # or remarks (even with -Werror). So we grep stderr for any message 4654 # that says an option was ignored or not supported. 4655 # When given -MP, icc 7.0 and 7.1 complain thusly: 4656 # icc: Command line warning: ignoring option '-M'; no argument required 4657 # The diagnosis changed in icc 8.0: 4658 # icc: Command line remark: option '-MP' not supported 4659 if (grep 'ignoring option' conftest.err || 4660 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4661 am_cv_CXX_dependencies_compiler_type=$depmode 4662 break 4663 fi 4664 fi 4665 done 4666 4667 cd .. 4668 rm -rf conftest.dir 4669else 4670 am_cv_CXX_dependencies_compiler_type=none 4671fi 4672 4673fi 4674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 4675$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 4676CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4677 4678 if 4679 test "x$enable_dependency_tracking" != xno \ 4680 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4681 am__fastdepCXX_TRUE= 4682 am__fastdepCXX_FALSE='#' 4683else 4684 am__fastdepCXX_TRUE='#' 4685 am__fastdepCXX_FALSE= 4686fi 4687 4688 4689ac_ext=cpp 4690ac_cpp='$CXXCPP $CPPFLAGS' 4691ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4692ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4693ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4694 4695 4696 4697 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true 4698 ac_ext=cpp 4699ac_cpp='$CXXCPP $CPPFLAGS' 4700ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4701ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4702ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4703 ac_success=no 4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 4705$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } 4706if ${ax_cv_cxx_compile_cxx11+:} false; then : 4707 $as_echo_n "(cached) " >&6 4708else 4709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4710/* end confdefs.h. */ 4711 4712 4713// If the compiler admits that it is not ready for C++11, why torture it? 4714// Hopefully, this will speed up the test. 4715 4716#ifndef __cplusplus 4717 4718#error "This is not a C++ compiler" 4719 4720#elif __cplusplus < 201103L 4721 4722#error "This is not a C++11 compiler" 4723 4724#else 4725 4726namespace cxx11 4727{ 4728 4729 namespace test_static_assert 4730 { 4731 4732 template <typename T> 4733 struct check 4734 { 4735 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 4736 }; 4737 4738 } 4739 4740 namespace test_final_override 4741 { 4742 4743 struct Base 4744 { 4745 virtual void f() {} 4746 }; 4747 4748 struct Derived : public Base 4749 { 4750 virtual void f() override {} 4751 }; 4752 4753 } 4754 4755 namespace test_double_right_angle_brackets 4756 { 4757 4758 template < typename T > 4759 struct check {}; 4760 4761 typedef check<void> single_type; 4762 typedef check<check<void>> double_type; 4763 typedef check<check<check<void>>> triple_type; 4764 typedef check<check<check<check<void>>>> quadruple_type; 4765 4766 } 4767 4768 namespace test_decltype 4769 { 4770 4771 int 4772 f() 4773 { 4774 int a = 1; 4775 decltype(a) b = 2; 4776 return a + b; 4777 } 4778 4779 } 4780 4781 namespace test_type_deduction 4782 { 4783 4784 template < typename T1, typename T2 > 4785 struct is_same 4786 { 4787 static const bool value = false; 4788 }; 4789 4790 template < typename T > 4791 struct is_same<T, T> 4792 { 4793 static const bool value = true; 4794 }; 4795 4796 template < typename T1, typename T2 > 4797 auto 4798 add(T1 a1, T2 a2) -> decltype(a1 + a2) 4799 { 4800 return a1 + a2; 4801 } 4802 4803 int 4804 test(const int c, volatile int v) 4805 { 4806 static_assert(is_same<int, decltype(0)>::value == true, ""); 4807 static_assert(is_same<int, decltype(c)>::value == false, ""); 4808 static_assert(is_same<int, decltype(v)>::value == false, ""); 4809 auto ac = c; 4810 auto av = v; 4811 auto sumi = ac + av + 'x'; 4812 auto sumf = ac + av + 1.0; 4813 static_assert(is_same<int, decltype(ac)>::value == true, ""); 4814 static_assert(is_same<int, decltype(av)>::value == true, ""); 4815 static_assert(is_same<int, decltype(sumi)>::value == true, ""); 4816 static_assert(is_same<int, decltype(sumf)>::value == false, ""); 4817 static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 4818 return (sumf > 0.0) ? sumi : add(c, v); 4819 } 4820 4821 } 4822 4823 namespace test_noexcept 4824 { 4825 4826 int f() { return 0; } 4827 int g() noexcept { return 0; } 4828 4829 static_assert(noexcept(f()) == false, ""); 4830 static_assert(noexcept(g()) == true, ""); 4831 4832 } 4833 4834 namespace test_constexpr 4835 { 4836 4837 template < typename CharT > 4838 unsigned long constexpr 4839 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept 4840 { 4841 return *s ? strlen_c_r(s + 1, acc + 1) : acc; 4842 } 4843 4844 template < typename CharT > 4845 unsigned long constexpr 4846 strlen_c(const CharT *const s) noexcept 4847 { 4848 return strlen_c_r(s, 0UL); 4849 } 4850 4851 static_assert(strlen_c("") == 0UL, ""); 4852 static_assert(strlen_c("1") == 1UL, ""); 4853 static_assert(strlen_c("example") == 7UL, ""); 4854 static_assert(strlen_c("another\0example") == 7UL, ""); 4855 4856 } 4857 4858 namespace test_rvalue_references 4859 { 4860 4861 template < int N > 4862 struct answer 4863 { 4864 static constexpr int value = N; 4865 }; 4866 4867 answer<1> f(int&) { return answer<1>(); } 4868 answer<2> f(const int&) { return answer<2>(); } 4869 answer<3> f(int&&) { return answer<3>(); } 4870 4871 void 4872 test() 4873 { 4874 int i = 0; 4875 const int c = 0; 4876 static_assert(decltype(f(i))::value == 1, ""); 4877 static_assert(decltype(f(c))::value == 2, ""); 4878 static_assert(decltype(f(0))::value == 3, ""); 4879 } 4880 4881 } 4882 4883 namespace test_uniform_initialization 4884 { 4885 4886 struct test 4887 { 4888 static const int zero {}; 4889 static const int one {1}; 4890 }; 4891 4892 static_assert(test::zero == 0, ""); 4893 static_assert(test::one == 1, ""); 4894 4895 } 4896 4897 namespace test_lambdas 4898 { 4899 4900 void 4901 test1() 4902 { 4903 auto lambda1 = [](){}; 4904 auto lambda2 = lambda1; 4905 lambda1(); 4906 lambda2(); 4907 } 4908 4909 int 4910 test2() 4911 { 4912 auto a = [](int i, int j){ return i + j; }(1, 2); 4913 auto b = []() -> int { return '0'; }(); 4914 auto c = [=](){ return a + b; }(); 4915 auto d = [&](){ return c; }(); 4916 auto e = [a, &b](int x) mutable { 4917 const auto identity = [](int y){ return y; }; 4918 for (auto i = 0; i < a; ++i) 4919 a += b--; 4920 return x + identity(a + b); 4921 }(0); 4922 return a + b + c + d + e; 4923 } 4924 4925 int 4926 test3() 4927 { 4928 const auto nullary = [](){ return 0; }; 4929 const auto unary = [](int x){ return x; }; 4930 using nullary_t = decltype(nullary); 4931 using unary_t = decltype(unary); 4932 const auto higher1st = [](nullary_t f){ return f(); }; 4933 const auto higher2nd = [unary](nullary_t f1){ 4934 return [unary, f1](unary_t f2){ return f2(unary(f1())); }; 4935 }; 4936 return higher1st(nullary) + higher2nd(nullary)(unary); 4937 } 4938 4939 } 4940 4941 namespace test_variadic_templates 4942 { 4943 4944 template <int...> 4945 struct sum; 4946 4947 template <int N0, int... N1toN> 4948 struct sum<N0, N1toN...> 4949 { 4950 static constexpr auto value = N0 + sum<N1toN...>::value; 4951 }; 4952 4953 template <> 4954 struct sum<> 4955 { 4956 static constexpr auto value = 0; 4957 }; 4958 4959 static_assert(sum<>::value == 0, ""); 4960 static_assert(sum<1>::value == 1, ""); 4961 static_assert(sum<23>::value == 23, ""); 4962 static_assert(sum<1, 2>::value == 3, ""); 4963 static_assert(sum<5, 5, 11>::value == 21, ""); 4964 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); 4965 4966 } 4967 4968 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 4969 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function 4970 // because of this. 4971 namespace test_template_alias_sfinae 4972 { 4973 4974 struct foo {}; 4975 4976 template<typename T> 4977 using member = typename T::member_type; 4978 4979 template<typename T> 4980 void func(...) {} 4981 4982 template<typename T> 4983 void func(member<T>*) {} 4984 4985 void test(); 4986 4987 void test() { func<foo>(0); } 4988 4989 } 4990 4991} // namespace cxx11 4992 4993#endif // __cplusplus >= 201103L 4994 4995 4996 4997_ACEOF 4998if ac_fn_cxx_try_compile "$LINENO"; then : 4999 ax_cv_cxx_compile_cxx11=yes 5000else 5001 ax_cv_cxx_compile_cxx11=no 5002fi 5003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5004fi 5005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 5006$as_echo "$ax_cv_cxx_compile_cxx11" >&6; } 5007 if test x$ax_cv_cxx_compile_cxx11 = xyes; then 5008 ac_success=yes 5009 fi 5010 5011 if test x$ac_success = xno; then 5012 for alternative in ${ax_cxx_compile_alternatives}; do 5013 switch="-std=gnu++${alternative}" 5014 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` 5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 5016$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } 5017if eval \${$cachevar+:} false; then : 5018 $as_echo_n "(cached) " >&6 5019else 5020 ac_save_CXX="$CXX" 5021 CXX="$CXX $switch" 5022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5023/* end confdefs.h. */ 5024 5025 5026// If the compiler admits that it is not ready for C++11, why torture it? 5027// Hopefully, this will speed up the test. 5028 5029#ifndef __cplusplus 5030 5031#error "This is not a C++ compiler" 5032 5033#elif __cplusplus < 201103L 5034 5035#error "This is not a C++11 compiler" 5036 5037#else 5038 5039namespace cxx11 5040{ 5041 5042 namespace test_static_assert 5043 { 5044 5045 template <typename T> 5046 struct check 5047 { 5048 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 5049 }; 5050 5051 } 5052 5053 namespace test_final_override 5054 { 5055 5056 struct Base 5057 { 5058 virtual void f() {} 5059 }; 5060 5061 struct Derived : public Base 5062 { 5063 virtual void f() override {} 5064 }; 5065 5066 } 5067 5068 namespace test_double_right_angle_brackets 5069 { 5070 5071 template < typename T > 5072 struct check {}; 5073 5074 typedef check<void> single_type; 5075 typedef check<check<void>> double_type; 5076 typedef check<check<check<void>>> triple_type; 5077 typedef check<check<check<check<void>>>> quadruple_type; 5078 5079 } 5080 5081 namespace test_decltype 5082 { 5083 5084 int 5085 f() 5086 { 5087 int a = 1; 5088 decltype(a) b = 2; 5089 return a + b; 5090 } 5091 5092 } 5093 5094 namespace test_type_deduction 5095 { 5096 5097 template < typename T1, typename T2 > 5098 struct is_same 5099 { 5100 static const bool value = false; 5101 }; 5102 5103 template < typename T > 5104 struct is_same<T, T> 5105 { 5106 static const bool value = true; 5107 }; 5108 5109 template < typename T1, typename T2 > 5110 auto 5111 add(T1 a1, T2 a2) -> decltype(a1 + a2) 5112 { 5113 return a1 + a2; 5114 } 5115 5116 int 5117 test(const int c, volatile int v) 5118 { 5119 static_assert(is_same<int, decltype(0)>::value == true, ""); 5120 static_assert(is_same<int, decltype(c)>::value == false, ""); 5121 static_assert(is_same<int, decltype(v)>::value == false, ""); 5122 auto ac = c; 5123 auto av = v; 5124 auto sumi = ac + av + 'x'; 5125 auto sumf = ac + av + 1.0; 5126 static_assert(is_same<int, decltype(ac)>::value == true, ""); 5127 static_assert(is_same<int, decltype(av)>::value == true, ""); 5128 static_assert(is_same<int, decltype(sumi)>::value == true, ""); 5129 static_assert(is_same<int, decltype(sumf)>::value == false, ""); 5130 static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 5131 return (sumf > 0.0) ? sumi : add(c, v); 5132 } 5133 5134 } 5135 5136 namespace test_noexcept 5137 { 5138 5139 int f() { return 0; } 5140 int g() noexcept { return 0; } 5141 5142 static_assert(noexcept(f()) == false, ""); 5143 static_assert(noexcept(g()) == true, ""); 5144 5145 } 5146 5147 namespace test_constexpr 5148 { 5149 5150 template < typename CharT > 5151 unsigned long constexpr 5152 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept 5153 { 5154 return *s ? strlen_c_r(s + 1, acc + 1) : acc; 5155 } 5156 5157 template < typename CharT > 5158 unsigned long constexpr 5159 strlen_c(const CharT *const s) noexcept 5160 { 5161 return strlen_c_r(s, 0UL); 5162 } 5163 5164 static_assert(strlen_c("") == 0UL, ""); 5165 static_assert(strlen_c("1") == 1UL, ""); 5166 static_assert(strlen_c("example") == 7UL, ""); 5167 static_assert(strlen_c("another\0example") == 7UL, ""); 5168 5169 } 5170 5171 namespace test_rvalue_references 5172 { 5173 5174 template < int N > 5175 struct answer 5176 { 5177 static constexpr int value = N; 5178 }; 5179 5180 answer<1> f(int&) { return answer<1>(); } 5181 answer<2> f(const int&) { return answer<2>(); } 5182 answer<3> f(int&&) { return answer<3>(); } 5183 5184 void 5185 test() 5186 { 5187 int i = 0; 5188 const int c = 0; 5189 static_assert(decltype(f(i))::value == 1, ""); 5190 static_assert(decltype(f(c))::value == 2, ""); 5191 static_assert(decltype(f(0))::value == 3, ""); 5192 } 5193 5194 } 5195 5196 namespace test_uniform_initialization 5197 { 5198 5199 struct test 5200 { 5201 static const int zero {}; 5202 static const int one {1}; 5203 }; 5204 5205 static_assert(test::zero == 0, ""); 5206 static_assert(test::one == 1, ""); 5207 5208 } 5209 5210 namespace test_lambdas 5211 { 5212 5213 void 5214 test1() 5215 { 5216 auto lambda1 = [](){}; 5217 auto lambda2 = lambda1; 5218 lambda1(); 5219 lambda2(); 5220 } 5221 5222 int 5223 test2() 5224 { 5225 auto a = [](int i, int j){ return i + j; }(1, 2); 5226 auto b = []() -> int { return '0'; }(); 5227 auto c = [=](){ return a + b; }(); 5228 auto d = [&](){ return c; }(); 5229 auto e = [a, &b](int x) mutable { 5230 const auto identity = [](int y){ return y; }; 5231 for (auto i = 0; i < a; ++i) 5232 a += b--; 5233 return x + identity(a + b); 5234 }(0); 5235 return a + b + c + d + e; 5236 } 5237 5238 int 5239 test3() 5240 { 5241 const auto nullary = [](){ return 0; }; 5242 const auto unary = [](int x){ return x; }; 5243 using nullary_t = decltype(nullary); 5244 using unary_t = decltype(unary); 5245 const auto higher1st = [](nullary_t f){ return f(); }; 5246 const auto higher2nd = [unary](nullary_t f1){ 5247 return [unary, f1](unary_t f2){ return f2(unary(f1())); }; 5248 }; 5249 return higher1st(nullary) + higher2nd(nullary)(unary); 5250 } 5251 5252 } 5253 5254 namespace test_variadic_templates 5255 { 5256 5257 template <int...> 5258 struct sum; 5259 5260 template <int N0, int... N1toN> 5261 struct sum<N0, N1toN...> 5262 { 5263 static constexpr auto value = N0 + sum<N1toN...>::value; 5264 }; 5265 5266 template <> 5267 struct sum<> 5268 { 5269 static constexpr auto value = 0; 5270 }; 5271 5272 static_assert(sum<>::value == 0, ""); 5273 static_assert(sum<1>::value == 1, ""); 5274 static_assert(sum<23>::value == 23, ""); 5275 static_assert(sum<1, 2>::value == 3, ""); 5276 static_assert(sum<5, 5, 11>::value == 21, ""); 5277 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); 5278 5279 } 5280 5281 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 5282 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function 5283 // because of this. 5284 namespace test_template_alias_sfinae 5285 { 5286 5287 struct foo {}; 5288 5289 template<typename T> 5290 using member = typename T::member_type; 5291 5292 template<typename T> 5293 void func(...) {} 5294 5295 template<typename T> 5296 void func(member<T>*) {} 5297 5298 void test(); 5299 5300 void test() { func<foo>(0); } 5301 5302 } 5303 5304} // namespace cxx11 5305 5306#endif // __cplusplus >= 201103L 5307 5308 5309 5310_ACEOF 5311if ac_fn_cxx_try_compile "$LINENO"; then : 5312 eval $cachevar=yes 5313else 5314 eval $cachevar=no 5315fi 5316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5317 CXX="$ac_save_CXX" 5318fi 5319eval ac_res=\$$cachevar 5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 5321$as_echo "$ac_res" >&6; } 5322 if eval test x\$$cachevar = xyes; then 5323 CXX="$CXX $switch" 5324 if test -n "$CXXCPP" ; then 5325 CXXCPP="$CXXCPP $switch" 5326 fi 5327 ac_success=yes 5328 break 5329 fi 5330 done 5331 fi 5332 5333 if test x$ac_success = xno; then 5334 for alternative in ${ax_cxx_compile_alternatives}; do 5335 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do 5336 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` 5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 5338$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } 5339if eval \${$cachevar+:} false; then : 5340 $as_echo_n "(cached) " >&6 5341else 5342 ac_save_CXX="$CXX" 5343 CXX="$CXX $switch" 5344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5345/* end confdefs.h. */ 5346 5347 5348// If the compiler admits that it is not ready for C++11, why torture it? 5349// Hopefully, this will speed up the test. 5350 5351#ifndef __cplusplus 5352 5353#error "This is not a C++ compiler" 5354 5355#elif __cplusplus < 201103L 5356 5357#error "This is not a C++11 compiler" 5358 5359#else 5360 5361namespace cxx11 5362{ 5363 5364 namespace test_static_assert 5365 { 5366 5367 template <typename T> 5368 struct check 5369 { 5370 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 5371 }; 5372 5373 } 5374 5375 namespace test_final_override 5376 { 5377 5378 struct Base 5379 { 5380 virtual void f() {} 5381 }; 5382 5383 struct Derived : public Base 5384 { 5385 virtual void f() override {} 5386 }; 5387 5388 } 5389 5390 namespace test_double_right_angle_brackets 5391 { 5392 5393 template < typename T > 5394 struct check {}; 5395 5396 typedef check<void> single_type; 5397 typedef check<check<void>> double_type; 5398 typedef check<check<check<void>>> triple_type; 5399 typedef check<check<check<check<void>>>> quadruple_type; 5400 5401 } 5402 5403 namespace test_decltype 5404 { 5405 5406 int 5407 f() 5408 { 5409 int a = 1; 5410 decltype(a) b = 2; 5411 return a + b; 5412 } 5413 5414 } 5415 5416 namespace test_type_deduction 5417 { 5418 5419 template < typename T1, typename T2 > 5420 struct is_same 5421 { 5422 static const bool value = false; 5423 }; 5424 5425 template < typename T > 5426 struct is_same<T, T> 5427 { 5428 static const bool value = true; 5429 }; 5430 5431 template < typename T1, typename T2 > 5432 auto 5433 add(T1 a1, T2 a2) -> decltype(a1 + a2) 5434 { 5435 return a1 + a2; 5436 } 5437 5438 int 5439 test(const int c, volatile int v) 5440 { 5441 static_assert(is_same<int, decltype(0)>::value == true, ""); 5442 static_assert(is_same<int, decltype(c)>::value == false, ""); 5443 static_assert(is_same<int, decltype(v)>::value == false, ""); 5444 auto ac = c; 5445 auto av = v; 5446 auto sumi = ac + av + 'x'; 5447 auto sumf = ac + av + 1.0; 5448 static_assert(is_same<int, decltype(ac)>::value == true, ""); 5449 static_assert(is_same<int, decltype(av)>::value == true, ""); 5450 static_assert(is_same<int, decltype(sumi)>::value == true, ""); 5451 static_assert(is_same<int, decltype(sumf)>::value == false, ""); 5452 static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 5453 return (sumf > 0.0) ? sumi : add(c, v); 5454 } 5455 5456 } 5457 5458 namespace test_noexcept 5459 { 5460 5461 int f() { return 0; } 5462 int g() noexcept { return 0; } 5463 5464 static_assert(noexcept(f()) == false, ""); 5465 static_assert(noexcept(g()) == true, ""); 5466 5467 } 5468 5469 namespace test_constexpr 5470 { 5471 5472 template < typename CharT > 5473 unsigned long constexpr 5474 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept 5475 { 5476 return *s ? strlen_c_r(s + 1, acc + 1) : acc; 5477 } 5478 5479 template < typename CharT > 5480 unsigned long constexpr 5481 strlen_c(const CharT *const s) noexcept 5482 { 5483 return strlen_c_r(s, 0UL); 5484 } 5485 5486 static_assert(strlen_c("") == 0UL, ""); 5487 static_assert(strlen_c("1") == 1UL, ""); 5488 static_assert(strlen_c("example") == 7UL, ""); 5489 static_assert(strlen_c("another\0example") == 7UL, ""); 5490 5491 } 5492 5493 namespace test_rvalue_references 5494 { 5495 5496 template < int N > 5497 struct answer 5498 { 5499 static constexpr int value = N; 5500 }; 5501 5502 answer<1> f(int&) { return answer<1>(); } 5503 answer<2> f(const int&) { return answer<2>(); } 5504 answer<3> f(int&&) { return answer<3>(); } 5505 5506 void 5507 test() 5508 { 5509 int i = 0; 5510 const int c = 0; 5511 static_assert(decltype(f(i))::value == 1, ""); 5512 static_assert(decltype(f(c))::value == 2, ""); 5513 static_assert(decltype(f(0))::value == 3, ""); 5514 } 5515 5516 } 5517 5518 namespace test_uniform_initialization 5519 { 5520 5521 struct test 5522 { 5523 static const int zero {}; 5524 static const int one {1}; 5525 }; 5526 5527 static_assert(test::zero == 0, ""); 5528 static_assert(test::one == 1, ""); 5529 5530 } 5531 5532 namespace test_lambdas 5533 { 5534 5535 void 5536 test1() 5537 { 5538 auto lambda1 = [](){}; 5539 auto lambda2 = lambda1; 5540 lambda1(); 5541 lambda2(); 5542 } 5543 5544 int 5545 test2() 5546 { 5547 auto a = [](int i, int j){ return i + j; }(1, 2); 5548 auto b = []() -> int { return '0'; }(); 5549 auto c = [=](){ return a + b; }(); 5550 auto d = [&](){ return c; }(); 5551 auto e = [a, &b](int x) mutable { 5552 const auto identity = [](int y){ return y; }; 5553 for (auto i = 0; i < a; ++i) 5554 a += b--; 5555 return x + identity(a + b); 5556 }(0); 5557 return a + b + c + d + e; 5558 } 5559 5560 int 5561 test3() 5562 { 5563 const auto nullary = [](){ return 0; }; 5564 const auto unary = [](int x){ return x; }; 5565 using nullary_t = decltype(nullary); 5566 using unary_t = decltype(unary); 5567 const auto higher1st = [](nullary_t f){ return f(); }; 5568 const auto higher2nd = [unary](nullary_t f1){ 5569 return [unary, f1](unary_t f2){ return f2(unary(f1())); }; 5570 }; 5571 return higher1st(nullary) + higher2nd(nullary)(unary); 5572 } 5573 5574 } 5575 5576 namespace test_variadic_templates 5577 { 5578 5579 template <int...> 5580 struct sum; 5581 5582 template <int N0, int... N1toN> 5583 struct sum<N0, N1toN...> 5584 { 5585 static constexpr auto value = N0 + sum<N1toN...>::value; 5586 }; 5587 5588 template <> 5589 struct sum<> 5590 { 5591 static constexpr auto value = 0; 5592 }; 5593 5594 static_assert(sum<>::value == 0, ""); 5595 static_assert(sum<1>::value == 1, ""); 5596 static_assert(sum<23>::value == 23, ""); 5597 static_assert(sum<1, 2>::value == 3, ""); 5598 static_assert(sum<5, 5, 11>::value == 21, ""); 5599 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); 5600 5601 } 5602 5603 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 5604 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function 5605 // because of this. 5606 namespace test_template_alias_sfinae 5607 { 5608 5609 struct foo {}; 5610 5611 template<typename T> 5612 using member = typename T::member_type; 5613 5614 template<typename T> 5615 void func(...) {} 5616 5617 template<typename T> 5618 void func(member<T>*) {} 5619 5620 void test(); 5621 5622 void test() { func<foo>(0); } 5623 5624 } 5625 5626} // namespace cxx11 5627 5628#endif // __cplusplus >= 201103L 5629 5630 5631 5632_ACEOF 5633if ac_fn_cxx_try_compile "$LINENO"; then : 5634 eval $cachevar=yes 5635else 5636 eval $cachevar=no 5637fi 5638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5639 CXX="$ac_save_CXX" 5640fi 5641eval ac_res=\$$cachevar 5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 5643$as_echo "$ac_res" >&6; } 5644 if eval test x\$$cachevar = xyes; then 5645 CXX="$CXX $switch" 5646 if test -n "$CXXCPP" ; then 5647 CXXCPP="$CXXCPP $switch" 5648 fi 5649 ac_success=yes 5650 break 5651 fi 5652 done 5653 if test x$ac_success = xyes; then 5654 break 5655 fi 5656 done 5657 fi 5658 ac_ext=cpp 5659ac_cpp='$CXXCPP $CPPFLAGS' 5660ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5661ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5662ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5663 5664 if test x$ax_cxx_compile_cxx11_required = xtrue; then 5665 if test x$ac_success = xno; then 5666 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 5667 fi 5668 fi 5669 if test x$ac_success = xno; then 5670 HAVE_CXX11=0 5671 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 5672$as_echo "$as_me: No compiler with C++11 support was found" >&6;} 5673 else 5674 HAVE_CXX11=1 5675 5676$as_echo "#define HAVE_CXX11 1" >>confdefs.h 5677 5678 fi 5679 5680 5681 5682 5683 5684case `pwd` in 5685 *\ * | *\ *) 5686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5687$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5688esac 5689 5690 5691 5692macro_version='2.4.6' 5693macro_revision='2.4.6' 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707ltmain=$ac_aux_dir/ltmain.sh 5708 5709# Backslashify metacharacters that are still active within 5710# double-quoted strings. 5711sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5712 5713# Same as above, but do not quote variable references. 5714double_quote_subst='s/\(["`\\]\)/\\\1/g' 5715 5716# Sed substitution to delay expansion of an escaped shell variable in a 5717# double_quote_subst'ed string. 5718delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5719 5720# Sed substitution to delay expansion of an escaped single quote. 5721delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5722 5723# Sed substitution to avoid accidental globbing in evaled expressions 5724no_glob_subst='s/\*/\\\*/g' 5725 5726ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5727ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5728ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5729 5730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5731$as_echo_n "checking how to print strings... " >&6; } 5732# Test print first, because it will be a builtin if present. 5733if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5734 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5735 ECHO='print -r --' 5736elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5737 ECHO='printf %s\n' 5738else 5739 # Use this function as a fallback that always works. 5740 func_fallback_echo () 5741 { 5742 eval 'cat <<_LTECHO_EOF 5743$1 5744_LTECHO_EOF' 5745 } 5746 ECHO='func_fallback_echo' 5747fi 5748 5749# func_echo_all arg... 5750# Invoke $ECHO with all args, space-separated. 5751func_echo_all () 5752{ 5753 $ECHO "" 5754} 5755 5756case $ECHO in 5757 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5758$as_echo "printf" >&6; } ;; 5759 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5760$as_echo "print -r" >&6; } ;; 5761 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5762$as_echo "cat" >&6; } ;; 5763esac 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5779$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5780if ${ac_cv_path_SED+:} false; then : 5781 $as_echo_n "(cached) " >&6 5782else 5783 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5784 for ac_i in 1 2 3 4 5 6 7; do 5785 ac_script="$ac_script$as_nl$ac_script" 5786 done 5787 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5788 { ac_script=; unset ac_script;} 5789 if test -z "$SED"; then 5790 ac_path_SED_found=false 5791 # Loop through the user's path and test for each of PROGNAME-LIST 5792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5793for as_dir in $PATH 5794do 5795 IFS=$as_save_IFS 5796 test -z "$as_dir" && as_dir=. 5797 for ac_prog in sed gsed; do 5798 for ac_exec_ext in '' $ac_executable_extensions; do 5799 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5800 as_fn_executable_p "$ac_path_SED" || continue 5801# Check for GNU ac_path_SED and select it if it is found. 5802 # Check for GNU $ac_path_SED 5803case `"$ac_path_SED" --version 2>&1` in 5804*GNU*) 5805 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5806*) 5807 ac_count=0 5808 $as_echo_n 0123456789 >"conftest.in" 5809 while : 5810 do 5811 cat "conftest.in" "conftest.in" >"conftest.tmp" 5812 mv "conftest.tmp" "conftest.in" 5813 cp "conftest.in" "conftest.nl" 5814 $as_echo '' >> "conftest.nl" 5815 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5816 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5817 as_fn_arith $ac_count + 1 && ac_count=$as_val 5818 if test $ac_count -gt ${ac_path_SED_max-0}; then 5819 # Best one so far, save it but keep looking for a better one 5820 ac_cv_path_SED="$ac_path_SED" 5821 ac_path_SED_max=$ac_count 5822 fi 5823 # 10*(2^10) chars as input seems more than enough 5824 test $ac_count -gt 10 && break 5825 done 5826 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5827esac 5828 5829 $ac_path_SED_found && break 3 5830 done 5831 done 5832 done 5833IFS=$as_save_IFS 5834 if test -z "$ac_cv_path_SED"; then 5835 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5836 fi 5837else 5838 ac_cv_path_SED=$SED 5839fi 5840 5841fi 5842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5843$as_echo "$ac_cv_path_SED" >&6; } 5844 SED="$ac_cv_path_SED" 5845 rm -f conftest.sed 5846 5847test -z "$SED" && SED=sed 5848Xsed="$SED -e 1s/^X//" 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5861$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5862if ${ac_cv_path_GREP+:} false; then : 5863 $as_echo_n "(cached) " >&6 5864else 5865 if test -z "$GREP"; then 5866 ac_path_GREP_found=false 5867 # Loop through the user's path and test for each of PROGNAME-LIST 5868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5869for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5870do 5871 IFS=$as_save_IFS 5872 test -z "$as_dir" && as_dir=. 5873 for ac_prog in grep ggrep; do 5874 for ac_exec_ext in '' $ac_executable_extensions; do 5875 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5876 as_fn_executable_p "$ac_path_GREP" || continue 5877# Check for GNU ac_path_GREP and select it if it is found. 5878 # Check for GNU $ac_path_GREP 5879case `"$ac_path_GREP" --version 2>&1` in 5880*GNU*) 5881 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5882*) 5883 ac_count=0 5884 $as_echo_n 0123456789 >"conftest.in" 5885 while : 5886 do 5887 cat "conftest.in" "conftest.in" >"conftest.tmp" 5888 mv "conftest.tmp" "conftest.in" 5889 cp "conftest.in" "conftest.nl" 5890 $as_echo 'GREP' >> "conftest.nl" 5891 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5892 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5893 as_fn_arith $ac_count + 1 && ac_count=$as_val 5894 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5895 # Best one so far, save it but keep looking for a better one 5896 ac_cv_path_GREP="$ac_path_GREP" 5897 ac_path_GREP_max=$ac_count 5898 fi 5899 # 10*(2^10) chars as input seems more than enough 5900 test $ac_count -gt 10 && break 5901 done 5902 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5903esac 5904 5905 $ac_path_GREP_found && break 3 5906 done 5907 done 5908 done 5909IFS=$as_save_IFS 5910 if test -z "$ac_cv_path_GREP"; then 5911 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5912 fi 5913else 5914 ac_cv_path_GREP=$GREP 5915fi 5916 5917fi 5918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5919$as_echo "$ac_cv_path_GREP" >&6; } 5920 GREP="$ac_cv_path_GREP" 5921 5922 5923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5924$as_echo_n "checking for egrep... " >&6; } 5925if ${ac_cv_path_EGREP+:} false; then : 5926 $as_echo_n "(cached) " >&6 5927else 5928 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5929 then ac_cv_path_EGREP="$GREP -E" 5930 else 5931 if test -z "$EGREP"; then 5932 ac_path_EGREP_found=false 5933 # Loop through the user's path and test for each of PROGNAME-LIST 5934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5935for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5936do 5937 IFS=$as_save_IFS 5938 test -z "$as_dir" && as_dir=. 5939 for ac_prog in egrep; do 5940 for ac_exec_ext in '' $ac_executable_extensions; do 5941 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5942 as_fn_executable_p "$ac_path_EGREP" || continue 5943# Check for GNU ac_path_EGREP and select it if it is found. 5944 # Check for GNU $ac_path_EGREP 5945case `"$ac_path_EGREP" --version 2>&1` in 5946*GNU*) 5947 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5948*) 5949 ac_count=0 5950 $as_echo_n 0123456789 >"conftest.in" 5951 while : 5952 do 5953 cat "conftest.in" "conftest.in" >"conftest.tmp" 5954 mv "conftest.tmp" "conftest.in" 5955 cp "conftest.in" "conftest.nl" 5956 $as_echo 'EGREP' >> "conftest.nl" 5957 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5958 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5959 as_fn_arith $ac_count + 1 && ac_count=$as_val 5960 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5961 # Best one so far, save it but keep looking for a better one 5962 ac_cv_path_EGREP="$ac_path_EGREP" 5963 ac_path_EGREP_max=$ac_count 5964 fi 5965 # 10*(2^10) chars as input seems more than enough 5966 test $ac_count -gt 10 && break 5967 done 5968 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5969esac 5970 5971 $ac_path_EGREP_found && break 3 5972 done 5973 done 5974 done 5975IFS=$as_save_IFS 5976 if test -z "$ac_cv_path_EGREP"; then 5977 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5978 fi 5979else 5980 ac_cv_path_EGREP=$EGREP 5981fi 5982 5983 fi 5984fi 5985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5986$as_echo "$ac_cv_path_EGREP" >&6; } 5987 EGREP="$ac_cv_path_EGREP" 5988 5989 5990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5991$as_echo_n "checking for fgrep... " >&6; } 5992if ${ac_cv_path_FGREP+:} false; then : 5993 $as_echo_n "(cached) " >&6 5994else 5995 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5996 then ac_cv_path_FGREP="$GREP -F" 5997 else 5998 if test -z "$FGREP"; then 5999 ac_path_FGREP_found=false 6000 # Loop through the user's path and test for each of PROGNAME-LIST 6001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6002for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6003do 6004 IFS=$as_save_IFS 6005 test -z "$as_dir" && as_dir=. 6006 for ac_prog in fgrep; do 6007 for ac_exec_ext in '' $ac_executable_extensions; do 6008 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 6009 as_fn_executable_p "$ac_path_FGREP" || continue 6010# Check for GNU ac_path_FGREP and select it if it is found. 6011 # Check for GNU $ac_path_FGREP 6012case `"$ac_path_FGREP" --version 2>&1` in 6013*GNU*) 6014 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 6015*) 6016 ac_count=0 6017 $as_echo_n 0123456789 >"conftest.in" 6018 while : 6019 do 6020 cat "conftest.in" "conftest.in" >"conftest.tmp" 6021 mv "conftest.tmp" "conftest.in" 6022 cp "conftest.in" "conftest.nl" 6023 $as_echo 'FGREP' >> "conftest.nl" 6024 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6025 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6026 as_fn_arith $ac_count + 1 && ac_count=$as_val 6027 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6028 # Best one so far, save it but keep looking for a better one 6029 ac_cv_path_FGREP="$ac_path_FGREP" 6030 ac_path_FGREP_max=$ac_count 6031 fi 6032 # 10*(2^10) chars as input seems more than enough 6033 test $ac_count -gt 10 && break 6034 done 6035 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6036esac 6037 6038 $ac_path_FGREP_found && break 3 6039 done 6040 done 6041 done 6042IFS=$as_save_IFS 6043 if test -z "$ac_cv_path_FGREP"; then 6044 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6045 fi 6046else 6047 ac_cv_path_FGREP=$FGREP 6048fi 6049 6050 fi 6051fi 6052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6053$as_echo "$ac_cv_path_FGREP" >&6; } 6054 FGREP="$ac_cv_path_FGREP" 6055 6056 6057test -z "$GREP" && GREP=grep 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077# Check whether --with-gnu-ld was given. 6078if test "${with_gnu_ld+set}" = set; then : 6079 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 6080else 6081 with_gnu_ld=no 6082fi 6083 6084ac_prog=ld 6085if test yes = "$GCC"; then 6086 # Check if gcc -print-prog-name=ld gives a path. 6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6088$as_echo_n "checking for ld used by $CC... " >&6; } 6089 case $host in 6090 *-*-mingw*) 6091 # gcc leaves a trailing carriage return, which upsets mingw 6092 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6093 *) 6094 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6095 esac 6096 case $ac_prog in 6097 # Accept absolute paths. 6098 [\\/]* | ?:[\\/]*) 6099 re_direlt='/[^/][^/]*/\.\./' 6100 # Canonicalize the pathname of ld 6101 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6102 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6103 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6104 done 6105 test -z "$LD" && LD=$ac_prog 6106 ;; 6107 "") 6108 # If it fails, then pretend we aren't using GCC. 6109 ac_prog=ld 6110 ;; 6111 *) 6112 # If it is relative, then search for the first ld in PATH. 6113 with_gnu_ld=unknown 6114 ;; 6115 esac 6116elif test yes = "$with_gnu_ld"; then 6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6118$as_echo_n "checking for GNU ld... " >&6; } 6119else 6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6121$as_echo_n "checking for non-GNU ld... " >&6; } 6122fi 6123if ${lt_cv_path_LD+:} false; then : 6124 $as_echo_n "(cached) " >&6 6125else 6126 if test -z "$LD"; then 6127 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6128 for ac_dir in $PATH; do 6129 IFS=$lt_save_ifs 6130 test -z "$ac_dir" && ac_dir=. 6131 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6132 lt_cv_path_LD=$ac_dir/$ac_prog 6133 # Check to see if the program is GNU ld. I'd rather use --version, 6134 # but apparently some variants of GNU ld only accept -v. 6135 # Break only if it was the GNU/non-GNU ld that we prefer. 6136 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6137 *GNU* | *'with BFD'*) 6138 test no != "$with_gnu_ld" && break 6139 ;; 6140 *) 6141 test yes != "$with_gnu_ld" && break 6142 ;; 6143 esac 6144 fi 6145 done 6146 IFS=$lt_save_ifs 6147else 6148 lt_cv_path_LD=$LD # Let the user override the test with a path. 6149fi 6150fi 6151 6152LD=$lt_cv_path_LD 6153if test -n "$LD"; then 6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6155$as_echo "$LD" >&6; } 6156else 6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6158$as_echo "no" >&6; } 6159fi 6160test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6162$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 6163if ${lt_cv_prog_gnu_ld+:} false; then : 6164 $as_echo_n "(cached) " >&6 6165else 6166 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6167case `$LD -v 2>&1 </dev/null` in 6168*GNU* | *'with BFD'*) 6169 lt_cv_prog_gnu_ld=yes 6170 ;; 6171*) 6172 lt_cv_prog_gnu_ld=no 6173 ;; 6174esac 6175fi 6176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6177$as_echo "$lt_cv_prog_gnu_ld" >&6; } 6178with_gnu_ld=$lt_cv_prog_gnu_ld 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6189$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6190if ${lt_cv_path_NM+:} false; then : 6191 $as_echo_n "(cached) " >&6 6192else 6193 if test -n "$NM"; then 6194 # Let the user override the test. 6195 lt_cv_path_NM=$NM 6196else 6197 lt_nm_to_check=${ac_tool_prefix}nm 6198 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6199 lt_nm_to_check="$lt_nm_to_check nm" 6200 fi 6201 for lt_tmp_nm in $lt_nm_to_check; do 6202 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6203 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6204 IFS=$lt_save_ifs 6205 test -z "$ac_dir" && ac_dir=. 6206 tmp_nm=$ac_dir/$lt_tmp_nm 6207 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 6208 # Check to see if the nm accepts a BSD-compat flag. 6209 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 6210 # nm: unknown option "B" ignored 6211 # Tru64's nm complains that /dev/null is an invalid object file 6212 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 6213 case $build_os in 6214 mingw*) lt_bad_file=conftest.nm/nofile ;; 6215 *) lt_bad_file=/dev/null ;; 6216 esac 6217 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 6218 *$lt_bad_file* | *'Invalid file or object type'*) 6219 lt_cv_path_NM="$tmp_nm -B" 6220 break 2 6221 ;; 6222 *) 6223 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6224 */dev/null*) 6225 lt_cv_path_NM="$tmp_nm -p" 6226 break 2 6227 ;; 6228 *) 6229 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6230 continue # so that we can try to find one that supports BSD flags 6231 ;; 6232 esac 6233 ;; 6234 esac 6235 fi 6236 done 6237 IFS=$lt_save_ifs 6238 done 6239 : ${lt_cv_path_NM=no} 6240fi 6241fi 6242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6243$as_echo "$lt_cv_path_NM" >&6; } 6244if test no != "$lt_cv_path_NM"; then 6245 NM=$lt_cv_path_NM 6246else 6247 # Didn't find any BSD compatible name lister, look for dumpbin. 6248 if test -n "$DUMPBIN"; then : 6249 # Let the user override the test. 6250 else 6251 if test -n "$ac_tool_prefix"; then 6252 for ac_prog in dumpbin "link -dump" 6253 do 6254 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6255set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6257$as_echo_n "checking for $ac_word... " >&6; } 6258if ${ac_cv_prog_DUMPBIN+:} false; then : 6259 $as_echo_n "(cached) " >&6 6260else 6261 if test -n "$DUMPBIN"; then 6262 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6263else 6264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6265for as_dir in $PATH 6266do 6267 IFS=$as_save_IFS 6268 test -z "$as_dir" && as_dir=. 6269 for ac_exec_ext in '' $ac_executable_extensions; do 6270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6271 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6273 break 2 6274 fi 6275done 6276 done 6277IFS=$as_save_IFS 6278 6279fi 6280fi 6281DUMPBIN=$ac_cv_prog_DUMPBIN 6282if test -n "$DUMPBIN"; then 6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6284$as_echo "$DUMPBIN" >&6; } 6285else 6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6287$as_echo "no" >&6; } 6288fi 6289 6290 6291 test -n "$DUMPBIN" && break 6292 done 6293fi 6294if test -z "$DUMPBIN"; then 6295 ac_ct_DUMPBIN=$DUMPBIN 6296 for ac_prog in dumpbin "link -dump" 6297do 6298 # Extract the first word of "$ac_prog", so it can be a program name with args. 6299set dummy $ac_prog; ac_word=$2 6300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6301$as_echo_n "checking for $ac_word... " >&6; } 6302if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 6303 $as_echo_n "(cached) " >&6 6304else 6305 if test -n "$ac_ct_DUMPBIN"; then 6306 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6307else 6308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6309for as_dir in $PATH 6310do 6311 IFS=$as_save_IFS 6312 test -z "$as_dir" && as_dir=. 6313 for ac_exec_ext in '' $ac_executable_extensions; do 6314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6315 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6317 break 2 6318 fi 6319done 6320 done 6321IFS=$as_save_IFS 6322 6323fi 6324fi 6325ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6326if test -n "$ac_ct_DUMPBIN"; then 6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6328$as_echo "$ac_ct_DUMPBIN" >&6; } 6329else 6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6331$as_echo "no" >&6; } 6332fi 6333 6334 6335 test -n "$ac_ct_DUMPBIN" && break 6336done 6337 6338 if test "x$ac_ct_DUMPBIN" = x; then 6339 DUMPBIN=":" 6340 else 6341 case $cross_compiling:$ac_tool_warned in 6342yes:) 6343{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6344$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6345ac_tool_warned=yes ;; 6346esac 6347 DUMPBIN=$ac_ct_DUMPBIN 6348 fi 6349fi 6350 6351 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 6352 *COFF*) 6353 DUMPBIN="$DUMPBIN -symbols -headers" 6354 ;; 6355 *) 6356 DUMPBIN=: 6357 ;; 6358 esac 6359 fi 6360 6361 if test : != "$DUMPBIN"; then 6362 NM=$DUMPBIN 6363 fi 6364fi 6365test -z "$NM" && NM=nm 6366 6367 6368 6369 6370 6371 6372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6373$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6374if ${lt_cv_nm_interface+:} false; then : 6375 $as_echo_n "(cached) " >&6 6376else 6377 lt_cv_nm_interface="BSD nm" 6378 echo "int some_variable = 0;" > conftest.$ac_ext 6379 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6380 (eval "$ac_compile" 2>conftest.err) 6381 cat conftest.err >&5 6382 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6383 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6384 cat conftest.err >&5 6385 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6386 cat conftest.out >&5 6387 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6388 lt_cv_nm_interface="MS dumpbin" 6389 fi 6390 rm -f conftest* 6391fi 6392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6393$as_echo "$lt_cv_nm_interface" >&6; } 6394 6395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6396$as_echo_n "checking whether ln -s works... " >&6; } 6397LN_S=$as_ln_s 6398if test "$LN_S" = "ln -s"; then 6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6400$as_echo "yes" >&6; } 6401else 6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6403$as_echo "no, using $LN_S" >&6; } 6404fi 6405 6406# find the maximum length of command line arguments 6407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6408$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6409if ${lt_cv_sys_max_cmd_len+:} false; then : 6410 $as_echo_n "(cached) " >&6 6411else 6412 i=0 6413 teststring=ABCD 6414 6415 case $build_os in 6416 msdosdjgpp*) 6417 # On DJGPP, this test can blow up pretty badly due to problems in libc 6418 # (any single argument exceeding 2000 bytes causes a buffer overrun 6419 # during glob expansion). Even if it were fixed, the result of this 6420 # check would be larger than it should be. 6421 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6422 ;; 6423 6424 gnu*) 6425 # Under GNU Hurd, this test is not required because there is 6426 # no limit to the length of command line arguments. 6427 # Libtool will interpret -1 as no limit whatsoever 6428 lt_cv_sys_max_cmd_len=-1; 6429 ;; 6430 6431 cygwin* | mingw* | cegcc*) 6432 # On Win9x/ME, this test blows up -- it succeeds, but takes 6433 # about 5 minutes as the teststring grows exponentially. 6434 # Worse, since 9x/ME are not pre-emptively multitasking, 6435 # you end up with a "frozen" computer, even though with patience 6436 # the test eventually succeeds (with a max line length of 256k). 6437 # Instead, let's just punt: use the minimum linelength reported by 6438 # all of the supported platforms: 8192 (on NT/2K/XP). 6439 lt_cv_sys_max_cmd_len=8192; 6440 ;; 6441 6442 mint*) 6443 # On MiNT this can take a long time and run out of memory. 6444 lt_cv_sys_max_cmd_len=8192; 6445 ;; 6446 6447 amigaos*) 6448 # On AmigaOS with pdksh, this test takes hours, literally. 6449 # So we just punt and use a minimum line length of 8192. 6450 lt_cv_sys_max_cmd_len=8192; 6451 ;; 6452 6453 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 6454 # This has been around since 386BSD, at least. Likely further. 6455 if test -x /sbin/sysctl; then 6456 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6457 elif test -x /usr/sbin/sysctl; then 6458 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6459 else 6460 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6461 fi 6462 # And add a safety zone 6463 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6464 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6465 ;; 6466 6467 interix*) 6468 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6469 lt_cv_sys_max_cmd_len=196608 6470 ;; 6471 6472 os2*) 6473 # The test takes a long time on OS/2. 6474 lt_cv_sys_max_cmd_len=8192 6475 ;; 6476 6477 osf*) 6478 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6479 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6480 # nice to cause kernel panics so lets avoid the loop below. 6481 # First set a reasonable default. 6482 lt_cv_sys_max_cmd_len=16384 6483 # 6484 if test -x /sbin/sysconfig; then 6485 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6486 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6487 esac 6488 fi 6489 ;; 6490 sco3.2v5*) 6491 lt_cv_sys_max_cmd_len=102400 6492 ;; 6493 sysv5* | sco5v6* | sysv4.2uw2*) 6494 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6495 if test -n "$kargmax"; then 6496 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6497 else 6498 lt_cv_sys_max_cmd_len=32768 6499 fi 6500 ;; 6501 *) 6502 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6503 if test -n "$lt_cv_sys_max_cmd_len" && \ 6504 test undefined != "$lt_cv_sys_max_cmd_len"; then 6505 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6506 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6507 else 6508 # Make teststring a little bigger before we do anything with it. 6509 # a 1K string should be a reasonable start. 6510 for i in 1 2 3 4 5 6 7 8; do 6511 teststring=$teststring$teststring 6512 done 6513 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6514 # If test is not a shell built-in, we'll probably end up computing a 6515 # maximum length that is only half of the actual maximum length, but 6516 # we can't tell. 6517 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6518 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6519 test 17 != "$i" # 1/2 MB should be enough 6520 do 6521 i=`expr $i + 1` 6522 teststring=$teststring$teststring 6523 done 6524 # Only check the string length outside the loop. 6525 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6526 teststring= 6527 # Add a significant safety factor because C++ compilers can tack on 6528 # massive amounts of additional arguments before passing them to the 6529 # linker. It appears as though 1/2 is a usable value. 6530 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6531 fi 6532 ;; 6533 esac 6534 6535fi 6536 6537if test -n "$lt_cv_sys_max_cmd_len"; then 6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6539$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6540else 6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6542$as_echo "none" >&6; } 6543fi 6544max_cmd_len=$lt_cv_sys_max_cmd_len 6545 6546 6547 6548 6549 6550 6551: ${CP="cp -f"} 6552: ${MV="mv -f"} 6553: ${RM="rm -f"} 6554 6555if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6556 lt_unset=unset 6557else 6558 lt_unset=false 6559fi 6560 6561 6562 6563 6564 6565# test EBCDIC or ASCII 6566case `echo X|tr X '\101'` in 6567 A) # ASCII based system 6568 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6569 lt_SP2NL='tr \040 \012' 6570 lt_NL2SP='tr \015\012 \040\040' 6571 ;; 6572 *) # EBCDIC based system 6573 lt_SP2NL='tr \100 \n' 6574 lt_NL2SP='tr \r\n \100\100' 6575 ;; 6576esac 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6587$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6588if ${lt_cv_to_host_file_cmd+:} false; then : 6589 $as_echo_n "(cached) " >&6 6590else 6591 case $host in 6592 *-*-mingw* ) 6593 case $build in 6594 *-*-mingw* ) # actually msys 6595 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6596 ;; 6597 *-*-cygwin* ) 6598 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6599 ;; 6600 * ) # otherwise, assume *nix 6601 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6602 ;; 6603 esac 6604 ;; 6605 *-*-cygwin* ) 6606 case $build in 6607 *-*-mingw* ) # actually msys 6608 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6609 ;; 6610 *-*-cygwin* ) 6611 lt_cv_to_host_file_cmd=func_convert_file_noop 6612 ;; 6613 * ) # otherwise, assume *nix 6614 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6615 ;; 6616 esac 6617 ;; 6618 * ) # unhandled hosts (and "normal" native builds) 6619 lt_cv_to_host_file_cmd=func_convert_file_noop 6620 ;; 6621esac 6622 6623fi 6624 6625to_host_file_cmd=$lt_cv_to_host_file_cmd 6626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6627$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6628 6629 6630 6631 6632 6633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6634$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6635if ${lt_cv_to_tool_file_cmd+:} false; then : 6636 $as_echo_n "(cached) " >&6 6637else 6638 #assume ordinary cross tools, or native build. 6639lt_cv_to_tool_file_cmd=func_convert_file_noop 6640case $host in 6641 *-*-mingw* ) 6642 case $build in 6643 *-*-mingw* ) # actually msys 6644 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6645 ;; 6646 esac 6647 ;; 6648esac 6649 6650fi 6651 6652to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6654$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6655 6656 6657 6658 6659 6660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6661$as_echo_n "checking for $LD option to reload object files... " >&6; } 6662if ${lt_cv_ld_reload_flag+:} false; then : 6663 $as_echo_n "(cached) " >&6 6664else 6665 lt_cv_ld_reload_flag='-r' 6666fi 6667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6668$as_echo "$lt_cv_ld_reload_flag" >&6; } 6669reload_flag=$lt_cv_ld_reload_flag 6670case $reload_flag in 6671"" | " "*) ;; 6672*) reload_flag=" $reload_flag" ;; 6673esac 6674reload_cmds='$LD$reload_flag -o $output$reload_objs' 6675case $host_os in 6676 cygwin* | mingw* | pw32* | cegcc*) 6677 if test yes != "$GCC"; then 6678 reload_cmds=false 6679 fi 6680 ;; 6681 darwin*) 6682 if test yes = "$GCC"; then 6683 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6684 else 6685 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6686 fi 6687 ;; 6688esac 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698if test -n "$ac_tool_prefix"; then 6699 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6700set dummy ${ac_tool_prefix}objdump; ac_word=$2 6701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6702$as_echo_n "checking for $ac_word... " >&6; } 6703if ${ac_cv_prog_OBJDUMP+:} false; then : 6704 $as_echo_n "(cached) " >&6 6705else 6706 if test -n "$OBJDUMP"; then 6707 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6708else 6709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6710for as_dir in $PATH 6711do 6712 IFS=$as_save_IFS 6713 test -z "$as_dir" && as_dir=. 6714 for ac_exec_ext in '' $ac_executable_extensions; do 6715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6716 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6718 break 2 6719 fi 6720done 6721 done 6722IFS=$as_save_IFS 6723 6724fi 6725fi 6726OBJDUMP=$ac_cv_prog_OBJDUMP 6727if test -n "$OBJDUMP"; then 6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6729$as_echo "$OBJDUMP" >&6; } 6730else 6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6732$as_echo "no" >&6; } 6733fi 6734 6735 6736fi 6737if test -z "$ac_cv_prog_OBJDUMP"; then 6738 ac_ct_OBJDUMP=$OBJDUMP 6739 # Extract the first word of "objdump", so it can be a program name with args. 6740set dummy objdump; ac_word=$2 6741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6742$as_echo_n "checking for $ac_word... " >&6; } 6743if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6744 $as_echo_n "(cached) " >&6 6745else 6746 if test -n "$ac_ct_OBJDUMP"; then 6747 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6748else 6749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6750for as_dir in $PATH 6751do 6752 IFS=$as_save_IFS 6753 test -z "$as_dir" && as_dir=. 6754 for ac_exec_ext in '' $ac_executable_extensions; do 6755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6756 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6758 break 2 6759 fi 6760done 6761 done 6762IFS=$as_save_IFS 6763 6764fi 6765fi 6766ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6767if test -n "$ac_ct_OBJDUMP"; then 6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6769$as_echo "$ac_ct_OBJDUMP" >&6; } 6770else 6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6772$as_echo "no" >&6; } 6773fi 6774 6775 if test "x$ac_ct_OBJDUMP" = x; then 6776 OBJDUMP="false" 6777 else 6778 case $cross_compiling:$ac_tool_warned in 6779yes:) 6780{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6781$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6782ac_tool_warned=yes ;; 6783esac 6784 OBJDUMP=$ac_ct_OBJDUMP 6785 fi 6786else 6787 OBJDUMP="$ac_cv_prog_OBJDUMP" 6788fi 6789 6790test -z "$OBJDUMP" && OBJDUMP=objdump 6791 6792 6793 6794 6795 6796 6797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6798$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6799if ${lt_cv_deplibs_check_method+:} false; then : 6800 $as_echo_n "(cached) " >&6 6801else 6802 lt_cv_file_magic_cmd='$MAGIC_CMD' 6803lt_cv_file_magic_test_file= 6804lt_cv_deplibs_check_method='unknown' 6805# Need to set the preceding variable on all platforms that support 6806# interlibrary dependencies. 6807# 'none' -- dependencies not supported. 6808# 'unknown' -- same as none, but documents that we really don't know. 6809# 'pass_all' -- all dependencies passed with no checks. 6810# 'test_compile' -- check by making test program. 6811# 'file_magic [[regex]]' -- check by looking for files in library path 6812# that responds to the $file_magic_cmd with a given extended regex. 6813# If you have 'file' or equivalent on your system and you're not sure 6814# whether 'pass_all' will *always* work, you probably want this one. 6815 6816case $host_os in 6817aix[4-9]*) 6818 lt_cv_deplibs_check_method=pass_all 6819 ;; 6820 6821beos*) 6822 lt_cv_deplibs_check_method=pass_all 6823 ;; 6824 6825bsdi[45]*) 6826 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6827 lt_cv_file_magic_cmd='/usr/bin/file -L' 6828 lt_cv_file_magic_test_file=/shlib/libc.so 6829 ;; 6830 6831cygwin*) 6832 # func_win32_libid is a shell function defined in ltmain.sh 6833 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6834 lt_cv_file_magic_cmd='func_win32_libid' 6835 ;; 6836 6837mingw* | pw32*) 6838 # Base MSYS/MinGW do not provide the 'file' command needed by 6839 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6840 # unless we find 'file', for example because we are cross-compiling. 6841 if ( file / ) >/dev/null 2>&1; then 6842 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6843 lt_cv_file_magic_cmd='func_win32_libid' 6844 else 6845 # Keep this pattern in sync with the one in func_win32_libid. 6846 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6847 lt_cv_file_magic_cmd='$OBJDUMP -f' 6848 fi 6849 ;; 6850 6851cegcc*) 6852 # use the weaker test based on 'objdump'. See mingw*. 6853 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6854 lt_cv_file_magic_cmd='$OBJDUMP -f' 6855 ;; 6856 6857darwin* | rhapsody*) 6858 lt_cv_deplibs_check_method=pass_all 6859 ;; 6860 6861freebsd* | dragonfly*) 6862 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6863 case $host_cpu in 6864 i*86 ) 6865 # Not sure whether the presence of OpenBSD here was a mistake. 6866 # Let's accept both of them until this is cleared up. 6867 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6868 lt_cv_file_magic_cmd=/usr/bin/file 6869 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6870 ;; 6871 esac 6872 else 6873 lt_cv_deplibs_check_method=pass_all 6874 fi 6875 ;; 6876 6877haiku*) 6878 lt_cv_deplibs_check_method=pass_all 6879 ;; 6880 6881hpux10.20* | hpux11*) 6882 lt_cv_file_magic_cmd=/usr/bin/file 6883 case $host_cpu in 6884 ia64*) 6885 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6886 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6887 ;; 6888 hppa*64*) 6889 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]' 6890 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6891 ;; 6892 *) 6893 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6894 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6895 ;; 6896 esac 6897 ;; 6898 6899interix[3-9]*) 6900 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6901 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6902 ;; 6903 6904irix5* | irix6* | nonstopux*) 6905 case $LD in 6906 *-32|*"-32 ") libmagic=32-bit;; 6907 *-n32|*"-n32 ") libmagic=N32;; 6908 *-64|*"-64 ") libmagic=64-bit;; 6909 *) libmagic=never-match;; 6910 esac 6911 lt_cv_deplibs_check_method=pass_all 6912 ;; 6913 6914# This must be glibc/ELF. 6915linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6916 lt_cv_deplibs_check_method=pass_all 6917 ;; 6918 6919netbsd*) 6920 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6921 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6922 else 6923 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6924 fi 6925 ;; 6926 6927newos6*) 6928 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6929 lt_cv_file_magic_cmd=/usr/bin/file 6930 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6931 ;; 6932 6933*nto* | *qnx*) 6934 lt_cv_deplibs_check_method=pass_all 6935 ;; 6936 6937openbsd* | bitrig*) 6938 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6939 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6940 else 6941 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6942 fi 6943 ;; 6944 6945osf3* | osf4* | osf5*) 6946 lt_cv_deplibs_check_method=pass_all 6947 ;; 6948 6949rdos*) 6950 lt_cv_deplibs_check_method=pass_all 6951 ;; 6952 6953solaris*) 6954 lt_cv_deplibs_check_method=pass_all 6955 ;; 6956 6957sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6958 lt_cv_deplibs_check_method=pass_all 6959 ;; 6960 6961sysv4 | sysv4.3*) 6962 case $host_vendor in 6963 motorola) 6964 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]' 6965 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6966 ;; 6967 ncr) 6968 lt_cv_deplibs_check_method=pass_all 6969 ;; 6970 sequent) 6971 lt_cv_file_magic_cmd='/bin/file' 6972 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6973 ;; 6974 sni) 6975 lt_cv_file_magic_cmd='/bin/file' 6976 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6977 lt_cv_file_magic_test_file=/lib/libc.so 6978 ;; 6979 siemens) 6980 lt_cv_deplibs_check_method=pass_all 6981 ;; 6982 pc) 6983 lt_cv_deplibs_check_method=pass_all 6984 ;; 6985 esac 6986 ;; 6987 6988tpf*) 6989 lt_cv_deplibs_check_method=pass_all 6990 ;; 6991os2*) 6992 lt_cv_deplibs_check_method=pass_all 6993 ;; 6994esac 6995 6996fi 6997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6998$as_echo "$lt_cv_deplibs_check_method" >&6; } 6999 7000file_magic_glob= 7001want_nocaseglob=no 7002if test "$build" = "$host"; then 7003 case $host_os in 7004 mingw* | pw32*) 7005 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 7006 want_nocaseglob=yes 7007 else 7008 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 7009 fi 7010 ;; 7011 esac 7012fi 7013 7014file_magic_cmd=$lt_cv_file_magic_cmd 7015deplibs_check_method=$lt_cv_deplibs_check_method 7016test -z "$deplibs_check_method" && deplibs_check_method=unknown 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039if test -n "$ac_tool_prefix"; then 7040 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7041set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7043$as_echo_n "checking for $ac_word... " >&6; } 7044if ${ac_cv_prog_DLLTOOL+:} false; then : 7045 $as_echo_n "(cached) " >&6 7046else 7047 if test -n "$DLLTOOL"; then 7048 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7049else 7050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7051for as_dir in $PATH 7052do 7053 IFS=$as_save_IFS 7054 test -z "$as_dir" && as_dir=. 7055 for ac_exec_ext in '' $ac_executable_extensions; do 7056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7057 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7059 break 2 7060 fi 7061done 7062 done 7063IFS=$as_save_IFS 7064 7065fi 7066fi 7067DLLTOOL=$ac_cv_prog_DLLTOOL 7068if test -n "$DLLTOOL"; then 7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7070$as_echo "$DLLTOOL" >&6; } 7071else 7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7073$as_echo "no" >&6; } 7074fi 7075 7076 7077fi 7078if test -z "$ac_cv_prog_DLLTOOL"; then 7079 ac_ct_DLLTOOL=$DLLTOOL 7080 # Extract the first word of "dlltool", so it can be a program name with args. 7081set dummy dlltool; 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_DLLTOOL+:} false; then : 7085 $as_echo_n "(cached) " >&6 7086else 7087 if test -n "$ac_ct_DLLTOOL"; then 7088 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # 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_DLLTOOL="dlltool" 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_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7108if test -n "$ac_ct_DLLTOOL"; then 7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7110$as_echo "$ac_ct_DLLTOOL" >&6; } 7111else 7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7113$as_echo "no" >&6; } 7114fi 7115 7116 if test "x$ac_ct_DLLTOOL" = x; then 7117 DLLTOOL="false" 7118 else 7119 case $cross_compiling:$ac_tool_warned in 7120yes:) 7121{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7122$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7123ac_tool_warned=yes ;; 7124esac 7125 DLLTOOL=$ac_ct_DLLTOOL 7126 fi 7127else 7128 DLLTOOL="$ac_cv_prog_DLLTOOL" 7129fi 7130 7131test -z "$DLLTOOL" && DLLTOOL=dlltool 7132 7133 7134 7135 7136 7137 7138 7139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 7140$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 7141if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 7142 $as_echo_n "(cached) " >&6 7143else 7144 lt_cv_sharedlib_from_linklib_cmd='unknown' 7145 7146case $host_os in 7147cygwin* | mingw* | pw32* | cegcc*) 7148 # two different shell functions defined in ltmain.sh; 7149 # decide which one to use based on capabilities of $DLLTOOL 7150 case `$DLLTOOL --help 2>&1` in 7151 *--identify-strict*) 7152 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 7153 ;; 7154 *) 7155 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 7156 ;; 7157 esac 7158 ;; 7159*) 7160 # fallback: assume linklib IS sharedlib 7161 lt_cv_sharedlib_from_linklib_cmd=$ECHO 7162 ;; 7163esac 7164 7165fi 7166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 7167$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 7168sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 7169test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 7170 7171 7172 7173 7174 7175 7176 7177if test -n "$ac_tool_prefix"; then 7178 for ac_prog in ar 7179 do 7180 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7181set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7183$as_echo_n "checking for $ac_word... " >&6; } 7184if ${ac_cv_prog_AR+:} false; then : 7185 $as_echo_n "(cached) " >&6 7186else 7187 if test -n "$AR"; then 7188 ac_cv_prog_AR="$AR" # Let the user override the test. 7189else 7190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7191for as_dir in $PATH 7192do 7193 IFS=$as_save_IFS 7194 test -z "$as_dir" && as_dir=. 7195 for ac_exec_ext in '' $ac_executable_extensions; do 7196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7197 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7199 break 2 7200 fi 7201done 7202 done 7203IFS=$as_save_IFS 7204 7205fi 7206fi 7207AR=$ac_cv_prog_AR 7208if test -n "$AR"; then 7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7210$as_echo "$AR" >&6; } 7211else 7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7213$as_echo "no" >&6; } 7214fi 7215 7216 7217 test -n "$AR" && break 7218 done 7219fi 7220if test -z "$AR"; then 7221 ac_ct_AR=$AR 7222 for ac_prog in ar 7223do 7224 # Extract the first word of "$ac_prog", so it can be a program name with args. 7225set dummy $ac_prog; ac_word=$2 7226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7227$as_echo_n "checking for $ac_word... " >&6; } 7228if ${ac_cv_prog_ac_ct_AR+:} false; then : 7229 $as_echo_n "(cached) " >&6 7230else 7231 if test -n "$ac_ct_AR"; then 7232 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7233else 7234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7235for as_dir in $PATH 7236do 7237 IFS=$as_save_IFS 7238 test -z "$as_dir" && as_dir=. 7239 for ac_exec_ext in '' $ac_executable_extensions; do 7240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7241 ac_cv_prog_ac_ct_AR="$ac_prog" 7242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7243 break 2 7244 fi 7245done 7246 done 7247IFS=$as_save_IFS 7248 7249fi 7250fi 7251ac_ct_AR=$ac_cv_prog_ac_ct_AR 7252if test -n "$ac_ct_AR"; then 7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7254$as_echo "$ac_ct_AR" >&6; } 7255else 7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7257$as_echo "no" >&6; } 7258fi 7259 7260 7261 test -n "$ac_ct_AR" && break 7262done 7263 7264 if test "x$ac_ct_AR" = x; then 7265 AR="false" 7266 else 7267 case $cross_compiling:$ac_tool_warned in 7268yes:) 7269{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7270$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7271ac_tool_warned=yes ;; 7272esac 7273 AR=$ac_ct_AR 7274 fi 7275fi 7276 7277: ${AR=ar} 7278: ${AR_FLAGS=cru} 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7291$as_echo_n "checking for archiver @FILE support... " >&6; } 7292if ${lt_cv_ar_at_file+:} false; then : 7293 $as_echo_n "(cached) " >&6 7294else 7295 lt_cv_ar_at_file=no 7296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7297/* end confdefs.h. */ 7298 7299int 7300main () 7301{ 7302 7303 ; 7304 return 0; 7305} 7306_ACEOF 7307if ac_fn_cxx_try_compile "$LINENO"; then : 7308 echo conftest.$ac_objext > conftest.lst 7309 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7310 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7311 (eval $lt_ar_try) 2>&5 7312 ac_status=$? 7313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7314 test $ac_status = 0; } 7315 if test 0 -eq "$ac_status"; then 7316 # Ensure the archiver fails upon bogus file names. 7317 rm -f conftest.$ac_objext libconftest.a 7318 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7319 (eval $lt_ar_try) 2>&5 7320 ac_status=$? 7321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7322 test $ac_status = 0; } 7323 if test 0 -ne "$ac_status"; then 7324 lt_cv_ar_at_file=@ 7325 fi 7326 fi 7327 rm -f conftest.* libconftest.a 7328 7329fi 7330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7331 7332fi 7333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7334$as_echo "$lt_cv_ar_at_file" >&6; } 7335 7336if test no = "$lt_cv_ar_at_file"; then 7337 archiver_list_spec= 7338else 7339 archiver_list_spec=$lt_cv_ar_at_file 7340fi 7341 7342 7343 7344 7345 7346 7347 7348if test -n "$ac_tool_prefix"; then 7349 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7350set dummy ${ac_tool_prefix}strip; ac_word=$2 7351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7352$as_echo_n "checking for $ac_word... " >&6; } 7353if ${ac_cv_prog_STRIP+:} false; then : 7354 $as_echo_n "(cached) " >&6 7355else 7356 if test -n "$STRIP"; then 7357 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7358else 7359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7360for as_dir in $PATH 7361do 7362 IFS=$as_save_IFS 7363 test -z "$as_dir" && as_dir=. 7364 for ac_exec_ext in '' $ac_executable_extensions; do 7365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7366 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7368 break 2 7369 fi 7370done 7371 done 7372IFS=$as_save_IFS 7373 7374fi 7375fi 7376STRIP=$ac_cv_prog_STRIP 7377if test -n "$STRIP"; then 7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7379$as_echo "$STRIP" >&6; } 7380else 7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7382$as_echo "no" >&6; } 7383fi 7384 7385 7386fi 7387if test -z "$ac_cv_prog_STRIP"; then 7388 ac_ct_STRIP=$STRIP 7389 # Extract the first word of "strip", so it can be a program name with args. 7390set dummy strip; ac_word=$2 7391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7392$as_echo_n "checking for $ac_word... " >&6; } 7393if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 7394 $as_echo_n "(cached) " >&6 7395else 7396 if test -n "$ac_ct_STRIP"; then 7397 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7398else 7399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7400for as_dir in $PATH 7401do 7402 IFS=$as_save_IFS 7403 test -z "$as_dir" && as_dir=. 7404 for ac_exec_ext in '' $ac_executable_extensions; do 7405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7406 ac_cv_prog_ac_ct_STRIP="strip" 7407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7408 break 2 7409 fi 7410done 7411 done 7412IFS=$as_save_IFS 7413 7414fi 7415fi 7416ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7417if test -n "$ac_ct_STRIP"; then 7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7419$as_echo "$ac_ct_STRIP" >&6; } 7420else 7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7422$as_echo "no" >&6; } 7423fi 7424 7425 if test "x$ac_ct_STRIP" = x; then 7426 STRIP=":" 7427 else 7428 case $cross_compiling:$ac_tool_warned in 7429yes:) 7430{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7431$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7432ac_tool_warned=yes ;; 7433esac 7434 STRIP=$ac_ct_STRIP 7435 fi 7436else 7437 STRIP="$ac_cv_prog_STRIP" 7438fi 7439 7440test -z "$STRIP" && STRIP=: 7441 7442 7443 7444 7445 7446 7447if test -n "$ac_tool_prefix"; then 7448 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7449set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7451$as_echo_n "checking for $ac_word... " >&6; } 7452if ${ac_cv_prog_RANLIB+:} false; then : 7453 $as_echo_n "(cached) " >&6 7454else 7455 if test -n "$RANLIB"; then 7456 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7457else 7458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7459for as_dir in $PATH 7460do 7461 IFS=$as_save_IFS 7462 test -z "$as_dir" && as_dir=. 7463 for ac_exec_ext in '' $ac_executable_extensions; do 7464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7465 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7467 break 2 7468 fi 7469done 7470 done 7471IFS=$as_save_IFS 7472 7473fi 7474fi 7475RANLIB=$ac_cv_prog_RANLIB 7476if test -n "$RANLIB"; then 7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7478$as_echo "$RANLIB" >&6; } 7479else 7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7481$as_echo "no" >&6; } 7482fi 7483 7484 7485fi 7486if test -z "$ac_cv_prog_RANLIB"; then 7487 ac_ct_RANLIB=$RANLIB 7488 # Extract the first word of "ranlib", so it can be a program name with args. 7489set dummy ranlib; ac_word=$2 7490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7491$as_echo_n "checking for $ac_word... " >&6; } 7492if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7493 $as_echo_n "(cached) " >&6 7494else 7495 if test -n "$ac_ct_RANLIB"; then 7496 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7497else 7498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7499for as_dir in $PATH 7500do 7501 IFS=$as_save_IFS 7502 test -z "$as_dir" && as_dir=. 7503 for ac_exec_ext in '' $ac_executable_extensions; do 7504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7505 ac_cv_prog_ac_ct_RANLIB="ranlib" 7506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7507 break 2 7508 fi 7509done 7510 done 7511IFS=$as_save_IFS 7512 7513fi 7514fi 7515ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7516if test -n "$ac_ct_RANLIB"; then 7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7518$as_echo "$ac_ct_RANLIB" >&6; } 7519else 7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7521$as_echo "no" >&6; } 7522fi 7523 7524 if test "x$ac_ct_RANLIB" = x; then 7525 RANLIB=":" 7526 else 7527 case $cross_compiling:$ac_tool_warned in 7528yes:) 7529{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7530$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7531ac_tool_warned=yes ;; 7532esac 7533 RANLIB=$ac_ct_RANLIB 7534 fi 7535else 7536 RANLIB="$ac_cv_prog_RANLIB" 7537fi 7538 7539test -z "$RANLIB" && RANLIB=: 7540 7541 7542 7543 7544 7545 7546# Determine commands to create old-style static archives. 7547old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7548old_postinstall_cmds='chmod 644 $oldlib' 7549old_postuninstall_cmds= 7550 7551if test -n "$RANLIB"; then 7552 case $host_os in 7553 bitrig* | openbsd*) 7554 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7555 ;; 7556 *) 7557 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7558 ;; 7559 esac 7560 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7561fi 7562 7563case $host_os in 7564 darwin*) 7565 lock_old_archive_extraction=yes ;; 7566 *) 7567 lock_old_archive_extraction=no ;; 7568esac 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608# If no C compiler was specified, use CC. 7609LTCC=${LTCC-"$CC"} 7610 7611# If no C compiler flags were specified, use CFLAGS. 7612LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7613 7614# Allow CC to be a program name with arguments. 7615compiler=$CC 7616 7617 7618# Check for command to grab the raw symbol name followed by C symbol from nm. 7619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7620$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7621if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7622 $as_echo_n "(cached) " >&6 7623else 7624 7625# These are sane defaults that work on at least a few old systems. 7626# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7627 7628# Character class describing NM global symbol codes. 7629symcode='[BCDEGRST]' 7630 7631# Regexp to match symbols that can be accessed directly from C. 7632sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7633 7634# Define system-specific variables. 7635case $host_os in 7636aix*) 7637 symcode='[BCDT]' 7638 ;; 7639cygwin* | mingw* | pw32* | cegcc*) 7640 symcode='[ABCDGISTW]' 7641 ;; 7642hpux*) 7643 if test ia64 = "$host_cpu"; then 7644 symcode='[ABCDEGRST]' 7645 fi 7646 ;; 7647irix* | nonstopux*) 7648 symcode='[BCDEGRST]' 7649 ;; 7650osf*) 7651 symcode='[BCDEGQRST]' 7652 ;; 7653solaris*) 7654 symcode='[BDRT]' 7655 ;; 7656sco3.2v5*) 7657 symcode='[DT]' 7658 ;; 7659sysv4.2uw2*) 7660 symcode='[DT]' 7661 ;; 7662sysv5* | sco5v6* | unixware* | OpenUNIX*) 7663 symcode='[ABDT]' 7664 ;; 7665sysv4) 7666 symcode='[DFNSTU]' 7667 ;; 7668esac 7669 7670# If we're using GNU nm, then use its standard symbol codes. 7671case `$NM -V 2>&1` in 7672*GNU* | *'with BFD'*) 7673 symcode='[ABCDGIRSTW]' ;; 7674esac 7675 7676if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7677 # Gets list of data symbols to import. 7678 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 7679 # Adjust the below global symbol transforms to fixup imported variables. 7680 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7681 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7682 lt_c_name_lib_hook="\ 7683 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7684 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7685else 7686 # Disable hooks by default. 7687 lt_cv_sys_global_symbol_to_import= 7688 lt_cdecl_hook= 7689 lt_c_name_hook= 7690 lt_c_name_lib_hook= 7691fi 7692 7693# Transform an extracted symbol line into a proper C declaration. 7694# Some systems (esp. on ia64) link data and code symbols differently, 7695# so use this general approach. 7696lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 7697$lt_cdecl_hook\ 7698" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7699" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7700 7701# Transform an extracted symbol line into symbol name and symbol address 7702lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7703$lt_c_name_hook\ 7704" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7705" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7706 7707# Transform an extracted symbol line into symbol name with lib prefix and 7708# symbol address. 7709lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7710$lt_c_name_lib_hook\ 7711" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7712" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7713" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7714 7715# Handle CRLF in mingw tool chain 7716opt_cr= 7717case $build_os in 7718mingw*) 7719 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7720 ;; 7721esac 7722 7723# Try without a prefix underscore, then with it. 7724for ac_symprfx in "" "_"; do 7725 7726 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7727 symxfrm="\\1 $ac_symprfx\\2 \\2" 7728 7729 # Write the raw and C identifiers. 7730 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7731 # Fake it for dumpbin and say T for any non-static function, 7732 # D for any global variable and I for any imported variable. 7733 # Also find C++ and __fastcall symbols from MSVC++, 7734 # which start with @ or ?. 7735 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7736" {last_section=section; section=\$ 3};"\ 7737" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7738" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7739" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7740" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7741" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7742" \$ 0!~/External *\|/{next};"\ 7743" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7744" {if(hide[section]) next};"\ 7745" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7746" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7747" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7748" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7749" ' prfx=^$ac_symprfx" 7750 else 7751 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7752 fi 7753 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7754 7755 # Check to see that the pipe works correctly. 7756 pipe_works=no 7757 7758 rm -f conftest* 7759 cat > conftest.$ac_ext <<_LT_EOF 7760#ifdef __cplusplus 7761extern "C" { 7762#endif 7763char nm_test_var; 7764void nm_test_func(void); 7765void nm_test_func(void){} 7766#ifdef __cplusplus 7767} 7768#endif 7769int main(){nm_test_var='a';nm_test_func();return(0);} 7770_LT_EOF 7771 7772 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7773 (eval $ac_compile) 2>&5 7774 ac_status=$? 7775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7776 test $ac_status = 0; }; then 7777 # Now try to grab the symbols. 7778 nlist=conftest.nm 7779 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7780 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7781 ac_status=$? 7782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7783 test $ac_status = 0; } && test -s "$nlist"; then 7784 # Try sorting and uniquifying the output. 7785 if sort "$nlist" | uniq > "$nlist"T; then 7786 mv -f "$nlist"T "$nlist" 7787 else 7788 rm -f "$nlist"T 7789 fi 7790 7791 # Make sure that we snagged all the symbols we need. 7792 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7793 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7794 cat <<_LT_EOF > conftest.$ac_ext 7795/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7796#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7797/* DATA imports from DLLs on WIN32 can't be const, because runtime 7798 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7799# define LT_DLSYM_CONST 7800#elif defined __osf__ 7801/* This system does not cope well with relocations in const data. */ 7802# define LT_DLSYM_CONST 7803#else 7804# define LT_DLSYM_CONST const 7805#endif 7806 7807#ifdef __cplusplus 7808extern "C" { 7809#endif 7810 7811_LT_EOF 7812 # Now generate the symbol file. 7813 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7814 7815 cat <<_LT_EOF >> conftest.$ac_ext 7816 7817/* The mapping between symbol names and symbols. */ 7818LT_DLSYM_CONST struct { 7819 const char *name; 7820 void *address; 7821} 7822lt__PROGRAM__LTX_preloaded_symbols[] = 7823{ 7824 { "@PROGRAM@", (void *) 0 }, 7825_LT_EOF 7826 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7827 cat <<\_LT_EOF >> conftest.$ac_ext 7828 {0, (void *) 0} 7829}; 7830 7831/* This works around a problem in FreeBSD linker */ 7832#ifdef FREEBSD_WORKAROUND 7833static const void *lt_preloaded_setup() { 7834 return lt__PROGRAM__LTX_preloaded_symbols; 7835} 7836#endif 7837 7838#ifdef __cplusplus 7839} 7840#endif 7841_LT_EOF 7842 # Now try linking the two files. 7843 mv conftest.$ac_objext conftstm.$ac_objext 7844 lt_globsym_save_LIBS=$LIBS 7845 lt_globsym_save_CFLAGS=$CFLAGS 7846 LIBS=conftstm.$ac_objext 7847 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7848 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7849 (eval $ac_link) 2>&5 7850 ac_status=$? 7851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7852 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7853 pipe_works=yes 7854 fi 7855 LIBS=$lt_globsym_save_LIBS 7856 CFLAGS=$lt_globsym_save_CFLAGS 7857 else 7858 echo "cannot find nm_test_func in $nlist" >&5 7859 fi 7860 else 7861 echo "cannot find nm_test_var in $nlist" >&5 7862 fi 7863 else 7864 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7865 fi 7866 else 7867 echo "$progname: failed program was:" >&5 7868 cat conftest.$ac_ext >&5 7869 fi 7870 rm -rf conftest* conftst* 7871 7872 # Do not use the global_symbol_pipe unless it works. 7873 if test yes = "$pipe_works"; then 7874 break 7875 else 7876 lt_cv_sys_global_symbol_pipe= 7877 fi 7878done 7879 7880fi 7881 7882if test -z "$lt_cv_sys_global_symbol_pipe"; then 7883 lt_cv_sys_global_symbol_to_cdecl= 7884fi 7885if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7887$as_echo "failed" >&6; } 7888else 7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7890$as_echo "ok" >&6; } 7891fi 7892 7893# Response file support. 7894if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7895 nm_file_list_spec='@' 7896elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7897 nm_file_list_spec='@' 7898fi 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7937$as_echo_n "checking for sysroot... " >&6; } 7938 7939# Check whether --with-sysroot was given. 7940if test "${with_sysroot+set}" = set; then : 7941 withval=$with_sysroot; 7942else 7943 with_sysroot=no 7944fi 7945 7946 7947lt_sysroot= 7948case $with_sysroot in #( 7949 yes) 7950 if test yes = "$GCC"; then 7951 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7952 fi 7953 ;; #( 7954 /*) 7955 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7956 ;; #( 7957 no|'') 7958 ;; #( 7959 *) 7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7961$as_echo "$with_sysroot" >&6; } 7962 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7963 ;; 7964esac 7965 7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7967$as_echo "${lt_sysroot:-no}" >&6; } 7968 7969 7970 7971 7972 7973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7974$as_echo_n "checking for a working dd... " >&6; } 7975if ${ac_cv_path_lt_DD+:} false; then : 7976 $as_echo_n "(cached) " >&6 7977else 7978 printf 0123456789abcdef0123456789abcdef >conftest.i 7979cat conftest.i conftest.i >conftest2.i 7980: ${lt_DD:=$DD} 7981if test -z "$lt_DD"; then 7982 ac_path_lt_DD_found=false 7983 # Loop through the user's path and test for each of PROGNAME-LIST 7984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7985for as_dir in $PATH 7986do 7987 IFS=$as_save_IFS 7988 test -z "$as_dir" && as_dir=. 7989 for ac_prog in dd; do 7990 for ac_exec_ext in '' $ac_executable_extensions; do 7991 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7992 as_fn_executable_p "$ac_path_lt_DD" || continue 7993if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7994 cmp -s conftest.i conftest.out \ 7995 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7996fi 7997 $ac_path_lt_DD_found && break 3 7998 done 7999 done 8000 done 8001IFS=$as_save_IFS 8002 if test -z "$ac_cv_path_lt_DD"; then 8003 : 8004 fi 8005else 8006 ac_cv_path_lt_DD=$lt_DD 8007fi 8008 8009rm -f conftest.i conftest2.i conftest.out 8010fi 8011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 8012$as_echo "$ac_cv_path_lt_DD" >&6; } 8013 8014 8015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 8016$as_echo_n "checking how to truncate binary pipes... " >&6; } 8017if ${lt_cv_truncate_bin+:} false; then : 8018 $as_echo_n "(cached) " >&6 8019else 8020 printf 0123456789abcdef0123456789abcdef >conftest.i 8021cat conftest.i conftest.i >conftest2.i 8022lt_cv_truncate_bin= 8023if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 8024 cmp -s conftest.i conftest.out \ 8025 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 8026fi 8027rm -f conftest.i conftest2.i conftest.out 8028test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 8029fi 8030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 8031$as_echo "$lt_cv_truncate_bin" >&6; } 8032 8033 8034 8035 8036 8037 8038 8039# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 8040func_cc_basename () 8041{ 8042 for cc_temp in $*""; do 8043 case $cc_temp in 8044 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8045 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8046 \-*) ;; 8047 *) break;; 8048 esac 8049 done 8050 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8051} 8052 8053# Check whether --enable-libtool-lock was given. 8054if test "${enable_libtool_lock+set}" = set; then : 8055 enableval=$enable_libtool_lock; 8056fi 8057 8058test no = "$enable_libtool_lock" || enable_libtool_lock=yes 8059 8060# Some flags need to be propagated to the compiler or linker for good 8061# libtool support. 8062case $host in 8063ia64-*-hpux*) 8064 # Find out what ABI is being produced by ac_compile, and set mode 8065 # options accordingly. 8066 echo 'int i;' > conftest.$ac_ext 8067 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8068 (eval $ac_compile) 2>&5 8069 ac_status=$? 8070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8071 test $ac_status = 0; }; then 8072 case `/usr/bin/file conftest.$ac_objext` in 8073 *ELF-32*) 8074 HPUX_IA64_MODE=32 8075 ;; 8076 *ELF-64*) 8077 HPUX_IA64_MODE=64 8078 ;; 8079 esac 8080 fi 8081 rm -rf conftest* 8082 ;; 8083*-*-irix6*) 8084 # Find out what ABI is being produced by ac_compile, and set linker 8085 # options accordingly. 8086 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8088 (eval $ac_compile) 2>&5 8089 ac_status=$? 8090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8091 test $ac_status = 0; }; then 8092 if test yes = "$lt_cv_prog_gnu_ld"; then 8093 case `/usr/bin/file conftest.$ac_objext` in 8094 *32-bit*) 8095 LD="${LD-ld} -melf32bsmip" 8096 ;; 8097 *N32*) 8098 LD="${LD-ld} -melf32bmipn32" 8099 ;; 8100 *64-bit*) 8101 LD="${LD-ld} -melf64bmip" 8102 ;; 8103 esac 8104 else 8105 case `/usr/bin/file conftest.$ac_objext` in 8106 *32-bit*) 8107 LD="${LD-ld} -32" 8108 ;; 8109 *N32*) 8110 LD="${LD-ld} -n32" 8111 ;; 8112 *64-bit*) 8113 LD="${LD-ld} -64" 8114 ;; 8115 esac 8116 fi 8117 fi 8118 rm -rf conftest* 8119 ;; 8120 8121mips64*-*linux*) 8122 # Find out what ABI is being produced by ac_compile, and set linker 8123 # options accordingly. 8124 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8125 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8126 (eval $ac_compile) 2>&5 8127 ac_status=$? 8128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8129 test $ac_status = 0; }; then 8130 emul=elf 8131 case `/usr/bin/file conftest.$ac_objext` in 8132 *32-bit*) 8133 emul="${emul}32" 8134 ;; 8135 *64-bit*) 8136 emul="${emul}64" 8137 ;; 8138 esac 8139 case `/usr/bin/file conftest.$ac_objext` in 8140 *MSB*) 8141 emul="${emul}btsmip" 8142 ;; 8143 *LSB*) 8144 emul="${emul}ltsmip" 8145 ;; 8146 esac 8147 case `/usr/bin/file conftest.$ac_objext` in 8148 *N32*) 8149 emul="${emul}n32" 8150 ;; 8151 esac 8152 LD="${LD-ld} -m $emul" 8153 fi 8154 rm -rf conftest* 8155 ;; 8156 8157x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 8158s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8159 # Find out what ABI is being produced by ac_compile, and set linker 8160 # options accordingly. Note that the listed cases only cover the 8161 # situations where additional linker options are needed (such as when 8162 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 8163 # vice versa); the common cases where no linker options are needed do 8164 # not appear in the list. 8165 echo 'int i;' > conftest.$ac_ext 8166 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8167 (eval $ac_compile) 2>&5 8168 ac_status=$? 8169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8170 test $ac_status = 0; }; then 8171 case `/usr/bin/file conftest.o` in 8172 *32-bit*) 8173 case $host in 8174 x86_64-*kfreebsd*-gnu) 8175 LD="${LD-ld} -m elf_i386_fbsd" 8176 ;; 8177 x86_64-*linux*) 8178 case `/usr/bin/file conftest.o` in 8179 *x86-64*) 8180 LD="${LD-ld} -m elf32_x86_64" 8181 ;; 8182 *) 8183 LD="${LD-ld} -m elf_i386" 8184 ;; 8185 esac 8186 ;; 8187 powerpc64le-*linux*) 8188 LD="${LD-ld} -m elf32lppclinux" 8189 ;; 8190 powerpc64-*linux*) 8191 LD="${LD-ld} -m elf32ppclinux" 8192 ;; 8193 s390x-*linux*) 8194 LD="${LD-ld} -m elf_s390" 8195 ;; 8196 sparc64-*linux*) 8197 LD="${LD-ld} -m elf32_sparc" 8198 ;; 8199 esac 8200 ;; 8201 *64-bit*) 8202 case $host in 8203 x86_64-*kfreebsd*-gnu) 8204 LD="${LD-ld} -m elf_x86_64_fbsd" 8205 ;; 8206 x86_64-*linux*) 8207 LD="${LD-ld} -m elf_x86_64" 8208 ;; 8209 powerpcle-*linux*) 8210 LD="${LD-ld} -m elf64lppc" 8211 ;; 8212 powerpc-*linux*) 8213 LD="${LD-ld} -m elf64ppc" 8214 ;; 8215 s390*-*linux*|s390*-*tpf*) 8216 LD="${LD-ld} -m elf64_s390" 8217 ;; 8218 sparc*-*linux*) 8219 LD="${LD-ld} -m elf64_sparc" 8220 ;; 8221 esac 8222 ;; 8223 esac 8224 fi 8225 rm -rf conftest* 8226 ;; 8227 8228*-*-sco3.2v5*) 8229 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8230 SAVE_CFLAGS=$CFLAGS 8231 CFLAGS="$CFLAGS -belf" 8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8233$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 8234if ${lt_cv_cc_needs_belf+:} false; then : 8235 $as_echo_n "(cached) " >&6 8236else 8237 ac_ext=c 8238ac_cpp='$CPP $CPPFLAGS' 8239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8241ac_compiler_gnu=$ac_cv_c_compiler_gnu 8242 8243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8244/* end confdefs.h. */ 8245 8246int 8247main () 8248{ 8249 8250 ; 8251 return 0; 8252} 8253_ACEOF 8254if ac_fn_c_try_link "$LINENO"; then : 8255 lt_cv_cc_needs_belf=yes 8256else 8257 lt_cv_cc_needs_belf=no 8258fi 8259rm -f core conftest.err conftest.$ac_objext \ 8260 conftest$ac_exeext conftest.$ac_ext 8261 ac_ext=c 8262ac_cpp='$CPP $CPPFLAGS' 8263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8265ac_compiler_gnu=$ac_cv_c_compiler_gnu 8266 8267fi 8268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8269$as_echo "$lt_cv_cc_needs_belf" >&6; } 8270 if test yes != "$lt_cv_cc_needs_belf"; then 8271 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8272 CFLAGS=$SAVE_CFLAGS 8273 fi 8274 ;; 8275*-*solaris*) 8276 # Find out what ABI is being produced by ac_compile, and set linker 8277 # options accordingly. 8278 echo 'int i;' > conftest.$ac_ext 8279 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8280 (eval $ac_compile) 2>&5 8281 ac_status=$? 8282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8283 test $ac_status = 0; }; then 8284 case `/usr/bin/file conftest.o` in 8285 *64-bit*) 8286 case $lt_cv_prog_gnu_ld in 8287 yes*) 8288 case $host in 8289 i?86-*-solaris*|x86_64-*-solaris*) 8290 LD="${LD-ld} -m elf_x86_64" 8291 ;; 8292 sparc*-*-solaris*) 8293 LD="${LD-ld} -m elf64_sparc" 8294 ;; 8295 esac 8296 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8297 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8298 LD=${LD-ld}_sol2 8299 fi 8300 ;; 8301 *) 8302 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8303 LD="${LD-ld} -64" 8304 fi 8305 ;; 8306 esac 8307 ;; 8308 esac 8309 fi 8310 rm -rf conftest* 8311 ;; 8312esac 8313 8314need_locks=$enable_libtool_lock 8315 8316if test -n "$ac_tool_prefix"; then 8317 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8318set dummy ${ac_tool_prefix}mt; ac_word=$2 8319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8320$as_echo_n "checking for $ac_word... " >&6; } 8321if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 8322 $as_echo_n "(cached) " >&6 8323else 8324 if test -n "$MANIFEST_TOOL"; then 8325 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8326else 8327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8328for as_dir in $PATH 8329do 8330 IFS=$as_save_IFS 8331 test -z "$as_dir" && as_dir=. 8332 for ac_exec_ext in '' $ac_executable_extensions; do 8333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8334 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8336 break 2 8337 fi 8338done 8339 done 8340IFS=$as_save_IFS 8341 8342fi 8343fi 8344MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8345if test -n "$MANIFEST_TOOL"; then 8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8347$as_echo "$MANIFEST_TOOL" >&6; } 8348else 8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8350$as_echo "no" >&6; } 8351fi 8352 8353 8354fi 8355if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8356 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8357 # Extract the first word of "mt", so it can be a program name with args. 8358set dummy mt; ac_word=$2 8359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8360$as_echo_n "checking for $ac_word... " >&6; } 8361if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 8362 $as_echo_n "(cached) " >&6 8363else 8364 if test -n "$ac_ct_MANIFEST_TOOL"; then 8365 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8366else 8367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8368for as_dir in $PATH 8369do 8370 IFS=$as_save_IFS 8371 test -z "$as_dir" && as_dir=. 8372 for ac_exec_ext in '' $ac_executable_extensions; do 8373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8374 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8376 break 2 8377 fi 8378done 8379 done 8380IFS=$as_save_IFS 8381 8382fi 8383fi 8384ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8385if test -n "$ac_ct_MANIFEST_TOOL"; then 8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8387$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 8388else 8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8390$as_echo "no" >&6; } 8391fi 8392 8393 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8394 MANIFEST_TOOL=":" 8395 else 8396 case $cross_compiling:$ac_tool_warned in 8397yes:) 8398{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8399$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8400ac_tool_warned=yes ;; 8401esac 8402 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8403 fi 8404else 8405 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8406fi 8407 8408test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8410$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8411if ${lt_cv_path_mainfest_tool+:} false; then : 8412 $as_echo_n "(cached) " >&6 8413else 8414 lt_cv_path_mainfest_tool=no 8415 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8416 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8417 cat conftest.err >&5 8418 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8419 lt_cv_path_mainfest_tool=yes 8420 fi 8421 rm -f conftest* 8422fi 8423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8424$as_echo "$lt_cv_path_mainfest_tool" >&6; } 8425if test yes != "$lt_cv_path_mainfest_tool"; then 8426 MANIFEST_TOOL=: 8427fi 8428 8429 8430 8431 8432 8433 8434 case $host_os in 8435 rhapsody* | darwin*) 8436 if test -n "$ac_tool_prefix"; then 8437 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8438set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8440$as_echo_n "checking for $ac_word... " >&6; } 8441if ${ac_cv_prog_DSYMUTIL+:} false; then : 8442 $as_echo_n "(cached) " >&6 8443else 8444 if test -n "$DSYMUTIL"; then 8445 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8446else 8447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8448for as_dir in $PATH 8449do 8450 IFS=$as_save_IFS 8451 test -z "$as_dir" && as_dir=. 8452 for ac_exec_ext in '' $ac_executable_extensions; do 8453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8454 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8456 break 2 8457 fi 8458done 8459 done 8460IFS=$as_save_IFS 8461 8462fi 8463fi 8464DSYMUTIL=$ac_cv_prog_DSYMUTIL 8465if test -n "$DSYMUTIL"; then 8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8467$as_echo "$DSYMUTIL" >&6; } 8468else 8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8470$as_echo "no" >&6; } 8471fi 8472 8473 8474fi 8475if test -z "$ac_cv_prog_DSYMUTIL"; then 8476 ac_ct_DSYMUTIL=$DSYMUTIL 8477 # Extract the first word of "dsymutil", so it can be a program name with args. 8478set dummy dsymutil; 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_ac_ct_DSYMUTIL+:} false; then : 8482 $as_echo_n "(cached) " >&6 8483else 8484 if test -n "$ac_ct_DSYMUTIL"; then 8485 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # 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_ac_ct_DSYMUTIL="dsymutil" 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 8504ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8505if test -n "$ac_ct_DSYMUTIL"; then 8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8507$as_echo "$ac_ct_DSYMUTIL" >&6; } 8508else 8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8510$as_echo "no" >&6; } 8511fi 8512 8513 if test "x$ac_ct_DSYMUTIL" = x; then 8514 DSYMUTIL=":" 8515 else 8516 case $cross_compiling:$ac_tool_warned in 8517yes:) 8518{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8519$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8520ac_tool_warned=yes ;; 8521esac 8522 DSYMUTIL=$ac_ct_DSYMUTIL 8523 fi 8524else 8525 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8526fi 8527 8528 if test -n "$ac_tool_prefix"; then 8529 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8530set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8532$as_echo_n "checking for $ac_word... " >&6; } 8533if ${ac_cv_prog_NMEDIT+:} false; then : 8534 $as_echo_n "(cached) " >&6 8535else 8536 if test -n "$NMEDIT"; then 8537 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8538else 8539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8540for as_dir in $PATH 8541do 8542 IFS=$as_save_IFS 8543 test -z "$as_dir" && as_dir=. 8544 for ac_exec_ext in '' $ac_executable_extensions; do 8545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8546 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8548 break 2 8549 fi 8550done 8551 done 8552IFS=$as_save_IFS 8553 8554fi 8555fi 8556NMEDIT=$ac_cv_prog_NMEDIT 8557if test -n "$NMEDIT"; then 8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8559$as_echo "$NMEDIT" >&6; } 8560else 8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8562$as_echo "no" >&6; } 8563fi 8564 8565 8566fi 8567if test -z "$ac_cv_prog_NMEDIT"; then 8568 ac_ct_NMEDIT=$NMEDIT 8569 # Extract the first word of "nmedit", so it can be a program name with args. 8570set dummy nmedit; 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_ac_ct_NMEDIT+:} false; then : 8574 $as_echo_n "(cached) " >&6 8575else 8576 if test -n "$ac_ct_NMEDIT"; then 8577 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # 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_ac_ct_NMEDIT="nmedit" 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 8596ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8597if test -n "$ac_ct_NMEDIT"; then 8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8599$as_echo "$ac_ct_NMEDIT" >&6; } 8600else 8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8602$as_echo "no" >&6; } 8603fi 8604 8605 if test "x$ac_ct_NMEDIT" = x; then 8606 NMEDIT=":" 8607 else 8608 case $cross_compiling:$ac_tool_warned in 8609yes:) 8610{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8611$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8612ac_tool_warned=yes ;; 8613esac 8614 NMEDIT=$ac_ct_NMEDIT 8615 fi 8616else 8617 NMEDIT="$ac_cv_prog_NMEDIT" 8618fi 8619 8620 if test -n "$ac_tool_prefix"; then 8621 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8622set dummy ${ac_tool_prefix}lipo; ac_word=$2 8623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8624$as_echo_n "checking for $ac_word... " >&6; } 8625if ${ac_cv_prog_LIPO+:} false; then : 8626 $as_echo_n "(cached) " >&6 8627else 8628 if test -n "$LIPO"; then 8629 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8630else 8631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8632for as_dir in $PATH 8633do 8634 IFS=$as_save_IFS 8635 test -z "$as_dir" && as_dir=. 8636 for ac_exec_ext in '' $ac_executable_extensions; do 8637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8638 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8640 break 2 8641 fi 8642done 8643 done 8644IFS=$as_save_IFS 8645 8646fi 8647fi 8648LIPO=$ac_cv_prog_LIPO 8649if test -n "$LIPO"; then 8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8651$as_echo "$LIPO" >&6; } 8652else 8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8654$as_echo "no" >&6; } 8655fi 8656 8657 8658fi 8659if test -z "$ac_cv_prog_LIPO"; then 8660 ac_ct_LIPO=$LIPO 8661 # Extract the first word of "lipo", so it can be a program name with args. 8662set dummy lipo; 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_ac_ct_LIPO+:} false; then : 8666 $as_echo_n "(cached) " >&6 8667else 8668 if test -n "$ac_ct_LIPO"; then 8669 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # 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_ac_ct_LIPO="lipo" 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 8688ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8689if test -n "$ac_ct_LIPO"; then 8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8691$as_echo "$ac_ct_LIPO" >&6; } 8692else 8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8694$as_echo "no" >&6; } 8695fi 8696 8697 if test "x$ac_ct_LIPO" = x; then 8698 LIPO=":" 8699 else 8700 case $cross_compiling:$ac_tool_warned in 8701yes:) 8702{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8703$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8704ac_tool_warned=yes ;; 8705esac 8706 LIPO=$ac_ct_LIPO 8707 fi 8708else 8709 LIPO="$ac_cv_prog_LIPO" 8710fi 8711 8712 if test -n "$ac_tool_prefix"; then 8713 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8714set dummy ${ac_tool_prefix}otool; ac_word=$2 8715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8716$as_echo_n "checking for $ac_word... " >&6; } 8717if ${ac_cv_prog_OTOOL+:} false; then : 8718 $as_echo_n "(cached) " >&6 8719else 8720 if test -n "$OTOOL"; then 8721 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8722else 8723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8724for as_dir in $PATH 8725do 8726 IFS=$as_save_IFS 8727 test -z "$as_dir" && as_dir=. 8728 for ac_exec_ext in '' $ac_executable_extensions; do 8729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8730 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8732 break 2 8733 fi 8734done 8735 done 8736IFS=$as_save_IFS 8737 8738fi 8739fi 8740OTOOL=$ac_cv_prog_OTOOL 8741if test -n "$OTOOL"; then 8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8743$as_echo "$OTOOL" >&6; } 8744else 8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8746$as_echo "no" >&6; } 8747fi 8748 8749 8750fi 8751if test -z "$ac_cv_prog_OTOOL"; then 8752 ac_ct_OTOOL=$OTOOL 8753 # Extract the first word of "otool", so it can be a program name with args. 8754set dummy otool; ac_word=$2 8755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8756$as_echo_n "checking for $ac_word... " >&6; } 8757if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8758 $as_echo_n "(cached) " >&6 8759else 8760 if test -n "$ac_ct_OTOOL"; then 8761 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8762else 8763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8764for as_dir in $PATH 8765do 8766 IFS=$as_save_IFS 8767 test -z "$as_dir" && as_dir=. 8768 for ac_exec_ext in '' $ac_executable_extensions; do 8769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8770 ac_cv_prog_ac_ct_OTOOL="otool" 8771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8772 break 2 8773 fi 8774done 8775 done 8776IFS=$as_save_IFS 8777 8778fi 8779fi 8780ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8781if test -n "$ac_ct_OTOOL"; then 8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8783$as_echo "$ac_ct_OTOOL" >&6; } 8784else 8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8786$as_echo "no" >&6; } 8787fi 8788 8789 if test "x$ac_ct_OTOOL" = x; then 8790 OTOOL=":" 8791 else 8792 case $cross_compiling:$ac_tool_warned in 8793yes:) 8794{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8795$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8796ac_tool_warned=yes ;; 8797esac 8798 OTOOL=$ac_ct_OTOOL 8799 fi 8800else 8801 OTOOL="$ac_cv_prog_OTOOL" 8802fi 8803 8804 if test -n "$ac_tool_prefix"; then 8805 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8806set dummy ${ac_tool_prefix}otool64; ac_word=$2 8807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8808$as_echo_n "checking for $ac_word... " >&6; } 8809if ${ac_cv_prog_OTOOL64+:} false; then : 8810 $as_echo_n "(cached) " >&6 8811else 8812 if test -n "$OTOOL64"; then 8813 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8814else 8815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8816for as_dir in $PATH 8817do 8818 IFS=$as_save_IFS 8819 test -z "$as_dir" && as_dir=. 8820 for ac_exec_ext in '' $ac_executable_extensions; do 8821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8822 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8824 break 2 8825 fi 8826done 8827 done 8828IFS=$as_save_IFS 8829 8830fi 8831fi 8832OTOOL64=$ac_cv_prog_OTOOL64 8833if test -n "$OTOOL64"; then 8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8835$as_echo "$OTOOL64" >&6; } 8836else 8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8838$as_echo "no" >&6; } 8839fi 8840 8841 8842fi 8843if test -z "$ac_cv_prog_OTOOL64"; then 8844 ac_ct_OTOOL64=$OTOOL64 8845 # Extract the first word of "otool64", so it can be a program name with args. 8846set dummy otool64; ac_word=$2 8847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8848$as_echo_n "checking for $ac_word... " >&6; } 8849if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8850 $as_echo_n "(cached) " >&6 8851else 8852 if test -n "$ac_ct_OTOOL64"; then 8853 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8854else 8855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8856for as_dir in $PATH 8857do 8858 IFS=$as_save_IFS 8859 test -z "$as_dir" && as_dir=. 8860 for ac_exec_ext in '' $ac_executable_extensions; do 8861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8862 ac_cv_prog_ac_ct_OTOOL64="otool64" 8863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8864 break 2 8865 fi 8866done 8867 done 8868IFS=$as_save_IFS 8869 8870fi 8871fi 8872ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8873if test -n "$ac_ct_OTOOL64"; then 8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8875$as_echo "$ac_ct_OTOOL64" >&6; } 8876else 8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8878$as_echo "no" >&6; } 8879fi 8880 8881 if test "x$ac_ct_OTOOL64" = x; then 8882 OTOOL64=":" 8883 else 8884 case $cross_compiling:$ac_tool_warned in 8885yes:) 8886{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8887$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8888ac_tool_warned=yes ;; 8889esac 8890 OTOOL64=$ac_ct_OTOOL64 8891 fi 8892else 8893 OTOOL64="$ac_cv_prog_OTOOL64" 8894fi 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8923$as_echo_n "checking for -single_module linker flag... " >&6; } 8924if ${lt_cv_apple_cc_single_mod+:} false; then : 8925 $as_echo_n "(cached) " >&6 8926else 8927 lt_cv_apple_cc_single_mod=no 8928 if test -z "$LT_MULTI_MODULE"; then 8929 # By default we will add the -single_module flag. You can override 8930 # by either setting the environment variable LT_MULTI_MODULE 8931 # non-empty at configure time, or by adding -multi_module to the 8932 # link flags. 8933 rm -rf libconftest.dylib* 8934 echo "int foo(void){return 1;}" > conftest.c 8935 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8936-dynamiclib -Wl,-single_module conftest.c" >&5 8937 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8938 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8939 _lt_result=$? 8940 # If there is a non-empty error log, and "single_module" 8941 # appears in it, assume the flag caused a linker warning 8942 if test -s conftest.err && $GREP single_module conftest.err; then 8943 cat conftest.err >&5 8944 # Otherwise, if the output was created with a 0 exit code from 8945 # the compiler, it worked. 8946 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8947 lt_cv_apple_cc_single_mod=yes 8948 else 8949 cat conftest.err >&5 8950 fi 8951 rm -rf libconftest.dylib* 8952 rm -f conftest.* 8953 fi 8954fi 8955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8956$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8957 8958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8959$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8960if ${lt_cv_ld_exported_symbols_list+:} false; then : 8961 $as_echo_n "(cached) " >&6 8962else 8963 lt_cv_ld_exported_symbols_list=no 8964 save_LDFLAGS=$LDFLAGS 8965 echo "_main" > conftest.sym 8966 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8968/* end confdefs.h. */ 8969 8970int 8971main () 8972{ 8973 8974 ; 8975 return 0; 8976} 8977_ACEOF 8978if ac_fn_c_try_link "$LINENO"; then : 8979 lt_cv_ld_exported_symbols_list=yes 8980else 8981 lt_cv_ld_exported_symbols_list=no 8982fi 8983rm -f core conftest.err conftest.$ac_objext \ 8984 conftest$ac_exeext conftest.$ac_ext 8985 LDFLAGS=$save_LDFLAGS 8986 8987fi 8988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8989$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8990 8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8992$as_echo_n "checking for -force_load linker flag... " >&6; } 8993if ${lt_cv_ld_force_load+:} false; then : 8994 $as_echo_n "(cached) " >&6 8995else 8996 lt_cv_ld_force_load=no 8997 cat > conftest.c << _LT_EOF 8998int forced_loaded() { return 2;} 8999_LT_EOF 9000 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 9001 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 9002 echo "$AR cru libconftest.a conftest.o" >&5 9003 $AR cru libconftest.a conftest.o 2>&5 9004 echo "$RANLIB libconftest.a" >&5 9005 $RANLIB libconftest.a 2>&5 9006 cat > conftest.c << _LT_EOF 9007int main() { return 0;} 9008_LT_EOF 9009 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 9010 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 9011 _lt_result=$? 9012 if test -s conftest.err && $GREP force_load conftest.err; then 9013 cat conftest.err >&5 9014 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 9015 lt_cv_ld_force_load=yes 9016 else 9017 cat conftest.err >&5 9018 fi 9019 rm -f conftest.err libconftest.a conftest conftest.c 9020 rm -rf conftest.dSYM 9021 9022fi 9023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 9024$as_echo "$lt_cv_ld_force_load" >&6; } 9025 case $host_os in 9026 rhapsody* | darwin1.[012]) 9027 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 9028 darwin1.*) 9029 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9030 darwin*) # darwin 5.x on 9031 # if running on 10.5 or later, the deployment target defaults 9032 # to the OS version, if on x86, and 10.4, the deployment 9033 # target defaults to 10.4. Don't you love it? 9034 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 9035 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 9036 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 9037 10.[012][,.]*) 9038 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9039 10.*) 9040 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 9041 esac 9042 ;; 9043 esac 9044 if test yes = "$lt_cv_apple_cc_single_mod"; then 9045 _lt_dar_single_mod='$single_module' 9046 fi 9047 if test yes = "$lt_cv_ld_exported_symbols_list"; then 9048 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 9049 else 9050 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 9051 fi 9052 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 9053 _lt_dsymutil='~$DSYMUTIL $lib || :' 9054 else 9055 _lt_dsymutil= 9056 fi 9057 ;; 9058 esac 9059 9060# func_munge_path_list VARIABLE PATH 9061# ----------------------------------- 9062# VARIABLE is name of variable containing _space_ separated list of 9063# directories to be munged by the contents of PATH, which is string 9064# having a format: 9065# "DIR[:DIR]:" 9066# string "DIR[ DIR]" will be prepended to VARIABLE 9067# ":DIR[:DIR]" 9068# string "DIR[ DIR]" will be appended to VARIABLE 9069# "DIRP[:DIRP]::[DIRA:]DIRA" 9070# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 9071# "DIRA[ DIRA]" will be appended to VARIABLE 9072# "DIR[:DIR]" 9073# VARIABLE will be replaced by "DIR[ DIR]" 9074func_munge_path_list () 9075{ 9076 case x$2 in 9077 x) 9078 ;; 9079 *:) 9080 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 9081 ;; 9082 x:*) 9083 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 9084 ;; 9085 *::*) 9086 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 9087 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 9088 ;; 9089 *) 9090 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 9091 ;; 9092 esac 9093} 9094 9095ac_ext=c 9096ac_cpp='$CPP $CPPFLAGS' 9097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9099ac_compiler_gnu=$ac_cv_c_compiler_gnu 9100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 9101$as_echo_n "checking how to run the C preprocessor... " >&6; } 9102# On Suns, sometimes $CPP names a directory. 9103if test -n "$CPP" && test -d "$CPP"; then 9104 CPP= 9105fi 9106if test -z "$CPP"; then 9107 if ${ac_cv_prog_CPP+:} false; then : 9108 $as_echo_n "(cached) " >&6 9109else 9110 # Double quotes because CPP needs to be expanded 9111 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 9112 do 9113 ac_preproc_ok=false 9114for ac_c_preproc_warn_flag in '' yes 9115do 9116 # Use a header file that comes with gcc, so configuring glibc 9117 # with a fresh cross-compiler works. 9118 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9119 # <limits.h> exists even on freestanding compilers. 9120 # On the NeXT, cc -E runs the code through the compiler's parser, 9121 # not just through cpp. "Syntax error" is here to catch this case. 9122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9123/* end confdefs.h. */ 9124#ifdef __STDC__ 9125# include <limits.h> 9126#else 9127# include <assert.h> 9128#endif 9129 Syntax error 9130_ACEOF 9131if ac_fn_c_try_cpp "$LINENO"; then : 9132 9133else 9134 # Broken: fails on valid input. 9135continue 9136fi 9137rm -f conftest.err conftest.i conftest.$ac_ext 9138 9139 # OK, works on sane cases. Now check whether nonexistent headers 9140 # can be detected and how. 9141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9142/* end confdefs.h. */ 9143#include <ac_nonexistent.h> 9144_ACEOF 9145if ac_fn_c_try_cpp "$LINENO"; then : 9146 # Broken: success on invalid input. 9147continue 9148else 9149 # Passes both tests. 9150ac_preproc_ok=: 9151break 9152fi 9153rm -f conftest.err conftest.i conftest.$ac_ext 9154 9155done 9156# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 9157rm -f conftest.i conftest.err conftest.$ac_ext 9158if $ac_preproc_ok; then : 9159 break 9160fi 9161 9162 done 9163 ac_cv_prog_CPP=$CPP 9164 9165fi 9166 CPP=$ac_cv_prog_CPP 9167else 9168 ac_cv_prog_CPP=$CPP 9169fi 9170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 9171$as_echo "$CPP" >&6; } 9172ac_preproc_ok=false 9173for ac_c_preproc_warn_flag in '' yes 9174do 9175 # Use a header file that comes with gcc, so configuring glibc 9176 # with a fresh cross-compiler works. 9177 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9178 # <limits.h> exists even on freestanding compilers. 9179 # On the NeXT, cc -E runs the code through the compiler's parser, 9180 # not just through cpp. "Syntax error" is here to catch this case. 9181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9182/* end confdefs.h. */ 9183#ifdef __STDC__ 9184# include <limits.h> 9185#else 9186# include <assert.h> 9187#endif 9188 Syntax error 9189_ACEOF 9190if ac_fn_c_try_cpp "$LINENO"; then : 9191 9192else 9193 # Broken: fails on valid input. 9194continue 9195fi 9196rm -f conftest.err conftest.i conftest.$ac_ext 9197 9198 # OK, works on sane cases. Now check whether nonexistent headers 9199 # can be detected and how. 9200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9201/* end confdefs.h. */ 9202#include <ac_nonexistent.h> 9203_ACEOF 9204if ac_fn_c_try_cpp "$LINENO"; then : 9205 # Broken: success on invalid input. 9206continue 9207else 9208 # Passes both tests. 9209ac_preproc_ok=: 9210break 9211fi 9212rm -f conftest.err conftest.i conftest.$ac_ext 9213 9214done 9215# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 9216rm -f conftest.i conftest.err conftest.$ac_ext 9217if $ac_preproc_ok; then : 9218 9219else 9220 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9221$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9222as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 9223See \`config.log' for more details" "$LINENO" 5; } 9224fi 9225 9226ac_ext=c 9227ac_cpp='$CPP $CPPFLAGS' 9228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9230ac_compiler_gnu=$ac_cv_c_compiler_gnu 9231 9232 9233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 9234$as_echo_n "checking for ANSI C header files... " >&6; } 9235if ${ac_cv_header_stdc+:} false; then : 9236 $as_echo_n "(cached) " >&6 9237else 9238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9239/* end confdefs.h. */ 9240#include <stdlib.h> 9241#include <stdarg.h> 9242#include <string.h> 9243#include <float.h> 9244 9245int 9246main () 9247{ 9248 9249 ; 9250 return 0; 9251} 9252_ACEOF 9253if ac_fn_c_try_compile "$LINENO"; then : 9254 ac_cv_header_stdc=yes 9255else 9256 ac_cv_header_stdc=no 9257fi 9258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9259 9260if test $ac_cv_header_stdc = yes; then 9261 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 9262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9263/* end confdefs.h. */ 9264#include <string.h> 9265 9266_ACEOF 9267if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9268 $EGREP "memchr" >/dev/null 2>&1; then : 9269 9270else 9271 ac_cv_header_stdc=no 9272fi 9273rm -f conftest* 9274 9275fi 9276 9277if test $ac_cv_header_stdc = yes; then 9278 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 9279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9280/* end confdefs.h. */ 9281#include <stdlib.h> 9282 9283_ACEOF 9284if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9285 $EGREP "free" >/dev/null 2>&1; then : 9286 9287else 9288 ac_cv_header_stdc=no 9289fi 9290rm -f conftest* 9291 9292fi 9293 9294if test $ac_cv_header_stdc = yes; then 9295 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 9296 if test "$cross_compiling" = yes; then : 9297 : 9298else 9299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9300/* end confdefs.h. */ 9301#include <ctype.h> 9302#include <stdlib.h> 9303#if ((' ' & 0x0FF) == 0x020) 9304# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 9305# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 9306#else 9307# define ISLOWER(c) \ 9308 (('a' <= (c) && (c) <= 'i') \ 9309 || ('j' <= (c) && (c) <= 'r') \ 9310 || ('s' <= (c) && (c) <= 'z')) 9311# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 9312#endif 9313 9314#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 9315int 9316main () 9317{ 9318 int i; 9319 for (i = 0; i < 256; i++) 9320 if (XOR (islower (i), ISLOWER (i)) 9321 || toupper (i) != TOUPPER (i)) 9322 return 2; 9323 return 0; 9324} 9325_ACEOF 9326if ac_fn_c_try_run "$LINENO"; then : 9327 9328else 9329 ac_cv_header_stdc=no 9330fi 9331rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9332 conftest.$ac_objext conftest.beam conftest.$ac_ext 9333fi 9334 9335fi 9336fi 9337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 9338$as_echo "$ac_cv_header_stdc" >&6; } 9339if test $ac_cv_header_stdc = yes; then 9340 9341$as_echo "#define STDC_HEADERS 1" >>confdefs.h 9342 9343fi 9344 9345# On IRIX 5.3, sys/types and inttypes.h are conflicting. 9346for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 9347 inttypes.h stdint.h unistd.h 9348do : 9349 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9350ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 9351" 9352if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9353 cat >>confdefs.h <<_ACEOF 9354#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9355_ACEOF 9356 9357fi 9358 9359done 9360 9361 9362for ac_header in dlfcn.h 9363do : 9364 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9365" 9366if test "x$ac_cv_header_dlfcn_h" = xyes; then : 9367 cat >>confdefs.h <<_ACEOF 9368#define HAVE_DLFCN_H 1 9369_ACEOF 9370 9371fi 9372 9373done 9374 9375 9376 9377func_stripname_cnf () 9378{ 9379 case $2 in 9380 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 9381 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 9382 esac 9383} # func_stripname_cnf 9384 9385 9386 9387 9388 9389# Set options 9390# Check whether --enable-static was given. 9391if test "${enable_static+set}" = set; then : 9392 enableval=$enable_static; p=${PACKAGE-default} 9393 case $enableval in 9394 yes) enable_static=yes ;; 9395 no) enable_static=no ;; 9396 *) 9397 enable_static=no 9398 # Look at the argument we got. We use all the common list separators. 9399 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9400 for pkg in $enableval; do 9401 IFS=$lt_save_ifs 9402 if test "X$pkg" = "X$p"; then 9403 enable_static=yes 9404 fi 9405 done 9406 IFS=$lt_save_ifs 9407 ;; 9408 esac 9409else 9410 enable_static=no 9411fi 9412 9413 9414 9415 9416 9417 9418 9419enable_dlopen=yes 9420enable_win32_dll=yes 9421 9422case $host in 9423*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 9424 if test -n "$ac_tool_prefix"; then 9425 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 9426set dummy ${ac_tool_prefix}as; ac_word=$2 9427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9428$as_echo_n "checking for $ac_word... " >&6; } 9429if ${ac_cv_prog_AS+:} false; then : 9430 $as_echo_n "(cached) " >&6 9431else 9432 if test -n "$AS"; then 9433 ac_cv_prog_AS="$AS" # Let the user override the test. 9434else 9435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9436for as_dir in $PATH 9437do 9438 IFS=$as_save_IFS 9439 test -z "$as_dir" && as_dir=. 9440 for ac_exec_ext in '' $ac_executable_extensions; do 9441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9442 ac_cv_prog_AS="${ac_tool_prefix}as" 9443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9444 break 2 9445 fi 9446done 9447 done 9448IFS=$as_save_IFS 9449 9450fi 9451fi 9452AS=$ac_cv_prog_AS 9453if test -n "$AS"; then 9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 9455$as_echo "$AS" >&6; } 9456else 9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9458$as_echo "no" >&6; } 9459fi 9460 9461 9462fi 9463if test -z "$ac_cv_prog_AS"; then 9464 ac_ct_AS=$AS 9465 # Extract the first word of "as", so it can be a program name with args. 9466set dummy as; ac_word=$2 9467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9468$as_echo_n "checking for $ac_word... " >&6; } 9469if ${ac_cv_prog_ac_ct_AS+:} false; then : 9470 $as_echo_n "(cached) " >&6 9471else 9472 if test -n "$ac_ct_AS"; then 9473 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 9474else 9475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9476for as_dir in $PATH 9477do 9478 IFS=$as_save_IFS 9479 test -z "$as_dir" && as_dir=. 9480 for ac_exec_ext in '' $ac_executable_extensions; do 9481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9482 ac_cv_prog_ac_ct_AS="as" 9483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9484 break 2 9485 fi 9486done 9487 done 9488IFS=$as_save_IFS 9489 9490fi 9491fi 9492ac_ct_AS=$ac_cv_prog_ac_ct_AS 9493if test -n "$ac_ct_AS"; then 9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 9495$as_echo "$ac_ct_AS" >&6; } 9496else 9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9498$as_echo "no" >&6; } 9499fi 9500 9501 if test "x$ac_ct_AS" = x; then 9502 AS="false" 9503 else 9504 case $cross_compiling:$ac_tool_warned in 9505yes:) 9506{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9507$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9508ac_tool_warned=yes ;; 9509esac 9510 AS=$ac_ct_AS 9511 fi 9512else 9513 AS="$ac_cv_prog_AS" 9514fi 9515 9516 if test -n "$ac_tool_prefix"; then 9517 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 9518set dummy ${ac_tool_prefix}dlltool; ac_word=$2 9519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9520$as_echo_n "checking for $ac_word... " >&6; } 9521if ${ac_cv_prog_DLLTOOL+:} false; then : 9522 $as_echo_n "(cached) " >&6 9523else 9524 if test -n "$DLLTOOL"; then 9525 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 9526else 9527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9528for as_dir in $PATH 9529do 9530 IFS=$as_save_IFS 9531 test -z "$as_dir" && as_dir=. 9532 for ac_exec_ext in '' $ac_executable_extensions; do 9533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9534 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 9535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9536 break 2 9537 fi 9538done 9539 done 9540IFS=$as_save_IFS 9541 9542fi 9543fi 9544DLLTOOL=$ac_cv_prog_DLLTOOL 9545if test -n "$DLLTOOL"; then 9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 9547$as_echo "$DLLTOOL" >&6; } 9548else 9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9550$as_echo "no" >&6; } 9551fi 9552 9553 9554fi 9555if test -z "$ac_cv_prog_DLLTOOL"; then 9556 ac_ct_DLLTOOL=$DLLTOOL 9557 # Extract the first word of "dlltool", so it can be a program name with args. 9558set dummy dlltool; ac_word=$2 9559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9560$as_echo_n "checking for $ac_word... " >&6; } 9561if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 9562 $as_echo_n "(cached) " >&6 9563else 9564 if test -n "$ac_ct_DLLTOOL"; then 9565 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 9566else 9567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9568for as_dir in $PATH 9569do 9570 IFS=$as_save_IFS 9571 test -z "$as_dir" && as_dir=. 9572 for ac_exec_ext in '' $ac_executable_extensions; do 9573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9574 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 9575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9576 break 2 9577 fi 9578done 9579 done 9580IFS=$as_save_IFS 9581 9582fi 9583fi 9584ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 9585if test -n "$ac_ct_DLLTOOL"; then 9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 9587$as_echo "$ac_ct_DLLTOOL" >&6; } 9588else 9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9590$as_echo "no" >&6; } 9591fi 9592 9593 if test "x$ac_ct_DLLTOOL" = x; then 9594 DLLTOOL="false" 9595 else 9596 case $cross_compiling:$ac_tool_warned in 9597yes:) 9598{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9599$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9600ac_tool_warned=yes ;; 9601esac 9602 DLLTOOL=$ac_ct_DLLTOOL 9603 fi 9604else 9605 DLLTOOL="$ac_cv_prog_DLLTOOL" 9606fi 9607 9608 if test -n "$ac_tool_prefix"; then 9609 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 9610set dummy ${ac_tool_prefix}objdump; ac_word=$2 9611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9612$as_echo_n "checking for $ac_word... " >&6; } 9613if ${ac_cv_prog_OBJDUMP+:} false; then : 9614 $as_echo_n "(cached) " >&6 9615else 9616 if test -n "$OBJDUMP"; then 9617 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 9618else 9619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9620for as_dir in $PATH 9621do 9622 IFS=$as_save_IFS 9623 test -z "$as_dir" && as_dir=. 9624 for ac_exec_ext in '' $ac_executable_extensions; do 9625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9626 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 9627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9628 break 2 9629 fi 9630done 9631 done 9632IFS=$as_save_IFS 9633 9634fi 9635fi 9636OBJDUMP=$ac_cv_prog_OBJDUMP 9637if test -n "$OBJDUMP"; then 9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 9639$as_echo "$OBJDUMP" >&6; } 9640else 9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9642$as_echo "no" >&6; } 9643fi 9644 9645 9646fi 9647if test -z "$ac_cv_prog_OBJDUMP"; then 9648 ac_ct_OBJDUMP=$OBJDUMP 9649 # Extract the first word of "objdump", so it can be a program name with args. 9650set dummy objdump; ac_word=$2 9651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9652$as_echo_n "checking for $ac_word... " >&6; } 9653if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 9654 $as_echo_n "(cached) " >&6 9655else 9656 if test -n "$ac_ct_OBJDUMP"; then 9657 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 9658else 9659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9660for as_dir in $PATH 9661do 9662 IFS=$as_save_IFS 9663 test -z "$as_dir" && as_dir=. 9664 for ac_exec_ext in '' $ac_executable_extensions; do 9665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9666 ac_cv_prog_ac_ct_OBJDUMP="objdump" 9667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9668 break 2 9669 fi 9670done 9671 done 9672IFS=$as_save_IFS 9673 9674fi 9675fi 9676ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 9677if test -n "$ac_ct_OBJDUMP"; then 9678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 9679$as_echo "$ac_ct_OBJDUMP" >&6; } 9680else 9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9682$as_echo "no" >&6; } 9683fi 9684 9685 if test "x$ac_ct_OBJDUMP" = x; then 9686 OBJDUMP="false" 9687 else 9688 case $cross_compiling:$ac_tool_warned in 9689yes:) 9690{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9691$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9692ac_tool_warned=yes ;; 9693esac 9694 OBJDUMP=$ac_ct_OBJDUMP 9695 fi 9696else 9697 OBJDUMP="$ac_cv_prog_OBJDUMP" 9698fi 9699 9700 ;; 9701esac 9702 9703test -z "$AS" && AS=as 9704 9705 9706 9707 9708 9709test -z "$DLLTOOL" && DLLTOOL=dlltool 9710 9711 9712 9713 9714 9715test -z "$OBJDUMP" && OBJDUMP=objdump 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 # Check whether --enable-shared was given. 9726if test "${enable_shared+set}" = set; then : 9727 enableval=$enable_shared; p=${PACKAGE-default} 9728 case $enableval in 9729 yes) enable_shared=yes ;; 9730 no) enable_shared=no ;; 9731 *) 9732 enable_shared=no 9733 # Look at the argument we got. We use all the common list separators. 9734 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9735 for pkg in $enableval; do 9736 IFS=$lt_save_ifs 9737 if test "X$pkg" = "X$p"; then 9738 enable_shared=yes 9739 fi 9740 done 9741 IFS=$lt_save_ifs 9742 ;; 9743 esac 9744else 9745 enable_shared=yes 9746fi 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758# Check whether --with-pic was given. 9759if test "${with_pic+set}" = set; then : 9760 withval=$with_pic; lt_p=${PACKAGE-default} 9761 case $withval in 9762 yes|no) pic_mode=$withval ;; 9763 *) 9764 pic_mode=default 9765 # Look at the argument we got. We use all the common list separators. 9766 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9767 for lt_pkg in $withval; do 9768 IFS=$lt_save_ifs 9769 if test "X$lt_pkg" = "X$lt_p"; then 9770 pic_mode=yes 9771 fi 9772 done 9773 IFS=$lt_save_ifs 9774 ;; 9775 esac 9776else 9777 pic_mode=default 9778fi 9779 9780 9781 9782 9783 9784 9785 9786 9787 # Check whether --enable-fast-install was given. 9788if test "${enable_fast_install+set}" = set; then : 9789 enableval=$enable_fast_install; p=${PACKAGE-default} 9790 case $enableval in 9791 yes) enable_fast_install=yes ;; 9792 no) enable_fast_install=no ;; 9793 *) 9794 enable_fast_install=no 9795 # Look at the argument we got. We use all the common list separators. 9796 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9797 for pkg in $enableval; do 9798 IFS=$lt_save_ifs 9799 if test "X$pkg" = "X$p"; then 9800 enable_fast_install=yes 9801 fi 9802 done 9803 IFS=$lt_save_ifs 9804 ;; 9805 esac 9806else 9807 enable_fast_install=yes 9808fi 9809 9810 9811 9812 9813 9814 9815 9816 9817 shared_archive_member_spec= 9818case $host,$enable_shared in 9819power*-*-aix[5-9]*,yes) 9820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9821$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 9822 9823# Check whether --with-aix-soname was given. 9824if test "${with_aix_soname+set}" = set; then : 9825 withval=$with_aix_soname; case $withval in 9826 aix|svr4|both) 9827 ;; 9828 *) 9829 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9830 ;; 9831 esac 9832 lt_cv_with_aix_soname=$with_aix_soname 9833else 9834 if ${lt_cv_with_aix_soname+:} false; then : 9835 $as_echo_n "(cached) " >&6 9836else 9837 lt_cv_with_aix_soname=aix 9838fi 9839 9840 with_aix_soname=$lt_cv_with_aix_soname 9841fi 9842 9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9844$as_echo "$with_aix_soname" >&6; } 9845 if test aix != "$with_aix_soname"; then 9846 # For the AIX way of multilib, we name the shared archive member 9847 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9848 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9849 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9850 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9851 if test 64 = "${OBJECT_MODE-32}"; then 9852 shared_archive_member_spec=shr_64 9853 else 9854 shared_archive_member_spec=shr 9855 fi 9856 fi 9857 ;; 9858*) 9859 with_aix_soname=aix 9860 ;; 9861esac 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872# This can be used to rebuild libtool when needed 9873LIBTOOL_DEPS=$ltmain 9874 9875# Always use our own libtool. 9876LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907test -z "$LN_S" && LN_S="ln -s" 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922if test -n "${ZSH_VERSION+set}"; then 9923 setopt NO_GLOB_SUBST 9924fi 9925 9926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9927$as_echo_n "checking for objdir... " >&6; } 9928if ${lt_cv_objdir+:} false; then : 9929 $as_echo_n "(cached) " >&6 9930else 9931 rm -f .libs 2>/dev/null 9932mkdir .libs 2>/dev/null 9933if test -d .libs; then 9934 lt_cv_objdir=.libs 9935else 9936 # MS-DOS does not allow filenames that begin with a dot. 9937 lt_cv_objdir=_libs 9938fi 9939rmdir .libs 2>/dev/null 9940fi 9941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9942$as_echo "$lt_cv_objdir" >&6; } 9943objdir=$lt_cv_objdir 9944 9945 9946 9947 9948 9949cat >>confdefs.h <<_ACEOF 9950#define LT_OBJDIR "$lt_cv_objdir/" 9951_ACEOF 9952 9953 9954 9955 9956case $host_os in 9957aix3*) 9958 # AIX sometimes has problems with the GCC collect2 program. For some 9959 # reason, if we set the COLLECT_NAMES environment variable, the problems 9960 # vanish in a puff of smoke. 9961 if test set != "${COLLECT_NAMES+set}"; then 9962 COLLECT_NAMES= 9963 export COLLECT_NAMES 9964 fi 9965 ;; 9966esac 9967 9968# Global variables: 9969ofile=libtool 9970can_build_shared=yes 9971 9972# All known linkers require a '.a' archive for static linking (except MSVC, 9973# which needs '.lib'). 9974libext=a 9975 9976with_gnu_ld=$lt_cv_prog_gnu_ld 9977 9978old_CC=$CC 9979old_CFLAGS=$CFLAGS 9980 9981# Set sane defaults for various variables 9982test -z "$CC" && CC=cc 9983test -z "$LTCC" && LTCC=$CC 9984test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9985test -z "$LD" && LD=ld 9986test -z "$ac_objext" && ac_objext=o 9987 9988func_cc_basename $compiler 9989cc_basename=$func_cc_basename_result 9990 9991 9992# Only perform the check for file, if the check method requires it 9993test -z "$MAGIC_CMD" && MAGIC_CMD=file 9994case $deplibs_check_method in 9995file_magic*) 9996 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9998$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9999if ${lt_cv_path_MAGIC_CMD+:} false; then : 10000 $as_echo_n "(cached) " >&6 10001else 10002 case $MAGIC_CMD in 10003[\\/*] | ?:[\\/]*) 10004 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 10005 ;; 10006*) 10007 lt_save_MAGIC_CMD=$MAGIC_CMD 10008 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 10009 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10010 for ac_dir in $ac_dummy; do 10011 IFS=$lt_save_ifs 10012 test -z "$ac_dir" && ac_dir=. 10013 if test -f "$ac_dir/${ac_tool_prefix}file"; then 10014 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 10015 if test -n "$file_magic_test_file"; then 10016 case $deplibs_check_method in 10017 "file_magic "*) 10018 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10019 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10020 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10021 $EGREP "$file_magic_regex" > /dev/null; then 10022 : 10023 else 10024 cat <<_LT_EOF 1>&2 10025 10026*** Warning: the command libtool uses to detect shared libraries, 10027*** $file_magic_cmd, produces output that libtool cannot recognize. 10028*** The result is that libtool may fail to recognize shared libraries 10029*** as such. This will affect the creation of libtool libraries that 10030*** depend on shared libraries, but programs linked with such libtool 10031*** libraries will work regardless of this problem. Nevertheless, you 10032*** may want to report the problem to your system manager and/or to 10033*** bug-libtool@gnu.org 10034 10035_LT_EOF 10036 fi ;; 10037 esac 10038 fi 10039 break 10040 fi 10041 done 10042 IFS=$lt_save_ifs 10043 MAGIC_CMD=$lt_save_MAGIC_CMD 10044 ;; 10045esac 10046fi 10047 10048MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10049if test -n "$MAGIC_CMD"; then 10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10051$as_echo "$MAGIC_CMD" >&6; } 10052else 10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10054$as_echo "no" >&6; } 10055fi 10056 10057 10058 10059 10060 10061if test -z "$lt_cv_path_MAGIC_CMD"; then 10062 if test -n "$ac_tool_prefix"; then 10063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 10064$as_echo_n "checking for file... " >&6; } 10065if ${lt_cv_path_MAGIC_CMD+:} false; then : 10066 $as_echo_n "(cached) " >&6 10067else 10068 case $MAGIC_CMD in 10069[\\/*] | ?:[\\/]*) 10070 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 10071 ;; 10072*) 10073 lt_save_MAGIC_CMD=$MAGIC_CMD 10074 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 10075 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10076 for ac_dir in $ac_dummy; do 10077 IFS=$lt_save_ifs 10078 test -z "$ac_dir" && ac_dir=. 10079 if test -f "$ac_dir/file"; then 10080 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 10081 if test -n "$file_magic_test_file"; then 10082 case $deplibs_check_method in 10083 "file_magic "*) 10084 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10085 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10086 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10087 $EGREP "$file_magic_regex" > /dev/null; then 10088 : 10089 else 10090 cat <<_LT_EOF 1>&2 10091 10092*** Warning: the command libtool uses to detect shared libraries, 10093*** $file_magic_cmd, produces output that libtool cannot recognize. 10094*** The result is that libtool may fail to recognize shared libraries 10095*** as such. This will affect the creation of libtool libraries that 10096*** depend on shared libraries, but programs linked with such libtool 10097*** libraries will work regardless of this problem. Nevertheless, you 10098*** may want to report the problem to your system manager and/or to 10099*** bug-libtool@gnu.org 10100 10101_LT_EOF 10102 fi ;; 10103 esac 10104 fi 10105 break 10106 fi 10107 done 10108 IFS=$lt_save_ifs 10109 MAGIC_CMD=$lt_save_MAGIC_CMD 10110 ;; 10111esac 10112fi 10113 10114MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10115if test -n "$MAGIC_CMD"; then 10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10117$as_echo "$MAGIC_CMD" >&6; } 10118else 10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10120$as_echo "no" >&6; } 10121fi 10122 10123 10124 else 10125 MAGIC_CMD=: 10126 fi 10127fi 10128 10129 fi 10130 ;; 10131esac 10132 10133# Use C for the default configuration in the libtool script 10134 10135lt_save_CC=$CC 10136ac_ext=c 10137ac_cpp='$CPP $CPPFLAGS' 10138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10140ac_compiler_gnu=$ac_cv_c_compiler_gnu 10141 10142 10143# Source file extension for C test sources. 10144ac_ext=c 10145 10146# Object file extension for compiled C test sources. 10147objext=o 10148objext=$objext 10149 10150# Code to be used in simple compile tests 10151lt_simple_compile_test_code="int some_variable = 0;" 10152 10153# Code to be used in simple link tests 10154lt_simple_link_test_code='int main(){return(0);}' 10155 10156 10157 10158 10159 10160 10161 10162# If no C compiler was specified, use CC. 10163LTCC=${LTCC-"$CC"} 10164 10165# If no C compiler flags were specified, use CFLAGS. 10166LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10167 10168# Allow CC to be a program name with arguments. 10169compiler=$CC 10170 10171# Save the default compiler, since it gets overwritten when the other 10172# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 10173compiler_DEFAULT=$CC 10174 10175# save warnings/boilerplate of simple test code 10176ac_outfile=conftest.$ac_objext 10177echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10178eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10179_lt_compiler_boilerplate=`cat conftest.err` 10180$RM conftest* 10181 10182ac_outfile=conftest.$ac_objext 10183echo "$lt_simple_link_test_code" >conftest.$ac_ext 10184eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10185_lt_linker_boilerplate=`cat conftest.err` 10186$RM -r conftest* 10187 10188 10189## CAVEAT EMPTOR: 10190## There is no encapsulation within the following macros, do not change 10191## the running order or otherwise move them around unless you know exactly 10192## what you are doing... 10193if test -n "$compiler"; then 10194 10195lt_prog_compiler_no_builtin_flag= 10196 10197if test yes = "$GCC"; then 10198 case $cc_basename in 10199 nvcc*) 10200 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 10201 *) 10202 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 10203 esac 10204 10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 10206$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 10207if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 10208 $as_echo_n "(cached) " >&6 10209else 10210 lt_cv_prog_compiler_rtti_exceptions=no 10211 ac_outfile=conftest.$ac_objext 10212 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10213 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 10214 # Insert the option either (1) after the last *FLAGS variable, or 10215 # (2) before a word containing "conftest.", or (3) at the end. 10216 # Note that $ac_compile itself does not contain backslashes and begins 10217 # with a dollar sign (not a hyphen), so the echo should work correctly. 10218 # The option is referenced via a variable to avoid confusing sed. 10219 lt_compile=`echo "$ac_compile" | $SED \ 10220 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10221 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10222 -e 's:$: $lt_compiler_flag:'` 10223 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10224 (eval "$lt_compile" 2>conftest.err) 10225 ac_status=$? 10226 cat conftest.err >&5 10227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10228 if (exit $ac_status) && test -s "$ac_outfile"; then 10229 # The compiler can only warn and ignore the option if not recognized 10230 # So say no if there are warnings other than the usual output. 10231 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10232 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10233 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10234 lt_cv_prog_compiler_rtti_exceptions=yes 10235 fi 10236 fi 10237 $RM conftest* 10238 10239fi 10240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 10241$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 10242 10243if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 10244 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 10245else 10246 : 10247fi 10248 10249fi 10250 10251 10252 10253 10254 10255 10256 lt_prog_compiler_wl= 10257lt_prog_compiler_pic= 10258lt_prog_compiler_static= 10259 10260 10261 if test yes = "$GCC"; then 10262 lt_prog_compiler_wl='-Wl,' 10263 lt_prog_compiler_static='-static' 10264 10265 case $host_os in 10266 aix*) 10267 # All AIX code is PIC. 10268 if test ia64 = "$host_cpu"; then 10269 # AIX 5 now supports IA64 processor 10270 lt_prog_compiler_static='-Bstatic' 10271 fi 10272 lt_prog_compiler_pic='-fPIC' 10273 ;; 10274 10275 amigaos*) 10276 case $host_cpu in 10277 powerpc) 10278 # see comment about AmigaOS4 .so support 10279 lt_prog_compiler_pic='-fPIC' 10280 ;; 10281 m68k) 10282 # FIXME: we need at least 68020 code to build shared libraries, but 10283 # adding the '-m68020' flag to GCC prevents building anything better, 10284 # like '-m68040'. 10285 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 10286 ;; 10287 esac 10288 ;; 10289 10290 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10291 # PIC is the default for these OSes. 10292 ;; 10293 10294 mingw* | cygwin* | pw32* | os2* | cegcc*) 10295 # This hack is so that the source file can tell whether it is being 10296 # built for inclusion in a dll (and should export symbols for example). 10297 # Although the cygwin gcc ignores -fPIC, still need this for old-style 10298 # (--disable-auto-import) libraries 10299 lt_prog_compiler_pic='-DDLL_EXPORT' 10300 case $host_os in 10301 os2*) 10302 lt_prog_compiler_static='$wl-static' 10303 ;; 10304 esac 10305 ;; 10306 10307 darwin* | rhapsody*) 10308 # PIC is the default on this platform 10309 # Common symbols not allowed in MH_DYLIB files 10310 lt_prog_compiler_pic='-fno-common' 10311 ;; 10312 10313 haiku*) 10314 # PIC is the default for Haiku. 10315 # The "-static" flag exists, but is broken. 10316 lt_prog_compiler_static= 10317 ;; 10318 10319 hpux*) 10320 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 10321 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 10322 # sets the default TLS model and affects inlining. 10323 case $host_cpu in 10324 hppa*64*) 10325 # +Z the default 10326 ;; 10327 *) 10328 lt_prog_compiler_pic='-fPIC' 10329 ;; 10330 esac 10331 ;; 10332 10333 interix[3-9]*) 10334 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10335 # Instead, we relocate shared libraries at runtime. 10336 ;; 10337 10338 msdosdjgpp*) 10339 # Just because we use GCC doesn't mean we suddenly get shared libraries 10340 # on systems that don't support them. 10341 lt_prog_compiler_can_build_shared=no 10342 enable_shared=no 10343 ;; 10344 10345 *nto* | *qnx*) 10346 # QNX uses GNU C++, but need to define -shared option too, otherwise 10347 # it will coredump. 10348 lt_prog_compiler_pic='-fPIC -shared' 10349 ;; 10350 10351 sysv4*MP*) 10352 if test -d /usr/nec; then 10353 lt_prog_compiler_pic=-Kconform_pic 10354 fi 10355 ;; 10356 10357 *) 10358 lt_prog_compiler_pic='-fPIC' 10359 ;; 10360 esac 10361 10362 case $cc_basename in 10363 nvcc*) # Cuda Compiler Driver 2.2 10364 lt_prog_compiler_wl='-Xlinker ' 10365 if test -n "$lt_prog_compiler_pic"; then 10366 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 10367 fi 10368 ;; 10369 esac 10370 else 10371 # PORTME Check for flag to pass linker flags through the system compiler. 10372 case $host_os in 10373 aix*) 10374 lt_prog_compiler_wl='-Wl,' 10375 if test ia64 = "$host_cpu"; then 10376 # AIX 5 now supports IA64 processor 10377 lt_prog_compiler_static='-Bstatic' 10378 else 10379 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 10380 fi 10381 ;; 10382 10383 darwin* | rhapsody*) 10384 # PIC is the default on this platform 10385 # Common symbols not allowed in MH_DYLIB files 10386 lt_prog_compiler_pic='-fno-common' 10387 case $cc_basename in 10388 nagfor*) 10389 # NAG Fortran compiler 10390 lt_prog_compiler_wl='-Wl,-Wl,,' 10391 lt_prog_compiler_pic='-PIC' 10392 lt_prog_compiler_static='-Bstatic' 10393 ;; 10394 esac 10395 ;; 10396 10397 mingw* | cygwin* | pw32* | os2* | cegcc*) 10398 # This hack is so that the source file can tell whether it is being 10399 # built for inclusion in a dll (and should export symbols for example). 10400 lt_prog_compiler_pic='-DDLL_EXPORT' 10401 case $host_os in 10402 os2*) 10403 lt_prog_compiler_static='$wl-static' 10404 ;; 10405 esac 10406 ;; 10407 10408 hpux9* | hpux10* | hpux11*) 10409 lt_prog_compiler_wl='-Wl,' 10410 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10411 # not for PA HP-UX. 10412 case $host_cpu in 10413 hppa*64*|ia64*) 10414 # +Z the default 10415 ;; 10416 *) 10417 lt_prog_compiler_pic='+Z' 10418 ;; 10419 esac 10420 # Is there a better lt_prog_compiler_static that works with the bundled CC? 10421 lt_prog_compiler_static='$wl-a ${wl}archive' 10422 ;; 10423 10424 irix5* | irix6* | nonstopux*) 10425 lt_prog_compiler_wl='-Wl,' 10426 # PIC (with -KPIC) is the default. 10427 lt_prog_compiler_static='-non_shared' 10428 ;; 10429 10430 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10431 case $cc_basename in 10432 # old Intel for x86_64, which still supported -KPIC. 10433 ecc*) 10434 lt_prog_compiler_wl='-Wl,' 10435 lt_prog_compiler_pic='-KPIC' 10436 lt_prog_compiler_static='-static' 10437 ;; 10438 # icc used to be incompatible with GCC. 10439 # ICC 10 doesn't accept -KPIC any more. 10440 icc* | ifort*) 10441 lt_prog_compiler_wl='-Wl,' 10442 lt_prog_compiler_pic='-fPIC' 10443 lt_prog_compiler_static='-static' 10444 ;; 10445 # Lahey Fortran 8.1. 10446 lf95*) 10447 lt_prog_compiler_wl='-Wl,' 10448 lt_prog_compiler_pic='--shared' 10449 lt_prog_compiler_static='--static' 10450 ;; 10451 nagfor*) 10452 # NAG Fortran compiler 10453 lt_prog_compiler_wl='-Wl,-Wl,,' 10454 lt_prog_compiler_pic='-PIC' 10455 lt_prog_compiler_static='-Bstatic' 10456 ;; 10457 tcc*) 10458 # Fabrice Bellard et al's Tiny C Compiler 10459 lt_prog_compiler_wl='-Wl,' 10460 lt_prog_compiler_pic='-fPIC' 10461 lt_prog_compiler_static='-static' 10462 ;; 10463 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 10464 # Portland Group compilers (*not* the Pentium gcc compiler, 10465 # which looks to be a dead project) 10466 lt_prog_compiler_wl='-Wl,' 10467 lt_prog_compiler_pic='-fpic' 10468 lt_prog_compiler_static='-Bstatic' 10469 ;; 10470 ccc*) 10471 lt_prog_compiler_wl='-Wl,' 10472 # All Alpha code is PIC. 10473 lt_prog_compiler_static='-non_shared' 10474 ;; 10475 xl* | bgxl* | bgf* | mpixl*) 10476 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 10477 lt_prog_compiler_wl='-Wl,' 10478 lt_prog_compiler_pic='-qpic' 10479 lt_prog_compiler_static='-qstaticlink' 10480 ;; 10481 *) 10482 case `$CC -V 2>&1 | sed 5q` in 10483 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 10484 # Sun Fortran 8.3 passes all unrecognized flags to the linker 10485 lt_prog_compiler_pic='-KPIC' 10486 lt_prog_compiler_static='-Bstatic' 10487 lt_prog_compiler_wl='' 10488 ;; 10489 *Sun\ F* | *Sun*Fortran*) 10490 lt_prog_compiler_pic='-KPIC' 10491 lt_prog_compiler_static='-Bstatic' 10492 lt_prog_compiler_wl='-Qoption ld ' 10493 ;; 10494 *Sun\ C*) 10495 # Sun C 5.9 10496 lt_prog_compiler_pic='-KPIC' 10497 lt_prog_compiler_static='-Bstatic' 10498 lt_prog_compiler_wl='-Wl,' 10499 ;; 10500 *Intel*\ [CF]*Compiler*) 10501 lt_prog_compiler_wl='-Wl,' 10502 lt_prog_compiler_pic='-fPIC' 10503 lt_prog_compiler_static='-static' 10504 ;; 10505 *Portland\ Group*) 10506 lt_prog_compiler_wl='-Wl,' 10507 lt_prog_compiler_pic='-fpic' 10508 lt_prog_compiler_static='-Bstatic' 10509 ;; 10510 esac 10511 ;; 10512 esac 10513 ;; 10514 10515 newsos6) 10516 lt_prog_compiler_pic='-KPIC' 10517 lt_prog_compiler_static='-Bstatic' 10518 ;; 10519 10520 *nto* | *qnx*) 10521 # QNX uses GNU C++, but need to define -shared option too, otherwise 10522 # it will coredump. 10523 lt_prog_compiler_pic='-fPIC -shared' 10524 ;; 10525 10526 osf3* | osf4* | osf5*) 10527 lt_prog_compiler_wl='-Wl,' 10528 # All OSF/1 code is PIC. 10529 lt_prog_compiler_static='-non_shared' 10530 ;; 10531 10532 rdos*) 10533 lt_prog_compiler_static='-non_shared' 10534 ;; 10535 10536 solaris*) 10537 lt_prog_compiler_pic='-KPIC' 10538 lt_prog_compiler_static='-Bstatic' 10539 case $cc_basename in 10540 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 10541 lt_prog_compiler_wl='-Qoption ld ';; 10542 *) 10543 lt_prog_compiler_wl='-Wl,';; 10544 esac 10545 ;; 10546 10547 sunos4*) 10548 lt_prog_compiler_wl='-Qoption ld ' 10549 lt_prog_compiler_pic='-PIC' 10550 lt_prog_compiler_static='-Bstatic' 10551 ;; 10552 10553 sysv4 | sysv4.2uw2* | sysv4.3*) 10554 lt_prog_compiler_wl='-Wl,' 10555 lt_prog_compiler_pic='-KPIC' 10556 lt_prog_compiler_static='-Bstatic' 10557 ;; 10558 10559 sysv4*MP*) 10560 if test -d /usr/nec; then 10561 lt_prog_compiler_pic='-Kconform_pic' 10562 lt_prog_compiler_static='-Bstatic' 10563 fi 10564 ;; 10565 10566 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10567 lt_prog_compiler_wl='-Wl,' 10568 lt_prog_compiler_pic='-KPIC' 10569 lt_prog_compiler_static='-Bstatic' 10570 ;; 10571 10572 unicos*) 10573 lt_prog_compiler_wl='-Wl,' 10574 lt_prog_compiler_can_build_shared=no 10575 ;; 10576 10577 uts4*) 10578 lt_prog_compiler_pic='-pic' 10579 lt_prog_compiler_static='-Bstatic' 10580 ;; 10581 10582 *) 10583 lt_prog_compiler_can_build_shared=no 10584 ;; 10585 esac 10586 fi 10587 10588case $host_os in 10589 # For platforms that do not support PIC, -DPIC is meaningless: 10590 *djgpp*) 10591 lt_prog_compiler_pic= 10592 ;; 10593 *) 10594 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10595 ;; 10596esac 10597 10598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10599$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 10600if ${lt_cv_prog_compiler_pic+:} false; then : 10601 $as_echo_n "(cached) " >&6 10602else 10603 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 10604fi 10605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10606$as_echo "$lt_cv_prog_compiler_pic" >&6; } 10607lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10608 10609# 10610# Check to make sure the PIC flag actually works. 10611# 10612if test -n "$lt_prog_compiler_pic"; then 10613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10614$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10615if ${lt_cv_prog_compiler_pic_works+:} false; then : 10616 $as_echo_n "(cached) " >&6 10617else 10618 lt_cv_prog_compiler_pic_works=no 10619 ac_outfile=conftest.$ac_objext 10620 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10621 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 10622 # Insert the option either (1) after the last *FLAGS variable, or 10623 # (2) before a word containing "conftest.", or (3) at the end. 10624 # Note that $ac_compile itself does not contain backslashes and begins 10625 # with a dollar sign (not a hyphen), so the echo should work correctly. 10626 # The option is referenced via a variable to avoid confusing sed. 10627 lt_compile=`echo "$ac_compile" | $SED \ 10628 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10629 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10630 -e 's:$: $lt_compiler_flag:'` 10631 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10632 (eval "$lt_compile" 2>conftest.err) 10633 ac_status=$? 10634 cat conftest.err >&5 10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10636 if (exit $ac_status) && test -s "$ac_outfile"; then 10637 # The compiler can only warn and ignore the option if not recognized 10638 # So say no if there are warnings other than the usual output. 10639 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10640 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10641 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10642 lt_cv_prog_compiler_pic_works=yes 10643 fi 10644 fi 10645 $RM conftest* 10646 10647fi 10648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10649$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 10650 10651if test yes = "$lt_cv_prog_compiler_pic_works"; then 10652 case $lt_prog_compiler_pic in 10653 "" | " "*) ;; 10654 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10655 esac 10656else 10657 lt_prog_compiler_pic= 10658 lt_prog_compiler_can_build_shared=no 10659fi 10660 10661fi 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673# 10674# Check to make sure the static flag actually works. 10675# 10676wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10678$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10679if ${lt_cv_prog_compiler_static_works+:} false; then : 10680 $as_echo_n "(cached) " >&6 10681else 10682 lt_cv_prog_compiler_static_works=no 10683 save_LDFLAGS=$LDFLAGS 10684 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10685 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10686 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10687 # The linker can only warn and ignore the option if not recognized 10688 # So say no if there are warnings 10689 if test -s conftest.err; then 10690 # Append any errors to the config.log. 10691 cat conftest.err 1>&5 10692 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10693 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10694 if diff conftest.exp conftest.er2 >/dev/null; then 10695 lt_cv_prog_compiler_static_works=yes 10696 fi 10697 else 10698 lt_cv_prog_compiler_static_works=yes 10699 fi 10700 fi 10701 $RM -r conftest* 10702 LDFLAGS=$save_LDFLAGS 10703 10704fi 10705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10706$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 10707 10708if test yes = "$lt_cv_prog_compiler_static_works"; then 10709 : 10710else 10711 lt_prog_compiler_static= 10712fi 10713 10714 10715 10716 10717 10718 10719 10720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10721$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10722if ${lt_cv_prog_compiler_c_o+:} false; then : 10723 $as_echo_n "(cached) " >&6 10724else 10725 lt_cv_prog_compiler_c_o=no 10726 $RM -r conftest 2>/dev/null 10727 mkdir conftest 10728 cd conftest 10729 mkdir out 10730 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10731 10732 lt_compiler_flag="-o out/conftest2.$ac_objext" 10733 # Insert the option either (1) after the last *FLAGS variable, or 10734 # (2) before a word containing "conftest.", or (3) at the end. 10735 # Note that $ac_compile itself does not contain backslashes and begins 10736 # with a dollar sign (not a hyphen), so the echo should work correctly. 10737 lt_compile=`echo "$ac_compile" | $SED \ 10738 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10739 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10740 -e 's:$: $lt_compiler_flag:'` 10741 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10742 (eval "$lt_compile" 2>out/conftest.err) 10743 ac_status=$? 10744 cat out/conftest.err >&5 10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10746 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10747 then 10748 # The compiler can only warn and ignore the option if not recognized 10749 # So say no if there are warnings 10750 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10751 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10752 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10753 lt_cv_prog_compiler_c_o=yes 10754 fi 10755 fi 10756 chmod u+w . 2>&5 10757 $RM conftest* 10758 # SGI C++ compiler will create directory out/ii_files/ for 10759 # template instantiation 10760 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10761 $RM out/* && rmdir out 10762 cd .. 10763 $RM -r conftest 10764 $RM conftest* 10765 10766fi 10767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10768$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10769 10770 10771 10772 10773 10774 10775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10776$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10777if ${lt_cv_prog_compiler_c_o+:} false; then : 10778 $as_echo_n "(cached) " >&6 10779else 10780 lt_cv_prog_compiler_c_o=no 10781 $RM -r conftest 2>/dev/null 10782 mkdir conftest 10783 cd conftest 10784 mkdir out 10785 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10786 10787 lt_compiler_flag="-o out/conftest2.$ac_objext" 10788 # Insert the option either (1) after the last *FLAGS variable, or 10789 # (2) before a word containing "conftest.", or (3) at the end. 10790 # Note that $ac_compile itself does not contain backslashes and begins 10791 # with a dollar sign (not a hyphen), so the echo should work correctly. 10792 lt_compile=`echo "$ac_compile" | $SED \ 10793 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10794 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10795 -e 's:$: $lt_compiler_flag:'` 10796 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10797 (eval "$lt_compile" 2>out/conftest.err) 10798 ac_status=$? 10799 cat out/conftest.err >&5 10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10801 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10802 then 10803 # The compiler can only warn and ignore the option if not recognized 10804 # So say no if there are warnings 10805 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10806 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10807 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10808 lt_cv_prog_compiler_c_o=yes 10809 fi 10810 fi 10811 chmod u+w . 2>&5 10812 $RM conftest* 10813 # SGI C++ compiler will create directory out/ii_files/ for 10814 # template instantiation 10815 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10816 $RM out/* && rmdir out 10817 cd .. 10818 $RM -r conftest 10819 $RM conftest* 10820 10821fi 10822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10823$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10824 10825 10826 10827 10828hard_links=nottested 10829if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10830 # do not overwrite the value of need_locks provided by the user 10831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10832$as_echo_n "checking if we can lock with hard links... " >&6; } 10833 hard_links=yes 10834 $RM conftest* 10835 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10836 touch conftest.a 10837 ln conftest.a conftest.b 2>&5 || hard_links=no 10838 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10840$as_echo "$hard_links" >&6; } 10841 if test no = "$hard_links"; then 10842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10843$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10844 need_locks=warn 10845 fi 10846else 10847 need_locks=no 10848fi 10849 10850 10851 10852 10853 10854 10855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10856$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10857 10858 runpath_var= 10859 allow_undefined_flag= 10860 always_export_symbols=no 10861 archive_cmds= 10862 archive_expsym_cmds= 10863 compiler_needs_object=no 10864 enable_shared_with_static_runtimes=no 10865 export_dynamic_flag_spec= 10866 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10867 hardcode_automatic=no 10868 hardcode_direct=no 10869 hardcode_direct_absolute=no 10870 hardcode_libdir_flag_spec= 10871 hardcode_libdir_separator= 10872 hardcode_minus_L=no 10873 hardcode_shlibpath_var=unsupported 10874 inherit_rpath=no 10875 link_all_deplibs=unknown 10876 module_cmds= 10877 module_expsym_cmds= 10878 old_archive_from_new_cmds= 10879 old_archive_from_expsyms_cmds= 10880 thread_safe_flag_spec= 10881 whole_archive_flag_spec= 10882 # include_expsyms should be a list of space-separated symbols to be *always* 10883 # included in the symbol list 10884 include_expsyms= 10885 # exclude_expsyms can be an extended regexp of symbols to exclude 10886 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10887 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10888 # as well as any symbol that contains 'd'. 10889 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10890 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10891 # platforms (ab)use it in PIC code, but their linkers get confused if 10892 # the symbol is explicitly referenced. Since portable code cannot 10893 # rely on this symbol name, it's probably fine to never include it in 10894 # preloaded symbol tables. 10895 # Exclude shared library initialization/finalization symbols. 10896 extract_expsyms_cmds= 10897 10898 case $host_os in 10899 cygwin* | mingw* | pw32* | cegcc*) 10900 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10901 # When not using gcc, we currently assume that we are using 10902 # Microsoft Visual C++. 10903 if test yes != "$GCC"; then 10904 with_gnu_ld=no 10905 fi 10906 ;; 10907 interix*) 10908 # we just hope/assume this is gcc and not c89 (= MSVC++) 10909 with_gnu_ld=yes 10910 ;; 10911 openbsd* | bitrig*) 10912 with_gnu_ld=no 10913 ;; 10914 esac 10915 10916 ld_shlibs=yes 10917 10918 # On some targets, GNU ld is compatible enough with the native linker 10919 # that we're better off using the native interface for both. 10920 lt_use_gnu_ld_interface=no 10921 if test yes = "$with_gnu_ld"; then 10922 case $host_os in 10923 aix*) 10924 # The AIX port of GNU ld has always aspired to compatibility 10925 # with the native linker. However, as the warning in the GNU ld 10926 # block says, versions before 2.19.5* couldn't really create working 10927 # shared libraries, regardless of the interface used. 10928 case `$LD -v 2>&1` in 10929 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10930 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10931 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10932 *) 10933 lt_use_gnu_ld_interface=yes 10934 ;; 10935 esac 10936 ;; 10937 *) 10938 lt_use_gnu_ld_interface=yes 10939 ;; 10940 esac 10941 fi 10942 10943 if test yes = "$lt_use_gnu_ld_interface"; then 10944 # If archive_cmds runs LD, not CC, wlarc should be empty 10945 wlarc='$wl' 10946 10947 # Set some defaults for GNU ld with shared library support. These 10948 # are reset later if shared libraries are not supported. Putting them 10949 # here allows them to be overridden if necessary. 10950 runpath_var=LD_RUN_PATH 10951 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10952 export_dynamic_flag_spec='$wl--export-dynamic' 10953 # ancient GNU ld didn't support --whole-archive et. al. 10954 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10955 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10956 else 10957 whole_archive_flag_spec= 10958 fi 10959 supports_anon_versioning=no 10960 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 10961 *GNU\ gold*) supports_anon_versioning=yes ;; 10962 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10963 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10964 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10965 *\ 2.11.*) ;; # other 2.11 versions 10966 *) supports_anon_versioning=yes ;; 10967 esac 10968 10969 # See if GNU ld supports shared libraries. 10970 case $host_os in 10971 aix[3-9]*) 10972 # On AIX/PPC, the GNU linker is very broken 10973 if test ia64 != "$host_cpu"; then 10974 ld_shlibs=no 10975 cat <<_LT_EOF 1>&2 10976 10977*** Warning: the GNU linker, at least up to release 2.19, is reported 10978*** to be unable to reliably create shared libraries on AIX. 10979*** Therefore, libtool is disabling shared libraries support. If you 10980*** really care for shared libraries, you may want to install binutils 10981*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10982*** You will then need to restart the configuration process. 10983 10984_LT_EOF 10985 fi 10986 ;; 10987 10988 amigaos*) 10989 case $host_cpu in 10990 powerpc) 10991 # see comment about AmigaOS4 .so support 10992 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10993 archive_expsym_cmds='' 10994 ;; 10995 m68k) 10996 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)' 10997 hardcode_libdir_flag_spec='-L$libdir' 10998 hardcode_minus_L=yes 10999 ;; 11000 esac 11001 ;; 11002 11003 beos*) 11004 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11005 allow_undefined_flag=unsupported 11006 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11007 # support --undefined. This deserves some investigation. FIXME 11008 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11009 else 11010 ld_shlibs=no 11011 fi 11012 ;; 11013 11014 cygwin* | mingw* | pw32* | cegcc*) 11015 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 11016 # as there is no search path for DLLs. 11017 hardcode_libdir_flag_spec='-L$libdir' 11018 export_dynamic_flag_spec='$wl--export-all-symbols' 11019 allow_undefined_flag=unsupported 11020 always_export_symbols=no 11021 enable_shared_with_static_runtimes=yes 11022 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' 11023 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 11024 11025 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 11026 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11027 # If the export-symbols file already is a .def file, use it as 11028 # is; otherwise, prepend EXPORTS... 11029 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11030 cp $export_symbols $output_objdir/$soname.def; 11031 else 11032 echo EXPORTS > $output_objdir/$soname.def; 11033 cat $export_symbols >> $output_objdir/$soname.def; 11034 fi~ 11035 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11036 else 11037 ld_shlibs=no 11038 fi 11039 ;; 11040 11041 haiku*) 11042 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11043 link_all_deplibs=yes 11044 ;; 11045 11046 os2*) 11047 hardcode_libdir_flag_spec='-L$libdir' 11048 hardcode_minus_L=yes 11049 allow_undefined_flag=unsupported 11050 shrext_cmds=.dll 11051 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11052 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11053 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11054 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11055 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11056 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11057 emximp -o $lib $output_objdir/$libname.def' 11058 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11059 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11060 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11061 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11062 prefix_cmds="$SED"~ 11063 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11064 prefix_cmds="$prefix_cmds -e 1d"; 11065 fi~ 11066 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11067 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11068 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11069 emximp -o $lib $output_objdir/$libname.def' 11070 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11071 enable_shared_with_static_runtimes=yes 11072 ;; 11073 11074 interix[3-9]*) 11075 hardcode_direct=no 11076 hardcode_shlibpath_var=no 11077 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11078 export_dynamic_flag_spec='$wl-E' 11079 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11080 # Instead, shared libraries are loaded at an image base (0x10000000 by 11081 # default) and relocated if they conflict, which is a slow very memory 11082 # consuming and fragmenting process. To avoid this, we pick a random, 11083 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11084 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11085 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 11086 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' 11087 ;; 11088 11089 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 11090 tmp_diet=no 11091 if test linux-dietlibc = "$host_os"; then 11092 case $cc_basename in 11093 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 11094 esac 11095 fi 11096 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 11097 && test no = "$tmp_diet" 11098 then 11099 tmp_addflag=' $pic_flag' 11100 tmp_sharedflag='-shared' 11101 case $cc_basename,$host_cpu in 11102 pgcc*) # Portland Group C compiler 11103 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' 11104 tmp_addflag=' $pic_flag' 11105 ;; 11106 pgf77* | pgf90* | pgf95* | pgfortran*) 11107 # Portland Group f77 and f90 compilers 11108 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' 11109 tmp_addflag=' $pic_flag -Mnomain' ;; 11110 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 11111 tmp_addflag=' -i_dynamic' ;; 11112 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 11113 tmp_addflag=' -i_dynamic -nofor_main' ;; 11114 ifc* | ifort*) # Intel Fortran compiler 11115 tmp_addflag=' -nofor_main' ;; 11116 lf95*) # Lahey Fortran 8.1 11117 whole_archive_flag_spec= 11118 tmp_sharedflag='--shared' ;; 11119 nagfor*) # NAGFOR 5.3 11120 tmp_sharedflag='-Wl,-shared' ;; 11121 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 11122 tmp_sharedflag='-qmkshrobj' 11123 tmp_addflag= ;; 11124 nvcc*) # Cuda Compiler Driver 2.2 11125 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' 11126 compiler_needs_object=yes 11127 ;; 11128 esac 11129 case `$CC -V 2>&1 | sed 5q` in 11130 *Sun\ C*) # Sun C 5.9 11131 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' 11132 compiler_needs_object=yes 11133 tmp_sharedflag='-G' ;; 11134 *Sun\ F*) # Sun Fortran 8.3 11135 tmp_sharedflag='-G' ;; 11136 esac 11137 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11138 11139 if test yes = "$supports_anon_versioning"; then 11140 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11141 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11142 echo "local: *; };" >> $output_objdir/$libname.ver~ 11143 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 11144 fi 11145 11146 case $cc_basename in 11147 tcc*) 11148 export_dynamic_flag_spec='-rdynamic' 11149 ;; 11150 xlf* | bgf* | bgxlf* | mpixlf*) 11151 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 11152 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 11153 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11154 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 11155 if test yes = "$supports_anon_versioning"; then 11156 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11157 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11158 echo "local: *; };" >> $output_objdir/$libname.ver~ 11159 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 11160 fi 11161 ;; 11162 esac 11163 else 11164 ld_shlibs=no 11165 fi 11166 ;; 11167 11168 netbsd*) 11169 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11170 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 11171 wlarc= 11172 else 11173 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11174 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11175 fi 11176 ;; 11177 11178 solaris*) 11179 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 11180 ld_shlibs=no 11181 cat <<_LT_EOF 1>&2 11182 11183*** Warning: The releases 2.8.* of the GNU linker cannot reliably 11184*** create shared libraries on Solaris systems. Therefore, libtool 11185*** is disabling shared libraries support. We urge you to upgrade GNU 11186*** binutils to release 2.9.1 or newer. Another option is to modify 11187*** your PATH or compiler configuration so that the native linker is 11188*** used, and then restart. 11189 11190_LT_EOF 11191 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11192 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11193 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11194 else 11195 ld_shlibs=no 11196 fi 11197 ;; 11198 11199 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 11200 case `$LD -v 2>&1` in 11201 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 11202 ld_shlibs=no 11203 cat <<_LT_EOF 1>&2 11204 11205*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 11206*** reliably create shared libraries on SCO systems. Therefore, libtool 11207*** is disabling shared libraries support. We urge you to upgrade GNU 11208*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 11209*** your PATH or compiler configuration so that the native linker is 11210*** used, and then restart. 11211 11212_LT_EOF 11213 ;; 11214 *) 11215 # For security reasons, it is highly recommended that you always 11216 # use absolute paths for naming shared libraries, and exclude the 11217 # DT_RUNPATH tag from executables and libraries. But doing so 11218 # requires that you compile everything twice, which is a pain. 11219 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11220 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11221 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11222 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11223 else 11224 ld_shlibs=no 11225 fi 11226 ;; 11227 esac 11228 ;; 11229 11230 sunos4*) 11231 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11232 wlarc= 11233 hardcode_direct=yes 11234 hardcode_shlibpath_var=no 11235 ;; 11236 11237 *) 11238 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11239 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11240 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11241 else 11242 ld_shlibs=no 11243 fi 11244 ;; 11245 esac 11246 11247 if test no = "$ld_shlibs"; then 11248 runpath_var= 11249 hardcode_libdir_flag_spec= 11250 export_dynamic_flag_spec= 11251 whole_archive_flag_spec= 11252 fi 11253 else 11254 # PORTME fill in a description of your system's linker (not GNU ld) 11255 case $host_os in 11256 aix3*) 11257 allow_undefined_flag=unsupported 11258 always_export_symbols=yes 11259 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' 11260 # Note: this linker hardcodes the directories in LIBPATH if there 11261 # are no directories specified by -L. 11262 hardcode_minus_L=yes 11263 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 11264 # Neither direct hardcoding nor static linking is supported with a 11265 # broken collect2. 11266 hardcode_direct=unsupported 11267 fi 11268 ;; 11269 11270 aix[4-9]*) 11271 if test ia64 = "$host_cpu"; then 11272 # On IA64, the linker does run time linking by default, so we don't 11273 # have to do anything special. 11274 aix_use_runtimelinking=no 11275 exp_sym_flag='-Bexport' 11276 no_entry_flag= 11277 else 11278 # If we're using GNU nm, then we don't want the "-C" option. 11279 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 11280 # Without the "-l" option, or with the "-B" option, AIX nm treats 11281 # weak defined symbols like other global defined symbols, whereas 11282 # GNU nm marks them as "W". 11283 # While the 'weak' keyword is ignored in the Export File, we need 11284 # it in the Import File for the 'aix-soname' feature, so we have 11285 # to replace the "-B" option with "-P" for AIX nm. 11286 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 11287 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' 11288 else 11289 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' 11290 fi 11291 aix_use_runtimelinking=no 11292 11293 # Test if we are trying to use run time linking or normal 11294 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11295 # have runtime linking enabled, and use it for executables. 11296 # For shared libraries, we enable/disable runtime linking 11297 # depending on the kind of the shared library created - 11298 # when "with_aix_soname,aix_use_runtimelinking" is: 11299 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 11300 # "aix,yes" lib.so shared, rtl:yes, for executables 11301 # lib.a static archive 11302 # "both,no" lib.so.V(shr.o) shared, rtl:yes 11303 # lib.a(lib.so.V) shared, rtl:no, for executables 11304 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 11305 # lib.a(lib.so.V) shared, rtl:no 11306 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 11307 # lib.a static archive 11308 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11309 for ld_flag in $LDFLAGS; do 11310 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 11311 aix_use_runtimelinking=yes 11312 break 11313 fi 11314 done 11315 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 11316 # With aix-soname=svr4, we create the lib.so.V shared archives only, 11317 # so we don't have lib.a shared libs to link our executables. 11318 # We have to force runtime linking in this case. 11319 aix_use_runtimelinking=yes 11320 LDFLAGS="$LDFLAGS -Wl,-brtl" 11321 fi 11322 ;; 11323 esac 11324 11325 exp_sym_flag='-bexport' 11326 no_entry_flag='-bnoentry' 11327 fi 11328 11329 # When large executables or shared objects are built, AIX ld can 11330 # have problems creating the table of contents. If linking a library 11331 # or program results in "error TOC overflow" add -mminimal-toc to 11332 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11333 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11334 11335 archive_cmds='' 11336 hardcode_direct=yes 11337 hardcode_direct_absolute=yes 11338 hardcode_libdir_separator=':' 11339 link_all_deplibs=yes 11340 file_list_spec='$wl-f,' 11341 case $with_aix_soname,$aix_use_runtimelinking in 11342 aix,*) ;; # traditional, no import file 11343 svr4,* | *,yes) # use import file 11344 # The Import File defines what to hardcode. 11345 hardcode_direct=no 11346 hardcode_direct_absolute=no 11347 ;; 11348 esac 11349 11350 if test yes = "$GCC"; then 11351 case $host_os in aix4.[012]|aix4.[012].*) 11352 # We only want to do this on AIX 4.2 and lower, the check 11353 # below for broken collect2 doesn't work under 4.3+ 11354 collect2name=`$CC -print-prog-name=collect2` 11355 if test -f "$collect2name" && 11356 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11357 then 11358 # We have reworked collect2 11359 : 11360 else 11361 # We have old collect2 11362 hardcode_direct=unsupported 11363 # It fails to find uninstalled libraries when the uninstalled 11364 # path is not listed in the libpath. Setting hardcode_minus_L 11365 # to unsupported forces relinking 11366 hardcode_minus_L=yes 11367 hardcode_libdir_flag_spec='-L$libdir' 11368 hardcode_libdir_separator= 11369 fi 11370 ;; 11371 esac 11372 shared_flag='-shared' 11373 if test yes = "$aix_use_runtimelinking"; then 11374 shared_flag="$shared_flag "'$wl-G' 11375 fi 11376 # Need to ensure runtime linking is disabled for the traditional 11377 # shared library, or the linker may eventually find shared libraries 11378 # /with/ Import File - we do not want to mix them. 11379 shared_flag_aix='-shared' 11380 shared_flag_svr4='-shared $wl-G' 11381 else 11382 # not using gcc 11383 if test ia64 = "$host_cpu"; then 11384 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11385 # chokes on -Wl,-G. The following line is correct: 11386 shared_flag='-G' 11387 else 11388 if test yes = "$aix_use_runtimelinking"; then 11389 shared_flag='$wl-G' 11390 else 11391 shared_flag='$wl-bM:SRE' 11392 fi 11393 shared_flag_aix='$wl-bM:SRE' 11394 shared_flag_svr4='$wl-G' 11395 fi 11396 fi 11397 11398 export_dynamic_flag_spec='$wl-bexpall' 11399 # It seems that -bexpall does not export symbols beginning with 11400 # underscore (_), so it is better to generate a list of symbols to export. 11401 always_export_symbols=yes 11402 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 11403 # Warning - without using the other runtime loading flags (-brtl), 11404 # -berok will link without error, but may produce a broken library. 11405 allow_undefined_flag='-berok' 11406 # Determine the default libpath from the value encoded in an 11407 # empty executable. 11408 if test set = "${lt_cv_aix_libpath+set}"; then 11409 aix_libpath=$lt_cv_aix_libpath 11410else 11411 if ${lt_cv_aix_libpath_+:} false; then : 11412 $as_echo_n "(cached) " >&6 11413else 11414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11415/* end confdefs.h. */ 11416 11417int 11418main () 11419{ 11420 11421 ; 11422 return 0; 11423} 11424_ACEOF 11425if ac_fn_c_try_link "$LINENO"; then : 11426 11427 lt_aix_libpath_sed=' 11428 /Import File Strings/,/^$/ { 11429 /^0/ { 11430 s/^0 *\([^ ]*\) *$/\1/ 11431 p 11432 } 11433 }' 11434 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11435 # Check for a 64-bit object if we didn't find anything. 11436 if test -z "$lt_cv_aix_libpath_"; then 11437 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11438 fi 11439fi 11440rm -f core conftest.err conftest.$ac_objext \ 11441 conftest$ac_exeext conftest.$ac_ext 11442 if test -z "$lt_cv_aix_libpath_"; then 11443 lt_cv_aix_libpath_=/usr/lib:/lib 11444 fi 11445 11446fi 11447 11448 aix_libpath=$lt_cv_aix_libpath_ 11449fi 11450 11451 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11452 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 11453 else 11454 if test ia64 = "$host_cpu"; then 11455 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 11456 allow_undefined_flag="-z nodefs" 11457 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" 11458 else 11459 # Determine the default libpath from the value encoded in an 11460 # empty executable. 11461 if test set = "${lt_cv_aix_libpath+set}"; then 11462 aix_libpath=$lt_cv_aix_libpath 11463else 11464 if ${lt_cv_aix_libpath_+:} false; then : 11465 $as_echo_n "(cached) " >&6 11466else 11467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11468/* end confdefs.h. */ 11469 11470int 11471main () 11472{ 11473 11474 ; 11475 return 0; 11476} 11477_ACEOF 11478if ac_fn_c_try_link "$LINENO"; then : 11479 11480 lt_aix_libpath_sed=' 11481 /Import File Strings/,/^$/ { 11482 /^0/ { 11483 s/^0 *\([^ ]*\) *$/\1/ 11484 p 11485 } 11486 }' 11487 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11488 # Check for a 64-bit object if we didn't find anything. 11489 if test -z "$lt_cv_aix_libpath_"; then 11490 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11491 fi 11492fi 11493rm -f core conftest.err conftest.$ac_objext \ 11494 conftest$ac_exeext conftest.$ac_ext 11495 if test -z "$lt_cv_aix_libpath_"; then 11496 lt_cv_aix_libpath_=/usr/lib:/lib 11497 fi 11498 11499fi 11500 11501 aix_libpath=$lt_cv_aix_libpath_ 11502fi 11503 11504 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11505 # Warning - without using the other run time loading flags, 11506 # -berok will link without error, but may produce a broken library. 11507 no_undefined_flag=' $wl-bernotok' 11508 allow_undefined_flag=' $wl-berok' 11509 if test yes = "$with_gnu_ld"; then 11510 # We only use this code for GNU lds that support --whole-archive. 11511 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 11512 else 11513 # Exported symbols can be pulled into shared objects from archives 11514 whole_archive_flag_spec='$convenience' 11515 fi 11516 archive_cmds_need_lc=yes 11517 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 11518 # -brtl affects multiple linker settings, -berok does not and is overridden later 11519 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 11520 if test svr4 != "$with_aix_soname"; then 11521 # This is similar to how AIX traditionally builds its shared libraries. 11522 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' 11523 fi 11524 if test aix != "$with_aix_soname"; then 11525 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' 11526 else 11527 # used by -dlpreopen to get the symbols 11528 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 11529 fi 11530 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 11531 fi 11532 fi 11533 ;; 11534 11535 amigaos*) 11536 case $host_cpu in 11537 powerpc) 11538 # see comment about AmigaOS4 .so support 11539 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11540 archive_expsym_cmds='' 11541 ;; 11542 m68k) 11543 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)' 11544 hardcode_libdir_flag_spec='-L$libdir' 11545 hardcode_minus_L=yes 11546 ;; 11547 esac 11548 ;; 11549 11550 bsdi[45]*) 11551 export_dynamic_flag_spec=-rdynamic 11552 ;; 11553 11554 cygwin* | mingw* | pw32* | cegcc*) 11555 # When not using gcc, we currently assume that we are using 11556 # Microsoft Visual C++. 11557 # hardcode_libdir_flag_spec is actually meaningless, as there is 11558 # no search path for DLLs. 11559 case $cc_basename in 11560 cl*) 11561 # Native MSVC 11562 hardcode_libdir_flag_spec=' ' 11563 allow_undefined_flag=unsupported 11564 always_export_symbols=yes 11565 file_list_spec='@' 11566 # Tell ltmain to make .lib files, not .a files. 11567 libext=lib 11568 # Tell ltmain to make .dll files, not .so files. 11569 shrext_cmds=.dll 11570 # FIXME: Setting linknames here is a bad hack. 11571 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 11572 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11573 cp "$export_symbols" "$output_objdir/$soname.def"; 11574 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 11575 else 11576 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 11577 fi~ 11578 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11579 linknames=' 11580 # The linker will not automatically build a static lib if we build a DLL. 11581 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11582 enable_shared_with_static_runtimes=yes 11583 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11584 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11585 # Don't use ranlib 11586 old_postinstall_cmds='chmod 644 $oldlib' 11587 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11588 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11589 case $lt_outputfile in 11590 *.exe|*.EXE) ;; 11591 *) 11592 lt_outputfile=$lt_outputfile.exe 11593 lt_tool_outputfile=$lt_tool_outputfile.exe 11594 ;; 11595 esac~ 11596 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 11597 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11598 $RM "$lt_outputfile.manifest"; 11599 fi' 11600 ;; 11601 *) 11602 # Assume MSVC wrapper 11603 hardcode_libdir_flag_spec=' ' 11604 allow_undefined_flag=unsupported 11605 # Tell ltmain to make .lib files, not .a files. 11606 libext=lib 11607 # Tell ltmain to make .dll files, not .so files. 11608 shrext_cmds=.dll 11609 # FIXME: Setting linknames here is a bad hack. 11610 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11611 # The linker will automatically build a .lib file if we build a DLL. 11612 old_archive_from_new_cmds='true' 11613 # FIXME: Should let the user specify the lib program. 11614 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11615 enable_shared_with_static_runtimes=yes 11616 ;; 11617 esac 11618 ;; 11619 11620 darwin* | rhapsody*) 11621 11622 11623 archive_cmds_need_lc=no 11624 hardcode_direct=no 11625 hardcode_automatic=yes 11626 hardcode_shlibpath_var=unsupported 11627 if test yes = "$lt_cv_ld_force_load"; then 11628 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\"`' 11629 11630 else 11631 whole_archive_flag_spec='' 11632 fi 11633 link_all_deplibs=yes 11634 allow_undefined_flag=$_lt_dar_allow_undefined 11635 case $cc_basename in 11636 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 11637 *) _lt_dar_can_shared=$GCC ;; 11638 esac 11639 if test yes = "$_lt_dar_can_shared"; then 11640 output_verbose_link_cmd=func_echo_all 11641 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 11642 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 11643 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" 11644 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" 11645 11646 else 11647 ld_shlibs=no 11648 fi 11649 11650 ;; 11651 11652 dgux*) 11653 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11654 hardcode_libdir_flag_spec='-L$libdir' 11655 hardcode_shlibpath_var=no 11656 ;; 11657 11658 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11659 # support. Future versions do this automatically, but an explicit c++rt0.o 11660 # does not break anything, and helps significantly (at the cost of a little 11661 # extra space). 11662 freebsd2.2*) 11663 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11664 hardcode_libdir_flag_spec='-R$libdir' 11665 hardcode_direct=yes 11666 hardcode_shlibpath_var=no 11667 ;; 11668 11669 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11670 freebsd2.*) 11671 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11672 hardcode_direct=yes 11673 hardcode_minus_L=yes 11674 hardcode_shlibpath_var=no 11675 ;; 11676 11677 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11678 freebsd* | dragonfly*) 11679 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11680 hardcode_libdir_flag_spec='-R$libdir' 11681 hardcode_direct=yes 11682 hardcode_shlibpath_var=no 11683 ;; 11684 11685 hpux9*) 11686 if test yes = "$GCC"; then 11687 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' 11688 else 11689 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' 11690 fi 11691 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11692 hardcode_libdir_separator=: 11693 hardcode_direct=yes 11694 11695 # hardcode_minus_L: Not really in the search PATH, 11696 # but as the default location of the library. 11697 hardcode_minus_L=yes 11698 export_dynamic_flag_spec='$wl-E' 11699 ;; 11700 11701 hpux10*) 11702 if test yes,no = "$GCC,$with_gnu_ld"; then 11703 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11704 else 11705 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11706 fi 11707 if test no = "$with_gnu_ld"; then 11708 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11709 hardcode_libdir_separator=: 11710 hardcode_direct=yes 11711 hardcode_direct_absolute=yes 11712 export_dynamic_flag_spec='$wl-E' 11713 # hardcode_minus_L: Not really in the search PATH, 11714 # but as the default location of the library. 11715 hardcode_minus_L=yes 11716 fi 11717 ;; 11718 11719 hpux11*) 11720 if test yes,no = "$GCC,$with_gnu_ld"; then 11721 case $host_cpu in 11722 hppa*64*) 11723 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11724 ;; 11725 ia64*) 11726 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11727 ;; 11728 *) 11729 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11730 ;; 11731 esac 11732 else 11733 case $host_cpu in 11734 hppa*64*) 11735 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11736 ;; 11737 ia64*) 11738 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11739 ;; 11740 *) 11741 11742 # Older versions of the 11.00 compiler do not understand -b yet 11743 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11745$as_echo_n "checking if $CC understands -b... " >&6; } 11746if ${lt_cv_prog_compiler__b+:} false; then : 11747 $as_echo_n "(cached) " >&6 11748else 11749 lt_cv_prog_compiler__b=no 11750 save_LDFLAGS=$LDFLAGS 11751 LDFLAGS="$LDFLAGS -b" 11752 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11753 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11754 # The linker can only warn and ignore the option if not recognized 11755 # So say no if there are warnings 11756 if test -s conftest.err; then 11757 # Append any errors to the config.log. 11758 cat conftest.err 1>&5 11759 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11760 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11761 if diff conftest.exp conftest.er2 >/dev/null; then 11762 lt_cv_prog_compiler__b=yes 11763 fi 11764 else 11765 lt_cv_prog_compiler__b=yes 11766 fi 11767 fi 11768 $RM -r conftest* 11769 LDFLAGS=$save_LDFLAGS 11770 11771fi 11772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11773$as_echo "$lt_cv_prog_compiler__b" >&6; } 11774 11775if test yes = "$lt_cv_prog_compiler__b"; then 11776 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11777else 11778 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11779fi 11780 11781 ;; 11782 esac 11783 fi 11784 if test no = "$with_gnu_ld"; then 11785 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11786 hardcode_libdir_separator=: 11787 11788 case $host_cpu in 11789 hppa*64*|ia64*) 11790 hardcode_direct=no 11791 hardcode_shlibpath_var=no 11792 ;; 11793 *) 11794 hardcode_direct=yes 11795 hardcode_direct_absolute=yes 11796 export_dynamic_flag_spec='$wl-E' 11797 11798 # hardcode_minus_L: Not really in the search PATH, 11799 # but as the default location of the library. 11800 hardcode_minus_L=yes 11801 ;; 11802 esac 11803 fi 11804 ;; 11805 11806 irix5* | irix6* | nonstopux*) 11807 if test yes = "$GCC"; then 11808 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' 11809 # Try to use the -exported_symbol ld option, if it does not 11810 # work, assume that -exports_file does not work either and 11811 # implicitly export all symbols. 11812 # This should be the same for all languages, so no per-tag cache variable. 11813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11814$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11815if ${lt_cv_irix_exported_symbol+:} false; then : 11816 $as_echo_n "(cached) " >&6 11817else 11818 save_LDFLAGS=$LDFLAGS 11819 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11821/* end confdefs.h. */ 11822int foo (void) { return 0; } 11823_ACEOF 11824if ac_fn_c_try_link "$LINENO"; then : 11825 lt_cv_irix_exported_symbol=yes 11826else 11827 lt_cv_irix_exported_symbol=no 11828fi 11829rm -f core conftest.err conftest.$ac_objext \ 11830 conftest$ac_exeext conftest.$ac_ext 11831 LDFLAGS=$save_LDFLAGS 11832fi 11833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11834$as_echo "$lt_cv_irix_exported_symbol" >&6; } 11835 if test yes = "$lt_cv_irix_exported_symbol"; then 11836 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' 11837 fi 11838 else 11839 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' 11840 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' 11841 fi 11842 archive_cmds_need_lc='no' 11843 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11844 hardcode_libdir_separator=: 11845 inherit_rpath=yes 11846 link_all_deplibs=yes 11847 ;; 11848 11849 linux*) 11850 case $cc_basename in 11851 tcc*) 11852 # Fabrice Bellard et al's Tiny C Compiler 11853 ld_shlibs=yes 11854 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11855 ;; 11856 esac 11857 ;; 11858 11859 netbsd*) 11860 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11861 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11862 else 11863 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11864 fi 11865 hardcode_libdir_flag_spec='-R$libdir' 11866 hardcode_direct=yes 11867 hardcode_shlibpath_var=no 11868 ;; 11869 11870 newsos6) 11871 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11872 hardcode_direct=yes 11873 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11874 hardcode_libdir_separator=: 11875 hardcode_shlibpath_var=no 11876 ;; 11877 11878 *nto* | *qnx*) 11879 ;; 11880 11881 openbsd* | bitrig*) 11882 if test -f /usr/libexec/ld.so; then 11883 hardcode_direct=yes 11884 hardcode_shlibpath_var=no 11885 hardcode_direct_absolute=yes 11886 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11887 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11888 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11889 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11890 export_dynamic_flag_spec='$wl-E' 11891 else 11892 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11893 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11894 fi 11895 else 11896 ld_shlibs=no 11897 fi 11898 ;; 11899 11900 os2*) 11901 hardcode_libdir_flag_spec='-L$libdir' 11902 hardcode_minus_L=yes 11903 allow_undefined_flag=unsupported 11904 shrext_cmds=.dll 11905 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11906 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11907 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11908 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11909 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11910 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11911 emximp -o $lib $output_objdir/$libname.def' 11912 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11913 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11914 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11915 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11916 prefix_cmds="$SED"~ 11917 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11918 prefix_cmds="$prefix_cmds -e 1d"; 11919 fi~ 11920 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11921 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11922 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11923 emximp -o $lib $output_objdir/$libname.def' 11924 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11925 enable_shared_with_static_runtimes=yes 11926 ;; 11927 11928 osf3*) 11929 if test yes = "$GCC"; then 11930 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11931 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' 11932 else 11933 allow_undefined_flag=' -expect_unresolved \*' 11934 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' 11935 fi 11936 archive_cmds_need_lc='no' 11937 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11938 hardcode_libdir_separator=: 11939 ;; 11940 11941 osf4* | osf5*) # as osf3* with the addition of -msym flag 11942 if test yes = "$GCC"; then 11943 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11944 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' 11945 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11946 else 11947 allow_undefined_flag=' -expect_unresolved \*' 11948 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' 11949 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~ 11950 $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' 11951 11952 # Both c and cxx compiler support -rpath directly 11953 hardcode_libdir_flag_spec='-rpath $libdir' 11954 fi 11955 archive_cmds_need_lc='no' 11956 hardcode_libdir_separator=: 11957 ;; 11958 11959 solaris*) 11960 no_undefined_flag=' -z defs' 11961 if test yes = "$GCC"; then 11962 wlarc='$wl' 11963 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11964 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11965 $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' 11966 else 11967 case `$CC -V 2>&1` in 11968 *"Compilers 5.0"*) 11969 wlarc='' 11970 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11971 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11972 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11973 ;; 11974 *) 11975 wlarc='$wl' 11976 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11977 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11978 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11979 ;; 11980 esac 11981 fi 11982 hardcode_libdir_flag_spec='-R$libdir' 11983 hardcode_shlibpath_var=no 11984 case $host_os in 11985 solaris2.[0-5] | solaris2.[0-5].*) ;; 11986 *) 11987 # The compiler driver will combine and reorder linker options, 11988 # but understands '-z linker_flag'. GCC discards it without '$wl', 11989 # but is careful enough not to reorder. 11990 # Supported since Solaris 2.6 (maybe 2.5.1?) 11991 if test yes = "$GCC"; then 11992 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11993 else 11994 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11995 fi 11996 ;; 11997 esac 11998 link_all_deplibs=yes 11999 ;; 12000 12001 sunos4*) 12002 if test sequent = "$host_vendor"; then 12003 # Use $CC to link under sequent, because it throws in some extra .o 12004 # files that make .init and .fini sections work. 12005 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 12006 else 12007 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 12008 fi 12009 hardcode_libdir_flag_spec='-L$libdir' 12010 hardcode_direct=yes 12011 hardcode_minus_L=yes 12012 hardcode_shlibpath_var=no 12013 ;; 12014 12015 sysv4) 12016 case $host_vendor in 12017 sni) 12018 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12019 hardcode_direct=yes # is this really true??? 12020 ;; 12021 siemens) 12022 ## LD is ld it makes a PLAMLIB 12023 ## CC just makes a GrossModule. 12024 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 12025 reload_cmds='$CC -r -o $output$reload_objs' 12026 hardcode_direct=no 12027 ;; 12028 motorola) 12029 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12030 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 12031 ;; 12032 esac 12033 runpath_var='LD_RUN_PATH' 12034 hardcode_shlibpath_var=no 12035 ;; 12036 12037 sysv4.3*) 12038 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12039 hardcode_shlibpath_var=no 12040 export_dynamic_flag_spec='-Bexport' 12041 ;; 12042 12043 sysv4*MP*) 12044 if test -d /usr/nec; then 12045 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12046 hardcode_shlibpath_var=no 12047 runpath_var=LD_RUN_PATH 12048 hardcode_runpath_var=yes 12049 ld_shlibs=yes 12050 fi 12051 ;; 12052 12053 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12054 no_undefined_flag='$wl-z,text' 12055 archive_cmds_need_lc=no 12056 hardcode_shlibpath_var=no 12057 runpath_var='LD_RUN_PATH' 12058 12059 if test yes = "$GCC"; then 12060 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12061 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12062 else 12063 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12064 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12065 fi 12066 ;; 12067 12068 sysv5* | sco3.2v5* | sco5v6*) 12069 # Note: We CANNOT use -z defs as we might desire, because we do not 12070 # link with -lc, and that would cause any symbols used from libc to 12071 # always be unresolved, which means just about no library would 12072 # ever link correctly. If we're not using GNU ld we use -z text 12073 # though, which does catch some bad symbols but isn't as heavy-handed 12074 # as -z defs. 12075 no_undefined_flag='$wl-z,text' 12076 allow_undefined_flag='$wl-z,nodefs' 12077 archive_cmds_need_lc=no 12078 hardcode_shlibpath_var=no 12079 hardcode_libdir_flag_spec='$wl-R,$libdir' 12080 hardcode_libdir_separator=':' 12081 link_all_deplibs=yes 12082 export_dynamic_flag_spec='$wl-Bexport' 12083 runpath_var='LD_RUN_PATH' 12084 12085 if test yes = "$GCC"; then 12086 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12087 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12088 else 12089 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12090 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12091 fi 12092 ;; 12093 12094 uts4*) 12095 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12096 hardcode_libdir_flag_spec='-L$libdir' 12097 hardcode_shlibpath_var=no 12098 ;; 12099 12100 *) 12101 ld_shlibs=no 12102 ;; 12103 esac 12104 12105 if test sni = "$host_vendor"; then 12106 case $host in 12107 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12108 export_dynamic_flag_spec='$wl-Blargedynsym' 12109 ;; 12110 esac 12111 fi 12112 fi 12113 12114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 12115$as_echo "$ld_shlibs" >&6; } 12116test no = "$ld_shlibs" && can_build_shared=no 12117 12118with_gnu_ld=$with_gnu_ld 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134# 12135# Do we need to explicitly link libc? 12136# 12137case "x$archive_cmds_need_lc" in 12138x|xyes) 12139 # Assume -lc should be added 12140 archive_cmds_need_lc=yes 12141 12142 if test yes,yes = "$GCC,$enable_shared"; then 12143 case $archive_cmds in 12144 *'~'*) 12145 # FIXME: we may have to deal with multi-command sequences. 12146 ;; 12147 '$CC '*) 12148 # Test whether the compiler implicitly links with -lc since on some 12149 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12150 # to ld, don't add -lc before -lgcc. 12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 12152$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 12153if ${lt_cv_archive_cmds_need_lc+:} false; then : 12154 $as_echo_n "(cached) " >&6 12155else 12156 $RM conftest* 12157 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12158 12159 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12160 (eval $ac_compile) 2>&5 12161 ac_status=$? 12162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12163 test $ac_status = 0; } 2>conftest.err; then 12164 soname=conftest 12165 lib=conftest 12166 libobjs=conftest.$ac_objext 12167 deplibs= 12168 wl=$lt_prog_compiler_wl 12169 pic_flag=$lt_prog_compiler_pic 12170 compiler_flags=-v 12171 linker_flags=-v 12172 verstring= 12173 output_objdir=. 12174 libname=conftest 12175 lt_save_allow_undefined_flag=$allow_undefined_flag 12176 allow_undefined_flag= 12177 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 12178 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 12179 ac_status=$? 12180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12181 test $ac_status = 0; } 12182 then 12183 lt_cv_archive_cmds_need_lc=no 12184 else 12185 lt_cv_archive_cmds_need_lc=yes 12186 fi 12187 allow_undefined_flag=$lt_save_allow_undefined_flag 12188 else 12189 cat conftest.err 1>&5 12190 fi 12191 $RM conftest* 12192 12193fi 12194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 12195$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 12196 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 12197 ;; 12198 esac 12199 fi 12200 ;; 12201esac 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 12355$as_echo_n "checking dynamic linker characteristics... " >&6; } 12356 12357if test yes = "$GCC"; then 12358 case $host_os in 12359 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 12360 *) lt_awk_arg='/^libraries:/' ;; 12361 esac 12362 case $host_os in 12363 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 12364 *) lt_sed_strip_eq='s|=/|/|g' ;; 12365 esac 12366 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 12367 case $lt_search_path_spec in 12368 *\;*) 12369 # if the path contains ";" then we assume it to be the separator 12370 # otherwise default to the standard path separator (i.e. ":") - it is 12371 # assumed that no part of a normal pathname contains ";" but that should 12372 # okay in the real world where ";" in dirpaths is itself problematic. 12373 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 12374 ;; 12375 *) 12376 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 12377 ;; 12378 esac 12379 # Ok, now we have the path, separated by spaces, we can step through it 12380 # and add multilib dir if necessary... 12381 lt_tmp_lt_search_path_spec= 12382 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 12383 # ...but if some path component already ends with the multilib dir we assume 12384 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 12385 case "$lt_multi_os_dir; $lt_search_path_spec " in 12386 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 12387 lt_multi_os_dir= 12388 ;; 12389 esac 12390 for lt_sys_path in $lt_search_path_spec; do 12391 if test -d "$lt_sys_path$lt_multi_os_dir"; then 12392 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 12393 elif test -n "$lt_multi_os_dir"; then 12394 test -d "$lt_sys_path" && \ 12395 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 12396 fi 12397 done 12398 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 12399BEGIN {RS = " "; FS = "/|\n";} { 12400 lt_foo = ""; 12401 lt_count = 0; 12402 for (lt_i = NF; lt_i > 0; lt_i--) { 12403 if ($lt_i != "" && $lt_i != ".") { 12404 if ($lt_i == "..") { 12405 lt_count++; 12406 } else { 12407 if (lt_count == 0) { 12408 lt_foo = "/" $lt_i lt_foo; 12409 } else { 12410 lt_count--; 12411 } 12412 } 12413 } 12414 } 12415 if (lt_foo != "") { lt_freq[lt_foo]++; } 12416 if (lt_freq[lt_foo] == 1) { print lt_foo; } 12417}'` 12418 # AWK program above erroneously prepends '/' to C:/dos/paths 12419 # for these hosts. 12420 case $host_os in 12421 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 12422 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 12423 esac 12424 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 12425else 12426 sys_lib_search_path_spec="/lib /usr/lib /Users/mhorn/Projekte/foreign/homebrew/lib" 12427fi 12428library_names_spec= 12429libname_spec='lib$name' 12430soname_spec= 12431shrext_cmds=.so 12432postinstall_cmds= 12433postuninstall_cmds= 12434finish_cmds= 12435finish_eval= 12436shlibpath_var= 12437shlibpath_overrides_runpath=unknown 12438version_type=none 12439dynamic_linker="$host_os ld.so" 12440sys_lib_dlsearch_path_spec="/lib /usr/lib" 12441need_lib_prefix=unknown 12442hardcode_into_libs=no 12443 12444# when you set need_version to no, make sure it does not cause -set_version 12445# flags to be left without arguments 12446need_version=unknown 12447 12448 12449 12450case $host_os in 12451aix3*) 12452 version_type=linux # correct to gnu/linux during the next big refactor 12453 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 12454 shlibpath_var=LIBPATH 12455 12456 # AIX 3 has no versioning support, so we append a major version to the name. 12457 soname_spec='$libname$release$shared_ext$major' 12458 ;; 12459 12460aix[4-9]*) 12461 version_type=linux # correct to gnu/linux during the next big refactor 12462 need_lib_prefix=no 12463 need_version=no 12464 hardcode_into_libs=yes 12465 if test ia64 = "$host_cpu"; then 12466 # AIX 5 supports IA64 12467 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 12468 shlibpath_var=LD_LIBRARY_PATH 12469 else 12470 # With GCC up to 2.95.x, collect2 would create an import file 12471 # for dependence libraries. The import file would start with 12472 # the line '#! .'. This would cause the generated library to 12473 # depend on '.', always an invalid library. This was fixed in 12474 # development snapshots of GCC prior to 3.0. 12475 case $host_os in 12476 aix4 | aix4.[01] | aix4.[01].*) 12477 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12478 echo ' yes ' 12479 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 12480 : 12481 else 12482 can_build_shared=no 12483 fi 12484 ;; 12485 esac 12486 # Using Import Files as archive members, it is possible to support 12487 # filename-based versioning of shared library archives on AIX. While 12488 # this would work for both with and without runtime linking, it will 12489 # prevent static linking of such archives. So we do filename-based 12490 # shared library versioning with .so extension only, which is used 12491 # when both runtime linking and shared linking is enabled. 12492 # Unfortunately, runtime linking may impact performance, so we do 12493 # not want this to be the default eventually. Also, we use the 12494 # versioned .so libs for executables only if there is the -brtl 12495 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 12496 # To allow for filename-based versioning support, we need to create 12497 # libNAME.so.V as an archive file, containing: 12498 # *) an Import File, referring to the versioned filename of the 12499 # archive as well as the shared archive member, telling the 12500 # bitwidth (32 or 64) of that shared object, and providing the 12501 # list of exported symbols of that shared object, eventually 12502 # decorated with the 'weak' keyword 12503 # *) the shared object with the F_LOADONLY flag set, to really avoid 12504 # it being seen by the linker. 12505 # At run time we better use the real file rather than another symlink, 12506 # but for link time we create the symlink libNAME.so -> libNAME.so.V 12507 12508 case $with_aix_soname,$aix_use_runtimelinking in 12509 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 12510 # soname into executable. Probably we can add versioning support to 12511 # collect2, so additional links can be useful in future. 12512 aix,yes) # traditional libtool 12513 dynamic_linker='AIX unversionable lib.so' 12514 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12515 # instead of lib<name>.a to let people know that these are not 12516 # typical AIX shared libraries. 12517 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12518 ;; 12519 aix,no) # traditional AIX only 12520 dynamic_linker='AIX lib.a(lib.so.V)' 12521 # We preserve .a as extension for shared libraries through AIX4.2 12522 # and later when we are not doing run time linking. 12523 library_names_spec='$libname$release.a $libname.a' 12524 soname_spec='$libname$release$shared_ext$major' 12525 ;; 12526 svr4,*) # full svr4 only 12527 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 12528 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12529 # We do not specify a path in Import Files, so LIBPATH fires. 12530 shlibpath_overrides_runpath=yes 12531 ;; 12532 *,yes) # both, prefer svr4 12533 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 12534 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12535 # unpreferred sharedlib libNAME.a needs extra handling 12536 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"' 12537 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"' 12538 # We do not specify a path in Import Files, so LIBPATH fires. 12539 shlibpath_overrides_runpath=yes 12540 ;; 12541 *,no) # both, prefer aix 12542 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 12543 library_names_spec='$libname$release.a $libname.a' 12544 soname_spec='$libname$release$shared_ext$major' 12545 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 12546 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)' 12547 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"' 12548 ;; 12549 esac 12550 shlibpath_var=LIBPATH 12551 fi 12552 ;; 12553 12554amigaos*) 12555 case $host_cpu in 12556 powerpc) 12557 # Since July 2007 AmigaOS4 officially supports .so libraries. 12558 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12559 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12560 ;; 12561 m68k) 12562 library_names_spec='$libname.ixlibrary $libname.a' 12563 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12564 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' 12565 ;; 12566 esac 12567 ;; 12568 12569beos*) 12570 library_names_spec='$libname$shared_ext' 12571 dynamic_linker="$host_os ld.so" 12572 shlibpath_var=LIBRARY_PATH 12573 ;; 12574 12575bsdi[45]*) 12576 version_type=linux # correct to gnu/linux during the next big refactor 12577 need_version=no 12578 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12579 soname_spec='$libname$release$shared_ext$major' 12580 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12581 shlibpath_var=LD_LIBRARY_PATH 12582 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /Users/mhorn/Projekte/foreign/homebrew/lib" 12583 sys_lib_dlsearch_path_spec="/shlib /usr/lib /Users/mhorn/Projekte/foreign/homebrew/lib" 12584 # the default ld.so.conf also contains /usr/contrib/lib and 12585 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12586 # libtool to hard-code these into programs 12587 ;; 12588 12589cygwin* | mingw* | pw32* | cegcc*) 12590 version_type=windows 12591 shrext_cmds=.dll 12592 need_version=no 12593 need_lib_prefix=no 12594 12595 case $GCC,$cc_basename in 12596 yes,*) 12597 # gcc 12598 library_names_spec='$libname.dll.a' 12599 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12600 postinstall_cmds='base_file=`basename \$file`~ 12601 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12602 dldir=$destdir/`dirname \$dlpath`~ 12603 test -d \$dldir || mkdir -p \$dldir~ 12604 $install_prog $dir/$dlname \$dldir/$dlname~ 12605 chmod a+x \$dldir/$dlname~ 12606 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12607 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12608 fi' 12609 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12610 dlpath=$dir/\$dldll~ 12611 $RM \$dlpath' 12612 shlibpath_overrides_runpath=yes 12613 12614 case $host_os in 12615 cygwin*) 12616 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12617 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12618 12619 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12620 ;; 12621 mingw* | cegcc*) 12622 # MinGW DLLs use traditional 'lib' prefix 12623 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12624 ;; 12625 pw32*) 12626 # pw32 DLLs use 'pw' prefix rather than 'lib' 12627 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12628 ;; 12629 esac 12630 dynamic_linker='Win32 ld.exe' 12631 ;; 12632 12633 *,cl*) 12634 # Native MSVC 12635 libname_spec='$name' 12636 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12637 library_names_spec='$libname.dll.lib' 12638 12639 case $build_os in 12640 mingw*) 12641 sys_lib_search_path_spec= 12642 lt_save_ifs=$IFS 12643 IFS=';' 12644 for lt_path in $LIB 12645 do 12646 IFS=$lt_save_ifs 12647 # Let DOS variable expansion print the short 8.3 style file name. 12648 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12649 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12650 done 12651 IFS=$lt_save_ifs 12652 # Convert to MSYS style. 12653 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12654 ;; 12655 cygwin*) 12656 # Convert to unix form, then to dos form, then back to unix form 12657 # but this time dos style (no spaces!) so that the unix form looks 12658 # like /cygdrive/c/PROGRA~1:/cygdr... 12659 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12660 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12661 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12662 ;; 12663 *) 12664 sys_lib_search_path_spec=$LIB 12665 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12666 # It is most probably a Windows format PATH. 12667 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12668 else 12669 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12670 fi 12671 # FIXME: find the short name or the path components, as spaces are 12672 # common. (e.g. "Program Files" -> "PROGRA~1") 12673 ;; 12674 esac 12675 12676 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12677 postinstall_cmds='base_file=`basename \$file`~ 12678 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12679 dldir=$destdir/`dirname \$dlpath`~ 12680 test -d \$dldir || mkdir -p \$dldir~ 12681 $install_prog $dir/$dlname \$dldir/$dlname' 12682 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12683 dlpath=$dir/\$dldll~ 12684 $RM \$dlpath' 12685 shlibpath_overrides_runpath=yes 12686 dynamic_linker='Win32 link.exe' 12687 ;; 12688 12689 *) 12690 # Assume MSVC wrapper 12691 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 12692 dynamic_linker='Win32 ld.exe' 12693 ;; 12694 esac 12695 # FIXME: first we should search . and the directory the executable is in 12696 shlibpath_var=PATH 12697 ;; 12698 12699darwin* | rhapsody*) 12700 dynamic_linker="$host_os dyld" 12701 version_type=darwin 12702 need_lib_prefix=no 12703 need_version=no 12704 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 12705 soname_spec='$libname$release$major$shared_ext' 12706 shlibpath_overrides_runpath=yes 12707 shlibpath_var=DYLD_LIBRARY_PATH 12708 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12709 12710 sys_lib_search_path_spec="$sys_lib_search_path_spec /Users/mhorn/Projekte/foreign/homebrew/lib" 12711 sys_lib_dlsearch_path_spec='/Users/mhorn/Projekte/foreign/homebrew/lib /lib /usr/lib' 12712 ;; 12713 12714dgux*) 12715 version_type=linux # correct to gnu/linux during the next big refactor 12716 need_lib_prefix=no 12717 need_version=no 12718 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12719 soname_spec='$libname$release$shared_ext$major' 12720 shlibpath_var=LD_LIBRARY_PATH 12721 ;; 12722 12723freebsd* | dragonfly*) 12724 # DragonFly does not have aout. When/if they implement a new 12725 # versioning mechanism, adjust this. 12726 if test -x /usr/bin/objformat; then 12727 objformat=`/usr/bin/objformat` 12728 else 12729 case $host_os in 12730 freebsd[23].*) objformat=aout ;; 12731 *) objformat=elf ;; 12732 esac 12733 fi 12734 version_type=freebsd-$objformat 12735 case $version_type in 12736 freebsd-elf*) 12737 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12738 soname_spec='$libname$release$shared_ext$major' 12739 need_version=no 12740 need_lib_prefix=no 12741 ;; 12742 freebsd-*) 12743 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12744 need_version=yes 12745 ;; 12746 esac 12747 shlibpath_var=LD_LIBRARY_PATH 12748 case $host_os in 12749 freebsd2.*) 12750 shlibpath_overrides_runpath=yes 12751 ;; 12752 freebsd3.[01]* | freebsdelf3.[01]*) 12753 shlibpath_overrides_runpath=yes 12754 hardcode_into_libs=yes 12755 ;; 12756 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12757 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12758 shlibpath_overrides_runpath=no 12759 hardcode_into_libs=yes 12760 ;; 12761 *) # from 4.6 on, and DragonFly 12762 shlibpath_overrides_runpath=yes 12763 hardcode_into_libs=yes 12764 ;; 12765 esac 12766 ;; 12767 12768haiku*) 12769 version_type=linux # correct to gnu/linux during the next big refactor 12770 need_lib_prefix=no 12771 need_version=no 12772 dynamic_linker="$host_os runtime_loader" 12773 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12774 soname_spec='$libname$release$shared_ext$major' 12775 shlibpath_var=LIBRARY_PATH 12776 shlibpath_overrides_runpath=no 12777 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12778 hardcode_into_libs=yes 12779 ;; 12780 12781hpux9* | hpux10* | hpux11*) 12782 # Give a soname corresponding to the major version so that dld.sl refuses to 12783 # link against other versions. 12784 version_type=sunos 12785 need_lib_prefix=no 12786 need_version=no 12787 case $host_cpu in 12788 ia64*) 12789 shrext_cmds='.so' 12790 hardcode_into_libs=yes 12791 dynamic_linker="$host_os dld.so" 12792 shlibpath_var=LD_LIBRARY_PATH 12793 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12794 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12795 soname_spec='$libname$release$shared_ext$major' 12796 if test 32 = "$HPUX_IA64_MODE"; then 12797 sys_lib_search_path_spec="/usr/lib/hpux32 /Users/mhorn/Projekte/foreign/homebrew/lib/hpux32 /Users/mhorn/Projekte/foreign/homebrew/lib" 12798 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12799 else 12800 sys_lib_search_path_spec="/usr/lib/hpux64 /Users/mhorn/Projekte/foreign/homebrew/lib/hpux64" 12801 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12802 fi 12803 ;; 12804 hppa*64*) 12805 shrext_cmds='.sl' 12806 hardcode_into_libs=yes 12807 dynamic_linker="$host_os dld.sl" 12808 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12809 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12810 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12811 soname_spec='$libname$release$shared_ext$major' 12812 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12813 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12814 ;; 12815 *) 12816 shrext_cmds='.sl' 12817 dynamic_linker="$host_os dld.sl" 12818 shlibpath_var=SHLIB_PATH 12819 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12820 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12821 soname_spec='$libname$release$shared_ext$major' 12822 ;; 12823 esac 12824 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12825 postinstall_cmds='chmod 555 $lib' 12826 # or fails outright, so override atomically: 12827 install_override_mode=555 12828 ;; 12829 12830interix[3-9]*) 12831 version_type=linux # correct to gnu/linux during the next big refactor 12832 need_lib_prefix=no 12833 need_version=no 12834 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12835 soname_spec='$libname$release$shared_ext$major' 12836 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12837 shlibpath_var=LD_LIBRARY_PATH 12838 shlibpath_overrides_runpath=no 12839 hardcode_into_libs=yes 12840 ;; 12841 12842irix5* | irix6* | nonstopux*) 12843 case $host_os in 12844 nonstopux*) version_type=nonstopux ;; 12845 *) 12846 if test yes = "$lt_cv_prog_gnu_ld"; then 12847 version_type=linux # correct to gnu/linux during the next big refactor 12848 else 12849 version_type=irix 12850 fi ;; 12851 esac 12852 need_lib_prefix=no 12853 need_version=no 12854 soname_spec='$libname$release$shared_ext$major' 12855 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12856 case $host_os in 12857 irix5* | nonstopux*) 12858 libsuff= shlibsuff= 12859 ;; 12860 *) 12861 case $LD in # libtool.m4 will add one of these switches to LD 12862 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12863 libsuff= shlibsuff= libmagic=32-bit;; 12864 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12865 libsuff=32 shlibsuff=N32 libmagic=N32;; 12866 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12867 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12868 *) libsuff= shlibsuff= libmagic=never-match;; 12869 esac 12870 ;; 12871 esac 12872 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12873 shlibpath_overrides_runpath=no 12874 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /Users/mhorn/Projekte/foreign/homebrew/lib$libsuff" 12875 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12876 hardcode_into_libs=yes 12877 ;; 12878 12879# No shared lib support for Linux oldld, aout, or coff. 12880linux*oldld* | linux*aout* | linux*coff*) 12881 dynamic_linker=no 12882 ;; 12883 12884linux*android*) 12885 version_type=none # Android doesn't support versioned libraries. 12886 need_lib_prefix=no 12887 need_version=no 12888 library_names_spec='$libname$release$shared_ext' 12889 soname_spec='$libname$release$shared_ext' 12890 finish_cmds= 12891 shlibpath_var=LD_LIBRARY_PATH 12892 shlibpath_overrides_runpath=yes 12893 12894 # This implies no fast_install, which is unacceptable. 12895 # Some rework will be needed to allow for fast_install 12896 # before this can be enabled. 12897 hardcode_into_libs=yes 12898 12899 dynamic_linker='Android linker' 12900 # Don't embed -rpath directories since the linker doesn't support them. 12901 hardcode_libdir_flag_spec='-L$libdir' 12902 ;; 12903 12904# This must be glibc/ELF. 12905linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12906 version_type=linux # correct to gnu/linux during the next big refactor 12907 need_lib_prefix=no 12908 need_version=no 12909 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12910 soname_spec='$libname$release$shared_ext$major' 12911 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12912 shlibpath_var=LD_LIBRARY_PATH 12913 shlibpath_overrides_runpath=no 12914 12915 # Some binutils ld are patched to set DT_RUNPATH 12916 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 12917 $as_echo_n "(cached) " >&6 12918else 12919 lt_cv_shlibpath_overrides_runpath=no 12920 save_LDFLAGS=$LDFLAGS 12921 save_libdir=$libdir 12922 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12923 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12925/* end confdefs.h. */ 12926 12927int 12928main () 12929{ 12930 12931 ; 12932 return 0; 12933} 12934_ACEOF 12935if ac_fn_c_try_link "$LINENO"; then : 12936 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12937 lt_cv_shlibpath_overrides_runpath=yes 12938fi 12939fi 12940rm -f core conftest.err conftest.$ac_objext \ 12941 conftest$ac_exeext conftest.$ac_ext 12942 LDFLAGS=$save_LDFLAGS 12943 libdir=$save_libdir 12944 12945fi 12946 12947 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12948 12949 # This implies no fast_install, which is unacceptable. 12950 # Some rework will be needed to allow for fast_install 12951 # before this can be enabled. 12952 hardcode_into_libs=yes 12953 12954 # Ideally, we could use ldconfig to report *all* directores which are 12955 # searched for libraries, however this is still not possible. Aside from not 12956 # being certain /sbin/ldconfig is available, command 12957 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12958 # even though it is searched at run-time. Try to do the best guess by 12959 # appending ld.so.conf contents (and includes) to the search path. 12960 if test -f /etc/ld.so.conf; then 12961 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' ' '` 12962 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12963 fi 12964 12965 # We used to test for /lib/ld.so.1 and disable shared libraries on 12966 # powerpc, because MkLinux only supported shared libraries with the 12967 # GNU dynamic linker. Since this was broken with cross compilers, 12968 # most powerpc-linux boxes support dynamic linking these days and 12969 # people can always --disable-shared, the test was removed, and we 12970 # assume the GNU/Linux dynamic linker is in use. 12971 dynamic_linker='GNU/Linux ld.so' 12972 ;; 12973 12974netbsd*) 12975 version_type=sunos 12976 need_lib_prefix=no 12977 need_version=no 12978 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12979 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12980 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12981 dynamic_linker='NetBSD (a.out) ld.so' 12982 else 12983 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12984 soname_spec='$libname$release$shared_ext$major' 12985 dynamic_linker='NetBSD ld.elf_so' 12986 fi 12987 shlibpath_var=LD_LIBRARY_PATH 12988 shlibpath_overrides_runpath=yes 12989 hardcode_into_libs=yes 12990 ;; 12991 12992newsos6) 12993 version_type=linux # correct to gnu/linux during the next big refactor 12994 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12995 shlibpath_var=LD_LIBRARY_PATH 12996 shlibpath_overrides_runpath=yes 12997 ;; 12998 12999*nto* | *qnx*) 13000 version_type=qnx 13001 need_lib_prefix=no 13002 need_version=no 13003 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13004 soname_spec='$libname$release$shared_ext$major' 13005 shlibpath_var=LD_LIBRARY_PATH 13006 shlibpath_overrides_runpath=no 13007 hardcode_into_libs=yes 13008 dynamic_linker='ldqnx.so' 13009 ;; 13010 13011openbsd* | bitrig*) 13012 version_type=sunos 13013 sys_lib_dlsearch_path_spec=/usr/lib 13014 need_lib_prefix=no 13015 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 13016 need_version=no 13017 else 13018 need_version=yes 13019 fi 13020 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13021 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13022 shlibpath_var=LD_LIBRARY_PATH 13023 shlibpath_overrides_runpath=yes 13024 ;; 13025 13026os2*) 13027 libname_spec='$name' 13028 version_type=windows 13029 shrext_cmds=.dll 13030 need_version=no 13031 need_lib_prefix=no 13032 # OS/2 can only load a DLL with a base name of 8 characters or less. 13033 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 13034 v=$($ECHO $release$versuffix | tr -d .-); 13035 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 13036 $ECHO $n$v`$shared_ext' 13037 library_names_spec='${libname}_dll.$libext' 13038 dynamic_linker='OS/2 ld.exe' 13039 shlibpath_var=BEGINLIBPATH 13040 sys_lib_search_path_spec="/lib /usr/lib /Users/mhorn/Projekte/foreign/homebrew/lib" 13041 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13042 postinstall_cmds='base_file=`basename \$file`~ 13043 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 13044 dldir=$destdir/`dirname \$dlpath`~ 13045 test -d \$dldir || mkdir -p \$dldir~ 13046 $install_prog $dir/$dlname \$dldir/$dlname~ 13047 chmod a+x \$dldir/$dlname~ 13048 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13049 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13050 fi' 13051 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 13052 dlpath=$dir/\$dldll~ 13053 $RM \$dlpath' 13054 ;; 13055 13056osf3* | osf4* | osf5*) 13057 version_type=osf 13058 need_lib_prefix=no 13059 need_version=no 13060 soname_spec='$libname$release$shared_ext$major' 13061 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13062 shlibpath_var=LD_LIBRARY_PATH 13063 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /Users/mhorn/Projekte/foreign/homebrew/lib /var/shlib" 13064 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13065 ;; 13066 13067rdos*) 13068 dynamic_linker=no 13069 ;; 13070 13071solaris*) 13072 version_type=linux # correct to gnu/linux during the next big refactor 13073 need_lib_prefix=no 13074 need_version=no 13075 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13076 soname_spec='$libname$release$shared_ext$major' 13077 shlibpath_var=LD_LIBRARY_PATH 13078 shlibpath_overrides_runpath=yes 13079 hardcode_into_libs=yes 13080 # ldd complains unless libraries are executable 13081 postinstall_cmds='chmod +x $lib' 13082 ;; 13083 13084sunos4*) 13085 version_type=sunos 13086 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13087 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13088 shlibpath_var=LD_LIBRARY_PATH 13089 shlibpath_overrides_runpath=yes 13090 if test yes = "$with_gnu_ld"; then 13091 need_lib_prefix=no 13092 fi 13093 need_version=yes 13094 ;; 13095 13096sysv4 | sysv4.3*) 13097 version_type=linux # correct to gnu/linux during the next big refactor 13098 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13099 soname_spec='$libname$release$shared_ext$major' 13100 shlibpath_var=LD_LIBRARY_PATH 13101 case $host_vendor in 13102 sni) 13103 shlibpath_overrides_runpath=no 13104 need_lib_prefix=no 13105 runpath_var=LD_RUN_PATH 13106 ;; 13107 siemens) 13108 need_lib_prefix=no 13109 ;; 13110 motorola) 13111 need_lib_prefix=no 13112 need_version=no 13113 shlibpath_overrides_runpath=no 13114 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13115 ;; 13116 esac 13117 ;; 13118 13119sysv4*MP*) 13120 if test -d /usr/nec; then 13121 version_type=linux # correct to gnu/linux during the next big refactor 13122 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 13123 soname_spec='$libname$shared_ext.$major' 13124 shlibpath_var=LD_LIBRARY_PATH 13125 fi 13126 ;; 13127 13128sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13129 version_type=sco 13130 need_lib_prefix=no 13131 need_version=no 13132 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 13133 soname_spec='$libname$release$shared_ext$major' 13134 shlibpath_var=LD_LIBRARY_PATH 13135 shlibpath_overrides_runpath=yes 13136 hardcode_into_libs=yes 13137 if test yes = "$with_gnu_ld"; then 13138 sys_lib_search_path_spec='/Users/mhorn/Projekte/foreign/homebrew/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13139 else 13140 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13141 case $host_os in 13142 sco3.2v5*) 13143 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13144 ;; 13145 esac 13146 fi 13147 sys_lib_dlsearch_path_spec='/usr/lib' 13148 ;; 13149 13150tpf*) 13151 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 13152 version_type=linux # correct to gnu/linux during the next big refactor 13153 need_lib_prefix=no 13154 need_version=no 13155 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13156 shlibpath_var=LD_LIBRARY_PATH 13157 shlibpath_overrides_runpath=no 13158 hardcode_into_libs=yes 13159 ;; 13160 13161uts4*) 13162 version_type=linux # correct to gnu/linux during the next big refactor 13163 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13164 soname_spec='$libname$release$shared_ext$major' 13165 shlibpath_var=LD_LIBRARY_PATH 13166 ;; 13167 13168*) 13169 dynamic_linker=no 13170 ;; 13171esac 13172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 13173$as_echo "$dynamic_linker" >&6; } 13174test no = "$dynamic_linker" && can_build_shared=no 13175 13176variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13177if test yes = "$GCC"; then 13178 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13179fi 13180 13181if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 13182 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 13183fi 13184 13185if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 13186 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 13187fi 13188 13189# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 13190configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 13191 13192# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 13193func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 13194 13195# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 13196configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245 13246 13247 13248 13249 13250 13251 13252 13253 13254 13255 13256 13257 13258 13259 13260 13261 13262 13263 13264 13265 13266 13267 13268 13269 13270 13271 13272 13273 13274 13275 13276 13277 13278 13279 13280 13281 13282 13283 13284 13285 13286 13287 13288 13289 13290 13291 13292 13293 13294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13295$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13296hardcode_action= 13297if test -n "$hardcode_libdir_flag_spec" || 13298 test -n "$runpath_var" || 13299 test yes = "$hardcode_automatic"; then 13300 13301 # We can hardcode non-existent directories. 13302 if test no != "$hardcode_direct" && 13303 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13304 # have to relink, otherwise we might link with an installed library 13305 # when we should be linking with a yet-to-be-installed one 13306 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 13307 test no != "$hardcode_minus_L"; then 13308 # Linking always hardcodes the temporary library directory. 13309 hardcode_action=relink 13310 else 13311 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13312 hardcode_action=immediate 13313 fi 13314else 13315 # We cannot hardcode anything, or else we can only hardcode existing 13316 # directories. 13317 hardcode_action=unsupported 13318fi 13319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13320$as_echo "$hardcode_action" >&6; } 13321 13322if test relink = "$hardcode_action" || 13323 test yes = "$inherit_rpath"; then 13324 # Fast installation is not supported 13325 enable_fast_install=no 13326elif test yes = "$shlibpath_overrides_runpath" || 13327 test no = "$enable_shared"; then 13328 # Fast installation is not necessary 13329 enable_fast_install=needless 13330fi 13331 13332 13333 13334 13335 13336 13337 if test yes != "$enable_dlopen"; then 13338 enable_dlopen=unknown 13339 enable_dlopen_self=unknown 13340 enable_dlopen_self_static=unknown 13341else 13342 lt_cv_dlopen=no 13343 lt_cv_dlopen_libs= 13344 13345 case $host_os in 13346 beos*) 13347 lt_cv_dlopen=load_add_on 13348 lt_cv_dlopen_libs= 13349 lt_cv_dlopen_self=yes 13350 ;; 13351 13352 mingw* | pw32* | cegcc*) 13353 lt_cv_dlopen=LoadLibrary 13354 lt_cv_dlopen_libs= 13355 ;; 13356 13357 cygwin*) 13358 lt_cv_dlopen=dlopen 13359 lt_cv_dlopen_libs= 13360 ;; 13361 13362 darwin*) 13363 # if libdl is installed we need to link against it 13364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13365$as_echo_n "checking for dlopen in -ldl... " >&6; } 13366if ${ac_cv_lib_dl_dlopen+:} false; then : 13367 $as_echo_n "(cached) " >&6 13368else 13369 ac_check_lib_save_LIBS=$LIBS 13370LIBS="-ldl $LIBS" 13371cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13372/* end confdefs.h. */ 13373 13374/* Override any GCC internal prototype to avoid an error. 13375 Use char because int might match the return type of a GCC 13376 builtin and then its argument prototype would still apply. */ 13377#ifdef __cplusplus 13378extern "C" 13379#endif 13380char dlopen (); 13381int 13382main () 13383{ 13384return dlopen (); 13385 ; 13386 return 0; 13387} 13388_ACEOF 13389if ac_fn_c_try_link "$LINENO"; then : 13390 ac_cv_lib_dl_dlopen=yes 13391else 13392 ac_cv_lib_dl_dlopen=no 13393fi 13394rm -f core conftest.err conftest.$ac_objext \ 13395 conftest$ac_exeext conftest.$ac_ext 13396LIBS=$ac_check_lib_save_LIBS 13397fi 13398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13399$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13400if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13401 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13402else 13403 13404 lt_cv_dlopen=dyld 13405 lt_cv_dlopen_libs= 13406 lt_cv_dlopen_self=yes 13407 13408fi 13409 13410 ;; 13411 13412 tpf*) 13413 # Don't try to run any link tests for TPF. We know it's impossible 13414 # because TPF is a cross-compiler, and we know how we open DSOs. 13415 lt_cv_dlopen=dlopen 13416 lt_cv_dlopen_libs= 13417 lt_cv_dlopen_self=no 13418 ;; 13419 13420 *) 13421 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13422if test "x$ac_cv_func_shl_load" = xyes; then : 13423 lt_cv_dlopen=shl_load 13424else 13425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13426$as_echo_n "checking for shl_load in -ldld... " >&6; } 13427if ${ac_cv_lib_dld_shl_load+:} false; then : 13428 $as_echo_n "(cached) " >&6 13429else 13430 ac_check_lib_save_LIBS=$LIBS 13431LIBS="-ldld $LIBS" 13432cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13433/* end confdefs.h. */ 13434 13435/* Override any GCC internal prototype to avoid an error. 13436 Use char because int might match the return type of a GCC 13437 builtin and then its argument prototype would still apply. */ 13438#ifdef __cplusplus 13439extern "C" 13440#endif 13441char shl_load (); 13442int 13443main () 13444{ 13445return shl_load (); 13446 ; 13447 return 0; 13448} 13449_ACEOF 13450if ac_fn_c_try_link "$LINENO"; then : 13451 ac_cv_lib_dld_shl_load=yes 13452else 13453 ac_cv_lib_dld_shl_load=no 13454fi 13455rm -f core conftest.err conftest.$ac_objext \ 13456 conftest$ac_exeext conftest.$ac_ext 13457LIBS=$ac_check_lib_save_LIBS 13458fi 13459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13460$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 13461if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 13462 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 13463else 13464 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13465if test "x$ac_cv_func_dlopen" = xyes; then : 13466 lt_cv_dlopen=dlopen 13467else 13468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13469$as_echo_n "checking for dlopen in -ldl... " >&6; } 13470if ${ac_cv_lib_dl_dlopen+:} false; then : 13471 $as_echo_n "(cached) " >&6 13472else 13473 ac_check_lib_save_LIBS=$LIBS 13474LIBS="-ldl $LIBS" 13475cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13476/* end confdefs.h. */ 13477 13478/* Override any GCC internal prototype to avoid an error. 13479 Use char because int might match the return type of a GCC 13480 builtin and then its argument prototype would still apply. */ 13481#ifdef __cplusplus 13482extern "C" 13483#endif 13484char dlopen (); 13485int 13486main () 13487{ 13488return dlopen (); 13489 ; 13490 return 0; 13491} 13492_ACEOF 13493if ac_fn_c_try_link "$LINENO"; then : 13494 ac_cv_lib_dl_dlopen=yes 13495else 13496 ac_cv_lib_dl_dlopen=no 13497fi 13498rm -f core conftest.err conftest.$ac_objext \ 13499 conftest$ac_exeext conftest.$ac_ext 13500LIBS=$ac_check_lib_save_LIBS 13501fi 13502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13503$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13504if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13505 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13506else 13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13508$as_echo_n "checking for dlopen in -lsvld... " >&6; } 13509if ${ac_cv_lib_svld_dlopen+:} false; then : 13510 $as_echo_n "(cached) " >&6 13511else 13512 ac_check_lib_save_LIBS=$LIBS 13513LIBS="-lsvld $LIBS" 13514cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13515/* end confdefs.h. */ 13516 13517/* Override any GCC internal prototype to avoid an error. 13518 Use char because int might match the return type of a GCC 13519 builtin and then its argument prototype would still apply. */ 13520#ifdef __cplusplus 13521extern "C" 13522#endif 13523char dlopen (); 13524int 13525main () 13526{ 13527return dlopen (); 13528 ; 13529 return 0; 13530} 13531_ACEOF 13532if ac_fn_c_try_link "$LINENO"; then : 13533 ac_cv_lib_svld_dlopen=yes 13534else 13535 ac_cv_lib_svld_dlopen=no 13536fi 13537rm -f core conftest.err conftest.$ac_objext \ 13538 conftest$ac_exeext conftest.$ac_ext 13539LIBS=$ac_check_lib_save_LIBS 13540fi 13541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13542$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 13543if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 13544 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 13545else 13546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13547$as_echo_n "checking for dld_link in -ldld... " >&6; } 13548if ${ac_cv_lib_dld_dld_link+:} false; then : 13549 $as_echo_n "(cached) " >&6 13550else 13551 ac_check_lib_save_LIBS=$LIBS 13552LIBS="-ldld $LIBS" 13553cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13554/* end confdefs.h. */ 13555 13556/* Override any GCC internal prototype to avoid an error. 13557 Use char because int might match the return type of a GCC 13558 builtin and then its argument prototype would still apply. */ 13559#ifdef __cplusplus 13560extern "C" 13561#endif 13562char dld_link (); 13563int 13564main () 13565{ 13566return dld_link (); 13567 ; 13568 return 0; 13569} 13570_ACEOF 13571if ac_fn_c_try_link "$LINENO"; then : 13572 ac_cv_lib_dld_dld_link=yes 13573else 13574 ac_cv_lib_dld_dld_link=no 13575fi 13576rm -f core conftest.err conftest.$ac_objext \ 13577 conftest$ac_exeext conftest.$ac_ext 13578LIBS=$ac_check_lib_save_LIBS 13579fi 13580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13581$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 13582if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 13583 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13584fi 13585 13586 13587fi 13588 13589 13590fi 13591 13592 13593fi 13594 13595 13596fi 13597 13598 13599fi 13600 13601 ;; 13602 esac 13603 13604 if test no = "$lt_cv_dlopen"; then 13605 enable_dlopen=no 13606 else 13607 enable_dlopen=yes 13608 fi 13609 13610 case $lt_cv_dlopen in 13611 dlopen) 13612 save_CPPFLAGS=$CPPFLAGS 13613 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13614 13615 save_LDFLAGS=$LDFLAGS 13616 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13617 13618 save_LIBS=$LIBS 13619 LIBS="$lt_cv_dlopen_libs $LIBS" 13620 13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13622$as_echo_n "checking whether a program can dlopen itself... " >&6; } 13623if ${lt_cv_dlopen_self+:} false; then : 13624 $as_echo_n "(cached) " >&6 13625else 13626 if test yes = "$cross_compiling"; then : 13627 lt_cv_dlopen_self=cross 13628else 13629 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13630 lt_status=$lt_dlunknown 13631 cat > conftest.$ac_ext <<_LT_EOF 13632#line $LINENO "configure" 13633#include "confdefs.h" 13634 13635#if HAVE_DLFCN_H 13636#include <dlfcn.h> 13637#endif 13638 13639#include <stdio.h> 13640 13641#ifdef RTLD_GLOBAL 13642# define LT_DLGLOBAL RTLD_GLOBAL 13643#else 13644# ifdef DL_GLOBAL 13645# define LT_DLGLOBAL DL_GLOBAL 13646# else 13647# define LT_DLGLOBAL 0 13648# endif 13649#endif 13650 13651/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13652 find out it does not work in some platform. */ 13653#ifndef LT_DLLAZY_OR_NOW 13654# ifdef RTLD_LAZY 13655# define LT_DLLAZY_OR_NOW RTLD_LAZY 13656# else 13657# ifdef DL_LAZY 13658# define LT_DLLAZY_OR_NOW DL_LAZY 13659# else 13660# ifdef RTLD_NOW 13661# define LT_DLLAZY_OR_NOW RTLD_NOW 13662# else 13663# ifdef DL_NOW 13664# define LT_DLLAZY_OR_NOW DL_NOW 13665# else 13666# define LT_DLLAZY_OR_NOW 0 13667# endif 13668# endif 13669# endif 13670# endif 13671#endif 13672 13673/* When -fvisibility=hidden is used, assume the code has been annotated 13674 correspondingly for the symbols needed. */ 13675#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13676int fnord () __attribute__((visibility("default"))); 13677#endif 13678 13679int fnord () { return 42; } 13680int main () 13681{ 13682 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13683 int status = $lt_dlunknown; 13684 13685 if (self) 13686 { 13687 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13688 else 13689 { 13690 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13691 else puts (dlerror ()); 13692 } 13693 /* dlclose (self); */ 13694 } 13695 else 13696 puts (dlerror ()); 13697 13698 return status; 13699} 13700_LT_EOF 13701 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13702 (eval $ac_link) 2>&5 13703 ac_status=$? 13704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13705 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13706 (./conftest; exit; ) >&5 2>/dev/null 13707 lt_status=$? 13708 case x$lt_status in 13709 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13710 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13711 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13712 esac 13713 else : 13714 # compilation failed 13715 lt_cv_dlopen_self=no 13716 fi 13717fi 13718rm -fr conftest* 13719 13720 13721fi 13722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13723$as_echo "$lt_cv_dlopen_self" >&6; } 13724 13725 if test yes = "$lt_cv_dlopen_self"; then 13726 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13728$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 13729if ${lt_cv_dlopen_self_static+:} false; then : 13730 $as_echo_n "(cached) " >&6 13731else 13732 if test yes = "$cross_compiling"; then : 13733 lt_cv_dlopen_self_static=cross 13734else 13735 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13736 lt_status=$lt_dlunknown 13737 cat > conftest.$ac_ext <<_LT_EOF 13738#line $LINENO "configure" 13739#include "confdefs.h" 13740 13741#if HAVE_DLFCN_H 13742#include <dlfcn.h> 13743#endif 13744 13745#include <stdio.h> 13746 13747#ifdef RTLD_GLOBAL 13748# define LT_DLGLOBAL RTLD_GLOBAL 13749#else 13750# ifdef DL_GLOBAL 13751# define LT_DLGLOBAL DL_GLOBAL 13752# else 13753# define LT_DLGLOBAL 0 13754# endif 13755#endif 13756 13757/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13758 find out it does not work in some platform. */ 13759#ifndef LT_DLLAZY_OR_NOW 13760# ifdef RTLD_LAZY 13761# define LT_DLLAZY_OR_NOW RTLD_LAZY 13762# else 13763# ifdef DL_LAZY 13764# define LT_DLLAZY_OR_NOW DL_LAZY 13765# else 13766# ifdef RTLD_NOW 13767# define LT_DLLAZY_OR_NOW RTLD_NOW 13768# else 13769# ifdef DL_NOW 13770# define LT_DLLAZY_OR_NOW DL_NOW 13771# else 13772# define LT_DLLAZY_OR_NOW 0 13773# endif 13774# endif 13775# endif 13776# endif 13777#endif 13778 13779/* When -fvisibility=hidden is used, assume the code has been annotated 13780 correspondingly for the symbols needed. */ 13781#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13782int fnord () __attribute__((visibility("default"))); 13783#endif 13784 13785int fnord () { return 42; } 13786int main () 13787{ 13788 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13789 int status = $lt_dlunknown; 13790 13791 if (self) 13792 { 13793 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13794 else 13795 { 13796 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13797 else puts (dlerror ()); 13798 } 13799 /* dlclose (self); */ 13800 } 13801 else 13802 puts (dlerror ()); 13803 13804 return status; 13805} 13806_LT_EOF 13807 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13808 (eval $ac_link) 2>&5 13809 ac_status=$? 13810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13811 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13812 (./conftest; exit; ) >&5 2>/dev/null 13813 lt_status=$? 13814 case x$lt_status in 13815 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13816 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13817 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13818 esac 13819 else : 13820 # compilation failed 13821 lt_cv_dlopen_self_static=no 13822 fi 13823fi 13824rm -fr conftest* 13825 13826 13827fi 13828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13829$as_echo "$lt_cv_dlopen_self_static" >&6; } 13830 fi 13831 13832 CPPFLAGS=$save_CPPFLAGS 13833 LDFLAGS=$save_LDFLAGS 13834 LIBS=$save_LIBS 13835 ;; 13836 esac 13837 13838 case $lt_cv_dlopen_self in 13839 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13840 *) enable_dlopen_self=unknown ;; 13841 esac 13842 13843 case $lt_cv_dlopen_self_static in 13844 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13845 *) enable_dlopen_self_static=unknown ;; 13846 esac 13847fi 13848 13849 13850 13851 13852 13853 13854 13855 13856 13857 13858 13859 13860 13861 13862 13863 13864 13865striplib= 13866old_striplib= 13867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13868$as_echo_n "checking whether stripping libraries is possible... " >&6; } 13869if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13870 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13871 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13873$as_echo "yes" >&6; } 13874else 13875# FIXME - insert some real tests, host_os isn't really good enough 13876 case $host_os in 13877 darwin*) 13878 if test -n "$STRIP"; then 13879 striplib="$STRIP -x" 13880 old_striplib="$STRIP -S" 13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13882$as_echo "yes" >&6; } 13883 else 13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13885$as_echo "no" >&6; } 13886 fi 13887 ;; 13888 *) 13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13890$as_echo "no" >&6; } 13891 ;; 13892 esac 13893fi 13894 13895 13896 13897 13898 13899 13900 13901 13902 13903 13904 13905 13906 # Report what library types will actually be built 13907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13908$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13910$as_echo "$can_build_shared" >&6; } 13911 13912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13913$as_echo_n "checking whether to build shared libraries... " >&6; } 13914 test no = "$can_build_shared" && enable_shared=no 13915 13916 # On AIX, shared libraries and static libraries use the same namespace, and 13917 # are all built from PIC. 13918 case $host_os in 13919 aix3*) 13920 test yes = "$enable_shared" && enable_static=no 13921 if test -n "$RANLIB"; then 13922 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13923 postinstall_cmds='$RANLIB $lib' 13924 fi 13925 ;; 13926 13927 aix[4-9]*) 13928 if test ia64 != "$host_cpu"; then 13929 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13930 yes,aix,yes) ;; # shared object as lib.so file only 13931 yes,svr4,*) ;; # shared object as lib.so archive member only 13932 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13933 esac 13934 fi 13935 ;; 13936 esac 13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13938$as_echo "$enable_shared" >&6; } 13939 13940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13941$as_echo_n "checking whether to build static libraries... " >&6; } 13942 # Make sure either enable_shared or enable_static is yes. 13943 test yes = "$enable_shared" || enable_static=yes 13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13945$as_echo "$enable_static" >&6; } 13946 13947 13948 13949 13950fi 13951ac_ext=cpp 13952ac_cpp='$CXXCPP $CPPFLAGS' 13953ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13954ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13955ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13956 13957CC=$lt_save_CC 13958 13959 if test -n "$CXX" && ( test no != "$CXX" && 13960 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 13961 (test g++ != "$CXX"))); then 13962 ac_ext=cpp 13963ac_cpp='$CXXCPP $CPPFLAGS' 13964ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13965ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13966ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 13968$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 13969if test -z "$CXXCPP"; then 13970 if ${ac_cv_prog_CXXCPP+:} false; then : 13971 $as_echo_n "(cached) " >&6 13972else 13973 # Double quotes because CXXCPP needs to be expanded 13974 for CXXCPP in "$CXX -E" "/lib/cpp" 13975 do 13976 ac_preproc_ok=false 13977for ac_cxx_preproc_warn_flag in '' yes 13978do 13979 # Use a header file that comes with gcc, so configuring glibc 13980 # with a fresh cross-compiler works. 13981 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13982 # <limits.h> exists even on freestanding compilers. 13983 # On the NeXT, cc -E runs the code through the compiler's parser, 13984 # not just through cpp. "Syntax error" is here to catch this case. 13985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13986/* end confdefs.h. */ 13987#ifdef __STDC__ 13988# include <limits.h> 13989#else 13990# include <assert.h> 13991#endif 13992 Syntax error 13993_ACEOF 13994if ac_fn_cxx_try_cpp "$LINENO"; then : 13995 13996else 13997 # Broken: fails on valid input. 13998continue 13999fi 14000rm -f conftest.err conftest.i conftest.$ac_ext 14001 14002 # OK, works on sane cases. Now check whether nonexistent headers 14003 # can be detected and how. 14004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14005/* end confdefs.h. */ 14006#include <ac_nonexistent.h> 14007_ACEOF 14008if ac_fn_cxx_try_cpp "$LINENO"; then : 14009 # Broken: success on invalid input. 14010continue 14011else 14012 # Passes both tests. 14013ac_preproc_ok=: 14014break 14015fi 14016rm -f conftest.err conftest.i conftest.$ac_ext 14017 14018done 14019# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 14020rm -f conftest.i conftest.err conftest.$ac_ext 14021if $ac_preproc_ok; then : 14022 break 14023fi 14024 14025 done 14026 ac_cv_prog_CXXCPP=$CXXCPP 14027 14028fi 14029 CXXCPP=$ac_cv_prog_CXXCPP 14030else 14031 ac_cv_prog_CXXCPP=$CXXCPP 14032fi 14033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 14034$as_echo "$CXXCPP" >&6; } 14035ac_preproc_ok=false 14036for ac_cxx_preproc_warn_flag in '' yes 14037do 14038 # Use a header file that comes with gcc, so configuring glibc 14039 # with a fresh cross-compiler works. 14040 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14041 # <limits.h> exists even on freestanding compilers. 14042 # On the NeXT, cc -E runs the code through the compiler's parser, 14043 # not just through cpp. "Syntax error" is here to catch this case. 14044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14045/* end confdefs.h. */ 14046#ifdef __STDC__ 14047# include <limits.h> 14048#else 14049# include <assert.h> 14050#endif 14051 Syntax error 14052_ACEOF 14053if ac_fn_cxx_try_cpp "$LINENO"; then : 14054 14055else 14056 # Broken: fails on valid input. 14057continue 14058fi 14059rm -f conftest.err conftest.i conftest.$ac_ext 14060 14061 # OK, works on sane cases. Now check whether nonexistent headers 14062 # can be detected and how. 14063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14064/* end confdefs.h. */ 14065#include <ac_nonexistent.h> 14066_ACEOF 14067if ac_fn_cxx_try_cpp "$LINENO"; then : 14068 # Broken: success on invalid input. 14069continue 14070else 14071 # Passes both tests. 14072ac_preproc_ok=: 14073break 14074fi 14075rm -f conftest.err conftest.i conftest.$ac_ext 14076 14077done 14078# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 14079rm -f conftest.i conftest.err conftest.$ac_ext 14080if $ac_preproc_ok; then : 14081 14082else 14083 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14084$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14085as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 14086See \`config.log' for more details" "$LINENO" 5; } 14087fi 14088 14089ac_ext=cpp 14090ac_cpp='$CXXCPP $CPPFLAGS' 14091ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14092ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14093ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14094 14095else 14096 _lt_caught_CXX_error=yes 14097fi 14098 14099ac_ext=cpp 14100ac_cpp='$CXXCPP $CPPFLAGS' 14101ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14102ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14103ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14104 14105archive_cmds_need_lc_CXX=no 14106allow_undefined_flag_CXX= 14107always_export_symbols_CXX=no 14108archive_expsym_cmds_CXX= 14109compiler_needs_object_CXX=no 14110export_dynamic_flag_spec_CXX= 14111hardcode_direct_CXX=no 14112hardcode_direct_absolute_CXX=no 14113hardcode_libdir_flag_spec_CXX= 14114hardcode_libdir_separator_CXX= 14115hardcode_minus_L_CXX=no 14116hardcode_shlibpath_var_CXX=unsupported 14117hardcode_automatic_CXX=no 14118inherit_rpath_CXX=no 14119module_cmds_CXX= 14120module_expsym_cmds_CXX= 14121link_all_deplibs_CXX=unknown 14122old_archive_cmds_CXX=$old_archive_cmds 14123reload_flag_CXX=$reload_flag 14124reload_cmds_CXX=$reload_cmds 14125no_undefined_flag_CXX= 14126whole_archive_flag_spec_CXX= 14127enable_shared_with_static_runtimes_CXX=no 14128 14129# Source file extension for C++ test sources. 14130ac_ext=cpp 14131 14132# Object file extension for compiled C++ test sources. 14133objext=o 14134objext_CXX=$objext 14135 14136# No sense in running all these tests if we already determined that 14137# the CXX compiler isn't working. Some variables (like enable_shared) 14138# are currently assumed to apply to all compilers on this platform, 14139# and will be corrupted by setting them based on a non-working compiler. 14140if test yes != "$_lt_caught_CXX_error"; then 14141 # Code to be used in simple compile tests 14142 lt_simple_compile_test_code="int some_variable = 0;" 14143 14144 # Code to be used in simple link tests 14145 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 14146 14147 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 14148 14149 14150 14151 14152 14153 14154# If no C compiler was specified, use CC. 14155LTCC=${LTCC-"$CC"} 14156 14157# If no C compiler flags were specified, use CFLAGS. 14158LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14159 14160# Allow CC to be a program name with arguments. 14161compiler=$CC 14162 14163 14164 # save warnings/boilerplate of simple test code 14165 ac_outfile=conftest.$ac_objext 14166echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14167eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14168_lt_compiler_boilerplate=`cat conftest.err` 14169$RM conftest* 14170 14171 ac_outfile=conftest.$ac_objext 14172echo "$lt_simple_link_test_code" >conftest.$ac_ext 14173eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14174_lt_linker_boilerplate=`cat conftest.err` 14175$RM -r conftest* 14176 14177 14178 # Allow CC to be a program name with arguments. 14179 lt_save_CC=$CC 14180 lt_save_CFLAGS=$CFLAGS 14181 lt_save_LD=$LD 14182 lt_save_GCC=$GCC 14183 GCC=$GXX 14184 lt_save_with_gnu_ld=$with_gnu_ld 14185 lt_save_path_LD=$lt_cv_path_LD 14186 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 14187 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 14188 else 14189 $as_unset lt_cv_prog_gnu_ld 14190 fi 14191 if test -n "${lt_cv_path_LDCXX+set}"; then 14192 lt_cv_path_LD=$lt_cv_path_LDCXX 14193 else 14194 $as_unset lt_cv_path_LD 14195 fi 14196 test -z "${LDCXX+set}" || LD=$LDCXX 14197 CC=${CXX-"c++"} 14198 CFLAGS=$CXXFLAGS 14199 compiler=$CC 14200 compiler_CXX=$CC 14201 func_cc_basename $compiler 14202cc_basename=$func_cc_basename_result 14203 14204 14205 if test -n "$compiler"; then 14206 # We don't want -fno-exception when compiling C++ code, so set the 14207 # no_builtin_flag separately 14208 if test yes = "$GXX"; then 14209 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 14210 else 14211 lt_prog_compiler_no_builtin_flag_CXX= 14212 fi 14213 14214 if test yes = "$GXX"; then 14215 # Set up default GNU C++ configuration 14216 14217 14218 14219# Check whether --with-gnu-ld was given. 14220if test "${with_gnu_ld+set}" = set; then : 14221 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 14222else 14223 with_gnu_ld=no 14224fi 14225 14226ac_prog=ld 14227if test yes = "$GCC"; then 14228 # Check if gcc -print-prog-name=ld gives a path. 14229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 14230$as_echo_n "checking for ld used by $CC... " >&6; } 14231 case $host in 14232 *-*-mingw*) 14233 # gcc leaves a trailing carriage return, which upsets mingw 14234 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 14235 *) 14236 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 14237 esac 14238 case $ac_prog in 14239 # Accept absolute paths. 14240 [\\/]* | ?:[\\/]*) 14241 re_direlt='/[^/][^/]*/\.\./' 14242 # Canonicalize the pathname of ld 14243 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 14244 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 14245 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 14246 done 14247 test -z "$LD" && LD=$ac_prog 14248 ;; 14249 "") 14250 # If it fails, then pretend we aren't using GCC. 14251 ac_prog=ld 14252 ;; 14253 *) 14254 # If it is relative, then search for the first ld in PATH. 14255 with_gnu_ld=unknown 14256 ;; 14257 esac 14258elif test yes = "$with_gnu_ld"; then 14259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 14260$as_echo_n "checking for GNU ld... " >&6; } 14261else 14262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 14263$as_echo_n "checking for non-GNU ld... " >&6; } 14264fi 14265if ${lt_cv_path_LD+:} false; then : 14266 $as_echo_n "(cached) " >&6 14267else 14268 if test -z "$LD"; then 14269 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14270 for ac_dir in $PATH; do 14271 IFS=$lt_save_ifs 14272 test -z "$ac_dir" && ac_dir=. 14273 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 14274 lt_cv_path_LD=$ac_dir/$ac_prog 14275 # Check to see if the program is GNU ld. I'd rather use --version, 14276 # but apparently some variants of GNU ld only accept -v. 14277 # Break only if it was the GNU/non-GNU ld that we prefer. 14278 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 14279 *GNU* | *'with BFD'*) 14280 test no != "$with_gnu_ld" && break 14281 ;; 14282 *) 14283 test yes != "$with_gnu_ld" && break 14284 ;; 14285 esac 14286 fi 14287 done 14288 IFS=$lt_save_ifs 14289else 14290 lt_cv_path_LD=$LD # Let the user override the test with a path. 14291fi 14292fi 14293 14294LD=$lt_cv_path_LD 14295if test -n "$LD"; then 14296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 14297$as_echo "$LD" >&6; } 14298else 14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14300$as_echo "no" >&6; } 14301fi 14302test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 14303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 14304$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 14305if ${lt_cv_prog_gnu_ld+:} false; then : 14306 $as_echo_n "(cached) " >&6 14307else 14308 # I'd rather use --version here, but apparently some GNU lds only accept -v. 14309case `$LD -v 2>&1 </dev/null` in 14310*GNU* | *'with BFD'*) 14311 lt_cv_prog_gnu_ld=yes 14312 ;; 14313*) 14314 lt_cv_prog_gnu_ld=no 14315 ;; 14316esac 14317fi 14318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 14319$as_echo "$lt_cv_prog_gnu_ld" >&6; } 14320with_gnu_ld=$lt_cv_prog_gnu_ld 14321 14322 14323 14324 14325 14326 14327 14328 # Check if GNU C++ uses GNU ld as the underlying linker, since the 14329 # archiving commands below assume that GNU ld is being used. 14330 if test yes = "$with_gnu_ld"; then 14331 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14332 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' 14333 14334 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14335 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14336 14337 # If archive_cmds runs LD, not CC, wlarc should be empty 14338 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 14339 # investigate it a little bit more. (MM) 14340 wlarc='$wl' 14341 14342 # ancient GNU ld didn't support --whole-archive et. al. 14343 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 14344 $GREP 'no-whole-archive' > /dev/null; then 14345 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14346 else 14347 whole_archive_flag_spec_CXX= 14348 fi 14349 else 14350 with_gnu_ld=no 14351 wlarc= 14352 14353 # A generic and very simple default shared library creation 14354 # command for GNU C++ for the case where it uses the native 14355 # linker, instead of GNU ld. If possible, this setting should 14356 # overridden to take advantage of the native linker features on 14357 # the platform it is being used on. 14358 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14359 fi 14360 14361 # Commands to make compiler produce verbose output that lists 14362 # what "hidden" libraries, object files and flags are used when 14363 # linking a shared library. 14364 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14365 14366 else 14367 GXX=no 14368 with_gnu_ld=no 14369 wlarc= 14370 fi 14371 14372 # PORTME: fill in a description of your system's C++ link characteristics 14373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14374$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14375 ld_shlibs_CXX=yes 14376 case $host_os in 14377 aix3*) 14378 # FIXME: insert proper C++ library support 14379 ld_shlibs_CXX=no 14380 ;; 14381 aix[4-9]*) 14382 if test ia64 = "$host_cpu"; then 14383 # On IA64, the linker does run time linking by default, so we don't 14384 # have to do anything special. 14385 aix_use_runtimelinking=no 14386 exp_sym_flag='-Bexport' 14387 no_entry_flag= 14388 else 14389 aix_use_runtimelinking=no 14390 14391 # Test if we are trying to use run time linking or normal 14392 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14393 # have runtime linking enabled, and use it for executables. 14394 # For shared libraries, we enable/disable runtime linking 14395 # depending on the kind of the shared library created - 14396 # when "with_aix_soname,aix_use_runtimelinking" is: 14397 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 14398 # "aix,yes" lib.so shared, rtl:yes, for executables 14399 # lib.a static archive 14400 # "both,no" lib.so.V(shr.o) shared, rtl:yes 14401 # lib.a(lib.so.V) shared, rtl:no, for executables 14402 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 14403 # lib.a(lib.so.V) shared, rtl:no 14404 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 14405 # lib.a static archive 14406 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 14407 for ld_flag in $LDFLAGS; do 14408 case $ld_flag in 14409 *-brtl*) 14410 aix_use_runtimelinking=yes 14411 break 14412 ;; 14413 esac 14414 done 14415 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 14416 # With aix-soname=svr4, we create the lib.so.V shared archives only, 14417 # so we don't have lib.a shared libs to link our executables. 14418 # We have to force runtime linking in this case. 14419 aix_use_runtimelinking=yes 14420 LDFLAGS="$LDFLAGS -Wl,-brtl" 14421 fi 14422 ;; 14423 esac 14424 14425 exp_sym_flag='-bexport' 14426 no_entry_flag='-bnoentry' 14427 fi 14428 14429 # When large executables or shared objects are built, AIX ld can 14430 # have problems creating the table of contents. If linking a library 14431 # or program results in "error TOC overflow" add -mminimal-toc to 14432 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14433 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14434 14435 archive_cmds_CXX='' 14436 hardcode_direct_CXX=yes 14437 hardcode_direct_absolute_CXX=yes 14438 hardcode_libdir_separator_CXX=':' 14439 link_all_deplibs_CXX=yes 14440 file_list_spec_CXX='$wl-f,' 14441 case $with_aix_soname,$aix_use_runtimelinking in 14442 aix,*) ;; # no import file 14443 svr4,* | *,yes) # use import file 14444 # The Import File defines what to hardcode. 14445 hardcode_direct_CXX=no 14446 hardcode_direct_absolute_CXX=no 14447 ;; 14448 esac 14449 14450 if test yes = "$GXX"; then 14451 case $host_os in aix4.[012]|aix4.[012].*) 14452 # We only want to do this on AIX 4.2 and lower, the check 14453 # below for broken collect2 doesn't work under 4.3+ 14454 collect2name=`$CC -print-prog-name=collect2` 14455 if test -f "$collect2name" && 14456 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 14457 then 14458 # We have reworked collect2 14459 : 14460 else 14461 # We have old collect2 14462 hardcode_direct_CXX=unsupported 14463 # It fails to find uninstalled libraries when the uninstalled 14464 # path is not listed in the libpath. Setting hardcode_minus_L 14465 # to unsupported forces relinking 14466 hardcode_minus_L_CXX=yes 14467 hardcode_libdir_flag_spec_CXX='-L$libdir' 14468 hardcode_libdir_separator_CXX= 14469 fi 14470 esac 14471 shared_flag='-shared' 14472 if test yes = "$aix_use_runtimelinking"; then 14473 shared_flag=$shared_flag' $wl-G' 14474 fi 14475 # Need to ensure runtime linking is disabled for the traditional 14476 # shared library, or the linker may eventually find shared libraries 14477 # /with/ Import File - we do not want to mix them. 14478 shared_flag_aix='-shared' 14479 shared_flag_svr4='-shared $wl-G' 14480 else 14481 # not using gcc 14482 if test ia64 = "$host_cpu"; then 14483 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14484 # chokes on -Wl,-G. The following line is correct: 14485 shared_flag='-G' 14486 else 14487 if test yes = "$aix_use_runtimelinking"; then 14488 shared_flag='$wl-G' 14489 else 14490 shared_flag='$wl-bM:SRE' 14491 fi 14492 shared_flag_aix='$wl-bM:SRE' 14493 shared_flag_svr4='$wl-G' 14494 fi 14495 fi 14496 14497 export_dynamic_flag_spec_CXX='$wl-bexpall' 14498 # It seems that -bexpall does not export symbols beginning with 14499 # underscore (_), so it is better to generate a list of symbols to 14500 # export. 14501 always_export_symbols_CXX=yes 14502 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 14503 # Warning - without using the other runtime loading flags (-brtl), 14504 # -berok will link without error, but may produce a broken library. 14505 # The "-G" linker flag allows undefined symbols. 14506 no_undefined_flag_CXX='-bernotok' 14507 # Determine the default libpath from the value encoded in an empty 14508 # executable. 14509 if test set = "${lt_cv_aix_libpath+set}"; then 14510 aix_libpath=$lt_cv_aix_libpath 14511else 14512 if ${lt_cv_aix_libpath__CXX+:} false; then : 14513 $as_echo_n "(cached) " >&6 14514else 14515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14516/* end confdefs.h. */ 14517 14518int 14519main () 14520{ 14521 14522 ; 14523 return 0; 14524} 14525_ACEOF 14526if ac_fn_cxx_try_link "$LINENO"; then : 14527 14528 lt_aix_libpath_sed=' 14529 /Import File Strings/,/^$/ { 14530 /^0/ { 14531 s/^0 *\([^ ]*\) *$/\1/ 14532 p 14533 } 14534 }' 14535 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14536 # Check for a 64-bit object if we didn't find anything. 14537 if test -z "$lt_cv_aix_libpath__CXX"; then 14538 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14539 fi 14540fi 14541rm -f core conftest.err conftest.$ac_objext \ 14542 conftest$ac_exeext conftest.$ac_ext 14543 if test -z "$lt_cv_aix_libpath__CXX"; then 14544 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14545 fi 14546 14547fi 14548 14549 aix_libpath=$lt_cv_aix_libpath__CXX 14550fi 14551 14552 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14553 14554 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 14555 else 14556 if test ia64 = "$host_cpu"; then 14557 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 14558 allow_undefined_flag_CXX="-z nodefs" 14559 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" 14560 else 14561 # Determine the default libpath from the value encoded in an 14562 # empty executable. 14563 if test set = "${lt_cv_aix_libpath+set}"; then 14564 aix_libpath=$lt_cv_aix_libpath 14565else 14566 if ${lt_cv_aix_libpath__CXX+:} false; then : 14567 $as_echo_n "(cached) " >&6 14568else 14569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14570/* end confdefs.h. */ 14571 14572int 14573main () 14574{ 14575 14576 ; 14577 return 0; 14578} 14579_ACEOF 14580if ac_fn_cxx_try_link "$LINENO"; then : 14581 14582 lt_aix_libpath_sed=' 14583 /Import File Strings/,/^$/ { 14584 /^0/ { 14585 s/^0 *\([^ ]*\) *$/\1/ 14586 p 14587 } 14588 }' 14589 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14590 # Check for a 64-bit object if we didn't find anything. 14591 if test -z "$lt_cv_aix_libpath__CXX"; then 14592 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14593 fi 14594fi 14595rm -f core conftest.err conftest.$ac_objext \ 14596 conftest$ac_exeext conftest.$ac_ext 14597 if test -z "$lt_cv_aix_libpath__CXX"; then 14598 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14599 fi 14600 14601fi 14602 14603 aix_libpath=$lt_cv_aix_libpath__CXX 14604fi 14605 14606 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14607 # Warning - without using the other run time loading flags, 14608 # -berok will link without error, but may produce a broken library. 14609 no_undefined_flag_CXX=' $wl-bernotok' 14610 allow_undefined_flag_CXX=' $wl-berok' 14611 if test yes = "$with_gnu_ld"; then 14612 # We only use this code for GNU lds that support --whole-archive. 14613 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14614 else 14615 # Exported symbols can be pulled into shared objects from archives 14616 whole_archive_flag_spec_CXX='$convenience' 14617 fi 14618 archive_cmds_need_lc_CXX=yes 14619 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 14620 # -brtl affects multiple linker settings, -berok does not and is overridden later 14621 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 14622 if test svr4 != "$with_aix_soname"; then 14623 # This is similar to how AIX traditionally builds its shared 14624 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 14625 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' 14626 fi 14627 if test aix != "$with_aix_soname"; then 14628 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' 14629 else 14630 # used by -dlpreopen to get the symbols 14631 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 14632 fi 14633 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 14634 fi 14635 fi 14636 ;; 14637 14638 beos*) 14639 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14640 allow_undefined_flag_CXX=unsupported 14641 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14642 # support --undefined. This deserves some investigation. FIXME 14643 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14644 else 14645 ld_shlibs_CXX=no 14646 fi 14647 ;; 14648 14649 chorus*) 14650 case $cc_basename in 14651 *) 14652 # FIXME: insert proper C++ library support 14653 ld_shlibs_CXX=no 14654 ;; 14655 esac 14656 ;; 14657 14658 cygwin* | mingw* | pw32* | cegcc*) 14659 case $GXX,$cc_basename in 14660 ,cl* | no,cl*) 14661 # Native MSVC 14662 # hardcode_libdir_flag_spec is actually meaningless, as there is 14663 # no search path for DLLs. 14664 hardcode_libdir_flag_spec_CXX=' ' 14665 allow_undefined_flag_CXX=unsupported 14666 always_export_symbols_CXX=yes 14667 file_list_spec_CXX='@' 14668 # Tell ltmain to make .lib files, not .a files. 14669 libext=lib 14670 # Tell ltmain to make .dll files, not .so files. 14671 shrext_cmds=.dll 14672 # FIXME: Setting linknames here is a bad hack. 14673 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 14674 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14675 cp "$export_symbols" "$output_objdir/$soname.def"; 14676 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 14677 else 14678 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 14679 fi~ 14680 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 14681 linknames=' 14682 # The linker will not automatically build a static lib if we build a DLL. 14683 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 14684 enable_shared_with_static_runtimes_CXX=yes 14685 # Don't use ranlib 14686 old_postinstall_cmds_CXX='chmod 644 $oldlib' 14687 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 14688 lt_tool_outputfile="@TOOL_OUTPUT@"~ 14689 case $lt_outputfile in 14690 *.exe|*.EXE) ;; 14691 *) 14692 lt_outputfile=$lt_outputfile.exe 14693 lt_tool_outputfile=$lt_tool_outputfile.exe 14694 ;; 14695 esac~ 14696 func_to_tool_file "$lt_outputfile"~ 14697 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 14698 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 14699 $RM "$lt_outputfile.manifest"; 14700 fi' 14701 ;; 14702 *) 14703 # g++ 14704 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 14705 # as there is no search path for DLLs. 14706 hardcode_libdir_flag_spec_CXX='-L$libdir' 14707 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 14708 allow_undefined_flag_CXX=unsupported 14709 always_export_symbols_CXX=no 14710 enable_shared_with_static_runtimes_CXX=yes 14711 14712 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 14713 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' 14714 # If the export-symbols file already is a .def file, use it as 14715 # is; otherwise, prepend EXPORTS... 14716 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14717 cp $export_symbols $output_objdir/$soname.def; 14718 else 14719 echo EXPORTS > $output_objdir/$soname.def; 14720 cat $export_symbols >> $output_objdir/$soname.def; 14721 fi~ 14722 $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' 14723 else 14724 ld_shlibs_CXX=no 14725 fi 14726 ;; 14727 esac 14728 ;; 14729 darwin* | rhapsody*) 14730 14731 14732 archive_cmds_need_lc_CXX=no 14733 hardcode_direct_CXX=no 14734 hardcode_automatic_CXX=yes 14735 hardcode_shlibpath_var_CXX=unsupported 14736 if test yes = "$lt_cv_ld_force_load"; then 14737 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\"`' 14738 14739 else 14740 whole_archive_flag_spec_CXX='' 14741 fi 14742 link_all_deplibs_CXX=yes 14743 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 14744 case $cc_basename in 14745 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 14746 *) _lt_dar_can_shared=$GCC ;; 14747 esac 14748 if test yes = "$_lt_dar_can_shared"; then 14749 output_verbose_link_cmd=func_echo_all 14750 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" 14751 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 14752 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" 14753 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" 14754 if test yes != "$lt_cv_apple_cc_single_mod"; then 14755 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" 14756 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" 14757 fi 14758 14759 else 14760 ld_shlibs_CXX=no 14761 fi 14762 14763 ;; 14764 14765 os2*) 14766 hardcode_libdir_flag_spec_CXX='-L$libdir' 14767 hardcode_minus_L_CXX=yes 14768 allow_undefined_flag_CXX=unsupported 14769 shrext_cmds=.dll 14770 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14771 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14772 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14773 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14774 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 14775 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14776 emximp -o $lib $output_objdir/$libname.def' 14777 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14778 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14779 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14780 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14781 prefix_cmds="$SED"~ 14782 if test EXPORTS = "`$SED 1q $export_symbols`"; then 14783 prefix_cmds="$prefix_cmds -e 1d"; 14784 fi~ 14785 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 14786 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 14787 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14788 emximp -o $lib $output_objdir/$libname.def' 14789 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 14790 enable_shared_with_static_runtimes_CXX=yes 14791 ;; 14792 14793 dgux*) 14794 case $cc_basename in 14795 ec++*) 14796 # FIXME: insert proper C++ library support 14797 ld_shlibs_CXX=no 14798 ;; 14799 ghcx*) 14800 # Green Hills C++ Compiler 14801 # FIXME: insert proper C++ library support 14802 ld_shlibs_CXX=no 14803 ;; 14804 *) 14805 # FIXME: insert proper C++ library support 14806 ld_shlibs_CXX=no 14807 ;; 14808 esac 14809 ;; 14810 14811 freebsd2.*) 14812 # C++ shared libraries reported to be fairly broken before 14813 # switch to ELF 14814 ld_shlibs_CXX=no 14815 ;; 14816 14817 freebsd-elf*) 14818 archive_cmds_need_lc_CXX=no 14819 ;; 14820 14821 freebsd* | dragonfly*) 14822 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 14823 # conventions 14824 ld_shlibs_CXX=yes 14825 ;; 14826 14827 haiku*) 14828 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14829 link_all_deplibs_CXX=yes 14830 ;; 14831 14832 hpux9*) 14833 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14834 hardcode_libdir_separator_CXX=: 14835 export_dynamic_flag_spec_CXX='$wl-E' 14836 hardcode_direct_CXX=yes 14837 hardcode_minus_L_CXX=yes # Not in the search PATH, 14838 # but as the default 14839 # location of the library. 14840 14841 case $cc_basename in 14842 CC*) 14843 # FIXME: insert proper C++ library support 14844 ld_shlibs_CXX=no 14845 ;; 14846 aCC*) 14847 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' 14848 # Commands to make compiler produce verbose output that lists 14849 # what "hidden" libraries, object files and flags are used when 14850 # linking a shared library. 14851 # 14852 # There doesn't appear to be a way to prevent this compiler from 14853 # explicitly linking system object files so we need to strip them 14854 # from the output so that they don't get included in the library 14855 # dependencies. 14856 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"' 14857 ;; 14858 *) 14859 if test yes = "$GXX"; then 14860 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' 14861 else 14862 # FIXME: insert proper C++ library support 14863 ld_shlibs_CXX=no 14864 fi 14865 ;; 14866 esac 14867 ;; 14868 14869 hpux10*|hpux11*) 14870 if test no = "$with_gnu_ld"; then 14871 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14872 hardcode_libdir_separator_CXX=: 14873 14874 case $host_cpu in 14875 hppa*64*|ia64*) 14876 ;; 14877 *) 14878 export_dynamic_flag_spec_CXX='$wl-E' 14879 ;; 14880 esac 14881 fi 14882 case $host_cpu in 14883 hppa*64*|ia64*) 14884 hardcode_direct_CXX=no 14885 hardcode_shlibpath_var_CXX=no 14886 ;; 14887 *) 14888 hardcode_direct_CXX=yes 14889 hardcode_direct_absolute_CXX=yes 14890 hardcode_minus_L_CXX=yes # Not in the search PATH, 14891 # but as the default 14892 # location of the library. 14893 ;; 14894 esac 14895 14896 case $cc_basename in 14897 CC*) 14898 # FIXME: insert proper C++ library support 14899 ld_shlibs_CXX=no 14900 ;; 14901 aCC*) 14902 case $host_cpu in 14903 hppa*64*) 14904 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14905 ;; 14906 ia64*) 14907 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14908 ;; 14909 *) 14910 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14911 ;; 14912 esac 14913 # Commands to make compiler produce verbose output that lists 14914 # what "hidden" libraries, object files and flags are used when 14915 # linking a shared library. 14916 # 14917 # There doesn't appear to be a way to prevent this compiler from 14918 # explicitly linking system object files so we need to strip them 14919 # from the output so that they don't get included in the library 14920 # dependencies. 14921 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"' 14922 ;; 14923 *) 14924 if test yes = "$GXX"; then 14925 if test no = "$with_gnu_ld"; then 14926 case $host_cpu in 14927 hppa*64*) 14928 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14929 ;; 14930 ia64*) 14931 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14932 ;; 14933 *) 14934 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' 14935 ;; 14936 esac 14937 fi 14938 else 14939 # FIXME: insert proper C++ library support 14940 ld_shlibs_CXX=no 14941 fi 14942 ;; 14943 esac 14944 ;; 14945 14946 interix[3-9]*) 14947 hardcode_direct_CXX=no 14948 hardcode_shlibpath_var_CXX=no 14949 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14950 export_dynamic_flag_spec_CXX='$wl-E' 14951 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14952 # Instead, shared libraries are loaded at an image base (0x10000000 by 14953 # default) and relocated if they conflict, which is a slow very memory 14954 # consuming and fragmenting process. To avoid this, we pick a random, 14955 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14956 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14957 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' 14958 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' 14959 ;; 14960 irix5* | irix6*) 14961 case $cc_basename in 14962 CC*) 14963 # SGI C++ 14964 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' 14965 14966 # Archives containing C++ object files must be created using 14967 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 14968 # necessary to make sure instantiated templates are included 14969 # in the archive. 14970 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 14971 ;; 14972 *) 14973 if test yes = "$GXX"; then 14974 if test no = "$with_gnu_ld"; then 14975 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' 14976 else 14977 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' 14978 fi 14979 fi 14980 link_all_deplibs_CXX=yes 14981 ;; 14982 esac 14983 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14984 hardcode_libdir_separator_CXX=: 14985 inherit_rpath_CXX=yes 14986 ;; 14987 14988 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14989 case $cc_basename in 14990 KCC*) 14991 # Kuck and Associates, Inc. (KAI) C++ Compiler 14992 14993 # KCC will only create a shared library if the output file 14994 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14995 # to its proper name (with version) after linking. 14996 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' 14997 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' 14998 # Commands to make compiler produce verbose output that lists 14999 # what "hidden" libraries, object files and flags are used when 15000 # linking a shared library. 15001 # 15002 # There doesn't appear to be a way to prevent this compiler from 15003 # explicitly linking system object files so we need to strip them 15004 # from the output so that they don't get included in the library 15005 # dependencies. 15006 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"' 15007 15008 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 15009 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 15010 15011 # Archives containing C++ object files must be created using 15012 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 15013 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 15014 ;; 15015 icpc* | ecpc* ) 15016 # Intel C++ 15017 with_gnu_ld=yes 15018 # version 8.0 and above of icpc choke on multiply defined symbols 15019 # if we add $predep_objects and $postdep_objects, however 7.1 and 15020 # earlier do not add the objects themselves. 15021 case `$CC -V 2>&1` in 15022 *"Version 7."*) 15023 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 15024 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' 15025 ;; 15026 *) # Version 8.0 or newer 15027 tmp_idyn= 15028 case $host_cpu in 15029 ia64*) tmp_idyn=' -i_dynamic';; 15030 esac 15031 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15032 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' 15033 ;; 15034 esac 15035 archive_cmds_need_lc_CXX=no 15036 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 15037 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 15038 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 15039 ;; 15040 pgCC* | pgcpp*) 15041 # Portland Group C++ compiler 15042 case `$CC -V` in 15043 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 15044 prelink_cmds_CXX='tpldir=Template.dir~ 15045 rm -rf $tpldir~ 15046 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 15047 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 15048 old_archive_cmds_CXX='tpldir=Template.dir~ 15049 rm -rf $tpldir~ 15050 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 15051 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 15052 $RANLIB $oldlib' 15053 archive_cmds_CXX='tpldir=Template.dir~ 15054 rm -rf $tpldir~ 15055 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 15056 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 15057 archive_expsym_cmds_CXX='tpldir=Template.dir~ 15058 rm -rf $tpldir~ 15059 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 15060 $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' 15061 ;; 15062 *) # Version 6 and above use weak symbols 15063 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 15064 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' 15065 ;; 15066 esac 15067 15068 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 15069 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 15070 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' 15071 ;; 15072 cxx*) 15073 # Compaq C++ 15074 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 15075 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' 15076 15077 runpath_var=LD_RUN_PATH 15078 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 15079 hardcode_libdir_separator_CXX=: 15080 15081 # Commands to make compiler produce verbose output that lists 15082 # what "hidden" libraries, object files and flags are used when 15083 # linking a shared library. 15084 # 15085 # There doesn't appear to be a way to prevent this compiler from 15086 # explicitly linking system object files so we need to strip them 15087 # from the output so that they don't get included in the library 15088 # dependencies. 15089 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' 15090 ;; 15091 xl* | mpixl* | bgxl*) 15092 # IBM XL 8.0 on PPC, with GNU ld 15093 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 15094 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 15095 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15096 if test yes = "$supports_anon_versioning"; then 15097 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 15098 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15099 echo "local: *; };" >> $output_objdir/$libname.ver~ 15100 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 15101 fi 15102 ;; 15103 *) 15104 case `$CC -V 2>&1 | sed 5q` in 15105 *Sun\ C*) 15106 # Sun C++ 5.9 15107 no_undefined_flag_CXX=' -zdefs' 15108 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15109 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' 15110 hardcode_libdir_flag_spec_CXX='-R$libdir' 15111 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' 15112 compiler_needs_object_CXX=yes 15113 15114 # Not sure whether something based on 15115 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 15116 # would be better. 15117 output_verbose_link_cmd='func_echo_all' 15118 15119 # Archives containing C++ object files must be created using 15120 # "CC -xar", where "CC" is the Sun C++ compiler. This is 15121 # necessary to make sure instantiated templates are included 15122 # in the archive. 15123 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 15124 ;; 15125 esac 15126 ;; 15127 esac 15128 ;; 15129 15130 lynxos*) 15131 # FIXME: insert proper C++ library support 15132 ld_shlibs_CXX=no 15133 ;; 15134 15135 m88k*) 15136 # FIXME: insert proper C++ library support 15137 ld_shlibs_CXX=no 15138 ;; 15139 15140 mvs*) 15141 case $cc_basename in 15142 cxx*) 15143 # FIXME: insert proper C++ library support 15144 ld_shlibs_CXX=no 15145 ;; 15146 *) 15147 # FIXME: insert proper C++ library support 15148 ld_shlibs_CXX=no 15149 ;; 15150 esac 15151 ;; 15152 15153 netbsd*) 15154 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15155 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 15156 wlarc= 15157 hardcode_libdir_flag_spec_CXX='-R$libdir' 15158 hardcode_direct_CXX=yes 15159 hardcode_shlibpath_var_CXX=no 15160 fi 15161 # Workaround some broken pre-1.5 toolchains 15162 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 15163 ;; 15164 15165 *nto* | *qnx*) 15166 ld_shlibs_CXX=yes 15167 ;; 15168 15169 openbsd* | bitrig*) 15170 if test -f /usr/libexec/ld.so; then 15171 hardcode_direct_CXX=yes 15172 hardcode_shlibpath_var_CXX=no 15173 hardcode_direct_absolute_CXX=yes 15174 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 15175 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 15176 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 15177 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 15178 export_dynamic_flag_spec_CXX='$wl-E' 15179 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 15180 fi 15181 output_verbose_link_cmd=func_echo_all 15182 else 15183 ld_shlibs_CXX=no 15184 fi 15185 ;; 15186 15187 osf3* | osf4* | osf5*) 15188 case $cc_basename in 15189 KCC*) 15190 # Kuck and Associates, Inc. (KAI) C++ Compiler 15191 15192 # KCC will only create a shared library if the output file 15193 # ends with ".so" (or ".sl" for HP-UX), so rename the library 15194 # to its proper name (with version) after linking. 15195 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' 15196 15197 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 15198 hardcode_libdir_separator_CXX=: 15199 15200 # Archives containing C++ object files must be created using 15201 # the KAI C++ compiler. 15202 case $host in 15203 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 15204 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 15205 esac 15206 ;; 15207 RCC*) 15208 # Rational C++ 2.4.1 15209 # FIXME: insert proper C++ library support 15210 ld_shlibs_CXX=no 15211 ;; 15212 cxx*) 15213 case $host in 15214 osf3*) 15215 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 15216 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' 15217 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 15218 ;; 15219 *) 15220 allow_undefined_flag_CXX=' -expect_unresolved \*' 15221 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' 15222 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 15223 echo "-hidden">> $lib.exp~ 15224 $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~ 15225 $RM $lib.exp' 15226 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 15227 ;; 15228 esac 15229 15230 hardcode_libdir_separator_CXX=: 15231 15232 # Commands to make compiler produce verbose output that lists 15233 # what "hidden" libraries, object files and flags are used when 15234 # linking a shared library. 15235 # 15236 # There doesn't appear to be a way to prevent this compiler from 15237 # explicitly linking system object files so we need to strip them 15238 # from the output so that they don't get included in the library 15239 # dependencies. 15240 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"' 15241 ;; 15242 *) 15243 if test yes,no = "$GXX,$with_gnu_ld"; then 15244 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 15245 case $host in 15246 osf3*) 15247 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' 15248 ;; 15249 *) 15250 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' 15251 ;; 15252 esac 15253 15254 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 15255 hardcode_libdir_separator_CXX=: 15256 15257 # Commands to make compiler produce verbose output that lists 15258 # what "hidden" libraries, object files and flags are used when 15259 # linking a shared library. 15260 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15261 15262 else 15263 # FIXME: insert proper C++ library support 15264 ld_shlibs_CXX=no 15265 fi 15266 ;; 15267 esac 15268 ;; 15269 15270 psos*) 15271 # FIXME: insert proper C++ library support 15272 ld_shlibs_CXX=no 15273 ;; 15274 15275 sunos4*) 15276 case $cc_basename in 15277 CC*) 15278 # Sun C++ 4.x 15279 # FIXME: insert proper C++ library support 15280 ld_shlibs_CXX=no 15281 ;; 15282 lcc*) 15283 # Lucid 15284 # FIXME: insert proper C++ library support 15285 ld_shlibs_CXX=no 15286 ;; 15287 *) 15288 # FIXME: insert proper C++ library support 15289 ld_shlibs_CXX=no 15290 ;; 15291 esac 15292 ;; 15293 15294 solaris*) 15295 case $cc_basename in 15296 CC* | sunCC*) 15297 # Sun C++ 4.2, 5.x and Centerline C++ 15298 archive_cmds_need_lc_CXX=yes 15299 no_undefined_flag_CXX=' -zdefs' 15300 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15301 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15302 $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' 15303 15304 hardcode_libdir_flag_spec_CXX='-R$libdir' 15305 hardcode_shlibpath_var_CXX=no 15306 case $host_os in 15307 solaris2.[0-5] | solaris2.[0-5].*) ;; 15308 *) 15309 # The compiler driver will combine and reorder linker options, 15310 # but understands '-z linker_flag'. 15311 # Supported since Solaris 2.6 (maybe 2.5.1?) 15312 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 15313 ;; 15314 esac 15315 link_all_deplibs_CXX=yes 15316 15317 output_verbose_link_cmd='func_echo_all' 15318 15319 # Archives containing C++ object files must be created using 15320 # "CC -xar", where "CC" is the Sun C++ compiler. This is 15321 # necessary to make sure instantiated templates are included 15322 # in the archive. 15323 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 15324 ;; 15325 gcx*) 15326 # Green Hills C++ Compiler 15327 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15328 15329 # The C++ compiler must be used to create the archive. 15330 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 15331 ;; 15332 *) 15333 # GNU C++ compiler with Solaris linker 15334 if test yes,no = "$GXX,$with_gnu_ld"; then 15335 no_undefined_flag_CXX=' $wl-z ${wl}defs' 15336 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 15337 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15338 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15339 $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' 15340 15341 # Commands to make compiler produce verbose output that lists 15342 # what "hidden" libraries, object files and flags are used when 15343 # linking a shared library. 15344 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15345 else 15346 # g++ 2.7 appears to require '-G' NOT '-shared' on this 15347 # platform. 15348 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15349 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15350 $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' 15351 15352 # Commands to make compiler produce verbose output that lists 15353 # what "hidden" libraries, object files and flags are used when 15354 # linking a shared library. 15355 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15356 fi 15357 15358 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 15359 case $host_os in 15360 solaris2.[0-5] | solaris2.[0-5].*) ;; 15361 *) 15362 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 15363 ;; 15364 esac 15365 fi 15366 ;; 15367 esac 15368 ;; 15369 15370 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15371 no_undefined_flag_CXX='$wl-z,text' 15372 archive_cmds_need_lc_CXX=no 15373 hardcode_shlibpath_var_CXX=no 15374 runpath_var='LD_RUN_PATH' 15375 15376 case $cc_basename in 15377 CC*) 15378 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15379 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15380 ;; 15381 *) 15382 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15383 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15384 ;; 15385 esac 15386 ;; 15387 15388 sysv5* | sco3.2v5* | sco5v6*) 15389 # Note: We CANNOT use -z defs as we might desire, because we do not 15390 # link with -lc, and that would cause any symbols used from libc to 15391 # always be unresolved, which means just about no library would 15392 # ever link correctly. If we're not using GNU ld we use -z text 15393 # though, which does catch some bad symbols but isn't as heavy-handed 15394 # as -z defs. 15395 no_undefined_flag_CXX='$wl-z,text' 15396 allow_undefined_flag_CXX='$wl-z,nodefs' 15397 archive_cmds_need_lc_CXX=no 15398 hardcode_shlibpath_var_CXX=no 15399 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 15400 hardcode_libdir_separator_CXX=':' 15401 link_all_deplibs_CXX=yes 15402 export_dynamic_flag_spec_CXX='$wl-Bexport' 15403 runpath_var='LD_RUN_PATH' 15404 15405 case $cc_basename in 15406 CC*) 15407 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15408 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15409 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 15410 '"$old_archive_cmds_CXX" 15411 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 15412 '"$reload_cmds_CXX" 15413 ;; 15414 *) 15415 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15416 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15417 ;; 15418 esac 15419 ;; 15420 15421 tandem*) 15422 case $cc_basename in 15423 NCC*) 15424 # NonStop-UX NCC 3.20 15425 # FIXME: insert proper C++ library support 15426 ld_shlibs_CXX=no 15427 ;; 15428 *) 15429 # FIXME: insert proper C++ library support 15430 ld_shlibs_CXX=no 15431 ;; 15432 esac 15433 ;; 15434 15435 vxworks*) 15436 # FIXME: insert proper C++ library support 15437 ld_shlibs_CXX=no 15438 ;; 15439 15440 *) 15441 # FIXME: insert proper C++ library support 15442 ld_shlibs_CXX=no 15443 ;; 15444 esac 15445 15446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15447$as_echo "$ld_shlibs_CXX" >&6; } 15448 test no = "$ld_shlibs_CXX" && can_build_shared=no 15449 15450 GCC_CXX=$GXX 15451 LD_CXX=$LD 15452 15453 ## CAVEAT EMPTOR: 15454 ## There is no encapsulation within the following macros, do not change 15455 ## the running order or otherwise move them around unless you know exactly 15456 ## what you are doing... 15457 # Dependencies to place before and after the object being linked: 15458predep_objects_CXX= 15459postdep_objects_CXX= 15460predeps_CXX= 15461postdeps_CXX= 15462compiler_lib_search_path_CXX= 15463 15464cat > conftest.$ac_ext <<_LT_EOF 15465class Foo 15466{ 15467public: 15468 Foo (void) { a = 0; } 15469private: 15470 int a; 15471}; 15472_LT_EOF 15473 15474 15475_lt_libdeps_save_CFLAGS=$CFLAGS 15476case "$CC $CFLAGS " in #( 15477*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 15478*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 15479*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 15480esac 15481 15482if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15483 (eval $ac_compile) 2>&5 15484 ac_status=$? 15485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15486 test $ac_status = 0; }; then 15487 # Parse the compiler output and extract the necessary 15488 # objects, libraries and library flags. 15489 15490 # Sentinel used to keep track of whether or not we are before 15491 # the conftest object file. 15492 pre_test_object_deps_done=no 15493 15494 for p in `eval "$output_verbose_link_cmd"`; do 15495 case $prev$p in 15496 15497 -L* | -R* | -l*) 15498 # Some compilers place space between "-{L,R}" and the path. 15499 # Remove the space. 15500 if test x-L = "$p" || 15501 test x-R = "$p"; then 15502 prev=$p 15503 continue 15504 fi 15505 15506 # Expand the sysroot to ease extracting the directories later. 15507 if test -z "$prev"; then 15508 case $p in 15509 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 15510 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 15511 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 15512 esac 15513 fi 15514 case $p in 15515 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 15516 esac 15517 if test no = "$pre_test_object_deps_done"; then 15518 case $prev in 15519 -L | -R) 15520 # Internal compiler library paths should come after those 15521 # provided the user. The postdeps already come after the 15522 # user supplied libs so there is no need to process them. 15523 if test -z "$compiler_lib_search_path_CXX"; then 15524 compiler_lib_search_path_CXX=$prev$p 15525 else 15526 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 15527 fi 15528 ;; 15529 # The "-l" case would never come before the object being 15530 # linked, so don't bother handling this case. 15531 esac 15532 else 15533 if test -z "$postdeps_CXX"; then 15534 postdeps_CXX=$prev$p 15535 else 15536 postdeps_CXX="${postdeps_CXX} $prev$p" 15537 fi 15538 fi 15539 prev= 15540 ;; 15541 15542 *.lto.$objext) ;; # Ignore GCC LTO objects 15543 *.$objext) 15544 # This assumes that the test object file only shows up 15545 # once in the compiler output. 15546 if test "$p" = "conftest.$objext"; then 15547 pre_test_object_deps_done=yes 15548 continue 15549 fi 15550 15551 if test no = "$pre_test_object_deps_done"; then 15552 if test -z "$predep_objects_CXX"; then 15553 predep_objects_CXX=$p 15554 else 15555 predep_objects_CXX="$predep_objects_CXX $p" 15556 fi 15557 else 15558 if test -z "$postdep_objects_CXX"; then 15559 postdep_objects_CXX=$p 15560 else 15561 postdep_objects_CXX="$postdep_objects_CXX $p" 15562 fi 15563 fi 15564 ;; 15565 15566 *) ;; # Ignore the rest. 15567 15568 esac 15569 done 15570 15571 # Clean up. 15572 rm -f a.out a.exe 15573else 15574 echo "libtool.m4: error: problem compiling CXX test program" 15575fi 15576 15577$RM -f confest.$objext 15578CFLAGS=$_lt_libdeps_save_CFLAGS 15579 15580# PORTME: override above test on systems where it is broken 15581case $host_os in 15582interix[3-9]*) 15583 # Interix 3.5 installs completely hosed .la files for C++, so rather than 15584 # hack all around it, let's just trust "g++" to DTRT. 15585 predep_objects_CXX= 15586 postdep_objects_CXX= 15587 postdeps_CXX= 15588 ;; 15589esac 15590 15591 15592case " $postdeps_CXX " in 15593*" -lc "*) archive_cmds_need_lc_CXX=no ;; 15594esac 15595 compiler_lib_search_dirs_CXX= 15596if test -n "${compiler_lib_search_path_CXX}"; then 15597 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 15598fi 15599 15600 15601 15602 15603 15604 15605 15606 15607 15608 15609 15610 15611 15612 15613 15614 15615 15616 15617 15618 15619 15620 15621 15622 15623 15624 15625 15626 15627 15628 15629 15630 lt_prog_compiler_wl_CXX= 15631lt_prog_compiler_pic_CXX= 15632lt_prog_compiler_static_CXX= 15633 15634 15635 # C++ specific cases for pic, static, wl, etc. 15636 if test yes = "$GXX"; then 15637 lt_prog_compiler_wl_CXX='-Wl,' 15638 lt_prog_compiler_static_CXX='-static' 15639 15640 case $host_os in 15641 aix*) 15642 # All AIX code is PIC. 15643 if test ia64 = "$host_cpu"; then 15644 # AIX 5 now supports IA64 processor 15645 lt_prog_compiler_static_CXX='-Bstatic' 15646 fi 15647 lt_prog_compiler_pic_CXX='-fPIC' 15648 ;; 15649 15650 amigaos*) 15651 case $host_cpu in 15652 powerpc) 15653 # see comment about AmigaOS4 .so support 15654 lt_prog_compiler_pic_CXX='-fPIC' 15655 ;; 15656 m68k) 15657 # FIXME: we need at least 68020 code to build shared libraries, but 15658 # adding the '-m68020' flag to GCC prevents building anything better, 15659 # like '-m68040'. 15660 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 15661 ;; 15662 esac 15663 ;; 15664 15665 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15666 # PIC is the default for these OSes. 15667 ;; 15668 mingw* | cygwin* | os2* | pw32* | cegcc*) 15669 # This hack is so that the source file can tell whether it is being 15670 # built for inclusion in a dll (and should export symbols for example). 15671 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15672 # (--disable-auto-import) libraries 15673 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15674 case $host_os in 15675 os2*) 15676 lt_prog_compiler_static_CXX='$wl-static' 15677 ;; 15678 esac 15679 ;; 15680 darwin* | rhapsody*) 15681 # PIC is the default on this platform 15682 # Common symbols not allowed in MH_DYLIB files 15683 lt_prog_compiler_pic_CXX='-fno-common' 15684 ;; 15685 *djgpp*) 15686 # DJGPP does not support shared libraries at all 15687 lt_prog_compiler_pic_CXX= 15688 ;; 15689 haiku*) 15690 # PIC is the default for Haiku. 15691 # The "-static" flag exists, but is broken. 15692 lt_prog_compiler_static_CXX= 15693 ;; 15694 interix[3-9]*) 15695 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15696 # Instead, we relocate shared libraries at runtime. 15697 ;; 15698 sysv4*MP*) 15699 if test -d /usr/nec; then 15700 lt_prog_compiler_pic_CXX=-Kconform_pic 15701 fi 15702 ;; 15703 hpux*) 15704 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15705 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15706 # sets the default TLS model and affects inlining. 15707 case $host_cpu in 15708 hppa*64*) 15709 ;; 15710 *) 15711 lt_prog_compiler_pic_CXX='-fPIC' 15712 ;; 15713 esac 15714 ;; 15715 *qnx* | *nto*) 15716 # QNX uses GNU C++, but need to define -shared option too, otherwise 15717 # it will coredump. 15718 lt_prog_compiler_pic_CXX='-fPIC -shared' 15719 ;; 15720 *) 15721 lt_prog_compiler_pic_CXX='-fPIC' 15722 ;; 15723 esac 15724 else 15725 case $host_os in 15726 aix[4-9]*) 15727 # All AIX code is PIC. 15728 if test ia64 = "$host_cpu"; then 15729 # AIX 5 now supports IA64 processor 15730 lt_prog_compiler_static_CXX='-Bstatic' 15731 else 15732 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 15733 fi 15734 ;; 15735 chorus*) 15736 case $cc_basename in 15737 cxch68*) 15738 # Green Hills C++ Compiler 15739 # _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" 15740 ;; 15741 esac 15742 ;; 15743 mingw* | cygwin* | os2* | pw32* | cegcc*) 15744 # This hack is so that the source file can tell whether it is being 15745 # built for inclusion in a dll (and should export symbols for example). 15746 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15747 ;; 15748 dgux*) 15749 case $cc_basename in 15750 ec++*) 15751 lt_prog_compiler_pic_CXX='-KPIC' 15752 ;; 15753 ghcx*) 15754 # Green Hills C++ Compiler 15755 lt_prog_compiler_pic_CXX='-pic' 15756 ;; 15757 *) 15758 ;; 15759 esac 15760 ;; 15761 freebsd* | dragonfly*) 15762 # FreeBSD uses GNU C++ 15763 ;; 15764 hpux9* | hpux10* | hpux11*) 15765 case $cc_basename in 15766 CC*) 15767 lt_prog_compiler_wl_CXX='-Wl,' 15768 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15769 if test ia64 != "$host_cpu"; then 15770 lt_prog_compiler_pic_CXX='+Z' 15771 fi 15772 ;; 15773 aCC*) 15774 lt_prog_compiler_wl_CXX='-Wl,' 15775 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15776 case $host_cpu in 15777 hppa*64*|ia64*) 15778 # +Z the default 15779 ;; 15780 *) 15781 lt_prog_compiler_pic_CXX='+Z' 15782 ;; 15783 esac 15784 ;; 15785 *) 15786 ;; 15787 esac 15788 ;; 15789 interix*) 15790 # This is c89, which is MS Visual C++ (no shared libs) 15791 # Anyone wants to do a port? 15792 ;; 15793 irix5* | irix6* | nonstopux*) 15794 case $cc_basename in 15795 CC*) 15796 lt_prog_compiler_wl_CXX='-Wl,' 15797 lt_prog_compiler_static_CXX='-non_shared' 15798 # CC pic flag -KPIC is the default. 15799 ;; 15800 *) 15801 ;; 15802 esac 15803 ;; 15804 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15805 case $cc_basename in 15806 KCC*) 15807 # KAI C++ Compiler 15808 lt_prog_compiler_wl_CXX='--backend -Wl,' 15809 lt_prog_compiler_pic_CXX='-fPIC' 15810 ;; 15811 ecpc* ) 15812 # old Intel C++ for x86_64, which still supported -KPIC. 15813 lt_prog_compiler_wl_CXX='-Wl,' 15814 lt_prog_compiler_pic_CXX='-KPIC' 15815 lt_prog_compiler_static_CXX='-static' 15816 ;; 15817 icpc* ) 15818 # Intel C++, used to be incompatible with GCC. 15819 # ICC 10 doesn't accept -KPIC any more. 15820 lt_prog_compiler_wl_CXX='-Wl,' 15821 lt_prog_compiler_pic_CXX='-fPIC' 15822 lt_prog_compiler_static_CXX='-static' 15823 ;; 15824 pgCC* | pgcpp*) 15825 # Portland Group C++ compiler 15826 lt_prog_compiler_wl_CXX='-Wl,' 15827 lt_prog_compiler_pic_CXX='-fpic' 15828 lt_prog_compiler_static_CXX='-Bstatic' 15829 ;; 15830 cxx*) 15831 # Compaq C++ 15832 # Make sure the PIC flag is empty. It appears that all Alpha 15833 # Linux and Compaq Tru64 Unix objects are PIC. 15834 lt_prog_compiler_pic_CXX= 15835 lt_prog_compiler_static_CXX='-non_shared' 15836 ;; 15837 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 15838 # IBM XL 8.0, 9.0 on PPC and BlueGene 15839 lt_prog_compiler_wl_CXX='-Wl,' 15840 lt_prog_compiler_pic_CXX='-qpic' 15841 lt_prog_compiler_static_CXX='-qstaticlink' 15842 ;; 15843 *) 15844 case `$CC -V 2>&1 | sed 5q` in 15845 *Sun\ C*) 15846 # Sun C++ 5.9 15847 lt_prog_compiler_pic_CXX='-KPIC' 15848 lt_prog_compiler_static_CXX='-Bstatic' 15849 lt_prog_compiler_wl_CXX='-Qoption ld ' 15850 ;; 15851 esac 15852 ;; 15853 esac 15854 ;; 15855 lynxos*) 15856 ;; 15857 m88k*) 15858 ;; 15859 mvs*) 15860 case $cc_basename in 15861 cxx*) 15862 lt_prog_compiler_pic_CXX='-W c,exportall' 15863 ;; 15864 *) 15865 ;; 15866 esac 15867 ;; 15868 netbsd*) 15869 ;; 15870 *qnx* | *nto*) 15871 # QNX uses GNU C++, but need to define -shared option too, otherwise 15872 # it will coredump. 15873 lt_prog_compiler_pic_CXX='-fPIC -shared' 15874 ;; 15875 osf3* | osf4* | osf5*) 15876 case $cc_basename in 15877 KCC*) 15878 lt_prog_compiler_wl_CXX='--backend -Wl,' 15879 ;; 15880 RCC*) 15881 # Rational C++ 2.4.1 15882 lt_prog_compiler_pic_CXX='-pic' 15883 ;; 15884 cxx*) 15885 # Digital/Compaq C++ 15886 lt_prog_compiler_wl_CXX='-Wl,' 15887 # Make sure the PIC flag is empty. It appears that all Alpha 15888 # Linux and Compaq Tru64 Unix objects are PIC. 15889 lt_prog_compiler_pic_CXX= 15890 lt_prog_compiler_static_CXX='-non_shared' 15891 ;; 15892 *) 15893 ;; 15894 esac 15895 ;; 15896 psos*) 15897 ;; 15898 solaris*) 15899 case $cc_basename in 15900 CC* | sunCC*) 15901 # Sun C++ 4.2, 5.x and Centerline C++ 15902 lt_prog_compiler_pic_CXX='-KPIC' 15903 lt_prog_compiler_static_CXX='-Bstatic' 15904 lt_prog_compiler_wl_CXX='-Qoption ld ' 15905 ;; 15906 gcx*) 15907 # Green Hills C++ Compiler 15908 lt_prog_compiler_pic_CXX='-PIC' 15909 ;; 15910 *) 15911 ;; 15912 esac 15913 ;; 15914 sunos4*) 15915 case $cc_basename in 15916 CC*) 15917 # Sun C++ 4.x 15918 lt_prog_compiler_pic_CXX='-pic' 15919 lt_prog_compiler_static_CXX='-Bstatic' 15920 ;; 15921 lcc*) 15922 # Lucid 15923 lt_prog_compiler_pic_CXX='-pic' 15924 ;; 15925 *) 15926 ;; 15927 esac 15928 ;; 15929 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15930 case $cc_basename in 15931 CC*) 15932 lt_prog_compiler_wl_CXX='-Wl,' 15933 lt_prog_compiler_pic_CXX='-KPIC' 15934 lt_prog_compiler_static_CXX='-Bstatic' 15935 ;; 15936 esac 15937 ;; 15938 tandem*) 15939 case $cc_basename in 15940 NCC*) 15941 # NonStop-UX NCC 3.20 15942 lt_prog_compiler_pic_CXX='-KPIC' 15943 ;; 15944 *) 15945 ;; 15946 esac 15947 ;; 15948 vxworks*) 15949 ;; 15950 *) 15951 lt_prog_compiler_can_build_shared_CXX=no 15952 ;; 15953 esac 15954 fi 15955 15956case $host_os in 15957 # For platforms that do not support PIC, -DPIC is meaningless: 15958 *djgpp*) 15959 lt_prog_compiler_pic_CXX= 15960 ;; 15961 *) 15962 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 15963 ;; 15964esac 15965 15966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15967$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15968if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 15969 $as_echo_n "(cached) " >&6 15970else 15971 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 15972fi 15973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 15974$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 15975lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 15976 15977# 15978# Check to make sure the PIC flag actually works. 15979# 15980if test -n "$lt_prog_compiler_pic_CXX"; then 15981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 15982$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 15983if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 15984 $as_echo_n "(cached) " >&6 15985else 15986 lt_cv_prog_compiler_pic_works_CXX=no 15987 ac_outfile=conftest.$ac_objext 15988 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15989 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 15990 # Insert the option either (1) after the last *FLAGS variable, or 15991 # (2) before a word containing "conftest.", or (3) at the end. 15992 # Note that $ac_compile itself does not contain backslashes and begins 15993 # with a dollar sign (not a hyphen), so the echo should work correctly. 15994 # The option is referenced via a variable to avoid confusing sed. 15995 lt_compile=`echo "$ac_compile" | $SED \ 15996 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15997 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15998 -e 's:$: $lt_compiler_flag:'` 15999 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16000 (eval "$lt_compile" 2>conftest.err) 16001 ac_status=$? 16002 cat conftest.err >&5 16003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16004 if (exit $ac_status) && test -s "$ac_outfile"; then 16005 # The compiler can only warn and ignore the option if not recognized 16006 # So say no if there are warnings other than the usual output. 16007 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 16008 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16009 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16010 lt_cv_prog_compiler_pic_works_CXX=yes 16011 fi 16012 fi 16013 $RM conftest* 16014 16015fi 16016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 16017$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 16018 16019if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 16020 case $lt_prog_compiler_pic_CXX in 16021 "" | " "*) ;; 16022 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 16023 esac 16024else 16025 lt_prog_compiler_pic_CXX= 16026 lt_prog_compiler_can_build_shared_CXX=no 16027fi 16028 16029fi 16030 16031 16032 16033 16034 16035# 16036# Check to make sure the static flag actually works. 16037# 16038wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 16039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16040$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 16041if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 16042 $as_echo_n "(cached) " >&6 16043else 16044 lt_cv_prog_compiler_static_works_CXX=no 16045 save_LDFLAGS=$LDFLAGS 16046 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16047 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16048 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16049 # The linker can only warn and ignore the option if not recognized 16050 # So say no if there are warnings 16051 if test -s conftest.err; then 16052 # Append any errors to the config.log. 16053 cat conftest.err 1>&5 16054 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16055 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16056 if diff conftest.exp conftest.er2 >/dev/null; then 16057 lt_cv_prog_compiler_static_works_CXX=yes 16058 fi 16059 else 16060 lt_cv_prog_compiler_static_works_CXX=yes 16061 fi 16062 fi 16063 $RM -r conftest* 16064 LDFLAGS=$save_LDFLAGS 16065 16066fi 16067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 16068$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 16069 16070if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 16071 : 16072else 16073 lt_prog_compiler_static_CXX= 16074fi 16075 16076 16077 16078 16079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16080$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16081if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 16082 $as_echo_n "(cached) " >&6 16083else 16084 lt_cv_prog_compiler_c_o_CXX=no 16085 $RM -r conftest 2>/dev/null 16086 mkdir conftest 16087 cd conftest 16088 mkdir out 16089 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16090 16091 lt_compiler_flag="-o out/conftest2.$ac_objext" 16092 # Insert the option either (1) after the last *FLAGS variable, or 16093 # (2) before a word containing "conftest.", or (3) at the end. 16094 # Note that $ac_compile itself does not contain backslashes and begins 16095 # with a dollar sign (not a hyphen), so the echo should work correctly. 16096 lt_compile=`echo "$ac_compile" | $SED \ 16097 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16098 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16099 -e 's:$: $lt_compiler_flag:'` 16100 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16101 (eval "$lt_compile" 2>out/conftest.err) 16102 ac_status=$? 16103 cat out/conftest.err >&5 16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16105 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16106 then 16107 # The compiler can only warn and ignore the option if not recognized 16108 # So say no if there are warnings 16109 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16110 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16111 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16112 lt_cv_prog_compiler_c_o_CXX=yes 16113 fi 16114 fi 16115 chmod u+w . 2>&5 16116 $RM conftest* 16117 # SGI C++ compiler will create directory out/ii_files/ for 16118 # template instantiation 16119 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16120 $RM out/* && rmdir out 16121 cd .. 16122 $RM -r conftest 16123 $RM conftest* 16124 16125fi 16126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 16127$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 16128 16129 16130 16131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16132$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16133if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 16134 $as_echo_n "(cached) " >&6 16135else 16136 lt_cv_prog_compiler_c_o_CXX=no 16137 $RM -r conftest 2>/dev/null 16138 mkdir conftest 16139 cd conftest 16140 mkdir out 16141 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16142 16143 lt_compiler_flag="-o out/conftest2.$ac_objext" 16144 # Insert the option either (1) after the last *FLAGS variable, or 16145 # (2) before a word containing "conftest.", or (3) at the end. 16146 # Note that $ac_compile itself does not contain backslashes and begins 16147 # with a dollar sign (not a hyphen), so the echo should work correctly. 16148 lt_compile=`echo "$ac_compile" | $SED \ 16149 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16150 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16151 -e 's:$: $lt_compiler_flag:'` 16152 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16153 (eval "$lt_compile" 2>out/conftest.err) 16154 ac_status=$? 16155 cat out/conftest.err >&5 16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16157 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16158 then 16159 # The compiler can only warn and ignore the option if not recognized 16160 # So say no if there are warnings 16161 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16162 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16163 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16164 lt_cv_prog_compiler_c_o_CXX=yes 16165 fi 16166 fi 16167 chmod u+w . 2>&5 16168 $RM conftest* 16169 # SGI C++ compiler will create directory out/ii_files/ for 16170 # template instantiation 16171 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16172 $RM out/* && rmdir out 16173 cd .. 16174 $RM -r conftest 16175 $RM conftest* 16176 16177fi 16178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 16179$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 16180 16181 16182 16183 16184hard_links=nottested 16185if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 16186 # do not overwrite the value of need_locks provided by the user 16187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 16188$as_echo_n "checking if we can lock with hard links... " >&6; } 16189 hard_links=yes 16190 $RM conftest* 16191 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16192 touch conftest.a 16193 ln conftest.a conftest.b 2>&5 || hard_links=no 16194 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 16196$as_echo "$hard_links" >&6; } 16197 if test no = "$hard_links"; then 16198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 16199$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 16200 need_locks=warn 16201 fi 16202else 16203 need_locks=no 16204fi 16205 16206 16207 16208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16209$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16210 16211 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16212 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16213 case $host_os in 16214 aix[4-9]*) 16215 # If we're using GNU nm, then we don't want the "-C" option. 16216 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 16217 # Without the "-l" option, or with the "-B" option, AIX nm treats 16218 # weak defined symbols like other global defined symbols, whereas 16219 # GNU nm marks them as "W". 16220 # While the 'weak' keyword is ignored in the Export File, we need 16221 # it in the Import File for the 'aix-soname' feature, so we have 16222 # to replace the "-B" option with "-P" for AIX nm. 16223 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 16224 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' 16225 else 16226 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' 16227 fi 16228 ;; 16229 pw32*) 16230 export_symbols_cmds_CXX=$ltdll_cmds 16231 ;; 16232 cygwin* | mingw* | cegcc*) 16233 case $cc_basename in 16234 cl*) 16235 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16236 ;; 16237 *) 16238 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' 16239 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 16240 ;; 16241 esac 16242 ;; 16243 *) 16244 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16245 ;; 16246 esac 16247 16248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 16249$as_echo "$ld_shlibs_CXX" >&6; } 16250test no = "$ld_shlibs_CXX" && can_build_shared=no 16251 16252with_gnu_ld_CXX=$with_gnu_ld 16253 16254 16255 16256 16257 16258 16259# 16260# Do we need to explicitly link libc? 16261# 16262case "x$archive_cmds_need_lc_CXX" in 16263x|xyes) 16264 # Assume -lc should be added 16265 archive_cmds_need_lc_CXX=yes 16266 16267 if test yes,yes = "$GCC,$enable_shared"; then 16268 case $archive_cmds_CXX in 16269 *'~'*) 16270 # FIXME: we may have to deal with multi-command sequences. 16271 ;; 16272 '$CC '*) 16273 # Test whether the compiler implicitly links with -lc since on some 16274 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16275 # to ld, don't add -lc before -lgcc. 16276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16277$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16278if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 16279 $as_echo_n "(cached) " >&6 16280else 16281 $RM conftest* 16282 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16283 16284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16285 (eval $ac_compile) 2>&5 16286 ac_status=$? 16287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16288 test $ac_status = 0; } 2>conftest.err; then 16289 soname=conftest 16290 lib=conftest 16291 libobjs=conftest.$ac_objext 16292 deplibs= 16293 wl=$lt_prog_compiler_wl_CXX 16294 pic_flag=$lt_prog_compiler_pic_CXX 16295 compiler_flags=-v 16296 linker_flags=-v 16297 verstring= 16298 output_objdir=. 16299 libname=conftest 16300 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 16301 allow_undefined_flag_CXX= 16302 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16303 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16304 ac_status=$? 16305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16306 test $ac_status = 0; } 16307 then 16308 lt_cv_archive_cmds_need_lc_CXX=no 16309 else 16310 lt_cv_archive_cmds_need_lc_CXX=yes 16311 fi 16312 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 16313 else 16314 cat conftest.err 1>&5 16315 fi 16316 $RM conftest* 16317 16318fi 16319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 16320$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 16321 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 16322 ;; 16323 esac 16324 fi 16325 ;; 16326esac 16327 16328 16329 16330 16331 16332 16333 16334 16335 16336 16337 16338 16339 16340 16341 16342 16343 16344 16345 16346 16347 16348 16349 16350 16351 16352 16353 16354 16355 16356 16357 16358 16359 16360 16361 16362 16363 16364 16365 16366 16367 16368 16369 16370 16371 16372 16373 16374 16375 16376 16377 16378 16379 16380 16381 16382 16383 16384 16385 16386 16387 16388 16389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16390$as_echo_n "checking dynamic linker characteristics... " >&6; } 16391 16392library_names_spec= 16393libname_spec='lib$name' 16394soname_spec= 16395shrext_cmds=.so 16396postinstall_cmds= 16397postuninstall_cmds= 16398finish_cmds= 16399finish_eval= 16400shlibpath_var= 16401shlibpath_overrides_runpath=unknown 16402version_type=none 16403dynamic_linker="$host_os ld.so" 16404sys_lib_dlsearch_path_spec="/lib /usr/lib" 16405need_lib_prefix=unknown 16406hardcode_into_libs=no 16407 16408# when you set need_version to no, make sure it does not cause -set_version 16409# flags to be left without arguments 16410need_version=unknown 16411 16412 16413 16414case $host_os in 16415aix3*) 16416 version_type=linux # correct to gnu/linux during the next big refactor 16417 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 16418 shlibpath_var=LIBPATH 16419 16420 # AIX 3 has no versioning support, so we append a major version to the name. 16421 soname_spec='$libname$release$shared_ext$major' 16422 ;; 16423 16424aix[4-9]*) 16425 version_type=linux # correct to gnu/linux during the next big refactor 16426 need_lib_prefix=no 16427 need_version=no 16428 hardcode_into_libs=yes 16429 if test ia64 = "$host_cpu"; then 16430 # AIX 5 supports IA64 16431 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 16432 shlibpath_var=LD_LIBRARY_PATH 16433 else 16434 # With GCC up to 2.95.x, collect2 would create an import file 16435 # for dependence libraries. The import file would start with 16436 # the line '#! .'. This would cause the generated library to 16437 # depend on '.', always an invalid library. This was fixed in 16438 # development snapshots of GCC prior to 3.0. 16439 case $host_os in 16440 aix4 | aix4.[01] | aix4.[01].*) 16441 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16442 echo ' yes ' 16443 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 16444 : 16445 else 16446 can_build_shared=no 16447 fi 16448 ;; 16449 esac 16450 # Using Import Files as archive members, it is possible to support 16451 # filename-based versioning of shared library archives on AIX. While 16452 # this would work for both with and without runtime linking, it will 16453 # prevent static linking of such archives. So we do filename-based 16454 # shared library versioning with .so extension only, which is used 16455 # when both runtime linking and shared linking is enabled. 16456 # Unfortunately, runtime linking may impact performance, so we do 16457 # not want this to be the default eventually. Also, we use the 16458 # versioned .so libs for executables only if there is the -brtl 16459 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 16460 # To allow for filename-based versioning support, we need to create 16461 # libNAME.so.V as an archive file, containing: 16462 # *) an Import File, referring to the versioned filename of the 16463 # archive as well as the shared archive member, telling the 16464 # bitwidth (32 or 64) of that shared object, and providing the 16465 # list of exported symbols of that shared object, eventually 16466 # decorated with the 'weak' keyword 16467 # *) the shared object with the F_LOADONLY flag set, to really avoid 16468 # it being seen by the linker. 16469 # At run time we better use the real file rather than another symlink, 16470 # but for link time we create the symlink libNAME.so -> libNAME.so.V 16471 16472 case $with_aix_soname,$aix_use_runtimelinking in 16473 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 16474 # soname into executable. Probably we can add versioning support to 16475 # collect2, so additional links can be useful in future. 16476 aix,yes) # traditional libtool 16477 dynamic_linker='AIX unversionable lib.so' 16478 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16479 # instead of lib<name>.a to let people know that these are not 16480 # typical AIX shared libraries. 16481 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16482 ;; 16483 aix,no) # traditional AIX only 16484 dynamic_linker='AIX lib.a(lib.so.V)' 16485 # We preserve .a as extension for shared libraries through AIX4.2 16486 # and later when we are not doing run time linking. 16487 library_names_spec='$libname$release.a $libname.a' 16488 soname_spec='$libname$release$shared_ext$major' 16489 ;; 16490 svr4,*) # full svr4 only 16491 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 16492 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16493 # We do not specify a path in Import Files, so LIBPATH fires. 16494 shlibpath_overrides_runpath=yes 16495 ;; 16496 *,yes) # both, prefer svr4 16497 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 16498 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16499 # unpreferred sharedlib libNAME.a needs extra handling 16500 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"' 16501 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"' 16502 # We do not specify a path in Import Files, so LIBPATH fires. 16503 shlibpath_overrides_runpath=yes 16504 ;; 16505 *,no) # both, prefer aix 16506 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 16507 library_names_spec='$libname$release.a $libname.a' 16508 soname_spec='$libname$release$shared_ext$major' 16509 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 16510 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)' 16511 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"' 16512 ;; 16513 esac 16514 shlibpath_var=LIBPATH 16515 fi 16516 ;; 16517 16518amigaos*) 16519 case $host_cpu in 16520 powerpc) 16521 # Since July 2007 AmigaOS4 officially supports .so libraries. 16522 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 16523 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16524 ;; 16525 m68k) 16526 library_names_spec='$libname.ixlibrary $libname.a' 16527 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16528 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' 16529 ;; 16530 esac 16531 ;; 16532 16533beos*) 16534 library_names_spec='$libname$shared_ext' 16535 dynamic_linker="$host_os ld.so" 16536 shlibpath_var=LIBRARY_PATH 16537 ;; 16538 16539bsdi[45]*) 16540 version_type=linux # correct to gnu/linux during the next big refactor 16541 need_version=no 16542 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16543 soname_spec='$libname$release$shared_ext$major' 16544 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16545 shlibpath_var=LD_LIBRARY_PATH 16546 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /Users/mhorn/Projekte/foreign/homebrew/lib" 16547 sys_lib_dlsearch_path_spec="/shlib /usr/lib /Users/mhorn/Projekte/foreign/homebrew/lib" 16548 # the default ld.so.conf also contains /usr/contrib/lib and 16549 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16550 # libtool to hard-code these into programs 16551 ;; 16552 16553cygwin* | mingw* | pw32* | cegcc*) 16554 version_type=windows 16555 shrext_cmds=.dll 16556 need_version=no 16557 need_lib_prefix=no 16558 16559 case $GCC,$cc_basename in 16560 yes,*) 16561 # gcc 16562 library_names_spec='$libname.dll.a' 16563 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16564 postinstall_cmds='base_file=`basename \$file`~ 16565 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16566 dldir=$destdir/`dirname \$dlpath`~ 16567 test -d \$dldir || mkdir -p \$dldir~ 16568 $install_prog $dir/$dlname \$dldir/$dlname~ 16569 chmod a+x \$dldir/$dlname~ 16570 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16571 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16572 fi' 16573 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16574 dlpath=$dir/\$dldll~ 16575 $RM \$dlpath' 16576 shlibpath_overrides_runpath=yes 16577 16578 case $host_os in 16579 cygwin*) 16580 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16581 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16582 16583 ;; 16584 mingw* | cegcc*) 16585 # MinGW DLLs use traditional 'lib' prefix 16586 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16587 ;; 16588 pw32*) 16589 # pw32 DLLs use 'pw' prefix rather than 'lib' 16590 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16591 ;; 16592 esac 16593 dynamic_linker='Win32 ld.exe' 16594 ;; 16595 16596 *,cl*) 16597 # Native MSVC 16598 libname_spec='$name' 16599 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16600 library_names_spec='$libname.dll.lib' 16601 16602 case $build_os in 16603 mingw*) 16604 sys_lib_search_path_spec= 16605 lt_save_ifs=$IFS 16606 IFS=';' 16607 for lt_path in $LIB 16608 do 16609 IFS=$lt_save_ifs 16610 # Let DOS variable expansion print the short 8.3 style file name. 16611 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 16612 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 16613 done 16614 IFS=$lt_save_ifs 16615 # Convert to MSYS style. 16616 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 16617 ;; 16618 cygwin*) 16619 # Convert to unix form, then to dos form, then back to unix form 16620 # but this time dos style (no spaces!) so that the unix form looks 16621 # like /cygdrive/c/PROGRA~1:/cygdr... 16622 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 16623 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 16624 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16625 ;; 16626 *) 16627 sys_lib_search_path_spec=$LIB 16628 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 16629 # It is most probably a Windows format PATH. 16630 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16631 else 16632 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16633 fi 16634 # FIXME: find the short name or the path components, as spaces are 16635 # common. (e.g. "Program Files" -> "PROGRA~1") 16636 ;; 16637 esac 16638 16639 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16640 postinstall_cmds='base_file=`basename \$file`~ 16641 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16642 dldir=$destdir/`dirname \$dlpath`~ 16643 test -d \$dldir || mkdir -p \$dldir~ 16644 $install_prog $dir/$dlname \$dldir/$dlname' 16645 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16646 dlpath=$dir/\$dldll~ 16647 $RM \$dlpath' 16648 shlibpath_overrides_runpath=yes 16649 dynamic_linker='Win32 link.exe' 16650 ;; 16651 16652 *) 16653 # Assume MSVC wrapper 16654 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 16655 dynamic_linker='Win32 ld.exe' 16656 ;; 16657 esac 16658 # FIXME: first we should search . and the directory the executable is in 16659 shlibpath_var=PATH 16660 ;; 16661 16662darwin* | rhapsody*) 16663 dynamic_linker="$host_os dyld" 16664 version_type=darwin 16665 need_lib_prefix=no 16666 need_version=no 16667 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 16668 soname_spec='$libname$release$major$shared_ext' 16669 shlibpath_overrides_runpath=yes 16670 shlibpath_var=DYLD_LIBRARY_PATH 16671 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16672 16673 sys_lib_dlsearch_path_spec='/Users/mhorn/Projekte/foreign/homebrew/lib /lib /usr/lib' 16674 ;; 16675 16676dgux*) 16677 version_type=linux # correct to gnu/linux during the next big refactor 16678 need_lib_prefix=no 16679 need_version=no 16680 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16681 soname_spec='$libname$release$shared_ext$major' 16682 shlibpath_var=LD_LIBRARY_PATH 16683 ;; 16684 16685freebsd* | dragonfly*) 16686 # DragonFly does not have aout. When/if they implement a new 16687 # versioning mechanism, adjust this. 16688 if test -x /usr/bin/objformat; then 16689 objformat=`/usr/bin/objformat` 16690 else 16691 case $host_os in 16692 freebsd[23].*) objformat=aout ;; 16693 *) objformat=elf ;; 16694 esac 16695 fi 16696 version_type=freebsd-$objformat 16697 case $version_type in 16698 freebsd-elf*) 16699 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16700 soname_spec='$libname$release$shared_ext$major' 16701 need_version=no 16702 need_lib_prefix=no 16703 ;; 16704 freebsd-*) 16705 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16706 need_version=yes 16707 ;; 16708 esac 16709 shlibpath_var=LD_LIBRARY_PATH 16710 case $host_os in 16711 freebsd2.*) 16712 shlibpath_overrides_runpath=yes 16713 ;; 16714 freebsd3.[01]* | freebsdelf3.[01]*) 16715 shlibpath_overrides_runpath=yes 16716 hardcode_into_libs=yes 16717 ;; 16718 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16719 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16720 shlibpath_overrides_runpath=no 16721 hardcode_into_libs=yes 16722 ;; 16723 *) # from 4.6 on, and DragonFly 16724 shlibpath_overrides_runpath=yes 16725 hardcode_into_libs=yes 16726 ;; 16727 esac 16728 ;; 16729 16730haiku*) 16731 version_type=linux # correct to gnu/linux during the next big refactor 16732 need_lib_prefix=no 16733 need_version=no 16734 dynamic_linker="$host_os runtime_loader" 16735 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16736 soname_spec='$libname$release$shared_ext$major' 16737 shlibpath_var=LIBRARY_PATH 16738 shlibpath_overrides_runpath=no 16739 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16740 hardcode_into_libs=yes 16741 ;; 16742 16743hpux9* | hpux10* | hpux11*) 16744 # Give a soname corresponding to the major version so that dld.sl refuses to 16745 # link against other versions. 16746 version_type=sunos 16747 need_lib_prefix=no 16748 need_version=no 16749 case $host_cpu in 16750 ia64*) 16751 shrext_cmds='.so' 16752 hardcode_into_libs=yes 16753 dynamic_linker="$host_os dld.so" 16754 shlibpath_var=LD_LIBRARY_PATH 16755 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16756 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16757 soname_spec='$libname$release$shared_ext$major' 16758 if test 32 = "$HPUX_IA64_MODE"; then 16759 sys_lib_search_path_spec="/usr/lib/hpux32 /Users/mhorn/Projekte/foreign/homebrew/lib/hpux32 /Users/mhorn/Projekte/foreign/homebrew/lib" 16760 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 16761 else 16762 sys_lib_search_path_spec="/usr/lib/hpux64 /Users/mhorn/Projekte/foreign/homebrew/lib/hpux64" 16763 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 16764 fi 16765 ;; 16766 hppa*64*) 16767 shrext_cmds='.sl' 16768 hardcode_into_libs=yes 16769 dynamic_linker="$host_os dld.sl" 16770 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16771 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16772 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16773 soname_spec='$libname$release$shared_ext$major' 16774 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16775 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16776 ;; 16777 *) 16778 shrext_cmds='.sl' 16779 dynamic_linker="$host_os dld.sl" 16780 shlibpath_var=SHLIB_PATH 16781 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16782 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16783 soname_spec='$libname$release$shared_ext$major' 16784 ;; 16785 esac 16786 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16787 postinstall_cmds='chmod 555 $lib' 16788 # or fails outright, so override atomically: 16789 install_override_mode=555 16790 ;; 16791 16792interix[3-9]*) 16793 version_type=linux # correct to gnu/linux during the next big refactor 16794 need_lib_prefix=no 16795 need_version=no 16796 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16797 soname_spec='$libname$release$shared_ext$major' 16798 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16799 shlibpath_var=LD_LIBRARY_PATH 16800 shlibpath_overrides_runpath=no 16801 hardcode_into_libs=yes 16802 ;; 16803 16804irix5* | irix6* | nonstopux*) 16805 case $host_os in 16806 nonstopux*) version_type=nonstopux ;; 16807 *) 16808 if test yes = "$lt_cv_prog_gnu_ld"; then 16809 version_type=linux # correct to gnu/linux during the next big refactor 16810 else 16811 version_type=irix 16812 fi ;; 16813 esac 16814 need_lib_prefix=no 16815 need_version=no 16816 soname_spec='$libname$release$shared_ext$major' 16817 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 16818 case $host_os in 16819 irix5* | nonstopux*) 16820 libsuff= shlibsuff= 16821 ;; 16822 *) 16823 case $LD in # libtool.m4 will add one of these switches to LD 16824 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16825 libsuff= shlibsuff= libmagic=32-bit;; 16826 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16827 libsuff=32 shlibsuff=N32 libmagic=N32;; 16828 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16829 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16830 *) libsuff= shlibsuff= libmagic=never-match;; 16831 esac 16832 ;; 16833 esac 16834 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16835 shlibpath_overrides_runpath=no 16836 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /Users/mhorn/Projekte/foreign/homebrew/lib$libsuff" 16837 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 16838 hardcode_into_libs=yes 16839 ;; 16840 16841# No shared lib support for Linux oldld, aout, or coff. 16842linux*oldld* | linux*aout* | linux*coff*) 16843 dynamic_linker=no 16844 ;; 16845 16846linux*android*) 16847 version_type=none # Android doesn't support versioned libraries. 16848 need_lib_prefix=no 16849 need_version=no 16850 library_names_spec='$libname$release$shared_ext' 16851 soname_spec='$libname$release$shared_ext' 16852 finish_cmds= 16853 shlibpath_var=LD_LIBRARY_PATH 16854 shlibpath_overrides_runpath=yes 16855 16856 # This implies no fast_install, which is unacceptable. 16857 # Some rework will be needed to allow for fast_install 16858 # before this can be enabled. 16859 hardcode_into_libs=yes 16860 16861 dynamic_linker='Android linker' 16862 # Don't embed -rpath directories since the linker doesn't support them. 16863 hardcode_libdir_flag_spec_CXX='-L$libdir' 16864 ;; 16865 16866# This must be glibc/ELF. 16867linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16868 version_type=linux # correct to gnu/linux during the next big refactor 16869 need_lib_prefix=no 16870 need_version=no 16871 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16872 soname_spec='$libname$release$shared_ext$major' 16873 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16874 shlibpath_var=LD_LIBRARY_PATH 16875 shlibpath_overrides_runpath=no 16876 16877 # Some binutils ld are patched to set DT_RUNPATH 16878 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 16879 $as_echo_n "(cached) " >&6 16880else 16881 lt_cv_shlibpath_overrides_runpath=no 16882 save_LDFLAGS=$LDFLAGS 16883 save_libdir=$libdir 16884 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 16885 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 16886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16887/* end confdefs.h. */ 16888 16889int 16890main () 16891{ 16892 16893 ; 16894 return 0; 16895} 16896_ACEOF 16897if ac_fn_cxx_try_link "$LINENO"; then : 16898 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16899 lt_cv_shlibpath_overrides_runpath=yes 16900fi 16901fi 16902rm -f core conftest.err conftest.$ac_objext \ 16903 conftest$ac_exeext conftest.$ac_ext 16904 LDFLAGS=$save_LDFLAGS 16905 libdir=$save_libdir 16906 16907fi 16908 16909 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16910 16911 # This implies no fast_install, which is unacceptable. 16912 # Some rework will be needed to allow for fast_install 16913 # before this can be enabled. 16914 hardcode_into_libs=yes 16915 16916 # Ideally, we could use ldconfig to report *all* directores which are 16917 # searched for libraries, however this is still not possible. Aside from not 16918 # being certain /sbin/ldconfig is available, command 16919 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 16920 # even though it is searched at run-time. Try to do the best guess by 16921 # appending ld.so.conf contents (and includes) to the search path. 16922 if test -f /etc/ld.so.conf; then 16923 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' ' '` 16924 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16925 fi 16926 16927 # We used to test for /lib/ld.so.1 and disable shared libraries on 16928 # powerpc, because MkLinux only supported shared libraries with the 16929 # GNU dynamic linker. Since this was broken with cross compilers, 16930 # most powerpc-linux boxes support dynamic linking these days and 16931 # people can always --disable-shared, the test was removed, and we 16932 # assume the GNU/Linux dynamic linker is in use. 16933 dynamic_linker='GNU/Linux ld.so' 16934 ;; 16935 16936netbsd*) 16937 version_type=sunos 16938 need_lib_prefix=no 16939 need_version=no 16940 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16941 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16942 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16943 dynamic_linker='NetBSD (a.out) ld.so' 16944 else 16945 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16946 soname_spec='$libname$release$shared_ext$major' 16947 dynamic_linker='NetBSD ld.elf_so' 16948 fi 16949 shlibpath_var=LD_LIBRARY_PATH 16950 shlibpath_overrides_runpath=yes 16951 hardcode_into_libs=yes 16952 ;; 16953 16954newsos6) 16955 version_type=linux # correct to gnu/linux during the next big refactor 16956 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16957 shlibpath_var=LD_LIBRARY_PATH 16958 shlibpath_overrides_runpath=yes 16959 ;; 16960 16961*nto* | *qnx*) 16962 version_type=qnx 16963 need_lib_prefix=no 16964 need_version=no 16965 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16966 soname_spec='$libname$release$shared_ext$major' 16967 shlibpath_var=LD_LIBRARY_PATH 16968 shlibpath_overrides_runpath=no 16969 hardcode_into_libs=yes 16970 dynamic_linker='ldqnx.so' 16971 ;; 16972 16973openbsd* | bitrig*) 16974 version_type=sunos 16975 sys_lib_dlsearch_path_spec=/usr/lib 16976 need_lib_prefix=no 16977 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16978 need_version=no 16979 else 16980 need_version=yes 16981 fi 16982 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16983 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16984 shlibpath_var=LD_LIBRARY_PATH 16985 shlibpath_overrides_runpath=yes 16986 ;; 16987 16988os2*) 16989 libname_spec='$name' 16990 version_type=windows 16991 shrext_cmds=.dll 16992 need_version=no 16993 need_lib_prefix=no 16994 # OS/2 can only load a DLL with a base name of 8 characters or less. 16995 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 16996 v=$($ECHO $release$versuffix | tr -d .-); 16997 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 16998 $ECHO $n$v`$shared_ext' 16999 library_names_spec='${libname}_dll.$libext' 17000 dynamic_linker='OS/2 ld.exe' 17001 shlibpath_var=BEGINLIBPATH 17002 sys_lib_search_path_spec="/lib /usr/lib /Users/mhorn/Projekte/foreign/homebrew/lib" 17003 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17004 postinstall_cmds='base_file=`basename \$file`~ 17005 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 17006 dldir=$destdir/`dirname \$dlpath`~ 17007 test -d \$dldir || mkdir -p \$dldir~ 17008 $install_prog $dir/$dlname \$dldir/$dlname~ 17009 chmod a+x \$dldir/$dlname~ 17010 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17011 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17012 fi' 17013 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 17014 dlpath=$dir/\$dldll~ 17015 $RM \$dlpath' 17016 ;; 17017 17018osf3* | osf4* | osf5*) 17019 version_type=osf 17020 need_lib_prefix=no 17021 need_version=no 17022 soname_spec='$libname$release$shared_ext$major' 17023 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17024 shlibpath_var=LD_LIBRARY_PATH 17025 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /Users/mhorn/Projekte/foreign/homebrew/lib /var/shlib" 17026 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17027 ;; 17028 17029rdos*) 17030 dynamic_linker=no 17031 ;; 17032 17033solaris*) 17034 version_type=linux # correct to gnu/linux during the next big refactor 17035 need_lib_prefix=no 17036 need_version=no 17037 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17038 soname_spec='$libname$release$shared_ext$major' 17039 shlibpath_var=LD_LIBRARY_PATH 17040 shlibpath_overrides_runpath=yes 17041 hardcode_into_libs=yes 17042 # ldd complains unless libraries are executable 17043 postinstall_cmds='chmod +x $lib' 17044 ;; 17045 17046sunos4*) 17047 version_type=sunos 17048 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17049 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17050 shlibpath_var=LD_LIBRARY_PATH 17051 shlibpath_overrides_runpath=yes 17052 if test yes = "$with_gnu_ld"; then 17053 need_lib_prefix=no 17054 fi 17055 need_version=yes 17056 ;; 17057 17058sysv4 | sysv4.3*) 17059 version_type=linux # correct to gnu/linux during the next big refactor 17060 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17061 soname_spec='$libname$release$shared_ext$major' 17062 shlibpath_var=LD_LIBRARY_PATH 17063 case $host_vendor in 17064 sni) 17065 shlibpath_overrides_runpath=no 17066 need_lib_prefix=no 17067 runpath_var=LD_RUN_PATH 17068 ;; 17069 siemens) 17070 need_lib_prefix=no 17071 ;; 17072 motorola) 17073 need_lib_prefix=no 17074 need_version=no 17075 shlibpath_overrides_runpath=no 17076 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17077 ;; 17078 esac 17079 ;; 17080 17081sysv4*MP*) 17082 if test -d /usr/nec; then 17083 version_type=linux # correct to gnu/linux during the next big refactor 17084 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 17085 soname_spec='$libname$shared_ext.$major' 17086 shlibpath_var=LD_LIBRARY_PATH 17087 fi 17088 ;; 17089 17090sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17091 version_type=sco 17092 need_lib_prefix=no 17093 need_version=no 17094 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 17095 soname_spec='$libname$release$shared_ext$major' 17096 shlibpath_var=LD_LIBRARY_PATH 17097 shlibpath_overrides_runpath=yes 17098 hardcode_into_libs=yes 17099 if test yes = "$with_gnu_ld"; then 17100 sys_lib_search_path_spec='/Users/mhorn/Projekte/foreign/homebrew/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17101 else 17102 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17103 case $host_os in 17104 sco3.2v5*) 17105 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17106 ;; 17107 esac 17108 fi 17109 sys_lib_dlsearch_path_spec='/usr/lib' 17110 ;; 17111 17112tpf*) 17113 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 17114 version_type=linux # correct to gnu/linux during the next big refactor 17115 need_lib_prefix=no 17116 need_version=no 17117 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17118 shlibpath_var=LD_LIBRARY_PATH 17119 shlibpath_overrides_runpath=no 17120 hardcode_into_libs=yes 17121 ;; 17122 17123uts4*) 17124 version_type=linux # correct to gnu/linux during the next big refactor 17125 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17126 soname_spec='$libname$release$shared_ext$major' 17127 shlibpath_var=LD_LIBRARY_PATH 17128 ;; 17129 17130*) 17131 dynamic_linker=no 17132 ;; 17133esac 17134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 17135$as_echo "$dynamic_linker" >&6; } 17136test no = "$dynamic_linker" && can_build_shared=no 17137 17138variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17139if test yes = "$GCC"; then 17140 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17141fi 17142 17143if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 17144 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 17145fi 17146 17147if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 17148 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 17149fi 17150 17151# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 17152configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 17153 17154# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 17155func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 17156 17157# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 17158configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 17159 17160 17161 17162 17163 17164 17165 17166 17167 17168 17169 17170 17171 17172 17173 17174 17175 17176 17177 17178 17179 17180 17181 17182 17183 17184 17185 17186 17187 17188 17189 17190 17191 17192 17193 17194 17195 17196 17197 17198 17199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 17200$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 17201hardcode_action_CXX= 17202if test -n "$hardcode_libdir_flag_spec_CXX" || 17203 test -n "$runpath_var_CXX" || 17204 test yes = "$hardcode_automatic_CXX"; then 17205 17206 # We can hardcode non-existent directories. 17207 if test no != "$hardcode_direct_CXX" && 17208 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17209 # have to relink, otherwise we might link with an installed library 17210 # when we should be linking with a yet-to-be-installed one 17211 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 17212 test no != "$hardcode_minus_L_CXX"; then 17213 # Linking always hardcodes the temporary library directory. 17214 hardcode_action_CXX=relink 17215 else 17216 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17217 hardcode_action_CXX=immediate 17218 fi 17219else 17220 # We cannot hardcode anything, or else we can only hardcode existing 17221 # directories. 17222 hardcode_action_CXX=unsupported 17223fi 17224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 17225$as_echo "$hardcode_action_CXX" >&6; } 17226 17227if test relink = "$hardcode_action_CXX" || 17228 test yes = "$inherit_rpath_CXX"; then 17229 # Fast installation is not supported 17230 enable_fast_install=no 17231elif test yes = "$shlibpath_overrides_runpath" || 17232 test no = "$enable_shared"; then 17233 # Fast installation is not necessary 17234 enable_fast_install=needless 17235fi 17236 17237 17238 17239 17240 17241 17242 17243 fi # test -n "$compiler" 17244 17245 CC=$lt_save_CC 17246 CFLAGS=$lt_save_CFLAGS 17247 LDCXX=$LD 17248 LD=$lt_save_LD 17249 GCC=$lt_save_GCC 17250 with_gnu_ld=$lt_save_with_gnu_ld 17251 lt_cv_path_LDCXX=$lt_cv_path_LD 17252 lt_cv_path_LD=$lt_save_path_LD 17253 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 17254 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 17255fi # test yes != "$_lt_caught_CXX_error" 17256 17257ac_ext=cpp 17258ac_cpp='$CXXCPP $CPPFLAGS' 17259ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17260ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17261ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17262 17263 17264 17265 17266 17267 17268 17269 17270 17271 17272 17273 17274 17275 17276 17277 ac_config_commands="$ac_config_commands libtool" 17278 17279 17280 17281 17282# Only expand once: 17283 17284 17285 17286 17287 ac_ext=c 17288ac_cpp='$CPP $CPPFLAGS' 17289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17291ac_compiler_gnu=$ac_cv_c_compiler_gnu 17292 17293 17294 # Make sure CDPATH is portably set to a sensible value 17295 CDPATH=${ZSH_VERSION+.}: 17296 17297 GAP_CPPFLAGS="" 17298 17299 ###################################### 17300 # Find the GAP root directory by 17301 # checking for the sysinfo.gap file 17302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GAP root directory" >&5 17303$as_echo_n "checking for GAP root directory... " >&6; } 17304 GAPROOT="../.." 17305 17306 #Allow the user to specify the location of GAP 17307 # 17308 17309# Check whether --with-gaproot was given. 17310if test "${with_gaproot+set}" = set; then : 17311 withval=$with_gaproot; GAPROOT="$withval" 17312fi 17313 17314 17315 # Convert the path to absolute 17316 GAPROOT=`cd $GAPROOT > /dev/null 2>&1 && pwd` 17317 17318 if test -e ${GAPROOT}/sysinfo.gap; then 17319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${GAPROOT}" >&5 17320$as_echo "${GAPROOT}" >&6; } 17321 else 17322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 17323$as_echo "Not found" >&6; } 17324 17325 echo "" 17326 echo "********************************************************************" 17327 echo " ERROR" 17328 echo "" 17329 echo " Cannot find your GAP installation. Please specify the location of" 17330 echo " GAP's root directory using --with-gaproot=<path>" 17331 echo "" 17332 echo " The GAP root directory (as far as this package is concerned) is" 17333 echo " the one containing the file sysinfo.gap" 17334 echo "********************************************************************" 17335 echo "" 17336 17337 as_fn_error $? "Unable to find GAP root directory" "$LINENO" 5 17338 fi 17339 17340 ##################################### 17341 # Now find the architecture 17342 17343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GAP architecture" >&5 17344$as_echo_n "checking for GAP architecture... " >&6; } 17345 GAPARCH="Unknown" 17346 . $GAPROOT/sysinfo.gap 17347 if test "x$GAParch" != "x"; then 17348 GAPARCH=$GAParch 17349 fi 17350 17351 if test "x$GAPARCH" = "xUnknown" ; then 17352 echo "" 17353 echo "********************************************************************" 17354 echo " ERROR" 17355 echo "" 17356 echo " Found a GAP installation at $GAPROOT but could not find" 17357 echo " information about GAP's architecture in the file" 17358 echo " ${GAPROOT}/sysinfo.gap ." 17359 echo " This file should be present: please check your GAP installation." 17360 echo "********************************************************************" 17361 echo "" 17362 17363 as_fn_error $? "Unable to find plausible GAParch information." "$LINENO" 5 17364 fi 17365 17366 17367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GAP >= 4.9" >&5 17368$as_echo_n "checking for GAP >= 4.9... " >&6; } 17369 # test if this GAP >= 4.9 17370 if test "x$GAP_CPPFLAGS" != x; then 17371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17372$as_echo "yes" >&6; } 17373 else 17374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17375$as_echo "no" >&6; } 17376 ##################################### 17377 # Now check for the GAP header files 17378 17379 bad=0 17380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GAP include files" >&5 17381$as_echo_n "checking for GAP include files... " >&6; } 17382 if test -r $GAPROOT/src/compiled.h; then 17383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GAPROOT/src/compiled.h" >&5 17384$as_echo "$GAPROOT/src/compiled.h" >&6; } 17385 else 17386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 17387$as_echo "Not found" >&6; } 17388 bad=1 17389 fi 17390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GAP config.h" >&5 17391$as_echo_n "checking for GAP config.h... " >&6; } 17392 if test -r $GAPROOT/bin/$GAPARCH/config.h; then 17393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GAPROOT/bin/$GAPARCH/config.h" >&5 17394$as_echo "$GAPROOT/bin/$GAPARCH/config.h" >&6; } 17395 else 17396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5 17397$as_echo "Not found" >&6; } 17398 bad=1 17399 fi 17400 17401 if test "x$bad" = "x1"; then 17402 echo "" 17403 echo "********************************************************************" 17404 echo " ERROR" 17405 echo "" 17406 echo " Failed to find the GAP source header files in src/ and" 17407 echo " GAP's config.h in the architecture dependend directory" 17408 echo "" 17409 echo " The kernel build process expects to find the normal GAP " 17410 echo " root directory structure as it is after building GAP itself, and" 17411 echo " in particular the files" 17412 echo " <gaproot>/sysinfo.gap" 17413 echo " <gaproot>/src/<includes>" 17414 echo " and <gaproot>/bin/<architecture>/bin/config.h." 17415 echo " Please make sure that your GAP root directory structure" 17416 echo " conforms to this layout, or give the correct GAP root using" 17417 echo " --with-gaproot=<path>" 17418 echo "********************************************************************" 17419 echo "" 17420 as_fn_error $? "Unable to find GAP include files in /src subdirectory" "$LINENO" 5 17421 fi 17422 17423 ARCHPATH=$GAPROOT/bin/$GAPARCH 17424 GAP_CPPFLAGS="-I$GAPROOT -iquote $GAPROOT/src -I$ARCHPATH" 17425 17426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GAP's gmp.h location" >&5 17427$as_echo_n "checking for GAP's gmp.h location... " >&6; } 17428 if test -r "$ARCHPATH/extern/gmp/include/gmp.h"; then 17429 GAP_CPPFLAGS="$GAP_CPPFLAGS -I$ARCHPATH/extern/gmp/include" 17430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARCHPATH/extern/gmp/include/gmp.h" >&5 17431$as_echo "$ARCHPATH/extern/gmp/include/gmp.h" >&6; } 17432 else 17433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, GAP was compiled without its own GMP" >&5 17434$as_echo "not found, GAP was compiled without its own GMP" >&6; } 17435 fi 17436 fi 17437 17438 17439 17440 17441 17442 17443 17444 17445 ac_ext=cpp 17446ac_cpp='$CXXCPP $CPPFLAGS' 17447ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17448ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17449ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17450 17451 17452 17453 17454 17455# Check whether --with-normaliz was given. 17456if test "${with_normaliz+set}" = set; then : 17457 withval=$with_normaliz; NORMALIZ="$with_normaliz" 17458else 17459 NORMALIZ="$PWD/NormalizInstallDir" 17460 17461fi 17462 17463NORMALIZ_CPPFLAGS="-I$NORMALIZ/include" 17464NORMALIZ_LDPATH="$NORMALIZ/lib" 17465NORMALIZ_LDFLAGS="-L$NORMALIZ_LDPATH" 17466 17467 17468 17469 17470 17471old_CPPFLAGS="$CPPFLAGS" 17472old_LDFLAGS="$LDFLAGS" 17473CPPFLAGS="$CPPFLAGS $NORMALIZ_CPPFLAGS" 17474LDFLAGS="$LDFLAGS $NORMALIZ_LDFLAGS" 17475 17476ac_fn_cxx_check_header_mongrel "$LINENO" "libnormaliz/cone.h" "ac_cv_header_libnormaliz_cone_h" "$ac_includes_default" 17477if test "x$ac_cv_header_libnormaliz_cone_h" = xyes; then : 17478 17479else 17480 as_fn_error $? "could not use libnormaliz/cone.h" "$LINENO" 5 17481fi 17482 17483 17484 17485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Normaliz >= 3.5.4" >&5 17486$as_echo_n "checking for Normaliz >= 3.5.4... " >&6; } 17487cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17488/* end confdefs.h. */ 17489#include "libnormaliz/cone.h" 17490int 17491main () 17492{ 17493#if !defined(NMZ_RELEASE) || NMZ_RELEASE < 30504 17494 #error Normaliz too old 17495 #endif 17496 return 0; 17497 ; 17498 return 0; 17499} 17500_ACEOF 17501if ac_fn_cxx_try_compile "$LINENO"; then : 17502 ac_normaliz=yes 17503else 17504 ac_normaliz=no 17505fi 17506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17507 17508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_normaliz" >&5 17509$as_echo "$ac_normaliz" >&6; } 17510if test "x$ac_normaliz" != "xyes"; then 17511 as_fn_error $? "Normaliz >= 3.5.4 is required" "$LINENO" 5 17512fi 17513CPPFLAGS="$old_CPPFLAGS" 17514LDFLAGS="$old_LDFLAGS" 17515 17516case $host_os in 17517 *cygwin* ) CYGWIN=yes;; 17518 * ) CYGWIN=no;; 17519esac 17520 if test "$CYGWIN" = "yes"; then 17521 SYS_IS_CYGWIN_TRUE= 17522 SYS_IS_CYGWIN_FALSE='#' 17523else 17524 SYS_IS_CYGWIN_TRUE='#' 17525 SYS_IS_CYGWIN_FALSE= 17526fi 17527 17528if test "$CYGWIN" = "yes"; then 17529 17530$as_echo "#define SYS_IS_CYGWIN32 1" >>confdefs.h 17531 17532else 17533 17534$as_echo "#define SYS_IS_CYGWIN32 0" >>confdefs.h 17535 17536fi 17537 17538ac_config_files="$ac_config_files Makefile" 17539 17540cat >confcache <<\_ACEOF 17541# This file is a shell script that caches the results of configure 17542# tests run on this system so they can be shared between configure 17543# scripts and configure runs, see configure's option --config-cache. 17544# It is not useful on other systems. If it contains results you don't 17545# want to keep, you may remove or edit it. 17546# 17547# config.status only pays attention to the cache file if you give it 17548# the --recheck option to rerun configure. 17549# 17550# `ac_cv_env_foo' variables (set or unset) will be overridden when 17551# loading this file, other *unset* `ac_cv_foo' will be assigned the 17552# following values. 17553 17554_ACEOF 17555 17556# The following way of writing the cache mishandles newlines in values, 17557# but we know of no workaround that is simple, portable, and efficient. 17558# So, we kill variables containing newlines. 17559# Ultrix sh set writes to stderr and can't be redirected directly, 17560# and sets the high bit in the cache file unless we assign to the vars. 17561( 17562 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17563 eval ac_val=\$$ac_var 17564 case $ac_val in #( 17565 *${as_nl}*) 17566 case $ac_var in #( 17567 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17568$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17569 esac 17570 case $ac_var in #( 17571 _ | IFS | as_nl) ;; #( 17572 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17573 *) { eval $ac_var=; unset $ac_var;} ;; 17574 esac ;; 17575 esac 17576 done 17577 17578 (set) 2>&1 | 17579 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17580 *${as_nl}ac_space=\ *) 17581 # `set' does not quote correctly, so add quotes: double-quote 17582 # substitution turns \\\\ into \\, and sed turns \\ into \. 17583 sed -n \ 17584 "s/'/'\\\\''/g; 17585 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17586 ;; #( 17587 *) 17588 # `set' quotes correctly as required by POSIX, so do not add quotes. 17589 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17590 ;; 17591 esac | 17592 sort 17593) | 17594 sed ' 17595 /^ac_cv_env_/b end 17596 t clear 17597 :clear 17598 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17599 t end 17600 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17601 :end' >>confcache 17602if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17603 if test -w "$cache_file"; then 17604 if test "x$cache_file" != "x/dev/null"; then 17605 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17606$as_echo "$as_me: updating cache $cache_file" >&6;} 17607 if test ! -f "$cache_file" || test -h "$cache_file"; then 17608 cat confcache >"$cache_file" 17609 else 17610 case $cache_file in #( 17611 */* | ?:*) 17612 mv -f confcache "$cache_file"$$ && 17613 mv -f "$cache_file"$$ "$cache_file" ;; #( 17614 *) 17615 mv -f confcache "$cache_file" ;; 17616 esac 17617 fi 17618 fi 17619 else 17620 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17621$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17622 fi 17623fi 17624rm -f confcache 17625 17626test "x$prefix" = xNONE && prefix=$ac_default_prefix 17627# Let make expand exec_prefix. 17628test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17629 17630DEFS=-DHAVE_CONFIG_H 17631 17632ac_libobjs= 17633ac_ltlibobjs= 17634U= 17635for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17636 # 1. Remove the extension, and $U if already installed. 17637 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17638 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17639 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17640 # will be set to the directory where LIBOBJS objects are built. 17641 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17642 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17643done 17644LIBOBJS=$ac_libobjs 17645 17646LTLIBOBJS=$ac_ltlibobjs 17647 17648 17649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 17650$as_echo_n "checking that generated files are newer than configure... " >&6; } 17651 if test -n "$am_sleep_pid"; then 17652 # Hide warnings about reused PIDs. 17653 wait $am_sleep_pid 2>/dev/null 17654 fi 17655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 17656$as_echo "done" >&6; } 17657 if test -n "$EXEEXT"; then 17658 am__EXEEXT_TRUE= 17659 am__EXEEXT_FALSE='#' 17660else 17661 am__EXEEXT_TRUE='#' 17662 am__EXEEXT_FALSE= 17663fi 17664 17665if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 17666 as_fn_error $? "conditional \"AMDEP\" was never defined. 17667Usually this means the macro was only invoked conditionally." "$LINENO" 5 17668fi 17669if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17670 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17671Usually this means the macro was only invoked conditionally." "$LINENO" 5 17672fi 17673if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 17674 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 17675Usually this means the macro was only invoked conditionally." "$LINENO" 5 17676fi 17677if test -z "${SYS_IS_CYGWIN_TRUE}" && test -z "${SYS_IS_CYGWIN_FALSE}"; then 17678 as_fn_error $? "conditional \"SYS_IS_CYGWIN\" was never defined. 17679Usually this means the macro was only invoked conditionally." "$LINENO" 5 17680fi 17681 17682: "${CONFIG_STATUS=./config.status}" 17683ac_write_fail=0 17684ac_clean_files_save=$ac_clean_files 17685ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17686{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17687$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17688as_write_fail=0 17689cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17690#! $SHELL 17691# Generated by $as_me. 17692# Run this file to recreate the current configuration. 17693# Compiler output produced by configure, useful for debugging 17694# configure, is in config.log if it exists. 17695 17696debug=false 17697ac_cs_recheck=false 17698ac_cs_silent=false 17699 17700SHELL=\${CONFIG_SHELL-$SHELL} 17701export SHELL 17702_ASEOF 17703cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17704## -------------------- ## 17705## M4sh Initialization. ## 17706## -------------------- ## 17707 17708# Be more Bourne compatible 17709DUALCASE=1; export DUALCASE # for MKS sh 17710if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 17711 emulate sh 17712 NULLCMD=: 17713 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17714 # is contrary to our usage. Disable this feature. 17715 alias -g '${1+"$@"}'='"$@"' 17716 setopt NO_GLOB_SUBST 17717else 17718 case `(set -o) 2>/dev/null` in #( 17719 *posix*) : 17720 set -o posix ;; #( 17721 *) : 17722 ;; 17723esac 17724fi 17725 17726 17727as_nl=' 17728' 17729export as_nl 17730# Printing a long string crashes Solaris 7 /usr/bin/printf. 17731as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 17732as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 17733as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 17734# Prefer a ksh shell builtin over an external printf program on Solaris, 17735# but without wasting forks for bash or zsh. 17736if test -z "$BASH_VERSION$ZSH_VERSION" \ 17737 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 17738 as_echo='print -r --' 17739 as_echo_n='print -rn --' 17740elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 17741 as_echo='printf %s\n' 17742 as_echo_n='printf %s' 17743else 17744 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 17745 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 17746 as_echo_n='/usr/ucb/echo -n' 17747 else 17748 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 17749 as_echo_n_body='eval 17750 arg=$1; 17751 case $arg in #( 17752 *"$as_nl"*) 17753 expr "X$arg" : "X\\(.*\\)$as_nl"; 17754 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 17755 esac; 17756 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 17757 ' 17758 export as_echo_n_body 17759 as_echo_n='sh -c $as_echo_n_body as_echo' 17760 fi 17761 export as_echo_body 17762 as_echo='sh -c $as_echo_body as_echo' 17763fi 17764 17765# The user is always right. 17766if test "${PATH_SEPARATOR+set}" != set; then 17767 PATH_SEPARATOR=: 17768 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 17769 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 17770 PATH_SEPARATOR=';' 17771 } 17772fi 17773 17774 17775# IFS 17776# We need space, tab and new line, in precisely that order. Quoting is 17777# there to prevent editors from complaining about space-tab. 17778# (If _AS_PATH_WALK were called with IFS unset, it would disable word 17779# splitting by setting IFS to empty value.) 17780IFS=" "" $as_nl" 17781 17782# Find who we are. Look in the path if we contain no directory separator. 17783as_myself= 17784case $0 in #(( 17785 *[\\/]* ) as_myself=$0 ;; 17786 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17787for as_dir in $PATH 17788do 17789 IFS=$as_save_IFS 17790 test -z "$as_dir" && as_dir=. 17791 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 17792 done 17793IFS=$as_save_IFS 17794 17795 ;; 17796esac 17797# We did not find ourselves, most probably we were run as `sh COMMAND' 17798# in which case we are not to be found in the path. 17799if test "x$as_myself" = x; then 17800 as_myself=$0 17801fi 17802if test ! -f "$as_myself"; then 17803 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17804 exit 1 17805fi 17806 17807# Unset variables that we do not need and which cause bugs (e.g. in 17808# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 17809# suppresses any "Segmentation fault" message there. '((' could 17810# trigger a bug in pdksh 5.2.14. 17811for as_var in BASH_ENV ENV MAIL MAILPATH 17812do eval test x\${$as_var+set} = xset \ 17813 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 17814done 17815PS1='$ ' 17816PS2='> ' 17817PS4='+ ' 17818 17819# NLS nuisances. 17820LC_ALL=C 17821export LC_ALL 17822LANGUAGE=C 17823export LANGUAGE 17824 17825# CDPATH. 17826(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17827 17828 17829# as_fn_error STATUS ERROR [LINENO LOG_FD] 17830# ---------------------------------------- 17831# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 17832# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 17833# script with STATUS, using 1 if that was 0. 17834as_fn_error () 17835{ 17836 as_status=$1; test $as_status -eq 0 && as_status=1 17837 if test "$4"; then 17838 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17839 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 17840 fi 17841 $as_echo "$as_me: error: $2" >&2 17842 as_fn_exit $as_status 17843} # as_fn_error 17844 17845 17846# as_fn_set_status STATUS 17847# ----------------------- 17848# Set $? to STATUS, without forking. 17849as_fn_set_status () 17850{ 17851 return $1 17852} # as_fn_set_status 17853 17854# as_fn_exit STATUS 17855# ----------------- 17856# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 17857as_fn_exit () 17858{ 17859 set +e 17860 as_fn_set_status $1 17861 exit $1 17862} # as_fn_exit 17863 17864# as_fn_unset VAR 17865# --------------- 17866# Portably unset VAR. 17867as_fn_unset () 17868{ 17869 { eval $1=; unset $1;} 17870} 17871as_unset=as_fn_unset 17872# as_fn_append VAR VALUE 17873# ---------------------- 17874# Append the text in VALUE to the end of the definition contained in VAR. Take 17875# advantage of any shell optimizations that allow amortized linear growth over 17876# repeated appends, instead of the typical quadratic growth present in naive 17877# implementations. 17878if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 17879 eval 'as_fn_append () 17880 { 17881 eval $1+=\$2 17882 }' 17883else 17884 as_fn_append () 17885 { 17886 eval $1=\$$1\$2 17887 } 17888fi # as_fn_append 17889 17890# as_fn_arith ARG... 17891# ------------------ 17892# Perform arithmetic evaluation on the ARGs, and store the result in the 17893# global $as_val. Take advantage of shells that can avoid forks. The arguments 17894# must be portable across $(()) and expr. 17895if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 17896 eval 'as_fn_arith () 17897 { 17898 as_val=$(( $* )) 17899 }' 17900else 17901 as_fn_arith () 17902 { 17903 as_val=`expr "$@" || test $? -eq 1` 17904 } 17905fi # as_fn_arith 17906 17907 17908if expr a : '\(a\)' >/dev/null 2>&1 && 17909 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17910 as_expr=expr 17911else 17912 as_expr=false 17913fi 17914 17915if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 17916 as_basename=basename 17917else 17918 as_basename=false 17919fi 17920 17921if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 17922 as_dirname=dirname 17923else 17924 as_dirname=false 17925fi 17926 17927as_me=`$as_basename -- "$0" || 17928$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 17929 X"$0" : 'X\(//\)$' \| \ 17930 X"$0" : 'X\(/\)' \| . 2>/dev/null || 17931$as_echo X/"$0" | 17932 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17933 s//\1/ 17934 q 17935 } 17936 /^X\/\(\/\/\)$/{ 17937 s//\1/ 17938 q 17939 } 17940 /^X\/\(\/\).*/{ 17941 s//\1/ 17942 q 17943 } 17944 s/.*/./; q'` 17945 17946# Avoid depending upon Character Ranges. 17947as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17948as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17949as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17950as_cr_digits='0123456789' 17951as_cr_alnum=$as_cr_Letters$as_cr_digits 17952 17953ECHO_C= ECHO_N= ECHO_T= 17954case `echo -n x` in #((((( 17955-n*) 17956 case `echo 'xy\c'` in 17957 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 17958 xy) ECHO_C='\c';; 17959 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 17960 ECHO_T=' ';; 17961 esac;; 17962*) 17963 ECHO_N='-n';; 17964esac 17965 17966rm -f conf$$ conf$$.exe conf$$.file 17967if test -d conf$$.dir; then 17968 rm -f conf$$.dir/conf$$.file 17969else 17970 rm -f conf$$.dir 17971 mkdir conf$$.dir 2>/dev/null 17972fi 17973if (echo >conf$$.file) 2>/dev/null; then 17974 if ln -s conf$$.file conf$$ 2>/dev/null; then 17975 as_ln_s='ln -s' 17976 # ... but there are two gotchas: 17977 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 17978 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 17979 # In both cases, we have to default to `cp -pR'. 17980 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17981 as_ln_s='cp -pR' 17982 elif ln conf$$.file conf$$ 2>/dev/null; then 17983 as_ln_s=ln 17984 else 17985 as_ln_s='cp -pR' 17986 fi 17987else 17988 as_ln_s='cp -pR' 17989fi 17990rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17991rmdir conf$$.dir 2>/dev/null 17992 17993 17994# as_fn_mkdir_p 17995# ------------- 17996# Create "$as_dir" as a directory, including parents if necessary. 17997as_fn_mkdir_p () 17998{ 17999 18000 case $as_dir in #( 18001 -*) as_dir=./$as_dir;; 18002 esac 18003 test -d "$as_dir" || eval $as_mkdir_p || { 18004 as_dirs= 18005 while :; do 18006 case $as_dir in #( 18007 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18008 *) as_qdir=$as_dir;; 18009 esac 18010 as_dirs="'$as_qdir' $as_dirs" 18011 as_dir=`$as_dirname -- "$as_dir" || 18012$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18013 X"$as_dir" : 'X\(//\)[^/]' \| \ 18014 X"$as_dir" : 'X\(//\)$' \| \ 18015 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18016$as_echo X"$as_dir" | 18017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18018 s//\1/ 18019 q 18020 } 18021 /^X\(\/\/\)[^/].*/{ 18022 s//\1/ 18023 q 18024 } 18025 /^X\(\/\/\)$/{ 18026 s//\1/ 18027 q 18028 } 18029 /^X\(\/\).*/{ 18030 s//\1/ 18031 q 18032 } 18033 s/.*/./; q'` 18034 test -d "$as_dir" && break 18035 done 18036 test -z "$as_dirs" || eval "mkdir $as_dirs" 18037 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18038 18039 18040} # as_fn_mkdir_p 18041if mkdir -p . 2>/dev/null; then 18042 as_mkdir_p='mkdir -p "$as_dir"' 18043else 18044 test -d ./-p && rmdir ./-p 18045 as_mkdir_p=false 18046fi 18047 18048 18049# as_fn_executable_p FILE 18050# ----------------------- 18051# Test if FILE is an executable regular file. 18052as_fn_executable_p () 18053{ 18054 test -f "$1" && test -x "$1" 18055} # as_fn_executable_p 18056as_test_x='test -x' 18057as_executable_p=as_fn_executable_p 18058 18059# Sed expression to map a string onto a valid CPP name. 18060as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18061 18062# Sed expression to map a string onto a valid variable name. 18063as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18064 18065 18066exec 6>&1 18067## ----------------------------------- ## 18068## Main body of $CONFIG_STATUS script. ## 18069## ----------------------------------- ## 18070_ASEOF 18071test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18072 18073cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18074# Save the log message, to keep $0 and so on meaningful, and to 18075# report actual input values of CONFIG_FILES etc. instead of their 18076# values after options handling. 18077ac_log=" 18078This file was extended by NormalizInterface $as_me package, which was 18079generated by GNU Autoconf 2.69. Invocation command line was 18080 18081 CONFIG_FILES = $CONFIG_FILES 18082 CONFIG_HEADERS = $CONFIG_HEADERS 18083 CONFIG_LINKS = $CONFIG_LINKS 18084 CONFIG_COMMANDS = $CONFIG_COMMANDS 18085 $ $0 $@ 18086 18087on `(hostname || uname -n) 2>/dev/null | sed 1q` 18088" 18089 18090_ACEOF 18091 18092case $ac_config_files in *" 18093"*) set x $ac_config_files; shift; ac_config_files=$*;; 18094esac 18095 18096case $ac_config_headers in *" 18097"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 18098esac 18099 18100 18101cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18102# Files that config.status was made for. 18103config_files="$ac_config_files" 18104config_headers="$ac_config_headers" 18105config_commands="$ac_config_commands" 18106 18107_ACEOF 18108 18109cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18110ac_cs_usage="\ 18111\`$as_me' instantiates files and other configuration actions 18112from templates according to the current configuration. Unless the files 18113and actions are specified as TAGs, all are instantiated by default. 18114 18115Usage: $0 [OPTION]... [TAG]... 18116 18117 -h, --help print this help, then exit 18118 -V, --version print version number and configuration settings, then exit 18119 --config print configuration, then exit 18120 -q, --quiet, --silent 18121 do not print progress messages 18122 -d, --debug don't remove temporary files 18123 --recheck update $as_me by reconfiguring in the same conditions 18124 --file=FILE[:TEMPLATE] 18125 instantiate the configuration file FILE 18126 --header=FILE[:TEMPLATE] 18127 instantiate the configuration header FILE 18128 18129Configuration files: 18130$config_files 18131 18132Configuration headers: 18133$config_headers 18134 18135Configuration commands: 18136$config_commands 18137 18138Report bugs to <https://github.com/gap-packages/NormalizInterface/issues>. 18139NormalizInterface home page: <https://gap-packages.github.io/NormalizInterface/>." 18140 18141_ACEOF 18142cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18143ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18144ac_cs_version="\\ 18145NormalizInterface config.status package 18146configured by $0, generated by GNU Autoconf 2.69, 18147 with options \\"\$ac_cs_config\\" 18148 18149Copyright (C) 2012 Free Software Foundation, Inc. 18150This config.status script is free software; the Free Software Foundation 18151gives unlimited permission to copy, distribute and modify it." 18152 18153ac_pwd='$ac_pwd' 18154srcdir='$srcdir' 18155INSTALL='$INSTALL' 18156MKDIR_P='$MKDIR_P' 18157AWK='$AWK' 18158test -n "\$AWK" || AWK=awk 18159_ACEOF 18160 18161cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18162# The default lists apply if the user does not specify any file. 18163ac_need_defaults=: 18164while test $# != 0 18165do 18166 case $1 in 18167 --*=?*) 18168 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18169 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18170 ac_shift=: 18171 ;; 18172 --*=) 18173 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18174 ac_optarg= 18175 ac_shift=: 18176 ;; 18177 *) 18178 ac_option=$1 18179 ac_optarg=$2 18180 ac_shift=shift 18181 ;; 18182 esac 18183 18184 case $ac_option in 18185 # Handling of the options. 18186 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18187 ac_cs_recheck=: ;; 18188 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18189 $as_echo "$ac_cs_version"; exit ;; 18190 --config | --confi | --conf | --con | --co | --c ) 18191 $as_echo "$ac_cs_config"; exit ;; 18192 --debug | --debu | --deb | --de | --d | -d ) 18193 debug=: ;; 18194 --file | --fil | --fi | --f ) 18195 $ac_shift 18196 case $ac_optarg in 18197 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18198 '') as_fn_error $? "missing file argument" ;; 18199 esac 18200 as_fn_append CONFIG_FILES " '$ac_optarg'" 18201 ac_need_defaults=false;; 18202 --header | --heade | --head | --hea ) 18203 $ac_shift 18204 case $ac_optarg in 18205 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18206 esac 18207 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 18208 ac_need_defaults=false;; 18209 --he | --h) 18210 # Conflict between --help and --header 18211 as_fn_error $? "ambiguous option: \`$1' 18212Try \`$0 --help' for more information.";; 18213 --help | --hel | -h ) 18214 $as_echo "$ac_cs_usage"; exit ;; 18215 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18216 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18217 ac_cs_silent=: ;; 18218 18219 # This is an error. 18220 -*) as_fn_error $? "unrecognized option: \`$1' 18221Try \`$0 --help' for more information." ;; 18222 18223 *) as_fn_append ac_config_targets " $1" 18224 ac_need_defaults=false ;; 18225 18226 esac 18227 shift 18228done 18229 18230ac_configure_extra_args= 18231 18232if $ac_cs_silent; then 18233 exec 6>/dev/null 18234 ac_configure_extra_args="$ac_configure_extra_args --silent" 18235fi 18236 18237_ACEOF 18238cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18239if \$ac_cs_recheck; then 18240 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18241 shift 18242 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 18243 CONFIG_SHELL='$SHELL' 18244 export CONFIG_SHELL 18245 exec "\$@" 18246fi 18247 18248_ACEOF 18249cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18250exec 5>>config.log 18251{ 18252 echo 18253 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18254## Running $as_me. ## 18255_ASBOX 18256 $as_echo "$ac_log" 18257} >&5 18258 18259_ACEOF 18260cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18261# 18262# INIT-COMMANDS 18263# 18264AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 18265 18266 18267# The HP-UX ksh and POSIX shell print the target directory to stdout 18268# if CDPATH is set. 18269(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18270 18271sed_quote_subst='$sed_quote_subst' 18272double_quote_subst='$double_quote_subst' 18273delay_variable_subst='$delay_variable_subst' 18274macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 18275macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 18276enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 18277AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 18278DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 18279OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 18280enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 18281pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 18282enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 18283shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 18284SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 18285ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 18286PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 18287host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 18288host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 18289host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 18290build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 18291build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 18292build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 18293SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 18294Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 18295GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 18296EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 18297FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 18298LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 18299NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 18300LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 18301max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 18302ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 18303exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 18304lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 18305lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 18306lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 18307lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 18308lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 18309reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 18310reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 18311deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 18312file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 18313file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 18314want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 18315sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 18316AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 18317AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 18318archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 18319STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 18320RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 18321old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18322old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18323old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 18324lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 18325CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 18326CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 18327compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 18328GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 18329lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 18330lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 18331lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 18332lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 18333lt_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"`' 18334lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 18335nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 18336lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 18337lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 18338objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 18339MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 18340lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 18341lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 18342lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 18343lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 18344lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 18345need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 18346MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 18347DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 18348NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 18349LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 18350OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 18351OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 18352libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 18353shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 18354extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18355archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 18356enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 18357export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 18358whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 18359compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 18360old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 18361old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18362archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 18363archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18364module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 18365module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18366with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 18367allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 18368no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 18369hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 18370hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 18371hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 18372hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 18373hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 18374hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 18375hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 18376inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 18377link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 18378always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 18379export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 18380exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 18381include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 18382prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 18383postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 18384file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 18385variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 18386need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 18387need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 18388version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 18389runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 18390shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 18391shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 18392libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 18393library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 18394soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 18395install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 18396postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18397postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18398finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 18399finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 18400hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 18401sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 18402configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 18403configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 18404hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 18405enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 18406enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 18407enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 18408old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 18409striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 18410compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 18411predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 18412postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 18413predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 18414postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 18415compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 18416LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 18417reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 18418reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18419old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18420compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 18421GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 18422lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 18423lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 18424lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 18425lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 18426lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 18427archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 18428enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 18429export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18430whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18431compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 18432old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18433old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18434archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18435archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18436module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18437module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18438with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 18439allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 18440no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 18441hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18442hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 18443hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 18444hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 18445hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 18446hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 18447hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 18448inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 18449link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 18450always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 18451export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18452exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 18453include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 18454prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18455postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18456file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 18457hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 18458compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 18459predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 18460postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 18461predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 18462postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 18463compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 18464 18465LTCC='$LTCC' 18466LTCFLAGS='$LTCFLAGS' 18467compiler='$compiler_DEFAULT' 18468 18469# A function that is used when there is no print builtin or printf. 18470func_fallback_echo () 18471{ 18472 eval 'cat <<_LTECHO_EOF 18473\$1 18474_LTECHO_EOF' 18475} 18476 18477# Quote evaled strings. 18478for var in AS \ 18479DLLTOOL \ 18480OBJDUMP \ 18481SHELL \ 18482ECHO \ 18483PATH_SEPARATOR \ 18484SED \ 18485GREP \ 18486EGREP \ 18487FGREP \ 18488LD \ 18489NM \ 18490LN_S \ 18491lt_SP2NL \ 18492lt_NL2SP \ 18493reload_flag \ 18494deplibs_check_method \ 18495file_magic_cmd \ 18496file_magic_glob \ 18497want_nocaseglob \ 18498sharedlib_from_linklib_cmd \ 18499AR \ 18500AR_FLAGS \ 18501archiver_list_spec \ 18502STRIP \ 18503RANLIB \ 18504CC \ 18505CFLAGS \ 18506compiler \ 18507lt_cv_sys_global_symbol_pipe \ 18508lt_cv_sys_global_symbol_to_cdecl \ 18509lt_cv_sys_global_symbol_to_import \ 18510lt_cv_sys_global_symbol_to_c_name_address \ 18511lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18512lt_cv_nm_interface \ 18513nm_file_list_spec \ 18514lt_cv_truncate_bin \ 18515lt_prog_compiler_no_builtin_flag \ 18516lt_prog_compiler_pic \ 18517lt_prog_compiler_wl \ 18518lt_prog_compiler_static \ 18519lt_cv_prog_compiler_c_o \ 18520need_locks \ 18521MANIFEST_TOOL \ 18522DSYMUTIL \ 18523NMEDIT \ 18524LIPO \ 18525OTOOL \ 18526OTOOL64 \ 18527shrext_cmds \ 18528export_dynamic_flag_spec \ 18529whole_archive_flag_spec \ 18530compiler_needs_object \ 18531with_gnu_ld \ 18532allow_undefined_flag \ 18533no_undefined_flag \ 18534hardcode_libdir_flag_spec \ 18535hardcode_libdir_separator \ 18536exclude_expsyms \ 18537include_expsyms \ 18538file_list_spec \ 18539variables_saved_for_relink \ 18540libname_spec \ 18541library_names_spec \ 18542soname_spec \ 18543install_override_mode \ 18544finish_eval \ 18545old_striplib \ 18546striplib \ 18547compiler_lib_search_dirs \ 18548predep_objects \ 18549postdep_objects \ 18550predeps \ 18551postdeps \ 18552compiler_lib_search_path \ 18553LD_CXX \ 18554reload_flag_CXX \ 18555compiler_CXX \ 18556lt_prog_compiler_no_builtin_flag_CXX \ 18557lt_prog_compiler_pic_CXX \ 18558lt_prog_compiler_wl_CXX \ 18559lt_prog_compiler_static_CXX \ 18560lt_cv_prog_compiler_c_o_CXX \ 18561export_dynamic_flag_spec_CXX \ 18562whole_archive_flag_spec_CXX \ 18563compiler_needs_object_CXX \ 18564with_gnu_ld_CXX \ 18565allow_undefined_flag_CXX \ 18566no_undefined_flag_CXX \ 18567hardcode_libdir_flag_spec_CXX \ 18568hardcode_libdir_separator_CXX \ 18569exclude_expsyms_CXX \ 18570include_expsyms_CXX \ 18571file_list_spec_CXX \ 18572compiler_lib_search_dirs_CXX \ 18573predep_objects_CXX \ 18574postdep_objects_CXX \ 18575predeps_CXX \ 18576postdeps_CXX \ 18577compiler_lib_search_path_CXX; do 18578 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18579 *[\\\\\\\`\\"\\\$]*) 18580 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 18581 ;; 18582 *) 18583 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18584 ;; 18585 esac 18586done 18587 18588# Double-quote double-evaled strings. 18589for var in reload_cmds \ 18590old_postinstall_cmds \ 18591old_postuninstall_cmds \ 18592old_archive_cmds \ 18593extract_expsyms_cmds \ 18594old_archive_from_new_cmds \ 18595old_archive_from_expsyms_cmds \ 18596archive_cmds \ 18597archive_expsym_cmds \ 18598module_cmds \ 18599module_expsym_cmds \ 18600export_symbols_cmds \ 18601prelink_cmds \ 18602postlink_cmds \ 18603postinstall_cmds \ 18604postuninstall_cmds \ 18605finish_cmds \ 18606sys_lib_search_path_spec \ 18607configure_time_dlsearch_path \ 18608configure_time_lt_sys_library_path \ 18609reload_cmds_CXX \ 18610old_archive_cmds_CXX \ 18611old_archive_from_new_cmds_CXX \ 18612old_archive_from_expsyms_cmds_CXX \ 18613archive_cmds_CXX \ 18614archive_expsym_cmds_CXX \ 18615module_cmds_CXX \ 18616module_expsym_cmds_CXX \ 18617export_symbols_cmds_CXX \ 18618prelink_cmds_CXX \ 18619postlink_cmds_CXX; do 18620 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18621 *[\\\\\\\`\\"\\\$]*) 18622 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 18623 ;; 18624 *) 18625 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18626 ;; 18627 esac 18628done 18629 18630ac_aux_dir='$ac_aux_dir' 18631 18632# See if we are running on zsh, and set the options that allow our 18633# commands through without removal of \ escapes INIT. 18634if test -n "\${ZSH_VERSION+set}"; then 18635 setopt NO_GLOB_SUBST 18636fi 18637 18638 18639 PACKAGE='$PACKAGE' 18640 VERSION='$VERSION' 18641 RM='$RM' 18642 ofile='$ofile' 18643 18644 18645 18646 18647 18648 18649_ACEOF 18650 18651cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18652 18653# Handling of arguments. 18654for ac_config_target in $ac_config_targets 18655do 18656 case $ac_config_target in 18657 "src/pkgconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS src/pkgconfig.h:cnf/pkgconfig.h.in" ;; 18658 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18659 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18660 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18661 18662 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18663 esac 18664done 18665 18666 18667# If the user did not use the arguments to specify the items to instantiate, 18668# then the envvar interface is used. Set only those that are not. 18669# We use the long form for the default assignment because of an extremely 18670# bizarre bug on SunOS 4.1.3. 18671if $ac_need_defaults; then 18672 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18673 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18674 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18675fi 18676 18677# Have a temporary directory for convenience. Make it in the build tree 18678# simply because there is no reason against having it here, and in addition, 18679# creating and moving files from /tmp can sometimes cause problems. 18680# Hook for its removal unless debugging. 18681# Note that there is a small window in which the directory will not be cleaned: 18682# after its creation but before its name has been assigned to `$tmp'. 18683$debug || 18684{ 18685 tmp= ac_tmp= 18686 trap 'exit_status=$? 18687 : "${ac_tmp:=$tmp}" 18688 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18689' 0 18690 trap 'as_fn_exit 1' 1 2 13 15 18691} 18692# Create a (secure) tmp directory for tmp files. 18693 18694{ 18695 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18696 test -d "$tmp" 18697} || 18698{ 18699 tmp=./conf$$-$RANDOM 18700 (umask 077 && mkdir "$tmp") 18701} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18702ac_tmp=$tmp 18703 18704# Set up the scripts for CONFIG_FILES section. 18705# No need to generate them if there are no CONFIG_FILES. 18706# This happens for instance with `./config.status config.h'. 18707if test -n "$CONFIG_FILES"; then 18708 18709 18710ac_cr=`echo X | tr X '\015'` 18711# On cygwin, bash can eat \r inside `` if the user requested igncr. 18712# But we know of no other shell where ac_cr would be empty at this 18713# point, so we can use a bashism as a fallback. 18714if test "x$ac_cr" = x; then 18715 eval ac_cr=\$\'\\r\' 18716fi 18717ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18718if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18719 ac_cs_awk_cr='\\r' 18720else 18721 ac_cs_awk_cr=$ac_cr 18722fi 18723 18724echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 18725_ACEOF 18726 18727 18728{ 18729 echo "cat >conf$$subs.awk <<_ACEOF" && 18730 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18731 echo "_ACEOF" 18732} >conf$$subs.sh || 18733 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18734ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 18735ac_delim='%!_!# ' 18736for ac_last_try in false false false false false :; do 18737 . ./conf$$subs.sh || 18738 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18739 18740 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 18741 if test $ac_delim_n = $ac_delim_num; then 18742 break 18743 elif $ac_last_try; then 18744 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18745 else 18746 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18747 fi 18748done 18749rm -f conf$$subs.sh 18750 18751cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18752cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 18753_ACEOF 18754sed -n ' 18755h 18756s/^/S["/; s/!.*/"]=/ 18757p 18758g 18759s/^[^!]*!// 18760:repl 18761t repl 18762s/'"$ac_delim"'$// 18763t delim 18764:nl 18765h 18766s/\(.\{148\}\)..*/\1/ 18767t more1 18768s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 18769p 18770n 18771b repl 18772:more1 18773s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18774p 18775g 18776s/.\{148\}// 18777t nl 18778:delim 18779h 18780s/\(.\{148\}\)..*/\1/ 18781t more2 18782s/["\\]/\\&/g; s/^/"/; s/$/"/ 18783p 18784b 18785:more2 18786s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18787p 18788g 18789s/.\{148\}// 18790t delim 18791' <conf$$subs.awk | sed ' 18792/^[^""]/{ 18793 N 18794 s/\n// 18795} 18796' >>$CONFIG_STATUS || ac_write_fail=1 18797rm -f conf$$subs.awk 18798cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18799_ACAWK 18800cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 18801 for (key in S) S_is_set[key] = 1 18802 FS = "" 18803 18804} 18805{ 18806 line = $ 0 18807 nfields = split(line, field, "@") 18808 substed = 0 18809 len = length(field[1]) 18810 for (i = 2; i < nfields; i++) { 18811 key = field[i] 18812 keylen = length(key) 18813 if (S_is_set[key]) { 18814 value = S[key] 18815 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 18816 len += length(value) + length(field[++i]) 18817 substed = 1 18818 } else 18819 len += 1 + keylen 18820 } 18821 18822 print line 18823} 18824 18825_ACAWK 18826_ACEOF 18827cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18828if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 18829 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 18830else 18831 cat 18832fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 18833 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 18834_ACEOF 18835 18836# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 18837# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 18838# trailing colons and then remove the whole line if VPATH becomes empty 18839# (actually we leave an empty line to preserve line numbers). 18840if test "x$srcdir" = x.; then 18841 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 18842h 18843s/// 18844s/^/:/ 18845s/[ ]*$/:/ 18846s/:\$(srcdir):/:/g 18847s/:\${srcdir}:/:/g 18848s/:@srcdir@:/:/g 18849s/^:*// 18850s/:*$// 18851x 18852s/\(=[ ]*\).*/\1/ 18853G 18854s/\n// 18855s/^[^=]*=[ ]*$// 18856}' 18857fi 18858 18859cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18860fi # test -n "$CONFIG_FILES" 18861 18862# Set up the scripts for CONFIG_HEADERS section. 18863# No need to generate them if there are no CONFIG_HEADERS. 18864# This happens for instance with `./config.status Makefile'. 18865if test -n "$CONFIG_HEADERS"; then 18866cat >"$ac_tmp/defines.awk" <<\_ACAWK || 18867BEGIN { 18868_ACEOF 18869 18870# Transform confdefs.h into an awk script `defines.awk', embedded as 18871# here-document in config.status, that substitutes the proper values into 18872# config.h.in to produce config.h. 18873 18874# Create a delimiter string that does not exist in confdefs.h, to ease 18875# handling of long lines. 18876ac_delim='%!_!# ' 18877for ac_last_try in false false :; do 18878 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 18879 if test -z "$ac_tt"; then 18880 break 18881 elif $ac_last_try; then 18882 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 18883 else 18884 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18885 fi 18886done 18887 18888# For the awk script, D is an array of macro values keyed by name, 18889# likewise P contains macro parameters if any. Preserve backslash 18890# newline sequences. 18891 18892ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 18893sed -n ' 18894s/.\{148\}/&'"$ac_delim"'/g 18895t rset 18896:rset 18897s/^[ ]*#[ ]*define[ ][ ]*/ / 18898t def 18899d 18900:def 18901s/\\$// 18902t bsnl 18903s/["\\]/\\&/g 18904s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18905D["\1"]=" \3"/p 18906s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 18907d 18908:bsnl 18909s/["\\]/\\&/g 18910s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18911D["\1"]=" \3\\\\\\n"\\/p 18912t cont 18913s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 18914t cont 18915d 18916:cont 18917n 18918s/.\{148\}/&'"$ac_delim"'/g 18919t clear 18920:clear 18921s/\\$// 18922t bsnlc 18923s/["\\]/\\&/g; s/^/"/; s/$/"/p 18924d 18925:bsnlc 18926s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 18927b cont 18928' <confdefs.h | sed ' 18929s/'"$ac_delim"'/"\\\ 18930"/g' >>$CONFIG_STATUS || ac_write_fail=1 18931 18932cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18933 for (key in D) D_is_set[key] = 1 18934 FS = "" 18935} 18936/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 18937 line = \$ 0 18938 split(line, arg, " ") 18939 if (arg[1] == "#") { 18940 defundef = arg[2] 18941 mac1 = arg[3] 18942 } else { 18943 defundef = substr(arg[1], 2) 18944 mac1 = arg[2] 18945 } 18946 split(mac1, mac2, "(") #) 18947 macro = mac2[1] 18948 prefix = substr(line, 1, index(line, defundef) - 1) 18949 if (D_is_set[macro]) { 18950 # Preserve the white space surrounding the "#". 18951 print prefix "define", macro P[macro] D[macro] 18952 next 18953 } else { 18954 # Replace #undef with comments. This is necessary, for example, 18955 # in the case of _POSIX_SOURCE, which is predefined and required 18956 # on some systems where configure will not decide to define it. 18957 if (defundef == "undef") { 18958 print "/*", prefix defundef, macro, "*/" 18959 next 18960 } 18961 } 18962} 18963{ print } 18964_ACAWK 18965_ACEOF 18966cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18967 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 18968fi # test -n "$CONFIG_HEADERS" 18969 18970 18971eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 18972shift 18973for ac_tag 18974do 18975 case $ac_tag in 18976 :[FHLC]) ac_mode=$ac_tag; continue;; 18977 esac 18978 case $ac_mode$ac_tag in 18979 :[FHL]*:*);; 18980 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 18981 :[FH]-) ac_tag=-:-;; 18982 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 18983 esac 18984 ac_save_IFS=$IFS 18985 IFS=: 18986 set x $ac_tag 18987 IFS=$ac_save_IFS 18988 shift 18989 ac_file=$1 18990 shift 18991 18992 case $ac_mode in 18993 :L) ac_source=$1;; 18994 :[FH]) 18995 ac_file_inputs= 18996 for ac_f 18997 do 18998 case $ac_f in 18999 -) ac_f="$ac_tmp/stdin";; 19000 *) # Look for the file first in the build tree, then in the source tree 19001 # (if the path is not absolute). The absolute path cannot be DOS-style, 19002 # because $ac_f cannot contain `:'. 19003 test -f "$ac_f" || 19004 case $ac_f in 19005 [\\/$]*) false;; 19006 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19007 esac || 19008 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19009 esac 19010 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19011 as_fn_append ac_file_inputs " '$ac_f'" 19012 done 19013 19014 # Let's still pretend it is `configure' which instantiates (i.e., don't 19015 # use $as_me), people would be surprised to read: 19016 # /* config.h. Generated by config.status. */ 19017 configure_input='Generated from '` 19018 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19019 `' by configure.' 19020 if test x"$ac_file" != x-; then 19021 configure_input="$ac_file. $configure_input" 19022 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19023$as_echo "$as_me: creating $ac_file" >&6;} 19024 fi 19025 # Neutralize special characters interpreted by sed in replacement strings. 19026 case $configure_input in #( 19027 *\&* | *\|* | *\\* ) 19028 ac_sed_conf_input=`$as_echo "$configure_input" | 19029 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19030 *) ac_sed_conf_input=$configure_input;; 19031 esac 19032 19033 case $ac_tag in 19034 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19035 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19036 esac 19037 ;; 19038 esac 19039 19040 ac_dir=`$as_dirname -- "$ac_file" || 19041$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19042 X"$ac_file" : 'X\(//\)[^/]' \| \ 19043 X"$ac_file" : 'X\(//\)$' \| \ 19044 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19045$as_echo X"$ac_file" | 19046 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19047 s//\1/ 19048 q 19049 } 19050 /^X\(\/\/\)[^/].*/{ 19051 s//\1/ 19052 q 19053 } 19054 /^X\(\/\/\)$/{ 19055 s//\1/ 19056 q 19057 } 19058 /^X\(\/\).*/{ 19059 s//\1/ 19060 q 19061 } 19062 s/.*/./; q'` 19063 as_dir="$ac_dir"; as_fn_mkdir_p 19064 ac_builddir=. 19065 19066case "$ac_dir" in 19067.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19068*) 19069 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19070 # A ".." for each directory in $ac_dir_suffix. 19071 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19072 case $ac_top_builddir_sub in 19073 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19074 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19075 esac ;; 19076esac 19077ac_abs_top_builddir=$ac_pwd 19078ac_abs_builddir=$ac_pwd$ac_dir_suffix 19079# for backward compatibility: 19080ac_top_builddir=$ac_top_build_prefix 19081 19082case $srcdir in 19083 .) # We are building in place. 19084 ac_srcdir=. 19085 ac_top_srcdir=$ac_top_builddir_sub 19086 ac_abs_top_srcdir=$ac_pwd ;; 19087 [\\/]* | ?:[\\/]* ) # Absolute name. 19088 ac_srcdir=$srcdir$ac_dir_suffix; 19089 ac_top_srcdir=$srcdir 19090 ac_abs_top_srcdir=$srcdir ;; 19091 *) # Relative name. 19092 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19093 ac_top_srcdir=$ac_top_build_prefix$srcdir 19094 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19095esac 19096ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19097 19098 19099 case $ac_mode in 19100 :F) 19101 # 19102 # CONFIG_FILE 19103 # 19104 19105 case $INSTALL in 19106 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19107 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19108 esac 19109 ac_MKDIR_P=$MKDIR_P 19110 case $MKDIR_P in 19111 [\\/$]* | ?:[\\/]* ) ;; 19112 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19113 esac 19114_ACEOF 19115 19116cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19117# If the template does not know about datarootdir, expand it. 19118# FIXME: This hack should be removed a few years after 2.60. 19119ac_datarootdir_hack=; ac_datarootdir_seen= 19120ac_sed_dataroot=' 19121/datarootdir/ { 19122 p 19123 q 19124} 19125/@datadir@/p 19126/@docdir@/p 19127/@infodir@/p 19128/@localedir@/p 19129/@mandir@/p' 19130case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19131*datarootdir*) ac_datarootdir_seen=yes;; 19132*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19134$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19135_ACEOF 19136cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19137 ac_datarootdir_hack=' 19138 s&@datadir@&$datadir&g 19139 s&@docdir@&$docdir&g 19140 s&@infodir@&$infodir&g 19141 s&@localedir@&$localedir&g 19142 s&@mandir@&$mandir&g 19143 s&\\\${datarootdir}&$datarootdir&g' ;; 19144esac 19145_ACEOF 19146 19147# Neutralize VPATH when `$srcdir' = `.'. 19148# Shell code in configure.ac might set extrasub. 19149# FIXME: do we really want to maintain this feature? 19150cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19151ac_sed_extra="$ac_vpsub 19152$extrasub 19153_ACEOF 19154cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19155:t 19156/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19157s|@configure_input@|$ac_sed_conf_input|;t t 19158s&@top_builddir@&$ac_top_builddir_sub&;t t 19159s&@top_build_prefix@&$ac_top_build_prefix&;t t 19160s&@srcdir@&$ac_srcdir&;t t 19161s&@abs_srcdir@&$ac_abs_srcdir&;t t 19162s&@top_srcdir@&$ac_top_srcdir&;t t 19163s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19164s&@builddir@&$ac_builddir&;t t 19165s&@abs_builddir@&$ac_abs_builddir&;t t 19166s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19167s&@INSTALL@&$ac_INSTALL&;t t 19168s&@MKDIR_P@&$ac_MKDIR_P&;t t 19169$ac_datarootdir_hack 19170" 19171eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 19172 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19173 19174test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19175 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 19176 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 19177 "$ac_tmp/out"`; test -z "$ac_out"; } && 19178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19179which seems to be undefined. Please make sure it is defined" >&5 19180$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19181which seems to be undefined. Please make sure it is defined" >&2;} 19182 19183 rm -f "$ac_tmp/stdin" 19184 case $ac_file in 19185 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19186 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19187 esac \ 19188 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19189 ;; 19190 :H) 19191 # 19192 # CONFIG_HEADER 19193 # 19194 if test x"$ac_file" != x-; then 19195 { 19196 $as_echo "/* $configure_input */" \ 19197 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 19198 } >"$ac_tmp/config.h" \ 19199 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19200 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 19201 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 19202$as_echo "$as_me: $ac_file is unchanged" >&6;} 19203 else 19204 rm -f "$ac_file" 19205 mv "$ac_tmp/config.h" "$ac_file" \ 19206 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19207 fi 19208 else 19209 $as_echo "/* $configure_input */" \ 19210 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 19211 || as_fn_error $? "could not create -" "$LINENO" 5 19212 fi 19213# Compute "$ac_file"'s index in $config_headers. 19214_am_arg="$ac_file" 19215_am_stamp_count=1 19216for _am_header in $config_headers :; do 19217 case $_am_header in 19218 $_am_arg | $_am_arg:* ) 19219 break ;; 19220 * ) 19221 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 19222 esac 19223done 19224echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 19225$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19226 X"$_am_arg" : 'X\(//\)[^/]' \| \ 19227 X"$_am_arg" : 'X\(//\)$' \| \ 19228 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 19229$as_echo X"$_am_arg" | 19230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19231 s//\1/ 19232 q 19233 } 19234 /^X\(\/\/\)[^/].*/{ 19235 s//\1/ 19236 q 19237 } 19238 /^X\(\/\/\)$/{ 19239 s//\1/ 19240 q 19241 } 19242 /^X\(\/\).*/{ 19243 s//\1/ 19244 q 19245 } 19246 s/.*/./; q'`/stamp-h$_am_stamp_count 19247 ;; 19248 19249 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19250$as_echo "$as_me: executing $ac_file commands" >&6;} 19251 ;; 19252 esac 19253 19254 19255 case $ac_file$ac_mode in 19256 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19257 # Older Autoconf quotes --file arguments for eval, but not when files 19258 # are listed without --file. Let's play safe and only enable the eval 19259 # if we detect the quoting. 19260 # TODO: see whether this extra hack can be removed once we start 19261 # requiring Autoconf 2.70 or later. 19262 case $CONFIG_FILES in #( 19263 *\'*) : 19264 eval set x "$CONFIG_FILES" ;; #( 19265 *) : 19266 set x $CONFIG_FILES ;; #( 19267 *) : 19268 ;; 19269esac 19270 shift 19271 # Used to flag and report bootstrapping failures. 19272 am_rc=0 19273 for am_mf 19274 do 19275 # Strip MF so we end up with the name of the file. 19276 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 19277 # Check whether this is an Automake generated Makefile which includes 19278 # dependency-tracking related rules and includes. 19279 # Grep'ing the whole file directly is not great: AIX grep has a line 19280 # limit of 2048, but all sed's we know have understand at least 4000. 19281 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 19282 || continue 19283 am_dirpart=`$as_dirname -- "$am_mf" || 19284$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19285 X"$am_mf" : 'X\(//\)[^/]' \| \ 19286 X"$am_mf" : 'X\(//\)$' \| \ 19287 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 19288$as_echo X"$am_mf" | 19289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19290 s//\1/ 19291 q 19292 } 19293 /^X\(\/\/\)[^/].*/{ 19294 s//\1/ 19295 q 19296 } 19297 /^X\(\/\/\)$/{ 19298 s//\1/ 19299 q 19300 } 19301 /^X\(\/\).*/{ 19302 s//\1/ 19303 q 19304 } 19305 s/.*/./; q'` 19306 am_filepart=`$as_basename -- "$am_mf" || 19307$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 19308 X"$am_mf" : 'X\(//\)$' \| \ 19309 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 19310$as_echo X/"$am_mf" | 19311 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19312 s//\1/ 19313 q 19314 } 19315 /^X\/\(\/\/\)$/{ 19316 s//\1/ 19317 q 19318 } 19319 /^X\/\(\/\).*/{ 19320 s//\1/ 19321 q 19322 } 19323 s/.*/./; q'` 19324 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 19325 && sed -e '/# am--include-marker/d' "$am_filepart" \ 19326 | $MAKE -f - am--depfiles" >&5 19327 (cd "$am_dirpart" \ 19328 && sed -e '/# am--include-marker/d' "$am_filepart" \ 19329 | $MAKE -f - am--depfiles) >&5 2>&5 19330 ac_status=$? 19331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19332 (exit $ac_status); } || am_rc=$? 19333 done 19334 if test $am_rc -ne 0; then 19335 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19336$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19337as_fn_error $? "Something went wrong bootstrapping makefile fragments 19338 for automatic dependency tracking. Try re-running configure with the 19339 '--disable-dependency-tracking' option to at least be able to build 19340 the package (albeit without support for automatic dependency tracking). 19341See \`config.log' for more details" "$LINENO" 5; } 19342 fi 19343 { am_dirpart=; unset am_dirpart;} 19344 { am_filepart=; unset am_filepart;} 19345 { am_mf=; unset am_mf;} 19346 { am_rc=; unset am_rc;} 19347 rm -f conftest-deps.mk 19348} 19349 ;; 19350 "libtool":C) 19351 19352 # See if we are running on zsh, and set the options that allow our 19353 # commands through without removal of \ escapes. 19354 if test -n "${ZSH_VERSION+set}"; then 19355 setopt NO_GLOB_SUBST 19356 fi 19357 19358 cfgfile=${ofile}T 19359 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 19360 $RM "$cfgfile" 19361 19362 cat <<_LT_EOF >> "$cfgfile" 19363#! $SHELL 19364# Generated automatically by $as_me ($PACKAGE) $VERSION 19365# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19366# NOTE: Changes made to this file will be lost: look at ltmain.sh. 19367 19368# Provide generalized library-building support services. 19369# Written by Gordon Matzigkeit, 1996 19370 19371# Copyright (C) 2014 Free Software Foundation, Inc. 19372# This is free software; see the source for copying conditions. There is NO 19373# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 19374 19375# GNU Libtool is free software; you can redistribute it and/or modify 19376# it under the terms of the GNU General Public License as published by 19377# the Free Software Foundation; either version 2 of of the License, or 19378# (at your option) any later version. 19379# 19380# As a special exception to the GNU General Public License, if you 19381# distribute this file as part of a program or library that is built 19382# using GNU Libtool, you may include this file under the same 19383# distribution terms that you use for the rest of that program. 19384# 19385# GNU Libtool is distributed in the hope that it will be useful, but 19386# WITHOUT ANY WARRANTY; without even the implied warranty of 19387# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19388# GNU General Public License for more details. 19389# 19390# You should have received a copy of the GNU General Public License 19391# along with this program. If not, see <http://www.gnu.org/licenses/>. 19392 19393 19394# The names of the tagged configurations supported by this script. 19395available_tags='CXX ' 19396 19397# Configured defaults for sys_lib_dlsearch_path munging. 19398: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 19399 19400# ### BEGIN LIBTOOL CONFIG 19401 19402# Which release of libtool.m4 was used? 19403macro_version=$macro_version 19404macro_revision=$macro_revision 19405 19406# Whether or not to build static libraries. 19407build_old_libs=$enable_static 19408 19409# Assembler program. 19410AS=$lt_AS 19411 19412# DLL creation program. 19413DLLTOOL=$lt_DLLTOOL 19414 19415# Object dumper program. 19416OBJDUMP=$lt_OBJDUMP 19417 19418# Whether or not to build shared libraries. 19419build_libtool_libs=$enable_shared 19420 19421# What type of objects to build. 19422pic_mode=$pic_mode 19423 19424# Whether or not to optimize for fast installation. 19425fast_install=$enable_fast_install 19426 19427# Shared archive member basename,for filename based shared library versioning on AIX. 19428shared_archive_member_spec=$shared_archive_member_spec 19429 19430# Shell to use when invoking shell scripts. 19431SHELL=$lt_SHELL 19432 19433# An echo program that protects backslashes. 19434ECHO=$lt_ECHO 19435 19436# The PATH separator for the build system. 19437PATH_SEPARATOR=$lt_PATH_SEPARATOR 19438 19439# The host system. 19440host_alias=$host_alias 19441host=$host 19442host_os=$host_os 19443 19444# The build system. 19445build_alias=$build_alias 19446build=$build 19447build_os=$build_os 19448 19449# A sed program that does not truncate output. 19450SED=$lt_SED 19451 19452# Sed that helps us avoid accidentally triggering echo(1) options like -n. 19453Xsed="\$SED -e 1s/^X//" 19454 19455# A grep program that handles long lines. 19456GREP=$lt_GREP 19457 19458# An ERE matcher. 19459EGREP=$lt_EGREP 19460 19461# A literal string matcher. 19462FGREP=$lt_FGREP 19463 19464# A BSD- or MS-compatible name lister. 19465NM=$lt_NM 19466 19467# Whether we need soft or hard links. 19468LN_S=$lt_LN_S 19469 19470# What is the maximum length of a command? 19471max_cmd_len=$max_cmd_len 19472 19473# Object file suffix (normally "o"). 19474objext=$ac_objext 19475 19476# Executable file suffix (normally ""). 19477exeext=$exeext 19478 19479# whether the shell understands "unset". 19480lt_unset=$lt_unset 19481 19482# turn spaces into newlines. 19483SP2NL=$lt_lt_SP2NL 19484 19485# turn newlines into spaces. 19486NL2SP=$lt_lt_NL2SP 19487 19488# convert \$build file names to \$host format. 19489to_host_file_cmd=$lt_cv_to_host_file_cmd 19490 19491# convert \$build files to toolchain format. 19492to_tool_file_cmd=$lt_cv_to_tool_file_cmd 19493 19494# Method to check whether dependent libraries are shared objects. 19495deplibs_check_method=$lt_deplibs_check_method 19496 19497# Command to use when deplibs_check_method = "file_magic". 19498file_magic_cmd=$lt_file_magic_cmd 19499 19500# How to find potential files when deplibs_check_method = "file_magic". 19501file_magic_glob=$lt_file_magic_glob 19502 19503# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 19504want_nocaseglob=$lt_want_nocaseglob 19505 19506# Command to associate shared and link libraries. 19507sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 19508 19509# The archiver. 19510AR=$lt_AR 19511 19512# Flags to create an archive. 19513AR_FLAGS=$lt_AR_FLAGS 19514 19515# How to feed a file listing to the archiver. 19516archiver_list_spec=$lt_archiver_list_spec 19517 19518# A symbol stripping program. 19519STRIP=$lt_STRIP 19520 19521# Commands used to install an old-style archive. 19522RANLIB=$lt_RANLIB 19523old_postinstall_cmds=$lt_old_postinstall_cmds 19524old_postuninstall_cmds=$lt_old_postuninstall_cmds 19525 19526# Whether to use a lock for old archive extraction. 19527lock_old_archive_extraction=$lock_old_archive_extraction 19528 19529# A C compiler. 19530LTCC=$lt_CC 19531 19532# LTCC compiler flags. 19533LTCFLAGS=$lt_CFLAGS 19534 19535# Take the output of nm and produce a listing of raw symbols and C names. 19536global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19537 19538# Transform the output of nm in a proper C declaration. 19539global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19540 19541# Transform the output of nm into a list of symbols to manually relocate. 19542global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 19543 19544# Transform the output of nm in a C name address pair. 19545global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19546 19547# Transform the output of nm in a C name address pair when lib prefix is needed. 19548global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19549 19550# The name lister interface. 19551nm_interface=$lt_lt_cv_nm_interface 19552 19553# Specify filename containing input files for \$NM. 19554nm_file_list_spec=$lt_nm_file_list_spec 19555 19556# The root where to search for dependent libraries,and where our libraries should be installed. 19557lt_sysroot=$lt_sysroot 19558 19559# Command to truncate a binary pipe. 19560lt_truncate_bin=$lt_lt_cv_truncate_bin 19561 19562# The name of the directory that contains temporary libtool files. 19563objdir=$objdir 19564 19565# Used to examine libraries when file_magic_cmd begins with "file". 19566MAGIC_CMD=$MAGIC_CMD 19567 19568# Must we lock files when doing compilation? 19569need_locks=$lt_need_locks 19570 19571# Manifest tool. 19572MANIFEST_TOOL=$lt_MANIFEST_TOOL 19573 19574# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19575DSYMUTIL=$lt_DSYMUTIL 19576 19577# Tool to change global to local symbols on Mac OS X. 19578NMEDIT=$lt_NMEDIT 19579 19580# Tool to manipulate fat objects and archives on Mac OS X. 19581LIPO=$lt_LIPO 19582 19583# ldd/readelf like tool for Mach-O binaries on Mac OS X. 19584OTOOL=$lt_OTOOL 19585 19586# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19587OTOOL64=$lt_OTOOL64 19588 19589# Old archive suffix (normally "a"). 19590libext=$libext 19591 19592# Shared library suffix (normally ".so"). 19593shrext_cmds=$lt_shrext_cmds 19594 19595# The commands to extract the exported symbol list from a shared archive. 19596extract_expsyms_cmds=$lt_extract_expsyms_cmds 19597 19598# Variables whose values should be saved in libtool wrapper scripts and 19599# restored at link time. 19600variables_saved_for_relink=$lt_variables_saved_for_relink 19601 19602# Do we need the "lib" prefix for modules? 19603need_lib_prefix=$need_lib_prefix 19604 19605# Do we need a version for libraries? 19606need_version=$need_version 19607 19608# Library versioning type. 19609version_type=$version_type 19610 19611# Shared library runtime path variable. 19612runpath_var=$runpath_var 19613 19614# Shared library path variable. 19615shlibpath_var=$shlibpath_var 19616 19617# Is shlibpath searched before the hard-coded library search path? 19618shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19619 19620# Format of library name prefix. 19621libname_spec=$lt_libname_spec 19622 19623# List of archive names. First name is the real one, the rest are links. 19624# The last name is the one that the linker finds with -lNAME 19625library_names_spec=$lt_library_names_spec 19626 19627# The coded name of the library, if different from the real name. 19628soname_spec=$lt_soname_spec 19629 19630# Permission mode override for installation of shared libraries. 19631install_override_mode=$lt_install_override_mode 19632 19633# Command to use after installation of a shared archive. 19634postinstall_cmds=$lt_postinstall_cmds 19635 19636# Command to use after uninstallation of a shared archive. 19637postuninstall_cmds=$lt_postuninstall_cmds 19638 19639# Commands used to finish a libtool library installation in a directory. 19640finish_cmds=$lt_finish_cmds 19641 19642# As "finish_cmds", except a single script fragment to be evaled but 19643# not shown. 19644finish_eval=$lt_finish_eval 19645 19646# Whether we should hardcode library paths into libraries. 19647hardcode_into_libs=$hardcode_into_libs 19648 19649# Compile-time system search path for libraries. 19650sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19651 19652# Detected run-time system search path for libraries. 19653sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 19654 19655# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 19656configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 19657 19658# Whether dlopen is supported. 19659dlopen_support=$enable_dlopen 19660 19661# Whether dlopen of programs is supported. 19662dlopen_self=$enable_dlopen_self 19663 19664# Whether dlopen of statically linked programs is supported. 19665dlopen_self_static=$enable_dlopen_self_static 19666 19667# Commands to strip libraries. 19668old_striplib=$lt_old_striplib 19669striplib=$lt_striplib 19670 19671 19672# The linker used to build libraries. 19673LD=$lt_LD 19674 19675# How to create reloadable object files. 19676reload_flag=$lt_reload_flag 19677reload_cmds=$lt_reload_cmds 19678 19679# Commands used to build an old-style archive. 19680old_archive_cmds=$lt_old_archive_cmds 19681 19682# A language specific compiler. 19683CC=$lt_compiler 19684 19685# Is the compiler the GNU compiler? 19686with_gcc=$GCC 19687 19688# Compiler flag to turn off builtin functions. 19689no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19690 19691# Additional compiler flags for building library objects. 19692pic_flag=$lt_lt_prog_compiler_pic 19693 19694# How to pass a linker flag through the compiler. 19695wl=$lt_lt_prog_compiler_wl 19696 19697# Compiler flag to prevent dynamic linking. 19698link_static_flag=$lt_lt_prog_compiler_static 19699 19700# Does compiler simultaneously support -c and -o options? 19701compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19702 19703# Whether or not to add -lc for building shared libraries. 19704build_libtool_need_lc=$archive_cmds_need_lc 19705 19706# Whether or not to disallow shared libs when runtime libs are static. 19707allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19708 19709# Compiler flag to allow reflexive dlopens. 19710export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19711 19712# Compiler flag to generate shared objects directly from archives. 19713whole_archive_flag_spec=$lt_whole_archive_flag_spec 19714 19715# Whether the compiler copes with passing no objects directly. 19716compiler_needs_object=$lt_compiler_needs_object 19717 19718# Create an old-style archive from a shared archive. 19719old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19720 19721# Create a temporary old-style archive to link instead of a shared archive. 19722old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19723 19724# Commands used to build a shared archive. 19725archive_cmds=$lt_archive_cmds 19726archive_expsym_cmds=$lt_archive_expsym_cmds 19727 19728# Commands used to build a loadable module if different from building 19729# a shared archive. 19730module_cmds=$lt_module_cmds 19731module_expsym_cmds=$lt_module_expsym_cmds 19732 19733# Whether we are building with GNU ld or not. 19734with_gnu_ld=$lt_with_gnu_ld 19735 19736# Flag that allows shared libraries with undefined symbols to be built. 19737allow_undefined_flag=$lt_allow_undefined_flag 19738 19739# Flag that enforces no undefined symbols. 19740no_undefined_flag=$lt_no_undefined_flag 19741 19742# Flag to hardcode \$libdir into a binary during linking. 19743# This must work even if \$libdir does not exist 19744hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19745 19746# Whether we need a single "-rpath" flag with a separated argument. 19747hardcode_libdir_separator=$lt_hardcode_libdir_separator 19748 19749# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19750# DIR into the resulting binary. 19751hardcode_direct=$hardcode_direct 19752 19753# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19754# DIR into the resulting binary and the resulting library dependency is 19755# "absolute",i.e impossible to change by setting \$shlibpath_var if the 19756# library is relocated. 19757hardcode_direct_absolute=$hardcode_direct_absolute 19758 19759# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19760# into the resulting binary. 19761hardcode_minus_L=$hardcode_minus_L 19762 19763# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19764# into the resulting binary. 19765hardcode_shlibpath_var=$hardcode_shlibpath_var 19766 19767# Set to "yes" if building a shared library automatically hardcodes DIR 19768# into the library and all subsequent libraries and executables linked 19769# against it. 19770hardcode_automatic=$hardcode_automatic 19771 19772# Set to yes if linker adds runtime paths of dependent libraries 19773# to runtime path list. 19774inherit_rpath=$inherit_rpath 19775 19776# Whether libtool must link a program against all its dependency libraries. 19777link_all_deplibs=$link_all_deplibs 19778 19779# Set to "yes" if exported symbols are required. 19780always_export_symbols=$always_export_symbols 19781 19782# The commands to list exported symbols. 19783export_symbols_cmds=$lt_export_symbols_cmds 19784 19785# Symbols that should not be listed in the preloaded symbols. 19786exclude_expsyms=$lt_exclude_expsyms 19787 19788# Symbols that must always be exported. 19789include_expsyms=$lt_include_expsyms 19790 19791# Commands necessary for linking programs (against libraries) with templates. 19792prelink_cmds=$lt_prelink_cmds 19793 19794# Commands necessary for finishing linking programs. 19795postlink_cmds=$lt_postlink_cmds 19796 19797# Specify filename containing input files. 19798file_list_spec=$lt_file_list_spec 19799 19800# How to hardcode a shared library path into an executable. 19801hardcode_action=$hardcode_action 19802 19803# The directories searched by this compiler when creating a shared library. 19804compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 19805 19806# Dependencies to place before and after the objects being linked to 19807# create a shared library. 19808predep_objects=$lt_predep_objects 19809postdep_objects=$lt_postdep_objects 19810predeps=$lt_predeps 19811postdeps=$lt_postdeps 19812 19813# The library search path used internally by the compiler when linking 19814# a shared library. 19815compiler_lib_search_path=$lt_compiler_lib_search_path 19816 19817# ### END LIBTOOL CONFIG 19818 19819_LT_EOF 19820 19821 cat <<'_LT_EOF' >> "$cfgfile" 19822 19823# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 19824 19825# func_munge_path_list VARIABLE PATH 19826# ----------------------------------- 19827# VARIABLE is name of variable containing _space_ separated list of 19828# directories to be munged by the contents of PATH, which is string 19829# having a format: 19830# "DIR[:DIR]:" 19831# string "DIR[ DIR]" will be prepended to VARIABLE 19832# ":DIR[:DIR]" 19833# string "DIR[ DIR]" will be appended to VARIABLE 19834# "DIRP[:DIRP]::[DIRA:]DIRA" 19835# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 19836# "DIRA[ DIRA]" will be appended to VARIABLE 19837# "DIR[:DIR]" 19838# VARIABLE will be replaced by "DIR[ DIR]" 19839func_munge_path_list () 19840{ 19841 case x$2 in 19842 x) 19843 ;; 19844 *:) 19845 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 19846 ;; 19847 x:*) 19848 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 19849 ;; 19850 *::*) 19851 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 19852 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 19853 ;; 19854 *) 19855 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 19856 ;; 19857 esac 19858} 19859 19860 19861# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 19862func_cc_basename () 19863{ 19864 for cc_temp in $*""; do 19865 case $cc_temp in 19866 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19867 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19868 \-*) ;; 19869 *) break;; 19870 esac 19871 done 19872 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 19873} 19874 19875 19876# ### END FUNCTIONS SHARED WITH CONFIGURE 19877 19878_LT_EOF 19879 19880 case $host_os in 19881 aix3*) 19882 cat <<\_LT_EOF >> "$cfgfile" 19883# AIX sometimes has problems with the GCC collect2 program. For some 19884# reason, if we set the COLLECT_NAMES environment variable, the problems 19885# vanish in a puff of smoke. 19886if test set != "${COLLECT_NAMES+set}"; then 19887 COLLECT_NAMES= 19888 export COLLECT_NAMES 19889fi 19890_LT_EOF 19891 ;; 19892 esac 19893 19894 19895ltmain=$ac_aux_dir/ltmain.sh 19896 19897 19898 # We use sed instead of cat because bash on DJGPP gets confused if 19899 # if finds mixed CR/LF and LF-only lines. Since sed operates in 19900 # text mode, it properly converts lines to CR/LF. This bash problem 19901 # is reportedly fixed, but why not run on old versions too? 19902 sed '$q' "$ltmain" >> "$cfgfile" \ 19903 || (rm -f "$cfgfile"; exit 1) 19904 19905 mv -f "$cfgfile" "$ofile" || 19906 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 19907 chmod +x "$ofile" 19908 19909 19910 cat <<_LT_EOF >> "$ofile" 19911 19912# ### BEGIN LIBTOOL TAG CONFIG: CXX 19913 19914# The linker used to build libraries. 19915LD=$lt_LD_CXX 19916 19917# How to create reloadable object files. 19918reload_flag=$lt_reload_flag_CXX 19919reload_cmds=$lt_reload_cmds_CXX 19920 19921# Commands used to build an old-style archive. 19922old_archive_cmds=$lt_old_archive_cmds_CXX 19923 19924# A language specific compiler. 19925CC=$lt_compiler_CXX 19926 19927# Is the compiler the GNU compiler? 19928with_gcc=$GCC_CXX 19929 19930# Compiler flag to turn off builtin functions. 19931no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 19932 19933# Additional compiler flags for building library objects. 19934pic_flag=$lt_lt_prog_compiler_pic_CXX 19935 19936# How to pass a linker flag through the compiler. 19937wl=$lt_lt_prog_compiler_wl_CXX 19938 19939# Compiler flag to prevent dynamic linking. 19940link_static_flag=$lt_lt_prog_compiler_static_CXX 19941 19942# Does compiler simultaneously support -c and -o options? 19943compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 19944 19945# Whether or not to add -lc for building shared libraries. 19946build_libtool_need_lc=$archive_cmds_need_lc_CXX 19947 19948# Whether or not to disallow shared libs when runtime libs are static. 19949allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 19950 19951# Compiler flag to allow reflexive dlopens. 19952export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 19953 19954# Compiler flag to generate shared objects directly from archives. 19955whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 19956 19957# Whether the compiler copes with passing no objects directly. 19958compiler_needs_object=$lt_compiler_needs_object_CXX 19959 19960# Create an old-style archive from a shared archive. 19961old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 19962 19963# Create a temporary old-style archive to link instead of a shared archive. 19964old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 19965 19966# Commands used to build a shared archive. 19967archive_cmds=$lt_archive_cmds_CXX 19968archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 19969 19970# Commands used to build a loadable module if different from building 19971# a shared archive. 19972module_cmds=$lt_module_cmds_CXX 19973module_expsym_cmds=$lt_module_expsym_cmds_CXX 19974 19975# Whether we are building with GNU ld or not. 19976with_gnu_ld=$lt_with_gnu_ld_CXX 19977 19978# Flag that allows shared libraries with undefined symbols to be built. 19979allow_undefined_flag=$lt_allow_undefined_flag_CXX 19980 19981# Flag that enforces no undefined symbols. 19982no_undefined_flag=$lt_no_undefined_flag_CXX 19983 19984# Flag to hardcode \$libdir into a binary during linking. 19985# This must work even if \$libdir does not exist 19986hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 19987 19988# Whether we need a single "-rpath" flag with a separated argument. 19989hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 19990 19991# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19992# DIR into the resulting binary. 19993hardcode_direct=$hardcode_direct_CXX 19994 19995# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19996# DIR into the resulting binary and the resulting library dependency is 19997# "absolute",i.e impossible to change by setting \$shlibpath_var if the 19998# library is relocated. 19999hardcode_direct_absolute=$hardcode_direct_absolute_CXX 20000 20001# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20002# into the resulting binary. 20003hardcode_minus_L=$hardcode_minus_L_CXX 20004 20005# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20006# into the resulting binary. 20007hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 20008 20009# Set to "yes" if building a shared library automatically hardcodes DIR 20010# into the library and all subsequent libraries and executables linked 20011# against it. 20012hardcode_automatic=$hardcode_automatic_CXX 20013 20014# Set to yes if linker adds runtime paths of dependent libraries 20015# to runtime path list. 20016inherit_rpath=$inherit_rpath_CXX 20017 20018# Whether libtool must link a program against all its dependency libraries. 20019link_all_deplibs=$link_all_deplibs_CXX 20020 20021# Set to "yes" if exported symbols are required. 20022always_export_symbols=$always_export_symbols_CXX 20023 20024# The commands to list exported symbols. 20025export_symbols_cmds=$lt_export_symbols_cmds_CXX 20026 20027# Symbols that should not be listed in the preloaded symbols. 20028exclude_expsyms=$lt_exclude_expsyms_CXX 20029 20030# Symbols that must always be exported. 20031include_expsyms=$lt_include_expsyms_CXX 20032 20033# Commands necessary for linking programs (against libraries) with templates. 20034prelink_cmds=$lt_prelink_cmds_CXX 20035 20036# Commands necessary for finishing linking programs. 20037postlink_cmds=$lt_postlink_cmds_CXX 20038 20039# Specify filename containing input files. 20040file_list_spec=$lt_file_list_spec_CXX 20041 20042# How to hardcode a shared library path into an executable. 20043hardcode_action=$hardcode_action_CXX 20044 20045# The directories searched by this compiler when creating a shared library. 20046compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 20047 20048# Dependencies to place before and after the objects being linked to 20049# create a shared library. 20050predep_objects=$lt_predep_objects_CXX 20051postdep_objects=$lt_postdep_objects_CXX 20052predeps=$lt_predeps_CXX 20053postdeps=$lt_postdeps_CXX 20054 20055# The library search path used internally by the compiler when linking 20056# a shared library. 20057compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 20058 20059# ### END LIBTOOL TAG CONFIG: CXX 20060_LT_EOF 20061 20062 ;; 20063 20064 esac 20065done # for ac_tag 20066 20067 20068as_fn_exit 0 20069_ACEOF 20070ac_clean_files=$ac_clean_files_save 20071 20072test $ac_write_fail = 0 || 20073 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20074 20075 20076# configure is writing to config.log, and then calls config.status. 20077# config.status does its own redirection, appending to config.log. 20078# Unfortunately, on DOS this fails, as config.log is still kept open 20079# by configure, so config.status won't be able to write to it; its 20080# output is simply discarded. So we exec the FD to /dev/null, 20081# effectively closing config.log, so it can be properly (re)opened and 20082# appended to by config.status. When coming back to configure, we 20083# need to make the FD available again. 20084if test "$no_create" != yes; then 20085 ac_cs_success=: 20086 ac_config_status_args= 20087 test "$silent" = yes && 20088 ac_config_status_args="$ac_config_status_args --quiet" 20089 exec 5>/dev/null 20090 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20091 exec 5>>config.log 20092 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20093 # would make configure fail if this is the last instruction. 20094 $ac_cs_success || as_fn_exit 1 20095fi 20096if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20098$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20099fi 20100 20101